2 # From configure.in Revision: 42046 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59 for python 2.5.
6 # Report bugs to <http://www.python.org/python-bugs>.
8 # Copyright (C) 2003 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.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
25 DUALCASE
=1; export DUALCASE
# for MKS sh
27 # Support unset when possible.
28 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
35 # Work around bugs in pre-3.0 UWIN ksh.
36 $as_unset ENV MAIL MAILPATH
43 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
47 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
48 eval $as_var=C
; export $as_var
54 # Required to use basename.
55 if expr a
: '\(a\)' >/dev
/null
2>&1; then
61 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
68 # Name of the executable.
69 as_me
=`$as_basename "$0" ||
70 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71 X"$0" : 'X\(//\)$' \| \
72 X"$0" : 'X\(/\)$' \| \
73 . : '\(.\)' 2>/dev/null ||
75 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76 /^X\/\(\/\/\)$/{ s//\1/; q; }
77 /^X\/\(\/\).*/{ s//\1/; q; }
81 # PATH needs CR, and LINENO needs CR and PATH.
82 # Avoid depending upon Character Ranges.
83 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
84 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
86 as_cr_digits
='0123456789'
87 as_cr_alnum
=$as_cr_Letters$as_cr_digits
89 # The user is always right.
90 if test "${PATH_SEPARATOR+set}" != set; then
91 echo "#! /bin/sh" >conf$$.sh
92 echo "exit 0" >>conf$$.sh
94 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
105 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
106 test "x$as_lineno_1" != "x$as_lineno_2" &&
107 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
108 # Find who we are. Look in the path if we contain no path at all
111 *[\\/]* ) as_myself
=$0 ;;
112 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
116 test -z "$as_dir" && as_dir
=.
117 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
122 # We did not find ourselves, most probably we were run as `sh COMMAND'
123 # in which case we are not to be found in the path.
124 if test "x$as_myself" = x
; then
127 if test ! -f "$as_myself"; then
128 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129 { (exit 1); exit 1; }; }
131 case $CONFIG_SHELL in
133 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
134 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
137 test -z "$as_dir" && as_dir
=.
138 for as_base
in sh bash ksh sh5
; do
141 if ("$as_dir/$as_base" -c '
144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145 test "x$as_lineno_1" != "x$as_lineno_2" &&
146 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
147 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
148 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
149 CONFIG_SHELL
=$as_dir/$as_base
151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160 # uniformly replaced by the line number. The first 'sed' inserts a
161 # line-number line before each line; the second 'sed' does the real
162 # work. The second script uses 'N' to pair each line-number line
163 # with the numbered line, and appends trailing '-' during
164 # substitution so that $LINENO is not a special case at line end.
165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
167 sed '=' <$as_myself |
172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
175 s,^['$as_cr_digits']*\n,,
177 chmod +x
$as_me.lineno ||
178 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179 { (exit 1); exit 1; }; }
181 # Don't try to exec as it changes $[0], causing all sort of problems
182 # (the dirname of $[0] is not the place where we might find the
183 # original and so on. Autoconf is especially sensible to this).
185 # Exit status is that of the last command.
190 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191 *c
*,-n*) ECHO_N
= ECHO_C
='
193 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
194 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
197 if expr a
: '\(a\)' >/dev
/null
2>&1; then
203 rm -f conf$$ conf$$.exe conf$$.
file
205 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
206 # We could just check for DJGPP; but this test a) works b) is more generic
207 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208 if test -f conf$$.exe
; then
209 # Don't use ln at all; we don't have any links
214 elif ln conf$$.
file conf$$
2>/dev
/null
; then
219 rm -f conf$$ conf$$.exe conf$$.
file
221 if mkdir
-p .
2>/dev
/null
; then
224 test -d .
/-p && rmdir .
/-p
228 as_executable_p
="test -f"
230 # Sed expression to map a string onto a valid CPP name.
231 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
233 # Sed expression to map a string onto a valid variable name.
234 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
238 # We need space, tab and new line, in precisely that order.
248 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
249 # so uname gets run too.
250 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
257 ac_default_prefix
=/usr
/local
258 ac_config_libobj_dir
=.
263 SHELL
=${CONFIG_SHELL-/bin/sh}
265 # Maximum number of lines to put in a shell here document.
266 # This variable seems obsolete. It should probably be removed, and
267 # only ac_max_sed_lines should be used.
268 : ${ac_max_here_lines=38}
270 # Identity of this package.
271 PACKAGE_NAME
='python'
272 PACKAGE_TARNAME
='python'
273 PACKAGE_VERSION
='2.5'
274 PACKAGE_STRING
='python 2.5'
275 PACKAGE_BUGREPORT
='http://www.python.org/python-bugs'
277 ac_unique_file
="Include/object.h"
278 # Factoring default headers for most tests.
279 ac_includes_default
="\
282 # include <sys/types.h>
285 # include <sys/stat.h>
296 # if !STDC_HEADERS && HAVE_MEMORY_H
302 # include <strings.h>
305 # include <inttypes.h>
315 ac_subst_vars
='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS VERSION SOVERSION CONFIG_ARGS PYTHONFRAMEWORK PYTHONFRAMEWORKDIR PYTHONFRAMEWORKPREFIX PYTHONFRAMEWORKINSTALLDIR MACHDEP SGI_ABI EXTRAPLATDIR EXTRAMACHDEPPATH CONFIGURE_MACOSX_DEPLOYMENT_TARGET CXX MAINOBJ EXEEXT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC OBJEXT CPP EGREP BUILDEXEEXT LIBRARY LDLIBRARY DLLLIBRARY BLDLIBRARY LDLIBRARYDIR INSTSONAME RUNSHARED LINKCC RANLIB ac_ct_RANLIB AR SVNVERSION INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN OPT BASECFLAGS OTHER_LIBTOOL_OPT LIBTOOL_CRUFT SO LDSHARED BLDSHARED CCSHARED LINKFORSHARED CFLAGSFORSHARED SHLIBS USE_SIGNAL_MODULE SIGNAL_OBJS USE_THREAD_MODULE LDLAST THREADOBJ DLINCLDIR DYNLOADFILE MACHDEP_OBJS TRUE LIBOBJS HAVE_GETHOSTBYNAME_R_6_ARG HAVE_GETHOSTBYNAME_R_5_ARG HAVE_GETHOSTBYNAME_R_3_ARG HAVE_GETHOSTBYNAME_R HAVE_GETHOSTBYNAME LIBM LIBC UNICODE_OBJS THREADHEADERS SRCDIRS LTLIBOBJS'
318 # Initialize some variables set by options.
320 ac_init_version
=false
321 # The variables have the same names as the options, with
322 # dashes changed to underlines.
330 program_transform_name
=s
,x
,x
,
338 # Installation directory options.
339 # These are left unexpanded so users can "make install exec_prefix=/foo"
340 # and all the variables that are supposed to be based on exec_prefix
341 # by default will actually change.
342 # Use braces instead of parens because sh, perl, etc. also accept them.
343 bindir
='${exec_prefix}/bin'
344 sbindir
='${exec_prefix}/sbin'
345 libexecdir
='${exec_prefix}/libexec'
346 datadir
='${prefix}/share'
347 sysconfdir
='${prefix}/etc'
348 sharedstatedir
='${prefix}/com'
349 localstatedir
='${prefix}/var'
350 libdir
='${exec_prefix}/lib'
351 includedir
='${prefix}/include'
352 oldincludedir
='/usr/include'
353 infodir
='${prefix}/info'
354 mandir
='${prefix}/man'
359 # If the previous option needs an argument, assign it.
360 if test -n "$ac_prev"; then
361 eval "$ac_prev=\$ac_option"
366 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
368 # Accept the important Cygnus configure options, so we can diagnose typos.
372 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
374 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
377 -build |
--build |
--buil |
--bui |
--bu)
378 ac_prev
=build_alias
;;
379 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
380 build_alias
=$ac_optarg ;;
382 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
383 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
384 ac_prev
=cache_file
;;
385 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
386 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
387 cache_file
=$ac_optarg ;;
390 cache_file
=config.cache
;;
392 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
394 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
396 datadir
=$ac_optarg ;;
398 -disable-* |
--disable-*)
399 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
400 # Reject names that are not valid shell variable names.
401 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
402 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
403 { (exit 1); exit 1; }; }
404 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
405 eval "enable_$ac_feature=no" ;;
407 -enable-* |
--enable-*)
408 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
409 # Reject names that are not valid shell variable names.
410 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
411 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
412 { (exit 1); exit 1; }; }
413 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
415 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
418 eval "enable_$ac_feature='$ac_optarg'" ;;
420 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
421 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
422 |
--exec |
--exe |
--ex)
423 ac_prev
=exec_prefix
;;
424 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
425 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
426 |
--exec=* |
--exe=* |
--ex=*)
427 exec_prefix
=$ac_optarg ;;
429 -gas |
--gas |
--ga |
--g)
430 # Obsolete; use --with-gas.
433 -help |
--help |
--hel |
--he |
-h)
435 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
436 ac_init_help
=recursive
;;
437 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
438 ac_init_help
=short
;;
440 -host |
--host |
--hos |
--ho)
441 ac_prev
=host_alias
;;
442 -host=* |
--host=* |
--hos=* |
--ho=*)
443 host_alias
=$ac_optarg ;;
445 -includedir |
--includedir |
--includedi |
--included |
--include \
446 |
--includ |
--inclu |
--incl |
--inc)
447 ac_prev
=includedir
;;
448 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
449 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
450 includedir
=$ac_optarg ;;
452 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
454 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
455 infodir
=$ac_optarg ;;
457 -libdir |
--libdir |
--libdi |
--libd)
459 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
462 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
463 |
--libexe |
--libex |
--libe)
464 ac_prev
=libexecdir
;;
465 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
466 |
--libexe=* |
--libex=* |
--libe=*)
467 libexecdir
=$ac_optarg ;;
469 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
470 |
--localstate |
--localstat |
--localsta |
--localst \
471 |
--locals |
--local |
--loca |
--loc |
--lo)
472 ac_prev
=localstatedir
;;
473 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
474 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
475 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
476 localstatedir
=$ac_optarg ;;
478 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
480 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
484 # Obsolete; use --without-fp.
487 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
488 |
--no-cr |
--no-c |
-n)
491 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
492 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
495 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
496 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
497 |
--oldin |
--oldi |
--old |
--ol |
--o)
498 ac_prev
=oldincludedir
;;
499 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
500 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
501 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
502 oldincludedir
=$ac_optarg ;;
504 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
506 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
509 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
510 |
--program-pre |
--program-pr |
--program-p)
511 ac_prev
=program_prefix
;;
512 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
513 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
514 program_prefix
=$ac_optarg ;;
516 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
517 |
--program-suf |
--program-su |
--program-s)
518 ac_prev
=program_suffix
;;
519 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
520 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
521 program_suffix
=$ac_optarg ;;
523 -program-transform-name |
--program-transform-name \
524 |
--program-transform-nam |
--program-transform-na \
525 |
--program-transform-n |
--program-transform- \
526 |
--program-transform |
--program-transfor \
527 |
--program-transfo |
--program-transf \
528 |
--program-trans |
--program-tran \
529 |
--progr-tra |
--program-tr |
--program-t)
530 ac_prev
=program_transform_name
;;
531 -program-transform-name=* |
--program-transform-name=* \
532 |
--program-transform-nam=* |
--program-transform-na=* \
533 |
--program-transform-n=* |
--program-transform-=* \
534 |
--program-transform=* |
--program-transfor=* \
535 |
--program-transfo=* |
--program-transf=* \
536 |
--program-trans=* |
--program-tran=* \
537 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
538 program_transform_name
=$ac_optarg ;;
540 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
541 |
-silent |
--silent |
--silen |
--sile |
--sil)
544 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
546 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
548 sbindir
=$ac_optarg ;;
550 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
551 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
552 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
554 ac_prev
=sharedstatedir
;;
555 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
556 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
557 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
559 sharedstatedir
=$ac_optarg ;;
561 -site |
--site |
--sit)
563 -site=* |
--site=* |
--sit=*)
566 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
568 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
571 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
572 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
573 ac_prev
=sysconfdir
;;
574 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
575 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
576 sysconfdir
=$ac_optarg ;;
578 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
579 ac_prev
=target_alias
;;
580 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
581 target_alias
=$ac_optarg ;;
583 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
586 -version |
--version |
--versio |
--versi |
--vers |
-V)
590 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
591 # Reject names that are not valid shell variable names.
592 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
593 { echo "$as_me: error: invalid package name: $ac_package" >&2
594 { (exit 1); exit 1; }; }
595 ac_package
=`echo $ac_package| sed 's/-/_/g'`
597 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
600 eval "with_$ac_package='$ac_optarg'" ;;
602 -without-* |
--without-*)
603 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
604 # Reject names that are not valid shell variable names.
605 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
606 { echo "$as_me: error: invalid package name: $ac_package" >&2
607 { (exit 1); exit 1; }; }
608 ac_package
=`echo $ac_package | sed 's/-/_/g'`
609 eval "with_$ac_package=no" ;;
612 # Obsolete; use --with-x.
615 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
616 |
--x-incl |
--x-inc |
--x-in |
--x-i)
617 ac_prev
=x_includes
;;
618 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
619 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
620 x_includes
=$ac_optarg ;;
622 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
623 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
624 ac_prev
=x_libraries
;;
625 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
626 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
627 x_libraries
=$ac_optarg ;;
629 -*) { echo "$as_me: error: unrecognized option: $ac_option
630 Try \`$0 --help' for more information." >&2
631 { (exit 1); exit 1; }; }
635 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
636 # Reject names that are not valid shell variable names.
637 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
638 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
639 { (exit 1); exit 1; }; }
640 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
641 eval "$ac_envvar='$ac_optarg'"
645 # FIXME: should be removed in autoconf 3.0.
646 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
647 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
648 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
649 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
655 if test -n "$ac_prev"; then
656 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
657 { echo "$as_me: error: missing argument to $ac_option" >&2
658 { (exit 1); exit 1; }; }
661 # Be sure to have absolute paths.
662 for ac_var
in exec_prefix prefix
664 eval ac_val
=$
`echo $ac_var`
666 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
667 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
668 { (exit 1); exit 1; }; };;
672 # Be sure to have absolute paths.
673 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
674 localstatedir libdir includedir oldincludedir infodir mandir
676 eval ac_val
=$
`echo $ac_var`
678 [\\/$
]* | ?
:[\\/]* ) ;;
679 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
680 { (exit 1); exit 1; }; };;
684 # There might be people who depend on the old broken behavior: `$host'
685 # used to hold the argument of --host etc.
686 # FIXME: To remove some day.
691 # FIXME: To remove some day.
692 if test "x$host_alias" != x
; then
693 if test "x$build_alias" = x
; then
694 cross_compiling
=maybe
695 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
696 If a cross compiler is detected then cross compile mode will be used." >&2
697 elif test "x$build_alias" != "x$host_alias"; then
703 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
705 test "$silent" = yes && exec 6>/dev
/null
708 # Find the source files, if location was not specified.
709 if test -z "$srcdir"; then
710 ac_srcdir_defaulted
=yes
711 # Try the directory containing this script, then its parent.
712 ac_confdir
=`(dirname "$0") 2>/dev/null ||
713 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
714 X"$0" : 'X\(//\)[^/]' \| \
715 X"$0" : 'X\(//\)$' \| \
716 X"$0" : 'X\(/\)' \| \
717 . : '\(.\)' 2>/dev/null ||
719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
720 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
721 /^X\(\/\/\)$/{ s//\1/; q; }
722 /^X\(\/\).*/{ s//\1/; q; }
725 if test ! -r $srcdir/$ac_unique_file; then
729 ac_srcdir_defaulted
=no
731 if test ! -r $srcdir/$ac_unique_file; then
732 if test "$ac_srcdir_defaulted" = yes; then
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
734 { (exit 1); exit 1; }; }
736 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
737 { (exit 1); exit 1; }; }
740 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
741 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
742 { (exit 1); exit 1; }; }
743 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
744 ac_env_build_alias_set
=${build_alias+set}
745 ac_env_build_alias_value
=$build_alias
746 ac_cv_env_build_alias_set
=${build_alias+set}
747 ac_cv_env_build_alias_value
=$build_alias
748 ac_env_host_alias_set
=${host_alias+set}
749 ac_env_host_alias_value
=$host_alias
750 ac_cv_env_host_alias_set
=${host_alias+set}
751 ac_cv_env_host_alias_value
=$host_alias
752 ac_env_target_alias_set
=${target_alias+set}
753 ac_env_target_alias_value
=$target_alias
754 ac_cv_env_target_alias_set
=${target_alias+set}
755 ac_cv_env_target_alias_value
=$target_alias
756 ac_env_CC_set
=${CC+set}
758 ac_cv_env_CC_set
=${CC+set}
759 ac_cv_env_CC_value
=$CC
760 ac_env_CFLAGS_set
=${CFLAGS+set}
761 ac_env_CFLAGS_value
=$CFLAGS
762 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
763 ac_cv_env_CFLAGS_value
=$CFLAGS
764 ac_env_LDFLAGS_set
=${LDFLAGS+set}
765 ac_env_LDFLAGS_value
=$LDFLAGS
766 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
767 ac_cv_env_LDFLAGS_value
=$LDFLAGS
768 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
769 ac_env_CPPFLAGS_value
=$CPPFLAGS
770 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
771 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
772 ac_env_CPP_set
=${CPP+set}
773 ac_env_CPP_value
=$CPP
774 ac_cv_env_CPP_set
=${CPP+set}
775 ac_cv_env_CPP_value
=$CPP
778 # Report the --help message.
780 if test "$ac_init_help" = "long"; then
781 # Omit some internal or obsolete options to make the list less imposing.
782 # This message is too long to be a string in the A/UX 3.1 sh.
784 \`configure' configures python 2.5 to adapt to many kinds of systems.
786 Usage: $0 [OPTION]... [VAR=VALUE]...
788 To assign environment variables (e.g., CC, CFLAGS...), specify them as
789 VAR=VALUE. See below for descriptions of some of the useful variables.
791 Defaults for the options are specified in brackets.
794 -h, --help display this help and exit
795 --help=short display options specific to this package
796 --help=recursive display the short help of all the included packages
797 -V, --version display version information and exit
798 -q, --quiet, --silent do not print \`checking...' messages
799 --cache-file=FILE cache test results in FILE [disabled]
800 -C, --config-cache alias for \`--cache-file=config.cache'
801 -n, --no-create do not create output files
802 --srcdir=DIR find the sources in DIR [configure dir or \`..']
807 Installation directories:
808 --prefix=PREFIX install architecture-independent files in PREFIX
810 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
813 By default, \`make install' will install all the files in
814 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
815 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
816 for instance \`--prefix=\$HOME'.
818 For better control, use the options below.
820 Fine tuning of the installation directories:
821 --bindir=DIR user executables [EPREFIX/bin]
822 --sbindir=DIR system admin executables [EPREFIX/sbin]
823 --libexecdir=DIR program executables [EPREFIX/libexec]
824 --datadir=DIR read-only architecture-independent data [PREFIX/share]
825 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
826 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
827 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
828 --libdir=DIR object code libraries [EPREFIX/lib]
829 --includedir=DIR C header files [PREFIX/include]
830 --oldincludedir=DIR C header files for non-gcc [/usr/include]
831 --infodir=DIR info documentation [PREFIX/info]
832 --mandir=DIR man documentation [PREFIX/man]
839 if test -n "$ac_init_help"; then
840 case $ac_init_help in
841 short | recursive
) echo "Configuration of python 2.5:";;
846 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
847 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
848 --enable-framework[=INSTALLDIR
]
849 Build
(MacOSX|Darwin
) framework
850 --enable-shared disable
/enable building shared python library
851 --enable-profiling enable C-level code profiling
852 --enable-toolbox-glue disable
/enable MacOSX glue code
for extensions
853 --enable-ipv6 Enable ipv6
(with ipv4
) support
854 --disable-ipv6 Disable ipv6 support
855 --enable-unicode[=ucs
[24]]
856 Enable Unicode
strings (default is
yes)
859 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
860 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
861 --without-gcc never use gcc
862 --with-cxx=<compiler
> enable C
++ support
863 --with-suffix=.exe
set executable suffix
864 --with-pydebug build with Py_DEBUG defined
865 --with-libs='lib1 ...' link against additional libs
866 --with-signal-module disable
/enable signal module
867 --with-dec-threads use DEC Alpha
/OSF1 thread-safe libraries
868 --with(out
)-threads[=DIRECTORY
]
869 disable
/enable thread support
870 --with(out
)-thread[=DIRECTORY
]
871 deprecated
; use
--with(out
)-threads
872 --with-pth use GNU pth threading libraries
873 --with(out
)-doc-strings disable
/enable documentation
strings
874 --with(out
)-tsc enable
/disable timestamp counter profile
875 --with(out
)-pymalloc disable
/enable specialized mallocs
876 --with-wctype-functions use wctype.h functions
877 --with-fpectl enable SIGFPE catching
878 --with-libm=STRING math library
879 --with-libc=STRING C library
881 Some influential environment variables
:
882 CC C compiler
command
883 CFLAGS C compiler flags
884 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
885 nonstandard directory
<lib dir
>
886 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
887 headers
in a nonstandard directory
<include dir
>
890 Use these variables to override the choices made by
`configure' or to help
891 it to find libraries and programs with nonstandard names/locations.
893 Report bugs to <http://www.python.org/python-bugs>.
897 if test "$ac_init_help" = "recursive"; then
898 # If there are subdirs, report their specific --help.
900 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
901 test -d $ac_dir || continue
904 if test "$ac_dir" != .; then
905 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
906 # A "../" for each directory in $ac_dir_suffix.
907 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
909 ac_dir_suffix= ac_top_builddir=
913 .) # No --srcdir option. We are building in place.
915 if test -z "$ac_top_builddir"; then
918 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
920 [\\/]* | ?:[\\/]* ) # Absolute path.
921 ac_srcdir=$srcdir$ac_dir_suffix;
922 ac_top_srcdir=$srcdir ;;
924 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
925 ac_top_srcdir=$ac_top_builddir$srcdir ;;
928 # Do not use `cd foo
&& pwd` to compute absolute paths, because
929 # the directories may not exist.
931 .) ac_abs_builddir="$ac_dir";;
934 .) ac_abs_builddir=`pwd`;;
935 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
936 *) ac_abs_builddir=`pwd`/"$ac_dir";;
939 case $ac_abs_builddir in
940 .) ac_abs_top_builddir=${ac_top_builddir}.;;
942 case ${ac_top_builddir}. in
943 .) ac_abs_top_builddir=$ac_abs_builddir;;
944 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
945 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
948 case $ac_abs_builddir in
949 .) ac_abs_srcdir=$ac_srcdir;;
952 .) ac_abs_srcdir=$ac_abs_builddir;;
953 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
954 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
957 case $ac_abs_builddir in
958 .) ac_abs_top_srcdir=$ac_top_srcdir;;
960 case $ac_top_srcdir in
961 .) ac_abs_top_srcdir=$ac_abs_builddir;;
962 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
963 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
968 # Check for guested configure; otherwise get Cygnus style configure.
969 if test -f $ac_srcdir/configure.gnu; then
971 $SHELL $ac_srcdir/configure.gnu --help=recursive
972 elif test -f $ac_srcdir/configure; then
974 $SHELL $ac_srcdir/configure --help=recursive
975 elif test -f $ac_srcdir/configure.ac ||
976 test -f $ac_srcdir/configure.in; then
980 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
986 test -n "$ac_init_help" && exit 0
987 if $ac_init_version; then
990 generated by GNU Autoconf 2.59
992 Copyright (C) 2003 Free Software Foundation, Inc.
993 This configure script is free software; the Free Software Foundation
994 gives unlimited permission to copy, distribute and modify it.
1000 This file contains any messages produced by compilers while
1001 running configure, to aid debugging if configure makes a mistake.
1003 It was created by python $as_me 2.5, which was
1004 generated by GNU Autoconf 2.59. Invocation command line was
1015 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1016 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1017 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1018 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1019 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1021 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1022 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1024 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1025 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1026 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1027 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1028 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1029 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1030 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1038 test -z "$as_dir" && as_dir=.
1039 echo "PATH: $as_dir"
1054 # Keep a trace of the command line.
1055 # Strip out --no-create and --no-recursion so they do not pile up.
1056 # Strip out --silent because we don't want to record it for future runs.
1057 # Also quote any args containing shell meta-characters.
1058 # Make two passes to allow for proper duplicate-argument suppression.
1063 ac_must_keep_next=false
1069 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1070 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1071 | -silent | --silent | --silen | --sile | --sil)
1073 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1074 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1077 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1079 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1080 if test $ac_must_keep_next = true; then
1081 ac_must_keep_next=false # Got value, back to normal.
1084 *=* | --config-cache | -C | -disable-* | --disable-* \
1085 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1086 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1087 | -with-* | --with-* | -without-* | --without-* | --x)
1088 case "$ac_configure_args0 " in
1089 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1092 -* ) ac_must_keep_next=true ;;
1095 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1096 # Get rid of the leading space.
1102 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1103 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1105 # When interrupted or exit'd, cleanup temporary files, and complete
1106 # config.log. We remove comments because anyway the quotes in there
1107 # would cause problems or look ugly.
1108 # WARNING: Be sure not to use single quotes in there, as some shells,
1109 # such as our DU 5.0 friend, will then `close
' the trap.
1110 trap 'exit_status
=$?
1111 # Save into config.log some information that might help in debugging.
1116 ## ---------------- ##
1117 ## Cache variables. ##
1118 ## ---------------- ##
1121 # The following way of writing the cache mishandles newlines in values,
1124 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1127 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1128 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1132 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1139 ## ----------------- ##
1140 ## Output variables. ##
1141 ## ----------------- ##
1144 for ac_var
in $ac_subst_vars
1146 eval ac_val
=$
`echo $ac_var`
1147 echo "$ac_var='"'"'$ac_val'"'"'"
1151 if test -n "$ac_subst_files"; then
1158 for ac_var
in $ac_subst_files
1160 eval ac_val
=$
`echo $ac_var`
1161 echo "$ac_var='"'"'$ac_val'"'"'"
1166 if test -s confdefs.h
; then
1173 sed "/^$/d" confdefs.h |
sort
1176 test "$ac_signal" != 0 &&
1177 echo "$as_me: caught signal $ac_signal"
1178 echo "$as_me: exit $exit_status"
1180 rm -f core
*.core
&&
1181 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1184 for ac_signal in 1 2 13 15; do
1185 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1189 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1190 rm -rf conftest* confdefs.h
1191 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1194 # Predefined preprocessor variables.
1196 cat >>confdefs.h <<_ACEOF
1197 #define PACKAGE_NAME "$PACKAGE_NAME"
1201 cat >>confdefs.h <<_ACEOF
1202 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1206 cat >>confdefs.h <<_ACEOF
1207 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1211 cat >>confdefs.h <<_ACEOF
1212 #define PACKAGE_STRING "$PACKAGE_STRING"
1216 cat >>confdefs.h <<_ACEOF
1217 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1221 # Let the site file select an alternate cache file if it wants to.
1222 # Prefer explicitly selected file to automatically selected ones.
1223 if test -z "$CONFIG_SITE"; then
1224 if test "x$prefix" != xNONE; then
1225 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1227 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1230 for ac_site_file in $CONFIG_SITE; do
1231 if test -r "$ac_site_file"; then
1232 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1233 echo "$as_me: loading site script $ac_site_file" >&6;}
1234 sed 's
/^
/|
/' "$ac_site_file" >&5
1239 if test -r "$cache_file"; then
1240 # Some versions of bash will fail to source /dev/null (special
1241 # files actually), so we avoid doing that.
1242 if test -f "$cache_file"; then
1243 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1244 echo "$as_me: loading cache $cache_file" >&6;}
1246 [\\/]* | ?:[\\/]* ) . $cache_file;;
1247 *) . ./$cache_file;;
1251 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1252 echo "$as_me: creating cache $cache_file" >&6;}
1256 # Check that the precious variables saved in the cache have kept the same
1258 ac_cache_corrupted=false
1259 for ac_var in `(set) 2>&1 |
1260 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1261 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1262 eval ac_new_set=\$ac_env_${ac_var}_set
1263 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1264 eval ac_new_val="\$ac_env_${ac_var}_value"
1265 case $ac_old_set,$ac_new_set in
1267 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1268 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1269 ac_cache_corrupted=: ;;
1271 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1272 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1273 ac_cache_corrupted=: ;;
1276 if test "x$ac_old_val" != "x$ac_new_val"; then
1277 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1278 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1279 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1280 echo "$as_me: former value: $ac_old_val" >&2;}
1281 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1282 echo "$as_me: current value: $ac_new_val" >&2;}
1283 ac_cache_corrupted=:
1286 # Pass precious variables to config.status.
1287 if test "$ac_new_set" = set; then
1289 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1290 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1291 *) ac_arg=$ac_var=$ac_new_val ;;
1293 case " $ac_configure_args " in
1294 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1295 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1299 if $ac_cache_corrupted; then
1300 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1301 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1302 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1303 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1304 { (exit 1); exit 1; }; }
1308 ac_cpp='$CPP $CPPFLAGS'
1309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1310 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1340 ac_config_headers="$ac_config_headers pyconfig.h"
1348 # We don't use PACKAGE_ variables
, and they cause conflicts
1349 # with other autoconf-based packages that include Python.h
1350 grep -v 'define PACKAGE_' <confdefs.h
>confdefs.h.new
1352 mv confdefs.h.new confdefs.h
1360 # The later defininition of _XOPEN_SOURCE disables certain features
1361 # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
1363 cat >>confdefs.h
<<\_ACEOF
1364 #define _GNU_SOURCE 1
1368 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1369 # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
1372 cat >>confdefs.h
<<\_ACEOF
1373 #define _NETBSD_SOURCE 1
1377 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1378 # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
1381 cat >>confdefs.h
<<\_ACEOF
1382 #define __BSD_VISIBLE 1
1386 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1387 # u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
1389 cat >>confdefs.h
<<\_ACEOF
1390 #define _BSD_TYPES 1
1394 define_xopen_source
=yes
1396 # Arguments passed to configure.
1398 CONFIG_ARGS
="$ac_configure_args"
1400 # Check whether --enable-framework or --disable-framework was given.
1401 if test "${enable_framework+set}" = set; then
1402 enableval
="$enable_framework"
1406 enableval
=/Library
/Frameworks
1411 PYTHONFRAMEWORKDIR
=no-framework
1412 PYTHONFRAMEWORKPREFIX
=
1413 PYTHONFRAMEWORKINSTALLDIR
=
1417 PYTHONFRAMEWORK
=Python
1418 PYTHONFRAMEWORKDIR
=Python.framework
1419 PYTHONFRAMEWORKPREFIX
=$enableval
1420 PYTHONFRAMEWORKINSTALLDIR
=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
1421 prefix
=$PYTHONFRAMEWORKINSTALLDIR/Versions
/$VERSION
1427 PYTHONFRAMEWORKDIR
=no-framework
1428 PYTHONFRAMEWORKPREFIX
=
1429 PYTHONFRAMEWORKINSTALLDIR
=
1439 ## AC_HELP_STRING(--with-dyld,
1440 ## Use (OpenStep|Rhapsody) dynamic linker))
1442 # Set name for machine-dependent library files
1444 echo "$as_me:$LINENO: checking MACHDEP" >&5
1445 echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6
1446 if test -z "$MACHDEP"
1448 ac_sys_system
=`uname -s`
1449 if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \
1450 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
1451 ac_sys_release
=`uname -v`
1453 ac_sys_release
=`uname -r`
1455 ac_md_system
=`echo $ac_sys_system |
1456 tr -d '/ ' | tr '[A-Z]' '[a-z]'`
1457 ac_md_release
=`echo $ac_sys_release |
1458 tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'`
1459 MACHDEP
="$ac_md_system$ac_md_release"
1462 cygwin
*) MACHDEP
="cygwin";;
1463 darwin
*) MACHDEP
="darwin";;
1464 atheos
*) MACHDEP
="atheos";;
1465 irix646
) MACHDEP
="irix6";;
1466 '') MACHDEP
="unknown";;
1470 # Some systems cannot stand _XOPEN_SOURCE being defined at all; they
1471 # disable features if it is defined, without any means to access these
1472 # features as extensions. For these systems, we skip the definition of
1473 # _XOPEN_SOURCE. Before adding a system to the list to gain access to
1474 # some feature, make sure there is no alternative way to access this
1475 # feature. Also, when using wildcards, make sure you have verified the
1476 # need for not defining _XOPEN_SOURCE on all systems matching the
1477 # wildcard, and that the wildcard does not include future systems
1478 # (which may remove their limitations).
1479 case $ac_sys_system/$ac_sys_release in
1480 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
1481 # even though select is a POSIX function. Reported by J. Ribbens.
1482 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
1483 OpenBSD
/2.
* | OpenBSD
/3.
[012345678])
1484 define_xopen_source
=no
;;
1485 # On Solaris 2.6, sys/wait.h is inconsistent in the usage
1486 # of union __?sigval. Reported by Stuart Bishop.
1488 define_xopen_source
=no
;;
1489 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
1490 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
1491 # Reconfirmed for 7.1.4 by Martin v. Loewis.
1492 OpenUNIX
/8.0.0| UnixWare
/7.1.
[0-4])
1493 define_xopen_source
=no
;;
1494 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
1495 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
1497 define_xopen_source
=no
;;
1498 # On FreeBSD 4.8 and MacOS X 10.2, a bug in ncurses.h means that
1499 # it craps out if _XOPEN_EXTENDED_SOURCE is defined. Apparently,
1500 # this is fixed in 10.3, which identifies itself as Darwin/7.*
1501 # This should hopefully be fixed in FreeBSD 4.9
1502 FreeBSD
/4.8* | Darwin
/6* )
1503 define_xopen_source
=no
;;
1504 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
1505 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
1506 # or has another value. By not (re)defining it, the defaults come in place.
1508 define_xopen_source
=no
;;
1510 if test `uname -r` -eq 1; then
1511 define_xopen_source
=no
1514 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
1515 # disables platform specific features beyond repair.
1517 define_xopen_source
=no
1522 if test $define_xopen_source = yes
1524 # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be
1525 # defined precisely as g++ defines it
1526 # Furthermore, on Solaris 10, XPG6 requires the use of a C99
1528 case $ac_sys_system/$ac_sys_release in
1529 SunOS
/5.8|SunOS
/5.9|SunOS
/5.10)
1531 cat >>confdefs.h
<<\_ACEOF
1532 #define _XOPEN_SOURCE 500
1538 cat >>confdefs.h
<<\_ACEOF
1539 #define _XOPEN_SOURCE 600
1545 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
1546 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
1547 # several APIs are not declared. Since this is also needed in some
1548 # cases for HP-UX, we define it globally.
1549 # except for Solaris 10, where it must not be defined,
1550 # as it implies XPG4.2
1551 case $ac_sys_system/$ac_sys_release in
1556 cat >>confdefs.h
<<\_ACEOF
1557 #define _XOPEN_SOURCE_EXTENDED 1
1564 cat >>confdefs.h
<<\_ACEOF
1565 #define _POSIX_C_SOURCE 200112L
1572 # SGI compilers allow the specification of the both the ABI and the
1573 # ISA on the command line. Depending on the values of these switches,
1574 # different and often incompatable code will be generated.
1576 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
1577 # thus supply support for various ABI/ISA combinations. The MACHDEP
1578 # variable is also adjusted.
1581 if test ! -z "$SGI_ABI"
1584 LDFLAGS
="$SGI_ABI $LDFLAGS"
1585 MACHDEP
=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'`
1587 echo "$as_me:$LINENO: result: $MACHDEP" >&5
1588 echo "${ECHO_T}$MACHDEP" >&6
1590 # And add extra plat-mac for darwin
1593 echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5
1594 echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6
1595 if test -z "$EXTRAPLATDIR"
1599 EXTRAPLATDIR
="\$(PLATMACDIRS)"
1600 EXTRAMACHDEPPATH
="\$(PLATMACPATH)"
1608 echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5
1609 echo "${ECHO_T}$EXTRAPLATDIR" >&6
1611 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
1612 # it may influence the way we can build extensions, so distutils
1615 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
=
1617 # checks for alternative programs
1619 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
1620 # for debug/optimization stuff. BASECFLAGS is for flags that are required
1621 # just to get things to compile and link. Users are free to override OPT
1622 # when running configure or make. The build should not break if they do.
1623 # BASECFLAGS should generally not be messed with, however.
1625 # XXX shouldn't some/most/all of this code be merged with the stuff later
1626 # on that fiddles with OPT and BASECFLAGS?
1627 echo "$as_me:$LINENO: checking for --without-gcc" >&5
1628 echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6
1630 # Check whether --with-gcc or --without-gcc was given.
1631 if test "${with_gcc+set}" = set; then
1640 without_gcc
=$withval;;
1644 case $ac_sys_system in
1648 case $BE_HOST_CPU in
1652 BASECFLAGS
="$BASECFLAGS -export pragma"
1654 LDFLAGS
="$LDFLAGS -nodup"
1662 { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5
1663 echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;}
1664 { (exit 1); exit 1; }; }
1667 AR
="\$(srcdir)/Modules/ar_beos"
1676 echo "$as_me:$LINENO: result: $without_gcc" >&5
1677 echo "${ECHO_T}$without_gcc" >&6
1682 echo "$as_me:$LINENO: checking for --with-cxx=<compiler>" >&5
1683 echo $ECHO_N "checking for --with-cxx=<compiler>... $ECHO_C" >&6
1685 # Check whether --with-cxx or --without-cxx was given.
1686 if test "${with_cxx+set}" = set; then
1703 echo "$as_me:$LINENO: result: $with_cxx" >&5
1704 echo "${ECHO_T}$with_cxx" >&6
1706 if test "$with_cxx" = "yes"
1708 { { echo "$as_me:$LINENO: error: must supply a compiler when using --with-cxx" >&5
1709 echo "$as_me: error: must supply a compiler when using --with-cxx" >&2;}
1710 { (exit 1); exit 1; }; }
1716 if test "$check_cxx" = "yes"
1718 for ac_prog
in $CCC c
++ g
++ gcc CC cxx cc
++ cl
1720 # Extract the first word of "$ac_prog", so it can be a program name with args.
1721 set dummy
$ac_prog; ac_word
=$2
1722 echo "$as_me:$LINENO: checking for $ac_word" >&5
1723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1724 if test "${ac_cv_prog_CXX+set}" = set; then
1725 echo $ECHO_N "(cached) $ECHO_C" >&6
1727 if test -n "$CXX"; then
1728 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
1730 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1734 test -z "$as_dir" && as_dir
=.
1735 for ac_exec_ext
in '' $ac_executable_extensions; do
1736 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1737 ac_cv_prog_CXX
="$ac_prog"
1738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1747 if test -n "$CXX"; then
1748 echo "$as_me:$LINENO: result: $CXX" >&5
1749 echo "${ECHO_T}$CXX" >&6
1751 echo "$as_me:$LINENO: result: no" >&5
1752 echo "${ECHO_T}no" >&6
1755 test -n "$CXX" && break
1757 test -n "$CXX" || CXX
="notfound"
1759 if test "$CXX" = "notfound"
1764 ac_cpp
='$CXXCPP $CPPFLAGS'
1765 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1766 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1767 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
1768 cat >conftest.
$ac_ext <<_ACEOF
1771 cat confdefs.h
>>conftest.
$ac_ext
1772 cat >>conftest.
$ac_ext <<_ACEOF
1773 /* end confdefs.h. */
1783 ac_clean_files_save
=$ac_clean_files
1784 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
1785 # Try to create an executable without -o first, disregard a.out.
1786 # It will help us diagnose broken compilers, and finding out an intuition
1788 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
1789 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
1790 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1791 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1792 (eval $ac_link_default) 2>&5
1794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1795 (exit $ac_status); }; then
1796 # Find the output, starting from the most likely. This scheme is
1797 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1800 # Be careful to initialize this variable, since it used to be cached.
1801 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1803 # b.out is created by i960 compilers.
1804 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
1806 test -f "$ac_file" ||
continue
1808 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
1811 # This is the source file.
1814 # We found the default executable, but exeext='' is most
1818 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1819 # FIXME: I believe we export ac_cv_exeext for Libtool,
1820 # but it would be cool to find out if it's true. Does anybody
1821 # maintain Libtool? --akim.
1829 echo "$as_me: failed program was:" >&5
1830 sed 's/^/| /' conftest.
$ac_ext >&5
1832 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
1833 See \`config.log' for more details." >&5
1834 echo "$as_me: error: C++ compiler cannot create executables
1835 See \`config.log' for more details." >&2;}
1836 { (exit 77); exit 77; }; }
1839 ac_exeext
=$ac_cv_exeext
1840 echo "$as_me:$LINENO: result: $ac_file" >&5
1841 echo "${ECHO_T}$ac_file" >&6
1843 # Check the compiler produces executables we can run. If not, either
1844 # the compiler is broken, or we cross compile.
1845 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
1846 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
1847 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1848 # If not cross compiling, check that we can run a simple program.
1849 if test "$cross_compiling" != yes; then
1850 if { ac_try
='./$ac_file'
1851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1855 (exit $ac_status); }; }; then
1858 if test "$cross_compiling" = maybe
; then
1861 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
1862 If you meant to cross compile, use \`--host'.
1863 See \`config.log' for more details." >&5
1864 echo "$as_me: error: cannot run C++ compiled programs.
1865 If you meant to cross compile, use \`--host'.
1866 See \`config.log' for more details." >&2;}
1867 { (exit 1); exit 1; }; }
1871 echo "$as_me:$LINENO: result: yes" >&5
1872 echo "${ECHO_T}yes" >&6
1874 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
1875 ac_clean_files
=$ac_clean_files_save
1876 # Check the compiler produces executables we can run. If not, either
1877 # the compiler is broken, or we cross compile.
1878 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1879 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1880 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1881 echo "${ECHO_T}$cross_compiling" >&6
1883 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1884 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1886 (eval $ac_link) 2>&5
1888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1889 (exit $ac_status); }; then
1890 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1891 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1892 # work properly (i.e., refer to `conftest.exe'), while it won't with
1894 for ac_file
in conftest.exe conftest conftest.
*; do
1895 test -f "$ac_file" ||
continue
1897 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
1898 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1905 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1906 See \`config.log' for more details." >&5
1907 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1908 See \`config.log' for more details." >&2;}
1909 { (exit 1); exit 1; }; }
1912 rm -f conftest
$ac_cv_exeext
1913 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1914 echo "${ECHO_T}$ac_cv_exeext" >&6
1916 rm -f conftest.
$ac_ext
1917 EXEEXT
=$ac_cv_exeext
1921 ac_cpp
='$CPP $CPPFLAGS'
1922 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1923 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1924 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1931 # If the user switches compilers, we can't believe the cache
1932 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
1934 { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
1935 (it is also a good idea to do 'make clean' before compiling)" >&5
1936 echo "$as_me: error: cached CC is different -- throw away $cache_file
1937 (it is also a good idea to do 'make clean' before compiling)" >&2;}
1938 { (exit 1); exit 1; }; }
1942 ac_cpp
='$CPP $CPPFLAGS'
1943 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1944 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1945 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1946 if test -n "$ac_tool_prefix"; then
1947 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1948 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1949 echo "$as_me:$LINENO: checking for $ac_word" >&5
1950 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1951 if test "${ac_cv_prog_CC+set}" = set; then
1952 echo $ECHO_N "(cached) $ECHO_C" >&6
1954 if test -n "$CC"; then
1955 ac_cv_prog_CC
="$CC" # Let the user override the test.
1957 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1961 test -z "$as_dir" && as_dir
=.
1962 for ac_exec_ext
in '' $ac_executable_extensions; do
1963 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1964 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1974 if test -n "$CC"; then
1975 echo "$as_me:$LINENO: result: $CC" >&5
1976 echo "${ECHO_T}$CC" >&6
1978 echo "$as_me:$LINENO: result: no" >&5
1979 echo "${ECHO_T}no" >&6
1983 if test -z "$ac_cv_prog_CC"; then
1985 # Extract the first word of "gcc", so it can be a program name with args.
1986 set dummy gcc
; ac_word
=$2
1987 echo "$as_me:$LINENO: checking for $ac_word" >&5
1988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1989 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1990 echo $ECHO_N "(cached) $ECHO_C" >&6
1992 if test -n "$ac_ct_CC"; then
1993 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1995 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1999 test -z "$as_dir" && as_dir
=.
2000 for ac_exec_ext
in '' $ac_executable_extensions; do
2001 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2002 ac_cv_prog_ac_ct_CC
="gcc"
2003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2011 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2012 if test -n "$ac_ct_CC"; then
2013 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2014 echo "${ECHO_T}$ac_ct_CC" >&6
2016 echo "$as_me:$LINENO: result: no" >&5
2017 echo "${ECHO_T}no" >&6
2025 if test -z "$CC"; then
2026 if test -n "$ac_tool_prefix"; then
2027 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2028 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2029 echo "$as_me:$LINENO: checking for $ac_word" >&5
2030 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2031 if test "${ac_cv_prog_CC+set}" = set; then
2032 echo $ECHO_N "(cached) $ECHO_C" >&6
2034 if test -n "$CC"; then
2035 ac_cv_prog_CC
="$CC" # Let the user override the test.
2037 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2041 test -z "$as_dir" && as_dir
=.
2042 for ac_exec_ext
in '' $ac_executable_extensions; do
2043 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2044 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2054 if test -n "$CC"; then
2055 echo "$as_me:$LINENO: result: $CC" >&5
2056 echo "${ECHO_T}$CC" >&6
2058 echo "$as_me:$LINENO: result: no" >&5
2059 echo "${ECHO_T}no" >&6
2063 if test -z "$ac_cv_prog_CC"; then
2065 # Extract the first word of "cc", so it can be a program name with args.
2066 set dummy cc
; ac_word
=$2
2067 echo "$as_me:$LINENO: checking for $ac_word" >&5
2068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2069 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2070 echo $ECHO_N "(cached) $ECHO_C" >&6
2072 if test -n "$ac_ct_CC"; then
2073 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2075 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2079 test -z "$as_dir" && as_dir
=.
2080 for ac_exec_ext
in '' $ac_executable_extensions; do
2081 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2082 ac_cv_prog_ac_ct_CC
="cc"
2083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2091 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2092 if test -n "$ac_ct_CC"; then
2093 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2094 echo "${ECHO_T}$ac_ct_CC" >&6
2096 echo "$as_me:$LINENO: result: no" >&5
2097 echo "${ECHO_T}no" >&6
2106 if test -z "$CC"; then
2107 # Extract the first word of "cc", so it can be a program name with args.
2108 set dummy cc
; ac_word
=$2
2109 echo "$as_me:$LINENO: checking for $ac_word" >&5
2110 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2111 if test "${ac_cv_prog_CC+set}" = set; then
2112 echo $ECHO_N "(cached) $ECHO_C" >&6
2114 if test -n "$CC"; then
2115 ac_cv_prog_CC
="$CC" # Let the user override the test.
2118 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2122 test -z "$as_dir" && as_dir
=.
2123 for ac_exec_ext
in '' $ac_executable_extensions; do
2124 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2125 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2126 ac_prog_rejected
=yes
2130 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2136 if test $ac_prog_rejected = yes; then
2137 # We found a bogon in the path, so make sure we never use it.
2138 set dummy
$ac_cv_prog_CC
2140 if test $# != 0; then
2141 # We chose a different compiler from the bogus one.
2142 # However, it has the same basename, so the bogon will be chosen
2143 # first if we set CC to just the basename; use the full file name.
2145 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2151 if test -n "$CC"; then
2152 echo "$as_me:$LINENO: result: $CC" >&5
2153 echo "${ECHO_T}$CC" >&6
2155 echo "$as_me:$LINENO: result: no" >&5
2156 echo "${ECHO_T}no" >&6
2160 if test -z "$CC"; then
2161 if test -n "$ac_tool_prefix"; then
2164 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2165 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2166 echo "$as_me:$LINENO: checking for $ac_word" >&5
2167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2168 if test "${ac_cv_prog_CC+set}" = set; then
2169 echo $ECHO_N "(cached) $ECHO_C" >&6
2171 if test -n "$CC"; then
2172 ac_cv_prog_CC
="$CC" # Let the user override the test.
2174 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2178 test -z "$as_dir" && as_dir
=.
2179 for ac_exec_ext
in '' $ac_executable_extensions; do
2180 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2181 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2191 if test -n "$CC"; then
2192 echo "$as_me:$LINENO: result: $CC" >&5
2193 echo "${ECHO_T}$CC" >&6
2195 echo "$as_me:$LINENO: result: no" >&5
2196 echo "${ECHO_T}no" >&6
2199 test -n "$CC" && break
2202 if test -z "$CC"; then
2206 # Extract the first word of "$ac_prog", so it can be a program name with args.
2207 set dummy
$ac_prog; ac_word
=$2
2208 echo "$as_me:$LINENO: checking for $ac_word" >&5
2209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2210 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2211 echo $ECHO_N "(cached) $ECHO_C" >&6
2213 if test -n "$ac_ct_CC"; then
2214 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2216 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2220 test -z "$as_dir" && as_dir
=.
2221 for ac_exec_ext
in '' $ac_executable_extensions; do
2222 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2223 ac_cv_prog_ac_ct_CC
="$ac_prog"
2224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2232 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2233 if test -n "$ac_ct_CC"; then
2234 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2235 echo "${ECHO_T}$ac_ct_CC" >&6
2237 echo "$as_me:$LINENO: result: no" >&5
2238 echo "${ECHO_T}no" >&6
2241 test -n "$ac_ct_CC" && break
2250 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2251 See \`config.log' for more details." >&5
2252 echo "$as_me: error: no acceptable C compiler found in \$PATH
2253 See \`config.log' for more details." >&2;}
2254 { (exit 1); exit 1; }; }
2256 # Provide some information about the compiler.
2257 echo "$as_me:$LINENO:" \
2258 "checking for C compiler version" >&5
2259 ac_compiler
=`set X $ac_compile; echo $2`
2260 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2261 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2264 (exit $ac_status); }
2265 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2266 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2269 (exit $ac_status); }
2270 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2271 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274 (exit $ac_status); }
2276 cat >conftest.
$ac_ext <<_ACEOF
2279 cat confdefs.h
>>conftest.
$ac_ext
2280 cat >>conftest.
$ac_ext <<_ACEOF
2281 /* end confdefs.h. */
2291 ac_clean_files_save
=$ac_clean_files
2292 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2293 # Try to create an executable without -o first, disregard a.out.
2294 # It will help us diagnose broken compilers, and finding out an intuition
2296 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2297 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2298 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2299 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2300 (eval $ac_link_default) 2>&5
2302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2303 (exit $ac_status); }; then
2304 # Find the output, starting from the most likely. This scheme is
2305 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2308 # Be careful to initialize this variable, since it used to be cached.
2309 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2311 # b.out is created by i960 compilers.
2312 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2314 test -f "$ac_file" ||
continue
2316 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2319 # This is the source file.
2322 # We found the default executable, but exeext='' is most
2326 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2327 # FIXME: I believe we export ac_cv_exeext for Libtool,
2328 # but it would be cool to find out if it's true. Does anybody
2329 # maintain Libtool? --akim.
2337 echo "$as_me: failed program was:" >&5
2338 sed 's/^/| /' conftest.
$ac_ext >&5
2340 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2341 See \`config.log' for more details." >&5
2342 echo "$as_me: error: C compiler cannot create executables
2343 See \`config.log' for more details." >&2;}
2344 { (exit 77); exit 77; }; }
2347 ac_exeext
=$ac_cv_exeext
2348 echo "$as_me:$LINENO: result: $ac_file" >&5
2349 echo "${ECHO_T}$ac_file" >&6
2351 # Check the compiler produces executables we can run. If not, either
2352 # the compiler is broken, or we cross compile.
2353 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2354 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2355 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2356 # If not cross compiling, check that we can run a simple program.
2357 if test "$cross_compiling" != yes; then
2358 if { ac_try
='./$ac_file'
2359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363 (exit $ac_status); }; }; then
2366 if test "$cross_compiling" = maybe
; then
2369 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2370 If you meant to cross compile, use \`--host'.
2371 See \`config.log' for more details." >&5
2372 echo "$as_me: error: cannot run C compiled programs.
2373 If you meant to cross compile, use \`--host'.
2374 See \`config.log' for more details." >&2;}
2375 { (exit 1); exit 1; }; }
2379 echo "$as_me:$LINENO: result: yes" >&5
2380 echo "${ECHO_T}yes" >&6
2382 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2383 ac_clean_files
=$ac_clean_files_save
2384 # Check the compiler produces executables we can run. If not, either
2385 # the compiler is broken, or we cross compile.
2386 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2387 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2388 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2389 echo "${ECHO_T}$cross_compiling" >&6
2391 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2392 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2394 (eval $ac_link) 2>&5
2396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397 (exit $ac_status); }; then
2398 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2399 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2400 # work properly (i.e., refer to `conftest.exe'), while it won't with
2402 for ac_file
in conftest.exe conftest conftest.
*; do
2403 test -f "$ac_file" ||
continue
2405 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2406 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2413 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2414 See \`config.log' for more details." >&5
2415 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2416 See \`config.log' for more details." >&2;}
2417 { (exit 1); exit 1; }; }
2420 rm -f conftest
$ac_cv_exeext
2421 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2422 echo "${ECHO_T}$ac_cv_exeext" >&6
2424 rm -f conftest.
$ac_ext
2425 EXEEXT
=$ac_cv_exeext
2427 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2428 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2429 if test "${ac_cv_objext+set}" = set; then
2430 echo $ECHO_N "(cached) $ECHO_C" >&6
2432 cat >conftest.
$ac_ext <<_ACEOF
2435 cat confdefs.h
>>conftest.
$ac_ext
2436 cat >>conftest.
$ac_ext <<_ACEOF
2437 /* end confdefs.h. */
2447 rm -f conftest.o conftest.obj
2448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2449 (eval $ac_compile) 2>&5
2451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2452 (exit $ac_status); }; then
2453 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2455 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2456 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2461 echo "$as_me: failed program was:" >&5
2462 sed 's/^/| /' conftest.
$ac_ext >&5
2464 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2465 See \`config.log' for more details." >&5
2466 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2467 See \`config.log' for more details." >&2;}
2468 { (exit 1); exit 1; }; }
2471 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2473 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2474 echo "${ECHO_T}$ac_cv_objext" >&6
2475 OBJEXT
=$ac_cv_objext
2477 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2478 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2479 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2480 echo $ECHO_N "(cached) $ECHO_C" >&6
2482 cat >conftest.
$ac_ext <<_ACEOF
2485 cat confdefs.h
>>conftest.
$ac_ext
2486 cat >>conftest.
$ac_ext <<_ACEOF
2487 /* end confdefs.h. */
2500 rm -f conftest.
$ac_objext
2501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2502 (eval $ac_compile) 2>conftest.er1
2504 grep -v '^ *+' conftest.er1
>conftest.err
2506 cat conftest.err
>&5
2507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508 (exit $ac_status); } &&
2509 { ac_try
='test -z "$ac_c_werror_flag"
2510 || test ! -s conftest.err'
2511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515 (exit $ac_status); }; } &&
2516 { ac_try
='test -s conftest.$ac_objext'
2517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2521 (exit $ac_status); }; }; then
2524 echo "$as_me: failed program was:" >&5
2525 sed 's/^/| /' conftest.
$ac_ext >&5
2529 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2530 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2533 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2534 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2535 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2536 ac_test_CFLAGS
=${CFLAGS+set}
2537 ac_save_CFLAGS
=$CFLAGS
2539 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2540 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2541 if test "${ac_cv_prog_cc_g+set}" = set; then
2542 echo $ECHO_N "(cached) $ECHO_C" >&6
2544 cat >conftest.
$ac_ext <<_ACEOF
2547 cat confdefs.h
>>conftest.
$ac_ext
2548 cat >>conftest.
$ac_ext <<_ACEOF
2549 /* end confdefs.h. */
2559 rm -f conftest.
$ac_objext
2560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2561 (eval $ac_compile) 2>conftest.er1
2563 grep -v '^ *+' conftest.er1
>conftest.err
2565 cat conftest.err
>&5
2566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2567 (exit $ac_status); } &&
2568 { ac_try
='test -z "$ac_c_werror_flag"
2569 || test ! -s conftest.err'
2570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574 (exit $ac_status); }; } &&
2575 { ac_try
='test -s conftest.$ac_objext'
2576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580 (exit $ac_status); }; }; then
2583 echo "$as_me: failed program was:" >&5
2584 sed 's/^/| /' conftest.
$ac_ext >&5
2588 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2590 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2591 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2592 if test "$ac_test_CFLAGS" = set; then
2593 CFLAGS
=$ac_save_CFLAGS
2594 elif test $ac_cv_prog_cc_g = yes; then
2595 if test "$GCC" = yes; then
2601 if test "$GCC" = yes; then
2607 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2608 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2609 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2610 echo $ECHO_N "(cached) $ECHO_C" >&6
2612 ac_cv_prog_cc_stdc
=no
2614 cat >conftest.
$ac_ext <<_ACEOF
2617 cat confdefs.h
>>conftest.
$ac_ext
2618 cat >>conftest.
$ac_ext <<_ACEOF
2619 /* end confdefs.h. */
2622 #include <sys/types.h>
2623 #include <sys/stat.h>
2624 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2625 struct buf { int x; };
2626 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2627 static char *e (p, i)
2633 static char *f (char * (*g) (char **, int), char **p, ...)
2638 s = g (p, va_arg (v,int));
2643 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2644 function prototypes and stuff, but not '\xHH' hex character constants.
2645 These don't provoke an error unfortunately, instead are silently treated
2646 as 'x'. The following induces an error, until -std1 is added to get
2647 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2648 array size at least. It's necessary to write '\x00'==0 to get something
2649 that's true only with -std1. */
2650 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2652 int test (int i, double x);
2653 struct s1 {int (*f) (int a);};
2654 struct s2 {int (*f) (double a);};
2655 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2661 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2666 # Don't try gcc -ansi; that turns off useful extensions and
2667 # breaks some systems' header files.
2668 # AIX -qlanglvl=ansi
2669 # Ultrix and OSF/1 -std1
2670 # HP-UX 10.20 and later -Ae
2671 # HP-UX older versions -Aa -D_HPUX_SOURCE
2672 # SVR4 -Xc -D__EXTENSIONS__
2673 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2675 CC
="$ac_save_CC $ac_arg"
2676 rm -f conftest.
$ac_objext
2677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2678 (eval $ac_compile) 2>conftest.er1
2680 grep -v '^ *+' conftest.er1
>conftest.err
2682 cat conftest.err
>&5
2683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2684 (exit $ac_status); } &&
2685 { ac_try
='test -z "$ac_c_werror_flag"
2686 || test ! -s conftest.err'
2687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691 (exit $ac_status); }; } &&
2692 { ac_try
='test -s conftest.$ac_objext'
2693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697 (exit $ac_status); }; }; then
2698 ac_cv_prog_cc_stdc
=$ac_arg
2701 echo "$as_me: failed program was:" >&5
2702 sed 's/^/| /' conftest.
$ac_ext >&5
2705 rm -f conftest.err conftest.
$ac_objext
2707 rm -f conftest.
$ac_ext conftest.
$ac_objext
2712 case "x$ac_cv_prog_cc_stdc" in
2714 echo "$as_me:$LINENO: result: none needed" >&5
2715 echo "${ECHO_T}none needed" >&6 ;;
2717 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2718 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2719 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2722 # Some people use a C++ compiler to compile C. Since we use `exit',
2723 # in C++ we need to declare it. In case someone uses the same compiler
2724 # for both compiling C and C++ we need to have the C++ compiler decide
2725 # the declaration of exit, since it's the most demanding environment.
2726 cat >conftest.
$ac_ext <<_ACEOF
2731 rm -f conftest.
$ac_objext
2732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2733 (eval $ac_compile) 2>conftest.er1
2735 grep -v '^ *+' conftest.er1
>conftest.err
2737 cat conftest.err
>&5
2738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739 (exit $ac_status); } &&
2740 { ac_try
='test -z "$ac_c_werror_flag"
2741 || test ! -s conftest.err'
2742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746 (exit $ac_status); }; } &&
2747 { ac_try
='test -s conftest.$ac_objext'
2748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752 (exit $ac_status); }; }; then
2753 for ac_declaration
in \
2755 'extern "C" void std::exit (int) throw (); using std::exit;' \
2756 'extern "C" void std::exit (int); using std::exit;' \
2757 'extern "C" void exit (int) throw ();' \
2758 'extern "C" void exit (int);' \
2761 cat >conftest.
$ac_ext <<_ACEOF
2764 cat confdefs.h
>>conftest.
$ac_ext
2765 cat >>conftest.
$ac_ext <<_ACEOF
2766 /* end confdefs.h. */
2777 rm -f conftest.
$ac_objext
2778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2779 (eval $ac_compile) 2>conftest.er1
2781 grep -v '^ *+' conftest.er1
>conftest.err
2783 cat conftest.err
>&5
2784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2785 (exit $ac_status); } &&
2786 { ac_try
='test -z "$ac_c_werror_flag"
2787 || test ! -s conftest.err'
2788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792 (exit $ac_status); }; } &&
2793 { ac_try
='test -s conftest.$ac_objext'
2794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798 (exit $ac_status); }; }; then
2801 echo "$as_me: failed program was:" >&5
2802 sed 's/^/| /' conftest.
$ac_ext >&5
2806 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2807 cat >conftest.
$ac_ext <<_ACEOF
2810 cat confdefs.h
>>conftest.
$ac_ext
2811 cat >>conftest.
$ac_ext <<_ACEOF
2812 /* end confdefs.h. */
2822 rm -f conftest.
$ac_objext
2823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2824 (eval $ac_compile) 2>conftest.er1
2826 grep -v '^ *+' conftest.er1
>conftest.err
2828 cat conftest.err
>&5
2829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2830 (exit $ac_status); } &&
2831 { ac_try
='test -z "$ac_c_werror_flag"
2832 || test ! -s conftest.err'
2833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2837 (exit $ac_status); }; } &&
2838 { ac_try
='test -s conftest.$ac_objext'
2839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843 (exit $ac_status); }; }; then
2846 echo "$as_me: failed program was:" >&5
2847 sed 's/^/| /' conftest.
$ac_ext >&5
2850 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2853 if test -n "$ac_declaration"; then
2854 echo '#ifdef __cplusplus' >>confdefs.h
2855 echo $ac_declaration >>confdefs.h
2856 echo '#endif' >>confdefs.h
2860 echo "$as_me: failed program was:" >&5
2861 sed 's/^/| /' conftest.
$ac_ext >&5
2864 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2866 ac_cpp
='$CPP $CPPFLAGS'
2867 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2868 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2869 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2872 # checks for UNIX variants that set C preprocessor variables
2875 ac_cpp
='$CPP $CPPFLAGS'
2876 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2877 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2878 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2879 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2880 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2881 # On Suns, sometimes $CPP names a directory.
2882 if test -n "$CPP" && test -d "$CPP"; then
2885 if test -z "$CPP"; then
2886 if test "${ac_cv_prog_CPP+set}" = set; then
2887 echo $ECHO_N "(cached) $ECHO_C" >&6
2889 # Double quotes because CPP needs to be expanded
2890 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2893 for ac_c_preproc_warn_flag
in '' yes
2895 # Use a header file that comes with gcc, so configuring glibc
2896 # with a fresh cross-compiler works.
2897 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2898 # <limits.h> exists even on freestanding compilers.
2899 # On the NeXT, cc -E runs the code through the compiler's parser,
2900 # not just through cpp. "Syntax error" is here to catch this case.
2901 cat >conftest.
$ac_ext <<_ACEOF
2904 cat confdefs.h
>>conftest.
$ac_ext
2905 cat >>conftest.
$ac_ext <<_ACEOF
2906 /* end confdefs.h. */
2908 # include <limits.h>
2910 # include <assert.h>
2914 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2915 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2917 grep -v '^ *+' conftest.er1
>conftest.err
2919 cat conftest.err
>&5
2920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921 (exit $ac_status); } >/dev
/null
; then
2922 if test -s conftest.err
; then
2923 ac_cpp_err
=$ac_c_preproc_warn_flag
2924 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2931 if test -z "$ac_cpp_err"; then
2934 echo "$as_me: failed program was:" >&5
2935 sed 's/^/| /' conftest.
$ac_ext >&5
2937 # Broken: fails on valid input.
2940 rm -f conftest.err conftest.
$ac_ext
2942 # OK, works on sane cases. Now check whether non-existent headers
2943 # can be detected and how.
2944 cat >conftest.
$ac_ext <<_ACEOF
2947 cat confdefs.h
>>conftest.
$ac_ext
2948 cat >>conftest.
$ac_ext <<_ACEOF
2949 /* end confdefs.h. */
2950 #include <ac_nonexistent.h>
2952 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2953 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2955 grep -v '^ *+' conftest.er1
>conftest.err
2957 cat conftest.err
>&5
2958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959 (exit $ac_status); } >/dev
/null
; then
2960 if test -s conftest.err
; then
2961 ac_cpp_err
=$ac_c_preproc_warn_flag
2962 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2969 if test -z "$ac_cpp_err"; then
2970 # Broken: success on invalid input.
2973 echo "$as_me: failed program was:" >&5
2974 sed 's/^/| /' conftest.
$ac_ext >&5
2976 # Passes both tests.
2980 rm -f conftest.err conftest.
$ac_ext
2983 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2984 rm -f conftest.err conftest.
$ac_ext
2985 if $ac_preproc_ok; then
2997 echo "$as_me:$LINENO: result: $CPP" >&5
2998 echo "${ECHO_T}$CPP" >&6
3000 for ac_c_preproc_warn_flag
in '' yes
3002 # Use a header file that comes with gcc, so configuring glibc
3003 # with a fresh cross-compiler works.
3004 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3005 # <limits.h> exists even on freestanding compilers.
3006 # On the NeXT, cc -E runs the code through the compiler's parser,
3007 # not just through cpp. "Syntax error" is here to catch this case.
3008 cat >conftest.
$ac_ext <<_ACEOF
3011 cat confdefs.h
>>conftest.
$ac_ext
3012 cat >>conftest.
$ac_ext <<_ACEOF
3013 /* end confdefs.h. */
3015 # include <limits.h>
3017 # include <assert.h>
3021 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3022 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3024 grep -v '^ *+' conftest.er1
>conftest.err
3026 cat conftest.err
>&5
3027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028 (exit $ac_status); } >/dev
/null
; then
3029 if test -s conftest.err
; then
3030 ac_cpp_err
=$ac_c_preproc_warn_flag
3031 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3038 if test -z "$ac_cpp_err"; then
3041 echo "$as_me: failed program was:" >&5
3042 sed 's/^/| /' conftest.
$ac_ext >&5
3044 # Broken: fails on valid input.
3047 rm -f conftest.err conftest.
$ac_ext
3049 # OK, works on sane cases. Now check whether non-existent headers
3050 # can be detected and how.
3051 cat >conftest.
$ac_ext <<_ACEOF
3054 cat confdefs.h
>>conftest.
$ac_ext
3055 cat >>conftest.
$ac_ext <<_ACEOF
3056 /* end confdefs.h. */
3057 #include <ac_nonexistent.h>
3059 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3060 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3062 grep -v '^ *+' conftest.er1
>conftest.err
3064 cat conftest.err
>&5
3065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3066 (exit $ac_status); } >/dev
/null
; then
3067 if test -s conftest.err
; then
3068 ac_cpp_err
=$ac_c_preproc_warn_flag
3069 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3076 if test -z "$ac_cpp_err"; then
3077 # Broken: success on invalid input.
3080 echo "$as_me: failed program was:" >&5
3081 sed 's/^/| /' conftest.
$ac_ext >&5
3083 # Passes both tests.
3087 rm -f conftest.err conftest.
$ac_ext
3090 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3091 rm -f conftest.err conftest.
$ac_ext
3092 if $ac_preproc_ok; then
3095 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3096 See \`config.log' for more details." >&5
3097 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3098 See \`config.log' for more details." >&2;}
3099 { (exit 1); exit 1; }; }
3103 ac_cpp
='$CPP $CPPFLAGS'
3104 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3105 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3106 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3109 echo "$as_me:$LINENO: checking for egrep" >&5
3110 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3111 if test "${ac_cv_prog_egrep+set}" = set; then
3112 echo $ECHO_N "(cached) $ECHO_C" >&6
3114 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3115 then ac_cv_prog_egrep
='grep -E'
3116 else ac_cv_prog_egrep
='egrep'
3119 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3120 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3121 EGREP
=$ac_cv_prog_egrep
3125 echo "$as_me:$LINENO: checking for AIX" >&5
3126 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3127 cat >conftest.
$ac_ext <<_ACEOF
3130 cat confdefs.h
>>conftest.
$ac_ext
3131 cat >>conftest.
$ac_ext <<_ACEOF
3132 /* end confdefs.h. */
3138 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3139 $EGREP "yes" >/dev
/null
2>&1; then
3140 echo "$as_me:$LINENO: result: yes" >&5
3141 echo "${ECHO_T}yes" >&6
3142 cat >>confdefs.h
<<\_ACEOF
3143 #define _ALL_SOURCE 1
3147 echo "$as_me:$LINENO: result: no" >&5
3148 echo "${ECHO_T}no" >&6
3154 # Check for unsupported systems
3155 case $ac_sys_system/$ac_sys_release in
3157 echo This system \
($ac_sys_system/$ac_sys_release\
) is no longer supported.
3158 echo See README
for details.
3163 echo "$as_me:$LINENO: checking for --with-suffix" >&5
3164 echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6
3166 # Check whether --with-suffix or --without-suffix was given.
3167 if test "${with_suffix+set}" = set; then
3168 withval
="$with_suffix"
3173 *) EXEEXT
=$withval;;
3176 echo "$as_me:$LINENO: result: $EXEEXT" >&5
3177 echo "${ECHO_T}$EXEEXT" >&6
3179 # Test whether we're running on a non-case-sensitive system, in which
3180 # case we give a warning if no ext is given
3182 echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
3183 echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6
3184 if test ! -d CaseSensitiveTestDir
; then
3185 mkdir CaseSensitiveTestDir
3188 if test -d casesensitivetestdir
3190 echo "$as_me:$LINENO: result: yes" >&5
3191 echo "${ECHO_T}yes" >&6
3194 echo "$as_me:$LINENO: result: no" >&5
3195 echo "${ECHO_T}no" >&6
3198 rmdir CaseSensitiveTestDir
3203 gcc
) CC
="$CC -D_HAVE_BSDI";;
3207 case $ac_sys_system in
3210 cc|
*/cc
) CC
="$CC -Ae";;
3214 cc
) CC
="$CC -Wl,-Bexport";;
3217 # Some functions have a prototype only with that define, e.g. confstr
3219 cat >>confdefs.h
<<\_ACEOF
3220 #define __EXTENSIONS__ 1
3228 echo "$as_me:$LINENO: checking LIBRARY" >&5
3229 echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6
3230 if test -z "$LIBRARY"
3232 LIBRARY
='libpython$(VERSION).a'
3234 echo "$as_me:$LINENO: result: $LIBRARY" >&5
3235 echo "${ECHO_T}$LIBRARY" >&6
3237 # LDLIBRARY is the name of the library to link against (as opposed to the
3238 # name of the library into which to insert object files). BLDLIBRARY is also
3239 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
3240 # is blank as the main program is not linked directly against LDLIBRARY.
3241 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
3242 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
3243 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
3244 # DLLLIBRARY is the shared (i.e., DLL) library.
3246 # RUNSHARED is used to run shared python without installed libraries
3248 # INSTSONAME is the name of the shared library that will be use to install
3249 # on the system - some systems like version suffix, others don't
3256 LDLIBRARY
="$LIBRARY"
3257 BLDLIBRARY
='$(LDLIBRARY)'
3258 INSTSONAME
='$(LDLIBRARY)'
3263 # LINKCC is the command that links the python executable -- default is $(CC).
3264 # If CXX is set, and if it is needed to link a main function that was
3265 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
3266 # python might then depend on the C++ runtime
3267 # This is altered for AIX in order to build the export list before
3270 echo "$as_me:$LINENO: checking LINKCC" >&5
3271 echo $ECHO_N "checking LINKCC... $ECHO_C" >&6
3272 if test -z "$LINKCC"
3274 if test -z "$CXX"; then
3275 LINKCC
="\$(PURIFY) \$(CC)"
3277 echo 'extern "C" void foo();int main(){foo();}' > conftest_a.cc
3278 $CXX -c conftest_a.cc
# 2>&5
3279 echo 'void foo(){}' > conftest_b.
$ac_ext
3280 $CC -c conftest_b.
$ac_ext # 2>&5
3281 if $CC -o conftest
$ac_exeext conftest_a.
$ac_objext conftest_b.
$ac_objext 2>&5 \
3282 && test -s conftest
$ac_exeext && .
/conftest
$ac_exeext
3284 LINKCC
="\$(PURIFY) \$(CC)"
3286 LINKCC
="\$(PURIFY) \$(CXX)"
3290 case $ac_sys_system in
3293 if test $ac_sys_release -ge 5 -o \
3294 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
3297 LINKCC
="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
3299 LINKCC
="$LINKCC -L/usr/lib/ia64l64";;
3302 echo "$as_me:$LINENO: result: $LINKCC" >&5
3303 echo "${ECHO_T}$LINKCC" >&6
3305 echo "$as_me:$LINENO: checking for --enable-shared" >&5
3306 echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6
3307 # Check whether --enable-shared or --disable-shared was given.
3308 if test "${enable_shared+set}" = set; then
3309 enableval
="$enable_shared"
3313 if test -z "$enable_shared"
3315 case $ac_sys_system in
3317 enable_shared
="yes";;
3319 enable_shared
="no";;
3322 echo "$as_me:$LINENO: result: $enable_shared" >&5
3323 echo "${ECHO_T}$enable_shared" >&6
3325 echo "$as_me:$LINENO: checking for --enable-profiling" >&5
3326 echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6
3327 # Check whether --enable-profiling or --disable-profiling was given.
3328 if test "${enable_profiling+set}" = set; then
3329 enableval
="$enable_profiling"
3332 if test "$cross_compiling" = yes; then
3333 ac_enable_profiling
="no"
3335 cat >conftest.
$ac_ext <<_ACEOF
3338 cat confdefs.h
>>conftest.
$ac_ext
3339 cat >>conftest.
$ac_ext <<_ACEOF
3340 /* end confdefs.h. */
3341 int main() { return 0; }
3343 rm -f conftest
$ac_exeext
3344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3345 (eval $ac_link) 2>&5
3347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353 (exit $ac_status); }; }; then
3354 ac_enable_profiling
="yes"
3356 echo "$as_me: program exited with status $ac_status" >&5
3357 echo "$as_me: failed program was:" >&5
3358 sed 's/^/| /' conftest.
$ac_ext >&5
3361 ac_enable_profiling
="no"
3363 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3367 echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5
3368 echo "${ECHO_T}$ac_enable_profiling" >&6
3370 case "$ac_enable_profiling" in
3372 BASECFLAGS
="-pg $BASECFLAGS"
3373 LDFLAGS
="-pg $LDFLAGS"
3377 echo "$as_me:$LINENO: checking LDLIBRARY" >&5
3378 echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6
3380 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
3381 # library that we build, but we do not want to link against it (we
3382 # will find it with a -framework option). For this reason there is an
3383 # extra variable BLDLIBRARY against which Python and the extension
3384 # modules are linked, BLDLIBRARY. This is normally the same as
3385 # LDLIBRARY, but empty for MacOSX framework builds.
3386 if test "$enable_framework"
3388 LDLIBRARY
='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
3389 RUNSHARED
=DYLD_FRAMEWORK_PATH
="`pwd`:$DYLD_FRAMEWORK_PATH"
3392 BLDLIBRARY
='$(LDLIBRARY)'
3395 # Other platforms follow
3396 if test $enable_shared = "yes"; then
3398 cat >>confdefs.h
<<\_ACEOF
3399 #define Py_ENABLE_SHARED 1
3402 case $ac_sys_system in
3404 LDLIBRARY
='libpython$(VERSION).so'
3407 LDLIBRARY
='libpython$(VERSION).dll.a'
3408 DLLLIBRARY
='libpython$(VERSION).dll'
3411 LDLIBRARY
='libpython$(VERSION).so'
3412 BLDLIBRARY
='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
3413 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
3414 INSTSONAME
="$LDLIBRARY".
$SOVERSION
3416 Linux
*|GNU
*|NetBSD
*|FreeBSD
*)
3417 LDLIBRARY
='libpython$(VERSION).so'
3418 BLDLIBRARY
='-L. -lpython$(VERSION)'
3419 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
3420 case $ac_sys_system in
3422 SOVERSION
=`echo $SOVERSION|cut -d "." -f 1`
3425 INSTSONAME
="$LDLIBRARY".
$SOVERSION
3428 LDLIBRARY
='libpython$(VERSION).sl'
3429 BLDLIBRARY
='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
3430 RUNSHARED
=SHLIB_PATH
=`pwd`:${SHLIB_PATH}
3433 LDLIBRARY
='libpython$(VERSION).so'
3434 BLDLIBRARY
='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
3435 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
3438 LDLIBRARY
='libpython$(VERSION).so'
3439 BLDLIBRARY
='-L. -lpython$(VERSION)'
3440 RUNSHARED
=DLL_PATH
=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
3443 else # shared is disabled
3444 case $ac_sys_system in
3446 BLDLIBRARY
='$(LIBRARY)'
3447 LDLIBRARY
='libpython$(VERSION).dll.a'
3452 echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
3453 echo "${ECHO_T}$LDLIBRARY" >&6
3455 if test -n "$ac_tool_prefix"; then
3456 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3457 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3458 echo "$as_me:$LINENO: checking for $ac_word" >&5
3459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3460 if test "${ac_cv_prog_RANLIB+set}" = set; then
3461 echo $ECHO_N "(cached) $ECHO_C" >&6
3463 if test -n "$RANLIB"; then
3464 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3466 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3470 test -z "$as_dir" && as_dir
=.
3471 for ac_exec_ext
in '' $ac_executable_extensions; do
3472 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3473 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3482 RANLIB
=$ac_cv_prog_RANLIB
3483 if test -n "$RANLIB"; then
3484 echo "$as_me:$LINENO: result: $RANLIB" >&5
3485 echo "${ECHO_T}$RANLIB" >&6
3487 echo "$as_me:$LINENO: result: no" >&5
3488 echo "${ECHO_T}no" >&6
3492 if test -z "$ac_cv_prog_RANLIB"; then
3493 ac_ct_RANLIB
=$RANLIB
3494 # Extract the first word of "ranlib", so it can be a program name with args.
3495 set dummy ranlib
; ac_word
=$2
3496 echo "$as_me:$LINENO: checking for $ac_word" >&5
3497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3498 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3499 echo $ECHO_N "(cached) $ECHO_C" >&6
3501 if test -n "$ac_ct_RANLIB"; then
3502 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3504 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3508 test -z "$as_dir" && as_dir
=.
3509 for ac_exec_ext
in '' $ac_executable_extensions; do
3510 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3511 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3518 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
3521 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3522 if test -n "$ac_ct_RANLIB"; then
3523 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3524 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3526 echo "$as_me:$LINENO: result: no" >&5
3527 echo "${ECHO_T}no" >&6
3530 RANLIB
=$ac_ct_RANLIB
3532 RANLIB
="$ac_cv_prog_RANLIB"
3536 for ac_prog
in ar aal
3538 # Extract the first word of "$ac_prog", so it can be a program name with args.
3539 set dummy
$ac_prog; ac_word
=$2
3540 echo "$as_me:$LINENO: checking for $ac_word" >&5
3541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3542 if test "${ac_cv_prog_AR+set}" = set; then
3543 echo $ECHO_N "(cached) $ECHO_C" >&6
3545 if test -n "$AR"; then
3546 ac_cv_prog_AR
="$AR" # Let the user override the test.
3548 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3552 test -z "$as_dir" && as_dir
=.
3553 for ac_exec_ext
in '' $ac_executable_extensions; do
3554 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3555 ac_cv_prog_AR
="$ac_prog"
3556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3565 if test -n "$AR"; then
3566 echo "$as_me:$LINENO: result: $AR" >&5
3567 echo "${ECHO_T}$AR" >&6
3569 echo "$as_me:$LINENO: result: no" >&5
3570 echo "${ECHO_T}no" >&6
3573 test -n "$AR" && break
3575 test -n "$AR" || AR
="ar"
3579 # Extract the first word of "svnversion", so it can be a program name with args.
3580 set dummy svnversion
; ac_word
=$2
3581 echo "$as_me:$LINENO: checking for $ac_word" >&5
3582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3583 if test "${ac_cv_prog_SVNVERSION+set}" = set; then
3584 echo $ECHO_N "(cached) $ECHO_C" >&6
3586 if test -n "$SVNVERSION"; then
3587 ac_cv_prog_SVNVERSION
="$SVNVERSION" # Let the user override the test.
3589 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3593 test -z "$as_dir" && as_dir
=.
3594 for ac_exec_ext
in '' $ac_executable_extensions; do
3595 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3596 ac_cv_prog_SVNVERSION
="found"
3597 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3605 SVNVERSION
=$ac_cv_prog_SVNVERSION
3606 if test -n "$SVNVERSION"; then
3607 echo "$as_me:$LINENO: result: $SVNVERSION" >&5
3608 echo "${ECHO_T}$SVNVERSION" >&6
3610 echo "$as_me:$LINENO: result: no" >&5
3611 echo "${ECHO_T}no" >&6
3614 if test $SVNVERSION = found
3616 SVNVERSION
="svnversion \$(srcdir)"
3618 SVNVERSION
="echo exported"
3623 # install -d does not work on BSDI or HP-UX
3624 if test -z "$INSTALL"
3626 INSTALL
="${srcdir}/install-sh -c"
3630 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
3631 if test -f $ac_dir/install-sh
; then
3633 ac_install_sh
="$ac_aux_dir/install-sh -c"
3635 elif test -f $ac_dir/install.sh
; then
3637 ac_install_sh
="$ac_aux_dir/install.sh -c"
3639 elif test -f $ac_dir/shtool
; then
3641 ac_install_sh
="$ac_aux_dir/shtool install -c"
3645 if test -z "$ac_aux_dir"; then
3646 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
3647 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
3648 { (exit 1); exit 1; }; }
3650 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
3651 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
3652 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3654 # Find a good install program. We prefer a C program (faster),
3655 # so one script is as good as another. But avoid the broken or
3656 # incompatible versions:
3657 # SysV /etc/install, /usr/sbin/install
3658 # SunOS /usr/etc/install
3659 # IRIX /sbin/install
3661 # AmigaOS /C/install, which installs bootblocks on floppy discs
3662 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3663 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3664 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3665 # OS/2's system install, which has a completely different semantic
3666 # ./install, which can be erroneously created by make from ./install.sh.
3667 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3668 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3669 if test -z "$INSTALL"; then
3670 if test "${ac_cv_path_install+set}" = set; then
3671 echo $ECHO_N "(cached) $ECHO_C" >&6
3673 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3677 test -z "$as_dir" && as_dir
=.
3678 # Account for people who put trailing slashes in PATH elements.
3680 .
/ | .
// |
/cC
/* | \
3681 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3682 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
3685 # OSF1 and SCO ODT 3.0 have their own names for install.
3686 # Don't use installbsd from OSF since it installs stuff as root
3688 for ac_prog
in ginstall scoinst
install; do
3689 for ac_exec_ext
in '' $ac_executable_extensions; do
3690 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3691 if test $ac_prog = install &&
3692 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3693 # AIX install. It has an incompatible calling convention.
3695 elif test $ac_prog = install &&
3696 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3697 # program-specific install script used by HP pwplus--don't use.
3700 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3712 if test "${ac_cv_path_install+set}" = set; then
3713 INSTALL
=$ac_cv_path_install
3715 # As a last resort, use the slow shell script. We don't cache a
3716 # path for INSTALL within a source directory, because that will
3717 # break other packages using the cache if that directory is
3718 # removed, or if the path is relative.
3719 INSTALL
=$ac_install_sh
3722 echo "$as_me:$LINENO: result: $INSTALL" >&5
3723 echo "${ECHO_T}$INSTALL" >&6
3725 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3726 # It thinks the first close brace ends the variable substitution.
3727 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3729 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3731 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3734 # Not every filesystem supports hard links
3736 if test -z "$LN" ; then
3737 case $ac_sys_system in
3739 CYGWIN
*) LN
="ln -s";;
3740 atheos
*) LN
="ln -s";;
3745 # Check for --with-pydebug
3746 echo "$as_me:$LINENO: checking for --with-pydebug" >&5
3747 echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6
3749 # Check whether --with-pydebug or --without-pydebug was given.
3750 if test "${with_pydebug+set}" = set; then
3751 withval
="$with_pydebug"
3753 if test "$withval" != no
3756 cat >>confdefs.h
<<\_ACEOF
3760 echo "$as_me:$LINENO: result: yes" >&5
3761 echo "${ECHO_T}yes" >&6;
3763 else echo "$as_me:$LINENO: result: no" >&5
3764 echo "${ECHO_T}no" >&6; Py_DEBUG
='false'
3767 echo "$as_me:$LINENO: result: no" >&5
3768 echo "${ECHO_T}no" >&6
3771 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
3772 # merged with this chunk of code?
3774 # Optimizer/debugger flags
3775 # ------------------------
3776 # (The following bit of code is complicated enough - please keep things
3777 # indented properly. Just pretend you're editing Python code. ;-)
3779 # There are two parallel sets of case statements below, one that checks to
3780 # see if OPT was set and one that does BASECFLAGS setting based upon
3781 # compiler and platform. BASECFLAGS tweaks need to be made even if the
3784 # tweak OPT based on compiler and platform, only if the user didn't set
3785 # it on the command line
3791 case $ac_cv_prog_cc_g in
3793 if test "$Py_DEBUG" = 'true' ; then
3794 # Optimization messes up debuggers, so turn it off for
3796 OPT
="-g -Wall -Wstrict-prototypes"
3798 OPT
="-g -O3 -Wall -Wstrict-prototypes"
3802 OPT
="-O3 -Wall -Wstrict-prototypes"
3805 case $ac_sys_system in
3806 SCO_SV
*) OPT
="$OPT -m486 -DSCO5"
3816 # The current (beta) Monterey compiler dies with optimizations
3817 # XXX what is Monterey? Does it still die w/ -O? Can we get rid of this?
3818 case $ac_sys_system in
3827 # tweak BASECFLAGS based on compiler and platform
3830 # Python violates C99 rules, by casting between incompatible
3831 # pointer types. GCC may generate bad code as a result of that,
3832 # so use -fno-strict-aliasing if supported.
3833 echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5
3834 echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6
3836 CC
="$CC -fno-strict-aliasing"
3837 if test "$cross_compiling" = yes; then
3838 ac_cv_no_strict_aliasing_ok
=no
3840 cat >conftest.
$ac_ext <<_ACEOF
3843 cat confdefs.h
>>conftest.
$ac_ext
3844 cat >>conftest.
$ac_ext <<_ACEOF
3845 /* end confdefs.h. */
3846 int main() { return 0; }
3848 rm -f conftest
$ac_exeext
3849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3850 (eval $ac_link) 2>&5
3852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858 (exit $ac_status); }; }; then
3859 ac_cv_no_strict_aliasing_ok
=yes
3861 echo "$as_me: program exited with status $ac_status" >&5
3862 echo "$as_me: failed program was:" >&5
3863 sed 's/^/| /' conftest.
$ac_ext >&5
3866 ac_cv_no_strict_aliasing_ok
=no
3868 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3871 echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5
3872 echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6
3873 if test $ac_cv_no_strict_aliasing_ok = yes
3875 BASECFLAGS
="$BASECFLAGS -fno-strict-aliasing"
3877 case $ac_sys_system in
3879 BASECFLAGS
="$BASECFLAGS -m486 -DSCO5"
3881 # is there any other compiler on Darwin besides gcc?
3883 BASECFLAGS
="$BASECFLAGS -Wno-long-double -no-cpp-precomp -mno-fused-madd"
3889 case $ac_sys_system in
3890 OpenUNIX
*|UnixWare
*)
3891 BASECFLAGS
="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
3894 BASECFLAGS
="$BASECFLAGS -ieee -std"
3897 BASECFLAGS
="$BASECFLAGS -belf -Ki486 -DSCO5"
3903 if test "$Py_DEBUG" = 'true'; then
3909 if test "$ac_arch_flags"
3911 BASECFLAGS
="$BASECFLAGS $ac_arch_flags"
3914 # disable check for icc since it seems to pass, but generates a warning
3917 ac_cv_opt_olimit_ok
=no
3920 echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
3921 echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6
3922 if test "${ac_cv_opt_olimit_ok+set}" = set; then
3923 echo $ECHO_N "(cached) $ECHO_C" >&6
3926 CC
="$CC -OPT:Olimit=0"
3927 if test "$cross_compiling" = yes; then
3928 ac_cv_opt_olimit_ok
=no
3930 cat >conftest.
$ac_ext <<_ACEOF
3933 cat confdefs.h
>>conftest.
$ac_ext
3934 cat >>conftest.
$ac_ext <<_ACEOF
3935 /* end confdefs.h. */
3936 int main() { return 0; }
3938 rm -f conftest
$ac_exeext
3939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3940 (eval $ac_link) 2>&5
3942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3943 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3948 (exit $ac_status); }; }; then
3949 ac_cv_opt_olimit_ok
=yes
3951 echo "$as_me: program exited with status $ac_status" >&5
3952 echo "$as_me: failed program was:" >&5
3953 sed 's/^/| /' conftest.
$ac_ext >&5
3956 ac_cv_opt_olimit_ok
=no
3958 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3963 echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
3964 echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6
3965 if test $ac_cv_opt_olimit_ok = yes; then
3966 case $ac_sys_system in
3967 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
3968 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
3973 BASECFLAGS
="$BASECFLAGS -OPT:Olimit=0"
3977 echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
3978 echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6
3979 if test "${ac_cv_olimit_ok+set}" = set; then
3980 echo $ECHO_N "(cached) $ECHO_C" >&6
3983 CC
="$CC -Olimit 1500"
3984 if test "$cross_compiling" = yes; then
3987 cat >conftest.
$ac_ext <<_ACEOF
3990 cat confdefs.h
>>conftest.
$ac_ext
3991 cat >>conftest.
$ac_ext <<_ACEOF
3992 /* end confdefs.h. */
3993 int main() { return 0; }
3995 rm -f conftest
$ac_exeext
3996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3997 (eval $ac_link) 2>&5
3999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4000 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4005 (exit $ac_status); }; }; then
4008 echo "$as_me: program exited with status $ac_status" >&5
4009 echo "$as_me: failed program was:" >&5
4010 sed 's/^/| /' conftest.
$ac_ext >&5
4015 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4020 echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
4021 echo "${ECHO_T}$ac_cv_olimit_ok" >&6
4022 if test $ac_cv_olimit_ok = yes; then
4023 BASECFLAGS
="$BASECFLAGS -Olimit 1500"
4027 # On some compilers, pthreads are available without further options
4028 # (e.g. MacOS X). On some of these systems, the compiler will not
4029 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
4030 # So we have to see first whether pthreads are available without
4031 # options before we can check whether -Kpthread improves anything.
4032 echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
4033 echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6
4034 if test "${ac_cv_pthread_is_default+set}" = set; then
4035 echo $ECHO_N "(cached) $ECHO_C" >&6
4037 if test "$cross_compiling" = yes; then
4038 ac_cv_pthread_is_default
=no
4040 cat >conftest.
$ac_ext <<_ACEOF
4043 cat confdefs.h
>>conftest.
$ac_ext
4044 cat >>conftest.
$ac_ext <<_ACEOF
4045 /* end confdefs.h. */
4047 #include <pthread.h>
4049 void* routine(void* p){return NULL;}
4053 if(pthread_create(&p,NULL,routine,NULL)!=0)
4055 (void)pthread_detach(p);
4060 rm -f conftest
$ac_exeext
4061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4062 (eval $ac_link) 2>&5
4064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4065 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4070 (exit $ac_status); }; }; then
4072 ac_cv_pthread_is_default
=yes
4077 echo "$as_me: program exited with status $ac_status" >&5
4078 echo "$as_me: failed program was:" >&5
4079 sed 's/^/| /' conftest.
$ac_ext >&5
4082 ac_cv_pthread_is_default
=no
4084 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4089 echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
4090 echo "${ECHO_T}$ac_cv_pthread_is_default" >&6
4093 if test $ac_cv_pthread_is_default = yes
4097 # -Kpthread, if available, provides the right #defines
4098 # and linker options to make pthread_create available
4099 # Some compilers won't report that they do not support -Kpthread,
4100 # so we need to run a program to see whether it really made the
4101 # function available.
4102 echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
4103 echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6
4104 if test "${ac_cv_kpthread+set}" = set; then
4105 echo $ECHO_N "(cached) $ECHO_C" >&6
4109 if test "$cross_compiling" = yes; then
4112 cat >conftest.
$ac_ext <<_ACEOF
4115 cat confdefs.h
>>conftest.
$ac_ext
4116 cat >>conftest.
$ac_ext <<_ACEOF
4117 /* end confdefs.h. */
4119 #include <pthread.h>
4121 void* routine(void* p){return NULL;}
4125 if(pthread_create(&p,NULL,routine,NULL)!=0)
4127 (void)pthread_detach(p);
4132 rm -f conftest
$ac_exeext
4133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4134 (eval $ac_link) 2>&5
4136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4137 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4142 (exit $ac_status); }; }; then
4145 echo "$as_me: program exited with status $ac_status" >&5
4146 echo "$as_me: failed program was:" >&5
4147 sed 's/^/| /' conftest.
$ac_ext >&5
4152 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4157 echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
4158 echo "${ECHO_T}$ac_cv_kpthread" >&6
4161 if test $ac_cv_kpthread = no
-a $ac_cv_pthread_is_default = no
4163 # -Kthread, if available, provides the right #defines
4164 # and linker options to make pthread_create available
4165 # Some compilers won't report that they do not support -Kthread,
4166 # so we need to run a program to see whether it really made the
4167 # function available.
4168 echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
4169 echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6
4170 if test "${ac_cv_kthread+set}" = set; then
4171 echo $ECHO_N "(cached) $ECHO_C" >&6
4175 if test "$cross_compiling" = yes; then
4178 cat >conftest.
$ac_ext <<_ACEOF
4181 cat confdefs.h
>>conftest.
$ac_ext
4182 cat >>conftest.
$ac_ext <<_ACEOF
4183 /* end confdefs.h. */
4185 #include <pthread.h>
4187 void* routine(void* p){return NULL;}
4191 if(pthread_create(&p,NULL,routine,NULL)!=0)
4193 (void)pthread_detach(p);
4198 rm -f conftest
$ac_exeext
4199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4200 (eval $ac_link) 2>&5
4202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4203 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4208 (exit $ac_status); }; }; then
4211 echo "$as_me: program exited with status $ac_status" >&5
4212 echo "$as_me: failed program was:" >&5
4213 sed 's/^/| /' conftest.
$ac_ext >&5
4218 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4223 echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
4224 echo "${ECHO_T}$ac_cv_kthread" >&6
4227 if test $ac_cv_kthread = no
-a $ac_cv_pthread_is_default = no
4229 # -pthread, if available, provides the right #defines
4230 # and linker options to make pthread_create available
4231 # Some compilers won't report that they do not support -pthread,
4232 # so we need to run a program to see whether it really made the
4233 # function available.
4234 echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
4235 echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6
4236 if test "${ac_cv_thread+set}" = set; then
4237 echo $ECHO_N "(cached) $ECHO_C" >&6
4241 if test "$cross_compiling" = yes; then
4244 cat >conftest.
$ac_ext <<_ACEOF
4247 cat confdefs.h
>>conftest.
$ac_ext
4248 cat >>conftest.
$ac_ext <<_ACEOF
4249 /* end confdefs.h. */
4251 #include <pthread.h>
4253 void* routine(void* p){return NULL;}
4257 if(pthread_create(&p,NULL,routine,NULL)!=0)
4259 (void)pthread_detach(p);
4264 rm -f conftest
$ac_exeext
4265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4266 (eval $ac_link) 2>&5
4268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274 (exit $ac_status); }; }; then
4277 echo "$as_me: program exited with status $ac_status" >&5
4278 echo "$as_me: failed program was:" >&5
4279 sed 's/^/| /' conftest.
$ac_ext >&5
4284 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4289 echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
4290 echo "${ECHO_T}$ac_cv_pthread" >&6
4293 # If we have set a CC compiler flag for thread support then
4294 # check if it works for CXX, too.
4298 echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5
4299 echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6
4302 if test "$ac_cv_kpthread" = "yes"
4304 CXX
="$CXX -Kpthread"
4305 ac_cv_cxx_thread
=yes
4306 elif test "$ac_cv_kthread" = "yes"
4309 ac_cv_cxx_thread
=yes
4310 elif test "$ac_cv_pthread" = "yes"
4313 ac_cv_cxx_thread
=yes
4316 if test $ac_cv_cxx_thread = yes
4318 echo 'void foo();int main(){foo();}void foo(){}' > conftest.
$ac_ext
4319 $CXX -c conftest.
$ac_ext 2>&5
4320 if $CXX -o conftest
$ac_exeext conftest.
$ac_objext 2>&5 \
4321 && test -s conftest
$ac_exeext && .
/conftest
$ac_exeext
4323 ac_cv_cxx_thread
=yes
4329 echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
4330 echo "${ECHO_T}$ac_cv_cxx_thread" >&6
4335 # checks for header files
4336 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4337 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4338 if test "${ac_cv_header_stdc+set}" = set; then
4339 echo $ECHO_N "(cached) $ECHO_C" >&6
4341 cat >conftest.
$ac_ext <<_ACEOF
4344 cat confdefs.h
>>conftest.
$ac_ext
4345 cat >>conftest.
$ac_ext <<_ACEOF
4346 /* end confdefs.h. */
4360 rm -f conftest.
$ac_objext
4361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4362 (eval $ac_compile) 2>conftest.er1
4364 grep -v '^ *+' conftest.er1
>conftest.err
4366 cat conftest.err
>&5
4367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4368 (exit $ac_status); } &&
4369 { ac_try
='test -z "$ac_c_werror_flag"
4370 || test ! -s conftest.err'
4371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4375 (exit $ac_status); }; } &&
4376 { ac_try
='test -s conftest.$ac_objext'
4377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4381 (exit $ac_status); }; }; then
4382 ac_cv_header_stdc
=yes
4384 echo "$as_me: failed program was:" >&5
4385 sed 's/^/| /' conftest.
$ac_ext >&5
4387 ac_cv_header_stdc
=no
4389 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4391 if test $ac_cv_header_stdc = yes; then
4392 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4393 cat >conftest.
$ac_ext <<_ACEOF
4396 cat confdefs.h
>>conftest.
$ac_ext
4397 cat >>conftest.
$ac_ext <<_ACEOF
4398 /* end confdefs.h. */
4402 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4403 $EGREP "memchr" >/dev
/null
2>&1; then
4406 ac_cv_header_stdc
=no
4412 if test $ac_cv_header_stdc = yes; then
4413 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4414 cat >conftest.
$ac_ext <<_ACEOF
4417 cat confdefs.h
>>conftest.
$ac_ext
4418 cat >>conftest.
$ac_ext <<_ACEOF
4419 /* end confdefs.h. */
4423 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4424 $EGREP "free" >/dev
/null
2>&1; then
4427 ac_cv_header_stdc
=no
4433 if test $ac_cv_header_stdc = yes; then
4434 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4435 if test "$cross_compiling" = yes; then
4438 cat >conftest.
$ac_ext <<_ACEOF
4441 cat confdefs.h
>>conftest.
$ac_ext
4442 cat >>conftest.
$ac_ext <<_ACEOF
4443 /* end confdefs.h. */
4445 #if ((' ' & 0x0FF) == 0x020)
4446 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4447 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4449 # define ISLOWER(c) \
4450 (('a' <= (c) && (c) <= 'i') \
4451 || ('j' <= (c) && (c) <= 'r') \
4452 || ('s' <= (c) && (c) <= 'z'))
4453 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4456 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4461 for (i = 0; i < 256; i++)
4462 if (XOR (islower (i), ISLOWER (i))
4463 || toupper (i) != TOUPPER (i))
4468 rm -f conftest
$ac_exeext
4469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4470 (eval $ac_link) 2>&5
4472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4473 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478 (exit $ac_status); }; }; then
4481 echo "$as_me: program exited with status $ac_status" >&5
4482 echo "$as_me: failed program was:" >&5
4483 sed 's/^/| /' conftest.
$ac_ext >&5
4486 ac_cv_header_stdc
=no
4488 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4492 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4493 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4494 if test $ac_cv_header_stdc = yes; then
4496 cat >>confdefs.h
<<\_ACEOF
4497 #define STDC_HEADERS 1
4502 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4512 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4513 inttypes.h stdint.h unistd.h
4515 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4516 echo "$as_me:$LINENO: checking for $ac_header" >&5
4517 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4518 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4519 echo $ECHO_N "(cached) $ECHO_C" >&6
4521 cat >conftest.
$ac_ext <<_ACEOF
4524 cat confdefs.h
>>conftest.
$ac_ext
4525 cat >>conftest.
$ac_ext <<_ACEOF
4526 /* end confdefs.h. */
4527 $ac_includes_default
4529 #include <$ac_header>
4531 rm -f conftest.
$ac_objext
4532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4533 (eval $ac_compile) 2>conftest.er1
4535 grep -v '^ *+' conftest.er1
>conftest.err
4537 cat conftest.err
>&5
4538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539 (exit $ac_status); } &&
4540 { ac_try
='test -z "$ac_c_werror_flag"
4541 || test ! -s conftest.err'
4542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546 (exit $ac_status); }; } &&
4547 { ac_try
='test -s conftest.$ac_objext'
4548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552 (exit $ac_status); }; }; then
4553 eval "$as_ac_Header=yes"
4555 echo "$as_me: failed program was:" >&5
4556 sed 's/^/| /' conftest.
$ac_ext >&5
4558 eval "$as_ac_Header=no"
4560 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4562 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4563 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4564 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4565 cat >>confdefs.h
<<_ACEOF
4566 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4613 for ac_header
in asm
/types.h curses.h dlfcn.h fcntl.h grp.h \
4614 shadow.h langinfo.h libintl.h ncurses.h poll.h pthread.h \
4615 stropts.h termios.h thread.h \
4617 sys
/audioio.h sys
/bsdtty.h sys
/file.h sys
/loadavg.h sys
/lock.h sys
/mkdev.h \
4619 sys
/param.h sys
/poll.h sys
/select.h sys
/socket.h sys
/time.h sys
/times.h \
4620 sys
/un.h sys
/utsname.h sys
/wait.h pty.h libutil.h \
4621 sys
/resource.h netpacket
/packet.h sysexits.h bluetooth.h \
4622 bluetooth
/bluetooth.h
4624 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4625 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4626 echo "$as_me:$LINENO: checking for $ac_header" >&5
4627 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4628 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4629 echo $ECHO_N "(cached) $ECHO_C" >&6
4631 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4632 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4634 # Is the header compilable?
4635 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4636 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4637 cat >conftest.
$ac_ext <<_ACEOF
4640 cat confdefs.h
>>conftest.
$ac_ext
4641 cat >>conftest.
$ac_ext <<_ACEOF
4642 /* end confdefs.h. */
4643 $ac_includes_default
4644 #include <$ac_header>
4646 rm -f conftest.
$ac_objext
4647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4648 (eval $ac_compile) 2>conftest.er1
4650 grep -v '^ *+' conftest.er1
>conftest.err
4652 cat conftest.err
>&5
4653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4654 (exit $ac_status); } &&
4655 { ac_try
='test -z "$ac_c_werror_flag"
4656 || test ! -s conftest.err'
4657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4661 (exit $ac_status); }; } &&
4662 { ac_try
='test -s conftest.$ac_objext'
4663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4667 (exit $ac_status); }; }; then
4668 ac_header_compiler
=yes
4670 echo "$as_me: failed program was:" >&5
4671 sed 's/^/| /' conftest.
$ac_ext >&5
4673 ac_header_compiler
=no
4675 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4676 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4677 echo "${ECHO_T}$ac_header_compiler" >&6
4679 # Is the header present?
4680 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4681 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4682 cat >conftest.
$ac_ext <<_ACEOF
4685 cat confdefs.h
>>conftest.
$ac_ext
4686 cat >>conftest.
$ac_ext <<_ACEOF
4687 /* end confdefs.h. */
4688 #include <$ac_header>
4690 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4691 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4693 grep -v '^ *+' conftest.er1
>conftest.err
4695 cat conftest.err
>&5
4696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4697 (exit $ac_status); } >/dev
/null
; then
4698 if test -s conftest.err
; then
4699 ac_cpp_err
=$ac_c_preproc_warn_flag
4700 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4707 if test -z "$ac_cpp_err"; then
4708 ac_header_preproc
=yes
4710 echo "$as_me: failed program was:" >&5
4711 sed 's/^/| /' conftest.
$ac_ext >&5
4713 ac_header_preproc
=no
4715 rm -f conftest.err conftest.
$ac_ext
4716 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4717 echo "${ECHO_T}$ac_header_preproc" >&6
4719 # So? What about this header?
4720 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4722 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4723 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4724 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4725 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4726 ac_header_preproc
=yes
4729 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4730 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4731 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4732 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4733 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4734 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4735 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4736 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4737 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4738 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4739 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4740 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4743 ## ------------------------------------------------ ##
4744 ## Report this to http://www.python.org/python-bugs ##
4745 ## ------------------------------------------------ ##
4748 sed "s/^/$as_me: WARNING: /" >&2
4751 echo "$as_me:$LINENO: checking for $ac_header" >&5
4752 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4753 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4754 echo $ECHO_N "(cached) $ECHO_C" >&6
4756 eval "$as_ac_Header=\$ac_header_preproc"
4758 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4759 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4762 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4763 cat >>confdefs.h
<<_ACEOF
4764 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4777 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
4778 as_ac_Header
=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4779 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4780 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
4781 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4782 echo $ECHO_N "(cached) $ECHO_C" >&6
4784 cat >conftest.
$ac_ext <<_ACEOF
4787 cat confdefs.h
>>conftest.
$ac_ext
4788 cat >>conftest.
$ac_ext <<_ACEOF
4789 /* end confdefs.h. */
4790 #include <sys/types.h>
4802 rm -f conftest.
$ac_objext
4803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4804 (eval $ac_compile) 2>conftest.er1
4806 grep -v '^ *+' conftest.er1
>conftest.err
4808 cat conftest.err
>&5
4809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4810 (exit $ac_status); } &&
4811 { ac_try
='test -z "$ac_c_werror_flag"
4812 || test ! -s conftest.err'
4813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817 (exit $ac_status); }; } &&
4818 { ac_try
='test -s conftest.$ac_objext'
4819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4823 (exit $ac_status); }; }; then
4824 eval "$as_ac_Header=yes"
4826 echo "$as_me: failed program was:" >&5
4827 sed 's/^/| /' conftest.
$ac_ext >&5
4829 eval "$as_ac_Header=no"
4831 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4833 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4834 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4835 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4836 cat >>confdefs.h
<<_ACEOF
4837 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4840 ac_header_dirent
=$ac_hdr; break
4844 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4845 if test $ac_header_dirent = dirent.h
; then
4846 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4847 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4848 if test "${ac_cv_search_opendir+set}" = set; then
4849 echo $ECHO_N "(cached) $ECHO_C" >&6
4851 ac_func_search_save_LIBS
=$LIBS
4852 ac_cv_search_opendir
=no
4853 cat >conftest.
$ac_ext <<_ACEOF
4856 cat confdefs.h
>>conftest.
$ac_ext
4857 cat >>conftest.
$ac_ext <<_ACEOF
4858 /* end confdefs.h. */
4860 /* Override any gcc2 internal prototype to avoid an error. */
4864 /* We use char because int might match the return type of a gcc2
4865 builtin and then its argument prototype would still apply. */
4875 rm -f conftest.
$ac_objext conftest
$ac_exeext
4876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4877 (eval $ac_link) 2>conftest.er1
4879 grep -v '^ *+' conftest.er1
>conftest.err
4881 cat conftest.err
>&5
4882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4883 (exit $ac_status); } &&
4884 { ac_try
='test -z "$ac_c_werror_flag"
4885 || test ! -s conftest.err'
4886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4890 (exit $ac_status); }; } &&
4891 { ac_try
='test -s conftest$ac_exeext'
4892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896 (exit $ac_status); }; }; then
4897 ac_cv_search_opendir
="none required"
4899 echo "$as_me: failed program was:" >&5
4900 sed 's/^/| /' conftest.
$ac_ext >&5
4903 rm -f conftest.err conftest.
$ac_objext \
4904 conftest
$ac_exeext conftest.
$ac_ext
4905 if test "$ac_cv_search_opendir" = no
; then
4906 for ac_lib
in dir
; do
4907 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4908 cat >conftest.
$ac_ext <<_ACEOF
4911 cat confdefs.h
>>conftest.
$ac_ext
4912 cat >>conftest.
$ac_ext <<_ACEOF
4913 /* end confdefs.h. */
4915 /* Override any gcc2 internal prototype to avoid an error. */
4919 /* We use char because int might match the return type of a gcc2
4920 builtin and then its argument prototype would still apply. */
4930 rm -f conftest.
$ac_objext conftest
$ac_exeext
4931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4932 (eval $ac_link) 2>conftest.er1
4934 grep -v '^ *+' conftest.er1
>conftest.err
4936 cat conftest.err
>&5
4937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4938 (exit $ac_status); } &&
4939 { ac_try
='test -z "$ac_c_werror_flag"
4940 || test ! -s conftest.err'
4941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4945 (exit $ac_status); }; } &&
4946 { ac_try
='test -s conftest$ac_exeext'
4947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4951 (exit $ac_status); }; }; then
4952 ac_cv_search_opendir
="-l$ac_lib"
4955 echo "$as_me: failed program was:" >&5
4956 sed 's/^/| /' conftest.
$ac_ext >&5
4959 rm -f conftest.err conftest.
$ac_objext \
4960 conftest
$ac_exeext conftest.
$ac_ext
4963 LIBS
=$ac_func_search_save_LIBS
4965 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4966 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4967 if test "$ac_cv_search_opendir" != no
; then
4968 test "$ac_cv_search_opendir" = "none required" || LIBS
="$ac_cv_search_opendir $LIBS"
4973 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4974 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4975 if test "${ac_cv_search_opendir+set}" = set; then
4976 echo $ECHO_N "(cached) $ECHO_C" >&6
4978 ac_func_search_save_LIBS
=$LIBS
4979 ac_cv_search_opendir
=no
4980 cat >conftest.
$ac_ext <<_ACEOF
4983 cat confdefs.h
>>conftest.
$ac_ext
4984 cat >>conftest.
$ac_ext <<_ACEOF
4985 /* end confdefs.h. */
4987 /* Override any gcc2 internal prototype to avoid an error. */
4991 /* We use char because int might match the return type of a gcc2
4992 builtin and then its argument prototype would still apply. */
5002 rm -f conftest.
$ac_objext conftest
$ac_exeext
5003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5004 (eval $ac_link) 2>conftest.er1
5006 grep -v '^ *+' conftest.er1
>conftest.err
5008 cat conftest.err
>&5
5009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5010 (exit $ac_status); } &&
5011 { ac_try
='test -z "$ac_c_werror_flag"
5012 || test ! -s conftest.err'
5013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017 (exit $ac_status); }; } &&
5018 { ac_try
='test -s conftest$ac_exeext'
5019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023 (exit $ac_status); }; }; then
5024 ac_cv_search_opendir
="none required"
5026 echo "$as_me: failed program was:" >&5
5027 sed 's/^/| /' conftest.
$ac_ext >&5
5030 rm -f conftest.err conftest.
$ac_objext \
5031 conftest
$ac_exeext conftest.
$ac_ext
5032 if test "$ac_cv_search_opendir" = no
; then
5034 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5035 cat >conftest.
$ac_ext <<_ACEOF
5038 cat confdefs.h
>>conftest.
$ac_ext
5039 cat >>conftest.
$ac_ext <<_ACEOF
5040 /* end confdefs.h. */
5042 /* Override any gcc2 internal prototype to avoid an error. */
5046 /* We use char because int might match the return type of a gcc2
5047 builtin and then its argument prototype would still apply. */
5057 rm -f conftest.
$ac_objext conftest
$ac_exeext
5058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5059 (eval $ac_link) 2>conftest.er1
5061 grep -v '^ *+' conftest.er1
>conftest.err
5063 cat conftest.err
>&5
5064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5065 (exit $ac_status); } &&
5066 { ac_try
='test -z "$ac_c_werror_flag"
5067 || test ! -s conftest.err'
5068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5072 (exit $ac_status); }; } &&
5073 { ac_try
='test -s conftest$ac_exeext'
5074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5078 (exit $ac_status); }; }; then
5079 ac_cv_search_opendir
="-l$ac_lib"
5082 echo "$as_me: failed program was:" >&5
5083 sed 's/^/| /' conftest.
$ac_ext >&5
5086 rm -f conftest.err conftest.
$ac_objext \
5087 conftest
$ac_exeext conftest.
$ac_ext
5090 LIBS
=$ac_func_search_save_LIBS
5092 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5093 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5094 if test "$ac_cv_search_opendir" != no
; then
5095 test "$ac_cv_search_opendir" = "none required" || LIBS
="$ac_cv_search_opendir $LIBS"
5101 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
5102 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
5103 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
5104 echo $ECHO_N "(cached) $ECHO_C" >&6
5106 cat >conftest.
$ac_ext <<_ACEOF
5109 cat confdefs.h
>>conftest.
$ac_ext
5110 cat >>conftest.
$ac_ext <<_ACEOF
5111 /* end confdefs.h. */
5112 #include <sys/types.h>
5116 return makedev(0, 0);
5121 rm -f conftest.
$ac_objext conftest
$ac_exeext
5122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5123 (eval $ac_link) 2>conftest.er1
5125 grep -v '^ *+' conftest.er1
>conftest.err
5127 cat conftest.err
>&5
5128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5129 (exit $ac_status); } &&
5130 { ac_try
='test -z "$ac_c_werror_flag"
5131 || test ! -s conftest.err'
5132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5136 (exit $ac_status); }; } &&
5137 { ac_try
='test -s conftest$ac_exeext'
5138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5142 (exit $ac_status); }; }; then
5143 ac_cv_header_sys_types_h_makedev
=yes
5145 echo "$as_me: failed program was:" >&5
5146 sed 's/^/| /' conftest.
$ac_ext >&5
5148 ac_cv_header_sys_types_h_makedev
=no
5150 rm -f conftest.err conftest.
$ac_objext \
5151 conftest
$ac_exeext conftest.
$ac_ext
5154 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
5155 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
5157 if test $ac_cv_header_sys_types_h_makedev = no
; then
5158 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5159 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
5160 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
5161 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5162 echo $ECHO_N "(cached) $ECHO_C" >&6
5164 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
5165 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
5167 # Is the header compilable?
5168 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
5169 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
5170 cat >conftest.
$ac_ext <<_ACEOF
5173 cat confdefs.h
>>conftest.
$ac_ext
5174 cat >>conftest.
$ac_ext <<_ACEOF
5175 /* end confdefs.h. */
5176 $ac_includes_default
5177 #include <sys/mkdev.h>
5179 rm -f conftest.
$ac_objext
5180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5181 (eval $ac_compile) 2>conftest.er1
5183 grep -v '^ *+' conftest.er1
>conftest.err
5185 cat conftest.err
>&5
5186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5187 (exit $ac_status); } &&
5188 { ac_try
='test -z "$ac_c_werror_flag"
5189 || test ! -s conftest.err'
5190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5194 (exit $ac_status); }; } &&
5195 { ac_try
='test -s conftest.$ac_objext'
5196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5200 (exit $ac_status); }; }; then
5201 ac_header_compiler
=yes
5203 echo "$as_me: failed program was:" >&5
5204 sed 's/^/| /' conftest.
$ac_ext >&5
5206 ac_header_compiler
=no
5208 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5209 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5210 echo "${ECHO_T}$ac_header_compiler" >&6
5212 # Is the header present?
5213 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
5214 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
5215 cat >conftest.
$ac_ext <<_ACEOF
5218 cat confdefs.h
>>conftest.
$ac_ext
5219 cat >>conftest.
$ac_ext <<_ACEOF
5220 /* end confdefs.h. */
5221 #include <sys/mkdev.h>
5223 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5224 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5226 grep -v '^ *+' conftest.er1
>conftest.err
5228 cat conftest.err
>&5
5229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5230 (exit $ac_status); } >/dev
/null
; then
5231 if test -s conftest.err
; then
5232 ac_cpp_err
=$ac_c_preproc_warn_flag
5233 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5240 if test -z "$ac_cpp_err"; then
5241 ac_header_preproc
=yes
5243 echo "$as_me: failed program was:" >&5
5244 sed 's/^/| /' conftest.
$ac_ext >&5
5246 ac_header_preproc
=no
5248 rm -f conftest.err conftest.
$ac_ext
5249 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5250 echo "${ECHO_T}$ac_header_preproc" >&6
5252 # So? What about this header?
5253 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5255 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
5256 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5257 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
5258 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
5259 ac_header_preproc
=yes
5262 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
5263 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
5264 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
5265 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
5266 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
5267 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
5268 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
5269 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
5270 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
5271 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
5272 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
5273 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
5276 ## ------------------------------------------------ ##
5277 ## Report this to http://www.python.org/python-bugs ##
5278 ## ------------------------------------------------ ##
5281 sed "s/^/$as_me: WARNING: /" >&2
5284 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
5285 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
5286 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5287 echo $ECHO_N "(cached) $ECHO_C" >&6
5289 ac_cv_header_sys_mkdev_h
=$ac_header_preproc
5291 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
5292 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
5295 if test $ac_cv_header_sys_mkdev_h = yes; then
5297 cat >>confdefs.h
<<\_ACEOF
5298 #define MAJOR_IN_MKDEV 1
5305 if test $ac_cv_header_sys_mkdev_h = no
; then
5306 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5307 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
5308 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
5309 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5310 echo $ECHO_N "(cached) $ECHO_C" >&6
5312 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
5313 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
5315 # Is the header compilable?
5316 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
5317 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
5318 cat >conftest.
$ac_ext <<_ACEOF
5321 cat confdefs.h
>>conftest.
$ac_ext
5322 cat >>conftest.
$ac_ext <<_ACEOF
5323 /* end confdefs.h. */
5324 $ac_includes_default
5325 #include <sys/sysmacros.h>
5327 rm -f conftest.
$ac_objext
5328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5329 (eval $ac_compile) 2>conftest.er1
5331 grep -v '^ *+' conftest.er1
>conftest.err
5333 cat conftest.err
>&5
5334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5335 (exit $ac_status); } &&
5336 { ac_try
='test -z "$ac_c_werror_flag"
5337 || test ! -s conftest.err'
5338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5342 (exit $ac_status); }; } &&
5343 { ac_try
='test -s conftest.$ac_objext'
5344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5348 (exit $ac_status); }; }; then
5349 ac_header_compiler
=yes
5351 echo "$as_me: failed program was:" >&5
5352 sed 's/^/| /' conftest.
$ac_ext >&5
5354 ac_header_compiler
=no
5356 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5357 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5358 echo "${ECHO_T}$ac_header_compiler" >&6
5360 # Is the header present?
5361 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
5362 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
5363 cat >conftest.
$ac_ext <<_ACEOF
5366 cat confdefs.h
>>conftest.
$ac_ext
5367 cat >>conftest.
$ac_ext <<_ACEOF
5368 /* end confdefs.h. */
5369 #include <sys/sysmacros.h>
5371 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5372 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5374 grep -v '^ *+' conftest.er1
>conftest.err
5376 cat conftest.err
>&5
5377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5378 (exit $ac_status); } >/dev
/null
; then
5379 if test -s conftest.err
; then
5380 ac_cpp_err
=$ac_c_preproc_warn_flag
5381 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5388 if test -z "$ac_cpp_err"; then
5389 ac_header_preproc
=yes
5391 echo "$as_me: failed program was:" >&5
5392 sed 's/^/| /' conftest.
$ac_ext >&5
5394 ac_header_preproc
=no
5396 rm -f conftest.err conftest.
$ac_ext
5397 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5398 echo "${ECHO_T}$ac_header_preproc" >&6
5400 # So? What about this header?
5401 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5403 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
5404 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5405 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
5406 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
5407 ac_header_preproc
=yes
5410 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
5411 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
5412 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
5413 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
5414 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
5415 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
5416 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
5417 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
5418 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
5419 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
5420 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
5421 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
5424 ## ------------------------------------------------ ##
5425 ## Report this to http://www.python.org/python-bugs ##
5426 ## ------------------------------------------------ ##
5429 sed "s/^/$as_me: WARNING: /" >&2
5432 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
5433 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
5434 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5435 echo $ECHO_N "(cached) $ECHO_C" >&6
5437 ac_cv_header_sys_sysmacros_h
=$ac_header_preproc
5439 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
5440 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
5443 if test $ac_cv_header_sys_sysmacros_h = yes; then
5445 cat >>confdefs.h
<<\_ACEOF
5446 #define MAJOR_IN_SYSMACROS 1
5456 # On Solaris, term.h requires curses.h
5458 for ac_header
in term.h
5460 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5461 echo "$as_me:$LINENO: checking for $ac_header" >&5
5462 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5463 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5464 echo $ECHO_N "(cached) $ECHO_C" >&6
5466 cat >conftest.
$ac_ext <<_ACEOF
5469 cat confdefs.h
>>conftest.
$ac_ext
5470 cat >>conftest.
$ac_ext <<_ACEOF
5471 /* end confdefs.h. */
5473 #ifdef HAVE_CURSES_H
5478 #include <$ac_header>
5480 rm -f conftest.
$ac_objext
5481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5482 (eval $ac_compile) 2>conftest.er1
5484 grep -v '^ *+' conftest.er1
>conftest.err
5486 cat conftest.err
>&5
5487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5488 (exit $ac_status); } &&
5489 { ac_try
='test -z "$ac_c_werror_flag"
5490 || test ! -s conftest.err'
5491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5495 (exit $ac_status); }; } &&
5496 { ac_try
='test -s conftest.$ac_objext'
5497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5501 (exit $ac_status); }; }; then
5502 eval "$as_ac_Header=yes"
5504 echo "$as_me: failed program was:" >&5
5505 sed 's/^/| /' conftest.
$ac_ext >&5
5507 eval "$as_ac_Header=no"
5509 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5511 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5512 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5513 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5514 cat >>confdefs.h
<<_ACEOF
5515 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5523 # On Linux, netlink.h requires asm/types.h
5525 for ac_header
in linux
/netlink.h
5527 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5528 echo "$as_me:$LINENO: checking for $ac_header" >&5
5529 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5530 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5531 echo $ECHO_N "(cached) $ECHO_C" >&6
5533 cat >conftest.
$ac_ext <<_ACEOF
5536 cat confdefs.h
>>conftest.
$ac_ext
5537 cat >>conftest.
$ac_ext <<_ACEOF
5538 /* end confdefs.h. */
5540 #ifdef HAVE_ASM_TYPES_H
5541 #include <asm/types.h>
5543 #ifdef HAVE_SYS_SOCKET_H
5544 #include <sys/socket.h>
5548 #include <$ac_header>
5550 rm -f conftest.
$ac_objext
5551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5552 (eval $ac_compile) 2>conftest.er1
5554 grep -v '^ *+' conftest.er1
>conftest.err
5556 cat conftest.err
>&5
5557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5558 (exit $ac_status); } &&
5559 { ac_try
='test -z "$ac_c_werror_flag"
5560 || test ! -s conftest.err'
5561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5565 (exit $ac_status); }; } &&
5566 { ac_try
='test -s conftest.$ac_objext'
5567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571 (exit $ac_status); }; }; then
5572 eval "$as_ac_Header=yes"
5574 echo "$as_me: failed program was:" >&5
5575 sed 's/^/| /' conftest.
$ac_ext >&5
5577 eval "$as_ac_Header=no"
5579 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5581 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5582 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5583 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5584 cat >>confdefs.h
<<_ACEOF
5585 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5593 # checks for typedefs
5595 echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
5596 echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6
5597 cat >conftest.
$ac_ext <<_ACEOF
5600 cat confdefs.h
>>conftest.
$ac_ext
5601 cat >>conftest.
$ac_ext <<_ACEOF
5602 /* end confdefs.h. */
5606 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5607 $EGREP "clock_t" >/dev
/null
2>&1; then
5612 cat >>confdefs.h
<<\_ACEOF
5613 #define clock_t long
5620 echo "$as_me:$LINENO: result: $was_it_defined" >&5
5621 echo "${ECHO_T}$was_it_defined" >&6
5623 # Check whether using makedev requires defining _OSF_SOURCE
5624 echo "$as_me:$LINENO: checking for makedev" >&5
5625 echo $ECHO_N "checking for makedev... $ECHO_C" >&6
5626 cat >conftest.
$ac_ext <<_ACEOF
5629 cat confdefs.h
>>conftest.
$ac_ext
5630 cat >>conftest.
$ac_ext <<_ACEOF
5631 /* end confdefs.h. */
5632 #include <sys/types.h>
5641 rm -f conftest.
$ac_objext conftest
$ac_exeext
5642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5643 (eval $ac_link) 2>conftest.er1
5645 grep -v '^ *+' conftest.er1
>conftest.err
5647 cat conftest.err
>&5
5648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5649 (exit $ac_status); } &&
5650 { ac_try
='test -z "$ac_c_werror_flag"
5651 || test ! -s conftest.err'
5652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5656 (exit $ac_status); }; } &&
5657 { ac_try
='test -s conftest$ac_exeext'
5658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5662 (exit $ac_status); }; }; then
5663 ac_cv_has_makedev
=yes
5665 echo "$as_me: failed program was:" >&5
5666 sed 's/^/| /' conftest.
$ac_ext >&5
5668 ac_cv_has_makedev
=no
5670 rm -f conftest.err conftest.
$ac_objext \
5671 conftest
$ac_exeext conftest.
$ac_ext
5672 if test "$ac_cv_has_makedev" = "no"; then
5673 # we didn't link, try if _OSF_SOURCE will allow us to link
5674 cat >conftest.
$ac_ext <<_ACEOF
5677 cat confdefs.h
>>conftest.
$ac_ext
5678 cat >>conftest.
$ac_ext <<_ACEOF
5679 /* end confdefs.h. */
5681 #define _OSF_SOURCE 1
5682 #include <sys/types.h>
5692 rm -f conftest.
$ac_objext conftest
$ac_exeext
5693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5694 (eval $ac_link) 2>conftest.er1
5696 grep -v '^ *+' conftest.er1
>conftest.err
5698 cat conftest.err
>&5
5699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5700 (exit $ac_status); } &&
5701 { ac_try
='test -z "$ac_c_werror_flag"
5702 || test ! -s conftest.err'
5703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5707 (exit $ac_status); }; } &&
5708 { ac_try
='test -s conftest$ac_exeext'
5709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5713 (exit $ac_status); }; }; then
5714 ac_cv_has_makedev
=yes
5716 echo "$as_me: failed program was:" >&5
5717 sed 's/^/| /' conftest.
$ac_ext >&5
5719 ac_cv_has_makedev
=no
5721 rm -f conftest.err conftest.
$ac_objext \
5722 conftest
$ac_exeext conftest.
$ac_ext
5723 if test "$ac_cv_has_makedev" = "yes"; then
5725 cat >>confdefs.h
<<\_ACEOF
5726 #define _OSF_SOURCE 1
5731 echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
5732 echo "${ECHO_T}$ac_cv_has_makedev" >&6
5733 if test "$ac_cv_has_makedev" = "yes"; then
5735 cat >>confdefs.h
<<\_ACEOF
5736 #define HAVE_MAKEDEV 1
5741 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
5742 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
5743 # defined, but the compiler does not support pragma redefine_extname,
5744 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
5745 # structures (such as rlimit64) without declaring them. As a
5746 # work-around, disable LFS on such configurations
5749 echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
5750 echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6
5751 cat >conftest.
$ac_ext <<_ACEOF
5754 cat confdefs.h
>>conftest.
$ac_ext
5755 cat >>conftest.
$ac_ext <<_ACEOF
5756 /* end confdefs.h. */
5758 #define _LARGEFILE_SOURCE 1
5759 #define _FILE_OFFSET_BITS 64
5760 #include <sys/resource.h>
5770 rm -f conftest.
$ac_objext
5771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5772 (eval $ac_compile) 2>conftest.er1
5774 grep -v '^ *+' conftest.er1
>conftest.err
5776 cat conftest.err
>&5
5777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778 (exit $ac_status); } &&
5779 { ac_try
='test -z "$ac_c_werror_flag"
5780 || test ! -s conftest.err'
5781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785 (exit $ac_status); }; } &&
5786 { ac_try
='test -s conftest.$ac_objext'
5787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791 (exit $ac_status); }; }; then
5794 echo "$as_me: failed program was:" >&5
5795 sed 's/^/| /' conftest.
$ac_ext >&5
5799 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5800 echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
5801 echo "${ECHO_T}$sol_lfs_bug" >&6
5802 if test "$sol_lfs_bug" = "yes"; then
5806 if test "$use_lfs" = "yes"; then
5807 # Two defines needed to enable largefile support on various platforms
5808 # These may affect some typedefs
5810 cat >>confdefs.h
<<\_ACEOF
5811 #define _LARGEFILE_SOURCE 1
5815 cat >>confdefs.h
<<\_ACEOF
5816 #define _FILE_OFFSET_BITS 64
5821 # Add some code to confdefs.h so that the test for off_t works on SCO
5822 cat >> confdefs.h
<<\EOF
5828 # Type availability checks
5829 echo "$as_me:$LINENO: checking for mode_t" >&5
5830 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
5831 if test "${ac_cv_type_mode_t+set}" = set; then
5832 echo $ECHO_N "(cached) $ECHO_C" >&6
5834 cat >conftest.
$ac_ext <<_ACEOF
5837 cat confdefs.h
>>conftest.
$ac_ext
5838 cat >>conftest.
$ac_ext <<_ACEOF
5839 /* end confdefs.h. */
5840 $ac_includes_default
5846 if (sizeof (mode_t))
5852 rm -f conftest.
$ac_objext
5853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5854 (eval $ac_compile) 2>conftest.er1
5856 grep -v '^ *+' conftest.er1
>conftest.err
5858 cat conftest.err
>&5
5859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5860 (exit $ac_status); } &&
5861 { ac_try
='test -z "$ac_c_werror_flag"
5862 || test ! -s conftest.err'
5863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867 (exit $ac_status); }; } &&
5868 { ac_try
='test -s conftest.$ac_objext'
5869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873 (exit $ac_status); }; }; then
5874 ac_cv_type_mode_t
=yes
5876 echo "$as_me: failed program was:" >&5
5877 sed 's/^/| /' conftest.
$ac_ext >&5
5879 ac_cv_type_mode_t
=no
5881 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5883 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
5884 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
5885 if test $ac_cv_type_mode_t = yes; then
5889 cat >>confdefs.h
<<_ACEOF
5895 echo "$as_me:$LINENO: checking for off_t" >&5
5896 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5897 if test "${ac_cv_type_off_t+set}" = set; then
5898 echo $ECHO_N "(cached) $ECHO_C" >&6
5900 cat >conftest.
$ac_ext <<_ACEOF
5903 cat confdefs.h
>>conftest.
$ac_ext
5904 cat >>conftest.
$ac_ext <<_ACEOF
5905 /* end confdefs.h. */
5906 $ac_includes_default
5918 rm -f conftest.
$ac_objext
5919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5920 (eval $ac_compile) 2>conftest.er1
5922 grep -v '^ *+' conftest.er1
>conftest.err
5924 cat conftest.err
>&5
5925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926 (exit $ac_status); } &&
5927 { ac_try
='test -z "$ac_c_werror_flag"
5928 || test ! -s conftest.err'
5929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5933 (exit $ac_status); }; } &&
5934 { ac_try
='test -s conftest.$ac_objext'
5935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939 (exit $ac_status); }; }; then
5940 ac_cv_type_off_t
=yes
5942 echo "$as_me: failed program was:" >&5
5943 sed 's/^/| /' conftest.
$ac_ext >&5
5947 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5949 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5950 echo "${ECHO_T}$ac_cv_type_off_t" >&6
5951 if test $ac_cv_type_off_t = yes; then
5955 cat >>confdefs.h
<<_ACEOF
5961 echo "$as_me:$LINENO: checking for pid_t" >&5
5962 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
5963 if test "${ac_cv_type_pid_t+set}" = set; then
5964 echo $ECHO_N "(cached) $ECHO_C" >&6
5966 cat >conftest.
$ac_ext <<_ACEOF
5969 cat confdefs.h
>>conftest.
$ac_ext
5970 cat >>conftest.
$ac_ext <<_ACEOF
5971 /* end confdefs.h. */
5972 $ac_includes_default
5984 rm -f conftest.
$ac_objext
5985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5986 (eval $ac_compile) 2>conftest.er1
5988 grep -v '^ *+' conftest.er1
>conftest.err
5990 cat conftest.err
>&5
5991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992 (exit $ac_status); } &&
5993 { ac_try
='test -z "$ac_c_werror_flag"
5994 || test ! -s conftest.err'
5995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5999 (exit $ac_status); }; } &&
6000 { ac_try
='test -s conftest.$ac_objext'
6001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005 (exit $ac_status); }; }; then
6006 ac_cv_type_pid_t
=yes
6008 echo "$as_me: failed program was:" >&5
6009 sed 's/^/| /' conftest.
$ac_ext >&5
6013 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6015 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6016 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
6017 if test $ac_cv_type_pid_t = yes; then
6021 cat >>confdefs.h
<<_ACEOF
6027 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6028 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6029 if test "${ac_cv_type_signal+set}" = set; then
6030 echo $ECHO_N "(cached) $ECHO_C" >&6
6032 cat >conftest.
$ac_ext <<_ACEOF
6035 cat confdefs.h
>>conftest.
$ac_ext
6036 cat >>conftest.
$ac_ext <<_ACEOF
6037 /* end confdefs.h. */
6038 #include <sys/types.h>
6044 extern "C" void (*signal (int, void (*)(int)))(int);
6046 void (*signal ()) ();
6057 rm -f conftest.
$ac_objext
6058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6059 (eval $ac_compile) 2>conftest.er1
6061 grep -v '^ *+' conftest.er1
>conftest.err
6063 cat conftest.err
>&5
6064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6065 (exit $ac_status); } &&
6066 { ac_try
='test -z "$ac_c_werror_flag"
6067 || test ! -s conftest.err'
6068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6072 (exit $ac_status); }; } &&
6073 { ac_try
='test -s conftest.$ac_objext'
6074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6078 (exit $ac_status); }; }; then
6079 ac_cv_type_signal
=void
6081 echo "$as_me: failed program was:" >&5
6082 sed 's/^/| /' conftest.
$ac_ext >&5
6084 ac_cv_type_signal
=int
6086 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6088 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6089 echo "${ECHO_T}$ac_cv_type_signal" >&6
6091 cat >>confdefs.h
<<_ACEOF
6092 #define RETSIGTYPE $ac_cv_type_signal
6096 echo "$as_me:$LINENO: checking for size_t" >&5
6097 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6098 if test "${ac_cv_type_size_t+set}" = set; then
6099 echo $ECHO_N "(cached) $ECHO_C" >&6
6101 cat >conftest.
$ac_ext <<_ACEOF
6104 cat confdefs.h
>>conftest.
$ac_ext
6105 cat >>conftest.
$ac_ext <<_ACEOF
6106 /* end confdefs.h. */
6107 $ac_includes_default
6113 if (sizeof (size_t))
6119 rm -f conftest.
$ac_objext
6120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6121 (eval $ac_compile) 2>conftest.er1
6123 grep -v '^ *+' conftest.er1
>conftest.err
6125 cat conftest.err
>&5
6126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6127 (exit $ac_status); } &&
6128 { ac_try
='test -z "$ac_c_werror_flag"
6129 || test ! -s conftest.err'
6130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6134 (exit $ac_status); }; } &&
6135 { ac_try
='test -s conftest.$ac_objext'
6136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6140 (exit $ac_status); }; }; then
6141 ac_cv_type_size_t
=yes
6143 echo "$as_me: failed program was:" >&5
6144 sed 's/^/| /' conftest.
$ac_ext >&5
6146 ac_cv_type_size_t
=no
6148 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6150 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6151 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6152 if test $ac_cv_type_size_t = yes; then
6156 cat >>confdefs.h
<<_ACEOF
6157 #define size_t unsigned
6162 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6163 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
6164 if test "${ac_cv_type_uid_t+set}" = set; then
6165 echo $ECHO_N "(cached) $ECHO_C" >&6
6167 cat >conftest.
$ac_ext <<_ACEOF
6170 cat confdefs.h
>>conftest.
$ac_ext
6171 cat >>conftest.
$ac_ext <<_ACEOF
6172 /* end confdefs.h. */
6173 #include <sys/types.h>
6176 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6177 $EGREP "uid_t" >/dev
/null
2>&1; then
6178 ac_cv_type_uid_t
=yes
6185 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
6186 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
6187 if test $ac_cv_type_uid_t = no
; then
6189 cat >>confdefs.h
<<\_ACEOF
6194 cat >>confdefs.h
<<\_ACEOF
6201 # Sizes of various common basic types
6202 # ANSI C requires sizeof(char) == 1, so no need to check it
6203 echo "$as_me:$LINENO: checking for int" >&5
6204 echo $ECHO_N "checking for int... $ECHO_C" >&6
6205 if test "${ac_cv_type_int+set}" = set; then
6206 echo $ECHO_N "(cached) $ECHO_C" >&6
6208 cat >conftest.
$ac_ext <<_ACEOF
6211 cat confdefs.h
>>conftest.
$ac_ext
6212 cat >>conftest.
$ac_ext <<_ACEOF
6213 /* end confdefs.h. */
6214 $ac_includes_default
6226 rm -f conftest.
$ac_objext
6227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6228 (eval $ac_compile) 2>conftest.er1
6230 grep -v '^ *+' conftest.er1
>conftest.err
6232 cat conftest.err
>&5
6233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6234 (exit $ac_status); } &&
6235 { ac_try
='test -z "$ac_c_werror_flag"
6236 || test ! -s conftest.err'
6237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6241 (exit $ac_status); }; } &&
6242 { ac_try
='test -s conftest.$ac_objext'
6243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247 (exit $ac_status); }; }; then
6250 echo "$as_me: failed program was:" >&5
6251 sed 's/^/| /' conftest.
$ac_ext >&5
6255 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6257 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
6258 echo "${ECHO_T}$ac_cv_type_int" >&6
6260 echo "$as_me:$LINENO: checking size of int" >&5
6261 echo $ECHO_N "checking size of int... $ECHO_C" >&6
6262 if test "${ac_cv_sizeof_int+set}" = set; then
6263 echo $ECHO_N "(cached) $ECHO_C" >&6
6265 if test "$ac_cv_type_int" = yes; then
6266 # The cast to unsigned long works around a bug in the HP C Compiler
6267 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6268 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6269 # This bug is HP SR number 8606223364.
6270 if test "$cross_compiling" = yes; then
6271 # Depending upon the size, compute the lo and hi bounds.
6272 cat >conftest.
$ac_ext <<_ACEOF
6275 cat confdefs.h
>>conftest.
$ac_ext
6276 cat >>conftest.
$ac_ext <<_ACEOF
6277 /* end confdefs.h. */
6278 $ac_includes_default
6282 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
6289 rm -f conftest.
$ac_objext
6290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6291 (eval $ac_compile) 2>conftest.er1
6293 grep -v '^ *+' conftest.er1
>conftest.err
6295 cat conftest.err
>&5
6296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6297 (exit $ac_status); } &&
6298 { ac_try
='test -z "$ac_c_werror_flag"
6299 || test ! -s conftest.err'
6300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6304 (exit $ac_status); }; } &&
6305 { ac_try
='test -s conftest.$ac_objext'
6306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6310 (exit $ac_status); }; }; then
6313 cat >conftest.
$ac_ext <<_ACEOF
6316 cat confdefs.h
>>conftest.
$ac_ext
6317 cat >>conftest.
$ac_ext <<_ACEOF
6318 /* end confdefs.h. */
6319 $ac_includes_default
6323 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6330 rm -f conftest.
$ac_objext
6331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6332 (eval $ac_compile) 2>conftest.er1
6334 grep -v '^ *+' conftest.er1
>conftest.err
6336 cat conftest.err
>&5
6337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6338 (exit $ac_status); } &&
6339 { ac_try
='test -z "$ac_c_werror_flag"
6340 || test ! -s conftest.err'
6341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6345 (exit $ac_status); }; } &&
6346 { ac_try
='test -s conftest.$ac_objext'
6347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6351 (exit $ac_status); }; }; then
6352 ac_hi
=$ac_mid; break
6354 echo "$as_me: failed program was:" >&5
6355 sed 's/^/| /' conftest.
$ac_ext >&5
6357 ac_lo
=`expr $ac_mid + 1`
6358 if test $ac_lo -le $ac_mid; then
6362 ac_mid
=`expr 2 '*' $ac_mid + 1`
6364 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6367 echo "$as_me: failed program was:" >&5
6368 sed 's/^/| /' conftest.
$ac_ext >&5
6370 cat >conftest.
$ac_ext <<_ACEOF
6373 cat confdefs.h
>>conftest.
$ac_ext
6374 cat >>conftest.
$ac_ext <<_ACEOF
6375 /* end confdefs.h. */
6376 $ac_includes_default
6380 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
6387 rm -f conftest.
$ac_objext
6388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6389 (eval $ac_compile) 2>conftest.er1
6391 grep -v '^ *+' conftest.er1
>conftest.err
6393 cat conftest.err
>&5
6394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6395 (exit $ac_status); } &&
6396 { ac_try
='test -z "$ac_c_werror_flag"
6397 || test ! -s conftest.err'
6398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6402 (exit $ac_status); }; } &&
6403 { ac_try
='test -s conftest.$ac_objext'
6404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408 (exit $ac_status); }; }; then
6411 cat >conftest.
$ac_ext <<_ACEOF
6414 cat confdefs.h
>>conftest.
$ac_ext
6415 cat >>conftest.
$ac_ext <<_ACEOF
6416 /* end confdefs.h. */
6417 $ac_includes_default
6421 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
6428 rm -f conftest.
$ac_objext
6429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6430 (eval $ac_compile) 2>conftest.er1
6432 grep -v '^ *+' conftest.er1
>conftest.err
6434 cat conftest.err
>&5
6435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436 (exit $ac_status); } &&
6437 { ac_try
='test -z "$ac_c_werror_flag"
6438 || test ! -s conftest.err'
6439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6443 (exit $ac_status); }; } &&
6444 { ac_try
='test -s conftest.$ac_objext'
6445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449 (exit $ac_status); }; }; then
6450 ac_lo
=$ac_mid; break
6452 echo "$as_me: failed program was:" >&5
6453 sed 's/^/| /' conftest.
$ac_ext >&5
6455 ac_hi
=`expr '(' $ac_mid ')' - 1`
6456 if test $ac_mid -le $ac_hi; then
6460 ac_mid
=`expr 2 '*' $ac_mid`
6462 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6465 echo "$as_me: failed program was:" >&5
6466 sed 's/^/| /' conftest.
$ac_ext >&5
6470 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6472 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6473 # Binary search between lo and hi bounds.
6474 while test "x$ac_lo" != "x$ac_hi"; do
6475 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6476 cat >conftest.
$ac_ext <<_ACEOF
6479 cat confdefs.h
>>conftest.
$ac_ext
6480 cat >>conftest.
$ac_ext <<_ACEOF
6481 /* end confdefs.h. */
6482 $ac_includes_default
6486 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6493 rm -f conftest.
$ac_objext
6494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6495 (eval $ac_compile) 2>conftest.er1
6497 grep -v '^ *+' conftest.er1
>conftest.err
6499 cat conftest.err
>&5
6500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6501 (exit $ac_status); } &&
6502 { ac_try
='test -z "$ac_c_werror_flag"
6503 || test ! -s conftest.err'
6504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6508 (exit $ac_status); }; } &&
6509 { ac_try
='test -s conftest.$ac_objext'
6510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6514 (exit $ac_status); }; }; then
6517 echo "$as_me: failed program was:" >&5
6518 sed 's/^/| /' conftest.
$ac_ext >&5
6520 ac_lo
=`expr '(' $ac_mid ')' + 1`
6522 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6525 ?
*) ac_cv_sizeof_int
=$ac_lo;;
6526 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
6527 See \`config.log' for more details." >&5
6528 echo "$as_me: error: cannot compute sizeof (int), 77
6529 See \`config.log' for more details." >&2;}
6530 { (exit 1); exit 1; }; } ;;
6533 if test "$cross_compiling" = yes; then
6534 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6535 See \`config.log' for more details." >&5
6536 echo "$as_me: error: cannot run test program while cross compiling
6537 See \`config.log' for more details." >&2;}
6538 { (exit 1); exit 1; }; }
6540 cat >conftest.
$ac_ext <<_ACEOF
6543 cat confdefs.h
>>conftest.
$ac_ext
6544 cat >>conftest.
$ac_ext <<_ACEOF
6545 /* end confdefs.h. */
6546 $ac_includes_default
6547 long longval () { return (long) (sizeof (int)); }
6548 unsigned long ulongval () { return (long) (sizeof (int)); }
6555 FILE *f = fopen ("conftest.val", "w");
6558 if (((long) (sizeof (int))) < 0)
6560 long i = longval ();
6561 if (i != ((long) (sizeof (int))))
6563 fprintf (f, "%ld\n", i);
6567 unsigned long i = ulongval ();
6568 if (i != ((long) (sizeof (int))))
6570 fprintf (f, "%lu\n", i);
6572 exit (ferror (f) || fclose (f) != 0);
6578 rm -f conftest
$ac_exeext
6579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6580 (eval $ac_link) 2>&5
6582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6583 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6588 (exit $ac_status); }; }; then
6589 ac_cv_sizeof_int
=`cat conftest.val`
6591 echo "$as_me: program exited with status $ac_status" >&5
6592 echo "$as_me: failed program was:" >&5
6593 sed 's/^/| /' conftest.
$ac_ext >&5
6596 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
6597 See \`config.log' for more details." >&5
6598 echo "$as_me: error: cannot compute sizeof (int), 77
6599 See \`config.log' for more details." >&2;}
6600 { (exit 1); exit 1; }; }
6602 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6610 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6611 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
6612 cat >>confdefs.h
<<_ACEOF
6613 #define SIZEOF_INT $ac_cv_sizeof_int
6617 echo "$as_me:$LINENO: checking for long" >&5
6618 echo $ECHO_N "checking for long... $ECHO_C" >&6
6619 if test "${ac_cv_type_long+set}" = set; then
6620 echo $ECHO_N "(cached) $ECHO_C" >&6
6622 cat >conftest.
$ac_ext <<_ACEOF
6625 cat confdefs.h
>>conftest.
$ac_ext
6626 cat >>conftest.
$ac_ext <<_ACEOF
6627 /* end confdefs.h. */
6628 $ac_includes_default
6640 rm -f conftest.
$ac_objext
6641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6642 (eval $ac_compile) 2>conftest.er1
6644 grep -v '^ *+' conftest.er1
>conftest.err
6646 cat conftest.err
>&5
6647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6648 (exit $ac_status); } &&
6649 { ac_try
='test -z "$ac_c_werror_flag"
6650 || test ! -s conftest.err'
6651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655 (exit $ac_status); }; } &&
6656 { ac_try
='test -s conftest.$ac_objext'
6657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6661 (exit $ac_status); }; }; then
6664 echo "$as_me: failed program was:" >&5
6665 sed 's/^/| /' conftest.
$ac_ext >&5
6669 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6671 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6672 echo "${ECHO_T}$ac_cv_type_long" >&6
6674 echo "$as_me:$LINENO: checking size of long" >&5
6675 echo $ECHO_N "checking size of long... $ECHO_C" >&6
6676 if test "${ac_cv_sizeof_long+set}" = set; then
6677 echo $ECHO_N "(cached) $ECHO_C" >&6
6679 if test "$ac_cv_type_long" = yes; then
6680 # The cast to unsigned long works around a bug in the HP C Compiler
6681 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6682 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6683 # This bug is HP SR number 8606223364.
6684 if test "$cross_compiling" = yes; then
6685 # Depending upon the size, compute the lo and hi bounds.
6686 cat >conftest.
$ac_ext <<_ACEOF
6689 cat confdefs.h
>>conftest.
$ac_ext
6690 cat >>conftest.
$ac_ext <<_ACEOF
6691 /* end confdefs.h. */
6692 $ac_includes_default
6696 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
6703 rm -f conftest.
$ac_objext
6704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6705 (eval $ac_compile) 2>conftest.er1
6707 grep -v '^ *+' conftest.er1
>conftest.err
6709 cat conftest.err
>&5
6710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6711 (exit $ac_status); } &&
6712 { ac_try
='test -z "$ac_c_werror_flag"
6713 || test ! -s conftest.err'
6714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6718 (exit $ac_status); }; } &&
6719 { ac_try
='test -s conftest.$ac_objext'
6720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6724 (exit $ac_status); }; }; then
6727 cat >conftest.
$ac_ext <<_ACEOF
6730 cat confdefs.h
>>conftest.
$ac_ext
6731 cat >>conftest.
$ac_ext <<_ACEOF
6732 /* end confdefs.h. */
6733 $ac_includes_default
6737 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6744 rm -f conftest.
$ac_objext
6745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6746 (eval $ac_compile) 2>conftest.er1
6748 grep -v '^ *+' conftest.er1
>conftest.err
6750 cat conftest.err
>&5
6751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6752 (exit $ac_status); } &&
6753 { ac_try
='test -z "$ac_c_werror_flag"
6754 || test ! -s conftest.err'
6755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6759 (exit $ac_status); }; } &&
6760 { ac_try
='test -s conftest.$ac_objext'
6761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6765 (exit $ac_status); }; }; then
6766 ac_hi
=$ac_mid; break
6768 echo "$as_me: failed program was:" >&5
6769 sed 's/^/| /' conftest.
$ac_ext >&5
6771 ac_lo
=`expr $ac_mid + 1`
6772 if test $ac_lo -le $ac_mid; then
6776 ac_mid
=`expr 2 '*' $ac_mid + 1`
6778 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6781 echo "$as_me: failed program was:" >&5
6782 sed 's/^/| /' conftest.
$ac_ext >&5
6784 cat >conftest.
$ac_ext <<_ACEOF
6787 cat confdefs.h
>>conftest.
$ac_ext
6788 cat >>conftest.
$ac_ext <<_ACEOF
6789 /* end confdefs.h. */
6790 $ac_includes_default
6794 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
6801 rm -f conftest.
$ac_objext
6802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6803 (eval $ac_compile) 2>conftest.er1
6805 grep -v '^ *+' conftest.er1
>conftest.err
6807 cat conftest.err
>&5
6808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6809 (exit $ac_status); } &&
6810 { ac_try
='test -z "$ac_c_werror_flag"
6811 || test ! -s conftest.err'
6812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6816 (exit $ac_status); }; } &&
6817 { ac_try
='test -s conftest.$ac_objext'
6818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6822 (exit $ac_status); }; }; then
6825 cat >conftest.
$ac_ext <<_ACEOF
6828 cat confdefs.h
>>conftest.
$ac_ext
6829 cat >>conftest.
$ac_ext <<_ACEOF
6830 /* end confdefs.h. */
6831 $ac_includes_default
6835 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
6842 rm -f conftest.
$ac_objext
6843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6844 (eval $ac_compile) 2>conftest.er1
6846 grep -v '^ *+' conftest.er1
>conftest.err
6848 cat conftest.err
>&5
6849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6850 (exit $ac_status); } &&
6851 { ac_try
='test -z "$ac_c_werror_flag"
6852 || test ! -s conftest.err'
6853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6857 (exit $ac_status); }; } &&
6858 { ac_try
='test -s conftest.$ac_objext'
6859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6863 (exit $ac_status); }; }; then
6864 ac_lo
=$ac_mid; break
6866 echo "$as_me: failed program was:" >&5
6867 sed 's/^/| /' conftest.
$ac_ext >&5
6869 ac_hi
=`expr '(' $ac_mid ')' - 1`
6870 if test $ac_mid -le $ac_hi; then
6874 ac_mid
=`expr 2 '*' $ac_mid`
6876 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6879 echo "$as_me: failed program was:" >&5
6880 sed 's/^/| /' conftest.
$ac_ext >&5
6884 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6886 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6887 # Binary search between lo and hi bounds.
6888 while test "x$ac_lo" != "x$ac_hi"; do
6889 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6890 cat >conftest.
$ac_ext <<_ACEOF
6893 cat confdefs.h
>>conftest.
$ac_ext
6894 cat >>conftest.
$ac_ext <<_ACEOF
6895 /* end confdefs.h. */
6896 $ac_includes_default
6900 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6907 rm -f conftest.
$ac_objext
6908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6909 (eval $ac_compile) 2>conftest.er1
6911 grep -v '^ *+' conftest.er1
>conftest.err
6913 cat conftest.err
>&5
6914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6915 (exit $ac_status); } &&
6916 { ac_try
='test -z "$ac_c_werror_flag"
6917 || test ! -s conftest.err'
6918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6922 (exit $ac_status); }; } &&
6923 { ac_try
='test -s conftest.$ac_objext'
6924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6928 (exit $ac_status); }; }; then
6931 echo "$as_me: failed program was:" >&5
6932 sed 's/^/| /' conftest.
$ac_ext >&5
6934 ac_lo
=`expr '(' $ac_mid ')' + 1`
6936 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6939 ?
*) ac_cv_sizeof_long
=$ac_lo;;
6940 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
6941 See \`config.log' for more details." >&5
6942 echo "$as_me: error: cannot compute sizeof (long), 77
6943 See \`config.log' for more details." >&2;}
6944 { (exit 1); exit 1; }; } ;;
6947 if test "$cross_compiling" = yes; then
6948 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6949 See \`config.log' for more details." >&5
6950 echo "$as_me: error: cannot run test program while cross compiling
6951 See \`config.log' for more details." >&2;}
6952 { (exit 1); exit 1; }; }
6954 cat >conftest.
$ac_ext <<_ACEOF
6957 cat confdefs.h
>>conftest.
$ac_ext
6958 cat >>conftest.
$ac_ext <<_ACEOF
6959 /* end confdefs.h. */
6960 $ac_includes_default
6961 long longval () { return (long) (sizeof (long)); }
6962 unsigned long ulongval () { return (long) (sizeof (long)); }
6969 FILE *f = fopen ("conftest.val", "w");
6972 if (((long) (sizeof (long))) < 0)
6974 long i = longval ();
6975 if (i != ((long) (sizeof (long))))
6977 fprintf (f, "%ld\n", i);
6981 unsigned long i = ulongval ();
6982 if (i != ((long) (sizeof (long))))
6984 fprintf (f, "%lu\n", i);
6986 exit (ferror (f) || fclose (f) != 0);
6992 rm -f conftest
$ac_exeext
6993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6994 (eval $ac_link) 2>&5
6996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6997 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7002 (exit $ac_status); }; }; then
7003 ac_cv_sizeof_long
=`cat conftest.val`
7005 echo "$as_me: program exited with status $ac_status" >&5
7006 echo "$as_me: failed program was:" >&5
7007 sed 's/^/| /' conftest.
$ac_ext >&5
7010 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7011 See \`config.log' for more details." >&5
7012 echo "$as_me: error: cannot compute sizeof (long), 77
7013 See \`config.log' for more details." >&2;}
7014 { (exit 1); exit 1; }; }
7016 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7024 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7025 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7026 cat >>confdefs.h
<<_ACEOF
7027 #define SIZEOF_LONG $ac_cv_sizeof_long
7031 echo "$as_me:$LINENO: checking for void *" >&5
7032 echo $ECHO_N "checking for void *... $ECHO_C" >&6
7033 if test "${ac_cv_type_void_p+set}" = set; then
7034 echo $ECHO_N "(cached) $ECHO_C" >&6
7036 cat >conftest.
$ac_ext <<_ACEOF
7039 cat confdefs.h
>>conftest.
$ac_ext
7040 cat >>conftest.
$ac_ext <<_ACEOF
7041 /* end confdefs.h. */
7042 $ac_includes_default
7048 if (sizeof (void *))
7054 rm -f conftest.
$ac_objext
7055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7056 (eval $ac_compile) 2>conftest.er1
7058 grep -v '^ *+' conftest.er1
>conftest.err
7060 cat conftest.err
>&5
7061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7062 (exit $ac_status); } &&
7063 { ac_try
='test -z "$ac_c_werror_flag"
7064 || test ! -s conftest.err'
7065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7069 (exit $ac_status); }; } &&
7070 { ac_try
='test -s conftest.$ac_objext'
7071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7075 (exit $ac_status); }; }; then
7076 ac_cv_type_void_p
=yes
7078 echo "$as_me: failed program was:" >&5
7079 sed 's/^/| /' conftest.
$ac_ext >&5
7081 ac_cv_type_void_p
=no
7083 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7085 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
7086 echo "${ECHO_T}$ac_cv_type_void_p" >&6
7088 echo "$as_me:$LINENO: checking size of void *" >&5
7089 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
7090 if test "${ac_cv_sizeof_void_p+set}" = set; then
7091 echo $ECHO_N "(cached) $ECHO_C" >&6
7093 if test "$ac_cv_type_void_p" = yes; then
7094 # The cast to unsigned long works around a bug in the HP C Compiler
7095 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7096 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7097 # This bug is HP SR number 8606223364.
7098 if test "$cross_compiling" = yes; then
7099 # Depending upon the size, compute the lo and hi bounds.
7100 cat >conftest.
$ac_ext <<_ACEOF
7103 cat confdefs.h
>>conftest.
$ac_ext
7104 cat >>conftest.
$ac_ext <<_ACEOF
7105 /* end confdefs.h. */
7106 $ac_includes_default
7110 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
7117 rm -f conftest.
$ac_objext
7118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7119 (eval $ac_compile) 2>conftest.er1
7121 grep -v '^ *+' conftest.er1
>conftest.err
7123 cat conftest.err
>&5
7124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7125 (exit $ac_status); } &&
7126 { ac_try
='test -z "$ac_c_werror_flag"
7127 || test ! -s conftest.err'
7128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7132 (exit $ac_status); }; } &&
7133 { ac_try
='test -s conftest.$ac_objext'
7134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7138 (exit $ac_status); }; }; then
7141 cat >conftest.
$ac_ext <<_ACEOF
7144 cat confdefs.h
>>conftest.
$ac_ext
7145 cat >>conftest.
$ac_ext <<_ACEOF
7146 /* end confdefs.h. */
7147 $ac_includes_default
7151 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
7158 rm -f conftest.
$ac_objext
7159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7160 (eval $ac_compile) 2>conftest.er1
7162 grep -v '^ *+' conftest.er1
>conftest.err
7164 cat conftest.err
>&5
7165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7166 (exit $ac_status); } &&
7167 { ac_try
='test -z "$ac_c_werror_flag"
7168 || test ! -s conftest.err'
7169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7173 (exit $ac_status); }; } &&
7174 { ac_try
='test -s conftest.$ac_objext'
7175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7179 (exit $ac_status); }; }; then
7180 ac_hi
=$ac_mid; break
7182 echo "$as_me: failed program was:" >&5
7183 sed 's/^/| /' conftest.
$ac_ext >&5
7185 ac_lo
=`expr $ac_mid + 1`
7186 if test $ac_lo -le $ac_mid; then
7190 ac_mid
=`expr 2 '*' $ac_mid + 1`
7192 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7195 echo "$as_me: failed program was:" >&5
7196 sed 's/^/| /' conftest.
$ac_ext >&5
7198 cat >conftest.
$ac_ext <<_ACEOF
7201 cat confdefs.h
>>conftest.
$ac_ext
7202 cat >>conftest.
$ac_ext <<_ACEOF
7203 /* end confdefs.h. */
7204 $ac_includes_default
7208 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
7215 rm -f conftest.
$ac_objext
7216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7217 (eval $ac_compile) 2>conftest.er1
7219 grep -v '^ *+' conftest.er1
>conftest.err
7221 cat conftest.err
>&5
7222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7223 (exit $ac_status); } &&
7224 { ac_try
='test -z "$ac_c_werror_flag"
7225 || test ! -s conftest.err'
7226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7230 (exit $ac_status); }; } &&
7231 { ac_try
='test -s conftest.$ac_objext'
7232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7236 (exit $ac_status); }; }; then
7239 cat >conftest.
$ac_ext <<_ACEOF
7242 cat confdefs.h
>>conftest.
$ac_ext
7243 cat >>conftest.
$ac_ext <<_ACEOF
7244 /* end confdefs.h. */
7245 $ac_includes_default
7249 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
7256 rm -f conftest.
$ac_objext
7257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7258 (eval $ac_compile) 2>conftest.er1
7260 grep -v '^ *+' conftest.er1
>conftest.err
7262 cat conftest.err
>&5
7263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7264 (exit $ac_status); } &&
7265 { ac_try
='test -z "$ac_c_werror_flag"
7266 || test ! -s conftest.err'
7267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7271 (exit $ac_status); }; } &&
7272 { ac_try
='test -s conftest.$ac_objext'
7273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7277 (exit $ac_status); }; }; then
7278 ac_lo
=$ac_mid; break
7280 echo "$as_me: failed program was:" >&5
7281 sed 's/^/| /' conftest.
$ac_ext >&5
7283 ac_hi
=`expr '(' $ac_mid ')' - 1`
7284 if test $ac_mid -le $ac_hi; then
7288 ac_mid
=`expr 2 '*' $ac_mid`
7290 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7293 echo "$as_me: failed program was:" >&5
7294 sed 's/^/| /' conftest.
$ac_ext >&5
7298 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7300 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7301 # Binary search between lo and hi bounds.
7302 while test "x$ac_lo" != "x$ac_hi"; do
7303 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7304 cat >conftest.
$ac_ext <<_ACEOF
7307 cat confdefs.h
>>conftest.
$ac_ext
7308 cat >>conftest.
$ac_ext <<_ACEOF
7309 /* end confdefs.h. */
7310 $ac_includes_default
7314 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
7321 rm -f conftest.
$ac_objext
7322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7323 (eval $ac_compile) 2>conftest.er1
7325 grep -v '^ *+' conftest.er1
>conftest.err
7327 cat conftest.err
>&5
7328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7329 (exit $ac_status); } &&
7330 { ac_try
='test -z "$ac_c_werror_flag"
7331 || test ! -s conftest.err'
7332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7336 (exit $ac_status); }; } &&
7337 { ac_try
='test -s conftest.$ac_objext'
7338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7342 (exit $ac_status); }; }; then
7345 echo "$as_me: failed program was:" >&5
7346 sed 's/^/| /' conftest.
$ac_ext >&5
7348 ac_lo
=`expr '(' $ac_mid ')' + 1`
7350 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7353 ?
*) ac_cv_sizeof_void_p
=$ac_lo;;
7354 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
7355 See \`config.log' for more details." >&5
7356 echo "$as_me: error: cannot compute sizeof (void *), 77
7357 See \`config.log' for more details." >&2;}
7358 { (exit 1); exit 1; }; } ;;
7361 if test "$cross_compiling" = yes; then
7362 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7363 See \`config.log' for more details." >&5
7364 echo "$as_me: error: cannot run test program while cross compiling
7365 See \`config.log' for more details." >&2;}
7366 { (exit 1); exit 1; }; }
7368 cat >conftest.
$ac_ext <<_ACEOF
7371 cat confdefs.h
>>conftest.
$ac_ext
7372 cat >>conftest.
$ac_ext <<_ACEOF
7373 /* end confdefs.h. */
7374 $ac_includes_default
7375 long longval () { return (long) (sizeof (void *)); }
7376 unsigned long ulongval () { return (long) (sizeof (void *)); }
7383 FILE *f = fopen ("conftest.val", "w");
7386 if (((long) (sizeof (void *))) < 0)
7388 long i = longval ();
7389 if (i != ((long) (sizeof (void *))))
7391 fprintf (f, "%ld\n", i);
7395 unsigned long i = ulongval ();
7396 if (i != ((long) (sizeof (void *))))
7398 fprintf (f, "%lu\n", i);
7400 exit (ferror (f) || fclose (f) != 0);
7406 rm -f conftest
$ac_exeext
7407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7408 (eval $ac_link) 2>&5
7410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7411 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7416 (exit $ac_status); }; }; then
7417 ac_cv_sizeof_void_p
=`cat conftest.val`
7419 echo "$as_me: program exited with status $ac_status" >&5
7420 echo "$as_me: failed program was:" >&5
7421 sed 's/^/| /' conftest.
$ac_ext >&5
7424 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
7425 See \`config.log' for more details." >&5
7426 echo "$as_me: error: cannot compute sizeof (void *), 77
7427 See \`config.log' for more details." >&2;}
7428 { (exit 1); exit 1; }; }
7430 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7435 ac_cv_sizeof_void_p
=0
7438 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
7439 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
7440 cat >>confdefs.h
<<_ACEOF
7441 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
7445 echo "$as_me:$LINENO: checking for short" >&5
7446 echo $ECHO_N "checking for short... $ECHO_C" >&6
7447 if test "${ac_cv_type_short+set}" = set; then
7448 echo $ECHO_N "(cached) $ECHO_C" >&6
7450 cat >conftest.
$ac_ext <<_ACEOF
7453 cat confdefs.h
>>conftest.
$ac_ext
7454 cat >>conftest.
$ac_ext <<_ACEOF
7455 /* end confdefs.h. */
7456 $ac_includes_default
7468 rm -f conftest.
$ac_objext
7469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7470 (eval $ac_compile) 2>conftest.er1
7472 grep -v '^ *+' conftest.er1
>conftest.err
7474 cat conftest.err
>&5
7475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7476 (exit $ac_status); } &&
7477 { ac_try
='test -z "$ac_c_werror_flag"
7478 || test ! -s conftest.err'
7479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7483 (exit $ac_status); }; } &&
7484 { ac_try
='test -s conftest.$ac_objext'
7485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7489 (exit $ac_status); }; }; then
7490 ac_cv_type_short
=yes
7492 echo "$as_me: failed program was:" >&5
7493 sed 's/^/| /' conftest.
$ac_ext >&5
7497 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7499 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
7500 echo "${ECHO_T}$ac_cv_type_short" >&6
7502 echo "$as_me:$LINENO: checking size of short" >&5
7503 echo $ECHO_N "checking size of short... $ECHO_C" >&6
7504 if test "${ac_cv_sizeof_short+set}" = set; then
7505 echo $ECHO_N "(cached) $ECHO_C" >&6
7507 if test "$ac_cv_type_short" = yes; then
7508 # The cast to unsigned long works around a bug in the HP C Compiler
7509 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7510 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7511 # This bug is HP SR number 8606223364.
7512 if test "$cross_compiling" = yes; then
7513 # Depending upon the size, compute the lo and hi bounds.
7514 cat >conftest.
$ac_ext <<_ACEOF
7517 cat confdefs.h
>>conftest.
$ac_ext
7518 cat >>conftest.
$ac_ext <<_ACEOF
7519 /* end confdefs.h. */
7520 $ac_includes_default
7524 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
7531 rm -f conftest.
$ac_objext
7532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7533 (eval $ac_compile) 2>conftest.er1
7535 grep -v '^ *+' conftest.er1
>conftest.err
7537 cat conftest.err
>&5
7538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7539 (exit $ac_status); } &&
7540 { ac_try
='test -z "$ac_c_werror_flag"
7541 || test ! -s conftest.err'
7542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7546 (exit $ac_status); }; } &&
7547 { ac_try
='test -s conftest.$ac_objext'
7548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7552 (exit $ac_status); }; }; then
7555 cat >conftest.
$ac_ext <<_ACEOF
7558 cat confdefs.h
>>conftest.
$ac_ext
7559 cat >>conftest.
$ac_ext <<_ACEOF
7560 /* end confdefs.h. */
7561 $ac_includes_default
7565 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7572 rm -f conftest.
$ac_objext
7573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7574 (eval $ac_compile) 2>conftest.er1
7576 grep -v '^ *+' conftest.er1
>conftest.err
7578 cat conftest.err
>&5
7579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7580 (exit $ac_status); } &&
7581 { ac_try
='test -z "$ac_c_werror_flag"
7582 || test ! -s conftest.err'
7583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7587 (exit $ac_status); }; } &&
7588 { ac_try
='test -s conftest.$ac_objext'
7589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7593 (exit $ac_status); }; }; then
7594 ac_hi
=$ac_mid; break
7596 echo "$as_me: failed program was:" >&5
7597 sed 's/^/| /' conftest.
$ac_ext >&5
7599 ac_lo
=`expr $ac_mid + 1`
7600 if test $ac_lo -le $ac_mid; then
7604 ac_mid
=`expr 2 '*' $ac_mid + 1`
7606 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7609 echo "$as_me: failed program was:" >&5
7610 sed 's/^/| /' conftest.
$ac_ext >&5
7612 cat >conftest.
$ac_ext <<_ACEOF
7615 cat confdefs.h
>>conftest.
$ac_ext
7616 cat >>conftest.
$ac_ext <<_ACEOF
7617 /* end confdefs.h. */
7618 $ac_includes_default
7622 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
7629 rm -f conftest.
$ac_objext
7630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7631 (eval $ac_compile) 2>conftest.er1
7633 grep -v '^ *+' conftest.er1
>conftest.err
7635 cat conftest.err
>&5
7636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7637 (exit $ac_status); } &&
7638 { ac_try
='test -z "$ac_c_werror_flag"
7639 || test ! -s conftest.err'
7640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7644 (exit $ac_status); }; } &&
7645 { ac_try
='test -s conftest.$ac_objext'
7646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7650 (exit $ac_status); }; }; then
7653 cat >conftest.
$ac_ext <<_ACEOF
7656 cat confdefs.h
>>conftest.
$ac_ext
7657 cat >>conftest.
$ac_ext <<_ACEOF
7658 /* end confdefs.h. */
7659 $ac_includes_default
7663 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
7670 rm -f conftest.
$ac_objext
7671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7672 (eval $ac_compile) 2>conftest.er1
7674 grep -v '^ *+' conftest.er1
>conftest.err
7676 cat conftest.err
>&5
7677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7678 (exit $ac_status); } &&
7679 { ac_try
='test -z "$ac_c_werror_flag"
7680 || test ! -s conftest.err'
7681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7685 (exit $ac_status); }; } &&
7686 { ac_try
='test -s conftest.$ac_objext'
7687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7691 (exit $ac_status); }; }; then
7692 ac_lo
=$ac_mid; break
7694 echo "$as_me: failed program was:" >&5
7695 sed 's/^/| /' conftest.
$ac_ext >&5
7697 ac_hi
=`expr '(' $ac_mid ')' - 1`
7698 if test $ac_mid -le $ac_hi; then
7702 ac_mid
=`expr 2 '*' $ac_mid`
7704 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7707 echo "$as_me: failed program was:" >&5
7708 sed 's/^/| /' conftest.
$ac_ext >&5
7712 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7714 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7715 # Binary search between lo and hi bounds.
7716 while test "x$ac_lo" != "x$ac_hi"; do
7717 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7718 cat >conftest.
$ac_ext <<_ACEOF
7721 cat confdefs.h
>>conftest.
$ac_ext
7722 cat >>conftest.
$ac_ext <<_ACEOF
7723 /* end confdefs.h. */
7724 $ac_includes_default
7728 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7735 rm -f conftest.
$ac_objext
7736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7737 (eval $ac_compile) 2>conftest.er1
7739 grep -v '^ *+' conftest.er1
>conftest.err
7741 cat conftest.err
>&5
7742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7743 (exit $ac_status); } &&
7744 { ac_try
='test -z "$ac_c_werror_flag"
7745 || test ! -s conftest.err'
7746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7750 (exit $ac_status); }; } &&
7751 { ac_try
='test -s conftest.$ac_objext'
7752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7756 (exit $ac_status); }; }; then
7759 echo "$as_me: failed program was:" >&5
7760 sed 's/^/| /' conftest.
$ac_ext >&5
7762 ac_lo
=`expr '(' $ac_mid ')' + 1`
7764 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7767 ?
*) ac_cv_sizeof_short
=$ac_lo;;
7768 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7769 See \`config.log' for more details." >&5
7770 echo "$as_me: error: cannot compute sizeof (short), 77
7771 See \`config.log' for more details." >&2;}
7772 { (exit 1); exit 1; }; } ;;
7775 if test "$cross_compiling" = yes; then
7776 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7777 See \`config.log' for more details." >&5
7778 echo "$as_me: error: cannot run test program while cross compiling
7779 See \`config.log' for more details." >&2;}
7780 { (exit 1); exit 1; }; }
7782 cat >conftest.
$ac_ext <<_ACEOF
7785 cat confdefs.h
>>conftest.
$ac_ext
7786 cat >>conftest.
$ac_ext <<_ACEOF
7787 /* end confdefs.h. */
7788 $ac_includes_default
7789 long longval () { return (long) (sizeof (short)); }
7790 unsigned long ulongval () { return (long) (sizeof (short)); }
7797 FILE *f = fopen ("conftest.val", "w");
7800 if (((long) (sizeof (short))) < 0)
7802 long i = longval ();
7803 if (i != ((long) (sizeof (short))))
7805 fprintf (f, "%ld\n", i);
7809 unsigned long i = ulongval ();
7810 if (i != ((long) (sizeof (short))))
7812 fprintf (f, "%lu\n", i);
7814 exit (ferror (f) || fclose (f) != 0);
7820 rm -f conftest
$ac_exeext
7821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7822 (eval $ac_link) 2>&5
7824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7825 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7830 (exit $ac_status); }; }; then
7831 ac_cv_sizeof_short
=`cat conftest.val`
7833 echo "$as_me: program exited with status $ac_status" >&5
7834 echo "$as_me: failed program was:" >&5
7835 sed 's/^/| /' conftest.
$ac_ext >&5
7838 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7839 See \`config.log' for more details." >&5
7840 echo "$as_me: error: cannot compute sizeof (short), 77
7841 See \`config.log' for more details." >&2;}
7842 { (exit 1); exit 1; }; }
7844 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7849 ac_cv_sizeof_short
=0
7852 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
7853 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
7854 cat >>confdefs.h
<<_ACEOF
7855 #define SIZEOF_SHORT $ac_cv_sizeof_short
7859 echo "$as_me:$LINENO: checking for float" >&5
7860 echo $ECHO_N "checking for float... $ECHO_C" >&6
7861 if test "${ac_cv_type_float+set}" = set; then
7862 echo $ECHO_N "(cached) $ECHO_C" >&6
7864 cat >conftest.
$ac_ext <<_ACEOF
7867 cat confdefs.h
>>conftest.
$ac_ext
7868 cat >>conftest.
$ac_ext <<_ACEOF
7869 /* end confdefs.h. */
7870 $ac_includes_default
7882 rm -f conftest.
$ac_objext
7883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7884 (eval $ac_compile) 2>conftest.er1
7886 grep -v '^ *+' conftest.er1
>conftest.err
7888 cat conftest.err
>&5
7889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7890 (exit $ac_status); } &&
7891 { ac_try
='test -z "$ac_c_werror_flag"
7892 || test ! -s conftest.err'
7893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7897 (exit $ac_status); }; } &&
7898 { ac_try
='test -s conftest.$ac_objext'
7899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7903 (exit $ac_status); }; }; then
7904 ac_cv_type_float
=yes
7906 echo "$as_me: failed program was:" >&5
7907 sed 's/^/| /' conftest.
$ac_ext >&5
7911 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7913 echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
7914 echo "${ECHO_T}$ac_cv_type_float" >&6
7916 echo "$as_me:$LINENO: checking size of float" >&5
7917 echo $ECHO_N "checking size of float... $ECHO_C" >&6
7918 if test "${ac_cv_sizeof_float+set}" = set; then
7919 echo $ECHO_N "(cached) $ECHO_C" >&6
7921 if test "$ac_cv_type_float" = yes; then
7922 # The cast to unsigned long works around a bug in the HP C Compiler
7923 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7924 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7925 # This bug is HP SR number 8606223364.
7926 if test "$cross_compiling" = yes; then
7927 # Depending upon the size, compute the lo and hi bounds.
7928 cat >conftest.
$ac_ext <<_ACEOF
7931 cat confdefs.h
>>conftest.
$ac_ext
7932 cat >>conftest.
$ac_ext <<_ACEOF
7933 /* end confdefs.h. */
7934 $ac_includes_default
7938 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)];
7945 rm -f conftest.
$ac_objext
7946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7947 (eval $ac_compile) 2>conftest.er1
7949 grep -v '^ *+' conftest.er1
>conftest.err
7951 cat conftest.err
>&5
7952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7953 (exit $ac_status); } &&
7954 { ac_try
='test -z "$ac_c_werror_flag"
7955 || test ! -s conftest.err'
7956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7960 (exit $ac_status); }; } &&
7961 { ac_try
='test -s conftest.$ac_objext'
7962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7966 (exit $ac_status); }; }; then
7969 cat >conftest.
$ac_ext <<_ACEOF
7972 cat confdefs.h
>>conftest.
$ac_ext
7973 cat >>conftest.
$ac_ext <<_ACEOF
7974 /* end confdefs.h. */
7975 $ac_includes_default
7979 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
7986 rm -f conftest.
$ac_objext
7987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7988 (eval $ac_compile) 2>conftest.er1
7990 grep -v '^ *+' conftest.er1
>conftest.err
7992 cat conftest.err
>&5
7993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7994 (exit $ac_status); } &&
7995 { ac_try
='test -z "$ac_c_werror_flag"
7996 || test ! -s conftest.err'
7997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8001 (exit $ac_status); }; } &&
8002 { ac_try
='test -s conftest.$ac_objext'
8003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8007 (exit $ac_status); }; }; then
8008 ac_hi
=$ac_mid; break
8010 echo "$as_me: failed program was:" >&5
8011 sed 's/^/| /' conftest.
$ac_ext >&5
8013 ac_lo
=`expr $ac_mid + 1`
8014 if test $ac_lo -le $ac_mid; then
8018 ac_mid
=`expr 2 '*' $ac_mid + 1`
8020 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8023 echo "$as_me: failed program was:" >&5
8024 sed 's/^/| /' conftest.
$ac_ext >&5
8026 cat >conftest.
$ac_ext <<_ACEOF
8029 cat confdefs.h
>>conftest.
$ac_ext
8030 cat >>conftest.
$ac_ext <<_ACEOF
8031 /* end confdefs.h. */
8032 $ac_includes_default
8036 static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)];
8043 rm -f conftest.
$ac_objext
8044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8045 (eval $ac_compile) 2>conftest.er1
8047 grep -v '^ *+' conftest.er1
>conftest.err
8049 cat conftest.err
>&5
8050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8051 (exit $ac_status); } &&
8052 { ac_try
='test -z "$ac_c_werror_flag"
8053 || test ! -s conftest.err'
8054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8058 (exit $ac_status); }; } &&
8059 { ac_try
='test -s conftest.$ac_objext'
8060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8064 (exit $ac_status); }; }; then
8067 cat >conftest.
$ac_ext <<_ACEOF
8070 cat confdefs.h
>>conftest.
$ac_ext
8071 cat >>conftest.
$ac_ext <<_ACEOF
8072 /* end confdefs.h. */
8073 $ac_includes_default
8077 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)];
8084 rm -f conftest.
$ac_objext
8085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8086 (eval $ac_compile) 2>conftest.er1
8088 grep -v '^ *+' conftest.er1
>conftest.err
8090 cat conftest.err
>&5
8091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8092 (exit $ac_status); } &&
8093 { ac_try
='test -z "$ac_c_werror_flag"
8094 || test ! -s conftest.err'
8095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8099 (exit $ac_status); }; } &&
8100 { ac_try
='test -s conftest.$ac_objext'
8101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8105 (exit $ac_status); }; }; then
8106 ac_lo
=$ac_mid; break
8108 echo "$as_me: failed program was:" >&5
8109 sed 's/^/| /' conftest.
$ac_ext >&5
8111 ac_hi
=`expr '(' $ac_mid ')' - 1`
8112 if test $ac_mid -le $ac_hi; then
8116 ac_mid
=`expr 2 '*' $ac_mid`
8118 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8121 echo "$as_me: failed program was:" >&5
8122 sed 's/^/| /' conftest.
$ac_ext >&5
8126 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8128 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8129 # Binary search between lo and hi bounds.
8130 while test "x$ac_lo" != "x$ac_hi"; do
8131 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8132 cat >conftest.
$ac_ext <<_ACEOF
8135 cat confdefs.h
>>conftest.
$ac_ext
8136 cat >>conftest.
$ac_ext <<_ACEOF
8137 /* end confdefs.h. */
8138 $ac_includes_default
8142 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
8149 rm -f conftest.
$ac_objext
8150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8151 (eval $ac_compile) 2>conftest.er1
8153 grep -v '^ *+' conftest.er1
>conftest.err
8155 cat conftest.err
>&5
8156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8157 (exit $ac_status); } &&
8158 { ac_try
='test -z "$ac_c_werror_flag"
8159 || test ! -s conftest.err'
8160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8164 (exit $ac_status); }; } &&
8165 { ac_try
='test -s conftest.$ac_objext'
8166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8170 (exit $ac_status); }; }; then
8173 echo "$as_me: failed program was:" >&5
8174 sed 's/^/| /' conftest.
$ac_ext >&5
8176 ac_lo
=`expr '(' $ac_mid ')' + 1`
8178 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8181 ?
*) ac_cv_sizeof_float
=$ac_lo;;
8182 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
8183 See \`config.log' for more details." >&5
8184 echo "$as_me: error: cannot compute sizeof (float), 77
8185 See \`config.log' for more details." >&2;}
8186 { (exit 1); exit 1; }; } ;;
8189 if test "$cross_compiling" = yes; then
8190 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8191 See \`config.log' for more details." >&5
8192 echo "$as_me: error: cannot run test program while cross compiling
8193 See \`config.log' for more details." >&2;}
8194 { (exit 1); exit 1; }; }
8196 cat >conftest.
$ac_ext <<_ACEOF
8199 cat confdefs.h
>>conftest.
$ac_ext
8200 cat >>conftest.
$ac_ext <<_ACEOF
8201 /* end confdefs.h. */
8202 $ac_includes_default
8203 long longval () { return (long) (sizeof (float)); }
8204 unsigned long ulongval () { return (long) (sizeof (float)); }
8211 FILE *f = fopen ("conftest.val", "w");
8214 if (((long) (sizeof (float))) < 0)
8216 long i = longval ();
8217 if (i != ((long) (sizeof (float))))
8219 fprintf (f, "%ld\n", i);
8223 unsigned long i = ulongval ();
8224 if (i != ((long) (sizeof (float))))
8226 fprintf (f, "%lu\n", i);
8228 exit (ferror (f) || fclose (f) != 0);
8234 rm -f conftest
$ac_exeext
8235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8236 (eval $ac_link) 2>&5
8238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8239 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8244 (exit $ac_status); }; }; then
8245 ac_cv_sizeof_float
=`cat conftest.val`
8247 echo "$as_me: program exited with status $ac_status" >&5
8248 echo "$as_me: failed program was:" >&5
8249 sed 's/^/| /' conftest.
$ac_ext >&5
8252 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
8253 See \`config.log' for more details." >&5
8254 echo "$as_me: error: cannot compute sizeof (float), 77
8255 See \`config.log' for more details." >&2;}
8256 { (exit 1); exit 1; }; }
8258 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8263 ac_cv_sizeof_float
=0
8266 echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
8267 echo "${ECHO_T}$ac_cv_sizeof_float" >&6
8268 cat >>confdefs.h
<<_ACEOF
8269 #define SIZEOF_FLOAT $ac_cv_sizeof_float
8273 echo "$as_me:$LINENO: checking for double" >&5
8274 echo $ECHO_N "checking for double... $ECHO_C" >&6
8275 if test "${ac_cv_type_double+set}" = set; then
8276 echo $ECHO_N "(cached) $ECHO_C" >&6
8278 cat >conftest.
$ac_ext <<_ACEOF
8281 cat confdefs.h
>>conftest.
$ac_ext
8282 cat >>conftest.
$ac_ext <<_ACEOF
8283 /* end confdefs.h. */
8284 $ac_includes_default
8290 if (sizeof (double))
8296 rm -f conftest.
$ac_objext
8297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8298 (eval $ac_compile) 2>conftest.er1
8300 grep -v '^ *+' conftest.er1
>conftest.err
8302 cat conftest.err
>&5
8303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8304 (exit $ac_status); } &&
8305 { ac_try
='test -z "$ac_c_werror_flag"
8306 || test ! -s conftest.err'
8307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8311 (exit $ac_status); }; } &&
8312 { ac_try
='test -s conftest.$ac_objext'
8313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8317 (exit $ac_status); }; }; then
8318 ac_cv_type_double
=yes
8320 echo "$as_me: failed program was:" >&5
8321 sed 's/^/| /' conftest.
$ac_ext >&5
8323 ac_cv_type_double
=no
8325 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8327 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
8328 echo "${ECHO_T}$ac_cv_type_double" >&6
8330 echo "$as_me:$LINENO: checking size of double" >&5
8331 echo $ECHO_N "checking size of double... $ECHO_C" >&6
8332 if test "${ac_cv_sizeof_double+set}" = set; then
8333 echo $ECHO_N "(cached) $ECHO_C" >&6
8335 if test "$ac_cv_type_double" = yes; then
8336 # The cast to unsigned long works around a bug in the HP C Compiler
8337 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8338 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8339 # This bug is HP SR number 8606223364.
8340 if test "$cross_compiling" = yes; then
8341 # Depending upon the size, compute the lo and hi bounds.
8342 cat >conftest.
$ac_ext <<_ACEOF
8345 cat confdefs.h
>>conftest.
$ac_ext
8346 cat >>conftest.
$ac_ext <<_ACEOF
8347 /* end confdefs.h. */
8348 $ac_includes_default
8352 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
8359 rm -f conftest.
$ac_objext
8360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8361 (eval $ac_compile) 2>conftest.er1
8363 grep -v '^ *+' conftest.er1
>conftest.err
8365 cat conftest.err
>&5
8366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8367 (exit $ac_status); } &&
8368 { ac_try
='test -z "$ac_c_werror_flag"
8369 || test ! -s conftest.err'
8370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8374 (exit $ac_status); }; } &&
8375 { ac_try
='test -s conftest.$ac_objext'
8376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8380 (exit $ac_status); }; }; then
8383 cat >conftest.
$ac_ext <<_ACEOF
8386 cat confdefs.h
>>conftest.
$ac_ext
8387 cat >>conftest.
$ac_ext <<_ACEOF
8388 /* end confdefs.h. */
8389 $ac_includes_default
8393 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
8400 rm -f conftest.
$ac_objext
8401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8402 (eval $ac_compile) 2>conftest.er1
8404 grep -v '^ *+' conftest.er1
>conftest.err
8406 cat conftest.err
>&5
8407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408 (exit $ac_status); } &&
8409 { ac_try
='test -z "$ac_c_werror_flag"
8410 || test ! -s conftest.err'
8411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8415 (exit $ac_status); }; } &&
8416 { ac_try
='test -s conftest.$ac_objext'
8417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8421 (exit $ac_status); }; }; then
8422 ac_hi
=$ac_mid; break
8424 echo "$as_me: failed program was:" >&5
8425 sed 's/^/| /' conftest.
$ac_ext >&5
8427 ac_lo
=`expr $ac_mid + 1`
8428 if test $ac_lo -le $ac_mid; then
8432 ac_mid
=`expr 2 '*' $ac_mid + 1`
8434 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8437 echo "$as_me: failed program was:" >&5
8438 sed 's/^/| /' conftest.
$ac_ext >&5
8440 cat >conftest.
$ac_ext <<_ACEOF
8443 cat confdefs.h
>>conftest.
$ac_ext
8444 cat >>conftest.
$ac_ext <<_ACEOF
8445 /* end confdefs.h. */
8446 $ac_includes_default
8450 static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
8457 rm -f conftest.
$ac_objext
8458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8459 (eval $ac_compile) 2>conftest.er1
8461 grep -v '^ *+' conftest.er1
>conftest.err
8463 cat conftest.err
>&5
8464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8465 (exit $ac_status); } &&
8466 { ac_try
='test -z "$ac_c_werror_flag"
8467 || test ! -s conftest.err'
8468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8472 (exit $ac_status); }; } &&
8473 { ac_try
='test -s conftest.$ac_objext'
8474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8478 (exit $ac_status); }; }; then
8481 cat >conftest.
$ac_ext <<_ACEOF
8484 cat confdefs.h
>>conftest.
$ac_ext
8485 cat >>conftest.
$ac_ext <<_ACEOF
8486 /* end confdefs.h. */
8487 $ac_includes_default
8491 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
8498 rm -f conftest.
$ac_objext
8499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8500 (eval $ac_compile) 2>conftest.er1
8502 grep -v '^ *+' conftest.er1
>conftest.err
8504 cat conftest.err
>&5
8505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8506 (exit $ac_status); } &&
8507 { ac_try
='test -z "$ac_c_werror_flag"
8508 || test ! -s conftest.err'
8509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8513 (exit $ac_status); }; } &&
8514 { ac_try
='test -s conftest.$ac_objext'
8515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8519 (exit $ac_status); }; }; then
8520 ac_lo
=$ac_mid; break
8522 echo "$as_me: failed program was:" >&5
8523 sed 's/^/| /' conftest.
$ac_ext >&5
8525 ac_hi
=`expr '(' $ac_mid ')' - 1`
8526 if test $ac_mid -le $ac_hi; then
8530 ac_mid
=`expr 2 '*' $ac_mid`
8532 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8535 echo "$as_me: failed program was:" >&5
8536 sed 's/^/| /' conftest.
$ac_ext >&5
8540 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8542 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8543 # Binary search between lo and hi bounds.
8544 while test "x$ac_lo" != "x$ac_hi"; do
8545 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8546 cat >conftest.
$ac_ext <<_ACEOF
8549 cat confdefs.h
>>conftest.
$ac_ext
8550 cat >>conftest.
$ac_ext <<_ACEOF
8551 /* end confdefs.h. */
8552 $ac_includes_default
8556 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
8563 rm -f conftest.
$ac_objext
8564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8565 (eval $ac_compile) 2>conftest.er1
8567 grep -v '^ *+' conftest.er1
>conftest.err
8569 cat conftest.err
>&5
8570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8571 (exit $ac_status); } &&
8572 { ac_try
='test -z "$ac_c_werror_flag"
8573 || test ! -s conftest.err'
8574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8578 (exit $ac_status); }; } &&
8579 { ac_try
='test -s conftest.$ac_objext'
8580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8584 (exit $ac_status); }; }; then
8587 echo "$as_me: failed program was:" >&5
8588 sed 's/^/| /' conftest.
$ac_ext >&5
8590 ac_lo
=`expr '(' $ac_mid ')' + 1`
8592 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8595 ?
*) ac_cv_sizeof_double
=$ac_lo;;
8596 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
8597 See \`config.log' for more details." >&5
8598 echo "$as_me: error: cannot compute sizeof (double), 77
8599 See \`config.log' for more details." >&2;}
8600 { (exit 1); exit 1; }; } ;;
8603 if test "$cross_compiling" = yes; then
8604 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8605 See \`config.log' for more details." >&5
8606 echo "$as_me: error: cannot run test program while cross compiling
8607 See \`config.log' for more details." >&2;}
8608 { (exit 1); exit 1; }; }
8610 cat >conftest.
$ac_ext <<_ACEOF
8613 cat confdefs.h
>>conftest.
$ac_ext
8614 cat >>conftest.
$ac_ext <<_ACEOF
8615 /* end confdefs.h. */
8616 $ac_includes_default
8617 long longval () { return (long) (sizeof (double)); }
8618 unsigned long ulongval () { return (long) (sizeof (double)); }
8625 FILE *f = fopen ("conftest.val", "w");
8628 if (((long) (sizeof (double))) < 0)
8630 long i = longval ();
8631 if (i != ((long) (sizeof (double))))
8633 fprintf (f, "%ld\n", i);
8637 unsigned long i = ulongval ();
8638 if (i != ((long) (sizeof (double))))
8640 fprintf (f, "%lu\n", i);
8642 exit (ferror (f) || fclose (f) != 0);
8648 rm -f conftest
$ac_exeext
8649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8650 (eval $ac_link) 2>&5
8652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8653 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8658 (exit $ac_status); }; }; then
8659 ac_cv_sizeof_double
=`cat conftest.val`
8661 echo "$as_me: program exited with status $ac_status" >&5
8662 echo "$as_me: failed program was:" >&5
8663 sed 's/^/| /' conftest.
$ac_ext >&5
8666 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
8667 See \`config.log' for more details." >&5
8668 echo "$as_me: error: cannot compute sizeof (double), 77
8669 See \`config.log' for more details." >&2;}
8670 { (exit 1); exit 1; }; }
8672 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8677 ac_cv_sizeof_double
=0
8680 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
8681 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
8682 cat >>confdefs.h
<<_ACEOF
8683 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
8687 echo "$as_me:$LINENO: checking for fpos_t" >&5
8688 echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6
8689 if test "${ac_cv_type_fpos_t+set}" = set; then
8690 echo $ECHO_N "(cached) $ECHO_C" >&6
8692 cat >conftest.
$ac_ext <<_ACEOF
8695 cat confdefs.h
>>conftest.
$ac_ext
8696 cat >>conftest.
$ac_ext <<_ACEOF
8697 /* end confdefs.h. */
8698 $ac_includes_default
8704 if (sizeof (fpos_t))
8710 rm -f conftest.
$ac_objext
8711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8712 (eval $ac_compile) 2>conftest.er1
8714 grep -v '^ *+' conftest.er1
>conftest.err
8716 cat conftest.err
>&5
8717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8718 (exit $ac_status); } &&
8719 { ac_try
='test -z "$ac_c_werror_flag"
8720 || test ! -s conftest.err'
8721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8725 (exit $ac_status); }; } &&
8726 { ac_try
='test -s conftest.$ac_objext'
8727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8731 (exit $ac_status); }; }; then
8732 ac_cv_type_fpos_t
=yes
8734 echo "$as_me: failed program was:" >&5
8735 sed 's/^/| /' conftest.
$ac_ext >&5
8737 ac_cv_type_fpos_t
=no
8739 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8741 echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
8742 echo "${ECHO_T}$ac_cv_type_fpos_t" >&6
8744 echo "$as_me:$LINENO: checking size of fpos_t" >&5
8745 echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6
8746 if test "${ac_cv_sizeof_fpos_t+set}" = set; then
8747 echo $ECHO_N "(cached) $ECHO_C" >&6
8749 if test "$ac_cv_type_fpos_t" = yes; then
8750 # The cast to unsigned long works around a bug in the HP C Compiler
8751 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8752 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8753 # This bug is HP SR number 8606223364.
8754 if test "$cross_compiling" = yes; then
8755 # Depending upon the size, compute the lo and hi bounds.
8756 cat >conftest.
$ac_ext <<_ACEOF
8759 cat confdefs.h
>>conftest.
$ac_ext
8760 cat >>conftest.
$ac_ext <<_ACEOF
8761 /* end confdefs.h. */
8762 $ac_includes_default
8766 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= 0)];
8773 rm -f conftest.
$ac_objext
8774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8775 (eval $ac_compile) 2>conftest.er1
8777 grep -v '^ *+' conftest.er1
>conftest.err
8779 cat conftest.err
>&5
8780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8781 (exit $ac_status); } &&
8782 { ac_try
='test -z "$ac_c_werror_flag"
8783 || test ! -s conftest.err'
8784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8788 (exit $ac_status); }; } &&
8789 { ac_try
='test -s conftest.$ac_objext'
8790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8794 (exit $ac_status); }; }; then
8797 cat >conftest.
$ac_ext <<_ACEOF
8800 cat confdefs.h
>>conftest.
$ac_ext
8801 cat >>conftest.
$ac_ext <<_ACEOF
8802 /* end confdefs.h. */
8803 $ac_includes_default
8807 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)];
8814 rm -f conftest.
$ac_objext
8815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8816 (eval $ac_compile) 2>conftest.er1
8818 grep -v '^ *+' conftest.er1
>conftest.err
8820 cat conftest.err
>&5
8821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8822 (exit $ac_status); } &&
8823 { ac_try
='test -z "$ac_c_werror_flag"
8824 || test ! -s conftest.err'
8825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8829 (exit $ac_status); }; } &&
8830 { ac_try
='test -s conftest.$ac_objext'
8831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8835 (exit $ac_status); }; }; then
8836 ac_hi
=$ac_mid; break
8838 echo "$as_me: failed program was:" >&5
8839 sed 's/^/| /' conftest.
$ac_ext >&5
8841 ac_lo
=`expr $ac_mid + 1`
8842 if test $ac_lo -le $ac_mid; then
8846 ac_mid
=`expr 2 '*' $ac_mid + 1`
8848 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8851 echo "$as_me: failed program was:" >&5
8852 sed 's/^/| /' conftest.
$ac_ext >&5
8854 cat >conftest.
$ac_ext <<_ACEOF
8857 cat confdefs.h
>>conftest.
$ac_ext
8858 cat >>conftest.
$ac_ext <<_ACEOF
8859 /* end confdefs.h. */
8860 $ac_includes_default
8864 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) < 0)];
8871 rm -f conftest.
$ac_objext
8872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8873 (eval $ac_compile) 2>conftest.er1
8875 grep -v '^ *+' conftest.er1
>conftest.err
8877 cat conftest.err
>&5
8878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8879 (exit $ac_status); } &&
8880 { ac_try
='test -z "$ac_c_werror_flag"
8881 || test ! -s conftest.err'
8882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8886 (exit $ac_status); }; } &&
8887 { ac_try
='test -s conftest.$ac_objext'
8888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8892 (exit $ac_status); }; }; then
8895 cat >conftest.
$ac_ext <<_ACEOF
8898 cat confdefs.h
>>conftest.
$ac_ext
8899 cat >>conftest.
$ac_ext <<_ACEOF
8900 /* end confdefs.h. */
8901 $ac_includes_default
8905 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= $ac_mid)];
8912 rm -f conftest.
$ac_objext
8913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8914 (eval $ac_compile) 2>conftest.er1
8916 grep -v '^ *+' conftest.er1
>conftest.err
8918 cat conftest.err
>&5
8919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8920 (exit $ac_status); } &&
8921 { ac_try
='test -z "$ac_c_werror_flag"
8922 || test ! -s conftest.err'
8923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8927 (exit $ac_status); }; } &&
8928 { ac_try
='test -s conftest.$ac_objext'
8929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8933 (exit $ac_status); }; }; then
8934 ac_lo
=$ac_mid; break
8936 echo "$as_me: failed program was:" >&5
8937 sed 's/^/| /' conftest.
$ac_ext >&5
8939 ac_hi
=`expr '(' $ac_mid ')' - 1`
8940 if test $ac_mid -le $ac_hi; then
8944 ac_mid
=`expr 2 '*' $ac_mid`
8946 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8949 echo "$as_me: failed program was:" >&5
8950 sed 's/^/| /' conftest.
$ac_ext >&5
8954 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8956 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8957 # Binary search between lo and hi bounds.
8958 while test "x$ac_lo" != "x$ac_hi"; do
8959 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8960 cat >conftest.
$ac_ext <<_ACEOF
8963 cat confdefs.h
>>conftest.
$ac_ext
8964 cat >>conftest.
$ac_ext <<_ACEOF
8965 /* end confdefs.h. */
8966 $ac_includes_default
8970 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)];
8977 rm -f conftest.
$ac_objext
8978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8979 (eval $ac_compile) 2>conftest.er1
8981 grep -v '^ *+' conftest.er1
>conftest.err
8983 cat conftest.err
>&5
8984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8985 (exit $ac_status); } &&
8986 { ac_try
='test -z "$ac_c_werror_flag"
8987 || test ! -s conftest.err'
8988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8992 (exit $ac_status); }; } &&
8993 { ac_try
='test -s conftest.$ac_objext'
8994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8998 (exit $ac_status); }; }; then
9001 echo "$as_me: failed program was:" >&5
9002 sed 's/^/| /' conftest.
$ac_ext >&5
9004 ac_lo
=`expr '(' $ac_mid ')' + 1`
9006 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9009 ?
*) ac_cv_sizeof_fpos_t
=$ac_lo;;
9010 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77
9011 See \`config.log' for more details." >&5
9012 echo "$as_me: error: cannot compute sizeof (fpos_t), 77
9013 See \`config.log' for more details." >&2;}
9014 { (exit 1); exit 1; }; } ;;
9017 if test "$cross_compiling" = yes; then
9018 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9019 See \`config.log' for more details." >&5
9020 echo "$as_me: error: cannot run test program while cross compiling
9021 See \`config.log' for more details." >&2;}
9022 { (exit 1); exit 1; }; }
9024 cat >conftest.
$ac_ext <<_ACEOF
9027 cat confdefs.h
>>conftest.
$ac_ext
9028 cat >>conftest.
$ac_ext <<_ACEOF
9029 /* end confdefs.h. */
9030 $ac_includes_default
9031 long longval () { return (long) (sizeof (fpos_t)); }
9032 unsigned long ulongval () { return (long) (sizeof (fpos_t)); }
9039 FILE *f = fopen ("conftest.val", "w");
9042 if (((long) (sizeof (fpos_t))) < 0)
9044 long i = longval ();
9045 if (i != ((long) (sizeof (fpos_t))))
9047 fprintf (f, "%ld\n", i);
9051 unsigned long i = ulongval ();
9052 if (i != ((long) (sizeof (fpos_t))))
9054 fprintf (f, "%lu\n", i);
9056 exit (ferror (f) || fclose (f) != 0);
9062 rm -f conftest
$ac_exeext
9063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9064 (eval $ac_link) 2>&5
9066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9067 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9072 (exit $ac_status); }; }; then
9073 ac_cv_sizeof_fpos_t
=`cat conftest.val`
9075 echo "$as_me: program exited with status $ac_status" >&5
9076 echo "$as_me: failed program was:" >&5
9077 sed 's/^/| /' conftest.
$ac_ext >&5
9080 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77
9081 See \`config.log' for more details." >&5
9082 echo "$as_me: error: cannot compute sizeof (fpos_t), 77
9083 See \`config.log' for more details." >&2;}
9084 { (exit 1); exit 1; }; }
9086 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9091 ac_cv_sizeof_fpos_t
=0
9094 echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
9095 echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6
9096 cat >>confdefs.h
<<_ACEOF
9097 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
9102 echo "$as_me:$LINENO: checking for long long support" >&5
9103 echo $ECHO_N "checking for long long support... $ECHO_C" >&6
9105 cat >conftest.
$ac_ext <<_ACEOF
9108 cat confdefs.h
>>conftest.
$ac_ext
9109 cat >>conftest.
$ac_ext <<_ACEOF
9110 /* end confdefs.h. */
9115 long long x; x = (long long)0;
9120 rm -f conftest.
$ac_objext
9121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9122 (eval $ac_compile) 2>conftest.er1
9124 grep -v '^ *+' conftest.er1
>conftest.err
9126 cat conftest.err
>&5
9127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9128 (exit $ac_status); } &&
9129 { ac_try
='test -z "$ac_c_werror_flag"
9130 || test ! -s conftest.err'
9131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9135 (exit $ac_status); }; } &&
9136 { ac_try
='test -s conftest.$ac_objext'
9137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9141 (exit $ac_status); }; }; then
9144 cat >>confdefs.h
<<\_ACEOF
9145 #define HAVE_LONG_LONG 1
9151 echo "$as_me: failed program was:" >&5
9152 sed 's/^/| /' conftest.
$ac_ext >&5
9155 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9156 echo "$as_me:$LINENO: result: $have_long_long" >&5
9157 echo "${ECHO_T}$have_long_long" >&6
9158 if test "$have_long_long" = yes ; then
9159 echo "$as_me:$LINENO: checking for long long" >&5
9160 echo $ECHO_N "checking for long long... $ECHO_C" >&6
9161 if test "${ac_cv_type_long_long+set}" = set; then
9162 echo $ECHO_N "(cached) $ECHO_C" >&6
9164 cat >conftest.
$ac_ext <<_ACEOF
9167 cat confdefs.h
>>conftest.
$ac_ext
9168 cat >>conftest.
$ac_ext <<_ACEOF
9169 /* end confdefs.h. */
9170 $ac_includes_default
9174 if ((long long *) 0)
9176 if (sizeof (long long))
9182 rm -f conftest.
$ac_objext
9183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9184 (eval $ac_compile) 2>conftest.er1
9186 grep -v '^ *+' conftest.er1
>conftest.err
9188 cat conftest.err
>&5
9189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9190 (exit $ac_status); } &&
9191 { ac_try
='test -z "$ac_c_werror_flag"
9192 || test ! -s conftest.err'
9193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9197 (exit $ac_status); }; } &&
9198 { ac_try
='test -s conftest.$ac_objext'
9199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9203 (exit $ac_status); }; }; then
9204 ac_cv_type_long_long
=yes
9206 echo "$as_me: failed program was:" >&5
9207 sed 's/^/| /' conftest.
$ac_ext >&5
9209 ac_cv_type_long_long
=no
9211 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9213 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
9214 echo "${ECHO_T}$ac_cv_type_long_long" >&6
9216 echo "$as_me:$LINENO: checking size of long long" >&5
9217 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
9218 if test "${ac_cv_sizeof_long_long+set}" = set; then
9219 echo $ECHO_N "(cached) $ECHO_C" >&6
9221 if test "$ac_cv_type_long_long" = yes; then
9222 # The cast to unsigned long works around a bug in the HP C Compiler
9223 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9224 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9225 # This bug is HP SR number 8606223364.
9226 if test "$cross_compiling" = yes; then
9227 # Depending upon the size, compute the lo and hi bounds.
9228 cat >conftest.
$ac_ext <<_ACEOF
9231 cat confdefs.h
>>conftest.
$ac_ext
9232 cat >>conftest.
$ac_ext <<_ACEOF
9233 /* end confdefs.h. */
9234 $ac_includes_default
9238 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
9245 rm -f conftest.
$ac_objext
9246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9247 (eval $ac_compile) 2>conftest.er1
9249 grep -v '^ *+' conftest.er1
>conftest.err
9251 cat conftest.err
>&5
9252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9253 (exit $ac_status); } &&
9254 { ac_try
='test -z "$ac_c_werror_flag"
9255 || test ! -s conftest.err'
9256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9260 (exit $ac_status); }; } &&
9261 { ac_try
='test -s conftest.$ac_objext'
9262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9266 (exit $ac_status); }; }; then
9269 cat >conftest.
$ac_ext <<_ACEOF
9272 cat confdefs.h
>>conftest.
$ac_ext
9273 cat >>conftest.
$ac_ext <<_ACEOF
9274 /* end confdefs.h. */
9275 $ac_includes_default
9279 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
9286 rm -f conftest.
$ac_objext
9287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9288 (eval $ac_compile) 2>conftest.er1
9290 grep -v '^ *+' conftest.er1
>conftest.err
9292 cat conftest.err
>&5
9293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9294 (exit $ac_status); } &&
9295 { ac_try
='test -z "$ac_c_werror_flag"
9296 || test ! -s conftest.err'
9297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9301 (exit $ac_status); }; } &&
9302 { ac_try
='test -s conftest.$ac_objext'
9303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9307 (exit $ac_status); }; }; then
9308 ac_hi
=$ac_mid; break
9310 echo "$as_me: failed program was:" >&5
9311 sed 's/^/| /' conftest.
$ac_ext >&5
9313 ac_lo
=`expr $ac_mid + 1`
9314 if test $ac_lo -le $ac_mid; then
9318 ac_mid
=`expr 2 '*' $ac_mid + 1`
9320 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9323 echo "$as_me: failed program was:" >&5
9324 sed 's/^/| /' conftest.
$ac_ext >&5
9326 cat >conftest.
$ac_ext <<_ACEOF
9329 cat confdefs.h
>>conftest.
$ac_ext
9330 cat >>conftest.
$ac_ext <<_ACEOF
9331 /* end confdefs.h. */
9332 $ac_includes_default
9336 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
9343 rm -f conftest.
$ac_objext
9344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9345 (eval $ac_compile) 2>conftest.er1
9347 grep -v '^ *+' conftest.er1
>conftest.err
9349 cat conftest.err
>&5
9350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9351 (exit $ac_status); } &&
9352 { ac_try
='test -z "$ac_c_werror_flag"
9353 || test ! -s conftest.err'
9354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9358 (exit $ac_status); }; } &&
9359 { ac_try
='test -s conftest.$ac_objext'
9360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9364 (exit $ac_status); }; }; then
9367 cat >conftest.
$ac_ext <<_ACEOF
9370 cat confdefs.h
>>conftest.
$ac_ext
9371 cat >>conftest.
$ac_ext <<_ACEOF
9372 /* end confdefs.h. */
9373 $ac_includes_default
9377 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
9384 rm -f conftest.
$ac_objext
9385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9386 (eval $ac_compile) 2>conftest.er1
9388 grep -v '^ *+' conftest.er1
>conftest.err
9390 cat conftest.err
>&5
9391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9392 (exit $ac_status); } &&
9393 { ac_try
='test -z "$ac_c_werror_flag"
9394 || test ! -s conftest.err'
9395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9399 (exit $ac_status); }; } &&
9400 { ac_try
='test -s conftest.$ac_objext'
9401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9405 (exit $ac_status); }; }; then
9406 ac_lo
=$ac_mid; break
9408 echo "$as_me: failed program was:" >&5
9409 sed 's/^/| /' conftest.
$ac_ext >&5
9411 ac_hi
=`expr '(' $ac_mid ')' - 1`
9412 if test $ac_mid -le $ac_hi; then
9416 ac_mid
=`expr 2 '*' $ac_mid`
9418 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9421 echo "$as_me: failed program was:" >&5
9422 sed 's/^/| /' conftest.
$ac_ext >&5
9426 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9428 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9429 # Binary search between lo and hi bounds.
9430 while test "x$ac_lo" != "x$ac_hi"; do
9431 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9432 cat >conftest.
$ac_ext <<_ACEOF
9435 cat confdefs.h
>>conftest.
$ac_ext
9436 cat >>conftest.
$ac_ext <<_ACEOF
9437 /* end confdefs.h. */
9438 $ac_includes_default
9442 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
9449 rm -f conftest.
$ac_objext
9450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9451 (eval $ac_compile) 2>conftest.er1
9453 grep -v '^ *+' conftest.er1
>conftest.err
9455 cat conftest.err
>&5
9456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9457 (exit $ac_status); } &&
9458 { ac_try
='test -z "$ac_c_werror_flag"
9459 || test ! -s conftest.err'
9460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9464 (exit $ac_status); }; } &&
9465 { ac_try
='test -s conftest.$ac_objext'
9466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9470 (exit $ac_status); }; }; then
9473 echo "$as_me: failed program was:" >&5
9474 sed 's/^/| /' conftest.
$ac_ext >&5
9476 ac_lo
=`expr '(' $ac_mid ')' + 1`
9478 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9481 ?
*) ac_cv_sizeof_long_long
=$ac_lo;;
9482 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
9483 See \`config.log' for more details." >&5
9484 echo "$as_me: error: cannot compute sizeof (long long), 77
9485 See \`config.log' for more details." >&2;}
9486 { (exit 1); exit 1; }; } ;;
9489 if test "$cross_compiling" = yes; then
9490 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9491 See \`config.log' for more details." >&5
9492 echo "$as_me: error: cannot run test program while cross compiling
9493 See \`config.log' for more details." >&2;}
9494 { (exit 1); exit 1; }; }
9496 cat >conftest.
$ac_ext <<_ACEOF
9499 cat confdefs.h
>>conftest.
$ac_ext
9500 cat >>conftest.
$ac_ext <<_ACEOF
9501 /* end confdefs.h. */
9502 $ac_includes_default
9503 long longval () { return (long) (sizeof (long long)); }
9504 unsigned long ulongval () { return (long) (sizeof (long long)); }
9511 FILE *f = fopen ("conftest.val", "w");
9514 if (((long) (sizeof (long long))) < 0)
9516 long i = longval ();
9517 if (i != ((long) (sizeof (long long))))
9519 fprintf (f, "%ld\n", i);
9523 unsigned long i = ulongval ();
9524 if (i != ((long) (sizeof (long long))))
9526 fprintf (f, "%lu\n", i);
9528 exit (ferror (f) || fclose (f) != 0);
9534 rm -f conftest
$ac_exeext
9535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9536 (eval $ac_link) 2>&5
9538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9539 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9544 (exit $ac_status); }; }; then
9545 ac_cv_sizeof_long_long
=`cat conftest.val`
9547 echo "$as_me: program exited with status $ac_status" >&5
9548 echo "$as_me: failed program was:" >&5
9549 sed 's/^/| /' conftest.
$ac_ext >&5
9552 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
9553 See \`config.log' for more details." >&5
9554 echo "$as_me: error: cannot compute sizeof (long long), 77
9555 See \`config.log' for more details." >&2;}
9556 { (exit 1); exit 1; }; }
9558 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9563 ac_cv_sizeof_long_long
=0
9566 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
9567 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
9568 cat >>confdefs.h
<<_ACEOF
9569 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
9575 echo "$as_me:$LINENO: checking for uintptr_t support" >&5
9576 echo $ECHO_N "checking for uintptr_t support... $ECHO_C" >&6
9578 cat >conftest.
$ac_ext <<_ACEOF
9581 cat confdefs.h
>>conftest.
$ac_ext
9582 cat >>conftest.
$ac_ext <<_ACEOF
9583 /* end confdefs.h. */
9588 uintptr_t x; x = (uintptr_t)0;
9593 rm -f conftest.
$ac_objext
9594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9595 (eval $ac_compile) 2>conftest.er1
9597 grep -v '^ *+' conftest.er1
>conftest.err
9599 cat conftest.err
>&5
9600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9601 (exit $ac_status); } &&
9602 { ac_try
='test -z "$ac_c_werror_flag"
9603 || test ! -s conftest.err'
9604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9608 (exit $ac_status); }; } &&
9609 { ac_try
='test -s conftest.$ac_objext'
9610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9614 (exit $ac_status); }; }; then
9617 cat >>confdefs.h
<<\_ACEOF
9618 #define HAVE_UINTPTR_T 1
9624 echo "$as_me: failed program was:" >&5
9625 sed 's/^/| /' conftest.
$ac_ext >&5
9628 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9629 echo "$as_me:$LINENO: result: $have_uintptr_t" >&5
9630 echo "${ECHO_T}$have_uintptr_t" >&6
9631 if test "$have_uintptr_t" = yes ; then
9632 echo "$as_me:$LINENO: checking for uintptr_t" >&5
9633 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
9634 if test "${ac_cv_type_uintptr_t+set}" = set; then
9635 echo $ECHO_N "(cached) $ECHO_C" >&6
9637 cat >conftest.
$ac_ext <<_ACEOF
9640 cat confdefs.h
>>conftest.
$ac_ext
9641 cat >>conftest.
$ac_ext <<_ACEOF
9642 /* end confdefs.h. */
9643 $ac_includes_default
9647 if ((uintptr_t *) 0)
9649 if (sizeof (uintptr_t))
9655 rm -f conftest.
$ac_objext
9656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9657 (eval $ac_compile) 2>conftest.er1
9659 grep -v '^ *+' conftest.er1
>conftest.err
9661 cat conftest.err
>&5
9662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9663 (exit $ac_status); } &&
9664 { ac_try
='test -z "$ac_c_werror_flag"
9665 || test ! -s conftest.err'
9666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9670 (exit $ac_status); }; } &&
9671 { ac_try
='test -s conftest.$ac_objext'
9672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9676 (exit $ac_status); }; }; then
9677 ac_cv_type_uintptr_t
=yes
9679 echo "$as_me: failed program was:" >&5
9680 sed 's/^/| /' conftest.
$ac_ext >&5
9682 ac_cv_type_uintptr_t
=no
9684 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9686 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
9687 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
9689 echo "$as_me:$LINENO: checking size of uintptr_t" >&5
9690 echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6
9691 if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
9692 echo $ECHO_N "(cached) $ECHO_C" >&6
9694 if test "$ac_cv_type_uintptr_t" = yes; then
9695 # The cast to unsigned long works around a bug in the HP C Compiler
9696 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9697 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9698 # This bug is HP SR number 8606223364.
9699 if test "$cross_compiling" = yes; then
9700 # Depending upon the size, compute the lo and hi bounds.
9701 cat >conftest.
$ac_ext <<_ACEOF
9704 cat confdefs.h
>>conftest.
$ac_ext
9705 cat >>conftest.
$ac_ext <<_ACEOF
9706 /* end confdefs.h. */
9707 $ac_includes_default
9711 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= 0)];
9718 rm -f conftest.
$ac_objext
9719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9720 (eval $ac_compile) 2>conftest.er1
9722 grep -v '^ *+' conftest.er1
>conftest.err
9724 cat conftest.err
>&5
9725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9726 (exit $ac_status); } &&
9727 { ac_try
='test -z "$ac_c_werror_flag"
9728 || test ! -s conftest.err'
9729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9733 (exit $ac_status); }; } &&
9734 { ac_try
='test -s conftest.$ac_objext'
9735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9739 (exit $ac_status); }; }; then
9742 cat >conftest.
$ac_ext <<_ACEOF
9745 cat confdefs.h
>>conftest.
$ac_ext
9746 cat >>conftest.
$ac_ext <<_ACEOF
9747 /* end confdefs.h. */
9748 $ac_includes_default
9752 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)];
9759 rm -f conftest.
$ac_objext
9760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9761 (eval $ac_compile) 2>conftest.er1
9763 grep -v '^ *+' conftest.er1
>conftest.err
9765 cat conftest.err
>&5
9766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9767 (exit $ac_status); } &&
9768 { ac_try
='test -z "$ac_c_werror_flag"
9769 || test ! -s conftest.err'
9770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9774 (exit $ac_status); }; } &&
9775 { ac_try
='test -s conftest.$ac_objext'
9776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9780 (exit $ac_status); }; }; then
9781 ac_hi
=$ac_mid; break
9783 echo "$as_me: failed program was:" >&5
9784 sed 's/^/| /' conftest.
$ac_ext >&5
9786 ac_lo
=`expr $ac_mid + 1`
9787 if test $ac_lo -le $ac_mid; then
9791 ac_mid
=`expr 2 '*' $ac_mid + 1`
9793 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9796 echo "$as_me: failed program was:" >&5
9797 sed 's/^/| /' conftest.
$ac_ext >&5
9799 cat >conftest.
$ac_ext <<_ACEOF
9802 cat confdefs.h
>>conftest.
$ac_ext
9803 cat >>conftest.
$ac_ext <<_ACEOF
9804 /* end confdefs.h. */
9805 $ac_includes_default
9809 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) < 0)];
9816 rm -f conftest.
$ac_objext
9817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9818 (eval $ac_compile) 2>conftest.er1
9820 grep -v '^ *+' conftest.er1
>conftest.err
9822 cat conftest.err
>&5
9823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9824 (exit $ac_status); } &&
9825 { ac_try
='test -z "$ac_c_werror_flag"
9826 || test ! -s conftest.err'
9827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831 (exit $ac_status); }; } &&
9832 { ac_try
='test -s conftest.$ac_objext'
9833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9837 (exit $ac_status); }; }; then
9840 cat >conftest.
$ac_ext <<_ACEOF
9843 cat confdefs.h
>>conftest.
$ac_ext
9844 cat >>conftest.
$ac_ext <<_ACEOF
9845 /* end confdefs.h. */
9846 $ac_includes_default
9850 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= $ac_mid)];
9857 rm -f conftest.
$ac_objext
9858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9859 (eval $ac_compile) 2>conftest.er1
9861 grep -v '^ *+' conftest.er1
>conftest.err
9863 cat conftest.err
>&5
9864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9865 (exit $ac_status); } &&
9866 { ac_try
='test -z "$ac_c_werror_flag"
9867 || test ! -s conftest.err'
9868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872 (exit $ac_status); }; } &&
9873 { ac_try
='test -s conftest.$ac_objext'
9874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9878 (exit $ac_status); }; }; then
9879 ac_lo
=$ac_mid; break
9881 echo "$as_me: failed program was:" >&5
9882 sed 's/^/| /' conftest.
$ac_ext >&5
9884 ac_hi
=`expr '(' $ac_mid ')' - 1`
9885 if test $ac_mid -le $ac_hi; then
9889 ac_mid
=`expr 2 '*' $ac_mid`
9891 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9894 echo "$as_me: failed program was:" >&5
9895 sed 's/^/| /' conftest.
$ac_ext >&5
9899 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9901 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9902 # Binary search between lo and hi bounds.
9903 while test "x$ac_lo" != "x$ac_hi"; do
9904 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9905 cat >conftest.
$ac_ext <<_ACEOF
9908 cat confdefs.h
>>conftest.
$ac_ext
9909 cat >>conftest.
$ac_ext <<_ACEOF
9910 /* end confdefs.h. */
9911 $ac_includes_default
9915 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)];
9922 rm -f conftest.
$ac_objext
9923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9924 (eval $ac_compile) 2>conftest.er1
9926 grep -v '^ *+' conftest.er1
>conftest.err
9928 cat conftest.err
>&5
9929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9930 (exit $ac_status); } &&
9931 { ac_try
='test -z "$ac_c_werror_flag"
9932 || test ! -s conftest.err'
9933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9937 (exit $ac_status); }; } &&
9938 { ac_try
='test -s conftest.$ac_objext'
9939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9943 (exit $ac_status); }; }; then
9946 echo "$as_me: failed program was:" >&5
9947 sed 's/^/| /' conftest.
$ac_ext >&5
9949 ac_lo
=`expr '(' $ac_mid ')' + 1`
9951 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9954 ?
*) ac_cv_sizeof_uintptr_t
=$ac_lo;;
9955 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77
9956 See \`config.log' for more details." >&5
9957 echo "$as_me: error: cannot compute sizeof (uintptr_t), 77
9958 See \`config.log' for more details." >&2;}
9959 { (exit 1); exit 1; }; } ;;
9962 if test "$cross_compiling" = yes; then
9963 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9964 See \`config.log' for more details." >&5
9965 echo "$as_me: error: cannot run test program while cross compiling
9966 See \`config.log' for more details." >&2;}
9967 { (exit 1); exit 1; }; }
9969 cat >conftest.
$ac_ext <<_ACEOF
9972 cat confdefs.h
>>conftest.
$ac_ext
9973 cat >>conftest.
$ac_ext <<_ACEOF
9974 /* end confdefs.h. */
9975 $ac_includes_default
9976 long longval () { return (long) (sizeof (uintptr_t)); }
9977 unsigned long ulongval () { return (long) (sizeof (uintptr_t)); }
9984 FILE *f = fopen ("conftest.val", "w");
9987 if (((long) (sizeof (uintptr_t))) < 0)
9989 long i = longval ();
9990 if (i != ((long) (sizeof (uintptr_t))))
9992 fprintf (f, "%ld\n", i);
9996 unsigned long i = ulongval ();
9997 if (i != ((long) (sizeof (uintptr_t))))
9999 fprintf (f, "%lu\n", i);
10001 exit (ferror (f) || fclose (f) != 0);
10007 rm -f conftest
$ac_exeext
10008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10009 (eval $ac_link) 2>&5
10011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10012 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10014 (eval $ac_try) 2>&5
10016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10017 (exit $ac_status); }; }; then
10018 ac_cv_sizeof_uintptr_t
=`cat conftest.val`
10020 echo "$as_me: program exited with status $ac_status" >&5
10021 echo "$as_me: failed program was:" >&5
10022 sed 's/^/| /' conftest.
$ac_ext >&5
10024 ( exit $ac_status )
10025 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77
10026 See \`config.log' for more details." >&5
10027 echo "$as_me: error: cannot compute sizeof (uintptr_t), 77
10028 See \`config.log' for more details." >&2;}
10029 { (exit 1); exit 1; }; }
10031 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10036 ac_cv_sizeof_uintptr_t
=0
10039 echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
10040 echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6
10041 cat >>confdefs.h
<<_ACEOF
10042 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
10048 # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>.
10049 echo "$as_me:$LINENO: checking size of off_t" >&5
10050 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
10051 if test "${ac_cv_sizeof_off_t+set}" = set; then
10052 echo $ECHO_N "(cached) $ECHO_C" >&6
10054 if test "$cross_compiling" = yes; then
10055 ac_cv_sizeof_off_t
=4
10057 cat >conftest.
$ac_ext <<_ACEOF
10060 cat confdefs.h
>>conftest.
$ac_ext
10061 cat >>conftest.
$ac_ext <<_ACEOF
10062 /* end confdefs.h. */
10064 #include <sys/types.h>
10067 FILE *f=fopen("conftestval", "w");
10069 fprintf(f, "%d\n", sizeof(off_t));
10073 rm -f conftest
$ac_exeext
10074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10075 (eval $ac_link) 2>&5
10077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10078 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10080 (eval $ac_try) 2>&5
10082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10083 (exit $ac_status); }; }; then
10084 ac_cv_sizeof_off_t
=`cat conftestval`
10086 echo "$as_me: program exited with status $ac_status" >&5
10087 echo "$as_me: failed program was:" >&5
10088 sed 's/^/| /' conftest.
$ac_ext >&5
10090 ( exit $ac_status )
10091 ac_cv_sizeof_off_t
=0
10093 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10098 echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
10099 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
10101 cat >>confdefs.h
<<_ACEOF
10102 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
10106 echo "$as_me:$LINENO: checking whether to enable large file support" >&5
10107 echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6
10108 if test "$have_long_long" = yes -a \
10109 "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
10110 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
10112 cat >>confdefs.h
<<\_ACEOF
10113 #define HAVE_LARGEFILE_SUPPORT 1
10116 echo "$as_me:$LINENO: result: yes" >&5
10117 echo "${ECHO_T}yes" >&6
10119 echo "$as_me:$LINENO: result: no" >&5
10120 echo "${ECHO_T}no" >&6
10123 # AC_CHECK_SIZEOF() doesn't include <time.h>.
10124 echo "$as_me:$LINENO: checking size of time_t" >&5
10125 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6
10126 if test "${ac_cv_sizeof_time_t+set}" = set; then
10127 echo $ECHO_N "(cached) $ECHO_C" >&6
10129 if test "$cross_compiling" = yes; then
10130 ac_cv_sizeof_time_t
=4
10132 cat >conftest.
$ac_ext <<_ACEOF
10135 cat confdefs.h
>>conftest.
$ac_ext
10136 cat >>conftest.
$ac_ext <<_ACEOF
10137 /* end confdefs.h. */
10142 FILE *f=fopen("conftestval", "w");
10144 fprintf(f, "%d\n", sizeof(time_t));
10148 rm -f conftest
$ac_exeext
10149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10150 (eval $ac_link) 2>&5
10152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10153 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10155 (eval $ac_try) 2>&5
10157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10158 (exit $ac_status); }; }; then
10159 ac_cv_sizeof_time_t
=`cat conftestval`
10161 echo "$as_me: program exited with status $ac_status" >&5
10162 echo "$as_me: failed program was:" >&5
10163 sed 's/^/| /' conftest.
$ac_ext >&5
10165 ( exit $ac_status )
10166 ac_cv_sizeof_time_t
=0
10168 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10173 echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
10174 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6
10176 cat >>confdefs.h
<<_ACEOF
10177 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
10182 # if have pthread_t then define SIZEOF_PTHREAD_T
10184 if test "$ac_cv_kpthread" = "yes"
10185 then CC
="$CC -Kpthread"
10186 elif test "$ac_cv_kthread" = "yes"
10187 then CC
="$CC -Kthread"
10188 elif test "$ac_cv_pthread" = "yes"
10189 then CC
="$CC -pthread"
10191 echo "$as_me:$LINENO: checking for pthread_t" >&5
10192 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6
10194 cat >conftest.
$ac_ext <<_ACEOF
10197 cat confdefs.h
>>conftest.
$ac_ext
10198 cat >>conftest.
$ac_ext <<_ACEOF
10199 /* end confdefs.h. */
10200 #include <pthread.h>
10204 pthread_t x; x = *(pthread_t*)0;
10209 rm -f conftest.
$ac_objext
10210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10211 (eval $ac_compile) 2>conftest.er1
10213 grep -v '^ *+' conftest.er1
>conftest.err
10215 cat conftest.err
>&5
10216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217 (exit $ac_status); } &&
10218 { ac_try
='test -z "$ac_c_werror_flag"
10219 || test ! -s conftest.err'
10220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10221 (eval $ac_try) 2>&5
10223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10224 (exit $ac_status); }; } &&
10225 { ac_try
='test -s conftest.$ac_objext'
10226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10227 (eval $ac_try) 2>&5
10229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10230 (exit $ac_status); }; }; then
10233 echo "$as_me: failed program was:" >&5
10234 sed 's/^/| /' conftest.
$ac_ext >&5
10237 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10238 echo "$as_me:$LINENO: result: $have_pthread_t" >&5
10239 echo "${ECHO_T}$have_pthread_t" >&6
10240 if test "$have_pthread_t" = yes ; then
10241 # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
10242 echo "$as_me:$LINENO: checking size of pthread_t" >&5
10243 echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6
10244 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
10245 echo $ECHO_N "(cached) $ECHO_C" >&6
10247 if test "$cross_compiling" = yes; then
10248 ac_cv_sizeof_pthread_t
=4
10250 cat >conftest.
$ac_ext <<_ACEOF
10253 cat confdefs.h
>>conftest.
$ac_ext
10254 cat >>conftest.
$ac_ext <<_ACEOF
10255 /* end confdefs.h. */
10257 #include <pthread.h>
10260 FILE *f=fopen("conftestval", "w");
10262 fprintf(f, "%d\n", sizeof(pthread_t));
10266 rm -f conftest
$ac_exeext
10267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10268 (eval $ac_link) 2>&5
10270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10271 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10273 (eval $ac_try) 2>&5
10275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10276 (exit $ac_status); }; }; then
10277 ac_cv_sizeof_pthread_t
=`cat conftestval`
10279 echo "$as_me: program exited with status $ac_status" >&5
10280 echo "$as_me: failed program was:" >&5
10281 sed 's/^/| /' conftest.
$ac_ext >&5
10283 ( exit $ac_status )
10284 ac_cv_sizeof_pthread_t
=0
10286 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10291 echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
10292 echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6
10294 cat >>confdefs.h
<<_ACEOF
10295 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
10301 echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5
10302 echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6
10303 # Check whether --enable-toolbox-glue or --disable-toolbox-glue was given.
10304 if test "${enable_toolbox_glue+set}" = set; then
10305 enableval
="$enable_toolbox_glue"
10309 if test -z "$enable_toolbox_glue"
10311 case $ac_sys_system/$ac_sys_release in
10313 enable_toolbox_glue
="yes";;
10315 enable_toolbox_glue
="no";;
10318 case "$enable_toolbox_glue" in
10320 extra_machdep_objs
="Python/mactoolboxglue.o"
10321 extra_undefs
="-u _PyMac_Error"
10323 cat >>confdefs.h
<<\_ACEOF
10324 #define USE_TOOLBOX_OBJECT_GLUE 1
10329 extra_machdep_objs
=""
10333 echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5
10334 echo "${ECHO_T}$enable_toolbox_glue" >&6
10337 case $ac_sys_system/$ac_sys_release in
10338 Darwin
/[01234567].
*)
10339 OTHER_LIBTOOL_OPT
="-prebind -seg1addr 0x10000000"
10342 OTHER_LIBTOOL_OPT
=""
10347 case $ac_sys_system/$ac_sys_release in
10348 Darwin
/[01234567].
*)
10349 LIBTOOL_CRUFT
="-framework System -lcc_dynamic -arch_only ppc"
10350 LIBTOOL_CRUFT
=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10351 LIBTOOL_CRUFT
=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
10353 gcc_version
=`gcc -v 2>&1 | grep version | cut -d\ -f3`
10354 if test ${gcc_version} '<' 4.0
10356 LIBTOOL_CRUFT
="-lcc_dynamic"
10360 LIBTOOL_CRUFT
=$LIBTOOL_CRUFT' -lSystem -lSystemStubs -arch_only ppc'
10361 LIBTOOL_CRUFT
=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10362 LIBTOOL_CRUFT
=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
10365 echo "$as_me:$LINENO: checking for --enable-framework" >&5
10366 echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6
10367 if test "$enable_framework"
10369 BASECFLAGS
="$BASECFLAGS -fno-common -dynamic"
10370 # -F. is needed to allow linking to the framework while
10371 # in the build location.
10373 cat >>confdefs.h
<<\_ACEOF
10374 #define WITH_NEXT_FRAMEWORK 1
10377 echo "$as_me:$LINENO: result: yes" >&5
10378 echo "${ECHO_T}yes" >&6
10380 echo "$as_me:$LINENO: result: no" >&5
10381 echo "${ECHO_T}no" >&6
10384 echo "$as_me:$LINENO: checking for dyld" >&5
10385 echo $ECHO_N "checking for dyld... $ECHO_C" >&6
10386 case $ac_sys_system/$ac_sys_release in
10389 cat >>confdefs.h
<<\_ACEOF
10390 #define WITH_DYLD 1
10393 echo "$as_me:$LINENO: result: always on for Darwin" >&5
10394 echo "${ECHO_T}always on for Darwin" >&6
10397 echo "$as_me:$LINENO: result: no" >&5
10398 echo "${ECHO_T}no" >&6
10402 # Set info about shared libraries.
10408 # SO is the extension of shared libraries `(including the dot!)
10409 # -- usually .so, .sl on HP-UX, .dll on Cygwin
10410 echo "$as_me:$LINENO: checking SO" >&5
10411 echo $ECHO_N "checking SO... $ECHO_C" >&6
10414 case $ac_sys_system in
10420 # this might also be a termcap variable, see #610332
10422 echo '====================================================================='
10424 echo '+ WARNING: You have set SO in your environment. +'
10425 echo '+ Do you really mean to change the extension for shared libraries? +'
10426 echo '+ Continuing in 10 seconds to let you to ponder. +'
10428 echo '====================================================================='
10431 echo "$as_me:$LINENO: result: $SO" >&5
10432 echo "${ECHO_T}$SO" >&6
10433 # LDSHARED is the ld *command* used to create shared library
10434 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
10435 # (Shared libraries in this instance are shared modules to be loaded into
10436 # Python, as opposed to building Python itself as a shared library.)
10437 echo "$as_me:$LINENO: checking LDSHARED" >&5
10438 echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6
10439 if test -z "$LDSHARED"
10441 case $ac_sys_system/$ac_sys_release in
10443 BLDSHARED
="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
10444 LDSHARED
="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
10447 BLDSHARED
="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
10448 LDSHARED
="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
10450 IRIX
/5*) LDSHARED
="ld -shared";;
10451 IRIX
*/6*) LDSHARED
="ld ${SGI_ABI} -shared -all";;
10453 if test "$GCC" = "yes"
10454 then LDSHARED
='$(CC) -shared'
10455 else LDSHARED
='$(CC) -G';
10457 hp
*|HP
*) LDSHARED
="ld -b";;
10458 OSF
*) LDSHARED
="ld -shared -expect_unresolved \"*\"";;
10460 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
10461 if test "$enable_framework" ; then
10462 # Link against the framework. All externals should be defined.
10463 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10464 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10466 # No framework. Ignore undefined symbols, assuming they come from Python
10467 LDSHARED
="$LDSHARED -undefined suppress"
10469 Darwin
/1.4*|Darwin
/5.
*|Darwin
/6.
*)
10470 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
10471 if test "$enable_framework" ; then
10472 # Link against the framework. All externals should be defined.
10473 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10474 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10476 # No framework, use the Python app as bundle-loader
10477 BLDSHARED
="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
10478 LDSHARED
="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
10481 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
10482 # This allows an extension to be used in any Python
10483 cur_target
=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
10484 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
10485 if test ${MACOSX_DEPLOYMENT_TARGET-${cur_target}} '>' 10.2
10487 LDSHARED
='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
10488 BLDSHARED
="$LDSHARED"
10490 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
10491 if test "$enable_framework" ; then
10492 # Link against the framework. All externals should be defined.
10493 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10494 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10496 # No framework, use the Python app as bundle-loader
10497 BLDSHARED
="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
10498 LDSHARED
="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
10502 Linux
*|GNU
*) LDSHARED
='$(CC) -shared';;
10503 BSD
/OS
*/4*) LDSHARED
="gcc -shared";;
10505 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
10507 LDSHARED
="$CC -shared ${LDFLAGS}"
10509 LDSHARED
="ld -Bshareable ${LDFLAGS}"
10511 NetBSD
*) LDSHARED
="cc -shared ${LDFLAGS}";;
10512 OpenUNIX
*|UnixWare
*)
10513 if test "$GCC" = "yes"
10514 then LDSHARED
='$(CC) -shared'
10515 else LDSHARED
='$(CC) -G'
10517 SCO_SV
*) LDSHARED
='$(CC) -Wl,-G,-Bexport';;
10518 Monterey
*) LDSHARED
="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";;
10519 CYGWIN
*) LDSHARED
="gcc -shared -Wl,--enable-auto-image-base";;
10520 atheos
*) LDSHARED
="gcc -shared";;
10524 echo "$as_me:$LINENO: result: $LDSHARED" >&5
10525 echo "${ECHO_T}$LDSHARED" >&6
10526 BLDSHARED
=${BLDSHARED-$LDSHARED}
10527 # CCSHARED are the C *flags* used to create objects to go into a shared
10528 # library (module) -- this is only needed for a few systems
10529 echo "$as_me:$LINENO: checking CCSHARED" >&5
10530 echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6
10531 if test -z "$CCSHARED"
10533 case $ac_sys_system/$ac_sys_release in
10534 SunOS
*) if test "$GCC" = yes;
10535 then CCSHARED
="-fPIC";
10536 else CCSHARED
="-xcode=pic32";
10538 hp
*|HP
*) if test "$GCC" = yes;
10539 then CCSHARED
="-fPIC";
10540 else CCSHARED
="+z";
10542 Linux
*|GNU
*) CCSHARED
="-fPIC";;
10543 BSD
/OS
*/4*) CCSHARED
="-fpic";;
10544 FreeBSD
*|NetBSD
*|OpenBSD
*) CCSHARED
="-fPIC";;
10545 OpenUNIX
*|UnixWare
*)
10546 if test "$GCC" = "yes"
10547 then CCSHARED
="-fPIC"
10548 else CCSHARED
="-KPIC"
10551 if test "$GCC" = "yes"
10552 then CCSHARED
="-fPIC"
10553 else CCSHARED
="-Kpic -belf"
10555 Monterey
*) CCSHARED
="-G";;
10556 IRIX
*/6*) case $CC in
10557 *gcc
*) CCSHARED
="-shared";;
10560 atheos
*) CCSHARED
="-fPIC";;
10563 echo "$as_me:$LINENO: result: $CCSHARED" >&5
10564 echo "${ECHO_T}$CCSHARED" >&6
10565 # LINKFORSHARED are the flags passed to the $(CC) command that links
10566 # the python executable -- this is only needed for a few systems
10567 echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
10568 echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6
10569 if test -z "$LINKFORSHARED"
10571 case $ac_sys_system/$ac_sys_release in
10572 AIX
*) LINKFORSHARED
='-Wl,-bE:Modules/python.exp -lld';;
10574 LINKFORSHARED
="-Wl,-E -Wl,+s";;
10575 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
10576 BSD
/OS
/4*) LINKFORSHARED
="-Xlinker -export-dynamic";;
10577 Linux
*|GNU
*) LINKFORSHARED
="-Xlinker -export-dynamic";;
10578 # -u libsys_s pulls in all symbols in libsys
10580 # -u _PyMac_Error is needed to pull in the mac toolbox glue,
10582 # not used by the core itself but which needs to be in the core so
10583 # that dynamically loaded extension modules have access to it.
10584 # -prebind is no longer used, because it actually seems to give a
10585 # slowdown in stead of a speedup, maybe due to the large number of
10586 # dynamic loads Python does.
10588 LINKFORSHARED
="$extra_undefs"
10589 if test "$enable_framework"
10591 LINKFORSHARED
="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10593 LINKFORSHARED
="$LINKFORSHARED";;
10594 OpenUNIX
*|UnixWare
*) LINKFORSHARED
="-Wl,-Bexport";;
10595 SCO_SV
*) LINKFORSHARED
="-Wl,-Bexport";;
10596 ReliantUNIX
*) LINKFORSHARED
="-W1 -Blargedynsym";;
10597 FreeBSD
*|NetBSD
*|OpenBSD
*)
10598 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
10600 LINKFORSHARED
="-Wl,--export-dynamic"
10602 SunOS
/5*) case $CC in
10604 if $CC -Xlinker --help 2>&1 |
grep export-dynamic
>/dev
/null
10606 LINKFORSHARED
="-Xlinker --export-dynamic"
10610 if test $enable_shared = "no"
10612 LINKFORSHARED
='-Wl,--out-implib=$(LDLIBRARY)'
10616 echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
10617 echo "${ECHO_T}$LINKFORSHARED" >&6
10620 echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
10621 echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6
10622 if test ! "$LIBRARY" = "$LDLIBRARY"
10624 case $ac_sys_system in
10626 # Cygwin needs CCSHARED when building extension DLLs
10627 # but not when building the interpreter DLL.
10628 CFLAGSFORSHARED
='';;
10630 CFLAGSFORSHARED
='$(CCSHARED)'
10633 echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
10634 echo "${ECHO_T}$CFLAGSFORSHARED" >&6
10636 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
10637 # library (with --enable-shared).
10638 # For platforms on which shared libraries are not allowed to have unresolved
10639 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
10640 # if it is not required, since it creates a dependency of the shared library
10641 # to LIBS. This, in turn, means that applications linking the shared libpython
10642 # don't need to link LIBS explicitly. The default should be only changed
10643 # on systems where this approach causes problems.
10645 echo "$as_me:$LINENO: checking SHLIBS" >&5
10646 echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6
10647 case "$ac_sys_system" in
10651 echo "$as_me:$LINENO: result: $SHLIBS" >&5
10652 echo "${ECHO_T}$SHLIBS" >&6
10655 # checks for libraries
10657 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10658 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10659 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10660 echo $ECHO_N "(cached) $ECHO_C" >&6
10662 ac_check_lib_save_LIBS
=$LIBS
10664 cat >conftest.
$ac_ext <<_ACEOF
10667 cat confdefs.h
>>conftest.
$ac_ext
10668 cat >>conftest.
$ac_ext <<_ACEOF
10669 /* end confdefs.h. */
10671 /* Override any gcc2 internal prototype to avoid an error. */
10675 /* We use char because int might match the return type of a gcc2
10676 builtin and then its argument prototype would still apply. */
10686 rm -f conftest.
$ac_objext conftest
$ac_exeext
10687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10688 (eval $ac_link) 2>conftest.er1
10690 grep -v '^ *+' conftest.er1
>conftest.err
10692 cat conftest.err
>&5
10693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10694 (exit $ac_status); } &&
10695 { ac_try
='test -z "$ac_c_werror_flag"
10696 || test ! -s conftest.err'
10697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10698 (eval $ac_try) 2>&5
10700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10701 (exit $ac_status); }; } &&
10702 { ac_try
='test -s conftest$ac_exeext'
10703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10704 (eval $ac_try) 2>&5
10706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10707 (exit $ac_status); }; }; then
10708 ac_cv_lib_dl_dlopen
=yes
10710 echo "$as_me: failed program was:" >&5
10711 sed 's/^/| /' conftest.
$ac_ext >&5
10713 ac_cv_lib_dl_dlopen
=no
10715 rm -f conftest.err conftest.
$ac_objext \
10716 conftest
$ac_exeext conftest.
$ac_ext
10717 LIBS
=$ac_check_lib_save_LIBS
10719 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10720 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10721 if test $ac_cv_lib_dl_dlopen = yes; then
10722 cat >>confdefs.h
<<_ACEOF
10723 #define HAVE_LIBDL 1
10729 # Dynamic linking for SunOS/Solaris and SYSV
10731 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10732 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10733 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10734 echo $ECHO_N "(cached) $ECHO_C" >&6
10736 ac_check_lib_save_LIBS
=$LIBS
10738 cat >conftest.
$ac_ext <<_ACEOF
10741 cat confdefs.h
>>conftest.
$ac_ext
10742 cat >>conftest.
$ac_ext <<_ACEOF
10743 /* end confdefs.h. */
10745 /* Override any gcc2 internal prototype to avoid an error. */
10749 /* We use char because int might match the return type of a gcc2
10750 builtin and then its argument prototype would still apply. */
10760 rm -f conftest.
$ac_objext conftest
$ac_exeext
10761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10762 (eval $ac_link) 2>conftest.er1
10764 grep -v '^ *+' conftest.er1
>conftest.err
10766 cat conftest.err
>&5
10767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10768 (exit $ac_status); } &&
10769 { ac_try
='test -z "$ac_c_werror_flag"
10770 || test ! -s conftest.err'
10771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10772 (eval $ac_try) 2>&5
10774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10775 (exit $ac_status); }; } &&
10776 { ac_try
='test -s conftest$ac_exeext'
10777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10778 (eval $ac_try) 2>&5
10780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10781 (exit $ac_status); }; }; then
10782 ac_cv_lib_dld_shl_load
=yes
10784 echo "$as_me: failed program was:" >&5
10785 sed 's/^/| /' conftest.
$ac_ext >&5
10787 ac_cv_lib_dld_shl_load
=no
10789 rm -f conftest.err conftest.
$ac_objext \
10790 conftest
$ac_exeext conftest.
$ac_ext
10791 LIBS
=$ac_check_lib_save_LIBS
10793 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10794 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10795 if test $ac_cv_lib_dld_shl_load = yes; then
10796 cat >>confdefs.h
<<_ACEOF
10797 #define HAVE_LIBDLD 1
10803 # Dynamic linking for HP-UX
10805 # only check for sem_ini if thread support is requested
10806 if test "$with_threads" = "yes" -o -z "$with_threads"; then
10807 echo "$as_me:$LINENO: checking for library containing sem_init" >&5
10808 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6
10809 if test "${ac_cv_search_sem_init+set}" = set; then
10810 echo $ECHO_N "(cached) $ECHO_C" >&6
10812 ac_func_search_save_LIBS
=$LIBS
10813 ac_cv_search_sem_init
=no
10814 cat >conftest.
$ac_ext <<_ACEOF
10817 cat confdefs.h
>>conftest.
$ac_ext
10818 cat >>conftest.
$ac_ext <<_ACEOF
10819 /* end confdefs.h. */
10821 /* Override any gcc2 internal prototype to avoid an error. */
10825 /* We use char because int might match the return type of a gcc2
10826 builtin and then its argument prototype would still apply. */
10836 rm -f conftest.
$ac_objext conftest
$ac_exeext
10837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10838 (eval $ac_link) 2>conftest.er1
10840 grep -v '^ *+' conftest.er1
>conftest.err
10842 cat conftest.err
>&5
10843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10844 (exit $ac_status); } &&
10845 { ac_try
='test -z "$ac_c_werror_flag"
10846 || test ! -s conftest.err'
10847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10848 (eval $ac_try) 2>&5
10850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10851 (exit $ac_status); }; } &&
10852 { ac_try
='test -s conftest$ac_exeext'
10853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10854 (eval $ac_try) 2>&5
10856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10857 (exit $ac_status); }; }; then
10858 ac_cv_search_sem_init
="none required"
10860 echo "$as_me: failed program was:" >&5
10861 sed 's/^/| /' conftest.
$ac_ext >&5
10864 rm -f conftest.err conftest.
$ac_objext \
10865 conftest
$ac_exeext conftest.
$ac_ext
10866 if test "$ac_cv_search_sem_init" = no
; then
10867 for ac_lib
in pthread rt posix4
; do
10868 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10869 cat >conftest.
$ac_ext <<_ACEOF
10872 cat confdefs.h
>>conftest.
$ac_ext
10873 cat >>conftest.
$ac_ext <<_ACEOF
10874 /* end confdefs.h. */
10876 /* Override any gcc2 internal prototype to avoid an error. */
10880 /* We use char because int might match the return type of a gcc2
10881 builtin and then its argument prototype would still apply. */
10891 rm -f conftest.
$ac_objext conftest
$ac_exeext
10892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10893 (eval $ac_link) 2>conftest.er1
10895 grep -v '^ *+' conftest.er1
>conftest.err
10897 cat conftest.err
>&5
10898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10899 (exit $ac_status); } &&
10900 { ac_try
='test -z "$ac_c_werror_flag"
10901 || test ! -s conftest.err'
10902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10903 (eval $ac_try) 2>&5
10905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10906 (exit $ac_status); }; } &&
10907 { ac_try
='test -s conftest$ac_exeext'
10908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10909 (eval $ac_try) 2>&5
10911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10912 (exit $ac_status); }; }; then
10913 ac_cv_search_sem_init
="-l$ac_lib"
10916 echo "$as_me: failed program was:" >&5
10917 sed 's/^/| /' conftest.
$ac_ext >&5
10920 rm -f conftest.err conftest.
$ac_objext \
10921 conftest
$ac_exeext conftest.
$ac_ext
10924 LIBS
=$ac_func_search_save_LIBS
10926 echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
10927 echo "${ECHO_T}$ac_cv_search_sem_init" >&6
10928 if test "$ac_cv_search_sem_init" != no
; then
10929 test "$ac_cv_search_sem_init" = "none required" || LIBS
="$ac_cv_search_sem_init $LIBS"
10932 # 'Real Time' functions on Solaris
10933 # posix4 on Solaris 2.6
10934 # pthread (first!) on Linux
10937 # check if we need libintl for locale functions
10938 echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
10939 echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6
10940 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
10941 echo $ECHO_N "(cached) $ECHO_C" >&6
10943 ac_check_lib_save_LIBS
=$LIBS
10944 LIBS
="-lintl $LIBS"
10945 cat >conftest.
$ac_ext <<_ACEOF
10948 cat confdefs.h
>>conftest.
$ac_ext
10949 cat >>conftest.
$ac_ext <<_ACEOF
10950 /* end confdefs.h. */
10952 /* Override any gcc2 internal prototype to avoid an error. */
10956 /* We use char because int might match the return type of a gcc2
10957 builtin and then its argument prototype would still apply. */
10958 char textdomain ();
10967 rm -f conftest.
$ac_objext conftest
$ac_exeext
10968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10969 (eval $ac_link) 2>conftest.er1
10971 grep -v '^ *+' conftest.er1
>conftest.err
10973 cat conftest.err
>&5
10974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10975 (exit $ac_status); } &&
10976 { ac_try
='test -z "$ac_c_werror_flag"
10977 || test ! -s conftest.err'
10978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10979 (eval $ac_try) 2>&5
10981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10982 (exit $ac_status); }; } &&
10983 { ac_try
='test -s conftest$ac_exeext'
10984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10985 (eval $ac_try) 2>&5
10987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10988 (exit $ac_status); }; }; then
10989 ac_cv_lib_intl_textdomain
=yes
10991 echo "$as_me: failed program was:" >&5
10992 sed 's/^/| /' conftest.
$ac_ext >&5
10994 ac_cv_lib_intl_textdomain
=no
10996 rm -f conftest.err conftest.
$ac_objext \
10997 conftest
$ac_exeext conftest.
$ac_ext
10998 LIBS
=$ac_check_lib_save_LIBS
11000 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
11001 echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6
11002 if test $ac_cv_lib_intl_textdomain = yes; then
11004 cat >>confdefs.h
<<\_ACEOF
11005 #define WITH_LIBINTL 1
11011 # checks for system dependent C++ extensions support
11012 case "$ac_sys_system" in
11013 AIX
*) echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
11014 echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6
11015 cat >conftest.
$ac_ext <<_ACEOF
11018 cat confdefs.h
>>conftest.
$ac_ext
11019 cat >>conftest.
$ac_ext <<_ACEOF
11020 /* end confdefs.h. */
11021 #include "/usr/lpp/xlC/include/load.h"
11025 loadAndInit("", 0, "")
11030 rm -f conftest.
$ac_objext conftest
$ac_exeext
11031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11032 (eval $ac_link) 2>conftest.er1
11034 grep -v '^ *+' conftest.er1
>conftest.err
11036 cat conftest.err
>&5
11037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11038 (exit $ac_status); } &&
11039 { ac_try
='test -z "$ac_c_werror_flag"
11040 || test ! -s conftest.err'
11041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11042 (eval $ac_try) 2>&5
11044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11045 (exit $ac_status); }; } &&
11046 { ac_try
='test -s conftest$ac_exeext'
11047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11048 (eval $ac_try) 2>&5
11050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11051 (exit $ac_status); }; }; then
11053 cat >>confdefs.h
<<\_ACEOF
11054 #define AIX_GENUINE_CPLUSPLUS 1
11057 echo "$as_me:$LINENO: result: yes" >&5
11058 echo "${ECHO_T}yes" >&6
11060 echo "$as_me: failed program was:" >&5
11061 sed 's/^/| /' conftest.
$ac_ext >&5
11063 echo "$as_me:$LINENO: result: no" >&5
11064 echo "${ECHO_T}no" >&6
11066 rm -f conftest.err conftest.
$ac_objext \
11067 conftest
$ac_exeext conftest.
$ac_ext;;
11071 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
11072 # BeOS' sockets are stashed in libnet.
11073 echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
11074 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6
11075 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
11076 echo $ECHO_N "(cached) $ECHO_C" >&6
11078 ac_check_lib_save_LIBS
=$LIBS
11080 cat >conftest.
$ac_ext <<_ACEOF
11083 cat confdefs.h
>>conftest.
$ac_ext
11084 cat >>conftest.
$ac_ext <<_ACEOF
11085 /* end confdefs.h. */
11087 /* Override any gcc2 internal prototype to avoid an error. */
11091 /* We use char because int might match the return type of a gcc2
11092 builtin and then its argument prototype would still apply. */
11102 rm -f conftest.
$ac_objext conftest
$ac_exeext
11103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11104 (eval $ac_link) 2>conftest.er1
11106 grep -v '^ *+' conftest.er1
>conftest.err
11108 cat conftest.err
>&5
11109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11110 (exit $ac_status); } &&
11111 { ac_try
='test -z "$ac_c_werror_flag"
11112 || test ! -s conftest.err'
11113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11114 (eval $ac_try) 2>&5
11116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11117 (exit $ac_status); }; } &&
11118 { ac_try
='test -s conftest$ac_exeext'
11119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11120 (eval $ac_try) 2>&5
11122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11123 (exit $ac_status); }; }; then
11124 ac_cv_lib_nsl_t_open
=yes
11126 echo "$as_me: failed program was:" >&5
11127 sed 's/^/| /' conftest.
$ac_ext >&5
11129 ac_cv_lib_nsl_t_open
=no
11131 rm -f conftest.err conftest.
$ac_objext \
11132 conftest
$ac_exeext conftest.
$ac_ext
11133 LIBS
=$ac_check_lib_save_LIBS
11135 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
11136 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6
11137 if test $ac_cv_lib_nsl_t_open = yes; then
11141 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
11142 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
11143 if test "${ac_cv_lib_socket_socket+set}" = set; then
11144 echo $ECHO_N "(cached) $ECHO_C" >&6
11146 ac_check_lib_save_LIBS
=$LIBS
11147 LIBS
="-lsocket $LIBS $LIBS"
11148 cat >conftest.
$ac_ext <<_ACEOF
11151 cat confdefs.h
>>conftest.
$ac_ext
11152 cat >>conftest.
$ac_ext <<_ACEOF
11153 /* end confdefs.h. */
11155 /* Override any gcc2 internal prototype to avoid an error. */
11159 /* We use char because int might match the return type of a gcc2
11160 builtin and then its argument prototype would still apply. */
11170 rm -f conftest.
$ac_objext conftest
$ac_exeext
11171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11172 (eval $ac_link) 2>conftest.er1
11174 grep -v '^ *+' conftest.er1
>conftest.err
11176 cat conftest.err
>&5
11177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11178 (exit $ac_status); } &&
11179 { ac_try
='test -z "$ac_c_werror_flag"
11180 || test ! -s conftest.err'
11181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11182 (eval $ac_try) 2>&5
11184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11185 (exit $ac_status); }; } &&
11186 { ac_try
='test -s conftest$ac_exeext'
11187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11188 (eval $ac_try) 2>&5
11190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11191 (exit $ac_status); }; }; then
11192 ac_cv_lib_socket_socket
=yes
11194 echo "$as_me: failed program was:" >&5
11195 sed 's/^/| /' conftest.
$ac_ext >&5
11197 ac_cv_lib_socket_socket
=no
11199 rm -f conftest.err conftest.
$ac_objext \
11200 conftest
$ac_exeext conftest.
$ac_ext
11201 LIBS
=$ac_check_lib_save_LIBS
11203 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
11204 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
11205 if test $ac_cv_lib_socket_socket = yes; then
11206 LIBS
="-lsocket $LIBS"
11210 case "$ac_sys_system" in
11212 echo "$as_me:$LINENO: checking for socket in -lnet" >&5
11213 echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6
11214 if test "${ac_cv_lib_net_socket+set}" = set; then
11215 echo $ECHO_N "(cached) $ECHO_C" >&6
11217 ac_check_lib_save_LIBS
=$LIBS
11218 LIBS
="-lnet $LIBS $LIBS"
11219 cat >conftest.
$ac_ext <<_ACEOF
11222 cat confdefs.h
>>conftest.
$ac_ext
11223 cat >>conftest.
$ac_ext <<_ACEOF
11224 /* end confdefs.h. */
11226 /* Override any gcc2 internal prototype to avoid an error. */
11230 /* We use char because int might match the return type of a gcc2
11231 builtin and then its argument prototype would still apply. */
11241 rm -f conftest.
$ac_objext conftest
$ac_exeext
11242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11243 (eval $ac_link) 2>conftest.er1
11245 grep -v '^ *+' conftest.er1
>conftest.err
11247 cat conftest.err
>&5
11248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11249 (exit $ac_status); } &&
11250 { ac_try
='test -z "$ac_c_werror_flag"
11251 || test ! -s conftest.err'
11252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11253 (eval $ac_try) 2>&5
11255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11256 (exit $ac_status); }; } &&
11257 { ac_try
='test -s conftest$ac_exeext'
11258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11259 (eval $ac_try) 2>&5
11261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11262 (exit $ac_status); }; }; then
11263 ac_cv_lib_net_socket
=yes
11265 echo "$as_me: failed program was:" >&5
11266 sed 's/^/| /' conftest.
$ac_ext >&5
11268 ac_cv_lib_net_socket
=no
11270 rm -f conftest.err conftest.
$ac_objext \
11271 conftest
$ac_exeext conftest.
$ac_ext
11272 LIBS
=$ac_check_lib_save_LIBS
11274 echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5
11275 echo "${ECHO_T}$ac_cv_lib_net_socket" >&6
11276 if test $ac_cv_lib_net_socket = yes; then
11283 echo "$as_me:$LINENO: checking for --with-libs" >&5
11284 echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6
11286 # Check whether --with-libs or --without-libs was given.
11287 if test "${with_libs+set}" = set; then
11288 withval
="$with_libs"
11290 echo "$as_me:$LINENO: result: $withval" >&5
11291 echo "${ECHO_T}$withval" >&6
11292 LIBS
="$withval $LIBS"
11295 echo "$as_me:$LINENO: result: no" >&5
11296 echo "${ECHO_T}no" >&6
11299 # Determine if signalmodule should be used.
11302 echo "$as_me:$LINENO: checking for --with-signal-module" >&5
11303 echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6
11305 # Check whether --with-signal-module or --without-signal-module was given.
11306 if test "${with_signal_module+set}" = set; then
11307 withval
="$with_signal_module"
11311 if test -z "$with_signal_module"
11312 then with_signal_module
="yes"
11314 echo "$as_me:$LINENO: result: $with_signal_module" >&5
11315 echo "${ECHO_T}$with_signal_module" >&6
11317 if test "${with_signal_module}" = "yes"; then
11318 USE_SIGNAL_MODULE
=""
11321 USE_SIGNAL_MODULE
="#"
11322 SIGNAL_OBJS
="Parser/intrcheck.o Python/sigcheck.o"
11325 # This is used to generate Setup.config
11327 USE_THREAD_MODULE
=""
11329 echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
11330 echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6
11333 # Check whether --with-dec-threads or --without-dec-threads was given.
11334 if test "${with_dec_threads+set}" = set; then
11335 withval
="$with_dec_threads"
11337 echo "$as_me:$LINENO: result: $withval" >&5
11338 echo "${ECHO_T}$withval" >&6
11340 if test "${with_thread+set}" != set; then
11341 with_thread
="$withval";
11344 echo "$as_me:$LINENO: result: no" >&5
11345 echo "${ECHO_T}no" >&6
11348 # Templates for things AC_DEFINEd more than once.
11349 # For a single AC_DEFINE, no template is needed.
11357 echo "$as_me:$LINENO: checking for --with-threads" >&5
11358 echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6
11360 # Check whether --with-threads or --without-threads was given.
11361 if test "${with_threads+set}" = set; then
11362 withval
="$with_threads"
11366 # --with-thread is deprecated, but check for it anyway
11368 # Check whether --with-thread or --without-thread was given.
11369 if test "${with_thread+set}" = set; then
11370 withval
="$with_thread"
11371 with_threads
=$with_thread
11374 if test -z "$with_threads"
11375 then with_threads
="yes"
11377 echo "$as_me:$LINENO: result: $with_threads" >&5
11378 echo "${ECHO_T}$with_threads" >&6
11381 if test "$with_threads" = "no"
11383 USE_THREAD_MODULE
="#"
11384 elif test "$ac_cv_pthread_is_default" = yes
11386 cat >>confdefs.h
<<\_ACEOF
11387 #define WITH_THREAD 1
11390 # Defining _REENTRANT on system with POSIX threads should not hurt.
11391 cat >>confdefs.h
<<\_ACEOF
11392 #define _REENTRANT 1
11396 THREADOBJ
="Python/thread.o"
11397 elif test "$ac_cv_kpthread" = "yes"
11400 if test "$ac_cv_cxx_thread" = "yes"; then
11401 CXX
="$CXX -Kpthread"
11403 cat >>confdefs.h
<<\_ACEOF
11404 #define WITH_THREAD 1
11408 THREADOBJ
="Python/thread.o"
11409 elif test "$ac_cv_kthread" = "yes"
11412 if test "$ac_cv_cxx_thread" = "yes"; then
11413 CXX
="$CXX -Kthread"
11415 cat >>confdefs.h
<<\_ACEOF
11416 #define WITH_THREAD 1
11420 THREADOBJ
="Python/thread.o"
11421 elif test "$ac_cv_pthread" = "yes"
11424 if test "$ac_cv_cxx_thread" = "yes"; then
11425 CXX
="$CXX -pthread"
11427 cat >>confdefs.h
<<\_ACEOF
11428 #define WITH_THREAD 1
11432 THREADOBJ
="Python/thread.o"
11434 if test ! -z "$with_threads" -a -d "$with_threads"
11435 then LDFLAGS
="$LDFLAGS -L$with_threads"
11437 if test ! -z "$withval" -a -d "$withval"
11438 then LDFLAGS
="$LDFLAGS -L$withval"
11441 # According to the POSIX spec, a pthreads implementation must
11442 # define _POSIX_THREADS in unistd.h. Some apparently don't
11443 # (e.g. gnu pth with pthread emulation)
11444 echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
11445 echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6
11446 cat >conftest.
$ac_ext <<_ACEOF
11449 cat confdefs.h
>>conftest.
$ac_ext
11450 cat >>conftest.
$ac_ext <<_ACEOF
11451 /* end confdefs.h. */
11453 #include <unistd.h>
11454 #ifdef _POSIX_THREADS
11459 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11460 $EGREP "yes" >/dev
/null
2>&1; then
11461 unistd_defines_pthreads
=yes
11463 unistd_defines_pthreads
=no
11467 echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
11468 echo "${ECHO_T}$unistd_defines_pthreads" >&6
11470 cat >>confdefs.h
<<\_ACEOF
11471 #define _REENTRANT 1
11474 if test "${ac_cv_header_cthreads_h+set}" = set; then
11475 echo "$as_me:$LINENO: checking for cthreads.h" >&5
11476 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6
11477 if test "${ac_cv_header_cthreads_h+set}" = set; then
11478 echo $ECHO_N "(cached) $ECHO_C" >&6
11480 echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
11481 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6
11483 # Is the header compilable?
11484 echo "$as_me:$LINENO: checking cthreads.h usability" >&5
11485 echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6
11486 cat >conftest.
$ac_ext <<_ACEOF
11489 cat confdefs.h
>>conftest.
$ac_ext
11490 cat >>conftest.
$ac_ext <<_ACEOF
11491 /* end confdefs.h. */
11492 $ac_includes_default
11493 #include <cthreads.h>
11495 rm -f conftest.
$ac_objext
11496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11497 (eval $ac_compile) 2>conftest.er1
11499 grep -v '^ *+' conftest.er1
>conftest.err
11501 cat conftest.err
>&5
11502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503 (exit $ac_status); } &&
11504 { ac_try
='test -z "$ac_c_werror_flag"
11505 || test ! -s conftest.err'
11506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11507 (eval $ac_try) 2>&5
11509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11510 (exit $ac_status); }; } &&
11511 { ac_try
='test -s conftest.$ac_objext'
11512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11513 (eval $ac_try) 2>&5
11515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11516 (exit $ac_status); }; }; then
11517 ac_header_compiler
=yes
11519 echo "$as_me: failed program was:" >&5
11520 sed 's/^/| /' conftest.
$ac_ext >&5
11522 ac_header_compiler
=no
11524 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11525 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11526 echo "${ECHO_T}$ac_header_compiler" >&6
11528 # Is the header present?
11529 echo "$as_me:$LINENO: checking cthreads.h presence" >&5
11530 echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6
11531 cat >conftest.
$ac_ext <<_ACEOF
11534 cat confdefs.h
>>conftest.
$ac_ext
11535 cat >>conftest.
$ac_ext <<_ACEOF
11536 /* end confdefs.h. */
11537 #include <cthreads.h>
11539 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11540 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11542 grep -v '^ *+' conftest.er1
>conftest.err
11544 cat conftest.err
>&5
11545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11546 (exit $ac_status); } >/dev
/null
; then
11547 if test -s conftest.err
; then
11548 ac_cpp_err
=$ac_c_preproc_warn_flag
11549 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11556 if test -z "$ac_cpp_err"; then
11557 ac_header_preproc
=yes
11559 echo "$as_me: failed program was:" >&5
11560 sed 's/^/| /' conftest.
$ac_ext >&5
11562 ac_header_preproc
=no
11564 rm -f conftest.err conftest.
$ac_ext
11565 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11566 echo "${ECHO_T}$ac_header_preproc" >&6
11568 # So? What about this header?
11569 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11571 { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
11572 echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11573 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5
11574 echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;}
11575 ac_header_preproc
=yes
11578 { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
11579 echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
11580 { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
11581 echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
11582 { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5
11583 echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;}
11584 { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
11585 echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
11586 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
11587 echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;}
11588 { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5
11589 echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;}
11592 ## ------------------------------------------------ ##
11593 ## Report this to http://www.python.org/python-bugs ##
11594 ## ------------------------------------------------ ##
11597 sed "s/^/$as_me: WARNING: /" >&2
11600 echo "$as_me:$LINENO: checking for cthreads.h" >&5
11601 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6
11602 if test "${ac_cv_header_cthreads_h+set}" = set; then
11603 echo $ECHO_N "(cached) $ECHO_C" >&6
11605 ac_cv_header_cthreads_h
=$ac_header_preproc
11607 echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
11608 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6
11611 if test $ac_cv_header_cthreads_h = yes; then
11612 cat >>confdefs.h
<<\_ACEOF
11613 #define WITH_THREAD 1
11616 cat >>confdefs.h
<<\_ACEOF
11617 #define C_THREADS 1
11621 cat >>confdefs.h
<<\_ACEOF
11622 #define HURD_C_THREADS 1
11625 LIBS
="$LIBS -lthreads"
11626 THREADOBJ
="Python/thread.o"
11629 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
11630 echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
11631 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6
11632 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
11633 echo $ECHO_N "(cached) $ECHO_C" >&6
11635 echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
11636 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6
11638 # Is the header compilable?
11639 echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
11640 echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6
11641 cat >conftest.
$ac_ext <<_ACEOF
11644 cat confdefs.h
>>conftest.
$ac_ext
11645 cat >>conftest.
$ac_ext <<_ACEOF
11646 /* end confdefs.h. */
11647 $ac_includes_default
11648 #include <mach/cthreads.h>
11650 rm -f conftest.
$ac_objext
11651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11652 (eval $ac_compile) 2>conftest.er1
11654 grep -v '^ *+' conftest.er1
>conftest.err
11656 cat conftest.err
>&5
11657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11658 (exit $ac_status); } &&
11659 { ac_try
='test -z "$ac_c_werror_flag"
11660 || test ! -s conftest.err'
11661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11662 (eval $ac_try) 2>&5
11664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11665 (exit $ac_status); }; } &&
11666 { ac_try
='test -s conftest.$ac_objext'
11667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11668 (eval $ac_try) 2>&5
11670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11671 (exit $ac_status); }; }; then
11672 ac_header_compiler
=yes
11674 echo "$as_me: failed program was:" >&5
11675 sed 's/^/| /' conftest.
$ac_ext >&5
11677 ac_header_compiler
=no
11679 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11680 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11681 echo "${ECHO_T}$ac_header_compiler" >&6
11683 # Is the header present?
11684 echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
11685 echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6
11686 cat >conftest.
$ac_ext <<_ACEOF
11689 cat confdefs.h
>>conftest.
$ac_ext
11690 cat >>conftest.
$ac_ext <<_ACEOF
11691 /* end confdefs.h. */
11692 #include <mach/cthreads.h>
11694 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11695 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11697 grep -v '^ *+' conftest.er1
>conftest.err
11699 cat conftest.err
>&5
11700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11701 (exit $ac_status); } >/dev
/null
; then
11702 if test -s conftest.err
; then
11703 ac_cpp_err
=$ac_c_preproc_warn_flag
11704 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11711 if test -z "$ac_cpp_err"; then
11712 ac_header_preproc
=yes
11714 echo "$as_me: failed program was:" >&5
11715 sed 's/^/| /' conftest.
$ac_ext >&5
11717 ac_header_preproc
=no
11719 rm -f conftest.err conftest.
$ac_ext
11720 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11721 echo "${ECHO_T}$ac_header_preproc" >&6
11723 # So? What about this header?
11724 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11726 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
11727 echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11728 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
11729 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
11730 ac_header_preproc
=yes
11733 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
11734 echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
11735 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
11736 echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
11737 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
11738 echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
11739 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
11740 echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
11741 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
11742 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
11743 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
11744 echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
11747 ## ------------------------------------------------ ##
11748 ## Report this to http://www.python.org/python-bugs ##
11749 ## ------------------------------------------------ ##
11752 sed "s/^/$as_me: WARNING: /" >&2
11755 echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
11756 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6
11757 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
11758 echo $ECHO_N "(cached) $ECHO_C" >&6
11760 ac_cv_header_mach_cthreads_h
=$ac_header_preproc
11762 echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
11763 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6
11766 if test $ac_cv_header_mach_cthreads_h = yes; then
11767 cat >>confdefs.h
<<\_ACEOF
11768 #define WITH_THREAD 1
11771 cat >>confdefs.h
<<\_ACEOF
11772 #define C_THREADS 1
11776 cat >>confdefs.h
<<\_ACEOF
11777 #define MACH_C_THREADS 1
11780 THREADOBJ
="Python/thread.o"
11783 echo "$as_me:$LINENO: checking for --with-pth" >&5
11784 echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6
11786 # Check whether --with-pth or --without-pth was given.
11787 if test "${with_pth+set}" = set; then
11788 withval
="$with_pth"
11789 echo "$as_me:$LINENO: result: $withval" >&5
11790 echo "${ECHO_T}$withval" >&6
11791 cat >>confdefs.h
<<\_ACEOF
11792 #define WITH_THREAD 1
11796 cat >>confdefs.h
<<\_ACEOF
11801 THREADOBJ
="Python/thread.o"
11803 echo "$as_me:$LINENO: result: no" >&5
11804 echo "${ECHO_T}no" >&6
11806 # Just looking for pthread_create in libpthread is not enough:
11807 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
11808 # So we really have to include pthread.h, and then link.
11810 LIBS
="$LIBS -lpthread"
11811 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
11812 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
11813 cat >conftest.
$ac_ext <<_ACEOF
11816 cat confdefs.h
>>conftest.
$ac_ext
11817 cat >>conftest.
$ac_ext <<_ACEOF
11818 /* end confdefs.h. */
11819 #include <pthread.h>
11821 void * start_routine (void *arg) { exit (0); }
11826 pthread_create (NULL, NULL, start_routine, NULL)
11831 rm -f conftest.
$ac_objext conftest
$ac_exeext
11832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11833 (eval $ac_link) 2>conftest.er1
11835 grep -v '^ *+' conftest.er1
>conftest.err
11837 cat conftest.err
>&5
11838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11839 (exit $ac_status); } &&
11840 { ac_try
='test -z "$ac_c_werror_flag"
11841 || test ! -s conftest.err'
11842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11843 (eval $ac_try) 2>&5
11845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11846 (exit $ac_status); }; } &&
11847 { ac_try
='test -s conftest$ac_exeext'
11848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11849 (eval $ac_try) 2>&5
11851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11852 (exit $ac_status); }; }; then
11854 echo "$as_me:$LINENO: result: yes" >&5
11855 echo "${ECHO_T}yes" >&6
11856 cat >>confdefs.h
<<\_ACEOF
11857 #define WITH_THREAD 1
11861 THREADOBJ
="Python/thread.o"
11863 echo "$as_me: failed program was:" >&5
11864 sed 's/^/| /' conftest.
$ac_ext >&5
11868 echo "$as_me:$LINENO: checking for pthread_detach" >&5
11869 echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6
11870 if test "${ac_cv_func_pthread_detach+set}" = set; then
11871 echo $ECHO_N "(cached) $ECHO_C" >&6
11873 cat >conftest.
$ac_ext <<_ACEOF
11876 cat confdefs.h
>>conftest.
$ac_ext
11877 cat >>conftest.
$ac_ext <<_ACEOF
11878 /* end confdefs.h. */
11879 /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach.
11880 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11881 #define pthread_detach innocuous_pthread_detach
11883 /* System header to define __stub macros and hopefully few prototypes,
11884 which can conflict with char pthread_detach (); below.
11885 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11886 <limits.h> exists even on freestanding compilers. */
11889 # include <limits.h>
11891 # include <assert.h>
11894 #undef pthread_detach
11896 /* Override any gcc2 internal prototype to avoid an error. */
11901 /* We use char because int might match the return type of a gcc2
11902 builtin and then its argument prototype would still apply. */
11903 char pthread_detach ();
11904 /* The GNU C library defines this for functions which it implements
11905 to always fail with ENOSYS. Some functions are actually named
11906 something starting with __ and the normal name is an alias. */
11907 #if defined (__stub_pthread_detach) || defined (__stub___pthread_detach)
11910 char (*f) () = pthread_detach;
11919 return f != pthread_detach;
11924 rm -f conftest.
$ac_objext conftest
$ac_exeext
11925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11926 (eval $ac_link) 2>conftest.er1
11928 grep -v '^ *+' conftest.er1
>conftest.err
11930 cat conftest.err
>&5
11931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11932 (exit $ac_status); } &&
11933 { ac_try
='test -z "$ac_c_werror_flag"
11934 || test ! -s conftest.err'
11935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11936 (eval $ac_try) 2>&5
11938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11939 (exit $ac_status); }; } &&
11940 { ac_try
='test -s conftest$ac_exeext'
11941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11942 (eval $ac_try) 2>&5
11944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11945 (exit $ac_status); }; }; then
11946 ac_cv_func_pthread_detach
=yes
11948 echo "$as_me: failed program was:" >&5
11949 sed 's/^/| /' conftest.
$ac_ext >&5
11951 ac_cv_func_pthread_detach
=no
11953 rm -f conftest.err conftest.
$ac_objext \
11954 conftest
$ac_exeext conftest.
$ac_ext
11956 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
11957 echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6
11958 if test $ac_cv_func_pthread_detach = yes; then
11959 cat >>confdefs.h
<<\_ACEOF
11960 #define WITH_THREAD 1
11964 THREADOBJ
="Python/thread.o"
11967 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
11968 echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
11969 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6
11970 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
11971 echo $ECHO_N "(cached) $ECHO_C" >&6
11973 echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
11974 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6
11976 # Is the header compilable?
11977 echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
11978 echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6
11979 cat >conftest.
$ac_ext <<_ACEOF
11982 cat confdefs.h
>>conftest.
$ac_ext
11983 cat >>conftest.
$ac_ext <<_ACEOF
11984 /* end confdefs.h. */
11985 $ac_includes_default
11986 #include <atheos/threads.h>
11988 rm -f conftest.
$ac_objext
11989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11990 (eval $ac_compile) 2>conftest.er1
11992 grep -v '^ *+' conftest.er1
>conftest.err
11994 cat conftest.err
>&5
11995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11996 (exit $ac_status); } &&
11997 { ac_try
='test -z "$ac_c_werror_flag"
11998 || test ! -s conftest.err'
11999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12000 (eval $ac_try) 2>&5
12002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12003 (exit $ac_status); }; } &&
12004 { ac_try
='test -s conftest.$ac_objext'
12005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12006 (eval $ac_try) 2>&5
12008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12009 (exit $ac_status); }; }; then
12010 ac_header_compiler
=yes
12012 echo "$as_me: failed program was:" >&5
12013 sed 's/^/| /' conftest.
$ac_ext >&5
12015 ac_header_compiler
=no
12017 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12018 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12019 echo "${ECHO_T}$ac_header_compiler" >&6
12021 # Is the header present?
12022 echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
12023 echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6
12024 cat >conftest.
$ac_ext <<_ACEOF
12027 cat confdefs.h
>>conftest.
$ac_ext
12028 cat >>conftest.
$ac_ext <<_ACEOF
12029 /* end confdefs.h. */
12030 #include <atheos/threads.h>
12032 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12033 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12035 grep -v '^ *+' conftest.er1
>conftest.err
12037 cat conftest.err
>&5
12038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12039 (exit $ac_status); } >/dev
/null
; then
12040 if test -s conftest.err
; then
12041 ac_cpp_err
=$ac_c_preproc_warn_flag
12042 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12049 if test -z "$ac_cpp_err"; then
12050 ac_header_preproc
=yes
12052 echo "$as_me: failed program was:" >&5
12053 sed 's/^/| /' conftest.
$ac_ext >&5
12055 ac_header_preproc
=no
12057 rm -f conftest.err conftest.
$ac_ext
12058 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12059 echo "${ECHO_T}$ac_header_preproc" >&6
12061 # So? What about this header?
12062 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12064 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
12065 echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12066 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5
12067 echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;}
12068 ac_header_preproc
=yes
12071 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
12072 echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
12073 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
12074 echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
12075 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5
12076 echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;}
12077 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5
12078 echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;}
12079 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
12080 echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;}
12081 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5
12082 echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;}
12085 ## ------------------------------------------------ ##
12086 ## Report this to http://www.python.org/python-bugs ##
12087 ## ------------------------------------------------ ##
12090 sed "s/^/$as_me: WARNING: /" >&2
12093 echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
12094 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6
12095 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
12096 echo $ECHO_N "(cached) $ECHO_C" >&6
12098 ac_cv_header_atheos_threads_h
=$ac_header_preproc
12100 echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
12101 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6
12104 if test $ac_cv_header_atheos_threads_h = yes; then
12105 cat >>confdefs.h
<<\_ACEOF
12106 #define WITH_THREAD 1
12110 cat >>confdefs.h
<<\_ACEOF
12111 #define ATHEOS_THREADS 1
12114 THREADOBJ
="Python/thread.o"
12117 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
12118 echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
12119 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6
12120 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
12121 echo $ECHO_N "(cached) $ECHO_C" >&6
12123 echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
12124 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6
12126 # Is the header compilable?
12127 echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5
12128 echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6
12129 cat >conftest.
$ac_ext <<_ACEOF
12132 cat confdefs.h
>>conftest.
$ac_ext
12133 cat >>conftest.
$ac_ext <<_ACEOF
12134 /* end confdefs.h. */
12135 $ac_includes_default
12136 #include <kernel/OS.h>
12138 rm -f conftest.
$ac_objext
12139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12140 (eval $ac_compile) 2>conftest.er1
12142 grep -v '^ *+' conftest.er1
>conftest.err
12144 cat conftest.err
>&5
12145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12146 (exit $ac_status); } &&
12147 { ac_try
='test -z "$ac_c_werror_flag"
12148 || test ! -s conftest.err'
12149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12150 (eval $ac_try) 2>&5
12152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12153 (exit $ac_status); }; } &&
12154 { ac_try
='test -s conftest.$ac_objext'
12155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12156 (eval $ac_try) 2>&5
12158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12159 (exit $ac_status); }; }; then
12160 ac_header_compiler
=yes
12162 echo "$as_me: failed program was:" >&5
12163 sed 's/^/| /' conftest.
$ac_ext >&5
12165 ac_header_compiler
=no
12167 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12168 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12169 echo "${ECHO_T}$ac_header_compiler" >&6
12171 # Is the header present?
12172 echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5
12173 echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6
12174 cat >conftest.
$ac_ext <<_ACEOF
12177 cat confdefs.h
>>conftest.
$ac_ext
12178 cat >>conftest.
$ac_ext <<_ACEOF
12179 /* end confdefs.h. */
12180 #include <kernel/OS.h>
12182 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12183 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12185 grep -v '^ *+' conftest.er1
>conftest.err
12187 cat conftest.err
>&5
12188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12189 (exit $ac_status); } >/dev
/null
; then
12190 if test -s conftest.err
; then
12191 ac_cpp_err
=$ac_c_preproc_warn_flag
12192 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12199 if test -z "$ac_cpp_err"; then
12200 ac_header_preproc
=yes
12202 echo "$as_me: failed program was:" >&5
12203 sed 's/^/| /' conftest.
$ac_ext >&5
12205 ac_header_preproc
=no
12207 rm -f conftest.err conftest.
$ac_ext
12208 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12209 echo "${ECHO_T}$ac_header_preproc" >&6
12211 # So? What about this header?
12212 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12214 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5
12215 echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12216 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5
12217 echo "$as_me: WARNING: kernel/OS.h: proceeding with the compiler's result" >&2;}
12218 ac_header_preproc
=yes
12221 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5
12222 echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;}
12223 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5
12224 echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;}
12225 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5
12226 echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;}
12227 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5
12228 echo "$as_me: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&2;}
12229 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5
12230 echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;}
12231 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5
12232 echo "$as_me: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&2;}
12235 ## ------------------------------------------------ ##
12236 ## Report this to http://www.python.org/python-bugs ##
12237 ## ------------------------------------------------ ##
12240 sed "s/^/$as_me: WARNING: /" >&2
12243 echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
12244 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6
12245 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
12246 echo $ECHO_N "(cached) $ECHO_C" >&6
12248 ac_cv_header_kernel_OS_h
=$ac_header_preproc
12250 echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
12251 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6
12254 if test $ac_cv_header_kernel_OS_h = yes; then
12255 cat >>confdefs.h
<<\_ACEOF
12256 #define WITH_THREAD 1
12260 cat >>confdefs.h
<<\_ACEOF
12261 #define BEOS_THREADS 1
12264 THREADOBJ
="Python/thread.o"
12267 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
12268 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
12269 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
12270 echo $ECHO_N "(cached) $ECHO_C" >&6
12272 ac_check_lib_save_LIBS
=$LIBS
12273 LIBS
="-lpthreads $LIBS"
12274 cat >conftest.
$ac_ext <<_ACEOF
12277 cat confdefs.h
>>conftest.
$ac_ext
12278 cat >>conftest.
$ac_ext <<_ACEOF
12279 /* end confdefs.h. */
12281 /* Override any gcc2 internal prototype to avoid an error. */
12285 /* We use char because int might match the return type of a gcc2
12286 builtin and then its argument prototype would still apply. */
12287 char pthread_create ();
12296 rm -f conftest.
$ac_objext conftest
$ac_exeext
12297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12298 (eval $ac_link) 2>conftest.er1
12300 grep -v '^ *+' conftest.er1
>conftest.err
12302 cat conftest.err
>&5
12303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12304 (exit $ac_status); } &&
12305 { ac_try
='test -z "$ac_c_werror_flag"
12306 || test ! -s conftest.err'
12307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12308 (eval $ac_try) 2>&5
12310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12311 (exit $ac_status); }; } &&
12312 { ac_try
='test -s conftest$ac_exeext'
12313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12314 (eval $ac_try) 2>&5
12316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12317 (exit $ac_status); }; }; then
12318 ac_cv_lib_pthreads_pthread_create
=yes
12320 echo "$as_me: failed program was:" >&5
12321 sed 's/^/| /' conftest.
$ac_ext >&5
12323 ac_cv_lib_pthreads_pthread_create
=no
12325 rm -f conftest.err conftest.
$ac_objext \
12326 conftest
$ac_exeext conftest.
$ac_ext
12327 LIBS
=$ac_check_lib_save_LIBS
12329 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
12330 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
12331 if test $ac_cv_lib_pthreads_pthread_create = yes; then
12332 cat >>confdefs.h
<<\_ACEOF
12333 #define WITH_THREAD 1
12337 LIBS
="$LIBS -lpthreads"
12338 THREADOBJ
="Python/thread.o"
12341 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
12342 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
12343 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
12344 echo $ECHO_N "(cached) $ECHO_C" >&6
12346 ac_check_lib_save_LIBS
=$LIBS
12348 cat >conftest.
$ac_ext <<_ACEOF
12351 cat confdefs.h
>>conftest.
$ac_ext
12352 cat >>conftest.
$ac_ext <<_ACEOF
12353 /* end confdefs.h. */
12355 /* Override any gcc2 internal prototype to avoid an error. */
12359 /* We use char because int might match the return type of a gcc2
12360 builtin and then its argument prototype would still apply. */
12361 char pthread_create ();
12370 rm -f conftest.
$ac_objext conftest
$ac_exeext
12371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12372 (eval $ac_link) 2>conftest.er1
12374 grep -v '^ *+' conftest.er1
>conftest.err
12376 cat conftest.err
>&5
12377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12378 (exit $ac_status); } &&
12379 { ac_try
='test -z "$ac_c_werror_flag"
12380 || test ! -s conftest.err'
12381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12382 (eval $ac_try) 2>&5
12384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12385 (exit $ac_status); }; } &&
12386 { ac_try
='test -s conftest$ac_exeext'
12387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12388 (eval $ac_try) 2>&5
12390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12391 (exit $ac_status); }; }; then
12392 ac_cv_lib_c_r_pthread_create
=yes
12394 echo "$as_me: failed program was:" >&5
12395 sed 's/^/| /' conftest.
$ac_ext >&5
12397 ac_cv_lib_c_r_pthread_create
=no
12399 rm -f conftest.err conftest.
$ac_objext \
12400 conftest
$ac_exeext conftest.
$ac_ext
12401 LIBS
=$ac_check_lib_save_LIBS
12403 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
12404 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
12405 if test $ac_cv_lib_c_r_pthread_create = yes; then
12406 cat >>confdefs.h
<<\_ACEOF
12407 #define WITH_THREAD 1
12412 THREADOBJ
="Python/thread.o"
12415 echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
12416 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6
12417 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
12418 echo $ECHO_N "(cached) $ECHO_C" >&6
12420 ac_check_lib_save_LIBS
=$LIBS
12421 LIBS
="-lpthread $LIBS"
12422 cat >conftest.
$ac_ext <<_ACEOF
12425 cat confdefs.h
>>conftest.
$ac_ext
12426 cat >>conftest.
$ac_ext <<_ACEOF
12427 /* end confdefs.h. */
12429 /* Override any gcc2 internal prototype to avoid an error. */
12433 /* We use char because int might match the return type of a gcc2
12434 builtin and then its argument prototype would still apply. */
12435 char __pthread_create_system ();
12439 __pthread_create_system ();
12444 rm -f conftest.
$ac_objext conftest
$ac_exeext
12445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12446 (eval $ac_link) 2>conftest.er1
12448 grep -v '^ *+' conftest.er1
>conftest.err
12450 cat conftest.err
>&5
12451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12452 (exit $ac_status); } &&
12453 { ac_try
='test -z "$ac_c_werror_flag"
12454 || test ! -s conftest.err'
12455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12456 (eval $ac_try) 2>&5
12458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12459 (exit $ac_status); }; } &&
12460 { ac_try
='test -s conftest$ac_exeext'
12461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12462 (eval $ac_try) 2>&5
12464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12465 (exit $ac_status); }; }; then
12466 ac_cv_lib_pthread___pthread_create_system
=yes
12468 echo "$as_me: failed program was:" >&5
12469 sed 's/^/| /' conftest.
$ac_ext >&5
12471 ac_cv_lib_pthread___pthread_create_system
=no
12473 rm -f conftest.err conftest.
$ac_objext \
12474 conftest
$ac_exeext conftest.
$ac_ext
12475 LIBS
=$ac_check_lib_save_LIBS
12477 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
12478 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6
12479 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
12480 cat >>confdefs.h
<<\_ACEOF
12481 #define WITH_THREAD 1
12485 LIBS
="$LIBS -lpthread"
12486 THREADOBJ
="Python/thread.o"
12489 echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
12490 echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6
12491 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
12492 echo $ECHO_N "(cached) $ECHO_C" >&6
12494 ac_check_lib_save_LIBS
=$LIBS
12496 cat >conftest.
$ac_ext <<_ACEOF
12499 cat confdefs.h
>>conftest.
$ac_ext
12500 cat >>conftest.
$ac_ext <<_ACEOF
12501 /* end confdefs.h. */
12503 /* Override any gcc2 internal prototype to avoid an error. */
12507 /* We use char because int might match the return type of a gcc2
12508 builtin and then its argument prototype would still apply. */
12509 char pthread_create ();
12518 rm -f conftest.
$ac_objext conftest
$ac_exeext
12519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12520 (eval $ac_link) 2>conftest.er1
12522 grep -v '^ *+' conftest.er1
>conftest.err
12524 cat conftest.err
>&5
12525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12526 (exit $ac_status); } &&
12527 { ac_try
='test -z "$ac_c_werror_flag"
12528 || test ! -s conftest.err'
12529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12530 (eval $ac_try) 2>&5
12532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12533 (exit $ac_status); }; } &&
12534 { ac_try
='test -s conftest$ac_exeext'
12535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12536 (eval $ac_try) 2>&5
12538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539 (exit $ac_status); }; }; then
12540 ac_cv_lib_cma_pthread_create
=yes
12542 echo "$as_me: failed program was:" >&5
12543 sed 's/^/| /' conftest.
$ac_ext >&5
12545 ac_cv_lib_cma_pthread_create
=no
12547 rm -f conftest.err conftest.
$ac_objext \
12548 conftest
$ac_exeext conftest.
$ac_ext
12549 LIBS
=$ac_check_lib_save_LIBS
12551 echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
12552 echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6
12553 if test $ac_cv_lib_cma_pthread_create = yes; then
12554 cat >>confdefs.h
<<\_ACEOF
12555 #define WITH_THREAD 1
12560 THREADOBJ
="Python/thread.o"
12563 USE_THREAD_MODULE
="#"
12582 rm -f conftest.err conftest.
$ac_objext \
12583 conftest
$ac_exeext conftest.
$ac_ext
12592 echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
12593 echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6
12594 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
12595 echo $ECHO_N "(cached) $ECHO_C" >&6
12597 ac_check_lib_save_LIBS
=$LIBS
12599 cat >conftest.
$ac_ext <<_ACEOF
12602 cat confdefs.h
>>conftest.
$ac_ext
12603 cat >>conftest.
$ac_ext <<_ACEOF
12604 /* end confdefs.h. */
12606 /* Override any gcc2 internal prototype to avoid an error. */
12610 /* We use char because int might match the return type of a gcc2
12611 builtin and then its argument prototype would still apply. */
12621 rm -f conftest.
$ac_objext conftest
$ac_exeext
12622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12623 (eval $ac_link) 2>conftest.er1
12625 grep -v '^ *+' conftest.er1
>conftest.err
12627 cat conftest.err
>&5
12628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12629 (exit $ac_status); } &&
12630 { ac_try
='test -z "$ac_c_werror_flag"
12631 || test ! -s conftest.err'
12632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12633 (eval $ac_try) 2>&5
12635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12636 (exit $ac_status); }; } &&
12637 { ac_try
='test -s conftest$ac_exeext'
12638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12639 (eval $ac_try) 2>&5
12641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12642 (exit $ac_status); }; }; then
12643 ac_cv_lib_mpc_usconfig
=yes
12645 echo "$as_me: failed program was:" >&5
12646 sed 's/^/| /' conftest.
$ac_ext >&5
12648 ac_cv_lib_mpc_usconfig
=no
12650 rm -f conftest.err conftest.
$ac_objext \
12651 conftest
$ac_exeext conftest.
$ac_ext
12652 LIBS
=$ac_check_lib_save_LIBS
12654 echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
12655 echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6
12656 if test $ac_cv_lib_mpc_usconfig = yes; then
12657 cat >>confdefs.h
<<\_ACEOF
12658 #define WITH_THREAD 1
12662 THREADOBJ
="Python/thread.o"
12663 USE_THREAD_MODULE
=""
12667 if test "$posix_threads" != "yes"; then
12668 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
12669 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
12670 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
12671 echo $ECHO_N "(cached) $ECHO_C" >&6
12673 ac_check_lib_save_LIBS
=$LIBS
12674 LIBS
="-lthread $LIBS"
12675 cat >conftest.
$ac_ext <<_ACEOF
12678 cat confdefs.h
>>conftest.
$ac_ext
12679 cat >>conftest.
$ac_ext <<_ACEOF
12680 /* end confdefs.h. */
12682 /* Override any gcc2 internal prototype to avoid an error. */
12686 /* We use char because int might match the return type of a gcc2
12687 builtin and then its argument prototype would still apply. */
12688 char thr_create ();
12697 rm -f conftest.
$ac_objext conftest
$ac_exeext
12698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12699 (eval $ac_link) 2>conftest.er1
12701 grep -v '^ *+' conftest.er1
>conftest.err
12703 cat conftest.err
>&5
12704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12705 (exit $ac_status); } &&
12706 { ac_try
='test -z "$ac_c_werror_flag"
12707 || test ! -s conftest.err'
12708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12709 (eval $ac_try) 2>&5
12711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12712 (exit $ac_status); }; } &&
12713 { ac_try
='test -s conftest$ac_exeext'
12714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12715 (eval $ac_try) 2>&5
12717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12718 (exit $ac_status); }; }; then
12719 ac_cv_lib_thread_thr_create
=yes
12721 echo "$as_me: failed program was:" >&5
12722 sed 's/^/| /' conftest.
$ac_ext >&5
12724 ac_cv_lib_thread_thr_create
=no
12726 rm -f conftest.err conftest.
$ac_objext \
12727 conftest
$ac_exeext conftest.
$ac_ext
12728 LIBS
=$ac_check_lib_save_LIBS
12730 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
12731 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
12732 if test $ac_cv_lib_thread_thr_create = yes; then
12733 cat >>confdefs.h
<<\_ACEOF
12734 #define WITH_THREAD 1
12737 LIBS
="$LIBS -lthread"
12738 THREADOBJ
="Python/thread.o"
12739 USE_THREAD_MODULE
=""
12744 if test "$USE_THREAD_MODULE" != "#"
12746 # If the above checks didn't disable threads, (at least) OSF1
12747 # needs this '-threads' argument during linking.
12748 case $ac_sys_system in
12749 OSF1
) LDLAST
=-threads;;
12754 if test "$posix_threads" = "yes"; then
12755 if test "$unistd_defines_pthreads" = "no"; then
12757 cat >>confdefs.h
<<\_ACEOF
12758 #define _POSIX_THREADS 1
12763 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
12764 case $ac_sys_system/$ac_sys_release in
12766 cat >>confdefs.h
<<\_ACEOF
12767 #define HAVE_PTHREAD_DESTRUCTOR 1
12772 cat >>confdefs.h
<<\_ACEOF
12773 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
12779 echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
12780 echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6
12781 if test "${ac_cv_pthread_system_supported+set}" = set; then
12782 echo $ECHO_N "(cached) $ECHO_C" >&6
12784 if test "$cross_compiling" = yes; then
12785 ac_cv_pthread_system_supported
=no
12787 cat >conftest.
$ac_ext <<_ACEOF
12790 cat confdefs.h
>>conftest.
$ac_ext
12791 cat >>conftest.
$ac_ext <<_ACEOF
12792 /* end confdefs.h. */
12793 #include <pthread.h>
12794 void *foo(void *parm) {
12798 pthread_attr_t attr;
12800 if (pthread_attr_init(&attr)) exit(-1);
12801 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
12802 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
12806 rm -f conftest
$ac_exeext
12807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12808 (eval $ac_link) 2>&5
12810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12811 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12813 (eval $ac_try) 2>&5
12815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12816 (exit $ac_status); }; }; then
12817 ac_cv_pthread_system_supported
=yes
12819 echo "$as_me: program exited with status $ac_status" >&5
12820 echo "$as_me: failed program was:" >&5
12821 sed 's/^/| /' conftest.
$ac_ext >&5
12823 ( exit $ac_status )
12824 ac_cv_pthread_system_supported
=no
12826 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12831 echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
12832 echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6
12833 if test "$ac_cv_pthread_system_supported" = "yes"; then
12835 cat >>confdefs.h
<<\_ACEOF
12836 #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
12841 for ac_func
in pthread_sigmask
12843 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12844 echo "$as_me:$LINENO: checking for $ac_func" >&5
12845 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12846 if eval "test \"\${$as_ac_var+set}\" = set"; then
12847 echo $ECHO_N "(cached) $ECHO_C" >&6
12849 cat >conftest.
$ac_ext <<_ACEOF
12852 cat confdefs.h
>>conftest.
$ac_ext
12853 cat >>conftest.
$ac_ext <<_ACEOF
12854 /* end confdefs.h. */
12855 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12856 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12857 #define $ac_func innocuous_$ac_func
12859 /* System header to define __stub macros and hopefully few prototypes,
12860 which can conflict with char $ac_func (); below.
12861 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12862 <limits.h> exists even on freestanding compilers. */
12865 # include <limits.h>
12867 # include <assert.h>
12872 /* Override any gcc2 internal prototype to avoid an error. */
12877 /* We use char because int might match the return type of a gcc2
12878 builtin and then its argument prototype would still apply. */
12880 /* The GNU C library defines this for functions which it implements
12881 to always fail with ENOSYS. Some functions are actually named
12882 something starting with __ and the normal name is an alias. */
12883 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12886 char (*f) () = $ac_func;
12895 return f != $ac_func;
12900 rm -f conftest.
$ac_objext conftest
$ac_exeext
12901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12902 (eval $ac_link) 2>conftest.er1
12904 grep -v '^ *+' conftest.er1
>conftest.err
12906 cat conftest.err
>&5
12907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12908 (exit $ac_status); } &&
12909 { ac_try
='test -z "$ac_c_werror_flag"
12910 || test ! -s conftest.err'
12911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12912 (eval $ac_try) 2>&5
12914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12915 (exit $ac_status); }; } &&
12916 { ac_try
='test -s conftest$ac_exeext'
12917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12918 (eval $ac_try) 2>&5
12920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12921 (exit $ac_status); }; }; then
12922 eval "$as_ac_var=yes"
12924 echo "$as_me: failed program was:" >&5
12925 sed 's/^/| /' conftest.
$ac_ext >&5
12927 eval "$as_ac_var=no"
12929 rm -f conftest.err conftest.
$ac_objext \
12930 conftest
$ac_exeext conftest.
$ac_ext
12932 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12933 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12934 if test `eval echo '${'$as_ac_var'}'` = yes; then
12935 cat >>confdefs.h
<<_ACEOF
12936 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12938 case $ac_sys_system in
12941 cat >>confdefs.h
<<\_ACEOF
12942 #define HAVE_BROKEN_PTHREAD_SIGMASK 1
12953 # Check for enable-ipv6
12956 echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
12957 echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6
12958 # Check whether --enable-ipv6 or --disable-ipv6 was given.
12959 if test "${enable_ipv6+set}" = set; then
12960 enableval
="$enable_ipv6"
12961 case "$enableval" in
12963 echo "$as_me:$LINENO: result: no" >&5
12964 echo "${ECHO_T}no" >&6
12967 *) echo "$as_me:$LINENO: result: yes" >&5
12968 echo "${ECHO_T}yes" >&6
12969 cat >>confdefs.h
<<\_ACEOF
12970 #define ENABLE_IPV6 1
12978 if test "$cross_compiling" = yes; then
12979 echo "$as_me:$LINENO: result: no" >&5
12980 echo "${ECHO_T}no" >&6
12984 cat >conftest.
$ac_ext <<_ACEOF
12987 cat confdefs.h
>>conftest.
$ac_ext
12988 cat >>conftest.
$ac_ext <<_ACEOF
12989 /* end confdefs.h. */
12990 /* AF_INET6 available check */
12991 #include <sys/types.h>
12992 #include <sys/socket.h>
12995 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
13002 rm -f conftest
$ac_exeext
13003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13004 (eval $ac_link) 2>&5
13006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13007 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13009 (eval $ac_try) 2>&5
13011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13012 (exit $ac_status); }; }; then
13013 echo "$as_me:$LINENO: result: yes" >&5
13014 echo "${ECHO_T}yes" >&6
13017 echo "$as_me: program exited with status $ac_status" >&5
13018 echo "$as_me: failed program was:" >&5
13019 sed 's/^/| /' conftest.
$ac_ext >&5
13021 ( exit $ac_status )
13022 echo "$as_me:$LINENO: result: no" >&5
13023 echo "${ECHO_T}no" >&6
13026 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13029 if test "$ipv6" = "yes"; then
13030 echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
13031 echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6
13032 cat >conftest.
$ac_ext <<_ACEOF
13035 cat confdefs.h
>>conftest.
$ac_ext
13036 cat >>conftest.
$ac_ext <<_ACEOF
13037 /* end confdefs.h. */
13038 #include <sys/types.h>
13039 #include <netinet/in.h>
13043 struct sockaddr_in6 x;
13049 rm -f conftest.
$ac_objext
13050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13051 (eval $ac_compile) 2>conftest.er1
13053 grep -v '^ *+' conftest.er1
>conftest.err
13055 cat conftest.err
>&5
13056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13057 (exit $ac_status); } &&
13058 { ac_try
='test -z "$ac_c_werror_flag"
13059 || test ! -s conftest.err'
13060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13061 (eval $ac_try) 2>&5
13063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13064 (exit $ac_status); }; } &&
13065 { ac_try
='test -s conftest.$ac_objext'
13066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13067 (eval $ac_try) 2>&5
13069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13070 (exit $ac_status); }; }; then
13071 echo "$as_me:$LINENO: result: yes" >&5
13072 echo "${ECHO_T}yes" >&6
13075 echo "$as_me: failed program was:" >&5
13076 sed 's/^/| /' conftest.
$ac_ext >&5
13078 echo "$as_me:$LINENO: result: no" >&5
13079 echo "${ECHO_T}no" >&6
13082 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13085 if test "$ipv6" = "yes"; then
13086 cat >>confdefs.h
<<\_ACEOF
13087 #define ENABLE_IPV6 1
13098 if test "$ipv6" = "yes"; then
13099 echo "$as_me:$LINENO: checking ipv6 stack type" >&5
13100 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6
13101 for i
in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta
;
13105 cat >conftest.
$ac_ext <<_ACEOF
13108 cat confdefs.h
>>conftest.
$ac_ext
13109 cat >>conftest.
$ac_ext <<_ACEOF
13110 /* end confdefs.h. */
13112 #include <netinet/in.h>
13113 #ifdef IPV6_INRIA_VERSION
13117 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13118 $EGREP "yes" >/dev
/null
2>&1; then
13125 cat >conftest.
$ac_ext <<_ACEOF
13128 cat confdefs.h
>>conftest.
$ac_ext
13129 cat >>conftest.
$ac_ext <<_ACEOF
13130 /* end confdefs.h. */
13132 #include <netinet/in.h>
13137 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13138 $EGREP "yes" >/dev
/null
2>&1; then
13141 ipv6libdir
=/usr
/local
/v
6/lib
13148 cat >conftest.
$ac_ext <<_ACEOF
13151 cat confdefs.h
>>conftest.
$ac_ext
13152 cat >>conftest.
$ac_ext <<_ACEOF
13153 /* end confdefs.h. */
13155 #include <features.h>
13156 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
13160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13161 $EGREP "yes" >/dev
/null
2>&1; then
13169 if test -d /usr
/inet6
; then
13172 ipv6libdir
=/usr
/inet
6/lib
13173 BASECFLAGS
="-I/usr/inet6/include $BASECFLAGS"
13177 if test -f /etc
/netconfig
; then
13178 if /usr
/xpg
4/bin
/grep -q tcp6
/etc
/netconfig
; then
13185 cat >conftest.
$ac_ext <<_ACEOF
13188 cat confdefs.h
>>conftest.
$ac_ext
13189 cat >>conftest.
$ac_ext <<_ACEOF
13190 /* end confdefs.h. */
13192 #include <sys/param.h>
13193 #ifdef _TOSHIBA_INET6
13197 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13198 $EGREP "yes" >/dev
/null
2>&1; then
13201 ipv6libdir
=/usr
/local
/v
6/lib
13207 cat >conftest.
$ac_ext <<_ACEOF
13210 cat confdefs.h
>>conftest.
$ac_ext
13211 cat >>conftest.
$ac_ext <<_ACEOF
13212 /* end confdefs.h. */
13214 #include </usr/local/v6/include/sys/v6config.h>
13219 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13220 $EGREP "yes" >/dev
/null
2>&1; then
13223 ipv6libdir
=/usr
/local
/v
6/lib
;
13224 BASECFLAGS
="-I/usr/local/v6/include $BASECFLAGS"
13230 cat >conftest.
$ac_ext <<_ACEOF
13233 cat confdefs.h
>>conftest.
$ac_ext
13234 cat >>conftest.
$ac_ext <<_ACEOF
13235 /* end confdefs.h. */
13237 #include <sys/param.h>
13238 #ifdef _ZETA_MINAMI_INET6
13242 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13243 $EGREP "yes" >/dev
/null
2>&1; then
13246 ipv6libdir
=/usr
/local
/v
6/lib
13252 if test "$ipv6type" != "unknown"; then
13256 echo "$as_me:$LINENO: result: $ipv6type" >&5
13257 echo "${ECHO_T}$ipv6type" >&6
13260 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
13261 if test -d $ipv6libdir -a -f $ipv6libdir/lib
$ipv6lib.a
; then
13262 LIBS
="-L$ipv6libdir -l$ipv6lib $LIBS"
13263 echo "using lib$ipv6lib"
13265 if test $ipv6trylibc = "yes"; then
13268 echo 'Fatal: no $ipv6lib library found. cannot continue.'
13269 echo "You need to fetch lib$ipv6lib.a from appropriate"
13270 echo 'ipv6 kit and compile beforehand.'
13276 # Check for --with-doc-strings
13277 echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
13278 echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6
13280 # Check whether --with-doc-strings or --without-doc-strings was given.
13281 if test "${with_doc_strings+set}" = set; then
13282 withval
="$with_doc_strings"
13286 if test -z "$with_doc_strings"
13287 then with_doc_strings
="yes"
13289 if test "$with_doc_strings" != "no"
13292 cat >>confdefs.h
<<\_ACEOF
13293 #define WITH_DOC_STRINGS 1
13297 echo "$as_me:$LINENO: result: $with_doc_strings" >&5
13298 echo "${ECHO_T}$with_doc_strings" >&6
13300 # Check for Python-specific malloc support
13301 echo "$as_me:$LINENO: checking for --with-tsc" >&5
13302 echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6
13304 # Check whether --with-tsc or --without-tsc was given.
13305 if test "${with_tsc+set}" = set; then
13306 withval
="$with_tsc"
13308 if test "$withval" != no
13311 cat >>confdefs.h
<<\_ACEOF
13315 echo "$as_me:$LINENO: result: yes" >&5
13316 echo "${ECHO_T}yes" >&6
13317 else echo "$as_me:$LINENO: result: no" >&5
13318 echo "${ECHO_T}no" >&6
13321 echo "$as_me:$LINENO: result: no" >&5
13322 echo "${ECHO_T}no" >&6
13325 # Check for Python-specific malloc support
13326 echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
13327 echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6
13329 # Check whether --with-pymalloc or --without-pymalloc was given.
13330 if test "${with_pymalloc+set}" = set; then
13331 withval
="$with_pymalloc"
13335 if test -z "$with_pymalloc"
13336 then with_pymalloc
="yes"
13338 if test "$with_pymalloc" != "no"
13341 cat >>confdefs.h
<<\_ACEOF
13342 #define WITH_PYMALLOC 1
13346 echo "$as_me:$LINENO: result: $with_pymalloc" >&5
13347 echo "${ECHO_T}$with_pymalloc" >&6
13349 # Check for --with-wctype-functions
13350 echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
13351 echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6
13353 # Check whether --with-wctype-functions or --without-wctype-functions was given.
13354 if test "${with_wctype_functions+set}" = set; then
13355 withval
="$with_wctype_functions"
13357 if test "$withval" != no
13360 cat >>confdefs.h
<<\_ACEOF
13361 #define WANT_WCTYPE_FUNCTIONS 1
13364 echo "$as_me:$LINENO: result: yes" >&5
13365 echo "${ECHO_T}yes" >&6
13366 else echo "$as_me:$LINENO: result: no" >&5
13367 echo "${ECHO_T}no" >&6
13370 echo "$as_me:$LINENO: result: no" >&5
13371 echo "${ECHO_T}no" >&6
13374 # -I${DLINCLDIR} is added to the compile rule for importdl.o
13378 # the dlopen() function means we might want to use dynload_shlib.o. some
13379 # platforms, such as AIX, have dlopen(), but don't want to use it.
13381 for ac_func
in dlopen
13383 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13384 echo "$as_me:$LINENO: checking for $ac_func" >&5
13385 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13386 if eval "test \"\${$as_ac_var+set}\" = set"; then
13387 echo $ECHO_N "(cached) $ECHO_C" >&6
13389 cat >conftest.
$ac_ext <<_ACEOF
13392 cat confdefs.h
>>conftest.
$ac_ext
13393 cat >>conftest.
$ac_ext <<_ACEOF
13394 /* end confdefs.h. */
13395 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13396 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13397 #define $ac_func innocuous_$ac_func
13399 /* System header to define __stub macros and hopefully few prototypes,
13400 which can conflict with char $ac_func (); below.
13401 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13402 <limits.h> exists even on freestanding compilers. */
13405 # include <limits.h>
13407 # include <assert.h>
13412 /* Override any gcc2 internal prototype to avoid an error. */
13417 /* We use char because int might match the return type of a gcc2
13418 builtin and then its argument prototype would still apply. */
13420 /* The GNU C library defines this for functions which it implements
13421 to always fail with ENOSYS. Some functions are actually named
13422 something starting with __ and the normal name is an alias. */
13423 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13426 char (*f) () = $ac_func;
13435 return f != $ac_func;
13440 rm -f conftest.
$ac_objext conftest
$ac_exeext
13441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13442 (eval $ac_link) 2>conftest.er1
13444 grep -v '^ *+' conftest.er1
>conftest.err
13446 cat conftest.err
>&5
13447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13448 (exit $ac_status); } &&
13449 { ac_try
='test -z "$ac_c_werror_flag"
13450 || test ! -s conftest.err'
13451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13452 (eval $ac_try) 2>&5
13454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13455 (exit $ac_status); }; } &&
13456 { ac_try
='test -s conftest$ac_exeext'
13457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13458 (eval $ac_try) 2>&5
13460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13461 (exit $ac_status); }; }; then
13462 eval "$as_ac_var=yes"
13464 echo "$as_me: failed program was:" >&5
13465 sed 's/^/| /' conftest.
$ac_ext >&5
13467 eval "$as_ac_var=no"
13469 rm -f conftest.err conftest.
$ac_objext \
13470 conftest
$ac_exeext conftest.
$ac_ext
13472 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13473 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13474 if test `eval echo '${'$as_ac_var'}'` = yes; then
13475 cat >>confdefs.h
<<_ACEOF
13476 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13483 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
13484 # loading of modules.
13486 echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
13487 echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6
13488 if test -z "$DYNLOADFILE"
13490 case $ac_sys_system/$ac_sys_release in
13491 AIX
*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
13492 if test "$ac_cv_func_dlopen" = yes
13493 then DYNLOADFILE
="dynload_shlib.o"
13494 else DYNLOADFILE
="dynload_aix.o"
13497 BeOS
*) DYNLOADFILE
="dynload_beos.o";;
13498 hp
*|HP
*) DYNLOADFILE
="dynload_hpux.o";;
13499 Darwin
/*) DYNLOADFILE
="dynload_next.o";;
13500 atheos
*) DYNLOADFILE
="dynload_atheos.o";;
13502 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
13503 # out any dynamic loading
13504 if test "$ac_cv_func_dlopen" = yes
13505 then DYNLOADFILE
="dynload_shlib.o"
13506 else DYNLOADFILE
="dynload_stub.o"
13511 echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
13512 echo "${ECHO_T}$DYNLOADFILE" >&6
13513 if test "$DYNLOADFILE" != "dynload_stub.o"
13516 cat >>confdefs.h
<<\_ACEOF
13517 #define HAVE_DYNAMIC_LOADING 1
13522 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
13525 echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
13526 echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6
13527 if test -z "$MACHDEP_OBJS"
13529 MACHDEP_OBJS
=$extra_machdep_objs
13531 MACHDEP_OBJS
="$MACHDEP_OBJS $extra_machdep_objs"
13533 echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
13534 echo "${ECHO_T}MACHDEP_OBJS" >&6
13536 # checks for library functions
13611 for ac_func
in alarm bind_textdomain_codeset chown
clock confstr ctermid \
13612 execv fork fpathconf ftime ftruncate \
13613 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
13614 getpriority getpwent getspnam getspent getsid getwd \
13615 kill killpg lchown lstat
mkfifo mknod mktime \
13616 mremap nice pathconf pause plock poll pthread_init \
13617 putenv readlink realpath \
13618 select setegid seteuid setgid \
13619 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
13620 sigaction siginterrupt sigrelse strftime \
13621 sysconf tcgetpgrp tcsetpgrp tempnam timegm
times tmpfile tmpnam tmpnam_r \
13622 truncate uname unsetenv utimes waitpid wcscoll _getpty
13624 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13625 echo "$as_me:$LINENO: checking for $ac_func" >&5
13626 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13627 if eval "test \"\${$as_ac_var+set}\" = set"; then
13628 echo $ECHO_N "(cached) $ECHO_C" >&6
13630 cat >conftest.
$ac_ext <<_ACEOF
13633 cat confdefs.h
>>conftest.
$ac_ext
13634 cat >>conftest.
$ac_ext <<_ACEOF
13635 /* end confdefs.h. */
13636 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13637 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13638 #define $ac_func innocuous_$ac_func
13640 /* System header to define __stub macros and hopefully few prototypes,
13641 which can conflict with char $ac_func (); below.
13642 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13643 <limits.h> exists even on freestanding compilers. */
13646 # include <limits.h>
13648 # include <assert.h>
13653 /* Override any gcc2 internal prototype to avoid an error. */
13658 /* We use char because int might match the return type of a gcc2
13659 builtin and then its argument prototype would still apply. */
13661 /* The GNU C library defines this for functions which it implements
13662 to always fail with ENOSYS. Some functions are actually named
13663 something starting with __ and the normal name is an alias. */
13664 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13667 char (*f) () = $ac_func;
13676 return f != $ac_func;
13681 rm -f conftest.
$ac_objext conftest
$ac_exeext
13682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13683 (eval $ac_link) 2>conftest.er1
13685 grep -v '^ *+' conftest.er1
>conftest.err
13687 cat conftest.err
>&5
13688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13689 (exit $ac_status); } &&
13690 { ac_try
='test -z "$ac_c_werror_flag"
13691 || test ! -s conftest.err'
13692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13693 (eval $ac_try) 2>&5
13695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13696 (exit $ac_status); }; } &&
13697 { ac_try
='test -s conftest$ac_exeext'
13698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13699 (eval $ac_try) 2>&5
13701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13702 (exit $ac_status); }; }; then
13703 eval "$as_ac_var=yes"
13705 echo "$as_me: failed program was:" >&5
13706 sed 's/^/| /' conftest.
$ac_ext >&5
13708 eval "$as_ac_var=no"
13710 rm -f conftest.err conftest.
$ac_objext \
13711 conftest
$ac_exeext conftest.
$ac_ext
13713 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13714 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13715 if test `eval echo '${'$as_ac_var'}'` = yes; then
13716 cat >>confdefs.h
<<_ACEOF
13717 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13724 # For some functions, having a definition is not sufficient, since
13725 # we want to take their address.
13726 echo "$as_me:$LINENO: checking for chroot" >&5
13727 echo $ECHO_N "checking for chroot... $ECHO_C" >&6
13728 cat >conftest.
$ac_ext <<_ACEOF
13731 cat confdefs.h
>>conftest.
$ac_ext
13732 cat >>conftest.
$ac_ext <<_ACEOF
13733 /* end confdefs.h. */
13734 #include <unistd.h>
13743 rm -f conftest.
$ac_objext
13744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13745 (eval $ac_compile) 2>conftest.er1
13747 grep -v '^ *+' conftest.er1
>conftest.err
13749 cat conftest.err
>&5
13750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13751 (exit $ac_status); } &&
13752 { ac_try
='test -z "$ac_c_werror_flag"
13753 || test ! -s conftest.err'
13754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13755 (eval $ac_try) 2>&5
13757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13758 (exit $ac_status); }; } &&
13759 { ac_try
='test -s conftest.$ac_objext'
13760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13761 (eval $ac_try) 2>&5
13763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13764 (exit $ac_status); }; }; then
13766 cat >>confdefs.h
<<\_ACEOF
13767 #define HAVE_CHROOT 1
13770 echo "$as_me:$LINENO: result: yes" >&5
13771 echo "${ECHO_T}yes" >&6
13773 echo "$as_me: failed program was:" >&5
13774 sed 's/^/| /' conftest.
$ac_ext >&5
13776 echo "$as_me:$LINENO: result: no" >&5
13777 echo "${ECHO_T}no" >&6
13780 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13781 echo "$as_me:$LINENO: checking for link" >&5
13782 echo $ECHO_N "checking for link... $ECHO_C" >&6
13783 cat >conftest.
$ac_ext <<_ACEOF
13786 cat confdefs.h
>>conftest.
$ac_ext
13787 cat >>conftest.
$ac_ext <<_ACEOF
13788 /* end confdefs.h. */
13789 #include <unistd.h>
13798 rm -f conftest.
$ac_objext
13799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13800 (eval $ac_compile) 2>conftest.er1
13802 grep -v '^ *+' conftest.er1
>conftest.err
13804 cat conftest.err
>&5
13805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13806 (exit $ac_status); } &&
13807 { ac_try
='test -z "$ac_c_werror_flag"
13808 || test ! -s conftest.err'
13809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13810 (eval $ac_try) 2>&5
13812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13813 (exit $ac_status); }; } &&
13814 { ac_try
='test -s conftest.$ac_objext'
13815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13816 (eval $ac_try) 2>&5
13818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13819 (exit $ac_status); }; }; then
13821 cat >>confdefs.h
<<\_ACEOF
13822 #define HAVE_LINK 1
13825 echo "$as_me:$LINENO: result: yes" >&5
13826 echo "${ECHO_T}yes" >&6
13828 echo "$as_me: failed program was:" >&5
13829 sed 's/^/| /' conftest.
$ac_ext >&5
13831 echo "$as_me:$LINENO: result: no" >&5
13832 echo "${ECHO_T}no" >&6
13835 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13836 echo "$as_me:$LINENO: checking for symlink" >&5
13837 echo $ECHO_N "checking for symlink... $ECHO_C" >&6
13838 cat >conftest.
$ac_ext <<_ACEOF
13841 cat confdefs.h
>>conftest.
$ac_ext
13842 cat >>conftest.
$ac_ext <<_ACEOF
13843 /* end confdefs.h. */
13844 #include <unistd.h>
13853 rm -f conftest.
$ac_objext
13854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13855 (eval $ac_compile) 2>conftest.er1
13857 grep -v '^ *+' conftest.er1
>conftest.err
13859 cat conftest.err
>&5
13860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13861 (exit $ac_status); } &&
13862 { ac_try
='test -z "$ac_c_werror_flag"
13863 || test ! -s conftest.err'
13864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13865 (eval $ac_try) 2>&5
13867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13868 (exit $ac_status); }; } &&
13869 { ac_try
='test -s conftest.$ac_objext'
13870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13871 (eval $ac_try) 2>&5
13873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13874 (exit $ac_status); }; }; then
13876 cat >>confdefs.h
<<\_ACEOF
13877 #define HAVE_SYMLINK 1
13880 echo "$as_me:$LINENO: result: yes" >&5
13881 echo "${ECHO_T}yes" >&6
13883 echo "$as_me: failed program was:" >&5
13884 sed 's/^/| /' conftest.
$ac_ext >&5
13886 echo "$as_me:$LINENO: result: no" >&5
13887 echo "${ECHO_T}no" >&6
13890 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13891 echo "$as_me:$LINENO: checking for fchdir" >&5
13892 echo $ECHO_N "checking for fchdir... $ECHO_C" >&6
13893 cat >conftest.
$ac_ext <<_ACEOF
13896 cat confdefs.h
>>conftest.
$ac_ext
13897 cat >>conftest.
$ac_ext <<_ACEOF
13898 /* end confdefs.h. */
13899 #include <unistd.h>
13908 rm -f conftest.
$ac_objext
13909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13910 (eval $ac_compile) 2>conftest.er1
13912 grep -v '^ *+' conftest.er1
>conftest.err
13914 cat conftest.err
>&5
13915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13916 (exit $ac_status); } &&
13917 { ac_try
='test -z "$ac_c_werror_flag"
13918 || test ! -s conftest.err'
13919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13920 (eval $ac_try) 2>&5
13922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13923 (exit $ac_status); }; } &&
13924 { ac_try
='test -s conftest.$ac_objext'
13925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13926 (eval $ac_try) 2>&5
13928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13929 (exit $ac_status); }; }; then
13931 cat >>confdefs.h
<<\_ACEOF
13932 #define HAVE_FCHDIR 1
13935 echo "$as_me:$LINENO: result: yes" >&5
13936 echo "${ECHO_T}yes" >&6
13938 echo "$as_me: failed program was:" >&5
13939 sed 's/^/| /' conftest.
$ac_ext >&5
13941 echo "$as_me:$LINENO: result: no" >&5
13942 echo "${ECHO_T}no" >&6
13945 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13946 echo "$as_me:$LINENO: checking for fsync" >&5
13947 echo $ECHO_N "checking for fsync... $ECHO_C" >&6
13948 cat >conftest.
$ac_ext <<_ACEOF
13951 cat confdefs.h
>>conftest.
$ac_ext
13952 cat >>conftest.
$ac_ext <<_ACEOF
13953 /* end confdefs.h. */
13954 #include <unistd.h>
13963 rm -f conftest.
$ac_objext
13964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13965 (eval $ac_compile) 2>conftest.er1
13967 grep -v '^ *+' conftest.er1
>conftest.err
13969 cat conftest.err
>&5
13970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13971 (exit $ac_status); } &&
13972 { ac_try
='test -z "$ac_c_werror_flag"
13973 || test ! -s conftest.err'
13974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13975 (eval $ac_try) 2>&5
13977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13978 (exit $ac_status); }; } &&
13979 { ac_try
='test -s conftest.$ac_objext'
13980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13981 (eval $ac_try) 2>&5
13983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13984 (exit $ac_status); }; }; then
13986 cat >>confdefs.h
<<\_ACEOF
13987 #define HAVE_FSYNC 1
13990 echo "$as_me:$LINENO: result: yes" >&5
13991 echo "${ECHO_T}yes" >&6
13993 echo "$as_me: failed program was:" >&5
13994 sed 's/^/| /' conftest.
$ac_ext >&5
13996 echo "$as_me:$LINENO: result: no" >&5
13997 echo "${ECHO_T}no" >&6
14000 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14001 echo "$as_me:$LINENO: checking for fdatasync" >&5
14002 echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6
14003 cat >conftest.
$ac_ext <<_ACEOF
14006 cat confdefs.h
>>conftest.
$ac_ext
14007 cat >>conftest.
$ac_ext <<_ACEOF
14008 /* end confdefs.h. */
14009 #include <unistd.h>
14018 rm -f conftest.
$ac_objext
14019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14020 (eval $ac_compile) 2>conftest.er1
14022 grep -v '^ *+' conftest.er1
>conftest.err
14024 cat conftest.err
>&5
14025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14026 (exit $ac_status); } &&
14027 { ac_try
='test -z "$ac_c_werror_flag"
14028 || test ! -s conftest.err'
14029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14030 (eval $ac_try) 2>&5
14032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14033 (exit $ac_status); }; } &&
14034 { ac_try
='test -s conftest.$ac_objext'
14035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14036 (eval $ac_try) 2>&5
14038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14039 (exit $ac_status); }; }; then
14041 cat >>confdefs.h
<<\_ACEOF
14042 #define HAVE_FDATASYNC 1
14045 echo "$as_me:$LINENO: result: yes" >&5
14046 echo "${ECHO_T}yes" >&6
14048 echo "$as_me: failed program was:" >&5
14049 sed 's/^/| /' conftest.
$ac_ext >&5
14051 echo "$as_me:$LINENO: result: no" >&5
14052 echo "${ECHO_T}no" >&6
14055 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14057 # On some systems (eg. FreeBSD 5), we would find a definition of the
14058 # functions ctermid_r, setgroups in the library, but no prototype
14059 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
14060 # address to avoid compiler warnings and potential miscompilations
14061 # because of the missing prototypes.
14063 echo "$as_me:$LINENO: checking for ctermid_r" >&5
14064 echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6
14065 cat >conftest.
$ac_ext <<_ACEOF
14068 cat confdefs.h
>>conftest.
$ac_ext
14069 cat >>conftest.
$ac_ext <<_ACEOF
14070 /* end confdefs.h. */
14072 #include "confdefs.h"
14078 void* p = ctermid_r
14083 rm -f conftest.
$ac_objext
14084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14085 (eval $ac_compile) 2>conftest.er1
14087 grep -v '^ *+' conftest.er1
>conftest.err
14089 cat conftest.err
>&5
14090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14091 (exit $ac_status); } &&
14092 { ac_try
='test -z "$ac_c_werror_flag"
14093 || test ! -s conftest.err'
14094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14095 (eval $ac_try) 2>&5
14097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14098 (exit $ac_status); }; } &&
14099 { ac_try
='test -s conftest.$ac_objext'
14100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14101 (eval $ac_try) 2>&5
14103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14104 (exit $ac_status); }; }; then
14106 cat >>confdefs.h
<<\_ACEOF
14107 #define HAVE_CTERMID_R 1
14110 echo "$as_me:$LINENO: result: yes" >&5
14111 echo "${ECHO_T}yes" >&6
14113 echo "$as_me: failed program was:" >&5
14114 sed 's/^/| /' conftest.
$ac_ext >&5
14116 echo "$as_me:$LINENO: result: no" >&5
14117 echo "${ECHO_T}no" >&6
14120 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14122 echo "$as_me:$LINENO: checking for flock" >&5
14123 echo $ECHO_N "checking for flock... $ECHO_C" >&6
14124 cat >conftest.
$ac_ext <<_ACEOF
14127 cat confdefs.h
>>conftest.
$ac_ext
14128 cat >>conftest.
$ac_ext <<_ACEOF
14129 /* end confdefs.h. */
14131 #include "confdefs.h"
14132 #include <sys/file.h>
14142 rm -f conftest.
$ac_objext
14143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14144 (eval $ac_compile) 2>conftest.er1
14146 grep -v '^ *+' conftest.er1
>conftest.err
14148 cat conftest.err
>&5
14149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14150 (exit $ac_status); } &&
14151 { ac_try
='test -z "$ac_c_werror_flag"
14152 || test ! -s conftest.err'
14153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14154 (eval $ac_try) 2>&5
14156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14157 (exit $ac_status); }; } &&
14158 { ac_try
='test -s conftest.$ac_objext'
14159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14160 (eval $ac_try) 2>&5
14162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14163 (exit $ac_status); }; }; then
14165 cat >>confdefs.h
<<\_ACEOF
14166 #define HAVE_FLOCK 1
14169 echo "$as_me:$LINENO: result: yes" >&5
14170 echo "${ECHO_T}yes" >&6
14172 echo "$as_me: failed program was:" >&5
14173 sed 's/^/| /' conftest.
$ac_ext >&5
14175 echo "$as_me:$LINENO: result: no" >&5
14176 echo "${ECHO_T}no" >&6
14179 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14181 echo "$as_me:$LINENO: checking for getpagesize" >&5
14182 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6
14183 cat >conftest.
$ac_ext <<_ACEOF
14186 cat confdefs.h
>>conftest.
$ac_ext
14187 cat >>conftest.
$ac_ext <<_ACEOF
14188 /* end confdefs.h. */
14190 #include "confdefs.h"
14191 #include <unistd.h>
14196 void* p = getpagesize
14201 rm -f conftest.
$ac_objext
14202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14203 (eval $ac_compile) 2>conftest.er1
14205 grep -v '^ *+' conftest.er1
>conftest.err
14207 cat conftest.err
>&5
14208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14209 (exit $ac_status); } &&
14210 { ac_try
='test -z "$ac_c_werror_flag"
14211 || test ! -s conftest.err'
14212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14213 (eval $ac_try) 2>&5
14215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14216 (exit $ac_status); }; } &&
14217 { ac_try
='test -s conftest.$ac_objext'
14218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14219 (eval $ac_try) 2>&5
14221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14222 (exit $ac_status); }; }; then
14224 cat >>confdefs.h
<<\_ACEOF
14225 #define HAVE_GETPAGESIZE 1
14228 echo "$as_me:$LINENO: result: yes" >&5
14229 echo "${ECHO_T}yes" >&6
14231 echo "$as_me: failed program was:" >&5
14232 sed 's/^/| /' conftest.
$ac_ext >&5
14234 echo "$as_me:$LINENO: result: no" >&5
14235 echo "${ECHO_T}no" >&6
14238 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14240 for ac_prog
in true
14242 # Extract the first word of "$ac_prog", so it can be a program name with args.
14243 set dummy
$ac_prog; ac_word
=$2
14244 echo "$as_me:$LINENO: checking for $ac_word" >&5
14245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14246 if test "${ac_cv_prog_TRUE+set}" = set; then
14247 echo $ECHO_N "(cached) $ECHO_C" >&6
14249 if test -n "$TRUE"; then
14250 ac_cv_prog_TRUE
="$TRUE" # Let the user override the test.
14252 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14253 for as_dir
in $PATH
14256 test -z "$as_dir" && as_dir
=.
14257 for ac_exec_ext
in '' $ac_executable_extensions; do
14258 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14259 ac_cv_prog_TRUE
="$ac_prog"
14260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14268 TRUE
=$ac_cv_prog_TRUE
14269 if test -n "$TRUE"; then
14270 echo "$as_me:$LINENO: result: $TRUE" >&5
14271 echo "${ECHO_T}$TRUE" >&6
14273 echo "$as_me:$LINENO: result: no" >&5
14274 echo "${ECHO_T}no" >&6
14277 test -n "$TRUE" && break
14279 test -n "$TRUE" || TRUE
="/bin/true"
14282 echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
14283 echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6
14284 if test "${ac_cv_lib_c_inet_aton+set}" = set; then
14285 echo $ECHO_N "(cached) $ECHO_C" >&6
14287 ac_check_lib_save_LIBS
=$LIBS
14289 cat >conftest.
$ac_ext <<_ACEOF
14292 cat confdefs.h
>>conftest.
$ac_ext
14293 cat >>conftest.
$ac_ext <<_ACEOF
14294 /* end confdefs.h. */
14296 /* Override any gcc2 internal prototype to avoid an error. */
14300 /* We use char because int might match the return type of a gcc2
14301 builtin and then its argument prototype would still apply. */
14311 rm -f conftest.
$ac_objext conftest
$ac_exeext
14312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14313 (eval $ac_link) 2>conftest.er1
14315 grep -v '^ *+' conftest.er1
>conftest.err
14317 cat conftest.err
>&5
14318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14319 (exit $ac_status); } &&
14320 { ac_try
='test -z "$ac_c_werror_flag"
14321 || test ! -s conftest.err'
14322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14323 (eval $ac_try) 2>&5
14325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14326 (exit $ac_status); }; } &&
14327 { ac_try
='test -s conftest$ac_exeext'
14328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14329 (eval $ac_try) 2>&5
14331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14332 (exit $ac_status); }; }; then
14333 ac_cv_lib_c_inet_aton
=yes
14335 echo "$as_me: failed program was:" >&5
14336 sed 's/^/| /' conftest.
$ac_ext >&5
14338 ac_cv_lib_c_inet_aton
=no
14340 rm -f conftest.err conftest.
$ac_objext \
14341 conftest
$ac_exeext conftest.
$ac_ext
14342 LIBS
=$ac_check_lib_save_LIBS
14344 echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
14345 echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6
14346 if test $ac_cv_lib_c_inet_aton = yes; then
14350 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
14351 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
14352 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
14353 echo $ECHO_N "(cached) $ECHO_C" >&6
14355 ac_check_lib_save_LIBS
=$LIBS
14356 LIBS
="-lresolv $LIBS"
14357 cat >conftest.
$ac_ext <<_ACEOF
14360 cat confdefs.h
>>conftest.
$ac_ext
14361 cat >>conftest.
$ac_ext <<_ACEOF
14362 /* end confdefs.h. */
14364 /* Override any gcc2 internal prototype to avoid an error. */
14368 /* We use char because int might match the return type of a gcc2
14369 builtin and then its argument prototype would still apply. */
14379 rm -f conftest.
$ac_objext conftest
$ac_exeext
14380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14381 (eval $ac_link) 2>conftest.er1
14383 grep -v '^ *+' conftest.er1
>conftest.err
14385 cat conftest.err
>&5
14386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14387 (exit $ac_status); } &&
14388 { ac_try
='test -z "$ac_c_werror_flag"
14389 || test ! -s conftest.err'
14390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14391 (eval $ac_try) 2>&5
14393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14394 (exit $ac_status); }; } &&
14395 { ac_try
='test -s conftest$ac_exeext'
14396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14397 (eval $ac_try) 2>&5
14399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14400 (exit $ac_status); }; }; then
14401 ac_cv_lib_resolv_inet_aton
=yes
14403 echo "$as_me: failed program was:" >&5
14404 sed 's/^/| /' conftest.
$ac_ext >&5
14406 ac_cv_lib_resolv_inet_aton
=no
14408 rm -f conftest.err conftest.
$ac_objext \
14409 conftest
$ac_exeext conftest.
$ac_ext
14410 LIBS
=$ac_check_lib_save_LIBS
14412 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
14413 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
14414 if test $ac_cv_lib_resolv_inet_aton = yes; then
14415 cat >>confdefs.h
<<_ACEOF
14416 #define HAVE_LIBRESOLV 1
14419 LIBS
="-lresolv $LIBS"
14427 echo "$as_me:$LINENO: checking for hstrerror" >&5
14428 echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6
14429 cat >conftest.
$ac_ext <<_ACEOF
14432 cat confdefs.h
>>conftest.
$ac_ext
14433 cat >>conftest.
$ac_ext <<_ACEOF
14434 /* end confdefs.h. */
14436 #include "confdefs.h"
14442 void* p = hstrerror; hstrerror(0)
14447 rm -f conftest.
$ac_objext conftest
$ac_exeext
14448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14449 (eval $ac_link) 2>conftest.er1
14451 grep -v '^ *+' conftest.er1
>conftest.err
14453 cat conftest.err
>&5
14454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14455 (exit $ac_status); } &&
14456 { ac_try
='test -z "$ac_c_werror_flag"
14457 || test ! -s conftest.err'
14458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14459 (eval $ac_try) 2>&5
14461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14462 (exit $ac_status); }; } &&
14463 { ac_try
='test -s conftest$ac_exeext'
14464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14465 (eval $ac_try) 2>&5
14467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14468 (exit $ac_status); }; }; then
14470 cat >>confdefs.h
<<\_ACEOF
14471 #define HAVE_HSTRERROR 1
14474 echo "$as_me:$LINENO: result: yes" >&5
14475 echo "${ECHO_T}yes" >&6
14477 echo "$as_me: failed program was:" >&5
14478 sed 's/^/| /' conftest.
$ac_ext >&5
14480 echo "$as_me:$LINENO: result: no" >&5
14481 echo "${ECHO_T}no" >&6
14484 rm -f conftest.err conftest.
$ac_objext \
14485 conftest
$ac_exeext conftest.
$ac_ext
14487 echo "$as_me:$LINENO: checking for inet_aton" >&5
14488 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
14489 cat >conftest.
$ac_ext <<_ACEOF
14492 cat confdefs.h
>>conftest.
$ac_ext
14493 cat >>conftest.
$ac_ext <<_ACEOF
14494 /* end confdefs.h. */
14496 #include "confdefs.h"
14497 #include <sys/socket.h>
14498 #include <netinet/in.h>
14499 #include <arpa/inet.h>
14504 void* p = inet_aton;inet_aton(0,0)
14509 rm -f conftest.
$ac_objext conftest
$ac_exeext
14510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14511 (eval $ac_link) 2>conftest.er1
14513 grep -v '^ *+' conftest.er1
>conftest.err
14515 cat conftest.err
>&5
14516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14517 (exit $ac_status); } &&
14518 { ac_try
='test -z "$ac_c_werror_flag"
14519 || test ! -s conftest.err'
14520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14521 (eval $ac_try) 2>&5
14523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14524 (exit $ac_status); }; } &&
14525 { ac_try
='test -s conftest$ac_exeext'
14526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14527 (eval $ac_try) 2>&5
14529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14530 (exit $ac_status); }; }; then
14532 cat >>confdefs.h
<<\_ACEOF
14533 #define HAVE_INET_ATON 1
14536 echo "$as_me:$LINENO: result: yes" >&5
14537 echo "${ECHO_T}yes" >&6
14539 echo "$as_me: failed program was:" >&5
14540 sed 's/^/| /' conftest.
$ac_ext >&5
14542 echo "$as_me:$LINENO: result: no" >&5
14543 echo "${ECHO_T}no" >&6
14546 rm -f conftest.err conftest.
$ac_objext \
14547 conftest
$ac_exeext conftest.
$ac_ext
14549 echo "$as_me:$LINENO: checking for inet_pton" >&5
14550 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6
14551 cat >conftest.
$ac_ext <<_ACEOF
14554 cat confdefs.h
>>conftest.
$ac_ext
14555 cat >>conftest.
$ac_ext <<_ACEOF
14556 /* end confdefs.h. */
14558 #include "confdefs.h"
14559 #include <sys/types.h>
14560 #include <sys/socket.h>
14561 #include <netinet/in.h>
14562 #include <arpa/inet.h>
14567 void* p = inet_pton
14572 rm -f conftest.
$ac_objext
14573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14574 (eval $ac_compile) 2>conftest.er1
14576 grep -v '^ *+' conftest.er1
>conftest.err
14578 cat conftest.err
>&5
14579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14580 (exit $ac_status); } &&
14581 { ac_try
='test -z "$ac_c_werror_flag"
14582 || test ! -s conftest.err'
14583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14584 (eval $ac_try) 2>&5
14586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14587 (exit $ac_status); }; } &&
14588 { ac_try
='test -s conftest.$ac_objext'
14589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14590 (eval $ac_try) 2>&5
14592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14593 (exit $ac_status); }; }; then
14595 cat >>confdefs.h
<<\_ACEOF
14596 #define HAVE_INET_PTON 1
14599 echo "$as_me:$LINENO: result: yes" >&5
14600 echo "${ECHO_T}yes" >&6
14602 echo "$as_me: failed program was:" >&5
14603 sed 's/^/| /' conftest.
$ac_ext >&5
14605 echo "$as_me:$LINENO: result: no" >&5
14606 echo "${ECHO_T}no" >&6
14609 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14611 # On some systems, setgroups is in unistd.h, on others, in grp.h
14612 echo "$as_me:$LINENO: checking for setgroups" >&5
14613 echo $ECHO_N "checking for setgroups... $ECHO_C" >&6
14614 cat >conftest.
$ac_ext <<_ACEOF
14617 cat confdefs.h
>>conftest.
$ac_ext
14618 cat >>conftest.
$ac_ext <<_ACEOF
14619 /* end confdefs.h. */
14621 #include "confdefs.h"
14622 #include <unistd.h>
14630 void* p = setgroups
14635 rm -f conftest.
$ac_objext
14636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14637 (eval $ac_compile) 2>conftest.er1
14639 grep -v '^ *+' conftest.er1
>conftest.err
14641 cat conftest.err
>&5
14642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14643 (exit $ac_status); } &&
14644 { ac_try
='test -z "$ac_c_werror_flag"
14645 || test ! -s conftest.err'
14646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14647 (eval $ac_try) 2>&5
14649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14650 (exit $ac_status); }; } &&
14651 { ac_try
='test -s conftest.$ac_objext'
14652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14653 (eval $ac_try) 2>&5
14655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14656 (exit $ac_status); }; }; then
14658 cat >>confdefs.h
<<\_ACEOF
14659 #define HAVE_SETGROUPS 1
14662 echo "$as_me:$LINENO: result: yes" >&5
14663 echo "${ECHO_T}yes" >&6
14665 echo "$as_me: failed program was:" >&5
14666 sed 's/^/| /' conftest.
$ac_ext >&5
14668 echo "$as_me:$LINENO: result: no" >&5
14669 echo "${ECHO_T}no" >&6
14672 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14674 # check for openpty and forkpty
14677 for ac_func
in openpty
14679 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14680 echo "$as_me:$LINENO: checking for $ac_func" >&5
14681 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14682 if eval "test \"\${$as_ac_var+set}\" = set"; then
14683 echo $ECHO_N "(cached) $ECHO_C" >&6
14685 cat >conftest.
$ac_ext <<_ACEOF
14688 cat confdefs.h
>>conftest.
$ac_ext
14689 cat >>conftest.
$ac_ext <<_ACEOF
14690 /* end confdefs.h. */
14691 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14692 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14693 #define $ac_func innocuous_$ac_func
14695 /* System header to define __stub macros and hopefully few prototypes,
14696 which can conflict with char $ac_func (); below.
14697 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14698 <limits.h> exists even on freestanding compilers. */
14701 # include <limits.h>
14703 # include <assert.h>
14708 /* Override any gcc2 internal prototype to avoid an error. */
14713 /* We use char because int might match the return type of a gcc2
14714 builtin and then its argument prototype would still apply. */
14716 /* The GNU C library defines this for functions which it implements
14717 to always fail with ENOSYS. Some functions are actually named
14718 something starting with __ and the normal name is an alias. */
14719 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14722 char (*f) () = $ac_func;
14731 return f != $ac_func;
14736 rm -f conftest.
$ac_objext conftest
$ac_exeext
14737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14738 (eval $ac_link) 2>conftest.er1
14740 grep -v '^ *+' conftest.er1
>conftest.err
14742 cat conftest.err
>&5
14743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14744 (exit $ac_status); } &&
14745 { ac_try
='test -z "$ac_c_werror_flag"
14746 || test ! -s conftest.err'
14747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14748 (eval $ac_try) 2>&5
14750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14751 (exit $ac_status); }; } &&
14752 { ac_try
='test -s conftest$ac_exeext'
14753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14754 (eval $ac_try) 2>&5
14756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14757 (exit $ac_status); }; }; then
14758 eval "$as_ac_var=yes"
14760 echo "$as_me: failed program was:" >&5
14761 sed 's/^/| /' conftest.
$ac_ext >&5
14763 eval "$as_ac_var=no"
14765 rm -f conftest.err conftest.
$ac_objext \
14766 conftest
$ac_exeext conftest.
$ac_ext
14768 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14769 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14770 if test `eval echo '${'$as_ac_var'}'` = yes; then
14771 cat >>confdefs.h
<<_ACEOF
14772 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14776 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
14777 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
14778 if test "${ac_cv_lib_util_openpty+set}" = set; then
14779 echo $ECHO_N "(cached) $ECHO_C" >&6
14781 ac_check_lib_save_LIBS
=$LIBS
14782 LIBS
="-lutil $LIBS"
14783 cat >conftest.
$ac_ext <<_ACEOF
14786 cat confdefs.h
>>conftest.
$ac_ext
14787 cat >>conftest.
$ac_ext <<_ACEOF
14788 /* end confdefs.h. */
14790 /* Override any gcc2 internal prototype to avoid an error. */
14794 /* We use char because int might match the return type of a gcc2
14795 builtin and then its argument prototype would still apply. */
14805 rm -f conftest.
$ac_objext conftest
$ac_exeext
14806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14807 (eval $ac_link) 2>conftest.er1
14809 grep -v '^ *+' conftest.er1
>conftest.err
14811 cat conftest.err
>&5
14812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14813 (exit $ac_status); } &&
14814 { ac_try
='test -z "$ac_c_werror_flag"
14815 || test ! -s conftest.err'
14816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14817 (eval $ac_try) 2>&5
14819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14820 (exit $ac_status); }; } &&
14821 { ac_try
='test -s conftest$ac_exeext'
14822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14823 (eval $ac_try) 2>&5
14825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14826 (exit $ac_status); }; }; then
14827 ac_cv_lib_util_openpty
=yes
14829 echo "$as_me: failed program was:" >&5
14830 sed 's/^/| /' conftest.
$ac_ext >&5
14832 ac_cv_lib_util_openpty
=no
14834 rm -f conftest.err conftest.
$ac_objext \
14835 conftest
$ac_exeext conftest.
$ac_ext
14836 LIBS
=$ac_check_lib_save_LIBS
14838 echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
14839 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
14840 if test $ac_cv_lib_util_openpty = yes; then
14841 cat >>confdefs.h
<<\_ACEOF
14842 #define HAVE_OPENPTY 1
14844 LIBS
="$LIBS -lutil"
14846 echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
14847 echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6
14848 if test "${ac_cv_lib_bsd_openpty+set}" = set; then
14849 echo $ECHO_N "(cached) $ECHO_C" >&6
14851 ac_check_lib_save_LIBS
=$LIBS
14853 cat >conftest.
$ac_ext <<_ACEOF
14856 cat confdefs.h
>>conftest.
$ac_ext
14857 cat >>conftest.
$ac_ext <<_ACEOF
14858 /* end confdefs.h. */
14860 /* Override any gcc2 internal prototype to avoid an error. */
14864 /* We use char because int might match the return type of a gcc2
14865 builtin and then its argument prototype would still apply. */
14875 rm -f conftest.
$ac_objext conftest
$ac_exeext
14876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14877 (eval $ac_link) 2>conftest.er1
14879 grep -v '^ *+' conftest.er1
>conftest.err
14881 cat conftest.err
>&5
14882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14883 (exit $ac_status); } &&
14884 { ac_try
='test -z "$ac_c_werror_flag"
14885 || test ! -s conftest.err'
14886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14887 (eval $ac_try) 2>&5
14889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14890 (exit $ac_status); }; } &&
14891 { ac_try
='test -s conftest$ac_exeext'
14892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14893 (eval $ac_try) 2>&5
14895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14896 (exit $ac_status); }; }; then
14897 ac_cv_lib_bsd_openpty
=yes
14899 echo "$as_me: failed program was:" >&5
14900 sed 's/^/| /' conftest.
$ac_ext >&5
14902 ac_cv_lib_bsd_openpty
=no
14904 rm -f conftest.err conftest.
$ac_objext \
14905 conftest
$ac_exeext conftest.
$ac_ext
14906 LIBS
=$ac_check_lib_save_LIBS
14908 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
14909 echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6
14910 if test $ac_cv_lib_bsd_openpty = yes; then
14911 cat >>confdefs.h
<<\_ACEOF
14912 #define HAVE_OPENPTY 1
14925 for ac_func
in forkpty
14927 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14928 echo "$as_me:$LINENO: checking for $ac_func" >&5
14929 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14930 if eval "test \"\${$as_ac_var+set}\" = set"; then
14931 echo $ECHO_N "(cached) $ECHO_C" >&6
14933 cat >conftest.
$ac_ext <<_ACEOF
14936 cat confdefs.h
>>conftest.
$ac_ext
14937 cat >>conftest.
$ac_ext <<_ACEOF
14938 /* end confdefs.h. */
14939 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14940 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14941 #define $ac_func innocuous_$ac_func
14943 /* System header to define __stub macros and hopefully few prototypes,
14944 which can conflict with char $ac_func (); below.
14945 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14946 <limits.h> exists even on freestanding compilers. */
14949 # include <limits.h>
14951 # include <assert.h>
14956 /* Override any gcc2 internal prototype to avoid an error. */
14961 /* We use char because int might match the return type of a gcc2
14962 builtin and then its argument prototype would still apply. */
14964 /* The GNU C library defines this for functions which it implements
14965 to always fail with ENOSYS. Some functions are actually named
14966 something starting with __ and the normal name is an alias. */
14967 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14970 char (*f) () = $ac_func;
14979 return f != $ac_func;
14984 rm -f conftest.
$ac_objext conftest
$ac_exeext
14985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14986 (eval $ac_link) 2>conftest.er1
14988 grep -v '^ *+' conftest.er1
>conftest.err
14990 cat conftest.err
>&5
14991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14992 (exit $ac_status); } &&
14993 { ac_try
='test -z "$ac_c_werror_flag"
14994 || test ! -s conftest.err'
14995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14996 (eval $ac_try) 2>&5
14998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14999 (exit $ac_status); }; } &&
15000 { ac_try
='test -s conftest$ac_exeext'
15001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15002 (eval $ac_try) 2>&5
15004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15005 (exit $ac_status); }; }; then
15006 eval "$as_ac_var=yes"
15008 echo "$as_me: failed program was:" >&5
15009 sed 's/^/| /' conftest.
$ac_ext >&5
15011 eval "$as_ac_var=no"
15013 rm -f conftest.err conftest.
$ac_objext \
15014 conftest
$ac_exeext conftest.
$ac_ext
15016 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15017 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15018 if test `eval echo '${'$as_ac_var'}'` = yes; then
15019 cat >>confdefs.h
<<_ACEOF
15020 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15024 echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
15025 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6
15026 if test "${ac_cv_lib_util_forkpty+set}" = set; then
15027 echo $ECHO_N "(cached) $ECHO_C" >&6
15029 ac_check_lib_save_LIBS
=$LIBS
15030 LIBS
="-lutil $LIBS"
15031 cat >conftest.
$ac_ext <<_ACEOF
15034 cat confdefs.h
>>conftest.
$ac_ext
15035 cat >>conftest.
$ac_ext <<_ACEOF
15036 /* end confdefs.h. */
15038 /* Override any gcc2 internal prototype to avoid an error. */
15042 /* We use char because int might match the return type of a gcc2
15043 builtin and then its argument prototype would still apply. */
15053 rm -f conftest.
$ac_objext conftest
$ac_exeext
15054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15055 (eval $ac_link) 2>conftest.er1
15057 grep -v '^ *+' conftest.er1
>conftest.err
15059 cat conftest.err
>&5
15060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15061 (exit $ac_status); } &&
15062 { ac_try
='test -z "$ac_c_werror_flag"
15063 || test ! -s conftest.err'
15064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15065 (eval $ac_try) 2>&5
15067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15068 (exit $ac_status); }; } &&
15069 { ac_try
='test -s conftest$ac_exeext'
15070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15071 (eval $ac_try) 2>&5
15073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15074 (exit $ac_status); }; }; then
15075 ac_cv_lib_util_forkpty
=yes
15077 echo "$as_me: failed program was:" >&5
15078 sed 's/^/| /' conftest.
$ac_ext >&5
15080 ac_cv_lib_util_forkpty
=no
15082 rm -f conftest.err conftest.
$ac_objext \
15083 conftest
$ac_exeext conftest.
$ac_ext
15084 LIBS
=$ac_check_lib_save_LIBS
15086 echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
15087 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6
15088 if test $ac_cv_lib_util_forkpty = yes; then
15089 cat >>confdefs.h
<<\_ACEOF
15090 #define HAVE_FORKPTY 1
15092 LIBS
="$LIBS -lutil"
15094 echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
15095 echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6
15096 if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
15097 echo $ECHO_N "(cached) $ECHO_C" >&6
15099 ac_check_lib_save_LIBS
=$LIBS
15101 cat >conftest.
$ac_ext <<_ACEOF
15104 cat confdefs.h
>>conftest.
$ac_ext
15105 cat >>conftest.
$ac_ext <<_ACEOF
15106 /* end confdefs.h. */
15108 /* Override any gcc2 internal prototype to avoid an error. */
15112 /* We use char because int might match the return type of a gcc2
15113 builtin and then its argument prototype would still apply. */
15123 rm -f conftest.
$ac_objext conftest
$ac_exeext
15124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15125 (eval $ac_link) 2>conftest.er1
15127 grep -v '^ *+' conftest.er1
>conftest.err
15129 cat conftest.err
>&5
15130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15131 (exit $ac_status); } &&
15132 { ac_try
='test -z "$ac_c_werror_flag"
15133 || test ! -s conftest.err'
15134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15135 (eval $ac_try) 2>&5
15137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15138 (exit $ac_status); }; } &&
15139 { ac_try
='test -s conftest$ac_exeext'
15140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15141 (eval $ac_try) 2>&5
15143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15144 (exit $ac_status); }; }; then
15145 ac_cv_lib_bsd_forkpty
=yes
15147 echo "$as_me: failed program was:" >&5
15148 sed 's/^/| /' conftest.
$ac_ext >&5
15150 ac_cv_lib_bsd_forkpty
=no
15152 rm -f conftest.err conftest.
$ac_objext \
15153 conftest
$ac_exeext conftest.
$ac_ext
15154 LIBS
=$ac_check_lib_save_LIBS
15156 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
15157 echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6
15158 if test $ac_cv_lib_bsd_forkpty = yes; then
15159 cat >>confdefs.h
<<\_ACEOF
15160 #define HAVE_FORKPTY 1
15173 # check for long file support functions
15180 for ac_func
in fseek64 fseeko fstatvfs ftell64 ftello statvfs
15182 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15183 echo "$as_me:$LINENO: checking for $ac_func" >&5
15184 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15185 if eval "test \"\${$as_ac_var+set}\" = set"; then
15186 echo $ECHO_N "(cached) $ECHO_C" >&6
15188 cat >conftest.
$ac_ext <<_ACEOF
15191 cat confdefs.h
>>conftest.
$ac_ext
15192 cat >>conftest.
$ac_ext <<_ACEOF
15193 /* end confdefs.h. */
15194 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15195 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15196 #define $ac_func innocuous_$ac_func
15198 /* System header to define __stub macros and hopefully few prototypes,
15199 which can conflict with char $ac_func (); below.
15200 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15201 <limits.h> exists even on freestanding compilers. */
15204 # include <limits.h>
15206 # include <assert.h>
15211 /* Override any gcc2 internal prototype to avoid an error. */
15216 /* We use char because int might match the return type of a gcc2
15217 builtin and then its argument prototype would still apply. */
15219 /* The GNU C library defines this for functions which it implements
15220 to always fail with ENOSYS. Some functions are actually named
15221 something starting with __ and the normal name is an alias. */
15222 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15225 char (*f) () = $ac_func;
15234 return f != $ac_func;
15239 rm -f conftest.
$ac_objext conftest
$ac_exeext
15240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15241 (eval $ac_link) 2>conftest.er1
15243 grep -v '^ *+' conftest.er1
>conftest.err
15245 cat conftest.err
>&5
15246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15247 (exit $ac_status); } &&
15248 { ac_try
='test -z "$ac_c_werror_flag"
15249 || test ! -s conftest.err'
15250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15251 (eval $ac_try) 2>&5
15253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15254 (exit $ac_status); }; } &&
15255 { ac_try
='test -s conftest$ac_exeext'
15256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15257 (eval $ac_try) 2>&5
15259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15260 (exit $ac_status); }; }; then
15261 eval "$as_ac_var=yes"
15263 echo "$as_me: failed program was:" >&5
15264 sed 's/^/| /' conftest.
$ac_ext >&5
15266 eval "$as_ac_var=no"
15268 rm -f conftest.err conftest.
$ac_objext \
15269 conftest
$ac_exeext conftest.
$ac_ext
15271 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15272 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15273 if test `eval echo '${'$as_ac_var'}'` = yes; then
15274 cat >>confdefs.h
<<_ACEOF
15275 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15287 for ac_func
in dup2 getcwd strdup strerror memmove
15289 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15290 echo "$as_me:$LINENO: checking for $ac_func" >&5
15291 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15292 if eval "test \"\${$as_ac_var+set}\" = set"; then
15293 echo $ECHO_N "(cached) $ECHO_C" >&6
15295 cat >conftest.
$ac_ext <<_ACEOF
15298 cat confdefs.h
>>conftest.
$ac_ext
15299 cat >>conftest.
$ac_ext <<_ACEOF
15300 /* end confdefs.h. */
15301 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15302 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15303 #define $ac_func innocuous_$ac_func
15305 /* System header to define __stub macros and hopefully few prototypes,
15306 which can conflict with char $ac_func (); below.
15307 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15308 <limits.h> exists even on freestanding compilers. */
15311 # include <limits.h>
15313 # include <assert.h>
15318 /* Override any gcc2 internal prototype to avoid an error. */
15323 /* We use char because int might match the return type of a gcc2
15324 builtin and then its argument prototype would still apply. */
15326 /* The GNU C library defines this for functions which it implements
15327 to always fail with ENOSYS. Some functions are actually named
15328 something starting with __ and the normal name is an alias. */
15329 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15332 char (*f) () = $ac_func;
15341 return f != $ac_func;
15346 rm -f conftest.
$ac_objext conftest
$ac_exeext
15347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15348 (eval $ac_link) 2>conftest.er1
15350 grep -v '^ *+' conftest.er1
>conftest.err
15352 cat conftest.err
>&5
15353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15354 (exit $ac_status); } &&
15355 { ac_try
='test -z "$ac_c_werror_flag"
15356 || test ! -s conftest.err'
15357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15358 (eval $ac_try) 2>&5
15360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15361 (exit $ac_status); }; } &&
15362 { ac_try
='test -s conftest$ac_exeext'
15363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15364 (eval $ac_try) 2>&5
15366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15367 (exit $ac_status); }; }; then
15368 eval "$as_ac_var=yes"
15370 echo "$as_me: failed program was:" >&5
15371 sed 's/^/| /' conftest.
$ac_ext >&5
15373 eval "$as_ac_var=no"
15375 rm -f conftest.err conftest.
$ac_objext \
15376 conftest
$ac_exeext conftest.
$ac_ext
15378 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15379 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15380 if test `eval echo '${'$as_ac_var'}'` = yes; then
15381 cat >>confdefs.h
<<_ACEOF
15382 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15387 "$ac_func.$ac_objext" | \
15388 *" $ac_func.$ac_objext" | \
15389 "$ac_func.$ac_objext "* | \
15390 *" $ac_func.$ac_objext "* ) ;;
15391 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext" ;;
15399 for ac_func
in getpgrp
15401 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15402 echo "$as_me:$LINENO: checking for $ac_func" >&5
15403 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15404 if eval "test \"\${$as_ac_var+set}\" = set"; then
15405 echo $ECHO_N "(cached) $ECHO_C" >&6
15407 cat >conftest.
$ac_ext <<_ACEOF
15410 cat confdefs.h
>>conftest.
$ac_ext
15411 cat >>conftest.
$ac_ext <<_ACEOF
15412 /* end confdefs.h. */
15413 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15414 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15415 #define $ac_func innocuous_$ac_func
15417 /* System header to define __stub macros and hopefully few prototypes,
15418 which can conflict with char $ac_func (); below.
15419 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15420 <limits.h> exists even on freestanding compilers. */
15423 # include <limits.h>
15425 # include <assert.h>
15430 /* Override any gcc2 internal prototype to avoid an error. */
15435 /* We use char because int might match the return type of a gcc2
15436 builtin and then its argument prototype would still apply. */
15438 /* The GNU C library defines this for functions which it implements
15439 to always fail with ENOSYS. Some functions are actually named
15440 something starting with __ and the normal name is an alias. */
15441 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15444 char (*f) () = $ac_func;
15453 return f != $ac_func;
15458 rm -f conftest.
$ac_objext conftest
$ac_exeext
15459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15460 (eval $ac_link) 2>conftest.er1
15462 grep -v '^ *+' conftest.er1
>conftest.err
15464 cat conftest.err
>&5
15465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15466 (exit $ac_status); } &&
15467 { ac_try
='test -z "$ac_c_werror_flag"
15468 || test ! -s conftest.err'
15469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15470 (eval $ac_try) 2>&5
15472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15473 (exit $ac_status); }; } &&
15474 { ac_try
='test -s conftest$ac_exeext'
15475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15476 (eval $ac_try) 2>&5
15478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15479 (exit $ac_status); }; }; then
15480 eval "$as_ac_var=yes"
15482 echo "$as_me: failed program was:" >&5
15483 sed 's/^/| /' conftest.
$ac_ext >&5
15485 eval "$as_ac_var=no"
15487 rm -f conftest.err conftest.
$ac_objext \
15488 conftest
$ac_exeext conftest.
$ac_ext
15490 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15491 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15492 if test `eval echo '${'$as_ac_var'}'` = yes; then
15493 cat >>confdefs.h
<<_ACEOF
15494 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15496 cat >conftest.
$ac_ext <<_ACEOF
15499 cat confdefs.h
>>conftest.
$ac_ext
15500 cat >>conftest.
$ac_ext <<_ACEOF
15501 /* end confdefs.h. */
15502 #include <unistd.h>
15511 rm -f conftest.
$ac_objext
15512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15513 (eval $ac_compile) 2>conftest.er1
15515 grep -v '^ *+' conftest.er1
>conftest.err
15517 cat conftest.err
>&5
15518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15519 (exit $ac_status); } &&
15520 { ac_try
='test -z "$ac_c_werror_flag"
15521 || test ! -s conftest.err'
15522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15523 (eval $ac_try) 2>&5
15525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15526 (exit $ac_status); }; } &&
15527 { ac_try
='test -s conftest.$ac_objext'
15528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15529 (eval $ac_try) 2>&5
15531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15532 (exit $ac_status); }; }; then
15534 cat >>confdefs.h
<<\_ACEOF
15535 #define GETPGRP_HAVE_ARG 1
15540 echo "$as_me: failed program was:" >&5
15541 sed 's/^/| /' conftest.
$ac_ext >&5
15544 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15550 for ac_func
in setpgrp
15552 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15553 echo "$as_me:$LINENO: checking for $ac_func" >&5
15554 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15555 if eval "test \"\${$as_ac_var+set}\" = set"; then
15556 echo $ECHO_N "(cached) $ECHO_C" >&6
15558 cat >conftest.
$ac_ext <<_ACEOF
15561 cat confdefs.h
>>conftest.
$ac_ext
15562 cat >>conftest.
$ac_ext <<_ACEOF
15563 /* end confdefs.h. */
15564 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15565 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15566 #define $ac_func innocuous_$ac_func
15568 /* System header to define __stub macros and hopefully few prototypes,
15569 which can conflict with char $ac_func (); below.
15570 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15571 <limits.h> exists even on freestanding compilers. */
15574 # include <limits.h>
15576 # include <assert.h>
15581 /* Override any gcc2 internal prototype to avoid an error. */
15586 /* We use char because int might match the return type of a gcc2
15587 builtin and then its argument prototype would still apply. */
15589 /* The GNU C library defines this for functions which it implements
15590 to always fail with ENOSYS. Some functions are actually named
15591 something starting with __ and the normal name is an alias. */
15592 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15595 char (*f) () = $ac_func;
15604 return f != $ac_func;
15609 rm -f conftest.
$ac_objext conftest
$ac_exeext
15610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15611 (eval $ac_link) 2>conftest.er1
15613 grep -v '^ *+' conftest.er1
>conftest.err
15615 cat conftest.err
>&5
15616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15617 (exit $ac_status); } &&
15618 { ac_try
='test -z "$ac_c_werror_flag"
15619 || test ! -s conftest.err'
15620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15621 (eval $ac_try) 2>&5
15623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15624 (exit $ac_status); }; } &&
15625 { ac_try
='test -s conftest$ac_exeext'
15626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15627 (eval $ac_try) 2>&5
15629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15630 (exit $ac_status); }; }; then
15631 eval "$as_ac_var=yes"
15633 echo "$as_me: failed program was:" >&5
15634 sed 's/^/| /' conftest.
$ac_ext >&5
15636 eval "$as_ac_var=no"
15638 rm -f conftest.err conftest.
$ac_objext \
15639 conftest
$ac_exeext conftest.
$ac_ext
15641 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15642 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15643 if test `eval echo '${'$as_ac_var'}'` = yes; then
15644 cat >>confdefs.h
<<_ACEOF
15645 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15647 cat >conftest.
$ac_ext <<_ACEOF
15650 cat confdefs.h
>>conftest.
$ac_ext
15651 cat >>conftest.
$ac_ext <<_ACEOF
15652 /* end confdefs.h. */
15653 #include <unistd.h>
15662 rm -f conftest.
$ac_objext
15663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15664 (eval $ac_compile) 2>conftest.er1
15666 grep -v '^ *+' conftest.er1
>conftest.err
15668 cat conftest.err
>&5
15669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15670 (exit $ac_status); } &&
15671 { ac_try
='test -z "$ac_c_werror_flag"
15672 || test ! -s conftest.err'
15673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15674 (eval $ac_try) 2>&5
15676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15677 (exit $ac_status); }; } &&
15678 { ac_try
='test -s conftest.$ac_objext'
15679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15680 (eval $ac_try) 2>&5
15682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15683 (exit $ac_status); }; }; then
15685 cat >>confdefs.h
<<\_ACEOF
15686 #define SETPGRP_HAVE_ARG 1
15691 echo "$as_me: failed program was:" >&5
15692 sed 's/^/| /' conftest.
$ac_ext >&5
15695 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15701 for ac_func
in gettimeofday
15703 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15704 echo "$as_me:$LINENO: checking for $ac_func" >&5
15705 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15706 if eval "test \"\${$as_ac_var+set}\" = set"; then
15707 echo $ECHO_N "(cached) $ECHO_C" >&6
15709 cat >conftest.
$ac_ext <<_ACEOF
15712 cat confdefs.h
>>conftest.
$ac_ext
15713 cat >>conftest.
$ac_ext <<_ACEOF
15714 /* end confdefs.h. */
15715 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15716 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15717 #define $ac_func innocuous_$ac_func
15719 /* System header to define __stub macros and hopefully few prototypes,
15720 which can conflict with char $ac_func (); below.
15721 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15722 <limits.h> exists even on freestanding compilers. */
15725 # include <limits.h>
15727 # include <assert.h>
15732 /* Override any gcc2 internal prototype to avoid an error. */
15737 /* We use char because int might match the return type of a gcc2
15738 builtin and then its argument prototype would still apply. */
15740 /* The GNU C library defines this for functions which it implements
15741 to always fail with ENOSYS. Some functions are actually named
15742 something starting with __ and the normal name is an alias. */
15743 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15746 char (*f) () = $ac_func;
15755 return f != $ac_func;
15760 rm -f conftest.
$ac_objext conftest
$ac_exeext
15761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15762 (eval $ac_link) 2>conftest.er1
15764 grep -v '^ *+' conftest.er1
>conftest.err
15766 cat conftest.err
>&5
15767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15768 (exit $ac_status); } &&
15769 { ac_try
='test -z "$ac_c_werror_flag"
15770 || test ! -s conftest.err'
15771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15772 (eval $ac_try) 2>&5
15774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15775 (exit $ac_status); }; } &&
15776 { ac_try
='test -s conftest$ac_exeext'
15777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15778 (eval $ac_try) 2>&5
15780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15781 (exit $ac_status); }; }; then
15782 eval "$as_ac_var=yes"
15784 echo "$as_me: failed program was:" >&5
15785 sed 's/^/| /' conftest.
$ac_ext >&5
15787 eval "$as_ac_var=no"
15789 rm -f conftest.err conftest.
$ac_objext \
15790 conftest
$ac_exeext conftest.
$ac_ext
15792 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15793 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15794 if test `eval echo '${'$as_ac_var'}'` = yes; then
15795 cat >>confdefs.h
<<_ACEOF
15796 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15798 cat >conftest.
$ac_ext <<_ACEOF
15801 cat confdefs.h
>>conftest.
$ac_ext
15802 cat >>conftest.
$ac_ext <<_ACEOF
15803 /* end confdefs.h. */
15804 #include <sys/time.h>
15808 gettimeofday((struct timeval*)0,(struct timezone*)0);
15813 rm -f conftest.
$ac_objext
15814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15815 (eval $ac_compile) 2>conftest.er1
15817 grep -v '^ *+' conftest.er1
>conftest.err
15819 cat conftest.err
>&5
15820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15821 (exit $ac_status); } &&
15822 { ac_try
='test -z "$ac_c_werror_flag"
15823 || test ! -s conftest.err'
15824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15825 (eval $ac_try) 2>&5
15827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15828 (exit $ac_status); }; } &&
15829 { ac_try
='test -s conftest.$ac_objext'
15830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15831 (eval $ac_try) 2>&5
15833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15834 (exit $ac_status); }; }; then
15837 echo "$as_me: failed program was:" >&5
15838 sed 's/^/| /' conftest.
$ac_ext >&5
15841 cat >>confdefs.h
<<\_ACEOF
15842 #define GETTIMEOFDAY_NO_TZ 1
15847 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15853 echo "$as_me:$LINENO: checking for major" >&5
15854 echo $ECHO_N "checking for major... $ECHO_C" >&6
15855 cat >conftest.
$ac_ext <<_ACEOF
15858 cat confdefs.h
>>conftest.
$ac_ext
15859 cat >>conftest.
$ac_ext <<_ACEOF
15860 /* end confdefs.h. */
15862 #if defined(MAJOR_IN_MKDEV)
15863 #include <sys/mkdev.h>
15864 #elif defined(MAJOR_IN_SYSMACROS)
15865 #include <sys/sysmacros.h>
15867 #include <sys/types.h>
15874 makedev(major(0),minor(0));
15880 rm -f conftest.
$ac_objext conftest
$ac_exeext
15881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15882 (eval $ac_link) 2>conftest.er1
15884 grep -v '^ *+' conftest.er1
>conftest.err
15886 cat conftest.err
>&5
15887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15888 (exit $ac_status); } &&
15889 { ac_try
='test -z "$ac_c_werror_flag"
15890 || test ! -s conftest.err'
15891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15892 (eval $ac_try) 2>&5
15894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15895 (exit $ac_status); }; } &&
15896 { ac_try
='test -s conftest$ac_exeext'
15897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15898 (eval $ac_try) 2>&5
15900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15901 (exit $ac_status); }; }; then
15904 cat >>confdefs.h
<<\_ACEOF
15905 #define HAVE_DEVICE_MACROS 1
15908 echo "$as_me:$LINENO: result: yes" >&5
15909 echo "${ECHO_T}yes" >&6
15912 echo "$as_me: failed program was:" >&5
15913 sed 's/^/| /' conftest.
$ac_ext >&5
15916 echo "$as_me:$LINENO: result: no" >&5
15917 echo "${ECHO_T}no" >&6
15920 rm -f conftest.err conftest.
$ac_objext \
15921 conftest
$ac_exeext conftest.
$ac_ext
15923 # On OSF/1 V5.1, getaddrinfo is available, but a define
15924 # for [no]getaddrinfo in netdb.h.
15925 echo "$as_me:$LINENO: checking for getaddrinfo" >&5
15926 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6
15927 cat >conftest.
$ac_ext <<_ACEOF
15930 cat confdefs.h
>>conftest.
$ac_ext
15931 cat >>conftest.
$ac_ext <<_ACEOF
15932 /* end confdefs.h. */
15934 #include <sys/types.h>
15935 #include <sys/socket.h>
15943 getaddrinfo(NULL, NULL, NULL, NULL);
15949 rm -f conftest.
$ac_objext conftest
$ac_exeext
15950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15951 (eval $ac_link) 2>conftest.er1
15953 grep -v '^ *+' conftest.er1
>conftest.err
15955 cat conftest.err
>&5
15956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15957 (exit $ac_status); } &&
15958 { ac_try
='test -z "$ac_c_werror_flag"
15959 || test ! -s conftest.err'
15960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15961 (eval $ac_try) 2>&5
15963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15964 (exit $ac_status); }; } &&
15965 { ac_try
='test -s conftest$ac_exeext'
15966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15967 (eval $ac_try) 2>&5
15969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15970 (exit $ac_status); }; }; then
15972 echo "$as_me:$LINENO: result: yes" >&5
15973 echo "${ECHO_T}yes" >&6
15974 echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
15975 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6
15976 if test "$cross_compiling" = yes; then
15977 echo "$as_me:$LINENO: result: buggy" >&5
15978 echo "${ECHO_T}buggy" >&6
15979 buggygetaddrinfo
=yes
15981 cat >conftest.
$ac_ext <<_ACEOF
15984 cat confdefs.h
>>conftest.
$ac_ext
15985 cat >>conftest.
$ac_ext <<_ACEOF
15986 /* end confdefs.h. */
15988 #include <sys/types.h>
15990 #include <string.h>
15991 #include <sys/socket.h>
15992 #include <netinet/in.h>
15996 int passive, gaierr, inet4 = 0, inet6 = 0;
15997 struct addrinfo hints, *ai, *aitop;
15998 char straddr[INET6_ADDRSTRLEN], strport[16];
16000 for (passive = 0; passive <= 1; passive++) {
16001 memset(&hints, 0, sizeof(hints));
16002 hints.ai_family = AF_UNSPEC;
16003 hints.ai_flags = passive ? AI_PASSIVE : 0;
16004 hints.ai_socktype = SOCK_STREAM;
16005 hints.ai_protocol = IPPROTO_TCP;
16006 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
16007 (void)gai_strerror(gaierr);
16010 for (ai = aitop; ai; ai = ai->ai_next) {
16011 if (ai->ai_addr == NULL ||
16012 ai->ai_addrlen == 0 ||
16013 getnameinfo(ai->ai_addr, ai->ai_addrlen,
16014 straddr, sizeof(straddr), strport, sizeof(strport),
16015 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
16018 switch (ai->ai_family) {
16020 if (strcmp(strport, "54321") != 0) {
16024 if (strcmp(straddr, "0.0.0.0") != 0) {
16028 if (strcmp(straddr, "127.0.0.1") != 0) {
16035 if (strcmp(strport, "54321") != 0) {
16039 if (strcmp(straddr, "::") != 0) {
16043 if (strcmp(straddr, "::1") != 0) {
16053 /* another family support? */
16059 if (!(inet4 == 0 || inet4 == 2))
16061 if (!(inet6 == 0 || inet6 == 2))
16065 freeaddrinfo(aitop);
16070 freeaddrinfo(aitop);
16075 rm -f conftest
$ac_exeext
16076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16077 (eval $ac_link) 2>&5
16079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16080 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
16081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16082 (eval $ac_try) 2>&5
16084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16085 (exit $ac_status); }; }; then
16086 echo "$as_me:$LINENO: result: good" >&5
16087 echo "${ECHO_T}good" >&6
16088 buggygetaddrinfo
=no
16090 echo "$as_me: program exited with status $ac_status" >&5
16091 echo "$as_me: failed program was:" >&5
16092 sed 's/^/| /' conftest.
$ac_ext >&5
16094 ( exit $ac_status )
16095 echo "$as_me:$LINENO: result: buggy" >&5
16096 echo "${ECHO_T}buggy" >&6
16097 buggygetaddrinfo
=yes
16099 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
16102 echo "$as_me: failed program was:" >&5
16103 sed 's/^/| /' conftest.
$ac_ext >&5
16106 echo "$as_me:$LINENO: result: no" >&5
16107 echo "${ECHO_T}no" >&6
16108 buggygetaddrinfo
=yes
16111 rm -f conftest.err conftest.
$ac_objext \
16112 conftest
$ac_exeext conftest.
$ac_ext
16114 if test "$buggygetaddrinfo" = "yes"; then
16115 if test "$ipv6" = "yes"; then
16116 echo 'Fatal: You must get working getaddrinfo() function.'
16117 echo ' or you can specify "--disable-ipv6"'.
16122 cat >>confdefs.h
<<\_ACEOF
16123 #define HAVE_GETADDRINFO 1
16128 for ac_func
in getnameinfo
16130 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16131 echo "$as_me:$LINENO: checking for $ac_func" >&5
16132 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16133 if eval "test \"\${$as_ac_var+set}\" = set"; then
16134 echo $ECHO_N "(cached) $ECHO_C" >&6
16136 cat >conftest.
$ac_ext <<_ACEOF
16139 cat confdefs.h
>>conftest.
$ac_ext
16140 cat >>conftest.
$ac_ext <<_ACEOF
16141 /* end confdefs.h. */
16142 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16143 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16144 #define $ac_func innocuous_$ac_func
16146 /* System header to define __stub macros and hopefully few prototypes,
16147 which can conflict with char $ac_func (); below.
16148 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16149 <limits.h> exists even on freestanding compilers. */
16152 # include <limits.h>
16154 # include <assert.h>
16159 /* Override any gcc2 internal prototype to avoid an error. */
16164 /* We use char because int might match the return type of a gcc2
16165 builtin and then its argument prototype would still apply. */
16167 /* The GNU C library defines this for functions which it implements
16168 to always fail with ENOSYS. Some functions are actually named
16169 something starting with __ and the normal name is an alias. */
16170 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16173 char (*f) () = $ac_func;
16182 return f != $ac_func;
16187 rm -f conftest.
$ac_objext conftest
$ac_exeext
16188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16189 (eval $ac_link) 2>conftest.er1
16191 grep -v '^ *+' conftest.er1
>conftest.err
16193 cat conftest.err
>&5
16194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16195 (exit $ac_status); } &&
16196 { ac_try
='test -z "$ac_c_werror_flag"
16197 || test ! -s conftest.err'
16198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16199 (eval $ac_try) 2>&5
16201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16202 (exit $ac_status); }; } &&
16203 { ac_try
='test -s conftest$ac_exeext'
16204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16205 (eval $ac_try) 2>&5
16207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16208 (exit $ac_status); }; }; then
16209 eval "$as_ac_var=yes"
16211 echo "$as_me: failed program was:" >&5
16212 sed 's/^/| /' conftest.
$ac_ext >&5
16214 eval "$as_ac_var=no"
16216 rm -f conftest.err conftest.
$ac_objext \
16217 conftest
$ac_exeext conftest.
$ac_ext
16219 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16220 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16221 if test `eval echo '${'$as_ac_var'}'` = yes; then
16222 cat >>confdefs.h
<<_ACEOF
16223 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16230 # checks for structures
16231 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
16232 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
16233 if test "${ac_cv_header_time+set}" = set; then
16234 echo $ECHO_N "(cached) $ECHO_C" >&6
16236 cat >conftest.
$ac_ext <<_ACEOF
16239 cat confdefs.h
>>conftest.
$ac_ext
16240 cat >>conftest.
$ac_ext <<_ACEOF
16241 /* end confdefs.h. */
16242 #include <sys/types.h>
16243 #include <sys/time.h>
16249 if ((struct tm *) 0)
16255 rm -f conftest.
$ac_objext
16256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16257 (eval $ac_compile) 2>conftest.er1
16259 grep -v '^ *+' conftest.er1
>conftest.err
16261 cat conftest.err
>&5
16262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16263 (exit $ac_status); } &&
16264 { ac_try
='test -z "$ac_c_werror_flag"
16265 || test ! -s conftest.err'
16266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16267 (eval $ac_try) 2>&5
16269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16270 (exit $ac_status); }; } &&
16271 { ac_try
='test -s conftest.$ac_objext'
16272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16273 (eval $ac_try) 2>&5
16275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16276 (exit $ac_status); }; }; then
16277 ac_cv_header_time
=yes
16279 echo "$as_me: failed program was:" >&5
16280 sed 's/^/| /' conftest.
$ac_ext >&5
16282 ac_cv_header_time
=no
16284 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16286 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
16287 echo "${ECHO_T}$ac_cv_header_time" >&6
16288 if test $ac_cv_header_time = yes; then
16290 cat >>confdefs.h
<<\_ACEOF
16291 #define TIME_WITH_SYS_TIME 1
16296 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16297 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
16298 if test "${ac_cv_struct_tm+set}" = set; then
16299 echo $ECHO_N "(cached) $ECHO_C" >&6
16301 cat >conftest.
$ac_ext <<_ACEOF
16304 cat confdefs.h
>>conftest.
$ac_ext
16305 cat >>conftest.
$ac_ext <<_ACEOF
16306 /* end confdefs.h. */
16307 #include <sys/types.h>
16313 struct tm *tp; tp->tm_sec;
16318 rm -f conftest.
$ac_objext
16319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16320 (eval $ac_compile) 2>conftest.er1
16322 grep -v '^ *+' conftest.er1
>conftest.err
16324 cat conftest.err
>&5
16325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16326 (exit $ac_status); } &&
16327 { ac_try
='test -z "$ac_c_werror_flag"
16328 || test ! -s conftest.err'
16329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16330 (eval $ac_try) 2>&5
16332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16333 (exit $ac_status); }; } &&
16334 { ac_try
='test -s conftest.$ac_objext'
16335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16336 (eval $ac_try) 2>&5
16338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16339 (exit $ac_status); }; }; then
16340 ac_cv_struct_tm
=time.h
16342 echo "$as_me: failed program was:" >&5
16343 sed 's/^/| /' conftest.
$ac_ext >&5
16345 ac_cv_struct_tm
=sys
/time.h
16347 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16349 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16350 echo "${ECHO_T}$ac_cv_struct_tm" >&6
16351 if test $ac_cv_struct_tm = sys
/time.h
; then
16353 cat >>confdefs.h
<<\_ACEOF
16354 #define TM_IN_SYS_TIME 1
16359 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
16360 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
16361 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
16362 echo $ECHO_N "(cached) $ECHO_C" >&6
16364 cat >conftest.
$ac_ext <<_ACEOF
16367 cat confdefs.h
>>conftest.
$ac_ext
16368 cat >>conftest.
$ac_ext <<_ACEOF
16369 /* end confdefs.h. */
16370 #include <sys/types.h>
16371 #include <$ac_cv_struct_tm>
16377 static struct tm ac_aggr;
16378 if (ac_aggr.tm_zone)
16384 rm -f conftest.
$ac_objext
16385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16386 (eval $ac_compile) 2>conftest.er1
16388 grep -v '^ *+' conftest.er1
>conftest.err
16390 cat conftest.err
>&5
16391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16392 (exit $ac_status); } &&
16393 { ac_try
='test -z "$ac_c_werror_flag"
16394 || test ! -s conftest.err'
16395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16396 (eval $ac_try) 2>&5
16398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16399 (exit $ac_status); }; } &&
16400 { ac_try
='test -s conftest.$ac_objext'
16401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16402 (eval $ac_try) 2>&5
16404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16405 (exit $ac_status); }; }; then
16406 ac_cv_member_struct_tm_tm_zone
=yes
16408 echo "$as_me: failed program was:" >&5
16409 sed 's/^/| /' conftest.
$ac_ext >&5
16411 cat >conftest.
$ac_ext <<_ACEOF
16414 cat confdefs.h
>>conftest.
$ac_ext
16415 cat >>conftest.
$ac_ext <<_ACEOF
16416 /* end confdefs.h. */
16417 #include <sys/types.h>
16418 #include <$ac_cv_struct_tm>
16424 static struct tm ac_aggr;
16425 if (sizeof ac_aggr.tm_zone)
16431 rm -f conftest.
$ac_objext
16432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16433 (eval $ac_compile) 2>conftest.er1
16435 grep -v '^ *+' conftest.er1
>conftest.err
16437 cat conftest.err
>&5
16438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16439 (exit $ac_status); } &&
16440 { ac_try
='test -z "$ac_c_werror_flag"
16441 || test ! -s conftest.err'
16442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16443 (eval $ac_try) 2>&5
16445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16446 (exit $ac_status); }; } &&
16447 { ac_try
='test -s conftest.$ac_objext'
16448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16449 (eval $ac_try) 2>&5
16451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16452 (exit $ac_status); }; }; then
16453 ac_cv_member_struct_tm_tm_zone
=yes
16455 echo "$as_me: failed program was:" >&5
16456 sed 's/^/| /' conftest.
$ac_ext >&5
16458 ac_cv_member_struct_tm_tm_zone
=no
16460 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16462 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16464 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
16465 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
16466 if test $ac_cv_member_struct_tm_tm_zone = yes; then
16468 cat >>confdefs.h
<<_ACEOF
16469 #define HAVE_STRUCT_TM_TM_ZONE 1
16475 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
16477 cat >>confdefs.h
<<\_ACEOF
16478 #define HAVE_TM_ZONE 1
16482 echo "$as_me:$LINENO: checking for tzname" >&5
16483 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
16484 if test "${ac_cv_var_tzname+set}" = set; then
16485 echo $ECHO_N "(cached) $ECHO_C" >&6
16487 cat >conftest.
$ac_ext <<_ACEOF
16490 cat confdefs.h
>>conftest.
$ac_ext
16491 cat >>conftest.
$ac_ext <<_ACEOF
16492 /* end confdefs.h. */
16494 #ifndef tzname /* For SGI. */
16495 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
16506 rm -f conftest.
$ac_objext conftest
$ac_exeext
16507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16508 (eval $ac_link) 2>conftest.er1
16510 grep -v '^ *+' conftest.er1
>conftest.err
16512 cat conftest.err
>&5
16513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16514 (exit $ac_status); } &&
16515 { ac_try
='test -z "$ac_c_werror_flag"
16516 || test ! -s conftest.err'
16517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16518 (eval $ac_try) 2>&5
16520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16521 (exit $ac_status); }; } &&
16522 { ac_try
='test -s conftest$ac_exeext'
16523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16524 (eval $ac_try) 2>&5
16526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16527 (exit $ac_status); }; }; then
16528 ac_cv_var_tzname
=yes
16530 echo "$as_me: failed program was:" >&5
16531 sed 's/^/| /' conftest.
$ac_ext >&5
16533 ac_cv_var_tzname
=no
16535 rm -f conftest.err conftest.
$ac_objext \
16536 conftest
$ac_exeext conftest.
$ac_ext
16538 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
16539 echo "${ECHO_T}$ac_cv_var_tzname" >&6
16540 if test $ac_cv_var_tzname = yes; then
16542 cat >>confdefs.h
<<\_ACEOF
16543 #define HAVE_TZNAME 1
16549 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
16550 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
16551 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
16552 echo $ECHO_N "(cached) $ECHO_C" >&6
16554 cat >conftest.
$ac_ext <<_ACEOF
16557 cat confdefs.h
>>conftest.
$ac_ext
16558 cat >>conftest.
$ac_ext <<_ACEOF
16559 /* end confdefs.h. */
16560 $ac_includes_default
16564 static struct stat ac_aggr;
16565 if (ac_aggr.st_rdev)
16571 rm -f conftest.
$ac_objext
16572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16573 (eval $ac_compile) 2>conftest.er1
16575 grep -v '^ *+' conftest.er1
>conftest.err
16577 cat conftest.err
>&5
16578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16579 (exit $ac_status); } &&
16580 { ac_try
='test -z "$ac_c_werror_flag"
16581 || test ! -s conftest.err'
16582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16583 (eval $ac_try) 2>&5
16585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16586 (exit $ac_status); }; } &&
16587 { ac_try
='test -s conftest.$ac_objext'
16588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16589 (eval $ac_try) 2>&5
16591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16592 (exit $ac_status); }; }; then
16593 ac_cv_member_struct_stat_st_rdev
=yes
16595 echo "$as_me: failed program was:" >&5
16596 sed 's/^/| /' conftest.
$ac_ext >&5
16598 cat >conftest.
$ac_ext <<_ACEOF
16601 cat confdefs.h
>>conftest.
$ac_ext
16602 cat >>conftest.
$ac_ext <<_ACEOF
16603 /* end confdefs.h. */
16604 $ac_includes_default
16608 static struct stat ac_aggr;
16609 if (sizeof ac_aggr.st_rdev)
16615 rm -f conftest.
$ac_objext
16616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16617 (eval $ac_compile) 2>conftest.er1
16619 grep -v '^ *+' conftest.er1
>conftest.err
16621 cat conftest.err
>&5
16622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16623 (exit $ac_status); } &&
16624 { ac_try
='test -z "$ac_c_werror_flag"
16625 || test ! -s conftest.err'
16626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16627 (eval $ac_try) 2>&5
16629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16630 (exit $ac_status); }; } &&
16631 { ac_try
='test -s conftest.$ac_objext'
16632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16633 (eval $ac_try) 2>&5
16635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16636 (exit $ac_status); }; }; then
16637 ac_cv_member_struct_stat_st_rdev
=yes
16639 echo "$as_me: failed program was:" >&5
16640 sed 's/^/| /' conftest.
$ac_ext >&5
16642 ac_cv_member_struct_stat_st_rdev
=no
16644 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16646 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16648 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
16649 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
16650 if test $ac_cv_member_struct_stat_st_rdev = yes; then
16652 cat >>confdefs.h
<<_ACEOF
16653 #define HAVE_STRUCT_STAT_ST_RDEV 1
16659 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
16660 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
16661 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
16662 echo $ECHO_N "(cached) $ECHO_C" >&6
16664 cat >conftest.
$ac_ext <<_ACEOF
16667 cat confdefs.h
>>conftest.
$ac_ext
16668 cat >>conftest.
$ac_ext <<_ACEOF
16669 /* end confdefs.h. */
16670 $ac_includes_default
16674 static struct stat ac_aggr;
16675 if (ac_aggr.st_blksize)
16681 rm -f conftest.
$ac_objext
16682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16683 (eval $ac_compile) 2>conftest.er1
16685 grep -v '^ *+' conftest.er1
>conftest.err
16687 cat conftest.err
>&5
16688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16689 (exit $ac_status); } &&
16690 { ac_try
='test -z "$ac_c_werror_flag"
16691 || test ! -s conftest.err'
16692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16693 (eval $ac_try) 2>&5
16695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16696 (exit $ac_status); }; } &&
16697 { ac_try
='test -s conftest.$ac_objext'
16698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16699 (eval $ac_try) 2>&5
16701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16702 (exit $ac_status); }; }; then
16703 ac_cv_member_struct_stat_st_blksize
=yes
16705 echo "$as_me: failed program was:" >&5
16706 sed 's/^/| /' conftest.
$ac_ext >&5
16708 cat >conftest.
$ac_ext <<_ACEOF
16711 cat confdefs.h
>>conftest.
$ac_ext
16712 cat >>conftest.
$ac_ext <<_ACEOF
16713 /* end confdefs.h. */
16714 $ac_includes_default
16718 static struct stat ac_aggr;
16719 if (sizeof ac_aggr.st_blksize)
16725 rm -f conftest.
$ac_objext
16726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16727 (eval $ac_compile) 2>conftest.er1
16729 grep -v '^ *+' conftest.er1
>conftest.err
16731 cat conftest.err
>&5
16732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16733 (exit $ac_status); } &&
16734 { ac_try
='test -z "$ac_c_werror_flag"
16735 || test ! -s conftest.err'
16736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16737 (eval $ac_try) 2>&5
16739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16740 (exit $ac_status); }; } &&
16741 { ac_try
='test -s conftest.$ac_objext'
16742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16743 (eval $ac_try) 2>&5
16745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16746 (exit $ac_status); }; }; then
16747 ac_cv_member_struct_stat_st_blksize
=yes
16749 echo "$as_me: failed program was:" >&5
16750 sed 's/^/| /' conftest.
$ac_ext >&5
16752 ac_cv_member_struct_stat_st_blksize
=no
16754 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16756 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16758 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
16759 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
16760 if test $ac_cv_member_struct_stat_st_blksize = yes; then
16762 cat >>confdefs.h
<<_ACEOF
16763 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
16769 echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
16770 echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6
16771 if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
16772 echo $ECHO_N "(cached) $ECHO_C" >&6
16774 cat >conftest.
$ac_ext <<_ACEOF
16777 cat confdefs.h
>>conftest.
$ac_ext
16778 cat >>conftest.
$ac_ext <<_ACEOF
16779 /* end confdefs.h. */
16780 $ac_includes_default
16784 static struct stat ac_aggr;
16785 if (ac_aggr.st_flags)
16791 rm -f conftest.
$ac_objext
16792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16793 (eval $ac_compile) 2>conftest.er1
16795 grep -v '^ *+' conftest.er1
>conftest.err
16797 cat conftest.err
>&5
16798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16799 (exit $ac_status); } &&
16800 { ac_try
='test -z "$ac_c_werror_flag"
16801 || test ! -s conftest.err'
16802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16803 (eval $ac_try) 2>&5
16805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16806 (exit $ac_status); }; } &&
16807 { ac_try
='test -s conftest.$ac_objext'
16808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16809 (eval $ac_try) 2>&5
16811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16812 (exit $ac_status); }; }; then
16813 ac_cv_member_struct_stat_st_flags
=yes
16815 echo "$as_me: failed program was:" >&5
16816 sed 's/^/| /' conftest.
$ac_ext >&5
16818 cat >conftest.
$ac_ext <<_ACEOF
16821 cat confdefs.h
>>conftest.
$ac_ext
16822 cat >>conftest.
$ac_ext <<_ACEOF
16823 /* end confdefs.h. */
16824 $ac_includes_default
16828 static struct stat ac_aggr;
16829 if (sizeof ac_aggr.st_flags)
16835 rm -f conftest.
$ac_objext
16836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16837 (eval $ac_compile) 2>conftest.er1
16839 grep -v '^ *+' conftest.er1
>conftest.err
16841 cat conftest.err
>&5
16842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16843 (exit $ac_status); } &&
16844 { ac_try
='test -z "$ac_c_werror_flag"
16845 || test ! -s conftest.err'
16846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16847 (eval $ac_try) 2>&5
16849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16850 (exit $ac_status); }; } &&
16851 { ac_try
='test -s conftest.$ac_objext'
16852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16853 (eval $ac_try) 2>&5
16855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16856 (exit $ac_status); }; }; then
16857 ac_cv_member_struct_stat_st_flags
=yes
16859 echo "$as_me: failed program was:" >&5
16860 sed 's/^/| /' conftest.
$ac_ext >&5
16862 ac_cv_member_struct_stat_st_flags
=no
16864 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16866 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16868 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
16869 echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6
16870 if test $ac_cv_member_struct_stat_st_flags = yes; then
16872 cat >>confdefs.h
<<_ACEOF
16873 #define HAVE_STRUCT_STAT_ST_FLAGS 1
16879 echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
16880 echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6
16881 if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
16882 echo $ECHO_N "(cached) $ECHO_C" >&6
16884 cat >conftest.
$ac_ext <<_ACEOF
16887 cat confdefs.h
>>conftest.
$ac_ext
16888 cat >>conftest.
$ac_ext <<_ACEOF
16889 /* end confdefs.h. */
16890 $ac_includes_default
16894 static struct stat ac_aggr;
16895 if (ac_aggr.st_gen)
16901 rm -f conftest.
$ac_objext
16902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16903 (eval $ac_compile) 2>conftest.er1
16905 grep -v '^ *+' conftest.er1
>conftest.err
16907 cat conftest.err
>&5
16908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16909 (exit $ac_status); } &&
16910 { ac_try
='test -z "$ac_c_werror_flag"
16911 || test ! -s conftest.err'
16912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16913 (eval $ac_try) 2>&5
16915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16916 (exit $ac_status); }; } &&
16917 { ac_try
='test -s conftest.$ac_objext'
16918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16919 (eval $ac_try) 2>&5
16921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16922 (exit $ac_status); }; }; then
16923 ac_cv_member_struct_stat_st_gen
=yes
16925 echo "$as_me: failed program was:" >&5
16926 sed 's/^/| /' conftest.
$ac_ext >&5
16928 cat >conftest.
$ac_ext <<_ACEOF
16931 cat confdefs.h
>>conftest.
$ac_ext
16932 cat >>conftest.
$ac_ext <<_ACEOF
16933 /* end confdefs.h. */
16934 $ac_includes_default
16938 static struct stat ac_aggr;
16939 if (sizeof ac_aggr.st_gen)
16945 rm -f conftest.
$ac_objext
16946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16947 (eval $ac_compile) 2>conftest.er1
16949 grep -v '^ *+' conftest.er1
>conftest.err
16951 cat conftest.err
>&5
16952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16953 (exit $ac_status); } &&
16954 { ac_try
='test -z "$ac_c_werror_flag"
16955 || test ! -s conftest.err'
16956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16957 (eval $ac_try) 2>&5
16959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16960 (exit $ac_status); }; } &&
16961 { ac_try
='test -s conftest.$ac_objext'
16962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16963 (eval $ac_try) 2>&5
16965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16966 (exit $ac_status); }; }; then
16967 ac_cv_member_struct_stat_st_gen
=yes
16969 echo "$as_me: failed program was:" >&5
16970 sed 's/^/| /' conftest.
$ac_ext >&5
16972 ac_cv_member_struct_stat_st_gen
=no
16974 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16976 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16978 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
16979 echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6
16980 if test $ac_cv_member_struct_stat_st_gen = yes; then
16982 cat >>confdefs.h
<<_ACEOF
16983 #define HAVE_STRUCT_STAT_ST_GEN 1
16989 echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
16990 echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6
16991 if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
16992 echo $ECHO_N "(cached) $ECHO_C" >&6
16994 cat >conftest.
$ac_ext <<_ACEOF
16997 cat confdefs.h
>>conftest.
$ac_ext
16998 cat >>conftest.
$ac_ext <<_ACEOF
16999 /* end confdefs.h. */
17000 $ac_includes_default
17004 static struct stat ac_aggr;
17005 if (ac_aggr.st_birthtime)
17011 rm -f conftest.
$ac_objext
17012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17013 (eval $ac_compile) 2>conftest.er1
17015 grep -v '^ *+' conftest.er1
>conftest.err
17017 cat conftest.err
>&5
17018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17019 (exit $ac_status); } &&
17020 { ac_try
='test -z "$ac_c_werror_flag"
17021 || test ! -s conftest.err'
17022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17023 (eval $ac_try) 2>&5
17025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17026 (exit $ac_status); }; } &&
17027 { ac_try
='test -s conftest.$ac_objext'
17028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17029 (eval $ac_try) 2>&5
17031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17032 (exit $ac_status); }; }; then
17033 ac_cv_member_struct_stat_st_birthtime
=yes
17035 echo "$as_me: failed program was:" >&5
17036 sed 's/^/| /' conftest.
$ac_ext >&5
17038 cat >conftest.
$ac_ext <<_ACEOF
17041 cat confdefs.h
>>conftest.
$ac_ext
17042 cat >>conftest.
$ac_ext <<_ACEOF
17043 /* end confdefs.h. */
17044 $ac_includes_default
17048 static struct stat ac_aggr;
17049 if (sizeof ac_aggr.st_birthtime)
17055 rm -f conftest.
$ac_objext
17056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17057 (eval $ac_compile) 2>conftest.er1
17059 grep -v '^ *+' conftest.er1
>conftest.err
17061 cat conftest.err
>&5
17062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17063 (exit $ac_status); } &&
17064 { ac_try
='test -z "$ac_c_werror_flag"
17065 || test ! -s conftest.err'
17066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17067 (eval $ac_try) 2>&5
17069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17070 (exit $ac_status); }; } &&
17071 { ac_try
='test -s conftest.$ac_objext'
17072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17073 (eval $ac_try) 2>&5
17075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17076 (exit $ac_status); }; }; then
17077 ac_cv_member_struct_stat_st_birthtime
=yes
17079 echo "$as_me: failed program was:" >&5
17080 sed 's/^/| /' conftest.
$ac_ext >&5
17082 ac_cv_member_struct_stat_st_birthtime
=no
17084 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17086 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17088 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
17089 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6
17090 if test $ac_cv_member_struct_stat_st_birthtime = yes; then
17092 cat >>confdefs.h
<<_ACEOF
17093 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
17099 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
17100 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
17101 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
17102 echo $ECHO_N "(cached) $ECHO_C" >&6
17104 cat >conftest.
$ac_ext <<_ACEOF
17107 cat confdefs.h
>>conftest.
$ac_ext
17108 cat >>conftest.
$ac_ext <<_ACEOF
17109 /* end confdefs.h. */
17110 $ac_includes_default
17114 static struct stat ac_aggr;
17115 if (ac_aggr.st_blocks)
17121 rm -f conftest.
$ac_objext
17122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17123 (eval $ac_compile) 2>conftest.er1
17125 grep -v '^ *+' conftest.er1
>conftest.err
17127 cat conftest.err
>&5
17128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17129 (exit $ac_status); } &&
17130 { ac_try
='test -z "$ac_c_werror_flag"
17131 || test ! -s conftest.err'
17132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17133 (eval $ac_try) 2>&5
17135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17136 (exit $ac_status); }; } &&
17137 { ac_try
='test -s conftest.$ac_objext'
17138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17139 (eval $ac_try) 2>&5
17141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17142 (exit $ac_status); }; }; then
17143 ac_cv_member_struct_stat_st_blocks
=yes
17145 echo "$as_me: failed program was:" >&5
17146 sed 's/^/| /' conftest.
$ac_ext >&5
17148 cat >conftest.
$ac_ext <<_ACEOF
17151 cat confdefs.h
>>conftest.
$ac_ext
17152 cat >>conftest.
$ac_ext <<_ACEOF
17153 /* end confdefs.h. */
17154 $ac_includes_default
17158 static struct stat ac_aggr;
17159 if (sizeof ac_aggr.st_blocks)
17165 rm -f conftest.
$ac_objext
17166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17167 (eval $ac_compile) 2>conftest.er1
17169 grep -v '^ *+' conftest.er1
>conftest.err
17171 cat conftest.err
>&5
17172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17173 (exit $ac_status); } &&
17174 { ac_try
='test -z "$ac_c_werror_flag"
17175 || test ! -s conftest.err'
17176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17177 (eval $ac_try) 2>&5
17179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17180 (exit $ac_status); }; } &&
17181 { ac_try
='test -s conftest.$ac_objext'
17182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17183 (eval $ac_try) 2>&5
17185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17186 (exit $ac_status); }; }; then
17187 ac_cv_member_struct_stat_st_blocks
=yes
17189 echo "$as_me: failed program was:" >&5
17190 sed 's/^/| /' conftest.
$ac_ext >&5
17192 ac_cv_member_struct_stat_st_blocks
=no
17194 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17196 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17198 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
17199 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
17200 if test $ac_cv_member_struct_stat_st_blocks = yes; then
17202 cat >>confdefs.h
<<_ACEOF
17203 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
17207 cat >>confdefs.h
<<\_ACEOF
17208 #define HAVE_ST_BLOCKS 1
17213 "fileblocks.$ac_objext" | \
17214 *" fileblocks.$ac_objext" | \
17215 "fileblocks.$ac_objext "* | \
17216 *" fileblocks.$ac_objext "* ) ;;
17217 *) LIBOBJS
="$LIBOBJS fileblocks.$ac_objext" ;;
17224 echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
17225 echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6
17226 if test "${ac_cv_header_time_altzone+set}" = set; then
17227 echo $ECHO_N "(cached) $ECHO_C" >&6
17229 cat >conftest.
$ac_ext <<_ACEOF
17232 cat confdefs.h
>>conftest.
$ac_ext
17233 cat >>conftest.
$ac_ext <<_ACEOF
17234 /* end confdefs.h. */
17244 rm -f conftest.
$ac_objext
17245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17246 (eval $ac_compile) 2>conftest.er1
17248 grep -v '^ *+' conftest.er1
>conftest.err
17250 cat conftest.err
>&5
17251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17252 (exit $ac_status); } &&
17253 { ac_try
='test -z "$ac_c_werror_flag"
17254 || test ! -s conftest.err'
17255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17256 (eval $ac_try) 2>&5
17258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17259 (exit $ac_status); }; } &&
17260 { ac_try
='test -s conftest.$ac_objext'
17261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17262 (eval $ac_try) 2>&5
17264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17265 (exit $ac_status); }; }; then
17266 ac_cv_header_time_altzone
=yes
17268 echo "$as_me: failed program was:" >&5
17269 sed 's/^/| /' conftest.
$ac_ext >&5
17271 ac_cv_header_time_altzone
=no
17273 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17276 echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
17277 echo "${ECHO_T}$ac_cv_header_time_altzone" >&6
17278 if test $ac_cv_header_time_altzone = yes; then
17280 cat >>confdefs.h
<<\_ACEOF
17281 #define HAVE_ALTZONE 1
17287 echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
17288 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6
17289 cat >conftest.
$ac_ext <<_ACEOF
17292 cat confdefs.h
>>conftest.
$ac_ext
17293 cat >>conftest.
$ac_ext <<_ACEOF
17294 /* end confdefs.h. */
17296 #include <sys/types.h>
17297 #include <sys/select.h>
17298 #include <sys/time.h>
17308 rm -f conftest.
$ac_objext
17309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17310 (eval $ac_compile) 2>conftest.er1
17312 grep -v '^ *+' conftest.er1
>conftest.err
17314 cat conftest.err
>&5
17315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17316 (exit $ac_status); } &&
17317 { ac_try
='test -z "$ac_c_werror_flag"
17318 || test ! -s conftest.err'
17319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17320 (eval $ac_try) 2>&5
17322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17323 (exit $ac_status); }; } &&
17324 { ac_try
='test -s conftest.$ac_objext'
17325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17326 (eval $ac_try) 2>&5
17328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17329 (exit $ac_status); }; }; then
17332 cat >>confdefs.h
<<\_ACEOF
17333 #define SYS_SELECT_WITH_SYS_TIME 1
17339 echo "$as_me: failed program was:" >&5
17340 sed 's/^/| /' conftest.
$ac_ext >&5
17343 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17344 echo "$as_me:$LINENO: result: $was_it_defined" >&5
17345 echo "${ECHO_T}$was_it_defined" >&6
17347 echo "$as_me:$LINENO: checking for addrinfo" >&5
17348 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6
17349 if test "${ac_cv_struct_addrinfo+set}" = set; then
17350 echo $ECHO_N "(cached) $ECHO_C" >&6
17352 cat >conftest.
$ac_ext <<_ACEOF
17355 cat confdefs.h
>>conftest.
$ac_ext
17356 cat >>conftest.
$ac_ext <<_ACEOF
17357 /* end confdefs.h. */
17359 # include <netdb.h>
17368 rm -f conftest.
$ac_objext
17369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17370 (eval $ac_compile) 2>conftest.er1
17372 grep -v '^ *+' conftest.er1
>conftest.err
17374 cat conftest.err
>&5
17375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17376 (exit $ac_status); } &&
17377 { ac_try
='test -z "$ac_c_werror_flag"
17378 || test ! -s conftest.err'
17379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17380 (eval $ac_try) 2>&5
17382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17383 (exit $ac_status); }; } &&
17384 { ac_try
='test -s conftest.$ac_objext'
17385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17386 (eval $ac_try) 2>&5
17388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17389 (exit $ac_status); }; }; then
17390 ac_cv_struct_addrinfo
=yes
17392 echo "$as_me: failed program was:" >&5
17393 sed 's/^/| /' conftest.
$ac_ext >&5
17395 ac_cv_struct_addrinfo
=no
17397 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17400 echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
17401 echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6
17402 if test $ac_cv_struct_addrinfo = yes; then
17404 cat >>confdefs.h
<<\_ACEOF
17405 #define HAVE_ADDRINFO 1
17410 echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
17411 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6
17412 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
17413 echo $ECHO_N "(cached) $ECHO_C" >&6
17415 cat >conftest.
$ac_ext <<_ACEOF
17418 cat confdefs.h
>>conftest.
$ac_ext
17419 cat >>conftest.
$ac_ext <<_ACEOF
17420 /* end confdefs.h. */
17422 # include <sys/types.h>
17423 # include <sys/socket.h>
17427 struct sockaddr_storage s
17432 rm -f conftest.
$ac_objext
17433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17434 (eval $ac_compile) 2>conftest.er1
17436 grep -v '^ *+' conftest.er1
>conftest.err
17438 cat conftest.err
>&5
17439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17440 (exit $ac_status); } &&
17441 { ac_try
='test -z "$ac_c_werror_flag"
17442 || test ! -s conftest.err'
17443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17444 (eval $ac_try) 2>&5
17446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17447 (exit $ac_status); }; } &&
17448 { ac_try
='test -s conftest.$ac_objext'
17449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17450 (eval $ac_try) 2>&5
17452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17453 (exit $ac_status); }; }; then
17454 ac_cv_struct_sockaddr_storage
=yes
17456 echo "$as_me: failed program was:" >&5
17457 sed 's/^/| /' conftest.
$ac_ext >&5
17459 ac_cv_struct_sockaddr_storage
=no
17461 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17464 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
17465 echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6
17466 if test $ac_cv_struct_sockaddr_storage = yes; then
17468 cat >>confdefs.h
<<\_ACEOF
17469 #define HAVE_SOCKADDR_STORAGE 1
17474 # checks for compiler characteristics
17477 echo "$as_me:$LINENO: checking whether char is unsigned" >&5
17478 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
17479 if test "${ac_cv_c_char_unsigned+set}" = set; then
17480 echo $ECHO_N "(cached) $ECHO_C" >&6
17482 cat >conftest.
$ac_ext <<_ACEOF
17485 cat confdefs.h
>>conftest.
$ac_ext
17486 cat >>conftest.
$ac_ext <<_ACEOF
17487 /* end confdefs.h. */
17488 $ac_includes_default
17492 static int test_array [1 - 2 * !(((char) -1) < 0)];
17499 rm -f conftest.
$ac_objext
17500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17501 (eval $ac_compile) 2>conftest.er1
17503 grep -v '^ *+' conftest.er1
>conftest.err
17505 cat conftest.err
>&5
17506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17507 (exit $ac_status); } &&
17508 { ac_try
='test -z "$ac_c_werror_flag"
17509 || test ! -s conftest.err'
17510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17511 (eval $ac_try) 2>&5
17513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17514 (exit $ac_status); }; } &&
17515 { ac_try
='test -s conftest.$ac_objext'
17516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17517 (eval $ac_try) 2>&5
17519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17520 (exit $ac_status); }; }; then
17521 ac_cv_c_char_unsigned
=no
17523 echo "$as_me: failed program was:" >&5
17524 sed 's/^/| /' conftest.
$ac_ext >&5
17526 ac_cv_c_char_unsigned
=yes
17528 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17530 echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
17531 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
17532 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
17533 cat >>confdefs.h
<<\_ACEOF
17534 #define __CHAR_UNSIGNED__ 1
17539 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
17540 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
17541 if test "${ac_cv_c_const+set}" = set; then
17542 echo $ECHO_N "(cached) $ECHO_C" >&6
17544 cat >conftest.
$ac_ext <<_ACEOF
17547 cat confdefs.h
>>conftest.
$ac_ext
17548 cat >>conftest.
$ac_ext <<_ACEOF
17549 /* end confdefs.h. */
17554 /* FIXME: Include the comments suggested by Paul. */
17555 #ifndef __cplusplus
17556 /* Ultrix mips cc rejects this. */
17557 typedef int charset[2];
17559 /* SunOS 4.1.1 cc rejects this. */
17560 char const *const *ccp;
17562 /* NEC SVR4.0.2 mips cc rejects this. */
17563 struct point {int x, y;};
17564 static struct point const zero = {0,0};
17565 /* AIX XL C 1.02.0.0 rejects this.
17566 It does not let you subtract one const X* pointer from another in
17567 an arm of an if-expression whose if-part is not a constant
17569 const char *g = "string";
17570 ccp = &g + (g ? g-g : 0);
17571 /* HPUX 7.0 cc rejects these. */
17574 ccp = (char const *const *) p;
17575 { /* SCO 3.2v4 cc rejects this. */
17577 char const *s = 0 ? (char *) 0 : (char const *) 0;
17581 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
17582 int x[] = {25, 17};
17583 const int *foo = &x[0];
17586 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17587 typedef const int *iptr;
17591 { /* AIX XL C 1.02.0.0 rejects this saying
17592 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17593 struct s { int j; const int *ap[3]; };
17594 struct s *b; b->j = 5;
17596 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17597 const int foo = 10;
17605 rm -f conftest.
$ac_objext
17606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17607 (eval $ac_compile) 2>conftest.er1
17609 grep -v '^ *+' conftest.er1
>conftest.err
17611 cat conftest.err
>&5
17612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17613 (exit $ac_status); } &&
17614 { ac_try
='test -z "$ac_c_werror_flag"
17615 || test ! -s conftest.err'
17616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17617 (eval $ac_try) 2>&5
17619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17620 (exit $ac_status); }; } &&
17621 { ac_try
='test -s conftest.$ac_objext'
17622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17623 (eval $ac_try) 2>&5
17625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17626 (exit $ac_status); }; }; then
17629 echo "$as_me: failed program was:" >&5
17630 sed 's/^/| /' conftest.
$ac_ext >&5
17634 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17636 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
17637 echo "${ECHO_T}$ac_cv_c_const" >&6
17638 if test $ac_cv_c_const = no
; then
17640 cat >>confdefs.h
<<\_ACEOF
17648 echo "$as_me:$LINENO: checking for working volatile" >&5
17649 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
17650 cat >conftest.
$ac_ext <<_ACEOF
17653 cat confdefs.h
>>conftest.
$ac_ext
17654 cat >>conftest.
$ac_ext <<_ACEOF
17655 /* end confdefs.h. */
17660 volatile int x; x = 0;
17665 rm -f conftest.
$ac_objext
17666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17667 (eval $ac_compile) 2>conftest.er1
17669 grep -v '^ *+' conftest.er1
>conftest.err
17671 cat conftest.err
>&5
17672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17673 (exit $ac_status); } &&
17674 { ac_try
='test -z "$ac_c_werror_flag"
17675 || test ! -s conftest.err'
17676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17677 (eval $ac_try) 2>&5
17679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17680 (exit $ac_status); }; } &&
17681 { ac_try
='test -s conftest.$ac_objext'
17682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17683 (eval $ac_try) 2>&5
17685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17686 (exit $ac_status); }; }; then
17689 echo "$as_me: failed program was:" >&5
17690 sed 's/^/| /' conftest.
$ac_ext >&5
17693 cat >>confdefs.h
<<\_ACEOF
17699 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17700 echo "$as_me:$LINENO: result: $works" >&5
17701 echo "${ECHO_T}$works" >&6
17704 echo "$as_me:$LINENO: checking for working signed char" >&5
17705 echo $ECHO_N "checking for working signed char... $ECHO_C" >&6
17706 cat >conftest.
$ac_ext <<_ACEOF
17709 cat confdefs.h
>>conftest.
$ac_ext
17710 cat >>conftest.
$ac_ext <<_ACEOF
17711 /* end confdefs.h. */
17721 rm -f conftest.
$ac_objext
17722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17723 (eval $ac_compile) 2>conftest.er1
17725 grep -v '^ *+' conftest.er1
>conftest.err
17727 cat conftest.err
>&5
17728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17729 (exit $ac_status); } &&
17730 { ac_try
='test -z "$ac_c_werror_flag"
17731 || test ! -s conftest.err'
17732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17733 (eval $ac_try) 2>&5
17735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17736 (exit $ac_status); }; } &&
17737 { ac_try
='test -s conftest.$ac_objext'
17738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17739 (eval $ac_try) 2>&5
17741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17742 (exit $ac_status); }; }; then
17745 echo "$as_me: failed program was:" >&5
17746 sed 's/^/| /' conftest.
$ac_ext >&5
17749 cat >>confdefs.h
<<\_ACEOF
17755 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17756 echo "$as_me:$LINENO: result: $works" >&5
17757 echo "${ECHO_T}$works" >&6
17760 echo "$as_me:$LINENO: checking for prototypes" >&5
17761 echo $ECHO_N "checking for prototypes... $ECHO_C" >&6
17762 cat >conftest.
$ac_ext <<_ACEOF
17765 cat confdefs.h
>>conftest.
$ac_ext
17766 cat >>conftest.
$ac_ext <<_ACEOF
17767 /* end confdefs.h. */
17768 int foo(int x) { return 0; }
17777 rm -f conftest.
$ac_objext
17778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17779 (eval $ac_compile) 2>conftest.er1
17781 grep -v '^ *+' conftest.er1
>conftest.err
17783 cat conftest.err
>&5
17784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17785 (exit $ac_status); } &&
17786 { ac_try
='test -z "$ac_c_werror_flag"
17787 || test ! -s conftest.err'
17788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17789 (eval $ac_try) 2>&5
17791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17792 (exit $ac_status); }; } &&
17793 { ac_try
='test -s conftest.$ac_objext'
17794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17795 (eval $ac_try) 2>&5
17797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17798 (exit $ac_status); }; }; then
17801 cat >>confdefs.h
<<\_ACEOF
17802 #define HAVE_PROTOTYPES 1
17805 have_prototypes
=yes
17808 echo "$as_me: failed program was:" >&5
17809 sed 's/^/| /' conftest.
$ac_ext >&5
17812 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17813 echo "$as_me:$LINENO: result: $have_prototypes" >&5
17814 echo "${ECHO_T}$have_prototypes" >&6
17817 echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
17818 echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6
17819 cat >conftest.
$ac_ext <<_ACEOF
17822 cat confdefs.h
>>conftest.
$ac_ext
17823 cat >>conftest.
$ac_ext <<_ACEOF
17824 /* end confdefs.h. */
17826 #include <stdarg.h>
17827 int foo(int x, ...) {
17831 va_arg(va, char *);
17832 va_arg(va, double);
17839 return foo(10, "", 3.14);
17844 rm -f conftest.
$ac_objext
17845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17846 (eval $ac_compile) 2>conftest.er1
17848 grep -v '^ *+' conftest.er1
>conftest.err
17850 cat conftest.err
>&5
17851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17852 (exit $ac_status); } &&
17853 { ac_try
='test -z "$ac_c_werror_flag"
17854 || test ! -s conftest.err'
17855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17856 (eval $ac_try) 2>&5
17858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17859 (exit $ac_status); }; } &&
17860 { ac_try
='test -s conftest.$ac_objext'
17861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17862 (eval $ac_try) 2>&5
17864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17865 (exit $ac_status); }; }; then
17868 cat >>confdefs.h
<<\_ACEOF
17869 #define HAVE_STDARG_PROTOTYPES 1
17875 echo "$as_me: failed program was:" >&5
17876 sed 's/^/| /' conftest.
$ac_ext >&5
17879 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17880 echo "$as_me:$LINENO: result: $works" >&5
17881 echo "${ECHO_T}$works" >&6
17883 # check for socketpair
17884 echo "$as_me:$LINENO: checking for socketpair" >&5
17885 echo $ECHO_N "checking for socketpair... $ECHO_C" >&6
17886 cat >conftest.
$ac_ext <<_ACEOF
17889 cat confdefs.h
>>conftest.
$ac_ext
17890 cat >>conftest.
$ac_ext <<_ACEOF
17891 /* end confdefs.h. */
17893 #include <sys/types.h>
17894 #include <sys/socket.h>
17904 rm -f conftest.
$ac_objext
17905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17906 (eval $ac_compile) 2>conftest.er1
17908 grep -v '^ *+' conftest.er1
>conftest.err
17910 cat conftest.err
>&5
17911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17912 (exit $ac_status); } &&
17913 { ac_try
='test -z "$ac_c_werror_flag"
17914 || test ! -s conftest.err'
17915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17916 (eval $ac_try) 2>&5
17918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17919 (exit $ac_status); }; } &&
17920 { ac_try
='test -s conftest.$ac_objext'
17921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17922 (eval $ac_try) 2>&5
17924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17925 (exit $ac_status); }; }; then
17927 cat >>confdefs.h
<<\_ACEOF
17928 #define HAVE_SOCKETPAIR 1
17931 echo "$as_me:$LINENO: result: yes" >&5
17932 echo "${ECHO_T}yes" >&6
17934 echo "$as_me: failed program was:" >&5
17935 sed 's/^/| /' conftest.
$ac_ext >&5
17937 echo "$as_me:$LINENO: result: no" >&5
17938 echo "${ECHO_T}no" >&6
17941 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17943 # check if sockaddr has sa_len member
17944 echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
17945 echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6
17946 cat >conftest.
$ac_ext <<_ACEOF
17949 cat confdefs.h
>>conftest.
$ac_ext
17950 cat >>conftest.
$ac_ext <<_ACEOF
17951 /* end confdefs.h. */
17952 #include <sys/types.h>
17953 #include <sys/socket.h>
17963 rm -f conftest.
$ac_objext
17964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17965 (eval $ac_compile) 2>conftest.er1
17967 grep -v '^ *+' conftest.er1
>conftest.err
17969 cat conftest.err
>&5
17970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17971 (exit $ac_status); } &&
17972 { ac_try
='test -z "$ac_c_werror_flag"
17973 || test ! -s conftest.err'
17974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17975 (eval $ac_try) 2>&5
17977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17978 (exit $ac_status); }; } &&
17979 { ac_try
='test -s conftest.$ac_objext'
17980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17981 (eval $ac_try) 2>&5
17983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17984 (exit $ac_status); }; }; then
17985 echo "$as_me:$LINENO: result: yes" >&5
17986 echo "${ECHO_T}yes" >&6
17988 cat >>confdefs.h
<<\_ACEOF
17989 #define HAVE_SOCKADDR_SA_LEN 1
17993 echo "$as_me: failed program was:" >&5
17994 sed 's/^/| /' conftest.
$ac_ext >&5
17996 echo "$as_me:$LINENO: result: no" >&5
17997 echo "${ECHO_T}no" >&6
17999 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18001 va_list_is_array
=no
18002 echo "$as_me:$LINENO: checking whether va_list is an array" >&5
18003 echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6
18004 cat >conftest.
$ac_ext <<_ACEOF
18007 cat confdefs.h
>>conftest.
$ac_ext
18008 cat >>conftest.
$ac_ext <<_ACEOF
18009 /* end confdefs.h. */
18011 #ifdef HAVE_STDARG_PROTOTYPES
18012 #include <stdarg.h>
18014 #include <varargs.h>
18020 va_list list1, list2; list1 = list2;
18025 rm -f conftest.
$ac_objext
18026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18027 (eval $ac_compile) 2>conftest.er1
18029 grep -v '^ *+' conftest.er1
>conftest.err
18031 cat conftest.err
>&5
18032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18033 (exit $ac_status); } &&
18034 { ac_try
='test -z "$ac_c_werror_flag"
18035 || test ! -s conftest.err'
18036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18037 (eval $ac_try) 2>&5
18039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18040 (exit $ac_status); }; } &&
18041 { ac_try
='test -s conftest.$ac_objext'
18042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18043 (eval $ac_try) 2>&5
18045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18046 (exit $ac_status); }; }; then
18049 echo "$as_me: failed program was:" >&5
18050 sed 's/^/| /' conftest.
$ac_ext >&5
18054 cat >>confdefs.h
<<\_ACEOF
18055 #define VA_LIST_IS_ARRAY 1
18058 va_list_is_array
=yes
18061 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18062 echo "$as_me:$LINENO: result: $va_list_is_array" >&5
18063 echo "${ECHO_T}$va_list_is_array" >&6
18065 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
18069 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
18070 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
18071 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
18072 echo $ECHO_N "(cached) $ECHO_C" >&6
18074 cat >conftest.
$ac_ext <<_ACEOF
18077 cat confdefs.h
>>conftest.
$ac_ext
18078 cat >>conftest.
$ac_ext <<_ACEOF
18079 /* end confdefs.h. */
18080 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
18081 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18082 #define gethostbyname_r innocuous_gethostbyname_r
18084 /* System header to define __stub macros and hopefully few prototypes,
18085 which can conflict with char gethostbyname_r (); below.
18086 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18087 <limits.h> exists even on freestanding compilers. */
18090 # include <limits.h>
18092 # include <assert.h>
18095 #undef gethostbyname_r
18097 /* Override any gcc2 internal prototype to avoid an error. */
18102 /* We use char because int might match the return type of a gcc2
18103 builtin and then its argument prototype would still apply. */
18104 char gethostbyname_r ();
18105 /* The GNU C library defines this for functions which it implements
18106 to always fail with ENOSYS. Some functions are actually named
18107 something starting with __ and the normal name is an alias. */
18108 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
18111 char (*f) () = gethostbyname_r;
18120 return f != gethostbyname_r;
18125 rm -f conftest.
$ac_objext conftest
$ac_exeext
18126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18127 (eval $ac_link) 2>conftest.er1
18129 grep -v '^ *+' conftest.er1
>conftest.err
18131 cat conftest.err
>&5
18132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18133 (exit $ac_status); } &&
18134 { ac_try
='test -z "$ac_c_werror_flag"
18135 || test ! -s conftest.err'
18136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18137 (eval $ac_try) 2>&5
18139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18140 (exit $ac_status); }; } &&
18141 { ac_try
='test -s conftest$ac_exeext'
18142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18143 (eval $ac_try) 2>&5
18145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18146 (exit $ac_status); }; }; then
18147 ac_cv_func_gethostbyname_r
=yes
18149 echo "$as_me: failed program was:" >&5
18150 sed 's/^/| /' conftest.
$ac_ext >&5
18152 ac_cv_func_gethostbyname_r
=no
18154 rm -f conftest.err conftest.
$ac_objext \
18155 conftest
$ac_exeext conftest.
$ac_ext
18157 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
18158 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
18159 if test $ac_cv_func_gethostbyname_r = yes; then
18161 cat >>confdefs.h
<<\_ACEOF
18162 #define HAVE_GETHOSTBYNAME_R 1
18165 echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
18166 echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6
18168 CFLAGS
="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
18169 cat >conftest.
$ac_ext <<_ACEOF
18172 cat confdefs.h
>>conftest.
$ac_ext
18173 cat >>conftest.
$ac_ext <<_ACEOF
18174 /* end confdefs.h. */
18176 # include <netdb.h>
18183 struct hostent *he, *res;
18188 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
18194 rm -f conftest.
$ac_objext
18195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18196 (eval $ac_compile) 2>conftest.er1
18198 grep -v '^ *+' conftest.er1
>conftest.err
18200 cat conftest.err
>&5
18201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18202 (exit $ac_status); } &&
18203 { ac_try
='test -z "$ac_c_werror_flag"
18204 || test ! -s conftest.err'
18205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18206 (eval $ac_try) 2>&5
18208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18209 (exit $ac_status); }; } &&
18210 { ac_try
='test -s conftest.$ac_objext'
18211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18212 (eval $ac_try) 2>&5
18214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18215 (exit $ac_status); }; }; then
18217 cat >>confdefs.h
<<\_ACEOF
18218 #define HAVE_GETHOSTBYNAME_R 1
18222 cat >>confdefs.h
<<\_ACEOF
18223 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
18226 echo "$as_me:$LINENO: result: yes" >&5
18227 echo "${ECHO_T}yes" >&6
18230 echo "$as_me: failed program was:" >&5
18231 sed 's/^/| /' conftest.
$ac_ext >&5
18234 echo "$as_me:$LINENO: result: no" >&5
18235 echo "${ECHO_T}no" >&6
18236 echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
18237 echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6
18238 cat >conftest.
$ac_ext <<_ACEOF
18241 cat confdefs.h
>>conftest.
$ac_ext
18242 cat >>conftest.
$ac_ext <<_ACEOF
18243 /* end confdefs.h. */
18245 # include <netdb.h>
18252 struct hostent *he;
18257 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
18263 rm -f conftest.
$ac_objext
18264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18265 (eval $ac_compile) 2>conftest.er1
18267 grep -v '^ *+' conftest.er1
>conftest.err
18269 cat conftest.err
>&5
18270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18271 (exit $ac_status); } &&
18272 { ac_try
='test -z "$ac_c_werror_flag"
18273 || test ! -s conftest.err'
18274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18275 (eval $ac_try) 2>&5
18277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18278 (exit $ac_status); }; } &&
18279 { ac_try
='test -s conftest.$ac_objext'
18280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18281 (eval $ac_try) 2>&5
18283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18284 (exit $ac_status); }; }; then
18286 cat >>confdefs.h
<<\_ACEOF
18287 #define HAVE_GETHOSTBYNAME_R 1
18291 cat >>confdefs.h
<<\_ACEOF
18292 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
18295 echo "$as_me:$LINENO: result: yes" >&5
18296 echo "${ECHO_T}yes" >&6
18299 echo "$as_me: failed program was:" >&5
18300 sed 's/^/| /' conftest.
$ac_ext >&5
18303 echo "$as_me:$LINENO: result: no" >&5
18304 echo "${ECHO_T}no" >&6
18305 echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
18306 echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6
18307 cat >conftest.
$ac_ext <<_ACEOF
18310 cat confdefs.h
>>conftest.
$ac_ext
18311 cat >>conftest.
$ac_ext <<_ACEOF
18312 /* end confdefs.h. */
18314 # include <netdb.h>
18321 struct hostent *he;
18322 struct hostent_data data;
18324 (void) gethostbyname_r(name, he, &data);
18330 rm -f conftest.
$ac_objext
18331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18332 (eval $ac_compile) 2>conftest.er1
18334 grep -v '^ *+' conftest.er1
>conftest.err
18336 cat conftest.err
>&5
18337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18338 (exit $ac_status); } &&
18339 { ac_try
='test -z "$ac_c_werror_flag"
18340 || test ! -s conftest.err'
18341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18342 (eval $ac_try) 2>&5
18344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18345 (exit $ac_status); }; } &&
18346 { ac_try
='test -s conftest.$ac_objext'
18347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18348 (eval $ac_try) 2>&5
18350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18351 (exit $ac_status); }; }; then
18353 cat >>confdefs.h
<<\_ACEOF
18354 #define HAVE_GETHOSTBYNAME_R 1
18358 cat >>confdefs.h
<<\_ACEOF
18359 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
18362 echo "$as_me:$LINENO: result: yes" >&5
18363 echo "${ECHO_T}yes" >&6
18366 echo "$as_me: failed program was:" >&5
18367 sed 's/^/| /' conftest.
$ac_ext >&5
18370 echo "$as_me:$LINENO: result: no" >&5
18371 echo "${ECHO_T}no" >&6
18374 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18377 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18380 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18386 for ac_func
in gethostbyname
18388 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18389 echo "$as_me:$LINENO: checking for $ac_func" >&5
18390 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18391 if eval "test \"\${$as_ac_var+set}\" = set"; then
18392 echo $ECHO_N "(cached) $ECHO_C" >&6
18394 cat >conftest.
$ac_ext <<_ACEOF
18397 cat confdefs.h
>>conftest.
$ac_ext
18398 cat >>conftest.
$ac_ext <<_ACEOF
18399 /* end confdefs.h. */
18400 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18401 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18402 #define $ac_func innocuous_$ac_func
18404 /* System header to define __stub macros and hopefully few prototypes,
18405 which can conflict with char $ac_func (); below.
18406 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18407 <limits.h> exists even on freestanding compilers. */
18410 # include <limits.h>
18412 # include <assert.h>
18417 /* Override any gcc2 internal prototype to avoid an error. */
18422 /* We use char because int might match the return type of a gcc2
18423 builtin and then its argument prototype would still apply. */
18425 /* The GNU C library defines this for functions which it implements
18426 to always fail with ENOSYS. Some functions are actually named
18427 something starting with __ and the normal name is an alias. */
18428 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18431 char (*f) () = $ac_func;
18440 return f != $ac_func;
18445 rm -f conftest.
$ac_objext conftest
$ac_exeext
18446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18447 (eval $ac_link) 2>conftest.er1
18449 grep -v '^ *+' conftest.er1
>conftest.err
18451 cat conftest.err
>&5
18452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18453 (exit $ac_status); } &&
18454 { ac_try
='test -z "$ac_c_werror_flag"
18455 || test ! -s conftest.err'
18456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18457 (eval $ac_try) 2>&5
18459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18460 (exit $ac_status); }; } &&
18461 { ac_try
='test -s conftest$ac_exeext'
18462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18463 (eval $ac_try) 2>&5
18465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18466 (exit $ac_status); }; }; then
18467 eval "$as_ac_var=yes"
18469 echo "$as_me: failed program was:" >&5
18470 sed 's/^/| /' conftest.
$ac_ext >&5
18472 eval "$as_ac_var=no"
18474 rm -f conftest.err conftest.
$ac_objext \
18475 conftest
$ac_exeext conftest.
$ac_ext
18477 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18478 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18479 if test `eval echo '${'$as_ac_var'}'` = yes; then
18480 cat >>confdefs.h
<<_ACEOF
18481 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18496 # checks for system services
18499 # Linux requires this for correct f.p. operations
18500 echo "$as_me:$LINENO: checking for __fpu_control" >&5
18501 echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6
18502 if test "${ac_cv_func___fpu_control+set}" = set; then
18503 echo $ECHO_N "(cached) $ECHO_C" >&6
18505 cat >conftest.
$ac_ext <<_ACEOF
18508 cat confdefs.h
>>conftest.
$ac_ext
18509 cat >>conftest.
$ac_ext <<_ACEOF
18510 /* end confdefs.h. */
18511 /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control.
18512 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18513 #define __fpu_control innocuous___fpu_control
18515 /* System header to define __stub macros and hopefully few prototypes,
18516 which can conflict with char __fpu_control (); below.
18517 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18518 <limits.h> exists even on freestanding compilers. */
18521 # include <limits.h>
18523 # include <assert.h>
18526 #undef __fpu_control
18528 /* Override any gcc2 internal prototype to avoid an error. */
18533 /* We use char because int might match the return type of a gcc2
18534 builtin and then its argument prototype would still apply. */
18535 char __fpu_control ();
18536 /* The GNU C library defines this for functions which it implements
18537 to always fail with ENOSYS. Some functions are actually named
18538 something starting with __ and the normal name is an alias. */
18539 #if defined (__stub___fpu_control) || defined (__stub_____fpu_control)
18542 char (*f) () = __fpu_control;
18551 return f != __fpu_control;
18556 rm -f conftest.
$ac_objext conftest
$ac_exeext
18557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18558 (eval $ac_link) 2>conftest.er1
18560 grep -v '^ *+' conftest.er1
>conftest.err
18562 cat conftest.err
>&5
18563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18564 (exit $ac_status); } &&
18565 { ac_try
='test -z "$ac_c_werror_flag"
18566 || test ! -s conftest.err'
18567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18568 (eval $ac_try) 2>&5
18570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18571 (exit $ac_status); }; } &&
18572 { ac_try
='test -s conftest$ac_exeext'
18573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18574 (eval $ac_try) 2>&5
18576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18577 (exit $ac_status); }; }; then
18578 ac_cv_func___fpu_control
=yes
18580 echo "$as_me: failed program was:" >&5
18581 sed 's/^/| /' conftest.
$ac_ext >&5
18583 ac_cv_func___fpu_control
=no
18585 rm -f conftest.err conftest.
$ac_objext \
18586 conftest
$ac_exeext conftest.
$ac_ext
18588 echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
18589 echo "${ECHO_T}$ac_cv_func___fpu_control" >&6
18590 if test $ac_cv_func___fpu_control = yes; then
18594 echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
18595 echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6
18596 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
18597 echo $ECHO_N "(cached) $ECHO_C" >&6
18599 ac_check_lib_save_LIBS
=$LIBS
18600 LIBS
="-lieee $LIBS"
18601 cat >conftest.
$ac_ext <<_ACEOF
18604 cat confdefs.h
>>conftest.
$ac_ext
18605 cat >>conftest.
$ac_ext <<_ACEOF
18606 /* end confdefs.h. */
18608 /* Override any gcc2 internal prototype to avoid an error. */
18612 /* We use char because int might match the return type of a gcc2
18613 builtin and then its argument prototype would still apply. */
18614 char __fpu_control ();
18623 rm -f conftest.
$ac_objext conftest
$ac_exeext
18624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18625 (eval $ac_link) 2>conftest.er1
18627 grep -v '^ *+' conftest.er1
>conftest.err
18629 cat conftest.err
>&5
18630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18631 (exit $ac_status); } &&
18632 { ac_try
='test -z "$ac_c_werror_flag"
18633 || test ! -s conftest.err'
18634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18635 (eval $ac_try) 2>&5
18637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18638 (exit $ac_status); }; } &&
18639 { ac_try
='test -s conftest$ac_exeext'
18640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18641 (eval $ac_try) 2>&5
18643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18644 (exit $ac_status); }; }; then
18645 ac_cv_lib_ieee___fpu_control
=yes
18647 echo "$as_me: failed program was:" >&5
18648 sed 's/^/| /' conftest.
$ac_ext >&5
18650 ac_cv_lib_ieee___fpu_control
=no
18652 rm -f conftest.err conftest.
$ac_objext \
18653 conftest
$ac_exeext conftest.
$ac_ext
18654 LIBS
=$ac_check_lib_save_LIBS
18656 echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
18657 echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6
18658 if test $ac_cv_lib_ieee___fpu_control = yes; then
18659 cat >>confdefs.h
<<_ACEOF
18660 #define HAVE_LIBIEEE 1
18663 LIBS
="-lieee $LIBS"
18671 # Check for --with-fpectl
18672 echo "$as_me:$LINENO: checking for --with-fpectl" >&5
18673 echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6
18675 # Check whether --with-fpectl or --without-fpectl was given.
18676 if test "${with_fpectl+set}" = set; then
18677 withval
="$with_fpectl"
18679 if test "$withval" != no
18682 cat >>confdefs.h
<<\_ACEOF
18683 #define WANT_SIGFPE_HANDLER 1
18686 echo "$as_me:$LINENO: result: yes" >&5
18687 echo "${ECHO_T}yes" >&6
18688 else echo "$as_me:$LINENO: result: no" >&5
18689 echo "${ECHO_T}no" >&6
18692 echo "$as_me:$LINENO: result: no" >&5
18693 echo "${ECHO_T}no" >&6
18696 # check for --with-libm=...
18698 case $ac_sys_system in
18703 echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
18704 echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6
18706 # Check whether --with-libm or --without-libm was given.
18707 if test "${with_libm+set}" = set; then
18708 withval
="$with_libm"
18710 if test "$withval" = no
18712 echo "$as_me:$LINENO: result: force LIBM empty" >&5
18713 echo "${ECHO_T}force LIBM empty" >&6
18714 elif test "$withval" != yes
18716 echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
18717 echo "${ECHO_T}set LIBM=\"$withval\"" >&6
18718 else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
18719 echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
18720 { (exit 1); exit 1; }; }
18723 echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
18724 echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6
18727 # check for --with-libc=...
18729 echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
18730 echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6
18732 # Check whether --with-libc or --without-libc was given.
18733 if test "${with_libc+set}" = set; then
18734 withval
="$with_libc"
18736 if test "$withval" = no
18738 echo "$as_me:$LINENO: result: force LIBC empty" >&5
18739 echo "${ECHO_T}force LIBC empty" >&6
18740 elif test "$withval" != yes
18742 echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
18743 echo "${ECHO_T}set LIBC=\"$withval\"" >&6
18744 else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
18745 echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
18746 { (exit 1); exit 1; }; }
18749 echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
18750 echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6
18753 # check for hypot() in math library
18757 for ac_func
in hypot
18759 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18760 echo "$as_me:$LINENO: checking for $ac_func" >&5
18761 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18762 if eval "test \"\${$as_ac_var+set}\" = set"; then
18763 echo $ECHO_N "(cached) $ECHO_C" >&6
18765 cat >conftest.
$ac_ext <<_ACEOF
18768 cat confdefs.h
>>conftest.
$ac_ext
18769 cat >>conftest.
$ac_ext <<_ACEOF
18770 /* end confdefs.h. */
18771 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18772 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18773 #define $ac_func innocuous_$ac_func
18775 /* System header to define __stub macros and hopefully few prototypes,
18776 which can conflict with char $ac_func (); below.
18777 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18778 <limits.h> exists even on freestanding compilers. */
18781 # include <limits.h>
18783 # include <assert.h>
18788 /* Override any gcc2 internal prototype to avoid an error. */
18793 /* We use char because int might match the return type of a gcc2
18794 builtin and then its argument prototype would still apply. */
18796 /* The GNU C library defines this for functions which it implements
18797 to always fail with ENOSYS. Some functions are actually named
18798 something starting with __ and the normal name is an alias. */
18799 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18802 char (*f) () = $ac_func;
18811 return f != $ac_func;
18816 rm -f conftest.
$ac_objext conftest
$ac_exeext
18817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18818 (eval $ac_link) 2>conftest.er1
18820 grep -v '^ *+' conftest.er1
>conftest.err
18822 cat conftest.err
>&5
18823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18824 (exit $ac_status); } &&
18825 { ac_try
='test -z "$ac_c_werror_flag"
18826 || test ! -s conftest.err'
18827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18828 (eval $ac_try) 2>&5
18830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18831 (exit $ac_status); }; } &&
18832 { ac_try
='test -s conftest$ac_exeext'
18833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18834 (eval $ac_try) 2>&5
18836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18837 (exit $ac_status); }; }; then
18838 eval "$as_ac_var=yes"
18840 echo "$as_me: failed program was:" >&5
18841 sed 's/^/| /' conftest.
$ac_ext >&5
18843 eval "$as_ac_var=no"
18845 rm -f conftest.err conftest.
$ac_objext \
18846 conftest
$ac_exeext conftest.
$ac_ext
18848 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18849 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18850 if test `eval echo '${'$as_ac_var'}'` = yes; then
18851 cat >>confdefs.h
<<_ACEOF
18852 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18857 "$ac_func.$ac_objext" | \
18858 *" $ac_func.$ac_objext" | \
18859 "$ac_func.$ac_objext "* | \
18860 *" $ac_func.$ac_objext "* ) ;;
18861 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext" ;;
18870 # check for wchar.h
18871 if test "${ac_cv_header_wchar_h+set}" = set; then
18872 echo "$as_me:$LINENO: checking for wchar.h" >&5
18873 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
18874 if test "${ac_cv_header_wchar_h+set}" = set; then
18875 echo $ECHO_N "(cached) $ECHO_C" >&6
18877 echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
18878 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6
18880 # Is the header compilable?
18881 echo "$as_me:$LINENO: checking wchar.h usability" >&5
18882 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6
18883 cat >conftest.
$ac_ext <<_ACEOF
18886 cat confdefs.h
>>conftest.
$ac_ext
18887 cat >>conftest.
$ac_ext <<_ACEOF
18888 /* end confdefs.h. */
18889 $ac_includes_default
18892 rm -f conftest.
$ac_objext
18893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18894 (eval $ac_compile) 2>conftest.er1
18896 grep -v '^ *+' conftest.er1
>conftest.err
18898 cat conftest.err
>&5
18899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18900 (exit $ac_status); } &&
18901 { ac_try
='test -z "$ac_c_werror_flag"
18902 || test ! -s conftest.err'
18903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18904 (eval $ac_try) 2>&5
18906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18907 (exit $ac_status); }; } &&
18908 { ac_try
='test -s conftest.$ac_objext'
18909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18910 (eval $ac_try) 2>&5
18912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18913 (exit $ac_status); }; }; then
18914 ac_header_compiler
=yes
18916 echo "$as_me: failed program was:" >&5
18917 sed 's/^/| /' conftest.
$ac_ext >&5
18919 ac_header_compiler
=no
18921 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18922 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18923 echo "${ECHO_T}$ac_header_compiler" >&6
18925 # Is the header present?
18926 echo "$as_me:$LINENO: checking wchar.h presence" >&5
18927 echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6
18928 cat >conftest.
$ac_ext <<_ACEOF
18931 cat confdefs.h
>>conftest.
$ac_ext
18932 cat >>conftest.
$ac_ext <<_ACEOF
18933 /* end confdefs.h. */
18936 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18937 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
18939 grep -v '^ *+' conftest.er1
>conftest.err
18941 cat conftest.err
>&5
18942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18943 (exit $ac_status); } >/dev
/null
; then
18944 if test -s conftest.err
; then
18945 ac_cpp_err
=$ac_c_preproc_warn_flag
18946 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
18953 if test -z "$ac_cpp_err"; then
18954 ac_header_preproc
=yes
18956 echo "$as_me: failed program was:" >&5
18957 sed 's/^/| /' conftest.
$ac_ext >&5
18959 ac_header_preproc
=no
18961 rm -f conftest.err conftest.
$ac_ext
18962 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18963 echo "${ECHO_T}$ac_header_preproc" >&6
18965 # So? What about this header?
18966 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18968 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
18969 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18970 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
18971 echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
18972 ac_header_preproc
=yes
18975 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
18976 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
18977 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
18978 echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
18979 { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
18980 echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
18981 { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5
18982 echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;}
18983 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
18984 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
18985 { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
18986 echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
18989 ## ------------------------------------------------ ##
18990 ## Report this to http://www.python.org/python-bugs ##
18991 ## ------------------------------------------------ ##
18994 sed "s/^/$as_me: WARNING: /" >&2
18997 echo "$as_me:$LINENO: checking for wchar.h" >&5
18998 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
18999 if test "${ac_cv_header_wchar_h+set}" = set; then
19000 echo $ECHO_N "(cached) $ECHO_C" >&6
19002 ac_cv_header_wchar_h
=$ac_header_preproc
19004 echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
19005 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6
19008 if test $ac_cv_header_wchar_h = yes; then
19011 cat >>confdefs.h
<<\_ACEOF
19012 #define HAVE_WCHAR_H 1
19024 # determine wchar_t size
19025 if test "$wchar_h" = yes
19027 echo "$as_me:$LINENO: checking for wchar_t" >&5
19028 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
19029 if test "${ac_cv_type_wchar_t+set}" = set; then
19030 echo $ECHO_N "(cached) $ECHO_C" >&6
19032 cat >conftest.
$ac_ext <<_ACEOF
19035 cat confdefs.h
>>conftest.
$ac_ext
19036 cat >>conftest.
$ac_ext <<_ACEOF
19037 /* end confdefs.h. */
19045 if (sizeof (wchar_t))
19051 rm -f conftest.
$ac_objext
19052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19053 (eval $ac_compile) 2>conftest.er1
19055 grep -v '^ *+' conftest.er1
>conftest.err
19057 cat conftest.err
>&5
19058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19059 (exit $ac_status); } &&
19060 { ac_try
='test -z "$ac_c_werror_flag"
19061 || test ! -s conftest.err'
19062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19063 (eval $ac_try) 2>&5
19065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19066 (exit $ac_status); }; } &&
19067 { ac_try
='test -s conftest.$ac_objext'
19068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19069 (eval $ac_try) 2>&5
19071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19072 (exit $ac_status); }; }; then
19073 ac_cv_type_wchar_t
=yes
19075 echo "$as_me: failed program was:" >&5
19076 sed 's/^/| /' conftest.
$ac_ext >&5
19078 ac_cv_type_wchar_t
=no
19080 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19082 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
19083 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
19085 echo "$as_me:$LINENO: checking size of wchar_t" >&5
19086 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
19087 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
19088 echo $ECHO_N "(cached) $ECHO_C" >&6
19090 if test "$ac_cv_type_wchar_t" = yes; then
19091 # The cast to unsigned long works around a bug in the HP C Compiler
19092 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19093 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19094 # This bug is HP SR number 8606223364.
19095 if test "$cross_compiling" = yes; then
19096 # Depending upon the size, compute the lo and hi bounds.
19097 cat >conftest.
$ac_ext <<_ACEOF
19100 cat confdefs.h
>>conftest.
$ac_ext
19101 cat >>conftest.
$ac_ext <<_ACEOF
19102 /* end confdefs.h. */
19108 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
19115 rm -f conftest.
$ac_objext
19116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19117 (eval $ac_compile) 2>conftest.er1
19119 grep -v '^ *+' conftest.er1
>conftest.err
19121 cat conftest.err
>&5
19122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19123 (exit $ac_status); } &&
19124 { ac_try
='test -z "$ac_c_werror_flag"
19125 || test ! -s conftest.err'
19126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19127 (eval $ac_try) 2>&5
19129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19130 (exit $ac_status); }; } &&
19131 { ac_try
='test -s conftest.$ac_objext'
19132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19133 (eval $ac_try) 2>&5
19135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19136 (exit $ac_status); }; }; then
19139 cat >conftest.
$ac_ext <<_ACEOF
19142 cat confdefs.h
>>conftest.
$ac_ext
19143 cat >>conftest.
$ac_ext <<_ACEOF
19144 /* end confdefs.h. */
19150 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19157 rm -f conftest.
$ac_objext
19158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19159 (eval $ac_compile) 2>conftest.er1
19161 grep -v '^ *+' conftest.er1
>conftest.err
19163 cat conftest.err
>&5
19164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19165 (exit $ac_status); } &&
19166 { ac_try
='test -z "$ac_c_werror_flag"
19167 || test ! -s conftest.err'
19168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19169 (eval $ac_try) 2>&5
19171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19172 (exit $ac_status); }; } &&
19173 { ac_try
='test -s conftest.$ac_objext'
19174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19175 (eval $ac_try) 2>&5
19177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19178 (exit $ac_status); }; }; then
19179 ac_hi
=$ac_mid; break
19181 echo "$as_me: failed program was:" >&5
19182 sed 's/^/| /' conftest.
$ac_ext >&5
19184 ac_lo
=`expr $ac_mid + 1`
19185 if test $ac_lo -le $ac_mid; then
19189 ac_mid
=`expr 2 '*' $ac_mid + 1`
19191 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19194 echo "$as_me: failed program was:" >&5
19195 sed 's/^/| /' conftest.
$ac_ext >&5
19197 cat >conftest.
$ac_ext <<_ACEOF
19200 cat confdefs.h
>>conftest.
$ac_ext
19201 cat >>conftest.
$ac_ext <<_ACEOF
19202 /* end confdefs.h. */
19208 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
19215 rm -f conftest.
$ac_objext
19216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19217 (eval $ac_compile) 2>conftest.er1
19219 grep -v '^ *+' conftest.er1
>conftest.err
19221 cat conftest.err
>&5
19222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19223 (exit $ac_status); } &&
19224 { ac_try
='test -z "$ac_c_werror_flag"
19225 || test ! -s conftest.err'
19226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19227 (eval $ac_try) 2>&5
19229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19230 (exit $ac_status); }; } &&
19231 { ac_try
='test -s conftest.$ac_objext'
19232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19233 (eval $ac_try) 2>&5
19235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19236 (exit $ac_status); }; }; then
19239 cat >conftest.
$ac_ext <<_ACEOF
19242 cat confdefs.h
>>conftest.
$ac_ext
19243 cat >>conftest.
$ac_ext <<_ACEOF
19244 /* end confdefs.h. */
19250 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
19257 rm -f conftest.
$ac_objext
19258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19259 (eval $ac_compile) 2>conftest.er1
19261 grep -v '^ *+' conftest.er1
>conftest.err
19263 cat conftest.err
>&5
19264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19265 (exit $ac_status); } &&
19266 { ac_try
='test -z "$ac_c_werror_flag"
19267 || test ! -s conftest.err'
19268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19269 (eval $ac_try) 2>&5
19271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19272 (exit $ac_status); }; } &&
19273 { ac_try
='test -s conftest.$ac_objext'
19274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19275 (eval $ac_try) 2>&5
19277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19278 (exit $ac_status); }; }; then
19279 ac_lo
=$ac_mid; break
19281 echo "$as_me: failed program was:" >&5
19282 sed 's/^/| /' conftest.
$ac_ext >&5
19284 ac_hi
=`expr '(' $ac_mid ')' - 1`
19285 if test $ac_mid -le $ac_hi; then
19289 ac_mid
=`expr 2 '*' $ac_mid`
19291 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19294 echo "$as_me: failed program was:" >&5
19295 sed 's/^/| /' conftest.
$ac_ext >&5
19299 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19301 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19302 # Binary search between lo and hi bounds.
19303 while test "x$ac_lo" != "x$ac_hi"; do
19304 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19305 cat >conftest.
$ac_ext <<_ACEOF
19308 cat confdefs.h
>>conftest.
$ac_ext
19309 cat >>conftest.
$ac_ext <<_ACEOF
19310 /* end confdefs.h. */
19316 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19323 rm -f conftest.
$ac_objext
19324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19325 (eval $ac_compile) 2>conftest.er1
19327 grep -v '^ *+' conftest.er1
>conftest.err
19329 cat conftest.err
>&5
19330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19331 (exit $ac_status); } &&
19332 { ac_try
='test -z "$ac_c_werror_flag"
19333 || test ! -s conftest.err'
19334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19335 (eval $ac_try) 2>&5
19337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19338 (exit $ac_status); }; } &&
19339 { ac_try
='test -s conftest.$ac_objext'
19340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19341 (eval $ac_try) 2>&5
19343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19344 (exit $ac_status); }; }; then
19347 echo "$as_me: failed program was:" >&5
19348 sed 's/^/| /' conftest.
$ac_ext >&5
19350 ac_lo
=`expr '(' $ac_mid ')' + 1`
19352 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19355 ?
*) ac_cv_sizeof_wchar_t
=$ac_lo;;
19356 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
19357 See \`config.log' for more details." >&5
19358 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
19359 See \`config.log' for more details." >&2;}
19360 { (exit 1); exit 1; }; } ;;
19363 if test "$cross_compiling" = yes; then
19364 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19365 See \`config.log' for more details." >&5
19366 echo "$as_me: error: cannot run test program while cross compiling
19367 See \`config.log' for more details." >&2;}
19368 { (exit 1); exit 1; }; }
19370 cat >conftest.
$ac_ext <<_ACEOF
19373 cat confdefs.h
>>conftest.
$ac_ext
19374 cat >>conftest.
$ac_ext <<_ACEOF
19375 /* end confdefs.h. */
19378 long longval () { return (long) (sizeof (wchar_t)); }
19379 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
19381 #include <stdlib.h>
19386 FILE *f = fopen ("conftest.val", "w");
19389 if (((long) (sizeof (wchar_t))) < 0)
19391 long i = longval ();
19392 if (i != ((long) (sizeof (wchar_t))))
19394 fprintf (f, "%ld\n", i);
19398 unsigned long i = ulongval ();
19399 if (i != ((long) (sizeof (wchar_t))))
19401 fprintf (f, "%lu\n", i);
19403 exit (ferror (f) || fclose (f) != 0);
19409 rm -f conftest
$ac_exeext
19410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19411 (eval $ac_link) 2>&5
19413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19414 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19416 (eval $ac_try) 2>&5
19418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19419 (exit $ac_status); }; }; then
19420 ac_cv_sizeof_wchar_t
=`cat conftest.val`
19422 echo "$as_me: program exited with status $ac_status" >&5
19423 echo "$as_me: failed program was:" >&5
19424 sed 's/^/| /' conftest.
$ac_ext >&5
19426 ( exit $ac_status )
19427 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
19428 See \`config.log' for more details." >&5
19429 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
19430 See \`config.log' for more details." >&2;}
19431 { (exit 1); exit 1; }; }
19433 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
19438 ac_cv_sizeof_wchar_t
=0
19441 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
19442 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
19443 cat >>confdefs.h
<<_ACEOF
19444 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
19450 echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5
19451 echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6
19453 cat >conftest.
$ac_ext <<_ACEOF
19456 cat confdefs.h
>>conftest.
$ac_ext
19457 cat >>conftest.
$ac_ext <<_ACEOF
19458 /* end confdefs.h. */
19461 #if TCL_UTF_MAX != 6
19462 # error "NOT UCS4_TCL"
19472 rm -f conftest.
$ac_objext
19473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19474 (eval $ac_compile) 2>conftest.er1
19476 grep -v '^ *+' conftest.er1
>conftest.err
19478 cat conftest.err
>&5
19479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19480 (exit $ac_status); } &&
19481 { ac_try
='test -z "$ac_c_werror_flag"
19482 || test ! -s conftest.err'
19483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19484 (eval $ac_try) 2>&5
19486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19487 (exit $ac_status); }; } &&
19488 { ac_try
='test -s conftest.$ac_objext'
19489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19490 (eval $ac_try) 2>&5
19492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19493 (exit $ac_status); }; }; then
19496 cat >>confdefs.h
<<\_ACEOF
19497 #define HAVE_UCS4_TCL 1
19503 echo "$as_me: failed program was:" >&5
19504 sed 's/^/| /' conftest.
$ac_ext >&5
19507 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19508 echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5
19509 echo "${ECHO_T}$have_ucs4_tcl" >&6
19511 # check whether wchar_t is signed or not
19512 if test "$wchar_h" = yes
19514 # check whether wchar_t is signed or not
19515 echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5
19516 echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6
19517 if test "${ac_cv_wchar_t_signed+set}" = set; then
19518 echo $ECHO_N "(cached) $ECHO_C" >&6
19521 if test "$cross_compiling" = yes; then
19522 ac_cv_wchar_t_signed
=yes
19524 cat >conftest.
$ac_ext <<_ACEOF
19527 cat confdefs.h
>>conftest.
$ac_ext
19528 cat >>conftest.
$ac_ext <<_ACEOF
19529 /* end confdefs.h. */
19534 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 1 : 0);
19538 rm -f conftest
$ac_exeext
19539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19540 (eval $ac_link) 2>&5
19542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19543 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19545 (eval $ac_try) 2>&5
19547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19548 (exit $ac_status); }; }; then
19549 ac_cv_wchar_t_signed
=yes
19551 echo "$as_me: program exited with status $ac_status" >&5
19552 echo "$as_me: failed program was:" >&5
19553 sed 's/^/| /' conftest.
$ac_ext >&5
19555 ( exit $ac_status )
19556 ac_cv_wchar_t_signed
=no
19558 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
19562 echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5
19563 echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6
19566 echo "$as_me:$LINENO: checking what type to use for unicode" >&5
19567 echo $ECHO_N "checking what type to use for unicode... $ECHO_C" >&6
19568 # Check whether --enable-unicode or --disable-unicode was given.
19569 if test "${enable_unicode+set}" = set; then
19570 enableval
="$enable_unicode"
19576 if test $enable_unicode = yes
19578 # Without any arguments, Py_UNICODE defaults to two-byte mode
19579 case "$have_ucs4_tcl" in
19580 yes) enable_unicode
="ucs4"
19582 *) enable_unicode
="ucs2"
19589 case "$enable_unicode" in
19590 ucs2
) unicode_size
="2"
19591 cat >>confdefs.h
<<\_ACEOF
19592 #define Py_UNICODE_SIZE 2
19596 ucs4
) unicode_size
="4"
19597 cat >>confdefs.h
<<\_ACEOF
19598 #define Py_UNICODE_SIZE 4
19608 if test "$enable_unicode" = "no"
19611 echo "$as_me:$LINENO: result: not used" >&5
19612 echo "${ECHO_T}not used" >&6
19614 UNICODE_OBJS
="Objects/unicodeobject.o Objects/unicodectype.o"
19616 cat >>confdefs.h
<<\_ACEOF
19617 #define Py_USING_UNICODE 1
19621 # wchar_t is only usable if it maps to an unsigned type
19622 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
19623 -a "$ac_cv_wchar_t_signed" = "no"
19625 PY_UNICODE_TYPE
="wchar_t"
19627 cat >>confdefs.h
<<\_ACEOF
19628 #define HAVE_USABLE_WCHAR_T 1
19631 cat >>confdefs.h
<<\_ACEOF
19632 #define PY_UNICODE_TYPE wchar_t
19635 elif test "$ac_cv_sizeof_short" = "$unicode_size"
19637 PY_UNICODE_TYPE
="unsigned short"
19638 cat >>confdefs.h
<<\_ACEOF
19639 #define PY_UNICODE_TYPE unsigned short
19642 elif test "$ac_cv_sizeof_long" = "$unicode_size"
19644 PY_UNICODE_TYPE
="unsigned long"
19645 cat >>confdefs.h
<<\_ACEOF
19646 #define PY_UNICODE_TYPE unsigned long
19650 PY_UNICODE_TYPE
="no type found"
19652 echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
19653 echo "${ECHO_T}$PY_UNICODE_TYPE" >&6
19656 # check for endianness
19657 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
19658 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
19659 if test "${ac_cv_c_bigendian+set}" = set; then
19660 echo $ECHO_N "(cached) $ECHO_C" >&6
19662 # See if sys/param.h defines the BYTE_ORDER macro.
19663 cat >conftest.
$ac_ext <<_ACEOF
19666 cat confdefs.h
>>conftest.
$ac_ext
19667 cat >>conftest.
$ac_ext <<_ACEOF
19668 /* end confdefs.h. */
19669 #include <sys/types.h>
19670 #include <sys/param.h>
19675 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
19676 bogus endian macros
19683 rm -f conftest.
$ac_objext
19684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19685 (eval $ac_compile) 2>conftest.er1
19687 grep -v '^ *+' conftest.er1
>conftest.err
19689 cat conftest.err
>&5
19690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19691 (exit $ac_status); } &&
19692 { ac_try
='test -z "$ac_c_werror_flag"
19693 || test ! -s conftest.err'
19694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19695 (eval $ac_try) 2>&5
19697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19698 (exit $ac_status); }; } &&
19699 { ac_try
='test -s conftest.$ac_objext'
19700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19701 (eval $ac_try) 2>&5
19703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19704 (exit $ac_status); }; }; then
19705 # It does; now see whether it defined to BIG_ENDIAN or not.
19706 cat >conftest.
$ac_ext <<_ACEOF
19709 cat confdefs.h
>>conftest.
$ac_ext
19710 cat >>conftest.
$ac_ext <<_ACEOF
19711 /* end confdefs.h. */
19712 #include <sys/types.h>
19713 #include <sys/param.h>
19718 #if BYTE_ORDER != BIG_ENDIAN
19726 rm -f conftest.
$ac_objext
19727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19728 (eval $ac_compile) 2>conftest.er1
19730 grep -v '^ *+' conftest.er1
>conftest.err
19732 cat conftest.err
>&5
19733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19734 (exit $ac_status); } &&
19735 { ac_try
='test -z "$ac_c_werror_flag"
19736 || test ! -s conftest.err'
19737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19738 (eval $ac_try) 2>&5
19740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19741 (exit $ac_status); }; } &&
19742 { ac_try
='test -s conftest.$ac_objext'
19743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19744 (eval $ac_try) 2>&5
19746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19747 (exit $ac_status); }; }; then
19748 ac_cv_c_bigendian
=yes
19750 echo "$as_me: failed program was:" >&5
19751 sed 's/^/| /' conftest.
$ac_ext >&5
19753 ac_cv_c_bigendian
=no
19755 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19757 echo "$as_me: failed program was:" >&5
19758 sed 's/^/| /' conftest.
$ac_ext >&5
19760 # It does not; compile a test program.
19761 if test "$cross_compiling" = yes; then
19762 # try to guess the endianness by grepping values into an object file
19763 ac_cv_c_bigendian
=unknown
19764 cat >conftest.
$ac_ext <<_ACEOF
19767 cat confdefs.h
>>conftest.
$ac_ext
19768 cat >>conftest.
$ac_ext <<_ACEOF
19769 /* end confdefs.h. */
19770 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
19771 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
19772 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
19773 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
19774 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
19775 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
19779 _ascii (); _ebcdic ();
19784 rm -f conftest.
$ac_objext
19785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19786 (eval $ac_compile) 2>conftest.er1
19788 grep -v '^ *+' conftest.er1
>conftest.err
19790 cat conftest.err
>&5
19791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19792 (exit $ac_status); } &&
19793 { ac_try
='test -z "$ac_c_werror_flag"
19794 || test ! -s conftest.err'
19795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19796 (eval $ac_try) 2>&5
19798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19799 (exit $ac_status); }; } &&
19800 { ac_try
='test -s conftest.$ac_objext'
19801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19802 (eval $ac_try) 2>&5
19804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19805 (exit $ac_status); }; }; then
19806 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
19807 ac_cv_c_bigendian
=yes
19809 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
19810 if test "$ac_cv_c_bigendian" = unknown
; then
19811 ac_cv_c_bigendian
=no
19813 # finding both strings is unlikely to happen, but who knows?
19814 ac_cv_c_bigendian
=unknown
19818 echo "$as_me: failed program was:" >&5
19819 sed 's/^/| /' conftest.
$ac_ext >&5
19822 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19824 cat >conftest.
$ac_ext <<_ACEOF
19827 cat confdefs.h
>>conftest.
$ac_ext
19828 cat >>conftest.
$ac_ext <<_ACEOF
19829 /* end confdefs.h. */
19833 /* Are we little or big endian? From Harbison&Steele. */
19837 char c[sizeof (long)];
19840 exit (u.c[sizeof (long) - 1] == 1);
19843 rm -f conftest
$ac_exeext
19844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19845 (eval $ac_link) 2>&5
19847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19848 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19850 (eval $ac_try) 2>&5
19852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19853 (exit $ac_status); }; }; then
19854 ac_cv_c_bigendian
=no
19856 echo "$as_me: program exited with status $ac_status" >&5
19857 echo "$as_me: failed program was:" >&5
19858 sed 's/^/| /' conftest.
$ac_ext >&5
19860 ( exit $ac_status )
19861 ac_cv_c_bigendian
=yes
19863 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
19866 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19868 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
19869 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
19870 case $ac_cv_c_bigendian in
19873 cat >>confdefs.h
<<\_ACEOF
19874 #define WORDS_BIGENDIAN 1
19880 { { echo "$as_me:$LINENO: error: unknown endianness
19881 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
19882 echo "$as_me: error: unknown endianness
19883 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
19884 { (exit 1); exit 1; }; } ;;
19888 # Check whether right shifting a negative integer extends the sign bit
19889 # or fills with zeros (like the Cray J90, according to Tim Peters).
19890 echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
19891 echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6
19892 if test "${ac_cv_rshift_extends_sign+set}" = set; then
19893 echo $ECHO_N "(cached) $ECHO_C" >&6
19896 if test "$cross_compiling" = yes; then
19897 ac_cv_rshift_extends_sign
=yes
19899 cat >conftest.
$ac_ext <<_ACEOF
19902 cat confdefs.h
>>conftest.
$ac_ext
19903 cat >>conftest.
$ac_ext <<_ACEOF
19904 /* end confdefs.h. */
19908 exit(((-1)>>3 == -1) ? 0 : 1);
19912 rm -f conftest
$ac_exeext
19913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19914 (eval $ac_link) 2>&5
19916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19917 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19919 (eval $ac_try) 2>&5
19921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19922 (exit $ac_status); }; }; then
19923 ac_cv_rshift_extends_sign
=yes
19925 echo "$as_me: program exited with status $ac_status" >&5
19926 echo "$as_me: failed program was:" >&5
19927 sed 's/^/| /' conftest.
$ac_ext >&5
19929 ( exit $ac_status )
19930 ac_cv_rshift_extends_sign
=no
19932 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
19936 echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
19937 echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6
19938 if test "$ac_cv_rshift_extends_sign" = no
19941 cat >>confdefs.h
<<\_ACEOF
19942 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
19947 # check for getc_unlocked and related locking functions
19948 echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
19949 echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6
19950 if test "${ac_cv_have_getc_unlocked+set}" = set; then
19951 echo $ECHO_N "(cached) $ECHO_C" >&6
19954 cat >conftest.
$ac_ext <<_ACEOF
19957 cat confdefs.h
>>conftest.
$ac_ext
19958 cat >>conftest.
$ac_ext <<_ACEOF
19959 /* end confdefs.h. */
19965 FILE *f = fopen("/dev/null", "r");
19974 rm -f conftest.
$ac_objext conftest
$ac_exeext
19975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19976 (eval $ac_link) 2>conftest.er1
19978 grep -v '^ *+' conftest.er1
>conftest.err
19980 cat conftest.err
>&5
19981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19982 (exit $ac_status); } &&
19983 { ac_try
='test -z "$ac_c_werror_flag"
19984 || test ! -s conftest.err'
19985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19986 (eval $ac_try) 2>&5
19988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19989 (exit $ac_status); }; } &&
19990 { ac_try
='test -s conftest$ac_exeext'
19991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19992 (eval $ac_try) 2>&5
19994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19995 (exit $ac_status); }; }; then
19996 ac_cv_have_getc_unlocked
=yes
19998 echo "$as_me: failed program was:" >&5
19999 sed 's/^/| /' conftest.
$ac_ext >&5
20001 ac_cv_have_getc_unlocked
=no
20003 rm -f conftest.err conftest.
$ac_objext \
20004 conftest
$ac_exeext conftest.
$ac_ext
20007 echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
20008 echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6
20009 if test "$ac_cv_have_getc_unlocked" = yes
20012 cat >>confdefs.h
<<\_ACEOF
20013 #define HAVE_GETC_UNLOCKED 1
20018 # check where readline lives
20020 echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
20021 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
20022 if test "${ac_cv_lib_readline_readline+set}" = set; then
20023 echo $ECHO_N "(cached) $ECHO_C" >&6
20025 ac_check_lib_save_LIBS
=$LIBS
20026 LIBS
="-lreadline $LIBS"
20027 cat >conftest.
$ac_ext <<_ACEOF
20030 cat confdefs.h
>>conftest.
$ac_ext
20031 cat >>conftest.
$ac_ext <<_ACEOF
20032 /* end confdefs.h. */
20034 /* Override any gcc2 internal prototype to avoid an error. */
20038 /* We use char because int might match the return type of a gcc2
20039 builtin and then its argument prototype would still apply. */
20049 rm -f conftest.
$ac_objext conftest
$ac_exeext
20050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20051 (eval $ac_link) 2>conftest.er1
20053 grep -v '^ *+' conftest.er1
>conftest.err
20055 cat conftest.err
>&5
20056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20057 (exit $ac_status); } &&
20058 { ac_try
='test -z "$ac_c_werror_flag"
20059 || test ! -s conftest.err'
20060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20061 (eval $ac_try) 2>&5
20063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20064 (exit $ac_status); }; } &&
20065 { ac_try
='test -s conftest$ac_exeext'
20066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20067 (eval $ac_try) 2>&5
20069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20070 (exit $ac_status); }; }; then
20071 ac_cv_lib_readline_readline
=yes
20073 echo "$as_me: failed program was:" >&5
20074 sed 's/^/| /' conftest.
$ac_ext >&5
20076 ac_cv_lib_readline_readline
=no
20078 rm -f conftest.err conftest.
$ac_objext \
20079 conftest
$ac_exeext conftest.
$ac_ext
20080 LIBS
=$ac_check_lib_save_LIBS
20082 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
20083 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
20084 if test $ac_cv_lib_readline_readline = yes; then
20085 cat >>confdefs.h
<<_ACEOF
20086 #define HAVE_LIBREADLINE 1
20089 LIBS
="-lreadline $LIBS"
20093 if test "$ac_cv_have_readline_readline" = no
20096 echo "$as_me:$LINENO: checking for readline in -ltermcap" >&5
20097 echo $ECHO_N "checking for readline in -ltermcap... $ECHO_C" >&6
20098 if test "${ac_cv_lib_termcap_readline+set}" = set; then
20099 echo $ECHO_N "(cached) $ECHO_C" >&6
20101 ac_check_lib_save_LIBS
=$LIBS
20102 LIBS
="-ltermcap $LIBS"
20103 cat >conftest.
$ac_ext <<_ACEOF
20106 cat confdefs.h
>>conftest.
$ac_ext
20107 cat >>conftest.
$ac_ext <<_ACEOF
20108 /* end confdefs.h. */
20110 /* Override any gcc2 internal prototype to avoid an error. */
20114 /* We use char because int might match the return type of a gcc2
20115 builtin and then its argument prototype would still apply. */
20125 rm -f conftest.
$ac_objext conftest
$ac_exeext
20126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20127 (eval $ac_link) 2>conftest.er1
20129 grep -v '^ *+' conftest.er1
>conftest.err
20131 cat conftest.err
>&5
20132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20133 (exit $ac_status); } &&
20134 { ac_try
='test -z "$ac_c_werror_flag"
20135 || test ! -s conftest.err'
20136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20137 (eval $ac_try) 2>&5
20139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20140 (exit $ac_status); }; } &&
20141 { ac_try
='test -s conftest$ac_exeext'
20142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20143 (eval $ac_try) 2>&5
20145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20146 (exit $ac_status); }; }; then
20147 ac_cv_lib_termcap_readline
=yes
20149 echo "$as_me: failed program was:" >&5
20150 sed 's/^/| /' conftest.
$ac_ext >&5
20152 ac_cv_lib_termcap_readline
=no
20154 rm -f conftest.err conftest.
$ac_objext \
20155 conftest
$ac_exeext conftest.
$ac_ext
20156 LIBS
=$ac_check_lib_save_LIBS
20158 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_readline" >&5
20159 echo "${ECHO_T}$ac_cv_lib_termcap_readline" >&6
20160 if test $ac_cv_lib_termcap_readline = yes; then
20161 cat >>confdefs.h
<<_ACEOF
20162 #define HAVE_LIBTERMCAP 1
20165 LIBS
="-ltermcap $LIBS"
20171 # check for readline 2.1
20172 echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
20173 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6
20174 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
20175 echo $ECHO_N "(cached) $ECHO_C" >&6
20177 ac_check_lib_save_LIBS
=$LIBS
20178 LIBS
="-lreadline $LIBS"
20179 cat >conftest.
$ac_ext <<_ACEOF
20182 cat confdefs.h
>>conftest.
$ac_ext
20183 cat >>conftest.
$ac_ext <<_ACEOF
20184 /* end confdefs.h. */
20186 /* Override any gcc2 internal prototype to avoid an error. */
20190 /* We use char because int might match the return type of a gcc2
20191 builtin and then its argument prototype would still apply. */
20192 char rl_callback_handler_install ();
20196 rl_callback_handler_install ();
20201 rm -f conftest.
$ac_objext conftest
$ac_exeext
20202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20203 (eval $ac_link) 2>conftest.er1
20205 grep -v '^ *+' conftest.er1
>conftest.err
20207 cat conftest.err
>&5
20208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20209 (exit $ac_status); } &&
20210 { ac_try
='test -z "$ac_c_werror_flag"
20211 || test ! -s conftest.err'
20212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20213 (eval $ac_try) 2>&5
20215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20216 (exit $ac_status); }; } &&
20217 { ac_try
='test -s conftest$ac_exeext'
20218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20219 (eval $ac_try) 2>&5
20221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20222 (exit $ac_status); }; }; then
20223 ac_cv_lib_readline_rl_callback_handler_install
=yes
20225 echo "$as_me: failed program was:" >&5
20226 sed 's/^/| /' conftest.
$ac_ext >&5
20228 ac_cv_lib_readline_rl_callback_handler_install
=no
20230 rm -f conftest.err conftest.
$ac_objext \
20231 conftest
$ac_exeext conftest.
$ac_ext
20232 LIBS
=$ac_check_lib_save_LIBS
20234 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
20235 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6
20236 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
20238 cat >>confdefs.h
<<\_ACEOF
20239 #define HAVE_RL_CALLBACK 1
20245 # check for readline 2.2
20246 cat >conftest.
$ac_ext <<_ACEOF
20249 cat confdefs.h
>>conftest.
$ac_ext
20250 cat >>conftest.
$ac_ext <<_ACEOF
20251 /* end confdefs.h. */
20252 #include <readline/readline.h>
20254 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20255 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20257 grep -v '^ *+' conftest.er1
>conftest.err
20259 cat conftest.err
>&5
20260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20261 (exit $ac_status); } >/dev
/null
; then
20262 if test -s conftest.err
; then
20263 ac_cpp_err
=$ac_c_preproc_warn_flag
20264 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20271 if test -z "$ac_cpp_err"; then
20274 echo "$as_me: failed program was:" >&5
20275 sed 's/^/| /' conftest.
$ac_ext >&5
20279 rm -f conftest.err conftest.
$ac_ext
20280 if test $have_readline = yes
20282 cat >conftest.
$ac_ext <<_ACEOF
20285 cat confdefs.h
>>conftest.
$ac_ext
20286 cat >>conftest.
$ac_ext <<_ACEOF
20287 /* end confdefs.h. */
20288 #include <readline/readline.h>
20291 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20292 $EGREP "extern int rl_completion_append_character;" >/dev
/null
2>&1; then
20294 cat >>confdefs.h
<<\_ACEOF
20295 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
20303 # check for readline 4.0
20304 echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
20305 echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6
20306 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
20307 echo $ECHO_N "(cached) $ECHO_C" >&6
20309 ac_check_lib_save_LIBS
=$LIBS
20310 LIBS
="-lreadline $LIBS"
20311 cat >conftest.
$ac_ext <<_ACEOF
20314 cat confdefs.h
>>conftest.
$ac_ext
20315 cat >>conftest.
$ac_ext <<_ACEOF
20316 /* end confdefs.h. */
20318 /* Override any gcc2 internal prototype to avoid an error. */
20322 /* We use char because int might match the return type of a gcc2
20323 builtin and then its argument prototype would still apply. */
20324 char rl_pre_input_hook ();
20328 rl_pre_input_hook ();
20333 rm -f conftest.
$ac_objext conftest
$ac_exeext
20334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20335 (eval $ac_link) 2>conftest.er1
20337 grep -v '^ *+' conftest.er1
>conftest.err
20339 cat conftest.err
>&5
20340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20341 (exit $ac_status); } &&
20342 { ac_try
='test -z "$ac_c_werror_flag"
20343 || test ! -s conftest.err'
20344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20345 (eval $ac_try) 2>&5
20347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20348 (exit $ac_status); }; } &&
20349 { ac_try
='test -s conftest$ac_exeext'
20350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20351 (eval $ac_try) 2>&5
20353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20354 (exit $ac_status); }; }; then
20355 ac_cv_lib_readline_rl_pre_input_hook
=yes
20357 echo "$as_me: failed program was:" >&5
20358 sed 's/^/| /' conftest.
$ac_ext >&5
20360 ac_cv_lib_readline_rl_pre_input_hook
=no
20362 rm -f conftest.err conftest.
$ac_objext \
20363 conftest
$ac_exeext conftest.
$ac_ext
20364 LIBS
=$ac_check_lib_save_LIBS
20366 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
20367 echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6
20368 if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
20370 cat >>confdefs.h
<<\_ACEOF
20371 #define HAVE_RL_PRE_INPUT_HOOK 1
20377 # check for readline 4.2
20378 echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
20379 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6
20380 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
20381 echo $ECHO_N "(cached) $ECHO_C" >&6
20383 ac_check_lib_save_LIBS
=$LIBS
20384 LIBS
="-lreadline $LIBS"
20385 cat >conftest.
$ac_ext <<_ACEOF
20388 cat confdefs.h
>>conftest.
$ac_ext
20389 cat >>conftest.
$ac_ext <<_ACEOF
20390 /* end confdefs.h. */
20392 /* Override any gcc2 internal prototype to avoid an error. */
20396 /* We use char because int might match the return type of a gcc2
20397 builtin and then its argument prototype would still apply. */
20398 char rl_completion_matches ();
20402 rl_completion_matches ();
20407 rm -f conftest.
$ac_objext conftest
$ac_exeext
20408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20409 (eval $ac_link) 2>conftest.er1
20411 grep -v '^ *+' conftest.er1
>conftest.err
20413 cat conftest.err
>&5
20414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20415 (exit $ac_status); } &&
20416 { ac_try
='test -z "$ac_c_werror_flag"
20417 || test ! -s conftest.err'
20418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20419 (eval $ac_try) 2>&5
20421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20422 (exit $ac_status); }; } &&
20423 { ac_try
='test -s conftest$ac_exeext'
20424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20425 (eval $ac_try) 2>&5
20427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20428 (exit $ac_status); }; }; then
20429 ac_cv_lib_readline_rl_completion_matches
=yes
20431 echo "$as_me: failed program was:" >&5
20432 sed 's/^/| /' conftest.
$ac_ext >&5
20434 ac_cv_lib_readline_rl_completion_matches
=no
20436 rm -f conftest.err conftest.
$ac_objext \
20437 conftest
$ac_exeext conftest.
$ac_ext
20438 LIBS
=$ac_check_lib_save_LIBS
20440 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
20441 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6
20442 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
20444 cat >>confdefs.h
<<\_ACEOF
20445 #define HAVE_RL_COMPLETION_MATCHES 1
20451 # also in readline 4.2
20452 cat >conftest.
$ac_ext <<_ACEOF
20455 cat confdefs.h
>>conftest.
$ac_ext
20456 cat >>conftest.
$ac_ext <<_ACEOF
20457 /* end confdefs.h. */
20458 #include <readline/readline.h>
20460 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20461 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20463 grep -v '^ *+' conftest.er1
>conftest.err
20465 cat conftest.err
>&5
20466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20467 (exit $ac_status); } >/dev
/null
; then
20468 if test -s conftest.err
; then
20469 ac_cpp_err
=$ac_c_preproc_warn_flag
20470 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20477 if test -z "$ac_cpp_err"; then
20480 echo "$as_me: failed program was:" >&5
20481 sed 's/^/| /' conftest.
$ac_ext >&5
20485 rm -f conftest.err conftest.
$ac_ext
20486 if test $have_readline = yes
20488 cat >conftest.
$ac_ext <<_ACEOF
20491 cat confdefs.h
>>conftest.
$ac_ext
20492 cat >>conftest.
$ac_ext <<_ACEOF
20493 /* end confdefs.h. */
20494 #include <readline/readline.h>
20497 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20498 $EGREP "extern int rl_catch_signals;" >/dev
/null
2>&1; then
20500 cat >>confdefs.h
<<\_ACEOF
20501 #define HAVE_RL_CATCH_SIGNAL 1
20509 echo "$as_me:$LINENO: checking for broken nice()" >&5
20510 echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6
20511 if test "${ac_cv_broken_nice+set}" = set; then
20512 echo $ECHO_N "(cached) $ECHO_C" >&6
20515 if test "$cross_compiling" = yes; then
20516 ac_cv_broken_nice
=no
20518 cat >conftest.
$ac_ext <<_ACEOF
20521 cat confdefs.h
>>conftest.
$ac_ext
20522 cat >>conftest.
$ac_ext <<_ACEOF
20523 /* end confdefs.h. */
20527 int val1 = nice(1);
20528 if (val1 != -1 && val1 == nice(2))
20534 rm -f conftest
$ac_exeext
20535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20536 (eval $ac_link) 2>&5
20538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20539 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20541 (eval $ac_try) 2>&5
20543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20544 (exit $ac_status); }; }; then
20545 ac_cv_broken_nice
=yes
20547 echo "$as_me: program exited with status $ac_status" >&5
20548 echo "$as_me: failed program was:" >&5
20549 sed 's/^/| /' conftest.
$ac_ext >&5
20551 ( exit $ac_status )
20552 ac_cv_broken_nice
=no
20554 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20558 echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
20559 echo "${ECHO_T}$ac_cv_broken_nice" >&6
20560 if test "$ac_cv_broken_nice" = yes
20563 cat >>confdefs.h
<<\_ACEOF
20564 #define HAVE_BROKEN_NICE 1
20569 echo "$as_me:$LINENO: checking for broken poll()" >&5
20570 echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6
20571 if test "$cross_compiling" = yes; then
20572 ac_cv_broken_poll
=no
20574 cat >conftest.
$ac_ext <<_ACEOF
20577 cat confdefs.h
>>conftest.
$ac_ext
20578 cat >>conftest.
$ac_ext <<_ACEOF
20579 /* end confdefs.h. */
20585 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
20589 int poll_test = poll (&poll_struct, 1, 0);
20595 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
20606 rm -f conftest
$ac_exeext
20607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20608 (eval $ac_link) 2>&5
20610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20611 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20613 (eval $ac_try) 2>&5
20615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20616 (exit $ac_status); }; }; then
20617 ac_cv_broken_poll
=yes
20619 echo "$as_me: program exited with status $ac_status" >&5
20620 echo "$as_me: failed program was:" >&5
20621 sed 's/^/| /' conftest.
$ac_ext >&5
20623 ( exit $ac_status )
20624 ac_cv_broken_poll
=no
20626 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20628 echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5
20629 echo "${ECHO_T}$ac_cv_broken_poll" >&6
20630 if test "$ac_cv_broken_poll" = yes
20633 cat >>confdefs.h
<<\_ACEOF
20634 #define HAVE_BROKEN_POLL 1
20639 # Before we can test tzset, we need to check if struct tm has a tm_zone
20640 # (which is not required by ISO C or UNIX spec) and/or if we support
20642 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
20643 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
20644 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
20645 echo $ECHO_N "(cached) $ECHO_C" >&6
20647 cat >conftest.
$ac_ext <<_ACEOF
20650 cat confdefs.h
>>conftest.
$ac_ext
20651 cat >>conftest.
$ac_ext <<_ACEOF
20652 /* end confdefs.h. */
20653 #include <sys/types.h>
20654 #include <$ac_cv_struct_tm>
20660 static struct tm ac_aggr;
20661 if (ac_aggr.tm_zone)
20667 rm -f conftest.
$ac_objext
20668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20669 (eval $ac_compile) 2>conftest.er1
20671 grep -v '^ *+' conftest.er1
>conftest.err
20673 cat conftest.err
>&5
20674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20675 (exit $ac_status); } &&
20676 { ac_try
='test -z "$ac_c_werror_flag"
20677 || test ! -s conftest.err'
20678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20679 (eval $ac_try) 2>&5
20681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20682 (exit $ac_status); }; } &&
20683 { ac_try
='test -s conftest.$ac_objext'
20684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20685 (eval $ac_try) 2>&5
20687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20688 (exit $ac_status); }; }; then
20689 ac_cv_member_struct_tm_tm_zone
=yes
20691 echo "$as_me: failed program was:" >&5
20692 sed 's/^/| /' conftest.
$ac_ext >&5
20694 cat >conftest.
$ac_ext <<_ACEOF
20697 cat confdefs.h
>>conftest.
$ac_ext
20698 cat >>conftest.
$ac_ext <<_ACEOF
20699 /* end confdefs.h. */
20700 #include <sys/types.h>
20701 #include <$ac_cv_struct_tm>
20707 static struct tm ac_aggr;
20708 if (sizeof ac_aggr.tm_zone)
20714 rm -f conftest.
$ac_objext
20715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20716 (eval $ac_compile) 2>conftest.er1
20718 grep -v '^ *+' conftest.er1
>conftest.err
20720 cat conftest.err
>&5
20721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20722 (exit $ac_status); } &&
20723 { ac_try
='test -z "$ac_c_werror_flag"
20724 || test ! -s conftest.err'
20725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20726 (eval $ac_try) 2>&5
20728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20729 (exit $ac_status); }; } &&
20730 { ac_try
='test -s conftest.$ac_objext'
20731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20732 (eval $ac_try) 2>&5
20734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20735 (exit $ac_status); }; }; then
20736 ac_cv_member_struct_tm_tm_zone
=yes
20738 echo "$as_me: failed program was:" >&5
20739 sed 's/^/| /' conftest.
$ac_ext >&5
20741 ac_cv_member_struct_tm_tm_zone
=no
20743 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20745 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20747 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
20748 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
20749 if test $ac_cv_member_struct_tm_tm_zone = yes; then
20751 cat >>confdefs.h
<<_ACEOF
20752 #define HAVE_STRUCT_TM_TM_ZONE 1
20758 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
20760 cat >>confdefs.h
<<\_ACEOF
20761 #define HAVE_TM_ZONE 1
20765 echo "$as_me:$LINENO: checking for tzname" >&5
20766 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
20767 if test "${ac_cv_var_tzname+set}" = set; then
20768 echo $ECHO_N "(cached) $ECHO_C" >&6
20770 cat >conftest.
$ac_ext <<_ACEOF
20773 cat confdefs.h
>>conftest.
$ac_ext
20774 cat >>conftest.
$ac_ext <<_ACEOF
20775 /* end confdefs.h. */
20777 #ifndef tzname /* For SGI. */
20778 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
20789 rm -f conftest.
$ac_objext conftest
$ac_exeext
20790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20791 (eval $ac_link) 2>conftest.er1
20793 grep -v '^ *+' conftest.er1
>conftest.err
20795 cat conftest.err
>&5
20796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20797 (exit $ac_status); } &&
20798 { ac_try
='test -z "$ac_c_werror_flag"
20799 || test ! -s conftest.err'
20800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20801 (eval $ac_try) 2>&5
20803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20804 (exit $ac_status); }; } &&
20805 { ac_try
='test -s conftest$ac_exeext'
20806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20807 (eval $ac_try) 2>&5
20809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20810 (exit $ac_status); }; }; then
20811 ac_cv_var_tzname
=yes
20813 echo "$as_me: failed program was:" >&5
20814 sed 's/^/| /' conftest.
$ac_ext >&5
20816 ac_cv_var_tzname
=no
20818 rm -f conftest.err conftest.
$ac_objext \
20819 conftest
$ac_exeext conftest.
$ac_ext
20821 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
20822 echo "${ECHO_T}$ac_cv_var_tzname" >&6
20823 if test $ac_cv_var_tzname = yes; then
20825 cat >>confdefs.h
<<\_ACEOF
20826 #define HAVE_TZNAME 1
20833 # check tzset(3) exists and works like we expect it to
20834 echo "$as_me:$LINENO: checking for working tzset()" >&5
20835 echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6
20836 if test "${ac_cv_working_tzset+set}" = set; then
20837 echo $ECHO_N "(cached) $ECHO_C" >&6
20840 if test "$cross_compiling" = yes; then
20841 ac_cv_working_tzset
=no
20843 cat >conftest.
$ac_ext <<_ACEOF
20846 cat confdefs.h
>>conftest.
$ac_ext
20847 cat >>conftest.
$ac_ext <<_ACEOF
20848 /* end confdefs.h. */
20850 #include <stdlib.h>
20852 #include <string.h>
20855 extern char *tzname[];
20860 /* Note that we need to ensure that not only does tzset(3)
20861 do 'something' with localtime, but it works as documented
20862 in the library reference and as expected by the test suite.
20863 This includes making sure that tzname is set properly if
20864 tm->tm_zone does not exist since it is the alternative way
20865 of getting timezone info.
20867 Red Hat 6.2 doesn't understand the southern hemisphere
20868 after New Year's Day.
20871 time_t groundhogday = 1044144000; /* GMT-based */
20872 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
20874 putenv("TZ=UTC+0");
20876 if (localtime(&groundhogday)->tm_hour != 0)
20879 /* For UTC, tzname[1] is sometimes "", sometimes " " */
20880 if (strcmp(tzname[0], "UTC") ||
20881 (tzname[1][0] != 0 && tzname[1][0] != ' '))
20885 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
20887 if (localtime(&groundhogday)->tm_hour != 19)
20890 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
20894 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
20896 if (localtime(&groundhogday)->tm_hour != 11)
20899 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
20903 #if HAVE_STRUCT_TM_TM_ZONE
20904 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
20906 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
20914 rm -f conftest
$ac_exeext
20915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20916 (eval $ac_link) 2>&5
20918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20919 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20921 (eval $ac_try) 2>&5
20923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20924 (exit $ac_status); }; }; then
20925 ac_cv_working_tzset
=yes
20927 echo "$as_me: program exited with status $ac_status" >&5
20928 echo "$as_me: failed program was:" >&5
20929 sed 's/^/| /' conftest.
$ac_ext >&5
20931 ( exit $ac_status )
20932 ac_cv_working_tzset
=no
20934 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20938 echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5
20939 echo "${ECHO_T}$ac_cv_working_tzset" >&6
20940 if test "$ac_cv_working_tzset" = yes
20943 cat >>confdefs.h
<<\_ACEOF
20944 #define HAVE_WORKING_TZSET 1
20949 # Look for subsecond timestamps in struct stat
20950 echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
20951 echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6
20952 if test "${ac_cv_stat_tv_nsec+set}" = set; then
20953 echo $ECHO_N "(cached) $ECHO_C" >&6
20955 cat >conftest.
$ac_ext <<_ACEOF
20958 cat confdefs.h
>>conftest.
$ac_ext
20959 cat >>conftest.
$ac_ext <<_ACEOF
20960 /* end confdefs.h. */
20961 #include <sys/stat.h>
20967 st.st_mtim.tv_nsec = 1;
20973 rm -f conftest.
$ac_objext
20974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20975 (eval $ac_compile) 2>conftest.er1
20977 grep -v '^ *+' conftest.er1
>conftest.err
20979 cat conftest.err
>&5
20980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20981 (exit $ac_status); } &&
20982 { ac_try
='test -z "$ac_c_werror_flag"
20983 || test ! -s conftest.err'
20984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20985 (eval $ac_try) 2>&5
20987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20988 (exit $ac_status); }; } &&
20989 { ac_try
='test -s conftest.$ac_objext'
20990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20991 (eval $ac_try) 2>&5
20993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20994 (exit $ac_status); }; }; then
20995 ac_cv_stat_tv_nsec
=yes
20997 echo "$as_me: failed program was:" >&5
20998 sed 's/^/| /' conftest.
$ac_ext >&5
21000 ac_cv_stat_tv_nsec
=no
21002 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21005 echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
21006 echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6
21007 if test "$ac_cv_stat_tv_nsec" = yes
21010 cat >>confdefs.h
<<\_ACEOF
21011 #define HAVE_STAT_TV_NSEC 1
21016 # Look for BSD style subsecond timestamps in struct stat
21017 echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5
21018 echo $ECHO_N "checking for tv_nsec2 in struct stat... $ECHO_C" >&6
21019 if test "${ac_cv_stat_tv_nsec2+set}" = set; then
21020 echo $ECHO_N "(cached) $ECHO_C" >&6
21022 cat >conftest.
$ac_ext <<_ACEOF
21025 cat confdefs.h
>>conftest.
$ac_ext
21026 cat >>conftest.
$ac_ext <<_ACEOF
21027 /* end confdefs.h. */
21028 #include <sys/stat.h>
21034 st.st_mtimespec.tv_nsec = 1;
21040 rm -f conftest.
$ac_objext
21041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21042 (eval $ac_compile) 2>conftest.er1
21044 grep -v '^ *+' conftest.er1
>conftest.err
21046 cat conftest.err
>&5
21047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21048 (exit $ac_status); } &&
21049 { ac_try
='test -z "$ac_c_werror_flag"
21050 || test ! -s conftest.err'
21051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21052 (eval $ac_try) 2>&5
21054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21055 (exit $ac_status); }; } &&
21056 { ac_try
='test -s conftest.$ac_objext'
21057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21058 (eval $ac_try) 2>&5
21060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21061 (exit $ac_status); }; }; then
21062 ac_cv_stat_tv_nsec2
=yes
21064 echo "$as_me: failed program was:" >&5
21065 sed 's/^/| /' conftest.
$ac_ext >&5
21067 ac_cv_stat_tv_nsec2
=no
21069 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21072 echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5
21073 echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6
21074 if test "$ac_cv_stat_tv_nsec2" = yes
21077 cat >>confdefs.h
<<\_ACEOF
21078 #define HAVE_STAT_TV_NSEC2 1
21083 # On HP/UX 11.0, mvwdelch is a block with a return statement
21084 echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
21085 echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6
21086 if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
21087 echo $ECHO_N "(cached) $ECHO_C" >&6
21089 cat >conftest.
$ac_ext <<_ACEOF
21092 cat confdefs.h
>>conftest.
$ac_ext
21093 cat >>conftest.
$ac_ext <<_ACEOF
21094 /* end confdefs.h. */
21095 #include <curses.h>
21101 rtn = mvwdelch(0,0,0);
21107 rm -f conftest.
$ac_objext
21108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21109 (eval $ac_compile) 2>conftest.er1
21111 grep -v '^ *+' conftest.er1
>conftest.err
21113 cat conftest.err
>&5
21114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21115 (exit $ac_status); } &&
21116 { ac_try
='test -z "$ac_c_werror_flag"
21117 || test ! -s conftest.err'
21118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21119 (eval $ac_try) 2>&5
21121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21122 (exit $ac_status); }; } &&
21123 { ac_try
='test -s conftest.$ac_objext'
21124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21125 (eval $ac_try) 2>&5
21127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21128 (exit $ac_status); }; }; then
21129 ac_cv_mvwdelch_is_expression
=yes
21131 echo "$as_me: failed program was:" >&5
21132 sed 's/^/| /' conftest.
$ac_ext >&5
21134 ac_cv_mvwdelch_is_expression
=no
21136 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21139 echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
21140 echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6
21142 if test "$ac_cv_mvwdelch_is_expression" = yes
21145 cat >>confdefs.h
<<\_ACEOF
21146 #define MVWDELCH_IS_EXPRESSION 1
21151 echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
21152 echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6
21153 if test "${ac_cv_window_has_flags+set}" = set; then
21154 echo $ECHO_N "(cached) $ECHO_C" >&6
21156 cat >conftest.
$ac_ext <<_ACEOF
21159 cat confdefs.h
>>conftest.
$ac_ext
21160 cat >>conftest.
$ac_ext <<_ACEOF
21161 /* end confdefs.h. */
21162 #include <curses.h>
21174 rm -f conftest.
$ac_objext
21175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21176 (eval $ac_compile) 2>conftest.er1
21178 grep -v '^ *+' conftest.er1
>conftest.err
21180 cat conftest.err
>&5
21181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21182 (exit $ac_status); } &&
21183 { ac_try
='test -z "$ac_c_werror_flag"
21184 || test ! -s conftest.err'
21185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21186 (eval $ac_try) 2>&5
21188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21189 (exit $ac_status); }; } &&
21190 { ac_try
='test -s conftest.$ac_objext'
21191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21192 (eval $ac_try) 2>&5
21194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21195 (exit $ac_status); }; }; then
21196 ac_cv_window_has_flags
=yes
21198 echo "$as_me: failed program was:" >&5
21199 sed 's/^/| /' conftest.
$ac_ext >&5
21201 ac_cv_window_has_flags
=no
21203 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21206 echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
21207 echo "${ECHO_T}$ac_cv_window_has_flags" >&6
21210 if test "$ac_cv_window_has_flags" = yes
21213 cat >>confdefs.h
<<\_ACEOF
21214 #define WINDOW_HAS_FLAGS 1
21219 echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
21220 echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6
21222 if test -e /dev
/ptmx
21224 echo "$as_me:$LINENO: result: yes" >&5
21225 echo "${ECHO_T}yes" >&6
21227 cat >>confdefs.h
<<\_ACEOF
21228 #define HAVE_DEV_PTMX 1
21232 echo "$as_me:$LINENO: result: no" >&5
21233 echo "${ECHO_T}no" >&6
21236 echo "$as_me:$LINENO: checking for /dev/ptc" >&5
21237 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6
21239 if test -e /dev
/ptc
21241 echo "$as_me:$LINENO: result: yes" >&5
21242 echo "${ECHO_T}yes" >&6
21244 cat >>confdefs.h
<<\_ACEOF
21245 #define HAVE_DEV_PTC 1
21249 echo "$as_me:$LINENO: result: no" >&5
21250 echo "${ECHO_T}no" >&6
21253 echo "$as_me:$LINENO: checking for socklen_t" >&5
21254 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
21255 if test "${ac_cv_type_socklen_t+set}" = set; then
21256 echo $ECHO_N "(cached) $ECHO_C" >&6
21258 cat >conftest.
$ac_ext <<_ACEOF
21261 cat confdefs.h
>>conftest.
$ac_ext
21262 cat >>conftest.
$ac_ext <<_ACEOF
21263 /* end confdefs.h. */
21265 #ifdef HAVE_SYS_TYPES_H
21266 #include <sys/types.h>
21268 #ifdef HAVE_SYS_SOCKET_H
21269 #include <sys/socket.h>
21276 if ((socklen_t *) 0)
21278 if (sizeof (socklen_t))
21284 rm -f conftest.
$ac_objext
21285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21286 (eval $ac_compile) 2>conftest.er1
21288 grep -v '^ *+' conftest.er1
>conftest.err
21290 cat conftest.err
>&5
21291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21292 (exit $ac_status); } &&
21293 { ac_try
='test -z "$ac_c_werror_flag"
21294 || test ! -s conftest.err'
21295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21296 (eval $ac_try) 2>&5
21298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21299 (exit $ac_status); }; } &&
21300 { ac_try
='test -s conftest.$ac_objext'
21301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21302 (eval $ac_try) 2>&5
21304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21305 (exit $ac_status); }; }; then
21306 ac_cv_type_socklen_t
=yes
21308 echo "$as_me: failed program was:" >&5
21309 sed 's/^/| /' conftest.
$ac_ext >&5
21311 ac_cv_type_socklen_t
=no
21313 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21315 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
21316 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
21317 if test $ac_cv_type_socklen_t = yes; then
21321 cat >>confdefs.h
<<\_ACEOF
21322 #define socklen_t int
21330 for h
in `(cd $srcdir;echo Python/thread_*.h)`
21332 THREADHEADERS
="$THREADHEADERS \$(srcdir)/$h"
21336 SRCDIRS
="Parser Grammar Objects Python Modules Mac"
21337 echo "$as_me:$LINENO: checking for build directories" >&5
21338 echo $ECHO_N "checking for build directories... $ECHO_C" >&6
21339 for dir
in $SRCDIRS; do
21340 if test ! -d $dir; then
21344 echo "$as_me:$LINENO: result: done" >&5
21345 echo "${ECHO_T}done" >&6
21347 # generate output files
21348 ac_config_files
="$ac_config_files Makefile.pre Modules/Setup.config"
21350 cat >confcache
<<\_ACEOF
21351 # This file is a shell script that caches the results of configure
21352 # tests run on this system so they can be shared between configure
21353 # scripts and configure runs, see configure's option --config-cache.
21354 # It is not useful on other systems. If it contains results you don't
21355 # want to keep, you may remove or edit it.
21357 # config.status only pays attention to the cache file if you give it
21358 # the --recheck option to rerun configure.
21360 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21361 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21362 # following values.
21366 # The following way of writing the cache mishandles newlines in values,
21367 # but we know of no workaround that is simple, portable, and efficient.
21368 # So, don't put newlines in cache variables' values.
21369 # Ultrix sh set writes to stderr and can't be redirected directly,
21370 # and sets the high bit in the cache file unless we assign to the vars.
21373 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21375 # `set' does not quote correctly, so add quotes (double-quote
21376 # substitution turns \\\\ into \\, and sed turns \\ into \).
21379 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21382 # `set' quotes correctly as required by POSIX, so do not add quotes.
21384 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21391 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21393 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21395 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
21396 if test -w $cache_file; then
21397 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21398 cat confcache
>$cache_file
21400 echo "not updating unwritable cache $cache_file"
21405 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
21406 # Let make expand exec_prefix.
21407 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
21409 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21410 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21411 # trailing colons and then remove the whole line if VPATH becomes empty
21412 # (actually we leave an empty line to preserve line numbers).
21413 if test "x$srcdir" = x.
; then
21414 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
21415 s/:*\$(srcdir):*/:/;
21416 s/:*\${srcdir}:*/:/;
21418 s/^\([^=]*=[ ]*\):*/\1/;
21424 DEFS
=-DHAVE_CONFIG_H
21428 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
21429 # 1. Remove the extension, and $U if already installed.
21430 ac_i
=`echo "$ac_i" |
21431 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21433 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
21434 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
21436 LIBOBJS
=$ac_libobjs
21438 LTLIBOBJS
=$ac_ltlibobjs
21442 : ${CONFIG_STATUS=./config.status}
21443 ac_clean_files_save
=$ac_clean_files
21444 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
21445 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21446 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21447 cat >$CONFIG_STATUS <<_ACEOF
21449 # Generated by $as_me.
21450 # Run this file to recreate the current configuration.
21451 # Compiler output produced by configure, useful for debugging
21452 # configure, is in config.log if it exists.
21455 ac_cs_recheck=false
21457 SHELL=\${CONFIG_SHELL-$SHELL}
21460 cat >>$CONFIG_STATUS <<\_ACEOF
21461 ## --------------------- ##
21462 ## M4sh Initialization. ##
21463 ## --------------------- ##
21465 # Be Bourne compatible
21466 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
21469 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21470 # is contrary to our usage. Disable this feature.
21471 alias -g '${1+"$@"}'='"$@"'
21472 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
21475 DUALCASE
=1; export DUALCASE
# for MKS sh
21477 # Support unset when possible.
21478 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
21485 # Work around bugs in pre-3.0 UWIN ksh.
21486 $as_unset ENV MAIL MAILPATH
21493 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21494 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21495 LC_TELEPHONE LC_TIME
21497 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21498 eval $as_var=C
; export $as_var
21504 # Required to use basename.
21505 if expr a
: '\(a\)' >/dev
/null
2>&1; then
21511 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
21512 as_basename
=basename
21518 # Name of the executable.
21519 as_me
=`$as_basename "$0" ||
21520 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21521 X"$0" : 'X\(//\)$' \| \
21522 X"$0" : 'X\(/\)$' \| \
21523 . : '\(.\)' 2>/dev/null ||
21525 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21526 /^X\/\(\/\/\)$/{ s//\1/; q; }
21527 /^X\/\(\/\).*/{ s//\1/; q; }
21531 # PATH needs CR, and LINENO needs CR and PATH.
21532 # Avoid depending upon Character Ranges.
21533 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
21534 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21535 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
21536 as_cr_digits
='0123456789'
21537 as_cr_alnum
=$as_cr_Letters$as_cr_digits
21539 # The user is always right.
21540 if test "${PATH_SEPARATOR+set}" != set; then
21541 echo "#! /bin/sh" >conf$$.sh
21542 echo "exit 0" >>conf$$.sh
21544 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
21553 as_lineno_1
=$LINENO
21554 as_lineno_2
=$LINENO
21555 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
21556 test "x$as_lineno_1" != "x$as_lineno_2" &&
21557 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
21558 # Find who we are. Look in the path if we contain no path at all
21561 *[\\/]* ) as_myself
=$0 ;;
21562 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21563 for as_dir
in $PATH
21566 test -z "$as_dir" && as_dir
=.
21567 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
21572 # We did not find ourselves, most probably we were run as `sh COMMAND'
21573 # in which case we are not to be found in the path.
21574 if test "x$as_myself" = x
; then
21577 if test ! -f "$as_myself"; then
21578 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21579 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21580 { (exit 1); exit 1; }; }
21582 case $CONFIG_SHELL in
21584 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21585 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
21588 test -z "$as_dir" && as_dir
=.
21589 for as_base
in sh bash ksh sh5
; do
21592 if ("$as_dir/$as_base" -c '
21593 as_lineno_1=$LINENO
21594 as_lineno_2=$LINENO
21595 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21596 test "x$as_lineno_1" != "x$as_lineno_2" &&
21597 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
21598 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
21599 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
21600 CONFIG_SHELL
=$as_dir/$as_base
21601 export CONFIG_SHELL
21602 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21610 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21611 # uniformly replaced by the line number. The first 'sed' inserts a
21612 # line-number line before each line; the second 'sed' does the real
21613 # work. The second script uses 'N' to pair each line-number line
21614 # with the numbered line, and appends trailing '-' during
21615 # substitution so that $LINENO is not a special case at line end.
21616 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21617 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
21618 sed '=' <$as_myself |
21623 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21626 s,^['$as_cr_digits']*\n,,
21627 ' >$as_me.lineno
&&
21628 chmod +x
$as_me.lineno ||
21629 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21630 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21631 { (exit 1); exit 1; }; }
21633 # Don't try to exec as it changes $[0], causing all sort of problems
21634 # (the dirname of $[0] is not the place where we might find the
21635 # original and so on. Autoconf is especially sensible to this).
21637 # Exit status is that of the last command.
21642 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21643 *c
*,-n*) ECHO_N
= ECHO_C
='
21645 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
21646 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
21649 if expr a
: '\(a\)' >/dev
/null
2>&1; then
21655 rm -f conf$$ conf$$.exe conf$$.
file
21657 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
21658 # We could just check for DJGPP; but this test a) works b) is more generic
21659 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21660 if test -f conf$$.exe
; then
21661 # Don't use ln at all; we don't have any links
21666 elif ln conf$$.
file conf$$
2>/dev
/null
; then
21671 rm -f conf$$ conf$$.exe conf$$.
file
21673 if mkdir
-p .
2>/dev
/null
; then
21676 test -d .
/-p && rmdir .
/-p
21680 as_executable_p
="test -f"
21682 # Sed expression to map a string onto a valid CPP name.
21683 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21685 # Sed expression to map a string onto a valid variable name.
21686 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21690 # We need space, tab and new line, in precisely that order.
21700 # Open the log real soon, to keep \$[0] and so on meaningful, and to
21701 # report actual input values of CONFIG_FILES etc. instead of their
21702 # values after options handling. Logging --version etc. is OK.
21706 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21707 ## Running $as_me. ##
21712 This file was extended by python $as_me 2.5, which was
21713 generated by GNU Autoconf 2.59. Invocation command line was
21715 CONFIG_FILES = $CONFIG_FILES
21716 CONFIG_HEADERS = $CONFIG_HEADERS
21717 CONFIG_LINKS = $CONFIG_LINKS
21718 CONFIG_COMMANDS = $CONFIG_COMMANDS
21722 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21726 # Files that config.status was made for.
21727 if test -n "$ac_config_files"; then
21728 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21731 if test -n "$ac_config_headers"; then
21732 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21735 if test -n "$ac_config_links"; then
21736 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21739 if test -n "$ac_config_commands"; then
21740 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21743 cat >>$CONFIG_STATUS <<\_ACEOF
21746 \`$as_me' instantiates files from templates according to the
21747 current configuration.
21749 Usage: $0 [OPTIONS] [FILE]...
21751 -h, --help print this help, then exit
21752 -V, --version print version number, then exit
21753 -q, --quiet do not print progress messages
21754 -d, --debug don't remove temporary files
21755 --recheck update $as_me by reconfiguring in the same conditions
21756 --file=FILE[:TEMPLATE]
21757 instantiate the configuration file FILE
21758 --header=FILE[:TEMPLATE]
21759 instantiate the configuration header FILE
21761 Configuration files:
21764 Configuration headers:
21767 Report bugs to <bug-autoconf@gnu.org>."
21770 cat >>$CONFIG_STATUS <<_ACEOF
21772 python config.status 2.5
21773 configured by $0, generated by GNU Autoconf 2.59,
21774 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21776 Copyright (C) 2003 Free Software Foundation, Inc.
21777 This config.status script is free software; the Free Software Foundation
21778 gives unlimited permission to copy, distribute and modify it."
21783 cat >>$CONFIG_STATUS <<\_ACEOF
21784 # If no file are specified by the user, then we need to provide default
21785 # value. By we need to know if files were specified by the user.
21791 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
21792 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
21800 *) # This is not an option, so the user has probably given explicit
21803 ac_need_defaults
=false
;;
21807 # Handling of the options.
21809 cat >>$CONFIG_STATUS <<\_ACEOF
21810 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
21812 --version |
--vers* |
-V )
21813 echo "$ac_cs_version"; exit 0 ;;
21815 # Conflict between --help and --header
21816 { { echo "$as_me:$LINENO: error: ambiguous option: $1
21817 Try \`$0 --help' for more information." >&5
21818 echo "$as_me: error: ambiguous option: $1
21819 Try \`$0 --help' for more information." >&2;}
21820 { (exit 1); exit 1; }; };;
21821 --help |
--hel |
-h )
21822 echo "$ac_cs_usage"; exit 0 ;;
21823 --debug |
--d* |
-d )
21825 --file |
--fil |
--fi |
--f )
21827 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
21828 ac_need_defaults
=false
;;
21829 --header |
--heade |
--head |
--hea )
21831 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
21832 ac_need_defaults
=false
;;
21833 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
21834 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
21837 # This is an error.
21838 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21839 Try \`$0 --help' for more information." >&5
21840 echo "$as_me: error: unrecognized option: $1
21841 Try \`$0 --help' for more information." >&2;}
21842 { (exit 1); exit 1; }; } ;;
21844 *) ac_config_targets
="$ac_config_targets $1" ;;
21850 ac_configure_extra_args
=
21852 if $ac_cs_silent; then
21854 ac_configure_extra_args
="$ac_configure_extra_args --silent"
21858 cat >>$CONFIG_STATUS <<_ACEOF
21859 if \$ac_cs_recheck; then
21860 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21861 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21870 cat >>$CONFIG_STATUS <<\_ACEOF
21871 for ac_config_target
in $ac_config_targets
21873 case "$ac_config_target" in
21874 # Handling of arguments.
21875 "Makefile.pre" ) CONFIG_FILES
="$CONFIG_FILES Makefile.pre" ;;
21876 "Modules/Setup.config" ) CONFIG_FILES
="$CONFIG_FILES Modules/Setup.config" ;;
21877 "pyconfig.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS pyconfig.h" ;;
21878 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21879 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21880 { (exit 1); exit 1; }; };;
21884 # If the user did not use the arguments to specify the items to instantiate,
21885 # then the envvar interface is used. Set only those that are not.
21886 # We use the long form for the default assignment because of an extremely
21887 # bizarre bug on SunOS 4.1.3.
21888 if $ac_need_defaults; then
21889 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
21890 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
21893 # Have a temporary directory for convenience. Make it in the build tree
21894 # simply because there is no reason to put it here, and in addition,
21895 # creating and moving files from /tmp can sometimes cause problems.
21896 # Create a temporary directory, and hook for its removal unless debugging.
21899 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21900 trap '{ (exit 1); exit 1; }' 1 2 13 15
21903 # Create a (secure) tmp directory for tmp files.
21906 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21907 test -n "$tmp" && test -d "$tmp"
21910 tmp
=.
/confstat$$
-$RANDOM
21911 (umask 077 && mkdir
$tmp)
21914 echo "$me: cannot create a temporary directory in ." >&2
21915 { (exit 1); exit 1; }
21920 cat >>$CONFIG_STATUS <<_ACEOF
21923 # CONFIG_FILES section.
21926 # No need to generate the scripts if there are no CONFIG_FILES.
21927 # This happens for instance when ./config.status config.h
21928 if test -n "\$CONFIG_FILES"; then
21929 # Protect against being on the right side of a sed subst in config.status.
21930 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21931 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21932 s,@SHELL@,$SHELL,;t t
21933 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21934 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21935 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21936 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21937 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21938 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21939 s,@exec_prefix@,$exec_prefix,;t t
21940 s,@prefix@,$prefix,;t t
21941 s,@program_transform_name@,$program_transform_name,;t t
21942 s,@bindir@,$bindir,;t t
21943 s,@sbindir@,$sbindir,;t t
21944 s,@libexecdir@,$libexecdir,;t t
21945 s,@datadir@,$datadir,;t t
21946 s,@sysconfdir@,$sysconfdir,;t t
21947 s,@sharedstatedir@,$sharedstatedir,;t t
21948 s,@localstatedir@,$localstatedir,;t t
21949 s,@libdir@,$libdir,;t t
21950 s,@includedir@,$includedir,;t t
21951 s,@oldincludedir@,$oldincludedir,;t t
21952 s,@infodir@,$infodir,;t t
21953 s,@mandir@,$mandir,;t t
21954 s,@build_alias@,$build_alias,;t t
21955 s,@host_alias@,$host_alias,;t t
21956 s,@target_alias@,$target_alias,;t t
21957 s,@DEFS@,$DEFS,;t t
21958 s,@ECHO_C@,$ECHO_C,;t t
21959 s,@ECHO_N@,$ECHO_N,;t t
21960 s,@ECHO_T@,$ECHO_T,;t t
21961 s,@LIBS@,$LIBS,;t t
21962 s,@VERSION@,$VERSION,;t t
21963 s,@SOVERSION@,$SOVERSION,;t t
21964 s,@CONFIG_ARGS@,$CONFIG_ARGS,;t t
21965 s,@PYTHONFRAMEWORK@,$PYTHONFRAMEWORK,;t t
21966 s,@PYTHONFRAMEWORKDIR@,$PYTHONFRAMEWORKDIR,;t t
21967 s,@PYTHONFRAMEWORKPREFIX@,$PYTHONFRAMEWORKPREFIX,;t t
21968 s,@PYTHONFRAMEWORKINSTALLDIR@,$PYTHONFRAMEWORKINSTALLDIR,;t t
21969 s,@MACHDEP@,$MACHDEP,;t t
21970 s,@SGI_ABI@,$SGI_ABI,;t t
21971 s,@EXTRAPLATDIR@,$EXTRAPLATDIR,;t t
21972 s,@EXTRAMACHDEPPATH@,$EXTRAMACHDEPPATH,;t t
21973 s,@CONFIGURE_MACOSX_DEPLOYMENT_TARGET@,$CONFIGURE_MACOSX_DEPLOYMENT_TARGET,;t t
21975 s,@MAINOBJ@,$MAINOBJ,;t t
21976 s,@EXEEXT@,$EXEEXT,;t t
21978 s,@CFLAGS@,$CFLAGS,;t t
21979 s,@LDFLAGS@,$LDFLAGS,;t t
21980 s,@CPPFLAGS@,$CPPFLAGS,;t t
21981 s,@ac_ct_CC@,$ac_ct_CC,;t t
21982 s,@OBJEXT@,$OBJEXT,;t t
21984 s,@EGREP@,$EGREP,;t t
21985 s,@BUILDEXEEXT@,$BUILDEXEEXT,;t t
21986 s,@LIBRARY@,$LIBRARY,;t t
21987 s,@LDLIBRARY@,$LDLIBRARY,;t t
21988 s,@DLLLIBRARY@,$DLLLIBRARY,;t t
21989 s,@BLDLIBRARY@,$BLDLIBRARY,;t t
21990 s,@LDLIBRARYDIR@,$LDLIBRARYDIR,;t t
21991 s,@INSTSONAME@,$INSTSONAME,;t t
21992 s,@RUNSHARED@,$RUNSHARED,;t t
21993 s,@LINKCC@,$LINKCC,;t t
21994 s,@RANLIB@,$RANLIB,;t t
21995 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21997 s,@SVNVERSION@,$SVNVERSION,;t t
21998 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21999 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22000 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22003 s,@BASECFLAGS@,$BASECFLAGS,;t t
22004 s,@OTHER_LIBTOOL_OPT@,$OTHER_LIBTOOL_OPT,;t t
22005 s,@LIBTOOL_CRUFT@,$LIBTOOL_CRUFT,;t t
22007 s,@LDSHARED@,$LDSHARED,;t t
22008 s,@BLDSHARED@,$BLDSHARED,;t t
22009 s,@CCSHARED@,$CCSHARED,;t t
22010 s,@LINKFORSHARED@,$LINKFORSHARED,;t t
22011 s,@CFLAGSFORSHARED@,$CFLAGSFORSHARED,;t t
22012 s,@SHLIBS@,$SHLIBS,;t t
22013 s,@USE_SIGNAL_MODULE@,$USE_SIGNAL_MODULE,;t t
22014 s,@SIGNAL_OBJS@,$SIGNAL_OBJS,;t t
22015 s,@USE_THREAD_MODULE@,$USE_THREAD_MODULE,;t t
22016 s,@LDLAST@,$LDLAST,;t t
22017 s,@THREADOBJ@,$THREADOBJ,;t t
22018 s,@DLINCLDIR@,$DLINCLDIR,;t t
22019 s,@DYNLOADFILE@,$DYNLOADFILE,;t t
22020 s,@MACHDEP_OBJS@,$MACHDEP_OBJS,;t t
22021 s,@TRUE@,$TRUE,;t t
22022 s,@LIBOBJS@,$LIBOBJS,;t t
22023 s,@HAVE_GETHOSTBYNAME_R_6_ARG@,$HAVE_GETHOSTBYNAME_R_6_ARG,;t t
22024 s,@HAVE_GETHOSTBYNAME_R_5_ARG@,$HAVE_GETHOSTBYNAME_R_5_ARG,;t t
22025 s,@HAVE_GETHOSTBYNAME_R_3_ARG@,$HAVE_GETHOSTBYNAME_R_3_ARG,;t t
22026 s,@HAVE_GETHOSTBYNAME_R@,$HAVE_GETHOSTBYNAME_R,;t t
22027 s,@HAVE_GETHOSTBYNAME@,$HAVE_GETHOSTBYNAME,;t t
22028 s,@LIBM@,$LIBM,;t t
22029 s,@LIBC@,$LIBC,;t t
22030 s,@UNICODE_OBJS@,$UNICODE_OBJS,;t t
22031 s,@THREADHEADERS@,$THREADHEADERS,;t t
22032 s,@SRCDIRS@,$SRCDIRS,;t t
22033 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22038 cat >>$CONFIG_STATUS <<\_ACEOF
22039 # Split the substitutions into bite-sized pieces for seds with
22040 # small command number limits, like on Digital OSF/1 and HP-UX.
22041 ac_max_sed_lines
=48
22042 ac_sed_frag
=1 # Number of current file.
22043 ac_beg
=1 # First line for current file.
22044 ac_end
=$ac_max_sed_lines # Line after last line for current file.
22047 while $ac_more_lines; do
22048 if test $ac_beg -gt 1; then
22049 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
22051 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
22053 if test ! -s $tmp/subs.frag
; then
22054 ac_more_lines
=false
22056 # The purpose of the label and of the branching condition is to
22057 # speed up the sed processing (if there are no `@' at all, there
22058 # is no need to browse any of the substitutions).
22059 # These are the two extra sed commands mentioned above.
22061 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
22062 if test -z "$ac_sed_cmds"; then
22063 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
22065 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22067 ac_sed_frag
=`expr $ac_sed_frag + 1`
22069 ac_end
=`expr $ac_end + $ac_max_sed_lines`
22072 if test -z "$ac_sed_cmds"; then
22075 fi # test -n "$CONFIG_FILES"
22078 cat >>$CONFIG_STATUS <<\_ACEOF
22079 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
22080 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22082 - |
*:- |
*:-:* ) # input from stdin
22084 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22085 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
22086 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22087 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
22088 * ) ac_file_in
=$ac_file.
in ;;
22091 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22092 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
22093 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22094 X"$ac_file" : 'X\(//\)[^/]' \| \
22095 X"$ac_file" : 'X\(//\)$' \| \
22096 X"$ac_file" : 'X\(/\)' \| \
22097 . : '\(.\)' 2>/dev/null ||
22099 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22100 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22101 /^X\(\/\/\)$/{ s//\1/; q; }
22102 /^X\(\/\).*/{ s//\1/; q; }
22104 { if $as_mkdir_p; then
22109 while test ! -d "$as_dir"; do
22110 as_dirs
="$as_dir $as_dirs"
22111 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
22112 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22113 X"$as_dir" : 'X\(//\)[^/]' \| \
22114 X"$as_dir" : 'X\(//\)$' \| \
22115 X"$as_dir" : 'X\(/\)' \| \
22116 . : '\(.\)' 2>/dev/null ||
22118 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22119 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22120 /^X\(\/\/\)$/{ s//\1/; q; }
22121 /^X\(\/\).*/{ s//\1/; q; }
22124 test ! -n "$as_dirs" || mkdir
$as_dirs
22125 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22126 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22127 { (exit 1); exit 1; }; }; }
22131 if test "$ac_dir" != .
; then
22132 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22133 # A "../" for each directory in $ac_dir_suffix.
22134 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22136 ac_dir_suffix
= ac_top_builddir
=
22140 .
) # No --srcdir option. We are building in place.
22142 if test -z "$ac_top_builddir"; then
22145 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
22147 [\\/]* | ?
:[\\/]* ) # Absolute path.
22148 ac_srcdir
=$srcdir$ac_dir_suffix;
22149 ac_top_srcdir
=$srcdir ;;
22150 *) # Relative path.
22151 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
22152 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
22155 # Do not use `cd foo && pwd` to compute absolute paths, because
22156 # the directories may not exist.
22158 .
) ac_abs_builddir
="$ac_dir";;
22161 .
) ac_abs_builddir
=`pwd`;;
22162 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
22163 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
22166 case $ac_abs_builddir in
22167 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
22169 case ${ac_top_builddir}.
in
22170 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
22171 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
22172 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
22175 case $ac_abs_builddir in
22176 .
) ac_abs_srcdir
=$ac_srcdir;;
22179 .
) ac_abs_srcdir
=$ac_abs_builddir;;
22180 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
22181 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
22184 case $ac_abs_builddir in
22185 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
22187 case $ac_top_srcdir in
22188 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
22189 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
22190 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
22196 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
22197 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
22200 if test x
"$ac_file" != x-
; then
22201 { echo "$as_me:$LINENO: creating $ac_file" >&5
22202 echo "$as_me: creating $ac_file" >&6;}
22205 # Let's still pretend it is `configure' which instantiates (i.e., don't
22206 # use $as_me), people would be surprised to read:
22207 # /* config.h. Generated by config.status. */
22208 if test x
"$ac_file" = x-
; then
22211 configure_input
="$ac_file. "
22213 configure_input
=$configure_input"Generated from `echo $ac_file_in |
22214 sed 's,.*/,,'` by configure."
22216 # First look for the input files in the build tree, otherwise in the
22218 ac_file_inputs
=`IFS=:
22219 for f in $ac_file_in; do
22221 -) echo $tmp/stdin ;;
22223 # Absolute (can't be DOS-style, as IFS=:)
22224 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22225 echo "$as_me: error: cannot find input file: $f" >&2;}
22226 { (exit 1); exit 1; }; }
22229 if test -f "$f"; then
22232 elif test -f "$srcdir/$f"; then
22237 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22238 echo "$as_me: error: cannot find input file: $f" >&2;}
22239 { (exit 1); exit 1; }; }
22242 done` ||
{ (exit 1); exit 1; }
22244 cat >>$CONFIG_STATUS <<_ACEOF
22248 cat >>$CONFIG_STATUS <<\_ACEOF
22250 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
22251 s
,@configure_input@
,$configure_input,;t t
22252 s
,@srcdir@
,$ac_srcdir,;t t
22253 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
22254 s
,@top_srcdir@
,$ac_top_srcdir,;t t
22255 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
22256 s
,@builddir@
,$ac_builddir,;t t
22257 s
,@abs_builddir@
,$ac_abs_builddir,;t t
22258 s
,@top_builddir@
,$ac_top_builddir,;t t
22259 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
22260 s
,@INSTALL@
,$ac_INSTALL,;t t
22261 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22263 if test x"$ac_file" != x-; then
22264 mv $tmp/out $ac_file
22272 cat >>$CONFIG_STATUS <<\_ACEOF
22275 # CONFIG_HEADER section.
22278 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
22279 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22281 # ac_d sets the value in "#define NAME VALUE" lines.
22282 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22283 ac_dB
='[ ].*$,\1#\2'
22286 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22287 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22288 ac_uB
='$,\1#\2define\3'
22292 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
22293 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22295 - |
*:- |
*:-:* ) # input from stdin
22297 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22298 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
22299 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22300 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
22301 * ) ac_file_in
=$ac_file.
in ;;
22304 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
22305 echo "$as_me: creating $ac_file" >&6;}
22307 # First look for the input files in the build tree, otherwise in the
22309 ac_file_inputs
=`IFS=:
22310 for f in $ac_file_in; do
22312 -) echo $tmp/stdin ;;
22314 # Absolute (can't be DOS-style, as IFS=:)
22315 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22316 echo "$as_me: error: cannot find input file: $f" >&2;}
22317 { (exit 1); exit 1; }; }
22318 # Do quote $f, to prevent DOS paths from being IFS'd.
22321 if test -f "$f"; then
22324 elif test -f "$srcdir/$f"; then
22329 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22330 echo "$as_me: error: cannot find input file: $f" >&2;}
22331 { (exit 1); exit 1; }; }
22334 done` ||
{ (exit 1); exit 1; }
22335 # Remove the trailing spaces.
22336 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22340 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22341 # `conftest.undefs', that substitutes the proper values into
22342 # config.h.in to produce config.h. The first handles `#define'
22343 # templates, and the second `#undef' templates.
22344 # And first: Protect against being on the right side of a sed subst in
22345 # config.status. Protect against being in an unquoted here document
22346 # in config.status.
22347 rm -f conftest.defines conftest.undefs
22348 # Using a here document instead of a string reduces the quoting nightmare.
22349 # Putting comments in sed scripts is not portable.
22351 # `end' is used to avoid that the second main sed command (meant for
22352 # 0-ary CPP macros) applies to n-ary macro definitions.
22353 # See the Autoconf documentation for `clear'.
22354 cat >confdef2sed.
sed <<\_ACEOF
22359 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22361 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22364 # If some macros were called several times there might be several times
22365 # the same #defines, which is useless. Nevertheless, we may not want to
22366 # sort them, since we want the *last* AC-DEFINE to be honored.
22367 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22368 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22369 rm -f confdef2sed.sed
22371 # This sed command replaces #undef with comments. This is necessary, for
22372 # example, in the case of _POSIX_SOURCE, which is predefined and required
22373 # on some systems where configure will not decide to define it.
22374 cat >>conftest.undefs <<\_ACEOF
22375 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22378 # Break up conftest.defines because some shells have a limit on the size
22379 # of here documents, and old seds have small limits too (100 cmds).
22380 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22381 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22382 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22383 echo ' :' >>$CONFIG_STATUS
22384 rm -f conftest.tail
22385 while grep . conftest.defines >/dev/null
22387 # Write a limited-size here document to $tmp/defines.sed.
22388 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22389 # Speed up: don't consider the non `#define' lines.
22390 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22391 # Work around the forget-to-reset-the-flag bug.
22392 echo 't clr' >>$CONFIG_STATUS
22393 echo ': clr' >>$CONFIG_STATUS
22394 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
22396 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22398 mv $tmp/out $tmp/in
22400 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
22401 rm -f conftest.defines
22402 mv conftest.
tail conftest.defines
22404 rm -f conftest.defines
22405 echo ' fi # grep' >>$CONFIG_STATUS
22406 echo >>$CONFIG_STATUS
22408 # Break up conftest.undefs because some shells have a limit on the size
22409 # of here documents, and old seds have small limits too (100 cmds).
22410 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22411 rm -f conftest.
tail
22412 while grep . conftest.undefs
>/dev
/null
22414 # Write a limited-size here document to $tmp/undefs.sed.
22415 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22416 # Speed up: don't consider the non
`#undef'
22417 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22418 # Work around the forget-to-reset-the-flag bug.
22419 echo 't clr' >>$CONFIG_STATUS
22420 echo ': clr' >>$CONFIG_STATUS
22421 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22423 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22425 mv $tmp/out $tmp/in
22427 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22428 rm -f conftest.undefs
22429 mv conftest.tail conftest.undefs
22431 rm -f conftest.undefs
22433 cat >>$CONFIG_STATUS <<\_ACEOF
22434 # Let's still pretend it is `configure
' which instantiates (i.e., don't
22435 # use $as_me), people would be surprised to read:
22436 # /* config.h. Generated by config.status. */
22437 if test x
"$ac_file" = x-
; then
22438 echo "/* Generated by configure. */" >$tmp/config.h
22440 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22442 cat $tmp/in >>$tmp/config.h
22444 if test x
"$ac_file" != x-
; then
22445 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
22446 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22447 echo "$as_me: $ac_file is unchanged" >&6;}
22449 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
22450 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22451 X"$ac_file" : 'X\(//\)[^/]' \| \
22452 X"$ac_file" : 'X\(//\)$' \| \
22453 X"$ac_file" : 'X\(/\)' \| \
22454 . : '\(.\)' 2>/dev/null ||
22456 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22457 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22458 /^X\(\/\/\)$/{ s//\1/; q; }
22459 /^X\(\/\).*/{ s//\1/; q; }
22461 { if $as_mkdir_p; then
22466 while test ! -d "$as_dir"; do
22467 as_dirs
="$as_dir $as_dirs"
22468 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
22469 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22470 X"$as_dir" : 'X\(//\)[^/]' \| \
22471 X"$as_dir" : 'X\(//\)$' \| \
22472 X"$as_dir" : 'X\(/\)' \| \
22473 . : '\(.\)' 2>/dev/null ||
22475 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22476 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22477 /^X\(\/\/\)$/{ s//\1/; q; }
22478 /^X\(\/\).*/{ s//\1/; q; }
22481 test ! -n "$as_dirs" || mkdir
$as_dirs
22482 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22483 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22484 { (exit 1); exit 1; }; }; }
22487 mv $tmp/config.h
$ac_file
22491 rm -f $tmp/config.h
22496 cat >>$CONFIG_STATUS <<\_ACEOF
22498 { (exit 0); exit 0; }
22500 chmod +x
$CONFIG_STATUS
22501 ac_clean_files
=$ac_clean_files_save
22504 # configure is writing to config.log, and then calls config.status.
22505 # config.status does its own redirection, appending to config.log.
22506 # Unfortunately, on DOS this fails, as config.log is still kept open
22507 # by configure, so config.status won't be able to write to it; its
22508 # output is simply discarded. So we exec the FD to /dev/null,
22509 # effectively closing config.log, so it can be properly (re)opened and
22510 # appended to by config.status. When coming back to configure, we
22511 # need to make the FD available again.
22512 if test "$no_create" != yes; then
22514 ac_config_status_args
=
22515 test "$silent" = yes &&
22516 ac_config_status_args
="$ac_config_status_args --quiet"
22518 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
22520 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22521 # would make configure fail if this is the last instruction.
22522 $ac_cs_success ||
{ (exit 1); exit 1; }
22526 echo "creating Setup"
22527 if test ! -f Modules
/Setup
22529 cp $srcdir/Modules
/Setup.dist Modules
/Setup
22532 echo "creating Setup.local"
22533 if test ! -f Modules
/Setup.
local
22535 echo "# Edit this file for local setup changes" >Modules
/Setup.
local
22538 echo "creating Makefile"
22539 $SHELL $srcdir/Modules
/makesetup
-c $srcdir/Modules
/config.c.
in \
22540 -s Modules Modules
/Setup.config \
22541 Modules
/Setup.
local Modules
/Setup
22542 mv config.c Modules