2 # From configure.in Revision: 52844 .
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] | OpenBSD
/4.
[0])
1557 define_xopen_source
=no
;;
1558 # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of
1559 # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by
1561 NetBSD
/1.5 | NetBSD
/1.5.
* | NetBSD
/1.6 | NetBSD
/1.6.
* | NetBSD
/1.6A-S
)
1562 define_xopen_source
=no
;;
1563 # On Solaris 2.6, sys/wait.h is inconsistent in the usage
1564 # of union __?sigval. Reported by Stuart Bishop.
1566 define_xopen_source
=no
;;
1567 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
1568 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
1569 # Reconfirmed for 7.1.4 by Martin v. Loewis.
1570 OpenUNIX
/8.0.0| UnixWare
/7.1.
[0-4])
1571 define_xopen_source
=no
;;
1572 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
1573 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
1575 define_xopen_source
=no
;;
1576 # On FreeBSD 4.8 and MacOS X 10.2, a bug in ncurses.h means that
1577 # it craps out if _XOPEN_EXTENDED_SOURCE is defined. Apparently,
1578 # this is fixed in 10.3, which identifies itself as Darwin/7.*
1579 # This should hopefully be fixed in FreeBSD 4.9
1580 FreeBSD
/4.8* | Darwin
/6* )
1581 define_xopen_source
=no
;;
1582 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
1583 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
1584 # or has another value. By not (re)defining it, the defaults come in place.
1586 define_xopen_source
=no
;;
1588 if test `uname -r` -eq 1; then
1589 define_xopen_source
=no
1592 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
1593 # disables platform specific features beyond repair.
1594 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
1595 # has no effect, don't bother defining them
1597 define_xopen_source
=no
1602 if test $define_xopen_source = yes
1604 # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be
1605 # defined precisely as g++ defines it
1606 # Furthermore, on Solaris 10, XPG6 requires the use of a C99
1608 case $ac_sys_system/$ac_sys_release in
1609 SunOS
/5.8|SunOS
/5.9|SunOS
/5.10)
1611 cat >>confdefs.h
<<\_ACEOF
1612 #define _XOPEN_SOURCE 500
1618 cat >>confdefs.h
<<\_ACEOF
1619 #define _XOPEN_SOURCE 600
1625 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
1626 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
1627 # several APIs are not declared. Since this is also needed in some
1628 # cases for HP-UX, we define it globally.
1629 # except for Solaris 10, where it must not be defined,
1630 # as it implies XPG4.2
1631 case $ac_sys_system/$ac_sys_release in
1636 cat >>confdefs.h
<<\_ACEOF
1637 #define _XOPEN_SOURCE_EXTENDED 1
1644 cat >>confdefs.h
<<\_ACEOF
1645 #define _POSIX_C_SOURCE 200112L
1652 # SGI compilers allow the specification of the both the ABI and the
1653 # ISA on the command line. Depending on the values of these switches,
1654 # different and often incompatable code will be generated.
1656 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
1657 # thus supply support for various ABI/ISA combinations. The MACHDEP
1658 # variable is also adjusted.
1661 if test ! -z "$SGI_ABI"
1664 LDFLAGS
="$SGI_ABI $LDFLAGS"
1665 MACHDEP
=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'`
1667 echo "$as_me:$LINENO: result: $MACHDEP" >&5
1668 echo "${ECHO_T}$MACHDEP" >&6
1670 # And add extra plat-mac for darwin
1673 echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5
1674 echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6
1675 if test -z "$EXTRAPLATDIR"
1679 EXTRAPLATDIR
="\$(PLATMACDIRS)"
1680 EXTRAMACHDEPPATH
="\$(PLATMACPATH)"
1688 echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5
1689 echo "${ECHO_T}$EXTRAPLATDIR" >&6
1691 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
1692 # it may influence the way we can build extensions, so distutils
1696 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
=
1697 EXPORT_MACOSX_DEPLOYMENT_TARGET
='#'
1699 # checks for alternative programs
1701 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
1702 # for debug/optimization stuff. BASECFLAGS is for flags that are required
1703 # just to get things to compile and link. Users are free to override OPT
1704 # when running configure or make. The build should not break if they do.
1705 # BASECFLAGS should generally not be messed with, however.
1707 # XXX shouldn't some/most/all of this code be merged with the stuff later
1708 # on that fiddles with OPT and BASECFLAGS?
1709 echo "$as_me:$LINENO: checking for --without-gcc" >&5
1710 echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6
1712 # Check whether --with-gcc or --without-gcc was given.
1713 if test "${with_gcc+set}" = set; then
1722 without_gcc
=$withval;;
1726 case $ac_sys_system in
1730 case $BE_HOST_CPU in
1734 BASECFLAGS
="$BASECFLAGS -export pragma"
1736 LDFLAGS
="$LDFLAGS -nodup"
1744 { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5
1745 echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;}
1746 { (exit 1); exit 1; }; }
1749 AR
="\$(srcdir)/Modules/ar_beos"
1758 echo "$as_me:$LINENO: result: $without_gcc" >&5
1759 echo "${ECHO_T}$without_gcc" >&6
1761 # If the user switches compilers, we can't believe the cache
1762 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
1764 { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
1765 (it is also a good idea to do 'make clean' before compiling)" >&5
1766 echo "$as_me: error: cached CC is different -- throw away $cache_file
1767 (it is also a good idea to do 'make clean' before compiling)" >&2;}
1768 { (exit 1); exit 1; }; }
1772 ac_cpp
='$CPP $CPPFLAGS'
1773 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1774 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1775 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1776 if test -n "$ac_tool_prefix"; then
1777 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1778 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1779 echo "$as_me:$LINENO: checking for $ac_word" >&5
1780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1781 if test "${ac_cv_prog_CC+set}" = set; then
1782 echo $ECHO_N "(cached) $ECHO_C" >&6
1784 if test -n "$CC"; then
1785 ac_cv_prog_CC
="$CC" # Let the user override the test.
1787 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1791 test -z "$as_dir" && as_dir
=.
1792 for ac_exec_ext
in '' $ac_executable_extensions; do
1793 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1794 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1804 if test -n "$CC"; then
1805 echo "$as_me:$LINENO: result: $CC" >&5
1806 echo "${ECHO_T}$CC" >&6
1808 echo "$as_me:$LINENO: result: no" >&5
1809 echo "${ECHO_T}no" >&6
1813 if test -z "$ac_cv_prog_CC"; then
1815 # Extract the first word of "gcc", so it can be a program name with args.
1816 set dummy gcc
; ac_word
=$2
1817 echo "$as_me:$LINENO: checking for $ac_word" >&5
1818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1819 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1820 echo $ECHO_N "(cached) $ECHO_C" >&6
1822 if test -n "$ac_ct_CC"; then
1823 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1825 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1829 test -z "$as_dir" && as_dir
=.
1830 for ac_exec_ext
in '' $ac_executable_extensions; do
1831 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1832 ac_cv_prog_ac_ct_CC
="gcc"
1833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1841 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1842 if test -n "$ac_ct_CC"; then
1843 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1844 echo "${ECHO_T}$ac_ct_CC" >&6
1846 echo "$as_me:$LINENO: result: no" >&5
1847 echo "${ECHO_T}no" >&6
1855 if test -z "$CC"; then
1856 if test -n "$ac_tool_prefix"; then
1857 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1858 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1859 echo "$as_me:$LINENO: checking for $ac_word" >&5
1860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1861 if test "${ac_cv_prog_CC+set}" = set; then
1862 echo $ECHO_N "(cached) $ECHO_C" >&6
1864 if test -n "$CC"; then
1865 ac_cv_prog_CC
="$CC" # Let the user override the test.
1867 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1871 test -z "$as_dir" && as_dir
=.
1872 for ac_exec_ext
in '' $ac_executable_extensions; do
1873 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1874 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1884 if test -n "$CC"; then
1885 echo "$as_me:$LINENO: result: $CC" >&5
1886 echo "${ECHO_T}$CC" >&6
1888 echo "$as_me:$LINENO: result: no" >&5
1889 echo "${ECHO_T}no" >&6
1893 if test -z "$ac_cv_prog_CC"; then
1895 # Extract the first word of "cc", so it can be a program name with args.
1896 set dummy cc
; ac_word
=$2
1897 echo "$as_me:$LINENO: checking for $ac_word" >&5
1898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1899 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1900 echo $ECHO_N "(cached) $ECHO_C" >&6
1902 if test -n "$ac_ct_CC"; then
1903 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1905 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1909 test -z "$as_dir" && as_dir
=.
1910 for ac_exec_ext
in '' $ac_executable_extensions; do
1911 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1912 ac_cv_prog_ac_ct_CC
="cc"
1913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1921 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1922 if test -n "$ac_ct_CC"; then
1923 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1924 echo "${ECHO_T}$ac_ct_CC" >&6
1926 echo "$as_me:$LINENO: result: no" >&5
1927 echo "${ECHO_T}no" >&6
1936 if test -z "$CC"; then
1937 # Extract the first word of "cc", so it can be a program name with args.
1938 set dummy cc
; ac_word
=$2
1939 echo "$as_me:$LINENO: checking for $ac_word" >&5
1940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1941 if test "${ac_cv_prog_CC+set}" = set; then
1942 echo $ECHO_N "(cached) $ECHO_C" >&6
1944 if test -n "$CC"; then
1945 ac_cv_prog_CC
="$CC" # Let the user override the test.
1948 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1952 test -z "$as_dir" && as_dir
=.
1953 for ac_exec_ext
in '' $ac_executable_extensions; do
1954 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1955 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1956 ac_prog_rejected
=yes
1960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1966 if test $ac_prog_rejected = yes; then
1967 # We found a bogon in the path, so make sure we never use it.
1968 set dummy
$ac_cv_prog_CC
1970 if test $# != 0; then
1971 # We chose a different compiler from the bogus one.
1972 # However, it has the same basename, so the bogon will be chosen
1973 # first if we set CC to just the basename; use the full file name.
1975 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
1981 if test -n "$CC"; then
1982 echo "$as_me:$LINENO: result: $CC" >&5
1983 echo "${ECHO_T}$CC" >&6
1985 echo "$as_me:$LINENO: result: no" >&5
1986 echo "${ECHO_T}no" >&6
1990 if test -z "$CC"; then
1991 if test -n "$ac_tool_prefix"; then
1994 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1995 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
1996 echo "$as_me:$LINENO: checking for $ac_word" >&5
1997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1998 if test "${ac_cv_prog_CC+set}" = set; then
1999 echo $ECHO_N "(cached) $ECHO_C" >&6
2001 if test -n "$CC"; then
2002 ac_cv_prog_CC
="$CC" # Let the user override the test.
2004 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2008 test -z "$as_dir" && as_dir
=.
2009 for ac_exec_ext
in '' $ac_executable_extensions; do
2010 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2011 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2021 if test -n "$CC"; then
2022 echo "$as_me:$LINENO: result: $CC" >&5
2023 echo "${ECHO_T}$CC" >&6
2025 echo "$as_me:$LINENO: result: no" >&5
2026 echo "${ECHO_T}no" >&6
2029 test -n "$CC" && break
2032 if test -z "$CC"; then
2036 # Extract the first word of "$ac_prog", so it can be a program name with args.
2037 set dummy
$ac_prog; ac_word
=$2
2038 echo "$as_me:$LINENO: checking for $ac_word" >&5
2039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2040 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2041 echo $ECHO_N "(cached) $ECHO_C" >&6
2043 if test -n "$ac_ct_CC"; then
2044 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2046 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2050 test -z "$as_dir" && as_dir
=.
2051 for ac_exec_ext
in '' $ac_executable_extensions; do
2052 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2053 ac_cv_prog_ac_ct_CC
="$ac_prog"
2054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2062 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2063 if test -n "$ac_ct_CC"; then
2064 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2065 echo "${ECHO_T}$ac_ct_CC" >&6
2067 echo "$as_me:$LINENO: result: no" >&5
2068 echo "${ECHO_T}no" >&6
2071 test -n "$ac_ct_CC" && break
2080 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2081 See \`config.log' for more details." >&5
2082 echo "$as_me: error: no acceptable C compiler found in \$PATH
2083 See \`config.log' for more details." >&2;}
2084 { (exit 1); exit 1; }; }
2086 # Provide some information about the compiler.
2087 echo "$as_me:$LINENO:" \
2088 "checking for C compiler version" >&5
2089 ac_compiler
=`set X $ac_compile; echo $2`
2090 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2091 (eval $ac_compiler --version </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); }
2100 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2101 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2104 (exit $ac_status); }
2106 cat >conftest.
$ac_ext <<_ACEOF
2109 cat confdefs.h
>>conftest.
$ac_ext
2110 cat >>conftest.
$ac_ext <<_ACEOF
2111 /* end confdefs.h. */
2121 ac_clean_files_save
=$ac_clean_files
2122 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2123 # Try to create an executable without -o first, disregard a.out.
2124 # It will help us diagnose broken compilers, and finding out an intuition
2126 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2127 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2128 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2129 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2130 (eval $ac_link_default) 2>&5
2132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2133 (exit $ac_status); }; then
2134 # Find the output, starting from the most likely. This scheme is
2135 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2138 # Be careful to initialize this variable, since it used to be cached.
2139 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2141 # b.out is created by i960 compilers.
2142 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2144 test -f "$ac_file" ||
continue
2146 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2149 # This is the source file.
2152 # We found the default executable, but exeext='' is most
2156 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2157 # FIXME: I believe we export ac_cv_exeext for Libtool,
2158 # but it would be cool to find out if it's true. Does anybody
2159 # maintain Libtool? --akim.
2167 echo "$as_me: failed program was:" >&5
2168 sed 's/^/| /' conftest.
$ac_ext >&5
2170 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2171 See \`config.log' for more details." >&5
2172 echo "$as_me: error: C compiler cannot create executables
2173 See \`config.log' for more details." >&2;}
2174 { (exit 77); exit 77; }; }
2177 ac_exeext
=$ac_cv_exeext
2178 echo "$as_me:$LINENO: result: $ac_file" >&5
2179 echo "${ECHO_T}$ac_file" >&6
2181 # Check the compiler produces executables we can run. If not, either
2182 # the compiler is broken, or we cross compile.
2183 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2184 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2185 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2186 # If not cross compiling, check that we can run a simple program.
2187 if test "$cross_compiling" != yes; then
2188 if { ac_try
='./$ac_file'
2189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2193 (exit $ac_status); }; }; then
2196 if test "$cross_compiling" = maybe
; then
2199 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2200 If you meant to cross compile, use \`--host'.
2201 See \`config.log' for more details." >&5
2202 echo "$as_me: error: cannot run C compiled programs.
2203 If you meant to cross compile, use \`--host'.
2204 See \`config.log' for more details." >&2;}
2205 { (exit 1); exit 1; }; }
2209 echo "$as_me:$LINENO: result: yes" >&5
2210 echo "${ECHO_T}yes" >&6
2212 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2213 ac_clean_files
=$ac_clean_files_save
2214 # Check the compiler produces executables we can run. If not, either
2215 # the compiler is broken, or we cross compile.
2216 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2217 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2218 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2219 echo "${ECHO_T}$cross_compiling" >&6
2221 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2222 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2224 (eval $ac_link) 2>&5
2226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227 (exit $ac_status); }; then
2228 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2229 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2230 # work properly (i.e., refer to `conftest.exe'), while it won't with
2232 for ac_file
in conftest.exe conftest conftest.
*; do
2233 test -f "$ac_file" ||
continue
2235 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2236 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2243 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2244 See \`config.log' for more details." >&5
2245 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2246 See \`config.log' for more details." >&2;}
2247 { (exit 1); exit 1; }; }
2250 rm -f conftest
$ac_cv_exeext
2251 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2252 echo "${ECHO_T}$ac_cv_exeext" >&6
2254 rm -f conftest.
$ac_ext
2255 EXEEXT
=$ac_cv_exeext
2257 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2258 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2259 if test "${ac_cv_objext+set}" = set; then
2260 echo $ECHO_N "(cached) $ECHO_C" >&6
2262 cat >conftest.
$ac_ext <<_ACEOF
2265 cat confdefs.h
>>conftest.
$ac_ext
2266 cat >>conftest.
$ac_ext <<_ACEOF
2267 /* end confdefs.h. */
2277 rm -f conftest.o conftest.obj
2278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2279 (eval $ac_compile) 2>&5
2281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2282 (exit $ac_status); }; then
2283 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2285 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2286 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2291 echo "$as_me: failed program was:" >&5
2292 sed 's/^/| /' conftest.
$ac_ext >&5
2294 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2295 See \`config.log' for more details." >&5
2296 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2297 See \`config.log' for more details." >&2;}
2298 { (exit 1); exit 1; }; }
2301 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2303 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2304 echo "${ECHO_T}$ac_cv_objext" >&6
2305 OBJEXT
=$ac_cv_objext
2307 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2308 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2309 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2310 echo $ECHO_N "(cached) $ECHO_C" >&6
2312 cat >conftest.
$ac_ext <<_ACEOF
2315 cat confdefs.h
>>conftest.
$ac_ext
2316 cat >>conftest.
$ac_ext <<_ACEOF
2317 /* end confdefs.h. */
2330 rm -f conftest.
$ac_objext
2331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2332 (eval $ac_compile) 2>conftest.er1
2334 grep -v '^ *+' conftest.er1
>conftest.err
2336 cat conftest.err
>&5
2337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2338 (exit $ac_status); } &&
2339 { ac_try
='test -z "$ac_c_werror_flag"
2340 || test ! -s conftest.err'
2341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2345 (exit $ac_status); }; } &&
2346 { ac_try
='test -s conftest.$ac_objext'
2347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2351 (exit $ac_status); }; }; then
2354 echo "$as_me: failed program was:" >&5
2355 sed 's/^/| /' conftest.
$ac_ext >&5
2359 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2360 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2363 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2364 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2365 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2366 ac_test_CFLAGS
=${CFLAGS+set}
2367 ac_save_CFLAGS
=$CFLAGS
2369 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2370 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2371 if test "${ac_cv_prog_cc_g+set}" = set; then
2372 echo $ECHO_N "(cached) $ECHO_C" >&6
2374 cat >conftest.
$ac_ext <<_ACEOF
2377 cat confdefs.h
>>conftest.
$ac_ext
2378 cat >>conftest.
$ac_ext <<_ACEOF
2379 /* end confdefs.h. */
2389 rm -f conftest.
$ac_objext
2390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2391 (eval $ac_compile) 2>conftest.er1
2393 grep -v '^ *+' conftest.er1
>conftest.err
2395 cat conftest.err
>&5
2396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397 (exit $ac_status); } &&
2398 { ac_try
='test -z "$ac_c_werror_flag"
2399 || test ! -s conftest.err'
2400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404 (exit $ac_status); }; } &&
2405 { ac_try
='test -s conftest.$ac_objext'
2406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410 (exit $ac_status); }; }; then
2413 echo "$as_me: failed program was:" >&5
2414 sed 's/^/| /' conftest.
$ac_ext >&5
2418 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2420 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2421 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2422 if test "$ac_test_CFLAGS" = set; then
2423 CFLAGS
=$ac_save_CFLAGS
2424 elif test $ac_cv_prog_cc_g = yes; then
2425 if test "$GCC" = yes; then
2431 if test "$GCC" = yes; then
2437 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2438 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2439 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2440 echo $ECHO_N "(cached) $ECHO_C" >&6
2442 ac_cv_prog_cc_stdc
=no
2444 cat >conftest.
$ac_ext <<_ACEOF
2447 cat confdefs.h
>>conftest.
$ac_ext
2448 cat >>conftest.
$ac_ext <<_ACEOF
2449 /* end confdefs.h. */
2452 #include <sys/types.h>
2453 #include <sys/stat.h>
2454 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2455 struct buf { int x; };
2456 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2457 static char *e (p, i)
2463 static char *f (char * (*g) (char **, int), char **p, ...)
2468 s = g (p, va_arg (v,int));
2473 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2474 function prototypes and stuff, but not '\xHH' hex character constants.
2475 These don't provoke an error unfortunately, instead are silently treated
2476 as 'x'. The following induces an error, until -std1 is added to get
2477 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2478 array size at least. It's necessary to write '\x00'==0 to get something
2479 that's true only with -std1. */
2480 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2482 int test (int i, double x);
2483 struct s1 {int (*f) (int a);};
2484 struct s2 {int (*f) (double a);};
2485 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2491 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2496 # Don't try gcc -ansi; that turns off useful extensions and
2497 # breaks some systems' header files.
2498 # AIX -qlanglvl=ansi
2499 # Ultrix and OSF/1 -std1
2500 # HP-UX 10.20 and later -Ae
2501 # HP-UX older versions -Aa -D_HPUX_SOURCE
2502 # SVR4 -Xc -D__EXTENSIONS__
2503 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2505 CC
="$ac_save_CC $ac_arg"
2506 rm -f conftest.
$ac_objext
2507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2508 (eval $ac_compile) 2>conftest.er1
2510 grep -v '^ *+' conftest.er1
>conftest.err
2512 cat conftest.err
>&5
2513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514 (exit $ac_status); } &&
2515 { ac_try
='test -z "$ac_c_werror_flag"
2516 || test ! -s conftest.err'
2517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2521 (exit $ac_status); }; } &&
2522 { ac_try
='test -s conftest.$ac_objext'
2523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527 (exit $ac_status); }; }; then
2528 ac_cv_prog_cc_stdc
=$ac_arg
2531 echo "$as_me: failed program was:" >&5
2532 sed 's/^/| /' conftest.
$ac_ext >&5
2535 rm -f conftest.err conftest.
$ac_objext
2537 rm -f conftest.
$ac_ext conftest.
$ac_objext
2542 case "x$ac_cv_prog_cc_stdc" in
2544 echo "$as_me:$LINENO: result: none needed" >&5
2545 echo "${ECHO_T}none needed" >&6 ;;
2547 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2548 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2549 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2552 # Some people use a C++ compiler to compile C. Since we use `exit',
2553 # in C++ we need to declare it. In case someone uses the same compiler
2554 # for both compiling C and C++ we need to have the C++ compiler decide
2555 # the declaration of exit, since it's the most demanding environment.
2556 cat >conftest.
$ac_ext <<_ACEOF
2561 rm -f conftest.
$ac_objext
2562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2563 (eval $ac_compile) 2>conftest.er1
2565 grep -v '^ *+' conftest.er1
>conftest.err
2567 cat conftest.err
>&5
2568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569 (exit $ac_status); } &&
2570 { ac_try
='test -z "$ac_c_werror_flag"
2571 || test ! -s conftest.err'
2572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576 (exit $ac_status); }; } &&
2577 { ac_try
='test -s conftest.$ac_objext'
2578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582 (exit $ac_status); }; }; then
2583 for ac_declaration
in \
2585 'extern "C" void std::exit (int) throw (); using std::exit;' \
2586 'extern "C" void std::exit (int); using std::exit;' \
2587 'extern "C" void exit (int) throw ();' \
2588 'extern "C" void exit (int);' \
2591 cat >conftest.
$ac_ext <<_ACEOF
2594 cat confdefs.h
>>conftest.
$ac_ext
2595 cat >>conftest.
$ac_ext <<_ACEOF
2596 /* end confdefs.h. */
2607 rm -f conftest.
$ac_objext
2608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2609 (eval $ac_compile) 2>conftest.er1
2611 grep -v '^ *+' conftest.er1
>conftest.err
2613 cat conftest.err
>&5
2614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615 (exit $ac_status); } &&
2616 { ac_try
='test -z "$ac_c_werror_flag"
2617 || test ! -s conftest.err'
2618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622 (exit $ac_status); }; } &&
2623 { ac_try
='test -s conftest.$ac_objext'
2624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628 (exit $ac_status); }; }; then
2631 echo "$as_me: failed program was:" >&5
2632 sed 's/^/| /' conftest.
$ac_ext >&5
2636 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2637 cat >conftest.
$ac_ext <<_ACEOF
2640 cat confdefs.h
>>conftest.
$ac_ext
2641 cat >>conftest.
$ac_ext <<_ACEOF
2642 /* end confdefs.h. */
2652 rm -f conftest.
$ac_objext
2653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2654 (eval $ac_compile) 2>conftest.er1
2656 grep -v '^ *+' conftest.er1
>conftest.err
2658 cat conftest.err
>&5
2659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660 (exit $ac_status); } &&
2661 { ac_try
='test -z "$ac_c_werror_flag"
2662 || test ! -s conftest.err'
2663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667 (exit $ac_status); }; } &&
2668 { ac_try
='test -s conftest.$ac_objext'
2669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673 (exit $ac_status); }; }; then
2676 echo "$as_me: failed program was:" >&5
2677 sed 's/^/| /' conftest.
$ac_ext >&5
2680 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2683 if test -n "$ac_declaration"; then
2684 echo '#ifdef __cplusplus' >>confdefs.h
2685 echo $ac_declaration >>confdefs.h
2686 echo '#endif' >>confdefs.h
2690 echo "$as_me: failed program was:" >&5
2691 sed 's/^/| /' conftest.
$ac_ext >&5
2694 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2696 ac_cpp
='$CPP $CPPFLAGS'
2697 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2698 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2699 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2704 echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5
2705 echo $ECHO_N "checking for --with-cxx-main=<compiler>... $ECHO_C" >&6
2707 # Check whether --with-cxx_main or --without-cxx_main was given.
2708 if test "${with_cxx_main+set}" = set; then
2709 withval
="$with_cxx_main"
2713 no
) with_cxx_main
=no
2715 yes) with_cxx_main
=yes
2717 *) with_cxx_main
=yes
2730 echo "$as_me:$LINENO: result: $with_cxx_main" >&5
2731 echo "${ECHO_T}$with_cxx_main" >&6
2737 gcc
) # Extract the first word of "g++", so it can be a program name with args.
2738 set dummy g
++; ac_word
=$2
2739 echo "$as_me:$LINENO: checking for $ac_word" >&5
2740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2741 if test "${ac_cv_path_CXX+set}" = set; then
2742 echo $ECHO_N "(cached) $ECHO_C" >&6
2746 ac_cv_path_CXX
="$CXX" # Let the user override the test with a path.
2749 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2750 for as_dir
in notfound
2753 test -z "$as_dir" && as_dir
=.
2754 for ac_exec_ext
in '' $ac_executable_extensions; do
2755 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2756 ac_cv_path_CXX
="$as_dir/$ac_word$ac_exec_ext"
2757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2763 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX
="g++"
2769 if test -n "$CXX"; then
2770 echo "$as_me:$LINENO: result: $CXX" >&5
2771 echo "${ECHO_T}$CXX" >&6
2773 echo "$as_me:$LINENO: result: no" >&5
2774 echo "${ECHO_T}no" >&6
2777 cc
) # Extract the first word of "c++", so it can be a program name with args.
2778 set dummy c
++; ac_word
=$2
2779 echo "$as_me:$LINENO: checking for $ac_word" >&5
2780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2781 if test "${ac_cv_path_CXX+set}" = set; then
2782 echo $ECHO_N "(cached) $ECHO_C" >&6
2786 ac_cv_path_CXX
="$CXX" # Let the user override the test with a path.
2789 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2790 for as_dir
in notfound
2793 test -z "$as_dir" && as_dir
=.
2794 for ac_exec_ext
in '' $ac_executable_extensions; do
2795 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2796 ac_cv_path_CXX
="$as_dir/$ac_word$ac_exec_ext"
2797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2803 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX
="c++"
2809 if test -n "$CXX"; then
2810 echo "$as_me:$LINENO: result: $CXX" >&5
2811 echo "${ECHO_T}$CXX" >&6
2813 echo "$as_me:$LINENO: result: no" >&5
2814 echo "${ECHO_T}no" >&6
2818 if test "$CXX" = "notfound"
2825 for ac_prog
in $CCC c
++ g
++ gcc CC cxx cc
++ cl
2827 # Extract the first word of "$ac_prog", so it can be a program name with args.
2828 set dummy
$ac_prog; ac_word
=$2
2829 echo "$as_me:$LINENO: checking for $ac_word" >&5
2830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2831 if test "${ac_cv_prog_CXX+set}" = set; then
2832 echo $ECHO_N "(cached) $ECHO_C" >&6
2834 if test -n "$CXX"; then
2835 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
2837 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2841 test -z "$as_dir" && as_dir
=.
2842 for ac_exec_ext
in '' $ac_executable_extensions; do
2843 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2844 ac_cv_prog_CXX
="$ac_prog"
2845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2854 if test -n "$CXX"; then
2855 echo "$as_me:$LINENO: result: $CXX" >&5
2856 echo "${ECHO_T}$CXX" >&6
2858 echo "$as_me:$LINENO: result: no" >&5
2859 echo "${ECHO_T}no" >&6
2862 test -n "$CXX" && break
2864 test -n "$CXX" || CXX
="notfound"
2866 if test "$CXX" = "notfound"
2871 if test "$preset_cxx" != "$CXX"
2873 { echo "$as_me:$LINENO: 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.
2878 echo "$as_me: WARNING:
2880 By default, distutils will build C++ extension modules with \"$CXX\".
2881 If this is not intended, then set CXX on the configure command line.
2886 # checks for UNIX variants that set C preprocessor variables
2889 ac_cpp
='$CPP $CPPFLAGS'
2890 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2891 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2892 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2893 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2894 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2895 # On Suns, sometimes $CPP names a directory.
2896 if test -n "$CPP" && test -d "$CPP"; then
2899 if test -z "$CPP"; then
2900 if test "${ac_cv_prog_CPP+set}" = set; then
2901 echo $ECHO_N "(cached) $ECHO_C" >&6
2903 # Double quotes because CPP needs to be expanded
2904 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2907 for ac_c_preproc_warn_flag
in '' yes
2909 # Use a header file that comes with gcc, so configuring glibc
2910 # with a fresh cross-compiler works.
2911 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2912 # <limits.h> exists even on freestanding compilers.
2913 # On the NeXT, cc -E runs the code through the compiler's parser,
2914 # not just through cpp. "Syntax error" is here to catch this case.
2915 cat >conftest.
$ac_ext <<_ACEOF
2918 cat confdefs.h
>>conftest.
$ac_ext
2919 cat >>conftest.
$ac_ext <<_ACEOF
2920 /* end confdefs.h. */
2922 # include <limits.h>
2924 # include <assert.h>
2928 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2929 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2931 grep -v '^ *+' conftest.er1
>conftest.err
2933 cat conftest.err
>&5
2934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935 (exit $ac_status); } >/dev
/null
; then
2936 if test -s conftest.err
; then
2937 ac_cpp_err
=$ac_c_preproc_warn_flag
2938 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2945 if test -z "$ac_cpp_err"; then
2948 echo "$as_me: failed program was:" >&5
2949 sed 's/^/| /' conftest.
$ac_ext >&5
2951 # Broken: fails on valid input.
2954 rm -f conftest.err conftest.
$ac_ext
2956 # OK, works on sane cases. Now check whether non-existent headers
2957 # can be detected and how.
2958 cat >conftest.
$ac_ext <<_ACEOF
2961 cat confdefs.h
>>conftest.
$ac_ext
2962 cat >>conftest.
$ac_ext <<_ACEOF
2963 /* end confdefs.h. */
2964 #include <ac_nonexistent.h>
2966 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2967 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2969 grep -v '^ *+' conftest.er1
>conftest.err
2971 cat conftest.err
>&5
2972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973 (exit $ac_status); } >/dev
/null
; then
2974 if test -s conftest.err
; then
2975 ac_cpp_err
=$ac_c_preproc_warn_flag
2976 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2983 if test -z "$ac_cpp_err"; then
2984 # Broken: success on invalid input.
2987 echo "$as_me: failed program was:" >&5
2988 sed 's/^/| /' conftest.
$ac_ext >&5
2990 # Passes both tests.
2994 rm -f conftest.err conftest.
$ac_ext
2997 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2998 rm -f conftest.err conftest.
$ac_ext
2999 if $ac_preproc_ok; then
3011 echo "$as_me:$LINENO: result: $CPP" >&5
3012 echo "${ECHO_T}$CPP" >&6
3014 for ac_c_preproc_warn_flag
in '' yes
3016 # Use a header file that comes with gcc, so configuring glibc
3017 # with a fresh cross-compiler works.
3018 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3019 # <limits.h> exists even on freestanding compilers.
3020 # On the NeXT, cc -E runs the code through the compiler's parser,
3021 # not just through cpp. "Syntax error" is here to catch this case.
3022 cat >conftest.
$ac_ext <<_ACEOF
3025 cat confdefs.h
>>conftest.
$ac_ext
3026 cat >>conftest.
$ac_ext <<_ACEOF
3027 /* end confdefs.h. */
3029 # include <limits.h>
3031 # include <assert.h>
3035 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3036 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3038 grep -v '^ *+' conftest.er1
>conftest.err
3040 cat conftest.err
>&5
3041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042 (exit $ac_status); } >/dev
/null
; then
3043 if test -s conftest.err
; then
3044 ac_cpp_err
=$ac_c_preproc_warn_flag
3045 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3052 if test -z "$ac_cpp_err"; then
3055 echo "$as_me: failed program was:" >&5
3056 sed 's/^/| /' conftest.
$ac_ext >&5
3058 # Broken: fails on valid input.
3061 rm -f conftest.err conftest.
$ac_ext
3063 # OK, works on sane cases. Now check whether non-existent headers
3064 # can be detected and how.
3065 cat >conftest.
$ac_ext <<_ACEOF
3068 cat confdefs.h
>>conftest.
$ac_ext
3069 cat >>conftest.
$ac_ext <<_ACEOF
3070 /* end confdefs.h. */
3071 #include <ac_nonexistent.h>
3073 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3074 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3076 grep -v '^ *+' conftest.er1
>conftest.err
3078 cat conftest.err
>&5
3079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3080 (exit $ac_status); } >/dev
/null
; then
3081 if test -s conftest.err
; then
3082 ac_cpp_err
=$ac_c_preproc_warn_flag
3083 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3090 if test -z "$ac_cpp_err"; then
3091 # Broken: success on invalid input.
3094 echo "$as_me: failed program was:" >&5
3095 sed 's/^/| /' conftest.
$ac_ext >&5
3097 # Passes both tests.
3101 rm -f conftest.err conftest.
$ac_ext
3104 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3105 rm -f conftest.err conftest.
$ac_ext
3106 if $ac_preproc_ok; then
3109 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3110 See \`config.log' for more details." >&5
3111 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3112 See \`config.log' for more details." >&2;}
3113 { (exit 1); exit 1; }; }
3117 ac_cpp
='$CPP $CPPFLAGS'
3118 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3119 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3120 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3123 echo "$as_me:$LINENO: checking for egrep" >&5
3124 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3125 if test "${ac_cv_prog_egrep+set}" = set; then
3126 echo $ECHO_N "(cached) $ECHO_C" >&6
3128 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3129 then ac_cv_prog_egrep
='grep -E'
3130 else ac_cv_prog_egrep
='egrep'
3133 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3134 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3135 EGREP
=$ac_cv_prog_egrep
3139 echo "$as_me:$LINENO: checking for AIX" >&5
3140 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3141 cat >conftest.
$ac_ext <<_ACEOF
3144 cat confdefs.h
>>conftest.
$ac_ext
3145 cat >>conftest.
$ac_ext <<_ACEOF
3146 /* end confdefs.h. */
3152 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3153 $EGREP "yes" >/dev
/null
2>&1; then
3154 echo "$as_me:$LINENO: result: yes" >&5
3155 echo "${ECHO_T}yes" >&6
3156 cat >>confdefs.h
<<\_ACEOF
3157 #define _ALL_SOURCE 1
3161 echo "$as_me:$LINENO: result: no" >&5
3162 echo "${ECHO_T}no" >&6
3168 # Check for unsupported systems
3169 case $ac_sys_system/$ac_sys_release in
3171 echo This system \
($ac_sys_system/$ac_sys_release\
) is no longer supported.
3172 echo See README
for details.
3177 echo "$as_me:$LINENO: checking for --with-suffix" >&5
3178 echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6
3180 # Check whether --with-suffix or --without-suffix was given.
3181 if test "${with_suffix+set}" = set; then
3182 withval
="$with_suffix"
3187 *) EXEEXT
=$withval;;
3190 echo "$as_me:$LINENO: result: $EXEEXT" >&5
3191 echo "${ECHO_T}$EXEEXT" >&6
3193 # Test whether we're running on a non-case-sensitive system, in which
3194 # case we give a warning if no ext is given
3196 echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
3197 echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6
3198 if test ! -d CaseSensitiveTestDir
; then
3199 mkdir CaseSensitiveTestDir
3202 if test -d casesensitivetestdir
3204 echo "$as_me:$LINENO: result: yes" >&5
3205 echo "${ECHO_T}yes" >&6
3208 echo "$as_me:$LINENO: result: no" >&5
3209 echo "${ECHO_T}no" >&6
3212 rmdir CaseSensitiveTestDir
3217 gcc
) CC
="$CC -D_HAVE_BSDI";;
3221 case $ac_sys_system in
3224 cc|
*/cc
) CC
="$CC -Ae";;
3228 cc
) CC
="$CC -Wl,-Bexport";;
3231 # Some functions have a prototype only with that define, e.g. confstr
3233 cat >>confdefs.h
<<\_ACEOF
3234 #define __EXTENSIONS__ 1
3242 echo "$as_me:$LINENO: checking LIBRARY" >&5
3243 echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6
3244 if test -z "$LIBRARY"
3246 LIBRARY
='libpython$(VERSION).a'
3248 echo "$as_me:$LINENO: result: $LIBRARY" >&5
3249 echo "${ECHO_T}$LIBRARY" >&6
3251 # LDLIBRARY is the name of the library to link against (as opposed to the
3252 # name of the library into which to insert object files). BLDLIBRARY is also
3253 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
3254 # is blank as the main program is not linked directly against LDLIBRARY.
3255 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
3256 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
3257 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
3258 # DLLLIBRARY is the shared (i.e., DLL) library.
3260 # RUNSHARED is used to run shared python without installed libraries
3262 # INSTSONAME is the name of the shared library that will be use to install
3263 # on the system - some systems like version suffix, others don't
3270 LDLIBRARY
="$LIBRARY"
3271 BLDLIBRARY
='$(LDLIBRARY)'
3272 INSTSONAME
='$(LDLIBRARY)'
3277 # LINKCC is the command that links the python executable -- default is $(CC).
3278 # If CXX is set, and if it is needed to link a main function that was
3279 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
3280 # python might then depend on the C++ runtime
3281 # This is altered for AIX in order to build the export list before
3284 echo "$as_me:$LINENO: checking LINKCC" >&5
3285 echo $ECHO_N "checking LINKCC... $ECHO_C" >&6
3286 if test -z "$LINKCC"
3288 LINKCC
='$(PURIFY) $(MAINCC)'
3289 case $ac_sys_system in
3292 if test $ac_sys_release -ge 5 -o \
3293 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
3296 LINKCC
="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
3298 LINKCC
="$LINKCC -L/usr/lib/ia64l64";;
3301 echo "$as_me:$LINENO: result: $LINKCC" >&5
3302 echo "${ECHO_T}$LINKCC" >&6
3304 echo "$as_me:$LINENO: checking for --enable-shared" >&5
3305 echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6
3306 # Check whether --enable-shared or --disable-shared was given.
3307 if test "${enable_shared+set}" = set; then
3308 enableval
="$enable_shared"
3312 if test -z "$enable_shared"
3314 case $ac_sys_system in
3316 enable_shared
="yes";;
3318 enable_shared
="no";;
3321 echo "$as_me:$LINENO: result: $enable_shared" >&5
3322 echo "${ECHO_T}$enable_shared" >&6
3324 echo "$as_me:$LINENO: checking for --enable-profiling" >&5
3325 echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6
3326 # Check whether --enable-profiling or --disable-profiling was given.
3327 if test "${enable_profiling+set}" = set; then
3328 enableval
="$enable_profiling"
3331 if test "$cross_compiling" = yes; then
3332 ac_enable_profiling
="no"
3334 cat >conftest.
$ac_ext <<_ACEOF
3337 cat confdefs.h
>>conftest.
$ac_ext
3338 cat >>conftest.
$ac_ext <<_ACEOF
3339 /* end confdefs.h. */
3340 int main() { return 0; }
3342 rm -f conftest
$ac_exeext
3343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3344 (eval $ac_link) 2>&5
3346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352 (exit $ac_status); }; }; then
3353 ac_enable_profiling
="yes"
3355 echo "$as_me: program exited with status $ac_status" >&5
3356 echo "$as_me: failed program was:" >&5
3357 sed 's/^/| /' conftest.
$ac_ext >&5
3360 ac_enable_profiling
="no"
3362 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3366 echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5
3367 echo "${ECHO_T}$ac_enable_profiling" >&6
3369 case "$ac_enable_profiling" in
3371 BASECFLAGS
="-pg $BASECFLAGS"
3372 LDFLAGS
="-pg $LDFLAGS"
3376 echo "$as_me:$LINENO: checking LDLIBRARY" >&5
3377 echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6
3379 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
3380 # library that we build, but we do not want to link against it (we
3381 # will find it with a -framework option). For this reason there is an
3382 # extra variable BLDLIBRARY against which Python and the extension
3383 # modules are linked, BLDLIBRARY. This is normally the same as
3384 # LDLIBRARY, but empty for MacOSX framework builds.
3385 if test "$enable_framework"
3387 LDLIBRARY
='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
3388 RUNSHARED
=DYLD_FRAMEWORK_PATH
="`pwd`:$DYLD_FRAMEWORK_PATH"
3391 BLDLIBRARY
='$(LDLIBRARY)'
3394 # Other platforms follow
3395 if test $enable_shared = "yes"; then
3397 cat >>confdefs.h
<<\_ACEOF
3398 #define Py_ENABLE_SHARED 1
3401 case $ac_sys_system in
3403 LDLIBRARY
='libpython$(VERSION).so'
3406 LDLIBRARY
='libpython$(VERSION).dll.a'
3407 DLLLIBRARY
='libpython$(VERSION).dll'
3410 LDLIBRARY
='libpython$(VERSION).so'
3411 BLDLIBRARY
='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
3412 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
3413 INSTSONAME
="$LDLIBRARY".
$SOVERSION
3415 Linux
*|GNU
*|NetBSD
*|FreeBSD
*|DragonFly
*)
3416 LDLIBRARY
='libpython$(VERSION).so'
3417 BLDLIBRARY
='-L. -lpython$(VERSION)'
3418 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
3419 case $ac_sys_system in
3421 SOVERSION
=`echo $SOVERSION|cut -d "." -f 1`
3424 INSTSONAME
="$LDLIBRARY".
$SOVERSION
3429 LDLIBRARY
='libpython$(VERSION).so'
3432 LDLIBRARY
='libpython$(VERSION).sl'
3435 BLDLIBRARY
='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
3436 RUNSHARED
=SHLIB_PATH
=`pwd`:${SHLIB_PATH}
3439 LDLIBRARY
='libpython$(VERSION).so'
3440 BLDLIBRARY
='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
3441 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
3444 LDLIBRARY
='libpython$(VERSION).so'
3445 BLDLIBRARY
='-L. -lpython$(VERSION)'
3446 RUNSHARED
=DLL_PATH
=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
3449 else # shared is disabled
3450 case $ac_sys_system in
3452 BLDLIBRARY
='$(LIBRARY)'
3453 LDLIBRARY
='libpython$(VERSION).dll.a'
3458 echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
3459 echo "${ECHO_T}$LDLIBRARY" >&6
3461 if test -n "$ac_tool_prefix"; then
3462 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3463 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3464 echo "$as_me:$LINENO: checking for $ac_word" >&5
3465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3466 if test "${ac_cv_prog_RANLIB+set}" = set; then
3467 echo $ECHO_N "(cached) $ECHO_C" >&6
3469 if test -n "$RANLIB"; then
3470 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3472 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3476 test -z "$as_dir" && as_dir
=.
3477 for ac_exec_ext
in '' $ac_executable_extensions; do
3478 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3479 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3488 RANLIB
=$ac_cv_prog_RANLIB
3489 if test -n "$RANLIB"; then
3490 echo "$as_me:$LINENO: result: $RANLIB" >&5
3491 echo "${ECHO_T}$RANLIB" >&6
3493 echo "$as_me:$LINENO: result: no" >&5
3494 echo "${ECHO_T}no" >&6
3498 if test -z "$ac_cv_prog_RANLIB"; then
3499 ac_ct_RANLIB
=$RANLIB
3500 # Extract the first word of "ranlib", so it can be a program name with args.
3501 set dummy ranlib
; ac_word
=$2
3502 echo "$as_me:$LINENO: checking for $ac_word" >&5
3503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3504 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3505 echo $ECHO_N "(cached) $ECHO_C" >&6
3507 if test -n "$ac_ct_RANLIB"; then
3508 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3510 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3514 test -z "$as_dir" && as_dir
=.
3515 for ac_exec_ext
in '' $ac_executable_extensions; do
3516 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3517 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3524 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
3527 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3528 if test -n "$ac_ct_RANLIB"; then
3529 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3530 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3532 echo "$as_me:$LINENO: result: no" >&5
3533 echo "${ECHO_T}no" >&6
3536 RANLIB
=$ac_ct_RANLIB
3538 RANLIB
="$ac_cv_prog_RANLIB"
3542 for ac_prog
in ar aal
3544 # Extract the first word of "$ac_prog", so it can be a program name with args.
3545 set dummy
$ac_prog; ac_word
=$2
3546 echo "$as_me:$LINENO: checking for $ac_word" >&5
3547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3548 if test "${ac_cv_prog_AR+set}" = set; then
3549 echo $ECHO_N "(cached) $ECHO_C" >&6
3551 if test -n "$AR"; then
3552 ac_cv_prog_AR
="$AR" # Let the user override the test.
3554 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3558 test -z "$as_dir" && as_dir
=.
3559 for ac_exec_ext
in '' $ac_executable_extensions; do
3560 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3561 ac_cv_prog_AR
="$ac_prog"
3562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3571 if test -n "$AR"; then
3572 echo "$as_me:$LINENO: result: $AR" >&5
3573 echo "${ECHO_T}$AR" >&6
3575 echo "$as_me:$LINENO: result: no" >&5
3576 echo "${ECHO_T}no" >&6
3579 test -n "$AR" && break
3581 test -n "$AR" || AR
="ar"
3585 # Extract the first word of "svnversion", so it can be a program name with args.
3586 set dummy svnversion
; ac_word
=$2
3587 echo "$as_me:$LINENO: checking for $ac_word" >&5
3588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3589 if test "${ac_cv_prog_SVNVERSION+set}" = set; then
3590 echo $ECHO_N "(cached) $ECHO_C" >&6
3592 if test -n "$SVNVERSION"; then
3593 ac_cv_prog_SVNVERSION
="$SVNVERSION" # Let the user override the test.
3595 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3599 test -z "$as_dir" && as_dir
=.
3600 for ac_exec_ext
in '' $ac_executable_extensions; do
3601 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3602 ac_cv_prog_SVNVERSION
="found"
3603 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3609 test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION
="not-found"
3612 SVNVERSION
=$ac_cv_prog_SVNVERSION
3613 if test -n "$SVNVERSION"; then
3614 echo "$as_me:$LINENO: result: $SVNVERSION" >&5
3615 echo "${ECHO_T}$SVNVERSION" >&6
3617 echo "$as_me:$LINENO: result: no" >&5
3618 echo "${ECHO_T}no" >&6
3621 if test $SVNVERSION = found
3623 SVNVERSION
="svnversion \$(srcdir)"
3625 SVNVERSION
="echo exported"
3630 # install -d does not work on BSDI or HP-UX
3631 if test -z "$INSTALL"
3633 INSTALL
="${srcdir}/install-sh -c"
3637 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
3638 if test -f $ac_dir/install-sh
; then
3640 ac_install_sh
="$ac_aux_dir/install-sh -c"
3642 elif test -f $ac_dir/install.sh
; then
3644 ac_install_sh
="$ac_aux_dir/install.sh -c"
3646 elif test -f $ac_dir/shtool
; then
3648 ac_install_sh
="$ac_aux_dir/shtool install -c"
3652 if test -z "$ac_aux_dir"; then
3653 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
3654 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
3655 { (exit 1); exit 1; }; }
3657 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
3658 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
3659 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3661 # Find a good install program. We prefer a C program (faster),
3662 # so one script is as good as another. But avoid the broken or
3663 # incompatible versions:
3664 # SysV /etc/install, /usr/sbin/install
3665 # SunOS /usr/etc/install
3666 # IRIX /sbin/install
3668 # AmigaOS /C/install, which installs bootblocks on floppy discs
3669 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3670 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3671 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3672 # OS/2's system install, which has a completely different semantic
3673 # ./install, which can be erroneously created by make from ./install.sh.
3674 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3675 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3676 if test -z "$INSTALL"; then
3677 if test "${ac_cv_path_install+set}" = set; then
3678 echo $ECHO_N "(cached) $ECHO_C" >&6
3680 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3684 test -z "$as_dir" && as_dir
=.
3685 # Account for people who put trailing slashes in PATH elements.
3687 .
/ | .
// |
/cC
/* | \
3688 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3689 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
3692 # OSF1 and SCO ODT 3.0 have their own names for install.
3693 # Don't use installbsd from OSF since it installs stuff as root
3695 for ac_prog
in ginstall scoinst
install; do
3696 for ac_exec_ext
in '' $ac_executable_extensions; do
3697 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3698 if test $ac_prog = install &&
3699 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3700 # AIX install. It has an incompatible calling convention.
3702 elif test $ac_prog = install &&
3703 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3704 # program-specific install script used by HP pwplus--don't use.
3707 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3719 if test "${ac_cv_path_install+set}" = set; then
3720 INSTALL
=$ac_cv_path_install
3722 # As a last resort, use the slow shell script. We don't cache a
3723 # path for INSTALL within a source directory, because that will
3724 # break other packages using the cache if that directory is
3725 # removed, or if the path is relative.
3726 INSTALL
=$ac_install_sh
3729 echo "$as_me:$LINENO: result: $INSTALL" >&5
3730 echo "${ECHO_T}$INSTALL" >&6
3732 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3733 # It thinks the first close brace ends the variable substitution.
3734 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3736 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3738 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3741 # Not every filesystem supports hard links
3743 if test -z "$LN" ; then
3744 case $ac_sys_system in
3746 CYGWIN
*) LN
="ln -s";;
3747 atheos
*) LN
="ln -s";;
3752 # Check for --with-pydebug
3753 echo "$as_me:$LINENO: checking for --with-pydebug" >&5
3754 echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6
3756 # Check whether --with-pydebug or --without-pydebug was given.
3757 if test "${with_pydebug+set}" = set; then
3758 withval
="$with_pydebug"
3760 if test "$withval" != no
3763 cat >>confdefs.h
<<\_ACEOF
3767 echo "$as_me:$LINENO: result: yes" >&5
3768 echo "${ECHO_T}yes" >&6;
3770 else echo "$as_me:$LINENO: result: no" >&5
3771 echo "${ECHO_T}no" >&6; Py_DEBUG
='false'
3774 echo "$as_me:$LINENO: result: no" >&5
3775 echo "${ECHO_T}no" >&6
3778 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
3779 # merged with this chunk of code?
3781 # Optimizer/debugger flags
3782 # ------------------------
3783 # (The following bit of code is complicated enough - please keep things
3784 # indented properly. Just pretend you're editing Python code. ;-)
3786 # There are two parallel sets of case statements below, one that checks to
3787 # see if OPT was set and one that does BASECFLAGS setting based upon
3788 # compiler and platform. BASECFLAGS tweaks need to be made even if the
3791 # tweak OPT based on compiler and platform, only if the user didn't set
3792 # it on the command line
3798 if test "$CC" != 'g++' ; then
3799 STRICT_PROTO
="-Wstrict-prototypes"
3801 case $ac_cv_prog_cc_g in
3803 if test "$Py_DEBUG" = 'true' ; then
3804 # Optimization messes up debuggers, so turn it off for
3806 OPT
="-g -Wall $STRICT_PROTO"
3808 OPT
="-g -O3 -Wall $STRICT_PROTO"
3812 OPT
="-O3 -Wall $STRICT_PROTO"
3815 case $ac_sys_system in
3816 SCO_SV
*) OPT
="$OPT -m486 -DSCO5"
3826 # The current (beta) Monterey compiler dies with optimizations
3827 # XXX what is Monterey? Does it still die w/ -O? Can we get rid of this?
3828 case $ac_sys_system in
3837 # tweak BASECFLAGS based on compiler and platform
3840 # Python violates C99 rules, by casting between incompatible
3841 # pointer types. GCC may generate bad code as a result of that,
3842 # so use -fno-strict-aliasing if supported.
3843 echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5
3844 echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6
3846 CC
="$CC -fno-strict-aliasing"
3847 if test "$cross_compiling" = yes; then
3848 ac_cv_no_strict_aliasing_ok
=no
3850 cat >conftest.
$ac_ext <<_ACEOF
3853 cat confdefs.h
>>conftest.
$ac_ext
3854 cat >>conftest.
$ac_ext <<_ACEOF
3855 /* end confdefs.h. */
3856 int main() { return 0; }
3858 rm -f conftest
$ac_exeext
3859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3860 (eval $ac_link) 2>&5
3862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3863 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868 (exit $ac_status); }; }; then
3869 ac_cv_no_strict_aliasing_ok
=yes
3871 echo "$as_me: program exited with status $ac_status" >&5
3872 echo "$as_me: failed program was:" >&5
3873 sed 's/^/| /' conftest.
$ac_ext >&5
3876 ac_cv_no_strict_aliasing_ok
=no
3878 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3881 echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5
3882 echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6
3883 if test $ac_cv_no_strict_aliasing_ok = yes
3885 BASECFLAGS
="$BASECFLAGS -fno-strict-aliasing"
3887 case $ac_sys_system in
3889 BASECFLAGS
="$BASECFLAGS -m486 -DSCO5"
3891 # is there any other compiler on Darwin besides gcc?
3893 BASECFLAGS
="$BASECFLAGS -Wno-long-double -no-cpp-precomp -mno-fused-madd"
3894 if test "${enable_universalsdk}"; then
3895 BASECFLAGS
="-arch ppc -arch i386 -isysroot ${UNIVERSALSDK} ${BASECFLAGS}"
3900 BASECFLAGS
="$BASECFLAGS -mieee"
3906 case $ac_sys_system in
3907 OpenUNIX
*|UnixWare
*)
3908 BASECFLAGS
="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
3911 BASECFLAGS
="$BASECFLAGS -ieee -std"
3914 BASECFLAGS
="$BASECFLAGS -belf -Ki486 -DSCO5"
3920 if test "$Py_DEBUG" = 'true'; then
3926 if test "$ac_arch_flags"
3928 BASECFLAGS
="$BASECFLAGS $ac_arch_flags"
3931 # disable check for icc since it seems to pass, but generates a warning
3934 ac_cv_opt_olimit_ok
=no
3937 echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
3938 echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6
3939 if test "${ac_cv_opt_olimit_ok+set}" = set; then
3940 echo $ECHO_N "(cached) $ECHO_C" >&6
3943 CC
="$CC -OPT:Olimit=0"
3944 if test "$cross_compiling" = yes; then
3945 ac_cv_opt_olimit_ok
=no
3947 cat >conftest.
$ac_ext <<_ACEOF
3950 cat confdefs.h
>>conftest.
$ac_ext
3951 cat >>conftest.
$ac_ext <<_ACEOF
3952 /* end confdefs.h. */
3953 int main() { return 0; }
3955 rm -f conftest
$ac_exeext
3956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3957 (eval $ac_link) 2>&5
3959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3965 (exit $ac_status); }; }; then
3966 ac_cv_opt_olimit_ok
=yes
3968 echo "$as_me: program exited with status $ac_status" >&5
3969 echo "$as_me: failed program was:" >&5
3970 sed 's/^/| /' conftest.
$ac_ext >&5
3973 ac_cv_opt_olimit_ok
=no
3975 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3980 echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
3981 echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6
3982 if test $ac_cv_opt_olimit_ok = yes; then
3983 case $ac_sys_system in
3984 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
3985 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
3990 BASECFLAGS
="$BASECFLAGS -OPT:Olimit=0"
3994 echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
3995 echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6
3996 if test "${ac_cv_olimit_ok+set}" = set; then
3997 echo $ECHO_N "(cached) $ECHO_C" >&6
4000 CC
="$CC -Olimit 1500"
4001 if test "$cross_compiling" = yes; then
4004 cat >conftest.
$ac_ext <<_ACEOF
4007 cat confdefs.h
>>conftest.
$ac_ext
4008 cat >>conftest.
$ac_ext <<_ACEOF
4009 /* end confdefs.h. */
4010 int main() { return 0; }
4012 rm -f conftest
$ac_exeext
4013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4014 (eval $ac_link) 2>&5
4016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4017 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4022 (exit $ac_status); }; }; then
4025 echo "$as_me: program exited with status $ac_status" >&5
4026 echo "$as_me: failed program was:" >&5
4027 sed 's/^/| /' conftest.
$ac_ext >&5
4032 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4037 echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
4038 echo "${ECHO_T}$ac_cv_olimit_ok" >&6
4039 if test $ac_cv_olimit_ok = yes; then
4040 BASECFLAGS
="$BASECFLAGS -Olimit 1500"
4044 # On some compilers, pthreads are available without further options
4045 # (e.g. MacOS X). On some of these systems, the compiler will not
4046 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
4047 # So we have to see first whether pthreads are available without
4048 # options before we can check whether -Kpthread improves anything.
4049 echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
4050 echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6
4051 if test "${ac_cv_pthread_is_default+set}" = set; then
4052 echo $ECHO_N "(cached) $ECHO_C" >&6
4054 if test "$cross_compiling" = yes; then
4055 ac_cv_pthread_is_default
=no
4057 cat >conftest.
$ac_ext <<_ACEOF
4060 cat confdefs.h
>>conftest.
$ac_ext
4061 cat >>conftest.
$ac_ext <<_ACEOF
4062 /* end confdefs.h. */
4064 #include <pthread.h>
4066 void* routine(void* p){return NULL;}
4070 if(pthread_create(&p,NULL,routine,NULL)!=0)
4072 (void)pthread_detach(p);
4077 rm -f conftest
$ac_exeext
4078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4079 (eval $ac_link) 2>&5
4081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4087 (exit $ac_status); }; }; then
4089 ac_cv_pthread_is_default
=yes
4094 echo "$as_me: program exited with status $ac_status" >&5
4095 echo "$as_me: failed program was:" >&5
4096 sed 's/^/| /' conftest.
$ac_ext >&5
4099 ac_cv_pthread_is_default
=no
4101 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4106 echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
4107 echo "${ECHO_T}$ac_cv_pthread_is_default" >&6
4110 if test $ac_cv_pthread_is_default = yes
4114 # -Kpthread, if available, provides the right #defines
4115 # and linker options to make pthread_create available
4116 # Some compilers won't report that they do not support -Kpthread,
4117 # so we need to run a program to see whether it really made the
4118 # function available.
4119 echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
4120 echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6
4121 if test "${ac_cv_kpthread+set}" = set; then
4122 echo $ECHO_N "(cached) $ECHO_C" >&6
4126 if test "$cross_compiling" = yes; then
4129 cat >conftest.
$ac_ext <<_ACEOF
4132 cat confdefs.h
>>conftest.
$ac_ext
4133 cat >>conftest.
$ac_ext <<_ACEOF
4134 /* end confdefs.h. */
4136 #include <pthread.h>
4138 void* routine(void* p){return NULL;}
4142 if(pthread_create(&p,NULL,routine,NULL)!=0)
4144 (void)pthread_detach(p);
4149 rm -f conftest
$ac_exeext
4150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4151 (eval $ac_link) 2>&5
4153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4159 (exit $ac_status); }; }; then
4162 echo "$as_me: program exited with status $ac_status" >&5
4163 echo "$as_me: failed program was:" >&5
4164 sed 's/^/| /' conftest.
$ac_ext >&5
4169 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4174 echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
4175 echo "${ECHO_T}$ac_cv_kpthread" >&6
4178 if test $ac_cv_kpthread = no
-a $ac_cv_pthread_is_default = no
4180 # -Kthread, if available, provides the right #defines
4181 # and linker options to make pthread_create available
4182 # Some compilers won't report that they do not support -Kthread,
4183 # so we need to run a program to see whether it really made the
4184 # function available.
4185 echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
4186 echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6
4187 if test "${ac_cv_kthread+set}" = set; then
4188 echo $ECHO_N "(cached) $ECHO_C" >&6
4192 if test "$cross_compiling" = yes; then
4195 cat >conftest.
$ac_ext <<_ACEOF
4198 cat confdefs.h
>>conftest.
$ac_ext
4199 cat >>conftest.
$ac_ext <<_ACEOF
4200 /* end confdefs.h. */
4202 #include <pthread.h>
4204 void* routine(void* p){return NULL;}
4208 if(pthread_create(&p,NULL,routine,NULL)!=0)
4210 (void)pthread_detach(p);
4215 rm -f conftest
$ac_exeext
4216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4217 (eval $ac_link) 2>&5
4219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225 (exit $ac_status); }; }; then
4228 echo "$as_me: program exited with status $ac_status" >&5
4229 echo "$as_me: failed program was:" >&5
4230 sed 's/^/| /' conftest.
$ac_ext >&5
4235 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4240 echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
4241 echo "${ECHO_T}$ac_cv_kthread" >&6
4244 if test $ac_cv_kthread = no
-a $ac_cv_pthread_is_default = no
4246 # -pthread, if available, provides the right #defines
4247 # and linker options to make pthread_create available
4248 # Some compilers won't report that they do not support -pthread,
4249 # so we need to run a program to see whether it really made the
4250 # function available.
4251 echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
4252 echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6
4253 if test "${ac_cv_thread+set}" = set; then
4254 echo $ECHO_N "(cached) $ECHO_C" >&6
4258 if test "$cross_compiling" = yes; then
4261 cat >conftest.
$ac_ext <<_ACEOF
4264 cat confdefs.h
>>conftest.
$ac_ext
4265 cat >>conftest.
$ac_ext <<_ACEOF
4266 /* end confdefs.h. */
4268 #include <pthread.h>
4270 void* routine(void* p){return NULL;}
4274 if(pthread_create(&p,NULL,routine,NULL)!=0)
4276 (void)pthread_detach(p);
4281 rm -f conftest
$ac_exeext
4282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4283 (eval $ac_link) 2>&5
4285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291 (exit $ac_status); }; }; then
4294 echo "$as_me: program exited with status $ac_status" >&5
4295 echo "$as_me: failed program was:" >&5
4296 sed 's/^/| /' conftest.
$ac_ext >&5
4301 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4306 echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
4307 echo "${ECHO_T}$ac_cv_pthread" >&6
4310 # If we have set a CC compiler flag for thread support then
4311 # check if it works for CXX, too.
4315 echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5
4316 echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6
4319 if test "$ac_cv_kpthread" = "yes"
4321 CXX
="$CXX -Kpthread"
4322 ac_cv_cxx_thread
=yes
4323 elif test "$ac_cv_kthread" = "yes"
4326 ac_cv_cxx_thread
=yes
4327 elif test "$ac_cv_pthread" = "yes"
4330 ac_cv_cxx_thread
=yes
4333 if test $ac_cv_cxx_thread = yes
4335 echo 'void foo();int main(){foo();}void foo(){}' > conftest.
$ac_ext
4336 $CXX -c conftest.
$ac_ext 2>&5
4337 if $CXX -o conftest
$ac_exeext conftest.
$ac_objext 2>&5 \
4338 && test -s conftest
$ac_exeext && .
/conftest
$ac_exeext
4340 ac_cv_cxx_thread
=yes
4346 echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
4347 echo "${ECHO_T}$ac_cv_cxx_thread" >&6
4352 # checks for header files
4353 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4354 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4355 if test "${ac_cv_header_stdc+set}" = set; then
4356 echo $ECHO_N "(cached) $ECHO_C" >&6
4358 cat >conftest.
$ac_ext <<_ACEOF
4361 cat confdefs.h
>>conftest.
$ac_ext
4362 cat >>conftest.
$ac_ext <<_ACEOF
4363 /* end confdefs.h. */
4377 rm -f conftest.
$ac_objext
4378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4379 (eval $ac_compile) 2>conftest.er1
4381 grep -v '^ *+' conftest.er1
>conftest.err
4383 cat conftest.err
>&5
4384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4385 (exit $ac_status); } &&
4386 { ac_try
='test -z "$ac_c_werror_flag"
4387 || test ! -s conftest.err'
4388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4392 (exit $ac_status); }; } &&
4393 { ac_try
='test -s conftest.$ac_objext'
4394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4398 (exit $ac_status); }; }; then
4399 ac_cv_header_stdc
=yes
4401 echo "$as_me: failed program was:" >&5
4402 sed 's/^/| /' conftest.
$ac_ext >&5
4404 ac_cv_header_stdc
=no
4406 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4408 if test $ac_cv_header_stdc = yes; then
4409 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4410 cat >conftest.
$ac_ext <<_ACEOF
4413 cat confdefs.h
>>conftest.
$ac_ext
4414 cat >>conftest.
$ac_ext <<_ACEOF
4415 /* end confdefs.h. */
4419 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4420 $EGREP "memchr" >/dev
/null
2>&1; then
4423 ac_cv_header_stdc
=no
4429 if test $ac_cv_header_stdc = yes; then
4430 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4431 cat >conftest.
$ac_ext <<_ACEOF
4434 cat confdefs.h
>>conftest.
$ac_ext
4435 cat >>conftest.
$ac_ext <<_ACEOF
4436 /* end confdefs.h. */
4440 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4441 $EGREP "free" >/dev
/null
2>&1; then
4444 ac_cv_header_stdc
=no
4450 if test $ac_cv_header_stdc = yes; then
4451 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4452 if test "$cross_compiling" = yes; then
4455 cat >conftest.
$ac_ext <<_ACEOF
4458 cat confdefs.h
>>conftest.
$ac_ext
4459 cat >>conftest.
$ac_ext <<_ACEOF
4460 /* end confdefs.h. */
4462 #if ((' ' & 0x0FF) == 0x020)
4463 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4464 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4466 # define ISLOWER(c) \
4467 (('a' <= (c) && (c) <= 'i') \
4468 || ('j' <= (c) && (c) <= 'r') \
4469 || ('s' <= (c) && (c) <= 'z'))
4470 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4473 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4478 for (i = 0; i < 256; i++)
4479 if (XOR (islower (i), ISLOWER (i))
4480 || toupper (i) != TOUPPER (i))
4485 rm -f conftest
$ac_exeext
4486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4487 (eval $ac_link) 2>&5
4489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495 (exit $ac_status); }; }; then
4498 echo "$as_me: program exited with status $ac_status" >&5
4499 echo "$as_me: failed program was:" >&5
4500 sed 's/^/| /' conftest.
$ac_ext >&5
4503 ac_cv_header_stdc
=no
4505 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4509 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4510 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4511 if test $ac_cv_header_stdc = yes; then
4513 cat >>confdefs.h
<<\_ACEOF
4514 #define STDC_HEADERS 1
4519 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4529 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4530 inttypes.h stdint.h unistd.h
4532 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4533 echo "$as_me:$LINENO: checking for $ac_header" >&5
4534 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4535 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4536 echo $ECHO_N "(cached) $ECHO_C" >&6
4538 cat >conftest.
$ac_ext <<_ACEOF
4541 cat confdefs.h
>>conftest.
$ac_ext
4542 cat >>conftest.
$ac_ext <<_ACEOF
4543 /* end confdefs.h. */
4544 $ac_includes_default
4546 #include <$ac_header>
4548 rm -f conftest.
$ac_objext
4549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4550 (eval $ac_compile) 2>conftest.er1
4552 grep -v '^ *+' conftest.er1
>conftest.err
4554 cat conftest.err
>&5
4555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556 (exit $ac_status); } &&
4557 { ac_try
='test -z "$ac_c_werror_flag"
4558 || test ! -s conftest.err'
4559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563 (exit $ac_status); }; } &&
4564 { ac_try
='test -s conftest.$ac_objext'
4565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4569 (exit $ac_status); }; }; then
4570 eval "$as_ac_Header=yes"
4572 echo "$as_me: failed program was:" >&5
4573 sed 's/^/| /' conftest.
$ac_ext >&5
4575 eval "$as_ac_Header=no"
4577 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4579 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4580 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4581 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4582 cat >>confdefs.h
<<_ACEOF
4583 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4640 for ac_header
in asm
/types.h conio.h curses.h direct.h dlfcn.h errno.h \
4642 io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \
4643 shadow.h signal.h stdint.h stropts.h termios.h thread.h \
4645 sys
/audioio.h sys
/bsdtty.h sys
/file.h sys
/loadavg.h sys
/lock.h sys
/mkdev.h \
4647 sys
/param.h sys
/poll.h sys
/select.h sys
/socket.h sys
/statvfs.h sys
/stat.h \
4649 sys
/times.h sys
/types.h sys
/un.h sys
/utsname.h sys
/wait.h pty.h libutil.h \
4650 sys
/resource.h netpacket
/packet.h sysexits.h bluetooth.h \
4651 bluetooth
/bluetooth.h
4653 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4654 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4655 echo "$as_me:$LINENO: checking for $ac_header" >&5
4656 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4657 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4658 echo $ECHO_N "(cached) $ECHO_C" >&6
4660 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4661 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4663 # Is the header compilable?
4664 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4665 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4666 cat >conftest.
$ac_ext <<_ACEOF
4669 cat confdefs.h
>>conftest.
$ac_ext
4670 cat >>conftest.
$ac_ext <<_ACEOF
4671 /* end confdefs.h. */
4672 $ac_includes_default
4673 #include <$ac_header>
4675 rm -f conftest.
$ac_objext
4676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4677 (eval $ac_compile) 2>conftest.er1
4679 grep -v '^ *+' conftest.er1
>conftest.err
4681 cat conftest.err
>&5
4682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4683 (exit $ac_status); } &&
4684 { ac_try
='test -z "$ac_c_werror_flag"
4685 || test ! -s conftest.err'
4686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690 (exit $ac_status); }; } &&
4691 { ac_try
='test -s conftest.$ac_objext'
4692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4696 (exit $ac_status); }; }; then
4697 ac_header_compiler
=yes
4699 echo "$as_me: failed program was:" >&5
4700 sed 's/^/| /' conftest.
$ac_ext >&5
4702 ac_header_compiler
=no
4704 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4705 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4706 echo "${ECHO_T}$ac_header_compiler" >&6
4708 # Is the header present?
4709 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4710 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4711 cat >conftest.
$ac_ext <<_ACEOF
4714 cat confdefs.h
>>conftest.
$ac_ext
4715 cat >>conftest.
$ac_ext <<_ACEOF
4716 /* end confdefs.h. */
4717 #include <$ac_header>
4719 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4720 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4722 grep -v '^ *+' conftest.er1
>conftest.err
4724 cat conftest.err
>&5
4725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4726 (exit $ac_status); } >/dev
/null
; then
4727 if test -s conftest.err
; then
4728 ac_cpp_err
=$ac_c_preproc_warn_flag
4729 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4736 if test -z "$ac_cpp_err"; then
4737 ac_header_preproc
=yes
4739 echo "$as_me: failed program was:" >&5
4740 sed 's/^/| /' conftest.
$ac_ext >&5
4742 ac_header_preproc
=no
4744 rm -f conftest.err conftest.
$ac_ext
4745 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4746 echo "${ECHO_T}$ac_header_preproc" >&6
4748 # So? What about this header?
4749 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4751 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4752 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4753 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4754 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4755 ac_header_preproc
=yes
4758 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4759 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4760 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4761 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4762 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4763 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4764 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4765 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4766 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4767 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4768 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4769 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4772 ## ------------------------------------------------ ##
4773 ## Report this to http://www.python.org/python-bugs ##
4774 ## ------------------------------------------------ ##
4777 sed "s/^/$as_me: WARNING: /" >&2
4780 echo "$as_me:$LINENO: checking for $ac_header" >&5
4781 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4782 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4783 echo $ECHO_N "(cached) $ECHO_C" >&6
4785 eval "$as_ac_Header=\$ac_header_preproc"
4787 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4788 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4791 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4792 cat >>confdefs.h
<<_ACEOF
4793 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4806 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
4807 as_ac_Header
=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4808 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4809 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
4810 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4811 echo $ECHO_N "(cached) $ECHO_C" >&6
4813 cat >conftest.
$ac_ext <<_ACEOF
4816 cat confdefs.h
>>conftest.
$ac_ext
4817 cat >>conftest.
$ac_ext <<_ACEOF
4818 /* end confdefs.h. */
4819 #include <sys/types.h>
4831 rm -f conftest.
$ac_objext
4832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4833 (eval $ac_compile) 2>conftest.er1
4835 grep -v '^ *+' conftest.er1
>conftest.err
4837 cat conftest.err
>&5
4838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4839 (exit $ac_status); } &&
4840 { ac_try
='test -z "$ac_c_werror_flag"
4841 || test ! -s conftest.err'
4842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4846 (exit $ac_status); }; } &&
4847 { ac_try
='test -s conftest.$ac_objext'
4848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852 (exit $ac_status); }; }; then
4853 eval "$as_ac_Header=yes"
4855 echo "$as_me: failed program was:" >&5
4856 sed 's/^/| /' conftest.
$ac_ext >&5
4858 eval "$as_ac_Header=no"
4860 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4862 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4863 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4864 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4865 cat >>confdefs.h
<<_ACEOF
4866 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4869 ac_header_dirent
=$ac_hdr; break
4873 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4874 if test $ac_header_dirent = dirent.h
; then
4875 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4876 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4877 if test "${ac_cv_search_opendir+set}" = set; then
4878 echo $ECHO_N "(cached) $ECHO_C" >&6
4880 ac_func_search_save_LIBS
=$LIBS
4881 ac_cv_search_opendir
=no
4882 cat >conftest.
$ac_ext <<_ACEOF
4885 cat confdefs.h
>>conftest.
$ac_ext
4886 cat >>conftest.
$ac_ext <<_ACEOF
4887 /* end confdefs.h. */
4889 /* Override any gcc2 internal prototype to avoid an error. */
4893 /* We use char because int might match the return type of a gcc2
4894 builtin and then its argument prototype would still apply. */
4904 rm -f conftest.
$ac_objext conftest
$ac_exeext
4905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4906 (eval $ac_link) 2>conftest.er1
4908 grep -v '^ *+' conftest.er1
>conftest.err
4910 cat conftest.err
>&5
4911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4912 (exit $ac_status); } &&
4913 { ac_try
='test -z "$ac_c_werror_flag"
4914 || test ! -s conftest.err'
4915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4919 (exit $ac_status); }; } &&
4920 { ac_try
='test -s conftest$ac_exeext'
4921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4925 (exit $ac_status); }; }; then
4926 ac_cv_search_opendir
="none required"
4928 echo "$as_me: failed program was:" >&5
4929 sed 's/^/| /' conftest.
$ac_ext >&5
4932 rm -f conftest.err conftest.
$ac_objext \
4933 conftest
$ac_exeext conftest.
$ac_ext
4934 if test "$ac_cv_search_opendir" = no
; then
4935 for ac_lib
in dir
; do
4936 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4937 cat >conftest.
$ac_ext <<_ACEOF
4940 cat confdefs.h
>>conftest.
$ac_ext
4941 cat >>conftest.
$ac_ext <<_ACEOF
4942 /* end confdefs.h. */
4944 /* Override any gcc2 internal prototype to avoid an error. */
4948 /* We use char because int might match the return type of a gcc2
4949 builtin and then its argument prototype would still apply. */
4959 rm -f conftest.
$ac_objext conftest
$ac_exeext
4960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4961 (eval $ac_link) 2>conftest.er1
4963 grep -v '^ *+' conftest.er1
>conftest.err
4965 cat conftest.err
>&5
4966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967 (exit $ac_status); } &&
4968 { ac_try
='test -z "$ac_c_werror_flag"
4969 || test ! -s conftest.err'
4970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4974 (exit $ac_status); }; } &&
4975 { ac_try
='test -s conftest$ac_exeext'
4976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4980 (exit $ac_status); }; }; then
4981 ac_cv_search_opendir
="-l$ac_lib"
4984 echo "$as_me: failed program was:" >&5
4985 sed 's/^/| /' conftest.
$ac_ext >&5
4988 rm -f conftest.err conftest.
$ac_objext \
4989 conftest
$ac_exeext conftest.
$ac_ext
4992 LIBS
=$ac_func_search_save_LIBS
4994 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4995 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4996 if test "$ac_cv_search_opendir" != no
; then
4997 test "$ac_cv_search_opendir" = "none required" || LIBS
="$ac_cv_search_opendir $LIBS"
5002 echo "$as_me:$LINENO: checking for library containing opendir" >&5
5003 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5004 if test "${ac_cv_search_opendir+set}" = set; then
5005 echo $ECHO_N "(cached) $ECHO_C" >&6
5007 ac_func_search_save_LIBS
=$LIBS
5008 ac_cv_search_opendir
=no
5009 cat >conftest.
$ac_ext <<_ACEOF
5012 cat confdefs.h
>>conftest.
$ac_ext
5013 cat >>conftest.
$ac_ext <<_ACEOF
5014 /* end confdefs.h. */
5016 /* Override any gcc2 internal prototype to avoid an error. */
5020 /* We use char because int might match the return type of a gcc2
5021 builtin and then its argument prototype would still apply. */
5031 rm -f conftest.
$ac_objext conftest
$ac_exeext
5032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5033 (eval $ac_link) 2>conftest.er1
5035 grep -v '^ *+' conftest.er1
>conftest.err
5037 cat conftest.err
>&5
5038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5039 (exit $ac_status); } &&
5040 { ac_try
='test -z "$ac_c_werror_flag"
5041 || test ! -s conftest.err'
5042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5046 (exit $ac_status); }; } &&
5047 { ac_try
='test -s conftest$ac_exeext'
5048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5052 (exit $ac_status); }; }; then
5053 ac_cv_search_opendir
="none required"
5055 echo "$as_me: failed program was:" >&5
5056 sed 's/^/| /' conftest.
$ac_ext >&5
5059 rm -f conftest.err conftest.
$ac_objext \
5060 conftest
$ac_exeext conftest.
$ac_ext
5061 if test "$ac_cv_search_opendir" = no
; then
5063 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5064 cat >conftest.
$ac_ext <<_ACEOF
5067 cat confdefs.h
>>conftest.
$ac_ext
5068 cat >>conftest.
$ac_ext <<_ACEOF
5069 /* end confdefs.h. */
5071 /* Override any gcc2 internal prototype to avoid an error. */
5075 /* We use char because int might match the return type of a gcc2
5076 builtin and then its argument prototype would still apply. */
5086 rm -f conftest.
$ac_objext conftest
$ac_exeext
5087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5088 (eval $ac_link) 2>conftest.er1
5090 grep -v '^ *+' conftest.er1
>conftest.err
5092 cat conftest.err
>&5
5093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5094 (exit $ac_status); } &&
5095 { ac_try
='test -z "$ac_c_werror_flag"
5096 || test ! -s conftest.err'
5097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5101 (exit $ac_status); }; } &&
5102 { ac_try
='test -s conftest$ac_exeext'
5103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5107 (exit $ac_status); }; }; then
5108 ac_cv_search_opendir
="-l$ac_lib"
5111 echo "$as_me: failed program was:" >&5
5112 sed 's/^/| /' conftest.
$ac_ext >&5
5115 rm -f conftest.err conftest.
$ac_objext \
5116 conftest
$ac_exeext conftest.
$ac_ext
5119 LIBS
=$ac_func_search_save_LIBS
5121 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5122 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5123 if test "$ac_cv_search_opendir" != no
; then
5124 test "$ac_cv_search_opendir" = "none required" || LIBS
="$ac_cv_search_opendir $LIBS"
5130 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
5131 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
5132 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
5133 echo $ECHO_N "(cached) $ECHO_C" >&6
5135 cat >conftest.
$ac_ext <<_ACEOF
5138 cat confdefs.h
>>conftest.
$ac_ext
5139 cat >>conftest.
$ac_ext <<_ACEOF
5140 /* end confdefs.h. */
5141 #include <sys/types.h>
5145 return makedev(0, 0);
5150 rm -f conftest.
$ac_objext conftest
$ac_exeext
5151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5152 (eval $ac_link) 2>conftest.er1
5154 grep -v '^ *+' conftest.er1
>conftest.err
5156 cat conftest.err
>&5
5157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5158 (exit $ac_status); } &&
5159 { ac_try
='test -z "$ac_c_werror_flag"
5160 || test ! -s conftest.err'
5161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5165 (exit $ac_status); }; } &&
5166 { ac_try
='test -s conftest$ac_exeext'
5167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5171 (exit $ac_status); }; }; then
5172 ac_cv_header_sys_types_h_makedev
=yes
5174 echo "$as_me: failed program was:" >&5
5175 sed 's/^/| /' conftest.
$ac_ext >&5
5177 ac_cv_header_sys_types_h_makedev
=no
5179 rm -f conftest.err conftest.
$ac_objext \
5180 conftest
$ac_exeext conftest.
$ac_ext
5183 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
5184 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
5186 if test $ac_cv_header_sys_types_h_makedev = no
; then
5187 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5188 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
5189 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
5190 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5191 echo $ECHO_N "(cached) $ECHO_C" >&6
5193 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
5194 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
5196 # Is the header compilable?
5197 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
5198 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
5199 cat >conftest.
$ac_ext <<_ACEOF
5202 cat confdefs.h
>>conftest.
$ac_ext
5203 cat >>conftest.
$ac_ext <<_ACEOF
5204 /* end confdefs.h. */
5205 $ac_includes_default
5206 #include <sys/mkdev.h>
5208 rm -f conftest.
$ac_objext
5209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5210 (eval $ac_compile) 2>conftest.er1
5212 grep -v '^ *+' conftest.er1
>conftest.err
5214 cat conftest.err
>&5
5215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5216 (exit $ac_status); } &&
5217 { ac_try
='test -z "$ac_c_werror_flag"
5218 || test ! -s conftest.err'
5219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5223 (exit $ac_status); }; } &&
5224 { ac_try
='test -s conftest.$ac_objext'
5225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5229 (exit $ac_status); }; }; then
5230 ac_header_compiler
=yes
5232 echo "$as_me: failed program was:" >&5
5233 sed 's/^/| /' conftest.
$ac_ext >&5
5235 ac_header_compiler
=no
5237 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5238 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5239 echo "${ECHO_T}$ac_header_compiler" >&6
5241 # Is the header present?
5242 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
5243 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
5244 cat >conftest.
$ac_ext <<_ACEOF
5247 cat confdefs.h
>>conftest.
$ac_ext
5248 cat >>conftest.
$ac_ext <<_ACEOF
5249 /* end confdefs.h. */
5250 #include <sys/mkdev.h>
5252 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5253 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5255 grep -v '^ *+' conftest.er1
>conftest.err
5257 cat conftest.err
>&5
5258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5259 (exit $ac_status); } >/dev
/null
; then
5260 if test -s conftest.err
; then
5261 ac_cpp_err
=$ac_c_preproc_warn_flag
5262 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5269 if test -z "$ac_cpp_err"; then
5270 ac_header_preproc
=yes
5272 echo "$as_me: failed program was:" >&5
5273 sed 's/^/| /' conftest.
$ac_ext >&5
5275 ac_header_preproc
=no
5277 rm -f conftest.err conftest.
$ac_ext
5278 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5279 echo "${ECHO_T}$ac_header_preproc" >&6
5281 # So? What about this header?
5282 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5284 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
5285 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5286 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
5287 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
5288 ac_header_preproc
=yes
5291 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
5292 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
5293 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
5294 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
5295 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
5296 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
5297 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
5298 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
5299 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
5300 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
5301 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
5302 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
5305 ## ------------------------------------------------ ##
5306 ## Report this to http://www.python.org/python-bugs ##
5307 ## ------------------------------------------------ ##
5310 sed "s/^/$as_me: WARNING: /" >&2
5313 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
5314 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
5315 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5316 echo $ECHO_N "(cached) $ECHO_C" >&6
5318 ac_cv_header_sys_mkdev_h
=$ac_header_preproc
5320 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
5321 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
5324 if test $ac_cv_header_sys_mkdev_h = yes; then
5326 cat >>confdefs.h
<<\_ACEOF
5327 #define MAJOR_IN_MKDEV 1
5334 if test $ac_cv_header_sys_mkdev_h = no
; then
5335 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5336 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
5337 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
5338 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5339 echo $ECHO_N "(cached) $ECHO_C" >&6
5341 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
5342 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
5344 # Is the header compilable?
5345 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
5346 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
5347 cat >conftest.
$ac_ext <<_ACEOF
5350 cat confdefs.h
>>conftest.
$ac_ext
5351 cat >>conftest.
$ac_ext <<_ACEOF
5352 /* end confdefs.h. */
5353 $ac_includes_default
5354 #include <sys/sysmacros.h>
5356 rm -f conftest.
$ac_objext
5357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5358 (eval $ac_compile) 2>conftest.er1
5360 grep -v '^ *+' conftest.er1
>conftest.err
5362 cat conftest.err
>&5
5363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5364 (exit $ac_status); } &&
5365 { ac_try
='test -z "$ac_c_werror_flag"
5366 || test ! -s conftest.err'
5367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5371 (exit $ac_status); }; } &&
5372 { ac_try
='test -s conftest.$ac_objext'
5373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5377 (exit $ac_status); }; }; then
5378 ac_header_compiler
=yes
5380 echo "$as_me: failed program was:" >&5
5381 sed 's/^/| /' conftest.
$ac_ext >&5
5383 ac_header_compiler
=no
5385 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5386 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5387 echo "${ECHO_T}$ac_header_compiler" >&6
5389 # Is the header present?
5390 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
5391 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
5392 cat >conftest.
$ac_ext <<_ACEOF
5395 cat confdefs.h
>>conftest.
$ac_ext
5396 cat >>conftest.
$ac_ext <<_ACEOF
5397 /* end confdefs.h. */
5398 #include <sys/sysmacros.h>
5400 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5401 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5403 grep -v '^ *+' conftest.er1
>conftest.err
5405 cat conftest.err
>&5
5406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5407 (exit $ac_status); } >/dev
/null
; then
5408 if test -s conftest.err
; then
5409 ac_cpp_err
=$ac_c_preproc_warn_flag
5410 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5417 if test -z "$ac_cpp_err"; then
5418 ac_header_preproc
=yes
5420 echo "$as_me: failed program was:" >&5
5421 sed 's/^/| /' conftest.
$ac_ext >&5
5423 ac_header_preproc
=no
5425 rm -f conftest.err conftest.
$ac_ext
5426 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5427 echo "${ECHO_T}$ac_header_preproc" >&6
5429 # So? What about this header?
5430 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5432 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
5433 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5434 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
5435 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
5436 ac_header_preproc
=yes
5439 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
5440 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
5441 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
5442 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
5443 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
5444 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
5445 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
5446 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
5447 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
5448 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
5449 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
5450 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
5453 ## ------------------------------------------------ ##
5454 ## Report this to http://www.python.org/python-bugs ##
5455 ## ------------------------------------------------ ##
5458 sed "s/^/$as_me: WARNING: /" >&2
5461 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
5462 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
5463 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5464 echo $ECHO_N "(cached) $ECHO_C" >&6
5466 ac_cv_header_sys_sysmacros_h
=$ac_header_preproc
5468 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
5469 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
5472 if test $ac_cv_header_sys_sysmacros_h = yes; then
5474 cat >>confdefs.h
<<\_ACEOF
5475 #define MAJOR_IN_SYSMACROS 1
5485 # On Solaris, term.h requires curses.h
5487 for ac_header
in term.h
5489 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5490 echo "$as_me:$LINENO: checking for $ac_header" >&5
5491 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5492 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5493 echo $ECHO_N "(cached) $ECHO_C" >&6
5495 cat >conftest.
$ac_ext <<_ACEOF
5498 cat confdefs.h
>>conftest.
$ac_ext
5499 cat >>conftest.
$ac_ext <<_ACEOF
5500 /* end confdefs.h. */
5502 #ifdef HAVE_CURSES_H
5507 #include <$ac_header>
5509 rm -f conftest.
$ac_objext
5510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5511 (eval $ac_compile) 2>conftest.er1
5513 grep -v '^ *+' conftest.er1
>conftest.err
5515 cat conftest.err
>&5
5516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5517 (exit $ac_status); } &&
5518 { ac_try
='test -z "$ac_c_werror_flag"
5519 || test ! -s conftest.err'
5520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524 (exit $ac_status); }; } &&
5525 { ac_try
='test -s conftest.$ac_objext'
5526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5530 (exit $ac_status); }; }; then
5531 eval "$as_ac_Header=yes"
5533 echo "$as_me: failed program was:" >&5
5534 sed 's/^/| /' conftest.
$ac_ext >&5
5536 eval "$as_ac_Header=no"
5538 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5540 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5541 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5542 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5543 cat >>confdefs.h
<<_ACEOF
5544 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5552 # On Linux, netlink.h requires asm/types.h
5554 for ac_header
in linux
/netlink.h
5556 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5557 echo "$as_me:$LINENO: checking for $ac_header" >&5
5558 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5559 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5560 echo $ECHO_N "(cached) $ECHO_C" >&6
5562 cat >conftest.
$ac_ext <<_ACEOF
5565 cat confdefs.h
>>conftest.
$ac_ext
5566 cat >>conftest.
$ac_ext <<_ACEOF
5567 /* end confdefs.h. */
5569 #ifdef HAVE_ASM_TYPES_H
5570 #include <asm/types.h>
5572 #ifdef HAVE_SYS_SOCKET_H
5573 #include <sys/socket.h>
5577 #include <$ac_header>
5579 rm -f conftest.
$ac_objext
5580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5581 (eval $ac_compile) 2>conftest.er1
5583 grep -v '^ *+' conftest.er1
>conftest.err
5585 cat conftest.err
>&5
5586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5587 (exit $ac_status); } &&
5588 { ac_try
='test -z "$ac_c_werror_flag"
5589 || test ! -s conftest.err'
5590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5594 (exit $ac_status); }; } &&
5595 { ac_try
='test -s conftest.$ac_objext'
5596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5600 (exit $ac_status); }; }; then
5601 eval "$as_ac_Header=yes"
5603 echo "$as_me: failed program was:" >&5
5604 sed 's/^/| /' conftest.
$ac_ext >&5
5606 eval "$as_ac_Header=no"
5608 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5610 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5611 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5612 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5613 cat >>confdefs.h
<<_ACEOF
5614 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5622 # checks for typedefs
5624 echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
5625 echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6
5626 cat >conftest.
$ac_ext <<_ACEOF
5629 cat confdefs.h
>>conftest.
$ac_ext
5630 cat >>conftest.
$ac_ext <<_ACEOF
5631 /* end confdefs.h. */
5635 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5636 $EGREP "clock_t" >/dev
/null
2>&1; then
5641 cat >>confdefs.h
<<\_ACEOF
5642 #define clock_t long
5649 echo "$as_me:$LINENO: result: $was_it_defined" >&5
5650 echo "${ECHO_T}$was_it_defined" >&6
5652 # Check whether using makedev requires defining _OSF_SOURCE
5653 echo "$as_me:$LINENO: checking for makedev" >&5
5654 echo $ECHO_N "checking for makedev... $ECHO_C" >&6
5655 cat >conftest.
$ac_ext <<_ACEOF
5658 cat confdefs.h
>>conftest.
$ac_ext
5659 cat >>conftest.
$ac_ext <<_ACEOF
5660 /* end confdefs.h. */
5661 #include <sys/types.h>
5670 rm -f conftest.
$ac_objext conftest
$ac_exeext
5671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5672 (eval $ac_link) 2>conftest.er1
5674 grep -v '^ *+' conftest.er1
>conftest.err
5676 cat conftest.err
>&5
5677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678 (exit $ac_status); } &&
5679 { ac_try
='test -z "$ac_c_werror_flag"
5680 || test ! -s conftest.err'
5681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5685 (exit $ac_status); }; } &&
5686 { ac_try
='test -s conftest$ac_exeext'
5687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691 (exit $ac_status); }; }; then
5692 ac_cv_has_makedev
=yes
5694 echo "$as_me: failed program was:" >&5
5695 sed 's/^/| /' conftest.
$ac_ext >&5
5697 ac_cv_has_makedev
=no
5699 rm -f conftest.err conftest.
$ac_objext \
5700 conftest
$ac_exeext conftest.
$ac_ext
5701 if test "$ac_cv_has_makedev" = "no"; then
5702 # we didn't link, try if _OSF_SOURCE will allow us to link
5703 cat >conftest.
$ac_ext <<_ACEOF
5706 cat confdefs.h
>>conftest.
$ac_ext
5707 cat >>conftest.
$ac_ext <<_ACEOF
5708 /* end confdefs.h. */
5710 #define _OSF_SOURCE 1
5711 #include <sys/types.h>
5721 rm -f conftest.
$ac_objext conftest
$ac_exeext
5722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5723 (eval $ac_link) 2>conftest.er1
5725 grep -v '^ *+' conftest.er1
>conftest.err
5727 cat conftest.err
>&5
5728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729 (exit $ac_status); } &&
5730 { ac_try
='test -z "$ac_c_werror_flag"
5731 || test ! -s conftest.err'
5732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736 (exit $ac_status); }; } &&
5737 { ac_try
='test -s conftest$ac_exeext'
5738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5742 (exit $ac_status); }; }; then
5743 ac_cv_has_makedev
=yes
5745 echo "$as_me: failed program was:" >&5
5746 sed 's/^/| /' conftest.
$ac_ext >&5
5748 ac_cv_has_makedev
=no
5750 rm -f conftest.err conftest.
$ac_objext \
5751 conftest
$ac_exeext conftest.
$ac_ext
5752 if test "$ac_cv_has_makedev" = "yes"; then
5754 cat >>confdefs.h
<<\_ACEOF
5755 #define _OSF_SOURCE 1
5760 echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
5761 echo "${ECHO_T}$ac_cv_has_makedev" >&6
5762 if test "$ac_cv_has_makedev" = "yes"; then
5764 cat >>confdefs.h
<<\_ACEOF
5765 #define HAVE_MAKEDEV 1
5770 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
5771 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
5772 # defined, but the compiler does not support pragma redefine_extname,
5773 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
5774 # structures (such as rlimit64) without declaring them. As a
5775 # work-around, disable LFS on such configurations
5778 echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
5779 echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6
5780 cat >conftest.
$ac_ext <<_ACEOF
5783 cat confdefs.h
>>conftest.
$ac_ext
5784 cat >>conftest.
$ac_ext <<_ACEOF
5785 /* end confdefs.h. */
5787 #define _LARGEFILE_SOURCE 1
5788 #define _FILE_OFFSET_BITS 64
5789 #include <sys/resource.h>
5799 rm -f conftest.
$ac_objext
5800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5801 (eval $ac_compile) 2>conftest.er1
5803 grep -v '^ *+' conftest.er1
>conftest.err
5805 cat conftest.err
>&5
5806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5807 (exit $ac_status); } &&
5808 { ac_try
='test -z "$ac_c_werror_flag"
5809 || test ! -s conftest.err'
5810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814 (exit $ac_status); }; } &&
5815 { ac_try
='test -s conftest.$ac_objext'
5816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820 (exit $ac_status); }; }; then
5823 echo "$as_me: failed program was:" >&5
5824 sed 's/^/| /' conftest.
$ac_ext >&5
5828 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5829 echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
5830 echo "${ECHO_T}$sol_lfs_bug" >&6
5831 if test "$sol_lfs_bug" = "yes"; then
5835 if test "$use_lfs" = "yes"; then
5836 # Two defines needed to enable largefile support on various platforms
5837 # These may affect some typedefs
5839 cat >>confdefs.h
<<\_ACEOF
5840 #define _LARGEFILE_SOURCE 1
5844 cat >>confdefs.h
<<\_ACEOF
5845 #define _FILE_OFFSET_BITS 64
5850 # Add some code to confdefs.h so that the test for off_t works on SCO
5851 cat >> confdefs.h
<<\EOF
5857 # Type availability checks
5858 echo "$as_me:$LINENO: checking for mode_t" >&5
5859 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
5860 if test "${ac_cv_type_mode_t+set}" = set; then
5861 echo $ECHO_N "(cached) $ECHO_C" >&6
5863 cat >conftest.
$ac_ext <<_ACEOF
5866 cat confdefs.h
>>conftest.
$ac_ext
5867 cat >>conftest.
$ac_ext <<_ACEOF
5868 /* end confdefs.h. */
5869 $ac_includes_default
5875 if (sizeof (mode_t))
5881 rm -f conftest.
$ac_objext
5882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5883 (eval $ac_compile) 2>conftest.er1
5885 grep -v '^ *+' conftest.er1
>conftest.err
5887 cat conftest.err
>&5
5888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5889 (exit $ac_status); } &&
5890 { ac_try
='test -z "$ac_c_werror_flag"
5891 || test ! -s conftest.err'
5892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5896 (exit $ac_status); }; } &&
5897 { ac_try
='test -s conftest.$ac_objext'
5898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5902 (exit $ac_status); }; }; then
5903 ac_cv_type_mode_t
=yes
5905 echo "$as_me: failed program was:" >&5
5906 sed 's/^/| /' conftest.
$ac_ext >&5
5908 ac_cv_type_mode_t
=no
5910 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5912 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
5913 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
5914 if test $ac_cv_type_mode_t = yes; then
5918 cat >>confdefs.h
<<_ACEOF
5924 echo "$as_me:$LINENO: checking for off_t" >&5
5925 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5926 if test "${ac_cv_type_off_t+set}" = set; then
5927 echo $ECHO_N "(cached) $ECHO_C" >&6
5929 cat >conftest.
$ac_ext <<_ACEOF
5932 cat confdefs.h
>>conftest.
$ac_ext
5933 cat >>conftest.
$ac_ext <<_ACEOF
5934 /* end confdefs.h. */
5935 $ac_includes_default
5947 rm -f conftest.
$ac_objext
5948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5949 (eval $ac_compile) 2>conftest.er1
5951 grep -v '^ *+' conftest.er1
>conftest.err
5953 cat conftest.err
>&5
5954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5955 (exit $ac_status); } &&
5956 { ac_try
='test -z "$ac_c_werror_flag"
5957 || test ! -s conftest.err'
5958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5962 (exit $ac_status); }; } &&
5963 { ac_try
='test -s conftest.$ac_objext'
5964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5968 (exit $ac_status); }; }; then
5969 ac_cv_type_off_t
=yes
5971 echo "$as_me: failed program was:" >&5
5972 sed 's/^/| /' conftest.
$ac_ext >&5
5976 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5978 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5979 echo "${ECHO_T}$ac_cv_type_off_t" >&6
5980 if test $ac_cv_type_off_t = yes; then
5984 cat >>confdefs.h
<<_ACEOF
5990 echo "$as_me:$LINENO: checking for pid_t" >&5
5991 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
5992 if test "${ac_cv_type_pid_t+set}" = set; then
5993 echo $ECHO_N "(cached) $ECHO_C" >&6
5995 cat >conftest.
$ac_ext <<_ACEOF
5998 cat confdefs.h
>>conftest.
$ac_ext
5999 cat >>conftest.
$ac_ext <<_ACEOF
6000 /* end confdefs.h. */
6001 $ac_includes_default
6013 rm -f conftest.
$ac_objext
6014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6015 (eval $ac_compile) 2>conftest.er1
6017 grep -v '^ *+' conftest.er1
>conftest.err
6019 cat conftest.err
>&5
6020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021 (exit $ac_status); } &&
6022 { ac_try
='test -z "$ac_c_werror_flag"
6023 || test ! -s conftest.err'
6024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028 (exit $ac_status); }; } &&
6029 { ac_try
='test -s conftest.$ac_objext'
6030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6034 (exit $ac_status); }; }; then
6035 ac_cv_type_pid_t
=yes
6037 echo "$as_me: failed program was:" >&5
6038 sed 's/^/| /' conftest.
$ac_ext >&5
6042 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6044 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6045 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
6046 if test $ac_cv_type_pid_t = yes; then
6050 cat >>confdefs.h
<<_ACEOF
6056 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6057 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6058 if test "${ac_cv_type_signal+set}" = set; then
6059 echo $ECHO_N "(cached) $ECHO_C" >&6
6061 cat >conftest.
$ac_ext <<_ACEOF
6064 cat confdefs.h
>>conftest.
$ac_ext
6065 cat >>conftest.
$ac_ext <<_ACEOF
6066 /* end confdefs.h. */
6067 #include <sys/types.h>
6073 extern "C" void (*signal (int, void (*)(int)))(int);
6075 void (*signal ()) ();
6086 rm -f conftest.
$ac_objext
6087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6088 (eval $ac_compile) 2>conftest.er1
6090 grep -v '^ *+' conftest.er1
>conftest.err
6092 cat conftest.err
>&5
6093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6094 (exit $ac_status); } &&
6095 { ac_try
='test -z "$ac_c_werror_flag"
6096 || test ! -s conftest.err'
6097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6101 (exit $ac_status); }; } &&
6102 { ac_try
='test -s conftest.$ac_objext'
6103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6107 (exit $ac_status); }; }; then
6108 ac_cv_type_signal
=void
6110 echo "$as_me: failed program was:" >&5
6111 sed 's/^/| /' conftest.
$ac_ext >&5
6113 ac_cv_type_signal
=int
6115 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6117 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6118 echo "${ECHO_T}$ac_cv_type_signal" >&6
6120 cat >>confdefs.h
<<_ACEOF
6121 #define RETSIGTYPE $ac_cv_type_signal
6125 echo "$as_me:$LINENO: checking for size_t" >&5
6126 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6127 if test "${ac_cv_type_size_t+set}" = set; then
6128 echo $ECHO_N "(cached) $ECHO_C" >&6
6130 cat >conftest.
$ac_ext <<_ACEOF
6133 cat confdefs.h
>>conftest.
$ac_ext
6134 cat >>conftest.
$ac_ext <<_ACEOF
6135 /* end confdefs.h. */
6136 $ac_includes_default
6142 if (sizeof (size_t))
6148 rm -f conftest.
$ac_objext
6149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6150 (eval $ac_compile) 2>conftest.er1
6152 grep -v '^ *+' conftest.er1
>conftest.err
6154 cat conftest.err
>&5
6155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6156 (exit $ac_status); } &&
6157 { ac_try
='test -z "$ac_c_werror_flag"
6158 || test ! -s conftest.err'
6159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163 (exit $ac_status); }; } &&
6164 { ac_try
='test -s conftest.$ac_objext'
6165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6169 (exit $ac_status); }; }; then
6170 ac_cv_type_size_t
=yes
6172 echo "$as_me: failed program was:" >&5
6173 sed 's/^/| /' conftest.
$ac_ext >&5
6175 ac_cv_type_size_t
=no
6177 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6179 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6180 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6181 if test $ac_cv_type_size_t = yes; then
6185 cat >>confdefs.h
<<_ACEOF
6186 #define size_t unsigned
6191 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6192 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
6193 if test "${ac_cv_type_uid_t+set}" = set; then
6194 echo $ECHO_N "(cached) $ECHO_C" >&6
6196 cat >conftest.
$ac_ext <<_ACEOF
6199 cat confdefs.h
>>conftest.
$ac_ext
6200 cat >>conftest.
$ac_ext <<_ACEOF
6201 /* end confdefs.h. */
6202 #include <sys/types.h>
6205 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6206 $EGREP "uid_t" >/dev
/null
2>&1; then
6207 ac_cv_type_uid_t
=yes
6214 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
6215 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
6216 if test $ac_cv_type_uid_t = no
; then
6218 cat >>confdefs.h
<<\_ACEOF
6223 cat >>confdefs.h
<<\_ACEOF
6229 echo "$as_me:$LINENO: checking for ssize_t" >&5
6230 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
6231 if test "${ac_cv_type_ssize_t+set}" = set; then
6232 echo $ECHO_N "(cached) $ECHO_C" >&6
6234 cat >conftest.
$ac_ext <<_ACEOF
6237 cat confdefs.h
>>conftest.
$ac_ext
6238 cat >>conftest.
$ac_ext <<_ACEOF
6239 /* end confdefs.h. */
6240 $ac_includes_default
6246 if (sizeof (ssize_t))
6252 rm -f conftest.
$ac_objext
6253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6254 (eval $ac_compile) 2>conftest.er1
6256 grep -v '^ *+' conftest.er1
>conftest.err
6258 cat conftest.err
>&5
6259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6260 (exit $ac_status); } &&
6261 { ac_try
='test -z "$ac_c_werror_flag"
6262 || test ! -s conftest.err'
6263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6267 (exit $ac_status); }; } &&
6268 { ac_try
='test -s conftest.$ac_objext'
6269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6273 (exit $ac_status); }; }; then
6274 ac_cv_type_ssize_t
=yes
6276 echo "$as_me: failed program was:" >&5
6277 sed 's/^/| /' conftest.
$ac_ext >&5
6279 ac_cv_type_ssize_t
=no
6281 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6283 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
6284 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
6285 if test $ac_cv_type_ssize_t = yes; then
6287 cat >>confdefs.h
<<\_ACEOF
6288 #define HAVE_SSIZE_T 1
6294 # Sizes of various common basic types
6295 # ANSI C requires sizeof(char) == 1, so no need to check it
6296 echo "$as_me:$LINENO: checking for int" >&5
6297 echo $ECHO_N "checking for int... $ECHO_C" >&6
6298 if test "${ac_cv_type_int+set}" = set; then
6299 echo $ECHO_N "(cached) $ECHO_C" >&6
6301 cat >conftest.
$ac_ext <<_ACEOF
6304 cat confdefs.h
>>conftest.
$ac_ext
6305 cat >>conftest.
$ac_ext <<_ACEOF
6306 /* end confdefs.h. */
6307 $ac_includes_default
6319 rm -f conftest.
$ac_objext
6320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6321 (eval $ac_compile) 2>conftest.er1
6323 grep -v '^ *+' conftest.er1
>conftest.err
6325 cat conftest.err
>&5
6326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6327 (exit $ac_status); } &&
6328 { ac_try
='test -z "$ac_c_werror_flag"
6329 || test ! -s conftest.err'
6330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6334 (exit $ac_status); }; } &&
6335 { ac_try
='test -s conftest.$ac_objext'
6336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6340 (exit $ac_status); }; }; then
6343 echo "$as_me: failed program was:" >&5
6344 sed 's/^/| /' conftest.
$ac_ext >&5
6348 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6350 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
6351 echo "${ECHO_T}$ac_cv_type_int" >&6
6353 echo "$as_me:$LINENO: checking size of int" >&5
6354 echo $ECHO_N "checking size of int... $ECHO_C" >&6
6355 if test "${ac_cv_sizeof_int+set}" = set; then
6356 echo $ECHO_N "(cached) $ECHO_C" >&6
6358 if test "$ac_cv_type_int" = yes; then
6359 # The cast to unsigned long works around a bug in the HP C Compiler
6360 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6361 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6362 # This bug is HP SR number 8606223364.
6363 if test "$cross_compiling" = yes; then
6364 # Depending upon the size, compute the lo and hi bounds.
6365 cat >conftest.
$ac_ext <<_ACEOF
6368 cat confdefs.h
>>conftest.
$ac_ext
6369 cat >>conftest.
$ac_ext <<_ACEOF
6370 /* end confdefs.h. */
6371 $ac_includes_default
6375 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
6382 rm -f conftest.
$ac_objext
6383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6384 (eval $ac_compile) 2>conftest.er1
6386 grep -v '^ *+' conftest.er1
>conftest.err
6388 cat conftest.err
>&5
6389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6390 (exit $ac_status); } &&
6391 { ac_try
='test -z "$ac_c_werror_flag"
6392 || test ! -s conftest.err'
6393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397 (exit $ac_status); }; } &&
6398 { ac_try
='test -s conftest.$ac_objext'
6399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403 (exit $ac_status); }; }; then
6406 cat >conftest.
$ac_ext <<_ACEOF
6409 cat confdefs.h
>>conftest.
$ac_ext
6410 cat >>conftest.
$ac_ext <<_ACEOF
6411 /* end confdefs.h. */
6412 $ac_includes_default
6416 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6423 rm -f conftest.
$ac_objext
6424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6425 (eval $ac_compile) 2>conftest.er1
6427 grep -v '^ *+' conftest.er1
>conftest.err
6429 cat conftest.err
>&5
6430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6431 (exit $ac_status); } &&
6432 { ac_try
='test -z "$ac_c_werror_flag"
6433 || test ! -s conftest.err'
6434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6438 (exit $ac_status); }; } &&
6439 { ac_try
='test -s conftest.$ac_objext'
6440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6444 (exit $ac_status); }; }; then
6445 ac_hi
=$ac_mid; break
6447 echo "$as_me: failed program was:" >&5
6448 sed 's/^/| /' conftest.
$ac_ext >&5
6450 ac_lo
=`expr $ac_mid + 1`
6451 if test $ac_lo -le $ac_mid; then
6455 ac_mid
=`expr 2 '*' $ac_mid + 1`
6457 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6460 echo "$as_me: failed program was:" >&5
6461 sed 's/^/| /' conftest.
$ac_ext >&5
6463 cat >conftest.
$ac_ext <<_ACEOF
6466 cat confdefs.h
>>conftest.
$ac_ext
6467 cat >>conftest.
$ac_ext <<_ACEOF
6468 /* end confdefs.h. */
6469 $ac_includes_default
6473 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
6480 rm -f conftest.
$ac_objext
6481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6482 (eval $ac_compile) 2>conftest.er1
6484 grep -v '^ *+' conftest.er1
>conftest.err
6486 cat conftest.err
>&5
6487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6488 (exit $ac_status); } &&
6489 { ac_try
='test -z "$ac_c_werror_flag"
6490 || test ! -s conftest.err'
6491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6495 (exit $ac_status); }; } &&
6496 { ac_try
='test -s conftest.$ac_objext'
6497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6501 (exit $ac_status); }; }; then
6504 cat >conftest.
$ac_ext <<_ACEOF
6507 cat confdefs.h
>>conftest.
$ac_ext
6508 cat >>conftest.
$ac_ext <<_ACEOF
6509 /* end confdefs.h. */
6510 $ac_includes_default
6514 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
6521 rm -f conftest.
$ac_objext
6522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6523 (eval $ac_compile) 2>conftest.er1
6525 grep -v '^ *+' conftest.er1
>conftest.err
6527 cat conftest.err
>&5
6528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529 (exit $ac_status); } &&
6530 { ac_try
='test -z "$ac_c_werror_flag"
6531 || test ! -s conftest.err'
6532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6536 (exit $ac_status); }; } &&
6537 { ac_try
='test -s conftest.$ac_objext'
6538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6542 (exit $ac_status); }; }; then
6543 ac_lo
=$ac_mid; break
6545 echo "$as_me: failed program was:" >&5
6546 sed 's/^/| /' conftest.
$ac_ext >&5
6548 ac_hi
=`expr '(' $ac_mid ')' - 1`
6549 if test $ac_mid -le $ac_hi; then
6553 ac_mid
=`expr 2 '*' $ac_mid`
6555 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6558 echo "$as_me: failed program was:" >&5
6559 sed 's/^/| /' conftest.
$ac_ext >&5
6563 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6565 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6566 # Binary search between lo and hi bounds.
6567 while test "x$ac_lo" != "x$ac_hi"; do
6568 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6569 cat >conftest.
$ac_ext <<_ACEOF
6572 cat confdefs.h
>>conftest.
$ac_ext
6573 cat >>conftest.
$ac_ext <<_ACEOF
6574 /* end confdefs.h. */
6575 $ac_includes_default
6579 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6586 rm -f conftest.
$ac_objext
6587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6588 (eval $ac_compile) 2>conftest.er1
6590 grep -v '^ *+' conftest.er1
>conftest.err
6592 cat conftest.err
>&5
6593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6594 (exit $ac_status); } &&
6595 { ac_try
='test -z "$ac_c_werror_flag"
6596 || test ! -s conftest.err'
6597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601 (exit $ac_status); }; } &&
6602 { ac_try
='test -s conftest.$ac_objext'
6603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6607 (exit $ac_status); }; }; then
6610 echo "$as_me: failed program was:" >&5
6611 sed 's/^/| /' conftest.
$ac_ext >&5
6613 ac_lo
=`expr '(' $ac_mid ')' + 1`
6615 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6618 ?
*) ac_cv_sizeof_int
=$ac_lo;;
6619 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
6620 See \`config.log' for more details." >&5
6621 echo "$as_me: error: cannot compute sizeof (int), 77
6622 See \`config.log' for more details." >&2;}
6623 { (exit 1); exit 1; }; } ;;
6626 if test "$cross_compiling" = yes; then
6627 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6628 See \`config.log' for more details." >&5
6629 echo "$as_me: error: cannot run test program while cross compiling
6630 See \`config.log' for more details." >&2;}
6631 { (exit 1); exit 1; }; }
6633 cat >conftest.
$ac_ext <<_ACEOF
6636 cat confdefs.h
>>conftest.
$ac_ext
6637 cat >>conftest.
$ac_ext <<_ACEOF
6638 /* end confdefs.h. */
6639 $ac_includes_default
6640 long longval () { return (long) (sizeof (int)); }
6641 unsigned long ulongval () { return (long) (sizeof (int)); }
6648 FILE *f = fopen ("conftest.val", "w");
6651 if (((long) (sizeof (int))) < 0)
6653 long i = longval ();
6654 if (i != ((long) (sizeof (int))))
6656 fprintf (f, "%ld\n", i);
6660 unsigned long i = ulongval ();
6661 if (i != ((long) (sizeof (int))))
6663 fprintf (f, "%lu\n", i);
6665 exit (ferror (f) || fclose (f) != 0);
6671 rm -f conftest
$ac_exeext
6672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6673 (eval $ac_link) 2>&5
6675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6676 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6681 (exit $ac_status); }; }; then
6682 ac_cv_sizeof_int
=`cat conftest.val`
6684 echo "$as_me: program exited with status $ac_status" >&5
6685 echo "$as_me: failed program was:" >&5
6686 sed 's/^/| /' conftest.
$ac_ext >&5
6689 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
6690 See \`config.log' for more details." >&5
6691 echo "$as_me: error: cannot compute sizeof (int), 77
6692 See \`config.log' for more details." >&2;}
6693 { (exit 1); exit 1; }; }
6695 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6703 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6704 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
6705 cat >>confdefs.h
<<_ACEOF
6706 #define SIZEOF_INT $ac_cv_sizeof_int
6710 echo "$as_me:$LINENO: checking for long" >&5
6711 echo $ECHO_N "checking for long... $ECHO_C" >&6
6712 if test "${ac_cv_type_long+set}" = set; then
6713 echo $ECHO_N "(cached) $ECHO_C" >&6
6715 cat >conftest.
$ac_ext <<_ACEOF
6718 cat confdefs.h
>>conftest.
$ac_ext
6719 cat >>conftest.
$ac_ext <<_ACEOF
6720 /* end confdefs.h. */
6721 $ac_includes_default
6733 rm -f conftest.
$ac_objext
6734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6735 (eval $ac_compile) 2>conftest.er1
6737 grep -v '^ *+' conftest.er1
>conftest.err
6739 cat conftest.err
>&5
6740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6741 (exit $ac_status); } &&
6742 { ac_try
='test -z "$ac_c_werror_flag"
6743 || test ! -s conftest.err'
6744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6748 (exit $ac_status); }; } &&
6749 { ac_try
='test -s conftest.$ac_objext'
6750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6754 (exit $ac_status); }; }; then
6757 echo "$as_me: failed program was:" >&5
6758 sed 's/^/| /' conftest.
$ac_ext >&5
6762 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6764 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6765 echo "${ECHO_T}$ac_cv_type_long" >&6
6767 echo "$as_me:$LINENO: checking size of long" >&5
6768 echo $ECHO_N "checking size of long... $ECHO_C" >&6
6769 if test "${ac_cv_sizeof_long+set}" = set; then
6770 echo $ECHO_N "(cached) $ECHO_C" >&6
6772 if test "$ac_cv_type_long" = yes; then
6773 # The cast to unsigned long works around a bug in the HP C Compiler
6774 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6775 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6776 # This bug is HP SR number 8606223364.
6777 if test "$cross_compiling" = yes; then
6778 # Depending upon the size, compute the lo and hi bounds.
6779 cat >conftest.
$ac_ext <<_ACEOF
6782 cat confdefs.h
>>conftest.
$ac_ext
6783 cat >>conftest.
$ac_ext <<_ACEOF
6784 /* end confdefs.h. */
6785 $ac_includes_default
6789 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
6796 rm -f conftest.
$ac_objext
6797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6798 (eval $ac_compile) 2>conftest.er1
6800 grep -v '^ *+' conftest.er1
>conftest.err
6802 cat conftest.err
>&5
6803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6804 (exit $ac_status); } &&
6805 { ac_try
='test -z "$ac_c_werror_flag"
6806 || test ! -s conftest.err'
6807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6811 (exit $ac_status); }; } &&
6812 { ac_try
='test -s conftest.$ac_objext'
6813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6817 (exit $ac_status); }; }; then
6820 cat >conftest.
$ac_ext <<_ACEOF
6823 cat confdefs.h
>>conftest.
$ac_ext
6824 cat >>conftest.
$ac_ext <<_ACEOF
6825 /* end confdefs.h. */
6826 $ac_includes_default
6830 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6837 rm -f conftest.
$ac_objext
6838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6839 (eval $ac_compile) 2>conftest.er1
6841 grep -v '^ *+' conftest.er1
>conftest.err
6843 cat conftest.err
>&5
6844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6845 (exit $ac_status); } &&
6846 { ac_try
='test -z "$ac_c_werror_flag"
6847 || test ! -s conftest.err'
6848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6852 (exit $ac_status); }; } &&
6853 { ac_try
='test -s conftest.$ac_objext'
6854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6858 (exit $ac_status); }; }; then
6859 ac_hi
=$ac_mid; break
6861 echo "$as_me: failed program was:" >&5
6862 sed 's/^/| /' conftest.
$ac_ext >&5
6864 ac_lo
=`expr $ac_mid + 1`
6865 if test $ac_lo -le $ac_mid; then
6869 ac_mid
=`expr 2 '*' $ac_mid + 1`
6871 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6874 echo "$as_me: failed program was:" >&5
6875 sed 's/^/| /' conftest.
$ac_ext >&5
6877 cat >conftest.
$ac_ext <<_ACEOF
6880 cat confdefs.h
>>conftest.
$ac_ext
6881 cat >>conftest.
$ac_ext <<_ACEOF
6882 /* end confdefs.h. */
6883 $ac_includes_default
6887 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
6894 rm -f conftest.
$ac_objext
6895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6896 (eval $ac_compile) 2>conftest.er1
6898 grep -v '^ *+' conftest.er1
>conftest.err
6900 cat conftest.err
>&5
6901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6902 (exit $ac_status); } &&
6903 { ac_try
='test -z "$ac_c_werror_flag"
6904 || test ! -s conftest.err'
6905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6909 (exit $ac_status); }; } &&
6910 { ac_try
='test -s conftest.$ac_objext'
6911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6915 (exit $ac_status); }; }; then
6918 cat >conftest.
$ac_ext <<_ACEOF
6921 cat confdefs.h
>>conftest.
$ac_ext
6922 cat >>conftest.
$ac_ext <<_ACEOF
6923 /* end confdefs.h. */
6924 $ac_includes_default
6928 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
6935 rm -f conftest.
$ac_objext
6936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6937 (eval $ac_compile) 2>conftest.er1
6939 grep -v '^ *+' conftest.er1
>conftest.err
6941 cat conftest.err
>&5
6942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6943 (exit $ac_status); } &&
6944 { ac_try
='test -z "$ac_c_werror_flag"
6945 || test ! -s conftest.err'
6946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6950 (exit $ac_status); }; } &&
6951 { ac_try
='test -s conftest.$ac_objext'
6952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6956 (exit $ac_status); }; }; then
6957 ac_lo
=$ac_mid; break
6959 echo "$as_me: failed program was:" >&5
6960 sed 's/^/| /' conftest.
$ac_ext >&5
6962 ac_hi
=`expr '(' $ac_mid ')' - 1`
6963 if test $ac_mid -le $ac_hi; then
6967 ac_mid
=`expr 2 '*' $ac_mid`
6969 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6972 echo "$as_me: failed program was:" >&5
6973 sed 's/^/| /' conftest.
$ac_ext >&5
6977 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6979 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6980 # Binary search between lo and hi bounds.
6981 while test "x$ac_lo" != "x$ac_hi"; do
6982 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6983 cat >conftest.
$ac_ext <<_ACEOF
6986 cat confdefs.h
>>conftest.
$ac_ext
6987 cat >>conftest.
$ac_ext <<_ACEOF
6988 /* end confdefs.h. */
6989 $ac_includes_default
6993 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7000 rm -f conftest.
$ac_objext
7001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7002 (eval $ac_compile) 2>conftest.er1
7004 grep -v '^ *+' conftest.er1
>conftest.err
7006 cat conftest.err
>&5
7007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7008 (exit $ac_status); } &&
7009 { ac_try
='test -z "$ac_c_werror_flag"
7010 || test ! -s conftest.err'
7011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015 (exit $ac_status); }; } &&
7016 { ac_try
='test -s conftest.$ac_objext'
7017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021 (exit $ac_status); }; }; then
7024 echo "$as_me: failed program was:" >&5
7025 sed 's/^/| /' conftest.
$ac_ext >&5
7027 ac_lo
=`expr '(' $ac_mid ')' + 1`
7029 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7032 ?
*) ac_cv_sizeof_long
=$ac_lo;;
7033 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7034 See \`config.log' for more details." >&5
7035 echo "$as_me: error: cannot compute sizeof (long), 77
7036 See \`config.log' for more details." >&2;}
7037 { (exit 1); exit 1; }; } ;;
7040 if test "$cross_compiling" = yes; then
7041 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7042 See \`config.log' for more details." >&5
7043 echo "$as_me: error: cannot run test program while cross compiling
7044 See \`config.log' for more details." >&2;}
7045 { (exit 1); exit 1; }; }
7047 cat >conftest.
$ac_ext <<_ACEOF
7050 cat confdefs.h
>>conftest.
$ac_ext
7051 cat >>conftest.
$ac_ext <<_ACEOF
7052 /* end confdefs.h. */
7053 $ac_includes_default
7054 long longval () { return (long) (sizeof (long)); }
7055 unsigned long ulongval () { return (long) (sizeof (long)); }
7062 FILE *f = fopen ("conftest.val", "w");
7065 if (((long) (sizeof (long))) < 0)
7067 long i = longval ();
7068 if (i != ((long) (sizeof (long))))
7070 fprintf (f, "%ld\n", i);
7074 unsigned long i = ulongval ();
7075 if (i != ((long) (sizeof (long))))
7077 fprintf (f, "%lu\n", i);
7079 exit (ferror (f) || fclose (f) != 0);
7085 rm -f conftest
$ac_exeext
7086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7087 (eval $ac_link) 2>&5
7089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7090 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7095 (exit $ac_status); }; }; then
7096 ac_cv_sizeof_long
=`cat conftest.val`
7098 echo "$as_me: program exited with status $ac_status" >&5
7099 echo "$as_me: failed program was:" >&5
7100 sed 's/^/| /' conftest.
$ac_ext >&5
7103 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7104 See \`config.log' for more details." >&5
7105 echo "$as_me: error: cannot compute sizeof (long), 77
7106 See \`config.log' for more details." >&2;}
7107 { (exit 1); exit 1; }; }
7109 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7117 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7118 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7119 cat >>confdefs.h
<<_ACEOF
7120 #define SIZEOF_LONG $ac_cv_sizeof_long
7124 echo "$as_me:$LINENO: checking for void *" >&5
7125 echo $ECHO_N "checking for void *... $ECHO_C" >&6
7126 if test "${ac_cv_type_void_p+set}" = set; then
7127 echo $ECHO_N "(cached) $ECHO_C" >&6
7129 cat >conftest.
$ac_ext <<_ACEOF
7132 cat confdefs.h
>>conftest.
$ac_ext
7133 cat >>conftest.
$ac_ext <<_ACEOF
7134 /* end confdefs.h. */
7135 $ac_includes_default
7141 if (sizeof (void *))
7147 rm -f conftest.
$ac_objext
7148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7149 (eval $ac_compile) 2>conftest.er1
7151 grep -v '^ *+' conftest.er1
>conftest.err
7153 cat conftest.err
>&5
7154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7155 (exit $ac_status); } &&
7156 { ac_try
='test -z "$ac_c_werror_flag"
7157 || test ! -s conftest.err'
7158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7162 (exit $ac_status); }; } &&
7163 { ac_try
='test -s conftest.$ac_objext'
7164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7168 (exit $ac_status); }; }; then
7169 ac_cv_type_void_p
=yes
7171 echo "$as_me: failed program was:" >&5
7172 sed 's/^/| /' conftest.
$ac_ext >&5
7174 ac_cv_type_void_p
=no
7176 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7178 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
7179 echo "${ECHO_T}$ac_cv_type_void_p" >&6
7181 echo "$as_me:$LINENO: checking size of void *" >&5
7182 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
7183 if test "${ac_cv_sizeof_void_p+set}" = set; then
7184 echo $ECHO_N "(cached) $ECHO_C" >&6
7186 if test "$ac_cv_type_void_p" = yes; then
7187 # The cast to unsigned long works around a bug in the HP C Compiler
7188 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7189 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7190 # This bug is HP SR number 8606223364.
7191 if test "$cross_compiling" = yes; then
7192 # Depending upon the size, compute the lo and hi bounds.
7193 cat >conftest.
$ac_ext <<_ACEOF
7196 cat confdefs.h
>>conftest.
$ac_ext
7197 cat >>conftest.
$ac_ext <<_ACEOF
7198 /* end confdefs.h. */
7199 $ac_includes_default
7203 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
7210 rm -f conftest.
$ac_objext
7211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7212 (eval $ac_compile) 2>conftest.er1
7214 grep -v '^ *+' conftest.er1
>conftest.err
7216 cat conftest.err
>&5
7217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7218 (exit $ac_status); } &&
7219 { ac_try
='test -z "$ac_c_werror_flag"
7220 || test ! -s conftest.err'
7221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7225 (exit $ac_status); }; } &&
7226 { ac_try
='test -s conftest.$ac_objext'
7227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7231 (exit $ac_status); }; }; then
7234 cat >conftest.
$ac_ext <<_ACEOF
7237 cat confdefs.h
>>conftest.
$ac_ext
7238 cat >>conftest.
$ac_ext <<_ACEOF
7239 /* end confdefs.h. */
7240 $ac_includes_default
7244 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
7251 rm -f conftest.
$ac_objext
7252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7253 (eval $ac_compile) 2>conftest.er1
7255 grep -v '^ *+' conftest.er1
>conftest.err
7257 cat conftest.err
>&5
7258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7259 (exit $ac_status); } &&
7260 { ac_try
='test -z "$ac_c_werror_flag"
7261 || test ! -s conftest.err'
7262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7266 (exit $ac_status); }; } &&
7267 { ac_try
='test -s conftest.$ac_objext'
7268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7272 (exit $ac_status); }; }; then
7273 ac_hi
=$ac_mid; break
7275 echo "$as_me: failed program was:" >&5
7276 sed 's/^/| /' conftest.
$ac_ext >&5
7278 ac_lo
=`expr $ac_mid + 1`
7279 if test $ac_lo -le $ac_mid; then
7283 ac_mid
=`expr 2 '*' $ac_mid + 1`
7285 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7288 echo "$as_me: failed program was:" >&5
7289 sed 's/^/| /' conftest.
$ac_ext >&5
7291 cat >conftest.
$ac_ext <<_ACEOF
7294 cat confdefs.h
>>conftest.
$ac_ext
7295 cat >>conftest.
$ac_ext <<_ACEOF
7296 /* end confdefs.h. */
7297 $ac_includes_default
7301 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
7308 rm -f conftest.
$ac_objext
7309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7310 (eval $ac_compile) 2>conftest.er1
7312 grep -v '^ *+' conftest.er1
>conftest.err
7314 cat conftest.err
>&5
7315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7316 (exit $ac_status); } &&
7317 { ac_try
='test -z "$ac_c_werror_flag"
7318 || test ! -s conftest.err'
7319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7323 (exit $ac_status); }; } &&
7324 { ac_try
='test -s conftest.$ac_objext'
7325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7329 (exit $ac_status); }; }; then
7332 cat >conftest.
$ac_ext <<_ACEOF
7335 cat confdefs.h
>>conftest.
$ac_ext
7336 cat >>conftest.
$ac_ext <<_ACEOF
7337 /* end confdefs.h. */
7338 $ac_includes_default
7342 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
7349 rm -f conftest.
$ac_objext
7350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7351 (eval $ac_compile) 2>conftest.er1
7353 grep -v '^ *+' conftest.er1
>conftest.err
7355 cat conftest.err
>&5
7356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357 (exit $ac_status); } &&
7358 { ac_try
='test -z "$ac_c_werror_flag"
7359 || test ! -s conftest.err'
7360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7364 (exit $ac_status); }; } &&
7365 { ac_try
='test -s conftest.$ac_objext'
7366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7370 (exit $ac_status); }; }; then
7371 ac_lo
=$ac_mid; break
7373 echo "$as_me: failed program was:" >&5
7374 sed 's/^/| /' conftest.
$ac_ext >&5
7376 ac_hi
=`expr '(' $ac_mid ')' - 1`
7377 if test $ac_mid -le $ac_hi; then
7381 ac_mid
=`expr 2 '*' $ac_mid`
7383 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7386 echo "$as_me: failed program was:" >&5
7387 sed 's/^/| /' conftest.
$ac_ext >&5
7391 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7393 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7394 # Binary search between lo and hi bounds.
7395 while test "x$ac_lo" != "x$ac_hi"; do
7396 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7397 cat >conftest.
$ac_ext <<_ACEOF
7400 cat confdefs.h
>>conftest.
$ac_ext
7401 cat >>conftest.
$ac_ext <<_ACEOF
7402 /* end confdefs.h. */
7403 $ac_includes_default
7407 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
7414 rm -f conftest.
$ac_objext
7415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7416 (eval $ac_compile) 2>conftest.er1
7418 grep -v '^ *+' conftest.er1
>conftest.err
7420 cat conftest.err
>&5
7421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7422 (exit $ac_status); } &&
7423 { ac_try
='test -z "$ac_c_werror_flag"
7424 || test ! -s conftest.err'
7425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7429 (exit $ac_status); }; } &&
7430 { ac_try
='test -s conftest.$ac_objext'
7431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7435 (exit $ac_status); }; }; then
7438 echo "$as_me: failed program was:" >&5
7439 sed 's/^/| /' conftest.
$ac_ext >&5
7441 ac_lo
=`expr '(' $ac_mid ')' + 1`
7443 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7446 ?
*) ac_cv_sizeof_void_p
=$ac_lo;;
7447 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
7448 See \`config.log' for more details." >&5
7449 echo "$as_me: error: cannot compute sizeof (void *), 77
7450 See \`config.log' for more details." >&2;}
7451 { (exit 1); exit 1; }; } ;;
7454 if test "$cross_compiling" = yes; then
7455 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7456 See \`config.log' for more details." >&5
7457 echo "$as_me: error: cannot run test program while cross compiling
7458 See \`config.log' for more details." >&2;}
7459 { (exit 1); exit 1; }; }
7461 cat >conftest.
$ac_ext <<_ACEOF
7464 cat confdefs.h
>>conftest.
$ac_ext
7465 cat >>conftest.
$ac_ext <<_ACEOF
7466 /* end confdefs.h. */
7467 $ac_includes_default
7468 long longval () { return (long) (sizeof (void *)); }
7469 unsigned long ulongval () { return (long) (sizeof (void *)); }
7476 FILE *f = fopen ("conftest.val", "w");
7479 if (((long) (sizeof (void *))) < 0)
7481 long i = longval ();
7482 if (i != ((long) (sizeof (void *))))
7484 fprintf (f, "%ld\n", i);
7488 unsigned long i = ulongval ();
7489 if (i != ((long) (sizeof (void *))))
7491 fprintf (f, "%lu\n", i);
7493 exit (ferror (f) || fclose (f) != 0);
7499 rm -f conftest
$ac_exeext
7500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7501 (eval $ac_link) 2>&5
7503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7504 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7509 (exit $ac_status); }; }; then
7510 ac_cv_sizeof_void_p
=`cat conftest.val`
7512 echo "$as_me: program exited with status $ac_status" >&5
7513 echo "$as_me: failed program was:" >&5
7514 sed 's/^/| /' conftest.
$ac_ext >&5
7517 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
7518 See \`config.log' for more details." >&5
7519 echo "$as_me: error: cannot compute sizeof (void *), 77
7520 See \`config.log' for more details." >&2;}
7521 { (exit 1); exit 1; }; }
7523 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7528 ac_cv_sizeof_void_p
=0
7531 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
7532 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
7533 cat >>confdefs.h
<<_ACEOF
7534 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
7538 echo "$as_me:$LINENO: checking for short" >&5
7539 echo $ECHO_N "checking for short... $ECHO_C" >&6
7540 if test "${ac_cv_type_short+set}" = set; then
7541 echo $ECHO_N "(cached) $ECHO_C" >&6
7543 cat >conftest.
$ac_ext <<_ACEOF
7546 cat confdefs.h
>>conftest.
$ac_ext
7547 cat >>conftest.
$ac_ext <<_ACEOF
7548 /* end confdefs.h. */
7549 $ac_includes_default
7561 rm -f conftest.
$ac_objext
7562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7563 (eval $ac_compile) 2>conftest.er1
7565 grep -v '^ *+' conftest.er1
>conftest.err
7567 cat conftest.err
>&5
7568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7569 (exit $ac_status); } &&
7570 { ac_try
='test -z "$ac_c_werror_flag"
7571 || test ! -s conftest.err'
7572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7576 (exit $ac_status); }; } &&
7577 { ac_try
='test -s conftest.$ac_objext'
7578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7582 (exit $ac_status); }; }; then
7583 ac_cv_type_short
=yes
7585 echo "$as_me: failed program was:" >&5
7586 sed 's/^/| /' conftest.
$ac_ext >&5
7590 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7592 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
7593 echo "${ECHO_T}$ac_cv_type_short" >&6
7595 echo "$as_me:$LINENO: checking size of short" >&5
7596 echo $ECHO_N "checking size of short... $ECHO_C" >&6
7597 if test "${ac_cv_sizeof_short+set}" = set; then
7598 echo $ECHO_N "(cached) $ECHO_C" >&6
7600 if test "$ac_cv_type_short" = yes; then
7601 # The cast to unsigned long works around a bug in the HP C Compiler
7602 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7603 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7604 # This bug is HP SR number 8606223364.
7605 if test "$cross_compiling" = yes; then
7606 # Depending upon the size, compute the lo and hi bounds.
7607 cat >conftest.
$ac_ext <<_ACEOF
7610 cat confdefs.h
>>conftest.
$ac_ext
7611 cat >>conftest.
$ac_ext <<_ACEOF
7612 /* end confdefs.h. */
7613 $ac_includes_default
7617 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
7624 rm -f conftest.
$ac_objext
7625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7626 (eval $ac_compile) 2>conftest.er1
7628 grep -v '^ *+' conftest.er1
>conftest.err
7630 cat conftest.err
>&5
7631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7632 (exit $ac_status); } &&
7633 { ac_try
='test -z "$ac_c_werror_flag"
7634 || test ! -s conftest.err'
7635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7639 (exit $ac_status); }; } &&
7640 { ac_try
='test -s conftest.$ac_objext'
7641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7645 (exit $ac_status); }; }; then
7648 cat >conftest.
$ac_ext <<_ACEOF
7651 cat confdefs.h
>>conftest.
$ac_ext
7652 cat >>conftest.
$ac_ext <<_ACEOF
7653 /* end confdefs.h. */
7654 $ac_includes_default
7658 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7665 rm -f conftest.
$ac_objext
7666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7667 (eval $ac_compile) 2>conftest.er1
7669 grep -v '^ *+' conftest.er1
>conftest.err
7671 cat conftest.err
>&5
7672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7673 (exit $ac_status); } &&
7674 { ac_try
='test -z "$ac_c_werror_flag"
7675 || test ! -s conftest.err'
7676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7680 (exit $ac_status); }; } &&
7681 { ac_try
='test -s conftest.$ac_objext'
7682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7686 (exit $ac_status); }; }; then
7687 ac_hi
=$ac_mid; break
7689 echo "$as_me: failed program was:" >&5
7690 sed 's/^/| /' conftest.
$ac_ext >&5
7692 ac_lo
=`expr $ac_mid + 1`
7693 if test $ac_lo -le $ac_mid; then
7697 ac_mid
=`expr 2 '*' $ac_mid + 1`
7699 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7702 echo "$as_me: failed program was:" >&5
7703 sed 's/^/| /' conftest.
$ac_ext >&5
7705 cat >conftest.
$ac_ext <<_ACEOF
7708 cat confdefs.h
>>conftest.
$ac_ext
7709 cat >>conftest.
$ac_ext <<_ACEOF
7710 /* end confdefs.h. */
7711 $ac_includes_default
7715 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
7722 rm -f conftest.
$ac_objext
7723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7724 (eval $ac_compile) 2>conftest.er1
7726 grep -v '^ *+' conftest.er1
>conftest.err
7728 cat conftest.err
>&5
7729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7730 (exit $ac_status); } &&
7731 { ac_try
='test -z "$ac_c_werror_flag"
7732 || test ! -s conftest.err'
7733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7737 (exit $ac_status); }; } &&
7738 { ac_try
='test -s conftest.$ac_objext'
7739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7743 (exit $ac_status); }; }; then
7746 cat >conftest.
$ac_ext <<_ACEOF
7749 cat confdefs.h
>>conftest.
$ac_ext
7750 cat >>conftest.
$ac_ext <<_ACEOF
7751 /* end confdefs.h. */
7752 $ac_includes_default
7756 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
7763 rm -f conftest.
$ac_objext
7764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7765 (eval $ac_compile) 2>conftest.er1
7767 grep -v '^ *+' conftest.er1
>conftest.err
7769 cat conftest.err
>&5
7770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7771 (exit $ac_status); } &&
7772 { ac_try
='test -z "$ac_c_werror_flag"
7773 || test ! -s conftest.err'
7774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7778 (exit $ac_status); }; } &&
7779 { ac_try
='test -s conftest.$ac_objext'
7780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7784 (exit $ac_status); }; }; then
7785 ac_lo
=$ac_mid; break
7787 echo "$as_me: failed program was:" >&5
7788 sed 's/^/| /' conftest.
$ac_ext >&5
7790 ac_hi
=`expr '(' $ac_mid ')' - 1`
7791 if test $ac_mid -le $ac_hi; then
7795 ac_mid
=`expr 2 '*' $ac_mid`
7797 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7800 echo "$as_me: failed program was:" >&5
7801 sed 's/^/| /' conftest.
$ac_ext >&5
7805 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7807 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7808 # Binary search between lo and hi bounds.
7809 while test "x$ac_lo" != "x$ac_hi"; do
7810 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7811 cat >conftest.
$ac_ext <<_ACEOF
7814 cat confdefs.h
>>conftest.
$ac_ext
7815 cat >>conftest.
$ac_ext <<_ACEOF
7816 /* end confdefs.h. */
7817 $ac_includes_default
7821 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7828 rm -f conftest.
$ac_objext
7829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7830 (eval $ac_compile) 2>conftest.er1
7832 grep -v '^ *+' conftest.er1
>conftest.err
7834 cat conftest.err
>&5
7835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7836 (exit $ac_status); } &&
7837 { ac_try
='test -z "$ac_c_werror_flag"
7838 || test ! -s conftest.err'
7839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7843 (exit $ac_status); }; } &&
7844 { ac_try
='test -s conftest.$ac_objext'
7845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7849 (exit $ac_status); }; }; then
7852 echo "$as_me: failed program was:" >&5
7853 sed 's/^/| /' conftest.
$ac_ext >&5
7855 ac_lo
=`expr '(' $ac_mid ')' + 1`
7857 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7860 ?
*) ac_cv_sizeof_short
=$ac_lo;;
7861 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7862 See \`config.log' for more details." >&5
7863 echo "$as_me: error: cannot compute sizeof (short), 77
7864 See \`config.log' for more details." >&2;}
7865 { (exit 1); exit 1; }; } ;;
7868 if test "$cross_compiling" = yes; then
7869 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7870 See \`config.log' for more details." >&5
7871 echo "$as_me: error: cannot run test program while cross compiling
7872 See \`config.log' for more details." >&2;}
7873 { (exit 1); exit 1; }; }
7875 cat >conftest.
$ac_ext <<_ACEOF
7878 cat confdefs.h
>>conftest.
$ac_ext
7879 cat >>conftest.
$ac_ext <<_ACEOF
7880 /* end confdefs.h. */
7881 $ac_includes_default
7882 long longval () { return (long) (sizeof (short)); }
7883 unsigned long ulongval () { return (long) (sizeof (short)); }
7890 FILE *f = fopen ("conftest.val", "w");
7893 if (((long) (sizeof (short))) < 0)
7895 long i = longval ();
7896 if (i != ((long) (sizeof (short))))
7898 fprintf (f, "%ld\n", i);
7902 unsigned long i = ulongval ();
7903 if (i != ((long) (sizeof (short))))
7905 fprintf (f, "%lu\n", i);
7907 exit (ferror (f) || fclose (f) != 0);
7913 rm -f conftest
$ac_exeext
7914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7915 (eval $ac_link) 2>&5
7917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7918 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7923 (exit $ac_status); }; }; then
7924 ac_cv_sizeof_short
=`cat conftest.val`
7926 echo "$as_me: program exited with status $ac_status" >&5
7927 echo "$as_me: failed program was:" >&5
7928 sed 's/^/| /' conftest.
$ac_ext >&5
7931 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7932 See \`config.log' for more details." >&5
7933 echo "$as_me: error: cannot compute sizeof (short), 77
7934 See \`config.log' for more details." >&2;}
7935 { (exit 1); exit 1; }; }
7937 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7942 ac_cv_sizeof_short
=0
7945 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
7946 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
7947 cat >>confdefs.h
<<_ACEOF
7948 #define SIZEOF_SHORT $ac_cv_sizeof_short
7952 echo "$as_me:$LINENO: checking for float" >&5
7953 echo $ECHO_N "checking for float... $ECHO_C" >&6
7954 if test "${ac_cv_type_float+set}" = set; then
7955 echo $ECHO_N "(cached) $ECHO_C" >&6
7957 cat >conftest.
$ac_ext <<_ACEOF
7960 cat confdefs.h
>>conftest.
$ac_ext
7961 cat >>conftest.
$ac_ext <<_ACEOF
7962 /* end confdefs.h. */
7963 $ac_includes_default
7975 rm -f conftest.
$ac_objext
7976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7977 (eval $ac_compile) 2>conftest.er1
7979 grep -v '^ *+' conftest.er1
>conftest.err
7981 cat conftest.err
>&5
7982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7983 (exit $ac_status); } &&
7984 { ac_try
='test -z "$ac_c_werror_flag"
7985 || test ! -s conftest.err'
7986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7990 (exit $ac_status); }; } &&
7991 { ac_try
='test -s conftest.$ac_objext'
7992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7996 (exit $ac_status); }; }; then
7997 ac_cv_type_float
=yes
7999 echo "$as_me: failed program was:" >&5
8000 sed 's/^/| /' conftest.
$ac_ext >&5
8004 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8006 echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
8007 echo "${ECHO_T}$ac_cv_type_float" >&6
8009 echo "$as_me:$LINENO: checking size of float" >&5
8010 echo $ECHO_N "checking size of float... $ECHO_C" >&6
8011 if test "${ac_cv_sizeof_float+set}" = set; then
8012 echo $ECHO_N "(cached) $ECHO_C" >&6
8014 if test "$ac_cv_type_float" = yes; then
8015 # The cast to unsigned long works around a bug in the HP C Compiler
8016 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8017 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8018 # This bug is HP SR number 8606223364.
8019 if test "$cross_compiling" = yes; then
8020 # Depending upon the size, compute the lo and hi bounds.
8021 cat >conftest.
$ac_ext <<_ACEOF
8024 cat confdefs.h
>>conftest.
$ac_ext
8025 cat >>conftest.
$ac_ext <<_ACEOF
8026 /* end confdefs.h. */
8027 $ac_includes_default
8031 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)];
8038 rm -f conftest.
$ac_objext
8039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8040 (eval $ac_compile) 2>conftest.er1
8042 grep -v '^ *+' conftest.er1
>conftest.err
8044 cat conftest.err
>&5
8045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8046 (exit $ac_status); } &&
8047 { ac_try
='test -z "$ac_c_werror_flag"
8048 || test ! -s conftest.err'
8049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8053 (exit $ac_status); }; } &&
8054 { ac_try
='test -s conftest.$ac_objext'
8055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8059 (exit $ac_status); }; }; then
8062 cat >conftest.
$ac_ext <<_ACEOF
8065 cat confdefs.h
>>conftest.
$ac_ext
8066 cat >>conftest.
$ac_ext <<_ACEOF
8067 /* end confdefs.h. */
8068 $ac_includes_default
8072 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
8079 rm -f conftest.
$ac_objext
8080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8081 (eval $ac_compile) 2>conftest.er1
8083 grep -v '^ *+' conftest.er1
>conftest.err
8085 cat conftest.err
>&5
8086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8087 (exit $ac_status); } &&
8088 { ac_try
='test -z "$ac_c_werror_flag"
8089 || test ! -s conftest.err'
8090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8094 (exit $ac_status); }; } &&
8095 { ac_try
='test -s conftest.$ac_objext'
8096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8100 (exit $ac_status); }; }; then
8101 ac_hi
=$ac_mid; break
8103 echo "$as_me: failed program was:" >&5
8104 sed 's/^/| /' conftest.
$ac_ext >&5
8106 ac_lo
=`expr $ac_mid + 1`
8107 if test $ac_lo -le $ac_mid; then
8111 ac_mid
=`expr 2 '*' $ac_mid + 1`
8113 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8116 echo "$as_me: failed program was:" >&5
8117 sed 's/^/| /' conftest.
$ac_ext >&5
8119 cat >conftest.
$ac_ext <<_ACEOF
8122 cat confdefs.h
>>conftest.
$ac_ext
8123 cat >>conftest.
$ac_ext <<_ACEOF
8124 /* end confdefs.h. */
8125 $ac_includes_default
8129 static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)];
8136 rm -f conftest.
$ac_objext
8137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8138 (eval $ac_compile) 2>conftest.er1
8140 grep -v '^ *+' conftest.er1
>conftest.err
8142 cat conftest.err
>&5
8143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8144 (exit $ac_status); } &&
8145 { ac_try
='test -z "$ac_c_werror_flag"
8146 || test ! -s conftest.err'
8147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8151 (exit $ac_status); }; } &&
8152 { ac_try
='test -s conftest.$ac_objext'
8153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8157 (exit $ac_status); }; }; then
8160 cat >conftest.
$ac_ext <<_ACEOF
8163 cat confdefs.h
>>conftest.
$ac_ext
8164 cat >>conftest.
$ac_ext <<_ACEOF
8165 /* end confdefs.h. */
8166 $ac_includes_default
8170 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)];
8177 rm -f conftest.
$ac_objext
8178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8179 (eval $ac_compile) 2>conftest.er1
8181 grep -v '^ *+' conftest.er1
>conftest.err
8183 cat conftest.err
>&5
8184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8185 (exit $ac_status); } &&
8186 { ac_try
='test -z "$ac_c_werror_flag"
8187 || test ! -s conftest.err'
8188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8192 (exit $ac_status); }; } &&
8193 { ac_try
='test -s conftest.$ac_objext'
8194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8198 (exit $ac_status); }; }; then
8199 ac_lo
=$ac_mid; break
8201 echo "$as_me: failed program was:" >&5
8202 sed 's/^/| /' conftest.
$ac_ext >&5
8204 ac_hi
=`expr '(' $ac_mid ')' - 1`
8205 if test $ac_mid -le $ac_hi; then
8209 ac_mid
=`expr 2 '*' $ac_mid`
8211 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8214 echo "$as_me: failed program was:" >&5
8215 sed 's/^/| /' conftest.
$ac_ext >&5
8219 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8221 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8222 # Binary search between lo and hi bounds.
8223 while test "x$ac_lo" != "x$ac_hi"; do
8224 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8225 cat >conftest.
$ac_ext <<_ACEOF
8228 cat confdefs.h
>>conftest.
$ac_ext
8229 cat >>conftest.
$ac_ext <<_ACEOF
8230 /* end confdefs.h. */
8231 $ac_includes_default
8235 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
8242 rm -f conftest.
$ac_objext
8243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8244 (eval $ac_compile) 2>conftest.er1
8246 grep -v '^ *+' conftest.er1
>conftest.err
8248 cat conftest.err
>&5
8249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8250 (exit $ac_status); } &&
8251 { ac_try
='test -z "$ac_c_werror_flag"
8252 || test ! -s conftest.err'
8253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257 (exit $ac_status); }; } &&
8258 { ac_try
='test -s conftest.$ac_objext'
8259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8263 (exit $ac_status); }; }; then
8266 echo "$as_me: failed program was:" >&5
8267 sed 's/^/| /' conftest.
$ac_ext >&5
8269 ac_lo
=`expr '(' $ac_mid ')' + 1`
8271 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8274 ?
*) ac_cv_sizeof_float
=$ac_lo;;
8275 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
8276 See \`config.log' for more details." >&5
8277 echo "$as_me: error: cannot compute sizeof (float), 77
8278 See \`config.log' for more details." >&2;}
8279 { (exit 1); exit 1; }; } ;;
8282 if test "$cross_compiling" = yes; then
8283 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8284 See \`config.log' for more details." >&5
8285 echo "$as_me: error: cannot run test program while cross compiling
8286 See \`config.log' for more details." >&2;}
8287 { (exit 1); exit 1; }; }
8289 cat >conftest.
$ac_ext <<_ACEOF
8292 cat confdefs.h
>>conftest.
$ac_ext
8293 cat >>conftest.
$ac_ext <<_ACEOF
8294 /* end confdefs.h. */
8295 $ac_includes_default
8296 long longval () { return (long) (sizeof (float)); }
8297 unsigned long ulongval () { return (long) (sizeof (float)); }
8304 FILE *f = fopen ("conftest.val", "w");
8307 if (((long) (sizeof (float))) < 0)
8309 long i = longval ();
8310 if (i != ((long) (sizeof (float))))
8312 fprintf (f, "%ld\n", i);
8316 unsigned long i = ulongval ();
8317 if (i != ((long) (sizeof (float))))
8319 fprintf (f, "%lu\n", i);
8321 exit (ferror (f) || fclose (f) != 0);
8327 rm -f conftest
$ac_exeext
8328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8329 (eval $ac_link) 2>&5
8331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8332 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8337 (exit $ac_status); }; }; then
8338 ac_cv_sizeof_float
=`cat conftest.val`
8340 echo "$as_me: program exited with status $ac_status" >&5
8341 echo "$as_me: failed program was:" >&5
8342 sed 's/^/| /' conftest.
$ac_ext >&5
8345 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
8346 See \`config.log' for more details." >&5
8347 echo "$as_me: error: cannot compute sizeof (float), 77
8348 See \`config.log' for more details." >&2;}
8349 { (exit 1); exit 1; }; }
8351 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8356 ac_cv_sizeof_float
=0
8359 echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
8360 echo "${ECHO_T}$ac_cv_sizeof_float" >&6
8361 cat >>confdefs.h
<<_ACEOF
8362 #define SIZEOF_FLOAT $ac_cv_sizeof_float
8366 echo "$as_me:$LINENO: checking for double" >&5
8367 echo $ECHO_N "checking for double... $ECHO_C" >&6
8368 if test "${ac_cv_type_double+set}" = set; then
8369 echo $ECHO_N "(cached) $ECHO_C" >&6
8371 cat >conftest.
$ac_ext <<_ACEOF
8374 cat confdefs.h
>>conftest.
$ac_ext
8375 cat >>conftest.
$ac_ext <<_ACEOF
8376 /* end confdefs.h. */
8377 $ac_includes_default
8383 if (sizeof (double))
8389 rm -f conftest.
$ac_objext
8390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8391 (eval $ac_compile) 2>conftest.er1
8393 grep -v '^ *+' conftest.er1
>conftest.err
8395 cat conftest.err
>&5
8396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8397 (exit $ac_status); } &&
8398 { ac_try
='test -z "$ac_c_werror_flag"
8399 || test ! -s conftest.err'
8400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8404 (exit $ac_status); }; } &&
8405 { ac_try
='test -s conftest.$ac_objext'
8406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410 (exit $ac_status); }; }; then
8411 ac_cv_type_double
=yes
8413 echo "$as_me: failed program was:" >&5
8414 sed 's/^/| /' conftest.
$ac_ext >&5
8416 ac_cv_type_double
=no
8418 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8420 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
8421 echo "${ECHO_T}$ac_cv_type_double" >&6
8423 echo "$as_me:$LINENO: checking size of double" >&5
8424 echo $ECHO_N "checking size of double... $ECHO_C" >&6
8425 if test "${ac_cv_sizeof_double+set}" = set; then
8426 echo $ECHO_N "(cached) $ECHO_C" >&6
8428 if test "$ac_cv_type_double" = yes; then
8429 # The cast to unsigned long works around a bug in the HP C Compiler
8430 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8431 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8432 # This bug is HP SR number 8606223364.
8433 if test "$cross_compiling" = yes; then
8434 # Depending upon the size, compute the lo and hi bounds.
8435 cat >conftest.
$ac_ext <<_ACEOF
8438 cat confdefs.h
>>conftest.
$ac_ext
8439 cat >>conftest.
$ac_ext <<_ACEOF
8440 /* end confdefs.h. */
8441 $ac_includes_default
8445 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
8452 rm -f conftest.
$ac_objext
8453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8454 (eval $ac_compile) 2>conftest.er1
8456 grep -v '^ *+' conftest.er1
>conftest.err
8458 cat conftest.err
>&5
8459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460 (exit $ac_status); } &&
8461 { ac_try
='test -z "$ac_c_werror_flag"
8462 || test ! -s conftest.err'
8463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467 (exit $ac_status); }; } &&
8468 { ac_try
='test -s conftest.$ac_objext'
8469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8473 (exit $ac_status); }; }; then
8476 cat >conftest.
$ac_ext <<_ACEOF
8479 cat confdefs.h
>>conftest.
$ac_ext
8480 cat >>conftest.
$ac_ext <<_ACEOF
8481 /* end confdefs.h. */
8482 $ac_includes_default
8486 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
8493 rm -f conftest.
$ac_objext
8494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8495 (eval $ac_compile) 2>conftest.er1
8497 grep -v '^ *+' conftest.er1
>conftest.err
8499 cat conftest.err
>&5
8500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8501 (exit $ac_status); } &&
8502 { ac_try
='test -z "$ac_c_werror_flag"
8503 || test ! -s conftest.err'
8504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508 (exit $ac_status); }; } &&
8509 { ac_try
='test -s conftest.$ac_objext'
8510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8514 (exit $ac_status); }; }; then
8515 ac_hi
=$ac_mid; break
8517 echo "$as_me: failed program was:" >&5
8518 sed 's/^/| /' conftest.
$ac_ext >&5
8520 ac_lo
=`expr $ac_mid + 1`
8521 if test $ac_lo -le $ac_mid; then
8525 ac_mid
=`expr 2 '*' $ac_mid + 1`
8527 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8530 echo "$as_me: failed program was:" >&5
8531 sed 's/^/| /' conftest.
$ac_ext >&5
8533 cat >conftest.
$ac_ext <<_ACEOF
8536 cat confdefs.h
>>conftest.
$ac_ext
8537 cat >>conftest.
$ac_ext <<_ACEOF
8538 /* end confdefs.h. */
8539 $ac_includes_default
8543 static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
8550 rm -f conftest.
$ac_objext
8551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8552 (eval $ac_compile) 2>conftest.er1
8554 grep -v '^ *+' conftest.er1
>conftest.err
8556 cat conftest.err
>&5
8557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8558 (exit $ac_status); } &&
8559 { ac_try
='test -z "$ac_c_werror_flag"
8560 || test ! -s conftest.err'
8561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565 (exit $ac_status); }; } &&
8566 { ac_try
='test -s conftest.$ac_objext'
8567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8571 (exit $ac_status); }; }; then
8574 cat >conftest.
$ac_ext <<_ACEOF
8577 cat confdefs.h
>>conftest.
$ac_ext
8578 cat >>conftest.
$ac_ext <<_ACEOF
8579 /* end confdefs.h. */
8580 $ac_includes_default
8584 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
8591 rm -f conftest.
$ac_objext
8592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8593 (eval $ac_compile) 2>conftest.er1
8595 grep -v '^ *+' conftest.er1
>conftest.err
8597 cat conftest.err
>&5
8598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8599 (exit $ac_status); } &&
8600 { ac_try
='test -z "$ac_c_werror_flag"
8601 || test ! -s conftest.err'
8602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8606 (exit $ac_status); }; } &&
8607 { ac_try
='test -s conftest.$ac_objext'
8608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612 (exit $ac_status); }; }; then
8613 ac_lo
=$ac_mid; break
8615 echo "$as_me: failed program was:" >&5
8616 sed 's/^/| /' conftest.
$ac_ext >&5
8618 ac_hi
=`expr '(' $ac_mid ')' - 1`
8619 if test $ac_mid -le $ac_hi; then
8623 ac_mid
=`expr 2 '*' $ac_mid`
8625 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8628 echo "$as_me: failed program was:" >&5
8629 sed 's/^/| /' conftest.
$ac_ext >&5
8633 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8635 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8636 # Binary search between lo and hi bounds.
8637 while test "x$ac_lo" != "x$ac_hi"; do
8638 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8639 cat >conftest.
$ac_ext <<_ACEOF
8642 cat confdefs.h
>>conftest.
$ac_ext
8643 cat >>conftest.
$ac_ext <<_ACEOF
8644 /* end confdefs.h. */
8645 $ac_includes_default
8649 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
8656 rm -f conftest.
$ac_objext
8657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8658 (eval $ac_compile) 2>conftest.er1
8660 grep -v '^ *+' conftest.er1
>conftest.err
8662 cat conftest.err
>&5
8663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8664 (exit $ac_status); } &&
8665 { ac_try
='test -z "$ac_c_werror_flag"
8666 || test ! -s conftest.err'
8667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8671 (exit $ac_status); }; } &&
8672 { ac_try
='test -s conftest.$ac_objext'
8673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8677 (exit $ac_status); }; }; then
8680 echo "$as_me: failed program was:" >&5
8681 sed 's/^/| /' conftest.
$ac_ext >&5
8683 ac_lo
=`expr '(' $ac_mid ')' + 1`
8685 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8688 ?
*) ac_cv_sizeof_double
=$ac_lo;;
8689 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
8690 See \`config.log' for more details." >&5
8691 echo "$as_me: error: cannot compute sizeof (double), 77
8692 See \`config.log' for more details." >&2;}
8693 { (exit 1); exit 1; }; } ;;
8696 if test "$cross_compiling" = yes; then
8697 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8698 See \`config.log' for more details." >&5
8699 echo "$as_me: error: cannot run test program while cross compiling
8700 See \`config.log' for more details." >&2;}
8701 { (exit 1); exit 1; }; }
8703 cat >conftest.
$ac_ext <<_ACEOF
8706 cat confdefs.h
>>conftest.
$ac_ext
8707 cat >>conftest.
$ac_ext <<_ACEOF
8708 /* end confdefs.h. */
8709 $ac_includes_default
8710 long longval () { return (long) (sizeof (double)); }
8711 unsigned long ulongval () { return (long) (sizeof (double)); }
8718 FILE *f = fopen ("conftest.val", "w");
8721 if (((long) (sizeof (double))) < 0)
8723 long i = longval ();
8724 if (i != ((long) (sizeof (double))))
8726 fprintf (f, "%ld\n", i);
8730 unsigned long i = ulongval ();
8731 if (i != ((long) (sizeof (double))))
8733 fprintf (f, "%lu\n", i);
8735 exit (ferror (f) || fclose (f) != 0);
8741 rm -f conftest
$ac_exeext
8742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8743 (eval $ac_link) 2>&5
8745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8746 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8751 (exit $ac_status); }; }; then
8752 ac_cv_sizeof_double
=`cat conftest.val`
8754 echo "$as_me: program exited with status $ac_status" >&5
8755 echo "$as_me: failed program was:" >&5
8756 sed 's/^/| /' conftest.
$ac_ext >&5
8759 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
8760 See \`config.log' for more details." >&5
8761 echo "$as_me: error: cannot compute sizeof (double), 77
8762 See \`config.log' for more details." >&2;}
8763 { (exit 1); exit 1; }; }
8765 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8770 ac_cv_sizeof_double
=0
8773 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
8774 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
8775 cat >>confdefs.h
<<_ACEOF
8776 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
8780 echo "$as_me:$LINENO: checking for fpos_t" >&5
8781 echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6
8782 if test "${ac_cv_type_fpos_t+set}" = set; then
8783 echo $ECHO_N "(cached) $ECHO_C" >&6
8785 cat >conftest.
$ac_ext <<_ACEOF
8788 cat confdefs.h
>>conftest.
$ac_ext
8789 cat >>conftest.
$ac_ext <<_ACEOF
8790 /* end confdefs.h. */
8791 $ac_includes_default
8797 if (sizeof (fpos_t))
8803 rm -f conftest.
$ac_objext
8804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8805 (eval $ac_compile) 2>conftest.er1
8807 grep -v '^ *+' conftest.er1
>conftest.err
8809 cat conftest.err
>&5
8810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8811 (exit $ac_status); } &&
8812 { ac_try
='test -z "$ac_c_werror_flag"
8813 || test ! -s conftest.err'
8814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8818 (exit $ac_status); }; } &&
8819 { ac_try
='test -s conftest.$ac_objext'
8820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8824 (exit $ac_status); }; }; then
8825 ac_cv_type_fpos_t
=yes
8827 echo "$as_me: failed program was:" >&5
8828 sed 's/^/| /' conftest.
$ac_ext >&5
8830 ac_cv_type_fpos_t
=no
8832 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8834 echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
8835 echo "${ECHO_T}$ac_cv_type_fpos_t" >&6
8837 echo "$as_me:$LINENO: checking size of fpos_t" >&5
8838 echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6
8839 if test "${ac_cv_sizeof_fpos_t+set}" = set; then
8840 echo $ECHO_N "(cached) $ECHO_C" >&6
8842 if test "$ac_cv_type_fpos_t" = yes; then
8843 # The cast to unsigned long works around a bug in the HP C Compiler
8844 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8845 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8846 # This bug is HP SR number 8606223364.
8847 if test "$cross_compiling" = yes; then
8848 # Depending upon the size, compute the lo and hi bounds.
8849 cat >conftest.
$ac_ext <<_ACEOF
8852 cat confdefs.h
>>conftest.
$ac_ext
8853 cat >>conftest.
$ac_ext <<_ACEOF
8854 /* end confdefs.h. */
8855 $ac_includes_default
8859 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= 0)];
8866 rm -f conftest.
$ac_objext
8867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8868 (eval $ac_compile) 2>conftest.er1
8870 grep -v '^ *+' conftest.er1
>conftest.err
8872 cat conftest.err
>&5
8873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8874 (exit $ac_status); } &&
8875 { ac_try
='test -z "$ac_c_werror_flag"
8876 || test ! -s conftest.err'
8877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8881 (exit $ac_status); }; } &&
8882 { ac_try
='test -s conftest.$ac_objext'
8883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8887 (exit $ac_status); }; }; then
8890 cat >conftest.
$ac_ext <<_ACEOF
8893 cat confdefs.h
>>conftest.
$ac_ext
8894 cat >>conftest.
$ac_ext <<_ACEOF
8895 /* end confdefs.h. */
8896 $ac_includes_default
8900 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)];
8907 rm -f conftest.
$ac_objext
8908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8909 (eval $ac_compile) 2>conftest.er1
8911 grep -v '^ *+' conftest.er1
>conftest.err
8913 cat conftest.err
>&5
8914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8915 (exit $ac_status); } &&
8916 { ac_try
='test -z "$ac_c_werror_flag"
8917 || test ! -s conftest.err'
8918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8922 (exit $ac_status); }; } &&
8923 { ac_try
='test -s conftest.$ac_objext'
8924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8928 (exit $ac_status); }; }; then
8929 ac_hi
=$ac_mid; break
8931 echo "$as_me: failed program was:" >&5
8932 sed 's/^/| /' conftest.
$ac_ext >&5
8934 ac_lo
=`expr $ac_mid + 1`
8935 if test $ac_lo -le $ac_mid; then
8939 ac_mid
=`expr 2 '*' $ac_mid + 1`
8941 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8944 echo "$as_me: failed program was:" >&5
8945 sed 's/^/| /' conftest.
$ac_ext >&5
8947 cat >conftest.
$ac_ext <<_ACEOF
8950 cat confdefs.h
>>conftest.
$ac_ext
8951 cat >>conftest.
$ac_ext <<_ACEOF
8952 /* end confdefs.h. */
8953 $ac_includes_default
8957 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) < 0)];
8964 rm -f conftest.
$ac_objext
8965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8966 (eval $ac_compile) 2>conftest.er1
8968 grep -v '^ *+' conftest.er1
>conftest.err
8970 cat conftest.err
>&5
8971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8972 (exit $ac_status); } &&
8973 { ac_try
='test -z "$ac_c_werror_flag"
8974 || test ! -s conftest.err'
8975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8979 (exit $ac_status); }; } &&
8980 { ac_try
='test -s conftest.$ac_objext'
8981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8985 (exit $ac_status); }; }; then
8988 cat >conftest.
$ac_ext <<_ACEOF
8991 cat confdefs.h
>>conftest.
$ac_ext
8992 cat >>conftest.
$ac_ext <<_ACEOF
8993 /* end confdefs.h. */
8994 $ac_includes_default
8998 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= $ac_mid)];
9005 rm -f conftest.
$ac_objext
9006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9007 (eval $ac_compile) 2>conftest.er1
9009 grep -v '^ *+' conftest.er1
>conftest.err
9011 cat conftest.err
>&5
9012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9013 (exit $ac_status); } &&
9014 { ac_try
='test -z "$ac_c_werror_flag"
9015 || test ! -s conftest.err'
9016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9020 (exit $ac_status); }; } &&
9021 { ac_try
='test -s conftest.$ac_objext'
9022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9026 (exit $ac_status); }; }; then
9027 ac_lo
=$ac_mid; break
9029 echo "$as_me: failed program was:" >&5
9030 sed 's/^/| /' conftest.
$ac_ext >&5
9032 ac_hi
=`expr '(' $ac_mid ')' - 1`
9033 if test $ac_mid -le $ac_hi; then
9037 ac_mid
=`expr 2 '*' $ac_mid`
9039 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9042 echo "$as_me: failed program was:" >&5
9043 sed 's/^/| /' conftest.
$ac_ext >&5
9047 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9049 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9050 # Binary search between lo and hi bounds.
9051 while test "x$ac_lo" != "x$ac_hi"; do
9052 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9053 cat >conftest.
$ac_ext <<_ACEOF
9056 cat confdefs.h
>>conftest.
$ac_ext
9057 cat >>conftest.
$ac_ext <<_ACEOF
9058 /* end confdefs.h. */
9059 $ac_includes_default
9063 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)];
9070 rm -f conftest.
$ac_objext
9071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9072 (eval $ac_compile) 2>conftest.er1
9074 grep -v '^ *+' conftest.er1
>conftest.err
9076 cat conftest.err
>&5
9077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9078 (exit $ac_status); } &&
9079 { ac_try
='test -z "$ac_c_werror_flag"
9080 || test ! -s conftest.err'
9081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9085 (exit $ac_status); }; } &&
9086 { ac_try
='test -s conftest.$ac_objext'
9087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9091 (exit $ac_status); }; }; then
9094 echo "$as_me: failed program was:" >&5
9095 sed 's/^/| /' conftest.
$ac_ext >&5
9097 ac_lo
=`expr '(' $ac_mid ')' + 1`
9099 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9102 ?
*) ac_cv_sizeof_fpos_t
=$ac_lo;;
9103 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77
9104 See \`config.log' for more details." >&5
9105 echo "$as_me: error: cannot compute sizeof (fpos_t), 77
9106 See \`config.log' for more details." >&2;}
9107 { (exit 1); exit 1; }; } ;;
9110 if test "$cross_compiling" = yes; then
9111 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9112 See \`config.log' for more details." >&5
9113 echo "$as_me: error: cannot run test program while cross compiling
9114 See \`config.log' for more details." >&2;}
9115 { (exit 1); exit 1; }; }
9117 cat >conftest.
$ac_ext <<_ACEOF
9120 cat confdefs.h
>>conftest.
$ac_ext
9121 cat >>conftest.
$ac_ext <<_ACEOF
9122 /* end confdefs.h. */
9123 $ac_includes_default
9124 long longval () { return (long) (sizeof (fpos_t)); }
9125 unsigned long ulongval () { return (long) (sizeof (fpos_t)); }
9132 FILE *f = fopen ("conftest.val", "w");
9135 if (((long) (sizeof (fpos_t))) < 0)
9137 long i = longval ();
9138 if (i != ((long) (sizeof (fpos_t))))
9140 fprintf (f, "%ld\n", i);
9144 unsigned long i = ulongval ();
9145 if (i != ((long) (sizeof (fpos_t))))
9147 fprintf (f, "%lu\n", i);
9149 exit (ferror (f) || fclose (f) != 0);
9155 rm -f conftest
$ac_exeext
9156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9157 (eval $ac_link) 2>&5
9159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9160 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9165 (exit $ac_status); }; }; then
9166 ac_cv_sizeof_fpos_t
=`cat conftest.val`
9168 echo "$as_me: program exited with status $ac_status" >&5
9169 echo "$as_me: failed program was:" >&5
9170 sed 's/^/| /' conftest.
$ac_ext >&5
9173 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77
9174 See \`config.log' for more details." >&5
9175 echo "$as_me: error: cannot compute sizeof (fpos_t), 77
9176 See \`config.log' for more details." >&2;}
9177 { (exit 1); exit 1; }; }
9179 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9184 ac_cv_sizeof_fpos_t
=0
9187 echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
9188 echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6
9189 cat >>confdefs.h
<<_ACEOF
9190 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
9194 echo "$as_me:$LINENO: checking for size_t" >&5
9195 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
9196 if test "${ac_cv_type_size_t+set}" = set; then
9197 echo $ECHO_N "(cached) $ECHO_C" >&6
9199 cat >conftest.
$ac_ext <<_ACEOF
9202 cat confdefs.h
>>conftest.
$ac_ext
9203 cat >>conftest.
$ac_ext <<_ACEOF
9204 /* end confdefs.h. */
9205 $ac_includes_default
9211 if (sizeof (size_t))
9217 rm -f conftest.
$ac_objext
9218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9219 (eval $ac_compile) 2>conftest.er1
9221 grep -v '^ *+' conftest.er1
>conftest.err
9223 cat conftest.err
>&5
9224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9225 (exit $ac_status); } &&
9226 { ac_try
='test -z "$ac_c_werror_flag"
9227 || test ! -s conftest.err'
9228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9232 (exit $ac_status); }; } &&
9233 { ac_try
='test -s conftest.$ac_objext'
9234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9238 (exit $ac_status); }; }; then
9239 ac_cv_type_size_t
=yes
9241 echo "$as_me: failed program was:" >&5
9242 sed 's/^/| /' conftest.
$ac_ext >&5
9244 ac_cv_type_size_t
=no
9246 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9248 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9249 echo "${ECHO_T}$ac_cv_type_size_t" >&6
9251 echo "$as_me:$LINENO: checking size of size_t" >&5
9252 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
9253 if test "${ac_cv_sizeof_size_t+set}" = set; then
9254 echo $ECHO_N "(cached) $ECHO_C" >&6
9256 if test "$ac_cv_type_size_t" = yes; then
9257 # The cast to unsigned long works around a bug in the HP C Compiler
9258 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9259 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9260 # This bug is HP SR number 8606223364.
9261 if test "$cross_compiling" = yes; then
9262 # Depending upon the size, compute the lo and hi bounds.
9263 cat >conftest.
$ac_ext <<_ACEOF
9266 cat confdefs.h
>>conftest.
$ac_ext
9267 cat >>conftest.
$ac_ext <<_ACEOF
9268 /* end confdefs.h. */
9269 $ac_includes_default
9273 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
9280 rm -f conftest.
$ac_objext
9281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9282 (eval $ac_compile) 2>conftest.er1
9284 grep -v '^ *+' conftest.er1
>conftest.err
9286 cat conftest.err
>&5
9287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9288 (exit $ac_status); } &&
9289 { ac_try
='test -z "$ac_c_werror_flag"
9290 || test ! -s conftest.err'
9291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9295 (exit $ac_status); }; } &&
9296 { ac_try
='test -s conftest.$ac_objext'
9297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9301 (exit $ac_status); }; }; then
9304 cat >conftest.
$ac_ext <<_ACEOF
9307 cat confdefs.h
>>conftest.
$ac_ext
9308 cat >>conftest.
$ac_ext <<_ACEOF
9309 /* end confdefs.h. */
9310 $ac_includes_default
9314 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
9321 rm -f conftest.
$ac_objext
9322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9323 (eval $ac_compile) 2>conftest.er1
9325 grep -v '^ *+' conftest.er1
>conftest.err
9327 cat conftest.err
>&5
9328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9329 (exit $ac_status); } &&
9330 { ac_try
='test -z "$ac_c_werror_flag"
9331 || test ! -s conftest.err'
9332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9336 (exit $ac_status); }; } &&
9337 { ac_try
='test -s conftest.$ac_objext'
9338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9342 (exit $ac_status); }; }; then
9343 ac_hi
=$ac_mid; break
9345 echo "$as_me: failed program was:" >&5
9346 sed 's/^/| /' conftest.
$ac_ext >&5
9348 ac_lo
=`expr $ac_mid + 1`
9349 if test $ac_lo -le $ac_mid; then
9353 ac_mid
=`expr 2 '*' $ac_mid + 1`
9355 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9358 echo "$as_me: failed program was:" >&5
9359 sed 's/^/| /' conftest.
$ac_ext >&5
9361 cat >conftest.
$ac_ext <<_ACEOF
9364 cat confdefs.h
>>conftest.
$ac_ext
9365 cat >>conftest.
$ac_ext <<_ACEOF
9366 /* end confdefs.h. */
9367 $ac_includes_default
9371 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
9378 rm -f conftest.
$ac_objext
9379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9380 (eval $ac_compile) 2>conftest.er1
9382 grep -v '^ *+' conftest.er1
>conftest.err
9384 cat conftest.err
>&5
9385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9386 (exit $ac_status); } &&
9387 { ac_try
='test -z "$ac_c_werror_flag"
9388 || test ! -s conftest.err'
9389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393 (exit $ac_status); }; } &&
9394 { ac_try
='test -s conftest.$ac_objext'
9395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9399 (exit $ac_status); }; }; then
9402 cat >conftest.
$ac_ext <<_ACEOF
9405 cat confdefs.h
>>conftest.
$ac_ext
9406 cat >>conftest.
$ac_ext <<_ACEOF
9407 /* end confdefs.h. */
9408 $ac_includes_default
9412 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
9419 rm -f conftest.
$ac_objext
9420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9421 (eval $ac_compile) 2>conftest.er1
9423 grep -v '^ *+' conftest.er1
>conftest.err
9425 cat conftest.err
>&5
9426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9427 (exit $ac_status); } &&
9428 { ac_try
='test -z "$ac_c_werror_flag"
9429 || test ! -s conftest.err'
9430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9434 (exit $ac_status); }; } &&
9435 { ac_try
='test -s conftest.$ac_objext'
9436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9440 (exit $ac_status); }; }; then
9441 ac_lo
=$ac_mid; break
9443 echo "$as_me: failed program was:" >&5
9444 sed 's/^/| /' conftest.
$ac_ext >&5
9446 ac_hi
=`expr '(' $ac_mid ')' - 1`
9447 if test $ac_mid -le $ac_hi; then
9451 ac_mid
=`expr 2 '*' $ac_mid`
9453 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9456 echo "$as_me: failed program was:" >&5
9457 sed 's/^/| /' conftest.
$ac_ext >&5
9461 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9463 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9464 # Binary search between lo and hi bounds.
9465 while test "x$ac_lo" != "x$ac_hi"; do
9466 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9467 cat >conftest.
$ac_ext <<_ACEOF
9470 cat confdefs.h
>>conftest.
$ac_ext
9471 cat >>conftest.
$ac_ext <<_ACEOF
9472 /* end confdefs.h. */
9473 $ac_includes_default
9477 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
9484 rm -f conftest.
$ac_objext
9485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9486 (eval $ac_compile) 2>conftest.er1
9488 grep -v '^ *+' conftest.er1
>conftest.err
9490 cat conftest.err
>&5
9491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9492 (exit $ac_status); } &&
9493 { ac_try
='test -z "$ac_c_werror_flag"
9494 || test ! -s conftest.err'
9495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9499 (exit $ac_status); }; } &&
9500 { ac_try
='test -s conftest.$ac_objext'
9501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9505 (exit $ac_status); }; }; then
9508 echo "$as_me: failed program was:" >&5
9509 sed 's/^/| /' conftest.
$ac_ext >&5
9511 ac_lo
=`expr '(' $ac_mid ')' + 1`
9513 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9516 ?
*) ac_cv_sizeof_size_t
=$ac_lo;;
9517 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
9518 See \`config.log' for more details." >&5
9519 echo "$as_me: error: cannot compute sizeof (size_t), 77
9520 See \`config.log' for more details." >&2;}
9521 { (exit 1); exit 1; }; } ;;
9524 if test "$cross_compiling" = yes; then
9525 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9526 See \`config.log' for more details." >&5
9527 echo "$as_me: error: cannot run test program while cross compiling
9528 See \`config.log' for more details." >&2;}
9529 { (exit 1); exit 1; }; }
9531 cat >conftest.
$ac_ext <<_ACEOF
9534 cat confdefs.h
>>conftest.
$ac_ext
9535 cat >>conftest.
$ac_ext <<_ACEOF
9536 /* end confdefs.h. */
9537 $ac_includes_default
9538 long longval () { return (long) (sizeof (size_t)); }
9539 unsigned long ulongval () { return (long) (sizeof (size_t)); }
9546 FILE *f = fopen ("conftest.val", "w");
9549 if (((long) (sizeof (size_t))) < 0)
9551 long i = longval ();
9552 if (i != ((long) (sizeof (size_t))))
9554 fprintf (f, "%ld\n", i);
9558 unsigned long i = ulongval ();
9559 if (i != ((long) (sizeof (size_t))))
9561 fprintf (f, "%lu\n", i);
9563 exit (ferror (f) || fclose (f) != 0);
9569 rm -f conftest
$ac_exeext
9570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9571 (eval $ac_link) 2>&5
9573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9574 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9579 (exit $ac_status); }; }; then
9580 ac_cv_sizeof_size_t
=`cat conftest.val`
9582 echo "$as_me: program exited with status $ac_status" >&5
9583 echo "$as_me: failed program was:" >&5
9584 sed 's/^/| /' conftest.
$ac_ext >&5
9587 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
9588 See \`config.log' for more details." >&5
9589 echo "$as_me: error: cannot compute sizeof (size_t), 77
9590 See \`config.log' for more details." >&2;}
9591 { (exit 1); exit 1; }; }
9593 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9598 ac_cv_sizeof_size_t
=0
9601 echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
9602 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
9603 cat >>confdefs.h
<<_ACEOF
9604 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
9609 echo "$as_me:$LINENO: checking for long long support" >&5
9610 echo $ECHO_N "checking for long long support... $ECHO_C" >&6
9612 cat >conftest.
$ac_ext <<_ACEOF
9615 cat confdefs.h
>>conftest.
$ac_ext
9616 cat >>conftest.
$ac_ext <<_ACEOF
9617 /* end confdefs.h. */
9622 long long x; x = (long long)0;
9627 rm -f conftest.
$ac_objext
9628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9629 (eval $ac_compile) 2>conftest.er1
9631 grep -v '^ *+' conftest.er1
>conftest.err
9633 cat conftest.err
>&5
9634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9635 (exit $ac_status); } &&
9636 { ac_try
='test -z "$ac_c_werror_flag"
9637 || test ! -s conftest.err'
9638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9642 (exit $ac_status); }; } &&
9643 { ac_try
='test -s conftest.$ac_objext'
9644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9648 (exit $ac_status); }; }; then
9651 cat >>confdefs.h
<<\_ACEOF
9652 #define HAVE_LONG_LONG 1
9658 echo "$as_me: failed program was:" >&5
9659 sed 's/^/| /' conftest.
$ac_ext >&5
9662 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9663 echo "$as_me:$LINENO: result: $have_long_long" >&5
9664 echo "${ECHO_T}$have_long_long" >&6
9665 if test "$have_long_long" = yes ; then
9666 echo "$as_me:$LINENO: checking for long long" >&5
9667 echo $ECHO_N "checking for long long... $ECHO_C" >&6
9668 if test "${ac_cv_type_long_long+set}" = set; then
9669 echo $ECHO_N "(cached) $ECHO_C" >&6
9671 cat >conftest.
$ac_ext <<_ACEOF
9674 cat confdefs.h
>>conftest.
$ac_ext
9675 cat >>conftest.
$ac_ext <<_ACEOF
9676 /* end confdefs.h. */
9677 $ac_includes_default
9681 if ((long long *) 0)
9683 if (sizeof (long long))
9689 rm -f conftest.
$ac_objext
9690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9691 (eval $ac_compile) 2>conftest.er1
9693 grep -v '^ *+' conftest.er1
>conftest.err
9695 cat conftest.err
>&5
9696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9697 (exit $ac_status); } &&
9698 { ac_try
='test -z "$ac_c_werror_flag"
9699 || test ! -s conftest.err'
9700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9704 (exit $ac_status); }; } &&
9705 { ac_try
='test -s conftest.$ac_objext'
9706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9710 (exit $ac_status); }; }; then
9711 ac_cv_type_long_long
=yes
9713 echo "$as_me: failed program was:" >&5
9714 sed 's/^/| /' conftest.
$ac_ext >&5
9716 ac_cv_type_long_long
=no
9718 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9720 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
9721 echo "${ECHO_T}$ac_cv_type_long_long" >&6
9723 echo "$as_me:$LINENO: checking size of long long" >&5
9724 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
9725 if test "${ac_cv_sizeof_long_long+set}" = set; then
9726 echo $ECHO_N "(cached) $ECHO_C" >&6
9728 if test "$ac_cv_type_long_long" = yes; then
9729 # The cast to unsigned long works around a bug in the HP C Compiler
9730 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9731 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9732 # This bug is HP SR number 8606223364.
9733 if test "$cross_compiling" = yes; then
9734 # Depending upon the size, compute the lo and hi bounds.
9735 cat >conftest.
$ac_ext <<_ACEOF
9738 cat confdefs.h
>>conftest.
$ac_ext
9739 cat >>conftest.
$ac_ext <<_ACEOF
9740 /* end confdefs.h. */
9741 $ac_includes_default
9745 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
9752 rm -f conftest.
$ac_objext
9753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9754 (eval $ac_compile) 2>conftest.er1
9756 grep -v '^ *+' conftest.er1
>conftest.err
9758 cat conftest.err
>&5
9759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9760 (exit $ac_status); } &&
9761 { ac_try
='test -z "$ac_c_werror_flag"
9762 || test ! -s conftest.err'
9763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9767 (exit $ac_status); }; } &&
9768 { ac_try
='test -s conftest.$ac_objext'
9769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9773 (exit $ac_status); }; }; then
9776 cat >conftest.
$ac_ext <<_ACEOF
9779 cat confdefs.h
>>conftest.
$ac_ext
9780 cat >>conftest.
$ac_ext <<_ACEOF
9781 /* end confdefs.h. */
9782 $ac_includes_default
9786 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
9793 rm -f conftest.
$ac_objext
9794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9795 (eval $ac_compile) 2>conftest.er1
9797 grep -v '^ *+' conftest.er1
>conftest.err
9799 cat conftest.err
>&5
9800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9801 (exit $ac_status); } &&
9802 { ac_try
='test -z "$ac_c_werror_flag"
9803 || test ! -s conftest.err'
9804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9808 (exit $ac_status); }; } &&
9809 { ac_try
='test -s conftest.$ac_objext'
9810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9814 (exit $ac_status); }; }; then
9815 ac_hi
=$ac_mid; break
9817 echo "$as_me: failed program was:" >&5
9818 sed 's/^/| /' conftest.
$ac_ext >&5
9820 ac_lo
=`expr $ac_mid + 1`
9821 if test $ac_lo -le $ac_mid; then
9825 ac_mid
=`expr 2 '*' $ac_mid + 1`
9827 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9830 echo "$as_me: failed program was:" >&5
9831 sed 's/^/| /' conftest.
$ac_ext >&5
9833 cat >conftest.
$ac_ext <<_ACEOF
9836 cat confdefs.h
>>conftest.
$ac_ext
9837 cat >>conftest.
$ac_ext <<_ACEOF
9838 /* end confdefs.h. */
9839 $ac_includes_default
9843 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
9850 rm -f conftest.
$ac_objext
9851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9852 (eval $ac_compile) 2>conftest.er1
9854 grep -v '^ *+' conftest.er1
>conftest.err
9856 cat conftest.err
>&5
9857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858 (exit $ac_status); } &&
9859 { ac_try
='test -z "$ac_c_werror_flag"
9860 || test ! -s conftest.err'
9861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9865 (exit $ac_status); }; } &&
9866 { ac_try
='test -s conftest.$ac_objext'
9867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9871 (exit $ac_status); }; }; then
9874 cat >conftest.
$ac_ext <<_ACEOF
9877 cat confdefs.h
>>conftest.
$ac_ext
9878 cat >>conftest.
$ac_ext <<_ACEOF
9879 /* end confdefs.h. */
9880 $ac_includes_default
9884 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
9891 rm -f conftest.
$ac_objext
9892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9893 (eval $ac_compile) 2>conftest.er1
9895 grep -v '^ *+' conftest.er1
>conftest.err
9897 cat conftest.err
>&5
9898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9899 (exit $ac_status); } &&
9900 { ac_try
='test -z "$ac_c_werror_flag"
9901 || test ! -s conftest.err'
9902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9906 (exit $ac_status); }; } &&
9907 { ac_try
='test -s conftest.$ac_objext'
9908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9912 (exit $ac_status); }; }; then
9913 ac_lo
=$ac_mid; break
9915 echo "$as_me: failed program was:" >&5
9916 sed 's/^/| /' conftest.
$ac_ext >&5
9918 ac_hi
=`expr '(' $ac_mid ')' - 1`
9919 if test $ac_mid -le $ac_hi; then
9923 ac_mid
=`expr 2 '*' $ac_mid`
9925 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9928 echo "$as_me: failed program was:" >&5
9929 sed 's/^/| /' conftest.
$ac_ext >&5
9933 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9935 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9936 # Binary search between lo and hi bounds.
9937 while test "x$ac_lo" != "x$ac_hi"; do
9938 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9939 cat >conftest.
$ac_ext <<_ACEOF
9942 cat confdefs.h
>>conftest.
$ac_ext
9943 cat >>conftest.
$ac_ext <<_ACEOF
9944 /* end confdefs.h. */
9945 $ac_includes_default
9949 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
9956 rm -f conftest.
$ac_objext
9957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9958 (eval $ac_compile) 2>conftest.er1
9960 grep -v '^ *+' conftest.er1
>conftest.err
9962 cat conftest.err
>&5
9963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964 (exit $ac_status); } &&
9965 { ac_try
='test -z "$ac_c_werror_flag"
9966 || test ! -s conftest.err'
9967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9971 (exit $ac_status); }; } &&
9972 { ac_try
='test -s conftest.$ac_objext'
9973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9977 (exit $ac_status); }; }; then
9980 echo "$as_me: failed program was:" >&5
9981 sed 's/^/| /' conftest.
$ac_ext >&5
9983 ac_lo
=`expr '(' $ac_mid ')' + 1`
9985 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9988 ?
*) ac_cv_sizeof_long_long
=$ac_lo;;
9989 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
9990 See \`config.log' for more details." >&5
9991 echo "$as_me: error: cannot compute sizeof (long long), 77
9992 See \`config.log' for more details." >&2;}
9993 { (exit 1); exit 1; }; } ;;
9996 if test "$cross_compiling" = yes; then
9997 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9998 See \`config.log' for more details." >&5
9999 echo "$as_me: error: cannot run test program while cross compiling
10000 See \`config.log' for more details." >&2;}
10001 { (exit 1); exit 1; }; }
10003 cat >conftest.
$ac_ext <<_ACEOF
10006 cat confdefs.h
>>conftest.
$ac_ext
10007 cat >>conftest.
$ac_ext <<_ACEOF
10008 /* end confdefs.h. */
10009 $ac_includes_default
10010 long longval () { return (long) (sizeof (long long)); }
10011 unsigned long ulongval () { return (long) (sizeof (long long)); }
10013 #include <stdlib.h>
10018 FILE *f = fopen ("conftest.val", "w");
10021 if (((long) (sizeof (long long))) < 0)
10023 long i = longval ();
10024 if (i != ((long) (sizeof (long long))))
10026 fprintf (f, "%ld\n", i);
10030 unsigned long i = ulongval ();
10031 if (i != ((long) (sizeof (long long))))
10033 fprintf (f, "%lu\n", i);
10035 exit (ferror (f) || fclose (f) != 0);
10041 rm -f conftest
$ac_exeext
10042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10043 (eval $ac_link) 2>&5
10045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10046 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10048 (eval $ac_try) 2>&5
10050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10051 (exit $ac_status); }; }; then
10052 ac_cv_sizeof_long_long
=`cat conftest.val`
10054 echo "$as_me: program exited with status $ac_status" >&5
10055 echo "$as_me: failed program was:" >&5
10056 sed 's/^/| /' conftest.
$ac_ext >&5
10058 ( exit $ac_status )
10059 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
10060 See \`config.log' for more details." >&5
10061 echo "$as_me: error: cannot compute sizeof (long long), 77
10062 See \`config.log' for more details." >&2;}
10063 { (exit 1); exit 1; }; }
10065 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10070 ac_cv_sizeof_long_long
=0
10073 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
10074 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
10075 cat >>confdefs.h
<<_ACEOF
10076 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10082 echo "$as_me:$LINENO: checking for uintptr_t" >&5
10083 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
10084 if test "${ac_cv_type_uintptr_t+set}" = set; then
10085 echo $ECHO_N "(cached) $ECHO_C" >&6
10087 cat >conftest.
$ac_ext <<_ACEOF
10090 cat confdefs.h
>>conftest.
$ac_ext
10091 cat >>conftest.
$ac_ext <<_ACEOF
10092 /* end confdefs.h. */
10093 #ifdef HAVE_STDINT_H
10094 #include <stdint.h>
10100 if ((uintptr_t *) 0)
10102 if (sizeof (uintptr_t))
10108 rm -f conftest.
$ac_objext
10109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10110 (eval $ac_compile) 2>conftest.er1
10112 grep -v '^ *+' conftest.er1
>conftest.err
10114 cat conftest.err
>&5
10115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10116 (exit $ac_status); } &&
10117 { ac_try
='test -z "$ac_c_werror_flag"
10118 || test ! -s conftest.err'
10119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10120 (eval $ac_try) 2>&5
10122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10123 (exit $ac_status); }; } &&
10124 { ac_try
='test -s conftest.$ac_objext'
10125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10126 (eval $ac_try) 2>&5
10128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10129 (exit $ac_status); }; }; then
10130 ac_cv_type_uintptr_t
=yes
10132 echo "$as_me: failed program was:" >&5
10133 sed 's/^/| /' conftest.
$ac_ext >&5
10135 ac_cv_type_uintptr_t
=no
10137 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10139 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
10140 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
10141 if test $ac_cv_type_uintptr_t = yes; then
10143 cat >>confdefs.h
<<_ACEOF
10144 #define HAVE_UINTPTR_T 1
10147 echo "$as_me:$LINENO: checking for uintptr_t" >&5
10148 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
10149 if test "${ac_cv_type_uintptr_t+set}" = set; then
10150 echo $ECHO_N "(cached) $ECHO_C" >&6
10152 cat >conftest.
$ac_ext <<_ACEOF
10155 cat confdefs.h
>>conftest.
$ac_ext
10156 cat >>conftest.
$ac_ext <<_ACEOF
10157 /* end confdefs.h. */
10158 $ac_includes_default
10162 if ((uintptr_t *) 0)
10164 if (sizeof (uintptr_t))
10170 rm -f conftest.
$ac_objext
10171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10172 (eval $ac_compile) 2>conftest.er1
10174 grep -v '^ *+' conftest.er1
>conftest.err
10176 cat conftest.err
>&5
10177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10178 (exit $ac_status); } &&
10179 { ac_try
='test -z "$ac_c_werror_flag"
10180 || test ! -s conftest.err'
10181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10182 (eval $ac_try) 2>&5
10184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10185 (exit $ac_status); }; } &&
10186 { ac_try
='test -s conftest.$ac_objext'
10187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10188 (eval $ac_try) 2>&5
10190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10191 (exit $ac_status); }; }; then
10192 ac_cv_type_uintptr_t
=yes
10194 echo "$as_me: failed program was:" >&5
10195 sed 's/^/| /' conftest.
$ac_ext >&5
10197 ac_cv_type_uintptr_t
=no
10199 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10201 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
10202 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
10204 echo "$as_me:$LINENO: checking size of uintptr_t" >&5
10205 echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6
10206 if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
10207 echo $ECHO_N "(cached) $ECHO_C" >&6
10209 if test "$ac_cv_type_uintptr_t" = yes; then
10210 # The cast to unsigned long works around a bug in the HP C Compiler
10211 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10212 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10213 # This bug is HP SR number 8606223364.
10214 if test "$cross_compiling" = yes; then
10215 # Depending upon the size, compute the lo and hi bounds.
10216 cat >conftest.
$ac_ext <<_ACEOF
10219 cat confdefs.h
>>conftest.
$ac_ext
10220 cat >>conftest.
$ac_ext <<_ACEOF
10221 /* end confdefs.h. */
10222 $ac_includes_default
10226 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= 0)];
10233 rm -f conftest.
$ac_objext
10234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10235 (eval $ac_compile) 2>conftest.er1
10237 grep -v '^ *+' conftest.er1
>conftest.err
10239 cat conftest.err
>&5
10240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10241 (exit $ac_status); } &&
10242 { ac_try
='test -z "$ac_c_werror_flag"
10243 || test ! -s conftest.err'
10244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10245 (eval $ac_try) 2>&5
10247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10248 (exit $ac_status); }; } &&
10249 { ac_try
='test -s conftest.$ac_objext'
10250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10251 (eval $ac_try) 2>&5
10253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254 (exit $ac_status); }; }; then
10257 cat >conftest.
$ac_ext <<_ACEOF
10260 cat confdefs.h
>>conftest.
$ac_ext
10261 cat >>conftest.
$ac_ext <<_ACEOF
10262 /* end confdefs.h. */
10263 $ac_includes_default
10267 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)];
10274 rm -f conftest.
$ac_objext
10275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10276 (eval $ac_compile) 2>conftest.er1
10278 grep -v '^ *+' conftest.er1
>conftest.err
10280 cat conftest.err
>&5
10281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10282 (exit $ac_status); } &&
10283 { ac_try
='test -z "$ac_c_werror_flag"
10284 || test ! -s conftest.err'
10285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10286 (eval $ac_try) 2>&5
10288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289 (exit $ac_status); }; } &&
10290 { ac_try
='test -s conftest.$ac_objext'
10291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10292 (eval $ac_try) 2>&5
10294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10295 (exit $ac_status); }; }; then
10296 ac_hi
=$ac_mid; break
10298 echo "$as_me: failed program was:" >&5
10299 sed 's/^/| /' conftest.
$ac_ext >&5
10301 ac_lo
=`expr $ac_mid + 1`
10302 if test $ac_lo -le $ac_mid; then
10306 ac_mid
=`expr 2 '*' $ac_mid + 1`
10308 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10311 echo "$as_me: failed program was:" >&5
10312 sed 's/^/| /' conftest.
$ac_ext >&5
10314 cat >conftest.
$ac_ext <<_ACEOF
10317 cat confdefs.h
>>conftest.
$ac_ext
10318 cat >>conftest.
$ac_ext <<_ACEOF
10319 /* end confdefs.h. */
10320 $ac_includes_default
10324 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) < 0)];
10331 rm -f conftest.
$ac_objext
10332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10333 (eval $ac_compile) 2>conftest.er1
10335 grep -v '^ *+' conftest.er1
>conftest.err
10337 cat conftest.err
>&5
10338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10339 (exit $ac_status); } &&
10340 { ac_try
='test -z "$ac_c_werror_flag"
10341 || test ! -s conftest.err'
10342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10343 (eval $ac_try) 2>&5
10345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10346 (exit $ac_status); }; } &&
10347 { ac_try
='test -s conftest.$ac_objext'
10348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10349 (eval $ac_try) 2>&5
10351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10352 (exit $ac_status); }; }; then
10355 cat >conftest.
$ac_ext <<_ACEOF
10358 cat confdefs.h
>>conftest.
$ac_ext
10359 cat >>conftest.
$ac_ext <<_ACEOF
10360 /* end confdefs.h. */
10361 $ac_includes_default
10365 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= $ac_mid)];
10372 rm -f conftest.
$ac_objext
10373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10374 (eval $ac_compile) 2>conftest.er1
10376 grep -v '^ *+' conftest.er1
>conftest.err
10378 cat conftest.err
>&5
10379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10380 (exit $ac_status); } &&
10381 { ac_try
='test -z "$ac_c_werror_flag"
10382 || test ! -s conftest.err'
10383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10384 (eval $ac_try) 2>&5
10386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10387 (exit $ac_status); }; } &&
10388 { ac_try
='test -s conftest.$ac_objext'
10389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10390 (eval $ac_try) 2>&5
10392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10393 (exit $ac_status); }; }; then
10394 ac_lo
=$ac_mid; break
10396 echo "$as_me: failed program was:" >&5
10397 sed 's/^/| /' conftest.
$ac_ext >&5
10399 ac_hi
=`expr '(' $ac_mid ')' - 1`
10400 if test $ac_mid -le $ac_hi; then
10404 ac_mid
=`expr 2 '*' $ac_mid`
10406 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10409 echo "$as_me: failed program was:" >&5
10410 sed 's/^/| /' conftest.
$ac_ext >&5
10414 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10416 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10417 # Binary search between lo and hi bounds.
10418 while test "x$ac_lo" != "x$ac_hi"; do
10419 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10420 cat >conftest.
$ac_ext <<_ACEOF
10423 cat confdefs.h
>>conftest.
$ac_ext
10424 cat >>conftest.
$ac_ext <<_ACEOF
10425 /* end confdefs.h. */
10426 $ac_includes_default
10430 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)];
10437 rm -f conftest.
$ac_objext
10438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10439 (eval $ac_compile) 2>conftest.er1
10441 grep -v '^ *+' conftest.er1
>conftest.err
10443 cat conftest.err
>&5
10444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10445 (exit $ac_status); } &&
10446 { ac_try
='test -z "$ac_c_werror_flag"
10447 || test ! -s conftest.err'
10448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10449 (eval $ac_try) 2>&5
10451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10452 (exit $ac_status); }; } &&
10453 { ac_try
='test -s conftest.$ac_objext'
10454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10455 (eval $ac_try) 2>&5
10457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10458 (exit $ac_status); }; }; then
10461 echo "$as_me: failed program was:" >&5
10462 sed 's/^/| /' conftest.
$ac_ext >&5
10464 ac_lo
=`expr '(' $ac_mid ')' + 1`
10466 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10469 ?
*) ac_cv_sizeof_uintptr_t
=$ac_lo;;
10470 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77
10471 See \`config.log' for more details." >&5
10472 echo "$as_me: error: cannot compute sizeof (uintptr_t), 77
10473 See \`config.log' for more details." >&2;}
10474 { (exit 1); exit 1; }; } ;;
10477 if test "$cross_compiling" = yes; then
10478 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10479 See \`config.log' for more details." >&5
10480 echo "$as_me: error: cannot run test program while cross compiling
10481 See \`config.log' for more details." >&2;}
10482 { (exit 1); exit 1; }; }
10484 cat >conftest.
$ac_ext <<_ACEOF
10487 cat confdefs.h
>>conftest.
$ac_ext
10488 cat >>conftest.
$ac_ext <<_ACEOF
10489 /* end confdefs.h. */
10490 $ac_includes_default
10491 long longval () { return (long) (sizeof (uintptr_t)); }
10492 unsigned long ulongval () { return (long) (sizeof (uintptr_t)); }
10494 #include <stdlib.h>
10499 FILE *f = fopen ("conftest.val", "w");
10502 if (((long) (sizeof (uintptr_t))) < 0)
10504 long i = longval ();
10505 if (i != ((long) (sizeof (uintptr_t))))
10507 fprintf (f, "%ld\n", i);
10511 unsigned long i = ulongval ();
10512 if (i != ((long) (sizeof (uintptr_t))))
10514 fprintf (f, "%lu\n", i);
10516 exit (ferror (f) || fclose (f) != 0);
10522 rm -f conftest
$ac_exeext
10523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10524 (eval $ac_link) 2>&5
10526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10527 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10529 (eval $ac_try) 2>&5
10531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10532 (exit $ac_status); }; }; then
10533 ac_cv_sizeof_uintptr_t
=`cat conftest.val`
10535 echo "$as_me: program exited with status $ac_status" >&5
10536 echo "$as_me: failed program was:" >&5
10537 sed 's/^/| /' conftest.
$ac_ext >&5
10539 ( exit $ac_status )
10540 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77
10541 See \`config.log' for more details." >&5
10542 echo "$as_me: error: cannot compute sizeof (uintptr_t), 77
10543 See \`config.log' for more details." >&2;}
10544 { (exit 1); exit 1; }; }
10546 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10551 ac_cv_sizeof_uintptr_t
=0
10554 echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
10555 echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6
10556 cat >>confdefs.h
<<_ACEOF
10557 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
10565 # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>.
10566 echo "$as_me:$LINENO: checking size of off_t" >&5
10567 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
10568 if test "${ac_cv_sizeof_off_t+set}" = set; then
10569 echo $ECHO_N "(cached) $ECHO_C" >&6
10571 if test "$cross_compiling" = yes; then
10572 ac_cv_sizeof_off_t
=4
10574 cat >conftest.
$ac_ext <<_ACEOF
10577 cat confdefs.h
>>conftest.
$ac_ext
10578 cat >>conftest.
$ac_ext <<_ACEOF
10579 /* end confdefs.h. */
10581 #include <sys/types.h>
10584 FILE *f=fopen("conftestval", "w");
10586 fprintf(f, "%d\n", sizeof(off_t));
10590 rm -f conftest
$ac_exeext
10591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10592 (eval $ac_link) 2>&5
10594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10595 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10597 (eval $ac_try) 2>&5
10599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10600 (exit $ac_status); }; }; then
10601 ac_cv_sizeof_off_t
=`cat conftestval`
10603 echo "$as_me: program exited with status $ac_status" >&5
10604 echo "$as_me: failed program was:" >&5
10605 sed 's/^/| /' conftest.
$ac_ext >&5
10607 ( exit $ac_status )
10608 ac_cv_sizeof_off_t
=0
10610 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10615 echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
10616 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
10618 cat >>confdefs.h
<<_ACEOF
10619 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
10623 echo "$as_me:$LINENO: checking whether to enable large file support" >&5
10624 echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6
10625 if test "$have_long_long" = yes -a \
10626 "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
10627 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
10629 cat >>confdefs.h
<<\_ACEOF
10630 #define HAVE_LARGEFILE_SUPPORT 1
10633 echo "$as_me:$LINENO: result: yes" >&5
10634 echo "${ECHO_T}yes" >&6
10636 echo "$as_me:$LINENO: result: no" >&5
10637 echo "${ECHO_T}no" >&6
10640 # AC_CHECK_SIZEOF() doesn't include <time.h>.
10641 echo "$as_me:$LINENO: checking size of time_t" >&5
10642 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6
10643 if test "${ac_cv_sizeof_time_t+set}" = set; then
10644 echo $ECHO_N "(cached) $ECHO_C" >&6
10646 if test "$cross_compiling" = yes; then
10647 ac_cv_sizeof_time_t
=4
10649 cat >conftest.
$ac_ext <<_ACEOF
10652 cat confdefs.h
>>conftest.
$ac_ext
10653 cat >>conftest.
$ac_ext <<_ACEOF
10654 /* end confdefs.h. */
10659 FILE *f=fopen("conftestval", "w");
10661 fprintf(f, "%d\n", sizeof(time_t));
10665 rm -f conftest
$ac_exeext
10666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10667 (eval $ac_link) 2>&5
10669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10670 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10672 (eval $ac_try) 2>&5
10674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10675 (exit $ac_status); }; }; then
10676 ac_cv_sizeof_time_t
=`cat conftestval`
10678 echo "$as_me: program exited with status $ac_status" >&5
10679 echo "$as_me: failed program was:" >&5
10680 sed 's/^/| /' conftest.
$ac_ext >&5
10682 ( exit $ac_status )
10683 ac_cv_sizeof_time_t
=0
10685 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10690 echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
10691 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6
10693 cat >>confdefs.h
<<_ACEOF
10694 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
10699 # if have pthread_t then define SIZEOF_PTHREAD_T
10701 if test "$ac_cv_kpthread" = "yes"
10702 then CC
="$CC -Kpthread"
10703 elif test "$ac_cv_kthread" = "yes"
10704 then CC
="$CC -Kthread"
10705 elif test "$ac_cv_pthread" = "yes"
10706 then CC
="$CC -pthread"
10708 echo "$as_me:$LINENO: checking for pthread_t" >&5
10709 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6
10711 cat >conftest.
$ac_ext <<_ACEOF
10714 cat confdefs.h
>>conftest.
$ac_ext
10715 cat >>conftest.
$ac_ext <<_ACEOF
10716 /* end confdefs.h. */
10717 #include <pthread.h>
10721 pthread_t x; x = *(pthread_t*)0;
10726 rm -f conftest.
$ac_objext
10727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10728 (eval $ac_compile) 2>conftest.er1
10730 grep -v '^ *+' conftest.er1
>conftest.err
10732 cat conftest.err
>&5
10733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10734 (exit $ac_status); } &&
10735 { ac_try
='test -z "$ac_c_werror_flag"
10736 || test ! -s conftest.err'
10737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10738 (eval $ac_try) 2>&5
10740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10741 (exit $ac_status); }; } &&
10742 { ac_try
='test -s conftest.$ac_objext'
10743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10744 (eval $ac_try) 2>&5
10746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10747 (exit $ac_status); }; }; then
10750 echo "$as_me: failed program was:" >&5
10751 sed 's/^/| /' conftest.
$ac_ext >&5
10754 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10755 echo "$as_me:$LINENO: result: $have_pthread_t" >&5
10756 echo "${ECHO_T}$have_pthread_t" >&6
10757 if test "$have_pthread_t" = yes ; then
10758 # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
10759 echo "$as_me:$LINENO: checking size of pthread_t" >&5
10760 echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6
10761 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
10762 echo $ECHO_N "(cached) $ECHO_C" >&6
10764 if test "$cross_compiling" = yes; then
10765 ac_cv_sizeof_pthread_t
=4
10767 cat >conftest.
$ac_ext <<_ACEOF
10770 cat confdefs.h
>>conftest.
$ac_ext
10771 cat >>conftest.
$ac_ext <<_ACEOF
10772 /* end confdefs.h. */
10774 #include <pthread.h>
10777 FILE *f=fopen("conftestval", "w");
10779 fprintf(f, "%d\n", sizeof(pthread_t));
10783 rm -f conftest
$ac_exeext
10784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10785 (eval $ac_link) 2>&5
10787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10788 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10790 (eval $ac_try) 2>&5
10792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10793 (exit $ac_status); }; }; then
10794 ac_cv_sizeof_pthread_t
=`cat conftestval`
10796 echo "$as_me: program exited with status $ac_status" >&5
10797 echo "$as_me: failed program was:" >&5
10798 sed 's/^/| /' conftest.
$ac_ext >&5
10800 ( exit $ac_status )
10801 ac_cv_sizeof_pthread_t
=0
10803 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10808 echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
10809 echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6
10811 cat >>confdefs.h
<<_ACEOF
10812 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
10818 echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5
10819 echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6
10820 # Check whether --enable-toolbox-glue or --disable-toolbox-glue was given.
10821 if test "${enable_toolbox_glue+set}" = set; then
10822 enableval
="$enable_toolbox_glue"
10826 if test -z "$enable_toolbox_glue"
10828 case $ac_sys_system/$ac_sys_release in
10830 enable_toolbox_glue
="yes";;
10832 enable_toolbox_glue
="no";;
10835 case "$enable_toolbox_glue" in
10837 extra_machdep_objs
="Python/mactoolboxglue.o"
10838 extra_undefs
="-u _PyMac_Error"
10840 cat >>confdefs.h
<<\_ACEOF
10841 #define USE_TOOLBOX_OBJECT_GLUE 1
10846 extra_machdep_objs
=""
10850 echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5
10851 echo "${ECHO_T}$enable_toolbox_glue" >&6
10854 case $ac_sys_system/$ac_sys_release in
10855 Darwin
/[01567]\..
*)
10856 OTHER_LIBTOOL_OPT
="-prebind -seg1addr 0x10000000"
10859 OTHER_LIBTOOL_OPT
=""
10864 case $ac_sys_system/$ac_sys_release in
10865 Darwin
/[01567]\..
*)
10866 LIBTOOL_CRUFT
="-framework System -lcc_dynamic"
10867 if test "${enable_universalsdk}"; then
10870 LIBTOOL_CRUFT
="${LIBTOOL_CRUFT} -arch_only `arch`"
10872 LIBTOOL_CRUFT
=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10873 LIBTOOL_CRUFT
=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
10875 gcc_version
=`gcc -v 2>&1 | grep version | cut -d\ -f3`
10876 if test ${gcc_version} '<' 4.0
10878 LIBTOOL_CRUFT
="-lcc_dynamic"
10882 LIBTOOL_CRUFT
=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only `arch`"
10883 LIBTOOL_CRUFT
=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10884 LIBTOOL_CRUFT
=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
10887 echo "$as_me:$LINENO: checking for --enable-framework" >&5
10888 echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6
10889 if test "$enable_framework"
10891 BASECFLAGS
="$BASECFLAGS -fno-common -dynamic"
10892 # -F. is needed to allow linking to the framework while
10893 # in the build location.
10895 cat >>confdefs.h
<<\_ACEOF
10896 #define WITH_NEXT_FRAMEWORK 1
10899 echo "$as_me:$LINENO: result: yes" >&5
10900 echo "${ECHO_T}yes" >&6
10902 echo "$as_me:$LINENO: result: no" >&5
10903 echo "${ECHO_T}no" >&6
10906 echo "$as_me:$LINENO: checking for dyld" >&5
10907 echo $ECHO_N "checking for dyld... $ECHO_C" >&6
10908 case $ac_sys_system/$ac_sys_release in
10911 cat >>confdefs.h
<<\_ACEOF
10912 #define WITH_DYLD 1
10915 echo "$as_me:$LINENO: result: always on for Darwin" >&5
10916 echo "${ECHO_T}always on for Darwin" >&6
10919 echo "$as_me:$LINENO: result: no" >&5
10920 echo "${ECHO_T}no" >&6
10924 # Set info about shared libraries.
10930 # SO is the extension of shared libraries `(including the dot!)
10931 # -- usually .so, .sl on HP-UX, .dll on Cygwin
10932 echo "$as_me:$LINENO: checking SO" >&5
10933 echo $ECHO_N "checking SO... $ECHO_C" >&6
10936 case $ac_sys_system in
10947 # this might also be a termcap variable, see #610332
10949 echo '====================================================================='
10951 echo '+ WARNING: You have set SO in your environment. +'
10952 echo '+ Do you really mean to change the extension for shared libraries? +'
10953 echo '+ Continuing in 10 seconds to let you to ponder. +'
10955 echo '====================================================================='
10958 echo "$as_me:$LINENO: result: $SO" >&5
10959 echo "${ECHO_T}$SO" >&6
10961 cat >>confdefs.h
<<_ACEOF
10962 #define SHLIB_EXT "$SO"
10965 # LDSHARED is the ld *command* used to create shared library
10966 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
10967 # (Shared libraries in this instance are shared modules to be loaded into
10968 # Python, as opposed to building Python itself as a shared library.)
10969 echo "$as_me:$LINENO: checking LDSHARED" >&5
10970 echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6
10971 if test -z "$LDSHARED"
10973 case $ac_sys_system/$ac_sys_release in
10975 BLDSHARED
="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
10976 LDSHARED
="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
10979 BLDSHARED
="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
10980 LDSHARED
="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
10982 IRIX
/5*) LDSHARED
="ld -shared";;
10983 IRIX
*/6*) LDSHARED
="ld ${SGI_ABI} -shared -all";;
10985 if test "$GCC" = "yes"
10986 then LDSHARED
='$(CC) -shared'
10987 else LDSHARED
='$(CC) -G';
10989 hp
*|HP
*) LDSHARED
="ld -b";;
10990 OSF
*) LDSHARED
="ld -shared -expect_unresolved \"*\"";;
10992 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
10993 if test "$enable_framework" ; then
10994 # Link against the framework. All externals should be defined.
10995 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10996 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10998 # No framework. Ignore undefined symbols, assuming they come from Python
10999 LDSHARED
="$LDSHARED -undefined suppress"
11001 Darwin
/1.4*|Darwin
/5.
*|Darwin
/6.
*)
11002 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
11003 if test "$enable_framework" ; then
11004 # Link against the framework. All externals should be defined.
11005 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11006 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11008 # No framework, use the Python app as bundle-loader
11009 BLDSHARED
="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
11010 LDSHARED
="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
11013 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
11014 # This allows an extension to be used in any Python
11015 cur_target
=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
11016 if test ${cur_target} '>' 10.2; then
11019 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
11020 EXPORT_MACOSX_DEPLOYMENT_TARGET
=''
11021 if test ${MACOSX_DEPLOYMENT_TARGET-${cur_target}} '>' 10.2
11023 if test "${enable_universalsdk}"; then
11024 LDFLAGS
="-arch i386 -arch ppc -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
11026 LDSHARED
='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
11027 BLDSHARED
="$LDSHARED"
11029 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
11030 if test "$enable_framework" ; then
11031 # Link against the framework. All externals should be defined.
11032 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11033 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11035 # No framework, use the Python app as bundle-loader
11036 BLDSHARED
="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
11037 LDSHARED
="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
11041 Linux
*|GNU
*) LDSHARED
='$(CC) -shared';;
11042 BSD
/OS
*/4*) LDSHARED
="gcc -shared";;
11044 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
11046 LDSHARED
="$CC -shared ${LDFLAGS}"
11048 LDSHARED
="ld -Bshareable ${LDFLAGS}"
11051 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
11053 LDSHARED
='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
11056 [01].
* |
2.
[0-7] |
2.
[0-7].
*)
11057 LDSHARED
="ld -Bshareable ${LDFLAGS}"
11060 LDSHARED
='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
11064 NetBSD
*|DragonFly
*) LDSHARED
="cc -shared ${LDFLAGS}";;
11065 OpenUNIX
*|UnixWare
*)
11066 if test "$GCC" = "yes"
11067 then LDSHARED
='$(CC) -shared'
11068 else LDSHARED
='$(CC) -G'
11070 SCO_SV
*) LDSHARED
='$(CC) -Wl,-G,-Bexport';;
11071 Monterey
*) LDSHARED
="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";;
11072 CYGWIN
*) LDSHARED
="gcc -shared -Wl,--enable-auto-image-base";;
11073 atheos
*) LDSHARED
="gcc -shared";;
11077 echo "$as_me:$LINENO: result: $LDSHARED" >&5
11078 echo "${ECHO_T}$LDSHARED" >&6
11079 BLDSHARED
=${BLDSHARED-$LDSHARED}
11080 # CCSHARED are the C *flags* used to create objects to go into a shared
11081 # library (module) -- this is only needed for a few systems
11082 echo "$as_me:$LINENO: checking CCSHARED" >&5
11083 echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6
11084 if test -z "$CCSHARED"
11086 case $ac_sys_system/$ac_sys_release in
11087 SunOS
*) if test "$GCC" = yes;
11088 then CCSHARED
="-fPIC";
11089 elif test `uname -p` = sparc
;
11090 then CCSHARED
="-xcode=pic32";
11091 else CCSHARED
="-Kpic";
11093 hp
*|HP
*) if test "$GCC" = yes;
11094 then CCSHARED
="-fPIC";
11095 else CCSHARED
="+z";
11097 Linux
*|GNU
*) CCSHARED
="-fPIC";;
11098 BSD
/OS
*/4*) CCSHARED
="-fpic";;
11099 FreeBSD
*|NetBSD
*|OpenBSD
*|DragonFly
*) CCSHARED
="-fPIC";;
11100 OpenUNIX
*|UnixWare
*)
11101 if test "$GCC" = "yes"
11102 then CCSHARED
="-fPIC"
11103 else CCSHARED
="-KPIC"
11106 if test "$GCC" = "yes"
11107 then CCSHARED
="-fPIC"
11108 else CCSHARED
="-Kpic -belf"
11110 Monterey
*) CCSHARED
="-G";;
11111 IRIX
*/6*) case $CC in
11112 *gcc
*) CCSHARED
="-shared";;
11115 atheos
*) CCSHARED
="-fPIC";;
11118 echo "$as_me:$LINENO: result: $CCSHARED" >&5
11119 echo "${ECHO_T}$CCSHARED" >&6
11120 # LINKFORSHARED are the flags passed to the $(CC) command that links
11121 # the python executable -- this is only needed for a few systems
11122 echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
11123 echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6
11124 if test -z "$LINKFORSHARED"
11126 case $ac_sys_system/$ac_sys_release in
11127 AIX
*) LINKFORSHARED
='-Wl,-bE:Modules/python.exp -lld';;
11129 LINKFORSHARED
="-Wl,-E -Wl,+s";;
11130 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
11131 BSD
/OS
/4*) LINKFORSHARED
="-Xlinker -export-dynamic";;
11132 Linux
*|GNU
*) LINKFORSHARED
="-Xlinker -export-dynamic";;
11133 # -u libsys_s pulls in all symbols in libsys
11135 # -u _PyMac_Error is needed to pull in the mac toolbox glue,
11137 # not used by the core itself but which needs to be in the core so
11138 # that dynamically loaded extension modules have access to it.
11139 # -prebind is no longer used, because it actually seems to give a
11140 # slowdown in stead of a speedup, maybe due to the large number of
11141 # dynamic loads Python does.
11143 LINKFORSHARED
="$extra_undefs"
11144 if test "$enable_framework"
11146 LINKFORSHARED
="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11148 LINKFORSHARED
="$LINKFORSHARED";;
11149 OpenUNIX
*|UnixWare
*) LINKFORSHARED
="-Wl,-Bexport";;
11150 SCO_SV
*) LINKFORSHARED
="-Wl,-Bexport";;
11151 ReliantUNIX
*) LINKFORSHARED
="-W1 -Blargedynsym";;
11152 FreeBSD
*|NetBSD
*|OpenBSD
*|DragonFly
*)
11153 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
11155 LINKFORSHARED
="-Wl,--export-dynamic"
11157 SunOS
/5*) case $CC in
11159 if $CC -Xlinker --help 2>&1 |
grep export-dynamic
>/dev
/null
11161 LINKFORSHARED
="-Xlinker --export-dynamic"
11165 if test $enable_shared = "no"
11167 LINKFORSHARED
='-Wl,--out-implib=$(LDLIBRARY)'
11171 echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
11172 echo "${ECHO_T}$LINKFORSHARED" >&6
11175 echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
11176 echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6
11177 if test ! "$LIBRARY" = "$LDLIBRARY"
11179 case $ac_sys_system in
11181 # Cygwin needs CCSHARED when building extension DLLs
11182 # but not when building the interpreter DLL.
11183 CFLAGSFORSHARED
='';;
11185 CFLAGSFORSHARED
='$(CCSHARED)'
11188 echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
11189 echo "${ECHO_T}$CFLAGSFORSHARED" >&6
11191 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
11192 # library (with --enable-shared).
11193 # For platforms on which shared libraries are not allowed to have unresolved
11194 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
11195 # if it is not required, since it creates a dependency of the shared library
11196 # to LIBS. This, in turn, means that applications linking the shared libpython
11197 # don't need to link LIBS explicitly. The default should be only changed
11198 # on systems where this approach causes problems.
11200 echo "$as_me:$LINENO: checking SHLIBS" >&5
11201 echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6
11202 case "$ac_sys_system" in
11206 echo "$as_me:$LINENO: result: $SHLIBS" >&5
11207 echo "${ECHO_T}$SHLIBS" >&6
11210 # checks for libraries
11212 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11213 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11214 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11215 echo $ECHO_N "(cached) $ECHO_C" >&6
11217 ac_check_lib_save_LIBS
=$LIBS
11219 cat >conftest.
$ac_ext <<_ACEOF
11222 cat confdefs.h
>>conftest.
$ac_ext
11223 cat >>conftest.
$ac_ext <<_ACEOF
11224 /* end confdefs.h. */
11226 /* Override any gcc2 internal prototype to avoid an error. */
11230 /* We use char because int might match the return type of a gcc2
11231 builtin and then its argument prototype would still apply. */
11241 rm -f conftest.
$ac_objext conftest
$ac_exeext
11242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11243 (eval $ac_link) 2>conftest.er1
11245 grep -v '^ *+' conftest.er1
>conftest.err
11247 cat conftest.err
>&5
11248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11249 (exit $ac_status); } &&
11250 { ac_try
='test -z "$ac_c_werror_flag"
11251 || test ! -s conftest.err'
11252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11253 (eval $ac_try) 2>&5
11255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11256 (exit $ac_status); }; } &&
11257 { ac_try
='test -s conftest$ac_exeext'
11258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11259 (eval $ac_try) 2>&5
11261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11262 (exit $ac_status); }; }; then
11263 ac_cv_lib_dl_dlopen
=yes
11265 echo "$as_me: failed program was:" >&5
11266 sed 's/^/| /' conftest.
$ac_ext >&5
11268 ac_cv_lib_dl_dlopen
=no
11270 rm -f conftest.err conftest.
$ac_objext \
11271 conftest
$ac_exeext conftest.
$ac_ext
11272 LIBS
=$ac_check_lib_save_LIBS
11274 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11275 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11276 if test $ac_cv_lib_dl_dlopen = yes; then
11277 cat >>confdefs.h
<<_ACEOF
11278 #define HAVE_LIBDL 1
11284 # Dynamic linking for SunOS/Solaris and SYSV
11286 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11287 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11288 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11289 echo $ECHO_N "(cached) $ECHO_C" >&6
11291 ac_check_lib_save_LIBS
=$LIBS
11293 cat >conftest.
$ac_ext <<_ACEOF
11296 cat confdefs.h
>>conftest.
$ac_ext
11297 cat >>conftest.
$ac_ext <<_ACEOF
11298 /* end confdefs.h. */
11300 /* Override any gcc2 internal prototype to avoid an error. */
11304 /* We use char because int might match the return type of a gcc2
11305 builtin and then its argument prototype would still apply. */
11315 rm -f conftest.
$ac_objext conftest
$ac_exeext
11316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11317 (eval $ac_link) 2>conftest.er1
11319 grep -v '^ *+' conftest.er1
>conftest.err
11321 cat conftest.err
>&5
11322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11323 (exit $ac_status); } &&
11324 { ac_try
='test -z "$ac_c_werror_flag"
11325 || test ! -s conftest.err'
11326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11327 (eval $ac_try) 2>&5
11329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11330 (exit $ac_status); }; } &&
11331 { ac_try
='test -s conftest$ac_exeext'
11332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11333 (eval $ac_try) 2>&5
11335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11336 (exit $ac_status); }; }; then
11337 ac_cv_lib_dld_shl_load
=yes
11339 echo "$as_me: failed program was:" >&5
11340 sed 's/^/| /' conftest.
$ac_ext >&5
11342 ac_cv_lib_dld_shl_load
=no
11344 rm -f conftest.err conftest.
$ac_objext \
11345 conftest
$ac_exeext conftest.
$ac_ext
11346 LIBS
=$ac_check_lib_save_LIBS
11348 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11349 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11350 if test $ac_cv_lib_dld_shl_load = yes; then
11351 cat >>confdefs.h
<<_ACEOF
11352 #define HAVE_LIBDLD 1
11358 # Dynamic linking for HP-UX
11360 # only check for sem_ini if thread support is requested
11361 if test "$with_threads" = "yes" -o -z "$with_threads"; then
11362 echo "$as_me:$LINENO: checking for library containing sem_init" >&5
11363 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6
11364 if test "${ac_cv_search_sem_init+set}" = set; then
11365 echo $ECHO_N "(cached) $ECHO_C" >&6
11367 ac_func_search_save_LIBS
=$LIBS
11368 ac_cv_search_sem_init
=no
11369 cat >conftest.
$ac_ext <<_ACEOF
11372 cat confdefs.h
>>conftest.
$ac_ext
11373 cat >>conftest.
$ac_ext <<_ACEOF
11374 /* end confdefs.h. */
11376 /* Override any gcc2 internal prototype to avoid an error. */
11380 /* We use char because int might match the return type of a gcc2
11381 builtin and then its argument prototype would still apply. */
11391 rm -f conftest.
$ac_objext conftest
$ac_exeext
11392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11393 (eval $ac_link) 2>conftest.er1
11395 grep -v '^ *+' conftest.er1
>conftest.err
11397 cat conftest.err
>&5
11398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11399 (exit $ac_status); } &&
11400 { ac_try
='test -z "$ac_c_werror_flag"
11401 || test ! -s conftest.err'
11402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11403 (eval $ac_try) 2>&5
11405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11406 (exit $ac_status); }; } &&
11407 { ac_try
='test -s conftest$ac_exeext'
11408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11409 (eval $ac_try) 2>&5
11411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11412 (exit $ac_status); }; }; then
11413 ac_cv_search_sem_init
="none required"
11415 echo "$as_me: failed program was:" >&5
11416 sed 's/^/| /' conftest.
$ac_ext >&5
11419 rm -f conftest.err conftest.
$ac_objext \
11420 conftest
$ac_exeext conftest.
$ac_ext
11421 if test "$ac_cv_search_sem_init" = no
; then
11422 for ac_lib
in pthread rt posix4
; do
11423 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11424 cat >conftest.
$ac_ext <<_ACEOF
11427 cat confdefs.h
>>conftest.
$ac_ext
11428 cat >>conftest.
$ac_ext <<_ACEOF
11429 /* end confdefs.h. */
11431 /* Override any gcc2 internal prototype to avoid an error. */
11435 /* We use char because int might match the return type of a gcc2
11436 builtin and then its argument prototype would still apply. */
11446 rm -f conftest.
$ac_objext conftest
$ac_exeext
11447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11448 (eval $ac_link) 2>conftest.er1
11450 grep -v '^ *+' conftest.er1
>conftest.err
11452 cat conftest.err
>&5
11453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11454 (exit $ac_status); } &&
11455 { ac_try
='test -z "$ac_c_werror_flag"
11456 || test ! -s conftest.err'
11457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11458 (eval $ac_try) 2>&5
11460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11461 (exit $ac_status); }; } &&
11462 { ac_try
='test -s conftest$ac_exeext'
11463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11464 (eval $ac_try) 2>&5
11466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11467 (exit $ac_status); }; }; then
11468 ac_cv_search_sem_init
="-l$ac_lib"
11471 echo "$as_me: failed program was:" >&5
11472 sed 's/^/| /' conftest.
$ac_ext >&5
11475 rm -f conftest.err conftest.
$ac_objext \
11476 conftest
$ac_exeext conftest.
$ac_ext
11479 LIBS
=$ac_func_search_save_LIBS
11481 echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
11482 echo "${ECHO_T}$ac_cv_search_sem_init" >&6
11483 if test "$ac_cv_search_sem_init" != no
; then
11484 test "$ac_cv_search_sem_init" = "none required" || LIBS
="$ac_cv_search_sem_init $LIBS"
11487 # 'Real Time' functions on Solaris
11488 # posix4 on Solaris 2.6
11489 # pthread (first!) on Linux
11492 # check if we need libintl for locale functions
11493 echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
11494 echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6
11495 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
11496 echo $ECHO_N "(cached) $ECHO_C" >&6
11498 ac_check_lib_save_LIBS
=$LIBS
11499 LIBS
="-lintl $LIBS"
11500 cat >conftest.
$ac_ext <<_ACEOF
11503 cat confdefs.h
>>conftest.
$ac_ext
11504 cat >>conftest.
$ac_ext <<_ACEOF
11505 /* end confdefs.h. */
11507 /* Override any gcc2 internal prototype to avoid an error. */
11511 /* We use char because int might match the return type of a gcc2
11512 builtin and then its argument prototype would still apply. */
11513 char textdomain ();
11522 rm -f conftest.
$ac_objext conftest
$ac_exeext
11523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11524 (eval $ac_link) 2>conftest.er1
11526 grep -v '^ *+' conftest.er1
>conftest.err
11528 cat conftest.err
>&5
11529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11530 (exit $ac_status); } &&
11531 { ac_try
='test -z "$ac_c_werror_flag"
11532 || test ! -s conftest.err'
11533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11534 (eval $ac_try) 2>&5
11536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11537 (exit $ac_status); }; } &&
11538 { ac_try
='test -s conftest$ac_exeext'
11539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11540 (eval $ac_try) 2>&5
11542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11543 (exit $ac_status); }; }; then
11544 ac_cv_lib_intl_textdomain
=yes
11546 echo "$as_me: failed program was:" >&5
11547 sed 's/^/| /' conftest.
$ac_ext >&5
11549 ac_cv_lib_intl_textdomain
=no
11551 rm -f conftest.err conftest.
$ac_objext \
11552 conftest
$ac_exeext conftest.
$ac_ext
11553 LIBS
=$ac_check_lib_save_LIBS
11555 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
11556 echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6
11557 if test $ac_cv_lib_intl_textdomain = yes; then
11559 cat >>confdefs.h
<<\_ACEOF
11560 #define WITH_LIBINTL 1
11566 # checks for system dependent C++ extensions support
11567 case "$ac_sys_system" in
11568 AIX
*) echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
11569 echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6
11570 cat >conftest.
$ac_ext <<_ACEOF
11573 cat confdefs.h
>>conftest.
$ac_ext
11574 cat >>conftest.
$ac_ext <<_ACEOF
11575 /* end confdefs.h. */
11576 #include "/usr/lpp/xlC/include/load.h"
11580 loadAndInit("", 0, "")
11585 rm -f conftest.
$ac_objext conftest
$ac_exeext
11586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11587 (eval $ac_link) 2>conftest.er1
11589 grep -v '^ *+' conftest.er1
>conftest.err
11591 cat conftest.err
>&5
11592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11593 (exit $ac_status); } &&
11594 { ac_try
='test -z "$ac_c_werror_flag"
11595 || test ! -s conftest.err'
11596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11597 (eval $ac_try) 2>&5
11599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11600 (exit $ac_status); }; } &&
11601 { ac_try
='test -s conftest$ac_exeext'
11602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11603 (eval $ac_try) 2>&5
11605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11606 (exit $ac_status); }; }; then
11608 cat >>confdefs.h
<<\_ACEOF
11609 #define AIX_GENUINE_CPLUSPLUS 1
11612 echo "$as_me:$LINENO: result: yes" >&5
11613 echo "${ECHO_T}yes" >&6
11615 echo "$as_me: failed program was:" >&5
11616 sed 's/^/| /' conftest.
$ac_ext >&5
11618 echo "$as_me:$LINENO: result: no" >&5
11619 echo "${ECHO_T}no" >&6
11621 rm -f conftest.err conftest.
$ac_objext \
11622 conftest
$ac_exeext conftest.
$ac_ext;;
11626 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
11627 # BeOS' sockets are stashed in libnet.
11628 echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
11629 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6
11630 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
11631 echo $ECHO_N "(cached) $ECHO_C" >&6
11633 ac_check_lib_save_LIBS
=$LIBS
11635 cat >conftest.
$ac_ext <<_ACEOF
11638 cat confdefs.h
>>conftest.
$ac_ext
11639 cat >>conftest.
$ac_ext <<_ACEOF
11640 /* end confdefs.h. */
11642 /* Override any gcc2 internal prototype to avoid an error. */
11646 /* We use char because int might match the return type of a gcc2
11647 builtin and then its argument prototype would still apply. */
11657 rm -f conftest.
$ac_objext conftest
$ac_exeext
11658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11659 (eval $ac_link) 2>conftest.er1
11661 grep -v '^ *+' conftest.er1
>conftest.err
11663 cat conftest.err
>&5
11664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11665 (exit $ac_status); } &&
11666 { ac_try
='test -z "$ac_c_werror_flag"
11667 || test ! -s conftest.err'
11668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11669 (eval $ac_try) 2>&5
11671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11672 (exit $ac_status); }; } &&
11673 { ac_try
='test -s conftest$ac_exeext'
11674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11675 (eval $ac_try) 2>&5
11677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11678 (exit $ac_status); }; }; then
11679 ac_cv_lib_nsl_t_open
=yes
11681 echo "$as_me: failed program was:" >&5
11682 sed 's/^/| /' conftest.
$ac_ext >&5
11684 ac_cv_lib_nsl_t_open
=no
11686 rm -f conftest.err conftest.
$ac_objext \
11687 conftest
$ac_exeext conftest.
$ac_ext
11688 LIBS
=$ac_check_lib_save_LIBS
11690 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
11691 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6
11692 if test $ac_cv_lib_nsl_t_open = yes; then
11696 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
11697 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
11698 if test "${ac_cv_lib_socket_socket+set}" = set; then
11699 echo $ECHO_N "(cached) $ECHO_C" >&6
11701 ac_check_lib_save_LIBS
=$LIBS
11702 LIBS
="-lsocket $LIBS $LIBS"
11703 cat >conftest.
$ac_ext <<_ACEOF
11706 cat confdefs.h
>>conftest.
$ac_ext
11707 cat >>conftest.
$ac_ext <<_ACEOF
11708 /* end confdefs.h. */
11710 /* Override any gcc2 internal prototype to avoid an error. */
11714 /* We use char because int might match the return type of a gcc2
11715 builtin and then its argument prototype would still apply. */
11725 rm -f conftest.
$ac_objext conftest
$ac_exeext
11726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11727 (eval $ac_link) 2>conftest.er1
11729 grep -v '^ *+' conftest.er1
>conftest.err
11731 cat conftest.err
>&5
11732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11733 (exit $ac_status); } &&
11734 { ac_try
='test -z "$ac_c_werror_flag"
11735 || test ! -s conftest.err'
11736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11737 (eval $ac_try) 2>&5
11739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11740 (exit $ac_status); }; } &&
11741 { ac_try
='test -s conftest$ac_exeext'
11742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11743 (eval $ac_try) 2>&5
11745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11746 (exit $ac_status); }; }; then
11747 ac_cv_lib_socket_socket
=yes
11749 echo "$as_me: failed program was:" >&5
11750 sed 's/^/| /' conftest.
$ac_ext >&5
11752 ac_cv_lib_socket_socket
=no
11754 rm -f conftest.err conftest.
$ac_objext \
11755 conftest
$ac_exeext conftest.
$ac_ext
11756 LIBS
=$ac_check_lib_save_LIBS
11758 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
11759 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
11760 if test $ac_cv_lib_socket_socket = yes; then
11761 LIBS
="-lsocket $LIBS"
11765 case "$ac_sys_system" in
11767 echo "$as_me:$LINENO: checking for socket in -lnet" >&5
11768 echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6
11769 if test "${ac_cv_lib_net_socket+set}" = set; then
11770 echo $ECHO_N "(cached) $ECHO_C" >&6
11772 ac_check_lib_save_LIBS
=$LIBS
11773 LIBS
="-lnet $LIBS $LIBS"
11774 cat >conftest.
$ac_ext <<_ACEOF
11777 cat confdefs.h
>>conftest.
$ac_ext
11778 cat >>conftest.
$ac_ext <<_ACEOF
11779 /* end confdefs.h. */
11781 /* Override any gcc2 internal prototype to avoid an error. */
11785 /* We use char because int might match the return type of a gcc2
11786 builtin and then its argument prototype would still apply. */
11796 rm -f conftest.
$ac_objext conftest
$ac_exeext
11797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11798 (eval $ac_link) 2>conftest.er1
11800 grep -v '^ *+' conftest.er1
>conftest.err
11802 cat conftest.err
>&5
11803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11804 (exit $ac_status); } &&
11805 { ac_try
='test -z "$ac_c_werror_flag"
11806 || test ! -s conftest.err'
11807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11808 (eval $ac_try) 2>&5
11810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11811 (exit $ac_status); }; } &&
11812 { ac_try
='test -s conftest$ac_exeext'
11813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11814 (eval $ac_try) 2>&5
11816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11817 (exit $ac_status); }; }; then
11818 ac_cv_lib_net_socket
=yes
11820 echo "$as_me: failed program was:" >&5
11821 sed 's/^/| /' conftest.
$ac_ext >&5
11823 ac_cv_lib_net_socket
=no
11825 rm -f conftest.err conftest.
$ac_objext \
11826 conftest
$ac_exeext conftest.
$ac_ext
11827 LIBS
=$ac_check_lib_save_LIBS
11829 echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5
11830 echo "${ECHO_T}$ac_cv_lib_net_socket" >&6
11831 if test $ac_cv_lib_net_socket = yes; then
11838 echo "$as_me:$LINENO: checking for --with-libs" >&5
11839 echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6
11841 # Check whether --with-libs or --without-libs was given.
11842 if test "${with_libs+set}" = set; then
11843 withval
="$with_libs"
11845 echo "$as_me:$LINENO: result: $withval" >&5
11846 echo "${ECHO_T}$withval" >&6
11847 LIBS
="$withval $LIBS"
11850 echo "$as_me:$LINENO: result: no" >&5
11851 echo "${ECHO_T}no" >&6
11854 # Check for use of the system libffi library
11855 echo "$as_me:$LINENO: checking for --with-system-ffi" >&5
11856 echo $ECHO_N "checking for --with-system-ffi... $ECHO_C" >&6
11858 # Check whether --with-system_ffi or --without-system_ffi was given.
11859 if test "${with_system_ffi+set}" = set; then
11860 withval
="$with_system_ffi"
11864 if test -z "$with_system_ffi"
11865 then with_system_ffi
="no"
11867 echo "$as_me:$LINENO: result: $with_system_ffi" >&5
11868 echo "${ECHO_T}$with_system_ffi" >&6
11870 # Determine if signalmodule should be used.
11873 echo "$as_me:$LINENO: checking for --with-signal-module" >&5
11874 echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6
11876 # Check whether --with-signal-module or --without-signal-module was given.
11877 if test "${with_signal_module+set}" = set; then
11878 withval
="$with_signal_module"
11882 if test -z "$with_signal_module"
11883 then with_signal_module
="yes"
11885 echo "$as_me:$LINENO: result: $with_signal_module" >&5
11886 echo "${ECHO_T}$with_signal_module" >&6
11888 if test "${with_signal_module}" = "yes"; then
11889 USE_SIGNAL_MODULE
=""
11892 USE_SIGNAL_MODULE
="#"
11893 SIGNAL_OBJS
="Parser/intrcheck.o Python/sigcheck.o"
11896 # This is used to generate Setup.config
11898 USE_THREAD_MODULE
=""
11900 echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
11901 echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6
11904 # Check whether --with-dec-threads or --without-dec-threads was given.
11905 if test "${with_dec_threads+set}" = set; then
11906 withval
="$with_dec_threads"
11908 echo "$as_me:$LINENO: result: $withval" >&5
11909 echo "${ECHO_T}$withval" >&6
11911 if test "${with_thread+set}" != set; then
11912 with_thread
="$withval";
11915 echo "$as_me:$LINENO: result: no" >&5
11916 echo "${ECHO_T}no" >&6
11919 # Templates for things AC_DEFINEd more than once.
11920 # For a single AC_DEFINE, no template is needed.
11928 echo "$as_me:$LINENO: checking for --with-threads" >&5
11929 echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6
11931 # Check whether --with-threads or --without-threads was given.
11932 if test "${with_threads+set}" = set; then
11933 withval
="$with_threads"
11937 # --with-thread is deprecated, but check for it anyway
11939 # Check whether --with-thread or --without-thread was given.
11940 if test "${with_thread+set}" = set; then
11941 withval
="$with_thread"
11942 with_threads
=$with_thread
11945 if test -z "$with_threads"
11946 then with_threads
="yes"
11948 echo "$as_me:$LINENO: result: $with_threads" >&5
11949 echo "${ECHO_T}$with_threads" >&6
11952 if test "$with_threads" = "no"
11954 USE_THREAD_MODULE
="#"
11955 elif test "$ac_cv_pthread_is_default" = yes
11957 cat >>confdefs.h
<<\_ACEOF
11958 #define WITH_THREAD 1
11961 # Defining _REENTRANT on system with POSIX threads should not hurt.
11962 cat >>confdefs.h
<<\_ACEOF
11963 #define _REENTRANT 1
11967 THREADOBJ
="Python/thread.o"
11968 elif test "$ac_cv_kpthread" = "yes"
11971 if test "$ac_cv_cxx_thread" = "yes"; then
11972 CXX
="$CXX -Kpthread"
11974 cat >>confdefs.h
<<\_ACEOF
11975 #define WITH_THREAD 1
11979 THREADOBJ
="Python/thread.o"
11980 elif test "$ac_cv_kthread" = "yes"
11983 if test "$ac_cv_cxx_thread" = "yes"; then
11984 CXX
="$CXX -Kthread"
11986 cat >>confdefs.h
<<\_ACEOF
11987 #define WITH_THREAD 1
11991 THREADOBJ
="Python/thread.o"
11992 elif test "$ac_cv_pthread" = "yes"
11995 if test "$ac_cv_cxx_thread" = "yes"; then
11996 CXX
="$CXX -pthread"
11998 cat >>confdefs.h
<<\_ACEOF
11999 #define WITH_THREAD 1
12003 THREADOBJ
="Python/thread.o"
12005 if test ! -z "$with_threads" -a -d "$with_threads"
12006 then LDFLAGS
="$LDFLAGS -L$with_threads"
12008 if test ! -z "$withval" -a -d "$withval"
12009 then LDFLAGS
="$LDFLAGS -L$withval"
12012 # According to the POSIX spec, a pthreads implementation must
12013 # define _POSIX_THREADS in unistd.h. Some apparently don't
12014 # (e.g. gnu pth with pthread emulation)
12015 echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
12016 echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6
12017 cat >conftest.
$ac_ext <<_ACEOF
12020 cat confdefs.h
>>conftest.
$ac_ext
12021 cat >>conftest.
$ac_ext <<_ACEOF
12022 /* end confdefs.h. */
12024 #include <unistd.h>
12025 #ifdef _POSIX_THREADS
12030 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12031 $EGREP "yes" >/dev
/null
2>&1; then
12032 unistd_defines_pthreads
=yes
12034 unistd_defines_pthreads
=no
12038 echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
12039 echo "${ECHO_T}$unistd_defines_pthreads" >&6
12041 cat >>confdefs.h
<<\_ACEOF
12042 #define _REENTRANT 1
12045 if test "${ac_cv_header_cthreads_h+set}" = set; then
12046 echo "$as_me:$LINENO: checking for cthreads.h" >&5
12047 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6
12048 if test "${ac_cv_header_cthreads_h+set}" = set; then
12049 echo $ECHO_N "(cached) $ECHO_C" >&6
12051 echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
12052 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6
12054 # Is the header compilable?
12055 echo "$as_me:$LINENO: checking cthreads.h usability" >&5
12056 echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6
12057 cat >conftest.
$ac_ext <<_ACEOF
12060 cat confdefs.h
>>conftest.
$ac_ext
12061 cat >>conftest.
$ac_ext <<_ACEOF
12062 /* end confdefs.h. */
12063 $ac_includes_default
12064 #include <cthreads.h>
12066 rm -f conftest.
$ac_objext
12067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12068 (eval $ac_compile) 2>conftest.er1
12070 grep -v '^ *+' conftest.er1
>conftest.err
12072 cat conftest.err
>&5
12073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12074 (exit $ac_status); } &&
12075 { ac_try
='test -z "$ac_c_werror_flag"
12076 || test ! -s conftest.err'
12077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12078 (eval $ac_try) 2>&5
12080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12081 (exit $ac_status); }; } &&
12082 { ac_try
='test -s conftest.$ac_objext'
12083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12084 (eval $ac_try) 2>&5
12086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12087 (exit $ac_status); }; }; then
12088 ac_header_compiler
=yes
12090 echo "$as_me: failed program was:" >&5
12091 sed 's/^/| /' conftest.
$ac_ext >&5
12093 ac_header_compiler
=no
12095 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12096 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12097 echo "${ECHO_T}$ac_header_compiler" >&6
12099 # Is the header present?
12100 echo "$as_me:$LINENO: checking cthreads.h presence" >&5
12101 echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6
12102 cat >conftest.
$ac_ext <<_ACEOF
12105 cat confdefs.h
>>conftest.
$ac_ext
12106 cat >>conftest.
$ac_ext <<_ACEOF
12107 /* end confdefs.h. */
12108 #include <cthreads.h>
12110 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12111 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12113 grep -v '^ *+' conftest.er1
>conftest.err
12115 cat conftest.err
>&5
12116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117 (exit $ac_status); } >/dev
/null
; then
12118 if test -s conftest.err
; then
12119 ac_cpp_err
=$ac_c_preproc_warn_flag
12120 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12127 if test -z "$ac_cpp_err"; then
12128 ac_header_preproc
=yes
12130 echo "$as_me: failed program was:" >&5
12131 sed 's/^/| /' conftest.
$ac_ext >&5
12133 ac_header_preproc
=no
12135 rm -f conftest.err conftest.
$ac_ext
12136 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12137 echo "${ECHO_T}$ac_header_preproc" >&6
12139 # So? What about this header?
12140 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12142 { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
12143 echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12144 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5
12145 echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;}
12146 ac_header_preproc
=yes
12149 { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
12150 echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
12151 { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
12152 echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
12153 { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5
12154 echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;}
12155 { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
12156 echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
12157 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
12158 echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;}
12159 { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5
12160 echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;}
12163 ## ------------------------------------------------ ##
12164 ## Report this to http://www.python.org/python-bugs ##
12165 ## ------------------------------------------------ ##
12168 sed "s/^/$as_me: WARNING: /" >&2
12171 echo "$as_me:$LINENO: checking for cthreads.h" >&5
12172 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6
12173 if test "${ac_cv_header_cthreads_h+set}" = set; then
12174 echo $ECHO_N "(cached) $ECHO_C" >&6
12176 ac_cv_header_cthreads_h
=$ac_header_preproc
12178 echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
12179 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6
12182 if test $ac_cv_header_cthreads_h = yes; then
12183 cat >>confdefs.h
<<\_ACEOF
12184 #define WITH_THREAD 1
12187 cat >>confdefs.h
<<\_ACEOF
12188 #define C_THREADS 1
12192 cat >>confdefs.h
<<\_ACEOF
12193 #define HURD_C_THREADS 1
12196 LIBS
="$LIBS -lthreads"
12197 THREADOBJ
="Python/thread.o"
12200 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
12201 echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
12202 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6
12203 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
12204 echo $ECHO_N "(cached) $ECHO_C" >&6
12206 echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
12207 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6
12209 # Is the header compilable?
12210 echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
12211 echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6
12212 cat >conftest.
$ac_ext <<_ACEOF
12215 cat confdefs.h
>>conftest.
$ac_ext
12216 cat >>conftest.
$ac_ext <<_ACEOF
12217 /* end confdefs.h. */
12218 $ac_includes_default
12219 #include <mach/cthreads.h>
12221 rm -f conftest.
$ac_objext
12222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12223 (eval $ac_compile) 2>conftest.er1
12225 grep -v '^ *+' conftest.er1
>conftest.err
12227 cat conftest.err
>&5
12228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229 (exit $ac_status); } &&
12230 { ac_try
='test -z "$ac_c_werror_flag"
12231 || test ! -s conftest.err'
12232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12233 (eval $ac_try) 2>&5
12235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12236 (exit $ac_status); }; } &&
12237 { ac_try
='test -s conftest.$ac_objext'
12238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12239 (eval $ac_try) 2>&5
12241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12242 (exit $ac_status); }; }; then
12243 ac_header_compiler
=yes
12245 echo "$as_me: failed program was:" >&5
12246 sed 's/^/| /' conftest.
$ac_ext >&5
12248 ac_header_compiler
=no
12250 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12251 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12252 echo "${ECHO_T}$ac_header_compiler" >&6
12254 # Is the header present?
12255 echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
12256 echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6
12257 cat >conftest.
$ac_ext <<_ACEOF
12260 cat confdefs.h
>>conftest.
$ac_ext
12261 cat >>conftest.
$ac_ext <<_ACEOF
12262 /* end confdefs.h. */
12263 #include <mach/cthreads.h>
12265 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12266 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12268 grep -v '^ *+' conftest.er1
>conftest.err
12270 cat conftest.err
>&5
12271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12272 (exit $ac_status); } >/dev
/null
; then
12273 if test -s conftest.err
; then
12274 ac_cpp_err
=$ac_c_preproc_warn_flag
12275 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12282 if test -z "$ac_cpp_err"; then
12283 ac_header_preproc
=yes
12285 echo "$as_me: failed program was:" >&5
12286 sed 's/^/| /' conftest.
$ac_ext >&5
12288 ac_header_preproc
=no
12290 rm -f conftest.err conftest.
$ac_ext
12291 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12292 echo "${ECHO_T}$ac_header_preproc" >&6
12294 # So? What about this header?
12295 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12297 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
12298 echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12299 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
12300 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
12301 ac_header_preproc
=yes
12304 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
12305 echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
12306 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
12307 echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
12308 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
12309 echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
12310 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
12311 echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
12312 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
12313 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
12314 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
12315 echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
12318 ## ------------------------------------------------ ##
12319 ## Report this to http://www.python.org/python-bugs ##
12320 ## ------------------------------------------------ ##
12323 sed "s/^/$as_me: WARNING: /" >&2
12326 echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
12327 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6
12328 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
12329 echo $ECHO_N "(cached) $ECHO_C" >&6
12331 ac_cv_header_mach_cthreads_h
=$ac_header_preproc
12333 echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
12334 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6
12337 if test $ac_cv_header_mach_cthreads_h = yes; then
12338 cat >>confdefs.h
<<\_ACEOF
12339 #define WITH_THREAD 1
12342 cat >>confdefs.h
<<\_ACEOF
12343 #define C_THREADS 1
12347 cat >>confdefs.h
<<\_ACEOF
12348 #define MACH_C_THREADS 1
12351 THREADOBJ
="Python/thread.o"
12354 echo "$as_me:$LINENO: checking for --with-pth" >&5
12355 echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6
12357 # Check whether --with-pth or --without-pth was given.
12358 if test "${with_pth+set}" = set; then
12359 withval
="$with_pth"
12360 echo "$as_me:$LINENO: result: $withval" >&5
12361 echo "${ECHO_T}$withval" >&6
12362 cat >>confdefs.h
<<\_ACEOF
12363 #define WITH_THREAD 1
12367 cat >>confdefs.h
<<\_ACEOF
12372 THREADOBJ
="Python/thread.o"
12374 echo "$as_me:$LINENO: result: no" >&5
12375 echo "${ECHO_T}no" >&6
12377 # Just looking for pthread_create in libpthread is not enough:
12378 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
12379 # So we really have to include pthread.h, and then link.
12381 LIBS
="$LIBS -lpthread"
12382 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
12383 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
12384 cat >conftest.
$ac_ext <<_ACEOF
12387 cat confdefs.h
>>conftest.
$ac_ext
12388 cat >>conftest.
$ac_ext <<_ACEOF
12389 /* end confdefs.h. */
12390 #include <pthread.h>
12392 void * start_routine (void *arg) { exit (0); }
12397 pthread_create (NULL, NULL, start_routine, NULL)
12402 rm -f conftest.
$ac_objext conftest
$ac_exeext
12403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12404 (eval $ac_link) 2>conftest.er1
12406 grep -v '^ *+' conftest.er1
>conftest.err
12408 cat conftest.err
>&5
12409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12410 (exit $ac_status); } &&
12411 { ac_try
='test -z "$ac_c_werror_flag"
12412 || test ! -s conftest.err'
12413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12414 (eval $ac_try) 2>&5
12416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12417 (exit $ac_status); }; } &&
12418 { ac_try
='test -s conftest$ac_exeext'
12419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12420 (eval $ac_try) 2>&5
12422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12423 (exit $ac_status); }; }; then
12425 echo "$as_me:$LINENO: result: yes" >&5
12426 echo "${ECHO_T}yes" >&6
12427 cat >>confdefs.h
<<\_ACEOF
12428 #define WITH_THREAD 1
12432 THREADOBJ
="Python/thread.o"
12434 echo "$as_me: failed program was:" >&5
12435 sed 's/^/| /' conftest.
$ac_ext >&5
12439 echo "$as_me:$LINENO: checking for pthread_detach" >&5
12440 echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6
12441 if test "${ac_cv_func_pthread_detach+set}" = set; then
12442 echo $ECHO_N "(cached) $ECHO_C" >&6
12444 cat >conftest.
$ac_ext <<_ACEOF
12447 cat confdefs.h
>>conftest.
$ac_ext
12448 cat >>conftest.
$ac_ext <<_ACEOF
12449 /* end confdefs.h. */
12450 /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach.
12451 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12452 #define pthread_detach innocuous_pthread_detach
12454 /* System header to define __stub macros and hopefully few prototypes,
12455 which can conflict with char pthread_detach (); below.
12456 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12457 <limits.h> exists even on freestanding compilers. */
12460 # include <limits.h>
12462 # include <assert.h>
12465 #undef pthread_detach
12467 /* Override any gcc2 internal prototype to avoid an error. */
12472 /* We use char because int might match the return type of a gcc2
12473 builtin and then its argument prototype would still apply. */
12474 char pthread_detach ();
12475 /* The GNU C library defines this for functions which it implements
12476 to always fail with ENOSYS. Some functions are actually named
12477 something starting with __ and the normal name is an alias. */
12478 #if defined (__stub_pthread_detach) || defined (__stub___pthread_detach)
12481 char (*f) () = pthread_detach;
12490 return f != pthread_detach;
12495 rm -f conftest.
$ac_objext conftest
$ac_exeext
12496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12497 (eval $ac_link) 2>conftest.er1
12499 grep -v '^ *+' conftest.er1
>conftest.err
12501 cat conftest.err
>&5
12502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12503 (exit $ac_status); } &&
12504 { ac_try
='test -z "$ac_c_werror_flag"
12505 || test ! -s conftest.err'
12506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12507 (eval $ac_try) 2>&5
12509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12510 (exit $ac_status); }; } &&
12511 { ac_try
='test -s conftest$ac_exeext'
12512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12513 (eval $ac_try) 2>&5
12515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12516 (exit $ac_status); }; }; then
12517 ac_cv_func_pthread_detach
=yes
12519 echo "$as_me: failed program was:" >&5
12520 sed 's/^/| /' conftest.
$ac_ext >&5
12522 ac_cv_func_pthread_detach
=no
12524 rm -f conftest.err conftest.
$ac_objext \
12525 conftest
$ac_exeext conftest.
$ac_ext
12527 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
12528 echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6
12529 if test $ac_cv_func_pthread_detach = yes; then
12530 cat >>confdefs.h
<<\_ACEOF
12531 #define WITH_THREAD 1
12535 THREADOBJ
="Python/thread.o"
12538 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
12539 echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
12540 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6
12541 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
12542 echo $ECHO_N "(cached) $ECHO_C" >&6
12544 echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
12545 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6
12547 # Is the header compilable?
12548 echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
12549 echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6
12550 cat >conftest.
$ac_ext <<_ACEOF
12553 cat confdefs.h
>>conftest.
$ac_ext
12554 cat >>conftest.
$ac_ext <<_ACEOF
12555 /* end confdefs.h. */
12556 $ac_includes_default
12557 #include <atheos/threads.h>
12559 rm -f conftest.
$ac_objext
12560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12561 (eval $ac_compile) 2>conftest.er1
12563 grep -v '^ *+' conftest.er1
>conftest.err
12565 cat conftest.err
>&5
12566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12567 (exit $ac_status); } &&
12568 { ac_try
='test -z "$ac_c_werror_flag"
12569 || test ! -s conftest.err'
12570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12571 (eval $ac_try) 2>&5
12573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12574 (exit $ac_status); }; } &&
12575 { ac_try
='test -s conftest.$ac_objext'
12576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12577 (eval $ac_try) 2>&5
12579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12580 (exit $ac_status); }; }; then
12581 ac_header_compiler
=yes
12583 echo "$as_me: failed program was:" >&5
12584 sed 's/^/| /' conftest.
$ac_ext >&5
12586 ac_header_compiler
=no
12588 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12589 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12590 echo "${ECHO_T}$ac_header_compiler" >&6
12592 # Is the header present?
12593 echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
12594 echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6
12595 cat >conftest.
$ac_ext <<_ACEOF
12598 cat confdefs.h
>>conftest.
$ac_ext
12599 cat >>conftest.
$ac_ext <<_ACEOF
12600 /* end confdefs.h. */
12601 #include <atheos/threads.h>
12603 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12604 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12606 grep -v '^ *+' conftest.er1
>conftest.err
12608 cat conftest.err
>&5
12609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12610 (exit $ac_status); } >/dev
/null
; then
12611 if test -s conftest.err
; then
12612 ac_cpp_err
=$ac_c_preproc_warn_flag
12613 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12620 if test -z "$ac_cpp_err"; then
12621 ac_header_preproc
=yes
12623 echo "$as_me: failed program was:" >&5
12624 sed 's/^/| /' conftest.
$ac_ext >&5
12626 ac_header_preproc
=no
12628 rm -f conftest.err conftest.
$ac_ext
12629 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12630 echo "${ECHO_T}$ac_header_preproc" >&6
12632 # So? What about this header?
12633 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12635 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
12636 echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12637 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5
12638 echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;}
12639 ac_header_preproc
=yes
12642 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
12643 echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
12644 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
12645 echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
12646 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5
12647 echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;}
12648 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5
12649 echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;}
12650 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
12651 echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;}
12652 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5
12653 echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;}
12656 ## ------------------------------------------------ ##
12657 ## Report this to http://www.python.org/python-bugs ##
12658 ## ------------------------------------------------ ##
12661 sed "s/^/$as_me: WARNING: /" >&2
12664 echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
12665 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6
12666 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
12667 echo $ECHO_N "(cached) $ECHO_C" >&6
12669 ac_cv_header_atheos_threads_h
=$ac_header_preproc
12671 echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
12672 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6
12675 if test $ac_cv_header_atheos_threads_h = yes; then
12676 cat >>confdefs.h
<<\_ACEOF
12677 #define WITH_THREAD 1
12681 cat >>confdefs.h
<<\_ACEOF
12682 #define ATHEOS_THREADS 1
12685 THREADOBJ
="Python/thread.o"
12688 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
12689 echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
12690 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6
12691 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
12692 echo $ECHO_N "(cached) $ECHO_C" >&6
12694 echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
12695 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6
12697 # Is the header compilable?
12698 echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5
12699 echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6
12700 cat >conftest.
$ac_ext <<_ACEOF
12703 cat confdefs.h
>>conftest.
$ac_ext
12704 cat >>conftest.
$ac_ext <<_ACEOF
12705 /* end confdefs.h. */
12706 $ac_includes_default
12707 #include <kernel/OS.h>
12709 rm -f conftest.
$ac_objext
12710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12711 (eval $ac_compile) 2>conftest.er1
12713 grep -v '^ *+' conftest.er1
>conftest.err
12715 cat conftest.err
>&5
12716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12717 (exit $ac_status); } &&
12718 { ac_try
='test -z "$ac_c_werror_flag"
12719 || test ! -s conftest.err'
12720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12721 (eval $ac_try) 2>&5
12723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12724 (exit $ac_status); }; } &&
12725 { ac_try
='test -s conftest.$ac_objext'
12726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12727 (eval $ac_try) 2>&5
12729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12730 (exit $ac_status); }; }; then
12731 ac_header_compiler
=yes
12733 echo "$as_me: failed program was:" >&5
12734 sed 's/^/| /' conftest.
$ac_ext >&5
12736 ac_header_compiler
=no
12738 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12739 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12740 echo "${ECHO_T}$ac_header_compiler" >&6
12742 # Is the header present?
12743 echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5
12744 echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6
12745 cat >conftest.
$ac_ext <<_ACEOF
12748 cat confdefs.h
>>conftest.
$ac_ext
12749 cat >>conftest.
$ac_ext <<_ACEOF
12750 /* end confdefs.h. */
12751 #include <kernel/OS.h>
12753 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12754 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12756 grep -v '^ *+' conftest.er1
>conftest.err
12758 cat conftest.err
>&5
12759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12760 (exit $ac_status); } >/dev
/null
; then
12761 if test -s conftest.err
; then
12762 ac_cpp_err
=$ac_c_preproc_warn_flag
12763 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12770 if test -z "$ac_cpp_err"; then
12771 ac_header_preproc
=yes
12773 echo "$as_me: failed program was:" >&5
12774 sed 's/^/| /' conftest.
$ac_ext >&5
12776 ac_header_preproc
=no
12778 rm -f conftest.err conftest.
$ac_ext
12779 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12780 echo "${ECHO_T}$ac_header_preproc" >&6
12782 # So? What about this header?
12783 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12785 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5
12786 echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12787 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5
12788 echo "$as_me: WARNING: kernel/OS.h: proceeding with the compiler's result" >&2;}
12789 ac_header_preproc
=yes
12792 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5
12793 echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;}
12794 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5
12795 echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;}
12796 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5
12797 echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;}
12798 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5
12799 echo "$as_me: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&2;}
12800 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5
12801 echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;}
12802 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5
12803 echo "$as_me: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&2;}
12806 ## ------------------------------------------------ ##
12807 ## Report this to http://www.python.org/python-bugs ##
12808 ## ------------------------------------------------ ##
12811 sed "s/^/$as_me: WARNING: /" >&2
12814 echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
12815 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6
12816 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
12817 echo $ECHO_N "(cached) $ECHO_C" >&6
12819 ac_cv_header_kernel_OS_h
=$ac_header_preproc
12821 echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
12822 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6
12825 if test $ac_cv_header_kernel_OS_h = yes; then
12826 cat >>confdefs.h
<<\_ACEOF
12827 #define WITH_THREAD 1
12831 cat >>confdefs.h
<<\_ACEOF
12832 #define BEOS_THREADS 1
12835 THREADOBJ
="Python/thread.o"
12838 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
12839 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
12840 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
12841 echo $ECHO_N "(cached) $ECHO_C" >&6
12843 ac_check_lib_save_LIBS
=$LIBS
12844 LIBS
="-lpthreads $LIBS"
12845 cat >conftest.
$ac_ext <<_ACEOF
12848 cat confdefs.h
>>conftest.
$ac_ext
12849 cat >>conftest.
$ac_ext <<_ACEOF
12850 /* end confdefs.h. */
12852 /* Override any gcc2 internal prototype to avoid an error. */
12856 /* We use char because int might match the return type of a gcc2
12857 builtin and then its argument prototype would still apply. */
12858 char pthread_create ();
12867 rm -f conftest.
$ac_objext conftest
$ac_exeext
12868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12869 (eval $ac_link) 2>conftest.er1
12871 grep -v '^ *+' conftest.er1
>conftest.err
12873 cat conftest.err
>&5
12874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12875 (exit $ac_status); } &&
12876 { ac_try
='test -z "$ac_c_werror_flag"
12877 || test ! -s conftest.err'
12878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12879 (eval $ac_try) 2>&5
12881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12882 (exit $ac_status); }; } &&
12883 { ac_try
='test -s conftest$ac_exeext'
12884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12885 (eval $ac_try) 2>&5
12887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12888 (exit $ac_status); }; }; then
12889 ac_cv_lib_pthreads_pthread_create
=yes
12891 echo "$as_me: failed program was:" >&5
12892 sed 's/^/| /' conftest.
$ac_ext >&5
12894 ac_cv_lib_pthreads_pthread_create
=no
12896 rm -f conftest.err conftest.
$ac_objext \
12897 conftest
$ac_exeext conftest.
$ac_ext
12898 LIBS
=$ac_check_lib_save_LIBS
12900 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
12901 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
12902 if test $ac_cv_lib_pthreads_pthread_create = yes; then
12903 cat >>confdefs.h
<<\_ACEOF
12904 #define WITH_THREAD 1
12908 LIBS
="$LIBS -lpthreads"
12909 THREADOBJ
="Python/thread.o"
12912 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
12913 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
12914 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
12915 echo $ECHO_N "(cached) $ECHO_C" >&6
12917 ac_check_lib_save_LIBS
=$LIBS
12919 cat >conftest.
$ac_ext <<_ACEOF
12922 cat confdefs.h
>>conftest.
$ac_ext
12923 cat >>conftest.
$ac_ext <<_ACEOF
12924 /* end confdefs.h. */
12926 /* Override any gcc2 internal prototype to avoid an error. */
12930 /* We use char because int might match the return type of a gcc2
12931 builtin and then its argument prototype would still apply. */
12932 char pthread_create ();
12941 rm -f conftest.
$ac_objext conftest
$ac_exeext
12942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12943 (eval $ac_link) 2>conftest.er1
12945 grep -v '^ *+' conftest.er1
>conftest.err
12947 cat conftest.err
>&5
12948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12949 (exit $ac_status); } &&
12950 { ac_try
='test -z "$ac_c_werror_flag"
12951 || test ! -s conftest.err'
12952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12953 (eval $ac_try) 2>&5
12955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12956 (exit $ac_status); }; } &&
12957 { ac_try
='test -s conftest$ac_exeext'
12958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12959 (eval $ac_try) 2>&5
12961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12962 (exit $ac_status); }; }; then
12963 ac_cv_lib_c_r_pthread_create
=yes
12965 echo "$as_me: failed program was:" >&5
12966 sed 's/^/| /' conftest.
$ac_ext >&5
12968 ac_cv_lib_c_r_pthread_create
=no
12970 rm -f conftest.err conftest.
$ac_objext \
12971 conftest
$ac_exeext conftest.
$ac_ext
12972 LIBS
=$ac_check_lib_save_LIBS
12974 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
12975 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
12976 if test $ac_cv_lib_c_r_pthread_create = yes; then
12977 cat >>confdefs.h
<<\_ACEOF
12978 #define WITH_THREAD 1
12983 THREADOBJ
="Python/thread.o"
12986 echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
12987 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6
12988 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
12989 echo $ECHO_N "(cached) $ECHO_C" >&6
12991 ac_check_lib_save_LIBS
=$LIBS
12992 LIBS
="-lpthread $LIBS"
12993 cat >conftest.
$ac_ext <<_ACEOF
12996 cat confdefs.h
>>conftest.
$ac_ext
12997 cat >>conftest.
$ac_ext <<_ACEOF
12998 /* end confdefs.h. */
13000 /* Override any gcc2 internal prototype to avoid an error. */
13004 /* We use char because int might match the return type of a gcc2
13005 builtin and then its argument prototype would still apply. */
13006 char __pthread_create_system ();
13010 __pthread_create_system ();
13015 rm -f conftest.
$ac_objext conftest
$ac_exeext
13016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13017 (eval $ac_link) 2>conftest.er1
13019 grep -v '^ *+' conftest.er1
>conftest.err
13021 cat conftest.err
>&5
13022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13023 (exit $ac_status); } &&
13024 { ac_try
='test -z "$ac_c_werror_flag"
13025 || test ! -s conftest.err'
13026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13027 (eval $ac_try) 2>&5
13029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13030 (exit $ac_status); }; } &&
13031 { ac_try
='test -s conftest$ac_exeext'
13032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13033 (eval $ac_try) 2>&5
13035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13036 (exit $ac_status); }; }; then
13037 ac_cv_lib_pthread___pthread_create_system
=yes
13039 echo "$as_me: failed program was:" >&5
13040 sed 's/^/| /' conftest.
$ac_ext >&5
13042 ac_cv_lib_pthread___pthread_create_system
=no
13044 rm -f conftest.err conftest.
$ac_objext \
13045 conftest
$ac_exeext conftest.
$ac_ext
13046 LIBS
=$ac_check_lib_save_LIBS
13048 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
13049 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6
13050 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
13051 cat >>confdefs.h
<<\_ACEOF
13052 #define WITH_THREAD 1
13056 LIBS
="$LIBS -lpthread"
13057 THREADOBJ
="Python/thread.o"
13060 echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
13061 echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6
13062 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
13063 echo $ECHO_N "(cached) $ECHO_C" >&6
13065 ac_check_lib_save_LIBS
=$LIBS
13067 cat >conftest.
$ac_ext <<_ACEOF
13070 cat confdefs.h
>>conftest.
$ac_ext
13071 cat >>conftest.
$ac_ext <<_ACEOF
13072 /* end confdefs.h. */
13074 /* Override any gcc2 internal prototype to avoid an error. */
13078 /* We use char because int might match the return type of a gcc2
13079 builtin and then its argument prototype would still apply. */
13080 char pthread_create ();
13089 rm -f conftest.
$ac_objext conftest
$ac_exeext
13090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13091 (eval $ac_link) 2>conftest.er1
13093 grep -v '^ *+' conftest.er1
>conftest.err
13095 cat conftest.err
>&5
13096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13097 (exit $ac_status); } &&
13098 { ac_try
='test -z "$ac_c_werror_flag"
13099 || test ! -s conftest.err'
13100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13101 (eval $ac_try) 2>&5
13103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13104 (exit $ac_status); }; } &&
13105 { ac_try
='test -s conftest$ac_exeext'
13106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13107 (eval $ac_try) 2>&5
13109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13110 (exit $ac_status); }; }; then
13111 ac_cv_lib_cma_pthread_create
=yes
13113 echo "$as_me: failed program was:" >&5
13114 sed 's/^/| /' conftest.
$ac_ext >&5
13116 ac_cv_lib_cma_pthread_create
=no
13118 rm -f conftest.err conftest.
$ac_objext \
13119 conftest
$ac_exeext conftest.
$ac_ext
13120 LIBS
=$ac_check_lib_save_LIBS
13122 echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
13123 echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6
13124 if test $ac_cv_lib_cma_pthread_create = yes; then
13125 cat >>confdefs.h
<<\_ACEOF
13126 #define WITH_THREAD 1
13131 THREADOBJ
="Python/thread.o"
13134 USE_THREAD_MODULE
="#"
13153 rm -f conftest.err conftest.
$ac_objext \
13154 conftest
$ac_exeext conftest.
$ac_ext
13163 echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
13164 echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6
13165 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
13166 echo $ECHO_N "(cached) $ECHO_C" >&6
13168 ac_check_lib_save_LIBS
=$LIBS
13170 cat >conftest.
$ac_ext <<_ACEOF
13173 cat confdefs.h
>>conftest.
$ac_ext
13174 cat >>conftest.
$ac_ext <<_ACEOF
13175 /* end confdefs.h. */
13177 /* Override any gcc2 internal prototype to avoid an error. */
13181 /* We use char because int might match the return type of a gcc2
13182 builtin and then its argument prototype would still apply. */
13192 rm -f conftest.
$ac_objext conftest
$ac_exeext
13193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13194 (eval $ac_link) 2>conftest.er1
13196 grep -v '^ *+' conftest.er1
>conftest.err
13198 cat conftest.err
>&5
13199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13200 (exit $ac_status); } &&
13201 { ac_try
='test -z "$ac_c_werror_flag"
13202 || test ! -s conftest.err'
13203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13204 (eval $ac_try) 2>&5
13206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13207 (exit $ac_status); }; } &&
13208 { ac_try
='test -s conftest$ac_exeext'
13209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13210 (eval $ac_try) 2>&5
13212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13213 (exit $ac_status); }; }; then
13214 ac_cv_lib_mpc_usconfig
=yes
13216 echo "$as_me: failed program was:" >&5
13217 sed 's/^/| /' conftest.
$ac_ext >&5
13219 ac_cv_lib_mpc_usconfig
=no
13221 rm -f conftest.err conftest.
$ac_objext \
13222 conftest
$ac_exeext conftest.
$ac_ext
13223 LIBS
=$ac_check_lib_save_LIBS
13225 echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
13226 echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6
13227 if test $ac_cv_lib_mpc_usconfig = yes; then
13228 cat >>confdefs.h
<<\_ACEOF
13229 #define WITH_THREAD 1
13233 THREADOBJ
="Python/thread.o"
13234 USE_THREAD_MODULE
=""
13238 if test "$posix_threads" != "yes"; then
13239 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
13240 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
13241 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
13242 echo $ECHO_N "(cached) $ECHO_C" >&6
13244 ac_check_lib_save_LIBS
=$LIBS
13245 LIBS
="-lthread $LIBS"
13246 cat >conftest.
$ac_ext <<_ACEOF
13249 cat confdefs.h
>>conftest.
$ac_ext
13250 cat >>conftest.
$ac_ext <<_ACEOF
13251 /* end confdefs.h. */
13253 /* Override any gcc2 internal prototype to avoid an error. */
13257 /* We use char because int might match the return type of a gcc2
13258 builtin and then its argument prototype would still apply. */
13259 char thr_create ();
13268 rm -f conftest.
$ac_objext conftest
$ac_exeext
13269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13270 (eval $ac_link) 2>conftest.er1
13272 grep -v '^ *+' conftest.er1
>conftest.err
13274 cat conftest.err
>&5
13275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13276 (exit $ac_status); } &&
13277 { ac_try
='test -z "$ac_c_werror_flag"
13278 || test ! -s conftest.err'
13279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13280 (eval $ac_try) 2>&5
13282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13283 (exit $ac_status); }; } &&
13284 { ac_try
='test -s conftest$ac_exeext'
13285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13286 (eval $ac_try) 2>&5
13288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13289 (exit $ac_status); }; }; then
13290 ac_cv_lib_thread_thr_create
=yes
13292 echo "$as_me: failed program was:" >&5
13293 sed 's/^/| /' conftest.
$ac_ext >&5
13295 ac_cv_lib_thread_thr_create
=no
13297 rm -f conftest.err conftest.
$ac_objext \
13298 conftest
$ac_exeext conftest.
$ac_ext
13299 LIBS
=$ac_check_lib_save_LIBS
13301 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
13302 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
13303 if test $ac_cv_lib_thread_thr_create = yes; then
13304 cat >>confdefs.h
<<\_ACEOF
13305 #define WITH_THREAD 1
13308 LIBS
="$LIBS -lthread"
13309 THREADOBJ
="Python/thread.o"
13310 USE_THREAD_MODULE
=""
13315 if test "$USE_THREAD_MODULE" != "#"
13317 # If the above checks didn't disable threads, (at least) OSF1
13318 # needs this '-threads' argument during linking.
13319 case $ac_sys_system in
13320 OSF1
) LDLAST
=-threads;;
13325 if test "$posix_threads" = "yes"; then
13326 if test "$unistd_defines_pthreads" = "no"; then
13328 cat >>confdefs.h
<<\_ACEOF
13329 #define _POSIX_THREADS 1
13334 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
13335 case $ac_sys_system/$ac_sys_release in
13337 cat >>confdefs.h
<<\_ACEOF
13338 #define HAVE_PTHREAD_DESTRUCTOR 1
13343 cat >>confdefs.h
<<\_ACEOF
13344 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
13350 echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
13351 echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6
13352 if test "${ac_cv_pthread_system_supported+set}" = set; then
13353 echo $ECHO_N "(cached) $ECHO_C" >&6
13355 if test "$cross_compiling" = yes; then
13356 ac_cv_pthread_system_supported
=no
13358 cat >conftest.
$ac_ext <<_ACEOF
13361 cat confdefs.h
>>conftest.
$ac_ext
13362 cat >>conftest.
$ac_ext <<_ACEOF
13363 /* end confdefs.h. */
13364 #include <pthread.h>
13365 void *foo(void *parm) {
13369 pthread_attr_t attr;
13371 if (pthread_attr_init(&attr)) exit(-1);
13372 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
13373 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
13377 rm -f conftest
$ac_exeext
13378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13379 (eval $ac_link) 2>&5
13381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13382 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13384 (eval $ac_try) 2>&5
13386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13387 (exit $ac_status); }; }; then
13388 ac_cv_pthread_system_supported
=yes
13390 echo "$as_me: program exited with status $ac_status" >&5
13391 echo "$as_me: failed program was:" >&5
13392 sed 's/^/| /' conftest.
$ac_ext >&5
13394 ( exit $ac_status )
13395 ac_cv_pthread_system_supported
=no
13397 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13402 echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
13403 echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6
13404 if test "$ac_cv_pthread_system_supported" = "yes"; then
13406 cat >>confdefs.h
<<\_ACEOF
13407 #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
13412 for ac_func
in pthread_sigmask
13414 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13415 echo "$as_me:$LINENO: checking for $ac_func" >&5
13416 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13417 if eval "test \"\${$as_ac_var+set}\" = set"; then
13418 echo $ECHO_N "(cached) $ECHO_C" >&6
13420 cat >conftest.
$ac_ext <<_ACEOF
13423 cat confdefs.h
>>conftest.
$ac_ext
13424 cat >>conftest.
$ac_ext <<_ACEOF
13425 /* end confdefs.h. */
13426 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13427 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13428 #define $ac_func innocuous_$ac_func
13430 /* System header to define __stub macros and hopefully few prototypes,
13431 which can conflict with char $ac_func (); below.
13432 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13433 <limits.h> exists even on freestanding compilers. */
13436 # include <limits.h>
13438 # include <assert.h>
13443 /* Override any gcc2 internal prototype to avoid an error. */
13448 /* We use char because int might match the return type of a gcc2
13449 builtin and then its argument prototype would still apply. */
13451 /* The GNU C library defines this for functions which it implements
13452 to always fail with ENOSYS. Some functions are actually named
13453 something starting with __ and the normal name is an alias. */
13454 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13457 char (*f) () = $ac_func;
13466 return f != $ac_func;
13471 rm -f conftest.
$ac_objext conftest
$ac_exeext
13472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13473 (eval $ac_link) 2>conftest.er1
13475 grep -v '^ *+' conftest.er1
>conftest.err
13477 cat conftest.err
>&5
13478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13479 (exit $ac_status); } &&
13480 { ac_try
='test -z "$ac_c_werror_flag"
13481 || test ! -s conftest.err'
13482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13483 (eval $ac_try) 2>&5
13485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13486 (exit $ac_status); }; } &&
13487 { ac_try
='test -s conftest$ac_exeext'
13488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13489 (eval $ac_try) 2>&5
13491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13492 (exit $ac_status); }; }; then
13493 eval "$as_ac_var=yes"
13495 echo "$as_me: failed program was:" >&5
13496 sed 's/^/| /' conftest.
$ac_ext >&5
13498 eval "$as_ac_var=no"
13500 rm -f conftest.err conftest.
$ac_objext \
13501 conftest
$ac_exeext conftest.
$ac_ext
13503 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13504 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13505 if test `eval echo '${'$as_ac_var'}'` = yes; then
13506 cat >>confdefs.h
<<_ACEOF
13507 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13509 case $ac_sys_system in
13512 cat >>confdefs.h
<<\_ACEOF
13513 #define HAVE_BROKEN_PTHREAD_SIGMASK 1
13524 # Check for enable-ipv6
13527 echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
13528 echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6
13529 # Check whether --enable-ipv6 or --disable-ipv6 was given.
13530 if test "${enable_ipv6+set}" = set; then
13531 enableval
="$enable_ipv6"
13532 case "$enableval" in
13534 echo "$as_me:$LINENO: result: no" >&5
13535 echo "${ECHO_T}no" >&6
13538 *) echo "$as_me:$LINENO: result: yes" >&5
13539 echo "${ECHO_T}yes" >&6
13540 cat >>confdefs.h
<<\_ACEOF
13541 #define ENABLE_IPV6 1
13549 if test "$cross_compiling" = yes; then
13550 echo "$as_me:$LINENO: result: no" >&5
13551 echo "${ECHO_T}no" >&6
13555 cat >conftest.
$ac_ext <<_ACEOF
13558 cat confdefs.h
>>conftest.
$ac_ext
13559 cat >>conftest.
$ac_ext <<_ACEOF
13560 /* end confdefs.h. */
13561 /* AF_INET6 available check */
13562 #include <sys/types.h>
13563 #include <sys/socket.h>
13566 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
13573 rm -f conftest
$ac_exeext
13574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13575 (eval $ac_link) 2>&5
13577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13578 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13580 (eval $ac_try) 2>&5
13582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13583 (exit $ac_status); }; }; then
13584 echo "$as_me:$LINENO: result: yes" >&5
13585 echo "${ECHO_T}yes" >&6
13588 echo "$as_me: program exited with status $ac_status" >&5
13589 echo "$as_me: failed program was:" >&5
13590 sed 's/^/| /' conftest.
$ac_ext >&5
13592 ( exit $ac_status )
13593 echo "$as_me:$LINENO: result: no" >&5
13594 echo "${ECHO_T}no" >&6
13597 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13600 if test "$ipv6" = "yes"; then
13601 echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
13602 echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6
13603 cat >conftest.
$ac_ext <<_ACEOF
13606 cat confdefs.h
>>conftest.
$ac_ext
13607 cat >>conftest.
$ac_ext <<_ACEOF
13608 /* end confdefs.h. */
13609 #include <sys/types.h>
13610 #include <netinet/in.h>
13614 struct sockaddr_in6 x;
13620 rm -f conftest.
$ac_objext
13621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13622 (eval $ac_compile) 2>conftest.er1
13624 grep -v '^ *+' conftest.er1
>conftest.err
13626 cat conftest.err
>&5
13627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13628 (exit $ac_status); } &&
13629 { ac_try
='test -z "$ac_c_werror_flag"
13630 || test ! -s conftest.err'
13631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13632 (eval $ac_try) 2>&5
13634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13635 (exit $ac_status); }; } &&
13636 { ac_try
='test -s conftest.$ac_objext'
13637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13638 (eval $ac_try) 2>&5
13640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13641 (exit $ac_status); }; }; then
13642 echo "$as_me:$LINENO: result: yes" >&5
13643 echo "${ECHO_T}yes" >&6
13646 echo "$as_me: failed program was:" >&5
13647 sed 's/^/| /' conftest.
$ac_ext >&5
13649 echo "$as_me:$LINENO: result: no" >&5
13650 echo "${ECHO_T}no" >&6
13653 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13656 if test "$ipv6" = "yes"; then
13657 cat >>confdefs.h
<<\_ACEOF
13658 #define ENABLE_IPV6 1
13669 if test "$ipv6" = "yes"; then
13670 echo "$as_me:$LINENO: checking ipv6 stack type" >&5
13671 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6
13672 for i
in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta
;
13676 cat >conftest.
$ac_ext <<_ACEOF
13679 cat confdefs.h
>>conftest.
$ac_ext
13680 cat >>conftest.
$ac_ext <<_ACEOF
13681 /* end confdefs.h. */
13683 #include <netinet/in.h>
13684 #ifdef IPV6_INRIA_VERSION
13688 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13689 $EGREP "yes" >/dev
/null
2>&1; then
13696 cat >conftest.
$ac_ext <<_ACEOF
13699 cat confdefs.h
>>conftest.
$ac_ext
13700 cat >>conftest.
$ac_ext <<_ACEOF
13701 /* end confdefs.h. */
13703 #include <netinet/in.h>
13708 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13709 $EGREP "yes" >/dev
/null
2>&1; then
13712 ipv6libdir
=/usr
/local
/v
6/lib
13719 cat >conftest.
$ac_ext <<_ACEOF
13722 cat confdefs.h
>>conftest.
$ac_ext
13723 cat >>conftest.
$ac_ext <<_ACEOF
13724 /* end confdefs.h. */
13726 #include <features.h>
13727 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
13731 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13732 $EGREP "yes" >/dev
/null
2>&1; then
13740 if test -d /usr
/inet6
; then
13743 ipv6libdir
=/usr
/inet
6/lib
13744 BASECFLAGS
="-I/usr/inet6/include $BASECFLAGS"
13748 if test -f /etc
/netconfig
; then
13749 if /usr
/xpg
4/bin
/grep -q tcp6
/etc
/netconfig
; then
13756 cat >conftest.
$ac_ext <<_ACEOF
13759 cat confdefs.h
>>conftest.
$ac_ext
13760 cat >>conftest.
$ac_ext <<_ACEOF
13761 /* end confdefs.h. */
13763 #include <sys/param.h>
13764 #ifdef _TOSHIBA_INET6
13768 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13769 $EGREP "yes" >/dev
/null
2>&1; then
13772 ipv6libdir
=/usr
/local
/v
6/lib
13778 cat >conftest.
$ac_ext <<_ACEOF
13781 cat confdefs.h
>>conftest.
$ac_ext
13782 cat >>conftest.
$ac_ext <<_ACEOF
13783 /* end confdefs.h. */
13785 #include </usr/local/v6/include/sys/v6config.h>
13790 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13791 $EGREP "yes" >/dev
/null
2>&1; then
13794 ipv6libdir
=/usr
/local
/v
6/lib
;
13795 BASECFLAGS
="-I/usr/local/v6/include $BASECFLAGS"
13801 cat >conftest.
$ac_ext <<_ACEOF
13804 cat confdefs.h
>>conftest.
$ac_ext
13805 cat >>conftest.
$ac_ext <<_ACEOF
13806 /* end confdefs.h. */
13808 #include <sys/param.h>
13809 #ifdef _ZETA_MINAMI_INET6
13813 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13814 $EGREP "yes" >/dev
/null
2>&1; then
13817 ipv6libdir
=/usr
/local
/v
6/lib
13823 if test "$ipv6type" != "unknown"; then
13827 echo "$as_me:$LINENO: result: $ipv6type" >&5
13828 echo "${ECHO_T}$ipv6type" >&6
13831 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
13832 if test -d $ipv6libdir -a -f $ipv6libdir/lib
$ipv6lib.a
; then
13833 LIBS
="-L$ipv6libdir -l$ipv6lib $LIBS"
13834 echo "using lib$ipv6lib"
13836 if test $ipv6trylibc = "yes"; then
13839 echo 'Fatal: no $ipv6lib library found. cannot continue.'
13840 echo "You need to fetch lib$ipv6lib.a from appropriate"
13841 echo 'ipv6 kit and compile beforehand.'
13847 # Check for --with-doc-strings
13848 echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
13849 echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6
13851 # Check whether --with-doc-strings or --without-doc-strings was given.
13852 if test "${with_doc_strings+set}" = set; then
13853 withval
="$with_doc_strings"
13857 if test -z "$with_doc_strings"
13858 then with_doc_strings
="yes"
13860 if test "$with_doc_strings" != "no"
13863 cat >>confdefs.h
<<\_ACEOF
13864 #define WITH_DOC_STRINGS 1
13868 echo "$as_me:$LINENO: result: $with_doc_strings" >&5
13869 echo "${ECHO_T}$with_doc_strings" >&6
13871 # Check for Python-specific malloc support
13872 echo "$as_me:$LINENO: checking for --with-tsc" >&5
13873 echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6
13875 # Check whether --with-tsc or --without-tsc was given.
13876 if test "${with_tsc+set}" = set; then
13877 withval
="$with_tsc"
13879 if test "$withval" != no
13882 cat >>confdefs.h
<<\_ACEOF
13886 echo "$as_me:$LINENO: result: yes" >&5
13887 echo "${ECHO_T}yes" >&6
13888 else echo "$as_me:$LINENO: result: no" >&5
13889 echo "${ECHO_T}no" >&6
13892 echo "$as_me:$LINENO: result: no" >&5
13893 echo "${ECHO_T}no" >&6
13896 # Check for Python-specific malloc support
13897 echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
13898 echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6
13900 # Check whether --with-pymalloc or --without-pymalloc was given.
13901 if test "${with_pymalloc+set}" = set; then
13902 withval
="$with_pymalloc"
13906 if test -z "$with_pymalloc"
13907 then with_pymalloc
="yes"
13909 if test "$with_pymalloc" != "no"
13912 cat >>confdefs.h
<<\_ACEOF
13913 #define WITH_PYMALLOC 1
13917 echo "$as_me:$LINENO: result: $with_pymalloc" >&5
13918 echo "${ECHO_T}$with_pymalloc" >&6
13920 # Check for --with-wctype-functions
13921 echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
13922 echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6
13924 # Check whether --with-wctype-functions or --without-wctype-functions was given.
13925 if test "${with_wctype_functions+set}" = set; then
13926 withval
="$with_wctype_functions"
13928 if test "$withval" != no
13931 cat >>confdefs.h
<<\_ACEOF
13932 #define WANT_WCTYPE_FUNCTIONS 1
13935 echo "$as_me:$LINENO: result: yes" >&5
13936 echo "${ECHO_T}yes" >&6
13937 else echo "$as_me:$LINENO: result: no" >&5
13938 echo "${ECHO_T}no" >&6
13941 echo "$as_me:$LINENO: result: no" >&5
13942 echo "${ECHO_T}no" >&6
13945 # -I${DLINCLDIR} is added to the compile rule for importdl.o
13949 # the dlopen() function means we might want to use dynload_shlib.o. some
13950 # platforms, such as AIX, have dlopen(), but don't want to use it.
13952 for ac_func
in dlopen
13954 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13955 echo "$as_me:$LINENO: checking for $ac_func" >&5
13956 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13957 if eval "test \"\${$as_ac_var+set}\" = set"; then
13958 echo $ECHO_N "(cached) $ECHO_C" >&6
13960 cat >conftest.
$ac_ext <<_ACEOF
13963 cat confdefs.h
>>conftest.
$ac_ext
13964 cat >>conftest.
$ac_ext <<_ACEOF
13965 /* end confdefs.h. */
13966 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13967 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13968 #define $ac_func innocuous_$ac_func
13970 /* System header to define __stub macros and hopefully few prototypes,
13971 which can conflict with char $ac_func (); below.
13972 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13973 <limits.h> exists even on freestanding compilers. */
13976 # include <limits.h>
13978 # include <assert.h>
13983 /* Override any gcc2 internal prototype to avoid an error. */
13988 /* We use char because int might match the return type of a gcc2
13989 builtin and then its argument prototype would still apply. */
13991 /* The GNU C library defines this for functions which it implements
13992 to always fail with ENOSYS. Some functions are actually named
13993 something starting with __ and the normal name is an alias. */
13994 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13997 char (*f) () = $ac_func;
14006 return f != $ac_func;
14011 rm -f conftest.
$ac_objext conftest
$ac_exeext
14012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14013 (eval $ac_link) 2>conftest.er1
14015 grep -v '^ *+' conftest.er1
>conftest.err
14017 cat conftest.err
>&5
14018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14019 (exit $ac_status); } &&
14020 { ac_try
='test -z "$ac_c_werror_flag"
14021 || test ! -s conftest.err'
14022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14023 (eval $ac_try) 2>&5
14025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14026 (exit $ac_status); }; } &&
14027 { ac_try
='test -s conftest$ac_exeext'
14028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14029 (eval $ac_try) 2>&5
14031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14032 (exit $ac_status); }; }; then
14033 eval "$as_ac_var=yes"
14035 echo "$as_me: failed program was:" >&5
14036 sed 's/^/| /' conftest.
$ac_ext >&5
14038 eval "$as_ac_var=no"
14040 rm -f conftest.err conftest.
$ac_objext \
14041 conftest
$ac_exeext conftest.
$ac_ext
14043 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14044 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14045 if test `eval echo '${'$as_ac_var'}'` = yes; then
14046 cat >>confdefs.h
<<_ACEOF
14047 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14054 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
14055 # loading of modules.
14057 echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
14058 echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6
14059 if test -z "$DYNLOADFILE"
14061 case $ac_sys_system/$ac_sys_release in
14062 AIX
*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
14063 if test "$ac_cv_func_dlopen" = yes
14064 then DYNLOADFILE
="dynload_shlib.o"
14065 else DYNLOADFILE
="dynload_aix.o"
14068 BeOS
*) DYNLOADFILE
="dynload_beos.o";;
14069 hp
*|HP
*) DYNLOADFILE
="dynload_hpux.o";;
14070 # Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
14071 Darwin
/[0156]\..
*) DYNLOADFILE
="dynload_next.o";;
14072 atheos
*) DYNLOADFILE
="dynload_atheos.o";;
14074 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
14075 # out any dynamic loading
14076 if test "$ac_cv_func_dlopen" = yes
14077 then DYNLOADFILE
="dynload_shlib.o"
14078 else DYNLOADFILE
="dynload_stub.o"
14083 echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
14084 echo "${ECHO_T}$DYNLOADFILE" >&6
14085 if test "$DYNLOADFILE" != "dynload_stub.o"
14088 cat >>confdefs.h
<<\_ACEOF
14089 #define HAVE_DYNAMIC_LOADING 1
14094 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
14097 echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
14098 echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6
14099 if test -z "$MACHDEP_OBJS"
14101 MACHDEP_OBJS
=$extra_machdep_objs
14103 MACHDEP_OBJS
="$MACHDEP_OBJS $extra_machdep_objs"
14105 echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
14106 echo "${ECHO_T}MACHDEP_OBJS" >&6
14108 # checks for library functions
14185 for ac_func
in alarm bind_textdomain_codeset chown
clock confstr ctermid \
14186 execv fork fpathconf ftime ftruncate \
14187 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
14188 getpriority getpwent getspnam getspent getsid getwd \
14189 kill killpg lchown lstat
mkfifo mknod mktime \
14190 mremap nice pathconf pause plock poll pthread_init \
14191 putenv readlink realpath \
14192 select setegid seteuid setgid \
14193 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
14194 sigaction siginterrupt sigrelse strftime \
14195 sysconf tcgetpgrp tcsetpgrp tempnam timegm
times tmpfile tmpnam tmpnam_r \
14196 truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty
14198 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14199 echo "$as_me:$LINENO: checking for $ac_func" >&5
14200 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14201 if eval "test \"\${$as_ac_var+set}\" = set"; then
14202 echo $ECHO_N "(cached) $ECHO_C" >&6
14204 cat >conftest.
$ac_ext <<_ACEOF
14207 cat confdefs.h
>>conftest.
$ac_ext
14208 cat >>conftest.
$ac_ext <<_ACEOF
14209 /* end confdefs.h. */
14210 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14211 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14212 #define $ac_func innocuous_$ac_func
14214 /* System header to define __stub macros and hopefully few prototypes,
14215 which can conflict with char $ac_func (); below.
14216 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14217 <limits.h> exists even on freestanding compilers. */
14220 # include <limits.h>
14222 # include <assert.h>
14227 /* Override any gcc2 internal prototype to avoid an error. */
14232 /* We use char because int might match the return type of a gcc2
14233 builtin and then its argument prototype would still apply. */
14235 /* The GNU C library defines this for functions which it implements
14236 to always fail with ENOSYS. Some functions are actually named
14237 something starting with __ and the normal name is an alias. */
14238 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14241 char (*f) () = $ac_func;
14250 return f != $ac_func;
14255 rm -f conftest.
$ac_objext conftest
$ac_exeext
14256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14257 (eval $ac_link) 2>conftest.er1
14259 grep -v '^ *+' conftest.er1
>conftest.err
14261 cat conftest.err
>&5
14262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14263 (exit $ac_status); } &&
14264 { ac_try
='test -z "$ac_c_werror_flag"
14265 || test ! -s conftest.err'
14266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14267 (eval $ac_try) 2>&5
14269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14270 (exit $ac_status); }; } &&
14271 { ac_try
='test -s conftest$ac_exeext'
14272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14273 (eval $ac_try) 2>&5
14275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14276 (exit $ac_status); }; }; then
14277 eval "$as_ac_var=yes"
14279 echo "$as_me: failed program was:" >&5
14280 sed 's/^/| /' conftest.
$ac_ext >&5
14282 eval "$as_ac_var=no"
14284 rm -f conftest.err conftest.
$ac_objext \
14285 conftest
$ac_exeext conftest.
$ac_ext
14287 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14288 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14289 if test `eval echo '${'$as_ac_var'}'` = yes; then
14290 cat >>confdefs.h
<<_ACEOF
14291 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14298 # For some functions, having a definition is not sufficient, since
14299 # we want to take their address.
14300 echo "$as_me:$LINENO: checking for chroot" >&5
14301 echo $ECHO_N "checking for chroot... $ECHO_C" >&6
14302 cat >conftest.
$ac_ext <<_ACEOF
14305 cat confdefs.h
>>conftest.
$ac_ext
14306 cat >>conftest.
$ac_ext <<_ACEOF
14307 /* end confdefs.h. */
14308 #include <unistd.h>
14317 rm -f conftest.
$ac_objext
14318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14319 (eval $ac_compile) 2>conftest.er1
14321 grep -v '^ *+' conftest.er1
>conftest.err
14323 cat conftest.err
>&5
14324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14325 (exit $ac_status); } &&
14326 { ac_try
='test -z "$ac_c_werror_flag"
14327 || test ! -s conftest.err'
14328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14329 (eval $ac_try) 2>&5
14331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14332 (exit $ac_status); }; } &&
14333 { ac_try
='test -s conftest.$ac_objext'
14334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14335 (eval $ac_try) 2>&5
14337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14338 (exit $ac_status); }; }; then
14340 cat >>confdefs.h
<<\_ACEOF
14341 #define HAVE_CHROOT 1
14344 echo "$as_me:$LINENO: result: yes" >&5
14345 echo "${ECHO_T}yes" >&6
14347 echo "$as_me: failed program was:" >&5
14348 sed 's/^/| /' conftest.
$ac_ext >&5
14350 echo "$as_me:$LINENO: result: no" >&5
14351 echo "${ECHO_T}no" >&6
14354 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14355 echo "$as_me:$LINENO: checking for link" >&5
14356 echo $ECHO_N "checking for link... $ECHO_C" >&6
14357 cat >conftest.
$ac_ext <<_ACEOF
14360 cat confdefs.h
>>conftest.
$ac_ext
14361 cat >>conftest.
$ac_ext <<_ACEOF
14362 /* end confdefs.h. */
14363 #include <unistd.h>
14372 rm -f conftest.
$ac_objext
14373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14374 (eval $ac_compile) 2>conftest.er1
14376 grep -v '^ *+' conftest.er1
>conftest.err
14378 cat conftest.err
>&5
14379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14380 (exit $ac_status); } &&
14381 { ac_try
='test -z "$ac_c_werror_flag"
14382 || test ! -s conftest.err'
14383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14384 (eval $ac_try) 2>&5
14386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14387 (exit $ac_status); }; } &&
14388 { ac_try
='test -s conftest.$ac_objext'
14389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14390 (eval $ac_try) 2>&5
14392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14393 (exit $ac_status); }; }; then
14395 cat >>confdefs.h
<<\_ACEOF
14396 #define HAVE_LINK 1
14399 echo "$as_me:$LINENO: result: yes" >&5
14400 echo "${ECHO_T}yes" >&6
14402 echo "$as_me: failed program was:" >&5
14403 sed 's/^/| /' conftest.
$ac_ext >&5
14405 echo "$as_me:$LINENO: result: no" >&5
14406 echo "${ECHO_T}no" >&6
14409 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14410 echo "$as_me:$LINENO: checking for symlink" >&5
14411 echo $ECHO_N "checking for symlink... $ECHO_C" >&6
14412 cat >conftest.
$ac_ext <<_ACEOF
14415 cat confdefs.h
>>conftest.
$ac_ext
14416 cat >>conftest.
$ac_ext <<_ACEOF
14417 /* end confdefs.h. */
14418 #include <unistd.h>
14427 rm -f conftest.
$ac_objext
14428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14429 (eval $ac_compile) 2>conftest.er1
14431 grep -v '^ *+' conftest.er1
>conftest.err
14433 cat conftest.err
>&5
14434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14435 (exit $ac_status); } &&
14436 { ac_try
='test -z "$ac_c_werror_flag"
14437 || test ! -s conftest.err'
14438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14439 (eval $ac_try) 2>&5
14441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14442 (exit $ac_status); }; } &&
14443 { ac_try
='test -s conftest.$ac_objext'
14444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14445 (eval $ac_try) 2>&5
14447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14448 (exit $ac_status); }; }; then
14450 cat >>confdefs.h
<<\_ACEOF
14451 #define HAVE_SYMLINK 1
14454 echo "$as_me:$LINENO: result: yes" >&5
14455 echo "${ECHO_T}yes" >&6
14457 echo "$as_me: failed program was:" >&5
14458 sed 's/^/| /' conftest.
$ac_ext >&5
14460 echo "$as_me:$LINENO: result: no" >&5
14461 echo "${ECHO_T}no" >&6
14464 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14465 echo "$as_me:$LINENO: checking for fchdir" >&5
14466 echo $ECHO_N "checking for fchdir... $ECHO_C" >&6
14467 cat >conftest.
$ac_ext <<_ACEOF
14470 cat confdefs.h
>>conftest.
$ac_ext
14471 cat >>conftest.
$ac_ext <<_ACEOF
14472 /* end confdefs.h. */
14473 #include <unistd.h>
14482 rm -f conftest.
$ac_objext
14483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14484 (eval $ac_compile) 2>conftest.er1
14486 grep -v '^ *+' conftest.er1
>conftest.err
14488 cat conftest.err
>&5
14489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14490 (exit $ac_status); } &&
14491 { ac_try
='test -z "$ac_c_werror_flag"
14492 || test ! -s conftest.err'
14493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14494 (eval $ac_try) 2>&5
14496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14497 (exit $ac_status); }; } &&
14498 { ac_try
='test -s conftest.$ac_objext'
14499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14500 (eval $ac_try) 2>&5
14502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14503 (exit $ac_status); }; }; then
14505 cat >>confdefs.h
<<\_ACEOF
14506 #define HAVE_FCHDIR 1
14509 echo "$as_me:$LINENO: result: yes" >&5
14510 echo "${ECHO_T}yes" >&6
14512 echo "$as_me: failed program was:" >&5
14513 sed 's/^/| /' conftest.
$ac_ext >&5
14515 echo "$as_me:$LINENO: result: no" >&5
14516 echo "${ECHO_T}no" >&6
14519 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14520 echo "$as_me:$LINENO: checking for fsync" >&5
14521 echo $ECHO_N "checking for fsync... $ECHO_C" >&6
14522 cat >conftest.
$ac_ext <<_ACEOF
14525 cat confdefs.h
>>conftest.
$ac_ext
14526 cat >>conftest.
$ac_ext <<_ACEOF
14527 /* end confdefs.h. */
14528 #include <unistd.h>
14537 rm -f conftest.
$ac_objext
14538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14539 (eval $ac_compile) 2>conftest.er1
14541 grep -v '^ *+' conftest.er1
>conftest.err
14543 cat conftest.err
>&5
14544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14545 (exit $ac_status); } &&
14546 { ac_try
='test -z "$ac_c_werror_flag"
14547 || test ! -s conftest.err'
14548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14549 (eval $ac_try) 2>&5
14551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14552 (exit $ac_status); }; } &&
14553 { ac_try
='test -s conftest.$ac_objext'
14554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14555 (eval $ac_try) 2>&5
14557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14558 (exit $ac_status); }; }; then
14560 cat >>confdefs.h
<<\_ACEOF
14561 #define HAVE_FSYNC 1
14564 echo "$as_me:$LINENO: result: yes" >&5
14565 echo "${ECHO_T}yes" >&6
14567 echo "$as_me: failed program was:" >&5
14568 sed 's/^/| /' conftest.
$ac_ext >&5
14570 echo "$as_me:$LINENO: result: no" >&5
14571 echo "${ECHO_T}no" >&6
14574 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14575 echo "$as_me:$LINENO: checking for fdatasync" >&5
14576 echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6
14577 cat >conftest.
$ac_ext <<_ACEOF
14580 cat confdefs.h
>>conftest.
$ac_ext
14581 cat >>conftest.
$ac_ext <<_ACEOF
14582 /* end confdefs.h. */
14583 #include <unistd.h>
14592 rm -f conftest.
$ac_objext
14593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14594 (eval $ac_compile) 2>conftest.er1
14596 grep -v '^ *+' conftest.er1
>conftest.err
14598 cat conftest.err
>&5
14599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14600 (exit $ac_status); } &&
14601 { ac_try
='test -z "$ac_c_werror_flag"
14602 || test ! -s conftest.err'
14603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14604 (eval $ac_try) 2>&5
14606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14607 (exit $ac_status); }; } &&
14608 { ac_try
='test -s conftest.$ac_objext'
14609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14610 (eval $ac_try) 2>&5
14612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14613 (exit $ac_status); }; }; then
14615 cat >>confdefs.h
<<\_ACEOF
14616 #define HAVE_FDATASYNC 1
14619 echo "$as_me:$LINENO: result: yes" >&5
14620 echo "${ECHO_T}yes" >&6
14622 echo "$as_me: failed program was:" >&5
14623 sed 's/^/| /' conftest.
$ac_ext >&5
14625 echo "$as_me:$LINENO: result: no" >&5
14626 echo "${ECHO_T}no" >&6
14629 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14631 # On some systems (eg. FreeBSD 5), we would find a definition of the
14632 # functions ctermid_r, setgroups in the library, but no prototype
14633 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
14634 # address to avoid compiler warnings and potential miscompilations
14635 # because of the missing prototypes.
14637 echo "$as_me:$LINENO: checking for ctermid_r" >&5
14638 echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6
14639 cat >conftest.
$ac_ext <<_ACEOF
14642 cat confdefs.h
>>conftest.
$ac_ext
14643 cat >>conftest.
$ac_ext <<_ACEOF
14644 /* end confdefs.h. */
14646 #include "confdefs.h"
14652 void* p = ctermid_r
14657 rm -f conftest.
$ac_objext
14658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14659 (eval $ac_compile) 2>conftest.er1
14661 grep -v '^ *+' conftest.er1
>conftest.err
14663 cat conftest.err
>&5
14664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14665 (exit $ac_status); } &&
14666 { ac_try
='test -z "$ac_c_werror_flag"
14667 || test ! -s conftest.err'
14668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14669 (eval $ac_try) 2>&5
14671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14672 (exit $ac_status); }; } &&
14673 { ac_try
='test -s conftest.$ac_objext'
14674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14675 (eval $ac_try) 2>&5
14677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14678 (exit $ac_status); }; }; then
14680 cat >>confdefs.h
<<\_ACEOF
14681 #define HAVE_CTERMID_R 1
14684 echo "$as_me:$LINENO: result: yes" >&5
14685 echo "${ECHO_T}yes" >&6
14687 echo "$as_me: failed program was:" >&5
14688 sed 's/^/| /' conftest.
$ac_ext >&5
14690 echo "$as_me:$LINENO: result: no" >&5
14691 echo "${ECHO_T}no" >&6
14694 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14696 echo "$as_me:$LINENO: checking for flock" >&5
14697 echo $ECHO_N "checking for flock... $ECHO_C" >&6
14698 cat >conftest.
$ac_ext <<_ACEOF
14701 cat confdefs.h
>>conftest.
$ac_ext
14702 cat >>conftest.
$ac_ext <<_ACEOF
14703 /* end confdefs.h. */
14705 #include "confdefs.h"
14706 #include <sys/file.h>
14716 rm -f conftest.
$ac_objext
14717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14718 (eval $ac_compile) 2>conftest.er1
14720 grep -v '^ *+' conftest.er1
>conftest.err
14722 cat conftest.err
>&5
14723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14724 (exit $ac_status); } &&
14725 { ac_try
='test -z "$ac_c_werror_flag"
14726 || test ! -s conftest.err'
14727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14728 (eval $ac_try) 2>&5
14730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14731 (exit $ac_status); }; } &&
14732 { ac_try
='test -s conftest.$ac_objext'
14733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14734 (eval $ac_try) 2>&5
14736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14737 (exit $ac_status); }; }; then
14739 cat >>confdefs.h
<<\_ACEOF
14740 #define HAVE_FLOCK 1
14743 echo "$as_me:$LINENO: result: yes" >&5
14744 echo "${ECHO_T}yes" >&6
14746 echo "$as_me: failed program was:" >&5
14747 sed 's/^/| /' conftest.
$ac_ext >&5
14749 echo "$as_me:$LINENO: result: no" >&5
14750 echo "${ECHO_T}no" >&6
14753 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14755 echo "$as_me:$LINENO: checking for getpagesize" >&5
14756 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6
14757 cat >conftest.
$ac_ext <<_ACEOF
14760 cat confdefs.h
>>conftest.
$ac_ext
14761 cat >>conftest.
$ac_ext <<_ACEOF
14762 /* end confdefs.h. */
14764 #include "confdefs.h"
14765 #include <unistd.h>
14770 void* p = getpagesize
14775 rm -f conftest.
$ac_objext
14776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14777 (eval $ac_compile) 2>conftest.er1
14779 grep -v '^ *+' conftest.er1
>conftest.err
14781 cat conftest.err
>&5
14782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14783 (exit $ac_status); } &&
14784 { ac_try
='test -z "$ac_c_werror_flag"
14785 || test ! -s conftest.err'
14786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14787 (eval $ac_try) 2>&5
14789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14790 (exit $ac_status); }; } &&
14791 { ac_try
='test -s conftest.$ac_objext'
14792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14793 (eval $ac_try) 2>&5
14795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14796 (exit $ac_status); }; }; then
14798 cat >>confdefs.h
<<\_ACEOF
14799 #define HAVE_GETPAGESIZE 1
14802 echo "$as_me:$LINENO: result: yes" >&5
14803 echo "${ECHO_T}yes" >&6
14805 echo "$as_me: failed program was:" >&5
14806 sed 's/^/| /' conftest.
$ac_ext >&5
14808 echo "$as_me:$LINENO: result: no" >&5
14809 echo "${ECHO_T}no" >&6
14812 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14814 for ac_prog
in true
14816 # Extract the first word of "$ac_prog", so it can be a program name with args.
14817 set dummy
$ac_prog; ac_word
=$2
14818 echo "$as_me:$LINENO: checking for $ac_word" >&5
14819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14820 if test "${ac_cv_prog_TRUE+set}" = set; then
14821 echo $ECHO_N "(cached) $ECHO_C" >&6
14823 if test -n "$TRUE"; then
14824 ac_cv_prog_TRUE
="$TRUE" # Let the user override the test.
14826 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14827 for as_dir
in $PATH
14830 test -z "$as_dir" && as_dir
=.
14831 for ac_exec_ext
in '' $ac_executable_extensions; do
14832 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14833 ac_cv_prog_TRUE
="$ac_prog"
14834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14842 TRUE
=$ac_cv_prog_TRUE
14843 if test -n "$TRUE"; then
14844 echo "$as_me:$LINENO: result: $TRUE" >&5
14845 echo "${ECHO_T}$TRUE" >&6
14847 echo "$as_me:$LINENO: result: no" >&5
14848 echo "${ECHO_T}no" >&6
14851 test -n "$TRUE" && break
14853 test -n "$TRUE" || TRUE
="/bin/true"
14856 echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
14857 echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6
14858 if test "${ac_cv_lib_c_inet_aton+set}" = set; then
14859 echo $ECHO_N "(cached) $ECHO_C" >&6
14861 ac_check_lib_save_LIBS
=$LIBS
14863 cat >conftest.
$ac_ext <<_ACEOF
14866 cat confdefs.h
>>conftest.
$ac_ext
14867 cat >>conftest.
$ac_ext <<_ACEOF
14868 /* end confdefs.h. */
14870 /* Override any gcc2 internal prototype to avoid an error. */
14874 /* We use char because int might match the return type of a gcc2
14875 builtin and then its argument prototype would still apply. */
14885 rm -f conftest.
$ac_objext conftest
$ac_exeext
14886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14887 (eval $ac_link) 2>conftest.er1
14889 grep -v '^ *+' conftest.er1
>conftest.err
14891 cat conftest.err
>&5
14892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14893 (exit $ac_status); } &&
14894 { ac_try
='test -z "$ac_c_werror_flag"
14895 || test ! -s conftest.err'
14896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14897 (eval $ac_try) 2>&5
14899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14900 (exit $ac_status); }; } &&
14901 { ac_try
='test -s conftest$ac_exeext'
14902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14903 (eval $ac_try) 2>&5
14905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14906 (exit $ac_status); }; }; then
14907 ac_cv_lib_c_inet_aton
=yes
14909 echo "$as_me: failed program was:" >&5
14910 sed 's/^/| /' conftest.
$ac_ext >&5
14912 ac_cv_lib_c_inet_aton
=no
14914 rm -f conftest.err conftest.
$ac_objext \
14915 conftest
$ac_exeext conftest.
$ac_ext
14916 LIBS
=$ac_check_lib_save_LIBS
14918 echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
14919 echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6
14920 if test $ac_cv_lib_c_inet_aton = yes; then
14924 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
14925 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
14926 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
14927 echo $ECHO_N "(cached) $ECHO_C" >&6
14929 ac_check_lib_save_LIBS
=$LIBS
14930 LIBS
="-lresolv $LIBS"
14931 cat >conftest.
$ac_ext <<_ACEOF
14934 cat confdefs.h
>>conftest.
$ac_ext
14935 cat >>conftest.
$ac_ext <<_ACEOF
14936 /* end confdefs.h. */
14938 /* Override any gcc2 internal prototype to avoid an error. */
14942 /* We use char because int might match the return type of a gcc2
14943 builtin and then its argument prototype would still apply. */
14953 rm -f conftest.
$ac_objext conftest
$ac_exeext
14954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14955 (eval $ac_link) 2>conftest.er1
14957 grep -v '^ *+' conftest.er1
>conftest.err
14959 cat conftest.err
>&5
14960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14961 (exit $ac_status); } &&
14962 { ac_try
='test -z "$ac_c_werror_flag"
14963 || test ! -s conftest.err'
14964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14965 (eval $ac_try) 2>&5
14967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14968 (exit $ac_status); }; } &&
14969 { ac_try
='test -s conftest$ac_exeext'
14970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14971 (eval $ac_try) 2>&5
14973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14974 (exit $ac_status); }; }; then
14975 ac_cv_lib_resolv_inet_aton
=yes
14977 echo "$as_me: failed program was:" >&5
14978 sed 's/^/| /' conftest.
$ac_ext >&5
14980 ac_cv_lib_resolv_inet_aton
=no
14982 rm -f conftest.err conftest.
$ac_objext \
14983 conftest
$ac_exeext conftest.
$ac_ext
14984 LIBS
=$ac_check_lib_save_LIBS
14986 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
14987 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
14988 if test $ac_cv_lib_resolv_inet_aton = yes; then
14989 cat >>confdefs.h
<<_ACEOF
14990 #define HAVE_LIBRESOLV 1
14993 LIBS
="-lresolv $LIBS"
15001 case $ac_sys_system/$ac_sys_release in
15003 _CUR_CFLAGS
="${CFLAGS}"
15004 _CUR_LDFLAGS
="${LDFLAGS}"
15005 CFLAGS
="${CFLAGS} -Wl,-search_paths_first"
15006 LDFLAGS
="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib"
15010 echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5
15011 echo $ECHO_N "checking for inflateCopy in -lz... $ECHO_C" >&6
15012 if test "${ac_cv_lib_z_inflateCopy+set}" = set; then
15013 echo $ECHO_N "(cached) $ECHO_C" >&6
15015 ac_check_lib_save_LIBS
=$LIBS
15017 cat >conftest.
$ac_ext <<_ACEOF
15020 cat confdefs.h
>>conftest.
$ac_ext
15021 cat >>conftest.
$ac_ext <<_ACEOF
15022 /* end confdefs.h. */
15024 /* Override any gcc2 internal prototype to avoid an error. */
15028 /* We use char because int might match the return type of a gcc2
15029 builtin and then its argument prototype would still apply. */
15030 char inflateCopy ();
15039 rm -f conftest.
$ac_objext conftest
$ac_exeext
15040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15041 (eval $ac_link) 2>conftest.er1
15043 grep -v '^ *+' conftest.er1
>conftest.err
15045 cat conftest.err
>&5
15046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15047 (exit $ac_status); } &&
15048 { ac_try
='test -z "$ac_c_werror_flag"
15049 || test ! -s conftest.err'
15050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15051 (eval $ac_try) 2>&5
15053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15054 (exit $ac_status); }; } &&
15055 { ac_try
='test -s conftest$ac_exeext'
15056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15057 (eval $ac_try) 2>&5
15059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15060 (exit $ac_status); }; }; then
15061 ac_cv_lib_z_inflateCopy
=yes
15063 echo "$as_me: failed program was:" >&5
15064 sed 's/^/| /' conftest.
$ac_ext >&5
15066 ac_cv_lib_z_inflateCopy
=no
15068 rm -f conftest.err conftest.
$ac_objext \
15069 conftest
$ac_exeext conftest.
$ac_ext
15070 LIBS
=$ac_check_lib_save_LIBS
15072 echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5
15073 echo "${ECHO_T}$ac_cv_lib_z_inflateCopy" >&6
15074 if test $ac_cv_lib_z_inflateCopy = yes; then
15076 cat >>confdefs.h
<<\_ACEOF
15077 #define HAVE_ZLIB_COPY 1
15083 case $ac_sys_system/$ac_sys_release in
15085 CFLAGS
="${_CUR_CFLAGS}"
15086 LDFLAGS
="${_CUR_LDFLAGS}"
15090 echo "$as_me:$LINENO: checking for hstrerror" >&5
15091 echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6
15092 cat >conftest.
$ac_ext <<_ACEOF
15095 cat confdefs.h
>>conftest.
$ac_ext
15096 cat >>conftest.
$ac_ext <<_ACEOF
15097 /* end confdefs.h. */
15099 #include "confdefs.h"
15105 void* p = hstrerror; hstrerror(0)
15110 rm -f conftest.
$ac_objext conftest
$ac_exeext
15111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15112 (eval $ac_link) 2>conftest.er1
15114 grep -v '^ *+' conftest.er1
>conftest.err
15116 cat conftest.err
>&5
15117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15118 (exit $ac_status); } &&
15119 { ac_try
='test -z "$ac_c_werror_flag"
15120 || test ! -s conftest.err'
15121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15122 (eval $ac_try) 2>&5
15124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15125 (exit $ac_status); }; } &&
15126 { ac_try
='test -s conftest$ac_exeext'
15127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15128 (eval $ac_try) 2>&5
15130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15131 (exit $ac_status); }; }; then
15133 cat >>confdefs.h
<<\_ACEOF
15134 #define HAVE_HSTRERROR 1
15137 echo "$as_me:$LINENO: result: yes" >&5
15138 echo "${ECHO_T}yes" >&6
15140 echo "$as_me: failed program was:" >&5
15141 sed 's/^/| /' conftest.
$ac_ext >&5
15143 echo "$as_me:$LINENO: result: no" >&5
15144 echo "${ECHO_T}no" >&6
15147 rm -f conftest.err conftest.
$ac_objext \
15148 conftest
$ac_exeext conftest.
$ac_ext
15150 echo "$as_me:$LINENO: checking for inet_aton" >&5
15151 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
15152 cat >conftest.
$ac_ext <<_ACEOF
15155 cat confdefs.h
>>conftest.
$ac_ext
15156 cat >>conftest.
$ac_ext <<_ACEOF
15157 /* end confdefs.h. */
15159 #include "confdefs.h"
15160 #include <sys/types.h>
15161 #include <sys/socket.h>
15162 #include <netinet/in.h>
15163 #include <arpa/inet.h>
15168 void* p = inet_aton;inet_aton(0,0)
15173 rm -f conftest.
$ac_objext conftest
$ac_exeext
15174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15175 (eval $ac_link) 2>conftest.er1
15177 grep -v '^ *+' conftest.er1
>conftest.err
15179 cat conftest.err
>&5
15180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15181 (exit $ac_status); } &&
15182 { ac_try
='test -z "$ac_c_werror_flag"
15183 || test ! -s conftest.err'
15184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15185 (eval $ac_try) 2>&5
15187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15188 (exit $ac_status); }; } &&
15189 { ac_try
='test -s conftest$ac_exeext'
15190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15191 (eval $ac_try) 2>&5
15193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15194 (exit $ac_status); }; }; then
15196 cat >>confdefs.h
<<\_ACEOF
15197 #define HAVE_INET_ATON 1
15200 echo "$as_me:$LINENO: result: yes" >&5
15201 echo "${ECHO_T}yes" >&6
15203 echo "$as_me: failed program was:" >&5
15204 sed 's/^/| /' conftest.
$ac_ext >&5
15206 echo "$as_me:$LINENO: result: no" >&5
15207 echo "${ECHO_T}no" >&6
15210 rm -f conftest.err conftest.
$ac_objext \
15211 conftest
$ac_exeext conftest.
$ac_ext
15213 echo "$as_me:$LINENO: checking for inet_pton" >&5
15214 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6
15215 cat >conftest.
$ac_ext <<_ACEOF
15218 cat confdefs.h
>>conftest.
$ac_ext
15219 cat >>conftest.
$ac_ext <<_ACEOF
15220 /* end confdefs.h. */
15222 #include "confdefs.h"
15223 #include <sys/types.h>
15224 #include <sys/socket.h>
15225 #include <netinet/in.h>
15226 #include <arpa/inet.h>
15231 void* p = inet_pton
15236 rm -f conftest.
$ac_objext
15237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15238 (eval $ac_compile) 2>conftest.er1
15240 grep -v '^ *+' conftest.er1
>conftest.err
15242 cat conftest.err
>&5
15243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15244 (exit $ac_status); } &&
15245 { ac_try
='test -z "$ac_c_werror_flag"
15246 || test ! -s conftest.err'
15247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15248 (eval $ac_try) 2>&5
15250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15251 (exit $ac_status); }; } &&
15252 { ac_try
='test -s conftest.$ac_objext'
15253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15254 (eval $ac_try) 2>&5
15256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15257 (exit $ac_status); }; }; then
15259 cat >>confdefs.h
<<\_ACEOF
15260 #define HAVE_INET_PTON 1
15263 echo "$as_me:$LINENO: result: yes" >&5
15264 echo "${ECHO_T}yes" >&6
15266 echo "$as_me: failed program was:" >&5
15267 sed 's/^/| /' conftest.
$ac_ext >&5
15269 echo "$as_me:$LINENO: result: no" >&5
15270 echo "${ECHO_T}no" >&6
15273 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15275 # On some systems, setgroups is in unistd.h, on others, in grp.h
15276 echo "$as_me:$LINENO: checking for setgroups" >&5
15277 echo $ECHO_N "checking for setgroups... $ECHO_C" >&6
15278 cat >conftest.
$ac_ext <<_ACEOF
15281 cat confdefs.h
>>conftest.
$ac_ext
15282 cat >>conftest.
$ac_ext <<_ACEOF
15283 /* end confdefs.h. */
15285 #include "confdefs.h"
15286 #include <unistd.h>
15294 void* p = setgroups
15299 rm -f conftest.
$ac_objext
15300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15301 (eval $ac_compile) 2>conftest.er1
15303 grep -v '^ *+' conftest.er1
>conftest.err
15305 cat conftest.err
>&5
15306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15307 (exit $ac_status); } &&
15308 { ac_try
='test -z "$ac_c_werror_flag"
15309 || test ! -s conftest.err'
15310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15311 (eval $ac_try) 2>&5
15313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15314 (exit $ac_status); }; } &&
15315 { ac_try
='test -s conftest.$ac_objext'
15316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15317 (eval $ac_try) 2>&5
15319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15320 (exit $ac_status); }; }; then
15322 cat >>confdefs.h
<<\_ACEOF
15323 #define HAVE_SETGROUPS 1
15326 echo "$as_me:$LINENO: result: yes" >&5
15327 echo "${ECHO_T}yes" >&6
15329 echo "$as_me: failed program was:" >&5
15330 sed 's/^/| /' conftest.
$ac_ext >&5
15332 echo "$as_me:$LINENO: result: no" >&5
15333 echo "${ECHO_T}no" >&6
15336 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15338 # check for openpty and forkpty
15341 for ac_func
in openpty
15343 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15344 echo "$as_me:$LINENO: checking for $ac_func" >&5
15345 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15346 if eval "test \"\${$as_ac_var+set}\" = set"; then
15347 echo $ECHO_N "(cached) $ECHO_C" >&6
15349 cat >conftest.
$ac_ext <<_ACEOF
15352 cat confdefs.h
>>conftest.
$ac_ext
15353 cat >>conftest.
$ac_ext <<_ACEOF
15354 /* end confdefs.h. */
15355 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15356 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15357 #define $ac_func innocuous_$ac_func
15359 /* System header to define __stub macros and hopefully few prototypes,
15360 which can conflict with char $ac_func (); below.
15361 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15362 <limits.h> exists even on freestanding compilers. */
15365 # include <limits.h>
15367 # include <assert.h>
15372 /* Override any gcc2 internal prototype to avoid an error. */
15377 /* We use char because int might match the return type of a gcc2
15378 builtin and then its argument prototype would still apply. */
15380 /* The GNU C library defines this for functions which it implements
15381 to always fail with ENOSYS. Some functions are actually named
15382 something starting with __ and the normal name is an alias. */
15383 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15386 char (*f) () = $ac_func;
15395 return f != $ac_func;
15400 rm -f conftest.
$ac_objext conftest
$ac_exeext
15401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15402 (eval $ac_link) 2>conftest.er1
15404 grep -v '^ *+' conftest.er1
>conftest.err
15406 cat conftest.err
>&5
15407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15408 (exit $ac_status); } &&
15409 { ac_try
='test -z "$ac_c_werror_flag"
15410 || test ! -s conftest.err'
15411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15412 (eval $ac_try) 2>&5
15414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15415 (exit $ac_status); }; } &&
15416 { ac_try
='test -s conftest$ac_exeext'
15417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15418 (eval $ac_try) 2>&5
15420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15421 (exit $ac_status); }; }; then
15422 eval "$as_ac_var=yes"
15424 echo "$as_me: failed program was:" >&5
15425 sed 's/^/| /' conftest.
$ac_ext >&5
15427 eval "$as_ac_var=no"
15429 rm -f conftest.err conftest.
$ac_objext \
15430 conftest
$ac_exeext conftest.
$ac_ext
15432 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15433 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15434 if test `eval echo '${'$as_ac_var'}'` = yes; then
15435 cat >>confdefs.h
<<_ACEOF
15436 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15440 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
15441 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
15442 if test "${ac_cv_lib_util_openpty+set}" = set; then
15443 echo $ECHO_N "(cached) $ECHO_C" >&6
15445 ac_check_lib_save_LIBS
=$LIBS
15446 LIBS
="-lutil $LIBS"
15447 cat >conftest.
$ac_ext <<_ACEOF
15450 cat confdefs.h
>>conftest.
$ac_ext
15451 cat >>conftest.
$ac_ext <<_ACEOF
15452 /* end confdefs.h. */
15454 /* Override any gcc2 internal prototype to avoid an error. */
15458 /* We use char because int might match the return type of a gcc2
15459 builtin and then its argument prototype would still apply. */
15469 rm -f conftest.
$ac_objext conftest
$ac_exeext
15470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15471 (eval $ac_link) 2>conftest.er1
15473 grep -v '^ *+' conftest.er1
>conftest.err
15475 cat conftest.err
>&5
15476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15477 (exit $ac_status); } &&
15478 { ac_try
='test -z "$ac_c_werror_flag"
15479 || test ! -s conftest.err'
15480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15481 (eval $ac_try) 2>&5
15483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15484 (exit $ac_status); }; } &&
15485 { ac_try
='test -s conftest$ac_exeext'
15486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15487 (eval $ac_try) 2>&5
15489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15490 (exit $ac_status); }; }; then
15491 ac_cv_lib_util_openpty
=yes
15493 echo "$as_me: failed program was:" >&5
15494 sed 's/^/| /' conftest.
$ac_ext >&5
15496 ac_cv_lib_util_openpty
=no
15498 rm -f conftest.err conftest.
$ac_objext \
15499 conftest
$ac_exeext conftest.
$ac_ext
15500 LIBS
=$ac_check_lib_save_LIBS
15502 echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
15503 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
15504 if test $ac_cv_lib_util_openpty = yes; then
15505 cat >>confdefs.h
<<\_ACEOF
15506 #define HAVE_OPENPTY 1
15508 LIBS
="$LIBS -lutil"
15510 echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
15511 echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6
15512 if test "${ac_cv_lib_bsd_openpty+set}" = set; then
15513 echo $ECHO_N "(cached) $ECHO_C" >&6
15515 ac_check_lib_save_LIBS
=$LIBS
15517 cat >conftest.
$ac_ext <<_ACEOF
15520 cat confdefs.h
>>conftest.
$ac_ext
15521 cat >>conftest.
$ac_ext <<_ACEOF
15522 /* end confdefs.h. */
15524 /* Override any gcc2 internal prototype to avoid an error. */
15528 /* We use char because int might match the return type of a gcc2
15529 builtin and then its argument prototype would still apply. */
15539 rm -f conftest.
$ac_objext conftest
$ac_exeext
15540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15541 (eval $ac_link) 2>conftest.er1
15543 grep -v '^ *+' conftest.er1
>conftest.err
15545 cat conftest.err
>&5
15546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15547 (exit $ac_status); } &&
15548 { ac_try
='test -z "$ac_c_werror_flag"
15549 || test ! -s conftest.err'
15550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15551 (eval $ac_try) 2>&5
15553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15554 (exit $ac_status); }; } &&
15555 { ac_try
='test -s conftest$ac_exeext'
15556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15557 (eval $ac_try) 2>&5
15559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15560 (exit $ac_status); }; }; then
15561 ac_cv_lib_bsd_openpty
=yes
15563 echo "$as_me: failed program was:" >&5
15564 sed 's/^/| /' conftest.
$ac_ext >&5
15566 ac_cv_lib_bsd_openpty
=no
15568 rm -f conftest.err conftest.
$ac_objext \
15569 conftest
$ac_exeext conftest.
$ac_ext
15570 LIBS
=$ac_check_lib_save_LIBS
15572 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
15573 echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6
15574 if test $ac_cv_lib_bsd_openpty = yes; then
15575 cat >>confdefs.h
<<\_ACEOF
15576 #define HAVE_OPENPTY 1
15589 for ac_func
in forkpty
15591 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15592 echo "$as_me:$LINENO: checking for $ac_func" >&5
15593 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15594 if eval "test \"\${$as_ac_var+set}\" = set"; then
15595 echo $ECHO_N "(cached) $ECHO_C" >&6
15597 cat >conftest.
$ac_ext <<_ACEOF
15600 cat confdefs.h
>>conftest.
$ac_ext
15601 cat >>conftest.
$ac_ext <<_ACEOF
15602 /* end confdefs.h. */
15603 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15604 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15605 #define $ac_func innocuous_$ac_func
15607 /* System header to define __stub macros and hopefully few prototypes,
15608 which can conflict with char $ac_func (); below.
15609 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15610 <limits.h> exists even on freestanding compilers. */
15613 # include <limits.h>
15615 # include <assert.h>
15620 /* Override any gcc2 internal prototype to avoid an error. */
15625 /* We use char because int might match the return type of a gcc2
15626 builtin and then its argument prototype would still apply. */
15628 /* The GNU C library defines this for functions which it implements
15629 to always fail with ENOSYS. Some functions are actually named
15630 something starting with __ and the normal name is an alias. */
15631 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15634 char (*f) () = $ac_func;
15643 return f != $ac_func;
15648 rm -f conftest.
$ac_objext conftest
$ac_exeext
15649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15650 (eval $ac_link) 2>conftest.er1
15652 grep -v '^ *+' conftest.er1
>conftest.err
15654 cat conftest.err
>&5
15655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15656 (exit $ac_status); } &&
15657 { ac_try
='test -z "$ac_c_werror_flag"
15658 || test ! -s conftest.err'
15659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15660 (eval $ac_try) 2>&5
15662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15663 (exit $ac_status); }; } &&
15664 { ac_try
='test -s conftest$ac_exeext'
15665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15666 (eval $ac_try) 2>&5
15668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15669 (exit $ac_status); }; }; then
15670 eval "$as_ac_var=yes"
15672 echo "$as_me: failed program was:" >&5
15673 sed 's/^/| /' conftest.
$ac_ext >&5
15675 eval "$as_ac_var=no"
15677 rm -f conftest.err conftest.
$ac_objext \
15678 conftest
$ac_exeext conftest.
$ac_ext
15680 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15681 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15682 if test `eval echo '${'$as_ac_var'}'` = yes; then
15683 cat >>confdefs.h
<<_ACEOF
15684 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15688 echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
15689 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6
15690 if test "${ac_cv_lib_util_forkpty+set}" = set; then
15691 echo $ECHO_N "(cached) $ECHO_C" >&6
15693 ac_check_lib_save_LIBS
=$LIBS
15694 LIBS
="-lutil $LIBS"
15695 cat >conftest.
$ac_ext <<_ACEOF
15698 cat confdefs.h
>>conftest.
$ac_ext
15699 cat >>conftest.
$ac_ext <<_ACEOF
15700 /* end confdefs.h. */
15702 /* Override any gcc2 internal prototype to avoid an error. */
15706 /* We use char because int might match the return type of a gcc2
15707 builtin and then its argument prototype would still apply. */
15717 rm -f conftest.
$ac_objext conftest
$ac_exeext
15718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15719 (eval $ac_link) 2>conftest.er1
15721 grep -v '^ *+' conftest.er1
>conftest.err
15723 cat conftest.err
>&5
15724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15725 (exit $ac_status); } &&
15726 { ac_try
='test -z "$ac_c_werror_flag"
15727 || test ! -s conftest.err'
15728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15729 (eval $ac_try) 2>&5
15731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15732 (exit $ac_status); }; } &&
15733 { ac_try
='test -s conftest$ac_exeext'
15734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15735 (eval $ac_try) 2>&5
15737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15738 (exit $ac_status); }; }; then
15739 ac_cv_lib_util_forkpty
=yes
15741 echo "$as_me: failed program was:" >&5
15742 sed 's/^/| /' conftest.
$ac_ext >&5
15744 ac_cv_lib_util_forkpty
=no
15746 rm -f conftest.err conftest.
$ac_objext \
15747 conftest
$ac_exeext conftest.
$ac_ext
15748 LIBS
=$ac_check_lib_save_LIBS
15750 echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
15751 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6
15752 if test $ac_cv_lib_util_forkpty = yes; then
15753 cat >>confdefs.h
<<\_ACEOF
15754 #define HAVE_FORKPTY 1
15756 LIBS
="$LIBS -lutil"
15758 echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
15759 echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6
15760 if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
15761 echo $ECHO_N "(cached) $ECHO_C" >&6
15763 ac_check_lib_save_LIBS
=$LIBS
15765 cat >conftest.
$ac_ext <<_ACEOF
15768 cat confdefs.h
>>conftest.
$ac_ext
15769 cat >>conftest.
$ac_ext <<_ACEOF
15770 /* end confdefs.h. */
15772 /* Override any gcc2 internal prototype to avoid an error. */
15776 /* We use char because int might match the return type of a gcc2
15777 builtin and then its argument prototype would still apply. */
15787 rm -f conftest.
$ac_objext conftest
$ac_exeext
15788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15789 (eval $ac_link) 2>conftest.er1
15791 grep -v '^ *+' conftest.er1
>conftest.err
15793 cat conftest.err
>&5
15794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15795 (exit $ac_status); } &&
15796 { ac_try
='test -z "$ac_c_werror_flag"
15797 || test ! -s conftest.err'
15798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15799 (eval $ac_try) 2>&5
15801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15802 (exit $ac_status); }; } &&
15803 { ac_try
='test -s conftest$ac_exeext'
15804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15805 (eval $ac_try) 2>&5
15807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15808 (exit $ac_status); }; }; then
15809 ac_cv_lib_bsd_forkpty
=yes
15811 echo "$as_me: failed program was:" >&5
15812 sed 's/^/| /' conftest.
$ac_ext >&5
15814 ac_cv_lib_bsd_forkpty
=no
15816 rm -f conftest.err conftest.
$ac_objext \
15817 conftest
$ac_exeext conftest.
$ac_ext
15818 LIBS
=$ac_check_lib_save_LIBS
15820 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
15821 echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6
15822 if test $ac_cv_lib_bsd_forkpty = yes; then
15823 cat >>confdefs.h
<<\_ACEOF
15824 #define HAVE_FORKPTY 1
15837 # check for long file support functions
15844 for ac_func
in fseek64 fseeko fstatvfs ftell64 ftello statvfs
15846 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15847 echo "$as_me:$LINENO: checking for $ac_func" >&5
15848 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15849 if eval "test \"\${$as_ac_var+set}\" = set"; then
15850 echo $ECHO_N "(cached) $ECHO_C" >&6
15852 cat >conftest.
$ac_ext <<_ACEOF
15855 cat confdefs.h
>>conftest.
$ac_ext
15856 cat >>conftest.
$ac_ext <<_ACEOF
15857 /* end confdefs.h. */
15858 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15859 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15860 #define $ac_func innocuous_$ac_func
15862 /* System header to define __stub macros and hopefully few prototypes,
15863 which can conflict with char $ac_func (); below.
15864 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15865 <limits.h> exists even on freestanding compilers. */
15868 # include <limits.h>
15870 # include <assert.h>
15875 /* Override any gcc2 internal prototype to avoid an error. */
15880 /* We use char because int might match the return type of a gcc2
15881 builtin and then its argument prototype would still apply. */
15883 /* The GNU C library defines this for functions which it implements
15884 to always fail with ENOSYS. Some functions are actually named
15885 something starting with __ and the normal name is an alias. */
15886 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15889 char (*f) () = $ac_func;
15898 return f != $ac_func;
15903 rm -f conftest.
$ac_objext conftest
$ac_exeext
15904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15905 (eval $ac_link) 2>conftest.er1
15907 grep -v '^ *+' conftest.er1
>conftest.err
15909 cat conftest.err
>&5
15910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15911 (exit $ac_status); } &&
15912 { ac_try
='test -z "$ac_c_werror_flag"
15913 || test ! -s conftest.err'
15914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15915 (eval $ac_try) 2>&5
15917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15918 (exit $ac_status); }; } &&
15919 { ac_try
='test -s conftest$ac_exeext'
15920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15921 (eval $ac_try) 2>&5
15923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15924 (exit $ac_status); }; }; then
15925 eval "$as_ac_var=yes"
15927 echo "$as_me: failed program was:" >&5
15928 sed 's/^/| /' conftest.
$ac_ext >&5
15930 eval "$as_ac_var=no"
15932 rm -f conftest.err conftest.
$ac_objext \
15933 conftest
$ac_exeext conftest.
$ac_ext
15935 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15936 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15937 if test `eval echo '${'$as_ac_var'}'` = yes; then
15938 cat >>confdefs.h
<<_ACEOF
15939 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15951 for ac_func
in dup2 getcwd strdup strerror memmove
15953 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15954 echo "$as_me:$LINENO: checking for $ac_func" >&5
15955 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15956 if eval "test \"\${$as_ac_var+set}\" = set"; then
15957 echo $ECHO_N "(cached) $ECHO_C" >&6
15959 cat >conftest.
$ac_ext <<_ACEOF
15962 cat confdefs.h
>>conftest.
$ac_ext
15963 cat >>conftest.
$ac_ext <<_ACEOF
15964 /* end confdefs.h. */
15965 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15966 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15967 #define $ac_func innocuous_$ac_func
15969 /* System header to define __stub macros and hopefully few prototypes,
15970 which can conflict with char $ac_func (); below.
15971 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15972 <limits.h> exists even on freestanding compilers. */
15975 # include <limits.h>
15977 # include <assert.h>
15982 /* Override any gcc2 internal prototype to avoid an error. */
15987 /* We use char because int might match the return type of a gcc2
15988 builtin and then its argument prototype would still apply. */
15990 /* The GNU C library defines this for functions which it implements
15991 to always fail with ENOSYS. Some functions are actually named
15992 something starting with __ and the normal name is an alias. */
15993 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15996 char (*f) () = $ac_func;
16005 return f != $ac_func;
16010 rm -f conftest.
$ac_objext conftest
$ac_exeext
16011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16012 (eval $ac_link) 2>conftest.er1
16014 grep -v '^ *+' conftest.er1
>conftest.err
16016 cat conftest.err
>&5
16017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16018 (exit $ac_status); } &&
16019 { ac_try
='test -z "$ac_c_werror_flag"
16020 || test ! -s conftest.err'
16021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16022 (eval $ac_try) 2>&5
16024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16025 (exit $ac_status); }; } &&
16026 { ac_try
='test -s conftest$ac_exeext'
16027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16028 (eval $ac_try) 2>&5
16030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16031 (exit $ac_status); }; }; then
16032 eval "$as_ac_var=yes"
16034 echo "$as_me: failed program was:" >&5
16035 sed 's/^/| /' conftest.
$ac_ext >&5
16037 eval "$as_ac_var=no"
16039 rm -f conftest.err conftest.
$ac_objext \
16040 conftest
$ac_exeext conftest.
$ac_ext
16042 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16043 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16044 if test `eval echo '${'$as_ac_var'}'` = yes; then
16045 cat >>confdefs.h
<<_ACEOF
16046 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16051 "$ac_func.$ac_objext" | \
16052 *" $ac_func.$ac_objext" | \
16053 "$ac_func.$ac_objext "* | \
16054 *" $ac_func.$ac_objext "* ) ;;
16055 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext" ;;
16063 for ac_func
in getpgrp
16065 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16066 echo "$as_me:$LINENO: checking for $ac_func" >&5
16067 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16068 if eval "test \"\${$as_ac_var+set}\" = set"; then
16069 echo $ECHO_N "(cached) $ECHO_C" >&6
16071 cat >conftest.
$ac_ext <<_ACEOF
16074 cat confdefs.h
>>conftest.
$ac_ext
16075 cat >>conftest.
$ac_ext <<_ACEOF
16076 /* end confdefs.h. */
16077 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16078 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16079 #define $ac_func innocuous_$ac_func
16081 /* System header to define __stub macros and hopefully few prototypes,
16082 which can conflict with char $ac_func (); below.
16083 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16084 <limits.h> exists even on freestanding compilers. */
16087 # include <limits.h>
16089 # include <assert.h>
16094 /* Override any gcc2 internal prototype to avoid an error. */
16099 /* We use char because int might match the return type of a gcc2
16100 builtin and then its argument prototype would still apply. */
16102 /* The GNU C library defines this for functions which it implements
16103 to always fail with ENOSYS. Some functions are actually named
16104 something starting with __ and the normal name is an alias. */
16105 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16108 char (*f) () = $ac_func;
16117 return f != $ac_func;
16122 rm -f conftest.
$ac_objext conftest
$ac_exeext
16123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16124 (eval $ac_link) 2>conftest.er1
16126 grep -v '^ *+' conftest.er1
>conftest.err
16128 cat conftest.err
>&5
16129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16130 (exit $ac_status); } &&
16131 { ac_try
='test -z "$ac_c_werror_flag"
16132 || test ! -s conftest.err'
16133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16134 (eval $ac_try) 2>&5
16136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16137 (exit $ac_status); }; } &&
16138 { ac_try
='test -s conftest$ac_exeext'
16139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16140 (eval $ac_try) 2>&5
16142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16143 (exit $ac_status); }; }; then
16144 eval "$as_ac_var=yes"
16146 echo "$as_me: failed program was:" >&5
16147 sed 's/^/| /' conftest.
$ac_ext >&5
16149 eval "$as_ac_var=no"
16151 rm -f conftest.err conftest.
$ac_objext \
16152 conftest
$ac_exeext conftest.
$ac_ext
16154 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16155 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16156 if test `eval echo '${'$as_ac_var'}'` = yes; then
16157 cat >>confdefs.h
<<_ACEOF
16158 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16160 cat >conftest.
$ac_ext <<_ACEOF
16163 cat confdefs.h
>>conftest.
$ac_ext
16164 cat >>conftest.
$ac_ext <<_ACEOF
16165 /* end confdefs.h. */
16166 #include <unistd.h>
16175 rm -f conftest.
$ac_objext
16176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16177 (eval $ac_compile) 2>conftest.er1
16179 grep -v '^ *+' conftest.er1
>conftest.err
16181 cat conftest.err
>&5
16182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16183 (exit $ac_status); } &&
16184 { ac_try
='test -z "$ac_c_werror_flag"
16185 || test ! -s conftest.err'
16186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16187 (eval $ac_try) 2>&5
16189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16190 (exit $ac_status); }; } &&
16191 { ac_try
='test -s conftest.$ac_objext'
16192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16193 (eval $ac_try) 2>&5
16195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16196 (exit $ac_status); }; }; then
16198 cat >>confdefs.h
<<\_ACEOF
16199 #define GETPGRP_HAVE_ARG 1
16204 echo "$as_me: failed program was:" >&5
16205 sed 's/^/| /' conftest.
$ac_ext >&5
16208 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16214 for ac_func
in setpgrp
16216 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16217 echo "$as_me:$LINENO: checking for $ac_func" >&5
16218 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16219 if eval "test \"\${$as_ac_var+set}\" = set"; then
16220 echo $ECHO_N "(cached) $ECHO_C" >&6
16222 cat >conftest.
$ac_ext <<_ACEOF
16225 cat confdefs.h
>>conftest.
$ac_ext
16226 cat >>conftest.
$ac_ext <<_ACEOF
16227 /* end confdefs.h. */
16228 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16229 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16230 #define $ac_func innocuous_$ac_func
16232 /* System header to define __stub macros and hopefully few prototypes,
16233 which can conflict with char $ac_func (); below.
16234 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16235 <limits.h> exists even on freestanding compilers. */
16238 # include <limits.h>
16240 # include <assert.h>
16245 /* Override any gcc2 internal prototype to avoid an error. */
16250 /* We use char because int might match the return type of a gcc2
16251 builtin and then its argument prototype would still apply. */
16253 /* The GNU C library defines this for functions which it implements
16254 to always fail with ENOSYS. Some functions are actually named
16255 something starting with __ and the normal name is an alias. */
16256 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16259 char (*f) () = $ac_func;
16268 return f != $ac_func;
16273 rm -f conftest.
$ac_objext conftest
$ac_exeext
16274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16275 (eval $ac_link) 2>conftest.er1
16277 grep -v '^ *+' conftest.er1
>conftest.err
16279 cat conftest.err
>&5
16280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16281 (exit $ac_status); } &&
16282 { ac_try
='test -z "$ac_c_werror_flag"
16283 || test ! -s conftest.err'
16284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16285 (eval $ac_try) 2>&5
16287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16288 (exit $ac_status); }; } &&
16289 { ac_try
='test -s conftest$ac_exeext'
16290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16291 (eval $ac_try) 2>&5
16293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16294 (exit $ac_status); }; }; then
16295 eval "$as_ac_var=yes"
16297 echo "$as_me: failed program was:" >&5
16298 sed 's/^/| /' conftest.
$ac_ext >&5
16300 eval "$as_ac_var=no"
16302 rm -f conftest.err conftest.
$ac_objext \
16303 conftest
$ac_exeext conftest.
$ac_ext
16305 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16306 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16307 if test `eval echo '${'$as_ac_var'}'` = yes; then
16308 cat >>confdefs.h
<<_ACEOF
16309 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16311 cat >conftest.
$ac_ext <<_ACEOF
16314 cat confdefs.h
>>conftest.
$ac_ext
16315 cat >>conftest.
$ac_ext <<_ACEOF
16316 /* end confdefs.h. */
16317 #include <unistd.h>
16326 rm -f conftest.
$ac_objext
16327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16328 (eval $ac_compile) 2>conftest.er1
16330 grep -v '^ *+' conftest.er1
>conftest.err
16332 cat conftest.err
>&5
16333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16334 (exit $ac_status); } &&
16335 { ac_try
='test -z "$ac_c_werror_flag"
16336 || test ! -s conftest.err'
16337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16338 (eval $ac_try) 2>&5
16340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16341 (exit $ac_status); }; } &&
16342 { ac_try
='test -s conftest.$ac_objext'
16343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16344 (eval $ac_try) 2>&5
16346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16347 (exit $ac_status); }; }; then
16349 cat >>confdefs.h
<<\_ACEOF
16350 #define SETPGRP_HAVE_ARG 1
16355 echo "$as_me: failed program was:" >&5
16356 sed 's/^/| /' conftest.
$ac_ext >&5
16359 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16365 for ac_func
in gettimeofday
16367 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16368 echo "$as_me:$LINENO: checking for $ac_func" >&5
16369 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16370 if eval "test \"\${$as_ac_var+set}\" = set"; then
16371 echo $ECHO_N "(cached) $ECHO_C" >&6
16373 cat >conftest.
$ac_ext <<_ACEOF
16376 cat confdefs.h
>>conftest.
$ac_ext
16377 cat >>conftest.
$ac_ext <<_ACEOF
16378 /* end confdefs.h. */
16379 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16380 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16381 #define $ac_func innocuous_$ac_func
16383 /* System header to define __stub macros and hopefully few prototypes,
16384 which can conflict with char $ac_func (); below.
16385 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16386 <limits.h> exists even on freestanding compilers. */
16389 # include <limits.h>
16391 # include <assert.h>
16396 /* Override any gcc2 internal prototype to avoid an error. */
16401 /* We use char because int might match the return type of a gcc2
16402 builtin and then its argument prototype would still apply. */
16404 /* The GNU C library defines this for functions which it implements
16405 to always fail with ENOSYS. Some functions are actually named
16406 something starting with __ and the normal name is an alias. */
16407 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16410 char (*f) () = $ac_func;
16419 return f != $ac_func;
16424 rm -f conftest.
$ac_objext conftest
$ac_exeext
16425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16426 (eval $ac_link) 2>conftest.er1
16428 grep -v '^ *+' conftest.er1
>conftest.err
16430 cat conftest.err
>&5
16431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16432 (exit $ac_status); } &&
16433 { ac_try
='test -z "$ac_c_werror_flag"
16434 || test ! -s conftest.err'
16435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16436 (eval $ac_try) 2>&5
16438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16439 (exit $ac_status); }; } &&
16440 { ac_try
='test -s conftest$ac_exeext'
16441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16442 (eval $ac_try) 2>&5
16444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16445 (exit $ac_status); }; }; then
16446 eval "$as_ac_var=yes"
16448 echo "$as_me: failed program was:" >&5
16449 sed 's/^/| /' conftest.
$ac_ext >&5
16451 eval "$as_ac_var=no"
16453 rm -f conftest.err conftest.
$ac_objext \
16454 conftest
$ac_exeext conftest.
$ac_ext
16456 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16457 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16458 if test `eval echo '${'$as_ac_var'}'` = yes; then
16459 cat >>confdefs.h
<<_ACEOF
16460 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16462 cat >conftest.
$ac_ext <<_ACEOF
16465 cat confdefs.h
>>conftest.
$ac_ext
16466 cat >>conftest.
$ac_ext <<_ACEOF
16467 /* end confdefs.h. */
16468 #include <sys/time.h>
16472 gettimeofday((struct timeval*)0,(struct timezone*)0);
16477 rm -f conftest.
$ac_objext
16478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16479 (eval $ac_compile) 2>conftest.er1
16481 grep -v '^ *+' conftest.er1
>conftest.err
16483 cat conftest.err
>&5
16484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16485 (exit $ac_status); } &&
16486 { ac_try
='test -z "$ac_c_werror_flag"
16487 || test ! -s conftest.err'
16488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16489 (eval $ac_try) 2>&5
16491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16492 (exit $ac_status); }; } &&
16493 { ac_try
='test -s conftest.$ac_objext'
16494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16495 (eval $ac_try) 2>&5
16497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16498 (exit $ac_status); }; }; then
16501 echo "$as_me: failed program was:" >&5
16502 sed 's/^/| /' conftest.
$ac_ext >&5
16505 cat >>confdefs.h
<<\_ACEOF
16506 #define GETTIMEOFDAY_NO_TZ 1
16511 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16517 echo "$as_me:$LINENO: checking for major" >&5
16518 echo $ECHO_N "checking for major... $ECHO_C" >&6
16519 cat >conftest.
$ac_ext <<_ACEOF
16522 cat confdefs.h
>>conftest.
$ac_ext
16523 cat >>conftest.
$ac_ext <<_ACEOF
16524 /* end confdefs.h. */
16526 #if defined(MAJOR_IN_MKDEV)
16527 #include <sys/mkdev.h>
16528 #elif defined(MAJOR_IN_SYSMACROS)
16529 #include <sys/sysmacros.h>
16531 #include <sys/types.h>
16538 makedev(major(0),minor(0));
16544 rm -f conftest.
$ac_objext conftest
$ac_exeext
16545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16546 (eval $ac_link) 2>conftest.er1
16548 grep -v '^ *+' conftest.er1
>conftest.err
16550 cat conftest.err
>&5
16551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16552 (exit $ac_status); } &&
16553 { ac_try
='test -z "$ac_c_werror_flag"
16554 || test ! -s conftest.err'
16555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16556 (eval $ac_try) 2>&5
16558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16559 (exit $ac_status); }; } &&
16560 { ac_try
='test -s conftest$ac_exeext'
16561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16562 (eval $ac_try) 2>&5
16564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16565 (exit $ac_status); }; }; then
16568 cat >>confdefs.h
<<\_ACEOF
16569 #define HAVE_DEVICE_MACROS 1
16572 echo "$as_me:$LINENO: result: yes" >&5
16573 echo "${ECHO_T}yes" >&6
16576 echo "$as_me: failed program was:" >&5
16577 sed 's/^/| /' conftest.
$ac_ext >&5
16580 echo "$as_me:$LINENO: result: no" >&5
16581 echo "${ECHO_T}no" >&6
16584 rm -f conftest.err conftest.
$ac_objext \
16585 conftest
$ac_exeext conftest.
$ac_ext
16587 # On OSF/1 V5.1, getaddrinfo is available, but a define
16588 # for [no]getaddrinfo in netdb.h.
16589 echo "$as_me:$LINENO: checking for getaddrinfo" >&5
16590 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6
16591 cat >conftest.
$ac_ext <<_ACEOF
16594 cat confdefs.h
>>conftest.
$ac_ext
16595 cat >>conftest.
$ac_ext <<_ACEOF
16596 /* end confdefs.h. */
16598 #include <sys/types.h>
16599 #include <sys/socket.h>
16607 getaddrinfo(NULL, NULL, NULL, NULL);
16613 rm -f conftest.
$ac_objext conftest
$ac_exeext
16614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16615 (eval $ac_link) 2>conftest.er1
16617 grep -v '^ *+' conftest.er1
>conftest.err
16619 cat conftest.err
>&5
16620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16621 (exit $ac_status); } &&
16622 { ac_try
='test -z "$ac_c_werror_flag"
16623 || test ! -s conftest.err'
16624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16625 (eval $ac_try) 2>&5
16627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16628 (exit $ac_status); }; } &&
16629 { ac_try
='test -s conftest$ac_exeext'
16630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16631 (eval $ac_try) 2>&5
16633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16634 (exit $ac_status); }; }; then
16636 echo "$as_me:$LINENO: result: yes" >&5
16637 echo "${ECHO_T}yes" >&6
16638 echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
16639 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6
16640 if test "$cross_compiling" = yes; then
16641 echo "$as_me:$LINENO: result: buggy" >&5
16642 echo "${ECHO_T}buggy" >&6
16643 buggygetaddrinfo
=yes
16645 cat >conftest.
$ac_ext <<_ACEOF
16648 cat confdefs.h
>>conftest.
$ac_ext
16649 cat >>conftest.
$ac_ext <<_ACEOF
16650 /* end confdefs.h. */
16652 #include <sys/types.h>
16654 #include <string.h>
16655 #include <sys/socket.h>
16656 #include <netinet/in.h>
16660 int passive, gaierr, inet4 = 0, inet6 = 0;
16661 struct addrinfo hints, *ai, *aitop;
16662 char straddr[INET6_ADDRSTRLEN], strport[16];
16664 for (passive = 0; passive <= 1; passive++) {
16665 memset(&hints, 0, sizeof(hints));
16666 hints.ai_family = AF_UNSPEC;
16667 hints.ai_flags = passive ? AI_PASSIVE : 0;
16668 hints.ai_socktype = SOCK_STREAM;
16669 hints.ai_protocol = IPPROTO_TCP;
16670 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
16671 (void)gai_strerror(gaierr);
16674 for (ai = aitop; ai; ai = ai->ai_next) {
16675 if (ai->ai_addr == NULL ||
16676 ai->ai_addrlen == 0 ||
16677 getnameinfo(ai->ai_addr, ai->ai_addrlen,
16678 straddr, sizeof(straddr), strport, sizeof(strport),
16679 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
16682 switch (ai->ai_family) {
16684 if (strcmp(strport, "54321") != 0) {
16688 if (strcmp(straddr, "0.0.0.0") != 0) {
16692 if (strcmp(straddr, "127.0.0.1") != 0) {
16699 if (strcmp(strport, "54321") != 0) {
16703 if (strcmp(straddr, "::") != 0) {
16707 if (strcmp(straddr, "::1") != 0) {
16717 /* another family support? */
16723 if (!(inet4 == 0 || inet4 == 2))
16725 if (!(inet6 == 0 || inet6 == 2))
16729 freeaddrinfo(aitop);
16734 freeaddrinfo(aitop);
16739 rm -f conftest
$ac_exeext
16740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16741 (eval $ac_link) 2>&5
16743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16744 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
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); }; }; then
16750 echo "$as_me:$LINENO: result: good" >&5
16751 echo "${ECHO_T}good" >&6
16752 buggygetaddrinfo
=no
16754 echo "$as_me: program exited with status $ac_status" >&5
16755 echo "$as_me: failed program was:" >&5
16756 sed 's/^/| /' conftest.
$ac_ext >&5
16758 ( exit $ac_status )
16759 echo "$as_me:$LINENO: result: buggy" >&5
16760 echo "${ECHO_T}buggy" >&6
16761 buggygetaddrinfo
=yes
16763 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
16766 echo "$as_me: failed program was:" >&5
16767 sed 's/^/| /' conftest.
$ac_ext >&5
16770 echo "$as_me:$LINENO: result: no" >&5
16771 echo "${ECHO_T}no" >&6
16772 buggygetaddrinfo
=yes
16775 rm -f conftest.err conftest.
$ac_objext \
16776 conftest
$ac_exeext conftest.
$ac_ext
16778 if test "$buggygetaddrinfo" = "yes"; then
16779 if test "$ipv6" = "yes"; then
16780 echo 'Fatal: You must get working getaddrinfo() function.'
16781 echo ' or you can specify "--disable-ipv6"'.
16786 cat >>confdefs.h
<<\_ACEOF
16787 #define HAVE_GETADDRINFO 1
16792 for ac_func
in getnameinfo
16794 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16795 echo "$as_me:$LINENO: checking for $ac_func" >&5
16796 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16797 if eval "test \"\${$as_ac_var+set}\" = set"; then
16798 echo $ECHO_N "(cached) $ECHO_C" >&6
16800 cat >conftest.
$ac_ext <<_ACEOF
16803 cat confdefs.h
>>conftest.
$ac_ext
16804 cat >>conftest.
$ac_ext <<_ACEOF
16805 /* end confdefs.h. */
16806 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16807 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16808 #define $ac_func innocuous_$ac_func
16810 /* System header to define __stub macros and hopefully few prototypes,
16811 which can conflict with char $ac_func (); below.
16812 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16813 <limits.h> exists even on freestanding compilers. */
16816 # include <limits.h>
16818 # include <assert.h>
16823 /* Override any gcc2 internal prototype to avoid an error. */
16828 /* We use char because int might match the return type of a gcc2
16829 builtin and then its argument prototype would still apply. */
16831 /* The GNU C library defines this for functions which it implements
16832 to always fail with ENOSYS. Some functions are actually named
16833 something starting with __ and the normal name is an alias. */
16834 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16837 char (*f) () = $ac_func;
16846 return f != $ac_func;
16851 rm -f conftest.
$ac_objext conftest
$ac_exeext
16852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16853 (eval $ac_link) 2>conftest.er1
16855 grep -v '^ *+' conftest.er1
>conftest.err
16857 cat conftest.err
>&5
16858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16859 (exit $ac_status); } &&
16860 { ac_try
='test -z "$ac_c_werror_flag"
16861 || test ! -s conftest.err'
16862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16863 (eval $ac_try) 2>&5
16865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16866 (exit $ac_status); }; } &&
16867 { ac_try
='test -s conftest$ac_exeext'
16868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16869 (eval $ac_try) 2>&5
16871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16872 (exit $ac_status); }; }; then
16873 eval "$as_ac_var=yes"
16875 echo "$as_me: failed program was:" >&5
16876 sed 's/^/| /' conftest.
$ac_ext >&5
16878 eval "$as_ac_var=no"
16880 rm -f conftest.err conftest.
$ac_objext \
16881 conftest
$ac_exeext conftest.
$ac_ext
16883 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16884 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16885 if test `eval echo '${'$as_ac_var'}'` = yes; then
16886 cat >>confdefs.h
<<_ACEOF
16887 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16894 # checks for structures
16895 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
16896 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
16897 if test "${ac_cv_header_time+set}" = set; then
16898 echo $ECHO_N "(cached) $ECHO_C" >&6
16900 cat >conftest.
$ac_ext <<_ACEOF
16903 cat confdefs.h
>>conftest.
$ac_ext
16904 cat >>conftest.
$ac_ext <<_ACEOF
16905 /* end confdefs.h. */
16906 #include <sys/types.h>
16907 #include <sys/time.h>
16913 if ((struct tm *) 0)
16919 rm -f conftest.
$ac_objext
16920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16921 (eval $ac_compile) 2>conftest.er1
16923 grep -v '^ *+' conftest.er1
>conftest.err
16925 cat conftest.err
>&5
16926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16927 (exit $ac_status); } &&
16928 { ac_try
='test -z "$ac_c_werror_flag"
16929 || test ! -s conftest.err'
16930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16931 (eval $ac_try) 2>&5
16933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16934 (exit $ac_status); }; } &&
16935 { ac_try
='test -s conftest.$ac_objext'
16936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16937 (eval $ac_try) 2>&5
16939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16940 (exit $ac_status); }; }; then
16941 ac_cv_header_time
=yes
16943 echo "$as_me: failed program was:" >&5
16944 sed 's/^/| /' conftest.
$ac_ext >&5
16946 ac_cv_header_time
=no
16948 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16950 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
16951 echo "${ECHO_T}$ac_cv_header_time" >&6
16952 if test $ac_cv_header_time = yes; then
16954 cat >>confdefs.h
<<\_ACEOF
16955 #define TIME_WITH_SYS_TIME 1
16960 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16961 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
16962 if test "${ac_cv_struct_tm+set}" = set; then
16963 echo $ECHO_N "(cached) $ECHO_C" >&6
16965 cat >conftest.
$ac_ext <<_ACEOF
16968 cat confdefs.h
>>conftest.
$ac_ext
16969 cat >>conftest.
$ac_ext <<_ACEOF
16970 /* end confdefs.h. */
16971 #include <sys/types.h>
16977 struct tm *tp; tp->tm_sec;
16982 rm -f conftest.
$ac_objext
16983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16984 (eval $ac_compile) 2>conftest.er1
16986 grep -v '^ *+' conftest.er1
>conftest.err
16988 cat conftest.err
>&5
16989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16990 (exit $ac_status); } &&
16991 { ac_try
='test -z "$ac_c_werror_flag"
16992 || test ! -s conftest.err'
16993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16994 (eval $ac_try) 2>&5
16996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16997 (exit $ac_status); }; } &&
16998 { ac_try
='test -s conftest.$ac_objext'
16999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17000 (eval $ac_try) 2>&5
17002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17003 (exit $ac_status); }; }; then
17004 ac_cv_struct_tm
=time.h
17006 echo "$as_me: failed program was:" >&5
17007 sed 's/^/| /' conftest.
$ac_ext >&5
17009 ac_cv_struct_tm
=sys
/time.h
17011 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17013 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17014 echo "${ECHO_T}$ac_cv_struct_tm" >&6
17015 if test $ac_cv_struct_tm = sys
/time.h
; then
17017 cat >>confdefs.h
<<\_ACEOF
17018 #define TM_IN_SYS_TIME 1
17023 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
17024 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
17025 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
17026 echo $ECHO_N "(cached) $ECHO_C" >&6
17028 cat >conftest.
$ac_ext <<_ACEOF
17031 cat confdefs.h
>>conftest.
$ac_ext
17032 cat >>conftest.
$ac_ext <<_ACEOF
17033 /* end confdefs.h. */
17034 #include <sys/types.h>
17035 #include <$ac_cv_struct_tm>
17041 static struct tm ac_aggr;
17042 if (ac_aggr.tm_zone)
17048 rm -f conftest.
$ac_objext
17049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17050 (eval $ac_compile) 2>conftest.er1
17052 grep -v '^ *+' conftest.er1
>conftest.err
17054 cat conftest.err
>&5
17055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17056 (exit $ac_status); } &&
17057 { ac_try
='test -z "$ac_c_werror_flag"
17058 || test ! -s conftest.err'
17059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17060 (eval $ac_try) 2>&5
17062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17063 (exit $ac_status); }; } &&
17064 { ac_try
='test -s conftest.$ac_objext'
17065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17066 (eval $ac_try) 2>&5
17068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17069 (exit $ac_status); }; }; then
17070 ac_cv_member_struct_tm_tm_zone
=yes
17072 echo "$as_me: failed program was:" >&5
17073 sed 's/^/| /' conftest.
$ac_ext >&5
17075 cat >conftest.
$ac_ext <<_ACEOF
17078 cat confdefs.h
>>conftest.
$ac_ext
17079 cat >>conftest.
$ac_ext <<_ACEOF
17080 /* end confdefs.h. */
17081 #include <sys/types.h>
17082 #include <$ac_cv_struct_tm>
17088 static struct tm ac_aggr;
17089 if (sizeof ac_aggr.tm_zone)
17095 rm -f conftest.
$ac_objext
17096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17097 (eval $ac_compile) 2>conftest.er1
17099 grep -v '^ *+' conftest.er1
>conftest.err
17101 cat conftest.err
>&5
17102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17103 (exit $ac_status); } &&
17104 { ac_try
='test -z "$ac_c_werror_flag"
17105 || test ! -s conftest.err'
17106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17107 (eval $ac_try) 2>&5
17109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17110 (exit $ac_status); }; } &&
17111 { ac_try
='test -s conftest.$ac_objext'
17112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17113 (eval $ac_try) 2>&5
17115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17116 (exit $ac_status); }; }; then
17117 ac_cv_member_struct_tm_tm_zone
=yes
17119 echo "$as_me: failed program was:" >&5
17120 sed 's/^/| /' conftest.
$ac_ext >&5
17122 ac_cv_member_struct_tm_tm_zone
=no
17124 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17126 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17128 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
17129 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
17130 if test $ac_cv_member_struct_tm_tm_zone = yes; then
17132 cat >>confdefs.h
<<_ACEOF
17133 #define HAVE_STRUCT_TM_TM_ZONE 1
17139 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
17141 cat >>confdefs.h
<<\_ACEOF
17142 #define HAVE_TM_ZONE 1
17146 echo "$as_me:$LINENO: checking for tzname" >&5
17147 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
17148 if test "${ac_cv_var_tzname+set}" = set; then
17149 echo $ECHO_N "(cached) $ECHO_C" >&6
17151 cat >conftest.
$ac_ext <<_ACEOF
17154 cat confdefs.h
>>conftest.
$ac_ext
17155 cat >>conftest.
$ac_ext <<_ACEOF
17156 /* end confdefs.h. */
17158 #ifndef tzname /* For SGI. */
17159 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
17170 rm -f conftest.
$ac_objext conftest
$ac_exeext
17171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17172 (eval $ac_link) 2>conftest.er1
17174 grep -v '^ *+' conftest.er1
>conftest.err
17176 cat conftest.err
>&5
17177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17178 (exit $ac_status); } &&
17179 { ac_try
='test -z "$ac_c_werror_flag"
17180 || test ! -s conftest.err'
17181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17182 (eval $ac_try) 2>&5
17184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17185 (exit $ac_status); }; } &&
17186 { ac_try
='test -s conftest$ac_exeext'
17187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17188 (eval $ac_try) 2>&5
17190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17191 (exit $ac_status); }; }; then
17192 ac_cv_var_tzname
=yes
17194 echo "$as_me: failed program was:" >&5
17195 sed 's/^/| /' conftest.
$ac_ext >&5
17197 ac_cv_var_tzname
=no
17199 rm -f conftest.err conftest.
$ac_objext \
17200 conftest
$ac_exeext conftest.
$ac_ext
17202 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
17203 echo "${ECHO_T}$ac_cv_var_tzname" >&6
17204 if test $ac_cv_var_tzname = yes; then
17206 cat >>confdefs.h
<<\_ACEOF
17207 #define HAVE_TZNAME 1
17213 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
17214 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
17215 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
17216 echo $ECHO_N "(cached) $ECHO_C" >&6
17218 cat >conftest.
$ac_ext <<_ACEOF
17221 cat confdefs.h
>>conftest.
$ac_ext
17222 cat >>conftest.
$ac_ext <<_ACEOF
17223 /* end confdefs.h. */
17224 $ac_includes_default
17228 static struct stat ac_aggr;
17229 if (ac_aggr.st_rdev)
17235 rm -f conftest.
$ac_objext
17236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17237 (eval $ac_compile) 2>conftest.er1
17239 grep -v '^ *+' conftest.er1
>conftest.err
17241 cat conftest.err
>&5
17242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17243 (exit $ac_status); } &&
17244 { ac_try
='test -z "$ac_c_werror_flag"
17245 || test ! -s conftest.err'
17246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17247 (eval $ac_try) 2>&5
17249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17250 (exit $ac_status); }; } &&
17251 { ac_try
='test -s conftest.$ac_objext'
17252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17253 (eval $ac_try) 2>&5
17255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17256 (exit $ac_status); }; }; then
17257 ac_cv_member_struct_stat_st_rdev
=yes
17259 echo "$as_me: failed program was:" >&5
17260 sed 's/^/| /' conftest.
$ac_ext >&5
17262 cat >conftest.
$ac_ext <<_ACEOF
17265 cat confdefs.h
>>conftest.
$ac_ext
17266 cat >>conftest.
$ac_ext <<_ACEOF
17267 /* end confdefs.h. */
17268 $ac_includes_default
17272 static struct stat ac_aggr;
17273 if (sizeof ac_aggr.st_rdev)
17279 rm -f conftest.
$ac_objext
17280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17281 (eval $ac_compile) 2>conftest.er1
17283 grep -v '^ *+' conftest.er1
>conftest.err
17285 cat conftest.err
>&5
17286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17287 (exit $ac_status); } &&
17288 { ac_try
='test -z "$ac_c_werror_flag"
17289 || test ! -s conftest.err'
17290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17291 (eval $ac_try) 2>&5
17293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17294 (exit $ac_status); }; } &&
17295 { ac_try
='test -s conftest.$ac_objext'
17296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17297 (eval $ac_try) 2>&5
17299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17300 (exit $ac_status); }; }; then
17301 ac_cv_member_struct_stat_st_rdev
=yes
17303 echo "$as_me: failed program was:" >&5
17304 sed 's/^/| /' conftest.
$ac_ext >&5
17306 ac_cv_member_struct_stat_st_rdev
=no
17308 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17310 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17312 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
17313 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
17314 if test $ac_cv_member_struct_stat_st_rdev = yes; then
17316 cat >>confdefs.h
<<_ACEOF
17317 #define HAVE_STRUCT_STAT_ST_RDEV 1
17323 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
17324 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
17325 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
17326 echo $ECHO_N "(cached) $ECHO_C" >&6
17328 cat >conftest.
$ac_ext <<_ACEOF
17331 cat confdefs.h
>>conftest.
$ac_ext
17332 cat >>conftest.
$ac_ext <<_ACEOF
17333 /* end confdefs.h. */
17334 $ac_includes_default
17338 static struct stat ac_aggr;
17339 if (ac_aggr.st_blksize)
17345 rm -f conftest.
$ac_objext
17346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17347 (eval $ac_compile) 2>conftest.er1
17349 grep -v '^ *+' conftest.er1
>conftest.err
17351 cat conftest.err
>&5
17352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17353 (exit $ac_status); } &&
17354 { ac_try
='test -z "$ac_c_werror_flag"
17355 || test ! -s conftest.err'
17356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17357 (eval $ac_try) 2>&5
17359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17360 (exit $ac_status); }; } &&
17361 { ac_try
='test -s conftest.$ac_objext'
17362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17363 (eval $ac_try) 2>&5
17365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17366 (exit $ac_status); }; }; then
17367 ac_cv_member_struct_stat_st_blksize
=yes
17369 echo "$as_me: failed program was:" >&5
17370 sed 's/^/| /' conftest.
$ac_ext >&5
17372 cat >conftest.
$ac_ext <<_ACEOF
17375 cat confdefs.h
>>conftest.
$ac_ext
17376 cat >>conftest.
$ac_ext <<_ACEOF
17377 /* end confdefs.h. */
17378 $ac_includes_default
17382 static struct stat ac_aggr;
17383 if (sizeof ac_aggr.st_blksize)
17389 rm -f conftest.
$ac_objext
17390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17391 (eval $ac_compile) 2>conftest.er1
17393 grep -v '^ *+' conftest.er1
>conftest.err
17395 cat conftest.err
>&5
17396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17397 (exit $ac_status); } &&
17398 { ac_try
='test -z "$ac_c_werror_flag"
17399 || test ! -s conftest.err'
17400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17401 (eval $ac_try) 2>&5
17403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17404 (exit $ac_status); }; } &&
17405 { ac_try
='test -s conftest.$ac_objext'
17406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17407 (eval $ac_try) 2>&5
17409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17410 (exit $ac_status); }; }; then
17411 ac_cv_member_struct_stat_st_blksize
=yes
17413 echo "$as_me: failed program was:" >&5
17414 sed 's/^/| /' conftest.
$ac_ext >&5
17416 ac_cv_member_struct_stat_st_blksize
=no
17418 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17420 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17422 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
17423 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
17424 if test $ac_cv_member_struct_stat_st_blksize = yes; then
17426 cat >>confdefs.h
<<_ACEOF
17427 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
17433 echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
17434 echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6
17435 if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
17436 echo $ECHO_N "(cached) $ECHO_C" >&6
17438 cat >conftest.
$ac_ext <<_ACEOF
17441 cat confdefs.h
>>conftest.
$ac_ext
17442 cat >>conftest.
$ac_ext <<_ACEOF
17443 /* end confdefs.h. */
17444 $ac_includes_default
17448 static struct stat ac_aggr;
17449 if (ac_aggr.st_flags)
17455 rm -f conftest.
$ac_objext
17456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17457 (eval $ac_compile) 2>conftest.er1
17459 grep -v '^ *+' conftest.er1
>conftest.err
17461 cat conftest.err
>&5
17462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17463 (exit $ac_status); } &&
17464 { ac_try
='test -z "$ac_c_werror_flag"
17465 || test ! -s conftest.err'
17466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17467 (eval $ac_try) 2>&5
17469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17470 (exit $ac_status); }; } &&
17471 { ac_try
='test -s conftest.$ac_objext'
17472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17473 (eval $ac_try) 2>&5
17475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17476 (exit $ac_status); }; }; then
17477 ac_cv_member_struct_stat_st_flags
=yes
17479 echo "$as_me: failed program was:" >&5
17480 sed 's/^/| /' conftest.
$ac_ext >&5
17482 cat >conftest.
$ac_ext <<_ACEOF
17485 cat confdefs.h
>>conftest.
$ac_ext
17486 cat >>conftest.
$ac_ext <<_ACEOF
17487 /* end confdefs.h. */
17488 $ac_includes_default
17492 static struct stat ac_aggr;
17493 if (sizeof ac_aggr.st_flags)
17499 rm -f conftest.
$ac_objext
17500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17501 (eval $ac_compile) 2>conftest.er1
17503 grep -v '^ *+' conftest.er1
>conftest.err
17505 cat conftest.err
>&5
17506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17507 (exit $ac_status); } &&
17508 { ac_try
='test -z "$ac_c_werror_flag"
17509 || test ! -s conftest.err'
17510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17511 (eval $ac_try) 2>&5
17513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17514 (exit $ac_status); }; } &&
17515 { ac_try
='test -s conftest.$ac_objext'
17516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17517 (eval $ac_try) 2>&5
17519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17520 (exit $ac_status); }; }; then
17521 ac_cv_member_struct_stat_st_flags
=yes
17523 echo "$as_me: failed program was:" >&5
17524 sed 's/^/| /' conftest.
$ac_ext >&5
17526 ac_cv_member_struct_stat_st_flags
=no
17528 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17530 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17532 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
17533 echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6
17534 if test $ac_cv_member_struct_stat_st_flags = yes; then
17536 cat >>confdefs.h
<<_ACEOF
17537 #define HAVE_STRUCT_STAT_ST_FLAGS 1
17543 echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
17544 echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6
17545 if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
17546 echo $ECHO_N "(cached) $ECHO_C" >&6
17548 cat >conftest.
$ac_ext <<_ACEOF
17551 cat confdefs.h
>>conftest.
$ac_ext
17552 cat >>conftest.
$ac_ext <<_ACEOF
17553 /* end confdefs.h. */
17554 $ac_includes_default
17558 static struct stat ac_aggr;
17559 if (ac_aggr.st_gen)
17565 rm -f conftest.
$ac_objext
17566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17567 (eval $ac_compile) 2>conftest.er1
17569 grep -v '^ *+' conftest.er1
>conftest.err
17571 cat conftest.err
>&5
17572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17573 (exit $ac_status); } &&
17574 { ac_try
='test -z "$ac_c_werror_flag"
17575 || test ! -s conftest.err'
17576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17577 (eval $ac_try) 2>&5
17579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17580 (exit $ac_status); }; } &&
17581 { ac_try
='test -s conftest.$ac_objext'
17582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17583 (eval $ac_try) 2>&5
17585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17586 (exit $ac_status); }; }; then
17587 ac_cv_member_struct_stat_st_gen
=yes
17589 echo "$as_me: failed program was:" >&5
17590 sed 's/^/| /' conftest.
$ac_ext >&5
17592 cat >conftest.
$ac_ext <<_ACEOF
17595 cat confdefs.h
>>conftest.
$ac_ext
17596 cat >>conftest.
$ac_ext <<_ACEOF
17597 /* end confdefs.h. */
17598 $ac_includes_default
17602 static struct stat ac_aggr;
17603 if (sizeof ac_aggr.st_gen)
17609 rm -f conftest.
$ac_objext
17610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17611 (eval $ac_compile) 2>conftest.er1
17613 grep -v '^ *+' conftest.er1
>conftest.err
17615 cat conftest.err
>&5
17616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17617 (exit $ac_status); } &&
17618 { ac_try
='test -z "$ac_c_werror_flag"
17619 || test ! -s conftest.err'
17620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17621 (eval $ac_try) 2>&5
17623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17624 (exit $ac_status); }; } &&
17625 { ac_try
='test -s conftest.$ac_objext'
17626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17627 (eval $ac_try) 2>&5
17629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17630 (exit $ac_status); }; }; then
17631 ac_cv_member_struct_stat_st_gen
=yes
17633 echo "$as_me: failed program was:" >&5
17634 sed 's/^/| /' conftest.
$ac_ext >&5
17636 ac_cv_member_struct_stat_st_gen
=no
17638 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17640 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17642 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
17643 echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6
17644 if test $ac_cv_member_struct_stat_st_gen = yes; then
17646 cat >>confdefs.h
<<_ACEOF
17647 #define HAVE_STRUCT_STAT_ST_GEN 1
17653 echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
17654 echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6
17655 if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
17656 echo $ECHO_N "(cached) $ECHO_C" >&6
17658 cat >conftest.
$ac_ext <<_ACEOF
17661 cat confdefs.h
>>conftest.
$ac_ext
17662 cat >>conftest.
$ac_ext <<_ACEOF
17663 /* end confdefs.h. */
17664 $ac_includes_default
17668 static struct stat ac_aggr;
17669 if (ac_aggr.st_birthtime)
17675 rm -f conftest.
$ac_objext
17676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17677 (eval $ac_compile) 2>conftest.er1
17679 grep -v '^ *+' conftest.er1
>conftest.err
17681 cat conftest.err
>&5
17682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17683 (exit $ac_status); } &&
17684 { ac_try
='test -z "$ac_c_werror_flag"
17685 || test ! -s conftest.err'
17686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17687 (eval $ac_try) 2>&5
17689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17690 (exit $ac_status); }; } &&
17691 { ac_try
='test -s conftest.$ac_objext'
17692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17693 (eval $ac_try) 2>&5
17695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17696 (exit $ac_status); }; }; then
17697 ac_cv_member_struct_stat_st_birthtime
=yes
17699 echo "$as_me: failed program was:" >&5
17700 sed 's/^/| /' conftest.
$ac_ext >&5
17702 cat >conftest.
$ac_ext <<_ACEOF
17705 cat confdefs.h
>>conftest.
$ac_ext
17706 cat >>conftest.
$ac_ext <<_ACEOF
17707 /* end confdefs.h. */
17708 $ac_includes_default
17712 static struct stat ac_aggr;
17713 if (sizeof ac_aggr.st_birthtime)
17719 rm -f conftest.
$ac_objext
17720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17721 (eval $ac_compile) 2>conftest.er1
17723 grep -v '^ *+' conftest.er1
>conftest.err
17725 cat conftest.err
>&5
17726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17727 (exit $ac_status); } &&
17728 { ac_try
='test -z "$ac_c_werror_flag"
17729 || test ! -s conftest.err'
17730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17731 (eval $ac_try) 2>&5
17733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17734 (exit $ac_status); }; } &&
17735 { ac_try
='test -s conftest.$ac_objext'
17736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17737 (eval $ac_try) 2>&5
17739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17740 (exit $ac_status); }; }; then
17741 ac_cv_member_struct_stat_st_birthtime
=yes
17743 echo "$as_me: failed program was:" >&5
17744 sed 's/^/| /' conftest.
$ac_ext >&5
17746 ac_cv_member_struct_stat_st_birthtime
=no
17748 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17750 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17752 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
17753 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6
17754 if test $ac_cv_member_struct_stat_st_birthtime = yes; then
17756 cat >>confdefs.h
<<_ACEOF
17757 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
17763 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
17764 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
17765 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
17766 echo $ECHO_N "(cached) $ECHO_C" >&6
17768 cat >conftest.
$ac_ext <<_ACEOF
17771 cat confdefs.h
>>conftest.
$ac_ext
17772 cat >>conftest.
$ac_ext <<_ACEOF
17773 /* end confdefs.h. */
17774 $ac_includes_default
17778 static struct stat ac_aggr;
17779 if (ac_aggr.st_blocks)
17785 rm -f conftest.
$ac_objext
17786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17787 (eval $ac_compile) 2>conftest.er1
17789 grep -v '^ *+' conftest.er1
>conftest.err
17791 cat conftest.err
>&5
17792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17793 (exit $ac_status); } &&
17794 { ac_try
='test -z "$ac_c_werror_flag"
17795 || test ! -s conftest.err'
17796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17797 (eval $ac_try) 2>&5
17799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17800 (exit $ac_status); }; } &&
17801 { ac_try
='test -s conftest.$ac_objext'
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); }; }; then
17807 ac_cv_member_struct_stat_st_blocks
=yes
17809 echo "$as_me: failed program was:" >&5
17810 sed 's/^/| /' conftest.
$ac_ext >&5
17812 cat >conftest.
$ac_ext <<_ACEOF
17815 cat confdefs.h
>>conftest.
$ac_ext
17816 cat >>conftest.
$ac_ext <<_ACEOF
17817 /* end confdefs.h. */
17818 $ac_includes_default
17822 static struct stat ac_aggr;
17823 if (sizeof ac_aggr.st_blocks)
17829 rm -f conftest.
$ac_objext
17830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17831 (eval $ac_compile) 2>conftest.er1
17833 grep -v '^ *+' conftest.er1
>conftest.err
17835 cat conftest.err
>&5
17836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17837 (exit $ac_status); } &&
17838 { ac_try
='test -z "$ac_c_werror_flag"
17839 || test ! -s conftest.err'
17840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17841 (eval $ac_try) 2>&5
17843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17844 (exit $ac_status); }; } &&
17845 { ac_try
='test -s conftest.$ac_objext'
17846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17847 (eval $ac_try) 2>&5
17849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17850 (exit $ac_status); }; }; then
17851 ac_cv_member_struct_stat_st_blocks
=yes
17853 echo "$as_me: failed program was:" >&5
17854 sed 's/^/| /' conftest.
$ac_ext >&5
17856 ac_cv_member_struct_stat_st_blocks
=no
17858 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17860 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17862 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
17863 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
17864 if test $ac_cv_member_struct_stat_st_blocks = yes; then
17866 cat >>confdefs.h
<<_ACEOF
17867 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
17871 cat >>confdefs.h
<<\_ACEOF
17872 #define HAVE_ST_BLOCKS 1
17877 "fileblocks.$ac_objext" | \
17878 *" fileblocks.$ac_objext" | \
17879 "fileblocks.$ac_objext "* | \
17880 *" fileblocks.$ac_objext "* ) ;;
17881 *) LIBOBJS
="$LIBOBJS fileblocks.$ac_objext" ;;
17888 echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
17889 echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6
17890 if test "${ac_cv_header_time_altzone+set}" = set; then
17891 echo $ECHO_N "(cached) $ECHO_C" >&6
17893 cat >conftest.
$ac_ext <<_ACEOF
17896 cat confdefs.h
>>conftest.
$ac_ext
17897 cat >>conftest.
$ac_ext <<_ACEOF
17898 /* end confdefs.h. */
17908 rm -f conftest.
$ac_objext
17909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17910 (eval $ac_compile) 2>conftest.er1
17912 grep -v '^ *+' conftest.er1
>conftest.err
17914 cat conftest.err
>&5
17915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17916 (exit $ac_status); } &&
17917 { ac_try
='test -z "$ac_c_werror_flag"
17918 || test ! -s conftest.err'
17919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17920 (eval $ac_try) 2>&5
17922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17923 (exit $ac_status); }; } &&
17924 { ac_try
='test -s conftest.$ac_objext'
17925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17926 (eval $ac_try) 2>&5
17928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17929 (exit $ac_status); }; }; then
17930 ac_cv_header_time_altzone
=yes
17932 echo "$as_me: failed program was:" >&5
17933 sed 's/^/| /' conftest.
$ac_ext >&5
17935 ac_cv_header_time_altzone
=no
17937 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17940 echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
17941 echo "${ECHO_T}$ac_cv_header_time_altzone" >&6
17942 if test $ac_cv_header_time_altzone = yes; then
17944 cat >>confdefs.h
<<\_ACEOF
17945 #define HAVE_ALTZONE 1
17951 echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
17952 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6
17953 cat >conftest.
$ac_ext <<_ACEOF
17956 cat confdefs.h
>>conftest.
$ac_ext
17957 cat >>conftest.
$ac_ext <<_ACEOF
17958 /* end confdefs.h. */
17960 #include <sys/types.h>
17961 #include <sys/select.h>
17962 #include <sys/time.h>
17972 rm -f conftest.
$ac_objext
17973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17974 (eval $ac_compile) 2>conftest.er1
17976 grep -v '^ *+' conftest.er1
>conftest.err
17978 cat conftest.err
>&5
17979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17980 (exit $ac_status); } &&
17981 { ac_try
='test -z "$ac_c_werror_flag"
17982 || test ! -s conftest.err'
17983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17984 (eval $ac_try) 2>&5
17986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17987 (exit $ac_status); }; } &&
17988 { ac_try
='test -s conftest.$ac_objext'
17989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17990 (eval $ac_try) 2>&5
17992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17993 (exit $ac_status); }; }; then
17996 cat >>confdefs.h
<<\_ACEOF
17997 #define SYS_SELECT_WITH_SYS_TIME 1
18003 echo "$as_me: failed program was:" >&5
18004 sed 's/^/| /' conftest.
$ac_ext >&5
18007 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18008 echo "$as_me:$LINENO: result: $was_it_defined" >&5
18009 echo "${ECHO_T}$was_it_defined" >&6
18011 echo "$as_me:$LINENO: checking for addrinfo" >&5
18012 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6
18013 if test "${ac_cv_struct_addrinfo+set}" = set; then
18014 echo $ECHO_N "(cached) $ECHO_C" >&6
18016 cat >conftest.
$ac_ext <<_ACEOF
18019 cat confdefs.h
>>conftest.
$ac_ext
18020 cat >>conftest.
$ac_ext <<_ACEOF
18021 /* end confdefs.h. */
18023 # include <netdb.h>
18032 rm -f conftest.
$ac_objext
18033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18034 (eval $ac_compile) 2>conftest.er1
18036 grep -v '^ *+' conftest.er1
>conftest.err
18038 cat conftest.err
>&5
18039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18040 (exit $ac_status); } &&
18041 { ac_try
='test -z "$ac_c_werror_flag"
18042 || test ! -s conftest.err'
18043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18044 (eval $ac_try) 2>&5
18046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18047 (exit $ac_status); }; } &&
18048 { ac_try
='test -s conftest.$ac_objext'
18049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18050 (eval $ac_try) 2>&5
18052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18053 (exit $ac_status); }; }; then
18054 ac_cv_struct_addrinfo
=yes
18056 echo "$as_me: failed program was:" >&5
18057 sed 's/^/| /' conftest.
$ac_ext >&5
18059 ac_cv_struct_addrinfo
=no
18061 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18064 echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
18065 echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6
18066 if test $ac_cv_struct_addrinfo = yes; then
18068 cat >>confdefs.h
<<\_ACEOF
18069 #define HAVE_ADDRINFO 1
18074 echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
18075 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6
18076 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
18077 echo $ECHO_N "(cached) $ECHO_C" >&6
18079 cat >conftest.
$ac_ext <<_ACEOF
18082 cat confdefs.h
>>conftest.
$ac_ext
18083 cat >>conftest.
$ac_ext <<_ACEOF
18084 /* end confdefs.h. */
18086 # include <sys/types.h>
18087 # include <sys/socket.h>
18091 struct sockaddr_storage s
18096 rm -f conftest.
$ac_objext
18097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18098 (eval $ac_compile) 2>conftest.er1
18100 grep -v '^ *+' conftest.er1
>conftest.err
18102 cat conftest.err
>&5
18103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18104 (exit $ac_status); } &&
18105 { ac_try
='test -z "$ac_c_werror_flag"
18106 || test ! -s conftest.err'
18107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18108 (eval $ac_try) 2>&5
18110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18111 (exit $ac_status); }; } &&
18112 { ac_try
='test -s conftest.$ac_objext'
18113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18114 (eval $ac_try) 2>&5
18116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18117 (exit $ac_status); }; }; then
18118 ac_cv_struct_sockaddr_storage
=yes
18120 echo "$as_me: failed program was:" >&5
18121 sed 's/^/| /' conftest.
$ac_ext >&5
18123 ac_cv_struct_sockaddr_storage
=no
18125 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18128 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
18129 echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6
18130 if test $ac_cv_struct_sockaddr_storage = yes; then
18132 cat >>confdefs.h
<<\_ACEOF
18133 #define HAVE_SOCKADDR_STORAGE 1
18138 # checks for compiler characteristics
18141 echo "$as_me:$LINENO: checking whether char is unsigned" >&5
18142 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
18143 if test "${ac_cv_c_char_unsigned+set}" = set; then
18144 echo $ECHO_N "(cached) $ECHO_C" >&6
18146 cat >conftest.
$ac_ext <<_ACEOF
18149 cat confdefs.h
>>conftest.
$ac_ext
18150 cat >>conftest.
$ac_ext <<_ACEOF
18151 /* end confdefs.h. */
18152 $ac_includes_default
18156 static int test_array [1 - 2 * !(((char) -1) < 0)];
18163 rm -f conftest.
$ac_objext
18164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18165 (eval $ac_compile) 2>conftest.er1
18167 grep -v '^ *+' conftest.er1
>conftest.err
18169 cat conftest.err
>&5
18170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18171 (exit $ac_status); } &&
18172 { ac_try
='test -z "$ac_c_werror_flag"
18173 || test ! -s conftest.err'
18174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18175 (eval $ac_try) 2>&5
18177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18178 (exit $ac_status); }; } &&
18179 { ac_try
='test -s conftest.$ac_objext'
18180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18181 (eval $ac_try) 2>&5
18183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18184 (exit $ac_status); }; }; then
18185 ac_cv_c_char_unsigned
=no
18187 echo "$as_me: failed program was:" >&5
18188 sed 's/^/| /' conftest.
$ac_ext >&5
18190 ac_cv_c_char_unsigned
=yes
18192 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18194 echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
18195 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
18196 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
18197 cat >>confdefs.h
<<\_ACEOF
18198 #define __CHAR_UNSIGNED__ 1
18203 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18204 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
18205 if test "${ac_cv_c_const+set}" = set; then
18206 echo $ECHO_N "(cached) $ECHO_C" >&6
18208 cat >conftest.
$ac_ext <<_ACEOF
18211 cat confdefs.h
>>conftest.
$ac_ext
18212 cat >>conftest.
$ac_ext <<_ACEOF
18213 /* end confdefs.h. */
18218 /* FIXME: Include the comments suggested by Paul. */
18219 #ifndef __cplusplus
18220 /* Ultrix mips cc rejects this. */
18221 typedef int charset[2];
18223 /* SunOS 4.1.1 cc rejects this. */
18224 char const *const *ccp;
18226 /* NEC SVR4.0.2 mips cc rejects this. */
18227 struct point {int x, y;};
18228 static struct point const zero = {0,0};
18229 /* AIX XL C 1.02.0.0 rejects this.
18230 It does not let you subtract one const X* pointer from another in
18231 an arm of an if-expression whose if-part is not a constant
18233 const char *g = "string";
18234 ccp = &g + (g ? g-g : 0);
18235 /* HPUX 7.0 cc rejects these. */
18238 ccp = (char const *const *) p;
18239 { /* SCO 3.2v4 cc rejects this. */
18241 char const *s = 0 ? (char *) 0 : (char const *) 0;
18245 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18246 int x[] = {25, 17};
18247 const int *foo = &x[0];
18250 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18251 typedef const int *iptr;
18255 { /* AIX XL C 1.02.0.0 rejects this saying
18256 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18257 struct s { int j; const int *ap[3]; };
18258 struct s *b; b->j = 5;
18260 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18261 const int foo = 10;
18269 rm -f conftest.
$ac_objext
18270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18271 (eval $ac_compile) 2>conftest.er1
18273 grep -v '^ *+' conftest.er1
>conftest.err
18275 cat conftest.err
>&5
18276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18277 (exit $ac_status); } &&
18278 { ac_try
='test -z "$ac_c_werror_flag"
18279 || test ! -s conftest.err'
18280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18281 (eval $ac_try) 2>&5
18283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18284 (exit $ac_status); }; } &&
18285 { ac_try
='test -s conftest.$ac_objext'
18286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18287 (eval $ac_try) 2>&5
18289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18290 (exit $ac_status); }; }; then
18293 echo "$as_me: failed program was:" >&5
18294 sed 's/^/| /' conftest.
$ac_ext >&5
18298 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18300 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18301 echo "${ECHO_T}$ac_cv_c_const" >&6
18302 if test $ac_cv_c_const = no
; then
18304 cat >>confdefs.h
<<\_ACEOF
18312 echo "$as_me:$LINENO: checking for working volatile" >&5
18313 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
18314 cat >conftest.
$ac_ext <<_ACEOF
18317 cat confdefs.h
>>conftest.
$ac_ext
18318 cat >>conftest.
$ac_ext <<_ACEOF
18319 /* end confdefs.h. */
18324 volatile int x; x = 0;
18329 rm -f conftest.
$ac_objext
18330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18331 (eval $ac_compile) 2>conftest.er1
18333 grep -v '^ *+' conftest.er1
>conftest.err
18335 cat conftest.err
>&5
18336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18337 (exit $ac_status); } &&
18338 { ac_try
='test -z "$ac_c_werror_flag"
18339 || test ! -s conftest.err'
18340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18341 (eval $ac_try) 2>&5
18343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18344 (exit $ac_status); }; } &&
18345 { ac_try
='test -s conftest.$ac_objext'
18346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18347 (eval $ac_try) 2>&5
18349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18350 (exit $ac_status); }; }; then
18353 echo "$as_me: failed program was:" >&5
18354 sed 's/^/| /' conftest.
$ac_ext >&5
18357 cat >>confdefs.h
<<\_ACEOF
18363 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18364 echo "$as_me:$LINENO: result: $works" >&5
18365 echo "${ECHO_T}$works" >&6
18368 echo "$as_me:$LINENO: checking for working signed char" >&5
18369 echo $ECHO_N "checking for working signed char... $ECHO_C" >&6
18370 cat >conftest.
$ac_ext <<_ACEOF
18373 cat confdefs.h
>>conftest.
$ac_ext
18374 cat >>conftest.
$ac_ext <<_ACEOF
18375 /* end confdefs.h. */
18385 rm -f conftest.
$ac_objext
18386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18387 (eval $ac_compile) 2>conftest.er1
18389 grep -v '^ *+' conftest.er1
>conftest.err
18391 cat conftest.err
>&5
18392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18393 (exit $ac_status); } &&
18394 { ac_try
='test -z "$ac_c_werror_flag"
18395 || test ! -s conftest.err'
18396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18397 (eval $ac_try) 2>&5
18399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18400 (exit $ac_status); }; } &&
18401 { ac_try
='test -s conftest.$ac_objext'
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); }; }; then
18409 echo "$as_me: failed program was:" >&5
18410 sed 's/^/| /' conftest.
$ac_ext >&5
18413 cat >>confdefs.h
<<\_ACEOF
18419 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18420 echo "$as_me:$LINENO: result: $works" >&5
18421 echo "${ECHO_T}$works" >&6
18424 echo "$as_me:$LINENO: checking for prototypes" >&5
18425 echo $ECHO_N "checking for prototypes... $ECHO_C" >&6
18426 cat >conftest.
$ac_ext <<_ACEOF
18429 cat confdefs.h
>>conftest.
$ac_ext
18430 cat >>conftest.
$ac_ext <<_ACEOF
18431 /* end confdefs.h. */
18432 int foo(int x) { return 0; }
18441 rm -f conftest.
$ac_objext
18442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18443 (eval $ac_compile) 2>conftest.er1
18445 grep -v '^ *+' conftest.er1
>conftest.err
18447 cat conftest.err
>&5
18448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18449 (exit $ac_status); } &&
18450 { ac_try
='test -z "$ac_c_werror_flag"
18451 || test ! -s conftest.err'
18452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18453 (eval $ac_try) 2>&5
18455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18456 (exit $ac_status); }; } &&
18457 { ac_try
='test -s conftest.$ac_objext'
18458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18459 (eval $ac_try) 2>&5
18461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18462 (exit $ac_status); }; }; then
18465 cat >>confdefs.h
<<\_ACEOF
18466 #define HAVE_PROTOTYPES 1
18469 have_prototypes
=yes
18472 echo "$as_me: failed program was:" >&5
18473 sed 's/^/| /' conftest.
$ac_ext >&5
18476 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18477 echo "$as_me:$LINENO: result: $have_prototypes" >&5
18478 echo "${ECHO_T}$have_prototypes" >&6
18481 echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
18482 echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6
18483 cat >conftest.
$ac_ext <<_ACEOF
18486 cat confdefs.h
>>conftest.
$ac_ext
18487 cat >>conftest.
$ac_ext <<_ACEOF
18488 /* end confdefs.h. */
18490 #include <stdarg.h>
18491 int foo(int x, ...) {
18495 va_arg(va, char *);
18496 va_arg(va, double);
18503 return foo(10, "", 3.14);
18508 rm -f conftest.
$ac_objext
18509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18510 (eval $ac_compile) 2>conftest.er1
18512 grep -v '^ *+' conftest.er1
>conftest.err
18514 cat conftest.err
>&5
18515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18516 (exit $ac_status); } &&
18517 { ac_try
='test -z "$ac_c_werror_flag"
18518 || test ! -s conftest.err'
18519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18520 (eval $ac_try) 2>&5
18522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18523 (exit $ac_status); }; } &&
18524 { ac_try
='test -s conftest.$ac_objext'
18525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18526 (eval $ac_try) 2>&5
18528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18529 (exit $ac_status); }; }; then
18532 cat >>confdefs.h
<<\_ACEOF
18533 #define HAVE_STDARG_PROTOTYPES 1
18539 echo "$as_me: failed program was:" >&5
18540 sed 's/^/| /' conftest.
$ac_ext >&5
18543 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18544 echo "$as_me:$LINENO: result: $works" >&5
18545 echo "${ECHO_T}$works" >&6
18547 # check for socketpair
18548 echo "$as_me:$LINENO: checking for socketpair" >&5
18549 echo $ECHO_N "checking for socketpair... $ECHO_C" >&6
18550 cat >conftest.
$ac_ext <<_ACEOF
18553 cat confdefs.h
>>conftest.
$ac_ext
18554 cat >>conftest.
$ac_ext <<_ACEOF
18555 /* end confdefs.h. */
18557 #include <sys/types.h>
18558 #include <sys/socket.h>
18568 rm -f conftest.
$ac_objext
18569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18570 (eval $ac_compile) 2>conftest.er1
18572 grep -v '^ *+' conftest.er1
>conftest.err
18574 cat conftest.err
>&5
18575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18576 (exit $ac_status); } &&
18577 { ac_try
='test -z "$ac_c_werror_flag"
18578 || test ! -s conftest.err'
18579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18580 (eval $ac_try) 2>&5
18582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18583 (exit $ac_status); }; } &&
18584 { ac_try
='test -s conftest.$ac_objext'
18585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18586 (eval $ac_try) 2>&5
18588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18589 (exit $ac_status); }; }; then
18591 cat >>confdefs.h
<<\_ACEOF
18592 #define HAVE_SOCKETPAIR 1
18595 echo "$as_me:$LINENO: result: yes" >&5
18596 echo "${ECHO_T}yes" >&6
18598 echo "$as_me: failed program was:" >&5
18599 sed 's/^/| /' conftest.
$ac_ext >&5
18601 echo "$as_me:$LINENO: result: no" >&5
18602 echo "${ECHO_T}no" >&6
18605 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18607 # check if sockaddr has sa_len member
18608 echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
18609 echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6
18610 cat >conftest.
$ac_ext <<_ACEOF
18613 cat confdefs.h
>>conftest.
$ac_ext
18614 cat >>conftest.
$ac_ext <<_ACEOF
18615 /* end confdefs.h. */
18616 #include <sys/types.h>
18617 #include <sys/socket.h>
18627 rm -f conftest.
$ac_objext
18628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18629 (eval $ac_compile) 2>conftest.er1
18631 grep -v '^ *+' conftest.er1
>conftest.err
18633 cat conftest.err
>&5
18634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18635 (exit $ac_status); } &&
18636 { ac_try
='test -z "$ac_c_werror_flag"
18637 || test ! -s conftest.err'
18638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18639 (eval $ac_try) 2>&5
18641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18642 (exit $ac_status); }; } &&
18643 { ac_try
='test -s conftest.$ac_objext'
18644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18645 (eval $ac_try) 2>&5
18647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18648 (exit $ac_status); }; }; then
18649 echo "$as_me:$LINENO: result: yes" >&5
18650 echo "${ECHO_T}yes" >&6
18652 cat >>confdefs.h
<<\_ACEOF
18653 #define HAVE_SOCKADDR_SA_LEN 1
18657 echo "$as_me: failed program was:" >&5
18658 sed 's/^/| /' conftest.
$ac_ext >&5
18660 echo "$as_me:$LINENO: result: no" >&5
18661 echo "${ECHO_T}no" >&6
18663 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18665 va_list_is_array
=no
18666 echo "$as_me:$LINENO: checking whether va_list is an array" >&5
18667 echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6
18668 cat >conftest.
$ac_ext <<_ACEOF
18671 cat confdefs.h
>>conftest.
$ac_ext
18672 cat >>conftest.
$ac_ext <<_ACEOF
18673 /* end confdefs.h. */
18675 #ifdef HAVE_STDARG_PROTOTYPES
18676 #include <stdarg.h>
18678 #include <varargs.h>
18684 va_list list1, list2; list1 = list2;
18689 rm -f conftest.
$ac_objext
18690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18691 (eval $ac_compile) 2>conftest.er1
18693 grep -v '^ *+' conftest.er1
>conftest.err
18695 cat conftest.err
>&5
18696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18697 (exit $ac_status); } &&
18698 { ac_try
='test -z "$ac_c_werror_flag"
18699 || test ! -s conftest.err'
18700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18701 (eval $ac_try) 2>&5
18703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18704 (exit $ac_status); }; } &&
18705 { ac_try
='test -s conftest.$ac_objext'
18706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18707 (eval $ac_try) 2>&5
18709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18710 (exit $ac_status); }; }; then
18713 echo "$as_me: failed program was:" >&5
18714 sed 's/^/| /' conftest.
$ac_ext >&5
18718 cat >>confdefs.h
<<\_ACEOF
18719 #define VA_LIST_IS_ARRAY 1
18722 va_list_is_array
=yes
18725 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18726 echo "$as_me:$LINENO: result: $va_list_is_array" >&5
18727 echo "${ECHO_T}$va_list_is_array" >&6
18729 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
18733 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
18734 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
18735 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
18736 echo $ECHO_N "(cached) $ECHO_C" >&6
18738 cat >conftest.
$ac_ext <<_ACEOF
18741 cat confdefs.h
>>conftest.
$ac_ext
18742 cat >>conftest.
$ac_ext <<_ACEOF
18743 /* end confdefs.h. */
18744 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
18745 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18746 #define gethostbyname_r innocuous_gethostbyname_r
18748 /* System header to define __stub macros and hopefully few prototypes,
18749 which can conflict with char gethostbyname_r (); below.
18750 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18751 <limits.h> exists even on freestanding compilers. */
18754 # include <limits.h>
18756 # include <assert.h>
18759 #undef gethostbyname_r
18761 /* Override any gcc2 internal prototype to avoid an error. */
18766 /* We use char because int might match the return type of a gcc2
18767 builtin and then its argument prototype would still apply. */
18768 char gethostbyname_r ();
18769 /* The GNU C library defines this for functions which it implements
18770 to always fail with ENOSYS. Some functions are actually named
18771 something starting with __ and the normal name is an alias. */
18772 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
18775 char (*f) () = gethostbyname_r;
18784 return f != gethostbyname_r;
18789 rm -f conftest.
$ac_objext conftest
$ac_exeext
18790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18791 (eval $ac_link) 2>conftest.er1
18793 grep -v '^ *+' conftest.er1
>conftest.err
18795 cat conftest.err
>&5
18796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18797 (exit $ac_status); } &&
18798 { ac_try
='test -z "$ac_c_werror_flag"
18799 || test ! -s conftest.err'
18800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18801 (eval $ac_try) 2>&5
18803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18804 (exit $ac_status); }; } &&
18805 { ac_try
='test -s conftest$ac_exeext'
18806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18807 (eval $ac_try) 2>&5
18809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18810 (exit $ac_status); }; }; then
18811 ac_cv_func_gethostbyname_r
=yes
18813 echo "$as_me: failed program was:" >&5
18814 sed 's/^/| /' conftest.
$ac_ext >&5
18816 ac_cv_func_gethostbyname_r
=no
18818 rm -f conftest.err conftest.
$ac_objext \
18819 conftest
$ac_exeext conftest.
$ac_ext
18821 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
18822 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
18823 if test $ac_cv_func_gethostbyname_r = yes; then
18825 cat >>confdefs.h
<<\_ACEOF
18826 #define HAVE_GETHOSTBYNAME_R 1
18829 echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
18830 echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6
18832 CFLAGS
="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
18833 cat >conftest.
$ac_ext <<_ACEOF
18836 cat confdefs.h
>>conftest.
$ac_ext
18837 cat >>conftest.
$ac_ext <<_ACEOF
18838 /* end confdefs.h. */
18840 # include <netdb.h>
18847 struct hostent *he, *res;
18852 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
18858 rm -f conftest.
$ac_objext
18859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18860 (eval $ac_compile) 2>conftest.er1
18862 grep -v '^ *+' conftest.er1
>conftest.err
18864 cat conftest.err
>&5
18865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18866 (exit $ac_status); } &&
18867 { ac_try
='test -z "$ac_c_werror_flag"
18868 || test ! -s conftest.err'
18869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18870 (eval $ac_try) 2>&5
18872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18873 (exit $ac_status); }; } &&
18874 { ac_try
='test -s conftest.$ac_objext'
18875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18876 (eval $ac_try) 2>&5
18878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18879 (exit $ac_status); }; }; then
18881 cat >>confdefs.h
<<\_ACEOF
18882 #define HAVE_GETHOSTBYNAME_R 1
18886 cat >>confdefs.h
<<\_ACEOF
18887 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
18890 echo "$as_me:$LINENO: result: yes" >&5
18891 echo "${ECHO_T}yes" >&6
18894 echo "$as_me: failed program was:" >&5
18895 sed 's/^/| /' conftest.
$ac_ext >&5
18898 echo "$as_me:$LINENO: result: no" >&5
18899 echo "${ECHO_T}no" >&6
18900 echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
18901 echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6
18902 cat >conftest.
$ac_ext <<_ACEOF
18905 cat confdefs.h
>>conftest.
$ac_ext
18906 cat >>conftest.
$ac_ext <<_ACEOF
18907 /* end confdefs.h. */
18909 # include <netdb.h>
18916 struct hostent *he;
18921 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
18927 rm -f conftest.
$ac_objext
18928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18929 (eval $ac_compile) 2>conftest.er1
18931 grep -v '^ *+' conftest.er1
>conftest.err
18933 cat conftest.err
>&5
18934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18935 (exit $ac_status); } &&
18936 { ac_try
='test -z "$ac_c_werror_flag"
18937 || test ! -s conftest.err'
18938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18939 (eval $ac_try) 2>&5
18941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18942 (exit $ac_status); }; } &&
18943 { ac_try
='test -s conftest.$ac_objext'
18944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18945 (eval $ac_try) 2>&5
18947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18948 (exit $ac_status); }; }; then
18950 cat >>confdefs.h
<<\_ACEOF
18951 #define HAVE_GETHOSTBYNAME_R 1
18955 cat >>confdefs.h
<<\_ACEOF
18956 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
18959 echo "$as_me:$LINENO: result: yes" >&5
18960 echo "${ECHO_T}yes" >&6
18963 echo "$as_me: failed program was:" >&5
18964 sed 's/^/| /' conftest.
$ac_ext >&5
18967 echo "$as_me:$LINENO: result: no" >&5
18968 echo "${ECHO_T}no" >&6
18969 echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
18970 echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6
18971 cat >conftest.
$ac_ext <<_ACEOF
18974 cat confdefs.h
>>conftest.
$ac_ext
18975 cat >>conftest.
$ac_ext <<_ACEOF
18976 /* end confdefs.h. */
18978 # include <netdb.h>
18985 struct hostent *he;
18986 struct hostent_data data;
18988 (void) gethostbyname_r(name, he, &data);
18994 rm -f conftest.
$ac_objext
18995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18996 (eval $ac_compile) 2>conftest.er1
18998 grep -v '^ *+' conftest.er1
>conftest.err
19000 cat conftest.err
>&5
19001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19002 (exit $ac_status); } &&
19003 { ac_try
='test -z "$ac_c_werror_flag"
19004 || test ! -s conftest.err'
19005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19006 (eval $ac_try) 2>&5
19008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19009 (exit $ac_status); }; } &&
19010 { ac_try
='test -s conftest.$ac_objext'
19011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19012 (eval $ac_try) 2>&5
19014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19015 (exit $ac_status); }; }; then
19017 cat >>confdefs.h
<<\_ACEOF
19018 #define HAVE_GETHOSTBYNAME_R 1
19022 cat >>confdefs.h
<<\_ACEOF
19023 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
19026 echo "$as_me:$LINENO: result: yes" >&5
19027 echo "${ECHO_T}yes" >&6
19030 echo "$as_me: failed program was:" >&5
19031 sed 's/^/| /' conftest.
$ac_ext >&5
19034 echo "$as_me:$LINENO: result: no" >&5
19035 echo "${ECHO_T}no" >&6
19038 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19041 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19044 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19050 for ac_func
in gethostbyname
19052 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19053 echo "$as_me:$LINENO: checking for $ac_func" >&5
19054 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19055 if eval "test \"\${$as_ac_var+set}\" = set"; then
19056 echo $ECHO_N "(cached) $ECHO_C" >&6
19058 cat >conftest.
$ac_ext <<_ACEOF
19061 cat confdefs.h
>>conftest.
$ac_ext
19062 cat >>conftest.
$ac_ext <<_ACEOF
19063 /* end confdefs.h. */
19064 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19065 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19066 #define $ac_func innocuous_$ac_func
19068 /* System header to define __stub macros and hopefully few prototypes,
19069 which can conflict with char $ac_func (); below.
19070 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19071 <limits.h> exists even on freestanding compilers. */
19074 # include <limits.h>
19076 # include <assert.h>
19081 /* Override any gcc2 internal prototype to avoid an error. */
19086 /* We use char because int might match the return type of a gcc2
19087 builtin and then its argument prototype would still apply. */
19089 /* The GNU C library defines this for functions which it implements
19090 to always fail with ENOSYS. Some functions are actually named
19091 something starting with __ and the normal name is an alias. */
19092 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19095 char (*f) () = $ac_func;
19104 return f != $ac_func;
19109 rm -f conftest.
$ac_objext conftest
$ac_exeext
19110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19111 (eval $ac_link) 2>conftest.er1
19113 grep -v '^ *+' conftest.er1
>conftest.err
19115 cat conftest.err
>&5
19116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19117 (exit $ac_status); } &&
19118 { ac_try
='test -z "$ac_c_werror_flag"
19119 || test ! -s conftest.err'
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); }; } &&
19125 { ac_try
='test -s conftest$ac_exeext'
19126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19127 (eval $ac_try) 2>&5
19129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19130 (exit $ac_status); }; }; then
19131 eval "$as_ac_var=yes"
19133 echo "$as_me: failed program was:" >&5
19134 sed 's/^/| /' conftest.
$ac_ext >&5
19136 eval "$as_ac_var=no"
19138 rm -f conftest.err conftest.
$ac_objext \
19139 conftest
$ac_exeext conftest.
$ac_ext
19141 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19142 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19143 if test `eval echo '${'$as_ac_var'}'` = yes; then
19144 cat >>confdefs.h
<<_ACEOF
19145 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19160 # checks for system services
19163 # Linux requires this for correct f.p. operations
19164 echo "$as_me:$LINENO: checking for __fpu_control" >&5
19165 echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6
19166 if test "${ac_cv_func___fpu_control+set}" = set; then
19167 echo $ECHO_N "(cached) $ECHO_C" >&6
19169 cat >conftest.
$ac_ext <<_ACEOF
19172 cat confdefs.h
>>conftest.
$ac_ext
19173 cat >>conftest.
$ac_ext <<_ACEOF
19174 /* end confdefs.h. */
19175 /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control.
19176 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19177 #define __fpu_control innocuous___fpu_control
19179 /* System header to define __stub macros and hopefully few prototypes,
19180 which can conflict with char __fpu_control (); below.
19181 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19182 <limits.h> exists even on freestanding compilers. */
19185 # include <limits.h>
19187 # include <assert.h>
19190 #undef __fpu_control
19192 /* Override any gcc2 internal prototype to avoid an error. */
19197 /* We use char because int might match the return type of a gcc2
19198 builtin and then its argument prototype would still apply. */
19199 char __fpu_control ();
19200 /* The GNU C library defines this for functions which it implements
19201 to always fail with ENOSYS. Some functions are actually named
19202 something starting with __ and the normal name is an alias. */
19203 #if defined (__stub___fpu_control) || defined (__stub_____fpu_control)
19206 char (*f) () = __fpu_control;
19215 return f != __fpu_control;
19220 rm -f conftest.
$ac_objext conftest
$ac_exeext
19221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19222 (eval $ac_link) 2>conftest.er1
19224 grep -v '^ *+' conftest.er1
>conftest.err
19226 cat conftest.err
>&5
19227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19228 (exit $ac_status); } &&
19229 { ac_try
='test -z "$ac_c_werror_flag"
19230 || test ! -s conftest.err'
19231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19232 (eval $ac_try) 2>&5
19234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19235 (exit $ac_status); }; } &&
19236 { ac_try
='test -s conftest$ac_exeext'
19237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19238 (eval $ac_try) 2>&5
19240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19241 (exit $ac_status); }; }; then
19242 ac_cv_func___fpu_control
=yes
19244 echo "$as_me: failed program was:" >&5
19245 sed 's/^/| /' conftest.
$ac_ext >&5
19247 ac_cv_func___fpu_control
=no
19249 rm -f conftest.err conftest.
$ac_objext \
19250 conftest
$ac_exeext conftest.
$ac_ext
19252 echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
19253 echo "${ECHO_T}$ac_cv_func___fpu_control" >&6
19254 if test $ac_cv_func___fpu_control = yes; then
19258 echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
19259 echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6
19260 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
19261 echo $ECHO_N "(cached) $ECHO_C" >&6
19263 ac_check_lib_save_LIBS
=$LIBS
19264 LIBS
="-lieee $LIBS"
19265 cat >conftest.
$ac_ext <<_ACEOF
19268 cat confdefs.h
>>conftest.
$ac_ext
19269 cat >>conftest.
$ac_ext <<_ACEOF
19270 /* end confdefs.h. */
19272 /* Override any gcc2 internal prototype to avoid an error. */
19276 /* We use char because int might match the return type of a gcc2
19277 builtin and then its argument prototype would still apply. */
19278 char __fpu_control ();
19287 rm -f conftest.
$ac_objext conftest
$ac_exeext
19288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19289 (eval $ac_link) 2>conftest.er1
19291 grep -v '^ *+' conftest.er1
>conftest.err
19293 cat conftest.err
>&5
19294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19295 (exit $ac_status); } &&
19296 { ac_try
='test -z "$ac_c_werror_flag"
19297 || test ! -s conftest.err'
19298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19299 (eval $ac_try) 2>&5
19301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19302 (exit $ac_status); }; } &&
19303 { ac_try
='test -s conftest$ac_exeext'
19304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19305 (eval $ac_try) 2>&5
19307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19308 (exit $ac_status); }; }; then
19309 ac_cv_lib_ieee___fpu_control
=yes
19311 echo "$as_me: failed program was:" >&5
19312 sed 's/^/| /' conftest.
$ac_ext >&5
19314 ac_cv_lib_ieee___fpu_control
=no
19316 rm -f conftest.err conftest.
$ac_objext \
19317 conftest
$ac_exeext conftest.
$ac_ext
19318 LIBS
=$ac_check_lib_save_LIBS
19320 echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
19321 echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6
19322 if test $ac_cv_lib_ieee___fpu_control = yes; then
19323 cat >>confdefs.h
<<_ACEOF
19324 #define HAVE_LIBIEEE 1
19327 LIBS
="-lieee $LIBS"
19335 # Check for --with-fpectl
19336 echo "$as_me:$LINENO: checking for --with-fpectl" >&5
19337 echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6
19339 # Check whether --with-fpectl or --without-fpectl was given.
19340 if test "${with_fpectl+set}" = set; then
19341 withval
="$with_fpectl"
19343 if test "$withval" != no
19346 cat >>confdefs.h
<<\_ACEOF
19347 #define WANT_SIGFPE_HANDLER 1
19350 echo "$as_me:$LINENO: result: yes" >&5
19351 echo "${ECHO_T}yes" >&6
19352 else echo "$as_me:$LINENO: result: no" >&5
19353 echo "${ECHO_T}no" >&6
19356 echo "$as_me:$LINENO: result: no" >&5
19357 echo "${ECHO_T}no" >&6
19360 # check for --with-libm=...
19362 case $ac_sys_system in
19367 echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
19368 echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6
19370 # Check whether --with-libm or --without-libm was given.
19371 if test "${with_libm+set}" = set; then
19372 withval
="$with_libm"
19374 if test "$withval" = no
19376 echo "$as_me:$LINENO: result: force LIBM empty" >&5
19377 echo "${ECHO_T}force LIBM empty" >&6
19378 elif test "$withval" != yes
19380 echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
19381 echo "${ECHO_T}set LIBM=\"$withval\"" >&6
19382 else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
19383 echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
19384 { (exit 1); exit 1; }; }
19387 echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
19388 echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6
19391 # check for --with-libc=...
19393 echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
19394 echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6
19396 # Check whether --with-libc or --without-libc was given.
19397 if test "${with_libc+set}" = set; then
19398 withval
="$with_libc"
19400 if test "$withval" = no
19402 echo "$as_me:$LINENO: result: force LIBC empty" >&5
19403 echo "${ECHO_T}force LIBC empty" >&6
19404 elif test "$withval" != yes
19406 echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
19407 echo "${ECHO_T}set LIBC=\"$withval\"" >&6
19408 else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
19409 echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
19410 { (exit 1); exit 1; }; }
19413 echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
19414 echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6
19417 # check for hypot() in math library
19421 for ac_func
in hypot
19423 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19424 echo "$as_me:$LINENO: checking for $ac_func" >&5
19425 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19426 if eval "test \"\${$as_ac_var+set}\" = set"; then
19427 echo $ECHO_N "(cached) $ECHO_C" >&6
19429 cat >conftest.
$ac_ext <<_ACEOF
19432 cat confdefs.h
>>conftest.
$ac_ext
19433 cat >>conftest.
$ac_ext <<_ACEOF
19434 /* end confdefs.h. */
19435 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19436 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19437 #define $ac_func innocuous_$ac_func
19439 /* System header to define __stub macros and hopefully few prototypes,
19440 which can conflict with char $ac_func (); below.
19441 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19442 <limits.h> exists even on freestanding compilers. */
19445 # include <limits.h>
19447 # include <assert.h>
19452 /* Override any gcc2 internal prototype to avoid an error. */
19457 /* We use char because int might match the return type of a gcc2
19458 builtin and then its argument prototype would still apply. */
19460 /* The GNU C library defines this for functions which it implements
19461 to always fail with ENOSYS. Some functions are actually named
19462 something starting with __ and the normal name is an alias. */
19463 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19466 char (*f) () = $ac_func;
19475 return f != $ac_func;
19480 rm -f conftest.
$ac_objext conftest
$ac_exeext
19481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19482 (eval $ac_link) 2>conftest.er1
19484 grep -v '^ *+' conftest.er1
>conftest.err
19486 cat conftest.err
>&5
19487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19488 (exit $ac_status); } &&
19489 { ac_try
='test -z "$ac_c_werror_flag"
19490 || test ! -s conftest.err'
19491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19492 (eval $ac_try) 2>&5
19494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19495 (exit $ac_status); }; } &&
19496 { ac_try
='test -s conftest$ac_exeext'
19497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19498 (eval $ac_try) 2>&5
19500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19501 (exit $ac_status); }; }; then
19502 eval "$as_ac_var=yes"
19504 echo "$as_me: failed program was:" >&5
19505 sed 's/^/| /' conftest.
$ac_ext >&5
19507 eval "$as_ac_var=no"
19509 rm -f conftest.err conftest.
$ac_objext \
19510 conftest
$ac_exeext conftest.
$ac_ext
19512 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19513 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19514 if test `eval echo '${'$as_ac_var'}'` = yes; then
19515 cat >>confdefs.h
<<_ACEOF
19516 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19521 "$ac_func.$ac_objext" | \
19522 *" $ac_func.$ac_objext" | \
19523 "$ac_func.$ac_objext "* | \
19524 *" $ac_func.$ac_objext "* ) ;;
19525 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext" ;;
19534 # check for wchar.h
19535 if test "${ac_cv_header_wchar_h+set}" = set; then
19536 echo "$as_me:$LINENO: checking for wchar.h" >&5
19537 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
19538 if test "${ac_cv_header_wchar_h+set}" = set; then
19539 echo $ECHO_N "(cached) $ECHO_C" >&6
19541 echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
19542 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6
19544 # Is the header compilable?
19545 echo "$as_me:$LINENO: checking wchar.h usability" >&5
19546 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6
19547 cat >conftest.
$ac_ext <<_ACEOF
19550 cat confdefs.h
>>conftest.
$ac_ext
19551 cat >>conftest.
$ac_ext <<_ACEOF
19552 /* end confdefs.h. */
19553 $ac_includes_default
19556 rm -f conftest.
$ac_objext
19557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19558 (eval $ac_compile) 2>conftest.er1
19560 grep -v '^ *+' conftest.er1
>conftest.err
19562 cat conftest.err
>&5
19563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19564 (exit $ac_status); } &&
19565 { ac_try
='test -z "$ac_c_werror_flag"
19566 || test ! -s conftest.err'
19567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19568 (eval $ac_try) 2>&5
19570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19571 (exit $ac_status); }; } &&
19572 { ac_try
='test -s conftest.$ac_objext'
19573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19574 (eval $ac_try) 2>&5
19576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19577 (exit $ac_status); }; }; then
19578 ac_header_compiler
=yes
19580 echo "$as_me: failed program was:" >&5
19581 sed 's/^/| /' conftest.
$ac_ext >&5
19583 ac_header_compiler
=no
19585 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19586 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19587 echo "${ECHO_T}$ac_header_compiler" >&6
19589 # Is the header present?
19590 echo "$as_me:$LINENO: checking wchar.h presence" >&5
19591 echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6
19592 cat >conftest.
$ac_ext <<_ACEOF
19595 cat confdefs.h
>>conftest.
$ac_ext
19596 cat >>conftest.
$ac_ext <<_ACEOF
19597 /* end confdefs.h. */
19600 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19601 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19603 grep -v '^ *+' conftest.er1
>conftest.err
19605 cat conftest.err
>&5
19606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19607 (exit $ac_status); } >/dev
/null
; then
19608 if test -s conftest.err
; then
19609 ac_cpp_err
=$ac_c_preproc_warn_flag
19610 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19617 if test -z "$ac_cpp_err"; then
19618 ac_header_preproc
=yes
19620 echo "$as_me: failed program was:" >&5
19621 sed 's/^/| /' conftest.
$ac_ext >&5
19623 ac_header_preproc
=no
19625 rm -f conftest.err conftest.
$ac_ext
19626 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19627 echo "${ECHO_T}$ac_header_preproc" >&6
19629 # So? What about this header?
19630 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19632 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
19633 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19634 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
19635 echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
19636 ac_header_preproc
=yes
19639 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
19640 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
19641 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
19642 echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
19643 { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
19644 echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
19645 { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5
19646 echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;}
19647 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
19648 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
19649 { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
19650 echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
19653 ## ------------------------------------------------ ##
19654 ## Report this to http://www.python.org/python-bugs ##
19655 ## ------------------------------------------------ ##
19658 sed "s/^/$as_me: WARNING: /" >&2
19661 echo "$as_me:$LINENO: checking for wchar.h" >&5
19662 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
19663 if test "${ac_cv_header_wchar_h+set}" = set; then
19664 echo $ECHO_N "(cached) $ECHO_C" >&6
19666 ac_cv_header_wchar_h
=$ac_header_preproc
19668 echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
19669 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6
19672 if test $ac_cv_header_wchar_h = yes; then
19675 cat >>confdefs.h
<<\_ACEOF
19676 #define HAVE_WCHAR_H 1
19688 # determine wchar_t size
19689 if test "$wchar_h" = yes
19691 echo "$as_me:$LINENO: checking for wchar_t" >&5
19692 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
19693 if test "${ac_cv_type_wchar_t+set}" = set; then
19694 echo $ECHO_N "(cached) $ECHO_C" >&6
19696 cat >conftest.
$ac_ext <<_ACEOF
19699 cat confdefs.h
>>conftest.
$ac_ext
19700 cat >>conftest.
$ac_ext <<_ACEOF
19701 /* end confdefs.h. */
19709 if (sizeof (wchar_t))
19715 rm -f conftest.
$ac_objext
19716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19717 (eval $ac_compile) 2>conftest.er1
19719 grep -v '^ *+' conftest.er1
>conftest.err
19721 cat conftest.err
>&5
19722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19723 (exit $ac_status); } &&
19724 { ac_try
='test -z "$ac_c_werror_flag"
19725 || test ! -s conftest.err'
19726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19727 (eval $ac_try) 2>&5
19729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19730 (exit $ac_status); }; } &&
19731 { ac_try
='test -s conftest.$ac_objext'
19732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19733 (eval $ac_try) 2>&5
19735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19736 (exit $ac_status); }; }; then
19737 ac_cv_type_wchar_t
=yes
19739 echo "$as_me: failed program was:" >&5
19740 sed 's/^/| /' conftest.
$ac_ext >&5
19742 ac_cv_type_wchar_t
=no
19744 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19746 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
19747 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
19749 echo "$as_me:$LINENO: checking size of wchar_t" >&5
19750 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
19751 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
19752 echo $ECHO_N "(cached) $ECHO_C" >&6
19754 if test "$ac_cv_type_wchar_t" = yes; then
19755 # The cast to unsigned long works around a bug in the HP C Compiler
19756 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19757 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19758 # This bug is HP SR number 8606223364.
19759 if test "$cross_compiling" = yes; then
19760 # Depending upon the size, compute the lo and hi bounds.
19761 cat >conftest.
$ac_ext <<_ACEOF
19764 cat confdefs.h
>>conftest.
$ac_ext
19765 cat >>conftest.
$ac_ext <<_ACEOF
19766 /* end confdefs.h. */
19772 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
19779 rm -f conftest.
$ac_objext
19780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19781 (eval $ac_compile) 2>conftest.er1
19783 grep -v '^ *+' conftest.er1
>conftest.err
19785 cat conftest.err
>&5
19786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19787 (exit $ac_status); } &&
19788 { ac_try
='test -z "$ac_c_werror_flag"
19789 || test ! -s conftest.err'
19790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19791 (eval $ac_try) 2>&5
19793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19794 (exit $ac_status); }; } &&
19795 { ac_try
='test -s conftest.$ac_objext'
19796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19797 (eval $ac_try) 2>&5
19799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19800 (exit $ac_status); }; }; then
19803 cat >conftest.
$ac_ext <<_ACEOF
19806 cat confdefs.h
>>conftest.
$ac_ext
19807 cat >>conftest.
$ac_ext <<_ACEOF
19808 /* end confdefs.h. */
19814 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19821 rm -f conftest.
$ac_objext
19822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19823 (eval $ac_compile) 2>conftest.er1
19825 grep -v '^ *+' conftest.er1
>conftest.err
19827 cat conftest.err
>&5
19828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19829 (exit $ac_status); } &&
19830 { ac_try
='test -z "$ac_c_werror_flag"
19831 || test ! -s conftest.err'
19832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19833 (eval $ac_try) 2>&5
19835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19836 (exit $ac_status); }; } &&
19837 { ac_try
='test -s conftest.$ac_objext'
19838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19839 (eval $ac_try) 2>&5
19841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19842 (exit $ac_status); }; }; then
19843 ac_hi
=$ac_mid; break
19845 echo "$as_me: failed program was:" >&5
19846 sed 's/^/| /' conftest.
$ac_ext >&5
19848 ac_lo
=`expr $ac_mid + 1`
19849 if test $ac_lo -le $ac_mid; then
19853 ac_mid
=`expr 2 '*' $ac_mid + 1`
19855 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19858 echo "$as_me: failed program was:" >&5
19859 sed 's/^/| /' conftest.
$ac_ext >&5
19861 cat >conftest.
$ac_ext <<_ACEOF
19864 cat confdefs.h
>>conftest.
$ac_ext
19865 cat >>conftest.
$ac_ext <<_ACEOF
19866 /* end confdefs.h. */
19872 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
19879 rm -f conftest.
$ac_objext
19880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19881 (eval $ac_compile) 2>conftest.er1
19883 grep -v '^ *+' conftest.er1
>conftest.err
19885 cat conftest.err
>&5
19886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19887 (exit $ac_status); } &&
19888 { ac_try
='test -z "$ac_c_werror_flag"
19889 || test ! -s conftest.err'
19890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19891 (eval $ac_try) 2>&5
19893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19894 (exit $ac_status); }; } &&
19895 { ac_try
='test -s conftest.$ac_objext'
19896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19897 (eval $ac_try) 2>&5
19899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19900 (exit $ac_status); }; }; then
19903 cat >conftest.
$ac_ext <<_ACEOF
19906 cat confdefs.h
>>conftest.
$ac_ext
19907 cat >>conftest.
$ac_ext <<_ACEOF
19908 /* end confdefs.h. */
19914 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
19921 rm -f conftest.
$ac_objext
19922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19923 (eval $ac_compile) 2>conftest.er1
19925 grep -v '^ *+' conftest.er1
>conftest.err
19927 cat conftest.err
>&5
19928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19929 (exit $ac_status); } &&
19930 { ac_try
='test -z "$ac_c_werror_flag"
19931 || test ! -s conftest.err'
19932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19933 (eval $ac_try) 2>&5
19935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19936 (exit $ac_status); }; } &&
19937 { ac_try
='test -s conftest.$ac_objext'
19938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19939 (eval $ac_try) 2>&5
19941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19942 (exit $ac_status); }; }; then
19943 ac_lo
=$ac_mid; break
19945 echo "$as_me: failed program was:" >&5
19946 sed 's/^/| /' conftest.
$ac_ext >&5
19948 ac_hi
=`expr '(' $ac_mid ')' - 1`
19949 if test $ac_mid -le $ac_hi; then
19953 ac_mid
=`expr 2 '*' $ac_mid`
19955 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19958 echo "$as_me: failed program was:" >&5
19959 sed 's/^/| /' conftest.
$ac_ext >&5
19963 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19965 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19966 # Binary search between lo and hi bounds.
19967 while test "x$ac_lo" != "x$ac_hi"; do
19968 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19969 cat >conftest.
$ac_ext <<_ACEOF
19972 cat confdefs.h
>>conftest.
$ac_ext
19973 cat >>conftest.
$ac_ext <<_ACEOF
19974 /* end confdefs.h. */
19980 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19987 rm -f conftest.
$ac_objext
19988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19989 (eval $ac_compile) 2>conftest.er1
19991 grep -v '^ *+' conftest.er1
>conftest.err
19993 cat conftest.err
>&5
19994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19995 (exit $ac_status); } &&
19996 { ac_try
='test -z "$ac_c_werror_flag"
19997 || test ! -s conftest.err'
19998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19999 (eval $ac_try) 2>&5
20001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20002 (exit $ac_status); }; } &&
20003 { ac_try
='test -s conftest.$ac_objext'
20004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20005 (eval $ac_try) 2>&5
20007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20008 (exit $ac_status); }; }; then
20011 echo "$as_me: failed program was:" >&5
20012 sed 's/^/| /' conftest.
$ac_ext >&5
20014 ac_lo
=`expr '(' $ac_mid ')' + 1`
20016 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20019 ?
*) ac_cv_sizeof_wchar_t
=$ac_lo;;
20020 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
20021 See \`config.log' for more details." >&5
20022 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
20023 See \`config.log' for more details." >&2;}
20024 { (exit 1); exit 1; }; } ;;
20027 if test "$cross_compiling" = yes; then
20028 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20029 See \`config.log' for more details." >&5
20030 echo "$as_me: error: cannot run test program while cross compiling
20031 See \`config.log' for more details." >&2;}
20032 { (exit 1); exit 1; }; }
20034 cat >conftest.
$ac_ext <<_ACEOF
20037 cat confdefs.h
>>conftest.
$ac_ext
20038 cat >>conftest.
$ac_ext <<_ACEOF
20039 /* end confdefs.h. */
20042 long longval () { return (long) (sizeof (wchar_t)); }
20043 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
20045 #include <stdlib.h>
20050 FILE *f = fopen ("conftest.val", "w");
20053 if (((long) (sizeof (wchar_t))) < 0)
20055 long i = longval ();
20056 if (i != ((long) (sizeof (wchar_t))))
20058 fprintf (f, "%ld\n", i);
20062 unsigned long i = ulongval ();
20063 if (i != ((long) (sizeof (wchar_t))))
20065 fprintf (f, "%lu\n", i);
20067 exit (ferror (f) || fclose (f) != 0);
20073 rm -f conftest
$ac_exeext
20074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20075 (eval $ac_link) 2>&5
20077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20078 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20080 (eval $ac_try) 2>&5
20082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20083 (exit $ac_status); }; }; then
20084 ac_cv_sizeof_wchar_t
=`cat conftest.val`
20086 echo "$as_me: program exited with status $ac_status" >&5
20087 echo "$as_me: failed program was:" >&5
20088 sed 's/^/| /' conftest.
$ac_ext >&5
20090 ( exit $ac_status )
20091 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
20092 See \`config.log' for more details." >&5
20093 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
20094 See \`config.log' for more details." >&2;}
20095 { (exit 1); exit 1; }; }
20097 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20102 ac_cv_sizeof_wchar_t
=0
20105 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
20106 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
20107 cat >>confdefs.h
<<_ACEOF
20108 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
20114 echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5
20115 echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6
20117 cat >conftest.
$ac_ext <<_ACEOF
20120 cat confdefs.h
>>conftest.
$ac_ext
20121 cat >>conftest.
$ac_ext <<_ACEOF
20122 /* end confdefs.h. */
20125 #if TCL_UTF_MAX != 6
20126 # error "NOT UCS4_TCL"
20136 rm -f conftest.
$ac_objext
20137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20138 (eval $ac_compile) 2>conftest.er1
20140 grep -v '^ *+' conftest.er1
>conftest.err
20142 cat conftest.err
>&5
20143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20144 (exit $ac_status); } &&
20145 { ac_try
='test -z "$ac_c_werror_flag"
20146 || test ! -s conftest.err'
20147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20148 (eval $ac_try) 2>&5
20150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20151 (exit $ac_status); }; } &&
20152 { ac_try
='test -s conftest.$ac_objext'
20153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20154 (eval $ac_try) 2>&5
20156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20157 (exit $ac_status); }; }; then
20160 cat >>confdefs.h
<<\_ACEOF
20161 #define HAVE_UCS4_TCL 1
20167 echo "$as_me: failed program was:" >&5
20168 sed 's/^/| /' conftest.
$ac_ext >&5
20171 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20172 echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5
20173 echo "${ECHO_T}$have_ucs4_tcl" >&6
20175 # check whether wchar_t is signed or not
20176 if test "$wchar_h" = yes
20178 # check whether wchar_t is signed or not
20179 echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5
20180 echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6
20181 if test "${ac_cv_wchar_t_signed+set}" = set; then
20182 echo $ECHO_N "(cached) $ECHO_C" >&6
20185 if test "$cross_compiling" = yes; then
20186 ac_cv_wchar_t_signed
=yes
20188 cat >conftest.
$ac_ext <<_ACEOF
20191 cat confdefs.h
>>conftest.
$ac_ext
20192 cat >>conftest.
$ac_ext <<_ACEOF
20193 /* end confdefs.h. */
20198 /* Success: exit code 0 */
20199 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
20203 rm -f conftest
$ac_exeext
20204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20205 (eval $ac_link) 2>&5
20207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20208 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20210 (eval $ac_try) 2>&5
20212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20213 (exit $ac_status); }; }; then
20214 ac_cv_wchar_t_signed
=yes
20216 echo "$as_me: program exited with status $ac_status" >&5
20217 echo "$as_me: failed program was:" >&5
20218 sed 's/^/| /' conftest.
$ac_ext >&5
20220 ( exit $ac_status )
20221 ac_cv_wchar_t_signed
=no
20223 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20227 echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5
20228 echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6
20231 echo "$as_me:$LINENO: checking what type to use for unicode" >&5
20232 echo $ECHO_N "checking what type to use for unicode... $ECHO_C" >&6
20233 # Check whether --enable-unicode or --disable-unicode was given.
20234 if test "${enable_unicode+set}" = set; then
20235 enableval
="$enable_unicode"
20241 if test $enable_unicode = yes
20243 # Without any arguments, Py_UNICODE defaults to two-byte mode
20244 case "$have_ucs4_tcl" in
20245 yes) enable_unicode
="ucs4"
20247 *) enable_unicode
="ucs2"
20254 case "$enable_unicode" in
20255 ucs2
) unicode_size
="2"
20256 cat >>confdefs.h
<<\_ACEOF
20257 #define Py_UNICODE_SIZE 2
20261 ucs4
) unicode_size
="4"
20262 cat >>confdefs.h
<<\_ACEOF
20263 #define Py_UNICODE_SIZE 4
20273 if test "$enable_unicode" = "no"
20276 echo "$as_me:$LINENO: result: not used" >&5
20277 echo "${ECHO_T}not used" >&6
20279 UNICODE_OBJS
="Objects/unicodeobject.o Objects/unicodectype.o"
20281 cat >>confdefs.h
<<\_ACEOF
20282 #define Py_USING_UNICODE 1
20286 # wchar_t is only usable if it maps to an unsigned type
20287 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
20288 -a "$ac_cv_wchar_t_signed" = "no"
20290 PY_UNICODE_TYPE
="wchar_t"
20292 cat >>confdefs.h
<<\_ACEOF
20293 #define HAVE_USABLE_WCHAR_T 1
20296 cat >>confdefs.h
<<\_ACEOF
20297 #define PY_UNICODE_TYPE wchar_t
20300 elif test "$ac_cv_sizeof_short" = "$unicode_size"
20302 PY_UNICODE_TYPE
="unsigned short"
20303 cat >>confdefs.h
<<\_ACEOF
20304 #define PY_UNICODE_TYPE unsigned short
20307 elif test "$ac_cv_sizeof_long" = "$unicode_size"
20309 PY_UNICODE_TYPE
="unsigned long"
20310 cat >>confdefs.h
<<\_ACEOF
20311 #define PY_UNICODE_TYPE unsigned long
20315 PY_UNICODE_TYPE
="no type found"
20317 echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
20318 echo "${ECHO_T}$PY_UNICODE_TYPE" >&6
20321 # check for endianness
20322 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20323 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20324 if test "${ac_cv_c_bigendian+set}" = set; then
20325 echo $ECHO_N "(cached) $ECHO_C" >&6
20327 # See if sys/param.h defines the BYTE_ORDER macro.
20328 cat >conftest.
$ac_ext <<_ACEOF
20331 cat confdefs.h
>>conftest.
$ac_ext
20332 cat >>conftest.
$ac_ext <<_ACEOF
20333 /* end confdefs.h. */
20334 #include <sys/types.h>
20335 #include <sys/param.h>
20340 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20341 bogus endian macros
20348 rm -f conftest.
$ac_objext
20349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20350 (eval $ac_compile) 2>conftest.er1
20352 grep -v '^ *+' conftest.er1
>conftest.err
20354 cat conftest.err
>&5
20355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20356 (exit $ac_status); } &&
20357 { ac_try
='test -z "$ac_c_werror_flag"
20358 || test ! -s conftest.err'
20359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20360 (eval $ac_try) 2>&5
20362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20363 (exit $ac_status); }; } &&
20364 { ac_try
='test -s conftest.$ac_objext'
20365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20366 (eval $ac_try) 2>&5
20368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20369 (exit $ac_status); }; }; then
20370 # It does; now see whether it defined to BIG_ENDIAN or not.
20371 cat >conftest.
$ac_ext <<_ACEOF
20374 cat confdefs.h
>>conftest.
$ac_ext
20375 cat >>conftest.
$ac_ext <<_ACEOF
20376 /* end confdefs.h. */
20377 #include <sys/types.h>
20378 #include <sys/param.h>
20383 #if BYTE_ORDER != BIG_ENDIAN
20391 rm -f conftest.
$ac_objext
20392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20393 (eval $ac_compile) 2>conftest.er1
20395 grep -v '^ *+' conftest.er1
>conftest.err
20397 cat conftest.err
>&5
20398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20399 (exit $ac_status); } &&
20400 { ac_try
='test -z "$ac_c_werror_flag"
20401 || test ! -s conftest.err'
20402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20403 (eval $ac_try) 2>&5
20405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20406 (exit $ac_status); }; } &&
20407 { ac_try
='test -s conftest.$ac_objext'
20408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20409 (eval $ac_try) 2>&5
20411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20412 (exit $ac_status); }; }; then
20413 ac_cv_c_bigendian
=yes
20415 echo "$as_me: failed program was:" >&5
20416 sed 's/^/| /' conftest.
$ac_ext >&5
20418 ac_cv_c_bigendian
=no
20420 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20422 echo "$as_me: failed program was:" >&5
20423 sed 's/^/| /' conftest.
$ac_ext >&5
20425 # It does not; compile a test program.
20426 if test "$cross_compiling" = yes; then
20427 # try to guess the endianness by grepping values into an object file
20428 ac_cv_c_bigendian
=unknown
20429 cat >conftest.
$ac_ext <<_ACEOF
20432 cat confdefs.h
>>conftest.
$ac_ext
20433 cat >>conftest.
$ac_ext <<_ACEOF
20434 /* end confdefs.h. */
20435 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20436 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20437 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20438 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20439 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20440 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20444 _ascii (); _ebcdic ();
20449 rm -f conftest.
$ac_objext
20450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20451 (eval $ac_compile) 2>conftest.er1
20453 grep -v '^ *+' conftest.er1
>conftest.err
20455 cat conftest.err
>&5
20456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20457 (exit $ac_status); } &&
20458 { ac_try
='test -z "$ac_c_werror_flag"
20459 || test ! -s conftest.err'
20460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20461 (eval $ac_try) 2>&5
20463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20464 (exit $ac_status); }; } &&
20465 { ac_try
='test -s conftest.$ac_objext'
20466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20467 (eval $ac_try) 2>&5
20469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20470 (exit $ac_status); }; }; then
20471 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
20472 ac_cv_c_bigendian
=yes
20474 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
20475 if test "$ac_cv_c_bigendian" = unknown
; then
20476 ac_cv_c_bigendian
=no
20478 # finding both strings is unlikely to happen, but who knows?
20479 ac_cv_c_bigendian
=unknown
20483 echo "$as_me: failed program was:" >&5
20484 sed 's/^/| /' conftest.
$ac_ext >&5
20487 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20489 cat >conftest.
$ac_ext <<_ACEOF
20492 cat confdefs.h
>>conftest.
$ac_ext
20493 cat >>conftest.
$ac_ext <<_ACEOF
20494 /* end confdefs.h. */
20498 /* Are we little or big endian? From Harbison&Steele. */
20502 char c[sizeof (long)];
20505 exit (u.c[sizeof (long) - 1] == 1);
20508 rm -f conftest
$ac_exeext
20509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20510 (eval $ac_link) 2>&5
20512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20513 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20515 (eval $ac_try) 2>&5
20517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20518 (exit $ac_status); }; }; then
20519 ac_cv_c_bigendian
=no
20521 echo "$as_me: program exited with status $ac_status" >&5
20522 echo "$as_me: failed program was:" >&5
20523 sed 's/^/| /' conftest.
$ac_ext >&5
20525 ( exit $ac_status )
20526 ac_cv_c_bigendian
=yes
20528 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20531 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20533 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20534 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20535 case $ac_cv_c_bigendian in
20538 cat >>confdefs.h
<<\_ACEOF
20539 #define WORDS_BIGENDIAN 1
20545 { { echo "$as_me:$LINENO: error: unknown endianness
20546 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20547 echo "$as_me: error: unknown endianness
20548 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20549 { (exit 1); exit 1; }; } ;;
20555 # Check whether right shifting a negative integer extends the sign bit
20556 # or fills with zeros (like the Cray J90, according to Tim Peters).
20557 echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
20558 echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6
20559 if test "${ac_cv_rshift_extends_sign+set}" = set; then
20560 echo $ECHO_N "(cached) $ECHO_C" >&6
20563 if test "$cross_compiling" = yes; then
20564 ac_cv_rshift_extends_sign
=yes
20566 cat >conftest.
$ac_ext <<_ACEOF
20569 cat confdefs.h
>>conftest.
$ac_ext
20570 cat >>conftest.
$ac_ext <<_ACEOF
20571 /* end confdefs.h. */
20575 exit(((-1)>>3 == -1) ? 0 : 1);
20579 rm -f conftest
$ac_exeext
20580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20581 (eval $ac_link) 2>&5
20583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20584 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20586 (eval $ac_try) 2>&5
20588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20589 (exit $ac_status); }; }; then
20590 ac_cv_rshift_extends_sign
=yes
20592 echo "$as_me: program exited with status $ac_status" >&5
20593 echo "$as_me: failed program was:" >&5
20594 sed 's/^/| /' conftest.
$ac_ext >&5
20596 ( exit $ac_status )
20597 ac_cv_rshift_extends_sign
=no
20599 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20603 echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
20604 echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6
20605 if test "$ac_cv_rshift_extends_sign" = no
20608 cat >>confdefs.h
<<\_ACEOF
20609 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
20614 # check for getc_unlocked and related locking functions
20615 echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
20616 echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6
20617 if test "${ac_cv_have_getc_unlocked+set}" = set; then
20618 echo $ECHO_N "(cached) $ECHO_C" >&6
20621 cat >conftest.
$ac_ext <<_ACEOF
20624 cat confdefs.h
>>conftest.
$ac_ext
20625 cat >>conftest.
$ac_ext <<_ACEOF
20626 /* end confdefs.h. */
20632 FILE *f = fopen("/dev/null", "r");
20641 rm -f conftest.
$ac_objext conftest
$ac_exeext
20642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20643 (eval $ac_link) 2>conftest.er1
20645 grep -v '^ *+' conftest.er1
>conftest.err
20647 cat conftest.err
>&5
20648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20649 (exit $ac_status); } &&
20650 { ac_try
='test -z "$ac_c_werror_flag"
20651 || test ! -s conftest.err'
20652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20653 (eval $ac_try) 2>&5
20655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20656 (exit $ac_status); }; } &&
20657 { ac_try
='test -s conftest$ac_exeext'
20658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20659 (eval $ac_try) 2>&5
20661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20662 (exit $ac_status); }; }; then
20663 ac_cv_have_getc_unlocked
=yes
20665 echo "$as_me: failed program was:" >&5
20666 sed 's/^/| /' conftest.
$ac_ext >&5
20668 ac_cv_have_getc_unlocked
=no
20670 rm -f conftest.err conftest.
$ac_objext \
20671 conftest
$ac_exeext conftest.
$ac_ext
20674 echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
20675 echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6
20676 if test "$ac_cv_have_getc_unlocked" = yes
20679 cat >>confdefs.h
<<\_ACEOF
20680 #define HAVE_GETC_UNLOCKED 1
20685 # check where readline lives
20686 # save the value of LIBS so we don't actually link Python with readline
20687 LIBS_no_readline
=$LIBS
20689 echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
20690 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
20691 if test "${ac_cv_lib_readline_readline+set}" = set; then
20692 echo $ECHO_N "(cached) $ECHO_C" >&6
20694 ac_check_lib_save_LIBS
=$LIBS
20695 LIBS
="-lreadline $LIBS"
20696 cat >conftest.
$ac_ext <<_ACEOF
20699 cat confdefs.h
>>conftest.
$ac_ext
20700 cat >>conftest.
$ac_ext <<_ACEOF
20701 /* end confdefs.h. */
20703 /* Override any gcc2 internal prototype to avoid an error. */
20707 /* We use char because int might match the return type of a gcc2
20708 builtin and then its argument prototype would still apply. */
20718 rm -f conftest.
$ac_objext conftest
$ac_exeext
20719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20720 (eval $ac_link) 2>conftest.er1
20722 grep -v '^ *+' conftest.er1
>conftest.err
20724 cat conftest.err
>&5
20725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20726 (exit $ac_status); } &&
20727 { ac_try
='test -z "$ac_c_werror_flag"
20728 || test ! -s conftest.err'
20729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20730 (eval $ac_try) 2>&5
20732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20733 (exit $ac_status); }; } &&
20734 { ac_try
='test -s conftest$ac_exeext'
20735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20736 (eval $ac_try) 2>&5
20738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20739 (exit $ac_status); }; }; then
20740 ac_cv_lib_readline_readline
=yes
20742 echo "$as_me: failed program was:" >&5
20743 sed 's/^/| /' conftest.
$ac_ext >&5
20745 ac_cv_lib_readline_readline
=no
20747 rm -f conftest.err conftest.
$ac_objext \
20748 conftest
$ac_exeext conftest.
$ac_ext
20749 LIBS
=$ac_check_lib_save_LIBS
20751 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
20752 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
20753 if test $ac_cv_lib_readline_readline = yes; then
20754 cat >>confdefs.h
<<_ACEOF
20755 #define HAVE_LIBREADLINE 1
20758 LIBS
="-lreadline $LIBS"
20762 if test "$ac_cv_have_readline_readline" = no
20765 echo "$as_me:$LINENO: checking for readline in -ltermcap" >&5
20766 echo $ECHO_N "checking for readline in -ltermcap... $ECHO_C" >&6
20767 if test "${ac_cv_lib_termcap_readline+set}" = set; then
20768 echo $ECHO_N "(cached) $ECHO_C" >&6
20770 ac_check_lib_save_LIBS
=$LIBS
20771 LIBS
="-ltermcap $LIBS"
20772 cat >conftest.
$ac_ext <<_ACEOF
20775 cat confdefs.h
>>conftest.
$ac_ext
20776 cat >>conftest.
$ac_ext <<_ACEOF
20777 /* end confdefs.h. */
20779 /* Override any gcc2 internal prototype to avoid an error. */
20783 /* We use char because int might match the return type of a gcc2
20784 builtin and then its argument prototype would still apply. */
20794 rm -f conftest.
$ac_objext conftest
$ac_exeext
20795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20796 (eval $ac_link) 2>conftest.er1
20798 grep -v '^ *+' conftest.er1
>conftest.err
20800 cat conftest.err
>&5
20801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20802 (exit $ac_status); } &&
20803 { ac_try
='test -z "$ac_c_werror_flag"
20804 || test ! -s conftest.err'
20805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20806 (eval $ac_try) 2>&5
20808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20809 (exit $ac_status); }; } &&
20810 { ac_try
='test -s conftest$ac_exeext'
20811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20812 (eval $ac_try) 2>&5
20814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20815 (exit $ac_status); }; }; then
20816 ac_cv_lib_termcap_readline
=yes
20818 echo "$as_me: failed program was:" >&5
20819 sed 's/^/| /' conftest.
$ac_ext >&5
20821 ac_cv_lib_termcap_readline
=no
20823 rm -f conftest.err conftest.
$ac_objext \
20824 conftest
$ac_exeext conftest.
$ac_ext
20825 LIBS
=$ac_check_lib_save_LIBS
20827 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_readline" >&5
20828 echo "${ECHO_T}$ac_cv_lib_termcap_readline" >&6
20829 if test $ac_cv_lib_termcap_readline = yes; then
20830 cat >>confdefs.h
<<_ACEOF
20831 #define HAVE_LIBTERMCAP 1
20834 LIBS
="-ltermcap $LIBS"
20840 # check for readline 2.1
20841 echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
20842 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6
20843 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
20844 echo $ECHO_N "(cached) $ECHO_C" >&6
20846 ac_check_lib_save_LIBS
=$LIBS
20847 LIBS
="-lreadline $LIBS"
20848 cat >conftest.
$ac_ext <<_ACEOF
20851 cat confdefs.h
>>conftest.
$ac_ext
20852 cat >>conftest.
$ac_ext <<_ACEOF
20853 /* end confdefs.h. */
20855 /* Override any gcc2 internal prototype to avoid an error. */
20859 /* We use char because int might match the return type of a gcc2
20860 builtin and then its argument prototype would still apply. */
20861 char rl_callback_handler_install ();
20865 rl_callback_handler_install ();
20870 rm -f conftest.
$ac_objext conftest
$ac_exeext
20871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20872 (eval $ac_link) 2>conftest.er1
20874 grep -v '^ *+' conftest.er1
>conftest.err
20876 cat conftest.err
>&5
20877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20878 (exit $ac_status); } &&
20879 { ac_try
='test -z "$ac_c_werror_flag"
20880 || test ! -s conftest.err'
20881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20882 (eval $ac_try) 2>&5
20884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20885 (exit $ac_status); }; } &&
20886 { ac_try
='test -s conftest$ac_exeext'
20887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20888 (eval $ac_try) 2>&5
20890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20891 (exit $ac_status); }; }; then
20892 ac_cv_lib_readline_rl_callback_handler_install
=yes
20894 echo "$as_me: failed program was:" >&5
20895 sed 's/^/| /' conftest.
$ac_ext >&5
20897 ac_cv_lib_readline_rl_callback_handler_install
=no
20899 rm -f conftest.err conftest.
$ac_objext \
20900 conftest
$ac_exeext conftest.
$ac_ext
20901 LIBS
=$ac_check_lib_save_LIBS
20903 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
20904 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6
20905 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
20907 cat >>confdefs.h
<<\_ACEOF
20908 #define HAVE_RL_CALLBACK 1
20914 # check for readline 2.2
20915 cat >conftest.
$ac_ext <<_ACEOF
20918 cat confdefs.h
>>conftest.
$ac_ext
20919 cat >>conftest.
$ac_ext <<_ACEOF
20920 /* end confdefs.h. */
20921 #include <readline/readline.h>
20923 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20924 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20926 grep -v '^ *+' conftest.er1
>conftest.err
20928 cat conftest.err
>&5
20929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20930 (exit $ac_status); } >/dev
/null
; then
20931 if test -s conftest.err
; then
20932 ac_cpp_err
=$ac_c_preproc_warn_flag
20933 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20940 if test -z "$ac_cpp_err"; then
20943 echo "$as_me: failed program was:" >&5
20944 sed 's/^/| /' conftest.
$ac_ext >&5
20948 rm -f conftest.err conftest.
$ac_ext
20949 if test $have_readline = yes
20951 cat >conftest.
$ac_ext <<_ACEOF
20954 cat confdefs.h
>>conftest.
$ac_ext
20955 cat >>conftest.
$ac_ext <<_ACEOF
20956 /* end confdefs.h. */
20957 #include <readline/readline.h>
20960 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20961 $EGREP "extern int rl_completion_append_character;" >/dev
/null
2>&1; then
20963 cat >>confdefs.h
<<\_ACEOF
20964 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
20972 # check for readline 4.0
20973 echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
20974 echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6
20975 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
20976 echo $ECHO_N "(cached) $ECHO_C" >&6
20978 ac_check_lib_save_LIBS
=$LIBS
20979 LIBS
="-lreadline $LIBS"
20980 cat >conftest.
$ac_ext <<_ACEOF
20983 cat confdefs.h
>>conftest.
$ac_ext
20984 cat >>conftest.
$ac_ext <<_ACEOF
20985 /* end confdefs.h. */
20987 /* Override any gcc2 internal prototype to avoid an error. */
20991 /* We use char because int might match the return type of a gcc2
20992 builtin and then its argument prototype would still apply. */
20993 char rl_pre_input_hook ();
20997 rl_pre_input_hook ();
21002 rm -f conftest.
$ac_objext conftest
$ac_exeext
21003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21004 (eval $ac_link) 2>conftest.er1
21006 grep -v '^ *+' conftest.er1
>conftest.err
21008 cat conftest.err
>&5
21009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21010 (exit $ac_status); } &&
21011 { ac_try
='test -z "$ac_c_werror_flag"
21012 || test ! -s conftest.err'
21013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21014 (eval $ac_try) 2>&5
21016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21017 (exit $ac_status); }; } &&
21018 { ac_try
='test -s conftest$ac_exeext'
21019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21020 (eval $ac_try) 2>&5
21022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21023 (exit $ac_status); }; }; then
21024 ac_cv_lib_readline_rl_pre_input_hook
=yes
21026 echo "$as_me: failed program was:" >&5
21027 sed 's/^/| /' conftest.
$ac_ext >&5
21029 ac_cv_lib_readline_rl_pre_input_hook
=no
21031 rm -f conftest.err conftest.
$ac_objext \
21032 conftest
$ac_exeext conftest.
$ac_ext
21033 LIBS
=$ac_check_lib_save_LIBS
21035 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
21036 echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6
21037 if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
21039 cat >>confdefs.h
<<\_ACEOF
21040 #define HAVE_RL_PRE_INPUT_HOOK 1
21046 # check for readline 4.2
21047 echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
21048 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6
21049 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
21050 echo $ECHO_N "(cached) $ECHO_C" >&6
21052 ac_check_lib_save_LIBS
=$LIBS
21053 LIBS
="-lreadline $LIBS"
21054 cat >conftest.
$ac_ext <<_ACEOF
21057 cat confdefs.h
>>conftest.
$ac_ext
21058 cat >>conftest.
$ac_ext <<_ACEOF
21059 /* end confdefs.h. */
21061 /* Override any gcc2 internal prototype to avoid an error. */
21065 /* We use char because int might match the return type of a gcc2
21066 builtin and then its argument prototype would still apply. */
21067 char rl_completion_matches ();
21071 rl_completion_matches ();
21076 rm -f conftest.
$ac_objext conftest
$ac_exeext
21077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21078 (eval $ac_link) 2>conftest.er1
21080 grep -v '^ *+' conftest.er1
>conftest.err
21082 cat conftest.err
>&5
21083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21084 (exit $ac_status); } &&
21085 { ac_try
='test -z "$ac_c_werror_flag"
21086 || test ! -s conftest.err'
21087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21088 (eval $ac_try) 2>&5
21090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21091 (exit $ac_status); }; } &&
21092 { ac_try
='test -s conftest$ac_exeext'
21093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21094 (eval $ac_try) 2>&5
21096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21097 (exit $ac_status); }; }; then
21098 ac_cv_lib_readline_rl_completion_matches
=yes
21100 echo "$as_me: failed program was:" >&5
21101 sed 's/^/| /' conftest.
$ac_ext >&5
21103 ac_cv_lib_readline_rl_completion_matches
=no
21105 rm -f conftest.err conftest.
$ac_objext \
21106 conftest
$ac_exeext conftest.
$ac_ext
21107 LIBS
=$ac_check_lib_save_LIBS
21109 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
21110 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6
21111 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
21113 cat >>confdefs.h
<<\_ACEOF
21114 #define HAVE_RL_COMPLETION_MATCHES 1
21120 # also in readline 4.2
21121 cat >conftest.
$ac_ext <<_ACEOF
21124 cat confdefs.h
>>conftest.
$ac_ext
21125 cat >>conftest.
$ac_ext <<_ACEOF
21126 /* end confdefs.h. */
21127 #include <readline/readline.h>
21129 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21130 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
21132 grep -v '^ *+' conftest.er1
>conftest.err
21134 cat conftest.err
>&5
21135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21136 (exit $ac_status); } >/dev
/null
; then
21137 if test -s conftest.err
; then
21138 ac_cpp_err
=$ac_c_preproc_warn_flag
21139 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
21146 if test -z "$ac_cpp_err"; then
21149 echo "$as_me: failed program was:" >&5
21150 sed 's/^/| /' conftest.
$ac_ext >&5
21154 rm -f conftest.err conftest.
$ac_ext
21155 if test $have_readline = yes
21157 cat >conftest.
$ac_ext <<_ACEOF
21160 cat confdefs.h
>>conftest.
$ac_ext
21161 cat >>conftest.
$ac_ext <<_ACEOF
21162 /* end confdefs.h. */
21163 #include <readline/readline.h>
21166 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21167 $EGREP "extern int rl_catch_signals;" >/dev
/null
2>&1; then
21169 cat >>confdefs.h
<<\_ACEOF
21170 #define HAVE_RL_CATCH_SIGNAL 1
21178 # End of readline checks: restore LIBS
21179 LIBS
=$LIBS_no_readline
21181 echo "$as_me:$LINENO: checking for broken nice()" >&5
21182 echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6
21183 if test "${ac_cv_broken_nice+set}" = set; then
21184 echo $ECHO_N "(cached) $ECHO_C" >&6
21187 if test "$cross_compiling" = yes; then
21188 ac_cv_broken_nice
=no
21190 cat >conftest.
$ac_ext <<_ACEOF
21193 cat confdefs.h
>>conftest.
$ac_ext
21194 cat >>conftest.
$ac_ext <<_ACEOF
21195 /* end confdefs.h. */
21199 int val1 = nice(1);
21200 if (val1 != -1 && val1 == nice(2))
21206 rm -f conftest
$ac_exeext
21207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21208 (eval $ac_link) 2>&5
21210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21211 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21213 (eval $ac_try) 2>&5
21215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21216 (exit $ac_status); }; }; then
21217 ac_cv_broken_nice
=yes
21219 echo "$as_me: program exited with status $ac_status" >&5
21220 echo "$as_me: failed program was:" >&5
21221 sed 's/^/| /' conftest.
$ac_ext >&5
21223 ( exit $ac_status )
21224 ac_cv_broken_nice
=no
21226 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21230 echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
21231 echo "${ECHO_T}$ac_cv_broken_nice" >&6
21232 if test "$ac_cv_broken_nice" = yes
21235 cat >>confdefs.h
<<\_ACEOF
21236 #define HAVE_BROKEN_NICE 1
21241 echo "$as_me:$LINENO: checking for broken poll()" >&5
21242 echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6
21243 if test "$cross_compiling" = yes; then
21244 ac_cv_broken_poll
=no
21246 cat >conftest.
$ac_ext <<_ACEOF
21249 cat confdefs.h
>>conftest.
$ac_ext
21250 cat >>conftest.
$ac_ext <<_ACEOF
21251 /* end confdefs.h. */
21257 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
21261 int poll_test = poll (&poll_struct, 1, 0);
21267 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
21278 rm -f conftest
$ac_exeext
21279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21280 (eval $ac_link) 2>&5
21282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21283 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21285 (eval $ac_try) 2>&5
21287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21288 (exit $ac_status); }; }; then
21289 ac_cv_broken_poll
=yes
21291 echo "$as_me: program exited with status $ac_status" >&5
21292 echo "$as_me: failed program was:" >&5
21293 sed 's/^/| /' conftest.
$ac_ext >&5
21295 ( exit $ac_status )
21296 ac_cv_broken_poll
=no
21298 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21300 echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5
21301 echo "${ECHO_T}$ac_cv_broken_poll" >&6
21302 if test "$ac_cv_broken_poll" = yes
21305 cat >>confdefs.h
<<\_ACEOF
21306 #define HAVE_BROKEN_POLL 1
21311 # Before we can test tzset, we need to check if struct tm has a tm_zone
21312 # (which is not required by ISO C or UNIX spec) and/or if we support
21314 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
21315 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
21316 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
21317 echo $ECHO_N "(cached) $ECHO_C" >&6
21319 cat >conftest.
$ac_ext <<_ACEOF
21322 cat confdefs.h
>>conftest.
$ac_ext
21323 cat >>conftest.
$ac_ext <<_ACEOF
21324 /* end confdefs.h. */
21325 #include <sys/types.h>
21326 #include <$ac_cv_struct_tm>
21332 static struct tm ac_aggr;
21333 if (ac_aggr.tm_zone)
21339 rm -f conftest.
$ac_objext
21340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21341 (eval $ac_compile) 2>conftest.er1
21343 grep -v '^ *+' conftest.er1
>conftest.err
21345 cat conftest.err
>&5
21346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21347 (exit $ac_status); } &&
21348 { ac_try
='test -z "$ac_c_werror_flag"
21349 || test ! -s conftest.err'
21350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21351 (eval $ac_try) 2>&5
21353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21354 (exit $ac_status); }; } &&
21355 { ac_try
='test -s conftest.$ac_objext'
21356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21357 (eval $ac_try) 2>&5
21359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21360 (exit $ac_status); }; }; then
21361 ac_cv_member_struct_tm_tm_zone
=yes
21363 echo "$as_me: failed program was:" >&5
21364 sed 's/^/| /' conftest.
$ac_ext >&5
21366 cat >conftest.
$ac_ext <<_ACEOF
21369 cat confdefs.h
>>conftest.
$ac_ext
21370 cat >>conftest.
$ac_ext <<_ACEOF
21371 /* end confdefs.h. */
21372 #include <sys/types.h>
21373 #include <$ac_cv_struct_tm>
21379 static struct tm ac_aggr;
21380 if (sizeof ac_aggr.tm_zone)
21386 rm -f conftest.
$ac_objext
21387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21388 (eval $ac_compile) 2>conftest.er1
21390 grep -v '^ *+' conftest.er1
>conftest.err
21392 cat conftest.err
>&5
21393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21394 (exit $ac_status); } &&
21395 { ac_try
='test -z "$ac_c_werror_flag"
21396 || test ! -s conftest.err'
21397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21398 (eval $ac_try) 2>&5
21400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21401 (exit $ac_status); }; } &&
21402 { ac_try
='test -s conftest.$ac_objext'
21403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21404 (eval $ac_try) 2>&5
21406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21407 (exit $ac_status); }; }; then
21408 ac_cv_member_struct_tm_tm_zone
=yes
21410 echo "$as_me: failed program was:" >&5
21411 sed 's/^/| /' conftest.
$ac_ext >&5
21413 ac_cv_member_struct_tm_tm_zone
=no
21415 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21417 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21419 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
21420 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
21421 if test $ac_cv_member_struct_tm_tm_zone = yes; then
21423 cat >>confdefs.h
<<_ACEOF
21424 #define HAVE_STRUCT_TM_TM_ZONE 1
21430 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21432 cat >>confdefs.h
<<\_ACEOF
21433 #define HAVE_TM_ZONE 1
21437 echo "$as_me:$LINENO: checking for tzname" >&5
21438 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
21439 if test "${ac_cv_var_tzname+set}" = set; then
21440 echo $ECHO_N "(cached) $ECHO_C" >&6
21442 cat >conftest.
$ac_ext <<_ACEOF
21445 cat confdefs.h
>>conftest.
$ac_ext
21446 cat >>conftest.
$ac_ext <<_ACEOF
21447 /* end confdefs.h. */
21449 #ifndef tzname /* For SGI. */
21450 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
21461 rm -f conftest.
$ac_objext conftest
$ac_exeext
21462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21463 (eval $ac_link) 2>conftest.er1
21465 grep -v '^ *+' conftest.er1
>conftest.err
21467 cat conftest.err
>&5
21468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21469 (exit $ac_status); } &&
21470 { ac_try
='test -z "$ac_c_werror_flag"
21471 || test ! -s conftest.err'
21472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21473 (eval $ac_try) 2>&5
21475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21476 (exit $ac_status); }; } &&
21477 { ac_try
='test -s conftest$ac_exeext'
21478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21479 (eval $ac_try) 2>&5
21481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21482 (exit $ac_status); }; }; then
21483 ac_cv_var_tzname
=yes
21485 echo "$as_me: failed program was:" >&5
21486 sed 's/^/| /' conftest.
$ac_ext >&5
21488 ac_cv_var_tzname
=no
21490 rm -f conftest.err conftest.
$ac_objext \
21491 conftest
$ac_exeext conftest.
$ac_ext
21493 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21494 echo "${ECHO_T}$ac_cv_var_tzname" >&6
21495 if test $ac_cv_var_tzname = yes; then
21497 cat >>confdefs.h
<<\_ACEOF
21498 #define HAVE_TZNAME 1
21505 # check tzset(3) exists and works like we expect it to
21506 echo "$as_me:$LINENO: checking for working tzset()" >&5
21507 echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6
21508 if test "${ac_cv_working_tzset+set}" = set; then
21509 echo $ECHO_N "(cached) $ECHO_C" >&6
21512 if test "$cross_compiling" = yes; then
21513 ac_cv_working_tzset
=no
21515 cat >conftest.
$ac_ext <<_ACEOF
21518 cat confdefs.h
>>conftest.
$ac_ext
21519 cat >>conftest.
$ac_ext <<_ACEOF
21520 /* end confdefs.h. */
21522 #include <stdlib.h>
21524 #include <string.h>
21527 extern char *tzname[];
21532 /* Note that we need to ensure that not only does tzset(3)
21533 do 'something' with localtime, but it works as documented
21534 in the library reference and as expected by the test suite.
21535 This includes making sure that tzname is set properly if
21536 tm->tm_zone does not exist since it is the alternative way
21537 of getting timezone info.
21539 Red Hat 6.2 doesn't understand the southern hemisphere
21540 after New Year's Day.
21543 time_t groundhogday = 1044144000; /* GMT-based */
21544 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
21546 putenv("TZ=UTC+0");
21548 if (localtime(&groundhogday)->tm_hour != 0)
21551 /* For UTC, tzname[1] is sometimes "", sometimes " " */
21552 if (strcmp(tzname[0], "UTC") ||
21553 (tzname[1][0] != 0 && tzname[1][0] != ' '))
21557 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
21559 if (localtime(&groundhogday)->tm_hour != 19)
21562 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
21566 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
21568 if (localtime(&groundhogday)->tm_hour != 11)
21571 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
21575 #if HAVE_STRUCT_TM_TM_ZONE
21576 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
21578 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
21586 rm -f conftest
$ac_exeext
21587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21588 (eval $ac_link) 2>&5
21590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21591 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21593 (eval $ac_try) 2>&5
21595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21596 (exit $ac_status); }; }; then
21597 ac_cv_working_tzset
=yes
21599 echo "$as_me: program exited with status $ac_status" >&5
21600 echo "$as_me: failed program was:" >&5
21601 sed 's/^/| /' conftest.
$ac_ext >&5
21603 ( exit $ac_status )
21604 ac_cv_working_tzset
=no
21606 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21610 echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5
21611 echo "${ECHO_T}$ac_cv_working_tzset" >&6
21612 if test "$ac_cv_working_tzset" = yes
21615 cat >>confdefs.h
<<\_ACEOF
21616 #define HAVE_WORKING_TZSET 1
21621 # Look for subsecond timestamps in struct stat
21622 echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
21623 echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6
21624 if test "${ac_cv_stat_tv_nsec+set}" = set; then
21625 echo $ECHO_N "(cached) $ECHO_C" >&6
21627 cat >conftest.
$ac_ext <<_ACEOF
21630 cat confdefs.h
>>conftest.
$ac_ext
21631 cat >>conftest.
$ac_ext <<_ACEOF
21632 /* end confdefs.h. */
21633 #include <sys/stat.h>
21639 st.st_mtim.tv_nsec = 1;
21645 rm -f conftest.
$ac_objext
21646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21647 (eval $ac_compile) 2>conftest.er1
21649 grep -v '^ *+' conftest.er1
>conftest.err
21651 cat conftest.err
>&5
21652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21653 (exit $ac_status); } &&
21654 { ac_try
='test -z "$ac_c_werror_flag"
21655 || test ! -s conftest.err'
21656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21657 (eval $ac_try) 2>&5
21659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21660 (exit $ac_status); }; } &&
21661 { ac_try
='test -s conftest.$ac_objext'
21662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21663 (eval $ac_try) 2>&5
21665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21666 (exit $ac_status); }; }; then
21667 ac_cv_stat_tv_nsec
=yes
21669 echo "$as_me: failed program was:" >&5
21670 sed 's/^/| /' conftest.
$ac_ext >&5
21672 ac_cv_stat_tv_nsec
=no
21674 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21677 echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
21678 echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6
21679 if test "$ac_cv_stat_tv_nsec" = yes
21682 cat >>confdefs.h
<<\_ACEOF
21683 #define HAVE_STAT_TV_NSEC 1
21688 # Look for BSD style subsecond timestamps in struct stat
21689 echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5
21690 echo $ECHO_N "checking for tv_nsec2 in struct stat... $ECHO_C" >&6
21691 if test "${ac_cv_stat_tv_nsec2+set}" = set; then
21692 echo $ECHO_N "(cached) $ECHO_C" >&6
21694 cat >conftest.
$ac_ext <<_ACEOF
21697 cat confdefs.h
>>conftest.
$ac_ext
21698 cat >>conftest.
$ac_ext <<_ACEOF
21699 /* end confdefs.h. */
21700 #include <sys/stat.h>
21706 st.st_mtimespec.tv_nsec = 1;
21712 rm -f conftest.
$ac_objext
21713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21714 (eval $ac_compile) 2>conftest.er1
21716 grep -v '^ *+' conftest.er1
>conftest.err
21718 cat conftest.err
>&5
21719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21720 (exit $ac_status); } &&
21721 { ac_try
='test -z "$ac_c_werror_flag"
21722 || test ! -s conftest.err'
21723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21724 (eval $ac_try) 2>&5
21726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21727 (exit $ac_status); }; } &&
21728 { ac_try
='test -s conftest.$ac_objext'
21729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21730 (eval $ac_try) 2>&5
21732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21733 (exit $ac_status); }; }; then
21734 ac_cv_stat_tv_nsec2
=yes
21736 echo "$as_me: failed program was:" >&5
21737 sed 's/^/| /' conftest.
$ac_ext >&5
21739 ac_cv_stat_tv_nsec2
=no
21741 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21744 echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5
21745 echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6
21746 if test "$ac_cv_stat_tv_nsec2" = yes
21749 cat >>confdefs.h
<<\_ACEOF
21750 #define HAVE_STAT_TV_NSEC2 1
21755 # On HP/UX 11.0, mvwdelch is a block with a return statement
21756 echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
21757 echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6
21758 if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
21759 echo $ECHO_N "(cached) $ECHO_C" >&6
21761 cat >conftest.
$ac_ext <<_ACEOF
21764 cat confdefs.h
>>conftest.
$ac_ext
21765 cat >>conftest.
$ac_ext <<_ACEOF
21766 /* end confdefs.h. */
21767 #include <curses.h>
21773 rtn = mvwdelch(0,0,0);
21779 rm -f conftest.
$ac_objext
21780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21781 (eval $ac_compile) 2>conftest.er1
21783 grep -v '^ *+' conftest.er1
>conftest.err
21785 cat conftest.err
>&5
21786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21787 (exit $ac_status); } &&
21788 { ac_try
='test -z "$ac_c_werror_flag"
21789 || test ! -s conftest.err'
21790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21791 (eval $ac_try) 2>&5
21793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21794 (exit $ac_status); }; } &&
21795 { ac_try
='test -s conftest.$ac_objext'
21796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21797 (eval $ac_try) 2>&5
21799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21800 (exit $ac_status); }; }; then
21801 ac_cv_mvwdelch_is_expression
=yes
21803 echo "$as_me: failed program was:" >&5
21804 sed 's/^/| /' conftest.
$ac_ext >&5
21806 ac_cv_mvwdelch_is_expression
=no
21808 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21811 echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
21812 echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6
21814 if test "$ac_cv_mvwdelch_is_expression" = yes
21817 cat >>confdefs.h
<<\_ACEOF
21818 #define MVWDELCH_IS_EXPRESSION 1
21823 echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
21824 echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6
21825 if test "${ac_cv_window_has_flags+set}" = set; then
21826 echo $ECHO_N "(cached) $ECHO_C" >&6
21828 cat >conftest.
$ac_ext <<_ACEOF
21831 cat confdefs.h
>>conftest.
$ac_ext
21832 cat >>conftest.
$ac_ext <<_ACEOF
21833 /* end confdefs.h. */
21834 #include <curses.h>
21846 rm -f conftest.
$ac_objext
21847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21848 (eval $ac_compile) 2>conftest.er1
21850 grep -v '^ *+' conftest.er1
>conftest.err
21852 cat conftest.err
>&5
21853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21854 (exit $ac_status); } &&
21855 { ac_try
='test -z "$ac_c_werror_flag"
21856 || test ! -s conftest.err'
21857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21858 (eval $ac_try) 2>&5
21860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21861 (exit $ac_status); }; } &&
21862 { ac_try
='test -s conftest.$ac_objext'
21863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21864 (eval $ac_try) 2>&5
21866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21867 (exit $ac_status); }; }; then
21868 ac_cv_window_has_flags
=yes
21870 echo "$as_me: failed program was:" >&5
21871 sed 's/^/| /' conftest.
$ac_ext >&5
21873 ac_cv_window_has_flags
=no
21875 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21878 echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
21879 echo "${ECHO_T}$ac_cv_window_has_flags" >&6
21882 if test "$ac_cv_window_has_flags" = yes
21885 cat >>confdefs.h
<<\_ACEOF
21886 #define WINDOW_HAS_FLAGS 1
21891 echo "$as_me:$LINENO: checking for is_term_resized" >&5
21892 echo $ECHO_N "checking for is_term_resized... $ECHO_C" >&6
21893 cat >conftest.
$ac_ext <<_ACEOF
21896 cat confdefs.h
>>conftest.
$ac_ext
21897 cat >>conftest.
$ac_ext <<_ACEOF
21898 /* end confdefs.h. */
21899 #include <curses.h>
21903 void *x=is_term_resized
21908 rm -f conftest.
$ac_objext
21909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21910 (eval $ac_compile) 2>conftest.er1
21912 grep -v '^ *+' conftest.er1
>conftest.err
21914 cat conftest.err
>&5
21915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21916 (exit $ac_status); } &&
21917 { ac_try
='test -z "$ac_c_werror_flag"
21918 || test ! -s conftest.err'
21919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21920 (eval $ac_try) 2>&5
21922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21923 (exit $ac_status); }; } &&
21924 { ac_try
='test -s conftest.$ac_objext'
21925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21926 (eval $ac_try) 2>&5
21928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21929 (exit $ac_status); }; }; then
21931 cat >>confdefs.h
<<\_ACEOF
21932 #define HAVE_CURSES_IS_TERM_RESIZED 1
21935 echo "$as_me:$LINENO: result: yes" >&5
21936 echo "${ECHO_T}yes" >&6
21938 echo "$as_me: failed program was:" >&5
21939 sed 's/^/| /' conftest.
$ac_ext >&5
21941 echo "$as_me:$LINENO: result: no" >&5
21942 echo "${ECHO_T}no" >&6
21945 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21947 echo "$as_me:$LINENO: checking for resize_term" >&5
21948 echo $ECHO_N "checking for resize_term... $ECHO_C" >&6
21949 cat >conftest.
$ac_ext <<_ACEOF
21952 cat confdefs.h
>>conftest.
$ac_ext
21953 cat >>conftest.
$ac_ext <<_ACEOF
21954 /* end confdefs.h. */
21955 #include <curses.h>
21959 void *x=resize_term
21964 rm -f conftest.
$ac_objext
21965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21966 (eval $ac_compile) 2>conftest.er1
21968 grep -v '^ *+' conftest.er1
>conftest.err
21970 cat conftest.err
>&5
21971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21972 (exit $ac_status); } &&
21973 { ac_try
='test -z "$ac_c_werror_flag"
21974 || test ! -s conftest.err'
21975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21976 (eval $ac_try) 2>&5
21978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21979 (exit $ac_status); }; } &&
21980 { ac_try
='test -s conftest.$ac_objext'
21981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21982 (eval $ac_try) 2>&5
21984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21985 (exit $ac_status); }; }; then
21987 cat >>confdefs.h
<<\_ACEOF
21988 #define HAVE_CURSES_RESIZE_TERM 1
21991 echo "$as_me:$LINENO: result: yes" >&5
21992 echo "${ECHO_T}yes" >&6
21994 echo "$as_me: failed program was:" >&5
21995 sed 's/^/| /' conftest.
$ac_ext >&5
21997 echo "$as_me:$LINENO: result: no" >&5
21998 echo "${ECHO_T}no" >&6
22001 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22003 echo "$as_me:$LINENO: checking for resizeterm" >&5
22004 echo $ECHO_N "checking for resizeterm... $ECHO_C" >&6
22005 cat >conftest.
$ac_ext <<_ACEOF
22008 cat confdefs.h
>>conftest.
$ac_ext
22009 cat >>conftest.
$ac_ext <<_ACEOF
22010 /* end confdefs.h. */
22011 #include <curses.h>
22020 rm -f conftest.
$ac_objext
22021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22022 (eval $ac_compile) 2>conftest.er1
22024 grep -v '^ *+' conftest.er1
>conftest.err
22026 cat conftest.err
>&5
22027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22028 (exit $ac_status); } &&
22029 { ac_try
='test -z "$ac_c_werror_flag"
22030 || test ! -s conftest.err'
22031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22032 (eval $ac_try) 2>&5
22034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22035 (exit $ac_status); }; } &&
22036 { ac_try
='test -s conftest.$ac_objext'
22037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22038 (eval $ac_try) 2>&5
22040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22041 (exit $ac_status); }; }; then
22043 cat >>confdefs.h
<<\_ACEOF
22044 #define HAVE_CURSES_RESIZETERM 1
22047 echo "$as_me:$LINENO: result: yes" >&5
22048 echo "${ECHO_T}yes" >&6
22050 echo "$as_me: failed program was:" >&5
22051 sed 's/^/| /' conftest.
$ac_ext >&5
22053 echo "$as_me:$LINENO: result: no" >&5
22054 echo "${ECHO_T}no" >&6
22057 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22059 echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
22060 echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6
22062 if test -r /dev
/ptmx
22064 echo "$as_me:$LINENO: result: yes" >&5
22065 echo "${ECHO_T}yes" >&6
22067 cat >>confdefs.h
<<\_ACEOF
22068 #define HAVE_DEV_PTMX 1
22072 echo "$as_me:$LINENO: result: no" >&5
22073 echo "${ECHO_T}no" >&6
22076 echo "$as_me:$LINENO: checking for /dev/ptc" >&5
22077 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6
22079 if test -r /dev
/ptc
22081 echo "$as_me:$LINENO: result: yes" >&5
22082 echo "${ECHO_T}yes" >&6
22084 cat >>confdefs.h
<<\_ACEOF
22085 #define HAVE_DEV_PTC 1
22089 echo "$as_me:$LINENO: result: no" >&5
22090 echo "${ECHO_T}no" >&6
22093 echo "$as_me:$LINENO: checking for %zd printf() format support" >&5
22094 echo $ECHO_N "checking for %zd printf() format support... $ECHO_C" >&6
22095 if test "$cross_compiling" = yes; then
22096 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22097 See \`config.log' for more details." >&5
22098 echo "$as_me: error: cannot run test program while cross compiling
22099 See \`config.log' for more details." >&2;}
22100 { (exit 1); exit 1; }; }
22102 cat >conftest.
$ac_ext <<_ACEOF
22105 cat confdefs.h
>>conftest.
$ac_ext
22106 cat >>conftest.
$ac_ext <<_ACEOF
22107 /* end confdefs.h. */
22109 #include <stddef.h>
22110 #include <string.h>
22116 #ifdef HAVE_SSIZE_T
22117 typedef ssize_t Py_ssize_t;
22118 #elif SIZEOF_VOID_P == SIZEOF_LONG
22119 typedef long Py_ssize_t;
22121 typedef int Py_ssize_t;
22124 if(sprintf(buffer, "%zd", (size_t)123) < 0)
22127 if (strcmp(buffer, "123"))
22130 if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0)
22133 if (strcmp(buffer, "-123"))
22139 rm -f conftest
$ac_exeext
22140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22141 (eval $ac_link) 2>&5
22143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22144 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
22145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22146 (eval $ac_try) 2>&5
22148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22149 (exit $ac_status); }; }; then
22150 echo "$as_me:$LINENO: result: yes" >&5
22151 echo "${ECHO_T}yes" >&6
22153 cat >>confdefs.h
<<\_ACEOF
22154 #define PY_FORMAT_SIZE_T "z"
22158 echo "$as_me: program exited with status $ac_status" >&5
22159 echo "$as_me: failed program was:" >&5
22160 sed 's/^/| /' conftest.
$ac_ext >&5
22162 ( exit $ac_status )
22163 echo "$as_me:$LINENO: result: no" >&5
22164 echo "${ECHO_T}no" >&6
22166 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
22169 echo "$as_me:$LINENO: checking for socklen_t" >&5
22170 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
22171 if test "${ac_cv_type_socklen_t+set}" = set; then
22172 echo $ECHO_N "(cached) $ECHO_C" >&6
22174 cat >conftest.
$ac_ext <<_ACEOF
22177 cat confdefs.h
>>conftest.
$ac_ext
22178 cat >>conftest.
$ac_ext <<_ACEOF
22179 /* end confdefs.h. */
22181 #ifdef HAVE_SYS_TYPES_H
22182 #include <sys/types.h>
22184 #ifdef HAVE_SYS_SOCKET_H
22185 #include <sys/socket.h>
22192 if ((socklen_t *) 0)
22194 if (sizeof (socklen_t))
22200 rm -f conftest.
$ac_objext
22201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22202 (eval $ac_compile) 2>conftest.er1
22204 grep -v '^ *+' conftest.er1
>conftest.err
22206 cat conftest.err
>&5
22207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22208 (exit $ac_status); } &&
22209 { ac_try
='test -z "$ac_c_werror_flag"
22210 || test ! -s conftest.err'
22211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22212 (eval $ac_try) 2>&5
22214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22215 (exit $ac_status); }; } &&
22216 { ac_try
='test -s conftest.$ac_objext'
22217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22218 (eval $ac_try) 2>&5
22220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22221 (exit $ac_status); }; }; then
22222 ac_cv_type_socklen_t
=yes
22224 echo "$as_me: failed program was:" >&5
22225 sed 's/^/| /' conftest.
$ac_ext >&5
22227 ac_cv_type_socklen_t
=no
22229 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22231 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
22232 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
22233 if test $ac_cv_type_socklen_t = yes; then
22237 cat >>confdefs.h
<<\_ACEOF
22238 #define socklen_t int
22246 for h
in `(cd $srcdir;echo Python/thread_*.h)`
22248 THREADHEADERS
="$THREADHEADERS \$(srcdir)/$h"
22252 SRCDIRS
="Parser Grammar Objects Python Modules Mac"
22253 echo "$as_me:$LINENO: checking for build directories" >&5
22254 echo $ECHO_N "checking for build directories... $ECHO_C" >&6
22255 for dir
in $SRCDIRS; do
22256 if test ! -d $dir; then
22260 echo "$as_me:$LINENO: result: done" >&5
22261 echo "${ECHO_T}done" >&6
22263 # generate output files
22264 ac_config_files
="$ac_config_files Makefile.pre Modules/Setup.config"
22266 cat >confcache
<<\_ACEOF
22267 # This file is a shell script that caches the results of configure
22268 # tests run on this system so they can be shared between configure
22269 # scripts and configure runs, see configure's option --config-cache.
22270 # It is not useful on other systems. If it contains results you don't
22271 # want to keep, you may remove or edit it.
22273 # config.status only pays attention to the cache file if you give it
22274 # the --recheck option to rerun configure.
22276 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22277 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22278 # following values.
22282 # The following way of writing the cache mishandles newlines in values,
22283 # but we know of no workaround that is simple, portable, and efficient.
22284 # So, don't put newlines in cache variables' values.
22285 # Ultrix sh set writes to stderr and can't be redirected directly,
22286 # and sets the high bit in the cache file unless we assign to the vars.
22289 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22291 # `set' does not quote correctly, so add quotes (double-quote
22292 # substitution turns \\\\ into \\, and sed turns \\ into \).
22295 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22298 # `set' quotes correctly as required by POSIX, so do not add quotes.
22300 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22307 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22309 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22311 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
22312 if test -w $cache_file; then
22313 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22314 cat confcache
>$cache_file
22316 echo "not updating unwritable cache $cache_file"
22321 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
22322 # Let make expand exec_prefix.
22323 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
22325 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22326 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22327 # trailing colons and then remove the whole line if VPATH becomes empty
22328 # (actually we leave an empty line to preserve line numbers).
22329 if test "x$srcdir" = x.
; then
22330 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
22331 s/:*\$(srcdir):*/:/;
22332 s/:*\${srcdir}:*/:/;
22334 s/^\([^=]*=[ ]*\):*/\1/;
22340 DEFS
=-DHAVE_CONFIG_H
22344 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
22345 # 1. Remove the extension, and $U if already installed.
22346 ac_i
=`echo "$ac_i" |
22347 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22349 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
22350 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
22352 LIBOBJS
=$ac_libobjs
22354 LTLIBOBJS
=$ac_ltlibobjs
22358 : ${CONFIG_STATUS=./config.status}
22359 ac_clean_files_save
=$ac_clean_files
22360 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
22361 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22362 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22363 cat >$CONFIG_STATUS <<_ACEOF
22365 # Generated by $as_me.
22366 # Run this file to recreate the current configuration.
22367 # Compiler output produced by configure, useful for debugging
22368 # configure, is in config.log if it exists.
22371 ac_cs_recheck=false
22373 SHELL=\${CONFIG_SHELL-$SHELL}
22376 cat >>$CONFIG_STATUS <<\_ACEOF
22377 ## --------------------- ##
22378 ## M4sh Initialization. ##
22379 ## --------------------- ##
22381 # Be Bourne compatible
22382 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
22385 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22386 # is contrary to our usage. Disable this feature.
22387 alias -g '${1+"$@"}'='"$@"'
22388 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
22391 DUALCASE
=1; export DUALCASE
# for MKS sh
22393 # Support unset when possible.
22394 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
22401 # Work around bugs in pre-3.0 UWIN ksh.
22402 $as_unset ENV MAIL MAILPATH
22409 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22410 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22411 LC_TELEPHONE LC_TIME
22413 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22414 eval $as_var=C
; export $as_var
22420 # Required to use basename.
22421 if expr a
: '\(a\)' >/dev
/null
2>&1; then
22427 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
22428 as_basename
=basename
22434 # Name of the executable.
22435 as_me
=`$as_basename "$0" ||
22436 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22437 X"$0" : 'X\(//\)$' \| \
22438 X"$0" : 'X\(/\)$' \| \
22439 . : '\(.\)' 2>/dev/null ||
22441 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22442 /^X\/\(\/\/\)$/{ s//\1/; q; }
22443 /^X\/\(\/\).*/{ s//\1/; q; }
22447 # PATH needs CR, and LINENO needs CR and PATH.
22448 # Avoid depending upon Character Ranges.
22449 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
22450 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22451 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
22452 as_cr_digits
='0123456789'
22453 as_cr_alnum
=$as_cr_Letters$as_cr_digits
22455 # The user is always right.
22456 if test "${PATH_SEPARATOR+set}" != set; then
22457 echo "#! /bin/sh" >conf$$.sh
22458 echo "exit 0" >>conf$$.sh
22460 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
22469 as_lineno_1
=$LINENO
22470 as_lineno_2
=$LINENO
22471 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
22472 test "x$as_lineno_1" != "x$as_lineno_2" &&
22473 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
22474 # Find who we are. Look in the path if we contain no path at all
22477 *[\\/]* ) as_myself
=$0 ;;
22478 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22479 for as_dir
in $PATH
22482 test -z "$as_dir" && as_dir
=.
22483 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
22488 # We did not find ourselves, most probably we were run as `sh COMMAND'
22489 # in which case we are not to be found in the path.
22490 if test "x$as_myself" = x
; then
22493 if test ! -f "$as_myself"; then
22494 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22495 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22496 { (exit 1); exit 1; }; }
22498 case $CONFIG_SHELL in
22500 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22501 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
22504 test -z "$as_dir" && as_dir
=.
22505 for as_base
in sh bash ksh sh5
; do
22508 if ("$as_dir/$as_base" -c '
22509 as_lineno_1=$LINENO
22510 as_lineno_2=$LINENO
22511 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22512 test "x$as_lineno_1" != "x$as_lineno_2" &&
22513 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
22514 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
22515 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
22516 CONFIG_SHELL
=$as_dir/$as_base
22517 export CONFIG_SHELL
22518 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22526 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22527 # uniformly replaced by the line number. The first 'sed' inserts a
22528 # line-number line before each line; the second 'sed' does the real
22529 # work. The second script uses 'N' to pair each line-number line
22530 # with the numbered line, and appends trailing '-' during
22531 # substitution so that $LINENO is not a special case at line end.
22532 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22533 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22534 sed '=' <$as_myself |
22539 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22542 s,^['$as_cr_digits']*\n,,
22543 ' >$as_me.lineno
&&
22544 chmod +x
$as_me.lineno ||
22545 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22546 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22547 { (exit 1); exit 1; }; }
22549 # Don't try to exec as it changes $[0], causing all sort of problems
22550 # (the dirname of $[0] is not the place where we might find the
22551 # original and so on. Autoconf is especially sensible to this).
22553 # Exit status is that of the last command.
22558 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22559 *c
*,-n*) ECHO_N
= ECHO_C
='
22561 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
22562 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
22565 if expr a
: '\(a\)' >/dev
/null
2>&1; then
22571 rm -f conf$$ conf$$.exe conf$$.
file
22573 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
22574 # We could just check for DJGPP; but this test a) works b) is more generic
22575 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22576 if test -f conf$$.exe
; then
22577 # Don't use ln at all; we don't have any links
22582 elif ln conf$$.
file conf$$
2>/dev
/null
; then
22587 rm -f conf$$ conf$$.exe conf$$.
file
22589 if mkdir
-p .
2>/dev
/null
; then
22592 test -d .
/-p && rmdir .
/-p
22596 as_executable_p
="test -f"
22598 # Sed expression to map a string onto a valid CPP name.
22599 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22601 # Sed expression to map a string onto a valid variable name.
22602 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22606 # We need space, tab and new line, in precisely that order.
22616 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22617 # report actual input values of CONFIG_FILES etc. instead of their
22618 # values after options handling. Logging --version etc. is OK.
22622 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22623 ## Running $as_me. ##
22628 This file was extended by python $as_me 2.5, which was
22629 generated by GNU Autoconf 2.59. Invocation command line was
22631 CONFIG_FILES = $CONFIG_FILES
22632 CONFIG_HEADERS = $CONFIG_HEADERS
22633 CONFIG_LINKS = $CONFIG_LINKS
22634 CONFIG_COMMANDS = $CONFIG_COMMANDS
22638 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22642 # Files that config.status was made for.
22643 if test -n "$ac_config_files"; then
22644 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22647 if test -n "$ac_config_headers"; then
22648 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22651 if test -n "$ac_config_links"; then
22652 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22655 if test -n "$ac_config_commands"; then
22656 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22659 cat >>$CONFIG_STATUS <<\_ACEOF
22662 \`$as_me' instantiates files from templates according to the
22663 current configuration.
22665 Usage: $0 [OPTIONS] [FILE]...
22667 -h, --help print this help, then exit
22668 -V, --version print version number, then exit
22669 -q, --quiet do not print progress messages
22670 -d, --debug don't remove temporary files
22671 --recheck update $as_me by reconfiguring in the same conditions
22672 --file=FILE[:TEMPLATE]
22673 instantiate the configuration file FILE
22674 --header=FILE[:TEMPLATE]
22675 instantiate the configuration header FILE
22677 Configuration files:
22680 Configuration headers:
22683 Report bugs to <bug-autoconf@gnu.org>."
22686 cat >>$CONFIG_STATUS <<_ACEOF
22688 python config.status 2.5
22689 configured by $0, generated by GNU Autoconf 2.59,
22690 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22692 Copyright (C) 2003 Free Software Foundation, Inc.
22693 This config.status script is free software; the Free Software Foundation
22694 gives unlimited permission to copy, distribute and modify it."
22699 cat >>$CONFIG_STATUS <<\_ACEOF
22700 # If no file are specified by the user, then we need to provide default
22701 # value. By we need to know if files were specified by the user.
22707 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
22708 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
22716 *) # This is not an option, so the user has probably given explicit
22719 ac_need_defaults
=false
;;
22723 # Handling of the options.
22725 cat >>$CONFIG_STATUS <<\_ACEOF
22726 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
22728 --version |
--vers* |
-V )
22729 echo "$ac_cs_version"; exit 0 ;;
22731 # Conflict between --help and --header
22732 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22733 Try \`$0 --help' for more information." >&5
22734 echo "$as_me: error: ambiguous option: $1
22735 Try \`$0 --help' for more information." >&2;}
22736 { (exit 1); exit 1; }; };;
22737 --help |
--hel |
-h )
22738 echo "$ac_cs_usage"; exit 0 ;;
22739 --debug |
--d* |
-d )
22741 --file |
--fil |
--fi |
--f )
22743 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
22744 ac_need_defaults
=false
;;
22745 --header |
--heade |
--head |
--hea )
22747 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
22748 ac_need_defaults
=false
;;
22749 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
22750 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
22753 # This is an error.
22754 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22755 Try \`$0 --help' for more information." >&5
22756 echo "$as_me: error: unrecognized option: $1
22757 Try \`$0 --help' for more information." >&2;}
22758 { (exit 1); exit 1; }; } ;;
22760 *) ac_config_targets
="$ac_config_targets $1" ;;
22766 ac_configure_extra_args
=
22768 if $ac_cs_silent; then
22770 ac_configure_extra_args
="$ac_configure_extra_args --silent"
22774 cat >>$CONFIG_STATUS <<_ACEOF
22775 if \$ac_cs_recheck; then
22776 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22777 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22786 cat >>$CONFIG_STATUS <<\_ACEOF
22787 for ac_config_target
in $ac_config_targets
22789 case "$ac_config_target" in
22790 # Handling of arguments.
22791 "Mac/Makefile" ) CONFIG_FILES
="$CONFIG_FILES Mac/Makefile" ;;
22792 "Mac/PythonLauncher/Makefile" ) CONFIG_FILES
="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;;
22793 "Mac/IDLE/Makefile" ) CONFIG_FILES
="$CONFIG_FILES Mac/IDLE/Makefile" ;;
22794 "Makefile.pre" ) CONFIG_FILES
="$CONFIG_FILES Makefile.pre" ;;
22795 "Modules/Setup.config" ) CONFIG_FILES
="$CONFIG_FILES Modules/Setup.config" ;;
22796 "pyconfig.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS pyconfig.h" ;;
22797 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22798 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22799 { (exit 1); exit 1; }; };;
22803 # If the user did not use the arguments to specify the items to instantiate,
22804 # then the envvar interface is used. Set only those that are not.
22805 # We use the long form for the default assignment because of an extremely
22806 # bizarre bug on SunOS 4.1.3.
22807 if $ac_need_defaults; then
22808 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
22809 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
22812 # Have a temporary directory for convenience. Make it in the build tree
22813 # simply because there is no reason to put it here, and in addition,
22814 # creating and moving files from /tmp can sometimes cause problems.
22815 # Create a temporary directory, and hook for its removal unless debugging.
22818 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22819 trap '{ (exit 1); exit 1; }' 1 2 13 15
22822 # Create a (secure) tmp directory for tmp files.
22825 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22826 test -n "$tmp" && test -d "$tmp"
22829 tmp
=.
/confstat$$
-$RANDOM
22830 (umask 077 && mkdir
$tmp)
22833 echo "$me: cannot create a temporary directory in ." >&2
22834 { (exit 1); exit 1; }
22839 cat >>$CONFIG_STATUS <<_ACEOF
22842 # CONFIG_FILES section.
22845 # No need to generate the scripts if there are no CONFIG_FILES.
22846 # This happens for instance when ./config.status config.h
22847 if test -n "\$CONFIG_FILES"; then
22848 # Protect against being on the right side of a sed subst in config.status.
22849 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22850 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22851 s,@SHELL@,$SHELL,;t t
22852 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22853 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22854 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22855 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22856 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22857 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22858 s,@exec_prefix@,$exec_prefix,;t t
22859 s,@prefix@,$prefix,;t t
22860 s,@program_transform_name@,$program_transform_name,;t t
22861 s,@bindir@,$bindir,;t t
22862 s,@sbindir@,$sbindir,;t t
22863 s,@libexecdir@,$libexecdir,;t t
22864 s,@datadir@,$datadir,;t t
22865 s,@sysconfdir@,$sysconfdir,;t t
22866 s,@sharedstatedir@,$sharedstatedir,;t t
22867 s,@localstatedir@,$localstatedir,;t t
22868 s,@libdir@,$libdir,;t t
22869 s,@includedir@,$includedir,;t t
22870 s,@oldincludedir@,$oldincludedir,;t t
22871 s,@infodir@,$infodir,;t t
22872 s,@mandir@,$mandir,;t t
22873 s,@build_alias@,$build_alias,;t t
22874 s,@host_alias@,$host_alias,;t t
22875 s,@target_alias@,$target_alias,;t t
22876 s,@DEFS@,$DEFS,;t t
22877 s,@ECHO_C@,$ECHO_C,;t t
22878 s,@ECHO_N@,$ECHO_N,;t t
22879 s,@ECHO_T@,$ECHO_T,;t t
22880 s,@LIBS@,$LIBS,;t t
22881 s,@VERSION@,$VERSION,;t t
22882 s,@SOVERSION@,$SOVERSION,;t t
22883 s,@CONFIG_ARGS@,$CONFIG_ARGS,;t t
22884 s,@UNIVERSALSDK@,$UNIVERSALSDK,;t t
22885 s,@PYTHONFRAMEWORK@,$PYTHONFRAMEWORK,;t t
22886 s,@PYTHONFRAMEWORKDIR@,$PYTHONFRAMEWORKDIR,;t t
22887 s,@PYTHONFRAMEWORKPREFIX@,$PYTHONFRAMEWORKPREFIX,;t t
22888 s,@PYTHONFRAMEWORKINSTALLDIR@,$PYTHONFRAMEWORKINSTALLDIR,;t t
22889 s,@FRAMEWORKINSTALLFIRST@,$FRAMEWORKINSTALLFIRST,;t t
22890 s,@FRAMEWORKINSTALLLAST@,$FRAMEWORKINSTALLLAST,;t t
22891 s,@FRAMEWORKALTINSTALLFIRST@,$FRAMEWORKALTINSTALLFIRST,;t t
22892 s,@FRAMEWORKALTINSTALLLAST@,$FRAMEWORKALTINSTALLLAST,;t t
22893 s,@FRAMEWORKUNIXTOOLSPREFIX@,$FRAMEWORKUNIXTOOLSPREFIX,;t t
22894 s,@MACHDEP@,$MACHDEP,;t t
22895 s,@SGI_ABI@,$SGI_ABI,;t t
22896 s,@EXTRAPLATDIR@,$EXTRAPLATDIR,;t t
22897 s,@EXTRAMACHDEPPATH@,$EXTRAMACHDEPPATH,;t t
22898 s,@CONFIGURE_MACOSX_DEPLOYMENT_TARGET@,$CONFIGURE_MACOSX_DEPLOYMENT_TARGET,;t t
22899 s,@EXPORT_MACOSX_DEPLOYMENT_TARGET@,$EXPORT_MACOSX_DEPLOYMENT_TARGET,;t t
22901 s,@CFLAGS@,$CFLAGS,;t t
22902 s,@LDFLAGS@,$LDFLAGS,;t t
22903 s,@CPPFLAGS@,$CPPFLAGS,;t t
22904 s,@ac_ct_CC@,$ac_ct_CC,;t t
22905 s,@EXEEXT@,$EXEEXT,;t t
22906 s,@OBJEXT@,$OBJEXT,;t t
22908 s,@MAINCC@,$MAINCC,;t t
22910 s,@EGREP@,$EGREP,;t t
22911 s,@BUILDEXEEXT@,$BUILDEXEEXT,;t t
22912 s,@LIBRARY@,$LIBRARY,;t t
22913 s,@LDLIBRARY@,$LDLIBRARY,;t t
22914 s,@DLLLIBRARY@,$DLLLIBRARY,;t t
22915 s,@BLDLIBRARY@,$BLDLIBRARY,;t t
22916 s,@LDLIBRARYDIR@,$LDLIBRARYDIR,;t t
22917 s,@INSTSONAME@,$INSTSONAME,;t t
22918 s,@RUNSHARED@,$RUNSHARED,;t t
22919 s,@LINKCC@,$LINKCC,;t t
22920 s,@RANLIB@,$RANLIB,;t t
22921 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22923 s,@SVNVERSION@,$SVNVERSION,;t t
22924 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22925 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22926 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22929 s,@BASECFLAGS@,$BASECFLAGS,;t t
22930 s,@OTHER_LIBTOOL_OPT@,$OTHER_LIBTOOL_OPT,;t t
22931 s,@LIBTOOL_CRUFT@,$LIBTOOL_CRUFT,;t t
22933 s,@LDSHARED@,$LDSHARED,;t t
22934 s,@BLDSHARED@,$BLDSHARED,;t t
22935 s,@CCSHARED@,$CCSHARED,;t t
22936 s,@LINKFORSHARED@,$LINKFORSHARED,;t t
22937 s,@CFLAGSFORSHARED@,$CFLAGSFORSHARED,;t t
22938 s,@SHLIBS@,$SHLIBS,;t t
22939 s,@USE_SIGNAL_MODULE@,$USE_SIGNAL_MODULE,;t t
22940 s,@SIGNAL_OBJS@,$SIGNAL_OBJS,;t t
22941 s,@USE_THREAD_MODULE@,$USE_THREAD_MODULE,;t t
22942 s,@LDLAST@,$LDLAST,;t t
22943 s,@THREADOBJ@,$THREADOBJ,;t t
22944 s,@DLINCLDIR@,$DLINCLDIR,;t t
22945 s,@DYNLOADFILE@,$DYNLOADFILE,;t t
22946 s,@MACHDEP_OBJS@,$MACHDEP_OBJS,;t t
22947 s,@TRUE@,$TRUE,;t t
22948 s,@LIBOBJS@,$LIBOBJS,;t t
22949 s,@HAVE_GETHOSTBYNAME_R_6_ARG@,$HAVE_GETHOSTBYNAME_R_6_ARG,;t t
22950 s,@HAVE_GETHOSTBYNAME_R_5_ARG@,$HAVE_GETHOSTBYNAME_R_5_ARG,;t t
22951 s,@HAVE_GETHOSTBYNAME_R_3_ARG@,$HAVE_GETHOSTBYNAME_R_3_ARG,;t t
22952 s,@HAVE_GETHOSTBYNAME_R@,$HAVE_GETHOSTBYNAME_R,;t t
22953 s,@HAVE_GETHOSTBYNAME@,$HAVE_GETHOSTBYNAME,;t t
22954 s,@LIBM@,$LIBM,;t t
22955 s,@LIBC@,$LIBC,;t t
22956 s,@UNICODE_OBJS@,$UNICODE_OBJS,;t t
22957 s,@THREADHEADERS@,$THREADHEADERS,;t t
22958 s,@SRCDIRS@,$SRCDIRS,;t t
22959 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22964 cat >>$CONFIG_STATUS <<\_ACEOF
22965 # Split the substitutions into bite-sized pieces for seds with
22966 # small command number limits, like on Digital OSF/1 and HP-UX.
22967 ac_max_sed_lines
=48
22968 ac_sed_frag
=1 # Number of current file.
22969 ac_beg
=1 # First line for current file.
22970 ac_end
=$ac_max_sed_lines # Line after last line for current file.
22973 while $ac_more_lines; do
22974 if test $ac_beg -gt 1; then
22975 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
22977 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
22979 if test ! -s $tmp/subs.frag
; then
22980 ac_more_lines
=false
22982 # The purpose of the label and of the branching condition is to
22983 # speed up the sed processing (if there are no `@' at all, there
22984 # is no need to browse any of the substitutions).
22985 # These are the two extra sed commands mentioned above.
22987 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
22988 if test -z "$ac_sed_cmds"; then
22989 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
22991 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22993 ac_sed_frag
=`expr $ac_sed_frag + 1`
22995 ac_end
=`expr $ac_end + $ac_max_sed_lines`
22998 if test -z "$ac_sed_cmds"; then
23001 fi # test -n "$CONFIG_FILES"
23004 cat >>$CONFIG_STATUS <<\_ACEOF
23005 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
23006 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23008 - |
*:- |
*:-:* ) # input from stdin
23010 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23011 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
23012 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23013 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
23014 * ) ac_file_in
=$ac_file.
in ;;
23017 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23018 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
23019 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23020 X"$ac_file" : 'X\(//\)[^/]' \| \
23021 X"$ac_file" : 'X\(//\)$' \| \
23022 X"$ac_file" : 'X\(/\)' \| \
23023 . : '\(.\)' 2>/dev/null ||
23025 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23026 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23027 /^X\(\/\/\)$/{ s//\1/; q; }
23028 /^X\(\/\).*/{ s//\1/; q; }
23030 { if $as_mkdir_p; then
23035 while test ! -d "$as_dir"; do
23036 as_dirs
="$as_dir $as_dirs"
23037 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
23038 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23039 X"$as_dir" : 'X\(//\)[^/]' \| \
23040 X"$as_dir" : 'X\(//\)$' \| \
23041 X"$as_dir" : 'X\(/\)' \| \
23042 . : '\(.\)' 2>/dev/null ||
23044 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23045 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23046 /^X\(\/\/\)$/{ s//\1/; q; }
23047 /^X\(\/\).*/{ s//\1/; q; }
23050 test ! -n "$as_dirs" || mkdir
$as_dirs
23051 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23052 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23053 { (exit 1); exit 1; }; }; }
23057 if test "$ac_dir" != .
; then
23058 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23059 # A "../" for each directory in $ac_dir_suffix.
23060 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23062 ac_dir_suffix
= ac_top_builddir
=
23066 .
) # No --srcdir option. We are building in place.
23068 if test -z "$ac_top_builddir"; then
23071 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
23073 [\\/]* | ?
:[\\/]* ) # Absolute path.
23074 ac_srcdir
=$srcdir$ac_dir_suffix;
23075 ac_top_srcdir
=$srcdir ;;
23076 *) # Relative path.
23077 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
23078 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
23081 # Do not use `cd foo && pwd` to compute absolute paths, because
23082 # the directories may not exist.
23084 .
) ac_abs_builddir
="$ac_dir";;
23087 .
) ac_abs_builddir
=`pwd`;;
23088 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
23089 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
23092 case $ac_abs_builddir in
23093 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
23095 case ${ac_top_builddir}.
in
23096 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
23097 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
23098 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
23101 case $ac_abs_builddir in
23102 .
) ac_abs_srcdir
=$ac_srcdir;;
23105 .
) ac_abs_srcdir
=$ac_abs_builddir;;
23106 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
23107 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
23110 case $ac_abs_builddir in
23111 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
23113 case $ac_top_srcdir in
23114 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
23115 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
23116 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
23122 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
23123 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
23126 if test x
"$ac_file" != x-
; then
23127 { echo "$as_me:$LINENO: creating $ac_file" >&5
23128 echo "$as_me: creating $ac_file" >&6;}
23131 # Let's still pretend it is `configure' which instantiates (i.e., don't
23132 # use $as_me), people would be surprised to read:
23133 # /* config.h. Generated by config.status. */
23134 if test x
"$ac_file" = x-
; then
23137 configure_input
="$ac_file. "
23139 configure_input
=$configure_input"Generated from `echo $ac_file_in |
23140 sed 's,.*/,,'` by configure."
23142 # First look for the input files in the build tree, otherwise in the
23144 ac_file_inputs
=`IFS=:
23145 for f in $ac_file_in; do
23147 -) echo $tmp/stdin ;;
23149 # Absolute (can't be DOS-style, as IFS=:)
23150 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23151 echo "$as_me: error: cannot find input file: $f" >&2;}
23152 { (exit 1); exit 1; }; }
23155 if test -f "$f"; then
23158 elif test -f "$srcdir/$f"; then
23163 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23164 echo "$as_me: error: cannot find input file: $f" >&2;}
23165 { (exit 1); exit 1; }; }
23168 done` ||
{ (exit 1); exit 1; }
23170 cat >>$CONFIG_STATUS <<_ACEOF
23174 cat >>$CONFIG_STATUS <<\_ACEOF
23176 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
23177 s
,@configure_input@
,$configure_input,;t t
23178 s
,@srcdir@
,$ac_srcdir,;t t
23179 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
23180 s
,@top_srcdir@
,$ac_top_srcdir,;t t
23181 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
23182 s
,@builddir@
,$ac_builddir,;t t
23183 s
,@abs_builddir@
,$ac_abs_builddir,;t t
23184 s
,@top_builddir@
,$ac_top_builddir,;t t
23185 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
23186 s
,@INSTALL@
,$ac_INSTALL,;t t
23187 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23189 if test x"$ac_file" != x-; then
23190 mv $tmp/out $ac_file
23198 cat >>$CONFIG_STATUS <<\_ACEOF
23201 # CONFIG_HEADER section.
23204 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
23205 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23207 # ac_d sets the value in "#define NAME VALUE" lines.
23208 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23209 ac_dB
='[ ].*$,\1#\2'
23212 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23213 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23214 ac_uB
='$,\1#\2define\3'
23218 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
23219 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23221 - |
*:- |
*:-:* ) # input from stdin
23223 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23224 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
23225 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23226 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
23227 * ) ac_file_in
=$ac_file.
in ;;
23230 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
23231 echo "$as_me: creating $ac_file" >&6;}
23233 # First look for the input files in the build tree, otherwise in the
23235 ac_file_inputs
=`IFS=:
23236 for f in $ac_file_in; do
23238 -) echo $tmp/stdin ;;
23240 # Absolute (can't be DOS-style, as IFS=:)
23241 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23242 echo "$as_me: error: cannot find input file: $f" >&2;}
23243 { (exit 1); exit 1; }; }
23244 # Do quote $f, to prevent DOS paths from being IFS'd.
23247 if test -f "$f"; then
23250 elif test -f "$srcdir/$f"; then
23255 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23256 echo "$as_me: error: cannot find input file: $f" >&2;}
23257 { (exit 1); exit 1; }; }
23260 done` ||
{ (exit 1); exit 1; }
23261 # Remove the trailing spaces.
23262 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23266 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23267 # `conftest.undefs', that substitutes the proper values into
23268 # config.h.in to produce config.h. The first handles `#define'
23269 # templates, and the second `#undef' templates.
23270 # And first: Protect against being on the right side of a sed subst in
23271 # config.status. Protect against being in an unquoted here document
23272 # in config.status.
23273 rm -f conftest.defines conftest.undefs
23274 # Using a here document instead of a string reduces the quoting nightmare.
23275 # Putting comments in sed scripts is not portable.
23277 # `end' is used to avoid that the second main sed command (meant for
23278 # 0-ary CPP macros) applies to n-ary macro definitions.
23279 # See the Autoconf documentation for `clear'.
23280 cat >confdef2sed.
sed <<\_ACEOF
23285 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23287 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23290 # If some macros were called several times there might be several times
23291 # the same #defines, which is useless. Nevertheless, we may not want to
23292 # sort them, since we want the *last* AC-DEFINE to be honored.
23293 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23294 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23295 rm -f confdef2sed.sed
23297 # This sed command replaces #undef with comments. This is necessary, for
23298 # example, in the case of _POSIX_SOURCE, which is predefined and required
23299 # on some systems where configure will not decide to define it.
23300 cat >>conftest.undefs <<\_ACEOF
23301 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23304 # Break up conftest.defines because some shells have a limit on the size
23305 # of here documents, and old seds have small limits too (100 cmds).
23306 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23307 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23308 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23309 echo ' :' >>$CONFIG_STATUS
23310 rm -f conftest.tail
23311 while grep . conftest.defines >/dev/null
23313 # Write a limited-size here document to $tmp/defines.sed.
23314 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23315 # Speed up: don't consider the non `#define' lines.
23316 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23317 # Work around the forget-to-reset-the-flag bug.
23318 echo 't clr' >>$CONFIG_STATUS
23319 echo ': clr' >>$CONFIG_STATUS
23320 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
23322 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23324 mv $tmp/out $tmp/in
23326 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
23327 rm -f conftest.defines
23328 mv conftest.
tail conftest.defines
23330 rm -f conftest.defines
23331 echo ' fi # grep' >>$CONFIG_STATUS
23332 echo >>$CONFIG_STATUS
23334 # Break up conftest.undefs because some shells have a limit on the size
23335 # of here documents, and old seds have small limits too (100 cmds).
23336 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23337 rm -f conftest.
tail
23338 while grep . conftest.undefs
>/dev
/null
23340 # Write a limited-size here document to $tmp/undefs.sed.
23341 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23342 # Speed up: don't consider the non
`#undef'
23343 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23344 # Work around the forget-to-reset-the-flag bug.
23345 echo 't clr' >>$CONFIG_STATUS
23346 echo ': clr' >>$CONFIG_STATUS
23347 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23349 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23351 mv $tmp/out $tmp/in
23353 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23354 rm -f conftest.undefs
23355 mv conftest.tail conftest.undefs
23357 rm -f conftest.undefs
23359 cat >>$CONFIG_STATUS <<\_ACEOF
23360 # Let's still pretend it is `configure
' which instantiates (i.e., don't
23361 # use $as_me), people would be surprised to read:
23362 # /* config.h. Generated by config.status. */
23363 if test x
"$ac_file" = x-
; then
23364 echo "/* Generated by configure. */" >$tmp/config.h
23366 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23368 cat $tmp/in >>$tmp/config.h
23370 if test x
"$ac_file" != x-
; then
23371 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
23372 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23373 echo "$as_me: $ac_file is unchanged" >&6;}
23375 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
23376 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23377 X"$ac_file" : 'X\(//\)[^/]' \| \
23378 X"$ac_file" : 'X\(//\)$' \| \
23379 X"$ac_file" : 'X\(/\)' \| \
23380 . : '\(.\)' 2>/dev/null ||
23382 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23383 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23384 /^X\(\/\/\)$/{ s//\1/; q; }
23385 /^X\(\/\).*/{ s//\1/; q; }
23387 { if $as_mkdir_p; then
23392 while test ! -d "$as_dir"; do
23393 as_dirs
="$as_dir $as_dirs"
23394 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
23395 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23396 X"$as_dir" : 'X\(//\)[^/]' \| \
23397 X"$as_dir" : 'X\(//\)$' \| \
23398 X"$as_dir" : 'X\(/\)' \| \
23399 . : '\(.\)' 2>/dev/null ||
23401 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23402 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23403 /^X\(\/\/\)$/{ s//\1/; q; }
23404 /^X\(\/\).*/{ s//\1/; q; }
23407 test ! -n "$as_dirs" || mkdir
$as_dirs
23408 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23409 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23410 { (exit 1); exit 1; }; }; }
23413 mv $tmp/config.h
$ac_file
23417 rm -f $tmp/config.h
23422 cat >>$CONFIG_STATUS <<\_ACEOF
23424 { (exit 0); exit 0; }
23426 chmod +x
$CONFIG_STATUS
23427 ac_clean_files
=$ac_clean_files_save
23430 # configure is writing to config.log, and then calls config.status.
23431 # config.status does its own redirection, appending to config.log.
23432 # Unfortunately, on DOS this fails, as config.log is still kept open
23433 # by configure, so config.status won't be able to write to it; its
23434 # output is simply discarded. So we exec the FD to /dev/null,
23435 # effectively closing config.log, so it can be properly (re)opened and
23436 # appended to by config.status. When coming back to configure, we
23437 # need to make the FD available again.
23438 if test "$no_create" != yes; then
23440 ac_config_status_args
=
23441 test "$silent" = yes &&
23442 ac_config_status_args
="$ac_config_status_args --quiet"
23444 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
23446 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23447 # would make configure fail if this is the last instruction.
23448 $ac_cs_success ||
{ (exit 1); exit 1; }
23452 echo "creating Modules/Setup"
23453 if test ! -f Modules
/Setup
23455 cp $srcdir/Modules
/Setup.dist Modules
/Setup
23458 echo "creating Modules/Setup.local"
23459 if test ! -f Modules
/Setup.
local
23461 echo "# Edit this file for local setup changes" >Modules
/Setup.
local
23464 echo "creating Makefile"
23465 $SHELL $srcdir/Modules
/makesetup
-c $srcdir/Modules
/config.c.
in \
23466 -s Modules Modules
/Setup.config \
23467 Modules
/Setup.
local Modules
/Setup
23468 mv config.c Modules