2 # From configure.in Revision: 46700 .
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 UNIVERSALSDK PYTHONFRAMEWORK PYTHONFRAMEWORKDIR PYTHONFRAMEWORKPREFIX PYTHONFRAMEWORKINSTALLDIR FRAMEWORKINSTALLFIRST FRAMEWORKINSTALLLAST FRAMEWORKALTINSTALLFIRST FRAMEWORKALTINSTALLLAST FRAMEWORKUNIXTOOLSPREFIX MACHDEP SGI_ABI EXTRAPLATDIR EXTRAMACHDEPPATH CONFIGURE_MACOSX_DEPLOYMENT_TARGET EXPORT_MACOSX_DEPLOYMENT_TARGET CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX MAINCC 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-universalsdk[SDKDIR
]
849 Build agains Mac OS X
10.4u SDK
(ppc
/i386
)
850 --enable-framework[=INSTALLDIR
]
851 Build
(MacOSX|Darwin
) framework
852 --enable-shared disable
/enable building shared python library
853 --enable-profiling enable C-level code profiling
854 --enable-toolbox-glue disable
/enable MacOSX glue code
for extensions
855 --enable-ipv6 Enable ipv6
(with ipv4
) support
856 --disable-ipv6 Disable ipv6 support
857 --enable-unicode[=ucs
[24]]
858 Enable Unicode
strings (default is
yes)
861 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
862 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
863 --without-gcc never use gcc
864 --with-cxx-main=<compiler
>
865 compile main
() and link python executable with C
++
867 --with-suffix=.exe
set executable suffix
868 --with-pydebug build with Py_DEBUG defined
869 --with-libs='lib1 ...' link against additional libs
870 --with-system-ffi build _ctypes module using an installed ffi library
871 --with-signal-module disable
/enable signal module
872 --with-dec-threads use DEC Alpha
/OSF1 thread-safe libraries
873 --with(out
)-threads[=DIRECTORY
]
874 disable
/enable thread support
875 --with(out
)-thread[=DIRECTORY
]
876 deprecated
; use
--with(out
)-threads
877 --with-pth use GNU pth threading libraries
878 --with(out
)-doc-strings disable
/enable documentation
strings
879 --with(out
)-tsc enable
/disable timestamp counter profile
880 --with(out
)-pymalloc disable
/enable specialized mallocs
881 --with-wctype-functions use wctype.h functions
882 --with-fpectl enable SIGFPE catching
883 --with-libm=STRING math library
884 --with-libc=STRING C library
886 Some influential environment variables
:
887 CC C compiler
command
888 CFLAGS C compiler flags
889 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
890 nonstandard directory
<lib dir
>
891 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
892 headers
in a nonstandard directory
<include dir
>
895 Use these variables to override the choices made by
`configure' or to help
896 it to find libraries and programs with nonstandard names/locations.
898 Report bugs to <http://www.python.org/python-bugs>.
902 if test "$ac_init_help" = "recursive"; then
903 # If there are subdirs, report their specific --help.
905 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
906 test -d $ac_dir || continue
909 if test "$ac_dir" != .; then
910 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
911 # A "../" for each directory in $ac_dir_suffix.
912 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
914 ac_dir_suffix= ac_top_builddir=
918 .) # No --srcdir option. We are building in place.
920 if test -z "$ac_top_builddir"; then
923 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
925 [\\/]* | ?:[\\/]* ) # Absolute path.
926 ac_srcdir=$srcdir$ac_dir_suffix;
927 ac_top_srcdir=$srcdir ;;
929 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
930 ac_top_srcdir=$ac_top_builddir$srcdir ;;
933 # Do not use `cd foo
&& pwd` to compute absolute paths, because
934 # the directories may not exist.
936 .) ac_abs_builddir="$ac_dir";;
939 .) ac_abs_builddir=`pwd`;;
940 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
941 *) ac_abs_builddir=`pwd`/"$ac_dir";;
944 case $ac_abs_builddir in
945 .) ac_abs_top_builddir=${ac_top_builddir}.;;
947 case ${ac_top_builddir}. in
948 .) ac_abs_top_builddir=$ac_abs_builddir;;
949 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
950 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
953 case $ac_abs_builddir in
954 .) ac_abs_srcdir=$ac_srcdir;;
957 .) ac_abs_srcdir=$ac_abs_builddir;;
958 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
959 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
962 case $ac_abs_builddir in
963 .) ac_abs_top_srcdir=$ac_top_srcdir;;
965 case $ac_top_srcdir in
966 .) ac_abs_top_srcdir=$ac_abs_builddir;;
967 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
968 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
973 # Check for guested configure; otherwise get Cygnus style configure.
974 if test -f $ac_srcdir/configure.gnu; then
976 $SHELL $ac_srcdir/configure.gnu --help=recursive
977 elif test -f $ac_srcdir/configure; then
979 $SHELL $ac_srcdir/configure --help=recursive
980 elif test -f $ac_srcdir/configure.ac ||
981 test -f $ac_srcdir/configure.in; then
985 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
991 test -n "$ac_init_help" && exit 0
992 if $ac_init_version; then
995 generated by GNU Autoconf 2.59
997 Copyright (C) 2003 Free Software Foundation, Inc.
998 This configure script is free software; the Free Software Foundation
999 gives unlimited permission to copy, distribute and modify it.
1005 This file contains any messages produced by compilers while
1006 running configure, to aid debugging if configure makes a mistake.
1008 It was created by python $as_me 2.5, which was
1009 generated by GNU Autoconf 2.59. Invocation command line was
1020 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1021 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1022 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1023 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1024 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1026 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1027 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1029 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1030 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1031 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1032 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1033 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1034 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1035 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1043 test -z "$as_dir" && as_dir=.
1044 echo "PATH: $as_dir"
1059 # Keep a trace of the command line.
1060 # Strip out --no-create and --no-recursion so they do not pile up.
1061 # Strip out --silent because we don't want to record it for future runs.
1062 # Also quote any args containing shell meta-characters.
1063 # Make two passes to allow for proper duplicate-argument suppression.
1068 ac_must_keep_next=false
1074 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1075 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1076 | -silent | --silent | --silen | --sile | --sil)
1078 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1079 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1082 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1084 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1085 if test $ac_must_keep_next = true; then
1086 ac_must_keep_next=false # Got value, back to normal.
1089 *=* | --config-cache | -C | -disable-* | --disable-* \
1090 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1091 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1092 | -with-* | --with-* | -without-* | --without-* | --x)
1093 case "$ac_configure_args0 " in
1094 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1097 -* ) ac_must_keep_next=true ;;
1100 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1101 # Get rid of the leading space.
1107 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1108 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1110 # When interrupted or exit'd, cleanup temporary files, and complete
1111 # config.log. We remove comments because anyway the quotes in there
1112 # would cause problems or look ugly.
1113 # WARNING: Be sure not to use single quotes in there, as some shells,
1114 # such as our DU 5.0 friend, will then `close
' the trap.
1115 trap 'exit_status
=$?
1116 # Save into config.log some information that might help in debugging.
1121 ## ---------------- ##
1122 ## Cache variables. ##
1123 ## ---------------- ##
1126 # The following way of writing the cache mishandles newlines in values,
1129 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1132 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1133 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1137 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1144 ## ----------------- ##
1145 ## Output variables. ##
1146 ## ----------------- ##
1149 for ac_var
in $ac_subst_vars
1151 eval ac_val
=$
`echo $ac_var`
1152 echo "$ac_var='"'"'$ac_val'"'"'"
1156 if test -n "$ac_subst_files"; then
1163 for ac_var
in $ac_subst_files
1165 eval ac_val
=$
`echo $ac_var`
1166 echo "$ac_var='"'"'$ac_val'"'"'"
1171 if test -s confdefs.h
; then
1178 sed "/^$/d" confdefs.h |
sort
1181 test "$ac_signal" != 0 &&
1182 echo "$as_me: caught signal $ac_signal"
1183 echo "$as_me: exit $exit_status"
1185 rm -f core
*.core
&&
1186 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1189 for ac_signal in 1 2 13 15; do
1190 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1194 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1195 rm -rf conftest* confdefs.h
1196 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1199 # Predefined preprocessor variables.
1201 cat >>confdefs.h <<_ACEOF
1202 #define PACKAGE_NAME "$PACKAGE_NAME"
1206 cat >>confdefs.h <<_ACEOF
1207 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1211 cat >>confdefs.h <<_ACEOF
1212 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1216 cat >>confdefs.h <<_ACEOF
1217 #define PACKAGE_STRING "$PACKAGE_STRING"
1221 cat >>confdefs.h <<_ACEOF
1222 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1226 # Let the site file select an alternate cache file if it wants to.
1227 # Prefer explicitly selected file to automatically selected ones.
1228 if test -z "$CONFIG_SITE"; then
1229 if test "x$prefix" != xNONE; then
1230 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1232 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1235 for ac_site_file in $CONFIG_SITE; do
1236 if test -r "$ac_site_file"; then
1237 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1238 echo "$as_me: loading site script $ac_site_file" >&6;}
1239 sed 's
/^
/|
/' "$ac_site_file" >&5
1244 if test -r "$cache_file"; then
1245 # Some versions of bash will fail to source /dev/null (special
1246 # files actually), so we avoid doing that.
1247 if test -f "$cache_file"; then
1248 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1249 echo "$as_me: loading cache $cache_file" >&6;}
1251 [\\/]* | ?:[\\/]* ) . $cache_file;;
1252 *) . ./$cache_file;;
1256 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1257 echo "$as_me: creating cache $cache_file" >&6;}
1261 # Check that the precious variables saved in the cache have kept the same
1263 ac_cache_corrupted=false
1264 for ac_var in `(set) 2>&1 |
1265 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1266 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1267 eval ac_new_set=\$ac_env_${ac_var}_set
1268 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1269 eval ac_new_val="\$ac_env_${ac_var}_value"
1270 case $ac_old_set,$ac_new_set in
1272 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1273 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1274 ac_cache_corrupted=: ;;
1276 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1277 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1278 ac_cache_corrupted=: ;;
1281 if test "x$ac_old_val" != "x$ac_new_val"; then
1282 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1283 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1284 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1285 echo "$as_me: former value: $ac_old_val" >&2;}
1286 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1287 echo "$as_me: current value: $ac_new_val" >&2;}
1288 ac_cache_corrupted=:
1291 # Pass precious variables to config.status.
1292 if test "$ac_new_set" = set; then
1294 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1295 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1296 *) ac_arg=$ac_var=$ac_new_val ;;
1298 case " $ac_configure_args " in
1299 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1300 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1304 if $ac_cache_corrupted; then
1305 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1306 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1307 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1308 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1309 { (exit 1); exit 1; }; }
1313 ac_cpp='$CPP $CPPFLAGS'
1314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1315 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1345 ac_config_headers="$ac_config_headers pyconfig.h"
1353 # We don't use PACKAGE_ variables
, and they cause conflicts
1354 # with other autoconf-based packages that include Python.h
1355 grep -v 'define PACKAGE_' <confdefs.h
>confdefs.h.new
1357 mv confdefs.h.new confdefs.h
1365 # The later defininition of _XOPEN_SOURCE disables certain features
1366 # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
1368 cat >>confdefs.h
<<\_ACEOF
1369 #define _GNU_SOURCE 1
1373 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1374 # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
1377 cat >>confdefs.h
<<\_ACEOF
1378 #define _NETBSD_SOURCE 1
1382 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1383 # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
1386 cat >>confdefs.h
<<\_ACEOF
1387 #define __BSD_VISIBLE 1
1391 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1392 # u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
1394 cat >>confdefs.h
<<\_ACEOF
1395 #define _BSD_TYPES 1
1399 define_xopen_source
=yes
1401 # Arguments passed to configure.
1403 CONFIG_ARGS
="$ac_configure_args"
1405 # Check whether --enable-universalsdk or --disable-universalsdk was given.
1406 if test "${enable_universalsdk+set}" = set; then
1407 enableval
="$enable_universalsdk"
1411 enableval
=/Developer
/SDKs
/MacOSX10.4u.sdk
1417 enable_universalsdk
=
1420 UNIVERSALSDK
=$enableval
1427 enable_universalsdk
=
1432 # Check whether --enable-framework or --disable-framework was given.
1433 if test "${enable_framework+set}" = set; then
1434 enableval
="$enable_framework"
1438 enableval
=/Library
/Frameworks
1443 PYTHONFRAMEWORKDIR
=no-framework
1444 PYTHONFRAMEWORKPREFIX
=
1445 PYTHONFRAMEWORKINSTALLDIR
=
1446 FRAMEWORKINSTALLFIRST
=
1447 FRAMEWORKINSTALLLAST
=
1448 FRAMEWORKALTINSTALLFIRST
=
1449 FRAMEWORKALTINSTALLLAST
=
1450 if test "x${prefix}" = "xNONE"; then
1451 FRAMEWORKUNIXTOOLSPREFIX
="${ac_default_prefix}"
1453 FRAMEWORKUNIXTOOLSPREFIX
="${prefix}"
1458 PYTHONFRAMEWORK
=Python
1459 PYTHONFRAMEWORKDIR
=Python.framework
1460 PYTHONFRAMEWORKPREFIX
=$enableval
1461 PYTHONFRAMEWORKINSTALLDIR
=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
1462 FRAMEWORKINSTALLFIRST
="frameworkinstallstructure"
1463 FRAMEWORKINSTALLLAST
="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools"
1464 FRAMEWORKALTINSTALLFIRST
="${FRAMEWORKINSTALLFIRST} bininstall maninstall"
1465 FRAMEWORKALTINSTALLLAST
="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools"
1466 if test "x${prefix}" = "xNONE" ; then
1467 FRAMEWORKUNIXTOOLSPREFIX
="${ac_default_prefix}"
1469 FRAMEWORKUNIXTOOLSPREFIX
="${prefix}"
1471 prefix
=$PYTHONFRAMEWORKINSTALLDIR/Versions
/$VERSION
1473 # Add makefiles for Mac specific code to the list of output
1475 ac_config_files
="$ac_config_files Mac/Makefile"
1477 ac_config_files
="$ac_config_files Mac/PythonLauncher/Makefile"
1479 ac_config_files
="$ac_config_files Mac/IDLE/Makefile"
1486 PYTHONFRAMEWORKDIR
=no-framework
1487 PYTHONFRAMEWORKPREFIX
=
1488 PYTHONFRAMEWORKINSTALLDIR
=
1489 FRAMEWORKINSTALLFIRST
=
1490 FRAMEWORKINSTALLLAST
=
1491 FRAMEWORKALTINSTALLFIRST
=
1492 FRAMEWORKALTINSTALLLAST
=
1493 if test "x${prefix}" = "xNONE" ; then
1494 FRAMEWORKUNIXTOOLSPREFIX
="${ac_default_prefix}"
1496 FRAMEWORKUNIXTOOLSPREFIX
="${prefix}"
1512 ## AC_HELP_STRING(--with-dyld,
1513 ## Use (OpenStep|Rhapsody) dynamic linker))
1515 # Set name for machine-dependent library files
1517 echo "$as_me:$LINENO: checking MACHDEP" >&5
1518 echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6
1519 if test -z "$MACHDEP"
1521 ac_sys_system
=`uname -s`
1522 if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \
1523 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
1524 ac_sys_release
=`uname -v`
1526 ac_sys_release
=`uname -r`
1528 ac_md_system
=`echo $ac_sys_system |
1529 tr -d '/ ' | tr '[A-Z]' '[a-z]'`
1530 ac_md_release
=`echo $ac_sys_release |
1531 tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'`
1532 MACHDEP
="$ac_md_system$ac_md_release"
1535 cygwin
*) MACHDEP
="cygwin";;
1536 darwin
*) MACHDEP
="darwin";;
1537 atheos
*) MACHDEP
="atheos";;
1538 irix646
) MACHDEP
="irix6";;
1539 '') MACHDEP
="unknown";;
1543 # Some systems cannot stand _XOPEN_SOURCE being defined at all; they
1544 # disable features if it is defined, without any means to access these
1545 # features as extensions. For these systems, we skip the definition of
1546 # _XOPEN_SOURCE. Before adding a system to the list to gain access to
1547 # some feature, make sure there is no alternative way to access this
1548 # feature. Also, when using wildcards, make sure you have verified the
1549 # need for not defining _XOPEN_SOURCE on all systems matching the
1550 # wildcard, and that the wildcard does not include future systems
1551 # (which may remove their limitations).
1552 case $ac_sys_system/$ac_sys_release in
1553 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
1554 # even though select is a POSIX function. Reported by J. Ribbens.
1555 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
1556 OpenBSD
/2.
* | OpenBSD
/3.
[0123456789])
1557 define_xopen_source
=no
;;
1558 # On Solaris 2.6, sys/wait.h is inconsistent in the usage
1559 # of union __?sigval. Reported by Stuart Bishop.
1561 define_xopen_source
=no
;;
1562 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
1563 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
1564 # Reconfirmed for 7.1.4 by Martin v. Loewis.
1565 OpenUNIX
/8.0.0| UnixWare
/7.1.
[0-4])
1566 define_xopen_source
=no
;;
1567 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
1568 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
1570 define_xopen_source
=no
;;
1571 # On FreeBSD 4.8 and MacOS X 10.2, a bug in ncurses.h means that
1572 # it craps out if _XOPEN_EXTENDED_SOURCE is defined. Apparently,
1573 # this is fixed in 10.3, which identifies itself as Darwin/7.*
1574 # This should hopefully be fixed in FreeBSD 4.9
1575 FreeBSD
/4.8* | Darwin
/6* )
1576 define_xopen_source
=no
;;
1577 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
1578 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
1579 # or has another value. By not (re)defining it, the defaults come in place.
1581 define_xopen_source
=no
;;
1583 if test `uname -r` -eq 1; then
1584 define_xopen_source
=no
1587 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
1588 # disables platform specific features beyond repair.
1589 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
1590 # has no effect, don't bother defineing them
1592 define_xopen_source
=no
1597 if test $define_xopen_source = yes
1599 # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be
1600 # defined precisely as g++ defines it
1601 # Furthermore, on Solaris 10, XPG6 requires the use of a C99
1603 case $ac_sys_system/$ac_sys_release in
1604 SunOS
/5.8|SunOS
/5.9|SunOS
/5.10)
1606 cat >>confdefs.h
<<\_ACEOF
1607 #define _XOPEN_SOURCE 500
1613 cat >>confdefs.h
<<\_ACEOF
1614 #define _XOPEN_SOURCE 600
1620 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
1621 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
1622 # several APIs are not declared. Since this is also needed in some
1623 # cases for HP-UX, we define it globally.
1624 # except for Solaris 10, where it must not be defined,
1625 # as it implies XPG4.2
1626 case $ac_sys_system/$ac_sys_release in
1631 cat >>confdefs.h
<<\_ACEOF
1632 #define _XOPEN_SOURCE_EXTENDED 1
1639 cat >>confdefs.h
<<\_ACEOF
1640 #define _POSIX_C_SOURCE 200112L
1647 # SGI compilers allow the specification of the both the ABI and the
1648 # ISA on the command line. Depending on the values of these switches,
1649 # different and often incompatable code will be generated.
1651 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
1652 # thus supply support for various ABI/ISA combinations. The MACHDEP
1653 # variable is also adjusted.
1656 if test ! -z "$SGI_ABI"
1659 LDFLAGS
="$SGI_ABI $LDFLAGS"
1660 MACHDEP
=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'`
1662 echo "$as_me:$LINENO: result: $MACHDEP" >&5
1663 echo "${ECHO_T}$MACHDEP" >&6
1665 # And add extra plat-mac for darwin
1668 echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5
1669 echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6
1670 if test -z "$EXTRAPLATDIR"
1674 EXTRAPLATDIR
="\$(PLATMACDIRS)"
1675 EXTRAMACHDEPPATH
="\$(PLATMACPATH)"
1683 echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5
1684 echo "${ECHO_T}$EXTRAPLATDIR" >&6
1686 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
1687 # it may influence the way we can build extensions, so distutils
1691 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
=
1692 EXPORT_MACOSX_DEPLOYMENT_TARGET
='#'
1694 # checks for alternative programs
1696 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
1697 # for debug/optimization stuff. BASECFLAGS is for flags that are required
1698 # just to get things to compile and link. Users are free to override OPT
1699 # when running configure or make. The build should not break if they do.
1700 # BASECFLAGS should generally not be messed with, however.
1702 # XXX shouldn't some/most/all of this code be merged with the stuff later
1703 # on that fiddles with OPT and BASECFLAGS?
1704 echo "$as_me:$LINENO: checking for --without-gcc" >&5
1705 echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6
1707 # Check whether --with-gcc or --without-gcc was given.
1708 if test "${with_gcc+set}" = set; then
1717 without_gcc
=$withval;;
1721 case $ac_sys_system in
1725 case $BE_HOST_CPU in
1729 BASECFLAGS
="$BASECFLAGS -export pragma"
1731 LDFLAGS
="$LDFLAGS -nodup"
1739 { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5
1740 echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;}
1741 { (exit 1); exit 1; }; }
1744 AR
="\$(srcdir)/Modules/ar_beos"
1753 echo "$as_me:$LINENO: result: $without_gcc" >&5
1754 echo "${ECHO_T}$without_gcc" >&6
1756 # If the user switches compilers, we can't believe the cache
1757 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
1759 { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
1760 (it is also a good idea to do 'make clean' before compiling)" >&5
1761 echo "$as_me: error: cached CC is different -- throw away $cache_file
1762 (it is also a good idea to do 'make clean' before compiling)" >&2;}
1763 { (exit 1); exit 1; }; }
1767 ac_cpp
='$CPP $CPPFLAGS'
1768 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1769 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1770 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1771 if test -n "$ac_tool_prefix"; then
1772 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1773 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1774 echo "$as_me:$LINENO: checking for $ac_word" >&5
1775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1776 if test "${ac_cv_prog_CC+set}" = set; then
1777 echo $ECHO_N "(cached) $ECHO_C" >&6
1779 if test -n "$CC"; then
1780 ac_cv_prog_CC
="$CC" # Let the user override the test.
1782 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1786 test -z "$as_dir" && as_dir
=.
1787 for ac_exec_ext
in '' $ac_executable_extensions; do
1788 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1789 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1790 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1799 if test -n "$CC"; then
1800 echo "$as_me:$LINENO: result: $CC" >&5
1801 echo "${ECHO_T}$CC" >&6
1803 echo "$as_me:$LINENO: result: no" >&5
1804 echo "${ECHO_T}no" >&6
1808 if test -z "$ac_cv_prog_CC"; then
1810 # Extract the first word of "gcc", so it can be a program name with args.
1811 set dummy gcc
; ac_word
=$2
1812 echo "$as_me:$LINENO: checking for $ac_word" >&5
1813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1814 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1815 echo $ECHO_N "(cached) $ECHO_C" >&6
1817 if test -n "$ac_ct_CC"; then
1818 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1820 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1824 test -z "$as_dir" && as_dir
=.
1825 for ac_exec_ext
in '' $ac_executable_extensions; do
1826 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1827 ac_cv_prog_ac_ct_CC
="gcc"
1828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1836 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1837 if test -n "$ac_ct_CC"; then
1838 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1839 echo "${ECHO_T}$ac_ct_CC" >&6
1841 echo "$as_me:$LINENO: result: no" >&5
1842 echo "${ECHO_T}no" >&6
1850 if test -z "$CC"; then
1851 if test -n "$ac_tool_prefix"; then
1852 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1853 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1854 echo "$as_me:$LINENO: checking for $ac_word" >&5
1855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1856 if test "${ac_cv_prog_CC+set}" = set; then
1857 echo $ECHO_N "(cached) $ECHO_C" >&6
1859 if test -n "$CC"; then
1860 ac_cv_prog_CC
="$CC" # Let the user override the test.
1862 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1866 test -z "$as_dir" && as_dir
=.
1867 for ac_exec_ext
in '' $ac_executable_extensions; do
1868 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1869 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1879 if test -n "$CC"; then
1880 echo "$as_me:$LINENO: result: $CC" >&5
1881 echo "${ECHO_T}$CC" >&6
1883 echo "$as_me:$LINENO: result: no" >&5
1884 echo "${ECHO_T}no" >&6
1888 if test -z "$ac_cv_prog_CC"; then
1890 # Extract the first word of "cc", so it can be a program name with args.
1891 set dummy cc
; ac_word
=$2
1892 echo "$as_me:$LINENO: checking for $ac_word" >&5
1893 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1894 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1895 echo $ECHO_N "(cached) $ECHO_C" >&6
1897 if test -n "$ac_ct_CC"; then
1898 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1900 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1904 test -z "$as_dir" && as_dir
=.
1905 for ac_exec_ext
in '' $ac_executable_extensions; do
1906 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1907 ac_cv_prog_ac_ct_CC
="cc"
1908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1916 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1917 if test -n "$ac_ct_CC"; then
1918 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1919 echo "${ECHO_T}$ac_ct_CC" >&6
1921 echo "$as_me:$LINENO: result: no" >&5
1922 echo "${ECHO_T}no" >&6
1931 if test -z "$CC"; then
1932 # Extract the first word of "cc", so it can be a program name with args.
1933 set dummy cc
; ac_word
=$2
1934 echo "$as_me:$LINENO: checking for $ac_word" >&5
1935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1936 if test "${ac_cv_prog_CC+set}" = set; then
1937 echo $ECHO_N "(cached) $ECHO_C" >&6
1939 if test -n "$CC"; then
1940 ac_cv_prog_CC
="$CC" # Let the user override the test.
1943 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1947 test -z "$as_dir" && as_dir
=.
1948 for ac_exec_ext
in '' $ac_executable_extensions; do
1949 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1950 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1951 ac_prog_rejected
=yes
1955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1961 if test $ac_prog_rejected = yes; then
1962 # We found a bogon in the path, so make sure we never use it.
1963 set dummy
$ac_cv_prog_CC
1965 if test $# != 0; then
1966 # We chose a different compiler from the bogus one.
1967 # However, it has the same basename, so the bogon will be chosen
1968 # first if we set CC to just the basename; use the full file name.
1970 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
1976 if test -n "$CC"; then
1977 echo "$as_me:$LINENO: result: $CC" >&5
1978 echo "${ECHO_T}$CC" >&6
1980 echo "$as_me:$LINENO: result: no" >&5
1981 echo "${ECHO_T}no" >&6
1985 if test -z "$CC"; then
1986 if test -n "$ac_tool_prefix"; then
1989 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1990 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
1991 echo "$as_me:$LINENO: checking for $ac_word" >&5
1992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1993 if test "${ac_cv_prog_CC+set}" = set; then
1994 echo $ECHO_N "(cached) $ECHO_C" >&6
1996 if test -n "$CC"; then
1997 ac_cv_prog_CC
="$CC" # Let the user override the test.
1999 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2003 test -z "$as_dir" && as_dir
=.
2004 for ac_exec_ext
in '' $ac_executable_extensions; do
2005 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2006 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2016 if test -n "$CC"; then
2017 echo "$as_me:$LINENO: result: $CC" >&5
2018 echo "${ECHO_T}$CC" >&6
2020 echo "$as_me:$LINENO: result: no" >&5
2021 echo "${ECHO_T}no" >&6
2024 test -n "$CC" && break
2027 if test -z "$CC"; then
2031 # Extract the first word of "$ac_prog", so it can be a program name with args.
2032 set dummy
$ac_prog; ac_word
=$2
2033 echo "$as_me:$LINENO: checking for $ac_word" >&5
2034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2035 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2036 echo $ECHO_N "(cached) $ECHO_C" >&6
2038 if test -n "$ac_ct_CC"; then
2039 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2041 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2045 test -z "$as_dir" && as_dir
=.
2046 for ac_exec_ext
in '' $ac_executable_extensions; do
2047 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2048 ac_cv_prog_ac_ct_CC
="$ac_prog"
2049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2057 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2058 if test -n "$ac_ct_CC"; then
2059 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2060 echo "${ECHO_T}$ac_ct_CC" >&6
2062 echo "$as_me:$LINENO: result: no" >&5
2063 echo "${ECHO_T}no" >&6
2066 test -n "$ac_ct_CC" && break
2075 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2076 See \`config.log' for more details." >&5
2077 echo "$as_me: error: no acceptable C compiler found in \$PATH
2078 See \`config.log' for more details." >&2;}
2079 { (exit 1); exit 1; }; }
2081 # Provide some information about the compiler.
2082 echo "$as_me:$LINENO:" \
2083 "checking for C compiler version" >&5
2084 ac_compiler
=`set X $ac_compile; echo $2`
2085 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2086 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2089 (exit $ac_status); }
2090 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2091 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2094 (exit $ac_status); }
2095 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2096 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2099 (exit $ac_status); }
2101 cat >conftest.
$ac_ext <<_ACEOF
2104 cat confdefs.h
>>conftest.
$ac_ext
2105 cat >>conftest.
$ac_ext <<_ACEOF
2106 /* end confdefs.h. */
2116 ac_clean_files_save
=$ac_clean_files
2117 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2118 # Try to create an executable without -o first, disregard a.out.
2119 # It will help us diagnose broken compilers, and finding out an intuition
2121 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2122 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2123 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2124 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2125 (eval $ac_link_default) 2>&5
2127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2128 (exit $ac_status); }; then
2129 # Find the output, starting from the most likely. This scheme is
2130 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2133 # Be careful to initialize this variable, since it used to be cached.
2134 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2136 # b.out is created by i960 compilers.
2137 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2139 test -f "$ac_file" ||
continue
2141 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2144 # This is the source file.
2147 # We found the default executable, but exeext='' is most
2151 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2152 # FIXME: I believe we export ac_cv_exeext for Libtool,
2153 # but it would be cool to find out if it's true. Does anybody
2154 # maintain Libtool? --akim.
2162 echo "$as_me: failed program was:" >&5
2163 sed 's/^/| /' conftest.
$ac_ext >&5
2165 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2166 See \`config.log' for more details." >&5
2167 echo "$as_me: error: C compiler cannot create executables
2168 See \`config.log' for more details." >&2;}
2169 { (exit 77); exit 77; }; }
2172 ac_exeext
=$ac_cv_exeext
2173 echo "$as_me:$LINENO: result: $ac_file" >&5
2174 echo "${ECHO_T}$ac_file" >&6
2176 # Check the compiler produces executables we can run. If not, either
2177 # the compiler is broken, or we cross compile.
2178 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2179 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2180 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2181 # If not cross compiling, check that we can run a simple program.
2182 if test "$cross_compiling" != yes; then
2183 if { ac_try
='./$ac_file'
2184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2188 (exit $ac_status); }; }; then
2191 if test "$cross_compiling" = maybe
; then
2194 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2195 If you meant to cross compile, use \`--host'.
2196 See \`config.log' for more details." >&5
2197 echo "$as_me: error: cannot run C compiled programs.
2198 If you meant to cross compile, use \`--host'.
2199 See \`config.log' for more details." >&2;}
2200 { (exit 1); exit 1; }; }
2204 echo "$as_me:$LINENO: result: yes" >&5
2205 echo "${ECHO_T}yes" >&6
2207 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2208 ac_clean_files
=$ac_clean_files_save
2209 # Check the compiler produces executables we can run. If not, either
2210 # the compiler is broken, or we cross compile.
2211 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2212 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2213 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2214 echo "${ECHO_T}$cross_compiling" >&6
2216 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2217 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2219 (eval $ac_link) 2>&5
2221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2222 (exit $ac_status); }; then
2223 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2224 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2225 # work properly (i.e., refer to `conftest.exe'), while it won't with
2227 for ac_file
in conftest.exe conftest conftest.
*; do
2228 test -f "$ac_file" ||
continue
2230 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2231 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2238 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2239 See \`config.log' for more details." >&5
2240 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2241 See \`config.log' for more details." >&2;}
2242 { (exit 1); exit 1; }; }
2245 rm -f conftest
$ac_cv_exeext
2246 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2247 echo "${ECHO_T}$ac_cv_exeext" >&6
2249 rm -f conftest.
$ac_ext
2250 EXEEXT
=$ac_cv_exeext
2252 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2253 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2254 if test "${ac_cv_objext+set}" = set; then
2255 echo $ECHO_N "(cached) $ECHO_C" >&6
2257 cat >conftest.
$ac_ext <<_ACEOF
2260 cat confdefs.h
>>conftest.
$ac_ext
2261 cat >>conftest.
$ac_ext <<_ACEOF
2262 /* end confdefs.h. */
2272 rm -f conftest.o conftest.obj
2273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2274 (eval $ac_compile) 2>&5
2276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2277 (exit $ac_status); }; then
2278 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2280 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2281 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2286 echo "$as_me: failed program was:" >&5
2287 sed 's/^/| /' conftest.
$ac_ext >&5
2289 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2290 See \`config.log' for more details." >&5
2291 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2292 See \`config.log' for more details." >&2;}
2293 { (exit 1); exit 1; }; }
2296 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2298 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2299 echo "${ECHO_T}$ac_cv_objext" >&6
2300 OBJEXT
=$ac_cv_objext
2302 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2303 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2304 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2305 echo $ECHO_N "(cached) $ECHO_C" >&6
2307 cat >conftest.
$ac_ext <<_ACEOF
2310 cat confdefs.h
>>conftest.
$ac_ext
2311 cat >>conftest.
$ac_ext <<_ACEOF
2312 /* end confdefs.h. */
2325 rm -f conftest.
$ac_objext
2326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2327 (eval $ac_compile) 2>conftest.er1
2329 grep -v '^ *+' conftest.er1
>conftest.err
2331 cat conftest.err
>&5
2332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2333 (exit $ac_status); } &&
2334 { ac_try
='test -z "$ac_c_werror_flag"
2335 || test ! -s conftest.err'
2336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2340 (exit $ac_status); }; } &&
2341 { ac_try
='test -s conftest.$ac_objext'
2342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346 (exit $ac_status); }; }; then
2349 echo "$as_me: failed program was:" >&5
2350 sed 's/^/| /' conftest.
$ac_ext >&5
2354 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2355 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2358 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2359 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2360 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2361 ac_test_CFLAGS
=${CFLAGS+set}
2362 ac_save_CFLAGS
=$CFLAGS
2364 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2365 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2366 if test "${ac_cv_prog_cc_g+set}" = set; then
2367 echo $ECHO_N "(cached) $ECHO_C" >&6
2369 cat >conftest.
$ac_ext <<_ACEOF
2372 cat confdefs.h
>>conftest.
$ac_ext
2373 cat >>conftest.
$ac_ext <<_ACEOF
2374 /* end confdefs.h. */
2384 rm -f conftest.
$ac_objext
2385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2386 (eval $ac_compile) 2>conftest.er1
2388 grep -v '^ *+' conftest.er1
>conftest.err
2390 cat conftest.err
>&5
2391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2392 (exit $ac_status); } &&
2393 { ac_try
='test -z "$ac_c_werror_flag"
2394 || test ! -s conftest.err'
2395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399 (exit $ac_status); }; } &&
2400 { ac_try
='test -s conftest.$ac_objext'
2401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405 (exit $ac_status); }; }; then
2408 echo "$as_me: failed program was:" >&5
2409 sed 's/^/| /' conftest.
$ac_ext >&5
2413 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2415 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2416 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2417 if test "$ac_test_CFLAGS" = set; then
2418 CFLAGS
=$ac_save_CFLAGS
2419 elif test $ac_cv_prog_cc_g = yes; then
2420 if test "$GCC" = yes; then
2426 if test "$GCC" = yes; then
2432 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2433 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2434 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2435 echo $ECHO_N "(cached) $ECHO_C" >&6
2437 ac_cv_prog_cc_stdc
=no
2439 cat >conftest.
$ac_ext <<_ACEOF
2442 cat confdefs.h
>>conftest.
$ac_ext
2443 cat >>conftest.
$ac_ext <<_ACEOF
2444 /* end confdefs.h. */
2447 #include <sys/types.h>
2448 #include <sys/stat.h>
2449 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2450 struct buf { int x; };
2451 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2452 static char *e (p, i)
2458 static char *f (char * (*g) (char **, int), char **p, ...)
2463 s = g (p, va_arg (v,int));
2468 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2469 function prototypes and stuff, but not '\xHH' hex character constants.
2470 These don't provoke an error unfortunately, instead are silently treated
2471 as 'x'. The following induces an error, until -std1 is added to get
2472 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2473 array size at least. It's necessary to write '\x00'==0 to get something
2474 that's true only with -std1. */
2475 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2477 int test (int i, double x);
2478 struct s1 {int (*f) (int a);};
2479 struct s2 {int (*f) (double a);};
2480 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2486 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2491 # Don't try gcc -ansi; that turns off useful extensions and
2492 # breaks some systems' header files.
2493 # AIX -qlanglvl=ansi
2494 # Ultrix and OSF/1 -std1
2495 # HP-UX 10.20 and later -Ae
2496 # HP-UX older versions -Aa -D_HPUX_SOURCE
2497 # SVR4 -Xc -D__EXTENSIONS__
2498 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2500 CC
="$ac_save_CC $ac_arg"
2501 rm -f conftest.
$ac_objext
2502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2503 (eval $ac_compile) 2>conftest.er1
2505 grep -v '^ *+' conftest.er1
>conftest.err
2507 cat conftest.err
>&5
2508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509 (exit $ac_status); } &&
2510 { ac_try
='test -z "$ac_c_werror_flag"
2511 || test ! -s conftest.err'
2512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2516 (exit $ac_status); }; } &&
2517 { ac_try
='test -s conftest.$ac_objext'
2518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2522 (exit $ac_status); }; }; then
2523 ac_cv_prog_cc_stdc
=$ac_arg
2526 echo "$as_me: failed program was:" >&5
2527 sed 's/^/| /' conftest.
$ac_ext >&5
2530 rm -f conftest.err conftest.
$ac_objext
2532 rm -f conftest.
$ac_ext conftest.
$ac_objext
2537 case "x$ac_cv_prog_cc_stdc" in
2539 echo "$as_me:$LINENO: result: none needed" >&5
2540 echo "${ECHO_T}none needed" >&6 ;;
2542 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2543 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2544 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2547 # Some people use a C++ compiler to compile C. Since we use `exit',
2548 # in C++ we need to declare it. In case someone uses the same compiler
2549 # for both compiling C and C++ we need to have the C++ compiler decide
2550 # the declaration of exit, since it's the most demanding environment.
2551 cat >conftest.
$ac_ext <<_ACEOF
2556 rm -f conftest.
$ac_objext
2557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2558 (eval $ac_compile) 2>conftest.er1
2560 grep -v '^ *+' conftest.er1
>conftest.err
2562 cat conftest.err
>&5
2563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564 (exit $ac_status); } &&
2565 { ac_try
='test -z "$ac_c_werror_flag"
2566 || test ! -s conftest.err'
2567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571 (exit $ac_status); }; } &&
2572 { ac_try
='test -s conftest.$ac_objext'
2573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577 (exit $ac_status); }; }; then
2578 for ac_declaration
in \
2580 'extern "C" void std::exit (int) throw (); using std::exit;' \
2581 'extern "C" void std::exit (int); using std::exit;' \
2582 'extern "C" void exit (int) throw ();' \
2583 'extern "C" void exit (int);' \
2586 cat >conftest.
$ac_ext <<_ACEOF
2589 cat confdefs.h
>>conftest.
$ac_ext
2590 cat >>conftest.
$ac_ext <<_ACEOF
2591 /* end confdefs.h. */
2602 rm -f conftest.
$ac_objext
2603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2604 (eval $ac_compile) 2>conftest.er1
2606 grep -v '^ *+' conftest.er1
>conftest.err
2608 cat conftest.err
>&5
2609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610 (exit $ac_status); } &&
2611 { ac_try
='test -z "$ac_c_werror_flag"
2612 || test ! -s conftest.err'
2613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617 (exit $ac_status); }; } &&
2618 { ac_try
='test -s conftest.$ac_objext'
2619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623 (exit $ac_status); }; }; then
2626 echo "$as_me: failed program was:" >&5
2627 sed 's/^/| /' conftest.
$ac_ext >&5
2631 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2632 cat >conftest.
$ac_ext <<_ACEOF
2635 cat confdefs.h
>>conftest.
$ac_ext
2636 cat >>conftest.
$ac_ext <<_ACEOF
2637 /* end confdefs.h. */
2647 rm -f conftest.
$ac_objext
2648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2649 (eval $ac_compile) 2>conftest.er1
2651 grep -v '^ *+' conftest.er1
>conftest.err
2653 cat conftest.err
>&5
2654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655 (exit $ac_status); } &&
2656 { ac_try
='test -z "$ac_c_werror_flag"
2657 || test ! -s conftest.err'
2658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662 (exit $ac_status); }; } &&
2663 { ac_try
='test -s conftest.$ac_objext'
2664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2668 (exit $ac_status); }; }; then
2671 echo "$as_me: failed program was:" >&5
2672 sed 's/^/| /' conftest.
$ac_ext >&5
2675 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2678 if test -n "$ac_declaration"; then
2679 echo '#ifdef __cplusplus' >>confdefs.h
2680 echo $ac_declaration >>confdefs.h
2681 echo '#endif' >>confdefs.h
2685 echo "$as_me: failed program was:" >&5
2686 sed 's/^/| /' conftest.
$ac_ext >&5
2689 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2691 ac_cpp
='$CPP $CPPFLAGS'
2692 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2693 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2694 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2699 echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5
2700 echo $ECHO_N "checking for --with-cxx-main=<compiler>... $ECHO_C" >&6
2702 # Check whether --with-cxx_main or --without-cxx_main was given.
2703 if test "${with_cxx_main+set}" = set; then
2704 withval
="$with_cxx_main"
2708 no
) with_cxx_main
=no
2710 yes) with_cxx_main
=yes
2712 *) with_cxx_main
=yes
2725 echo "$as_me:$LINENO: result: $with_cxx_main" >&5
2726 echo "${ECHO_T}$with_cxx_main" >&6
2732 gcc
) # Extract the first word of "g++", so it can be a program name with args.
2733 set dummy g
++; ac_word
=$2
2734 echo "$as_me:$LINENO: checking for $ac_word" >&5
2735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2736 if test "${ac_cv_path_CXX+set}" = set; then
2737 echo $ECHO_N "(cached) $ECHO_C" >&6
2741 ac_cv_path_CXX
="$CXX" # Let the user override the test with a path.
2744 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2745 for as_dir
in notfound
2748 test -z "$as_dir" && as_dir
=.
2749 for ac_exec_ext
in '' $ac_executable_extensions; do
2750 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2751 ac_cv_path_CXX
="$as_dir/$ac_word$ac_exec_ext"
2752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2758 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX
="g++"
2764 if test -n "$CXX"; then
2765 echo "$as_me:$LINENO: result: $CXX" >&5
2766 echo "${ECHO_T}$CXX" >&6
2768 echo "$as_me:$LINENO: result: no" >&5
2769 echo "${ECHO_T}no" >&6
2772 cc
) # Extract the first word of "c++", so it can be a program name with args.
2773 set dummy c
++; ac_word
=$2
2774 echo "$as_me:$LINENO: checking for $ac_word" >&5
2775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2776 if test "${ac_cv_path_CXX+set}" = set; then
2777 echo $ECHO_N "(cached) $ECHO_C" >&6
2781 ac_cv_path_CXX
="$CXX" # Let the user override the test with a path.
2784 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2785 for as_dir
in notfound
2788 test -z "$as_dir" && as_dir
=.
2789 for ac_exec_ext
in '' $ac_executable_extensions; do
2790 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2791 ac_cv_path_CXX
="$as_dir/$ac_word$ac_exec_ext"
2792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2798 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX
="c++"
2804 if test -n "$CXX"; then
2805 echo "$as_me:$LINENO: result: $CXX" >&5
2806 echo "${ECHO_T}$CXX" >&6
2808 echo "$as_me:$LINENO: result: no" >&5
2809 echo "${ECHO_T}no" >&6
2813 if test "$CXX" = "notfound"
2820 for ac_prog
in $CCC c
++ g
++ gcc CC cxx cc
++ cl
2822 # Extract the first word of "$ac_prog", so it can be a program name with args.
2823 set dummy
$ac_prog; ac_word
=$2
2824 echo "$as_me:$LINENO: checking for $ac_word" >&5
2825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2826 if test "${ac_cv_prog_CXX+set}" = set; then
2827 echo $ECHO_N "(cached) $ECHO_C" >&6
2829 if test -n "$CXX"; then
2830 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
2832 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2836 test -z "$as_dir" && as_dir
=.
2837 for ac_exec_ext
in '' $ac_executable_extensions; do
2838 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2839 ac_cv_prog_CXX
="$ac_prog"
2840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2849 if test -n "$CXX"; then
2850 echo "$as_me:$LINENO: result: $CXX" >&5
2851 echo "${ECHO_T}$CXX" >&6
2853 echo "$as_me:$LINENO: result: no" >&5
2854 echo "${ECHO_T}no" >&6
2857 test -n "$CXX" && break
2859 test -n "$CXX" || CXX
="notfound"
2861 if test "$CXX" = "notfound"
2866 if test "$preset_cxx" != "$CXX"
2868 { echo "$as_me:$LINENO: WARNING:
2870 By default, distutils will build C++ extension modules with \"$CXX\".
2871 If this is not intended, then set CXX on the configure command line.
2873 echo "$as_me: WARNING:
2875 By default, distutils will build C++ extension modules with \"$CXX\".
2876 If this is not intended, then set CXX on the configure command line.
2881 # checks for UNIX variants that set C preprocessor variables
2884 ac_cpp
='$CPP $CPPFLAGS'
2885 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2886 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2887 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2888 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2889 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2890 # On Suns, sometimes $CPP names a directory.
2891 if test -n "$CPP" && test -d "$CPP"; then
2894 if test -z "$CPP"; then
2895 if test "${ac_cv_prog_CPP+set}" = set; then
2896 echo $ECHO_N "(cached) $ECHO_C" >&6
2898 # Double quotes because CPP needs to be expanded
2899 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2902 for ac_c_preproc_warn_flag
in '' yes
2904 # Use a header file that comes with gcc, so configuring glibc
2905 # with a fresh cross-compiler works.
2906 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2907 # <limits.h> exists even on freestanding compilers.
2908 # On the NeXT, cc -E runs the code through the compiler's parser,
2909 # not just through cpp. "Syntax error" is here to catch this case.
2910 cat >conftest.
$ac_ext <<_ACEOF
2913 cat confdefs.h
>>conftest.
$ac_ext
2914 cat >>conftest.
$ac_ext <<_ACEOF
2915 /* end confdefs.h. */
2917 # include <limits.h>
2919 # include <assert.h>
2923 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2924 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2926 grep -v '^ *+' conftest.er1
>conftest.err
2928 cat conftest.err
>&5
2929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930 (exit $ac_status); } >/dev
/null
; then
2931 if test -s conftest.err
; then
2932 ac_cpp_err
=$ac_c_preproc_warn_flag
2933 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2940 if test -z "$ac_cpp_err"; then
2943 echo "$as_me: failed program was:" >&5
2944 sed 's/^/| /' conftest.
$ac_ext >&5
2946 # Broken: fails on valid input.
2949 rm -f conftest.err conftest.
$ac_ext
2951 # OK, works on sane cases. Now check whether non-existent headers
2952 # can be detected and how.
2953 cat >conftest.
$ac_ext <<_ACEOF
2956 cat confdefs.h
>>conftest.
$ac_ext
2957 cat >>conftest.
$ac_ext <<_ACEOF
2958 /* end confdefs.h. */
2959 #include <ac_nonexistent.h>
2961 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2962 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2964 grep -v '^ *+' conftest.er1
>conftest.err
2966 cat conftest.err
>&5
2967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968 (exit $ac_status); } >/dev
/null
; then
2969 if test -s conftest.err
; then
2970 ac_cpp_err
=$ac_c_preproc_warn_flag
2971 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2978 if test -z "$ac_cpp_err"; then
2979 # Broken: success on invalid input.
2982 echo "$as_me: failed program was:" >&5
2983 sed 's/^/| /' conftest.
$ac_ext >&5
2985 # Passes both tests.
2989 rm -f conftest.err conftest.
$ac_ext
2992 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2993 rm -f conftest.err conftest.
$ac_ext
2994 if $ac_preproc_ok; then
3006 echo "$as_me:$LINENO: result: $CPP" >&5
3007 echo "${ECHO_T}$CPP" >&6
3009 for ac_c_preproc_warn_flag
in '' yes
3011 # Use a header file that comes with gcc, so configuring glibc
3012 # with a fresh cross-compiler works.
3013 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3014 # <limits.h> exists even on freestanding compilers.
3015 # On the NeXT, cc -E runs the code through the compiler's parser,
3016 # not just through cpp. "Syntax error" is here to catch this case.
3017 cat >conftest.
$ac_ext <<_ACEOF
3020 cat confdefs.h
>>conftest.
$ac_ext
3021 cat >>conftest.
$ac_ext <<_ACEOF
3022 /* end confdefs.h. */
3024 # include <limits.h>
3026 # include <assert.h>
3030 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3031 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3033 grep -v '^ *+' conftest.er1
>conftest.err
3035 cat conftest.err
>&5
3036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037 (exit $ac_status); } >/dev
/null
; then
3038 if test -s conftest.err
; then
3039 ac_cpp_err
=$ac_c_preproc_warn_flag
3040 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3047 if test -z "$ac_cpp_err"; then
3050 echo "$as_me: failed program was:" >&5
3051 sed 's/^/| /' conftest.
$ac_ext >&5
3053 # Broken: fails on valid input.
3056 rm -f conftest.err conftest.
$ac_ext
3058 # OK, works on sane cases. Now check whether non-existent headers
3059 # can be detected and how.
3060 cat >conftest.
$ac_ext <<_ACEOF
3063 cat confdefs.h
>>conftest.
$ac_ext
3064 cat >>conftest.
$ac_ext <<_ACEOF
3065 /* end confdefs.h. */
3066 #include <ac_nonexistent.h>
3068 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3069 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3071 grep -v '^ *+' conftest.er1
>conftest.err
3073 cat conftest.err
>&5
3074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075 (exit $ac_status); } >/dev
/null
; then
3076 if test -s conftest.err
; then
3077 ac_cpp_err
=$ac_c_preproc_warn_flag
3078 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3085 if test -z "$ac_cpp_err"; then
3086 # Broken: success on invalid input.
3089 echo "$as_me: failed program was:" >&5
3090 sed 's/^/| /' conftest.
$ac_ext >&5
3092 # Passes both tests.
3096 rm -f conftest.err conftest.
$ac_ext
3099 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3100 rm -f conftest.err conftest.
$ac_ext
3101 if $ac_preproc_ok; then
3104 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3105 See \`config.log' for more details." >&5
3106 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3107 See \`config.log' for more details." >&2;}
3108 { (exit 1); exit 1; }; }
3112 ac_cpp
='$CPP $CPPFLAGS'
3113 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3114 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3115 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3118 echo "$as_me:$LINENO: checking for egrep" >&5
3119 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3120 if test "${ac_cv_prog_egrep+set}" = set; then
3121 echo $ECHO_N "(cached) $ECHO_C" >&6
3123 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3124 then ac_cv_prog_egrep
='grep -E'
3125 else ac_cv_prog_egrep
='egrep'
3128 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3129 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3130 EGREP
=$ac_cv_prog_egrep
3134 echo "$as_me:$LINENO: checking for AIX" >&5
3135 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3136 cat >conftest.
$ac_ext <<_ACEOF
3139 cat confdefs.h
>>conftest.
$ac_ext
3140 cat >>conftest.
$ac_ext <<_ACEOF
3141 /* end confdefs.h. */
3147 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3148 $EGREP "yes" >/dev
/null
2>&1; then
3149 echo "$as_me:$LINENO: result: yes" >&5
3150 echo "${ECHO_T}yes" >&6
3151 cat >>confdefs.h
<<\_ACEOF
3152 #define _ALL_SOURCE 1
3156 echo "$as_me:$LINENO: result: no" >&5
3157 echo "${ECHO_T}no" >&6
3163 # Check for unsupported systems
3164 case $ac_sys_system/$ac_sys_release in
3166 echo This system \
($ac_sys_system/$ac_sys_release\
) is no longer supported.
3167 echo See README
for details.
3172 echo "$as_me:$LINENO: checking for --with-suffix" >&5
3173 echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6
3175 # Check whether --with-suffix or --without-suffix was given.
3176 if test "${with_suffix+set}" = set; then
3177 withval
="$with_suffix"
3182 *) EXEEXT
=$withval;;
3185 echo "$as_me:$LINENO: result: $EXEEXT" >&5
3186 echo "${ECHO_T}$EXEEXT" >&6
3188 # Test whether we're running on a non-case-sensitive system, in which
3189 # case we give a warning if no ext is given
3191 echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
3192 echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6
3193 if test ! -d CaseSensitiveTestDir
; then
3194 mkdir CaseSensitiveTestDir
3197 if test -d casesensitivetestdir
3199 echo "$as_me:$LINENO: result: yes" >&5
3200 echo "${ECHO_T}yes" >&6
3203 echo "$as_me:$LINENO: result: no" >&5
3204 echo "${ECHO_T}no" >&6
3207 rmdir CaseSensitiveTestDir
3212 gcc
) CC
="$CC -D_HAVE_BSDI";;
3216 case $ac_sys_system in
3219 cc|
*/cc
) CC
="$CC -Ae";;
3223 cc
) CC
="$CC -Wl,-Bexport";;
3226 # Some functions have a prototype only with that define, e.g. confstr
3228 cat >>confdefs.h
<<\_ACEOF
3229 #define __EXTENSIONS__ 1
3237 echo "$as_me:$LINENO: checking LIBRARY" >&5
3238 echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6
3239 if test -z "$LIBRARY"
3241 LIBRARY
='libpython$(VERSION).a'
3243 echo "$as_me:$LINENO: result: $LIBRARY" >&5
3244 echo "${ECHO_T}$LIBRARY" >&6
3246 # LDLIBRARY is the name of the library to link against (as opposed to the
3247 # name of the library into which to insert object files). BLDLIBRARY is also
3248 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
3249 # is blank as the main program is not linked directly against LDLIBRARY.
3250 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
3251 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
3252 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
3253 # DLLLIBRARY is the shared (i.e., DLL) library.
3255 # RUNSHARED is used to run shared python without installed libraries
3257 # INSTSONAME is the name of the shared library that will be use to install
3258 # on the system - some systems like version suffix, others don't
3265 LDLIBRARY
="$LIBRARY"
3266 BLDLIBRARY
='$(LDLIBRARY)'
3267 INSTSONAME
='$(LDLIBRARY)'
3272 # LINKCC is the command that links the python executable -- default is $(CC).
3273 # If CXX is set, and if it is needed to link a main function that was
3274 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
3275 # python might then depend on the C++ runtime
3276 # This is altered for AIX in order to build the export list before
3279 echo "$as_me:$LINENO: checking LINKCC" >&5
3280 echo $ECHO_N "checking LINKCC... $ECHO_C" >&6
3281 if test -z "$LINKCC"
3283 LINKCC
='$(PURIFY) $(MAINCC)'
3284 case $ac_sys_system in
3287 if test $ac_sys_release -ge 5 -o \
3288 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
3291 LINKCC
="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
3293 LINKCC
="$LINKCC -L/usr/lib/ia64l64";;
3296 echo "$as_me:$LINENO: result: $LINKCC" >&5
3297 echo "${ECHO_T}$LINKCC" >&6
3299 echo "$as_me:$LINENO: checking for --enable-shared" >&5
3300 echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6
3301 # Check whether --enable-shared or --disable-shared was given.
3302 if test "${enable_shared+set}" = set; then
3303 enableval
="$enable_shared"
3307 if test -z "$enable_shared"
3309 case $ac_sys_system in
3311 enable_shared
="yes";;
3313 enable_shared
="no";;
3316 echo "$as_me:$LINENO: result: $enable_shared" >&5
3317 echo "${ECHO_T}$enable_shared" >&6
3319 echo "$as_me:$LINENO: checking for --enable-profiling" >&5
3320 echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6
3321 # Check whether --enable-profiling or --disable-profiling was given.
3322 if test "${enable_profiling+set}" = set; then
3323 enableval
="$enable_profiling"
3326 if test "$cross_compiling" = yes; then
3327 ac_enable_profiling
="no"
3329 cat >conftest.
$ac_ext <<_ACEOF
3332 cat confdefs.h
>>conftest.
$ac_ext
3333 cat >>conftest.
$ac_ext <<_ACEOF
3334 /* end confdefs.h. */
3335 int main() { return 0; }
3337 rm -f conftest
$ac_exeext
3338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3339 (eval $ac_link) 2>&5
3341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3342 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347 (exit $ac_status); }; }; then
3348 ac_enable_profiling
="yes"
3350 echo "$as_me: program exited with status $ac_status" >&5
3351 echo "$as_me: failed program was:" >&5
3352 sed 's/^/| /' conftest.
$ac_ext >&5
3355 ac_enable_profiling
="no"
3357 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3361 echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5
3362 echo "${ECHO_T}$ac_enable_profiling" >&6
3364 case "$ac_enable_profiling" in
3366 BASECFLAGS
="-pg $BASECFLAGS"
3367 LDFLAGS
="-pg $LDFLAGS"
3371 echo "$as_me:$LINENO: checking LDLIBRARY" >&5
3372 echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6
3374 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
3375 # library that we build, but we do not want to link against it (we
3376 # will find it with a -framework option). For this reason there is an
3377 # extra variable BLDLIBRARY against which Python and the extension
3378 # modules are linked, BLDLIBRARY. This is normally the same as
3379 # LDLIBRARY, but empty for MacOSX framework builds.
3380 if test "$enable_framework"
3382 LDLIBRARY
='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
3383 RUNSHARED
=DYLD_FRAMEWORK_PATH
="`pwd`:$DYLD_FRAMEWORK_PATH"
3386 BLDLIBRARY
='$(LDLIBRARY)'
3389 # Other platforms follow
3390 if test $enable_shared = "yes"; then
3392 cat >>confdefs.h
<<\_ACEOF
3393 #define Py_ENABLE_SHARED 1
3396 case $ac_sys_system in
3398 LDLIBRARY
='libpython$(VERSION).so'
3401 LDLIBRARY
='libpython$(VERSION).dll.a'
3402 DLLLIBRARY
='libpython$(VERSION).dll'
3405 LDLIBRARY
='libpython$(VERSION).so'
3406 BLDLIBRARY
='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
3407 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
3408 INSTSONAME
="$LDLIBRARY".
$SOVERSION
3410 Linux
*|GNU
*|NetBSD
*|FreeBSD
*|DragonFly
*)
3411 LDLIBRARY
='libpython$(VERSION).so'
3412 BLDLIBRARY
='-L. -lpython$(VERSION)'
3413 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
3414 case $ac_sys_system in
3416 SOVERSION
=`echo $SOVERSION|cut -d "." -f 1`
3419 INSTSONAME
="$LDLIBRARY".
$SOVERSION
3424 LDLIBRARY
='libpython$(VERSION).so'
3427 LDLIBRARY
='libpython$(VERSION).sl'
3430 BLDLIBRARY
='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
3431 RUNSHARED
=SHLIB_PATH
=`pwd`:${SHLIB_PATH}
3434 LDLIBRARY
='libpython$(VERSION).so'
3435 BLDLIBRARY
='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
3436 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
3439 LDLIBRARY
='libpython$(VERSION).so'
3440 BLDLIBRARY
='-L. -lpython$(VERSION)'
3441 RUNSHARED
=DLL_PATH
=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
3444 else # shared is disabled
3445 case $ac_sys_system in
3447 BLDLIBRARY
='$(LIBRARY)'
3448 LDLIBRARY
='libpython$(VERSION).dll.a'
3453 echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
3454 echo "${ECHO_T}$LDLIBRARY" >&6
3456 if test -n "$ac_tool_prefix"; then
3457 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3458 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3459 echo "$as_me:$LINENO: checking for $ac_word" >&5
3460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3461 if test "${ac_cv_prog_RANLIB+set}" = set; then
3462 echo $ECHO_N "(cached) $ECHO_C" >&6
3464 if test -n "$RANLIB"; then
3465 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3467 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3471 test -z "$as_dir" && as_dir
=.
3472 for ac_exec_ext
in '' $ac_executable_extensions; do
3473 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3474 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3483 RANLIB
=$ac_cv_prog_RANLIB
3484 if test -n "$RANLIB"; then
3485 echo "$as_me:$LINENO: result: $RANLIB" >&5
3486 echo "${ECHO_T}$RANLIB" >&6
3488 echo "$as_me:$LINENO: result: no" >&5
3489 echo "${ECHO_T}no" >&6
3493 if test -z "$ac_cv_prog_RANLIB"; then
3494 ac_ct_RANLIB
=$RANLIB
3495 # Extract the first word of "ranlib", so it can be a program name with args.
3496 set dummy ranlib
; ac_word
=$2
3497 echo "$as_me:$LINENO: checking for $ac_word" >&5
3498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3499 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3500 echo $ECHO_N "(cached) $ECHO_C" >&6
3502 if test -n "$ac_ct_RANLIB"; then
3503 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3505 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3509 test -z "$as_dir" && as_dir
=.
3510 for ac_exec_ext
in '' $ac_executable_extensions; do
3511 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3512 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3519 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
3522 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3523 if test -n "$ac_ct_RANLIB"; then
3524 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3525 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3527 echo "$as_me:$LINENO: result: no" >&5
3528 echo "${ECHO_T}no" >&6
3531 RANLIB
=$ac_ct_RANLIB
3533 RANLIB
="$ac_cv_prog_RANLIB"
3537 for ac_prog
in ar aal
3539 # Extract the first word of "$ac_prog", so it can be a program name with args.
3540 set dummy
$ac_prog; ac_word
=$2
3541 echo "$as_me:$LINENO: checking for $ac_word" >&5
3542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3543 if test "${ac_cv_prog_AR+set}" = set; then
3544 echo $ECHO_N "(cached) $ECHO_C" >&6
3546 if test -n "$AR"; then
3547 ac_cv_prog_AR
="$AR" # Let the user override the test.
3549 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3553 test -z "$as_dir" && as_dir
=.
3554 for ac_exec_ext
in '' $ac_executable_extensions; do
3555 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3556 ac_cv_prog_AR
="$ac_prog"
3557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3566 if test -n "$AR"; then
3567 echo "$as_me:$LINENO: result: $AR" >&5
3568 echo "${ECHO_T}$AR" >&6
3570 echo "$as_me:$LINENO: result: no" >&5
3571 echo "${ECHO_T}no" >&6
3574 test -n "$AR" && break
3576 test -n "$AR" || AR
="ar"
3580 # Extract the first word of "svnversion", so it can be a program name with args.
3581 set dummy svnversion
; ac_word
=$2
3582 echo "$as_me:$LINENO: checking for $ac_word" >&5
3583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3584 if test "${ac_cv_prog_SVNVERSION+set}" = set; then
3585 echo $ECHO_N "(cached) $ECHO_C" >&6
3587 if test -n "$SVNVERSION"; then
3588 ac_cv_prog_SVNVERSION
="$SVNVERSION" # Let the user override the test.
3590 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3594 test -z "$as_dir" && as_dir
=.
3595 for ac_exec_ext
in '' $ac_executable_extensions; do
3596 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3597 ac_cv_prog_SVNVERSION
="found"
3598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3604 test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION
="not-found"
3607 SVNVERSION
=$ac_cv_prog_SVNVERSION
3608 if test -n "$SVNVERSION"; then
3609 echo "$as_me:$LINENO: result: $SVNVERSION" >&5
3610 echo "${ECHO_T}$SVNVERSION" >&6
3612 echo "$as_me:$LINENO: result: no" >&5
3613 echo "${ECHO_T}no" >&6
3616 if test $SVNVERSION = found
3618 SVNVERSION
="svnversion \$(srcdir)"
3620 SVNVERSION
="echo exported"
3625 # install -d does not work on BSDI or HP-UX
3626 if test -z "$INSTALL"
3628 INSTALL
="${srcdir}/install-sh -c"
3632 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
3633 if test -f $ac_dir/install-sh
; then
3635 ac_install_sh
="$ac_aux_dir/install-sh -c"
3637 elif test -f $ac_dir/install.sh
; then
3639 ac_install_sh
="$ac_aux_dir/install.sh -c"
3641 elif test -f $ac_dir/shtool
; then
3643 ac_install_sh
="$ac_aux_dir/shtool install -c"
3647 if test -z "$ac_aux_dir"; then
3648 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
3649 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
3650 { (exit 1); exit 1; }; }
3652 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
3653 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
3654 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3656 # Find a good install program. We prefer a C program (faster),
3657 # so one script is as good as another. But avoid the broken or
3658 # incompatible versions:
3659 # SysV /etc/install, /usr/sbin/install
3660 # SunOS /usr/etc/install
3661 # IRIX /sbin/install
3663 # AmigaOS /C/install, which installs bootblocks on floppy discs
3664 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3665 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3666 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3667 # OS/2's system install, which has a completely different semantic
3668 # ./install, which can be erroneously created by make from ./install.sh.
3669 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3670 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3671 if test -z "$INSTALL"; then
3672 if test "${ac_cv_path_install+set}" = set; then
3673 echo $ECHO_N "(cached) $ECHO_C" >&6
3675 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3679 test -z "$as_dir" && as_dir
=.
3680 # Account for people who put trailing slashes in PATH elements.
3682 .
/ | .
// |
/cC
/* | \
3683 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3684 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
3687 # OSF1 and SCO ODT 3.0 have their own names for install.
3688 # Don't use installbsd from OSF since it installs stuff as root
3690 for ac_prog
in ginstall scoinst
install; do
3691 for ac_exec_ext
in '' $ac_executable_extensions; do
3692 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3693 if test $ac_prog = install &&
3694 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3695 # AIX install. It has an incompatible calling convention.
3697 elif test $ac_prog = install &&
3698 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3699 # program-specific install script used by HP pwplus--don't use.
3702 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3714 if test "${ac_cv_path_install+set}" = set; then
3715 INSTALL
=$ac_cv_path_install
3717 # As a last resort, use the slow shell script. We don't cache a
3718 # path for INSTALL within a source directory, because that will
3719 # break other packages using the cache if that directory is
3720 # removed, or if the path is relative.
3721 INSTALL
=$ac_install_sh
3724 echo "$as_me:$LINENO: result: $INSTALL" >&5
3725 echo "${ECHO_T}$INSTALL" >&6
3727 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3728 # It thinks the first close brace ends the variable substitution.
3729 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3731 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3733 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3736 # Not every filesystem supports hard links
3738 if test -z "$LN" ; then
3739 case $ac_sys_system in
3741 CYGWIN
*) LN
="ln -s";;
3742 atheos
*) LN
="ln -s";;
3747 # Check for --with-pydebug
3748 echo "$as_me:$LINENO: checking for --with-pydebug" >&5
3749 echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6
3751 # Check whether --with-pydebug or --without-pydebug was given.
3752 if test "${with_pydebug+set}" = set; then
3753 withval
="$with_pydebug"
3755 if test "$withval" != no
3758 cat >>confdefs.h
<<\_ACEOF
3762 echo "$as_me:$LINENO: result: yes" >&5
3763 echo "${ECHO_T}yes" >&6;
3765 else echo "$as_me:$LINENO: result: no" >&5
3766 echo "${ECHO_T}no" >&6; Py_DEBUG
='false'
3769 echo "$as_me:$LINENO: result: no" >&5
3770 echo "${ECHO_T}no" >&6
3773 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
3774 # merged with this chunk of code?
3776 # Optimizer/debugger flags
3777 # ------------------------
3778 # (The following bit of code is complicated enough - please keep things
3779 # indented properly. Just pretend you're editing Python code. ;-)
3781 # There are two parallel sets of case statements below, one that checks to
3782 # see if OPT was set and one that does BASECFLAGS setting based upon
3783 # compiler and platform. BASECFLAGS tweaks need to be made even if the
3786 # tweak OPT based on compiler and platform, only if the user didn't set
3787 # it on the command line
3793 if test "$CC" != 'g++' ; then
3794 STRICT_PROTO
="-Wstrict-prototypes"
3796 case $ac_cv_prog_cc_g in
3798 if test "$Py_DEBUG" = 'true' ; then
3799 # Optimization messes up debuggers, so turn it off for
3801 OPT
="-g -Wall $STRICT_PROTO"
3803 OPT
="-g -O3 -Wall $STRICT_PROTO"
3807 OPT
="-O3 -Wall $STRICT_PROTO"
3810 case $ac_sys_system in
3811 SCO_SV
*) OPT
="$OPT -m486 -DSCO5"
3821 # The current (beta) Monterey compiler dies with optimizations
3822 # XXX what is Monterey? Does it still die w/ -O? Can we get rid of this?
3823 case $ac_sys_system in
3832 # tweak BASECFLAGS based on compiler and platform
3835 # Python violates C99 rules, by casting between incompatible
3836 # pointer types. GCC may generate bad code as a result of that,
3837 # so use -fno-strict-aliasing if supported.
3838 echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5
3839 echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6
3841 CC
="$CC -fno-strict-aliasing"
3842 if test "$cross_compiling" = yes; then
3843 ac_cv_no_strict_aliasing_ok
=no
3845 cat >conftest.
$ac_ext <<_ACEOF
3848 cat confdefs.h
>>conftest.
$ac_ext
3849 cat >>conftest.
$ac_ext <<_ACEOF
3850 /* end confdefs.h. */
3851 int main() { return 0; }
3853 rm -f conftest
$ac_exeext
3854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3855 (eval $ac_link) 2>&5
3857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3863 (exit $ac_status); }; }; then
3864 ac_cv_no_strict_aliasing_ok
=yes
3866 echo "$as_me: program exited with status $ac_status" >&5
3867 echo "$as_me: failed program was:" >&5
3868 sed 's/^/| /' conftest.
$ac_ext >&5
3871 ac_cv_no_strict_aliasing_ok
=no
3873 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3876 echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5
3877 echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6
3878 if test $ac_cv_no_strict_aliasing_ok = yes
3880 BASECFLAGS
="$BASECFLAGS -fno-strict-aliasing"
3882 case $ac_sys_system in
3884 BASECFLAGS
="$BASECFLAGS -m486 -DSCO5"
3886 # is there any other compiler on Darwin besides gcc?
3888 BASECFLAGS
="$BASECFLAGS -Wno-long-double -no-cpp-precomp -mno-fused-madd"
3889 if test "${enable_universalsdk}"; then
3890 BASECFLAGS
="-arch ppc -arch i386 -isysroot ${UNIVERSALSDK} ${BASECFLAGS}"
3895 BASECFLAGS
="$BASECFLAGS -mieee"
3901 case $ac_sys_system in
3902 OpenUNIX
*|UnixWare
*)
3903 BASECFLAGS
="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
3906 BASECFLAGS
="$BASECFLAGS -ieee -std"
3909 BASECFLAGS
="$BASECFLAGS -belf -Ki486 -DSCO5"
3915 if test "$Py_DEBUG" = 'true'; then
3921 if test "$ac_arch_flags"
3923 BASECFLAGS
="$BASECFLAGS $ac_arch_flags"
3926 # disable check for icc since it seems to pass, but generates a warning
3929 ac_cv_opt_olimit_ok
=no
3932 echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
3933 echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6
3934 if test "${ac_cv_opt_olimit_ok+set}" = set; then
3935 echo $ECHO_N "(cached) $ECHO_C" >&6
3938 CC
="$CC -OPT:Olimit=0"
3939 if test "$cross_compiling" = yes; then
3940 ac_cv_opt_olimit_ok
=no
3942 cat >conftest.
$ac_ext <<_ACEOF
3945 cat confdefs.h
>>conftest.
$ac_ext
3946 cat >>conftest.
$ac_ext <<_ACEOF
3947 /* end confdefs.h. */
3948 int main() { return 0; }
3950 rm -f conftest
$ac_exeext
3951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3952 (eval $ac_link) 2>&5
3954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3955 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960 (exit $ac_status); }; }; then
3961 ac_cv_opt_olimit_ok
=yes
3963 echo "$as_me: program exited with status $ac_status" >&5
3964 echo "$as_me: failed program was:" >&5
3965 sed 's/^/| /' conftest.
$ac_ext >&5
3968 ac_cv_opt_olimit_ok
=no
3970 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3975 echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
3976 echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6
3977 if test $ac_cv_opt_olimit_ok = yes; then
3978 case $ac_sys_system in
3979 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
3980 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
3985 BASECFLAGS
="$BASECFLAGS -OPT:Olimit=0"
3989 echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
3990 echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6
3991 if test "${ac_cv_olimit_ok+set}" = set; then
3992 echo $ECHO_N "(cached) $ECHO_C" >&6
3995 CC
="$CC -Olimit 1500"
3996 if test "$cross_compiling" = yes; then
3999 cat >conftest.
$ac_ext <<_ACEOF
4002 cat confdefs.h
>>conftest.
$ac_ext
4003 cat >>conftest.
$ac_ext <<_ACEOF
4004 /* end confdefs.h. */
4005 int main() { return 0; }
4007 rm -f conftest
$ac_exeext
4008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4009 (eval $ac_link) 2>&5
4011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4017 (exit $ac_status); }; }; then
4020 echo "$as_me: program exited with status $ac_status" >&5
4021 echo "$as_me: failed program was:" >&5
4022 sed 's/^/| /' conftest.
$ac_ext >&5
4027 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4032 echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
4033 echo "${ECHO_T}$ac_cv_olimit_ok" >&6
4034 if test $ac_cv_olimit_ok = yes; then
4035 BASECFLAGS
="$BASECFLAGS -Olimit 1500"
4039 # On some compilers, pthreads are available without further options
4040 # (e.g. MacOS X). On some of these systems, the compiler will not
4041 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
4042 # So we have to see first whether pthreads are available without
4043 # options before we can check whether -Kpthread improves anything.
4044 echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
4045 echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6
4046 if test "${ac_cv_pthread_is_default+set}" = set; then
4047 echo $ECHO_N "(cached) $ECHO_C" >&6
4049 if test "$cross_compiling" = yes; then
4050 ac_cv_pthread_is_default
=no
4052 cat >conftest.
$ac_ext <<_ACEOF
4055 cat confdefs.h
>>conftest.
$ac_ext
4056 cat >>conftest.
$ac_ext <<_ACEOF
4057 /* end confdefs.h. */
4059 #include <pthread.h>
4061 void* routine(void* p){return NULL;}
4065 if(pthread_create(&p,NULL,routine,NULL)!=0)
4067 (void)pthread_detach(p);
4072 rm -f conftest
$ac_exeext
4073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4074 (eval $ac_link) 2>&5
4076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082 (exit $ac_status); }; }; then
4084 ac_cv_pthread_is_default
=yes
4089 echo "$as_me: program exited with status $ac_status" >&5
4090 echo "$as_me: failed program was:" >&5
4091 sed 's/^/| /' conftest.
$ac_ext >&5
4094 ac_cv_pthread_is_default
=no
4096 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4101 echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
4102 echo "${ECHO_T}$ac_cv_pthread_is_default" >&6
4105 if test $ac_cv_pthread_is_default = yes
4109 # -Kpthread, if available, provides the right #defines
4110 # and linker options to make pthread_create available
4111 # Some compilers won't report that they do not support -Kpthread,
4112 # so we need to run a program to see whether it really made the
4113 # function available.
4114 echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
4115 echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6
4116 if test "${ac_cv_kpthread+set}" = set; then
4117 echo $ECHO_N "(cached) $ECHO_C" >&6
4121 if test "$cross_compiling" = yes; then
4124 cat >conftest.
$ac_ext <<_ACEOF
4127 cat confdefs.h
>>conftest.
$ac_ext
4128 cat >>conftest.
$ac_ext <<_ACEOF
4129 /* end confdefs.h. */
4131 #include <pthread.h>
4133 void* routine(void* p){return NULL;}
4137 if(pthread_create(&p,NULL,routine,NULL)!=0)
4139 (void)pthread_detach(p);
4144 rm -f conftest
$ac_exeext
4145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4146 (eval $ac_link) 2>&5
4148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4149 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154 (exit $ac_status); }; }; then
4157 echo "$as_me: program exited with status $ac_status" >&5
4158 echo "$as_me: failed program was:" >&5
4159 sed 's/^/| /' conftest.
$ac_ext >&5
4164 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4169 echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
4170 echo "${ECHO_T}$ac_cv_kpthread" >&6
4173 if test $ac_cv_kpthread = no
-a $ac_cv_pthread_is_default = no
4175 # -Kthread, if available, provides the right #defines
4176 # and linker options to make pthread_create available
4177 # Some compilers won't report that they do not support -Kthread,
4178 # so we need to run a program to see whether it really made the
4179 # function available.
4180 echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
4181 echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6
4182 if test "${ac_cv_kthread+set}" = set; then
4183 echo $ECHO_N "(cached) $ECHO_C" >&6
4187 if test "$cross_compiling" = yes; then
4190 cat >conftest.
$ac_ext <<_ACEOF
4193 cat confdefs.h
>>conftest.
$ac_ext
4194 cat >>conftest.
$ac_ext <<_ACEOF
4195 /* end confdefs.h. */
4197 #include <pthread.h>
4199 void* routine(void* p){return NULL;}
4203 if(pthread_create(&p,NULL,routine,NULL)!=0)
4205 (void)pthread_detach(p);
4210 rm -f conftest
$ac_exeext
4211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4212 (eval $ac_link) 2>&5
4214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4215 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220 (exit $ac_status); }; }; then
4223 echo "$as_me: program exited with status $ac_status" >&5
4224 echo "$as_me: failed program was:" >&5
4225 sed 's/^/| /' conftest.
$ac_ext >&5
4230 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4235 echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
4236 echo "${ECHO_T}$ac_cv_kthread" >&6
4239 if test $ac_cv_kthread = no
-a $ac_cv_pthread_is_default = no
4241 # -pthread, if available, provides the right #defines
4242 # and linker options to make pthread_create available
4243 # Some compilers won't report that they do not support -pthread,
4244 # so we need to run a program to see whether it really made the
4245 # function available.
4246 echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
4247 echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6
4248 if test "${ac_cv_thread+set}" = set; then
4249 echo $ECHO_N "(cached) $ECHO_C" >&6
4253 if test "$cross_compiling" = yes; then
4256 cat >conftest.
$ac_ext <<_ACEOF
4259 cat confdefs.h
>>conftest.
$ac_ext
4260 cat >>conftest.
$ac_ext <<_ACEOF
4261 /* end confdefs.h. */
4263 #include <pthread.h>
4265 void* routine(void* p){return NULL;}
4269 if(pthread_create(&p,NULL,routine,NULL)!=0)
4271 (void)pthread_detach(p);
4276 rm -f conftest
$ac_exeext
4277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4278 (eval $ac_link) 2>&5
4280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286 (exit $ac_status); }; }; then
4289 echo "$as_me: program exited with status $ac_status" >&5
4290 echo "$as_me: failed program was:" >&5
4291 sed 's/^/| /' conftest.
$ac_ext >&5
4296 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4301 echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
4302 echo "${ECHO_T}$ac_cv_pthread" >&6
4305 # If we have set a CC compiler flag for thread support then
4306 # check if it works for CXX, too.
4310 echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5
4311 echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6
4314 if test "$ac_cv_kpthread" = "yes"
4316 CXX
="$CXX -Kpthread"
4317 ac_cv_cxx_thread
=yes
4318 elif test "$ac_cv_kthread" = "yes"
4321 ac_cv_cxx_thread
=yes
4322 elif test "$ac_cv_pthread" = "yes"
4325 ac_cv_cxx_thread
=yes
4328 if test $ac_cv_cxx_thread = yes
4330 echo 'void foo();int main(){foo();}void foo(){}' > conftest.
$ac_ext
4331 $CXX -c conftest.
$ac_ext 2>&5
4332 if $CXX -o conftest
$ac_exeext conftest.
$ac_objext 2>&5 \
4333 && test -s conftest
$ac_exeext && .
/conftest
$ac_exeext
4335 ac_cv_cxx_thread
=yes
4341 echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
4342 echo "${ECHO_T}$ac_cv_cxx_thread" >&6
4347 # checks for header files
4348 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4349 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4350 if test "${ac_cv_header_stdc+set}" = set; then
4351 echo $ECHO_N "(cached) $ECHO_C" >&6
4353 cat >conftest.
$ac_ext <<_ACEOF
4356 cat confdefs.h
>>conftest.
$ac_ext
4357 cat >>conftest.
$ac_ext <<_ACEOF
4358 /* end confdefs.h. */
4372 rm -f conftest.
$ac_objext
4373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4374 (eval $ac_compile) 2>conftest.er1
4376 grep -v '^ *+' conftest.er1
>conftest.err
4378 cat conftest.err
>&5
4379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4380 (exit $ac_status); } &&
4381 { ac_try
='test -z "$ac_c_werror_flag"
4382 || test ! -s conftest.err'
4383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4387 (exit $ac_status); }; } &&
4388 { ac_try
='test -s conftest.$ac_objext'
4389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393 (exit $ac_status); }; }; then
4394 ac_cv_header_stdc
=yes
4396 echo "$as_me: failed program was:" >&5
4397 sed 's/^/| /' conftest.
$ac_ext >&5
4399 ac_cv_header_stdc
=no
4401 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4403 if test $ac_cv_header_stdc = yes; then
4404 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4405 cat >conftest.
$ac_ext <<_ACEOF
4408 cat confdefs.h
>>conftest.
$ac_ext
4409 cat >>conftest.
$ac_ext <<_ACEOF
4410 /* end confdefs.h. */
4414 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4415 $EGREP "memchr" >/dev
/null
2>&1; then
4418 ac_cv_header_stdc
=no
4424 if test $ac_cv_header_stdc = yes; then
4425 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4426 cat >conftest.
$ac_ext <<_ACEOF
4429 cat confdefs.h
>>conftest.
$ac_ext
4430 cat >>conftest.
$ac_ext <<_ACEOF
4431 /* end confdefs.h. */
4435 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4436 $EGREP "free" >/dev
/null
2>&1; then
4439 ac_cv_header_stdc
=no
4445 if test $ac_cv_header_stdc = yes; then
4446 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4447 if test "$cross_compiling" = yes; then
4450 cat >conftest.
$ac_ext <<_ACEOF
4453 cat confdefs.h
>>conftest.
$ac_ext
4454 cat >>conftest.
$ac_ext <<_ACEOF
4455 /* end confdefs.h. */
4457 #if ((' ' & 0x0FF) == 0x020)
4458 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4459 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4461 # define ISLOWER(c) \
4462 (('a' <= (c) && (c) <= 'i') \
4463 || ('j' <= (c) && (c) <= 'r') \
4464 || ('s' <= (c) && (c) <= 'z'))
4465 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4468 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4473 for (i = 0; i < 256; i++)
4474 if (XOR (islower (i), ISLOWER (i))
4475 || toupper (i) != TOUPPER (i))
4480 rm -f conftest
$ac_exeext
4481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4482 (eval $ac_link) 2>&5
4484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4485 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490 (exit $ac_status); }; }; then
4493 echo "$as_me: program exited with status $ac_status" >&5
4494 echo "$as_me: failed program was:" >&5
4495 sed 's/^/| /' conftest.
$ac_ext >&5
4498 ac_cv_header_stdc
=no
4500 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4504 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4505 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4506 if test $ac_cv_header_stdc = yes; then
4508 cat >>confdefs.h
<<\_ACEOF
4509 #define STDC_HEADERS 1
4514 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4524 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4525 inttypes.h stdint.h unistd.h
4527 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4528 echo "$as_me:$LINENO: checking for $ac_header" >&5
4529 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4530 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4531 echo $ECHO_N "(cached) $ECHO_C" >&6
4533 cat >conftest.
$ac_ext <<_ACEOF
4536 cat confdefs.h
>>conftest.
$ac_ext
4537 cat >>conftest.
$ac_ext <<_ACEOF
4538 /* end confdefs.h. */
4539 $ac_includes_default
4541 #include <$ac_header>
4543 rm -f conftest.
$ac_objext
4544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4545 (eval $ac_compile) 2>conftest.er1
4547 grep -v '^ *+' conftest.er1
>conftest.err
4549 cat conftest.err
>&5
4550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551 (exit $ac_status); } &&
4552 { ac_try
='test -z "$ac_c_werror_flag"
4553 || test ! -s conftest.err'
4554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558 (exit $ac_status); }; } &&
4559 { ac_try
='test -s conftest.$ac_objext'
4560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4564 (exit $ac_status); }; }; then
4565 eval "$as_ac_Header=yes"
4567 echo "$as_me: failed program was:" >&5
4568 sed 's/^/| /' conftest.
$ac_ext >&5
4570 eval "$as_ac_Header=no"
4572 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4574 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4575 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4576 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4577 cat >>confdefs.h
<<_ACEOF
4578 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4626 for ac_header
in asm
/types.h curses.h dlfcn.h fcntl.h grp.h \
4627 shadow.h langinfo.h libintl.h ncurses.h poll.h pthread.h \
4628 stropts.h termios.h thread.h \
4630 sys
/audioio.h sys
/bsdtty.h sys
/file.h sys
/loadavg.h sys
/lock.h sys
/mkdev.h \
4632 sys
/param.h sys
/poll.h sys
/select.h sys
/socket.h sys
/statvfs.h sys
/time.h \
4633 sys
/times.h sys
/un.h sys
/utsname.h sys
/wait.h pty.h libutil.h \
4634 sys
/resource.h netpacket
/packet.h sysexits.h bluetooth.h \
4635 bluetooth
/bluetooth.h
4637 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4638 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4639 echo "$as_me:$LINENO: checking for $ac_header" >&5
4640 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4641 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4642 echo $ECHO_N "(cached) $ECHO_C" >&6
4644 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4645 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4647 # Is the header compilable?
4648 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4649 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4650 cat >conftest.
$ac_ext <<_ACEOF
4653 cat confdefs.h
>>conftest.
$ac_ext
4654 cat >>conftest.
$ac_ext <<_ACEOF
4655 /* end confdefs.h. */
4656 $ac_includes_default
4657 #include <$ac_header>
4659 rm -f conftest.
$ac_objext
4660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4661 (eval $ac_compile) 2>conftest.er1
4663 grep -v '^ *+' conftest.er1
>conftest.err
4665 cat conftest.err
>&5
4666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4667 (exit $ac_status); } &&
4668 { ac_try
='test -z "$ac_c_werror_flag"
4669 || test ! -s conftest.err'
4670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4674 (exit $ac_status); }; } &&
4675 { ac_try
='test -s conftest.$ac_objext'
4676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4680 (exit $ac_status); }; }; then
4681 ac_header_compiler
=yes
4683 echo "$as_me: failed program was:" >&5
4684 sed 's/^/| /' conftest.
$ac_ext >&5
4686 ac_header_compiler
=no
4688 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4689 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4690 echo "${ECHO_T}$ac_header_compiler" >&6
4692 # Is the header present?
4693 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4694 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4695 cat >conftest.
$ac_ext <<_ACEOF
4698 cat confdefs.h
>>conftest.
$ac_ext
4699 cat >>conftest.
$ac_ext <<_ACEOF
4700 /* end confdefs.h. */
4701 #include <$ac_header>
4703 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4704 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4706 grep -v '^ *+' conftest.er1
>conftest.err
4708 cat conftest.err
>&5
4709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4710 (exit $ac_status); } >/dev
/null
; then
4711 if test -s conftest.err
; then
4712 ac_cpp_err
=$ac_c_preproc_warn_flag
4713 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4720 if test -z "$ac_cpp_err"; then
4721 ac_header_preproc
=yes
4723 echo "$as_me: failed program was:" >&5
4724 sed 's/^/| /' conftest.
$ac_ext >&5
4726 ac_header_preproc
=no
4728 rm -f conftest.err conftest.
$ac_ext
4729 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4730 echo "${ECHO_T}$ac_header_preproc" >&6
4732 # So? What about this header?
4733 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4735 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4736 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4737 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4738 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4739 ac_header_preproc
=yes
4742 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4743 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4744 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4745 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4746 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4747 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4748 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4749 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4750 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4751 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4752 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4753 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4756 ## ------------------------------------------------ ##
4757 ## Report this to http://www.python.org/python-bugs ##
4758 ## ------------------------------------------------ ##
4761 sed "s/^/$as_me: WARNING: /" >&2
4764 echo "$as_me:$LINENO: checking for $ac_header" >&5
4765 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4766 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4767 echo $ECHO_N "(cached) $ECHO_C" >&6
4769 eval "$as_ac_Header=\$ac_header_preproc"
4771 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4772 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4775 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4776 cat >>confdefs.h
<<_ACEOF
4777 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4790 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
4791 as_ac_Header
=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4792 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4793 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
4794 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4795 echo $ECHO_N "(cached) $ECHO_C" >&6
4797 cat >conftest.
$ac_ext <<_ACEOF
4800 cat confdefs.h
>>conftest.
$ac_ext
4801 cat >>conftest.
$ac_ext <<_ACEOF
4802 /* end confdefs.h. */
4803 #include <sys/types.h>
4815 rm -f conftest.
$ac_objext
4816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4817 (eval $ac_compile) 2>conftest.er1
4819 grep -v '^ *+' conftest.er1
>conftest.err
4821 cat conftest.err
>&5
4822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4823 (exit $ac_status); } &&
4824 { ac_try
='test -z "$ac_c_werror_flag"
4825 || test ! -s conftest.err'
4826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4830 (exit $ac_status); }; } &&
4831 { ac_try
='test -s conftest.$ac_objext'
4832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4836 (exit $ac_status); }; }; then
4837 eval "$as_ac_Header=yes"
4839 echo "$as_me: failed program was:" >&5
4840 sed 's/^/| /' conftest.
$ac_ext >&5
4842 eval "$as_ac_Header=no"
4844 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4846 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4847 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4848 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4849 cat >>confdefs.h
<<_ACEOF
4850 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4853 ac_header_dirent
=$ac_hdr; break
4857 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4858 if test $ac_header_dirent = dirent.h
; then
4859 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4860 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4861 if test "${ac_cv_search_opendir+set}" = set; then
4862 echo $ECHO_N "(cached) $ECHO_C" >&6
4864 ac_func_search_save_LIBS
=$LIBS
4865 ac_cv_search_opendir
=no
4866 cat >conftest.
$ac_ext <<_ACEOF
4869 cat confdefs.h
>>conftest.
$ac_ext
4870 cat >>conftest.
$ac_ext <<_ACEOF
4871 /* end confdefs.h. */
4873 /* Override any gcc2 internal prototype to avoid an error. */
4877 /* We use char because int might match the return type of a gcc2
4878 builtin and then its argument prototype would still apply. */
4888 rm -f conftest.
$ac_objext conftest
$ac_exeext
4889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4890 (eval $ac_link) 2>conftest.er1
4892 grep -v '^ *+' conftest.er1
>conftest.err
4894 cat conftest.err
>&5
4895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896 (exit $ac_status); } &&
4897 { ac_try
='test -z "$ac_c_werror_flag"
4898 || test ! -s conftest.err'
4899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903 (exit $ac_status); }; } &&
4904 { ac_try
='test -s conftest$ac_exeext'
4905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4909 (exit $ac_status); }; }; then
4910 ac_cv_search_opendir
="none required"
4912 echo "$as_me: failed program was:" >&5
4913 sed 's/^/| /' conftest.
$ac_ext >&5
4916 rm -f conftest.err conftest.
$ac_objext \
4917 conftest
$ac_exeext conftest.
$ac_ext
4918 if test "$ac_cv_search_opendir" = no
; then
4919 for ac_lib
in dir
; do
4920 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4921 cat >conftest.
$ac_ext <<_ACEOF
4924 cat confdefs.h
>>conftest.
$ac_ext
4925 cat >>conftest.
$ac_ext <<_ACEOF
4926 /* end confdefs.h. */
4928 /* Override any gcc2 internal prototype to avoid an error. */
4932 /* We use char because int might match the return type of a gcc2
4933 builtin and then its argument prototype would still apply. */
4943 rm -f conftest.
$ac_objext conftest
$ac_exeext
4944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4945 (eval $ac_link) 2>conftest.er1
4947 grep -v '^ *+' conftest.er1
>conftest.err
4949 cat conftest.err
>&5
4950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4951 (exit $ac_status); } &&
4952 { ac_try
='test -z "$ac_c_werror_flag"
4953 || test ! -s conftest.err'
4954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4958 (exit $ac_status); }; } &&
4959 { ac_try
='test -s conftest$ac_exeext'
4960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964 (exit $ac_status); }; }; then
4965 ac_cv_search_opendir
="-l$ac_lib"
4968 echo "$as_me: failed program was:" >&5
4969 sed 's/^/| /' conftest.
$ac_ext >&5
4972 rm -f conftest.err conftest.
$ac_objext \
4973 conftest
$ac_exeext conftest.
$ac_ext
4976 LIBS
=$ac_func_search_save_LIBS
4978 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4979 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4980 if test "$ac_cv_search_opendir" != no
; then
4981 test "$ac_cv_search_opendir" = "none required" || LIBS
="$ac_cv_search_opendir $LIBS"
4986 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4987 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4988 if test "${ac_cv_search_opendir+set}" = set; then
4989 echo $ECHO_N "(cached) $ECHO_C" >&6
4991 ac_func_search_save_LIBS
=$LIBS
4992 ac_cv_search_opendir
=no
4993 cat >conftest.
$ac_ext <<_ACEOF
4996 cat confdefs.h
>>conftest.
$ac_ext
4997 cat >>conftest.
$ac_ext <<_ACEOF
4998 /* end confdefs.h. */
5000 /* Override any gcc2 internal prototype to avoid an error. */
5004 /* We use char because int might match the return type of a gcc2
5005 builtin and then its argument prototype would still apply. */
5015 rm -f conftest.
$ac_objext conftest
$ac_exeext
5016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5017 (eval $ac_link) 2>conftest.er1
5019 grep -v '^ *+' conftest.er1
>conftest.err
5021 cat conftest.err
>&5
5022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023 (exit $ac_status); } &&
5024 { ac_try
='test -z "$ac_c_werror_flag"
5025 || test ! -s conftest.err'
5026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5030 (exit $ac_status); }; } &&
5031 { ac_try
='test -s conftest$ac_exeext'
5032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036 (exit $ac_status); }; }; then
5037 ac_cv_search_opendir
="none required"
5039 echo "$as_me: failed program was:" >&5
5040 sed 's/^/| /' conftest.
$ac_ext >&5
5043 rm -f conftest.err conftest.
$ac_objext \
5044 conftest
$ac_exeext conftest.
$ac_ext
5045 if test "$ac_cv_search_opendir" = no
; then
5047 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5048 cat >conftest.
$ac_ext <<_ACEOF
5051 cat confdefs.h
>>conftest.
$ac_ext
5052 cat >>conftest.
$ac_ext <<_ACEOF
5053 /* end confdefs.h. */
5055 /* Override any gcc2 internal prototype to avoid an error. */
5059 /* We use char because int might match the return type of a gcc2
5060 builtin and then its argument prototype would still apply. */
5070 rm -f conftest.
$ac_objext conftest
$ac_exeext
5071 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5072 (eval $ac_link) 2>conftest.er1
5074 grep -v '^ *+' conftest.er1
>conftest.err
5076 cat conftest.err
>&5
5077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5078 (exit $ac_status); } &&
5079 { ac_try
='test -z "$ac_c_werror_flag"
5080 || test ! -s conftest.err'
5081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5085 (exit $ac_status); }; } &&
5086 { ac_try
='test -s conftest$ac_exeext'
5087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5091 (exit $ac_status); }; }; then
5092 ac_cv_search_opendir
="-l$ac_lib"
5095 echo "$as_me: failed program was:" >&5
5096 sed 's/^/| /' conftest.
$ac_ext >&5
5099 rm -f conftest.err conftest.
$ac_objext \
5100 conftest
$ac_exeext conftest.
$ac_ext
5103 LIBS
=$ac_func_search_save_LIBS
5105 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5106 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5107 if test "$ac_cv_search_opendir" != no
; then
5108 test "$ac_cv_search_opendir" = "none required" || LIBS
="$ac_cv_search_opendir $LIBS"
5114 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
5115 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
5116 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
5117 echo $ECHO_N "(cached) $ECHO_C" >&6
5119 cat >conftest.
$ac_ext <<_ACEOF
5122 cat confdefs.h
>>conftest.
$ac_ext
5123 cat >>conftest.
$ac_ext <<_ACEOF
5124 /* end confdefs.h. */
5125 #include <sys/types.h>
5129 return makedev(0, 0);
5134 rm -f conftest.
$ac_objext conftest
$ac_exeext
5135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5136 (eval $ac_link) 2>conftest.er1
5138 grep -v '^ *+' conftest.er1
>conftest.err
5140 cat conftest.err
>&5
5141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5142 (exit $ac_status); } &&
5143 { ac_try
='test -z "$ac_c_werror_flag"
5144 || test ! -s conftest.err'
5145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5149 (exit $ac_status); }; } &&
5150 { ac_try
='test -s conftest$ac_exeext'
5151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5155 (exit $ac_status); }; }; then
5156 ac_cv_header_sys_types_h_makedev
=yes
5158 echo "$as_me: failed program was:" >&5
5159 sed 's/^/| /' conftest.
$ac_ext >&5
5161 ac_cv_header_sys_types_h_makedev
=no
5163 rm -f conftest.err conftest.
$ac_objext \
5164 conftest
$ac_exeext conftest.
$ac_ext
5167 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
5168 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
5170 if test $ac_cv_header_sys_types_h_makedev = no
; then
5171 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5172 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
5173 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
5174 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5175 echo $ECHO_N "(cached) $ECHO_C" >&6
5177 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
5178 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
5180 # Is the header compilable?
5181 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
5182 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
5183 cat >conftest.
$ac_ext <<_ACEOF
5186 cat confdefs.h
>>conftest.
$ac_ext
5187 cat >>conftest.
$ac_ext <<_ACEOF
5188 /* end confdefs.h. */
5189 $ac_includes_default
5190 #include <sys/mkdev.h>
5192 rm -f conftest.
$ac_objext
5193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5194 (eval $ac_compile) 2>conftest.er1
5196 grep -v '^ *+' conftest.er1
>conftest.err
5198 cat conftest.err
>&5
5199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5200 (exit $ac_status); } &&
5201 { ac_try
='test -z "$ac_c_werror_flag"
5202 || test ! -s conftest.err'
5203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5207 (exit $ac_status); }; } &&
5208 { ac_try
='test -s conftest.$ac_objext'
5209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5213 (exit $ac_status); }; }; then
5214 ac_header_compiler
=yes
5216 echo "$as_me: failed program was:" >&5
5217 sed 's/^/| /' conftest.
$ac_ext >&5
5219 ac_header_compiler
=no
5221 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5222 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5223 echo "${ECHO_T}$ac_header_compiler" >&6
5225 # Is the header present?
5226 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
5227 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
5228 cat >conftest.
$ac_ext <<_ACEOF
5231 cat confdefs.h
>>conftest.
$ac_ext
5232 cat >>conftest.
$ac_ext <<_ACEOF
5233 /* end confdefs.h. */
5234 #include <sys/mkdev.h>
5236 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5237 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5239 grep -v '^ *+' conftest.er1
>conftest.err
5241 cat conftest.err
>&5
5242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5243 (exit $ac_status); } >/dev
/null
; then
5244 if test -s conftest.err
; then
5245 ac_cpp_err
=$ac_c_preproc_warn_flag
5246 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5253 if test -z "$ac_cpp_err"; then
5254 ac_header_preproc
=yes
5256 echo "$as_me: failed program was:" >&5
5257 sed 's/^/| /' conftest.
$ac_ext >&5
5259 ac_header_preproc
=no
5261 rm -f conftest.err conftest.
$ac_ext
5262 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5263 echo "${ECHO_T}$ac_header_preproc" >&6
5265 # So? What about this header?
5266 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5268 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
5269 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5270 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
5271 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
5272 ac_header_preproc
=yes
5275 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
5276 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
5277 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
5278 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
5279 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
5280 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
5281 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
5282 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
5283 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
5284 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
5285 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
5286 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
5289 ## ------------------------------------------------ ##
5290 ## Report this to http://www.python.org/python-bugs ##
5291 ## ------------------------------------------------ ##
5294 sed "s/^/$as_me: WARNING: /" >&2
5297 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
5298 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
5299 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5300 echo $ECHO_N "(cached) $ECHO_C" >&6
5302 ac_cv_header_sys_mkdev_h
=$ac_header_preproc
5304 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
5305 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
5308 if test $ac_cv_header_sys_mkdev_h = yes; then
5310 cat >>confdefs.h
<<\_ACEOF
5311 #define MAJOR_IN_MKDEV 1
5318 if test $ac_cv_header_sys_mkdev_h = no
; then
5319 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5320 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
5321 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
5322 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5323 echo $ECHO_N "(cached) $ECHO_C" >&6
5325 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
5326 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
5328 # Is the header compilable?
5329 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
5330 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
5331 cat >conftest.
$ac_ext <<_ACEOF
5334 cat confdefs.h
>>conftest.
$ac_ext
5335 cat >>conftest.
$ac_ext <<_ACEOF
5336 /* end confdefs.h. */
5337 $ac_includes_default
5338 #include <sys/sysmacros.h>
5340 rm -f conftest.
$ac_objext
5341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5342 (eval $ac_compile) 2>conftest.er1
5344 grep -v '^ *+' conftest.er1
>conftest.err
5346 cat conftest.err
>&5
5347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5348 (exit $ac_status); } &&
5349 { ac_try
='test -z "$ac_c_werror_flag"
5350 || test ! -s conftest.err'
5351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5355 (exit $ac_status); }; } &&
5356 { ac_try
='test -s conftest.$ac_objext'
5357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5361 (exit $ac_status); }; }; then
5362 ac_header_compiler
=yes
5364 echo "$as_me: failed program was:" >&5
5365 sed 's/^/| /' conftest.
$ac_ext >&5
5367 ac_header_compiler
=no
5369 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5370 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5371 echo "${ECHO_T}$ac_header_compiler" >&6
5373 # Is the header present?
5374 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
5375 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
5376 cat >conftest.
$ac_ext <<_ACEOF
5379 cat confdefs.h
>>conftest.
$ac_ext
5380 cat >>conftest.
$ac_ext <<_ACEOF
5381 /* end confdefs.h. */
5382 #include <sys/sysmacros.h>
5384 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5385 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5387 grep -v '^ *+' conftest.er1
>conftest.err
5389 cat conftest.err
>&5
5390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5391 (exit $ac_status); } >/dev
/null
; then
5392 if test -s conftest.err
; then
5393 ac_cpp_err
=$ac_c_preproc_warn_flag
5394 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5401 if test -z "$ac_cpp_err"; then
5402 ac_header_preproc
=yes
5404 echo "$as_me: failed program was:" >&5
5405 sed 's/^/| /' conftest.
$ac_ext >&5
5407 ac_header_preproc
=no
5409 rm -f conftest.err conftest.
$ac_ext
5410 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5411 echo "${ECHO_T}$ac_header_preproc" >&6
5413 # So? What about this header?
5414 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5416 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
5417 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5418 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
5419 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
5420 ac_header_preproc
=yes
5423 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
5424 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
5425 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
5426 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
5427 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
5428 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
5429 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
5430 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
5431 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
5432 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
5433 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
5434 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
5437 ## ------------------------------------------------ ##
5438 ## Report this to http://www.python.org/python-bugs ##
5439 ## ------------------------------------------------ ##
5442 sed "s/^/$as_me: WARNING: /" >&2
5445 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
5446 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
5447 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5448 echo $ECHO_N "(cached) $ECHO_C" >&6
5450 ac_cv_header_sys_sysmacros_h
=$ac_header_preproc
5452 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
5453 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
5456 if test $ac_cv_header_sys_sysmacros_h = yes; then
5458 cat >>confdefs.h
<<\_ACEOF
5459 #define MAJOR_IN_SYSMACROS 1
5469 # On Solaris, term.h requires curses.h
5471 for ac_header
in term.h
5473 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5474 echo "$as_me:$LINENO: checking for $ac_header" >&5
5475 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5476 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5477 echo $ECHO_N "(cached) $ECHO_C" >&6
5479 cat >conftest.
$ac_ext <<_ACEOF
5482 cat confdefs.h
>>conftest.
$ac_ext
5483 cat >>conftest.
$ac_ext <<_ACEOF
5484 /* end confdefs.h. */
5486 #ifdef HAVE_CURSES_H
5491 #include <$ac_header>
5493 rm -f conftest.
$ac_objext
5494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5495 (eval $ac_compile) 2>conftest.er1
5497 grep -v '^ *+' conftest.er1
>conftest.err
5499 cat conftest.err
>&5
5500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5501 (exit $ac_status); } &&
5502 { ac_try
='test -z "$ac_c_werror_flag"
5503 || test ! -s conftest.err'
5504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5508 (exit $ac_status); }; } &&
5509 { ac_try
='test -s conftest.$ac_objext'
5510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5514 (exit $ac_status); }; }; then
5515 eval "$as_ac_Header=yes"
5517 echo "$as_me: failed program was:" >&5
5518 sed 's/^/| /' conftest.
$ac_ext >&5
5520 eval "$as_ac_Header=no"
5522 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5524 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5525 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5526 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5527 cat >>confdefs.h
<<_ACEOF
5528 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5536 # On Linux, netlink.h requires asm/types.h
5538 for ac_header
in linux
/netlink.h
5540 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5541 echo "$as_me:$LINENO: checking for $ac_header" >&5
5542 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5543 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5544 echo $ECHO_N "(cached) $ECHO_C" >&6
5546 cat >conftest.
$ac_ext <<_ACEOF
5549 cat confdefs.h
>>conftest.
$ac_ext
5550 cat >>conftest.
$ac_ext <<_ACEOF
5551 /* end confdefs.h. */
5553 #ifdef HAVE_ASM_TYPES_H
5554 #include <asm/types.h>
5556 #ifdef HAVE_SYS_SOCKET_H
5557 #include <sys/socket.h>
5561 #include <$ac_header>
5563 rm -f conftest.
$ac_objext
5564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5565 (eval $ac_compile) 2>conftest.er1
5567 grep -v '^ *+' conftest.er1
>conftest.err
5569 cat conftest.err
>&5
5570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571 (exit $ac_status); } &&
5572 { ac_try
='test -z "$ac_c_werror_flag"
5573 || test ! -s conftest.err'
5574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5578 (exit $ac_status); }; } &&
5579 { ac_try
='test -s conftest.$ac_objext'
5580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5584 (exit $ac_status); }; }; then
5585 eval "$as_ac_Header=yes"
5587 echo "$as_me: failed program was:" >&5
5588 sed 's/^/| /' conftest.
$ac_ext >&5
5590 eval "$as_ac_Header=no"
5592 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5594 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5595 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5596 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5597 cat >>confdefs.h
<<_ACEOF
5598 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5606 # checks for typedefs
5608 echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
5609 echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6
5610 cat >conftest.
$ac_ext <<_ACEOF
5613 cat confdefs.h
>>conftest.
$ac_ext
5614 cat >>conftest.
$ac_ext <<_ACEOF
5615 /* end confdefs.h. */
5619 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5620 $EGREP "clock_t" >/dev
/null
2>&1; then
5625 cat >>confdefs.h
<<\_ACEOF
5626 #define clock_t long
5633 echo "$as_me:$LINENO: result: $was_it_defined" >&5
5634 echo "${ECHO_T}$was_it_defined" >&6
5636 # Check whether using makedev requires defining _OSF_SOURCE
5637 echo "$as_me:$LINENO: checking for makedev" >&5
5638 echo $ECHO_N "checking for makedev... $ECHO_C" >&6
5639 cat >conftest.
$ac_ext <<_ACEOF
5642 cat confdefs.h
>>conftest.
$ac_ext
5643 cat >>conftest.
$ac_ext <<_ACEOF
5644 /* end confdefs.h. */
5645 #include <sys/types.h>
5654 rm -f conftest.
$ac_objext conftest
$ac_exeext
5655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5656 (eval $ac_link) 2>conftest.er1
5658 grep -v '^ *+' conftest.er1
>conftest.err
5660 cat conftest.err
>&5
5661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5662 (exit $ac_status); } &&
5663 { ac_try
='test -z "$ac_c_werror_flag"
5664 || test ! -s conftest.err'
5665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5669 (exit $ac_status); }; } &&
5670 { ac_try
='test -s conftest$ac_exeext'
5671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675 (exit $ac_status); }; }; then
5676 ac_cv_has_makedev
=yes
5678 echo "$as_me: failed program was:" >&5
5679 sed 's/^/| /' conftest.
$ac_ext >&5
5681 ac_cv_has_makedev
=no
5683 rm -f conftest.err conftest.
$ac_objext \
5684 conftest
$ac_exeext conftest.
$ac_ext
5685 if test "$ac_cv_has_makedev" = "no"; then
5686 # we didn't link, try if _OSF_SOURCE will allow us to link
5687 cat >conftest.
$ac_ext <<_ACEOF
5690 cat confdefs.h
>>conftest.
$ac_ext
5691 cat >>conftest.
$ac_ext <<_ACEOF
5692 /* end confdefs.h. */
5694 #define _OSF_SOURCE 1
5695 #include <sys/types.h>
5705 rm -f conftest.
$ac_objext conftest
$ac_exeext
5706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5707 (eval $ac_link) 2>conftest.er1
5709 grep -v '^ *+' conftest.er1
>conftest.err
5711 cat conftest.err
>&5
5712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5713 (exit $ac_status); } &&
5714 { ac_try
='test -z "$ac_c_werror_flag"
5715 || test ! -s conftest.err'
5716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5720 (exit $ac_status); }; } &&
5721 { ac_try
='test -s conftest$ac_exeext'
5722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5726 (exit $ac_status); }; }; then
5727 ac_cv_has_makedev
=yes
5729 echo "$as_me: failed program was:" >&5
5730 sed 's/^/| /' conftest.
$ac_ext >&5
5732 ac_cv_has_makedev
=no
5734 rm -f conftest.err conftest.
$ac_objext \
5735 conftest
$ac_exeext conftest.
$ac_ext
5736 if test "$ac_cv_has_makedev" = "yes"; then
5738 cat >>confdefs.h
<<\_ACEOF
5739 #define _OSF_SOURCE 1
5744 echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
5745 echo "${ECHO_T}$ac_cv_has_makedev" >&6
5746 if test "$ac_cv_has_makedev" = "yes"; then
5748 cat >>confdefs.h
<<\_ACEOF
5749 #define HAVE_MAKEDEV 1
5754 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
5755 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
5756 # defined, but the compiler does not support pragma redefine_extname,
5757 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
5758 # structures (such as rlimit64) without declaring them. As a
5759 # work-around, disable LFS on such configurations
5762 echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
5763 echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6
5764 cat >conftest.
$ac_ext <<_ACEOF
5767 cat confdefs.h
>>conftest.
$ac_ext
5768 cat >>conftest.
$ac_ext <<_ACEOF
5769 /* end confdefs.h. */
5771 #define _LARGEFILE_SOURCE 1
5772 #define _FILE_OFFSET_BITS 64
5773 #include <sys/resource.h>
5783 rm -f conftest.
$ac_objext
5784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5785 (eval $ac_compile) 2>conftest.er1
5787 grep -v '^ *+' conftest.er1
>conftest.err
5789 cat conftest.err
>&5
5790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791 (exit $ac_status); } &&
5792 { ac_try
='test -z "$ac_c_werror_flag"
5793 || test ! -s conftest.err'
5794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798 (exit $ac_status); }; } &&
5799 { ac_try
='test -s conftest.$ac_objext'
5800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5804 (exit $ac_status); }; }; then
5807 echo "$as_me: failed program was:" >&5
5808 sed 's/^/| /' conftest.
$ac_ext >&5
5812 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5813 echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
5814 echo "${ECHO_T}$sol_lfs_bug" >&6
5815 if test "$sol_lfs_bug" = "yes"; then
5819 if test "$use_lfs" = "yes"; then
5820 # Two defines needed to enable largefile support on various platforms
5821 # These may affect some typedefs
5823 cat >>confdefs.h
<<\_ACEOF
5824 #define _LARGEFILE_SOURCE 1
5828 cat >>confdefs.h
<<\_ACEOF
5829 #define _FILE_OFFSET_BITS 64
5834 # Add some code to confdefs.h so that the test for off_t works on SCO
5835 cat >> confdefs.h
<<\EOF
5841 # Type availability checks
5842 echo "$as_me:$LINENO: checking for mode_t" >&5
5843 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
5844 if test "${ac_cv_type_mode_t+set}" = set; then
5845 echo $ECHO_N "(cached) $ECHO_C" >&6
5847 cat >conftest.
$ac_ext <<_ACEOF
5850 cat confdefs.h
>>conftest.
$ac_ext
5851 cat >>conftest.
$ac_ext <<_ACEOF
5852 /* end confdefs.h. */
5853 $ac_includes_default
5859 if (sizeof (mode_t))
5865 rm -f conftest.
$ac_objext
5866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5867 (eval $ac_compile) 2>conftest.er1
5869 grep -v '^ *+' conftest.er1
>conftest.err
5871 cat conftest.err
>&5
5872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873 (exit $ac_status); } &&
5874 { ac_try
='test -z "$ac_c_werror_flag"
5875 || test ! -s conftest.err'
5876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880 (exit $ac_status); }; } &&
5881 { ac_try
='test -s conftest.$ac_objext'
5882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5886 (exit $ac_status); }; }; then
5887 ac_cv_type_mode_t
=yes
5889 echo "$as_me: failed program was:" >&5
5890 sed 's/^/| /' conftest.
$ac_ext >&5
5892 ac_cv_type_mode_t
=no
5894 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5896 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
5897 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
5898 if test $ac_cv_type_mode_t = yes; then
5902 cat >>confdefs.h
<<_ACEOF
5908 echo "$as_me:$LINENO: checking for off_t" >&5
5909 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5910 if test "${ac_cv_type_off_t+set}" = set; then
5911 echo $ECHO_N "(cached) $ECHO_C" >&6
5913 cat >conftest.
$ac_ext <<_ACEOF
5916 cat confdefs.h
>>conftest.
$ac_ext
5917 cat >>conftest.
$ac_ext <<_ACEOF
5918 /* end confdefs.h. */
5919 $ac_includes_default
5931 rm -f conftest.
$ac_objext
5932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5933 (eval $ac_compile) 2>conftest.er1
5935 grep -v '^ *+' conftest.er1
>conftest.err
5937 cat conftest.err
>&5
5938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939 (exit $ac_status); } &&
5940 { ac_try
='test -z "$ac_c_werror_flag"
5941 || test ! -s conftest.err'
5942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946 (exit $ac_status); }; } &&
5947 { ac_try
='test -s conftest.$ac_objext'
5948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952 (exit $ac_status); }; }; then
5953 ac_cv_type_off_t
=yes
5955 echo "$as_me: failed program was:" >&5
5956 sed 's/^/| /' conftest.
$ac_ext >&5
5960 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5962 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5963 echo "${ECHO_T}$ac_cv_type_off_t" >&6
5964 if test $ac_cv_type_off_t = yes; then
5968 cat >>confdefs.h
<<_ACEOF
5974 echo "$as_me:$LINENO: checking for pid_t" >&5
5975 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
5976 if test "${ac_cv_type_pid_t+set}" = set; then
5977 echo $ECHO_N "(cached) $ECHO_C" >&6
5979 cat >conftest.
$ac_ext <<_ACEOF
5982 cat confdefs.h
>>conftest.
$ac_ext
5983 cat >>conftest.
$ac_ext <<_ACEOF
5984 /* end confdefs.h. */
5985 $ac_includes_default
5997 rm -f conftest.
$ac_objext
5998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5999 (eval $ac_compile) 2>conftest.er1
6001 grep -v '^ *+' conftest.er1
>conftest.err
6003 cat conftest.err
>&5
6004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005 (exit $ac_status); } &&
6006 { ac_try
='test -z "$ac_c_werror_flag"
6007 || test ! -s conftest.err'
6008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012 (exit $ac_status); }; } &&
6013 { ac_try
='test -s conftest.$ac_objext'
6014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018 (exit $ac_status); }; }; then
6019 ac_cv_type_pid_t
=yes
6021 echo "$as_me: failed program was:" >&5
6022 sed 's/^/| /' conftest.
$ac_ext >&5
6026 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6028 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6029 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
6030 if test $ac_cv_type_pid_t = yes; then
6034 cat >>confdefs.h
<<_ACEOF
6040 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6041 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6042 if test "${ac_cv_type_signal+set}" = set; then
6043 echo $ECHO_N "(cached) $ECHO_C" >&6
6045 cat >conftest.
$ac_ext <<_ACEOF
6048 cat confdefs.h
>>conftest.
$ac_ext
6049 cat >>conftest.
$ac_ext <<_ACEOF
6050 /* end confdefs.h. */
6051 #include <sys/types.h>
6057 extern "C" void (*signal (int, void (*)(int)))(int);
6059 void (*signal ()) ();
6070 rm -f conftest.
$ac_objext
6071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6072 (eval $ac_compile) 2>conftest.er1
6074 grep -v '^ *+' conftest.er1
>conftest.err
6076 cat conftest.err
>&5
6077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6078 (exit $ac_status); } &&
6079 { ac_try
='test -z "$ac_c_werror_flag"
6080 || test ! -s conftest.err'
6081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6085 (exit $ac_status); }; } &&
6086 { ac_try
='test -s conftest.$ac_objext'
6087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091 (exit $ac_status); }; }; then
6092 ac_cv_type_signal
=void
6094 echo "$as_me: failed program was:" >&5
6095 sed 's/^/| /' conftest.
$ac_ext >&5
6097 ac_cv_type_signal
=int
6099 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6101 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6102 echo "${ECHO_T}$ac_cv_type_signal" >&6
6104 cat >>confdefs.h
<<_ACEOF
6105 #define RETSIGTYPE $ac_cv_type_signal
6109 echo "$as_me:$LINENO: checking for size_t" >&5
6110 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6111 if test "${ac_cv_type_size_t+set}" = set; then
6112 echo $ECHO_N "(cached) $ECHO_C" >&6
6114 cat >conftest.
$ac_ext <<_ACEOF
6117 cat confdefs.h
>>conftest.
$ac_ext
6118 cat >>conftest.
$ac_ext <<_ACEOF
6119 /* end confdefs.h. */
6120 $ac_includes_default
6126 if (sizeof (size_t))
6132 rm -f conftest.
$ac_objext
6133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6134 (eval $ac_compile) 2>conftest.er1
6136 grep -v '^ *+' conftest.er1
>conftest.err
6138 cat conftest.err
>&5
6139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6140 (exit $ac_status); } &&
6141 { ac_try
='test -z "$ac_c_werror_flag"
6142 || test ! -s conftest.err'
6143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6147 (exit $ac_status); }; } &&
6148 { ac_try
='test -s conftest.$ac_objext'
6149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6153 (exit $ac_status); }; }; then
6154 ac_cv_type_size_t
=yes
6156 echo "$as_me: failed program was:" >&5
6157 sed 's/^/| /' conftest.
$ac_ext >&5
6159 ac_cv_type_size_t
=no
6161 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6163 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6164 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6165 if test $ac_cv_type_size_t = yes; then
6169 cat >>confdefs.h
<<_ACEOF
6170 #define size_t unsigned
6175 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6176 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
6177 if test "${ac_cv_type_uid_t+set}" = set; then
6178 echo $ECHO_N "(cached) $ECHO_C" >&6
6180 cat >conftest.
$ac_ext <<_ACEOF
6183 cat confdefs.h
>>conftest.
$ac_ext
6184 cat >>conftest.
$ac_ext <<_ACEOF
6185 /* end confdefs.h. */
6186 #include <sys/types.h>
6189 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6190 $EGREP "uid_t" >/dev
/null
2>&1; then
6191 ac_cv_type_uid_t
=yes
6198 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
6199 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
6200 if test $ac_cv_type_uid_t = no
; then
6202 cat >>confdefs.h
<<\_ACEOF
6207 cat >>confdefs.h
<<\_ACEOF
6213 echo "$as_me:$LINENO: checking for ssize_t" >&5
6214 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
6215 if test "${ac_cv_type_ssize_t+set}" = set; then
6216 echo $ECHO_N "(cached) $ECHO_C" >&6
6218 cat >conftest.
$ac_ext <<_ACEOF
6221 cat confdefs.h
>>conftest.
$ac_ext
6222 cat >>conftest.
$ac_ext <<_ACEOF
6223 /* end confdefs.h. */
6224 $ac_includes_default
6230 if (sizeof (ssize_t))
6236 rm -f conftest.
$ac_objext
6237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6238 (eval $ac_compile) 2>conftest.er1
6240 grep -v '^ *+' conftest.er1
>conftest.err
6242 cat conftest.err
>&5
6243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6244 (exit $ac_status); } &&
6245 { ac_try
='test -z "$ac_c_werror_flag"
6246 || test ! -s conftest.err'
6247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6251 (exit $ac_status); }; } &&
6252 { ac_try
='test -s conftest.$ac_objext'
6253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257 (exit $ac_status); }; }; then
6258 ac_cv_type_ssize_t
=yes
6260 echo "$as_me: failed program was:" >&5
6261 sed 's/^/| /' conftest.
$ac_ext >&5
6263 ac_cv_type_ssize_t
=no
6265 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6267 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
6268 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
6269 if test $ac_cv_type_ssize_t = yes; then
6271 cat >>confdefs.h
<<\_ACEOF
6272 #define HAVE_SSIZE_T 1
6278 # Sizes of various common basic types
6279 # ANSI C requires sizeof(char) == 1, so no need to check it
6280 echo "$as_me:$LINENO: checking for int" >&5
6281 echo $ECHO_N "checking for int... $ECHO_C" >&6
6282 if test "${ac_cv_type_int+set}" = set; then
6283 echo $ECHO_N "(cached) $ECHO_C" >&6
6285 cat >conftest.
$ac_ext <<_ACEOF
6288 cat confdefs.h
>>conftest.
$ac_ext
6289 cat >>conftest.
$ac_ext <<_ACEOF
6290 /* end confdefs.h. */
6291 $ac_includes_default
6303 rm -f conftest.
$ac_objext
6304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6305 (eval $ac_compile) 2>conftest.er1
6307 grep -v '^ *+' conftest.er1
>conftest.err
6309 cat conftest.err
>&5
6310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6311 (exit $ac_status); } &&
6312 { ac_try
='test -z "$ac_c_werror_flag"
6313 || test ! -s conftest.err'
6314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6318 (exit $ac_status); }; } &&
6319 { ac_try
='test -s conftest.$ac_objext'
6320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6324 (exit $ac_status); }; }; then
6327 echo "$as_me: failed program was:" >&5
6328 sed 's/^/| /' conftest.
$ac_ext >&5
6332 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6334 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
6335 echo "${ECHO_T}$ac_cv_type_int" >&6
6337 echo "$as_me:$LINENO: checking size of int" >&5
6338 echo $ECHO_N "checking size of int... $ECHO_C" >&6
6339 if test "${ac_cv_sizeof_int+set}" = set; then
6340 echo $ECHO_N "(cached) $ECHO_C" >&6
6342 if test "$ac_cv_type_int" = yes; then
6343 # The cast to unsigned long works around a bug in the HP C Compiler
6344 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6345 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6346 # This bug is HP SR number 8606223364.
6347 if test "$cross_compiling" = yes; then
6348 # Depending upon the size, compute the lo and hi bounds.
6349 cat >conftest.
$ac_ext <<_ACEOF
6352 cat confdefs.h
>>conftest.
$ac_ext
6353 cat >>conftest.
$ac_ext <<_ACEOF
6354 /* end confdefs.h. */
6355 $ac_includes_default
6359 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
6366 rm -f conftest.
$ac_objext
6367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6368 (eval $ac_compile) 2>conftest.er1
6370 grep -v '^ *+' conftest.er1
>conftest.err
6372 cat conftest.err
>&5
6373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6374 (exit $ac_status); } &&
6375 { ac_try
='test -z "$ac_c_werror_flag"
6376 || test ! -s conftest.err'
6377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6381 (exit $ac_status); }; } &&
6382 { ac_try
='test -s conftest.$ac_objext'
6383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6387 (exit $ac_status); }; }; then
6390 cat >conftest.
$ac_ext <<_ACEOF
6393 cat confdefs.h
>>conftest.
$ac_ext
6394 cat >>conftest.
$ac_ext <<_ACEOF
6395 /* end confdefs.h. */
6396 $ac_includes_default
6400 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6407 rm -f conftest.
$ac_objext
6408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6409 (eval $ac_compile) 2>conftest.er1
6411 grep -v '^ *+' conftest.er1
>conftest.err
6413 cat conftest.err
>&5
6414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6415 (exit $ac_status); } &&
6416 { ac_try
='test -z "$ac_c_werror_flag"
6417 || test ! -s conftest.err'
6418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6422 (exit $ac_status); }; } &&
6423 { ac_try
='test -s conftest.$ac_objext'
6424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6428 (exit $ac_status); }; }; then
6429 ac_hi
=$ac_mid; break
6431 echo "$as_me: failed program was:" >&5
6432 sed 's/^/| /' conftest.
$ac_ext >&5
6434 ac_lo
=`expr $ac_mid + 1`
6435 if test $ac_lo -le $ac_mid; then
6439 ac_mid
=`expr 2 '*' $ac_mid + 1`
6441 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6444 echo "$as_me: failed program was:" >&5
6445 sed 's/^/| /' conftest.
$ac_ext >&5
6447 cat >conftest.
$ac_ext <<_ACEOF
6450 cat confdefs.h
>>conftest.
$ac_ext
6451 cat >>conftest.
$ac_ext <<_ACEOF
6452 /* end confdefs.h. */
6453 $ac_includes_default
6457 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
6464 rm -f conftest.
$ac_objext
6465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6466 (eval $ac_compile) 2>conftest.er1
6468 grep -v '^ *+' conftest.er1
>conftest.err
6470 cat conftest.err
>&5
6471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6472 (exit $ac_status); } &&
6473 { ac_try
='test -z "$ac_c_werror_flag"
6474 || test ! -s conftest.err'
6475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6479 (exit $ac_status); }; } &&
6480 { ac_try
='test -s conftest.$ac_objext'
6481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6485 (exit $ac_status); }; }; then
6488 cat >conftest.
$ac_ext <<_ACEOF
6491 cat confdefs.h
>>conftest.
$ac_ext
6492 cat >>conftest.
$ac_ext <<_ACEOF
6493 /* end confdefs.h. */
6494 $ac_includes_default
6498 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
6505 rm -f conftest.
$ac_objext
6506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6507 (eval $ac_compile) 2>conftest.er1
6509 grep -v '^ *+' conftest.er1
>conftest.err
6511 cat conftest.err
>&5
6512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6513 (exit $ac_status); } &&
6514 { ac_try
='test -z "$ac_c_werror_flag"
6515 || test ! -s conftest.err'
6516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6520 (exit $ac_status); }; } &&
6521 { ac_try
='test -s conftest.$ac_objext'
6522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6526 (exit $ac_status); }; }; then
6527 ac_lo
=$ac_mid; break
6529 echo "$as_me: failed program was:" >&5
6530 sed 's/^/| /' conftest.
$ac_ext >&5
6532 ac_hi
=`expr '(' $ac_mid ')' - 1`
6533 if test $ac_mid -le $ac_hi; then
6537 ac_mid
=`expr 2 '*' $ac_mid`
6539 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6542 echo "$as_me: failed program was:" >&5
6543 sed 's/^/| /' conftest.
$ac_ext >&5
6547 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6549 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6550 # Binary search between lo and hi bounds.
6551 while test "x$ac_lo" != "x$ac_hi"; do
6552 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6553 cat >conftest.
$ac_ext <<_ACEOF
6556 cat confdefs.h
>>conftest.
$ac_ext
6557 cat >>conftest.
$ac_ext <<_ACEOF
6558 /* end confdefs.h. */
6559 $ac_includes_default
6563 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6570 rm -f conftest.
$ac_objext
6571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6572 (eval $ac_compile) 2>conftest.er1
6574 grep -v '^ *+' conftest.er1
>conftest.err
6576 cat conftest.err
>&5
6577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6578 (exit $ac_status); } &&
6579 { ac_try
='test -z "$ac_c_werror_flag"
6580 || test ! -s conftest.err'
6581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6585 (exit $ac_status); }; } &&
6586 { ac_try
='test -s conftest.$ac_objext'
6587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6591 (exit $ac_status); }; }; then
6594 echo "$as_me: failed program was:" >&5
6595 sed 's/^/| /' conftest.
$ac_ext >&5
6597 ac_lo
=`expr '(' $ac_mid ')' + 1`
6599 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6602 ?
*) ac_cv_sizeof_int
=$ac_lo;;
6603 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
6604 See \`config.log' for more details." >&5
6605 echo "$as_me: error: cannot compute sizeof (int), 77
6606 See \`config.log' for more details." >&2;}
6607 { (exit 1); exit 1; }; } ;;
6610 if test "$cross_compiling" = yes; then
6611 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6612 See \`config.log' for more details." >&5
6613 echo "$as_me: error: cannot run test program while cross compiling
6614 See \`config.log' for more details." >&2;}
6615 { (exit 1); exit 1; }; }
6617 cat >conftest.
$ac_ext <<_ACEOF
6620 cat confdefs.h
>>conftest.
$ac_ext
6621 cat >>conftest.
$ac_ext <<_ACEOF
6622 /* end confdefs.h. */
6623 $ac_includes_default
6624 long longval () { return (long) (sizeof (int)); }
6625 unsigned long ulongval () { return (long) (sizeof (int)); }
6632 FILE *f = fopen ("conftest.val", "w");
6635 if (((long) (sizeof (int))) < 0)
6637 long i = longval ();
6638 if (i != ((long) (sizeof (int))))
6640 fprintf (f, "%ld\n", i);
6644 unsigned long i = ulongval ();
6645 if (i != ((long) (sizeof (int))))
6647 fprintf (f, "%lu\n", i);
6649 exit (ferror (f) || fclose (f) != 0);
6655 rm -f conftest
$ac_exeext
6656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6657 (eval $ac_link) 2>&5
6659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6660 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6665 (exit $ac_status); }; }; then
6666 ac_cv_sizeof_int
=`cat conftest.val`
6668 echo "$as_me: program exited with status $ac_status" >&5
6669 echo "$as_me: failed program was:" >&5
6670 sed 's/^/| /' conftest.
$ac_ext >&5
6673 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
6674 See \`config.log' for more details." >&5
6675 echo "$as_me: error: cannot compute sizeof (int), 77
6676 See \`config.log' for more details." >&2;}
6677 { (exit 1); exit 1; }; }
6679 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6687 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6688 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
6689 cat >>confdefs.h
<<_ACEOF
6690 #define SIZEOF_INT $ac_cv_sizeof_int
6694 echo "$as_me:$LINENO: checking for long" >&5
6695 echo $ECHO_N "checking for long... $ECHO_C" >&6
6696 if test "${ac_cv_type_long+set}" = set; then
6697 echo $ECHO_N "(cached) $ECHO_C" >&6
6699 cat >conftest.
$ac_ext <<_ACEOF
6702 cat confdefs.h
>>conftest.
$ac_ext
6703 cat >>conftest.
$ac_ext <<_ACEOF
6704 /* end confdefs.h. */
6705 $ac_includes_default
6717 rm -f conftest.
$ac_objext
6718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6719 (eval $ac_compile) 2>conftest.er1
6721 grep -v '^ *+' conftest.er1
>conftest.err
6723 cat conftest.err
>&5
6724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6725 (exit $ac_status); } &&
6726 { ac_try
='test -z "$ac_c_werror_flag"
6727 || test ! -s conftest.err'
6728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6732 (exit $ac_status); }; } &&
6733 { ac_try
='test -s conftest.$ac_objext'
6734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6738 (exit $ac_status); }; }; then
6741 echo "$as_me: failed program was:" >&5
6742 sed 's/^/| /' conftest.
$ac_ext >&5
6746 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6748 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6749 echo "${ECHO_T}$ac_cv_type_long" >&6
6751 echo "$as_me:$LINENO: checking size of long" >&5
6752 echo $ECHO_N "checking size of long... $ECHO_C" >&6
6753 if test "${ac_cv_sizeof_long+set}" = set; then
6754 echo $ECHO_N "(cached) $ECHO_C" >&6
6756 if test "$ac_cv_type_long" = yes; then
6757 # The cast to unsigned long works around a bug in the HP C Compiler
6758 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6759 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6760 # This bug is HP SR number 8606223364.
6761 if test "$cross_compiling" = yes; then
6762 # Depending upon the size, compute the lo and hi bounds.
6763 cat >conftest.
$ac_ext <<_ACEOF
6766 cat confdefs.h
>>conftest.
$ac_ext
6767 cat >>conftest.
$ac_ext <<_ACEOF
6768 /* end confdefs.h. */
6769 $ac_includes_default
6773 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
6780 rm -f conftest.
$ac_objext
6781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6782 (eval $ac_compile) 2>conftest.er1
6784 grep -v '^ *+' conftest.er1
>conftest.err
6786 cat conftest.err
>&5
6787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6788 (exit $ac_status); } &&
6789 { ac_try
='test -z "$ac_c_werror_flag"
6790 || test ! -s conftest.err'
6791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6795 (exit $ac_status); }; } &&
6796 { ac_try
='test -s conftest.$ac_objext'
6797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6801 (exit $ac_status); }; }; then
6804 cat >conftest.
$ac_ext <<_ACEOF
6807 cat confdefs.h
>>conftest.
$ac_ext
6808 cat >>conftest.
$ac_ext <<_ACEOF
6809 /* end confdefs.h. */
6810 $ac_includes_default
6814 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6821 rm -f conftest.
$ac_objext
6822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6823 (eval $ac_compile) 2>conftest.er1
6825 grep -v '^ *+' conftest.er1
>conftest.err
6827 cat conftest.err
>&5
6828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6829 (exit $ac_status); } &&
6830 { ac_try
='test -z "$ac_c_werror_flag"
6831 || test ! -s conftest.err'
6832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6836 (exit $ac_status); }; } &&
6837 { ac_try
='test -s conftest.$ac_objext'
6838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6842 (exit $ac_status); }; }; then
6843 ac_hi
=$ac_mid; break
6845 echo "$as_me: failed program was:" >&5
6846 sed 's/^/| /' conftest.
$ac_ext >&5
6848 ac_lo
=`expr $ac_mid + 1`
6849 if test $ac_lo -le $ac_mid; then
6853 ac_mid
=`expr 2 '*' $ac_mid + 1`
6855 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6858 echo "$as_me: failed program was:" >&5
6859 sed 's/^/| /' conftest.
$ac_ext >&5
6861 cat >conftest.
$ac_ext <<_ACEOF
6864 cat confdefs.h
>>conftest.
$ac_ext
6865 cat >>conftest.
$ac_ext <<_ACEOF
6866 /* end confdefs.h. */
6867 $ac_includes_default
6871 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
6878 rm -f conftest.
$ac_objext
6879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6880 (eval $ac_compile) 2>conftest.er1
6882 grep -v '^ *+' conftest.er1
>conftest.err
6884 cat conftest.err
>&5
6885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6886 (exit $ac_status); } &&
6887 { ac_try
='test -z "$ac_c_werror_flag"
6888 || test ! -s conftest.err'
6889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6893 (exit $ac_status); }; } &&
6894 { ac_try
='test -s conftest.$ac_objext'
6895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6899 (exit $ac_status); }; }; then
6902 cat >conftest.
$ac_ext <<_ACEOF
6905 cat confdefs.h
>>conftest.
$ac_ext
6906 cat >>conftest.
$ac_ext <<_ACEOF
6907 /* end confdefs.h. */
6908 $ac_includes_default
6912 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
6919 rm -f conftest.
$ac_objext
6920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6921 (eval $ac_compile) 2>conftest.er1
6923 grep -v '^ *+' conftest.er1
>conftest.err
6925 cat conftest.err
>&5
6926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6927 (exit $ac_status); } &&
6928 { ac_try
='test -z "$ac_c_werror_flag"
6929 || test ! -s conftest.err'
6930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6934 (exit $ac_status); }; } &&
6935 { ac_try
='test -s conftest.$ac_objext'
6936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6940 (exit $ac_status); }; }; then
6941 ac_lo
=$ac_mid; break
6943 echo "$as_me: failed program was:" >&5
6944 sed 's/^/| /' conftest.
$ac_ext >&5
6946 ac_hi
=`expr '(' $ac_mid ')' - 1`
6947 if test $ac_mid -le $ac_hi; then
6951 ac_mid
=`expr 2 '*' $ac_mid`
6953 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6956 echo "$as_me: failed program was:" >&5
6957 sed 's/^/| /' conftest.
$ac_ext >&5
6961 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6963 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6964 # Binary search between lo and hi bounds.
6965 while test "x$ac_lo" != "x$ac_hi"; do
6966 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6967 cat >conftest.
$ac_ext <<_ACEOF
6970 cat confdefs.h
>>conftest.
$ac_ext
6971 cat >>conftest.
$ac_ext <<_ACEOF
6972 /* end confdefs.h. */
6973 $ac_includes_default
6977 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6984 rm -f conftest.
$ac_objext
6985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6986 (eval $ac_compile) 2>conftest.er1
6988 grep -v '^ *+' conftest.er1
>conftest.err
6990 cat conftest.err
>&5
6991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6992 (exit $ac_status); } &&
6993 { ac_try
='test -z "$ac_c_werror_flag"
6994 || test ! -s conftest.err'
6995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6999 (exit $ac_status); }; } &&
7000 { ac_try
='test -s conftest.$ac_objext'
7001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7005 (exit $ac_status); }; }; then
7008 echo "$as_me: failed program was:" >&5
7009 sed 's/^/| /' conftest.
$ac_ext >&5
7011 ac_lo
=`expr '(' $ac_mid ')' + 1`
7013 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7016 ?
*) ac_cv_sizeof_long
=$ac_lo;;
7017 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7018 See \`config.log' for more details." >&5
7019 echo "$as_me: error: cannot compute sizeof (long), 77
7020 See \`config.log' for more details." >&2;}
7021 { (exit 1); exit 1; }; } ;;
7024 if test "$cross_compiling" = yes; then
7025 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7026 See \`config.log' for more details." >&5
7027 echo "$as_me: error: cannot run test program while cross compiling
7028 See \`config.log' for more details." >&2;}
7029 { (exit 1); exit 1; }; }
7031 cat >conftest.
$ac_ext <<_ACEOF
7034 cat confdefs.h
>>conftest.
$ac_ext
7035 cat >>conftest.
$ac_ext <<_ACEOF
7036 /* end confdefs.h. */
7037 $ac_includes_default
7038 long longval () { return (long) (sizeof (long)); }
7039 unsigned long ulongval () { return (long) (sizeof (long)); }
7046 FILE *f = fopen ("conftest.val", "w");
7049 if (((long) (sizeof (long))) < 0)
7051 long i = longval ();
7052 if (i != ((long) (sizeof (long))))
7054 fprintf (f, "%ld\n", i);
7058 unsigned long i = ulongval ();
7059 if (i != ((long) (sizeof (long))))
7061 fprintf (f, "%lu\n", i);
7063 exit (ferror (f) || fclose (f) != 0);
7069 rm -f conftest
$ac_exeext
7070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7071 (eval $ac_link) 2>&5
7073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7074 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7079 (exit $ac_status); }; }; then
7080 ac_cv_sizeof_long
=`cat conftest.val`
7082 echo "$as_me: program exited with status $ac_status" >&5
7083 echo "$as_me: failed program was:" >&5
7084 sed 's/^/| /' conftest.
$ac_ext >&5
7087 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7088 See \`config.log' for more details." >&5
7089 echo "$as_me: error: cannot compute sizeof (long), 77
7090 See \`config.log' for more details." >&2;}
7091 { (exit 1); exit 1; }; }
7093 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7101 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7102 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7103 cat >>confdefs.h
<<_ACEOF
7104 #define SIZEOF_LONG $ac_cv_sizeof_long
7108 echo "$as_me:$LINENO: checking for void *" >&5
7109 echo $ECHO_N "checking for void *... $ECHO_C" >&6
7110 if test "${ac_cv_type_void_p+set}" = set; then
7111 echo $ECHO_N "(cached) $ECHO_C" >&6
7113 cat >conftest.
$ac_ext <<_ACEOF
7116 cat confdefs.h
>>conftest.
$ac_ext
7117 cat >>conftest.
$ac_ext <<_ACEOF
7118 /* end confdefs.h. */
7119 $ac_includes_default
7125 if (sizeof (void *))
7131 rm -f conftest.
$ac_objext
7132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7133 (eval $ac_compile) 2>conftest.er1
7135 grep -v '^ *+' conftest.er1
>conftest.err
7137 cat conftest.err
>&5
7138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7139 (exit $ac_status); } &&
7140 { ac_try
='test -z "$ac_c_werror_flag"
7141 || test ! -s conftest.err'
7142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7146 (exit $ac_status); }; } &&
7147 { ac_try
='test -s conftest.$ac_objext'
7148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7152 (exit $ac_status); }; }; then
7153 ac_cv_type_void_p
=yes
7155 echo "$as_me: failed program was:" >&5
7156 sed 's/^/| /' conftest.
$ac_ext >&5
7158 ac_cv_type_void_p
=no
7160 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7162 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
7163 echo "${ECHO_T}$ac_cv_type_void_p" >&6
7165 echo "$as_me:$LINENO: checking size of void *" >&5
7166 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
7167 if test "${ac_cv_sizeof_void_p+set}" = set; then
7168 echo $ECHO_N "(cached) $ECHO_C" >&6
7170 if test "$ac_cv_type_void_p" = yes; then
7171 # The cast to unsigned long works around a bug in the HP C Compiler
7172 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7173 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7174 # This bug is HP SR number 8606223364.
7175 if test "$cross_compiling" = yes; then
7176 # Depending upon the size, compute the lo and hi bounds.
7177 cat >conftest.
$ac_ext <<_ACEOF
7180 cat confdefs.h
>>conftest.
$ac_ext
7181 cat >>conftest.
$ac_ext <<_ACEOF
7182 /* end confdefs.h. */
7183 $ac_includes_default
7187 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
7194 rm -f conftest.
$ac_objext
7195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7196 (eval $ac_compile) 2>conftest.er1
7198 grep -v '^ *+' conftest.er1
>conftest.err
7200 cat conftest.err
>&5
7201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7202 (exit $ac_status); } &&
7203 { ac_try
='test -z "$ac_c_werror_flag"
7204 || test ! -s conftest.err'
7205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7209 (exit $ac_status); }; } &&
7210 { ac_try
='test -s conftest.$ac_objext'
7211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7215 (exit $ac_status); }; }; then
7218 cat >conftest.
$ac_ext <<_ACEOF
7221 cat confdefs.h
>>conftest.
$ac_ext
7222 cat >>conftest.
$ac_ext <<_ACEOF
7223 /* end confdefs.h. */
7224 $ac_includes_default
7228 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
7235 rm -f conftest.
$ac_objext
7236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7237 (eval $ac_compile) 2>conftest.er1
7239 grep -v '^ *+' conftest.er1
>conftest.err
7241 cat conftest.err
>&5
7242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7243 (exit $ac_status); } &&
7244 { ac_try
='test -z "$ac_c_werror_flag"
7245 || test ! -s conftest.err'
7246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7250 (exit $ac_status); }; } &&
7251 { ac_try
='test -s conftest.$ac_objext'
7252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7256 (exit $ac_status); }; }; then
7257 ac_hi
=$ac_mid; break
7259 echo "$as_me: failed program was:" >&5
7260 sed 's/^/| /' conftest.
$ac_ext >&5
7262 ac_lo
=`expr $ac_mid + 1`
7263 if test $ac_lo -le $ac_mid; then
7267 ac_mid
=`expr 2 '*' $ac_mid + 1`
7269 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7272 echo "$as_me: failed program was:" >&5
7273 sed 's/^/| /' conftest.
$ac_ext >&5
7275 cat >conftest.
$ac_ext <<_ACEOF
7278 cat confdefs.h
>>conftest.
$ac_ext
7279 cat >>conftest.
$ac_ext <<_ACEOF
7280 /* end confdefs.h. */
7281 $ac_includes_default
7285 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
7292 rm -f conftest.
$ac_objext
7293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7294 (eval $ac_compile) 2>conftest.er1
7296 grep -v '^ *+' conftest.er1
>conftest.err
7298 cat conftest.err
>&5
7299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7300 (exit $ac_status); } &&
7301 { ac_try
='test -z "$ac_c_werror_flag"
7302 || test ! -s conftest.err'
7303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7307 (exit $ac_status); }; } &&
7308 { ac_try
='test -s conftest.$ac_objext'
7309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7313 (exit $ac_status); }; }; then
7316 cat >conftest.
$ac_ext <<_ACEOF
7319 cat confdefs.h
>>conftest.
$ac_ext
7320 cat >>conftest.
$ac_ext <<_ACEOF
7321 /* end confdefs.h. */
7322 $ac_includes_default
7326 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
7333 rm -f conftest.
$ac_objext
7334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7335 (eval $ac_compile) 2>conftest.er1
7337 grep -v '^ *+' conftest.er1
>conftest.err
7339 cat conftest.err
>&5
7340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7341 (exit $ac_status); } &&
7342 { ac_try
='test -z "$ac_c_werror_flag"
7343 || test ! -s conftest.err'
7344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7348 (exit $ac_status); }; } &&
7349 { ac_try
='test -s conftest.$ac_objext'
7350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7354 (exit $ac_status); }; }; then
7355 ac_lo
=$ac_mid; break
7357 echo "$as_me: failed program was:" >&5
7358 sed 's/^/| /' conftest.
$ac_ext >&5
7360 ac_hi
=`expr '(' $ac_mid ')' - 1`
7361 if test $ac_mid -le $ac_hi; then
7365 ac_mid
=`expr 2 '*' $ac_mid`
7367 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7370 echo "$as_me: failed program was:" >&5
7371 sed 's/^/| /' conftest.
$ac_ext >&5
7375 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7377 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7378 # Binary search between lo and hi bounds.
7379 while test "x$ac_lo" != "x$ac_hi"; do
7380 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7381 cat >conftest.
$ac_ext <<_ACEOF
7384 cat confdefs.h
>>conftest.
$ac_ext
7385 cat >>conftest.
$ac_ext <<_ACEOF
7386 /* end confdefs.h. */
7387 $ac_includes_default
7391 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
7398 rm -f conftest.
$ac_objext
7399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7400 (eval $ac_compile) 2>conftest.er1
7402 grep -v '^ *+' conftest.er1
>conftest.err
7404 cat conftest.err
>&5
7405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7406 (exit $ac_status); } &&
7407 { ac_try
='test -z "$ac_c_werror_flag"
7408 || test ! -s conftest.err'
7409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7413 (exit $ac_status); }; } &&
7414 { ac_try
='test -s conftest.$ac_objext'
7415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7419 (exit $ac_status); }; }; then
7422 echo "$as_me: failed program was:" >&5
7423 sed 's/^/| /' conftest.
$ac_ext >&5
7425 ac_lo
=`expr '(' $ac_mid ')' + 1`
7427 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7430 ?
*) ac_cv_sizeof_void_p
=$ac_lo;;
7431 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
7432 See \`config.log' for more details." >&5
7433 echo "$as_me: error: cannot compute sizeof (void *), 77
7434 See \`config.log' for more details." >&2;}
7435 { (exit 1); exit 1; }; } ;;
7438 if test "$cross_compiling" = yes; then
7439 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7440 See \`config.log' for more details." >&5
7441 echo "$as_me: error: cannot run test program while cross compiling
7442 See \`config.log' for more details." >&2;}
7443 { (exit 1); exit 1; }; }
7445 cat >conftest.
$ac_ext <<_ACEOF
7448 cat confdefs.h
>>conftest.
$ac_ext
7449 cat >>conftest.
$ac_ext <<_ACEOF
7450 /* end confdefs.h. */
7451 $ac_includes_default
7452 long longval () { return (long) (sizeof (void *)); }
7453 unsigned long ulongval () { return (long) (sizeof (void *)); }
7460 FILE *f = fopen ("conftest.val", "w");
7463 if (((long) (sizeof (void *))) < 0)
7465 long i = longval ();
7466 if (i != ((long) (sizeof (void *))))
7468 fprintf (f, "%ld\n", i);
7472 unsigned long i = ulongval ();
7473 if (i != ((long) (sizeof (void *))))
7475 fprintf (f, "%lu\n", i);
7477 exit (ferror (f) || fclose (f) != 0);
7483 rm -f conftest
$ac_exeext
7484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7485 (eval $ac_link) 2>&5
7487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7488 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7493 (exit $ac_status); }; }; then
7494 ac_cv_sizeof_void_p
=`cat conftest.val`
7496 echo "$as_me: program exited with status $ac_status" >&5
7497 echo "$as_me: failed program was:" >&5
7498 sed 's/^/| /' conftest.
$ac_ext >&5
7501 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
7502 See \`config.log' for more details." >&5
7503 echo "$as_me: error: cannot compute sizeof (void *), 77
7504 See \`config.log' for more details." >&2;}
7505 { (exit 1); exit 1; }; }
7507 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7512 ac_cv_sizeof_void_p
=0
7515 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
7516 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
7517 cat >>confdefs.h
<<_ACEOF
7518 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
7522 echo "$as_me:$LINENO: checking for short" >&5
7523 echo $ECHO_N "checking for short... $ECHO_C" >&6
7524 if test "${ac_cv_type_short+set}" = set; then
7525 echo $ECHO_N "(cached) $ECHO_C" >&6
7527 cat >conftest.
$ac_ext <<_ACEOF
7530 cat confdefs.h
>>conftest.
$ac_ext
7531 cat >>conftest.
$ac_ext <<_ACEOF
7532 /* end confdefs.h. */
7533 $ac_includes_default
7545 rm -f conftest.
$ac_objext
7546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7547 (eval $ac_compile) 2>conftest.er1
7549 grep -v '^ *+' conftest.er1
>conftest.err
7551 cat conftest.err
>&5
7552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7553 (exit $ac_status); } &&
7554 { ac_try
='test -z "$ac_c_werror_flag"
7555 || test ! -s conftest.err'
7556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7560 (exit $ac_status); }; } &&
7561 { ac_try
='test -s conftest.$ac_objext'
7562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7566 (exit $ac_status); }; }; then
7567 ac_cv_type_short
=yes
7569 echo "$as_me: failed program was:" >&5
7570 sed 's/^/| /' conftest.
$ac_ext >&5
7574 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7576 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
7577 echo "${ECHO_T}$ac_cv_type_short" >&6
7579 echo "$as_me:$LINENO: checking size of short" >&5
7580 echo $ECHO_N "checking size of short... $ECHO_C" >&6
7581 if test "${ac_cv_sizeof_short+set}" = set; then
7582 echo $ECHO_N "(cached) $ECHO_C" >&6
7584 if test "$ac_cv_type_short" = yes; then
7585 # The cast to unsigned long works around a bug in the HP C Compiler
7586 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7587 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7588 # This bug is HP SR number 8606223364.
7589 if test "$cross_compiling" = yes; then
7590 # Depending upon the size, compute the lo and hi bounds.
7591 cat >conftest.
$ac_ext <<_ACEOF
7594 cat confdefs.h
>>conftest.
$ac_ext
7595 cat >>conftest.
$ac_ext <<_ACEOF
7596 /* end confdefs.h. */
7597 $ac_includes_default
7601 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
7608 rm -f conftest.
$ac_objext
7609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7610 (eval $ac_compile) 2>conftest.er1
7612 grep -v '^ *+' conftest.er1
>conftest.err
7614 cat conftest.err
>&5
7615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7616 (exit $ac_status); } &&
7617 { ac_try
='test -z "$ac_c_werror_flag"
7618 || test ! -s conftest.err'
7619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7623 (exit $ac_status); }; } &&
7624 { ac_try
='test -s conftest.$ac_objext'
7625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7629 (exit $ac_status); }; }; then
7632 cat >conftest.
$ac_ext <<_ACEOF
7635 cat confdefs.h
>>conftest.
$ac_ext
7636 cat >>conftest.
$ac_ext <<_ACEOF
7637 /* end confdefs.h. */
7638 $ac_includes_default
7642 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7649 rm -f conftest.
$ac_objext
7650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7651 (eval $ac_compile) 2>conftest.er1
7653 grep -v '^ *+' conftest.er1
>conftest.err
7655 cat conftest.err
>&5
7656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7657 (exit $ac_status); } &&
7658 { ac_try
='test -z "$ac_c_werror_flag"
7659 || test ! -s conftest.err'
7660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7664 (exit $ac_status); }; } &&
7665 { ac_try
='test -s conftest.$ac_objext'
7666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7670 (exit $ac_status); }; }; then
7671 ac_hi
=$ac_mid; break
7673 echo "$as_me: failed program was:" >&5
7674 sed 's/^/| /' conftest.
$ac_ext >&5
7676 ac_lo
=`expr $ac_mid + 1`
7677 if test $ac_lo -le $ac_mid; then
7681 ac_mid
=`expr 2 '*' $ac_mid + 1`
7683 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7686 echo "$as_me: failed program was:" >&5
7687 sed 's/^/| /' conftest.
$ac_ext >&5
7689 cat >conftest.
$ac_ext <<_ACEOF
7692 cat confdefs.h
>>conftest.
$ac_ext
7693 cat >>conftest.
$ac_ext <<_ACEOF
7694 /* end confdefs.h. */
7695 $ac_includes_default
7699 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
7706 rm -f conftest.
$ac_objext
7707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7708 (eval $ac_compile) 2>conftest.er1
7710 grep -v '^ *+' conftest.er1
>conftest.err
7712 cat conftest.err
>&5
7713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7714 (exit $ac_status); } &&
7715 { ac_try
='test -z "$ac_c_werror_flag"
7716 || test ! -s conftest.err'
7717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7721 (exit $ac_status); }; } &&
7722 { ac_try
='test -s conftest.$ac_objext'
7723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7727 (exit $ac_status); }; }; then
7730 cat >conftest.
$ac_ext <<_ACEOF
7733 cat confdefs.h
>>conftest.
$ac_ext
7734 cat >>conftest.
$ac_ext <<_ACEOF
7735 /* end confdefs.h. */
7736 $ac_includes_default
7740 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
7747 rm -f conftest.
$ac_objext
7748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7749 (eval $ac_compile) 2>conftest.er1
7751 grep -v '^ *+' conftest.er1
>conftest.err
7753 cat conftest.err
>&5
7754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7755 (exit $ac_status); } &&
7756 { ac_try
='test -z "$ac_c_werror_flag"
7757 || test ! -s conftest.err'
7758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7762 (exit $ac_status); }; } &&
7763 { ac_try
='test -s conftest.$ac_objext'
7764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7768 (exit $ac_status); }; }; then
7769 ac_lo
=$ac_mid; break
7771 echo "$as_me: failed program was:" >&5
7772 sed 's/^/| /' conftest.
$ac_ext >&5
7774 ac_hi
=`expr '(' $ac_mid ')' - 1`
7775 if test $ac_mid -le $ac_hi; then
7779 ac_mid
=`expr 2 '*' $ac_mid`
7781 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7784 echo "$as_me: failed program was:" >&5
7785 sed 's/^/| /' conftest.
$ac_ext >&5
7789 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7791 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7792 # Binary search between lo and hi bounds.
7793 while test "x$ac_lo" != "x$ac_hi"; do
7794 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7795 cat >conftest.
$ac_ext <<_ACEOF
7798 cat confdefs.h
>>conftest.
$ac_ext
7799 cat >>conftest.
$ac_ext <<_ACEOF
7800 /* end confdefs.h. */
7801 $ac_includes_default
7805 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7812 rm -f conftest.
$ac_objext
7813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7814 (eval $ac_compile) 2>conftest.er1
7816 grep -v '^ *+' conftest.er1
>conftest.err
7818 cat conftest.err
>&5
7819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7820 (exit $ac_status); } &&
7821 { ac_try
='test -z "$ac_c_werror_flag"
7822 || test ! -s conftest.err'
7823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7827 (exit $ac_status); }; } &&
7828 { ac_try
='test -s conftest.$ac_objext'
7829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7833 (exit $ac_status); }; }; then
7836 echo "$as_me: failed program was:" >&5
7837 sed 's/^/| /' conftest.
$ac_ext >&5
7839 ac_lo
=`expr '(' $ac_mid ')' + 1`
7841 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7844 ?
*) ac_cv_sizeof_short
=$ac_lo;;
7845 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7846 See \`config.log' for more details." >&5
7847 echo "$as_me: error: cannot compute sizeof (short), 77
7848 See \`config.log' for more details." >&2;}
7849 { (exit 1); exit 1; }; } ;;
7852 if test "$cross_compiling" = yes; then
7853 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7854 See \`config.log' for more details." >&5
7855 echo "$as_me: error: cannot run test program while cross compiling
7856 See \`config.log' for more details." >&2;}
7857 { (exit 1); exit 1; }; }
7859 cat >conftest.
$ac_ext <<_ACEOF
7862 cat confdefs.h
>>conftest.
$ac_ext
7863 cat >>conftest.
$ac_ext <<_ACEOF
7864 /* end confdefs.h. */
7865 $ac_includes_default
7866 long longval () { return (long) (sizeof (short)); }
7867 unsigned long ulongval () { return (long) (sizeof (short)); }
7874 FILE *f = fopen ("conftest.val", "w");
7877 if (((long) (sizeof (short))) < 0)
7879 long i = longval ();
7880 if (i != ((long) (sizeof (short))))
7882 fprintf (f, "%ld\n", i);
7886 unsigned long i = ulongval ();
7887 if (i != ((long) (sizeof (short))))
7889 fprintf (f, "%lu\n", i);
7891 exit (ferror (f) || fclose (f) != 0);
7897 rm -f conftest
$ac_exeext
7898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7899 (eval $ac_link) 2>&5
7901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7902 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7907 (exit $ac_status); }; }; then
7908 ac_cv_sizeof_short
=`cat conftest.val`
7910 echo "$as_me: program exited with status $ac_status" >&5
7911 echo "$as_me: failed program was:" >&5
7912 sed 's/^/| /' conftest.
$ac_ext >&5
7915 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7916 See \`config.log' for more details." >&5
7917 echo "$as_me: error: cannot compute sizeof (short), 77
7918 See \`config.log' for more details." >&2;}
7919 { (exit 1); exit 1; }; }
7921 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7926 ac_cv_sizeof_short
=0
7929 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
7930 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
7931 cat >>confdefs.h
<<_ACEOF
7932 #define SIZEOF_SHORT $ac_cv_sizeof_short
7936 echo "$as_me:$LINENO: checking for float" >&5
7937 echo $ECHO_N "checking for float... $ECHO_C" >&6
7938 if test "${ac_cv_type_float+set}" = set; then
7939 echo $ECHO_N "(cached) $ECHO_C" >&6
7941 cat >conftest.
$ac_ext <<_ACEOF
7944 cat confdefs.h
>>conftest.
$ac_ext
7945 cat >>conftest.
$ac_ext <<_ACEOF
7946 /* end confdefs.h. */
7947 $ac_includes_default
7959 rm -f conftest.
$ac_objext
7960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7961 (eval $ac_compile) 2>conftest.er1
7963 grep -v '^ *+' conftest.er1
>conftest.err
7965 cat conftest.err
>&5
7966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7967 (exit $ac_status); } &&
7968 { ac_try
='test -z "$ac_c_werror_flag"
7969 || test ! -s conftest.err'
7970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7974 (exit $ac_status); }; } &&
7975 { ac_try
='test -s conftest.$ac_objext'
7976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7980 (exit $ac_status); }; }; then
7981 ac_cv_type_float
=yes
7983 echo "$as_me: failed program was:" >&5
7984 sed 's/^/| /' conftest.
$ac_ext >&5
7988 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7990 echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
7991 echo "${ECHO_T}$ac_cv_type_float" >&6
7993 echo "$as_me:$LINENO: checking size of float" >&5
7994 echo $ECHO_N "checking size of float... $ECHO_C" >&6
7995 if test "${ac_cv_sizeof_float+set}" = set; then
7996 echo $ECHO_N "(cached) $ECHO_C" >&6
7998 if test "$ac_cv_type_float" = yes; then
7999 # The cast to unsigned long works around a bug in the HP C Compiler
8000 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8001 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8002 # This bug is HP SR number 8606223364.
8003 if test "$cross_compiling" = yes; then
8004 # Depending upon the size, compute the lo and hi bounds.
8005 cat >conftest.
$ac_ext <<_ACEOF
8008 cat confdefs.h
>>conftest.
$ac_ext
8009 cat >>conftest.
$ac_ext <<_ACEOF
8010 /* end confdefs.h. */
8011 $ac_includes_default
8015 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)];
8022 rm -f conftest.
$ac_objext
8023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8024 (eval $ac_compile) 2>conftest.er1
8026 grep -v '^ *+' conftest.er1
>conftest.err
8028 cat conftest.err
>&5
8029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8030 (exit $ac_status); } &&
8031 { ac_try
='test -z "$ac_c_werror_flag"
8032 || test ! -s conftest.err'
8033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8037 (exit $ac_status); }; } &&
8038 { ac_try
='test -s conftest.$ac_objext'
8039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8043 (exit $ac_status); }; }; then
8046 cat >conftest.
$ac_ext <<_ACEOF
8049 cat confdefs.h
>>conftest.
$ac_ext
8050 cat >>conftest.
$ac_ext <<_ACEOF
8051 /* end confdefs.h. */
8052 $ac_includes_default
8056 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
8063 rm -f conftest.
$ac_objext
8064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8065 (eval $ac_compile) 2>conftest.er1
8067 grep -v '^ *+' conftest.er1
>conftest.err
8069 cat conftest.err
>&5
8070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8071 (exit $ac_status); } &&
8072 { ac_try
='test -z "$ac_c_werror_flag"
8073 || test ! -s conftest.err'
8074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8078 (exit $ac_status); }; } &&
8079 { ac_try
='test -s conftest.$ac_objext'
8080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8084 (exit $ac_status); }; }; then
8085 ac_hi
=$ac_mid; break
8087 echo "$as_me: failed program was:" >&5
8088 sed 's/^/| /' conftest.
$ac_ext >&5
8090 ac_lo
=`expr $ac_mid + 1`
8091 if test $ac_lo -le $ac_mid; then
8095 ac_mid
=`expr 2 '*' $ac_mid + 1`
8097 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8100 echo "$as_me: failed program was:" >&5
8101 sed 's/^/| /' conftest.
$ac_ext >&5
8103 cat >conftest.
$ac_ext <<_ACEOF
8106 cat confdefs.h
>>conftest.
$ac_ext
8107 cat >>conftest.
$ac_ext <<_ACEOF
8108 /* end confdefs.h. */
8109 $ac_includes_default
8113 static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)];
8120 rm -f conftest.
$ac_objext
8121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8122 (eval $ac_compile) 2>conftest.er1
8124 grep -v '^ *+' conftest.er1
>conftest.err
8126 cat conftest.err
>&5
8127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8128 (exit $ac_status); } &&
8129 { ac_try
='test -z "$ac_c_werror_flag"
8130 || test ! -s conftest.err'
8131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8135 (exit $ac_status); }; } &&
8136 { ac_try
='test -s conftest.$ac_objext'
8137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8141 (exit $ac_status); }; }; then
8144 cat >conftest.
$ac_ext <<_ACEOF
8147 cat confdefs.h
>>conftest.
$ac_ext
8148 cat >>conftest.
$ac_ext <<_ACEOF
8149 /* end confdefs.h. */
8150 $ac_includes_default
8154 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)];
8161 rm -f conftest.
$ac_objext
8162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8163 (eval $ac_compile) 2>conftest.er1
8165 grep -v '^ *+' conftest.er1
>conftest.err
8167 cat conftest.err
>&5
8168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8169 (exit $ac_status); } &&
8170 { ac_try
='test -z "$ac_c_werror_flag"
8171 || test ! -s conftest.err'
8172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8176 (exit $ac_status); }; } &&
8177 { ac_try
='test -s conftest.$ac_objext'
8178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8182 (exit $ac_status); }; }; then
8183 ac_lo
=$ac_mid; break
8185 echo "$as_me: failed program was:" >&5
8186 sed 's/^/| /' conftest.
$ac_ext >&5
8188 ac_hi
=`expr '(' $ac_mid ')' - 1`
8189 if test $ac_mid -le $ac_hi; then
8193 ac_mid
=`expr 2 '*' $ac_mid`
8195 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8198 echo "$as_me: failed program was:" >&5
8199 sed 's/^/| /' conftest.
$ac_ext >&5
8203 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8205 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8206 # Binary search between lo and hi bounds.
8207 while test "x$ac_lo" != "x$ac_hi"; do
8208 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8209 cat >conftest.
$ac_ext <<_ACEOF
8212 cat confdefs.h
>>conftest.
$ac_ext
8213 cat >>conftest.
$ac_ext <<_ACEOF
8214 /* end confdefs.h. */
8215 $ac_includes_default
8219 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
8226 rm -f conftest.
$ac_objext
8227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8228 (eval $ac_compile) 2>conftest.er1
8230 grep -v '^ *+' conftest.er1
>conftest.err
8232 cat conftest.err
>&5
8233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8234 (exit $ac_status); } &&
8235 { ac_try
='test -z "$ac_c_werror_flag"
8236 || test ! -s conftest.err'
8237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8241 (exit $ac_status); }; } &&
8242 { ac_try
='test -s conftest.$ac_objext'
8243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8247 (exit $ac_status); }; }; then
8250 echo "$as_me: failed program was:" >&5
8251 sed 's/^/| /' conftest.
$ac_ext >&5
8253 ac_lo
=`expr '(' $ac_mid ')' + 1`
8255 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8258 ?
*) ac_cv_sizeof_float
=$ac_lo;;
8259 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
8260 See \`config.log' for more details." >&5
8261 echo "$as_me: error: cannot compute sizeof (float), 77
8262 See \`config.log' for more details." >&2;}
8263 { (exit 1); exit 1; }; } ;;
8266 if test "$cross_compiling" = yes; then
8267 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8268 See \`config.log' for more details." >&5
8269 echo "$as_me: error: cannot run test program while cross compiling
8270 See \`config.log' for more details." >&2;}
8271 { (exit 1); exit 1; }; }
8273 cat >conftest.
$ac_ext <<_ACEOF
8276 cat confdefs.h
>>conftest.
$ac_ext
8277 cat >>conftest.
$ac_ext <<_ACEOF
8278 /* end confdefs.h. */
8279 $ac_includes_default
8280 long longval () { return (long) (sizeof (float)); }
8281 unsigned long ulongval () { return (long) (sizeof (float)); }
8288 FILE *f = fopen ("conftest.val", "w");
8291 if (((long) (sizeof (float))) < 0)
8293 long i = longval ();
8294 if (i != ((long) (sizeof (float))))
8296 fprintf (f, "%ld\n", i);
8300 unsigned long i = ulongval ();
8301 if (i != ((long) (sizeof (float))))
8303 fprintf (f, "%lu\n", i);
8305 exit (ferror (f) || fclose (f) != 0);
8311 rm -f conftest
$ac_exeext
8312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8313 (eval $ac_link) 2>&5
8315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8316 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8321 (exit $ac_status); }; }; then
8322 ac_cv_sizeof_float
=`cat conftest.val`
8324 echo "$as_me: program exited with status $ac_status" >&5
8325 echo "$as_me: failed program was:" >&5
8326 sed 's/^/| /' conftest.
$ac_ext >&5
8329 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
8330 See \`config.log' for more details." >&5
8331 echo "$as_me: error: cannot compute sizeof (float), 77
8332 See \`config.log' for more details." >&2;}
8333 { (exit 1); exit 1; }; }
8335 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8340 ac_cv_sizeof_float
=0
8343 echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
8344 echo "${ECHO_T}$ac_cv_sizeof_float" >&6
8345 cat >>confdefs.h
<<_ACEOF
8346 #define SIZEOF_FLOAT $ac_cv_sizeof_float
8350 echo "$as_me:$LINENO: checking for double" >&5
8351 echo $ECHO_N "checking for double... $ECHO_C" >&6
8352 if test "${ac_cv_type_double+set}" = set; then
8353 echo $ECHO_N "(cached) $ECHO_C" >&6
8355 cat >conftest.
$ac_ext <<_ACEOF
8358 cat confdefs.h
>>conftest.
$ac_ext
8359 cat >>conftest.
$ac_ext <<_ACEOF
8360 /* end confdefs.h. */
8361 $ac_includes_default
8367 if (sizeof (double))
8373 rm -f conftest.
$ac_objext
8374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8375 (eval $ac_compile) 2>conftest.er1
8377 grep -v '^ *+' conftest.er1
>conftest.err
8379 cat conftest.err
>&5
8380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8381 (exit $ac_status); } &&
8382 { ac_try
='test -z "$ac_c_werror_flag"
8383 || test ! -s conftest.err'
8384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8388 (exit $ac_status); }; } &&
8389 { ac_try
='test -s conftest.$ac_objext'
8390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8394 (exit $ac_status); }; }; then
8395 ac_cv_type_double
=yes
8397 echo "$as_me: failed program was:" >&5
8398 sed 's/^/| /' conftest.
$ac_ext >&5
8400 ac_cv_type_double
=no
8402 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8404 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
8405 echo "${ECHO_T}$ac_cv_type_double" >&6
8407 echo "$as_me:$LINENO: checking size of double" >&5
8408 echo $ECHO_N "checking size of double... $ECHO_C" >&6
8409 if test "${ac_cv_sizeof_double+set}" = set; then
8410 echo $ECHO_N "(cached) $ECHO_C" >&6
8412 if test "$ac_cv_type_double" = yes; then
8413 # The cast to unsigned long works around a bug in the HP C Compiler
8414 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8415 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8416 # This bug is HP SR number 8606223364.
8417 if test "$cross_compiling" = yes; then
8418 # Depending upon the size, compute the lo and hi bounds.
8419 cat >conftest.
$ac_ext <<_ACEOF
8422 cat confdefs.h
>>conftest.
$ac_ext
8423 cat >>conftest.
$ac_ext <<_ACEOF
8424 /* end confdefs.h. */
8425 $ac_includes_default
8429 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
8436 rm -f conftest.
$ac_objext
8437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8438 (eval $ac_compile) 2>conftest.er1
8440 grep -v '^ *+' conftest.er1
>conftest.err
8442 cat conftest.err
>&5
8443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8444 (exit $ac_status); } &&
8445 { ac_try
='test -z "$ac_c_werror_flag"
8446 || test ! -s conftest.err'
8447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8451 (exit $ac_status); }; } &&
8452 { ac_try
='test -s conftest.$ac_objext'
8453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457 (exit $ac_status); }; }; then
8460 cat >conftest.
$ac_ext <<_ACEOF
8463 cat confdefs.h
>>conftest.
$ac_ext
8464 cat >>conftest.
$ac_ext <<_ACEOF
8465 /* end confdefs.h. */
8466 $ac_includes_default
8470 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
8477 rm -f conftest.
$ac_objext
8478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8479 (eval $ac_compile) 2>conftest.er1
8481 grep -v '^ *+' conftest.er1
>conftest.err
8483 cat conftest.err
>&5
8484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485 (exit $ac_status); } &&
8486 { ac_try
='test -z "$ac_c_werror_flag"
8487 || test ! -s conftest.err'
8488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8492 (exit $ac_status); }; } &&
8493 { ac_try
='test -s conftest.$ac_objext'
8494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8498 (exit $ac_status); }; }; then
8499 ac_hi
=$ac_mid; break
8501 echo "$as_me: failed program was:" >&5
8502 sed 's/^/| /' conftest.
$ac_ext >&5
8504 ac_lo
=`expr $ac_mid + 1`
8505 if test $ac_lo -le $ac_mid; then
8509 ac_mid
=`expr 2 '*' $ac_mid + 1`
8511 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8514 echo "$as_me: failed program was:" >&5
8515 sed 's/^/| /' conftest.
$ac_ext >&5
8517 cat >conftest.
$ac_ext <<_ACEOF
8520 cat confdefs.h
>>conftest.
$ac_ext
8521 cat >>conftest.
$ac_ext <<_ACEOF
8522 /* end confdefs.h. */
8523 $ac_includes_default
8527 static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
8534 rm -f conftest.
$ac_objext
8535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8536 (eval $ac_compile) 2>conftest.er1
8538 grep -v '^ *+' conftest.er1
>conftest.err
8540 cat conftest.err
>&5
8541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542 (exit $ac_status); } &&
8543 { ac_try
='test -z "$ac_c_werror_flag"
8544 || test ! -s conftest.err'
8545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8549 (exit $ac_status); }; } &&
8550 { ac_try
='test -s conftest.$ac_objext'
8551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8555 (exit $ac_status); }; }; then
8558 cat >conftest.
$ac_ext <<_ACEOF
8561 cat confdefs.h
>>conftest.
$ac_ext
8562 cat >>conftest.
$ac_ext <<_ACEOF
8563 /* end confdefs.h. */
8564 $ac_includes_default
8568 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
8575 rm -f conftest.
$ac_objext
8576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8577 (eval $ac_compile) 2>conftest.er1
8579 grep -v '^ *+' conftest.er1
>conftest.err
8581 cat conftest.err
>&5
8582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8583 (exit $ac_status); } &&
8584 { ac_try
='test -z "$ac_c_werror_flag"
8585 || test ! -s conftest.err'
8586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8590 (exit $ac_status); }; } &&
8591 { ac_try
='test -s conftest.$ac_objext'
8592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8596 (exit $ac_status); }; }; then
8597 ac_lo
=$ac_mid; break
8599 echo "$as_me: failed program was:" >&5
8600 sed 's/^/| /' conftest.
$ac_ext >&5
8602 ac_hi
=`expr '(' $ac_mid ')' - 1`
8603 if test $ac_mid -le $ac_hi; then
8607 ac_mid
=`expr 2 '*' $ac_mid`
8609 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8612 echo "$as_me: failed program was:" >&5
8613 sed 's/^/| /' conftest.
$ac_ext >&5
8617 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8619 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8620 # Binary search between lo and hi bounds.
8621 while test "x$ac_lo" != "x$ac_hi"; do
8622 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8623 cat >conftest.
$ac_ext <<_ACEOF
8626 cat confdefs.h
>>conftest.
$ac_ext
8627 cat >>conftest.
$ac_ext <<_ACEOF
8628 /* end confdefs.h. */
8629 $ac_includes_default
8633 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
8640 rm -f conftest.
$ac_objext
8641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8642 (eval $ac_compile) 2>conftest.er1
8644 grep -v '^ *+' conftest.er1
>conftest.err
8646 cat conftest.err
>&5
8647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8648 (exit $ac_status); } &&
8649 { ac_try
='test -z "$ac_c_werror_flag"
8650 || test ! -s conftest.err'
8651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8655 (exit $ac_status); }; } &&
8656 { ac_try
='test -s conftest.$ac_objext'
8657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8661 (exit $ac_status); }; }; then
8664 echo "$as_me: failed program was:" >&5
8665 sed 's/^/| /' conftest.
$ac_ext >&5
8667 ac_lo
=`expr '(' $ac_mid ')' + 1`
8669 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8672 ?
*) ac_cv_sizeof_double
=$ac_lo;;
8673 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
8674 See \`config.log' for more details." >&5
8675 echo "$as_me: error: cannot compute sizeof (double), 77
8676 See \`config.log' for more details." >&2;}
8677 { (exit 1); exit 1; }; } ;;
8680 if test "$cross_compiling" = yes; then
8681 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8682 See \`config.log' for more details." >&5
8683 echo "$as_me: error: cannot run test program while cross compiling
8684 See \`config.log' for more details." >&2;}
8685 { (exit 1); exit 1; }; }
8687 cat >conftest.
$ac_ext <<_ACEOF
8690 cat confdefs.h
>>conftest.
$ac_ext
8691 cat >>conftest.
$ac_ext <<_ACEOF
8692 /* end confdefs.h. */
8693 $ac_includes_default
8694 long longval () { return (long) (sizeof (double)); }
8695 unsigned long ulongval () { return (long) (sizeof (double)); }
8702 FILE *f = fopen ("conftest.val", "w");
8705 if (((long) (sizeof (double))) < 0)
8707 long i = longval ();
8708 if (i != ((long) (sizeof (double))))
8710 fprintf (f, "%ld\n", i);
8714 unsigned long i = ulongval ();
8715 if (i != ((long) (sizeof (double))))
8717 fprintf (f, "%lu\n", i);
8719 exit (ferror (f) || fclose (f) != 0);
8725 rm -f conftest
$ac_exeext
8726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8727 (eval $ac_link) 2>&5
8729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8730 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8735 (exit $ac_status); }; }; then
8736 ac_cv_sizeof_double
=`cat conftest.val`
8738 echo "$as_me: program exited with status $ac_status" >&5
8739 echo "$as_me: failed program was:" >&5
8740 sed 's/^/| /' conftest.
$ac_ext >&5
8743 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
8744 See \`config.log' for more details." >&5
8745 echo "$as_me: error: cannot compute sizeof (double), 77
8746 See \`config.log' for more details." >&2;}
8747 { (exit 1); exit 1; }; }
8749 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8754 ac_cv_sizeof_double
=0
8757 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
8758 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
8759 cat >>confdefs.h
<<_ACEOF
8760 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
8764 echo "$as_me:$LINENO: checking for fpos_t" >&5
8765 echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6
8766 if test "${ac_cv_type_fpos_t+set}" = set; then
8767 echo $ECHO_N "(cached) $ECHO_C" >&6
8769 cat >conftest.
$ac_ext <<_ACEOF
8772 cat confdefs.h
>>conftest.
$ac_ext
8773 cat >>conftest.
$ac_ext <<_ACEOF
8774 /* end confdefs.h. */
8775 $ac_includes_default
8781 if (sizeof (fpos_t))
8787 rm -f conftest.
$ac_objext
8788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8789 (eval $ac_compile) 2>conftest.er1
8791 grep -v '^ *+' conftest.er1
>conftest.err
8793 cat conftest.err
>&5
8794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8795 (exit $ac_status); } &&
8796 { ac_try
='test -z "$ac_c_werror_flag"
8797 || test ! -s conftest.err'
8798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8802 (exit $ac_status); }; } &&
8803 { ac_try
='test -s conftest.$ac_objext'
8804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8808 (exit $ac_status); }; }; then
8809 ac_cv_type_fpos_t
=yes
8811 echo "$as_me: failed program was:" >&5
8812 sed 's/^/| /' conftest.
$ac_ext >&5
8814 ac_cv_type_fpos_t
=no
8816 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8818 echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
8819 echo "${ECHO_T}$ac_cv_type_fpos_t" >&6
8821 echo "$as_me:$LINENO: checking size of fpos_t" >&5
8822 echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6
8823 if test "${ac_cv_sizeof_fpos_t+set}" = set; then
8824 echo $ECHO_N "(cached) $ECHO_C" >&6
8826 if test "$ac_cv_type_fpos_t" = yes; then
8827 # The cast to unsigned long works around a bug in the HP C Compiler
8828 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8829 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8830 # This bug is HP SR number 8606223364.
8831 if test "$cross_compiling" = yes; then
8832 # Depending upon the size, compute the lo and hi bounds.
8833 cat >conftest.
$ac_ext <<_ACEOF
8836 cat confdefs.h
>>conftest.
$ac_ext
8837 cat >>conftest.
$ac_ext <<_ACEOF
8838 /* end confdefs.h. */
8839 $ac_includes_default
8843 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= 0)];
8850 rm -f conftest.
$ac_objext
8851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8852 (eval $ac_compile) 2>conftest.er1
8854 grep -v '^ *+' conftest.er1
>conftest.err
8856 cat conftest.err
>&5
8857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858 (exit $ac_status); } &&
8859 { ac_try
='test -z "$ac_c_werror_flag"
8860 || test ! -s conftest.err'
8861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8865 (exit $ac_status); }; } &&
8866 { ac_try
='test -s conftest.$ac_objext'
8867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8871 (exit $ac_status); }; }; then
8874 cat >conftest.
$ac_ext <<_ACEOF
8877 cat confdefs.h
>>conftest.
$ac_ext
8878 cat >>conftest.
$ac_ext <<_ACEOF
8879 /* end confdefs.h. */
8880 $ac_includes_default
8884 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)];
8891 rm -f conftest.
$ac_objext
8892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8893 (eval $ac_compile) 2>conftest.er1
8895 grep -v '^ *+' conftest.er1
>conftest.err
8897 cat conftest.err
>&5
8898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8899 (exit $ac_status); } &&
8900 { ac_try
='test -z "$ac_c_werror_flag"
8901 || test ! -s conftest.err'
8902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8906 (exit $ac_status); }; } &&
8907 { ac_try
='test -s conftest.$ac_objext'
8908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8912 (exit $ac_status); }; }; then
8913 ac_hi
=$ac_mid; break
8915 echo "$as_me: failed program was:" >&5
8916 sed 's/^/| /' conftest.
$ac_ext >&5
8918 ac_lo
=`expr $ac_mid + 1`
8919 if test $ac_lo -le $ac_mid; then
8923 ac_mid
=`expr 2 '*' $ac_mid + 1`
8925 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8928 echo "$as_me: failed program was:" >&5
8929 sed 's/^/| /' conftest.
$ac_ext >&5
8931 cat >conftest.
$ac_ext <<_ACEOF
8934 cat confdefs.h
>>conftest.
$ac_ext
8935 cat >>conftest.
$ac_ext <<_ACEOF
8936 /* end confdefs.h. */
8937 $ac_includes_default
8941 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) < 0)];
8948 rm -f conftest.
$ac_objext
8949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8950 (eval $ac_compile) 2>conftest.er1
8952 grep -v '^ *+' conftest.er1
>conftest.err
8954 cat conftest.err
>&5
8955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8956 (exit $ac_status); } &&
8957 { ac_try
='test -z "$ac_c_werror_flag"
8958 || test ! -s conftest.err'
8959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8963 (exit $ac_status); }; } &&
8964 { ac_try
='test -s conftest.$ac_objext'
8965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8969 (exit $ac_status); }; }; then
8972 cat >conftest.
$ac_ext <<_ACEOF
8975 cat confdefs.h
>>conftest.
$ac_ext
8976 cat >>conftest.
$ac_ext <<_ACEOF
8977 /* end confdefs.h. */
8978 $ac_includes_default
8982 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= $ac_mid)];
8989 rm -f conftest.
$ac_objext
8990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8991 (eval $ac_compile) 2>conftest.er1
8993 grep -v '^ *+' conftest.er1
>conftest.err
8995 cat conftest.err
>&5
8996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8997 (exit $ac_status); } &&
8998 { ac_try
='test -z "$ac_c_werror_flag"
8999 || test ! -s conftest.err'
9000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9004 (exit $ac_status); }; } &&
9005 { ac_try
='test -s conftest.$ac_objext'
9006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9010 (exit $ac_status); }; }; then
9011 ac_lo
=$ac_mid; break
9013 echo "$as_me: failed program was:" >&5
9014 sed 's/^/| /' conftest.
$ac_ext >&5
9016 ac_hi
=`expr '(' $ac_mid ')' - 1`
9017 if test $ac_mid -le $ac_hi; then
9021 ac_mid
=`expr 2 '*' $ac_mid`
9023 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9026 echo "$as_me: failed program was:" >&5
9027 sed 's/^/| /' conftest.
$ac_ext >&5
9031 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9033 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9034 # Binary search between lo and hi bounds.
9035 while test "x$ac_lo" != "x$ac_hi"; do
9036 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9037 cat >conftest.
$ac_ext <<_ACEOF
9040 cat confdefs.h
>>conftest.
$ac_ext
9041 cat >>conftest.
$ac_ext <<_ACEOF
9042 /* end confdefs.h. */
9043 $ac_includes_default
9047 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)];
9054 rm -f conftest.
$ac_objext
9055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9056 (eval $ac_compile) 2>conftest.er1
9058 grep -v '^ *+' conftest.er1
>conftest.err
9060 cat conftest.err
>&5
9061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9062 (exit $ac_status); } &&
9063 { ac_try
='test -z "$ac_c_werror_flag"
9064 || test ! -s conftest.err'
9065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9069 (exit $ac_status); }; } &&
9070 { ac_try
='test -s conftest.$ac_objext'
9071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9075 (exit $ac_status); }; }; then
9078 echo "$as_me: failed program was:" >&5
9079 sed 's/^/| /' conftest.
$ac_ext >&5
9081 ac_lo
=`expr '(' $ac_mid ')' + 1`
9083 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9086 ?
*) ac_cv_sizeof_fpos_t
=$ac_lo;;
9087 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77
9088 See \`config.log' for more details." >&5
9089 echo "$as_me: error: cannot compute sizeof (fpos_t), 77
9090 See \`config.log' for more details." >&2;}
9091 { (exit 1); exit 1; }; } ;;
9094 if test "$cross_compiling" = yes; then
9095 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9096 See \`config.log' for more details." >&5
9097 echo "$as_me: error: cannot run test program while cross compiling
9098 See \`config.log' for more details." >&2;}
9099 { (exit 1); exit 1; }; }
9101 cat >conftest.
$ac_ext <<_ACEOF
9104 cat confdefs.h
>>conftest.
$ac_ext
9105 cat >>conftest.
$ac_ext <<_ACEOF
9106 /* end confdefs.h. */
9107 $ac_includes_default
9108 long longval () { return (long) (sizeof (fpos_t)); }
9109 unsigned long ulongval () { return (long) (sizeof (fpos_t)); }
9116 FILE *f = fopen ("conftest.val", "w");
9119 if (((long) (sizeof (fpos_t))) < 0)
9121 long i = longval ();
9122 if (i != ((long) (sizeof (fpos_t))))
9124 fprintf (f, "%ld\n", i);
9128 unsigned long i = ulongval ();
9129 if (i != ((long) (sizeof (fpos_t))))
9131 fprintf (f, "%lu\n", i);
9133 exit (ferror (f) || fclose (f) != 0);
9139 rm -f conftest
$ac_exeext
9140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9141 (eval $ac_link) 2>&5
9143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9144 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9149 (exit $ac_status); }; }; then
9150 ac_cv_sizeof_fpos_t
=`cat conftest.val`
9152 echo "$as_me: program exited with status $ac_status" >&5
9153 echo "$as_me: failed program was:" >&5
9154 sed 's/^/| /' conftest.
$ac_ext >&5
9157 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77
9158 See \`config.log' for more details." >&5
9159 echo "$as_me: error: cannot compute sizeof (fpos_t), 77
9160 See \`config.log' for more details." >&2;}
9161 { (exit 1); exit 1; }; }
9163 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9168 ac_cv_sizeof_fpos_t
=0
9171 echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
9172 echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6
9173 cat >>confdefs.h
<<_ACEOF
9174 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
9178 echo "$as_me:$LINENO: checking for size_t" >&5
9179 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
9180 if test "${ac_cv_type_size_t+set}" = set; then
9181 echo $ECHO_N "(cached) $ECHO_C" >&6
9183 cat >conftest.
$ac_ext <<_ACEOF
9186 cat confdefs.h
>>conftest.
$ac_ext
9187 cat >>conftest.
$ac_ext <<_ACEOF
9188 /* end confdefs.h. */
9189 $ac_includes_default
9195 if (sizeof (size_t))
9201 rm -f conftest.
$ac_objext
9202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9203 (eval $ac_compile) 2>conftest.er1
9205 grep -v '^ *+' conftest.er1
>conftest.err
9207 cat conftest.err
>&5
9208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9209 (exit $ac_status); } &&
9210 { ac_try
='test -z "$ac_c_werror_flag"
9211 || test ! -s conftest.err'
9212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9216 (exit $ac_status); }; } &&
9217 { ac_try
='test -s conftest.$ac_objext'
9218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9222 (exit $ac_status); }; }; then
9223 ac_cv_type_size_t
=yes
9225 echo "$as_me: failed program was:" >&5
9226 sed 's/^/| /' conftest.
$ac_ext >&5
9228 ac_cv_type_size_t
=no
9230 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9232 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9233 echo "${ECHO_T}$ac_cv_type_size_t" >&6
9235 echo "$as_me:$LINENO: checking size of size_t" >&5
9236 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
9237 if test "${ac_cv_sizeof_size_t+set}" = set; then
9238 echo $ECHO_N "(cached) $ECHO_C" >&6
9240 if test "$ac_cv_type_size_t" = yes; then
9241 # The cast to unsigned long works around a bug in the HP C Compiler
9242 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9243 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9244 # This bug is HP SR number 8606223364.
9245 if test "$cross_compiling" = yes; then
9246 # Depending upon the size, compute the lo and hi bounds.
9247 cat >conftest.
$ac_ext <<_ACEOF
9250 cat confdefs.h
>>conftest.
$ac_ext
9251 cat >>conftest.
$ac_ext <<_ACEOF
9252 /* end confdefs.h. */
9253 $ac_includes_default
9257 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
9264 rm -f conftest.
$ac_objext
9265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9266 (eval $ac_compile) 2>conftest.er1
9268 grep -v '^ *+' conftest.er1
>conftest.err
9270 cat conftest.err
>&5
9271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9272 (exit $ac_status); } &&
9273 { ac_try
='test -z "$ac_c_werror_flag"
9274 || test ! -s conftest.err'
9275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9279 (exit $ac_status); }; } &&
9280 { ac_try
='test -s conftest.$ac_objext'
9281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9285 (exit $ac_status); }; }; then
9288 cat >conftest.
$ac_ext <<_ACEOF
9291 cat confdefs.h
>>conftest.
$ac_ext
9292 cat >>conftest.
$ac_ext <<_ACEOF
9293 /* end confdefs.h. */
9294 $ac_includes_default
9298 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
9305 rm -f conftest.
$ac_objext
9306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9307 (eval $ac_compile) 2>conftest.er1
9309 grep -v '^ *+' conftest.er1
>conftest.err
9311 cat conftest.err
>&5
9312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9313 (exit $ac_status); } &&
9314 { ac_try
='test -z "$ac_c_werror_flag"
9315 || test ! -s conftest.err'
9316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9320 (exit $ac_status); }; } &&
9321 { ac_try
='test -s conftest.$ac_objext'
9322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9326 (exit $ac_status); }; }; then
9327 ac_hi
=$ac_mid; break
9329 echo "$as_me: failed program was:" >&5
9330 sed 's/^/| /' conftest.
$ac_ext >&5
9332 ac_lo
=`expr $ac_mid + 1`
9333 if test $ac_lo -le $ac_mid; then
9337 ac_mid
=`expr 2 '*' $ac_mid + 1`
9339 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9342 echo "$as_me: failed program was:" >&5
9343 sed 's/^/| /' conftest.
$ac_ext >&5
9345 cat >conftest.
$ac_ext <<_ACEOF
9348 cat confdefs.h
>>conftest.
$ac_ext
9349 cat >>conftest.
$ac_ext <<_ACEOF
9350 /* end confdefs.h. */
9351 $ac_includes_default
9355 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
9362 rm -f conftest.
$ac_objext
9363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9364 (eval $ac_compile) 2>conftest.er1
9366 grep -v '^ *+' conftest.er1
>conftest.err
9368 cat conftest.err
>&5
9369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9370 (exit $ac_status); } &&
9371 { ac_try
='test -z "$ac_c_werror_flag"
9372 || test ! -s conftest.err'
9373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9377 (exit $ac_status); }; } &&
9378 { ac_try
='test -s conftest.$ac_objext'
9379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9383 (exit $ac_status); }; }; then
9386 cat >conftest.
$ac_ext <<_ACEOF
9389 cat confdefs.h
>>conftest.
$ac_ext
9390 cat >>conftest.
$ac_ext <<_ACEOF
9391 /* end confdefs.h. */
9392 $ac_includes_default
9396 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
9403 rm -f conftest.
$ac_objext
9404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9405 (eval $ac_compile) 2>conftest.er1
9407 grep -v '^ *+' conftest.er1
>conftest.err
9409 cat conftest.err
>&5
9410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9411 (exit $ac_status); } &&
9412 { ac_try
='test -z "$ac_c_werror_flag"
9413 || test ! -s conftest.err'
9414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9418 (exit $ac_status); }; } &&
9419 { ac_try
='test -s conftest.$ac_objext'
9420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9424 (exit $ac_status); }; }; then
9425 ac_lo
=$ac_mid; break
9427 echo "$as_me: failed program was:" >&5
9428 sed 's/^/| /' conftest.
$ac_ext >&5
9430 ac_hi
=`expr '(' $ac_mid ')' - 1`
9431 if test $ac_mid -le $ac_hi; then
9435 ac_mid
=`expr 2 '*' $ac_mid`
9437 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9440 echo "$as_me: failed program was:" >&5
9441 sed 's/^/| /' conftest.
$ac_ext >&5
9445 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9447 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9448 # Binary search between lo and hi bounds.
9449 while test "x$ac_lo" != "x$ac_hi"; do
9450 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9451 cat >conftest.
$ac_ext <<_ACEOF
9454 cat confdefs.h
>>conftest.
$ac_ext
9455 cat >>conftest.
$ac_ext <<_ACEOF
9456 /* end confdefs.h. */
9457 $ac_includes_default
9461 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
9468 rm -f conftest.
$ac_objext
9469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9470 (eval $ac_compile) 2>conftest.er1
9472 grep -v '^ *+' conftest.er1
>conftest.err
9474 cat conftest.err
>&5
9475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9476 (exit $ac_status); } &&
9477 { ac_try
='test -z "$ac_c_werror_flag"
9478 || test ! -s conftest.err'
9479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9483 (exit $ac_status); }; } &&
9484 { ac_try
='test -s conftest.$ac_objext'
9485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9489 (exit $ac_status); }; }; then
9492 echo "$as_me: failed program was:" >&5
9493 sed 's/^/| /' conftest.
$ac_ext >&5
9495 ac_lo
=`expr '(' $ac_mid ')' + 1`
9497 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9500 ?
*) ac_cv_sizeof_size_t
=$ac_lo;;
9501 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
9502 See \`config.log' for more details." >&5
9503 echo "$as_me: error: cannot compute sizeof (size_t), 77
9504 See \`config.log' for more details." >&2;}
9505 { (exit 1); exit 1; }; } ;;
9508 if test "$cross_compiling" = yes; then
9509 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9510 See \`config.log' for more details." >&5
9511 echo "$as_me: error: cannot run test program while cross compiling
9512 See \`config.log' for more details." >&2;}
9513 { (exit 1); exit 1; }; }
9515 cat >conftest.
$ac_ext <<_ACEOF
9518 cat confdefs.h
>>conftest.
$ac_ext
9519 cat >>conftest.
$ac_ext <<_ACEOF
9520 /* end confdefs.h. */
9521 $ac_includes_default
9522 long longval () { return (long) (sizeof (size_t)); }
9523 unsigned long ulongval () { return (long) (sizeof (size_t)); }
9530 FILE *f = fopen ("conftest.val", "w");
9533 if (((long) (sizeof (size_t))) < 0)
9535 long i = longval ();
9536 if (i != ((long) (sizeof (size_t))))
9538 fprintf (f, "%ld\n", i);
9542 unsigned long i = ulongval ();
9543 if (i != ((long) (sizeof (size_t))))
9545 fprintf (f, "%lu\n", i);
9547 exit (ferror (f) || fclose (f) != 0);
9553 rm -f conftest
$ac_exeext
9554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9555 (eval $ac_link) 2>&5
9557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9558 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9563 (exit $ac_status); }; }; then
9564 ac_cv_sizeof_size_t
=`cat conftest.val`
9566 echo "$as_me: program exited with status $ac_status" >&5
9567 echo "$as_me: failed program was:" >&5
9568 sed 's/^/| /' conftest.
$ac_ext >&5
9571 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
9572 See \`config.log' for more details." >&5
9573 echo "$as_me: error: cannot compute sizeof (size_t), 77
9574 See \`config.log' for more details." >&2;}
9575 { (exit 1); exit 1; }; }
9577 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9582 ac_cv_sizeof_size_t
=0
9585 echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
9586 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
9587 cat >>confdefs.h
<<_ACEOF
9588 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
9593 echo "$as_me:$LINENO: checking for long long support" >&5
9594 echo $ECHO_N "checking for long long support... $ECHO_C" >&6
9596 cat >conftest.
$ac_ext <<_ACEOF
9599 cat confdefs.h
>>conftest.
$ac_ext
9600 cat >>conftest.
$ac_ext <<_ACEOF
9601 /* end confdefs.h. */
9606 long long x; x = (long long)0;
9611 rm -f conftest.
$ac_objext
9612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9613 (eval $ac_compile) 2>conftest.er1
9615 grep -v '^ *+' conftest.er1
>conftest.err
9617 cat conftest.err
>&5
9618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9619 (exit $ac_status); } &&
9620 { ac_try
='test -z "$ac_c_werror_flag"
9621 || test ! -s conftest.err'
9622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9626 (exit $ac_status); }; } &&
9627 { ac_try
='test -s conftest.$ac_objext'
9628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9632 (exit $ac_status); }; }; then
9635 cat >>confdefs.h
<<\_ACEOF
9636 #define HAVE_LONG_LONG 1
9642 echo "$as_me: failed program was:" >&5
9643 sed 's/^/| /' conftest.
$ac_ext >&5
9646 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9647 echo "$as_me:$LINENO: result: $have_long_long" >&5
9648 echo "${ECHO_T}$have_long_long" >&6
9649 if test "$have_long_long" = yes ; then
9650 echo "$as_me:$LINENO: checking for long long" >&5
9651 echo $ECHO_N "checking for long long... $ECHO_C" >&6
9652 if test "${ac_cv_type_long_long+set}" = set; then
9653 echo $ECHO_N "(cached) $ECHO_C" >&6
9655 cat >conftest.
$ac_ext <<_ACEOF
9658 cat confdefs.h
>>conftest.
$ac_ext
9659 cat >>conftest.
$ac_ext <<_ACEOF
9660 /* end confdefs.h. */
9661 $ac_includes_default
9665 if ((long long *) 0)
9667 if (sizeof (long long))
9673 rm -f conftest.
$ac_objext
9674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9675 (eval $ac_compile) 2>conftest.er1
9677 grep -v '^ *+' conftest.er1
>conftest.err
9679 cat conftest.err
>&5
9680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9681 (exit $ac_status); } &&
9682 { ac_try
='test -z "$ac_c_werror_flag"
9683 || test ! -s conftest.err'
9684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9688 (exit $ac_status); }; } &&
9689 { ac_try
='test -s conftest.$ac_objext'
9690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694 (exit $ac_status); }; }; then
9695 ac_cv_type_long_long
=yes
9697 echo "$as_me: failed program was:" >&5
9698 sed 's/^/| /' conftest.
$ac_ext >&5
9700 ac_cv_type_long_long
=no
9702 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9704 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
9705 echo "${ECHO_T}$ac_cv_type_long_long" >&6
9707 echo "$as_me:$LINENO: checking size of long long" >&5
9708 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
9709 if test "${ac_cv_sizeof_long_long+set}" = set; then
9710 echo $ECHO_N "(cached) $ECHO_C" >&6
9712 if test "$ac_cv_type_long_long" = yes; then
9713 # The cast to unsigned long works around a bug in the HP C Compiler
9714 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9715 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9716 # This bug is HP SR number 8606223364.
9717 if test "$cross_compiling" = yes; then
9718 # Depending upon the size, compute the lo and hi bounds.
9719 cat >conftest.
$ac_ext <<_ACEOF
9722 cat confdefs.h
>>conftest.
$ac_ext
9723 cat >>conftest.
$ac_ext <<_ACEOF
9724 /* end confdefs.h. */
9725 $ac_includes_default
9729 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
9736 rm -f conftest.
$ac_objext
9737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9738 (eval $ac_compile) 2>conftest.er1
9740 grep -v '^ *+' conftest.er1
>conftest.err
9742 cat conftest.err
>&5
9743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9744 (exit $ac_status); } &&
9745 { ac_try
='test -z "$ac_c_werror_flag"
9746 || test ! -s conftest.err'
9747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9751 (exit $ac_status); }; } &&
9752 { ac_try
='test -s conftest.$ac_objext'
9753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9757 (exit $ac_status); }; }; then
9760 cat >conftest.
$ac_ext <<_ACEOF
9763 cat confdefs.h
>>conftest.
$ac_ext
9764 cat >>conftest.
$ac_ext <<_ACEOF
9765 /* end confdefs.h. */
9766 $ac_includes_default
9770 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
9777 rm -f conftest.
$ac_objext
9778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9779 (eval $ac_compile) 2>conftest.er1
9781 grep -v '^ *+' conftest.er1
>conftest.err
9783 cat conftest.err
>&5
9784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9785 (exit $ac_status); } &&
9786 { ac_try
='test -z "$ac_c_werror_flag"
9787 || test ! -s conftest.err'
9788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9792 (exit $ac_status); }; } &&
9793 { ac_try
='test -s conftest.$ac_objext'
9794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9798 (exit $ac_status); }; }; then
9799 ac_hi
=$ac_mid; break
9801 echo "$as_me: failed program was:" >&5
9802 sed 's/^/| /' conftest.
$ac_ext >&5
9804 ac_lo
=`expr $ac_mid + 1`
9805 if test $ac_lo -le $ac_mid; then
9809 ac_mid
=`expr 2 '*' $ac_mid + 1`
9811 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9814 echo "$as_me: failed program was:" >&5
9815 sed 's/^/| /' conftest.
$ac_ext >&5
9817 cat >conftest.
$ac_ext <<_ACEOF
9820 cat confdefs.h
>>conftest.
$ac_ext
9821 cat >>conftest.
$ac_ext <<_ACEOF
9822 /* end confdefs.h. */
9823 $ac_includes_default
9827 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
9834 rm -f conftest.
$ac_objext
9835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9836 (eval $ac_compile) 2>conftest.er1
9838 grep -v '^ *+' conftest.er1
>conftest.err
9840 cat conftest.err
>&5
9841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9842 (exit $ac_status); } &&
9843 { ac_try
='test -z "$ac_c_werror_flag"
9844 || test ! -s conftest.err'
9845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9849 (exit $ac_status); }; } &&
9850 { ac_try
='test -s conftest.$ac_objext'
9851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9855 (exit $ac_status); }; }; then
9858 cat >conftest.
$ac_ext <<_ACEOF
9861 cat confdefs.h
>>conftest.
$ac_ext
9862 cat >>conftest.
$ac_ext <<_ACEOF
9863 /* end confdefs.h. */
9864 $ac_includes_default
9868 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
9875 rm -f conftest.
$ac_objext
9876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9877 (eval $ac_compile) 2>conftest.er1
9879 grep -v '^ *+' conftest.er1
>conftest.err
9881 cat conftest.err
>&5
9882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9883 (exit $ac_status); } &&
9884 { ac_try
='test -z "$ac_c_werror_flag"
9885 || test ! -s conftest.err'
9886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9890 (exit $ac_status); }; } &&
9891 { ac_try
='test -s conftest.$ac_objext'
9892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9896 (exit $ac_status); }; }; then
9897 ac_lo
=$ac_mid; break
9899 echo "$as_me: failed program was:" >&5
9900 sed 's/^/| /' conftest.
$ac_ext >&5
9902 ac_hi
=`expr '(' $ac_mid ')' - 1`
9903 if test $ac_mid -le $ac_hi; then
9907 ac_mid
=`expr 2 '*' $ac_mid`
9909 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9912 echo "$as_me: failed program was:" >&5
9913 sed 's/^/| /' conftest.
$ac_ext >&5
9917 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9919 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9920 # Binary search between lo and hi bounds.
9921 while test "x$ac_lo" != "x$ac_hi"; do
9922 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9923 cat >conftest.
$ac_ext <<_ACEOF
9926 cat confdefs.h
>>conftest.
$ac_ext
9927 cat >>conftest.
$ac_ext <<_ACEOF
9928 /* end confdefs.h. */
9929 $ac_includes_default
9933 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
9940 rm -f conftest.
$ac_objext
9941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9942 (eval $ac_compile) 2>conftest.er1
9944 grep -v '^ *+' conftest.er1
>conftest.err
9946 cat conftest.err
>&5
9947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9948 (exit $ac_status); } &&
9949 { ac_try
='test -z "$ac_c_werror_flag"
9950 || test ! -s conftest.err'
9951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9955 (exit $ac_status); }; } &&
9956 { ac_try
='test -s conftest.$ac_objext'
9957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961 (exit $ac_status); }; }; then
9964 echo "$as_me: failed program was:" >&5
9965 sed 's/^/| /' conftest.
$ac_ext >&5
9967 ac_lo
=`expr '(' $ac_mid ')' + 1`
9969 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9972 ?
*) ac_cv_sizeof_long_long
=$ac_lo;;
9973 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
9974 See \`config.log' for more details." >&5
9975 echo "$as_me: error: cannot compute sizeof (long long), 77
9976 See \`config.log' for more details." >&2;}
9977 { (exit 1); exit 1; }; } ;;
9980 if test "$cross_compiling" = yes; then
9981 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9982 See \`config.log' for more details." >&5
9983 echo "$as_me: error: cannot run test program while cross compiling
9984 See \`config.log' for more details." >&2;}
9985 { (exit 1); exit 1; }; }
9987 cat >conftest.
$ac_ext <<_ACEOF
9990 cat confdefs.h
>>conftest.
$ac_ext
9991 cat >>conftest.
$ac_ext <<_ACEOF
9992 /* end confdefs.h. */
9993 $ac_includes_default
9994 long longval () { return (long) (sizeof (long long)); }
9995 unsigned long ulongval () { return (long) (sizeof (long long)); }
10002 FILE *f = fopen ("conftest.val", "w");
10005 if (((long) (sizeof (long long))) < 0)
10007 long i = longval ();
10008 if (i != ((long) (sizeof (long long))))
10010 fprintf (f, "%ld\n", i);
10014 unsigned long i = ulongval ();
10015 if (i != ((long) (sizeof (long long))))
10017 fprintf (f, "%lu\n", i);
10019 exit (ferror (f) || fclose (f) != 0);
10025 rm -f conftest
$ac_exeext
10026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10027 (eval $ac_link) 2>&5
10029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10030 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10032 (eval $ac_try) 2>&5
10034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035 (exit $ac_status); }; }; then
10036 ac_cv_sizeof_long_long
=`cat conftest.val`
10038 echo "$as_me: program exited with status $ac_status" >&5
10039 echo "$as_me: failed program was:" >&5
10040 sed 's/^/| /' conftest.
$ac_ext >&5
10042 ( exit $ac_status )
10043 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
10044 See \`config.log' for more details." >&5
10045 echo "$as_me: error: cannot compute sizeof (long long), 77
10046 See \`config.log' for more details." >&2;}
10047 { (exit 1); exit 1; }; }
10049 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10054 ac_cv_sizeof_long_long
=0
10057 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
10058 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
10059 cat >>confdefs.h
<<_ACEOF
10060 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10066 echo "$as_me:$LINENO: checking for uintptr_t support" >&5
10067 echo $ECHO_N "checking for uintptr_t support... $ECHO_C" >&6
10069 cat >conftest.
$ac_ext <<_ACEOF
10072 cat confdefs.h
>>conftest.
$ac_ext
10073 cat >>conftest.
$ac_ext <<_ACEOF
10074 /* end confdefs.h. */
10079 uintptr_t x; x = (uintptr_t)0;
10084 rm -f conftest.
$ac_objext
10085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10086 (eval $ac_compile) 2>conftest.er1
10088 grep -v '^ *+' conftest.er1
>conftest.err
10090 cat conftest.err
>&5
10091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10092 (exit $ac_status); } &&
10093 { ac_try
='test -z "$ac_c_werror_flag"
10094 || test ! -s conftest.err'
10095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10096 (eval $ac_try) 2>&5
10098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10099 (exit $ac_status); }; } &&
10100 { ac_try
='test -s conftest.$ac_objext'
10101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10102 (eval $ac_try) 2>&5
10104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10105 (exit $ac_status); }; }; then
10108 cat >>confdefs.h
<<\_ACEOF
10109 #define HAVE_UINTPTR_T 1
10115 echo "$as_me: failed program was:" >&5
10116 sed 's/^/| /' conftest.
$ac_ext >&5
10119 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10120 echo "$as_me:$LINENO: result: $have_uintptr_t" >&5
10121 echo "${ECHO_T}$have_uintptr_t" >&6
10122 if test "$have_uintptr_t" = yes ; then
10123 echo "$as_me:$LINENO: checking for uintptr_t" >&5
10124 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
10125 if test "${ac_cv_type_uintptr_t+set}" = set; then
10126 echo $ECHO_N "(cached) $ECHO_C" >&6
10128 cat >conftest.
$ac_ext <<_ACEOF
10131 cat confdefs.h
>>conftest.
$ac_ext
10132 cat >>conftest.
$ac_ext <<_ACEOF
10133 /* end confdefs.h. */
10134 $ac_includes_default
10138 if ((uintptr_t *) 0)
10140 if (sizeof (uintptr_t))
10146 rm -f conftest.
$ac_objext
10147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10148 (eval $ac_compile) 2>conftest.er1
10150 grep -v '^ *+' conftest.er1
>conftest.err
10152 cat conftest.err
>&5
10153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10154 (exit $ac_status); } &&
10155 { ac_try
='test -z "$ac_c_werror_flag"
10156 || test ! -s conftest.err'
10157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10158 (eval $ac_try) 2>&5
10160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10161 (exit $ac_status); }; } &&
10162 { ac_try
='test -s conftest.$ac_objext'
10163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10164 (eval $ac_try) 2>&5
10166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10167 (exit $ac_status); }; }; then
10168 ac_cv_type_uintptr_t
=yes
10170 echo "$as_me: failed program was:" >&5
10171 sed 's/^/| /' conftest.
$ac_ext >&5
10173 ac_cv_type_uintptr_t
=no
10175 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10177 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
10178 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
10180 echo "$as_me:$LINENO: checking size of uintptr_t" >&5
10181 echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6
10182 if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
10183 echo $ECHO_N "(cached) $ECHO_C" >&6
10185 if test "$ac_cv_type_uintptr_t" = yes; then
10186 # The cast to unsigned long works around a bug in the HP C Compiler
10187 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10188 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10189 # This bug is HP SR number 8606223364.
10190 if test "$cross_compiling" = yes; then
10191 # Depending upon the size, compute the lo and hi bounds.
10192 cat >conftest.
$ac_ext <<_ACEOF
10195 cat confdefs.h
>>conftest.
$ac_ext
10196 cat >>conftest.
$ac_ext <<_ACEOF
10197 /* end confdefs.h. */
10198 $ac_includes_default
10202 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_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 cat >conftest.
$ac_ext <<_ACEOF
10236 cat confdefs.h
>>conftest.
$ac_ext
10237 cat >>conftest.
$ac_ext <<_ACEOF
10238 /* end confdefs.h. */
10239 $ac_includes_default
10243 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)];
10250 rm -f conftest.
$ac_objext
10251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10252 (eval $ac_compile) 2>conftest.er1
10254 grep -v '^ *+' conftest.er1
>conftest.err
10256 cat conftest.err
>&5
10257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10258 (exit $ac_status); } &&
10259 { ac_try
='test -z "$ac_c_werror_flag"
10260 || test ! -s conftest.err'
10261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10262 (eval $ac_try) 2>&5
10264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10265 (exit $ac_status); }; } &&
10266 { ac_try
='test -s conftest.$ac_objext'
10267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10268 (eval $ac_try) 2>&5
10270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10271 (exit $ac_status); }; }; then
10272 ac_hi
=$ac_mid; break
10274 echo "$as_me: failed program was:" >&5
10275 sed 's/^/| /' conftest.
$ac_ext >&5
10277 ac_lo
=`expr $ac_mid + 1`
10278 if test $ac_lo -le $ac_mid; then
10282 ac_mid
=`expr 2 '*' $ac_mid + 1`
10284 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10287 echo "$as_me: failed program was:" >&5
10288 sed 's/^/| /' conftest.
$ac_ext >&5
10290 cat >conftest.
$ac_ext <<_ACEOF
10293 cat confdefs.h
>>conftest.
$ac_ext
10294 cat >>conftest.
$ac_ext <<_ACEOF
10295 /* end confdefs.h. */
10296 $ac_includes_default
10300 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) < 0)];
10307 rm -f conftest.
$ac_objext
10308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10309 (eval $ac_compile) 2>conftest.er1
10311 grep -v '^ *+' conftest.er1
>conftest.err
10313 cat conftest.err
>&5
10314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10315 (exit $ac_status); } &&
10316 { ac_try
='test -z "$ac_c_werror_flag"
10317 || test ! -s conftest.err'
10318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10319 (eval $ac_try) 2>&5
10321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10322 (exit $ac_status); }; } &&
10323 { ac_try
='test -s conftest.$ac_objext'
10324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10325 (eval $ac_try) 2>&5
10327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10328 (exit $ac_status); }; }; then
10331 cat >conftest.
$ac_ext <<_ACEOF
10334 cat confdefs.h
>>conftest.
$ac_ext
10335 cat >>conftest.
$ac_ext <<_ACEOF
10336 /* end confdefs.h. */
10337 $ac_includes_default
10341 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= $ac_mid)];
10348 rm -f conftest.
$ac_objext
10349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10350 (eval $ac_compile) 2>conftest.er1
10352 grep -v '^ *+' conftest.er1
>conftest.err
10354 cat conftest.err
>&5
10355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10356 (exit $ac_status); } &&
10357 { ac_try
='test -z "$ac_c_werror_flag"
10358 || test ! -s conftest.err'
10359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10360 (eval $ac_try) 2>&5
10362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10363 (exit $ac_status); }; } &&
10364 { ac_try
='test -s conftest.$ac_objext'
10365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10366 (eval $ac_try) 2>&5
10368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10369 (exit $ac_status); }; }; then
10370 ac_lo
=$ac_mid; break
10372 echo "$as_me: failed program was:" >&5
10373 sed 's/^/| /' conftest.
$ac_ext >&5
10375 ac_hi
=`expr '(' $ac_mid ')' - 1`
10376 if test $ac_mid -le $ac_hi; then
10380 ac_mid
=`expr 2 '*' $ac_mid`
10382 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10385 echo "$as_me: failed program was:" >&5
10386 sed 's/^/| /' conftest.
$ac_ext >&5
10390 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10392 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10393 # Binary search between lo and hi bounds.
10394 while test "x$ac_lo" != "x$ac_hi"; do
10395 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10396 cat >conftest.
$ac_ext <<_ACEOF
10399 cat confdefs.h
>>conftest.
$ac_ext
10400 cat >>conftest.
$ac_ext <<_ACEOF
10401 /* end confdefs.h. */
10402 $ac_includes_default
10406 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)];
10413 rm -f conftest.
$ac_objext
10414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10415 (eval $ac_compile) 2>conftest.er1
10417 grep -v '^ *+' conftest.er1
>conftest.err
10419 cat conftest.err
>&5
10420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10421 (exit $ac_status); } &&
10422 { ac_try
='test -z "$ac_c_werror_flag"
10423 || test ! -s conftest.err'
10424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10425 (eval $ac_try) 2>&5
10427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10428 (exit $ac_status); }; } &&
10429 { ac_try
='test -s conftest.$ac_objext'
10430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10431 (eval $ac_try) 2>&5
10433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10434 (exit $ac_status); }; }; then
10437 echo "$as_me: failed program was:" >&5
10438 sed 's/^/| /' conftest.
$ac_ext >&5
10440 ac_lo
=`expr '(' $ac_mid ')' + 1`
10442 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10445 ?
*) ac_cv_sizeof_uintptr_t
=$ac_lo;;
10446 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77
10447 See \`config.log' for more details." >&5
10448 echo "$as_me: error: cannot compute sizeof (uintptr_t), 77
10449 See \`config.log' for more details." >&2;}
10450 { (exit 1); exit 1; }; } ;;
10453 if test "$cross_compiling" = yes; then
10454 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10455 See \`config.log' for more details." >&5
10456 echo "$as_me: error: cannot run test program while cross compiling
10457 See \`config.log' for more details." >&2;}
10458 { (exit 1); exit 1; }; }
10460 cat >conftest.
$ac_ext <<_ACEOF
10463 cat confdefs.h
>>conftest.
$ac_ext
10464 cat >>conftest.
$ac_ext <<_ACEOF
10465 /* end confdefs.h. */
10466 $ac_includes_default
10467 long longval () { return (long) (sizeof (uintptr_t)); }
10468 unsigned long ulongval () { return (long) (sizeof (uintptr_t)); }
10470 #include <stdlib.h>
10475 FILE *f = fopen ("conftest.val", "w");
10478 if (((long) (sizeof (uintptr_t))) < 0)
10480 long i = longval ();
10481 if (i != ((long) (sizeof (uintptr_t))))
10483 fprintf (f, "%ld\n", i);
10487 unsigned long i = ulongval ();
10488 if (i != ((long) (sizeof (uintptr_t))))
10490 fprintf (f, "%lu\n", i);
10492 exit (ferror (f) || fclose (f) != 0);
10498 rm -f conftest
$ac_exeext
10499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10500 (eval $ac_link) 2>&5
10502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10503 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10505 (eval $ac_try) 2>&5
10507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10508 (exit $ac_status); }; }; then
10509 ac_cv_sizeof_uintptr_t
=`cat conftest.val`
10511 echo "$as_me: program exited with status $ac_status" >&5
10512 echo "$as_me: failed program was:" >&5
10513 sed 's/^/| /' conftest.
$ac_ext >&5
10515 ( exit $ac_status )
10516 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77
10517 See \`config.log' for more details." >&5
10518 echo "$as_me: error: cannot compute sizeof (uintptr_t), 77
10519 See \`config.log' for more details." >&2;}
10520 { (exit 1); exit 1; }; }
10522 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10527 ac_cv_sizeof_uintptr_t
=0
10530 echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
10531 echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6
10532 cat >>confdefs.h
<<_ACEOF
10533 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
10539 # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>.
10540 echo "$as_me:$LINENO: checking size of off_t" >&5
10541 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
10542 if test "${ac_cv_sizeof_off_t+set}" = set; then
10543 echo $ECHO_N "(cached) $ECHO_C" >&6
10545 if test "$cross_compiling" = yes; then
10546 ac_cv_sizeof_off_t
=4
10548 cat >conftest.
$ac_ext <<_ACEOF
10551 cat confdefs.h
>>conftest.
$ac_ext
10552 cat >>conftest.
$ac_ext <<_ACEOF
10553 /* end confdefs.h. */
10555 #include <sys/types.h>
10558 FILE *f=fopen("conftestval", "w");
10560 fprintf(f, "%d\n", sizeof(off_t));
10564 rm -f conftest
$ac_exeext
10565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10566 (eval $ac_link) 2>&5
10568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10569 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10571 (eval $ac_try) 2>&5
10573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10574 (exit $ac_status); }; }; then
10575 ac_cv_sizeof_off_t
=`cat conftestval`
10577 echo "$as_me: program exited with status $ac_status" >&5
10578 echo "$as_me: failed program was:" >&5
10579 sed 's/^/| /' conftest.
$ac_ext >&5
10581 ( exit $ac_status )
10582 ac_cv_sizeof_off_t
=0
10584 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10589 echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
10590 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
10592 cat >>confdefs.h
<<_ACEOF
10593 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
10597 echo "$as_me:$LINENO: checking whether to enable large file support" >&5
10598 echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6
10599 if test "$have_long_long" = yes -a \
10600 "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
10601 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
10603 cat >>confdefs.h
<<\_ACEOF
10604 #define HAVE_LARGEFILE_SUPPORT 1
10607 echo "$as_me:$LINENO: result: yes" >&5
10608 echo "${ECHO_T}yes" >&6
10610 echo "$as_me:$LINENO: result: no" >&5
10611 echo "${ECHO_T}no" >&6
10614 # AC_CHECK_SIZEOF() doesn't include <time.h>.
10615 echo "$as_me:$LINENO: checking size of time_t" >&5
10616 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6
10617 if test "${ac_cv_sizeof_time_t+set}" = set; then
10618 echo $ECHO_N "(cached) $ECHO_C" >&6
10620 if test "$cross_compiling" = yes; then
10621 ac_cv_sizeof_time_t
=4
10623 cat >conftest.
$ac_ext <<_ACEOF
10626 cat confdefs.h
>>conftest.
$ac_ext
10627 cat >>conftest.
$ac_ext <<_ACEOF
10628 /* end confdefs.h. */
10633 FILE *f=fopen("conftestval", "w");
10635 fprintf(f, "%d\n", sizeof(time_t));
10639 rm -f conftest
$ac_exeext
10640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10641 (eval $ac_link) 2>&5
10643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10644 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10646 (eval $ac_try) 2>&5
10648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10649 (exit $ac_status); }; }; then
10650 ac_cv_sizeof_time_t
=`cat conftestval`
10652 echo "$as_me: program exited with status $ac_status" >&5
10653 echo "$as_me: failed program was:" >&5
10654 sed 's/^/| /' conftest.
$ac_ext >&5
10656 ( exit $ac_status )
10657 ac_cv_sizeof_time_t
=0
10659 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10664 echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
10665 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6
10667 cat >>confdefs.h
<<_ACEOF
10668 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
10673 # if have pthread_t then define SIZEOF_PTHREAD_T
10675 if test "$ac_cv_kpthread" = "yes"
10676 then CC
="$CC -Kpthread"
10677 elif test "$ac_cv_kthread" = "yes"
10678 then CC
="$CC -Kthread"
10679 elif test "$ac_cv_pthread" = "yes"
10680 then CC
="$CC -pthread"
10682 echo "$as_me:$LINENO: checking for pthread_t" >&5
10683 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6
10685 cat >conftest.
$ac_ext <<_ACEOF
10688 cat confdefs.h
>>conftest.
$ac_ext
10689 cat >>conftest.
$ac_ext <<_ACEOF
10690 /* end confdefs.h. */
10691 #include <pthread.h>
10695 pthread_t x; x = *(pthread_t*)0;
10700 rm -f conftest.
$ac_objext
10701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10702 (eval $ac_compile) 2>conftest.er1
10704 grep -v '^ *+' conftest.er1
>conftest.err
10706 cat conftest.err
>&5
10707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10708 (exit $ac_status); } &&
10709 { ac_try
='test -z "$ac_c_werror_flag"
10710 || test ! -s conftest.err'
10711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10712 (eval $ac_try) 2>&5
10714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10715 (exit $ac_status); }; } &&
10716 { ac_try
='test -s conftest.$ac_objext'
10717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10718 (eval $ac_try) 2>&5
10720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10721 (exit $ac_status); }; }; then
10724 echo "$as_me: failed program was:" >&5
10725 sed 's/^/| /' conftest.
$ac_ext >&5
10728 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10729 echo "$as_me:$LINENO: result: $have_pthread_t" >&5
10730 echo "${ECHO_T}$have_pthread_t" >&6
10731 if test "$have_pthread_t" = yes ; then
10732 # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
10733 echo "$as_me:$LINENO: checking size of pthread_t" >&5
10734 echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6
10735 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
10736 echo $ECHO_N "(cached) $ECHO_C" >&6
10738 if test "$cross_compiling" = yes; then
10739 ac_cv_sizeof_pthread_t
=4
10741 cat >conftest.
$ac_ext <<_ACEOF
10744 cat confdefs.h
>>conftest.
$ac_ext
10745 cat >>conftest.
$ac_ext <<_ACEOF
10746 /* end confdefs.h. */
10748 #include <pthread.h>
10751 FILE *f=fopen("conftestval", "w");
10753 fprintf(f, "%d\n", sizeof(pthread_t));
10757 rm -f conftest
$ac_exeext
10758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10759 (eval $ac_link) 2>&5
10761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10762 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10764 (eval $ac_try) 2>&5
10766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10767 (exit $ac_status); }; }; then
10768 ac_cv_sizeof_pthread_t
=`cat conftestval`
10770 echo "$as_me: program exited with status $ac_status" >&5
10771 echo "$as_me: failed program was:" >&5
10772 sed 's/^/| /' conftest.
$ac_ext >&5
10774 ( exit $ac_status )
10775 ac_cv_sizeof_pthread_t
=0
10777 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10782 echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
10783 echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6
10785 cat >>confdefs.h
<<_ACEOF
10786 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
10792 echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5
10793 echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6
10794 # Check whether --enable-toolbox-glue or --disable-toolbox-glue was given.
10795 if test "${enable_toolbox_glue+set}" = set; then
10796 enableval
="$enable_toolbox_glue"
10800 if test -z "$enable_toolbox_glue"
10802 case $ac_sys_system/$ac_sys_release in
10804 enable_toolbox_glue
="yes";;
10806 enable_toolbox_glue
="no";;
10809 case "$enable_toolbox_glue" in
10811 extra_machdep_objs
="Python/mactoolboxglue.o"
10812 extra_undefs
="-u _PyMac_Error"
10814 cat >>confdefs.h
<<\_ACEOF
10815 #define USE_TOOLBOX_OBJECT_GLUE 1
10820 extra_machdep_objs
=""
10824 echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5
10825 echo "${ECHO_T}$enable_toolbox_glue" >&6
10828 case $ac_sys_system/$ac_sys_release in
10829 Darwin
/[01567]\..
*)
10830 OTHER_LIBTOOL_OPT
="-prebind -seg1addr 0x10000000"
10833 OTHER_LIBTOOL_OPT
=""
10838 case $ac_sys_system/$ac_sys_release in
10839 Darwin
/[01567]\..
*)
10840 LIBTOOL_CRUFT
="-framework System -lcc_dynamic"
10841 if test "${enable_universalsdk}"; then
10844 LIBTOOL_CRUFT
="${LIBTOOL_CRUFT} -arch_only `arch`"
10846 LIBTOOL_CRUFT
=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10847 LIBTOOL_CRUFT
=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
10849 gcc_version
=`gcc -v 2>&1 | grep version | cut -d\ -f3`
10850 if test ${gcc_version} '<' 4.0
10852 LIBTOOL_CRUFT
="-lcc_dynamic"
10856 LIBTOOL_CRUFT
=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only `arch`"
10857 LIBTOOL_CRUFT
=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10858 LIBTOOL_CRUFT
=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
10861 echo "$as_me:$LINENO: checking for --enable-framework" >&5
10862 echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6
10863 if test "$enable_framework"
10865 BASECFLAGS
="$BASECFLAGS -fno-common -dynamic"
10866 # -F. is needed to allow linking to the framework while
10867 # in the build location.
10869 cat >>confdefs.h
<<\_ACEOF
10870 #define WITH_NEXT_FRAMEWORK 1
10873 echo "$as_me:$LINENO: result: yes" >&5
10874 echo "${ECHO_T}yes" >&6
10876 echo "$as_me:$LINENO: result: no" >&5
10877 echo "${ECHO_T}no" >&6
10880 echo "$as_me:$LINENO: checking for dyld" >&5
10881 echo $ECHO_N "checking for dyld... $ECHO_C" >&6
10882 case $ac_sys_system/$ac_sys_release in
10885 cat >>confdefs.h
<<\_ACEOF
10886 #define WITH_DYLD 1
10889 echo "$as_me:$LINENO: result: always on for Darwin" >&5
10890 echo "${ECHO_T}always on for Darwin" >&6
10893 echo "$as_me:$LINENO: result: no" >&5
10894 echo "${ECHO_T}no" >&6
10898 # Set info about shared libraries.
10904 # SO is the extension of shared libraries `(including the dot!)
10905 # -- usually .so, .sl on HP-UX, .dll on Cygwin
10906 echo "$as_me:$LINENO: checking SO" >&5
10907 echo $ECHO_N "checking SO... $ECHO_C" >&6
10910 case $ac_sys_system in
10921 # this might also be a termcap variable, see #610332
10923 echo '====================================================================='
10925 echo '+ WARNING: You have set SO in your environment. +'
10926 echo '+ Do you really mean to change the extension for shared libraries? +'
10927 echo '+ Continuing in 10 seconds to let you to ponder. +'
10929 echo '====================================================================='
10932 echo "$as_me:$LINENO: result: $SO" >&5
10933 echo "${ECHO_T}$SO" >&6
10935 cat >>confdefs.h
<<_ACEOF
10936 #define SHLIB_EXT "$SO"
10939 # LDSHARED is the ld *command* used to create shared library
10940 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
10941 # (Shared libraries in this instance are shared modules to be loaded into
10942 # Python, as opposed to building Python itself as a shared library.)
10943 echo "$as_me:$LINENO: checking LDSHARED" >&5
10944 echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6
10945 if test -z "$LDSHARED"
10947 case $ac_sys_system/$ac_sys_release in
10949 BLDSHARED
="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
10950 LDSHARED
="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
10953 BLDSHARED
="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
10954 LDSHARED
="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
10956 IRIX
/5*) LDSHARED
="ld -shared";;
10957 IRIX
*/6*) LDSHARED
="ld ${SGI_ABI} -shared -all";;
10959 if test "$GCC" = "yes"
10960 then LDSHARED
='$(CC) -shared'
10961 else LDSHARED
='$(CC) -G';
10963 hp
*|HP
*) LDSHARED
="ld -b";;
10964 OSF
*) LDSHARED
="ld -shared -expect_unresolved \"*\"";;
10966 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
10967 if test "$enable_framework" ; then
10968 # Link against the framework. All externals should be defined.
10969 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10970 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10972 # No framework. Ignore undefined symbols, assuming they come from Python
10973 LDSHARED
="$LDSHARED -undefined suppress"
10975 Darwin
/1.4*|Darwin
/5.
*|Darwin
/6.
*)
10976 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
10977 if test "$enable_framework" ; then
10978 # Link against the framework. All externals should be defined.
10979 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10980 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10982 # No framework, use the Python app as bundle-loader
10983 BLDSHARED
="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
10984 LDSHARED
="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
10987 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
10988 # This allows an extension to be used in any Python
10989 cur_target
=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
10990 if test ${cur_target} '>' 10.2; then
10993 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
10994 EXPORT_MACOSX_DEPLOYMENT_TARGET
=''
10995 if test ${MACOSX_DEPLOYMENT_TARGET-${cur_target}} '>' 10.2
10997 if test "${enable_universalsdk}"; then
10998 LDFLAGS
="-arch i386 -arch ppc -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
11000 LDSHARED
='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
11001 BLDSHARED
="$LDSHARED"
11003 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
11004 if test "$enable_framework" ; then
11005 # Link against the framework. All externals should be defined.
11006 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11007 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11009 # No framework, use the Python app as bundle-loader
11010 BLDSHARED
="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
11011 LDSHARED
="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
11015 Linux
*|GNU
*) LDSHARED
='$(CC) -shared';;
11016 BSD
/OS
*/4*) LDSHARED
="gcc -shared";;
11018 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
11020 LDSHARED
="$CC -shared ${LDFLAGS}"
11022 LDSHARED
="ld -Bshareable ${LDFLAGS}"
11025 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
11027 LDSHARED
='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
11030 [01].
* |
2.
[0-7] |
2.
[0-7].
*)
11031 LDSHARED
="ld -Bshareable ${LDFLAGS}"
11034 LDSHARED
='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
11038 NetBSD
*|DragonFly
*) LDSHARED
="cc -shared ${LDFLAGS}";;
11039 OpenUNIX
*|UnixWare
*)
11040 if test "$GCC" = "yes"
11041 then LDSHARED
='$(CC) -shared'
11042 else LDSHARED
='$(CC) -G'
11044 SCO_SV
*) LDSHARED
='$(CC) -Wl,-G,-Bexport';;
11045 Monterey
*) LDSHARED
="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";;
11046 CYGWIN
*) LDSHARED
="gcc -shared -Wl,--enable-auto-image-base";;
11047 atheos
*) LDSHARED
="gcc -shared";;
11051 echo "$as_me:$LINENO: result: $LDSHARED" >&5
11052 echo "${ECHO_T}$LDSHARED" >&6
11053 BLDSHARED
=${BLDSHARED-$LDSHARED}
11054 # CCSHARED are the C *flags* used to create objects to go into a shared
11055 # library (module) -- this is only needed for a few systems
11056 echo "$as_me:$LINENO: checking CCSHARED" >&5
11057 echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6
11058 if test -z "$CCSHARED"
11060 case $ac_sys_system/$ac_sys_release in
11061 SunOS
*) if test "$GCC" = yes;
11062 then CCSHARED
="-fPIC";
11063 else CCSHARED
="-xcode=pic32";
11065 hp
*|HP
*) if test "$GCC" = yes;
11066 then CCSHARED
="-fPIC";
11067 else CCSHARED
="+z";
11069 Linux
*|GNU
*) CCSHARED
="-fPIC";;
11070 BSD
/OS
*/4*) CCSHARED
="-fpic";;
11071 FreeBSD
*|NetBSD
*|OpenBSD
*|DragonFly
*) CCSHARED
="-fPIC";;
11072 OpenUNIX
*|UnixWare
*)
11073 if test "$GCC" = "yes"
11074 then CCSHARED
="-fPIC"
11075 else CCSHARED
="-KPIC"
11078 if test "$GCC" = "yes"
11079 then CCSHARED
="-fPIC"
11080 else CCSHARED
="-Kpic -belf"
11082 Monterey
*) CCSHARED
="-G";;
11083 IRIX
*/6*) case $CC in
11084 *gcc
*) CCSHARED
="-shared";;
11087 atheos
*) CCSHARED
="-fPIC";;
11090 echo "$as_me:$LINENO: result: $CCSHARED" >&5
11091 echo "${ECHO_T}$CCSHARED" >&6
11092 # LINKFORSHARED are the flags passed to the $(CC) command that links
11093 # the python executable -- this is only needed for a few systems
11094 echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
11095 echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6
11096 if test -z "$LINKFORSHARED"
11098 case $ac_sys_system/$ac_sys_release in
11099 AIX
*) LINKFORSHARED
='-Wl,-bE:Modules/python.exp -lld';;
11101 LINKFORSHARED
="-Wl,-E -Wl,+s";;
11102 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
11103 BSD
/OS
/4*) LINKFORSHARED
="-Xlinker -export-dynamic";;
11104 Linux
*|GNU
*) LINKFORSHARED
="-Xlinker -export-dynamic";;
11105 # -u libsys_s pulls in all symbols in libsys
11107 # -u _PyMac_Error is needed to pull in the mac toolbox glue,
11109 # not used by the core itself but which needs to be in the core so
11110 # that dynamically loaded extension modules have access to it.
11111 # -prebind is no longer used, because it actually seems to give a
11112 # slowdown in stead of a speedup, maybe due to the large number of
11113 # dynamic loads Python does.
11115 LINKFORSHARED
="$extra_undefs"
11116 if test "$enable_framework"
11118 LINKFORSHARED
="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11120 LINKFORSHARED
="$LINKFORSHARED";;
11121 OpenUNIX
*|UnixWare
*) LINKFORSHARED
="-Wl,-Bexport";;
11122 SCO_SV
*) LINKFORSHARED
="-Wl,-Bexport";;
11123 ReliantUNIX
*) LINKFORSHARED
="-W1 -Blargedynsym";;
11124 FreeBSD
*|NetBSD
*|OpenBSD
*|DragonFly
*)
11125 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
11127 LINKFORSHARED
="-Wl,--export-dynamic"
11129 SunOS
/5*) case $CC in
11131 if $CC -Xlinker --help 2>&1 |
grep export-dynamic
>/dev
/null
11133 LINKFORSHARED
="-Xlinker --export-dynamic"
11137 if test $enable_shared = "no"
11139 LINKFORSHARED
='-Wl,--out-implib=$(LDLIBRARY)'
11143 echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
11144 echo "${ECHO_T}$LINKFORSHARED" >&6
11147 echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
11148 echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6
11149 if test ! "$LIBRARY" = "$LDLIBRARY"
11151 case $ac_sys_system in
11153 # Cygwin needs CCSHARED when building extension DLLs
11154 # but not when building the interpreter DLL.
11155 CFLAGSFORSHARED
='';;
11157 CFLAGSFORSHARED
='$(CCSHARED)'
11160 echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
11161 echo "${ECHO_T}$CFLAGSFORSHARED" >&6
11163 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
11164 # library (with --enable-shared).
11165 # For platforms on which shared libraries are not allowed to have unresolved
11166 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
11167 # if it is not required, since it creates a dependency of the shared library
11168 # to LIBS. This, in turn, means that applications linking the shared libpython
11169 # don't need to link LIBS explicitly. The default should be only changed
11170 # on systems where this approach causes problems.
11172 echo "$as_me:$LINENO: checking SHLIBS" >&5
11173 echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6
11174 case "$ac_sys_system" in
11178 echo "$as_me:$LINENO: result: $SHLIBS" >&5
11179 echo "${ECHO_T}$SHLIBS" >&6
11182 # checks for libraries
11184 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11185 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11186 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11187 echo $ECHO_N "(cached) $ECHO_C" >&6
11189 ac_check_lib_save_LIBS
=$LIBS
11191 cat >conftest.
$ac_ext <<_ACEOF
11194 cat confdefs.h
>>conftest.
$ac_ext
11195 cat >>conftest.
$ac_ext <<_ACEOF
11196 /* end confdefs.h. */
11198 /* Override any gcc2 internal prototype to avoid an error. */
11202 /* We use char because int might match the return type of a gcc2
11203 builtin and then its argument prototype would still apply. */
11213 rm -f conftest.
$ac_objext conftest
$ac_exeext
11214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11215 (eval $ac_link) 2>conftest.er1
11217 grep -v '^ *+' conftest.er1
>conftest.err
11219 cat conftest.err
>&5
11220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11221 (exit $ac_status); } &&
11222 { ac_try
='test -z "$ac_c_werror_flag"
11223 || test ! -s conftest.err'
11224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11225 (eval $ac_try) 2>&5
11227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11228 (exit $ac_status); }; } &&
11229 { ac_try
='test -s conftest$ac_exeext'
11230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11231 (eval $ac_try) 2>&5
11233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11234 (exit $ac_status); }; }; then
11235 ac_cv_lib_dl_dlopen
=yes
11237 echo "$as_me: failed program was:" >&5
11238 sed 's/^/| /' conftest.
$ac_ext >&5
11240 ac_cv_lib_dl_dlopen
=no
11242 rm -f conftest.err conftest.
$ac_objext \
11243 conftest
$ac_exeext conftest.
$ac_ext
11244 LIBS
=$ac_check_lib_save_LIBS
11246 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11247 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11248 if test $ac_cv_lib_dl_dlopen = yes; then
11249 cat >>confdefs.h
<<_ACEOF
11250 #define HAVE_LIBDL 1
11256 # Dynamic linking for SunOS/Solaris and SYSV
11258 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11259 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11260 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11261 echo $ECHO_N "(cached) $ECHO_C" >&6
11263 ac_check_lib_save_LIBS
=$LIBS
11265 cat >conftest.
$ac_ext <<_ACEOF
11268 cat confdefs.h
>>conftest.
$ac_ext
11269 cat >>conftest.
$ac_ext <<_ACEOF
11270 /* end confdefs.h. */
11272 /* Override any gcc2 internal prototype to avoid an error. */
11276 /* We use char because int might match the return type of a gcc2
11277 builtin and then its argument prototype would still apply. */
11287 rm -f conftest.
$ac_objext conftest
$ac_exeext
11288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11289 (eval $ac_link) 2>conftest.er1
11291 grep -v '^ *+' conftest.er1
>conftest.err
11293 cat conftest.err
>&5
11294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11295 (exit $ac_status); } &&
11296 { ac_try
='test -z "$ac_c_werror_flag"
11297 || test ! -s conftest.err'
11298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11299 (eval $ac_try) 2>&5
11301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11302 (exit $ac_status); }; } &&
11303 { ac_try
='test -s conftest$ac_exeext'
11304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11305 (eval $ac_try) 2>&5
11307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11308 (exit $ac_status); }; }; then
11309 ac_cv_lib_dld_shl_load
=yes
11311 echo "$as_me: failed program was:" >&5
11312 sed 's/^/| /' conftest.
$ac_ext >&5
11314 ac_cv_lib_dld_shl_load
=no
11316 rm -f conftest.err conftest.
$ac_objext \
11317 conftest
$ac_exeext conftest.
$ac_ext
11318 LIBS
=$ac_check_lib_save_LIBS
11320 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11321 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11322 if test $ac_cv_lib_dld_shl_load = yes; then
11323 cat >>confdefs.h
<<_ACEOF
11324 #define HAVE_LIBDLD 1
11330 # Dynamic linking for HP-UX
11332 # only check for sem_ini if thread support is requested
11333 if test "$with_threads" = "yes" -o -z "$with_threads"; then
11334 echo "$as_me:$LINENO: checking for library containing sem_init" >&5
11335 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6
11336 if test "${ac_cv_search_sem_init+set}" = set; then
11337 echo $ECHO_N "(cached) $ECHO_C" >&6
11339 ac_func_search_save_LIBS
=$LIBS
11340 ac_cv_search_sem_init
=no
11341 cat >conftest.
$ac_ext <<_ACEOF
11344 cat confdefs.h
>>conftest.
$ac_ext
11345 cat >>conftest.
$ac_ext <<_ACEOF
11346 /* end confdefs.h. */
11348 /* Override any gcc2 internal prototype to avoid an error. */
11352 /* We use char because int might match the return type of a gcc2
11353 builtin and then its argument prototype would still apply. */
11363 rm -f conftest.
$ac_objext conftest
$ac_exeext
11364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11365 (eval $ac_link) 2>conftest.er1
11367 grep -v '^ *+' conftest.er1
>conftest.err
11369 cat conftest.err
>&5
11370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11371 (exit $ac_status); } &&
11372 { ac_try
='test -z "$ac_c_werror_flag"
11373 || test ! -s conftest.err'
11374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11375 (eval $ac_try) 2>&5
11377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11378 (exit $ac_status); }; } &&
11379 { ac_try
='test -s conftest$ac_exeext'
11380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11381 (eval $ac_try) 2>&5
11383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11384 (exit $ac_status); }; }; then
11385 ac_cv_search_sem_init
="none required"
11387 echo "$as_me: failed program was:" >&5
11388 sed 's/^/| /' conftest.
$ac_ext >&5
11391 rm -f conftest.err conftest.
$ac_objext \
11392 conftest
$ac_exeext conftest.
$ac_ext
11393 if test "$ac_cv_search_sem_init" = no
; then
11394 for ac_lib
in pthread rt posix4
; do
11395 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11396 cat >conftest.
$ac_ext <<_ACEOF
11399 cat confdefs.h
>>conftest.
$ac_ext
11400 cat >>conftest.
$ac_ext <<_ACEOF
11401 /* end confdefs.h. */
11403 /* Override any gcc2 internal prototype to avoid an error. */
11407 /* We use char because int might match the return type of a gcc2
11408 builtin and then its argument prototype would still apply. */
11418 rm -f conftest.
$ac_objext conftest
$ac_exeext
11419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11420 (eval $ac_link) 2>conftest.er1
11422 grep -v '^ *+' conftest.er1
>conftest.err
11424 cat conftest.err
>&5
11425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11426 (exit $ac_status); } &&
11427 { ac_try
='test -z "$ac_c_werror_flag"
11428 || test ! -s conftest.err'
11429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11430 (eval $ac_try) 2>&5
11432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11433 (exit $ac_status); }; } &&
11434 { ac_try
='test -s conftest$ac_exeext'
11435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11436 (eval $ac_try) 2>&5
11438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11439 (exit $ac_status); }; }; then
11440 ac_cv_search_sem_init
="-l$ac_lib"
11443 echo "$as_me: failed program was:" >&5
11444 sed 's/^/| /' conftest.
$ac_ext >&5
11447 rm -f conftest.err conftest.
$ac_objext \
11448 conftest
$ac_exeext conftest.
$ac_ext
11451 LIBS
=$ac_func_search_save_LIBS
11453 echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
11454 echo "${ECHO_T}$ac_cv_search_sem_init" >&6
11455 if test "$ac_cv_search_sem_init" != no
; then
11456 test "$ac_cv_search_sem_init" = "none required" || LIBS
="$ac_cv_search_sem_init $LIBS"
11459 # 'Real Time' functions on Solaris
11460 # posix4 on Solaris 2.6
11461 # pthread (first!) on Linux
11464 # check if we need libintl for locale functions
11465 echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
11466 echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6
11467 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
11468 echo $ECHO_N "(cached) $ECHO_C" >&6
11470 ac_check_lib_save_LIBS
=$LIBS
11471 LIBS
="-lintl $LIBS"
11472 cat >conftest.
$ac_ext <<_ACEOF
11475 cat confdefs.h
>>conftest.
$ac_ext
11476 cat >>conftest.
$ac_ext <<_ACEOF
11477 /* end confdefs.h. */
11479 /* Override any gcc2 internal prototype to avoid an error. */
11483 /* We use char because int might match the return type of a gcc2
11484 builtin and then its argument prototype would still apply. */
11485 char textdomain ();
11494 rm -f conftest.
$ac_objext conftest
$ac_exeext
11495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11496 (eval $ac_link) 2>conftest.er1
11498 grep -v '^ *+' conftest.er1
>conftest.err
11500 cat conftest.err
>&5
11501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11502 (exit $ac_status); } &&
11503 { ac_try
='test -z "$ac_c_werror_flag"
11504 || test ! -s conftest.err'
11505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11506 (eval $ac_try) 2>&5
11508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11509 (exit $ac_status); }; } &&
11510 { ac_try
='test -s conftest$ac_exeext'
11511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11512 (eval $ac_try) 2>&5
11514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11515 (exit $ac_status); }; }; then
11516 ac_cv_lib_intl_textdomain
=yes
11518 echo "$as_me: failed program was:" >&5
11519 sed 's/^/| /' conftest.
$ac_ext >&5
11521 ac_cv_lib_intl_textdomain
=no
11523 rm -f conftest.err conftest.
$ac_objext \
11524 conftest
$ac_exeext conftest.
$ac_ext
11525 LIBS
=$ac_check_lib_save_LIBS
11527 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
11528 echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6
11529 if test $ac_cv_lib_intl_textdomain = yes; then
11531 cat >>confdefs.h
<<\_ACEOF
11532 #define WITH_LIBINTL 1
11538 # checks for system dependent C++ extensions support
11539 case "$ac_sys_system" in
11540 AIX
*) echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
11541 echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6
11542 cat >conftest.
$ac_ext <<_ACEOF
11545 cat confdefs.h
>>conftest.
$ac_ext
11546 cat >>conftest.
$ac_ext <<_ACEOF
11547 /* end confdefs.h. */
11548 #include "/usr/lpp/xlC/include/load.h"
11552 loadAndInit("", 0, "")
11557 rm -f conftest.
$ac_objext conftest
$ac_exeext
11558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11559 (eval $ac_link) 2>conftest.er1
11561 grep -v '^ *+' conftest.er1
>conftest.err
11563 cat conftest.err
>&5
11564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11565 (exit $ac_status); } &&
11566 { ac_try
='test -z "$ac_c_werror_flag"
11567 || test ! -s conftest.err'
11568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11569 (eval $ac_try) 2>&5
11571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11572 (exit $ac_status); }; } &&
11573 { ac_try
='test -s conftest$ac_exeext'
11574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11575 (eval $ac_try) 2>&5
11577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11578 (exit $ac_status); }; }; then
11580 cat >>confdefs.h
<<\_ACEOF
11581 #define AIX_GENUINE_CPLUSPLUS 1
11584 echo "$as_me:$LINENO: result: yes" >&5
11585 echo "${ECHO_T}yes" >&6
11587 echo "$as_me: failed program was:" >&5
11588 sed 's/^/| /' conftest.
$ac_ext >&5
11590 echo "$as_me:$LINENO: result: no" >&5
11591 echo "${ECHO_T}no" >&6
11593 rm -f conftest.err conftest.
$ac_objext \
11594 conftest
$ac_exeext conftest.
$ac_ext;;
11598 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
11599 # BeOS' sockets are stashed in libnet.
11600 echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
11601 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6
11602 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
11603 echo $ECHO_N "(cached) $ECHO_C" >&6
11605 ac_check_lib_save_LIBS
=$LIBS
11607 cat >conftest.
$ac_ext <<_ACEOF
11610 cat confdefs.h
>>conftest.
$ac_ext
11611 cat >>conftest.
$ac_ext <<_ACEOF
11612 /* end confdefs.h. */
11614 /* Override any gcc2 internal prototype to avoid an error. */
11618 /* We use char because int might match the return type of a gcc2
11619 builtin and then its argument prototype would still apply. */
11629 rm -f conftest.
$ac_objext conftest
$ac_exeext
11630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11631 (eval $ac_link) 2>conftest.er1
11633 grep -v '^ *+' conftest.er1
>conftest.err
11635 cat conftest.err
>&5
11636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11637 (exit $ac_status); } &&
11638 { ac_try
='test -z "$ac_c_werror_flag"
11639 || test ! -s conftest.err'
11640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11641 (eval $ac_try) 2>&5
11643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11644 (exit $ac_status); }; } &&
11645 { ac_try
='test -s conftest$ac_exeext'
11646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11647 (eval $ac_try) 2>&5
11649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11650 (exit $ac_status); }; }; then
11651 ac_cv_lib_nsl_t_open
=yes
11653 echo "$as_me: failed program was:" >&5
11654 sed 's/^/| /' conftest.
$ac_ext >&5
11656 ac_cv_lib_nsl_t_open
=no
11658 rm -f conftest.err conftest.
$ac_objext \
11659 conftest
$ac_exeext conftest.
$ac_ext
11660 LIBS
=$ac_check_lib_save_LIBS
11662 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
11663 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6
11664 if test $ac_cv_lib_nsl_t_open = yes; then
11668 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
11669 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
11670 if test "${ac_cv_lib_socket_socket+set}" = set; then
11671 echo $ECHO_N "(cached) $ECHO_C" >&6
11673 ac_check_lib_save_LIBS
=$LIBS
11674 LIBS
="-lsocket $LIBS $LIBS"
11675 cat >conftest.
$ac_ext <<_ACEOF
11678 cat confdefs.h
>>conftest.
$ac_ext
11679 cat >>conftest.
$ac_ext <<_ACEOF
11680 /* end confdefs.h. */
11682 /* Override any gcc2 internal prototype to avoid an error. */
11686 /* We use char because int might match the return type of a gcc2
11687 builtin and then its argument prototype would still apply. */
11697 rm -f conftest.
$ac_objext conftest
$ac_exeext
11698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11699 (eval $ac_link) 2>conftest.er1
11701 grep -v '^ *+' conftest.er1
>conftest.err
11703 cat conftest.err
>&5
11704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11705 (exit $ac_status); } &&
11706 { ac_try
='test -z "$ac_c_werror_flag"
11707 || test ! -s conftest.err'
11708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11709 (eval $ac_try) 2>&5
11711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11712 (exit $ac_status); }; } &&
11713 { ac_try
='test -s conftest$ac_exeext'
11714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11715 (eval $ac_try) 2>&5
11717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11718 (exit $ac_status); }; }; then
11719 ac_cv_lib_socket_socket
=yes
11721 echo "$as_me: failed program was:" >&5
11722 sed 's/^/| /' conftest.
$ac_ext >&5
11724 ac_cv_lib_socket_socket
=no
11726 rm -f conftest.err conftest.
$ac_objext \
11727 conftest
$ac_exeext conftest.
$ac_ext
11728 LIBS
=$ac_check_lib_save_LIBS
11730 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
11731 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
11732 if test $ac_cv_lib_socket_socket = yes; then
11733 LIBS
="-lsocket $LIBS"
11737 case "$ac_sys_system" in
11739 echo "$as_me:$LINENO: checking for socket in -lnet" >&5
11740 echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6
11741 if test "${ac_cv_lib_net_socket+set}" = set; then
11742 echo $ECHO_N "(cached) $ECHO_C" >&6
11744 ac_check_lib_save_LIBS
=$LIBS
11745 LIBS
="-lnet $LIBS $LIBS"
11746 cat >conftest.
$ac_ext <<_ACEOF
11749 cat confdefs.h
>>conftest.
$ac_ext
11750 cat >>conftest.
$ac_ext <<_ACEOF
11751 /* end confdefs.h. */
11753 /* Override any gcc2 internal prototype to avoid an error. */
11757 /* We use char because int might match the return type of a gcc2
11758 builtin and then its argument prototype would still apply. */
11768 rm -f conftest.
$ac_objext conftest
$ac_exeext
11769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11770 (eval $ac_link) 2>conftest.er1
11772 grep -v '^ *+' conftest.er1
>conftest.err
11774 cat conftest.err
>&5
11775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11776 (exit $ac_status); } &&
11777 { ac_try
='test -z "$ac_c_werror_flag"
11778 || test ! -s conftest.err'
11779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11780 (eval $ac_try) 2>&5
11782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11783 (exit $ac_status); }; } &&
11784 { ac_try
='test -s conftest$ac_exeext'
11785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11786 (eval $ac_try) 2>&5
11788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11789 (exit $ac_status); }; }; then
11790 ac_cv_lib_net_socket
=yes
11792 echo "$as_me: failed program was:" >&5
11793 sed 's/^/| /' conftest.
$ac_ext >&5
11795 ac_cv_lib_net_socket
=no
11797 rm -f conftest.err conftest.
$ac_objext \
11798 conftest
$ac_exeext conftest.
$ac_ext
11799 LIBS
=$ac_check_lib_save_LIBS
11801 echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5
11802 echo "${ECHO_T}$ac_cv_lib_net_socket" >&6
11803 if test $ac_cv_lib_net_socket = yes; then
11810 echo "$as_me:$LINENO: checking for --with-libs" >&5
11811 echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6
11813 # Check whether --with-libs or --without-libs was given.
11814 if test "${with_libs+set}" = set; then
11815 withval
="$with_libs"
11817 echo "$as_me:$LINENO: result: $withval" >&5
11818 echo "${ECHO_T}$withval" >&6
11819 LIBS
="$withval $LIBS"
11822 echo "$as_me:$LINENO: result: no" >&5
11823 echo "${ECHO_T}no" >&6
11826 # Check for use of the system libffi library
11827 echo "$as_me:$LINENO: checking for --with-system-ffi" >&5
11828 echo $ECHO_N "checking for --with-system-ffi... $ECHO_C" >&6
11830 # Check whether --with-system_ffi or --without-system_ffi was given.
11831 if test "${with_system_ffi+set}" = set; then
11832 withval
="$with_system_ffi"
11836 if test -z "$with_system_ffi"
11837 then with_system_ffi
="no"
11839 echo "$as_me:$LINENO: result: $with_system_ffi" >&5
11840 echo "${ECHO_T}$with_system_ffi" >&6
11842 # Determine if signalmodule should be used.
11845 echo "$as_me:$LINENO: checking for --with-signal-module" >&5
11846 echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6
11848 # Check whether --with-signal-module or --without-signal-module was given.
11849 if test "${with_signal_module+set}" = set; then
11850 withval
="$with_signal_module"
11854 if test -z "$with_signal_module"
11855 then with_signal_module
="yes"
11857 echo "$as_me:$LINENO: result: $with_signal_module" >&5
11858 echo "${ECHO_T}$with_signal_module" >&6
11860 if test "${with_signal_module}" = "yes"; then
11861 USE_SIGNAL_MODULE
=""
11864 USE_SIGNAL_MODULE
="#"
11865 SIGNAL_OBJS
="Parser/intrcheck.o Python/sigcheck.o"
11868 # This is used to generate Setup.config
11870 USE_THREAD_MODULE
=""
11872 echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
11873 echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6
11876 # Check whether --with-dec-threads or --without-dec-threads was given.
11877 if test "${with_dec_threads+set}" = set; then
11878 withval
="$with_dec_threads"
11880 echo "$as_me:$LINENO: result: $withval" >&5
11881 echo "${ECHO_T}$withval" >&6
11883 if test "${with_thread+set}" != set; then
11884 with_thread
="$withval";
11887 echo "$as_me:$LINENO: result: no" >&5
11888 echo "${ECHO_T}no" >&6
11891 # Templates for things AC_DEFINEd more than once.
11892 # For a single AC_DEFINE, no template is needed.
11900 echo "$as_me:$LINENO: checking for --with-threads" >&5
11901 echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6
11903 # Check whether --with-threads or --without-threads was given.
11904 if test "${with_threads+set}" = set; then
11905 withval
="$with_threads"
11909 # --with-thread is deprecated, but check for it anyway
11911 # Check whether --with-thread or --without-thread was given.
11912 if test "${with_thread+set}" = set; then
11913 withval
="$with_thread"
11914 with_threads
=$with_thread
11917 if test -z "$with_threads"
11918 then with_threads
="yes"
11920 echo "$as_me:$LINENO: result: $with_threads" >&5
11921 echo "${ECHO_T}$with_threads" >&6
11924 if test "$with_threads" = "no"
11926 USE_THREAD_MODULE
="#"
11927 elif test "$ac_cv_pthread_is_default" = yes
11929 cat >>confdefs.h
<<\_ACEOF
11930 #define WITH_THREAD 1
11933 # Defining _REENTRANT on system with POSIX threads should not hurt.
11934 cat >>confdefs.h
<<\_ACEOF
11935 #define _REENTRANT 1
11939 THREADOBJ
="Python/thread.o"
11940 elif test "$ac_cv_kpthread" = "yes"
11943 if test "$ac_cv_cxx_thread" = "yes"; then
11944 CXX
="$CXX -Kpthread"
11946 cat >>confdefs.h
<<\_ACEOF
11947 #define WITH_THREAD 1
11951 THREADOBJ
="Python/thread.o"
11952 elif test "$ac_cv_kthread" = "yes"
11955 if test "$ac_cv_cxx_thread" = "yes"; then
11956 CXX
="$CXX -Kthread"
11958 cat >>confdefs.h
<<\_ACEOF
11959 #define WITH_THREAD 1
11963 THREADOBJ
="Python/thread.o"
11964 elif test "$ac_cv_pthread" = "yes"
11967 if test "$ac_cv_cxx_thread" = "yes"; then
11968 CXX
="$CXX -pthread"
11970 cat >>confdefs.h
<<\_ACEOF
11971 #define WITH_THREAD 1
11975 THREADOBJ
="Python/thread.o"
11977 if test ! -z "$with_threads" -a -d "$with_threads"
11978 then LDFLAGS
="$LDFLAGS -L$with_threads"
11980 if test ! -z "$withval" -a -d "$withval"
11981 then LDFLAGS
="$LDFLAGS -L$withval"
11984 # According to the POSIX spec, a pthreads implementation must
11985 # define _POSIX_THREADS in unistd.h. Some apparently don't
11986 # (e.g. gnu pth with pthread emulation)
11987 echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
11988 echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6
11989 cat >conftest.
$ac_ext <<_ACEOF
11992 cat confdefs.h
>>conftest.
$ac_ext
11993 cat >>conftest.
$ac_ext <<_ACEOF
11994 /* end confdefs.h. */
11996 #include <unistd.h>
11997 #ifdef _POSIX_THREADS
12002 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12003 $EGREP "yes" >/dev
/null
2>&1; then
12004 unistd_defines_pthreads
=yes
12006 unistd_defines_pthreads
=no
12010 echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
12011 echo "${ECHO_T}$unistd_defines_pthreads" >&6
12013 cat >>confdefs.h
<<\_ACEOF
12014 #define _REENTRANT 1
12017 if test "${ac_cv_header_cthreads_h+set}" = set; then
12018 echo "$as_me:$LINENO: checking for cthreads.h" >&5
12019 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6
12020 if test "${ac_cv_header_cthreads_h+set}" = set; then
12021 echo $ECHO_N "(cached) $ECHO_C" >&6
12023 echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
12024 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6
12026 # Is the header compilable?
12027 echo "$as_me:$LINENO: checking cthreads.h usability" >&5
12028 echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6
12029 cat >conftest.
$ac_ext <<_ACEOF
12032 cat confdefs.h
>>conftest.
$ac_ext
12033 cat >>conftest.
$ac_ext <<_ACEOF
12034 /* end confdefs.h. */
12035 $ac_includes_default
12036 #include <cthreads.h>
12038 rm -f conftest.
$ac_objext
12039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12040 (eval $ac_compile) 2>conftest.er1
12042 grep -v '^ *+' conftest.er1
>conftest.err
12044 cat conftest.err
>&5
12045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12046 (exit $ac_status); } &&
12047 { ac_try
='test -z "$ac_c_werror_flag"
12048 || test ! -s conftest.err'
12049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12050 (eval $ac_try) 2>&5
12052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12053 (exit $ac_status); }; } &&
12054 { ac_try
='test -s conftest.$ac_objext'
12055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12056 (eval $ac_try) 2>&5
12058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12059 (exit $ac_status); }; }; then
12060 ac_header_compiler
=yes
12062 echo "$as_me: failed program was:" >&5
12063 sed 's/^/| /' conftest.
$ac_ext >&5
12065 ac_header_compiler
=no
12067 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12068 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12069 echo "${ECHO_T}$ac_header_compiler" >&6
12071 # Is the header present?
12072 echo "$as_me:$LINENO: checking cthreads.h presence" >&5
12073 echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6
12074 cat >conftest.
$ac_ext <<_ACEOF
12077 cat confdefs.h
>>conftest.
$ac_ext
12078 cat >>conftest.
$ac_ext <<_ACEOF
12079 /* end confdefs.h. */
12080 #include <cthreads.h>
12082 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12083 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12085 grep -v '^ *+' conftest.er1
>conftest.err
12087 cat conftest.err
>&5
12088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12089 (exit $ac_status); } >/dev
/null
; then
12090 if test -s conftest.err
; then
12091 ac_cpp_err
=$ac_c_preproc_warn_flag
12092 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12099 if test -z "$ac_cpp_err"; then
12100 ac_header_preproc
=yes
12102 echo "$as_me: failed program was:" >&5
12103 sed 's/^/| /' conftest.
$ac_ext >&5
12105 ac_header_preproc
=no
12107 rm -f conftest.err conftest.
$ac_ext
12108 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12109 echo "${ECHO_T}$ac_header_preproc" >&6
12111 # So? What about this header?
12112 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12114 { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
12115 echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12116 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5
12117 echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;}
12118 ac_header_preproc
=yes
12121 { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
12122 echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
12123 { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
12124 echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
12125 { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5
12126 echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;}
12127 { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
12128 echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
12129 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
12130 echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;}
12131 { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5
12132 echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;}
12135 ## ------------------------------------------------ ##
12136 ## Report this to http://www.python.org/python-bugs ##
12137 ## ------------------------------------------------ ##
12140 sed "s/^/$as_me: WARNING: /" >&2
12143 echo "$as_me:$LINENO: checking for cthreads.h" >&5
12144 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6
12145 if test "${ac_cv_header_cthreads_h+set}" = set; then
12146 echo $ECHO_N "(cached) $ECHO_C" >&6
12148 ac_cv_header_cthreads_h
=$ac_header_preproc
12150 echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
12151 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6
12154 if test $ac_cv_header_cthreads_h = yes; then
12155 cat >>confdefs.h
<<\_ACEOF
12156 #define WITH_THREAD 1
12159 cat >>confdefs.h
<<\_ACEOF
12160 #define C_THREADS 1
12164 cat >>confdefs.h
<<\_ACEOF
12165 #define HURD_C_THREADS 1
12168 LIBS
="$LIBS -lthreads"
12169 THREADOBJ
="Python/thread.o"
12172 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
12173 echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
12174 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6
12175 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
12176 echo $ECHO_N "(cached) $ECHO_C" >&6
12178 echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
12179 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6
12181 # Is the header compilable?
12182 echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
12183 echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6
12184 cat >conftest.
$ac_ext <<_ACEOF
12187 cat confdefs.h
>>conftest.
$ac_ext
12188 cat >>conftest.
$ac_ext <<_ACEOF
12189 /* end confdefs.h. */
12190 $ac_includes_default
12191 #include <mach/cthreads.h>
12193 rm -f conftest.
$ac_objext
12194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12195 (eval $ac_compile) 2>conftest.er1
12197 grep -v '^ *+' conftest.er1
>conftest.err
12199 cat conftest.err
>&5
12200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12201 (exit $ac_status); } &&
12202 { ac_try
='test -z "$ac_c_werror_flag"
12203 || test ! -s conftest.err'
12204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12205 (eval $ac_try) 2>&5
12207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12208 (exit $ac_status); }; } &&
12209 { ac_try
='test -s conftest.$ac_objext'
12210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12211 (eval $ac_try) 2>&5
12213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12214 (exit $ac_status); }; }; then
12215 ac_header_compiler
=yes
12217 echo "$as_me: failed program was:" >&5
12218 sed 's/^/| /' conftest.
$ac_ext >&5
12220 ac_header_compiler
=no
12222 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12223 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12224 echo "${ECHO_T}$ac_header_compiler" >&6
12226 # Is the header present?
12227 echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
12228 echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6
12229 cat >conftest.
$ac_ext <<_ACEOF
12232 cat confdefs.h
>>conftest.
$ac_ext
12233 cat >>conftest.
$ac_ext <<_ACEOF
12234 /* end confdefs.h. */
12235 #include <mach/cthreads.h>
12237 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12238 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12240 grep -v '^ *+' conftest.er1
>conftest.err
12242 cat conftest.err
>&5
12243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12244 (exit $ac_status); } >/dev
/null
; then
12245 if test -s conftest.err
; then
12246 ac_cpp_err
=$ac_c_preproc_warn_flag
12247 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12254 if test -z "$ac_cpp_err"; then
12255 ac_header_preproc
=yes
12257 echo "$as_me: failed program was:" >&5
12258 sed 's/^/| /' conftest.
$ac_ext >&5
12260 ac_header_preproc
=no
12262 rm -f conftest.err conftest.
$ac_ext
12263 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12264 echo "${ECHO_T}$ac_header_preproc" >&6
12266 # So? What about this header?
12267 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12269 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
12270 echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12271 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
12272 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
12273 ac_header_preproc
=yes
12276 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
12277 echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
12278 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
12279 echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
12280 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
12281 echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
12282 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
12283 echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
12284 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
12285 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
12286 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
12287 echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
12290 ## ------------------------------------------------ ##
12291 ## Report this to http://www.python.org/python-bugs ##
12292 ## ------------------------------------------------ ##
12295 sed "s/^/$as_me: WARNING: /" >&2
12298 echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
12299 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6
12300 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
12301 echo $ECHO_N "(cached) $ECHO_C" >&6
12303 ac_cv_header_mach_cthreads_h
=$ac_header_preproc
12305 echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
12306 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6
12309 if test $ac_cv_header_mach_cthreads_h = yes; then
12310 cat >>confdefs.h
<<\_ACEOF
12311 #define WITH_THREAD 1
12314 cat >>confdefs.h
<<\_ACEOF
12315 #define C_THREADS 1
12319 cat >>confdefs.h
<<\_ACEOF
12320 #define MACH_C_THREADS 1
12323 THREADOBJ
="Python/thread.o"
12326 echo "$as_me:$LINENO: checking for --with-pth" >&5
12327 echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6
12329 # Check whether --with-pth or --without-pth was given.
12330 if test "${with_pth+set}" = set; then
12331 withval
="$with_pth"
12332 echo "$as_me:$LINENO: result: $withval" >&5
12333 echo "${ECHO_T}$withval" >&6
12334 cat >>confdefs.h
<<\_ACEOF
12335 #define WITH_THREAD 1
12339 cat >>confdefs.h
<<\_ACEOF
12344 THREADOBJ
="Python/thread.o"
12346 echo "$as_me:$LINENO: result: no" >&5
12347 echo "${ECHO_T}no" >&6
12349 # Just looking for pthread_create in libpthread is not enough:
12350 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
12351 # So we really have to include pthread.h, and then link.
12353 LIBS
="$LIBS -lpthread"
12354 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
12355 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
12356 cat >conftest.
$ac_ext <<_ACEOF
12359 cat confdefs.h
>>conftest.
$ac_ext
12360 cat >>conftest.
$ac_ext <<_ACEOF
12361 /* end confdefs.h. */
12362 #include <pthread.h>
12364 void * start_routine (void *arg) { exit (0); }
12369 pthread_create (NULL, NULL, start_routine, NULL)
12374 rm -f conftest.
$ac_objext conftest
$ac_exeext
12375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12376 (eval $ac_link) 2>conftest.er1
12378 grep -v '^ *+' conftest.er1
>conftest.err
12380 cat conftest.err
>&5
12381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12382 (exit $ac_status); } &&
12383 { ac_try
='test -z "$ac_c_werror_flag"
12384 || test ! -s conftest.err'
12385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12386 (eval $ac_try) 2>&5
12388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12389 (exit $ac_status); }; } &&
12390 { ac_try
='test -s conftest$ac_exeext'
12391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12392 (eval $ac_try) 2>&5
12394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12395 (exit $ac_status); }; }; then
12397 echo "$as_me:$LINENO: result: yes" >&5
12398 echo "${ECHO_T}yes" >&6
12399 cat >>confdefs.h
<<\_ACEOF
12400 #define WITH_THREAD 1
12404 THREADOBJ
="Python/thread.o"
12406 echo "$as_me: failed program was:" >&5
12407 sed 's/^/| /' conftest.
$ac_ext >&5
12411 echo "$as_me:$LINENO: checking for pthread_detach" >&5
12412 echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6
12413 if test "${ac_cv_func_pthread_detach+set}" = set; then
12414 echo $ECHO_N "(cached) $ECHO_C" >&6
12416 cat >conftest.
$ac_ext <<_ACEOF
12419 cat confdefs.h
>>conftest.
$ac_ext
12420 cat >>conftest.
$ac_ext <<_ACEOF
12421 /* end confdefs.h. */
12422 /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach.
12423 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12424 #define pthread_detach innocuous_pthread_detach
12426 /* System header to define __stub macros and hopefully few prototypes,
12427 which can conflict with char pthread_detach (); below.
12428 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12429 <limits.h> exists even on freestanding compilers. */
12432 # include <limits.h>
12434 # include <assert.h>
12437 #undef pthread_detach
12439 /* Override any gcc2 internal prototype to avoid an error. */
12444 /* We use char because int might match the return type of a gcc2
12445 builtin and then its argument prototype would still apply. */
12446 char pthread_detach ();
12447 /* The GNU C library defines this for functions which it implements
12448 to always fail with ENOSYS. Some functions are actually named
12449 something starting with __ and the normal name is an alias. */
12450 #if defined (__stub_pthread_detach) || defined (__stub___pthread_detach)
12453 char (*f) () = pthread_detach;
12462 return f != pthread_detach;
12467 rm -f conftest.
$ac_objext conftest
$ac_exeext
12468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12469 (eval $ac_link) 2>conftest.er1
12471 grep -v '^ *+' conftest.er1
>conftest.err
12473 cat conftest.err
>&5
12474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12475 (exit $ac_status); } &&
12476 { ac_try
='test -z "$ac_c_werror_flag"
12477 || test ! -s conftest.err'
12478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12479 (eval $ac_try) 2>&5
12481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12482 (exit $ac_status); }; } &&
12483 { ac_try
='test -s conftest$ac_exeext'
12484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12485 (eval $ac_try) 2>&5
12487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12488 (exit $ac_status); }; }; then
12489 ac_cv_func_pthread_detach
=yes
12491 echo "$as_me: failed program was:" >&5
12492 sed 's/^/| /' conftest.
$ac_ext >&5
12494 ac_cv_func_pthread_detach
=no
12496 rm -f conftest.err conftest.
$ac_objext \
12497 conftest
$ac_exeext conftest.
$ac_ext
12499 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
12500 echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6
12501 if test $ac_cv_func_pthread_detach = yes; then
12502 cat >>confdefs.h
<<\_ACEOF
12503 #define WITH_THREAD 1
12507 THREADOBJ
="Python/thread.o"
12510 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
12511 echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
12512 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6
12513 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
12514 echo $ECHO_N "(cached) $ECHO_C" >&6
12516 echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
12517 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6
12519 # Is the header compilable?
12520 echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
12521 echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6
12522 cat >conftest.
$ac_ext <<_ACEOF
12525 cat confdefs.h
>>conftest.
$ac_ext
12526 cat >>conftest.
$ac_ext <<_ACEOF
12527 /* end confdefs.h. */
12528 $ac_includes_default
12529 #include <atheos/threads.h>
12531 rm -f conftest.
$ac_objext
12532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12533 (eval $ac_compile) 2>conftest.er1
12535 grep -v '^ *+' conftest.er1
>conftest.err
12537 cat conftest.err
>&5
12538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539 (exit $ac_status); } &&
12540 { ac_try
='test -z "$ac_c_werror_flag"
12541 || test ! -s conftest.err'
12542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12543 (eval $ac_try) 2>&5
12545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12546 (exit $ac_status); }; } &&
12547 { ac_try
='test -s conftest.$ac_objext'
12548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12549 (eval $ac_try) 2>&5
12551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12552 (exit $ac_status); }; }; then
12553 ac_header_compiler
=yes
12555 echo "$as_me: failed program was:" >&5
12556 sed 's/^/| /' conftest.
$ac_ext >&5
12558 ac_header_compiler
=no
12560 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12561 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12562 echo "${ECHO_T}$ac_header_compiler" >&6
12564 # Is the header present?
12565 echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
12566 echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6
12567 cat >conftest.
$ac_ext <<_ACEOF
12570 cat confdefs.h
>>conftest.
$ac_ext
12571 cat >>conftest.
$ac_ext <<_ACEOF
12572 /* end confdefs.h. */
12573 #include <atheos/threads.h>
12575 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12576 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12578 grep -v '^ *+' conftest.er1
>conftest.err
12580 cat conftest.err
>&5
12581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12582 (exit $ac_status); } >/dev
/null
; then
12583 if test -s conftest.err
; then
12584 ac_cpp_err
=$ac_c_preproc_warn_flag
12585 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12592 if test -z "$ac_cpp_err"; then
12593 ac_header_preproc
=yes
12595 echo "$as_me: failed program was:" >&5
12596 sed 's/^/| /' conftest.
$ac_ext >&5
12598 ac_header_preproc
=no
12600 rm -f conftest.err conftest.
$ac_ext
12601 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12602 echo "${ECHO_T}$ac_header_preproc" >&6
12604 # So? What about this header?
12605 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12607 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
12608 echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12609 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5
12610 echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;}
12611 ac_header_preproc
=yes
12614 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
12615 echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
12616 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
12617 echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
12618 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5
12619 echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;}
12620 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5
12621 echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;}
12622 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
12623 echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;}
12624 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5
12625 echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;}
12628 ## ------------------------------------------------ ##
12629 ## Report this to http://www.python.org/python-bugs ##
12630 ## ------------------------------------------------ ##
12633 sed "s/^/$as_me: WARNING: /" >&2
12636 echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
12637 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6
12638 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
12639 echo $ECHO_N "(cached) $ECHO_C" >&6
12641 ac_cv_header_atheos_threads_h
=$ac_header_preproc
12643 echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
12644 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6
12647 if test $ac_cv_header_atheos_threads_h = yes; then
12648 cat >>confdefs.h
<<\_ACEOF
12649 #define WITH_THREAD 1
12653 cat >>confdefs.h
<<\_ACEOF
12654 #define ATHEOS_THREADS 1
12657 THREADOBJ
="Python/thread.o"
12660 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
12661 echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
12662 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6
12663 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
12664 echo $ECHO_N "(cached) $ECHO_C" >&6
12666 echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
12667 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6
12669 # Is the header compilable?
12670 echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5
12671 echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6
12672 cat >conftest.
$ac_ext <<_ACEOF
12675 cat confdefs.h
>>conftest.
$ac_ext
12676 cat >>conftest.
$ac_ext <<_ACEOF
12677 /* end confdefs.h. */
12678 $ac_includes_default
12679 #include <kernel/OS.h>
12681 rm -f conftest.
$ac_objext
12682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12683 (eval $ac_compile) 2>conftest.er1
12685 grep -v '^ *+' conftest.er1
>conftest.err
12687 cat conftest.err
>&5
12688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12689 (exit $ac_status); } &&
12690 { ac_try
='test -z "$ac_c_werror_flag"
12691 || test ! -s conftest.err'
12692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12693 (eval $ac_try) 2>&5
12695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12696 (exit $ac_status); }; } &&
12697 { ac_try
='test -s conftest.$ac_objext'
12698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12699 (eval $ac_try) 2>&5
12701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12702 (exit $ac_status); }; }; then
12703 ac_header_compiler
=yes
12705 echo "$as_me: failed program was:" >&5
12706 sed 's/^/| /' conftest.
$ac_ext >&5
12708 ac_header_compiler
=no
12710 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12711 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12712 echo "${ECHO_T}$ac_header_compiler" >&6
12714 # Is the header present?
12715 echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5
12716 echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6
12717 cat >conftest.
$ac_ext <<_ACEOF
12720 cat confdefs.h
>>conftest.
$ac_ext
12721 cat >>conftest.
$ac_ext <<_ACEOF
12722 /* end confdefs.h. */
12723 #include <kernel/OS.h>
12725 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12726 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12728 grep -v '^ *+' conftest.er1
>conftest.err
12730 cat conftest.err
>&5
12731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12732 (exit $ac_status); } >/dev
/null
; then
12733 if test -s conftest.err
; then
12734 ac_cpp_err
=$ac_c_preproc_warn_flag
12735 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12742 if test -z "$ac_cpp_err"; then
12743 ac_header_preproc
=yes
12745 echo "$as_me: failed program was:" >&5
12746 sed 's/^/| /' conftest.
$ac_ext >&5
12748 ac_header_preproc
=no
12750 rm -f conftest.err conftest.
$ac_ext
12751 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12752 echo "${ECHO_T}$ac_header_preproc" >&6
12754 # So? What about this header?
12755 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12757 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5
12758 echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12759 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5
12760 echo "$as_me: WARNING: kernel/OS.h: proceeding with the compiler's result" >&2;}
12761 ac_header_preproc
=yes
12764 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5
12765 echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;}
12766 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5
12767 echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;}
12768 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5
12769 echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;}
12770 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5
12771 echo "$as_me: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&2;}
12772 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5
12773 echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;}
12774 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5
12775 echo "$as_me: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&2;}
12778 ## ------------------------------------------------ ##
12779 ## Report this to http://www.python.org/python-bugs ##
12780 ## ------------------------------------------------ ##
12783 sed "s/^/$as_me: WARNING: /" >&2
12786 echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
12787 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6
12788 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
12789 echo $ECHO_N "(cached) $ECHO_C" >&6
12791 ac_cv_header_kernel_OS_h
=$ac_header_preproc
12793 echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
12794 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6
12797 if test $ac_cv_header_kernel_OS_h = yes; then
12798 cat >>confdefs.h
<<\_ACEOF
12799 #define WITH_THREAD 1
12803 cat >>confdefs.h
<<\_ACEOF
12804 #define BEOS_THREADS 1
12807 THREADOBJ
="Python/thread.o"
12810 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
12811 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
12812 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
12813 echo $ECHO_N "(cached) $ECHO_C" >&6
12815 ac_check_lib_save_LIBS
=$LIBS
12816 LIBS
="-lpthreads $LIBS"
12817 cat >conftest.
$ac_ext <<_ACEOF
12820 cat confdefs.h
>>conftest.
$ac_ext
12821 cat >>conftest.
$ac_ext <<_ACEOF
12822 /* end confdefs.h. */
12824 /* Override any gcc2 internal prototype to avoid an error. */
12828 /* We use char because int might match the return type of a gcc2
12829 builtin and then its argument prototype would still apply. */
12830 char pthread_create ();
12839 rm -f conftest.
$ac_objext conftest
$ac_exeext
12840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12841 (eval $ac_link) 2>conftest.er1
12843 grep -v '^ *+' conftest.er1
>conftest.err
12845 cat conftest.err
>&5
12846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12847 (exit $ac_status); } &&
12848 { ac_try
='test -z "$ac_c_werror_flag"
12849 || test ! -s conftest.err'
12850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12851 (eval $ac_try) 2>&5
12853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12854 (exit $ac_status); }; } &&
12855 { ac_try
='test -s conftest$ac_exeext'
12856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12857 (eval $ac_try) 2>&5
12859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12860 (exit $ac_status); }; }; then
12861 ac_cv_lib_pthreads_pthread_create
=yes
12863 echo "$as_me: failed program was:" >&5
12864 sed 's/^/| /' conftest.
$ac_ext >&5
12866 ac_cv_lib_pthreads_pthread_create
=no
12868 rm -f conftest.err conftest.
$ac_objext \
12869 conftest
$ac_exeext conftest.
$ac_ext
12870 LIBS
=$ac_check_lib_save_LIBS
12872 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
12873 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
12874 if test $ac_cv_lib_pthreads_pthread_create = yes; then
12875 cat >>confdefs.h
<<\_ACEOF
12876 #define WITH_THREAD 1
12880 LIBS
="$LIBS -lpthreads"
12881 THREADOBJ
="Python/thread.o"
12884 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
12885 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
12886 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
12887 echo $ECHO_N "(cached) $ECHO_C" >&6
12889 ac_check_lib_save_LIBS
=$LIBS
12891 cat >conftest.
$ac_ext <<_ACEOF
12894 cat confdefs.h
>>conftest.
$ac_ext
12895 cat >>conftest.
$ac_ext <<_ACEOF
12896 /* end confdefs.h. */
12898 /* Override any gcc2 internal prototype to avoid an error. */
12902 /* We use char because int might match the return type of a gcc2
12903 builtin and then its argument prototype would still apply. */
12904 char pthread_create ();
12913 rm -f conftest.
$ac_objext conftest
$ac_exeext
12914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12915 (eval $ac_link) 2>conftest.er1
12917 grep -v '^ *+' conftest.er1
>conftest.err
12919 cat conftest.err
>&5
12920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12921 (exit $ac_status); } &&
12922 { ac_try
='test -z "$ac_c_werror_flag"
12923 || test ! -s conftest.err'
12924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12925 (eval $ac_try) 2>&5
12927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12928 (exit $ac_status); }; } &&
12929 { ac_try
='test -s conftest$ac_exeext'
12930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12931 (eval $ac_try) 2>&5
12933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12934 (exit $ac_status); }; }; then
12935 ac_cv_lib_c_r_pthread_create
=yes
12937 echo "$as_me: failed program was:" >&5
12938 sed 's/^/| /' conftest.
$ac_ext >&5
12940 ac_cv_lib_c_r_pthread_create
=no
12942 rm -f conftest.err conftest.
$ac_objext \
12943 conftest
$ac_exeext conftest.
$ac_ext
12944 LIBS
=$ac_check_lib_save_LIBS
12946 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
12947 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
12948 if test $ac_cv_lib_c_r_pthread_create = yes; then
12949 cat >>confdefs.h
<<\_ACEOF
12950 #define WITH_THREAD 1
12955 THREADOBJ
="Python/thread.o"
12958 echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
12959 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6
12960 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
12961 echo $ECHO_N "(cached) $ECHO_C" >&6
12963 ac_check_lib_save_LIBS
=$LIBS
12964 LIBS
="-lpthread $LIBS"
12965 cat >conftest.
$ac_ext <<_ACEOF
12968 cat confdefs.h
>>conftest.
$ac_ext
12969 cat >>conftest.
$ac_ext <<_ACEOF
12970 /* end confdefs.h. */
12972 /* Override any gcc2 internal prototype to avoid an error. */
12976 /* We use char because int might match the return type of a gcc2
12977 builtin and then its argument prototype would still apply. */
12978 char __pthread_create_system ();
12982 __pthread_create_system ();
12987 rm -f conftest.
$ac_objext conftest
$ac_exeext
12988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12989 (eval $ac_link) 2>conftest.er1
12991 grep -v '^ *+' conftest.er1
>conftest.err
12993 cat conftest.err
>&5
12994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12995 (exit $ac_status); } &&
12996 { ac_try
='test -z "$ac_c_werror_flag"
12997 || test ! -s conftest.err'
12998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12999 (eval $ac_try) 2>&5
13001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13002 (exit $ac_status); }; } &&
13003 { ac_try
='test -s conftest$ac_exeext'
13004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13005 (eval $ac_try) 2>&5
13007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13008 (exit $ac_status); }; }; then
13009 ac_cv_lib_pthread___pthread_create_system
=yes
13011 echo "$as_me: failed program was:" >&5
13012 sed 's/^/| /' conftest.
$ac_ext >&5
13014 ac_cv_lib_pthread___pthread_create_system
=no
13016 rm -f conftest.err conftest.
$ac_objext \
13017 conftest
$ac_exeext conftest.
$ac_ext
13018 LIBS
=$ac_check_lib_save_LIBS
13020 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
13021 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6
13022 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
13023 cat >>confdefs.h
<<\_ACEOF
13024 #define WITH_THREAD 1
13028 LIBS
="$LIBS -lpthread"
13029 THREADOBJ
="Python/thread.o"
13032 echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
13033 echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6
13034 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
13035 echo $ECHO_N "(cached) $ECHO_C" >&6
13037 ac_check_lib_save_LIBS
=$LIBS
13039 cat >conftest.
$ac_ext <<_ACEOF
13042 cat confdefs.h
>>conftest.
$ac_ext
13043 cat >>conftest.
$ac_ext <<_ACEOF
13044 /* end confdefs.h. */
13046 /* Override any gcc2 internal prototype to avoid an error. */
13050 /* We use char because int might match the return type of a gcc2
13051 builtin and then its argument prototype would still apply. */
13052 char pthread_create ();
13061 rm -f conftest.
$ac_objext conftest
$ac_exeext
13062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13063 (eval $ac_link) 2>conftest.er1
13065 grep -v '^ *+' conftest.er1
>conftest.err
13067 cat conftest.err
>&5
13068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13069 (exit $ac_status); } &&
13070 { ac_try
='test -z "$ac_c_werror_flag"
13071 || test ! -s conftest.err'
13072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13073 (eval $ac_try) 2>&5
13075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13076 (exit $ac_status); }; } &&
13077 { ac_try
='test -s conftest$ac_exeext'
13078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13079 (eval $ac_try) 2>&5
13081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13082 (exit $ac_status); }; }; then
13083 ac_cv_lib_cma_pthread_create
=yes
13085 echo "$as_me: failed program was:" >&5
13086 sed 's/^/| /' conftest.
$ac_ext >&5
13088 ac_cv_lib_cma_pthread_create
=no
13090 rm -f conftest.err conftest.
$ac_objext \
13091 conftest
$ac_exeext conftest.
$ac_ext
13092 LIBS
=$ac_check_lib_save_LIBS
13094 echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
13095 echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6
13096 if test $ac_cv_lib_cma_pthread_create = yes; then
13097 cat >>confdefs.h
<<\_ACEOF
13098 #define WITH_THREAD 1
13103 THREADOBJ
="Python/thread.o"
13106 USE_THREAD_MODULE
="#"
13125 rm -f conftest.err conftest.
$ac_objext \
13126 conftest
$ac_exeext conftest.
$ac_ext
13135 echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
13136 echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6
13137 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
13138 echo $ECHO_N "(cached) $ECHO_C" >&6
13140 ac_check_lib_save_LIBS
=$LIBS
13142 cat >conftest.
$ac_ext <<_ACEOF
13145 cat confdefs.h
>>conftest.
$ac_ext
13146 cat >>conftest.
$ac_ext <<_ACEOF
13147 /* end confdefs.h. */
13149 /* Override any gcc2 internal prototype to avoid an error. */
13153 /* We use char because int might match the return type of a gcc2
13154 builtin and then its argument prototype would still apply. */
13164 rm -f conftest.
$ac_objext conftest
$ac_exeext
13165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13166 (eval $ac_link) 2>conftest.er1
13168 grep -v '^ *+' conftest.er1
>conftest.err
13170 cat conftest.err
>&5
13171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13172 (exit $ac_status); } &&
13173 { ac_try
='test -z "$ac_c_werror_flag"
13174 || test ! -s conftest.err'
13175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13176 (eval $ac_try) 2>&5
13178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13179 (exit $ac_status); }; } &&
13180 { ac_try
='test -s conftest$ac_exeext'
13181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13182 (eval $ac_try) 2>&5
13184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13185 (exit $ac_status); }; }; then
13186 ac_cv_lib_mpc_usconfig
=yes
13188 echo "$as_me: failed program was:" >&5
13189 sed 's/^/| /' conftest.
$ac_ext >&5
13191 ac_cv_lib_mpc_usconfig
=no
13193 rm -f conftest.err conftest.
$ac_objext \
13194 conftest
$ac_exeext conftest.
$ac_ext
13195 LIBS
=$ac_check_lib_save_LIBS
13197 echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
13198 echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6
13199 if test $ac_cv_lib_mpc_usconfig = yes; then
13200 cat >>confdefs.h
<<\_ACEOF
13201 #define WITH_THREAD 1
13205 THREADOBJ
="Python/thread.o"
13206 USE_THREAD_MODULE
=""
13210 if test "$posix_threads" != "yes"; then
13211 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
13212 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
13213 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
13214 echo $ECHO_N "(cached) $ECHO_C" >&6
13216 ac_check_lib_save_LIBS
=$LIBS
13217 LIBS
="-lthread $LIBS"
13218 cat >conftest.
$ac_ext <<_ACEOF
13221 cat confdefs.h
>>conftest.
$ac_ext
13222 cat >>conftest.
$ac_ext <<_ACEOF
13223 /* end confdefs.h. */
13225 /* Override any gcc2 internal prototype to avoid an error. */
13229 /* We use char because int might match the return type of a gcc2
13230 builtin and then its argument prototype would still apply. */
13231 char thr_create ();
13240 rm -f conftest.
$ac_objext conftest
$ac_exeext
13241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13242 (eval $ac_link) 2>conftest.er1
13244 grep -v '^ *+' conftest.er1
>conftest.err
13246 cat conftest.err
>&5
13247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13248 (exit $ac_status); } &&
13249 { ac_try
='test -z "$ac_c_werror_flag"
13250 || test ! -s conftest.err'
13251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13252 (eval $ac_try) 2>&5
13254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13255 (exit $ac_status); }; } &&
13256 { ac_try
='test -s conftest$ac_exeext'
13257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13258 (eval $ac_try) 2>&5
13260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13261 (exit $ac_status); }; }; then
13262 ac_cv_lib_thread_thr_create
=yes
13264 echo "$as_me: failed program was:" >&5
13265 sed 's/^/| /' conftest.
$ac_ext >&5
13267 ac_cv_lib_thread_thr_create
=no
13269 rm -f conftest.err conftest.
$ac_objext \
13270 conftest
$ac_exeext conftest.
$ac_ext
13271 LIBS
=$ac_check_lib_save_LIBS
13273 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
13274 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
13275 if test $ac_cv_lib_thread_thr_create = yes; then
13276 cat >>confdefs.h
<<\_ACEOF
13277 #define WITH_THREAD 1
13280 LIBS
="$LIBS -lthread"
13281 THREADOBJ
="Python/thread.o"
13282 USE_THREAD_MODULE
=""
13287 if test "$USE_THREAD_MODULE" != "#"
13289 # If the above checks didn't disable threads, (at least) OSF1
13290 # needs this '-threads' argument during linking.
13291 case $ac_sys_system in
13292 OSF1
) LDLAST
=-threads;;
13297 if test "$posix_threads" = "yes"; then
13298 if test "$unistd_defines_pthreads" = "no"; then
13300 cat >>confdefs.h
<<\_ACEOF
13301 #define _POSIX_THREADS 1
13306 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
13307 case $ac_sys_system/$ac_sys_release in
13309 cat >>confdefs.h
<<\_ACEOF
13310 #define HAVE_PTHREAD_DESTRUCTOR 1
13315 cat >>confdefs.h
<<\_ACEOF
13316 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
13322 echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
13323 echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6
13324 if test "${ac_cv_pthread_system_supported+set}" = set; then
13325 echo $ECHO_N "(cached) $ECHO_C" >&6
13327 if test "$cross_compiling" = yes; then
13328 ac_cv_pthread_system_supported
=no
13330 cat >conftest.
$ac_ext <<_ACEOF
13333 cat confdefs.h
>>conftest.
$ac_ext
13334 cat >>conftest.
$ac_ext <<_ACEOF
13335 /* end confdefs.h. */
13336 #include <pthread.h>
13337 void *foo(void *parm) {
13341 pthread_attr_t attr;
13343 if (pthread_attr_init(&attr)) exit(-1);
13344 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
13345 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
13349 rm -f conftest
$ac_exeext
13350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13351 (eval $ac_link) 2>&5
13353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13354 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13356 (eval $ac_try) 2>&5
13358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13359 (exit $ac_status); }; }; then
13360 ac_cv_pthread_system_supported
=yes
13362 echo "$as_me: program exited with status $ac_status" >&5
13363 echo "$as_me: failed program was:" >&5
13364 sed 's/^/| /' conftest.
$ac_ext >&5
13366 ( exit $ac_status )
13367 ac_cv_pthread_system_supported
=no
13369 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13374 echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
13375 echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6
13376 if test "$ac_cv_pthread_system_supported" = "yes"; then
13378 cat >>confdefs.h
<<\_ACEOF
13379 #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
13384 for ac_func
in pthread_sigmask
13386 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13387 echo "$as_me:$LINENO: checking for $ac_func" >&5
13388 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13389 if eval "test \"\${$as_ac_var+set}\" = set"; then
13390 echo $ECHO_N "(cached) $ECHO_C" >&6
13392 cat >conftest.
$ac_ext <<_ACEOF
13395 cat confdefs.h
>>conftest.
$ac_ext
13396 cat >>conftest.
$ac_ext <<_ACEOF
13397 /* end confdefs.h. */
13398 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13399 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13400 #define $ac_func innocuous_$ac_func
13402 /* System header to define __stub macros and hopefully few prototypes,
13403 which can conflict with char $ac_func (); below.
13404 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13405 <limits.h> exists even on freestanding compilers. */
13408 # include <limits.h>
13410 # include <assert.h>
13415 /* Override any gcc2 internal prototype to avoid an error. */
13420 /* We use char because int might match the return type of a gcc2
13421 builtin and then its argument prototype would still apply. */
13423 /* The GNU C library defines this for functions which it implements
13424 to always fail with ENOSYS. Some functions are actually named
13425 something starting with __ and the normal name is an alias. */
13426 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13429 char (*f) () = $ac_func;
13438 return f != $ac_func;
13443 rm -f conftest.
$ac_objext conftest
$ac_exeext
13444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13445 (eval $ac_link) 2>conftest.er1
13447 grep -v '^ *+' conftest.er1
>conftest.err
13449 cat conftest.err
>&5
13450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13451 (exit $ac_status); } &&
13452 { ac_try
='test -z "$ac_c_werror_flag"
13453 || test ! -s conftest.err'
13454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13455 (eval $ac_try) 2>&5
13457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13458 (exit $ac_status); }; } &&
13459 { ac_try
='test -s conftest$ac_exeext'
13460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13461 (eval $ac_try) 2>&5
13463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13464 (exit $ac_status); }; }; then
13465 eval "$as_ac_var=yes"
13467 echo "$as_me: failed program was:" >&5
13468 sed 's/^/| /' conftest.
$ac_ext >&5
13470 eval "$as_ac_var=no"
13472 rm -f conftest.err conftest.
$ac_objext \
13473 conftest
$ac_exeext conftest.
$ac_ext
13475 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13476 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13477 if test `eval echo '${'$as_ac_var'}'` = yes; then
13478 cat >>confdefs.h
<<_ACEOF
13479 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13481 case $ac_sys_system in
13484 cat >>confdefs.h
<<\_ACEOF
13485 #define HAVE_BROKEN_PTHREAD_SIGMASK 1
13496 # Check for enable-ipv6
13499 echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
13500 echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6
13501 # Check whether --enable-ipv6 or --disable-ipv6 was given.
13502 if test "${enable_ipv6+set}" = set; then
13503 enableval
="$enable_ipv6"
13504 case "$enableval" in
13506 echo "$as_me:$LINENO: result: no" >&5
13507 echo "${ECHO_T}no" >&6
13510 *) echo "$as_me:$LINENO: result: yes" >&5
13511 echo "${ECHO_T}yes" >&6
13512 cat >>confdefs.h
<<\_ACEOF
13513 #define ENABLE_IPV6 1
13521 if test "$cross_compiling" = yes; then
13522 echo "$as_me:$LINENO: result: no" >&5
13523 echo "${ECHO_T}no" >&6
13527 cat >conftest.
$ac_ext <<_ACEOF
13530 cat confdefs.h
>>conftest.
$ac_ext
13531 cat >>conftest.
$ac_ext <<_ACEOF
13532 /* end confdefs.h. */
13533 /* AF_INET6 available check */
13534 #include <sys/types.h>
13535 #include <sys/socket.h>
13538 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
13545 rm -f conftest
$ac_exeext
13546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13547 (eval $ac_link) 2>&5
13549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13550 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13552 (eval $ac_try) 2>&5
13554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13555 (exit $ac_status); }; }; then
13556 echo "$as_me:$LINENO: result: yes" >&5
13557 echo "${ECHO_T}yes" >&6
13560 echo "$as_me: program exited with status $ac_status" >&5
13561 echo "$as_me: failed program was:" >&5
13562 sed 's/^/| /' conftest.
$ac_ext >&5
13564 ( exit $ac_status )
13565 echo "$as_me:$LINENO: result: no" >&5
13566 echo "${ECHO_T}no" >&6
13569 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13572 if test "$ipv6" = "yes"; then
13573 echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
13574 echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6
13575 cat >conftest.
$ac_ext <<_ACEOF
13578 cat confdefs.h
>>conftest.
$ac_ext
13579 cat >>conftest.
$ac_ext <<_ACEOF
13580 /* end confdefs.h. */
13581 #include <sys/types.h>
13582 #include <netinet/in.h>
13586 struct sockaddr_in6 x;
13592 rm -f conftest.
$ac_objext
13593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13594 (eval $ac_compile) 2>conftest.er1
13596 grep -v '^ *+' conftest.er1
>conftest.err
13598 cat conftest.err
>&5
13599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13600 (exit $ac_status); } &&
13601 { ac_try
='test -z "$ac_c_werror_flag"
13602 || test ! -s conftest.err'
13603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13604 (eval $ac_try) 2>&5
13606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13607 (exit $ac_status); }; } &&
13608 { ac_try
='test -s conftest.$ac_objext'
13609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13610 (eval $ac_try) 2>&5
13612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13613 (exit $ac_status); }; }; then
13614 echo "$as_me:$LINENO: result: yes" >&5
13615 echo "${ECHO_T}yes" >&6
13618 echo "$as_me: failed program was:" >&5
13619 sed 's/^/| /' conftest.
$ac_ext >&5
13621 echo "$as_me:$LINENO: result: no" >&5
13622 echo "${ECHO_T}no" >&6
13625 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13628 if test "$ipv6" = "yes"; then
13629 cat >>confdefs.h
<<\_ACEOF
13630 #define ENABLE_IPV6 1
13641 if test "$ipv6" = "yes"; then
13642 echo "$as_me:$LINENO: checking ipv6 stack type" >&5
13643 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6
13644 for i
in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta
;
13648 cat >conftest.
$ac_ext <<_ACEOF
13651 cat confdefs.h
>>conftest.
$ac_ext
13652 cat >>conftest.
$ac_ext <<_ACEOF
13653 /* end confdefs.h. */
13655 #include <netinet/in.h>
13656 #ifdef IPV6_INRIA_VERSION
13660 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13661 $EGREP "yes" >/dev
/null
2>&1; then
13668 cat >conftest.
$ac_ext <<_ACEOF
13671 cat confdefs.h
>>conftest.
$ac_ext
13672 cat >>conftest.
$ac_ext <<_ACEOF
13673 /* end confdefs.h. */
13675 #include <netinet/in.h>
13680 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13681 $EGREP "yes" >/dev
/null
2>&1; then
13684 ipv6libdir
=/usr
/local
/v
6/lib
13691 cat >conftest.
$ac_ext <<_ACEOF
13694 cat confdefs.h
>>conftest.
$ac_ext
13695 cat >>conftest.
$ac_ext <<_ACEOF
13696 /* end confdefs.h. */
13698 #include <features.h>
13699 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
13703 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13704 $EGREP "yes" >/dev
/null
2>&1; then
13712 if test -d /usr
/inet6
; then
13715 ipv6libdir
=/usr
/inet
6/lib
13716 BASECFLAGS
="-I/usr/inet6/include $BASECFLAGS"
13720 if test -f /etc
/netconfig
; then
13721 if /usr
/xpg
4/bin
/grep -q tcp6
/etc
/netconfig
; then
13728 cat >conftest.
$ac_ext <<_ACEOF
13731 cat confdefs.h
>>conftest.
$ac_ext
13732 cat >>conftest.
$ac_ext <<_ACEOF
13733 /* end confdefs.h. */
13735 #include <sys/param.h>
13736 #ifdef _TOSHIBA_INET6
13740 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13741 $EGREP "yes" >/dev
/null
2>&1; then
13744 ipv6libdir
=/usr
/local
/v
6/lib
13750 cat >conftest.
$ac_ext <<_ACEOF
13753 cat confdefs.h
>>conftest.
$ac_ext
13754 cat >>conftest.
$ac_ext <<_ACEOF
13755 /* end confdefs.h. */
13757 #include </usr/local/v6/include/sys/v6config.h>
13762 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13763 $EGREP "yes" >/dev
/null
2>&1; then
13766 ipv6libdir
=/usr
/local
/v
6/lib
;
13767 BASECFLAGS
="-I/usr/local/v6/include $BASECFLAGS"
13773 cat >conftest.
$ac_ext <<_ACEOF
13776 cat confdefs.h
>>conftest.
$ac_ext
13777 cat >>conftest.
$ac_ext <<_ACEOF
13778 /* end confdefs.h. */
13780 #include <sys/param.h>
13781 #ifdef _ZETA_MINAMI_INET6
13785 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13786 $EGREP "yes" >/dev
/null
2>&1; then
13789 ipv6libdir
=/usr
/local
/v
6/lib
13795 if test "$ipv6type" != "unknown"; then
13799 echo "$as_me:$LINENO: result: $ipv6type" >&5
13800 echo "${ECHO_T}$ipv6type" >&6
13803 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
13804 if test -d $ipv6libdir -a -f $ipv6libdir/lib
$ipv6lib.a
; then
13805 LIBS
="-L$ipv6libdir -l$ipv6lib $LIBS"
13806 echo "using lib$ipv6lib"
13808 if test $ipv6trylibc = "yes"; then
13811 echo 'Fatal: no $ipv6lib library found. cannot continue.'
13812 echo "You need to fetch lib$ipv6lib.a from appropriate"
13813 echo 'ipv6 kit and compile beforehand.'
13819 # Check for --with-doc-strings
13820 echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
13821 echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6
13823 # Check whether --with-doc-strings or --without-doc-strings was given.
13824 if test "${with_doc_strings+set}" = set; then
13825 withval
="$with_doc_strings"
13829 if test -z "$with_doc_strings"
13830 then with_doc_strings
="yes"
13832 if test "$with_doc_strings" != "no"
13835 cat >>confdefs.h
<<\_ACEOF
13836 #define WITH_DOC_STRINGS 1
13840 echo "$as_me:$LINENO: result: $with_doc_strings" >&5
13841 echo "${ECHO_T}$with_doc_strings" >&6
13843 # Check for Python-specific malloc support
13844 echo "$as_me:$LINENO: checking for --with-tsc" >&5
13845 echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6
13847 # Check whether --with-tsc or --without-tsc was given.
13848 if test "${with_tsc+set}" = set; then
13849 withval
="$with_tsc"
13851 if test "$withval" != no
13854 cat >>confdefs.h
<<\_ACEOF
13858 echo "$as_me:$LINENO: result: yes" >&5
13859 echo "${ECHO_T}yes" >&6
13860 else echo "$as_me:$LINENO: result: no" >&5
13861 echo "${ECHO_T}no" >&6
13864 echo "$as_me:$LINENO: result: no" >&5
13865 echo "${ECHO_T}no" >&6
13868 # Check for Python-specific malloc support
13869 echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
13870 echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6
13872 # Check whether --with-pymalloc or --without-pymalloc was given.
13873 if test "${with_pymalloc+set}" = set; then
13874 withval
="$with_pymalloc"
13878 if test -z "$with_pymalloc"
13879 then with_pymalloc
="yes"
13881 if test "$with_pymalloc" != "no"
13884 cat >>confdefs.h
<<\_ACEOF
13885 #define WITH_PYMALLOC 1
13889 echo "$as_me:$LINENO: result: $with_pymalloc" >&5
13890 echo "${ECHO_T}$with_pymalloc" >&6
13892 # Check for --with-wctype-functions
13893 echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
13894 echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6
13896 # Check whether --with-wctype-functions or --without-wctype-functions was given.
13897 if test "${with_wctype_functions+set}" = set; then
13898 withval
="$with_wctype_functions"
13900 if test "$withval" != no
13903 cat >>confdefs.h
<<\_ACEOF
13904 #define WANT_WCTYPE_FUNCTIONS 1
13907 echo "$as_me:$LINENO: result: yes" >&5
13908 echo "${ECHO_T}yes" >&6
13909 else echo "$as_me:$LINENO: result: no" >&5
13910 echo "${ECHO_T}no" >&6
13913 echo "$as_me:$LINENO: result: no" >&5
13914 echo "${ECHO_T}no" >&6
13917 # -I${DLINCLDIR} is added to the compile rule for importdl.o
13921 # the dlopen() function means we might want to use dynload_shlib.o. some
13922 # platforms, such as AIX, have dlopen(), but don't want to use it.
13924 for ac_func
in dlopen
13926 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13927 echo "$as_me:$LINENO: checking for $ac_func" >&5
13928 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13929 if eval "test \"\${$as_ac_var+set}\" = set"; then
13930 echo $ECHO_N "(cached) $ECHO_C" >&6
13932 cat >conftest.
$ac_ext <<_ACEOF
13935 cat confdefs.h
>>conftest.
$ac_ext
13936 cat >>conftest.
$ac_ext <<_ACEOF
13937 /* end confdefs.h. */
13938 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13939 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13940 #define $ac_func innocuous_$ac_func
13942 /* System header to define __stub macros and hopefully few prototypes,
13943 which can conflict with char $ac_func (); below.
13944 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13945 <limits.h> exists even on freestanding compilers. */
13948 # include <limits.h>
13950 # include <assert.h>
13955 /* Override any gcc2 internal prototype to avoid an error. */
13960 /* We use char because int might match the return type of a gcc2
13961 builtin and then its argument prototype would still apply. */
13963 /* The GNU C library defines this for functions which it implements
13964 to always fail with ENOSYS. Some functions are actually named
13965 something starting with __ and the normal name is an alias. */
13966 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13969 char (*f) () = $ac_func;
13978 return f != $ac_func;
13983 rm -f conftest.
$ac_objext conftest
$ac_exeext
13984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13985 (eval $ac_link) 2>conftest.er1
13987 grep -v '^ *+' conftest.er1
>conftest.err
13989 cat conftest.err
>&5
13990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13991 (exit $ac_status); } &&
13992 { ac_try
='test -z "$ac_c_werror_flag"
13993 || test ! -s conftest.err'
13994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13995 (eval $ac_try) 2>&5
13997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13998 (exit $ac_status); }; } &&
13999 { ac_try
='test -s conftest$ac_exeext'
14000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14001 (eval $ac_try) 2>&5
14003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14004 (exit $ac_status); }; }; then
14005 eval "$as_ac_var=yes"
14007 echo "$as_me: failed program was:" >&5
14008 sed 's/^/| /' conftest.
$ac_ext >&5
14010 eval "$as_ac_var=no"
14012 rm -f conftest.err conftest.
$ac_objext \
14013 conftest
$ac_exeext conftest.
$ac_ext
14015 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14016 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14017 if test `eval echo '${'$as_ac_var'}'` = yes; then
14018 cat >>confdefs.h
<<_ACEOF
14019 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14026 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
14027 # loading of modules.
14029 echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
14030 echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6
14031 if test -z "$DYNLOADFILE"
14033 case $ac_sys_system/$ac_sys_release in
14034 AIX
*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
14035 if test "$ac_cv_func_dlopen" = yes
14036 then DYNLOADFILE
="dynload_shlib.o"
14037 else DYNLOADFILE
="dynload_aix.o"
14040 BeOS
*) DYNLOADFILE
="dynload_beos.o";;
14041 hp
*|HP
*) DYNLOADFILE
="dynload_hpux.o";;
14042 # Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
14043 Darwin
/[0156]\..
*) DYNLOADFILE
="dynload_next.o";;
14044 atheos
*) DYNLOADFILE
="dynload_atheos.o";;
14046 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
14047 # out any dynamic loading
14048 if test "$ac_cv_func_dlopen" = yes
14049 then DYNLOADFILE
="dynload_shlib.o"
14050 else DYNLOADFILE
="dynload_stub.o"
14055 echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
14056 echo "${ECHO_T}$DYNLOADFILE" >&6
14057 if test "$DYNLOADFILE" != "dynload_stub.o"
14060 cat >>confdefs.h
<<\_ACEOF
14061 #define HAVE_DYNAMIC_LOADING 1
14066 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
14069 echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
14070 echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6
14071 if test -z "$MACHDEP_OBJS"
14073 MACHDEP_OBJS
=$extra_machdep_objs
14075 MACHDEP_OBJS
="$MACHDEP_OBJS $extra_machdep_objs"
14077 echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
14078 echo "${ECHO_T}MACHDEP_OBJS" >&6
14080 # checks for library functions
14157 for ac_func
in alarm bind_textdomain_codeset chown
clock confstr ctermid \
14158 execv fork fpathconf ftime ftruncate \
14159 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
14160 getpriority getpwent getspnam getspent getsid getwd \
14161 kill killpg lchown lstat
mkfifo mknod mktime \
14162 mremap nice pathconf pause plock poll pthread_init \
14163 putenv readlink realpath \
14164 select setegid seteuid setgid \
14165 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
14166 sigaction siginterrupt sigrelse strftime \
14167 sysconf tcgetpgrp tcsetpgrp tempnam timegm
times tmpfile tmpnam tmpnam_r \
14168 truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty
14170 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14171 echo "$as_me:$LINENO: checking for $ac_func" >&5
14172 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14173 if eval "test \"\${$as_ac_var+set}\" = set"; then
14174 echo $ECHO_N "(cached) $ECHO_C" >&6
14176 cat >conftest.
$ac_ext <<_ACEOF
14179 cat confdefs.h
>>conftest.
$ac_ext
14180 cat >>conftest.
$ac_ext <<_ACEOF
14181 /* end confdefs.h. */
14182 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14183 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14184 #define $ac_func innocuous_$ac_func
14186 /* System header to define __stub macros and hopefully few prototypes,
14187 which can conflict with char $ac_func (); below.
14188 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14189 <limits.h> exists even on freestanding compilers. */
14192 # include <limits.h>
14194 # include <assert.h>
14199 /* Override any gcc2 internal prototype to avoid an error. */
14204 /* We use char because int might match the return type of a gcc2
14205 builtin and then its argument prototype would still apply. */
14207 /* The GNU C library defines this for functions which it implements
14208 to always fail with ENOSYS. Some functions are actually named
14209 something starting with __ and the normal name is an alias. */
14210 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14213 char (*f) () = $ac_func;
14222 return f != $ac_func;
14227 rm -f conftest.
$ac_objext conftest
$ac_exeext
14228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14229 (eval $ac_link) 2>conftest.er1
14231 grep -v '^ *+' conftest.er1
>conftest.err
14233 cat conftest.err
>&5
14234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14235 (exit $ac_status); } &&
14236 { ac_try
='test -z "$ac_c_werror_flag"
14237 || test ! -s conftest.err'
14238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14239 (eval $ac_try) 2>&5
14241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14242 (exit $ac_status); }; } &&
14243 { ac_try
='test -s conftest$ac_exeext'
14244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14245 (eval $ac_try) 2>&5
14247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14248 (exit $ac_status); }; }; then
14249 eval "$as_ac_var=yes"
14251 echo "$as_me: failed program was:" >&5
14252 sed 's/^/| /' conftest.
$ac_ext >&5
14254 eval "$as_ac_var=no"
14256 rm -f conftest.err conftest.
$ac_objext \
14257 conftest
$ac_exeext conftest.
$ac_ext
14259 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14260 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14261 if test `eval echo '${'$as_ac_var'}'` = yes; then
14262 cat >>confdefs.h
<<_ACEOF
14263 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14270 # For some functions, having a definition is not sufficient, since
14271 # we want to take their address.
14272 echo "$as_me:$LINENO: checking for chroot" >&5
14273 echo $ECHO_N "checking for chroot... $ECHO_C" >&6
14274 cat >conftest.
$ac_ext <<_ACEOF
14277 cat confdefs.h
>>conftest.
$ac_ext
14278 cat >>conftest.
$ac_ext <<_ACEOF
14279 /* end confdefs.h. */
14280 #include <unistd.h>
14289 rm -f conftest.
$ac_objext
14290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14291 (eval $ac_compile) 2>conftest.er1
14293 grep -v '^ *+' conftest.er1
>conftest.err
14295 cat conftest.err
>&5
14296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14297 (exit $ac_status); } &&
14298 { ac_try
='test -z "$ac_c_werror_flag"
14299 || test ! -s conftest.err'
14300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14301 (eval $ac_try) 2>&5
14303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14304 (exit $ac_status); }; } &&
14305 { ac_try
='test -s conftest.$ac_objext'
14306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14307 (eval $ac_try) 2>&5
14309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14310 (exit $ac_status); }; }; then
14312 cat >>confdefs.h
<<\_ACEOF
14313 #define HAVE_CHROOT 1
14316 echo "$as_me:$LINENO: result: yes" >&5
14317 echo "${ECHO_T}yes" >&6
14319 echo "$as_me: failed program was:" >&5
14320 sed 's/^/| /' conftest.
$ac_ext >&5
14322 echo "$as_me:$LINENO: result: no" >&5
14323 echo "${ECHO_T}no" >&6
14326 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14327 echo "$as_me:$LINENO: checking for link" >&5
14328 echo $ECHO_N "checking for link... $ECHO_C" >&6
14329 cat >conftest.
$ac_ext <<_ACEOF
14332 cat confdefs.h
>>conftest.
$ac_ext
14333 cat >>conftest.
$ac_ext <<_ACEOF
14334 /* end confdefs.h. */
14335 #include <unistd.h>
14344 rm -f conftest.
$ac_objext
14345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14346 (eval $ac_compile) 2>conftest.er1
14348 grep -v '^ *+' conftest.er1
>conftest.err
14350 cat conftest.err
>&5
14351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14352 (exit $ac_status); } &&
14353 { ac_try
='test -z "$ac_c_werror_flag"
14354 || test ! -s conftest.err'
14355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14356 (eval $ac_try) 2>&5
14358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14359 (exit $ac_status); }; } &&
14360 { ac_try
='test -s conftest.$ac_objext'
14361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14362 (eval $ac_try) 2>&5
14364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14365 (exit $ac_status); }; }; then
14367 cat >>confdefs.h
<<\_ACEOF
14368 #define HAVE_LINK 1
14371 echo "$as_me:$LINENO: result: yes" >&5
14372 echo "${ECHO_T}yes" >&6
14374 echo "$as_me: failed program was:" >&5
14375 sed 's/^/| /' conftest.
$ac_ext >&5
14377 echo "$as_me:$LINENO: result: no" >&5
14378 echo "${ECHO_T}no" >&6
14381 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14382 echo "$as_me:$LINENO: checking for symlink" >&5
14383 echo $ECHO_N "checking for symlink... $ECHO_C" >&6
14384 cat >conftest.
$ac_ext <<_ACEOF
14387 cat confdefs.h
>>conftest.
$ac_ext
14388 cat >>conftest.
$ac_ext <<_ACEOF
14389 /* end confdefs.h. */
14390 #include <unistd.h>
14399 rm -f conftest.
$ac_objext
14400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14401 (eval $ac_compile) 2>conftest.er1
14403 grep -v '^ *+' conftest.er1
>conftest.err
14405 cat conftest.err
>&5
14406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14407 (exit $ac_status); } &&
14408 { ac_try
='test -z "$ac_c_werror_flag"
14409 || test ! -s conftest.err'
14410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14411 (eval $ac_try) 2>&5
14413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14414 (exit $ac_status); }; } &&
14415 { ac_try
='test -s conftest.$ac_objext'
14416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14417 (eval $ac_try) 2>&5
14419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14420 (exit $ac_status); }; }; then
14422 cat >>confdefs.h
<<\_ACEOF
14423 #define HAVE_SYMLINK 1
14426 echo "$as_me:$LINENO: result: yes" >&5
14427 echo "${ECHO_T}yes" >&6
14429 echo "$as_me: failed program was:" >&5
14430 sed 's/^/| /' conftest.
$ac_ext >&5
14432 echo "$as_me:$LINENO: result: no" >&5
14433 echo "${ECHO_T}no" >&6
14436 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14437 echo "$as_me:$LINENO: checking for fchdir" >&5
14438 echo $ECHO_N "checking for fchdir... $ECHO_C" >&6
14439 cat >conftest.
$ac_ext <<_ACEOF
14442 cat confdefs.h
>>conftest.
$ac_ext
14443 cat >>conftest.
$ac_ext <<_ACEOF
14444 /* end confdefs.h. */
14445 #include <unistd.h>
14454 rm -f conftest.
$ac_objext
14455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14456 (eval $ac_compile) 2>conftest.er1
14458 grep -v '^ *+' conftest.er1
>conftest.err
14460 cat conftest.err
>&5
14461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14462 (exit $ac_status); } &&
14463 { ac_try
='test -z "$ac_c_werror_flag"
14464 || test ! -s conftest.err'
14465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14466 (eval $ac_try) 2>&5
14468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14469 (exit $ac_status); }; } &&
14470 { ac_try
='test -s conftest.$ac_objext'
14471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14472 (eval $ac_try) 2>&5
14474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14475 (exit $ac_status); }; }; then
14477 cat >>confdefs.h
<<\_ACEOF
14478 #define HAVE_FCHDIR 1
14481 echo "$as_me:$LINENO: result: yes" >&5
14482 echo "${ECHO_T}yes" >&6
14484 echo "$as_me: failed program was:" >&5
14485 sed 's/^/| /' conftest.
$ac_ext >&5
14487 echo "$as_me:$LINENO: result: no" >&5
14488 echo "${ECHO_T}no" >&6
14491 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14492 echo "$as_me:$LINENO: checking for fsync" >&5
14493 echo $ECHO_N "checking for fsync... $ECHO_C" >&6
14494 cat >conftest.
$ac_ext <<_ACEOF
14497 cat confdefs.h
>>conftest.
$ac_ext
14498 cat >>conftest.
$ac_ext <<_ACEOF
14499 /* end confdefs.h. */
14500 #include <unistd.h>
14509 rm -f conftest.
$ac_objext
14510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14511 (eval $ac_compile) 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_objext'
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_FSYNC 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 conftest.
$ac_ext
14547 echo "$as_me:$LINENO: checking for fdatasync" >&5
14548 echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6
14549 cat >conftest.
$ac_ext <<_ACEOF
14552 cat confdefs.h
>>conftest.
$ac_ext
14553 cat >>conftest.
$ac_ext <<_ACEOF
14554 /* end confdefs.h. */
14555 #include <unistd.h>
14564 rm -f conftest.
$ac_objext
14565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14566 (eval $ac_compile) 2>conftest.er1
14568 grep -v '^ *+' conftest.er1
>conftest.err
14570 cat conftest.err
>&5
14571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14572 (exit $ac_status); } &&
14573 { ac_try
='test -z "$ac_c_werror_flag"
14574 || test ! -s conftest.err'
14575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14576 (eval $ac_try) 2>&5
14578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14579 (exit $ac_status); }; } &&
14580 { ac_try
='test -s conftest.$ac_objext'
14581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14582 (eval $ac_try) 2>&5
14584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14585 (exit $ac_status); }; }; then
14587 cat >>confdefs.h
<<\_ACEOF
14588 #define HAVE_FDATASYNC 1
14591 echo "$as_me:$LINENO: result: yes" >&5
14592 echo "${ECHO_T}yes" >&6
14594 echo "$as_me: failed program was:" >&5
14595 sed 's/^/| /' conftest.
$ac_ext >&5
14597 echo "$as_me:$LINENO: result: no" >&5
14598 echo "${ECHO_T}no" >&6
14601 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14603 # On some systems (eg. FreeBSD 5), we would find a definition of the
14604 # functions ctermid_r, setgroups in the library, but no prototype
14605 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
14606 # address to avoid compiler warnings and potential miscompilations
14607 # because of the missing prototypes.
14609 echo "$as_me:$LINENO: checking for ctermid_r" >&5
14610 echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6
14611 cat >conftest.
$ac_ext <<_ACEOF
14614 cat confdefs.h
>>conftest.
$ac_ext
14615 cat >>conftest.
$ac_ext <<_ACEOF
14616 /* end confdefs.h. */
14618 #include "confdefs.h"
14624 void* p = ctermid_r
14629 rm -f conftest.
$ac_objext
14630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14631 (eval $ac_compile) 2>conftest.er1
14633 grep -v '^ *+' conftest.er1
>conftest.err
14635 cat conftest.err
>&5
14636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14637 (exit $ac_status); } &&
14638 { ac_try
='test -z "$ac_c_werror_flag"
14639 || test ! -s conftest.err'
14640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14641 (eval $ac_try) 2>&5
14643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14644 (exit $ac_status); }; } &&
14645 { ac_try
='test -s conftest.$ac_objext'
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); }; }; then
14652 cat >>confdefs.h
<<\_ACEOF
14653 #define HAVE_CTERMID_R 1
14656 echo "$as_me:$LINENO: result: yes" >&5
14657 echo "${ECHO_T}yes" >&6
14659 echo "$as_me: failed program was:" >&5
14660 sed 's/^/| /' conftest.
$ac_ext >&5
14662 echo "$as_me:$LINENO: result: no" >&5
14663 echo "${ECHO_T}no" >&6
14666 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14668 echo "$as_me:$LINENO: checking for flock" >&5
14669 echo $ECHO_N "checking for flock... $ECHO_C" >&6
14670 cat >conftest.
$ac_ext <<_ACEOF
14673 cat confdefs.h
>>conftest.
$ac_ext
14674 cat >>conftest.
$ac_ext <<_ACEOF
14675 /* end confdefs.h. */
14677 #include "confdefs.h"
14678 #include <sys/file.h>
14688 rm -f conftest.
$ac_objext
14689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14690 (eval $ac_compile) 2>conftest.er1
14692 grep -v '^ *+' conftest.er1
>conftest.err
14694 cat conftest.err
>&5
14695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14696 (exit $ac_status); } &&
14697 { ac_try
='test -z "$ac_c_werror_flag"
14698 || test ! -s conftest.err'
14699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14700 (eval $ac_try) 2>&5
14702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14703 (exit $ac_status); }; } &&
14704 { ac_try
='test -s conftest.$ac_objext'
14705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14706 (eval $ac_try) 2>&5
14708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14709 (exit $ac_status); }; }; then
14711 cat >>confdefs.h
<<\_ACEOF
14712 #define HAVE_FLOCK 1
14715 echo "$as_me:$LINENO: result: yes" >&5
14716 echo "${ECHO_T}yes" >&6
14718 echo "$as_me: failed program was:" >&5
14719 sed 's/^/| /' conftest.
$ac_ext >&5
14721 echo "$as_me:$LINENO: result: no" >&5
14722 echo "${ECHO_T}no" >&6
14725 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14727 echo "$as_me:$LINENO: checking for getpagesize" >&5
14728 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6
14729 cat >conftest.
$ac_ext <<_ACEOF
14732 cat confdefs.h
>>conftest.
$ac_ext
14733 cat >>conftest.
$ac_ext <<_ACEOF
14734 /* end confdefs.h. */
14736 #include "confdefs.h"
14737 #include <unistd.h>
14742 void* p = getpagesize
14747 rm -f conftest.
$ac_objext
14748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14749 (eval $ac_compile) 2>conftest.er1
14751 grep -v '^ *+' conftest.er1
>conftest.err
14753 cat conftest.err
>&5
14754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14755 (exit $ac_status); } &&
14756 { ac_try
='test -z "$ac_c_werror_flag"
14757 || test ! -s conftest.err'
14758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14759 (eval $ac_try) 2>&5
14761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14762 (exit $ac_status); }; } &&
14763 { ac_try
='test -s conftest.$ac_objext'
14764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14765 (eval $ac_try) 2>&5
14767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14768 (exit $ac_status); }; }; then
14770 cat >>confdefs.h
<<\_ACEOF
14771 #define HAVE_GETPAGESIZE 1
14774 echo "$as_me:$LINENO: result: yes" >&5
14775 echo "${ECHO_T}yes" >&6
14777 echo "$as_me: failed program was:" >&5
14778 sed 's/^/| /' conftest.
$ac_ext >&5
14780 echo "$as_me:$LINENO: result: no" >&5
14781 echo "${ECHO_T}no" >&6
14784 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14786 for ac_prog
in true
14788 # Extract the first word of "$ac_prog", so it can be a program name with args.
14789 set dummy
$ac_prog; ac_word
=$2
14790 echo "$as_me:$LINENO: checking for $ac_word" >&5
14791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14792 if test "${ac_cv_prog_TRUE+set}" = set; then
14793 echo $ECHO_N "(cached) $ECHO_C" >&6
14795 if test -n "$TRUE"; then
14796 ac_cv_prog_TRUE
="$TRUE" # Let the user override the test.
14798 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14799 for as_dir
in $PATH
14802 test -z "$as_dir" && as_dir
=.
14803 for ac_exec_ext
in '' $ac_executable_extensions; do
14804 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14805 ac_cv_prog_TRUE
="$ac_prog"
14806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14814 TRUE
=$ac_cv_prog_TRUE
14815 if test -n "$TRUE"; then
14816 echo "$as_me:$LINENO: result: $TRUE" >&5
14817 echo "${ECHO_T}$TRUE" >&6
14819 echo "$as_me:$LINENO: result: no" >&5
14820 echo "${ECHO_T}no" >&6
14823 test -n "$TRUE" && break
14825 test -n "$TRUE" || TRUE
="/bin/true"
14828 echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
14829 echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6
14830 if test "${ac_cv_lib_c_inet_aton+set}" = set; then
14831 echo $ECHO_N "(cached) $ECHO_C" >&6
14833 ac_check_lib_save_LIBS
=$LIBS
14835 cat >conftest.
$ac_ext <<_ACEOF
14838 cat confdefs.h
>>conftest.
$ac_ext
14839 cat >>conftest.
$ac_ext <<_ACEOF
14840 /* end confdefs.h. */
14842 /* Override any gcc2 internal prototype to avoid an error. */
14846 /* We use char because int might match the return type of a gcc2
14847 builtin and then its argument prototype would still apply. */
14857 rm -f conftest.
$ac_objext conftest
$ac_exeext
14858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14859 (eval $ac_link) 2>conftest.er1
14861 grep -v '^ *+' conftest.er1
>conftest.err
14863 cat conftest.err
>&5
14864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14865 (exit $ac_status); } &&
14866 { ac_try
='test -z "$ac_c_werror_flag"
14867 || test ! -s conftest.err'
14868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14869 (eval $ac_try) 2>&5
14871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14872 (exit $ac_status); }; } &&
14873 { ac_try
='test -s conftest$ac_exeext'
14874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14875 (eval $ac_try) 2>&5
14877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14878 (exit $ac_status); }; }; then
14879 ac_cv_lib_c_inet_aton
=yes
14881 echo "$as_me: failed program was:" >&5
14882 sed 's/^/| /' conftest.
$ac_ext >&5
14884 ac_cv_lib_c_inet_aton
=no
14886 rm -f conftest.err conftest.
$ac_objext \
14887 conftest
$ac_exeext conftest.
$ac_ext
14888 LIBS
=$ac_check_lib_save_LIBS
14890 echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
14891 echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6
14892 if test $ac_cv_lib_c_inet_aton = yes; then
14896 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
14897 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
14898 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
14899 echo $ECHO_N "(cached) $ECHO_C" >&6
14901 ac_check_lib_save_LIBS
=$LIBS
14902 LIBS
="-lresolv $LIBS"
14903 cat >conftest.
$ac_ext <<_ACEOF
14906 cat confdefs.h
>>conftest.
$ac_ext
14907 cat >>conftest.
$ac_ext <<_ACEOF
14908 /* end confdefs.h. */
14910 /* Override any gcc2 internal prototype to avoid an error. */
14914 /* We use char because int might match the return type of a gcc2
14915 builtin and then its argument prototype would still apply. */
14925 rm -f conftest.
$ac_objext conftest
$ac_exeext
14926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14927 (eval $ac_link) 2>conftest.er1
14929 grep -v '^ *+' conftest.er1
>conftest.err
14931 cat conftest.err
>&5
14932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14933 (exit $ac_status); } &&
14934 { ac_try
='test -z "$ac_c_werror_flag"
14935 || test ! -s conftest.err'
14936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14937 (eval $ac_try) 2>&5
14939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14940 (exit $ac_status); }; } &&
14941 { ac_try
='test -s conftest$ac_exeext'
14942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14943 (eval $ac_try) 2>&5
14945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14946 (exit $ac_status); }; }; then
14947 ac_cv_lib_resolv_inet_aton
=yes
14949 echo "$as_me: failed program was:" >&5
14950 sed 's/^/| /' conftest.
$ac_ext >&5
14952 ac_cv_lib_resolv_inet_aton
=no
14954 rm -f conftest.err conftest.
$ac_objext \
14955 conftest
$ac_exeext conftest.
$ac_ext
14956 LIBS
=$ac_check_lib_save_LIBS
14958 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
14959 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
14960 if test $ac_cv_lib_resolv_inet_aton = yes; then
14961 cat >>confdefs.h
<<_ACEOF
14962 #define HAVE_LIBRESOLV 1
14965 LIBS
="-lresolv $LIBS"
14973 echo "$as_me:$LINENO: checking for hstrerror" >&5
14974 echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6
14975 cat >conftest.
$ac_ext <<_ACEOF
14978 cat confdefs.h
>>conftest.
$ac_ext
14979 cat >>conftest.
$ac_ext <<_ACEOF
14980 /* end confdefs.h. */
14982 #include "confdefs.h"
14988 void* p = hstrerror; hstrerror(0)
14993 rm -f conftest.
$ac_objext conftest
$ac_exeext
14994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14995 (eval $ac_link) 2>conftest.er1
14997 grep -v '^ *+' conftest.er1
>conftest.err
14999 cat conftest.err
>&5
15000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15001 (exit $ac_status); } &&
15002 { ac_try
='test -z "$ac_c_werror_flag"
15003 || test ! -s conftest.err'
15004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15005 (eval $ac_try) 2>&5
15007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15008 (exit $ac_status); }; } &&
15009 { ac_try
='test -s conftest$ac_exeext'
15010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15011 (eval $ac_try) 2>&5
15013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15014 (exit $ac_status); }; }; then
15016 cat >>confdefs.h
<<\_ACEOF
15017 #define HAVE_HSTRERROR 1
15020 echo "$as_me:$LINENO: result: yes" >&5
15021 echo "${ECHO_T}yes" >&6
15023 echo "$as_me: failed program was:" >&5
15024 sed 's/^/| /' conftest.
$ac_ext >&5
15026 echo "$as_me:$LINENO: result: no" >&5
15027 echo "${ECHO_T}no" >&6
15030 rm -f conftest.err conftest.
$ac_objext \
15031 conftest
$ac_exeext conftest.
$ac_ext
15033 echo "$as_me:$LINENO: checking for inet_aton" >&5
15034 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
15035 cat >conftest.
$ac_ext <<_ACEOF
15038 cat confdefs.h
>>conftest.
$ac_ext
15039 cat >>conftest.
$ac_ext <<_ACEOF
15040 /* end confdefs.h. */
15042 #include "confdefs.h"
15043 #include <sys/types.h>
15044 #include <sys/socket.h>
15045 #include <netinet/in.h>
15046 #include <arpa/inet.h>
15051 void* p = inet_aton;inet_aton(0,0)
15056 rm -f conftest.
$ac_objext conftest
$ac_exeext
15057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15058 (eval $ac_link) 2>conftest.er1
15060 grep -v '^ *+' conftest.er1
>conftest.err
15062 cat conftest.err
>&5
15063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15064 (exit $ac_status); } &&
15065 { ac_try
='test -z "$ac_c_werror_flag"
15066 || test ! -s conftest.err'
15067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15068 (eval $ac_try) 2>&5
15070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15071 (exit $ac_status); }; } &&
15072 { ac_try
='test -s conftest$ac_exeext'
15073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15074 (eval $ac_try) 2>&5
15076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15077 (exit $ac_status); }; }; then
15079 cat >>confdefs.h
<<\_ACEOF
15080 #define HAVE_INET_ATON 1
15083 echo "$as_me:$LINENO: result: yes" >&5
15084 echo "${ECHO_T}yes" >&6
15086 echo "$as_me: failed program was:" >&5
15087 sed 's/^/| /' conftest.
$ac_ext >&5
15089 echo "$as_me:$LINENO: result: no" >&5
15090 echo "${ECHO_T}no" >&6
15093 rm -f conftest.err conftest.
$ac_objext \
15094 conftest
$ac_exeext conftest.
$ac_ext
15096 echo "$as_me:$LINENO: checking for inet_pton" >&5
15097 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6
15098 cat >conftest.
$ac_ext <<_ACEOF
15101 cat confdefs.h
>>conftest.
$ac_ext
15102 cat >>conftest.
$ac_ext <<_ACEOF
15103 /* end confdefs.h. */
15105 #include "confdefs.h"
15106 #include <sys/types.h>
15107 #include <sys/socket.h>
15108 #include <netinet/in.h>
15109 #include <arpa/inet.h>
15114 void* p = inet_pton
15119 rm -f conftest.
$ac_objext
15120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15121 (eval $ac_compile) 2>conftest.er1
15123 grep -v '^ *+' conftest.er1
>conftest.err
15125 cat conftest.err
>&5
15126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15127 (exit $ac_status); } &&
15128 { ac_try
='test -z "$ac_c_werror_flag"
15129 || test ! -s conftest.err'
15130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15131 (eval $ac_try) 2>&5
15133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15134 (exit $ac_status); }; } &&
15135 { ac_try
='test -s conftest.$ac_objext'
15136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15137 (eval $ac_try) 2>&5
15139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15140 (exit $ac_status); }; }; then
15142 cat >>confdefs.h
<<\_ACEOF
15143 #define HAVE_INET_PTON 1
15146 echo "$as_me:$LINENO: result: yes" >&5
15147 echo "${ECHO_T}yes" >&6
15149 echo "$as_me: failed program was:" >&5
15150 sed 's/^/| /' conftest.
$ac_ext >&5
15152 echo "$as_me:$LINENO: result: no" >&5
15153 echo "${ECHO_T}no" >&6
15156 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15158 # On some systems, setgroups is in unistd.h, on others, in grp.h
15159 echo "$as_me:$LINENO: checking for setgroups" >&5
15160 echo $ECHO_N "checking for setgroups... $ECHO_C" >&6
15161 cat >conftest.
$ac_ext <<_ACEOF
15164 cat confdefs.h
>>conftest.
$ac_ext
15165 cat >>conftest.
$ac_ext <<_ACEOF
15166 /* end confdefs.h. */
15168 #include "confdefs.h"
15169 #include <unistd.h>
15177 void* p = setgroups
15182 rm -f conftest.
$ac_objext
15183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15184 (eval $ac_compile) 2>conftest.er1
15186 grep -v '^ *+' conftest.er1
>conftest.err
15188 cat conftest.err
>&5
15189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15190 (exit $ac_status); } &&
15191 { ac_try
='test -z "$ac_c_werror_flag"
15192 || test ! -s conftest.err'
15193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15194 (eval $ac_try) 2>&5
15196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15197 (exit $ac_status); }; } &&
15198 { ac_try
='test -s conftest.$ac_objext'
15199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15200 (eval $ac_try) 2>&5
15202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15203 (exit $ac_status); }; }; then
15205 cat >>confdefs.h
<<\_ACEOF
15206 #define HAVE_SETGROUPS 1
15209 echo "$as_me:$LINENO: result: yes" >&5
15210 echo "${ECHO_T}yes" >&6
15212 echo "$as_me: failed program was:" >&5
15213 sed 's/^/| /' conftest.
$ac_ext >&5
15215 echo "$as_me:$LINENO: result: no" >&5
15216 echo "${ECHO_T}no" >&6
15219 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15221 # check for openpty and forkpty
15224 for ac_func
in openpty
15226 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15227 echo "$as_me:$LINENO: checking for $ac_func" >&5
15228 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15229 if eval "test \"\${$as_ac_var+set}\" = set"; then
15230 echo $ECHO_N "(cached) $ECHO_C" >&6
15232 cat >conftest.
$ac_ext <<_ACEOF
15235 cat confdefs.h
>>conftest.
$ac_ext
15236 cat >>conftest.
$ac_ext <<_ACEOF
15237 /* end confdefs.h. */
15238 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15239 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15240 #define $ac_func innocuous_$ac_func
15242 /* System header to define __stub macros and hopefully few prototypes,
15243 which can conflict with char $ac_func (); below.
15244 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15245 <limits.h> exists even on freestanding compilers. */
15248 # include <limits.h>
15250 # include <assert.h>
15255 /* Override any gcc2 internal prototype to avoid an error. */
15260 /* We use char because int might match the return type of a gcc2
15261 builtin and then its argument prototype would still apply. */
15263 /* The GNU C library defines this for functions which it implements
15264 to always fail with ENOSYS. Some functions are actually named
15265 something starting with __ and the normal name is an alias. */
15266 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15269 char (*f) () = $ac_func;
15278 return f != $ac_func;
15283 rm -f conftest.
$ac_objext conftest
$ac_exeext
15284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15285 (eval $ac_link) 2>conftest.er1
15287 grep -v '^ *+' conftest.er1
>conftest.err
15289 cat conftest.err
>&5
15290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15291 (exit $ac_status); } &&
15292 { ac_try
='test -z "$ac_c_werror_flag"
15293 || test ! -s conftest.err'
15294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15295 (eval $ac_try) 2>&5
15297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15298 (exit $ac_status); }; } &&
15299 { ac_try
='test -s conftest$ac_exeext'
15300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15301 (eval $ac_try) 2>&5
15303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15304 (exit $ac_status); }; }; then
15305 eval "$as_ac_var=yes"
15307 echo "$as_me: failed program was:" >&5
15308 sed 's/^/| /' conftest.
$ac_ext >&5
15310 eval "$as_ac_var=no"
15312 rm -f conftest.err conftest.
$ac_objext \
15313 conftest
$ac_exeext conftest.
$ac_ext
15315 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15316 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15317 if test `eval echo '${'$as_ac_var'}'` = yes; then
15318 cat >>confdefs.h
<<_ACEOF
15319 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15323 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
15324 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
15325 if test "${ac_cv_lib_util_openpty+set}" = set; then
15326 echo $ECHO_N "(cached) $ECHO_C" >&6
15328 ac_check_lib_save_LIBS
=$LIBS
15329 LIBS
="-lutil $LIBS"
15330 cat >conftest.
$ac_ext <<_ACEOF
15333 cat confdefs.h
>>conftest.
$ac_ext
15334 cat >>conftest.
$ac_ext <<_ACEOF
15335 /* end confdefs.h. */
15337 /* Override any gcc2 internal prototype to avoid an error. */
15341 /* We use char because int might match the return type of a gcc2
15342 builtin and then its argument prototype would still apply. */
15352 rm -f conftest.
$ac_objext conftest
$ac_exeext
15353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15354 (eval $ac_link) 2>conftest.er1
15356 grep -v '^ *+' conftest.er1
>conftest.err
15358 cat conftest.err
>&5
15359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15360 (exit $ac_status); } &&
15361 { ac_try
='test -z "$ac_c_werror_flag"
15362 || test ! -s conftest.err'
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); }; } &&
15368 { ac_try
='test -s conftest$ac_exeext'
15369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15370 (eval $ac_try) 2>&5
15372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15373 (exit $ac_status); }; }; then
15374 ac_cv_lib_util_openpty
=yes
15376 echo "$as_me: failed program was:" >&5
15377 sed 's/^/| /' conftest.
$ac_ext >&5
15379 ac_cv_lib_util_openpty
=no
15381 rm -f conftest.err conftest.
$ac_objext \
15382 conftest
$ac_exeext conftest.
$ac_ext
15383 LIBS
=$ac_check_lib_save_LIBS
15385 echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
15386 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
15387 if test $ac_cv_lib_util_openpty = yes; then
15388 cat >>confdefs.h
<<\_ACEOF
15389 #define HAVE_OPENPTY 1
15391 LIBS
="$LIBS -lutil"
15393 echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
15394 echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6
15395 if test "${ac_cv_lib_bsd_openpty+set}" = set; then
15396 echo $ECHO_N "(cached) $ECHO_C" >&6
15398 ac_check_lib_save_LIBS
=$LIBS
15400 cat >conftest.
$ac_ext <<_ACEOF
15403 cat confdefs.h
>>conftest.
$ac_ext
15404 cat >>conftest.
$ac_ext <<_ACEOF
15405 /* end confdefs.h. */
15407 /* Override any gcc2 internal prototype to avoid an error. */
15411 /* We use char because int might match the return type of a gcc2
15412 builtin and then its argument prototype would still apply. */
15422 rm -f conftest.
$ac_objext conftest
$ac_exeext
15423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15424 (eval $ac_link) 2>conftest.er1
15426 grep -v '^ *+' conftest.er1
>conftest.err
15428 cat conftest.err
>&5
15429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15430 (exit $ac_status); } &&
15431 { ac_try
='test -z "$ac_c_werror_flag"
15432 || test ! -s conftest.err'
15433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15434 (eval $ac_try) 2>&5
15436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15437 (exit $ac_status); }; } &&
15438 { ac_try
='test -s conftest$ac_exeext'
15439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15440 (eval $ac_try) 2>&5
15442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15443 (exit $ac_status); }; }; then
15444 ac_cv_lib_bsd_openpty
=yes
15446 echo "$as_me: failed program was:" >&5
15447 sed 's/^/| /' conftest.
$ac_ext >&5
15449 ac_cv_lib_bsd_openpty
=no
15451 rm -f conftest.err conftest.
$ac_objext \
15452 conftest
$ac_exeext conftest.
$ac_ext
15453 LIBS
=$ac_check_lib_save_LIBS
15455 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
15456 echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6
15457 if test $ac_cv_lib_bsd_openpty = yes; then
15458 cat >>confdefs.h
<<\_ACEOF
15459 #define HAVE_OPENPTY 1
15472 for ac_func
in forkpty
15474 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15475 echo "$as_me:$LINENO: checking for $ac_func" >&5
15476 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15477 if eval "test \"\${$as_ac_var+set}\" = set"; then
15478 echo $ECHO_N "(cached) $ECHO_C" >&6
15480 cat >conftest.
$ac_ext <<_ACEOF
15483 cat confdefs.h
>>conftest.
$ac_ext
15484 cat >>conftest.
$ac_ext <<_ACEOF
15485 /* end confdefs.h. */
15486 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15487 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15488 #define $ac_func innocuous_$ac_func
15490 /* System header to define __stub macros and hopefully few prototypes,
15491 which can conflict with char $ac_func (); below.
15492 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15493 <limits.h> exists even on freestanding compilers. */
15496 # include <limits.h>
15498 # include <assert.h>
15503 /* Override any gcc2 internal prototype to avoid an error. */
15508 /* We use char because int might match the return type of a gcc2
15509 builtin and then its argument prototype would still apply. */
15511 /* The GNU C library defines this for functions which it implements
15512 to always fail with ENOSYS. Some functions are actually named
15513 something starting with __ and the normal name is an alias. */
15514 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15517 char (*f) () = $ac_func;
15526 return f != $ac_func;
15531 rm -f conftest.
$ac_objext conftest
$ac_exeext
15532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15533 (eval $ac_link) 2>conftest.er1
15535 grep -v '^ *+' conftest.er1
>conftest.err
15537 cat conftest.err
>&5
15538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15539 (exit $ac_status); } &&
15540 { ac_try
='test -z "$ac_c_werror_flag"
15541 || test ! -s conftest.err'
15542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15543 (eval $ac_try) 2>&5
15545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15546 (exit $ac_status); }; } &&
15547 { ac_try
='test -s conftest$ac_exeext'
15548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15549 (eval $ac_try) 2>&5
15551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15552 (exit $ac_status); }; }; then
15553 eval "$as_ac_var=yes"
15555 echo "$as_me: failed program was:" >&5
15556 sed 's/^/| /' conftest.
$ac_ext >&5
15558 eval "$as_ac_var=no"
15560 rm -f conftest.err conftest.
$ac_objext \
15561 conftest
$ac_exeext conftest.
$ac_ext
15563 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15564 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15565 if test `eval echo '${'$as_ac_var'}'` = yes; then
15566 cat >>confdefs.h
<<_ACEOF
15567 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15571 echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
15572 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6
15573 if test "${ac_cv_lib_util_forkpty+set}" = set; then
15574 echo $ECHO_N "(cached) $ECHO_C" >&6
15576 ac_check_lib_save_LIBS
=$LIBS
15577 LIBS
="-lutil $LIBS"
15578 cat >conftest.
$ac_ext <<_ACEOF
15581 cat confdefs.h
>>conftest.
$ac_ext
15582 cat >>conftest.
$ac_ext <<_ACEOF
15583 /* end confdefs.h. */
15585 /* Override any gcc2 internal prototype to avoid an error. */
15589 /* We use char because int might match the return type of a gcc2
15590 builtin and then its argument prototype would still apply. */
15600 rm -f conftest.
$ac_objext conftest
$ac_exeext
15601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15602 (eval $ac_link) 2>conftest.er1
15604 grep -v '^ *+' conftest.er1
>conftest.err
15606 cat conftest.err
>&5
15607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15608 (exit $ac_status); } &&
15609 { ac_try
='test -z "$ac_c_werror_flag"
15610 || test ! -s conftest.err'
15611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15612 (eval $ac_try) 2>&5
15614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15615 (exit $ac_status); }; } &&
15616 { ac_try
='test -s conftest$ac_exeext'
15617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15618 (eval $ac_try) 2>&5
15620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15621 (exit $ac_status); }; }; then
15622 ac_cv_lib_util_forkpty
=yes
15624 echo "$as_me: failed program was:" >&5
15625 sed 's/^/| /' conftest.
$ac_ext >&5
15627 ac_cv_lib_util_forkpty
=no
15629 rm -f conftest.err conftest.
$ac_objext \
15630 conftest
$ac_exeext conftest.
$ac_ext
15631 LIBS
=$ac_check_lib_save_LIBS
15633 echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
15634 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6
15635 if test $ac_cv_lib_util_forkpty = yes; then
15636 cat >>confdefs.h
<<\_ACEOF
15637 #define HAVE_FORKPTY 1
15639 LIBS
="$LIBS -lutil"
15641 echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
15642 echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6
15643 if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
15644 echo $ECHO_N "(cached) $ECHO_C" >&6
15646 ac_check_lib_save_LIBS
=$LIBS
15648 cat >conftest.
$ac_ext <<_ACEOF
15651 cat confdefs.h
>>conftest.
$ac_ext
15652 cat >>conftest.
$ac_ext <<_ACEOF
15653 /* end confdefs.h. */
15655 /* Override any gcc2 internal prototype to avoid an error. */
15659 /* We use char because int might match the return type of a gcc2
15660 builtin and then its argument prototype would still apply. */
15670 rm -f conftest.
$ac_objext conftest
$ac_exeext
15671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15672 (eval $ac_link) 2>conftest.er1
15674 grep -v '^ *+' conftest.er1
>conftest.err
15676 cat conftest.err
>&5
15677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15678 (exit $ac_status); } &&
15679 { ac_try
='test -z "$ac_c_werror_flag"
15680 || test ! -s conftest.err'
15681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15682 (eval $ac_try) 2>&5
15684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15685 (exit $ac_status); }; } &&
15686 { ac_try
='test -s conftest$ac_exeext'
15687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15688 (eval $ac_try) 2>&5
15690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15691 (exit $ac_status); }; }; then
15692 ac_cv_lib_bsd_forkpty
=yes
15694 echo "$as_me: failed program was:" >&5
15695 sed 's/^/| /' conftest.
$ac_ext >&5
15697 ac_cv_lib_bsd_forkpty
=no
15699 rm -f conftest.err conftest.
$ac_objext \
15700 conftest
$ac_exeext conftest.
$ac_ext
15701 LIBS
=$ac_check_lib_save_LIBS
15703 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
15704 echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6
15705 if test $ac_cv_lib_bsd_forkpty = yes; then
15706 cat >>confdefs.h
<<\_ACEOF
15707 #define HAVE_FORKPTY 1
15720 # check for long file support functions
15727 for ac_func
in fseek64 fseeko fstatvfs ftell64 ftello statvfs
15729 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15730 echo "$as_me:$LINENO: checking for $ac_func" >&5
15731 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15732 if eval "test \"\${$as_ac_var+set}\" = set"; then
15733 echo $ECHO_N "(cached) $ECHO_C" >&6
15735 cat >conftest.
$ac_ext <<_ACEOF
15738 cat confdefs.h
>>conftest.
$ac_ext
15739 cat >>conftest.
$ac_ext <<_ACEOF
15740 /* end confdefs.h. */
15741 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15742 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15743 #define $ac_func innocuous_$ac_func
15745 /* System header to define __stub macros and hopefully few prototypes,
15746 which can conflict with char $ac_func (); below.
15747 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15748 <limits.h> exists even on freestanding compilers. */
15751 # include <limits.h>
15753 # include <assert.h>
15758 /* Override any gcc2 internal prototype to avoid an error. */
15763 /* We use char because int might match the return type of a gcc2
15764 builtin and then its argument prototype would still apply. */
15766 /* The GNU C library defines this for functions which it implements
15767 to always fail with ENOSYS. Some functions are actually named
15768 something starting with __ and the normal name is an alias. */
15769 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15772 char (*f) () = $ac_func;
15781 return f != $ac_func;
15786 rm -f conftest.
$ac_objext conftest
$ac_exeext
15787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15788 (eval $ac_link) 2>conftest.er1
15790 grep -v '^ *+' conftest.er1
>conftest.err
15792 cat conftest.err
>&5
15793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15794 (exit $ac_status); } &&
15795 { ac_try
='test -z "$ac_c_werror_flag"
15796 || test ! -s conftest.err'
15797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15798 (eval $ac_try) 2>&5
15800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15801 (exit $ac_status); }; } &&
15802 { ac_try
='test -s conftest$ac_exeext'
15803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15804 (eval $ac_try) 2>&5
15806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15807 (exit $ac_status); }; }; then
15808 eval "$as_ac_var=yes"
15810 echo "$as_me: failed program was:" >&5
15811 sed 's/^/| /' conftest.
$ac_ext >&5
15813 eval "$as_ac_var=no"
15815 rm -f conftest.err conftest.
$ac_objext \
15816 conftest
$ac_exeext conftest.
$ac_ext
15818 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15819 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15820 if test `eval echo '${'$as_ac_var'}'` = yes; then
15821 cat >>confdefs.h
<<_ACEOF
15822 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15834 for ac_func
in dup2 getcwd strdup strerror memmove
15836 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15837 echo "$as_me:$LINENO: checking for $ac_func" >&5
15838 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15839 if eval "test \"\${$as_ac_var+set}\" = set"; then
15840 echo $ECHO_N "(cached) $ECHO_C" >&6
15842 cat >conftest.
$ac_ext <<_ACEOF
15845 cat confdefs.h
>>conftest.
$ac_ext
15846 cat >>conftest.
$ac_ext <<_ACEOF
15847 /* end confdefs.h. */
15848 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15849 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15850 #define $ac_func innocuous_$ac_func
15852 /* System header to define __stub macros and hopefully few prototypes,
15853 which can conflict with char $ac_func (); below.
15854 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15855 <limits.h> exists even on freestanding compilers. */
15858 # include <limits.h>
15860 # include <assert.h>
15865 /* Override any gcc2 internal prototype to avoid an error. */
15870 /* We use char because int might match the return type of a gcc2
15871 builtin and then its argument prototype would still apply. */
15873 /* The GNU C library defines this for functions which it implements
15874 to always fail with ENOSYS. Some functions are actually named
15875 something starting with __ and the normal name is an alias. */
15876 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15879 char (*f) () = $ac_func;
15888 return f != $ac_func;
15893 rm -f conftest.
$ac_objext conftest
$ac_exeext
15894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15895 (eval $ac_link) 2>conftest.er1
15897 grep -v '^ *+' conftest.er1
>conftest.err
15899 cat conftest.err
>&5
15900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15901 (exit $ac_status); } &&
15902 { ac_try
='test -z "$ac_c_werror_flag"
15903 || test ! -s conftest.err'
15904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15905 (eval $ac_try) 2>&5
15907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15908 (exit $ac_status); }; } &&
15909 { ac_try
='test -s conftest$ac_exeext'
15910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15911 (eval $ac_try) 2>&5
15913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15914 (exit $ac_status); }; }; then
15915 eval "$as_ac_var=yes"
15917 echo "$as_me: failed program was:" >&5
15918 sed 's/^/| /' conftest.
$ac_ext >&5
15920 eval "$as_ac_var=no"
15922 rm -f conftest.err conftest.
$ac_objext \
15923 conftest
$ac_exeext conftest.
$ac_ext
15925 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15926 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15927 if test `eval echo '${'$as_ac_var'}'` = yes; then
15928 cat >>confdefs.h
<<_ACEOF
15929 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15934 "$ac_func.$ac_objext" | \
15935 *" $ac_func.$ac_objext" | \
15936 "$ac_func.$ac_objext "* | \
15937 *" $ac_func.$ac_objext "* ) ;;
15938 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext" ;;
15946 for ac_func
in getpgrp
15948 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15949 echo "$as_me:$LINENO: checking for $ac_func" >&5
15950 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15951 if eval "test \"\${$as_ac_var+set}\" = set"; then
15952 echo $ECHO_N "(cached) $ECHO_C" >&6
15954 cat >conftest.
$ac_ext <<_ACEOF
15957 cat confdefs.h
>>conftest.
$ac_ext
15958 cat >>conftest.
$ac_ext <<_ACEOF
15959 /* end confdefs.h. */
15960 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15961 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15962 #define $ac_func innocuous_$ac_func
15964 /* System header to define __stub macros and hopefully few prototypes,
15965 which can conflict with char $ac_func (); below.
15966 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15967 <limits.h> exists even on freestanding compilers. */
15970 # include <limits.h>
15972 # include <assert.h>
15977 /* Override any gcc2 internal prototype to avoid an error. */
15982 /* We use char because int might match the return type of a gcc2
15983 builtin and then its argument prototype would still apply. */
15985 /* The GNU C library defines this for functions which it implements
15986 to always fail with ENOSYS. Some functions are actually named
15987 something starting with __ and the normal name is an alias. */
15988 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15991 char (*f) () = $ac_func;
16000 return f != $ac_func;
16005 rm -f conftest.
$ac_objext conftest
$ac_exeext
16006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16007 (eval $ac_link) 2>conftest.er1
16009 grep -v '^ *+' conftest.er1
>conftest.err
16011 cat conftest.err
>&5
16012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16013 (exit $ac_status); } &&
16014 { ac_try
='test -z "$ac_c_werror_flag"
16015 || test ! -s conftest.err'
16016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16017 (eval $ac_try) 2>&5
16019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16020 (exit $ac_status); }; } &&
16021 { ac_try
='test -s conftest$ac_exeext'
16022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16023 (eval $ac_try) 2>&5
16025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16026 (exit $ac_status); }; }; then
16027 eval "$as_ac_var=yes"
16029 echo "$as_me: failed program was:" >&5
16030 sed 's/^/| /' conftest.
$ac_ext >&5
16032 eval "$as_ac_var=no"
16034 rm -f conftest.err conftest.
$ac_objext \
16035 conftest
$ac_exeext conftest.
$ac_ext
16037 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16038 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16039 if test `eval echo '${'$as_ac_var'}'` = yes; then
16040 cat >>confdefs.h
<<_ACEOF
16041 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16043 cat >conftest.
$ac_ext <<_ACEOF
16046 cat confdefs.h
>>conftest.
$ac_ext
16047 cat >>conftest.
$ac_ext <<_ACEOF
16048 /* end confdefs.h. */
16049 #include <unistd.h>
16058 rm -f conftest.
$ac_objext
16059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16060 (eval $ac_compile) 2>conftest.er1
16062 grep -v '^ *+' conftest.er1
>conftest.err
16064 cat conftest.err
>&5
16065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16066 (exit $ac_status); } &&
16067 { ac_try
='test -z "$ac_c_werror_flag"
16068 || test ! -s conftest.err'
16069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16070 (eval $ac_try) 2>&5
16072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16073 (exit $ac_status); }; } &&
16074 { ac_try
='test -s conftest.$ac_objext'
16075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16076 (eval $ac_try) 2>&5
16078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16079 (exit $ac_status); }; }; then
16081 cat >>confdefs.h
<<\_ACEOF
16082 #define GETPGRP_HAVE_ARG 1
16087 echo "$as_me: failed program was:" >&5
16088 sed 's/^/| /' conftest.
$ac_ext >&5
16091 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16097 for ac_func
in setpgrp
16099 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16100 echo "$as_me:$LINENO: checking for $ac_func" >&5
16101 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16102 if eval "test \"\${$as_ac_var+set}\" = set"; then
16103 echo $ECHO_N "(cached) $ECHO_C" >&6
16105 cat >conftest.
$ac_ext <<_ACEOF
16108 cat confdefs.h
>>conftest.
$ac_ext
16109 cat >>conftest.
$ac_ext <<_ACEOF
16110 /* end confdefs.h. */
16111 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16112 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16113 #define $ac_func innocuous_$ac_func
16115 /* System header to define __stub macros and hopefully few prototypes,
16116 which can conflict with char $ac_func (); below.
16117 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16118 <limits.h> exists even on freestanding compilers. */
16121 # include <limits.h>
16123 # include <assert.h>
16128 /* Override any gcc2 internal prototype to avoid an error. */
16133 /* We use char because int might match the return type of a gcc2
16134 builtin and then its argument prototype would still apply. */
16136 /* The GNU C library defines this for functions which it implements
16137 to always fail with ENOSYS. Some functions are actually named
16138 something starting with __ and the normal name is an alias. */
16139 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16142 char (*f) () = $ac_func;
16151 return f != $ac_func;
16156 rm -f conftest.
$ac_objext conftest
$ac_exeext
16157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16158 (eval $ac_link) 2>conftest.er1
16160 grep -v '^ *+' conftest.er1
>conftest.err
16162 cat conftest.err
>&5
16163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16164 (exit $ac_status); } &&
16165 { ac_try
='test -z "$ac_c_werror_flag"
16166 || test ! -s conftest.err'
16167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16168 (eval $ac_try) 2>&5
16170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16171 (exit $ac_status); }; } &&
16172 { ac_try
='test -s conftest$ac_exeext'
16173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16174 (eval $ac_try) 2>&5
16176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16177 (exit $ac_status); }; }; then
16178 eval "$as_ac_var=yes"
16180 echo "$as_me: failed program was:" >&5
16181 sed 's/^/| /' conftest.
$ac_ext >&5
16183 eval "$as_ac_var=no"
16185 rm -f conftest.err conftest.
$ac_objext \
16186 conftest
$ac_exeext conftest.
$ac_ext
16188 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16189 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16190 if test `eval echo '${'$as_ac_var'}'` = yes; then
16191 cat >>confdefs.h
<<_ACEOF
16192 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16194 cat >conftest.
$ac_ext <<_ACEOF
16197 cat confdefs.h
>>conftest.
$ac_ext
16198 cat >>conftest.
$ac_ext <<_ACEOF
16199 /* end confdefs.h. */
16200 #include <unistd.h>
16209 rm -f conftest.
$ac_objext
16210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16211 (eval $ac_compile) 2>conftest.er1
16213 grep -v '^ *+' conftest.er1
>conftest.err
16215 cat conftest.err
>&5
16216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16217 (exit $ac_status); } &&
16218 { ac_try
='test -z "$ac_c_werror_flag"
16219 || test ! -s conftest.err'
16220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16221 (eval $ac_try) 2>&5
16223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16224 (exit $ac_status); }; } &&
16225 { ac_try
='test -s conftest.$ac_objext'
16226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16227 (eval $ac_try) 2>&5
16229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16230 (exit $ac_status); }; }; then
16232 cat >>confdefs.h
<<\_ACEOF
16233 #define SETPGRP_HAVE_ARG 1
16238 echo "$as_me: failed program was:" >&5
16239 sed 's/^/| /' conftest.
$ac_ext >&5
16242 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16248 for ac_func
in gettimeofday
16250 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16251 echo "$as_me:$LINENO: checking for $ac_func" >&5
16252 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16253 if eval "test \"\${$as_ac_var+set}\" = set"; then
16254 echo $ECHO_N "(cached) $ECHO_C" >&6
16256 cat >conftest.
$ac_ext <<_ACEOF
16259 cat confdefs.h
>>conftest.
$ac_ext
16260 cat >>conftest.
$ac_ext <<_ACEOF
16261 /* end confdefs.h. */
16262 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16263 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16264 #define $ac_func innocuous_$ac_func
16266 /* System header to define __stub macros and hopefully few prototypes,
16267 which can conflict with char $ac_func (); below.
16268 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16269 <limits.h> exists even on freestanding compilers. */
16272 # include <limits.h>
16274 # include <assert.h>
16279 /* Override any gcc2 internal prototype to avoid an error. */
16284 /* We use char because int might match the return type of a gcc2
16285 builtin and then its argument prototype would still apply. */
16287 /* The GNU C library defines this for functions which it implements
16288 to always fail with ENOSYS. Some functions are actually named
16289 something starting with __ and the normal name is an alias. */
16290 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16293 char (*f) () = $ac_func;
16302 return f != $ac_func;
16307 rm -f conftest.
$ac_objext conftest
$ac_exeext
16308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16309 (eval $ac_link) 2>conftest.er1
16311 grep -v '^ *+' conftest.er1
>conftest.err
16313 cat conftest.err
>&5
16314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16315 (exit $ac_status); } &&
16316 { ac_try
='test -z "$ac_c_werror_flag"
16317 || test ! -s conftest.err'
16318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16319 (eval $ac_try) 2>&5
16321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16322 (exit $ac_status); }; } &&
16323 { ac_try
='test -s conftest$ac_exeext'
16324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16325 (eval $ac_try) 2>&5
16327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16328 (exit $ac_status); }; }; then
16329 eval "$as_ac_var=yes"
16331 echo "$as_me: failed program was:" >&5
16332 sed 's/^/| /' conftest.
$ac_ext >&5
16334 eval "$as_ac_var=no"
16336 rm -f conftest.err conftest.
$ac_objext \
16337 conftest
$ac_exeext conftest.
$ac_ext
16339 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16340 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16341 if test `eval echo '${'$as_ac_var'}'` = yes; then
16342 cat >>confdefs.h
<<_ACEOF
16343 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16345 cat >conftest.
$ac_ext <<_ACEOF
16348 cat confdefs.h
>>conftest.
$ac_ext
16349 cat >>conftest.
$ac_ext <<_ACEOF
16350 /* end confdefs.h. */
16351 #include <sys/time.h>
16355 gettimeofday((struct timeval*)0,(struct timezone*)0);
16360 rm -f conftest.
$ac_objext
16361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16362 (eval $ac_compile) 2>conftest.er1
16364 grep -v '^ *+' conftest.er1
>conftest.err
16366 cat conftest.err
>&5
16367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16368 (exit $ac_status); } &&
16369 { ac_try
='test -z "$ac_c_werror_flag"
16370 || test ! -s conftest.err'
16371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16372 (eval $ac_try) 2>&5
16374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16375 (exit $ac_status); }; } &&
16376 { ac_try
='test -s conftest.$ac_objext'
16377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16378 (eval $ac_try) 2>&5
16380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16381 (exit $ac_status); }; }; then
16384 echo "$as_me: failed program was:" >&5
16385 sed 's/^/| /' conftest.
$ac_ext >&5
16388 cat >>confdefs.h
<<\_ACEOF
16389 #define GETTIMEOFDAY_NO_TZ 1
16394 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16400 echo "$as_me:$LINENO: checking for major" >&5
16401 echo $ECHO_N "checking for major... $ECHO_C" >&6
16402 cat >conftest.
$ac_ext <<_ACEOF
16405 cat confdefs.h
>>conftest.
$ac_ext
16406 cat >>conftest.
$ac_ext <<_ACEOF
16407 /* end confdefs.h. */
16409 #if defined(MAJOR_IN_MKDEV)
16410 #include <sys/mkdev.h>
16411 #elif defined(MAJOR_IN_SYSMACROS)
16412 #include <sys/sysmacros.h>
16414 #include <sys/types.h>
16421 makedev(major(0),minor(0));
16427 rm -f conftest.
$ac_objext conftest
$ac_exeext
16428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16429 (eval $ac_link) 2>conftest.er1
16431 grep -v '^ *+' conftest.er1
>conftest.err
16433 cat conftest.err
>&5
16434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16435 (exit $ac_status); } &&
16436 { ac_try
='test -z "$ac_c_werror_flag"
16437 || test ! -s conftest.err'
16438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16439 (eval $ac_try) 2>&5
16441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16442 (exit $ac_status); }; } &&
16443 { ac_try
='test -s conftest$ac_exeext'
16444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16445 (eval $ac_try) 2>&5
16447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16448 (exit $ac_status); }; }; then
16451 cat >>confdefs.h
<<\_ACEOF
16452 #define HAVE_DEVICE_MACROS 1
16455 echo "$as_me:$LINENO: result: yes" >&5
16456 echo "${ECHO_T}yes" >&6
16459 echo "$as_me: failed program was:" >&5
16460 sed 's/^/| /' conftest.
$ac_ext >&5
16463 echo "$as_me:$LINENO: result: no" >&5
16464 echo "${ECHO_T}no" >&6
16467 rm -f conftest.err conftest.
$ac_objext \
16468 conftest
$ac_exeext conftest.
$ac_ext
16470 # On OSF/1 V5.1, getaddrinfo is available, but a define
16471 # for [no]getaddrinfo in netdb.h.
16472 echo "$as_me:$LINENO: checking for getaddrinfo" >&5
16473 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6
16474 cat >conftest.
$ac_ext <<_ACEOF
16477 cat confdefs.h
>>conftest.
$ac_ext
16478 cat >>conftest.
$ac_ext <<_ACEOF
16479 /* end confdefs.h. */
16481 #include <sys/types.h>
16482 #include <sys/socket.h>
16490 getaddrinfo(NULL, NULL, NULL, NULL);
16496 rm -f conftest.
$ac_objext conftest
$ac_exeext
16497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16498 (eval $ac_link) 2>conftest.er1
16500 grep -v '^ *+' conftest.er1
>conftest.err
16502 cat conftest.err
>&5
16503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16504 (exit $ac_status); } &&
16505 { ac_try
='test -z "$ac_c_werror_flag"
16506 || test ! -s conftest.err'
16507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16508 (eval $ac_try) 2>&5
16510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16511 (exit $ac_status); }; } &&
16512 { ac_try
='test -s conftest$ac_exeext'
16513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16514 (eval $ac_try) 2>&5
16516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16517 (exit $ac_status); }; }; then
16519 echo "$as_me:$LINENO: result: yes" >&5
16520 echo "${ECHO_T}yes" >&6
16521 echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
16522 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6
16523 if test "$cross_compiling" = yes; then
16524 echo "$as_me:$LINENO: result: buggy" >&5
16525 echo "${ECHO_T}buggy" >&6
16526 buggygetaddrinfo
=yes
16528 cat >conftest.
$ac_ext <<_ACEOF
16531 cat confdefs.h
>>conftest.
$ac_ext
16532 cat >>conftest.
$ac_ext <<_ACEOF
16533 /* end confdefs.h. */
16535 #include <sys/types.h>
16537 #include <string.h>
16538 #include <sys/socket.h>
16539 #include <netinet/in.h>
16543 int passive, gaierr, inet4 = 0, inet6 = 0;
16544 struct addrinfo hints, *ai, *aitop;
16545 char straddr[INET6_ADDRSTRLEN], strport[16];
16547 for (passive = 0; passive <= 1; passive++) {
16548 memset(&hints, 0, sizeof(hints));
16549 hints.ai_family = AF_UNSPEC;
16550 hints.ai_flags = passive ? AI_PASSIVE : 0;
16551 hints.ai_socktype = SOCK_STREAM;
16552 hints.ai_protocol = IPPROTO_TCP;
16553 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
16554 (void)gai_strerror(gaierr);
16557 for (ai = aitop; ai; ai = ai->ai_next) {
16558 if (ai->ai_addr == NULL ||
16559 ai->ai_addrlen == 0 ||
16560 getnameinfo(ai->ai_addr, ai->ai_addrlen,
16561 straddr, sizeof(straddr), strport, sizeof(strport),
16562 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
16565 switch (ai->ai_family) {
16567 if (strcmp(strport, "54321") != 0) {
16571 if (strcmp(straddr, "0.0.0.0") != 0) {
16575 if (strcmp(straddr, "127.0.0.1") != 0) {
16582 if (strcmp(strport, "54321") != 0) {
16586 if (strcmp(straddr, "::") != 0) {
16590 if (strcmp(straddr, "::1") != 0) {
16600 /* another family support? */
16606 if (!(inet4 == 0 || inet4 == 2))
16608 if (!(inet6 == 0 || inet6 == 2))
16612 freeaddrinfo(aitop);
16617 freeaddrinfo(aitop);
16622 rm -f conftest
$ac_exeext
16623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16624 (eval $ac_link) 2>&5
16626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16627 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
16628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16629 (eval $ac_try) 2>&5
16631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16632 (exit $ac_status); }; }; then
16633 echo "$as_me:$LINENO: result: good" >&5
16634 echo "${ECHO_T}good" >&6
16635 buggygetaddrinfo
=no
16637 echo "$as_me: program exited with status $ac_status" >&5
16638 echo "$as_me: failed program was:" >&5
16639 sed 's/^/| /' conftest.
$ac_ext >&5
16641 ( exit $ac_status )
16642 echo "$as_me:$LINENO: result: buggy" >&5
16643 echo "${ECHO_T}buggy" >&6
16644 buggygetaddrinfo
=yes
16646 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
16649 echo "$as_me: failed program was:" >&5
16650 sed 's/^/| /' conftest.
$ac_ext >&5
16653 echo "$as_me:$LINENO: result: no" >&5
16654 echo "${ECHO_T}no" >&6
16655 buggygetaddrinfo
=yes
16658 rm -f conftest.err conftest.
$ac_objext \
16659 conftest
$ac_exeext conftest.
$ac_ext
16661 if test "$buggygetaddrinfo" = "yes"; then
16662 if test "$ipv6" = "yes"; then
16663 echo 'Fatal: You must get working getaddrinfo() function.'
16664 echo ' or you can specify "--disable-ipv6"'.
16669 cat >>confdefs.h
<<\_ACEOF
16670 #define HAVE_GETADDRINFO 1
16675 for ac_func
in getnameinfo
16677 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16678 echo "$as_me:$LINENO: checking for $ac_func" >&5
16679 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16680 if eval "test \"\${$as_ac_var+set}\" = set"; then
16681 echo $ECHO_N "(cached) $ECHO_C" >&6
16683 cat >conftest.
$ac_ext <<_ACEOF
16686 cat confdefs.h
>>conftest.
$ac_ext
16687 cat >>conftest.
$ac_ext <<_ACEOF
16688 /* end confdefs.h. */
16689 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16690 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16691 #define $ac_func innocuous_$ac_func
16693 /* System header to define __stub macros and hopefully few prototypes,
16694 which can conflict with char $ac_func (); below.
16695 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16696 <limits.h> exists even on freestanding compilers. */
16699 # include <limits.h>
16701 # include <assert.h>
16706 /* Override any gcc2 internal prototype to avoid an error. */
16711 /* We use char because int might match the return type of a gcc2
16712 builtin and then its argument prototype would still apply. */
16714 /* The GNU C library defines this for functions which it implements
16715 to always fail with ENOSYS. Some functions are actually named
16716 something starting with __ and the normal name is an alias. */
16717 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16720 char (*f) () = $ac_func;
16729 return f != $ac_func;
16734 rm -f conftest.
$ac_objext conftest
$ac_exeext
16735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16736 (eval $ac_link) 2>conftest.er1
16738 grep -v '^ *+' conftest.er1
>conftest.err
16740 cat conftest.err
>&5
16741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16742 (exit $ac_status); } &&
16743 { ac_try
='test -z "$ac_c_werror_flag"
16744 || test ! -s conftest.err'
16745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16746 (eval $ac_try) 2>&5
16748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16749 (exit $ac_status); }; } &&
16750 { ac_try
='test -s conftest$ac_exeext'
16751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16752 (eval $ac_try) 2>&5
16754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16755 (exit $ac_status); }; }; then
16756 eval "$as_ac_var=yes"
16758 echo "$as_me: failed program was:" >&5
16759 sed 's/^/| /' conftest.
$ac_ext >&5
16761 eval "$as_ac_var=no"
16763 rm -f conftest.err conftest.
$ac_objext \
16764 conftest
$ac_exeext conftest.
$ac_ext
16766 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16767 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16768 if test `eval echo '${'$as_ac_var'}'` = yes; then
16769 cat >>confdefs.h
<<_ACEOF
16770 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16777 # checks for structures
16778 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
16779 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
16780 if test "${ac_cv_header_time+set}" = set; then
16781 echo $ECHO_N "(cached) $ECHO_C" >&6
16783 cat >conftest.
$ac_ext <<_ACEOF
16786 cat confdefs.h
>>conftest.
$ac_ext
16787 cat >>conftest.
$ac_ext <<_ACEOF
16788 /* end confdefs.h. */
16789 #include <sys/types.h>
16790 #include <sys/time.h>
16796 if ((struct tm *) 0)
16802 rm -f conftest.
$ac_objext
16803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16804 (eval $ac_compile) 2>conftest.er1
16806 grep -v '^ *+' conftest.er1
>conftest.err
16808 cat conftest.err
>&5
16809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16810 (exit $ac_status); } &&
16811 { ac_try
='test -z "$ac_c_werror_flag"
16812 || test ! -s conftest.err'
16813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16814 (eval $ac_try) 2>&5
16816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16817 (exit $ac_status); }; } &&
16818 { ac_try
='test -s conftest.$ac_objext'
16819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16820 (eval $ac_try) 2>&5
16822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16823 (exit $ac_status); }; }; then
16824 ac_cv_header_time
=yes
16826 echo "$as_me: failed program was:" >&5
16827 sed 's/^/| /' conftest.
$ac_ext >&5
16829 ac_cv_header_time
=no
16831 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16833 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
16834 echo "${ECHO_T}$ac_cv_header_time" >&6
16835 if test $ac_cv_header_time = yes; then
16837 cat >>confdefs.h
<<\_ACEOF
16838 #define TIME_WITH_SYS_TIME 1
16843 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16844 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
16845 if test "${ac_cv_struct_tm+set}" = set; then
16846 echo $ECHO_N "(cached) $ECHO_C" >&6
16848 cat >conftest.
$ac_ext <<_ACEOF
16851 cat confdefs.h
>>conftest.
$ac_ext
16852 cat >>conftest.
$ac_ext <<_ACEOF
16853 /* end confdefs.h. */
16854 #include <sys/types.h>
16860 struct tm *tp; tp->tm_sec;
16865 rm -f conftest.
$ac_objext
16866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16867 (eval $ac_compile) 2>conftest.er1
16869 grep -v '^ *+' conftest.er1
>conftest.err
16871 cat conftest.err
>&5
16872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16873 (exit $ac_status); } &&
16874 { ac_try
='test -z "$ac_c_werror_flag"
16875 || test ! -s conftest.err'
16876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16877 (eval $ac_try) 2>&5
16879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16880 (exit $ac_status); }; } &&
16881 { ac_try
='test -s conftest.$ac_objext'
16882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16883 (eval $ac_try) 2>&5
16885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16886 (exit $ac_status); }; }; then
16887 ac_cv_struct_tm
=time.h
16889 echo "$as_me: failed program was:" >&5
16890 sed 's/^/| /' conftest.
$ac_ext >&5
16892 ac_cv_struct_tm
=sys
/time.h
16894 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16896 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16897 echo "${ECHO_T}$ac_cv_struct_tm" >&6
16898 if test $ac_cv_struct_tm = sys
/time.h
; then
16900 cat >>confdefs.h
<<\_ACEOF
16901 #define TM_IN_SYS_TIME 1
16906 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
16907 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
16908 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
16909 echo $ECHO_N "(cached) $ECHO_C" >&6
16911 cat >conftest.
$ac_ext <<_ACEOF
16914 cat confdefs.h
>>conftest.
$ac_ext
16915 cat >>conftest.
$ac_ext <<_ACEOF
16916 /* end confdefs.h. */
16917 #include <sys/types.h>
16918 #include <$ac_cv_struct_tm>
16924 static struct tm ac_aggr;
16925 if (ac_aggr.tm_zone)
16931 rm -f conftest.
$ac_objext
16932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16933 (eval $ac_compile) 2>conftest.er1
16935 grep -v '^ *+' conftest.er1
>conftest.err
16937 cat conftest.err
>&5
16938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16939 (exit $ac_status); } &&
16940 { ac_try
='test -z "$ac_c_werror_flag"
16941 || test ! -s conftest.err'
16942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16943 (eval $ac_try) 2>&5
16945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16946 (exit $ac_status); }; } &&
16947 { ac_try
='test -s conftest.$ac_objext'
16948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16949 (eval $ac_try) 2>&5
16951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16952 (exit $ac_status); }; }; then
16953 ac_cv_member_struct_tm_tm_zone
=yes
16955 echo "$as_me: failed program was:" >&5
16956 sed 's/^/| /' conftest.
$ac_ext >&5
16958 cat >conftest.
$ac_ext <<_ACEOF
16961 cat confdefs.h
>>conftest.
$ac_ext
16962 cat >>conftest.
$ac_ext <<_ACEOF
16963 /* end confdefs.h. */
16964 #include <sys/types.h>
16965 #include <$ac_cv_struct_tm>
16971 static struct tm ac_aggr;
16972 if (sizeof ac_aggr.tm_zone)
16978 rm -f conftest.
$ac_objext
16979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16980 (eval $ac_compile) 2>conftest.er1
16982 grep -v '^ *+' conftest.er1
>conftest.err
16984 cat conftest.err
>&5
16985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16986 (exit $ac_status); } &&
16987 { ac_try
='test -z "$ac_c_werror_flag"
16988 || test ! -s conftest.err'
16989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16990 (eval $ac_try) 2>&5
16992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16993 (exit $ac_status); }; } &&
16994 { ac_try
='test -s conftest.$ac_objext'
16995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16996 (eval $ac_try) 2>&5
16998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16999 (exit $ac_status); }; }; then
17000 ac_cv_member_struct_tm_tm_zone
=yes
17002 echo "$as_me: failed program was:" >&5
17003 sed 's/^/| /' conftest.
$ac_ext >&5
17005 ac_cv_member_struct_tm_tm_zone
=no
17007 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17009 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17011 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
17012 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
17013 if test $ac_cv_member_struct_tm_tm_zone = yes; then
17015 cat >>confdefs.h
<<_ACEOF
17016 #define HAVE_STRUCT_TM_TM_ZONE 1
17022 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
17024 cat >>confdefs.h
<<\_ACEOF
17025 #define HAVE_TM_ZONE 1
17029 echo "$as_me:$LINENO: checking for tzname" >&5
17030 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
17031 if test "${ac_cv_var_tzname+set}" = set; then
17032 echo $ECHO_N "(cached) $ECHO_C" >&6
17034 cat >conftest.
$ac_ext <<_ACEOF
17037 cat confdefs.h
>>conftest.
$ac_ext
17038 cat >>conftest.
$ac_ext <<_ACEOF
17039 /* end confdefs.h. */
17041 #ifndef tzname /* For SGI. */
17042 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
17053 rm -f conftest.
$ac_objext conftest
$ac_exeext
17054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17055 (eval $ac_link) 2>conftest.er1
17057 grep -v '^ *+' conftest.er1
>conftest.err
17059 cat conftest.err
>&5
17060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17061 (exit $ac_status); } &&
17062 { ac_try
='test -z "$ac_c_werror_flag"
17063 || test ! -s conftest.err'
17064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17065 (eval $ac_try) 2>&5
17067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17068 (exit $ac_status); }; } &&
17069 { ac_try
='test -s conftest$ac_exeext'
17070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17071 (eval $ac_try) 2>&5
17073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17074 (exit $ac_status); }; }; then
17075 ac_cv_var_tzname
=yes
17077 echo "$as_me: failed program was:" >&5
17078 sed 's/^/| /' conftest.
$ac_ext >&5
17080 ac_cv_var_tzname
=no
17082 rm -f conftest.err conftest.
$ac_objext \
17083 conftest
$ac_exeext conftest.
$ac_ext
17085 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
17086 echo "${ECHO_T}$ac_cv_var_tzname" >&6
17087 if test $ac_cv_var_tzname = yes; then
17089 cat >>confdefs.h
<<\_ACEOF
17090 #define HAVE_TZNAME 1
17096 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
17097 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
17098 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
17099 echo $ECHO_N "(cached) $ECHO_C" >&6
17101 cat >conftest.
$ac_ext <<_ACEOF
17104 cat confdefs.h
>>conftest.
$ac_ext
17105 cat >>conftest.
$ac_ext <<_ACEOF
17106 /* end confdefs.h. */
17107 $ac_includes_default
17111 static struct stat ac_aggr;
17112 if (ac_aggr.st_rdev)
17118 rm -f conftest.
$ac_objext
17119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17120 (eval $ac_compile) 2>conftest.er1
17122 grep -v '^ *+' conftest.er1
>conftest.err
17124 cat conftest.err
>&5
17125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17126 (exit $ac_status); } &&
17127 { ac_try
='test -z "$ac_c_werror_flag"
17128 || test ! -s conftest.err'
17129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17130 (eval $ac_try) 2>&5
17132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17133 (exit $ac_status); }; } &&
17134 { ac_try
='test -s conftest.$ac_objext'
17135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17136 (eval $ac_try) 2>&5
17138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17139 (exit $ac_status); }; }; then
17140 ac_cv_member_struct_stat_st_rdev
=yes
17142 echo "$as_me: failed program was:" >&5
17143 sed 's/^/| /' conftest.
$ac_ext >&5
17145 cat >conftest.
$ac_ext <<_ACEOF
17148 cat confdefs.h
>>conftest.
$ac_ext
17149 cat >>conftest.
$ac_ext <<_ACEOF
17150 /* end confdefs.h. */
17151 $ac_includes_default
17155 static struct stat ac_aggr;
17156 if (sizeof ac_aggr.st_rdev)
17162 rm -f conftest.
$ac_objext
17163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17164 (eval $ac_compile) 2>conftest.er1
17166 grep -v '^ *+' conftest.er1
>conftest.err
17168 cat conftest.err
>&5
17169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17170 (exit $ac_status); } &&
17171 { ac_try
='test -z "$ac_c_werror_flag"
17172 || test ! -s conftest.err'
17173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17174 (eval $ac_try) 2>&5
17176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17177 (exit $ac_status); }; } &&
17178 { ac_try
='test -s conftest.$ac_objext'
17179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17180 (eval $ac_try) 2>&5
17182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17183 (exit $ac_status); }; }; then
17184 ac_cv_member_struct_stat_st_rdev
=yes
17186 echo "$as_me: failed program was:" >&5
17187 sed 's/^/| /' conftest.
$ac_ext >&5
17189 ac_cv_member_struct_stat_st_rdev
=no
17191 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17193 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17195 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
17196 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
17197 if test $ac_cv_member_struct_stat_st_rdev = yes; then
17199 cat >>confdefs.h
<<_ACEOF
17200 #define HAVE_STRUCT_STAT_ST_RDEV 1
17206 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
17207 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
17208 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
17209 echo $ECHO_N "(cached) $ECHO_C" >&6
17211 cat >conftest.
$ac_ext <<_ACEOF
17214 cat confdefs.h
>>conftest.
$ac_ext
17215 cat >>conftest.
$ac_ext <<_ACEOF
17216 /* end confdefs.h. */
17217 $ac_includes_default
17221 static struct stat ac_aggr;
17222 if (ac_aggr.st_blksize)
17228 rm -f conftest.
$ac_objext
17229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17230 (eval $ac_compile) 2>conftest.er1
17232 grep -v '^ *+' conftest.er1
>conftest.err
17234 cat conftest.err
>&5
17235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17236 (exit $ac_status); } &&
17237 { ac_try
='test -z "$ac_c_werror_flag"
17238 || test ! -s conftest.err'
17239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17240 (eval $ac_try) 2>&5
17242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17243 (exit $ac_status); }; } &&
17244 { ac_try
='test -s conftest.$ac_objext'
17245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17246 (eval $ac_try) 2>&5
17248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17249 (exit $ac_status); }; }; then
17250 ac_cv_member_struct_stat_st_blksize
=yes
17252 echo "$as_me: failed program was:" >&5
17253 sed 's/^/| /' conftest.
$ac_ext >&5
17255 cat >conftest.
$ac_ext <<_ACEOF
17258 cat confdefs.h
>>conftest.
$ac_ext
17259 cat >>conftest.
$ac_ext <<_ACEOF
17260 /* end confdefs.h. */
17261 $ac_includes_default
17265 static struct stat ac_aggr;
17266 if (sizeof ac_aggr.st_blksize)
17272 rm -f conftest.
$ac_objext
17273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17274 (eval $ac_compile) 2>conftest.er1
17276 grep -v '^ *+' conftest.er1
>conftest.err
17278 cat conftest.err
>&5
17279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17280 (exit $ac_status); } &&
17281 { ac_try
='test -z "$ac_c_werror_flag"
17282 || test ! -s conftest.err'
17283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17284 (eval $ac_try) 2>&5
17286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17287 (exit $ac_status); }; } &&
17288 { ac_try
='test -s conftest.$ac_objext'
17289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17290 (eval $ac_try) 2>&5
17292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17293 (exit $ac_status); }; }; then
17294 ac_cv_member_struct_stat_st_blksize
=yes
17296 echo "$as_me: failed program was:" >&5
17297 sed 's/^/| /' conftest.
$ac_ext >&5
17299 ac_cv_member_struct_stat_st_blksize
=no
17301 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17303 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17305 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
17306 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
17307 if test $ac_cv_member_struct_stat_st_blksize = yes; then
17309 cat >>confdefs.h
<<_ACEOF
17310 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
17316 echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
17317 echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6
17318 if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
17319 echo $ECHO_N "(cached) $ECHO_C" >&6
17321 cat >conftest.
$ac_ext <<_ACEOF
17324 cat confdefs.h
>>conftest.
$ac_ext
17325 cat >>conftest.
$ac_ext <<_ACEOF
17326 /* end confdefs.h. */
17327 $ac_includes_default
17331 static struct stat ac_aggr;
17332 if (ac_aggr.st_flags)
17338 rm -f conftest.
$ac_objext
17339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17340 (eval $ac_compile) 2>conftest.er1
17342 grep -v '^ *+' conftest.er1
>conftest.err
17344 cat conftest.err
>&5
17345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17346 (exit $ac_status); } &&
17347 { ac_try
='test -z "$ac_c_werror_flag"
17348 || test ! -s conftest.err'
17349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17350 (eval $ac_try) 2>&5
17352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17353 (exit $ac_status); }; } &&
17354 { ac_try
='test -s conftest.$ac_objext'
17355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17356 (eval $ac_try) 2>&5
17358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17359 (exit $ac_status); }; }; then
17360 ac_cv_member_struct_stat_st_flags
=yes
17362 echo "$as_me: failed program was:" >&5
17363 sed 's/^/| /' conftest.
$ac_ext >&5
17365 cat >conftest.
$ac_ext <<_ACEOF
17368 cat confdefs.h
>>conftest.
$ac_ext
17369 cat >>conftest.
$ac_ext <<_ACEOF
17370 /* end confdefs.h. */
17371 $ac_includes_default
17375 static struct stat ac_aggr;
17376 if (sizeof ac_aggr.st_flags)
17382 rm -f conftest.
$ac_objext
17383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17384 (eval $ac_compile) 2>conftest.er1
17386 grep -v '^ *+' conftest.er1
>conftest.err
17388 cat conftest.err
>&5
17389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17390 (exit $ac_status); } &&
17391 { ac_try
='test -z "$ac_c_werror_flag"
17392 || test ! -s conftest.err'
17393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17394 (eval $ac_try) 2>&5
17396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17397 (exit $ac_status); }; } &&
17398 { ac_try
='test -s conftest.$ac_objext'
17399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17400 (eval $ac_try) 2>&5
17402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17403 (exit $ac_status); }; }; then
17404 ac_cv_member_struct_stat_st_flags
=yes
17406 echo "$as_me: failed program was:" >&5
17407 sed 's/^/| /' conftest.
$ac_ext >&5
17409 ac_cv_member_struct_stat_st_flags
=no
17411 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17413 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17415 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
17416 echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6
17417 if test $ac_cv_member_struct_stat_st_flags = yes; then
17419 cat >>confdefs.h
<<_ACEOF
17420 #define HAVE_STRUCT_STAT_ST_FLAGS 1
17426 echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
17427 echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6
17428 if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
17429 echo $ECHO_N "(cached) $ECHO_C" >&6
17431 cat >conftest.
$ac_ext <<_ACEOF
17434 cat confdefs.h
>>conftest.
$ac_ext
17435 cat >>conftest.
$ac_ext <<_ACEOF
17436 /* end confdefs.h. */
17437 $ac_includes_default
17441 static struct stat ac_aggr;
17442 if (ac_aggr.st_gen)
17448 rm -f conftest.
$ac_objext
17449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17450 (eval $ac_compile) 2>conftest.er1
17452 grep -v '^ *+' conftest.er1
>conftest.err
17454 cat conftest.err
>&5
17455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17456 (exit $ac_status); } &&
17457 { ac_try
='test -z "$ac_c_werror_flag"
17458 || test ! -s conftest.err'
17459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17460 (eval $ac_try) 2>&5
17462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17463 (exit $ac_status); }; } &&
17464 { ac_try
='test -s conftest.$ac_objext'
17465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17466 (eval $ac_try) 2>&5
17468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17469 (exit $ac_status); }; }; then
17470 ac_cv_member_struct_stat_st_gen
=yes
17472 echo "$as_me: failed program was:" >&5
17473 sed 's/^/| /' conftest.
$ac_ext >&5
17475 cat >conftest.
$ac_ext <<_ACEOF
17478 cat confdefs.h
>>conftest.
$ac_ext
17479 cat >>conftest.
$ac_ext <<_ACEOF
17480 /* end confdefs.h. */
17481 $ac_includes_default
17485 static struct stat ac_aggr;
17486 if (sizeof ac_aggr.st_gen)
17492 rm -f conftest.
$ac_objext
17493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17494 (eval $ac_compile) 2>conftest.er1
17496 grep -v '^ *+' conftest.er1
>conftest.err
17498 cat conftest.err
>&5
17499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17500 (exit $ac_status); } &&
17501 { ac_try
='test -z "$ac_c_werror_flag"
17502 || test ! -s conftest.err'
17503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17504 (eval $ac_try) 2>&5
17506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17507 (exit $ac_status); }; } &&
17508 { ac_try
='test -s conftest.$ac_objext'
17509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17510 (eval $ac_try) 2>&5
17512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17513 (exit $ac_status); }; }; then
17514 ac_cv_member_struct_stat_st_gen
=yes
17516 echo "$as_me: failed program was:" >&5
17517 sed 's/^/| /' conftest.
$ac_ext >&5
17519 ac_cv_member_struct_stat_st_gen
=no
17521 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17523 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17525 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
17526 echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6
17527 if test $ac_cv_member_struct_stat_st_gen = yes; then
17529 cat >>confdefs.h
<<_ACEOF
17530 #define HAVE_STRUCT_STAT_ST_GEN 1
17536 echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
17537 echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6
17538 if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
17539 echo $ECHO_N "(cached) $ECHO_C" >&6
17541 cat >conftest.
$ac_ext <<_ACEOF
17544 cat confdefs.h
>>conftest.
$ac_ext
17545 cat >>conftest.
$ac_ext <<_ACEOF
17546 /* end confdefs.h. */
17547 $ac_includes_default
17551 static struct stat ac_aggr;
17552 if (ac_aggr.st_birthtime)
17558 rm -f conftest.
$ac_objext
17559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17560 (eval $ac_compile) 2>conftest.er1
17562 grep -v '^ *+' conftest.er1
>conftest.err
17564 cat conftest.err
>&5
17565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17566 (exit $ac_status); } &&
17567 { ac_try
='test -z "$ac_c_werror_flag"
17568 || test ! -s conftest.err'
17569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17570 (eval $ac_try) 2>&5
17572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17573 (exit $ac_status); }; } &&
17574 { ac_try
='test -s conftest.$ac_objext'
17575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17576 (eval $ac_try) 2>&5
17578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17579 (exit $ac_status); }; }; then
17580 ac_cv_member_struct_stat_st_birthtime
=yes
17582 echo "$as_me: failed program was:" >&5
17583 sed 's/^/| /' conftest.
$ac_ext >&5
17585 cat >conftest.
$ac_ext <<_ACEOF
17588 cat confdefs.h
>>conftest.
$ac_ext
17589 cat >>conftest.
$ac_ext <<_ACEOF
17590 /* end confdefs.h. */
17591 $ac_includes_default
17595 static struct stat ac_aggr;
17596 if (sizeof ac_aggr.st_birthtime)
17602 rm -f conftest.
$ac_objext
17603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17604 (eval $ac_compile) 2>conftest.er1
17606 grep -v '^ *+' conftest.er1
>conftest.err
17608 cat conftest.err
>&5
17609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17610 (exit $ac_status); } &&
17611 { ac_try
='test -z "$ac_c_werror_flag"
17612 || test ! -s conftest.err'
17613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17614 (eval $ac_try) 2>&5
17616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17617 (exit $ac_status); }; } &&
17618 { ac_try
='test -s conftest.$ac_objext'
17619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17620 (eval $ac_try) 2>&5
17622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17623 (exit $ac_status); }; }; then
17624 ac_cv_member_struct_stat_st_birthtime
=yes
17626 echo "$as_me: failed program was:" >&5
17627 sed 's/^/| /' conftest.
$ac_ext >&5
17629 ac_cv_member_struct_stat_st_birthtime
=no
17631 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17633 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17635 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
17636 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6
17637 if test $ac_cv_member_struct_stat_st_birthtime = yes; then
17639 cat >>confdefs.h
<<_ACEOF
17640 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
17646 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
17647 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
17648 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
17649 echo $ECHO_N "(cached) $ECHO_C" >&6
17651 cat >conftest.
$ac_ext <<_ACEOF
17654 cat confdefs.h
>>conftest.
$ac_ext
17655 cat >>conftest.
$ac_ext <<_ACEOF
17656 /* end confdefs.h. */
17657 $ac_includes_default
17661 static struct stat ac_aggr;
17662 if (ac_aggr.st_blocks)
17668 rm -f conftest.
$ac_objext
17669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17670 (eval $ac_compile) 2>conftest.er1
17672 grep -v '^ *+' conftest.er1
>conftest.err
17674 cat conftest.err
>&5
17675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17676 (exit $ac_status); } &&
17677 { ac_try
='test -z "$ac_c_werror_flag"
17678 || test ! -s conftest.err'
17679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17680 (eval $ac_try) 2>&5
17682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17683 (exit $ac_status); }; } &&
17684 { ac_try
='test -s conftest.$ac_objext'
17685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17686 (eval $ac_try) 2>&5
17688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17689 (exit $ac_status); }; }; then
17690 ac_cv_member_struct_stat_st_blocks
=yes
17692 echo "$as_me: failed program was:" >&5
17693 sed 's/^/| /' conftest.
$ac_ext >&5
17695 cat >conftest.
$ac_ext <<_ACEOF
17698 cat confdefs.h
>>conftest.
$ac_ext
17699 cat >>conftest.
$ac_ext <<_ACEOF
17700 /* end confdefs.h. */
17701 $ac_includes_default
17705 static struct stat ac_aggr;
17706 if (sizeof ac_aggr.st_blocks)
17712 rm -f conftest.
$ac_objext
17713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17714 (eval $ac_compile) 2>conftest.er1
17716 grep -v '^ *+' conftest.er1
>conftest.err
17718 cat conftest.err
>&5
17719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17720 (exit $ac_status); } &&
17721 { ac_try
='test -z "$ac_c_werror_flag"
17722 || test ! -s conftest.err'
17723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17724 (eval $ac_try) 2>&5
17726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17727 (exit $ac_status); }; } &&
17728 { ac_try
='test -s conftest.$ac_objext'
17729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17730 (eval $ac_try) 2>&5
17732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17733 (exit $ac_status); }; }; then
17734 ac_cv_member_struct_stat_st_blocks
=yes
17736 echo "$as_me: failed program was:" >&5
17737 sed 's/^/| /' conftest.
$ac_ext >&5
17739 ac_cv_member_struct_stat_st_blocks
=no
17741 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17743 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17745 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
17746 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
17747 if test $ac_cv_member_struct_stat_st_blocks = yes; then
17749 cat >>confdefs.h
<<_ACEOF
17750 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
17754 cat >>confdefs.h
<<\_ACEOF
17755 #define HAVE_ST_BLOCKS 1
17760 "fileblocks.$ac_objext" | \
17761 *" fileblocks.$ac_objext" | \
17762 "fileblocks.$ac_objext "* | \
17763 *" fileblocks.$ac_objext "* ) ;;
17764 *) LIBOBJS
="$LIBOBJS fileblocks.$ac_objext" ;;
17771 echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
17772 echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6
17773 if test "${ac_cv_header_time_altzone+set}" = set; then
17774 echo $ECHO_N "(cached) $ECHO_C" >&6
17776 cat >conftest.
$ac_ext <<_ACEOF
17779 cat confdefs.h
>>conftest.
$ac_ext
17780 cat >>conftest.
$ac_ext <<_ACEOF
17781 /* end confdefs.h. */
17791 rm -f conftest.
$ac_objext
17792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17793 (eval $ac_compile) 2>conftest.er1
17795 grep -v '^ *+' conftest.er1
>conftest.err
17797 cat conftest.err
>&5
17798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17799 (exit $ac_status); } &&
17800 { ac_try
='test -z "$ac_c_werror_flag"
17801 || test ! -s conftest.err'
17802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17803 (eval $ac_try) 2>&5
17805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17806 (exit $ac_status); }; } &&
17807 { ac_try
='test -s conftest.$ac_objext'
17808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17809 (eval $ac_try) 2>&5
17811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17812 (exit $ac_status); }; }; then
17813 ac_cv_header_time_altzone
=yes
17815 echo "$as_me: failed program was:" >&5
17816 sed 's/^/| /' conftest.
$ac_ext >&5
17818 ac_cv_header_time_altzone
=no
17820 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17823 echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
17824 echo "${ECHO_T}$ac_cv_header_time_altzone" >&6
17825 if test $ac_cv_header_time_altzone = yes; then
17827 cat >>confdefs.h
<<\_ACEOF
17828 #define HAVE_ALTZONE 1
17834 echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
17835 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6
17836 cat >conftest.
$ac_ext <<_ACEOF
17839 cat confdefs.h
>>conftest.
$ac_ext
17840 cat >>conftest.
$ac_ext <<_ACEOF
17841 /* end confdefs.h. */
17843 #include <sys/types.h>
17844 #include <sys/select.h>
17845 #include <sys/time.h>
17855 rm -f conftest.
$ac_objext
17856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17857 (eval $ac_compile) 2>conftest.er1
17859 grep -v '^ *+' conftest.er1
>conftest.err
17861 cat conftest.err
>&5
17862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17863 (exit $ac_status); } &&
17864 { ac_try
='test -z "$ac_c_werror_flag"
17865 || test ! -s conftest.err'
17866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17867 (eval $ac_try) 2>&5
17869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17870 (exit $ac_status); }; } &&
17871 { ac_try
='test -s conftest.$ac_objext'
17872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17873 (eval $ac_try) 2>&5
17875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17876 (exit $ac_status); }; }; then
17879 cat >>confdefs.h
<<\_ACEOF
17880 #define SYS_SELECT_WITH_SYS_TIME 1
17886 echo "$as_me: failed program was:" >&5
17887 sed 's/^/| /' conftest.
$ac_ext >&5
17890 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17891 echo "$as_me:$LINENO: result: $was_it_defined" >&5
17892 echo "${ECHO_T}$was_it_defined" >&6
17894 echo "$as_me:$LINENO: checking for addrinfo" >&5
17895 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6
17896 if test "${ac_cv_struct_addrinfo+set}" = set; then
17897 echo $ECHO_N "(cached) $ECHO_C" >&6
17899 cat >conftest.
$ac_ext <<_ACEOF
17902 cat confdefs.h
>>conftest.
$ac_ext
17903 cat >>conftest.
$ac_ext <<_ACEOF
17904 /* end confdefs.h. */
17906 # include <netdb.h>
17915 rm -f conftest.
$ac_objext
17916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17917 (eval $ac_compile) 2>conftest.er1
17919 grep -v '^ *+' conftest.er1
>conftest.err
17921 cat conftest.err
>&5
17922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17923 (exit $ac_status); } &&
17924 { ac_try
='test -z "$ac_c_werror_flag"
17925 || test ! -s conftest.err'
17926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17927 (eval $ac_try) 2>&5
17929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17930 (exit $ac_status); }; } &&
17931 { ac_try
='test -s conftest.$ac_objext'
17932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17933 (eval $ac_try) 2>&5
17935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17936 (exit $ac_status); }; }; then
17937 ac_cv_struct_addrinfo
=yes
17939 echo "$as_me: failed program was:" >&5
17940 sed 's/^/| /' conftest.
$ac_ext >&5
17942 ac_cv_struct_addrinfo
=no
17944 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17947 echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
17948 echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6
17949 if test $ac_cv_struct_addrinfo = yes; then
17951 cat >>confdefs.h
<<\_ACEOF
17952 #define HAVE_ADDRINFO 1
17957 echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
17958 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6
17959 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
17960 echo $ECHO_N "(cached) $ECHO_C" >&6
17962 cat >conftest.
$ac_ext <<_ACEOF
17965 cat confdefs.h
>>conftest.
$ac_ext
17966 cat >>conftest.
$ac_ext <<_ACEOF
17967 /* end confdefs.h. */
17969 # include <sys/types.h>
17970 # include <sys/socket.h>
17974 struct sockaddr_storage s
17979 rm -f conftest.
$ac_objext
17980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17981 (eval $ac_compile) 2>conftest.er1
17983 grep -v '^ *+' conftest.er1
>conftest.err
17985 cat conftest.err
>&5
17986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17987 (exit $ac_status); } &&
17988 { ac_try
='test -z "$ac_c_werror_flag"
17989 || test ! -s conftest.err'
17990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17991 (eval $ac_try) 2>&5
17993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17994 (exit $ac_status); }; } &&
17995 { ac_try
='test -s conftest.$ac_objext'
17996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17997 (eval $ac_try) 2>&5
17999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18000 (exit $ac_status); }; }; then
18001 ac_cv_struct_sockaddr_storage
=yes
18003 echo "$as_me: failed program was:" >&5
18004 sed 's/^/| /' conftest.
$ac_ext >&5
18006 ac_cv_struct_sockaddr_storage
=no
18008 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18011 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
18012 echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6
18013 if test $ac_cv_struct_sockaddr_storage = yes; then
18015 cat >>confdefs.h
<<\_ACEOF
18016 #define HAVE_SOCKADDR_STORAGE 1
18021 # checks for compiler characteristics
18024 echo "$as_me:$LINENO: checking whether char is unsigned" >&5
18025 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
18026 if test "${ac_cv_c_char_unsigned+set}" = set; then
18027 echo $ECHO_N "(cached) $ECHO_C" >&6
18029 cat >conftest.
$ac_ext <<_ACEOF
18032 cat confdefs.h
>>conftest.
$ac_ext
18033 cat >>conftest.
$ac_ext <<_ACEOF
18034 /* end confdefs.h. */
18035 $ac_includes_default
18039 static int test_array [1 - 2 * !(((char) -1) < 0)];
18046 rm -f conftest.
$ac_objext
18047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18048 (eval $ac_compile) 2>conftest.er1
18050 grep -v '^ *+' conftest.er1
>conftest.err
18052 cat conftest.err
>&5
18053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18054 (exit $ac_status); } &&
18055 { ac_try
='test -z "$ac_c_werror_flag"
18056 || test ! -s conftest.err'
18057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18058 (eval $ac_try) 2>&5
18060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18061 (exit $ac_status); }; } &&
18062 { ac_try
='test -s conftest.$ac_objext'
18063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18064 (eval $ac_try) 2>&5
18066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18067 (exit $ac_status); }; }; then
18068 ac_cv_c_char_unsigned
=no
18070 echo "$as_me: failed program was:" >&5
18071 sed 's/^/| /' conftest.
$ac_ext >&5
18073 ac_cv_c_char_unsigned
=yes
18075 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18077 echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
18078 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
18079 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
18080 cat >>confdefs.h
<<\_ACEOF
18081 #define __CHAR_UNSIGNED__ 1
18086 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18087 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
18088 if test "${ac_cv_c_const+set}" = set; then
18089 echo $ECHO_N "(cached) $ECHO_C" >&6
18091 cat >conftest.
$ac_ext <<_ACEOF
18094 cat confdefs.h
>>conftest.
$ac_ext
18095 cat >>conftest.
$ac_ext <<_ACEOF
18096 /* end confdefs.h. */
18101 /* FIXME: Include the comments suggested by Paul. */
18102 #ifndef __cplusplus
18103 /* Ultrix mips cc rejects this. */
18104 typedef int charset[2];
18106 /* SunOS 4.1.1 cc rejects this. */
18107 char const *const *ccp;
18109 /* NEC SVR4.0.2 mips cc rejects this. */
18110 struct point {int x, y;};
18111 static struct point const zero = {0,0};
18112 /* AIX XL C 1.02.0.0 rejects this.
18113 It does not let you subtract one const X* pointer from another in
18114 an arm of an if-expression whose if-part is not a constant
18116 const char *g = "string";
18117 ccp = &g + (g ? g-g : 0);
18118 /* HPUX 7.0 cc rejects these. */
18121 ccp = (char const *const *) p;
18122 { /* SCO 3.2v4 cc rejects this. */
18124 char const *s = 0 ? (char *) 0 : (char const *) 0;
18128 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18129 int x[] = {25, 17};
18130 const int *foo = &x[0];
18133 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18134 typedef const int *iptr;
18138 { /* AIX XL C 1.02.0.0 rejects this saying
18139 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18140 struct s { int j; const int *ap[3]; };
18141 struct s *b; b->j = 5;
18143 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18144 const int foo = 10;
18152 rm -f conftest.
$ac_objext
18153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18154 (eval $ac_compile) 2>conftest.er1
18156 grep -v '^ *+' conftest.er1
>conftest.err
18158 cat conftest.err
>&5
18159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18160 (exit $ac_status); } &&
18161 { ac_try
='test -z "$ac_c_werror_flag"
18162 || test ! -s conftest.err'
18163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18164 (eval $ac_try) 2>&5
18166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18167 (exit $ac_status); }; } &&
18168 { ac_try
='test -s conftest.$ac_objext'
18169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18170 (eval $ac_try) 2>&5
18172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18173 (exit $ac_status); }; }; then
18176 echo "$as_me: failed program was:" >&5
18177 sed 's/^/| /' conftest.
$ac_ext >&5
18181 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18183 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18184 echo "${ECHO_T}$ac_cv_c_const" >&6
18185 if test $ac_cv_c_const = no
; then
18187 cat >>confdefs.h
<<\_ACEOF
18195 echo "$as_me:$LINENO: checking for working volatile" >&5
18196 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
18197 cat >conftest.
$ac_ext <<_ACEOF
18200 cat confdefs.h
>>conftest.
$ac_ext
18201 cat >>conftest.
$ac_ext <<_ACEOF
18202 /* end confdefs.h. */
18207 volatile int x; x = 0;
18212 rm -f conftest.
$ac_objext
18213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18214 (eval $ac_compile) 2>conftest.er1
18216 grep -v '^ *+' conftest.er1
>conftest.err
18218 cat conftest.err
>&5
18219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18220 (exit $ac_status); } &&
18221 { ac_try
='test -z "$ac_c_werror_flag"
18222 || test ! -s conftest.err'
18223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18224 (eval $ac_try) 2>&5
18226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18227 (exit $ac_status); }; } &&
18228 { ac_try
='test -s conftest.$ac_objext'
18229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18230 (eval $ac_try) 2>&5
18232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18233 (exit $ac_status); }; }; then
18236 echo "$as_me: failed program was:" >&5
18237 sed 's/^/| /' conftest.
$ac_ext >&5
18240 cat >>confdefs.h
<<\_ACEOF
18246 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18247 echo "$as_me:$LINENO: result: $works" >&5
18248 echo "${ECHO_T}$works" >&6
18251 echo "$as_me:$LINENO: checking for working signed char" >&5
18252 echo $ECHO_N "checking for working signed char... $ECHO_C" >&6
18253 cat >conftest.
$ac_ext <<_ACEOF
18256 cat confdefs.h
>>conftest.
$ac_ext
18257 cat >>conftest.
$ac_ext <<_ACEOF
18258 /* end confdefs.h. */
18268 rm -f conftest.
$ac_objext
18269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18270 (eval $ac_compile) 2>conftest.er1
18272 grep -v '^ *+' conftest.er1
>conftest.err
18274 cat conftest.err
>&5
18275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18276 (exit $ac_status); } &&
18277 { ac_try
='test -z "$ac_c_werror_flag"
18278 || test ! -s conftest.err'
18279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18280 (eval $ac_try) 2>&5
18282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18283 (exit $ac_status); }; } &&
18284 { ac_try
='test -s conftest.$ac_objext'
18285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18286 (eval $ac_try) 2>&5
18288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18289 (exit $ac_status); }; }; then
18292 echo "$as_me: failed program was:" >&5
18293 sed 's/^/| /' conftest.
$ac_ext >&5
18296 cat >>confdefs.h
<<\_ACEOF
18302 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18303 echo "$as_me:$LINENO: result: $works" >&5
18304 echo "${ECHO_T}$works" >&6
18307 echo "$as_me:$LINENO: checking for prototypes" >&5
18308 echo $ECHO_N "checking for prototypes... $ECHO_C" >&6
18309 cat >conftest.
$ac_ext <<_ACEOF
18312 cat confdefs.h
>>conftest.
$ac_ext
18313 cat >>conftest.
$ac_ext <<_ACEOF
18314 /* end confdefs.h. */
18315 int foo(int x) { return 0; }
18324 rm -f conftest.
$ac_objext
18325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18326 (eval $ac_compile) 2>conftest.er1
18328 grep -v '^ *+' conftest.er1
>conftest.err
18330 cat conftest.err
>&5
18331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18332 (exit $ac_status); } &&
18333 { ac_try
='test -z "$ac_c_werror_flag"
18334 || test ! -s conftest.err'
18335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18336 (eval $ac_try) 2>&5
18338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18339 (exit $ac_status); }; } &&
18340 { ac_try
='test -s conftest.$ac_objext'
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); }; }; then
18348 cat >>confdefs.h
<<\_ACEOF
18349 #define HAVE_PROTOTYPES 1
18352 have_prototypes
=yes
18355 echo "$as_me: failed program was:" >&5
18356 sed 's/^/| /' conftest.
$ac_ext >&5
18359 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18360 echo "$as_me:$LINENO: result: $have_prototypes" >&5
18361 echo "${ECHO_T}$have_prototypes" >&6
18364 echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
18365 echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6
18366 cat >conftest.
$ac_ext <<_ACEOF
18369 cat confdefs.h
>>conftest.
$ac_ext
18370 cat >>conftest.
$ac_ext <<_ACEOF
18371 /* end confdefs.h. */
18373 #include <stdarg.h>
18374 int foo(int x, ...) {
18378 va_arg(va, char *);
18379 va_arg(va, double);
18386 return foo(10, "", 3.14);
18391 rm -f conftest.
$ac_objext
18392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18393 (eval $ac_compile) 2>conftest.er1
18395 grep -v '^ *+' conftest.er1
>conftest.err
18397 cat conftest.err
>&5
18398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18399 (exit $ac_status); } &&
18400 { ac_try
='test -z "$ac_c_werror_flag"
18401 || test ! -s conftest.err'
18402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18403 (eval $ac_try) 2>&5
18405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18406 (exit $ac_status); }; } &&
18407 { ac_try
='test -s conftest.$ac_objext'
18408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18409 (eval $ac_try) 2>&5
18411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18412 (exit $ac_status); }; }; then
18415 cat >>confdefs.h
<<\_ACEOF
18416 #define HAVE_STDARG_PROTOTYPES 1
18422 echo "$as_me: failed program was:" >&5
18423 sed 's/^/| /' conftest.
$ac_ext >&5
18426 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18427 echo "$as_me:$LINENO: result: $works" >&5
18428 echo "${ECHO_T}$works" >&6
18430 # check for socketpair
18431 echo "$as_me:$LINENO: checking for socketpair" >&5
18432 echo $ECHO_N "checking for socketpair... $ECHO_C" >&6
18433 cat >conftest.
$ac_ext <<_ACEOF
18436 cat confdefs.h
>>conftest.
$ac_ext
18437 cat >>conftest.
$ac_ext <<_ACEOF
18438 /* end confdefs.h. */
18440 #include <sys/types.h>
18441 #include <sys/socket.h>
18451 rm -f conftest.
$ac_objext
18452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18453 (eval $ac_compile) 2>conftest.er1
18455 grep -v '^ *+' conftest.er1
>conftest.err
18457 cat conftest.err
>&5
18458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18459 (exit $ac_status); } &&
18460 { ac_try
='test -z "$ac_c_werror_flag"
18461 || test ! -s conftest.err'
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); }; } &&
18467 { ac_try
='test -s conftest.$ac_objext'
18468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18469 (eval $ac_try) 2>&5
18471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18472 (exit $ac_status); }; }; then
18474 cat >>confdefs.h
<<\_ACEOF
18475 #define HAVE_SOCKETPAIR 1
18478 echo "$as_me:$LINENO: result: yes" >&5
18479 echo "${ECHO_T}yes" >&6
18481 echo "$as_me: failed program was:" >&5
18482 sed 's/^/| /' conftest.
$ac_ext >&5
18484 echo "$as_me:$LINENO: result: no" >&5
18485 echo "${ECHO_T}no" >&6
18488 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18490 # check if sockaddr has sa_len member
18491 echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
18492 echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6
18493 cat >conftest.
$ac_ext <<_ACEOF
18496 cat confdefs.h
>>conftest.
$ac_ext
18497 cat >>conftest.
$ac_ext <<_ACEOF
18498 /* end confdefs.h. */
18499 #include <sys/types.h>
18500 #include <sys/socket.h>
18510 rm -f conftest.
$ac_objext
18511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18512 (eval $ac_compile) 2>conftest.er1
18514 grep -v '^ *+' conftest.er1
>conftest.err
18516 cat conftest.err
>&5
18517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18518 (exit $ac_status); } &&
18519 { ac_try
='test -z "$ac_c_werror_flag"
18520 || test ! -s conftest.err'
18521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18522 (eval $ac_try) 2>&5
18524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18525 (exit $ac_status); }; } &&
18526 { ac_try
='test -s conftest.$ac_objext'
18527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18528 (eval $ac_try) 2>&5
18530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18531 (exit $ac_status); }; }; then
18532 echo "$as_me:$LINENO: result: yes" >&5
18533 echo "${ECHO_T}yes" >&6
18535 cat >>confdefs.h
<<\_ACEOF
18536 #define HAVE_SOCKADDR_SA_LEN 1
18540 echo "$as_me: failed program was:" >&5
18541 sed 's/^/| /' conftest.
$ac_ext >&5
18543 echo "$as_me:$LINENO: result: no" >&5
18544 echo "${ECHO_T}no" >&6
18546 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18548 va_list_is_array
=no
18549 echo "$as_me:$LINENO: checking whether va_list is an array" >&5
18550 echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6
18551 cat >conftest.
$ac_ext <<_ACEOF
18554 cat confdefs.h
>>conftest.
$ac_ext
18555 cat >>conftest.
$ac_ext <<_ACEOF
18556 /* end confdefs.h. */
18558 #ifdef HAVE_STDARG_PROTOTYPES
18559 #include <stdarg.h>
18561 #include <varargs.h>
18567 va_list list1, list2; list1 = list2;
18572 rm -f conftest.
$ac_objext
18573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18574 (eval $ac_compile) 2>conftest.er1
18576 grep -v '^ *+' conftest.er1
>conftest.err
18578 cat conftest.err
>&5
18579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18580 (exit $ac_status); } &&
18581 { ac_try
='test -z "$ac_c_werror_flag"
18582 || test ! -s conftest.err'
18583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18584 (eval $ac_try) 2>&5
18586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18587 (exit $ac_status); }; } &&
18588 { ac_try
='test -s conftest.$ac_objext'
18589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18590 (eval $ac_try) 2>&5
18592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18593 (exit $ac_status); }; }; then
18596 echo "$as_me: failed program was:" >&5
18597 sed 's/^/| /' conftest.
$ac_ext >&5
18601 cat >>confdefs.h
<<\_ACEOF
18602 #define VA_LIST_IS_ARRAY 1
18605 va_list_is_array
=yes
18608 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18609 echo "$as_me:$LINENO: result: $va_list_is_array" >&5
18610 echo "${ECHO_T}$va_list_is_array" >&6
18612 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
18616 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
18617 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
18618 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
18619 echo $ECHO_N "(cached) $ECHO_C" >&6
18621 cat >conftest.
$ac_ext <<_ACEOF
18624 cat confdefs.h
>>conftest.
$ac_ext
18625 cat >>conftest.
$ac_ext <<_ACEOF
18626 /* end confdefs.h. */
18627 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
18628 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18629 #define gethostbyname_r innocuous_gethostbyname_r
18631 /* System header to define __stub macros and hopefully few prototypes,
18632 which can conflict with char gethostbyname_r (); below.
18633 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18634 <limits.h> exists even on freestanding compilers. */
18637 # include <limits.h>
18639 # include <assert.h>
18642 #undef gethostbyname_r
18644 /* Override any gcc2 internal prototype to avoid an error. */
18649 /* We use char because int might match the return type of a gcc2
18650 builtin and then its argument prototype would still apply. */
18651 char gethostbyname_r ();
18652 /* The GNU C library defines this for functions which it implements
18653 to always fail with ENOSYS. Some functions are actually named
18654 something starting with __ and the normal name is an alias. */
18655 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
18658 char (*f) () = gethostbyname_r;
18667 return f != gethostbyname_r;
18672 rm -f conftest.
$ac_objext conftest
$ac_exeext
18673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18674 (eval $ac_link) 2>conftest.er1
18676 grep -v '^ *+' conftest.er1
>conftest.err
18678 cat conftest.err
>&5
18679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18680 (exit $ac_status); } &&
18681 { ac_try
='test -z "$ac_c_werror_flag"
18682 || test ! -s conftest.err'
18683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18684 (eval $ac_try) 2>&5
18686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18687 (exit $ac_status); }; } &&
18688 { ac_try
='test -s conftest$ac_exeext'
18689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18690 (eval $ac_try) 2>&5
18692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18693 (exit $ac_status); }; }; then
18694 ac_cv_func_gethostbyname_r
=yes
18696 echo "$as_me: failed program was:" >&5
18697 sed 's/^/| /' conftest.
$ac_ext >&5
18699 ac_cv_func_gethostbyname_r
=no
18701 rm -f conftest.err conftest.
$ac_objext \
18702 conftest
$ac_exeext conftest.
$ac_ext
18704 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
18705 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
18706 if test $ac_cv_func_gethostbyname_r = yes; then
18708 cat >>confdefs.h
<<\_ACEOF
18709 #define HAVE_GETHOSTBYNAME_R 1
18712 echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
18713 echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6
18715 CFLAGS
="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
18716 cat >conftest.
$ac_ext <<_ACEOF
18719 cat confdefs.h
>>conftest.
$ac_ext
18720 cat >>conftest.
$ac_ext <<_ACEOF
18721 /* end confdefs.h. */
18723 # include <netdb.h>
18730 struct hostent *he, *res;
18735 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
18741 rm -f conftest.
$ac_objext
18742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18743 (eval $ac_compile) 2>conftest.er1
18745 grep -v '^ *+' conftest.er1
>conftest.err
18747 cat conftest.err
>&5
18748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18749 (exit $ac_status); } &&
18750 { ac_try
='test -z "$ac_c_werror_flag"
18751 || test ! -s conftest.err'
18752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18753 (eval $ac_try) 2>&5
18755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18756 (exit $ac_status); }; } &&
18757 { ac_try
='test -s conftest.$ac_objext'
18758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18759 (eval $ac_try) 2>&5
18761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18762 (exit $ac_status); }; }; then
18764 cat >>confdefs.h
<<\_ACEOF
18765 #define HAVE_GETHOSTBYNAME_R 1
18769 cat >>confdefs.h
<<\_ACEOF
18770 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
18773 echo "$as_me:$LINENO: result: yes" >&5
18774 echo "${ECHO_T}yes" >&6
18777 echo "$as_me: failed program was:" >&5
18778 sed 's/^/| /' conftest.
$ac_ext >&5
18781 echo "$as_me:$LINENO: result: no" >&5
18782 echo "${ECHO_T}no" >&6
18783 echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
18784 echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6
18785 cat >conftest.
$ac_ext <<_ACEOF
18788 cat confdefs.h
>>conftest.
$ac_ext
18789 cat >>conftest.
$ac_ext <<_ACEOF
18790 /* end confdefs.h. */
18792 # include <netdb.h>
18799 struct hostent *he;
18804 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
18810 rm -f conftest.
$ac_objext
18811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18812 (eval $ac_compile) 2>conftest.er1
18814 grep -v '^ *+' conftest.er1
>conftest.err
18816 cat conftest.err
>&5
18817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18818 (exit $ac_status); } &&
18819 { ac_try
='test -z "$ac_c_werror_flag"
18820 || test ! -s conftest.err'
18821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18822 (eval $ac_try) 2>&5
18824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18825 (exit $ac_status); }; } &&
18826 { ac_try
='test -s conftest.$ac_objext'
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); }; }; then
18833 cat >>confdefs.h
<<\_ACEOF
18834 #define HAVE_GETHOSTBYNAME_R 1
18838 cat >>confdefs.h
<<\_ACEOF
18839 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
18842 echo "$as_me:$LINENO: result: yes" >&5
18843 echo "${ECHO_T}yes" >&6
18846 echo "$as_me: failed program was:" >&5
18847 sed 's/^/| /' conftest.
$ac_ext >&5
18850 echo "$as_me:$LINENO: result: no" >&5
18851 echo "${ECHO_T}no" >&6
18852 echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
18853 echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6
18854 cat >conftest.
$ac_ext <<_ACEOF
18857 cat confdefs.h
>>conftest.
$ac_ext
18858 cat >>conftest.
$ac_ext <<_ACEOF
18859 /* end confdefs.h. */
18861 # include <netdb.h>
18868 struct hostent *he;
18869 struct hostent_data data;
18871 (void) gethostbyname_r(name, he, &data);
18877 rm -f conftest.
$ac_objext
18878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18879 (eval $ac_compile) 2>conftest.er1
18881 grep -v '^ *+' conftest.er1
>conftest.err
18883 cat conftest.err
>&5
18884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18885 (exit $ac_status); } &&
18886 { ac_try
='test -z "$ac_c_werror_flag"
18887 || test ! -s conftest.err'
18888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18889 (eval $ac_try) 2>&5
18891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18892 (exit $ac_status); }; } &&
18893 { ac_try
='test -s conftest.$ac_objext'
18894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18895 (eval $ac_try) 2>&5
18897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18898 (exit $ac_status); }; }; then
18900 cat >>confdefs.h
<<\_ACEOF
18901 #define HAVE_GETHOSTBYNAME_R 1
18905 cat >>confdefs.h
<<\_ACEOF
18906 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
18909 echo "$as_me:$LINENO: result: yes" >&5
18910 echo "${ECHO_T}yes" >&6
18913 echo "$as_me: failed program was:" >&5
18914 sed 's/^/| /' conftest.
$ac_ext >&5
18917 echo "$as_me:$LINENO: result: no" >&5
18918 echo "${ECHO_T}no" >&6
18921 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18924 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18927 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18933 for ac_func
in gethostbyname
18935 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18936 echo "$as_me:$LINENO: checking for $ac_func" >&5
18937 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18938 if eval "test \"\${$as_ac_var+set}\" = set"; then
18939 echo $ECHO_N "(cached) $ECHO_C" >&6
18941 cat >conftest.
$ac_ext <<_ACEOF
18944 cat confdefs.h
>>conftest.
$ac_ext
18945 cat >>conftest.
$ac_ext <<_ACEOF
18946 /* end confdefs.h. */
18947 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18948 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18949 #define $ac_func innocuous_$ac_func
18951 /* System header to define __stub macros and hopefully few prototypes,
18952 which can conflict with char $ac_func (); below.
18953 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18954 <limits.h> exists even on freestanding compilers. */
18957 # include <limits.h>
18959 # include <assert.h>
18964 /* Override any gcc2 internal prototype to avoid an error. */
18969 /* We use char because int might match the return type of a gcc2
18970 builtin and then its argument prototype would still apply. */
18972 /* The GNU C library defines this for functions which it implements
18973 to always fail with ENOSYS. Some functions are actually named
18974 something starting with __ and the normal name is an alias. */
18975 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18978 char (*f) () = $ac_func;
18987 return f != $ac_func;
18992 rm -f conftest.
$ac_objext conftest
$ac_exeext
18993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18994 (eval $ac_link) 2>conftest.er1
18996 grep -v '^ *+' conftest.er1
>conftest.err
18998 cat conftest.err
>&5
18999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19000 (exit $ac_status); } &&
19001 { ac_try
='test -z "$ac_c_werror_flag"
19002 || test ! -s conftest.err'
19003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19004 (eval $ac_try) 2>&5
19006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19007 (exit $ac_status); }; } &&
19008 { ac_try
='test -s conftest$ac_exeext'
19009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19010 (eval $ac_try) 2>&5
19012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19013 (exit $ac_status); }; }; then
19014 eval "$as_ac_var=yes"
19016 echo "$as_me: failed program was:" >&5
19017 sed 's/^/| /' conftest.
$ac_ext >&5
19019 eval "$as_ac_var=no"
19021 rm -f conftest.err conftest.
$ac_objext \
19022 conftest
$ac_exeext conftest.
$ac_ext
19024 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19025 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19026 if test `eval echo '${'$as_ac_var'}'` = yes; then
19027 cat >>confdefs.h
<<_ACEOF
19028 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19043 # checks for system services
19046 # Linux requires this for correct f.p. operations
19047 echo "$as_me:$LINENO: checking for __fpu_control" >&5
19048 echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6
19049 if test "${ac_cv_func___fpu_control+set}" = set; then
19050 echo $ECHO_N "(cached) $ECHO_C" >&6
19052 cat >conftest.
$ac_ext <<_ACEOF
19055 cat confdefs.h
>>conftest.
$ac_ext
19056 cat >>conftest.
$ac_ext <<_ACEOF
19057 /* end confdefs.h. */
19058 /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control.
19059 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19060 #define __fpu_control innocuous___fpu_control
19062 /* System header to define __stub macros and hopefully few prototypes,
19063 which can conflict with char __fpu_control (); below.
19064 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19065 <limits.h> exists even on freestanding compilers. */
19068 # include <limits.h>
19070 # include <assert.h>
19073 #undef __fpu_control
19075 /* Override any gcc2 internal prototype to avoid an error. */
19080 /* We use char because int might match the return type of a gcc2
19081 builtin and then its argument prototype would still apply. */
19082 char __fpu_control ();
19083 /* The GNU C library defines this for functions which it implements
19084 to always fail with ENOSYS. Some functions are actually named
19085 something starting with __ and the normal name is an alias. */
19086 #if defined (__stub___fpu_control) || defined (__stub_____fpu_control)
19089 char (*f) () = __fpu_control;
19098 return f != __fpu_control;
19103 rm -f conftest.
$ac_objext conftest
$ac_exeext
19104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19105 (eval $ac_link) 2>conftest.er1
19107 grep -v '^ *+' conftest.er1
>conftest.err
19109 cat conftest.err
>&5
19110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19111 (exit $ac_status); } &&
19112 { ac_try
='test -z "$ac_c_werror_flag"
19113 || test ! -s conftest.err'
19114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19115 (eval $ac_try) 2>&5
19117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19118 (exit $ac_status); }; } &&
19119 { ac_try
='test -s conftest$ac_exeext'
19120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19121 (eval $ac_try) 2>&5
19123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19124 (exit $ac_status); }; }; then
19125 ac_cv_func___fpu_control
=yes
19127 echo "$as_me: failed program was:" >&5
19128 sed 's/^/| /' conftest.
$ac_ext >&5
19130 ac_cv_func___fpu_control
=no
19132 rm -f conftest.err conftest.
$ac_objext \
19133 conftest
$ac_exeext conftest.
$ac_ext
19135 echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
19136 echo "${ECHO_T}$ac_cv_func___fpu_control" >&6
19137 if test $ac_cv_func___fpu_control = yes; then
19141 echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
19142 echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6
19143 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
19144 echo $ECHO_N "(cached) $ECHO_C" >&6
19146 ac_check_lib_save_LIBS
=$LIBS
19147 LIBS
="-lieee $LIBS"
19148 cat >conftest.
$ac_ext <<_ACEOF
19151 cat confdefs.h
>>conftest.
$ac_ext
19152 cat >>conftest.
$ac_ext <<_ACEOF
19153 /* end confdefs.h. */
19155 /* Override any gcc2 internal prototype to avoid an error. */
19159 /* We use char because int might match the return type of a gcc2
19160 builtin and then its argument prototype would still apply. */
19161 char __fpu_control ();
19170 rm -f conftest.
$ac_objext conftest
$ac_exeext
19171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19172 (eval $ac_link) 2>conftest.er1
19174 grep -v '^ *+' conftest.er1
>conftest.err
19176 cat conftest.err
>&5
19177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19178 (exit $ac_status); } &&
19179 { ac_try
='test -z "$ac_c_werror_flag"
19180 || test ! -s conftest.err'
19181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19182 (eval $ac_try) 2>&5
19184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19185 (exit $ac_status); }; } &&
19186 { ac_try
='test -s conftest$ac_exeext'
19187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19188 (eval $ac_try) 2>&5
19190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19191 (exit $ac_status); }; }; then
19192 ac_cv_lib_ieee___fpu_control
=yes
19194 echo "$as_me: failed program was:" >&5
19195 sed 's/^/| /' conftest.
$ac_ext >&5
19197 ac_cv_lib_ieee___fpu_control
=no
19199 rm -f conftest.err conftest.
$ac_objext \
19200 conftest
$ac_exeext conftest.
$ac_ext
19201 LIBS
=$ac_check_lib_save_LIBS
19203 echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
19204 echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6
19205 if test $ac_cv_lib_ieee___fpu_control = yes; then
19206 cat >>confdefs.h
<<_ACEOF
19207 #define HAVE_LIBIEEE 1
19210 LIBS
="-lieee $LIBS"
19218 # Check for --with-fpectl
19219 echo "$as_me:$LINENO: checking for --with-fpectl" >&5
19220 echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6
19222 # Check whether --with-fpectl or --without-fpectl was given.
19223 if test "${with_fpectl+set}" = set; then
19224 withval
="$with_fpectl"
19226 if test "$withval" != no
19229 cat >>confdefs.h
<<\_ACEOF
19230 #define WANT_SIGFPE_HANDLER 1
19233 echo "$as_me:$LINENO: result: yes" >&5
19234 echo "${ECHO_T}yes" >&6
19235 else echo "$as_me:$LINENO: result: no" >&5
19236 echo "${ECHO_T}no" >&6
19239 echo "$as_me:$LINENO: result: no" >&5
19240 echo "${ECHO_T}no" >&6
19243 # check for --with-libm=...
19245 case $ac_sys_system in
19250 echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
19251 echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6
19253 # Check whether --with-libm or --without-libm was given.
19254 if test "${with_libm+set}" = set; then
19255 withval
="$with_libm"
19257 if test "$withval" = no
19259 echo "$as_me:$LINENO: result: force LIBM empty" >&5
19260 echo "${ECHO_T}force LIBM empty" >&6
19261 elif test "$withval" != yes
19263 echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
19264 echo "${ECHO_T}set LIBM=\"$withval\"" >&6
19265 else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
19266 echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
19267 { (exit 1); exit 1; }; }
19270 echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
19271 echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6
19274 # check for --with-libc=...
19276 echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
19277 echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6
19279 # Check whether --with-libc or --without-libc was given.
19280 if test "${with_libc+set}" = set; then
19281 withval
="$with_libc"
19283 if test "$withval" = no
19285 echo "$as_me:$LINENO: result: force LIBC empty" >&5
19286 echo "${ECHO_T}force LIBC empty" >&6
19287 elif test "$withval" != yes
19289 echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
19290 echo "${ECHO_T}set LIBC=\"$withval\"" >&6
19291 else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
19292 echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
19293 { (exit 1); exit 1; }; }
19296 echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
19297 echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6
19300 # check for hypot() in math library
19304 for ac_func
in hypot
19306 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19307 echo "$as_me:$LINENO: checking for $ac_func" >&5
19308 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19309 if eval "test \"\${$as_ac_var+set}\" = set"; then
19310 echo $ECHO_N "(cached) $ECHO_C" >&6
19312 cat >conftest.
$ac_ext <<_ACEOF
19315 cat confdefs.h
>>conftest.
$ac_ext
19316 cat >>conftest.
$ac_ext <<_ACEOF
19317 /* end confdefs.h. */
19318 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19319 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19320 #define $ac_func innocuous_$ac_func
19322 /* System header to define __stub macros and hopefully few prototypes,
19323 which can conflict with char $ac_func (); below.
19324 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19325 <limits.h> exists even on freestanding compilers. */
19328 # include <limits.h>
19330 # include <assert.h>
19335 /* Override any gcc2 internal prototype to avoid an error. */
19340 /* We use char because int might match the return type of a gcc2
19341 builtin and then its argument prototype would still apply. */
19343 /* The GNU C library defines this for functions which it implements
19344 to always fail with ENOSYS. Some functions are actually named
19345 something starting with __ and the normal name is an alias. */
19346 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19349 char (*f) () = $ac_func;
19358 return f != $ac_func;
19363 rm -f conftest.
$ac_objext conftest
$ac_exeext
19364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19365 (eval $ac_link) 2>conftest.er1
19367 grep -v '^ *+' conftest.er1
>conftest.err
19369 cat conftest.err
>&5
19370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19371 (exit $ac_status); } &&
19372 { ac_try
='test -z "$ac_c_werror_flag"
19373 || test ! -s conftest.err'
19374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19375 (eval $ac_try) 2>&5
19377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19378 (exit $ac_status); }; } &&
19379 { ac_try
='test -s conftest$ac_exeext'
19380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19381 (eval $ac_try) 2>&5
19383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19384 (exit $ac_status); }; }; then
19385 eval "$as_ac_var=yes"
19387 echo "$as_me: failed program was:" >&5
19388 sed 's/^/| /' conftest.
$ac_ext >&5
19390 eval "$as_ac_var=no"
19392 rm -f conftest.err conftest.
$ac_objext \
19393 conftest
$ac_exeext conftest.
$ac_ext
19395 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19396 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19397 if test `eval echo '${'$as_ac_var'}'` = yes; then
19398 cat >>confdefs.h
<<_ACEOF
19399 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19404 "$ac_func.$ac_objext" | \
19405 *" $ac_func.$ac_objext" | \
19406 "$ac_func.$ac_objext "* | \
19407 *" $ac_func.$ac_objext "* ) ;;
19408 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext" ;;
19417 # check for wchar.h
19418 if test "${ac_cv_header_wchar_h+set}" = set; then
19419 echo "$as_me:$LINENO: checking for wchar.h" >&5
19420 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
19421 if test "${ac_cv_header_wchar_h+set}" = set; then
19422 echo $ECHO_N "(cached) $ECHO_C" >&6
19424 echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
19425 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6
19427 # Is the header compilable?
19428 echo "$as_me:$LINENO: checking wchar.h usability" >&5
19429 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6
19430 cat >conftest.
$ac_ext <<_ACEOF
19433 cat confdefs.h
>>conftest.
$ac_ext
19434 cat >>conftest.
$ac_ext <<_ACEOF
19435 /* end confdefs.h. */
19436 $ac_includes_default
19439 rm -f conftest.
$ac_objext
19440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19441 (eval $ac_compile) 2>conftest.er1
19443 grep -v '^ *+' conftest.er1
>conftest.err
19445 cat conftest.err
>&5
19446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19447 (exit $ac_status); } &&
19448 { ac_try
='test -z "$ac_c_werror_flag"
19449 || test ! -s conftest.err'
19450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19451 (eval $ac_try) 2>&5
19453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19454 (exit $ac_status); }; } &&
19455 { ac_try
='test -s conftest.$ac_objext'
19456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19457 (eval $ac_try) 2>&5
19459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19460 (exit $ac_status); }; }; then
19461 ac_header_compiler
=yes
19463 echo "$as_me: failed program was:" >&5
19464 sed 's/^/| /' conftest.
$ac_ext >&5
19466 ac_header_compiler
=no
19468 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19469 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19470 echo "${ECHO_T}$ac_header_compiler" >&6
19472 # Is the header present?
19473 echo "$as_me:$LINENO: checking wchar.h presence" >&5
19474 echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6
19475 cat >conftest.
$ac_ext <<_ACEOF
19478 cat confdefs.h
>>conftest.
$ac_ext
19479 cat >>conftest.
$ac_ext <<_ACEOF
19480 /* end confdefs.h. */
19483 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19484 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19486 grep -v '^ *+' conftest.er1
>conftest.err
19488 cat conftest.err
>&5
19489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19490 (exit $ac_status); } >/dev
/null
; then
19491 if test -s conftest.err
; then
19492 ac_cpp_err
=$ac_c_preproc_warn_flag
19493 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19500 if test -z "$ac_cpp_err"; then
19501 ac_header_preproc
=yes
19503 echo "$as_me: failed program was:" >&5
19504 sed 's/^/| /' conftest.
$ac_ext >&5
19506 ac_header_preproc
=no
19508 rm -f conftest.err conftest.
$ac_ext
19509 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19510 echo "${ECHO_T}$ac_header_preproc" >&6
19512 # So? What about this header?
19513 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19515 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
19516 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19517 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
19518 echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
19519 ac_header_preproc
=yes
19522 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
19523 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
19524 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
19525 echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
19526 { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
19527 echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
19528 { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5
19529 echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;}
19530 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
19531 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
19532 { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
19533 echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
19536 ## ------------------------------------------------ ##
19537 ## Report this to http://www.python.org/python-bugs ##
19538 ## ------------------------------------------------ ##
19541 sed "s/^/$as_me: WARNING: /" >&2
19544 echo "$as_me:$LINENO: checking for wchar.h" >&5
19545 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
19546 if test "${ac_cv_header_wchar_h+set}" = set; then
19547 echo $ECHO_N "(cached) $ECHO_C" >&6
19549 ac_cv_header_wchar_h
=$ac_header_preproc
19551 echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
19552 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6
19555 if test $ac_cv_header_wchar_h = yes; then
19558 cat >>confdefs.h
<<\_ACEOF
19559 #define HAVE_WCHAR_H 1
19571 # determine wchar_t size
19572 if test "$wchar_h" = yes
19574 echo "$as_me:$LINENO: checking for wchar_t" >&5
19575 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
19576 if test "${ac_cv_type_wchar_t+set}" = set; then
19577 echo $ECHO_N "(cached) $ECHO_C" >&6
19579 cat >conftest.
$ac_ext <<_ACEOF
19582 cat confdefs.h
>>conftest.
$ac_ext
19583 cat >>conftest.
$ac_ext <<_ACEOF
19584 /* end confdefs.h. */
19592 if (sizeof (wchar_t))
19598 rm -f conftest.
$ac_objext
19599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19600 (eval $ac_compile) 2>conftest.er1
19602 grep -v '^ *+' conftest.er1
>conftest.err
19604 cat conftest.err
>&5
19605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19606 (exit $ac_status); } &&
19607 { ac_try
='test -z "$ac_c_werror_flag"
19608 || test ! -s conftest.err'
19609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19610 (eval $ac_try) 2>&5
19612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19613 (exit $ac_status); }; } &&
19614 { ac_try
='test -s conftest.$ac_objext'
19615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19616 (eval $ac_try) 2>&5
19618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19619 (exit $ac_status); }; }; then
19620 ac_cv_type_wchar_t
=yes
19622 echo "$as_me: failed program was:" >&5
19623 sed 's/^/| /' conftest.
$ac_ext >&5
19625 ac_cv_type_wchar_t
=no
19627 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19629 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
19630 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
19632 echo "$as_me:$LINENO: checking size of wchar_t" >&5
19633 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
19634 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
19635 echo $ECHO_N "(cached) $ECHO_C" >&6
19637 if test "$ac_cv_type_wchar_t" = yes; then
19638 # The cast to unsigned long works around a bug in the HP C Compiler
19639 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19640 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19641 # This bug is HP SR number 8606223364.
19642 if test "$cross_compiling" = yes; then
19643 # Depending upon the size, compute the lo and hi bounds.
19644 cat >conftest.
$ac_ext <<_ACEOF
19647 cat confdefs.h
>>conftest.
$ac_ext
19648 cat >>conftest.
$ac_ext <<_ACEOF
19649 /* end confdefs.h. */
19655 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
19662 rm -f conftest.
$ac_objext
19663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19664 (eval $ac_compile) 2>conftest.er1
19666 grep -v '^ *+' conftest.er1
>conftest.err
19668 cat conftest.err
>&5
19669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19670 (exit $ac_status); } &&
19671 { ac_try
='test -z "$ac_c_werror_flag"
19672 || test ! -s conftest.err'
19673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19674 (eval $ac_try) 2>&5
19676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19677 (exit $ac_status); }; } &&
19678 { ac_try
='test -s conftest.$ac_objext'
19679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19680 (eval $ac_try) 2>&5
19682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19683 (exit $ac_status); }; }; then
19686 cat >conftest.
$ac_ext <<_ACEOF
19689 cat confdefs.h
>>conftest.
$ac_ext
19690 cat >>conftest.
$ac_ext <<_ACEOF
19691 /* end confdefs.h. */
19697 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19704 rm -f conftest.
$ac_objext
19705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19706 (eval $ac_compile) 2>conftest.er1
19708 grep -v '^ *+' conftest.er1
>conftest.err
19710 cat conftest.err
>&5
19711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19712 (exit $ac_status); } &&
19713 { ac_try
='test -z "$ac_c_werror_flag"
19714 || test ! -s conftest.err'
19715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19716 (eval $ac_try) 2>&5
19718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19719 (exit $ac_status); }; } &&
19720 { ac_try
='test -s conftest.$ac_objext'
19721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19722 (eval $ac_try) 2>&5
19724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19725 (exit $ac_status); }; }; then
19726 ac_hi
=$ac_mid; break
19728 echo "$as_me: failed program was:" >&5
19729 sed 's/^/| /' conftest.
$ac_ext >&5
19731 ac_lo
=`expr $ac_mid + 1`
19732 if test $ac_lo -le $ac_mid; then
19736 ac_mid
=`expr 2 '*' $ac_mid + 1`
19738 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19741 echo "$as_me: failed program was:" >&5
19742 sed 's/^/| /' conftest.
$ac_ext >&5
19744 cat >conftest.
$ac_ext <<_ACEOF
19747 cat confdefs.h
>>conftest.
$ac_ext
19748 cat >>conftest.
$ac_ext <<_ACEOF
19749 /* end confdefs.h. */
19755 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
19762 rm -f conftest.
$ac_objext
19763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19764 (eval $ac_compile) 2>conftest.er1
19766 grep -v '^ *+' conftest.er1
>conftest.err
19768 cat conftest.err
>&5
19769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19770 (exit $ac_status); } &&
19771 { ac_try
='test -z "$ac_c_werror_flag"
19772 || test ! -s conftest.err'
19773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19774 (eval $ac_try) 2>&5
19776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19777 (exit $ac_status); }; } &&
19778 { ac_try
='test -s conftest.$ac_objext'
19779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19780 (eval $ac_try) 2>&5
19782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19783 (exit $ac_status); }; }; then
19786 cat >conftest.
$ac_ext <<_ACEOF
19789 cat confdefs.h
>>conftest.
$ac_ext
19790 cat >>conftest.
$ac_ext <<_ACEOF
19791 /* end confdefs.h. */
19797 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
19804 rm -f conftest.
$ac_objext
19805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19806 (eval $ac_compile) 2>conftest.er1
19808 grep -v '^ *+' conftest.er1
>conftest.err
19810 cat conftest.err
>&5
19811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19812 (exit $ac_status); } &&
19813 { ac_try
='test -z "$ac_c_werror_flag"
19814 || test ! -s conftest.err'
19815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19816 (eval $ac_try) 2>&5
19818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19819 (exit $ac_status); }; } &&
19820 { ac_try
='test -s conftest.$ac_objext'
19821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19822 (eval $ac_try) 2>&5
19824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19825 (exit $ac_status); }; }; then
19826 ac_lo
=$ac_mid; break
19828 echo "$as_me: failed program was:" >&5
19829 sed 's/^/| /' conftest.
$ac_ext >&5
19831 ac_hi
=`expr '(' $ac_mid ')' - 1`
19832 if test $ac_mid -le $ac_hi; then
19836 ac_mid
=`expr 2 '*' $ac_mid`
19838 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19841 echo "$as_me: failed program was:" >&5
19842 sed 's/^/| /' conftest.
$ac_ext >&5
19846 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19848 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19849 # Binary search between lo and hi bounds.
19850 while test "x$ac_lo" != "x$ac_hi"; do
19851 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19852 cat >conftest.
$ac_ext <<_ACEOF
19855 cat confdefs.h
>>conftest.
$ac_ext
19856 cat >>conftest.
$ac_ext <<_ACEOF
19857 /* end confdefs.h. */
19863 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19870 rm -f conftest.
$ac_objext
19871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19872 (eval $ac_compile) 2>conftest.er1
19874 grep -v '^ *+' conftest.er1
>conftest.err
19876 cat conftest.err
>&5
19877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19878 (exit $ac_status); } &&
19879 { ac_try
='test -z "$ac_c_werror_flag"
19880 || test ! -s conftest.err'
19881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19882 (eval $ac_try) 2>&5
19884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19885 (exit $ac_status); }; } &&
19886 { ac_try
='test -s conftest.$ac_objext'
19887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19888 (eval $ac_try) 2>&5
19890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19891 (exit $ac_status); }; }; then
19894 echo "$as_me: failed program was:" >&5
19895 sed 's/^/| /' conftest.
$ac_ext >&5
19897 ac_lo
=`expr '(' $ac_mid ')' + 1`
19899 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19902 ?
*) ac_cv_sizeof_wchar_t
=$ac_lo;;
19903 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
19904 See \`config.log' for more details." >&5
19905 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
19906 See \`config.log' for more details." >&2;}
19907 { (exit 1); exit 1; }; } ;;
19910 if test "$cross_compiling" = yes; then
19911 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19912 See \`config.log' for more details." >&5
19913 echo "$as_me: error: cannot run test program while cross compiling
19914 See \`config.log' for more details." >&2;}
19915 { (exit 1); exit 1; }; }
19917 cat >conftest.
$ac_ext <<_ACEOF
19920 cat confdefs.h
>>conftest.
$ac_ext
19921 cat >>conftest.
$ac_ext <<_ACEOF
19922 /* end confdefs.h. */
19925 long longval () { return (long) (sizeof (wchar_t)); }
19926 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
19928 #include <stdlib.h>
19933 FILE *f = fopen ("conftest.val", "w");
19936 if (((long) (sizeof (wchar_t))) < 0)
19938 long i = longval ();
19939 if (i != ((long) (sizeof (wchar_t))))
19941 fprintf (f, "%ld\n", i);
19945 unsigned long i = ulongval ();
19946 if (i != ((long) (sizeof (wchar_t))))
19948 fprintf (f, "%lu\n", i);
19950 exit (ferror (f) || fclose (f) != 0);
19956 rm -f conftest
$ac_exeext
19957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19958 (eval $ac_link) 2>&5
19960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19961 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19963 (eval $ac_try) 2>&5
19965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19966 (exit $ac_status); }; }; then
19967 ac_cv_sizeof_wchar_t
=`cat conftest.val`
19969 echo "$as_me: program exited with status $ac_status" >&5
19970 echo "$as_me: failed program was:" >&5
19971 sed 's/^/| /' conftest.
$ac_ext >&5
19973 ( exit $ac_status )
19974 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
19975 See \`config.log' for more details." >&5
19976 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
19977 See \`config.log' for more details." >&2;}
19978 { (exit 1); exit 1; }; }
19980 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
19985 ac_cv_sizeof_wchar_t
=0
19988 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
19989 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
19990 cat >>confdefs.h
<<_ACEOF
19991 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
19997 echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5
19998 echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6
20000 cat >conftest.
$ac_ext <<_ACEOF
20003 cat confdefs.h
>>conftest.
$ac_ext
20004 cat >>conftest.
$ac_ext <<_ACEOF
20005 /* end confdefs.h. */
20008 #if TCL_UTF_MAX != 6
20009 # error "NOT UCS4_TCL"
20019 rm -f conftest.
$ac_objext
20020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20021 (eval $ac_compile) 2>conftest.er1
20023 grep -v '^ *+' conftest.er1
>conftest.err
20025 cat conftest.err
>&5
20026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20027 (exit $ac_status); } &&
20028 { ac_try
='test -z "$ac_c_werror_flag"
20029 || test ! -s conftest.err'
20030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20031 (eval $ac_try) 2>&5
20033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20034 (exit $ac_status); }; } &&
20035 { ac_try
='test -s conftest.$ac_objext'
20036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20037 (eval $ac_try) 2>&5
20039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20040 (exit $ac_status); }; }; then
20043 cat >>confdefs.h
<<\_ACEOF
20044 #define HAVE_UCS4_TCL 1
20050 echo "$as_me: failed program was:" >&5
20051 sed 's/^/| /' conftest.
$ac_ext >&5
20054 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20055 echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5
20056 echo "${ECHO_T}$have_ucs4_tcl" >&6
20058 # check whether wchar_t is signed or not
20059 if test "$wchar_h" = yes
20061 # check whether wchar_t is signed or not
20062 echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5
20063 echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6
20064 if test "${ac_cv_wchar_t_signed+set}" = set; then
20065 echo $ECHO_N "(cached) $ECHO_C" >&6
20068 if test "$cross_compiling" = yes; then
20069 ac_cv_wchar_t_signed
=yes
20071 cat >conftest.
$ac_ext <<_ACEOF
20074 cat confdefs.h
>>conftest.
$ac_ext
20075 cat >>conftest.
$ac_ext <<_ACEOF
20076 /* end confdefs.h. */
20081 /* Success: exit code 0 */
20082 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
20086 rm -f conftest
$ac_exeext
20087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20088 (eval $ac_link) 2>&5
20090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20091 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20093 (eval $ac_try) 2>&5
20095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20096 (exit $ac_status); }; }; then
20097 ac_cv_wchar_t_signed
=yes
20099 echo "$as_me: program exited with status $ac_status" >&5
20100 echo "$as_me: failed program was:" >&5
20101 sed 's/^/| /' conftest.
$ac_ext >&5
20103 ( exit $ac_status )
20104 ac_cv_wchar_t_signed
=no
20106 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20110 echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5
20111 echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6
20114 echo "$as_me:$LINENO: checking what type to use for unicode" >&5
20115 echo $ECHO_N "checking what type to use for unicode... $ECHO_C" >&6
20116 # Check whether --enable-unicode or --disable-unicode was given.
20117 if test "${enable_unicode+set}" = set; then
20118 enableval
="$enable_unicode"
20124 if test $enable_unicode = yes
20126 # Without any arguments, Py_UNICODE defaults to two-byte mode
20127 case "$have_ucs4_tcl" in
20128 yes) enable_unicode
="ucs4"
20130 *) enable_unicode
="ucs2"
20137 case "$enable_unicode" in
20138 ucs2
) unicode_size
="2"
20139 cat >>confdefs.h
<<\_ACEOF
20140 #define Py_UNICODE_SIZE 2
20144 ucs4
) unicode_size
="4"
20145 cat >>confdefs.h
<<\_ACEOF
20146 #define Py_UNICODE_SIZE 4
20156 if test "$enable_unicode" = "no"
20159 echo "$as_me:$LINENO: result: not used" >&5
20160 echo "${ECHO_T}not used" >&6
20162 UNICODE_OBJS
="Objects/unicodeobject.o Objects/unicodectype.o"
20164 cat >>confdefs.h
<<\_ACEOF
20165 #define Py_USING_UNICODE 1
20169 # wchar_t is only usable if it maps to an unsigned type
20170 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
20171 -a "$ac_cv_wchar_t_signed" = "no"
20173 PY_UNICODE_TYPE
="wchar_t"
20175 cat >>confdefs.h
<<\_ACEOF
20176 #define HAVE_USABLE_WCHAR_T 1
20179 cat >>confdefs.h
<<\_ACEOF
20180 #define PY_UNICODE_TYPE wchar_t
20183 elif test "$ac_cv_sizeof_short" = "$unicode_size"
20185 PY_UNICODE_TYPE
="unsigned short"
20186 cat >>confdefs.h
<<\_ACEOF
20187 #define PY_UNICODE_TYPE unsigned short
20190 elif test "$ac_cv_sizeof_long" = "$unicode_size"
20192 PY_UNICODE_TYPE
="unsigned long"
20193 cat >>confdefs.h
<<\_ACEOF
20194 #define PY_UNICODE_TYPE unsigned long
20198 PY_UNICODE_TYPE
="no type found"
20200 echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
20201 echo "${ECHO_T}$PY_UNICODE_TYPE" >&6
20204 # check for endianness
20205 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20206 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20207 if test "${ac_cv_c_bigendian+set}" = set; then
20208 echo $ECHO_N "(cached) $ECHO_C" >&6
20210 # See if sys/param.h defines the BYTE_ORDER macro.
20211 cat >conftest.
$ac_ext <<_ACEOF
20214 cat confdefs.h
>>conftest.
$ac_ext
20215 cat >>conftest.
$ac_ext <<_ACEOF
20216 /* end confdefs.h. */
20217 #include <sys/types.h>
20218 #include <sys/param.h>
20223 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20224 bogus endian macros
20231 rm -f conftest.
$ac_objext
20232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20233 (eval $ac_compile) 2>conftest.er1
20235 grep -v '^ *+' conftest.er1
>conftest.err
20237 cat conftest.err
>&5
20238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20239 (exit $ac_status); } &&
20240 { ac_try
='test -z "$ac_c_werror_flag"
20241 || test ! -s conftest.err'
20242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20243 (eval $ac_try) 2>&5
20245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20246 (exit $ac_status); }; } &&
20247 { ac_try
='test -s conftest.$ac_objext'
20248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20249 (eval $ac_try) 2>&5
20251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20252 (exit $ac_status); }; }; then
20253 # It does; now see whether it defined to BIG_ENDIAN or not.
20254 cat >conftest.
$ac_ext <<_ACEOF
20257 cat confdefs.h
>>conftest.
$ac_ext
20258 cat >>conftest.
$ac_ext <<_ACEOF
20259 /* end confdefs.h. */
20260 #include <sys/types.h>
20261 #include <sys/param.h>
20266 #if BYTE_ORDER != BIG_ENDIAN
20274 rm -f conftest.
$ac_objext
20275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20276 (eval $ac_compile) 2>conftest.er1
20278 grep -v '^ *+' conftest.er1
>conftest.err
20280 cat conftest.err
>&5
20281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20282 (exit $ac_status); } &&
20283 { ac_try
='test -z "$ac_c_werror_flag"
20284 || test ! -s conftest.err'
20285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20286 (eval $ac_try) 2>&5
20288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20289 (exit $ac_status); }; } &&
20290 { ac_try
='test -s conftest.$ac_objext'
20291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20292 (eval $ac_try) 2>&5
20294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20295 (exit $ac_status); }; }; then
20296 ac_cv_c_bigendian
=yes
20298 echo "$as_me: failed program was:" >&5
20299 sed 's/^/| /' conftest.
$ac_ext >&5
20301 ac_cv_c_bigendian
=no
20303 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20305 echo "$as_me: failed program was:" >&5
20306 sed 's/^/| /' conftest.
$ac_ext >&5
20308 # It does not; compile a test program.
20309 if test "$cross_compiling" = yes; then
20310 # try to guess the endianness by grepping values into an object file
20311 ac_cv_c_bigendian
=unknown
20312 cat >conftest.
$ac_ext <<_ACEOF
20315 cat confdefs.h
>>conftest.
$ac_ext
20316 cat >>conftest.
$ac_ext <<_ACEOF
20317 /* end confdefs.h. */
20318 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20319 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20320 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20321 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20322 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20323 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20327 _ascii (); _ebcdic ();
20332 rm -f conftest.
$ac_objext
20333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20334 (eval $ac_compile) 2>conftest.er1
20336 grep -v '^ *+' conftest.er1
>conftest.err
20338 cat conftest.err
>&5
20339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20340 (exit $ac_status); } &&
20341 { ac_try
='test -z "$ac_c_werror_flag"
20342 || test ! -s conftest.err'
20343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20344 (eval $ac_try) 2>&5
20346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20347 (exit $ac_status); }; } &&
20348 { ac_try
='test -s conftest.$ac_objext'
20349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20350 (eval $ac_try) 2>&5
20352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20353 (exit $ac_status); }; }; then
20354 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
20355 ac_cv_c_bigendian
=yes
20357 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
20358 if test "$ac_cv_c_bigendian" = unknown
; then
20359 ac_cv_c_bigendian
=no
20361 # finding both strings is unlikely to happen, but who knows?
20362 ac_cv_c_bigendian
=unknown
20366 echo "$as_me: failed program was:" >&5
20367 sed 's/^/| /' conftest.
$ac_ext >&5
20370 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20372 cat >conftest.
$ac_ext <<_ACEOF
20375 cat confdefs.h
>>conftest.
$ac_ext
20376 cat >>conftest.
$ac_ext <<_ACEOF
20377 /* end confdefs.h. */
20381 /* Are we little or big endian? From Harbison&Steele. */
20385 char c[sizeof (long)];
20388 exit (u.c[sizeof (long) - 1] == 1);
20391 rm -f conftest
$ac_exeext
20392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20393 (eval $ac_link) 2>&5
20395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20396 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20398 (eval $ac_try) 2>&5
20400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20401 (exit $ac_status); }; }; then
20402 ac_cv_c_bigendian
=no
20404 echo "$as_me: program exited with status $ac_status" >&5
20405 echo "$as_me: failed program was:" >&5
20406 sed 's/^/| /' conftest.
$ac_ext >&5
20408 ( exit $ac_status )
20409 ac_cv_c_bigendian
=yes
20411 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20414 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20416 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20417 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20418 case $ac_cv_c_bigendian in
20421 cat >>confdefs.h
<<\_ACEOF
20422 #define WORDS_BIGENDIAN 1
20428 { { echo "$as_me:$LINENO: error: unknown endianness
20429 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20430 echo "$as_me: error: unknown endianness
20431 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20432 { (exit 1); exit 1; }; } ;;
20438 # Check whether right shifting a negative integer extends the sign bit
20439 # or fills with zeros (like the Cray J90, according to Tim Peters).
20440 echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
20441 echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6
20442 if test "${ac_cv_rshift_extends_sign+set}" = set; then
20443 echo $ECHO_N "(cached) $ECHO_C" >&6
20446 if test "$cross_compiling" = yes; then
20447 ac_cv_rshift_extends_sign
=yes
20449 cat >conftest.
$ac_ext <<_ACEOF
20452 cat confdefs.h
>>conftest.
$ac_ext
20453 cat >>conftest.
$ac_ext <<_ACEOF
20454 /* end confdefs.h. */
20458 exit(((-1)>>3 == -1) ? 0 : 1);
20462 rm -f conftest
$ac_exeext
20463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20464 (eval $ac_link) 2>&5
20466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20467 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20469 (eval $ac_try) 2>&5
20471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20472 (exit $ac_status); }; }; then
20473 ac_cv_rshift_extends_sign
=yes
20475 echo "$as_me: program exited with status $ac_status" >&5
20476 echo "$as_me: failed program was:" >&5
20477 sed 's/^/| /' conftest.
$ac_ext >&5
20479 ( exit $ac_status )
20480 ac_cv_rshift_extends_sign
=no
20482 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20486 echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
20487 echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6
20488 if test "$ac_cv_rshift_extends_sign" = no
20491 cat >>confdefs.h
<<\_ACEOF
20492 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
20497 # check for getc_unlocked and related locking functions
20498 echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
20499 echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6
20500 if test "${ac_cv_have_getc_unlocked+set}" = set; then
20501 echo $ECHO_N "(cached) $ECHO_C" >&6
20504 cat >conftest.
$ac_ext <<_ACEOF
20507 cat confdefs.h
>>conftest.
$ac_ext
20508 cat >>conftest.
$ac_ext <<_ACEOF
20509 /* end confdefs.h. */
20515 FILE *f = fopen("/dev/null", "r");
20524 rm -f conftest.
$ac_objext conftest
$ac_exeext
20525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20526 (eval $ac_link) 2>conftest.er1
20528 grep -v '^ *+' conftest.er1
>conftest.err
20530 cat conftest.err
>&5
20531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20532 (exit $ac_status); } &&
20533 { ac_try
='test -z "$ac_c_werror_flag"
20534 || test ! -s conftest.err'
20535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20536 (eval $ac_try) 2>&5
20538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20539 (exit $ac_status); }; } &&
20540 { ac_try
='test -s conftest$ac_exeext'
20541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20542 (eval $ac_try) 2>&5
20544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20545 (exit $ac_status); }; }; then
20546 ac_cv_have_getc_unlocked
=yes
20548 echo "$as_me: failed program was:" >&5
20549 sed 's/^/| /' conftest.
$ac_ext >&5
20551 ac_cv_have_getc_unlocked
=no
20553 rm -f conftest.err conftest.
$ac_objext \
20554 conftest
$ac_exeext conftest.
$ac_ext
20557 echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
20558 echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6
20559 if test "$ac_cv_have_getc_unlocked" = yes
20562 cat >>confdefs.h
<<\_ACEOF
20563 #define HAVE_GETC_UNLOCKED 1
20568 # check where readline lives
20569 # save the value of LIBS so we don't actually link Python with readline
20570 LIBS_no_readline
=$LIBS
20572 echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
20573 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
20574 if test "${ac_cv_lib_readline_readline+set}" = set; then
20575 echo $ECHO_N "(cached) $ECHO_C" >&6
20577 ac_check_lib_save_LIBS
=$LIBS
20578 LIBS
="-lreadline $LIBS"
20579 cat >conftest.
$ac_ext <<_ACEOF
20582 cat confdefs.h
>>conftest.
$ac_ext
20583 cat >>conftest.
$ac_ext <<_ACEOF
20584 /* end confdefs.h. */
20586 /* Override any gcc2 internal prototype to avoid an error. */
20590 /* We use char because int might match the return type of a gcc2
20591 builtin and then its argument prototype would still apply. */
20601 rm -f conftest.
$ac_objext conftest
$ac_exeext
20602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20603 (eval $ac_link) 2>conftest.er1
20605 grep -v '^ *+' conftest.er1
>conftest.err
20607 cat conftest.err
>&5
20608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20609 (exit $ac_status); } &&
20610 { ac_try
='test -z "$ac_c_werror_flag"
20611 || test ! -s conftest.err'
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); }; } &&
20617 { ac_try
='test -s conftest$ac_exeext'
20618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20619 (eval $ac_try) 2>&5
20621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20622 (exit $ac_status); }; }; then
20623 ac_cv_lib_readline_readline
=yes
20625 echo "$as_me: failed program was:" >&5
20626 sed 's/^/| /' conftest.
$ac_ext >&5
20628 ac_cv_lib_readline_readline
=no
20630 rm -f conftest.err conftest.
$ac_objext \
20631 conftest
$ac_exeext conftest.
$ac_ext
20632 LIBS
=$ac_check_lib_save_LIBS
20634 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
20635 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
20636 if test $ac_cv_lib_readline_readline = yes; then
20637 cat >>confdefs.h
<<_ACEOF
20638 #define HAVE_LIBREADLINE 1
20641 LIBS
="-lreadline $LIBS"
20645 if test "$ac_cv_have_readline_readline" = no
20648 echo "$as_me:$LINENO: checking for readline in -ltermcap" >&5
20649 echo $ECHO_N "checking for readline in -ltermcap... $ECHO_C" >&6
20650 if test "${ac_cv_lib_termcap_readline+set}" = set; then
20651 echo $ECHO_N "(cached) $ECHO_C" >&6
20653 ac_check_lib_save_LIBS
=$LIBS
20654 LIBS
="-ltermcap $LIBS"
20655 cat >conftest.
$ac_ext <<_ACEOF
20658 cat confdefs.h
>>conftest.
$ac_ext
20659 cat >>conftest.
$ac_ext <<_ACEOF
20660 /* end confdefs.h. */
20662 /* Override any gcc2 internal prototype to avoid an error. */
20666 /* We use char because int might match the return type of a gcc2
20667 builtin and then its argument prototype would still apply. */
20677 rm -f conftest.
$ac_objext conftest
$ac_exeext
20678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20679 (eval $ac_link) 2>conftest.er1
20681 grep -v '^ *+' conftest.er1
>conftest.err
20683 cat conftest.err
>&5
20684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20685 (exit $ac_status); } &&
20686 { ac_try
='test -z "$ac_c_werror_flag"
20687 || test ! -s conftest.err'
20688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20689 (eval $ac_try) 2>&5
20691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20692 (exit $ac_status); }; } &&
20693 { ac_try
='test -s conftest$ac_exeext'
20694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20695 (eval $ac_try) 2>&5
20697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20698 (exit $ac_status); }; }; then
20699 ac_cv_lib_termcap_readline
=yes
20701 echo "$as_me: failed program was:" >&5
20702 sed 's/^/| /' conftest.
$ac_ext >&5
20704 ac_cv_lib_termcap_readline
=no
20706 rm -f conftest.err conftest.
$ac_objext \
20707 conftest
$ac_exeext conftest.
$ac_ext
20708 LIBS
=$ac_check_lib_save_LIBS
20710 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_readline" >&5
20711 echo "${ECHO_T}$ac_cv_lib_termcap_readline" >&6
20712 if test $ac_cv_lib_termcap_readline = yes; then
20713 cat >>confdefs.h
<<_ACEOF
20714 #define HAVE_LIBTERMCAP 1
20717 LIBS
="-ltermcap $LIBS"
20723 # check for readline 2.1
20724 echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
20725 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6
20726 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
20727 echo $ECHO_N "(cached) $ECHO_C" >&6
20729 ac_check_lib_save_LIBS
=$LIBS
20730 LIBS
="-lreadline $LIBS"
20731 cat >conftest.
$ac_ext <<_ACEOF
20734 cat confdefs.h
>>conftest.
$ac_ext
20735 cat >>conftest.
$ac_ext <<_ACEOF
20736 /* end confdefs.h. */
20738 /* Override any gcc2 internal prototype to avoid an error. */
20742 /* We use char because int might match the return type of a gcc2
20743 builtin and then its argument prototype would still apply. */
20744 char rl_callback_handler_install ();
20748 rl_callback_handler_install ();
20753 rm -f conftest.
$ac_objext conftest
$ac_exeext
20754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20755 (eval $ac_link) 2>conftest.er1
20757 grep -v '^ *+' conftest.er1
>conftest.err
20759 cat conftest.err
>&5
20760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20761 (exit $ac_status); } &&
20762 { ac_try
='test -z "$ac_c_werror_flag"
20763 || test ! -s conftest.err'
20764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20765 (eval $ac_try) 2>&5
20767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20768 (exit $ac_status); }; } &&
20769 { ac_try
='test -s conftest$ac_exeext'
20770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20771 (eval $ac_try) 2>&5
20773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20774 (exit $ac_status); }; }; then
20775 ac_cv_lib_readline_rl_callback_handler_install
=yes
20777 echo "$as_me: failed program was:" >&5
20778 sed 's/^/| /' conftest.
$ac_ext >&5
20780 ac_cv_lib_readline_rl_callback_handler_install
=no
20782 rm -f conftest.err conftest.
$ac_objext \
20783 conftest
$ac_exeext conftest.
$ac_ext
20784 LIBS
=$ac_check_lib_save_LIBS
20786 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
20787 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6
20788 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
20790 cat >>confdefs.h
<<\_ACEOF
20791 #define HAVE_RL_CALLBACK 1
20797 # check for readline 2.2
20798 cat >conftest.
$ac_ext <<_ACEOF
20801 cat confdefs.h
>>conftest.
$ac_ext
20802 cat >>conftest.
$ac_ext <<_ACEOF
20803 /* end confdefs.h. */
20804 #include <readline/readline.h>
20806 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20807 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20809 grep -v '^ *+' conftest.er1
>conftest.err
20811 cat conftest.err
>&5
20812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20813 (exit $ac_status); } >/dev
/null
; then
20814 if test -s conftest.err
; then
20815 ac_cpp_err
=$ac_c_preproc_warn_flag
20816 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20823 if test -z "$ac_cpp_err"; then
20826 echo "$as_me: failed program was:" >&5
20827 sed 's/^/| /' conftest.
$ac_ext >&5
20831 rm -f conftest.err conftest.
$ac_ext
20832 if test $have_readline = yes
20834 cat >conftest.
$ac_ext <<_ACEOF
20837 cat confdefs.h
>>conftest.
$ac_ext
20838 cat >>conftest.
$ac_ext <<_ACEOF
20839 /* end confdefs.h. */
20840 #include <readline/readline.h>
20843 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20844 $EGREP "extern int rl_completion_append_character;" >/dev
/null
2>&1; then
20846 cat >>confdefs.h
<<\_ACEOF
20847 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
20855 # check for readline 4.0
20856 echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
20857 echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6
20858 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
20859 echo $ECHO_N "(cached) $ECHO_C" >&6
20861 ac_check_lib_save_LIBS
=$LIBS
20862 LIBS
="-lreadline $LIBS"
20863 cat >conftest.
$ac_ext <<_ACEOF
20866 cat confdefs.h
>>conftest.
$ac_ext
20867 cat >>conftest.
$ac_ext <<_ACEOF
20868 /* end confdefs.h. */
20870 /* Override any gcc2 internal prototype to avoid an error. */
20874 /* We use char because int might match the return type of a gcc2
20875 builtin and then its argument prototype would still apply. */
20876 char rl_pre_input_hook ();
20880 rl_pre_input_hook ();
20885 rm -f conftest.
$ac_objext conftest
$ac_exeext
20886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20887 (eval $ac_link) 2>conftest.er1
20889 grep -v '^ *+' conftest.er1
>conftest.err
20891 cat conftest.err
>&5
20892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20893 (exit $ac_status); } &&
20894 { ac_try
='test -z "$ac_c_werror_flag"
20895 || test ! -s conftest.err'
20896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20897 (eval $ac_try) 2>&5
20899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20900 (exit $ac_status); }; } &&
20901 { ac_try
='test -s conftest$ac_exeext'
20902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20903 (eval $ac_try) 2>&5
20905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20906 (exit $ac_status); }; }; then
20907 ac_cv_lib_readline_rl_pre_input_hook
=yes
20909 echo "$as_me: failed program was:" >&5
20910 sed 's/^/| /' conftest.
$ac_ext >&5
20912 ac_cv_lib_readline_rl_pre_input_hook
=no
20914 rm -f conftest.err conftest.
$ac_objext \
20915 conftest
$ac_exeext conftest.
$ac_ext
20916 LIBS
=$ac_check_lib_save_LIBS
20918 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
20919 echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6
20920 if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
20922 cat >>confdefs.h
<<\_ACEOF
20923 #define HAVE_RL_PRE_INPUT_HOOK 1
20929 # check for readline 4.2
20930 echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
20931 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6
20932 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
20933 echo $ECHO_N "(cached) $ECHO_C" >&6
20935 ac_check_lib_save_LIBS
=$LIBS
20936 LIBS
="-lreadline $LIBS"
20937 cat >conftest.
$ac_ext <<_ACEOF
20940 cat confdefs.h
>>conftest.
$ac_ext
20941 cat >>conftest.
$ac_ext <<_ACEOF
20942 /* end confdefs.h. */
20944 /* Override any gcc2 internal prototype to avoid an error. */
20948 /* We use char because int might match the return type of a gcc2
20949 builtin and then its argument prototype would still apply. */
20950 char rl_completion_matches ();
20954 rl_completion_matches ();
20959 rm -f conftest.
$ac_objext conftest
$ac_exeext
20960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20961 (eval $ac_link) 2>conftest.er1
20963 grep -v '^ *+' conftest.er1
>conftest.err
20965 cat conftest.err
>&5
20966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20967 (exit $ac_status); } &&
20968 { ac_try
='test -z "$ac_c_werror_flag"
20969 || test ! -s conftest.err'
20970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20971 (eval $ac_try) 2>&5
20973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20974 (exit $ac_status); }; } &&
20975 { ac_try
='test -s conftest$ac_exeext'
20976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20977 (eval $ac_try) 2>&5
20979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20980 (exit $ac_status); }; }; then
20981 ac_cv_lib_readline_rl_completion_matches
=yes
20983 echo "$as_me: failed program was:" >&5
20984 sed 's/^/| /' conftest.
$ac_ext >&5
20986 ac_cv_lib_readline_rl_completion_matches
=no
20988 rm -f conftest.err conftest.
$ac_objext \
20989 conftest
$ac_exeext conftest.
$ac_ext
20990 LIBS
=$ac_check_lib_save_LIBS
20992 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
20993 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6
20994 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
20996 cat >>confdefs.h
<<\_ACEOF
20997 #define HAVE_RL_COMPLETION_MATCHES 1
21003 # also in readline 4.2
21004 cat >conftest.
$ac_ext <<_ACEOF
21007 cat confdefs.h
>>conftest.
$ac_ext
21008 cat >>conftest.
$ac_ext <<_ACEOF
21009 /* end confdefs.h. */
21010 #include <readline/readline.h>
21012 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21013 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
21015 grep -v '^ *+' conftest.er1
>conftest.err
21017 cat conftest.err
>&5
21018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21019 (exit $ac_status); } >/dev
/null
; then
21020 if test -s conftest.err
; then
21021 ac_cpp_err
=$ac_c_preproc_warn_flag
21022 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
21029 if test -z "$ac_cpp_err"; then
21032 echo "$as_me: failed program was:" >&5
21033 sed 's/^/| /' conftest.
$ac_ext >&5
21037 rm -f conftest.err conftest.
$ac_ext
21038 if test $have_readline = yes
21040 cat >conftest.
$ac_ext <<_ACEOF
21043 cat confdefs.h
>>conftest.
$ac_ext
21044 cat >>conftest.
$ac_ext <<_ACEOF
21045 /* end confdefs.h. */
21046 #include <readline/readline.h>
21049 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21050 $EGREP "extern int rl_catch_signals;" >/dev
/null
2>&1; then
21052 cat >>confdefs.h
<<\_ACEOF
21053 #define HAVE_RL_CATCH_SIGNAL 1
21061 # End of readline checks: restore LIBS
21062 LIBS
=$LIBS_no_readline
21064 echo "$as_me:$LINENO: checking for broken nice()" >&5
21065 echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6
21066 if test "${ac_cv_broken_nice+set}" = set; then
21067 echo $ECHO_N "(cached) $ECHO_C" >&6
21070 if test "$cross_compiling" = yes; then
21071 ac_cv_broken_nice
=no
21073 cat >conftest.
$ac_ext <<_ACEOF
21076 cat confdefs.h
>>conftest.
$ac_ext
21077 cat >>conftest.
$ac_ext <<_ACEOF
21078 /* end confdefs.h. */
21082 int val1 = nice(1);
21083 if (val1 != -1 && val1 == nice(2))
21089 rm -f conftest
$ac_exeext
21090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21091 (eval $ac_link) 2>&5
21093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21094 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21096 (eval $ac_try) 2>&5
21098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21099 (exit $ac_status); }; }; then
21100 ac_cv_broken_nice
=yes
21102 echo "$as_me: program exited with status $ac_status" >&5
21103 echo "$as_me: failed program was:" >&5
21104 sed 's/^/| /' conftest.
$ac_ext >&5
21106 ( exit $ac_status )
21107 ac_cv_broken_nice
=no
21109 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21113 echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
21114 echo "${ECHO_T}$ac_cv_broken_nice" >&6
21115 if test "$ac_cv_broken_nice" = yes
21118 cat >>confdefs.h
<<\_ACEOF
21119 #define HAVE_BROKEN_NICE 1
21124 echo "$as_me:$LINENO: checking for broken poll()" >&5
21125 echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6
21126 if test "$cross_compiling" = yes; then
21127 ac_cv_broken_poll
=no
21129 cat >conftest.
$ac_ext <<_ACEOF
21132 cat confdefs.h
>>conftest.
$ac_ext
21133 cat >>conftest.
$ac_ext <<_ACEOF
21134 /* end confdefs.h. */
21140 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
21144 int poll_test = poll (&poll_struct, 1, 0);
21150 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
21161 rm -f conftest
$ac_exeext
21162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21163 (eval $ac_link) 2>&5
21165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21166 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21168 (eval $ac_try) 2>&5
21170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21171 (exit $ac_status); }; }; then
21172 ac_cv_broken_poll
=yes
21174 echo "$as_me: program exited with status $ac_status" >&5
21175 echo "$as_me: failed program was:" >&5
21176 sed 's/^/| /' conftest.
$ac_ext >&5
21178 ( exit $ac_status )
21179 ac_cv_broken_poll
=no
21181 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21183 echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5
21184 echo "${ECHO_T}$ac_cv_broken_poll" >&6
21185 if test "$ac_cv_broken_poll" = yes
21188 cat >>confdefs.h
<<\_ACEOF
21189 #define HAVE_BROKEN_POLL 1
21194 # Before we can test tzset, we need to check if struct tm has a tm_zone
21195 # (which is not required by ISO C or UNIX spec) and/or if we support
21197 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
21198 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
21199 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
21200 echo $ECHO_N "(cached) $ECHO_C" >&6
21202 cat >conftest.
$ac_ext <<_ACEOF
21205 cat confdefs.h
>>conftest.
$ac_ext
21206 cat >>conftest.
$ac_ext <<_ACEOF
21207 /* end confdefs.h. */
21208 #include <sys/types.h>
21209 #include <$ac_cv_struct_tm>
21215 static struct tm ac_aggr;
21216 if (ac_aggr.tm_zone)
21222 rm -f conftest.
$ac_objext
21223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21224 (eval $ac_compile) 2>conftest.er1
21226 grep -v '^ *+' conftest.er1
>conftest.err
21228 cat conftest.err
>&5
21229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21230 (exit $ac_status); } &&
21231 { ac_try
='test -z "$ac_c_werror_flag"
21232 || test ! -s conftest.err'
21233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21234 (eval $ac_try) 2>&5
21236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21237 (exit $ac_status); }; } &&
21238 { ac_try
='test -s conftest.$ac_objext'
21239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21240 (eval $ac_try) 2>&5
21242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21243 (exit $ac_status); }; }; then
21244 ac_cv_member_struct_tm_tm_zone
=yes
21246 echo "$as_me: failed program was:" >&5
21247 sed 's/^/| /' conftest.
$ac_ext >&5
21249 cat >conftest.
$ac_ext <<_ACEOF
21252 cat confdefs.h
>>conftest.
$ac_ext
21253 cat >>conftest.
$ac_ext <<_ACEOF
21254 /* end confdefs.h. */
21255 #include <sys/types.h>
21256 #include <$ac_cv_struct_tm>
21262 static struct tm ac_aggr;
21263 if (sizeof ac_aggr.tm_zone)
21269 rm -f conftest.
$ac_objext
21270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21271 (eval $ac_compile) 2>conftest.er1
21273 grep -v '^ *+' conftest.er1
>conftest.err
21275 cat conftest.err
>&5
21276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21277 (exit $ac_status); } &&
21278 { ac_try
='test -z "$ac_c_werror_flag"
21279 || test ! -s conftest.err'
21280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21281 (eval $ac_try) 2>&5
21283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21284 (exit $ac_status); }; } &&
21285 { ac_try
='test -s conftest.$ac_objext'
21286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21287 (eval $ac_try) 2>&5
21289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21290 (exit $ac_status); }; }; then
21291 ac_cv_member_struct_tm_tm_zone
=yes
21293 echo "$as_me: failed program was:" >&5
21294 sed 's/^/| /' conftest.
$ac_ext >&5
21296 ac_cv_member_struct_tm_tm_zone
=no
21298 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21300 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21302 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
21303 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
21304 if test $ac_cv_member_struct_tm_tm_zone = yes; then
21306 cat >>confdefs.h
<<_ACEOF
21307 #define HAVE_STRUCT_TM_TM_ZONE 1
21313 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21315 cat >>confdefs.h
<<\_ACEOF
21316 #define HAVE_TM_ZONE 1
21320 echo "$as_me:$LINENO: checking for tzname" >&5
21321 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
21322 if test "${ac_cv_var_tzname+set}" = set; then
21323 echo $ECHO_N "(cached) $ECHO_C" >&6
21325 cat >conftest.
$ac_ext <<_ACEOF
21328 cat confdefs.h
>>conftest.
$ac_ext
21329 cat >>conftest.
$ac_ext <<_ACEOF
21330 /* end confdefs.h. */
21332 #ifndef tzname /* For SGI. */
21333 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
21344 rm -f conftest.
$ac_objext conftest
$ac_exeext
21345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21346 (eval $ac_link) 2>conftest.er1
21348 grep -v '^ *+' conftest.er1
>conftest.err
21350 cat conftest.err
>&5
21351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21352 (exit $ac_status); } &&
21353 { ac_try
='test -z "$ac_c_werror_flag"
21354 || test ! -s conftest.err'
21355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21356 (eval $ac_try) 2>&5
21358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21359 (exit $ac_status); }; } &&
21360 { ac_try
='test -s conftest$ac_exeext'
21361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21362 (eval $ac_try) 2>&5
21364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21365 (exit $ac_status); }; }; then
21366 ac_cv_var_tzname
=yes
21368 echo "$as_me: failed program was:" >&5
21369 sed 's/^/| /' conftest.
$ac_ext >&5
21371 ac_cv_var_tzname
=no
21373 rm -f conftest.err conftest.
$ac_objext \
21374 conftest
$ac_exeext conftest.
$ac_ext
21376 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21377 echo "${ECHO_T}$ac_cv_var_tzname" >&6
21378 if test $ac_cv_var_tzname = yes; then
21380 cat >>confdefs.h
<<\_ACEOF
21381 #define HAVE_TZNAME 1
21388 # check tzset(3) exists and works like we expect it to
21389 echo "$as_me:$LINENO: checking for working tzset()" >&5
21390 echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6
21391 if test "${ac_cv_working_tzset+set}" = set; then
21392 echo $ECHO_N "(cached) $ECHO_C" >&6
21395 if test "$cross_compiling" = yes; then
21396 ac_cv_working_tzset
=no
21398 cat >conftest.
$ac_ext <<_ACEOF
21401 cat confdefs.h
>>conftest.
$ac_ext
21402 cat >>conftest.
$ac_ext <<_ACEOF
21403 /* end confdefs.h. */
21405 #include <stdlib.h>
21407 #include <string.h>
21410 extern char *tzname[];
21415 /* Note that we need to ensure that not only does tzset(3)
21416 do 'something' with localtime, but it works as documented
21417 in the library reference and as expected by the test suite.
21418 This includes making sure that tzname is set properly if
21419 tm->tm_zone does not exist since it is the alternative way
21420 of getting timezone info.
21422 Red Hat 6.2 doesn't understand the southern hemisphere
21423 after New Year's Day.
21426 time_t groundhogday = 1044144000; /* GMT-based */
21427 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
21429 putenv("TZ=UTC+0");
21431 if (localtime(&groundhogday)->tm_hour != 0)
21434 /* For UTC, tzname[1] is sometimes "", sometimes " " */
21435 if (strcmp(tzname[0], "UTC") ||
21436 (tzname[1][0] != 0 && tzname[1][0] != ' '))
21440 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
21442 if (localtime(&groundhogday)->tm_hour != 19)
21445 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
21449 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
21451 if (localtime(&groundhogday)->tm_hour != 11)
21454 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
21458 #if HAVE_STRUCT_TM_TM_ZONE
21459 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
21461 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
21469 rm -f conftest
$ac_exeext
21470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21471 (eval $ac_link) 2>&5
21473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21474 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21476 (eval $ac_try) 2>&5
21478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21479 (exit $ac_status); }; }; then
21480 ac_cv_working_tzset
=yes
21482 echo "$as_me: program exited with status $ac_status" >&5
21483 echo "$as_me: failed program was:" >&5
21484 sed 's/^/| /' conftest.
$ac_ext >&5
21486 ( exit $ac_status )
21487 ac_cv_working_tzset
=no
21489 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21493 echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5
21494 echo "${ECHO_T}$ac_cv_working_tzset" >&6
21495 if test "$ac_cv_working_tzset" = yes
21498 cat >>confdefs.h
<<\_ACEOF
21499 #define HAVE_WORKING_TZSET 1
21504 # Look for subsecond timestamps in struct stat
21505 echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
21506 echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6
21507 if test "${ac_cv_stat_tv_nsec+set}" = set; then
21508 echo $ECHO_N "(cached) $ECHO_C" >&6
21510 cat >conftest.
$ac_ext <<_ACEOF
21513 cat confdefs.h
>>conftest.
$ac_ext
21514 cat >>conftest.
$ac_ext <<_ACEOF
21515 /* end confdefs.h. */
21516 #include <sys/stat.h>
21522 st.st_mtim.tv_nsec = 1;
21528 rm -f conftest.
$ac_objext
21529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21530 (eval $ac_compile) 2>conftest.er1
21532 grep -v '^ *+' conftest.er1
>conftest.err
21534 cat conftest.err
>&5
21535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21536 (exit $ac_status); } &&
21537 { ac_try
='test -z "$ac_c_werror_flag"
21538 || test ! -s conftest.err'
21539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21540 (eval $ac_try) 2>&5
21542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21543 (exit $ac_status); }; } &&
21544 { ac_try
='test -s conftest.$ac_objext'
21545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21546 (eval $ac_try) 2>&5
21548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21549 (exit $ac_status); }; }; then
21550 ac_cv_stat_tv_nsec
=yes
21552 echo "$as_me: failed program was:" >&5
21553 sed 's/^/| /' conftest.
$ac_ext >&5
21555 ac_cv_stat_tv_nsec
=no
21557 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21560 echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
21561 echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6
21562 if test "$ac_cv_stat_tv_nsec" = yes
21565 cat >>confdefs.h
<<\_ACEOF
21566 #define HAVE_STAT_TV_NSEC 1
21571 # Look for BSD style subsecond timestamps in struct stat
21572 echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5
21573 echo $ECHO_N "checking for tv_nsec2 in struct stat... $ECHO_C" >&6
21574 if test "${ac_cv_stat_tv_nsec2+set}" = set; then
21575 echo $ECHO_N "(cached) $ECHO_C" >&6
21577 cat >conftest.
$ac_ext <<_ACEOF
21580 cat confdefs.h
>>conftest.
$ac_ext
21581 cat >>conftest.
$ac_ext <<_ACEOF
21582 /* end confdefs.h. */
21583 #include <sys/stat.h>
21589 st.st_mtimespec.tv_nsec = 1;
21595 rm -f conftest.
$ac_objext
21596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21597 (eval $ac_compile) 2>conftest.er1
21599 grep -v '^ *+' conftest.er1
>conftest.err
21601 cat conftest.err
>&5
21602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21603 (exit $ac_status); } &&
21604 { ac_try
='test -z "$ac_c_werror_flag"
21605 || test ! -s conftest.err'
21606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21607 (eval $ac_try) 2>&5
21609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21610 (exit $ac_status); }; } &&
21611 { ac_try
='test -s conftest.$ac_objext'
21612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21613 (eval $ac_try) 2>&5
21615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21616 (exit $ac_status); }; }; then
21617 ac_cv_stat_tv_nsec2
=yes
21619 echo "$as_me: failed program was:" >&5
21620 sed 's/^/| /' conftest.
$ac_ext >&5
21622 ac_cv_stat_tv_nsec2
=no
21624 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21627 echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5
21628 echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6
21629 if test "$ac_cv_stat_tv_nsec2" = yes
21632 cat >>confdefs.h
<<\_ACEOF
21633 #define HAVE_STAT_TV_NSEC2 1
21638 # On HP/UX 11.0, mvwdelch is a block with a return statement
21639 echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
21640 echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6
21641 if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
21642 echo $ECHO_N "(cached) $ECHO_C" >&6
21644 cat >conftest.
$ac_ext <<_ACEOF
21647 cat confdefs.h
>>conftest.
$ac_ext
21648 cat >>conftest.
$ac_ext <<_ACEOF
21649 /* end confdefs.h. */
21650 #include <curses.h>
21656 rtn = mvwdelch(0,0,0);
21662 rm -f conftest.
$ac_objext
21663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21664 (eval $ac_compile) 2>conftest.er1
21666 grep -v '^ *+' conftest.er1
>conftest.err
21668 cat conftest.err
>&5
21669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21670 (exit $ac_status); } &&
21671 { ac_try
='test -z "$ac_c_werror_flag"
21672 || test ! -s conftest.err'
21673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21674 (eval $ac_try) 2>&5
21676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21677 (exit $ac_status); }; } &&
21678 { ac_try
='test -s conftest.$ac_objext'
21679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21680 (eval $ac_try) 2>&5
21682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21683 (exit $ac_status); }; }; then
21684 ac_cv_mvwdelch_is_expression
=yes
21686 echo "$as_me: failed program was:" >&5
21687 sed 's/^/| /' conftest.
$ac_ext >&5
21689 ac_cv_mvwdelch_is_expression
=no
21691 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21694 echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
21695 echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6
21697 if test "$ac_cv_mvwdelch_is_expression" = yes
21700 cat >>confdefs.h
<<\_ACEOF
21701 #define MVWDELCH_IS_EXPRESSION 1
21706 echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
21707 echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6
21708 if test "${ac_cv_window_has_flags+set}" = set; then
21709 echo $ECHO_N "(cached) $ECHO_C" >&6
21711 cat >conftest.
$ac_ext <<_ACEOF
21714 cat confdefs.h
>>conftest.
$ac_ext
21715 cat >>conftest.
$ac_ext <<_ACEOF
21716 /* end confdefs.h. */
21717 #include <curses.h>
21729 rm -f conftest.
$ac_objext
21730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21731 (eval $ac_compile) 2>conftest.er1
21733 grep -v '^ *+' conftest.er1
>conftest.err
21735 cat conftest.err
>&5
21736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21737 (exit $ac_status); } &&
21738 { ac_try
='test -z "$ac_c_werror_flag"
21739 || test ! -s conftest.err'
21740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21741 (eval $ac_try) 2>&5
21743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21744 (exit $ac_status); }; } &&
21745 { ac_try
='test -s conftest.$ac_objext'
21746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21747 (eval $ac_try) 2>&5
21749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21750 (exit $ac_status); }; }; then
21751 ac_cv_window_has_flags
=yes
21753 echo "$as_me: failed program was:" >&5
21754 sed 's/^/| /' conftest.
$ac_ext >&5
21756 ac_cv_window_has_flags
=no
21758 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21761 echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
21762 echo "${ECHO_T}$ac_cv_window_has_flags" >&6
21765 if test "$ac_cv_window_has_flags" = yes
21768 cat >>confdefs.h
<<\_ACEOF
21769 #define WINDOW_HAS_FLAGS 1
21774 echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
21775 echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6
21777 if test -e /dev
/ptmx
21779 echo "$as_me:$LINENO: result: yes" >&5
21780 echo "${ECHO_T}yes" >&6
21782 cat >>confdefs.h
<<\_ACEOF
21783 #define HAVE_DEV_PTMX 1
21787 echo "$as_me:$LINENO: result: no" >&5
21788 echo "${ECHO_T}no" >&6
21791 echo "$as_me:$LINENO: checking for /dev/ptc" >&5
21792 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6
21794 if test -e /dev
/ptc
21796 echo "$as_me:$LINENO: result: yes" >&5
21797 echo "${ECHO_T}yes" >&6
21799 cat >>confdefs.h
<<\_ACEOF
21800 #define HAVE_DEV_PTC 1
21804 echo "$as_me:$LINENO: result: no" >&5
21805 echo "${ECHO_T}no" >&6
21808 echo "$as_me:$LINENO: checking for %zd printf() format support" >&5
21809 echo $ECHO_N "checking for %zd printf() format support... $ECHO_C" >&6
21810 if test "$cross_compiling" = yes; then
21811 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21812 See \`config.log' for more details." >&5
21813 echo "$as_me: error: cannot run test program while cross compiling
21814 See \`config.log' for more details." >&2;}
21815 { (exit 1); exit 1; }; }
21817 cat >conftest.
$ac_ext <<_ACEOF
21820 cat confdefs.h
>>conftest.
$ac_ext
21821 cat >>conftest.
$ac_ext <<_ACEOF
21822 /* end confdefs.h. */
21824 #include <stddef.h>
21825 #include <string.h>
21831 if(sprintf(buffer, "%zd", (size_t)123) < 0)
21834 if (strncmp(buffer, "123", 3))
21840 rm -f conftest
$ac_exeext
21841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21842 (eval $ac_link) 2>&5
21844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21845 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21847 (eval $ac_try) 2>&5
21849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21850 (exit $ac_status); }; }; then
21851 echo "$as_me:$LINENO: result: yes" >&5
21852 echo "${ECHO_T}yes" >&6
21854 cat >>confdefs.h
<<\_ACEOF
21855 #define PY_FORMAT_SIZE_T "z"
21859 echo "$as_me: program exited with status $ac_status" >&5
21860 echo "$as_me: failed program was:" >&5
21861 sed 's/^/| /' conftest.
$ac_ext >&5
21863 ( exit $ac_status )
21864 echo "$as_me:$LINENO: result: no" >&5
21865 echo "${ECHO_T}no" >&6
21867 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21870 echo "$as_me:$LINENO: checking for socklen_t" >&5
21871 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
21872 if test "${ac_cv_type_socklen_t+set}" = set; then
21873 echo $ECHO_N "(cached) $ECHO_C" >&6
21875 cat >conftest.
$ac_ext <<_ACEOF
21878 cat confdefs.h
>>conftest.
$ac_ext
21879 cat >>conftest.
$ac_ext <<_ACEOF
21880 /* end confdefs.h. */
21882 #ifdef HAVE_SYS_TYPES_H
21883 #include <sys/types.h>
21885 #ifdef HAVE_SYS_SOCKET_H
21886 #include <sys/socket.h>
21893 if ((socklen_t *) 0)
21895 if (sizeof (socklen_t))
21901 rm -f conftest.
$ac_objext
21902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21903 (eval $ac_compile) 2>conftest.er1
21905 grep -v '^ *+' conftest.er1
>conftest.err
21907 cat conftest.err
>&5
21908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21909 (exit $ac_status); } &&
21910 { ac_try
='test -z "$ac_c_werror_flag"
21911 || test ! -s conftest.err'
21912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21913 (eval $ac_try) 2>&5
21915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21916 (exit $ac_status); }; } &&
21917 { ac_try
='test -s conftest.$ac_objext'
21918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21919 (eval $ac_try) 2>&5
21921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21922 (exit $ac_status); }; }; then
21923 ac_cv_type_socklen_t
=yes
21925 echo "$as_me: failed program was:" >&5
21926 sed 's/^/| /' conftest.
$ac_ext >&5
21928 ac_cv_type_socklen_t
=no
21930 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21932 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
21933 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
21934 if test $ac_cv_type_socklen_t = yes; then
21938 cat >>confdefs.h
<<\_ACEOF
21939 #define socklen_t int
21947 for h
in `(cd $srcdir;echo Python/thread_*.h)`
21949 THREADHEADERS
="$THREADHEADERS \$(srcdir)/$h"
21953 SRCDIRS
="Parser Grammar Objects Python Modules Mac"
21954 echo "$as_me:$LINENO: checking for build directories" >&5
21955 echo $ECHO_N "checking for build directories... $ECHO_C" >&6
21956 for dir
in $SRCDIRS; do
21957 if test ! -d $dir; then
21961 echo "$as_me:$LINENO: result: done" >&5
21962 echo "${ECHO_T}done" >&6
21964 # generate output files
21965 ac_config_files
="$ac_config_files Makefile.pre Modules/Setup.config"
21967 cat >confcache
<<\_ACEOF
21968 # This file is a shell script that caches the results of configure
21969 # tests run on this system so they can be shared between configure
21970 # scripts and configure runs, see configure's option --config-cache.
21971 # It is not useful on other systems. If it contains results you don't
21972 # want to keep, you may remove or edit it.
21974 # config.status only pays attention to the cache file if you give it
21975 # the --recheck option to rerun configure.
21977 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21978 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21979 # following values.
21983 # The following way of writing the cache mishandles newlines in values,
21984 # but we know of no workaround that is simple, portable, and efficient.
21985 # So, don't put newlines in cache variables' values.
21986 # Ultrix sh set writes to stderr and can't be redirected directly,
21987 # and sets the high bit in the cache file unless we assign to the vars.
21990 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21992 # `set' does not quote correctly, so add quotes (double-quote
21993 # substitution turns \\\\ into \\, and sed turns \\ into \).
21996 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21999 # `set' quotes correctly as required by POSIX, so do not add quotes.
22001 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22008 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22010 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22012 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
22013 if test -w $cache_file; then
22014 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22015 cat confcache
>$cache_file
22017 echo "not updating unwritable cache $cache_file"
22022 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
22023 # Let make expand exec_prefix.
22024 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
22026 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22027 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22028 # trailing colons and then remove the whole line if VPATH becomes empty
22029 # (actually we leave an empty line to preserve line numbers).
22030 if test "x$srcdir" = x.
; then
22031 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
22032 s/:*\$(srcdir):*/:/;
22033 s/:*\${srcdir}:*/:/;
22035 s/^\([^=]*=[ ]*\):*/\1/;
22041 DEFS
=-DHAVE_CONFIG_H
22045 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
22046 # 1. Remove the extension, and $U if already installed.
22047 ac_i
=`echo "$ac_i" |
22048 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22050 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
22051 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
22053 LIBOBJS
=$ac_libobjs
22055 LTLIBOBJS
=$ac_ltlibobjs
22059 : ${CONFIG_STATUS=./config.status}
22060 ac_clean_files_save
=$ac_clean_files
22061 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
22062 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22063 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22064 cat >$CONFIG_STATUS <<_ACEOF
22066 # Generated by $as_me.
22067 # Run this file to recreate the current configuration.
22068 # Compiler output produced by configure, useful for debugging
22069 # configure, is in config.log if it exists.
22072 ac_cs_recheck=false
22074 SHELL=\${CONFIG_SHELL-$SHELL}
22077 cat >>$CONFIG_STATUS <<\_ACEOF
22078 ## --------------------- ##
22079 ## M4sh Initialization. ##
22080 ## --------------------- ##
22082 # Be Bourne compatible
22083 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
22086 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22087 # is contrary to our usage. Disable this feature.
22088 alias -g '${1+"$@"}'='"$@"'
22089 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
22092 DUALCASE
=1; export DUALCASE
# for MKS sh
22094 # Support unset when possible.
22095 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
22102 # Work around bugs in pre-3.0 UWIN ksh.
22103 $as_unset ENV MAIL MAILPATH
22110 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22111 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22112 LC_TELEPHONE LC_TIME
22114 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22115 eval $as_var=C
; export $as_var
22121 # Required to use basename.
22122 if expr a
: '\(a\)' >/dev
/null
2>&1; then
22128 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
22129 as_basename
=basename
22135 # Name of the executable.
22136 as_me
=`$as_basename "$0" ||
22137 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22138 X"$0" : 'X\(//\)$' \| \
22139 X"$0" : 'X\(/\)$' \| \
22140 . : '\(.\)' 2>/dev/null ||
22142 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22143 /^X\/\(\/\/\)$/{ s//\1/; q; }
22144 /^X\/\(\/\).*/{ s//\1/; q; }
22148 # PATH needs CR, and LINENO needs CR and PATH.
22149 # Avoid depending upon Character Ranges.
22150 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
22151 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22152 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
22153 as_cr_digits
='0123456789'
22154 as_cr_alnum
=$as_cr_Letters$as_cr_digits
22156 # The user is always right.
22157 if test "${PATH_SEPARATOR+set}" != set; then
22158 echo "#! /bin/sh" >conf$$.sh
22159 echo "exit 0" >>conf$$.sh
22161 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
22170 as_lineno_1
=$LINENO
22171 as_lineno_2
=$LINENO
22172 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
22173 test "x$as_lineno_1" != "x$as_lineno_2" &&
22174 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
22175 # Find who we are. Look in the path if we contain no path at all
22178 *[\\/]* ) as_myself
=$0 ;;
22179 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22180 for as_dir
in $PATH
22183 test -z "$as_dir" && as_dir
=.
22184 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
22189 # We did not find ourselves, most probably we were run as `sh COMMAND'
22190 # in which case we are not to be found in the path.
22191 if test "x$as_myself" = x
; then
22194 if test ! -f "$as_myself"; then
22195 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22196 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22197 { (exit 1); exit 1; }; }
22199 case $CONFIG_SHELL in
22201 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22202 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
22205 test -z "$as_dir" && as_dir
=.
22206 for as_base
in sh bash ksh sh5
; do
22209 if ("$as_dir/$as_base" -c '
22210 as_lineno_1=$LINENO
22211 as_lineno_2=$LINENO
22212 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22213 test "x$as_lineno_1" != "x$as_lineno_2" &&
22214 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
22215 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
22216 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
22217 CONFIG_SHELL
=$as_dir/$as_base
22218 export CONFIG_SHELL
22219 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22227 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22228 # uniformly replaced by the line number. The first 'sed' inserts a
22229 # line-number line before each line; the second 'sed' does the real
22230 # work. The second script uses 'N' to pair each line-number line
22231 # with the numbered line, and appends trailing '-' during
22232 # substitution so that $LINENO is not a special case at line end.
22233 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22234 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22235 sed '=' <$as_myself |
22240 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22243 s,^['$as_cr_digits']*\n,,
22244 ' >$as_me.lineno
&&
22245 chmod +x
$as_me.lineno ||
22246 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22247 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22248 { (exit 1); exit 1; }; }
22250 # Don't try to exec as it changes $[0], causing all sort of problems
22251 # (the dirname of $[0] is not the place where we might find the
22252 # original and so on. Autoconf is especially sensible to this).
22254 # Exit status is that of the last command.
22259 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22260 *c
*,-n*) ECHO_N
= ECHO_C
='
22262 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
22263 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
22266 if expr a
: '\(a\)' >/dev
/null
2>&1; then
22272 rm -f conf$$ conf$$.exe conf$$.
file
22274 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
22275 # We could just check for DJGPP; but this test a) works b) is more generic
22276 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22277 if test -f conf$$.exe
; then
22278 # Don't use ln at all; we don't have any links
22283 elif ln conf$$.
file conf$$
2>/dev
/null
; then
22288 rm -f conf$$ conf$$.exe conf$$.
file
22290 if mkdir
-p .
2>/dev
/null
; then
22293 test -d .
/-p && rmdir .
/-p
22297 as_executable_p
="test -f"
22299 # Sed expression to map a string onto a valid CPP name.
22300 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22302 # Sed expression to map a string onto a valid variable name.
22303 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22307 # We need space, tab and new line, in precisely that order.
22317 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22318 # report actual input values of CONFIG_FILES etc. instead of their
22319 # values after options handling. Logging --version etc. is OK.
22323 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22324 ## Running $as_me. ##
22329 This file was extended by python $as_me 2.5, which was
22330 generated by GNU Autoconf 2.59. Invocation command line was
22332 CONFIG_FILES = $CONFIG_FILES
22333 CONFIG_HEADERS = $CONFIG_HEADERS
22334 CONFIG_LINKS = $CONFIG_LINKS
22335 CONFIG_COMMANDS = $CONFIG_COMMANDS
22339 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22343 # Files that config.status was made for.
22344 if test -n "$ac_config_files"; then
22345 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22348 if test -n "$ac_config_headers"; then
22349 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22352 if test -n "$ac_config_links"; then
22353 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22356 if test -n "$ac_config_commands"; then
22357 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22360 cat >>$CONFIG_STATUS <<\_ACEOF
22363 \`$as_me' instantiates files from templates according to the
22364 current configuration.
22366 Usage: $0 [OPTIONS] [FILE]...
22368 -h, --help print this help, then exit
22369 -V, --version print version number, then exit
22370 -q, --quiet do not print progress messages
22371 -d, --debug don't remove temporary files
22372 --recheck update $as_me by reconfiguring in the same conditions
22373 --file=FILE[:TEMPLATE]
22374 instantiate the configuration file FILE
22375 --header=FILE[:TEMPLATE]
22376 instantiate the configuration header FILE
22378 Configuration files:
22381 Configuration headers:
22384 Report bugs to <bug-autoconf@gnu.org>."
22387 cat >>$CONFIG_STATUS <<_ACEOF
22389 python config.status 2.5
22390 configured by $0, generated by GNU Autoconf 2.59,
22391 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22393 Copyright (C) 2003 Free Software Foundation, Inc.
22394 This config.status script is free software; the Free Software Foundation
22395 gives unlimited permission to copy, distribute and modify it."
22400 cat >>$CONFIG_STATUS <<\_ACEOF
22401 # If no file are specified by the user, then we need to provide default
22402 # value. By we need to know if files were specified by the user.
22408 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
22409 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
22417 *) # This is not an option, so the user has probably given explicit
22420 ac_need_defaults
=false
;;
22424 # Handling of the options.
22426 cat >>$CONFIG_STATUS <<\_ACEOF
22427 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
22429 --version |
--vers* |
-V )
22430 echo "$ac_cs_version"; exit 0 ;;
22432 # Conflict between --help and --header
22433 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22434 Try \`$0 --help' for more information." >&5
22435 echo "$as_me: error: ambiguous option: $1
22436 Try \`$0 --help' for more information." >&2;}
22437 { (exit 1); exit 1; }; };;
22438 --help |
--hel |
-h )
22439 echo "$ac_cs_usage"; exit 0 ;;
22440 --debug |
--d* |
-d )
22442 --file |
--fil |
--fi |
--f )
22444 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
22445 ac_need_defaults
=false
;;
22446 --header |
--heade |
--head |
--hea )
22448 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
22449 ac_need_defaults
=false
;;
22450 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
22451 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
22454 # This is an error.
22455 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22456 Try \`$0 --help' for more information." >&5
22457 echo "$as_me: error: unrecognized option: $1
22458 Try \`$0 --help' for more information." >&2;}
22459 { (exit 1); exit 1; }; } ;;
22461 *) ac_config_targets
="$ac_config_targets $1" ;;
22467 ac_configure_extra_args
=
22469 if $ac_cs_silent; then
22471 ac_configure_extra_args
="$ac_configure_extra_args --silent"
22475 cat >>$CONFIG_STATUS <<_ACEOF
22476 if \$ac_cs_recheck; then
22477 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22478 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22487 cat >>$CONFIG_STATUS <<\_ACEOF
22488 for ac_config_target
in $ac_config_targets
22490 case "$ac_config_target" in
22491 # Handling of arguments.
22492 "Mac/Makefile" ) CONFIG_FILES
="$CONFIG_FILES Mac/Makefile" ;;
22493 "Mac/PythonLauncher/Makefile" ) CONFIG_FILES
="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;;
22494 "Mac/IDLE/Makefile" ) CONFIG_FILES
="$CONFIG_FILES Mac/IDLE/Makefile" ;;
22495 "Makefile.pre" ) CONFIG_FILES
="$CONFIG_FILES Makefile.pre" ;;
22496 "Modules/Setup.config" ) CONFIG_FILES
="$CONFIG_FILES Modules/Setup.config" ;;
22497 "pyconfig.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS pyconfig.h" ;;
22498 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22499 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22500 { (exit 1); exit 1; }; };;
22504 # If the user did not use the arguments to specify the items to instantiate,
22505 # then the envvar interface is used. Set only those that are not.
22506 # We use the long form for the default assignment because of an extremely
22507 # bizarre bug on SunOS 4.1.3.
22508 if $ac_need_defaults; then
22509 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
22510 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
22513 # Have a temporary directory for convenience. Make it in the build tree
22514 # simply because there is no reason to put it here, and in addition,
22515 # creating and moving files from /tmp can sometimes cause problems.
22516 # Create a temporary directory, and hook for its removal unless debugging.
22519 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22520 trap '{ (exit 1); exit 1; }' 1 2 13 15
22523 # Create a (secure) tmp directory for tmp files.
22526 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22527 test -n "$tmp" && test -d "$tmp"
22530 tmp
=.
/confstat$$
-$RANDOM
22531 (umask 077 && mkdir
$tmp)
22534 echo "$me: cannot create a temporary directory in ." >&2
22535 { (exit 1); exit 1; }
22540 cat >>$CONFIG_STATUS <<_ACEOF
22543 # CONFIG_FILES section.
22546 # No need to generate the scripts if there are no CONFIG_FILES.
22547 # This happens for instance when ./config.status config.h
22548 if test -n "\$CONFIG_FILES"; then
22549 # Protect against being on the right side of a sed subst in config.status.
22550 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22551 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22552 s,@SHELL@,$SHELL,;t t
22553 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22554 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22555 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22556 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22557 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22558 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22559 s,@exec_prefix@,$exec_prefix,;t t
22560 s,@prefix@,$prefix,;t t
22561 s,@program_transform_name@,$program_transform_name,;t t
22562 s,@bindir@,$bindir,;t t
22563 s,@sbindir@,$sbindir,;t t
22564 s,@libexecdir@,$libexecdir,;t t
22565 s,@datadir@,$datadir,;t t
22566 s,@sysconfdir@,$sysconfdir,;t t
22567 s,@sharedstatedir@,$sharedstatedir,;t t
22568 s,@localstatedir@,$localstatedir,;t t
22569 s,@libdir@,$libdir,;t t
22570 s,@includedir@,$includedir,;t t
22571 s,@oldincludedir@,$oldincludedir,;t t
22572 s,@infodir@,$infodir,;t t
22573 s,@mandir@,$mandir,;t t
22574 s,@build_alias@,$build_alias,;t t
22575 s,@host_alias@,$host_alias,;t t
22576 s,@target_alias@,$target_alias,;t t
22577 s,@DEFS@,$DEFS,;t t
22578 s,@ECHO_C@,$ECHO_C,;t t
22579 s,@ECHO_N@,$ECHO_N,;t t
22580 s,@ECHO_T@,$ECHO_T,;t t
22581 s,@LIBS@,$LIBS,;t t
22582 s,@VERSION@,$VERSION,;t t
22583 s,@SOVERSION@,$SOVERSION,;t t
22584 s,@CONFIG_ARGS@,$CONFIG_ARGS,;t t
22585 s,@UNIVERSALSDK@,$UNIVERSALSDK,;t t
22586 s,@PYTHONFRAMEWORK@,$PYTHONFRAMEWORK,;t t
22587 s,@PYTHONFRAMEWORKDIR@,$PYTHONFRAMEWORKDIR,;t t
22588 s,@PYTHONFRAMEWORKPREFIX@,$PYTHONFRAMEWORKPREFIX,;t t
22589 s,@PYTHONFRAMEWORKINSTALLDIR@,$PYTHONFRAMEWORKINSTALLDIR,;t t
22590 s,@FRAMEWORKINSTALLFIRST@,$FRAMEWORKINSTALLFIRST,;t t
22591 s,@FRAMEWORKINSTALLLAST@,$FRAMEWORKINSTALLLAST,;t t
22592 s,@FRAMEWORKALTINSTALLFIRST@,$FRAMEWORKALTINSTALLFIRST,;t t
22593 s,@FRAMEWORKALTINSTALLLAST@,$FRAMEWORKALTINSTALLLAST,;t t
22594 s,@FRAMEWORKUNIXTOOLSPREFIX@,$FRAMEWORKUNIXTOOLSPREFIX,;t t
22595 s,@MACHDEP@,$MACHDEP,;t t
22596 s,@SGI_ABI@,$SGI_ABI,;t t
22597 s,@EXTRAPLATDIR@,$EXTRAPLATDIR,;t t
22598 s,@EXTRAMACHDEPPATH@,$EXTRAMACHDEPPATH,;t t
22599 s,@CONFIGURE_MACOSX_DEPLOYMENT_TARGET@,$CONFIGURE_MACOSX_DEPLOYMENT_TARGET,;t t
22600 s,@EXPORT_MACOSX_DEPLOYMENT_TARGET@,$EXPORT_MACOSX_DEPLOYMENT_TARGET,;t t
22602 s,@CFLAGS@,$CFLAGS,;t t
22603 s,@LDFLAGS@,$LDFLAGS,;t t
22604 s,@CPPFLAGS@,$CPPFLAGS,;t t
22605 s,@ac_ct_CC@,$ac_ct_CC,;t t
22606 s,@EXEEXT@,$EXEEXT,;t t
22607 s,@OBJEXT@,$OBJEXT,;t t
22609 s,@MAINCC@,$MAINCC,;t t
22611 s,@EGREP@,$EGREP,;t t
22612 s,@BUILDEXEEXT@,$BUILDEXEEXT,;t t
22613 s,@LIBRARY@,$LIBRARY,;t t
22614 s,@LDLIBRARY@,$LDLIBRARY,;t t
22615 s,@DLLLIBRARY@,$DLLLIBRARY,;t t
22616 s,@BLDLIBRARY@,$BLDLIBRARY,;t t
22617 s,@LDLIBRARYDIR@,$LDLIBRARYDIR,;t t
22618 s,@INSTSONAME@,$INSTSONAME,;t t
22619 s,@RUNSHARED@,$RUNSHARED,;t t
22620 s,@LINKCC@,$LINKCC,;t t
22621 s,@RANLIB@,$RANLIB,;t t
22622 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22624 s,@SVNVERSION@,$SVNVERSION,;t t
22625 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22626 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22627 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22630 s,@BASECFLAGS@,$BASECFLAGS,;t t
22631 s,@OTHER_LIBTOOL_OPT@,$OTHER_LIBTOOL_OPT,;t t
22632 s,@LIBTOOL_CRUFT@,$LIBTOOL_CRUFT,;t t
22634 s,@LDSHARED@,$LDSHARED,;t t
22635 s,@BLDSHARED@,$BLDSHARED,;t t
22636 s,@CCSHARED@,$CCSHARED,;t t
22637 s,@LINKFORSHARED@,$LINKFORSHARED,;t t
22638 s,@CFLAGSFORSHARED@,$CFLAGSFORSHARED,;t t
22639 s,@SHLIBS@,$SHLIBS,;t t
22640 s,@USE_SIGNAL_MODULE@,$USE_SIGNAL_MODULE,;t t
22641 s,@SIGNAL_OBJS@,$SIGNAL_OBJS,;t t
22642 s,@USE_THREAD_MODULE@,$USE_THREAD_MODULE,;t t
22643 s,@LDLAST@,$LDLAST,;t t
22644 s,@THREADOBJ@,$THREADOBJ,;t t
22645 s,@DLINCLDIR@,$DLINCLDIR,;t t
22646 s,@DYNLOADFILE@,$DYNLOADFILE,;t t
22647 s,@MACHDEP_OBJS@,$MACHDEP_OBJS,;t t
22648 s,@TRUE@,$TRUE,;t t
22649 s,@LIBOBJS@,$LIBOBJS,;t t
22650 s,@HAVE_GETHOSTBYNAME_R_6_ARG@,$HAVE_GETHOSTBYNAME_R_6_ARG,;t t
22651 s,@HAVE_GETHOSTBYNAME_R_5_ARG@,$HAVE_GETHOSTBYNAME_R_5_ARG,;t t
22652 s,@HAVE_GETHOSTBYNAME_R_3_ARG@,$HAVE_GETHOSTBYNAME_R_3_ARG,;t t
22653 s,@HAVE_GETHOSTBYNAME_R@,$HAVE_GETHOSTBYNAME_R,;t t
22654 s,@HAVE_GETHOSTBYNAME@,$HAVE_GETHOSTBYNAME,;t t
22655 s,@LIBM@,$LIBM,;t t
22656 s,@LIBC@,$LIBC,;t t
22657 s,@UNICODE_OBJS@,$UNICODE_OBJS,;t t
22658 s,@THREADHEADERS@,$THREADHEADERS,;t t
22659 s,@SRCDIRS@,$SRCDIRS,;t t
22660 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22665 cat >>$CONFIG_STATUS <<\_ACEOF
22666 # Split the substitutions into bite-sized pieces for seds with
22667 # small command number limits, like on Digital OSF/1 and HP-UX.
22668 ac_max_sed_lines
=48
22669 ac_sed_frag
=1 # Number of current file.
22670 ac_beg
=1 # First line for current file.
22671 ac_end
=$ac_max_sed_lines # Line after last line for current file.
22674 while $ac_more_lines; do
22675 if test $ac_beg -gt 1; then
22676 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
22678 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
22680 if test ! -s $tmp/subs.frag
; then
22681 ac_more_lines
=false
22683 # The purpose of the label and of the branching condition is to
22684 # speed up the sed processing (if there are no `@' at all, there
22685 # is no need to browse any of the substitutions).
22686 # These are the two extra sed commands mentioned above.
22688 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
22689 if test -z "$ac_sed_cmds"; then
22690 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
22692 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22694 ac_sed_frag
=`expr $ac_sed_frag + 1`
22696 ac_end
=`expr $ac_end + $ac_max_sed_lines`
22699 if test -z "$ac_sed_cmds"; then
22702 fi # test -n "$CONFIG_FILES"
22705 cat >>$CONFIG_STATUS <<\_ACEOF
22706 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
22707 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22709 - |
*:- |
*:-:* ) # input from stdin
22711 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22712 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
22713 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22714 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
22715 * ) ac_file_in
=$ac_file.
in ;;
22718 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22719 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
22720 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22721 X"$ac_file" : 'X\(//\)[^/]' \| \
22722 X"$ac_file" : 'X\(//\)$' \| \
22723 X"$ac_file" : 'X\(/\)' \| \
22724 . : '\(.\)' 2>/dev/null ||
22726 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22727 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22728 /^X\(\/\/\)$/{ s//\1/; q; }
22729 /^X\(\/\).*/{ s//\1/; q; }
22731 { if $as_mkdir_p; then
22736 while test ! -d "$as_dir"; do
22737 as_dirs
="$as_dir $as_dirs"
22738 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
22739 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22740 X"$as_dir" : 'X\(//\)[^/]' \| \
22741 X"$as_dir" : 'X\(//\)$' \| \
22742 X"$as_dir" : 'X\(/\)' \| \
22743 . : '\(.\)' 2>/dev/null ||
22745 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22746 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22747 /^X\(\/\/\)$/{ s//\1/; q; }
22748 /^X\(\/\).*/{ s//\1/; q; }
22751 test ! -n "$as_dirs" || mkdir
$as_dirs
22752 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22753 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22754 { (exit 1); exit 1; }; }; }
22758 if test "$ac_dir" != .
; then
22759 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22760 # A "../" for each directory in $ac_dir_suffix.
22761 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22763 ac_dir_suffix
= ac_top_builddir
=
22767 .
) # No --srcdir option. We are building in place.
22769 if test -z "$ac_top_builddir"; then
22772 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
22774 [\\/]* | ?
:[\\/]* ) # Absolute path.
22775 ac_srcdir
=$srcdir$ac_dir_suffix;
22776 ac_top_srcdir
=$srcdir ;;
22777 *) # Relative path.
22778 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
22779 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
22782 # Do not use `cd foo && pwd` to compute absolute paths, because
22783 # the directories may not exist.
22785 .
) ac_abs_builddir
="$ac_dir";;
22788 .
) ac_abs_builddir
=`pwd`;;
22789 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
22790 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
22793 case $ac_abs_builddir in
22794 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
22796 case ${ac_top_builddir}.
in
22797 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
22798 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
22799 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
22802 case $ac_abs_builddir in
22803 .
) ac_abs_srcdir
=$ac_srcdir;;
22806 .
) ac_abs_srcdir
=$ac_abs_builddir;;
22807 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
22808 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
22811 case $ac_abs_builddir in
22812 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
22814 case $ac_top_srcdir in
22815 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
22816 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
22817 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
22823 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
22824 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
22827 if test x
"$ac_file" != x-
; then
22828 { echo "$as_me:$LINENO: creating $ac_file" >&5
22829 echo "$as_me: creating $ac_file" >&6;}
22832 # Let's still pretend it is `configure' which instantiates (i.e., don't
22833 # use $as_me), people would be surprised to read:
22834 # /* config.h. Generated by config.status. */
22835 if test x
"$ac_file" = x-
; then
22838 configure_input
="$ac_file. "
22840 configure_input
=$configure_input"Generated from `echo $ac_file_in |
22841 sed 's,.*/,,'` by configure."
22843 # First look for the input files in the build tree, otherwise in the
22845 ac_file_inputs
=`IFS=:
22846 for f in $ac_file_in; do
22848 -) echo $tmp/stdin ;;
22850 # Absolute (can't be DOS-style, as IFS=:)
22851 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22852 echo "$as_me: error: cannot find input file: $f" >&2;}
22853 { (exit 1); exit 1; }; }
22856 if test -f "$f"; then
22859 elif test -f "$srcdir/$f"; then
22864 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22865 echo "$as_me: error: cannot find input file: $f" >&2;}
22866 { (exit 1); exit 1; }; }
22869 done` ||
{ (exit 1); exit 1; }
22871 cat >>$CONFIG_STATUS <<_ACEOF
22875 cat >>$CONFIG_STATUS <<\_ACEOF
22877 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
22878 s
,@configure_input@
,$configure_input,;t t
22879 s
,@srcdir@
,$ac_srcdir,;t t
22880 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
22881 s
,@top_srcdir@
,$ac_top_srcdir,;t t
22882 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
22883 s
,@builddir@
,$ac_builddir,;t t
22884 s
,@abs_builddir@
,$ac_abs_builddir,;t t
22885 s
,@top_builddir@
,$ac_top_builddir,;t t
22886 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
22887 s
,@INSTALL@
,$ac_INSTALL,;t t
22888 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22890 if test x"$ac_file" != x-; then
22891 mv $tmp/out $ac_file
22899 cat >>$CONFIG_STATUS <<\_ACEOF
22902 # CONFIG_HEADER section.
22905 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
22906 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22908 # ac_d sets the value in "#define NAME VALUE" lines.
22909 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22910 ac_dB
='[ ].*$,\1#\2'
22913 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22914 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22915 ac_uB
='$,\1#\2define\3'
22919 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
22920 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22922 - |
*:- |
*:-:* ) # input from stdin
22924 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22925 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
22926 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22927 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
22928 * ) ac_file_in
=$ac_file.
in ;;
22931 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
22932 echo "$as_me: creating $ac_file" >&6;}
22934 # First look for the input files in the build tree, otherwise in the
22936 ac_file_inputs
=`IFS=:
22937 for f in $ac_file_in; do
22939 -) echo $tmp/stdin ;;
22941 # Absolute (can't be DOS-style, as IFS=:)
22942 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22943 echo "$as_me: error: cannot find input file: $f" >&2;}
22944 { (exit 1); exit 1; }; }
22945 # Do quote $f, to prevent DOS paths from being IFS'd.
22948 if test -f "$f"; then
22951 elif test -f "$srcdir/$f"; then
22956 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22957 echo "$as_me: error: cannot find input file: $f" >&2;}
22958 { (exit 1); exit 1; }; }
22961 done` ||
{ (exit 1); exit 1; }
22962 # Remove the trailing spaces.
22963 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22967 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22968 # `conftest.undefs', that substitutes the proper values into
22969 # config.h.in to produce config.h. The first handles `#define'
22970 # templates, and the second `#undef' templates.
22971 # And first: Protect against being on the right side of a sed subst in
22972 # config.status. Protect against being in an unquoted here document
22973 # in config.status.
22974 rm -f conftest.defines conftest.undefs
22975 # Using a here document instead of a string reduces the quoting nightmare.
22976 # Putting comments in sed scripts is not portable.
22978 # `end' is used to avoid that the second main sed command (meant for
22979 # 0-ary CPP macros) applies to n-ary macro definitions.
22980 # See the Autoconf documentation for `clear'.
22981 cat >confdef2sed.
sed <<\_ACEOF
22986 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22988 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22991 # If some macros were called several times there might be several times
22992 # the same #defines, which is useless. Nevertheless, we may not want to
22993 # sort them, since we want the *last* AC-DEFINE to be honored.
22994 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22995 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22996 rm -f confdef2sed.sed
22998 # This sed command replaces #undef with comments. This is necessary, for
22999 # example, in the case of _POSIX_SOURCE, which is predefined and required
23000 # on some systems where configure will not decide to define it.
23001 cat >>conftest.undefs <<\_ACEOF
23002 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23005 # Break up conftest.defines because some shells have a limit on the size
23006 # of here documents, and old seds have small limits too (100 cmds).
23007 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23008 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23009 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23010 echo ' :' >>$CONFIG_STATUS
23011 rm -f conftest.tail
23012 while grep . conftest.defines >/dev/null
23014 # Write a limited-size here document to $tmp/defines.sed.
23015 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23016 # Speed up: don't consider the non `#define' lines.
23017 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23018 # Work around the forget-to-reset-the-flag bug.
23019 echo 't clr' >>$CONFIG_STATUS
23020 echo ': clr' >>$CONFIG_STATUS
23021 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
23023 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23025 mv $tmp/out $tmp/in
23027 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
23028 rm -f conftest.defines
23029 mv conftest.
tail conftest.defines
23031 rm -f conftest.defines
23032 echo ' fi # grep' >>$CONFIG_STATUS
23033 echo >>$CONFIG_STATUS
23035 # Break up conftest.undefs because some shells have a limit on the size
23036 # of here documents, and old seds have small limits too (100 cmds).
23037 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23038 rm -f conftest.
tail
23039 while grep . conftest.undefs
>/dev
/null
23041 # Write a limited-size here document to $tmp/undefs.sed.
23042 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23043 # Speed up: don't consider the non
`#undef'
23044 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23045 # Work around the forget-to-reset-the-flag bug.
23046 echo 't clr' >>$CONFIG_STATUS
23047 echo ': clr' >>$CONFIG_STATUS
23048 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23050 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23052 mv $tmp/out $tmp/in
23054 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23055 rm -f conftest.undefs
23056 mv conftest.tail conftest.undefs
23058 rm -f conftest.undefs
23060 cat >>$CONFIG_STATUS <<\_ACEOF
23061 # Let's still pretend it is `configure
' which instantiates (i.e., don't
23062 # use $as_me), people would be surprised to read:
23063 # /* config.h. Generated by config.status. */
23064 if test x
"$ac_file" = x-
; then
23065 echo "/* Generated by configure. */" >$tmp/config.h
23067 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23069 cat $tmp/in >>$tmp/config.h
23071 if test x
"$ac_file" != x-
; then
23072 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
23073 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23074 echo "$as_me: $ac_file is unchanged" >&6;}
23076 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
23077 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23078 X"$ac_file" : 'X\(//\)[^/]' \| \
23079 X"$ac_file" : 'X\(//\)$' \| \
23080 X"$ac_file" : 'X\(/\)' \| \
23081 . : '\(.\)' 2>/dev/null ||
23083 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23084 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23085 /^X\(\/\/\)$/{ s//\1/; q; }
23086 /^X\(\/\).*/{ s//\1/; q; }
23088 { if $as_mkdir_p; then
23093 while test ! -d "$as_dir"; do
23094 as_dirs
="$as_dir $as_dirs"
23095 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
23096 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23097 X"$as_dir" : 'X\(//\)[^/]' \| \
23098 X"$as_dir" : 'X\(//\)$' \| \
23099 X"$as_dir" : 'X\(/\)' \| \
23100 . : '\(.\)' 2>/dev/null ||
23102 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23103 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23104 /^X\(\/\/\)$/{ s//\1/; q; }
23105 /^X\(\/\).*/{ s//\1/; q; }
23108 test ! -n "$as_dirs" || mkdir
$as_dirs
23109 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23110 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23111 { (exit 1); exit 1; }; }; }
23114 mv $tmp/config.h
$ac_file
23118 rm -f $tmp/config.h
23123 cat >>$CONFIG_STATUS <<\_ACEOF
23125 { (exit 0); exit 0; }
23127 chmod +x
$CONFIG_STATUS
23128 ac_clean_files
=$ac_clean_files_save
23131 # configure is writing to config.log, and then calls config.status.
23132 # config.status does its own redirection, appending to config.log.
23133 # Unfortunately, on DOS this fails, as config.log is still kept open
23134 # by configure, so config.status won't be able to write to it; its
23135 # output is simply discarded. So we exec the FD to /dev/null,
23136 # effectively closing config.log, so it can be properly (re)opened and
23137 # appended to by config.status. When coming back to configure, we
23138 # need to make the FD available again.
23139 if test "$no_create" != yes; then
23141 ac_config_status_args
=
23142 test "$silent" = yes &&
23143 ac_config_status_args
="$ac_config_status_args --quiet"
23145 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
23147 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23148 # would make configure fail if this is the last instruction.
23149 $ac_cs_success ||
{ (exit 1); exit 1; }
23153 echo "creating Modules/Setup"
23154 if test ! -f Modules
/Setup
23156 cp $srcdir/Modules
/Setup.dist Modules
/Setup
23159 echo "creating Modules/Setup.local"
23160 if test ! -f Modules
/Setup.
local
23162 echo "# Edit this file for local setup changes" >Modules
/Setup.
local
23165 echo "creating Makefile"
23166 $SHELL $srcdir/Modules
/makesetup
-c $srcdir/Modules
/config.c.
in \
23167 -s Modules Modules
/Setup.config \
23168 Modules
/Setup.
local Modules
/Setup
23169 mv config.c Modules