2 # From configure.in Revision: 47023 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59 for python 2.5.
6 # Report bugs to <http://www.python.org/python-bugs>.
8 # Copyright (C) 2003 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
25 DUALCASE
=1; export DUALCASE
# for MKS sh
27 # Support unset when possible.
28 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
35 # Work around bugs in pre-3.0 UWIN ksh.
36 $as_unset ENV MAIL MAILPATH
43 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
47 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
48 eval $as_var=C
; export $as_var
54 # Required to use basename.
55 if expr a
: '\(a\)' >/dev
/null
2>&1; then
61 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
68 # Name of the executable.
69 as_me
=`$as_basename "$0" ||
70 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71 X"$0" : 'X\(//\)$' \| \
72 X"$0" : 'X\(/\)$' \| \
73 . : '\(.\)' 2>/dev/null ||
75 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76 /^X\/\(\/\/\)$/{ s//\1/; q; }
77 /^X\/\(\/\).*/{ s//\1/; q; }
81 # PATH needs CR, and LINENO needs CR and PATH.
82 # Avoid depending upon Character Ranges.
83 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
84 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
86 as_cr_digits
='0123456789'
87 as_cr_alnum
=$as_cr_Letters$as_cr_digits
89 # The user is always right.
90 if test "${PATH_SEPARATOR+set}" != set; then
91 echo "#! /bin/sh" >conf$$.sh
92 echo "exit 0" >>conf$$.sh
94 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
105 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
106 test "x$as_lineno_1" != "x$as_lineno_2" &&
107 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
108 # Find who we are. Look in the path if we contain no path at all
111 *[\\/]* ) as_myself
=$0 ;;
112 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
116 test -z "$as_dir" && as_dir
=.
117 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
122 # We did not find ourselves, most probably we were run as `sh COMMAND'
123 # in which case we are not to be found in the path.
124 if test "x$as_myself" = x
; then
127 if test ! -f "$as_myself"; then
128 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129 { (exit 1); exit 1; }; }
131 case $CONFIG_SHELL in
133 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
134 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
137 test -z "$as_dir" && as_dir
=.
138 for as_base
in sh bash ksh sh5
; do
141 if ("$as_dir/$as_base" -c '
144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145 test "x$as_lineno_1" != "x$as_lineno_2" &&
146 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
147 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
148 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
149 CONFIG_SHELL
=$as_dir/$as_base
151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160 # uniformly replaced by the line number. The first 'sed' inserts a
161 # line-number line before each line; the second 'sed' does the real
162 # work. The second script uses 'N' to pair each line-number line
163 # with the numbered line, and appends trailing '-' during
164 # substitution so that $LINENO is not a special case at line end.
165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
167 sed '=' <$as_myself |
172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
175 s,^['$as_cr_digits']*\n,,
177 chmod +x
$as_me.lineno ||
178 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179 { (exit 1); exit 1; }; }
181 # Don't try to exec as it changes $[0], causing all sort of problems
182 # (the dirname of $[0] is not the place where we might find the
183 # original and so on. Autoconf is especially sensible to this).
185 # Exit status is that of the last command.
190 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191 *c
*,-n*) ECHO_N
= ECHO_C
='
193 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
194 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
197 if expr a
: '\(a\)' >/dev
/null
2>&1; then
203 rm -f conf$$ conf$$.exe conf$$.
file
205 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
206 # We could just check for DJGPP; but this test a) works b) is more generic
207 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208 if test -f conf$$.exe
; then
209 # Don't use ln at all; we don't have any links
214 elif ln conf$$.
file conf$$
2>/dev
/null
; then
219 rm -f conf$$ conf$$.exe conf$$.
file
221 if mkdir
-p .
2>/dev
/null
; then
224 test -d .
/-p && rmdir .
/-p
228 as_executable_p
="test -f"
230 # Sed expression to map a string onto a valid CPP name.
231 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
233 # Sed expression to map a string onto a valid variable name.
234 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
238 # We need space, tab and new line, in precisely that order.
248 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
249 # so uname gets run too.
250 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
257 ac_default_prefix
=/usr
/local
258 ac_config_libobj_dir
=.
263 SHELL
=${CONFIG_SHELL-/bin/sh}
265 # Maximum number of lines to put in a shell here document.
266 # This variable seems obsolete. It should probably be removed, and
267 # only ac_max_sed_lines should be used.
268 : ${ac_max_here_lines=38}
270 # Identity of this package.
271 PACKAGE_NAME
='python'
272 PACKAGE_TARNAME
='python'
273 PACKAGE_VERSION
='2.5'
274 PACKAGE_STRING
='python 2.5'
275 PACKAGE_BUGREPORT
='http://www.python.org/python-bugs'
277 ac_unique_file
="Include/object.h"
278 # Factoring default headers for most tests.
279 ac_includes_default
="\
282 # include <sys/types.h>
285 # include <sys/stat.h>
296 # if !STDC_HEADERS && HAVE_MEMORY_H
302 # include <strings.h>
305 # include <inttypes.h>
315 ac_subst_vars
='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS VERSION SOVERSION CONFIG_ARGS UNIVERSALSDK PYTHONFRAMEWORK PYTHONFRAMEWORKDIR PYTHONFRAMEWORKPREFIX PYTHONFRAMEWORKINSTALLDIR FRAMEWORKINSTALLFIRST FRAMEWORKINSTALLLAST FRAMEWORKALTINSTALLFIRST FRAMEWORKALTINSTALLLAST FRAMEWORKUNIXTOOLSPREFIX MACHDEP SGI_ABI EXTRAPLATDIR EXTRAMACHDEPPATH CONFIGURE_MACOSX_DEPLOYMENT_TARGET EXPORT_MACOSX_DEPLOYMENT_TARGET CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX MAINCC CPP EGREP BUILDEXEEXT LIBRARY LDLIBRARY DLLLIBRARY BLDLIBRARY LDLIBRARYDIR INSTSONAME RUNSHARED LINKCC RANLIB ac_ct_RANLIB AR SVNVERSION INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN OPT BASECFLAGS OTHER_LIBTOOL_OPT LIBTOOL_CRUFT SO LDSHARED BLDSHARED CCSHARED LINKFORSHARED CFLAGSFORSHARED SHLIBS USE_SIGNAL_MODULE SIGNAL_OBJS USE_THREAD_MODULE LDLAST THREADOBJ DLINCLDIR DYNLOADFILE MACHDEP_OBJS TRUE LIBOBJS HAVE_GETHOSTBYNAME_R_6_ARG HAVE_GETHOSTBYNAME_R_5_ARG HAVE_GETHOSTBYNAME_R_3_ARG HAVE_GETHOSTBYNAME_R HAVE_GETHOSTBYNAME LIBM LIBC UNICODE_OBJS THREADHEADERS SRCDIRS LTLIBOBJS'
318 # Initialize some variables set by options.
320 ac_init_version
=false
321 # The variables have the same names as the options, with
322 # dashes changed to underlines.
330 program_transform_name
=s
,x
,x
,
338 # Installation directory options.
339 # These are left unexpanded so users can "make install exec_prefix=/foo"
340 # and all the variables that are supposed to be based on exec_prefix
341 # by default will actually change.
342 # Use braces instead of parens because sh, perl, etc. also accept them.
343 bindir
='${exec_prefix}/bin'
344 sbindir
='${exec_prefix}/sbin'
345 libexecdir
='${exec_prefix}/libexec'
346 datadir
='${prefix}/share'
347 sysconfdir
='${prefix}/etc'
348 sharedstatedir
='${prefix}/com'
349 localstatedir
='${prefix}/var'
350 libdir
='${exec_prefix}/lib'
351 includedir
='${prefix}/include'
352 oldincludedir
='/usr/include'
353 infodir
='${prefix}/info'
354 mandir
='${prefix}/man'
359 # If the previous option needs an argument, assign it.
360 if test -n "$ac_prev"; then
361 eval "$ac_prev=\$ac_option"
366 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
368 # Accept the important Cygnus configure options, so we can diagnose typos.
372 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
374 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
377 -build |
--build |
--buil |
--bui |
--bu)
378 ac_prev
=build_alias
;;
379 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
380 build_alias
=$ac_optarg ;;
382 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
383 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
384 ac_prev
=cache_file
;;
385 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
386 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
387 cache_file
=$ac_optarg ;;
390 cache_file
=config.cache
;;
392 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
394 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
396 datadir
=$ac_optarg ;;
398 -disable-* |
--disable-*)
399 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
400 # Reject names that are not valid shell variable names.
401 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
402 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
403 { (exit 1); exit 1; }; }
404 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
405 eval "enable_$ac_feature=no" ;;
407 -enable-* |
--enable-*)
408 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
409 # Reject names that are not valid shell variable names.
410 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
411 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
412 { (exit 1); exit 1; }; }
413 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
415 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
418 eval "enable_$ac_feature='$ac_optarg'" ;;
420 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
421 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
422 |
--exec |
--exe |
--ex)
423 ac_prev
=exec_prefix
;;
424 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
425 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
426 |
--exec=* |
--exe=* |
--ex=*)
427 exec_prefix
=$ac_optarg ;;
429 -gas |
--gas |
--ga |
--g)
430 # Obsolete; use --with-gas.
433 -help |
--help |
--hel |
--he |
-h)
435 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
436 ac_init_help
=recursive
;;
437 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
438 ac_init_help
=short
;;
440 -host |
--host |
--hos |
--ho)
441 ac_prev
=host_alias
;;
442 -host=* |
--host=* |
--hos=* |
--ho=*)
443 host_alias
=$ac_optarg ;;
445 -includedir |
--includedir |
--includedi |
--included |
--include \
446 |
--includ |
--inclu |
--incl |
--inc)
447 ac_prev
=includedir
;;
448 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
449 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
450 includedir
=$ac_optarg ;;
452 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
454 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
455 infodir
=$ac_optarg ;;
457 -libdir |
--libdir |
--libdi |
--libd)
459 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
462 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
463 |
--libexe |
--libex |
--libe)
464 ac_prev
=libexecdir
;;
465 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
466 |
--libexe=* |
--libex=* |
--libe=*)
467 libexecdir
=$ac_optarg ;;
469 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
470 |
--localstate |
--localstat |
--localsta |
--localst \
471 |
--locals |
--local |
--loca |
--loc |
--lo)
472 ac_prev
=localstatedir
;;
473 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
474 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
475 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
476 localstatedir
=$ac_optarg ;;
478 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
480 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
484 # Obsolete; use --without-fp.
487 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
488 |
--no-cr |
--no-c |
-n)
491 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
492 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
495 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
496 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
497 |
--oldin |
--oldi |
--old |
--ol |
--o)
498 ac_prev
=oldincludedir
;;
499 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
500 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
501 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
502 oldincludedir
=$ac_optarg ;;
504 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
506 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
509 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
510 |
--program-pre |
--program-pr |
--program-p)
511 ac_prev
=program_prefix
;;
512 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
513 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
514 program_prefix
=$ac_optarg ;;
516 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
517 |
--program-suf |
--program-su |
--program-s)
518 ac_prev
=program_suffix
;;
519 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
520 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
521 program_suffix
=$ac_optarg ;;
523 -program-transform-name |
--program-transform-name \
524 |
--program-transform-nam |
--program-transform-na \
525 |
--program-transform-n |
--program-transform- \
526 |
--program-transform |
--program-transfor \
527 |
--program-transfo |
--program-transf \
528 |
--program-trans |
--program-tran \
529 |
--progr-tra |
--program-tr |
--program-t)
530 ac_prev
=program_transform_name
;;
531 -program-transform-name=* |
--program-transform-name=* \
532 |
--program-transform-nam=* |
--program-transform-na=* \
533 |
--program-transform-n=* |
--program-transform-=* \
534 |
--program-transform=* |
--program-transfor=* \
535 |
--program-transfo=* |
--program-transf=* \
536 |
--program-trans=* |
--program-tran=* \
537 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
538 program_transform_name
=$ac_optarg ;;
540 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
541 |
-silent |
--silent |
--silen |
--sile |
--sil)
544 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
546 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
548 sbindir
=$ac_optarg ;;
550 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
551 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
552 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
554 ac_prev
=sharedstatedir
;;
555 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
556 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
557 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
559 sharedstatedir
=$ac_optarg ;;
561 -site |
--site |
--sit)
563 -site=* |
--site=* |
--sit=*)
566 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
568 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
571 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
572 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
573 ac_prev
=sysconfdir
;;
574 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
575 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
576 sysconfdir
=$ac_optarg ;;
578 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
579 ac_prev
=target_alias
;;
580 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
581 target_alias
=$ac_optarg ;;
583 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
586 -version |
--version |
--versio |
--versi |
--vers |
-V)
590 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
591 # Reject names that are not valid shell variable names.
592 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
593 { echo "$as_me: error: invalid package name: $ac_package" >&2
594 { (exit 1); exit 1; }; }
595 ac_package
=`echo $ac_package| sed 's/-/_/g'`
597 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
600 eval "with_$ac_package='$ac_optarg'" ;;
602 -without-* |
--without-*)
603 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
604 # Reject names that are not valid shell variable names.
605 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
606 { echo "$as_me: error: invalid package name: $ac_package" >&2
607 { (exit 1); exit 1; }; }
608 ac_package
=`echo $ac_package | sed 's/-/_/g'`
609 eval "with_$ac_package=no" ;;
612 # Obsolete; use --with-x.
615 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
616 |
--x-incl |
--x-inc |
--x-in |
--x-i)
617 ac_prev
=x_includes
;;
618 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
619 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
620 x_includes
=$ac_optarg ;;
622 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
623 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
624 ac_prev
=x_libraries
;;
625 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
626 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
627 x_libraries
=$ac_optarg ;;
629 -*) { echo "$as_me: error: unrecognized option: $ac_option
630 Try \`$0 --help' for more information." >&2
631 { (exit 1); exit 1; }; }
635 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
636 # Reject names that are not valid shell variable names.
637 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
638 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
639 { (exit 1); exit 1; }; }
640 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
641 eval "$ac_envvar='$ac_optarg'"
645 # FIXME: should be removed in autoconf 3.0.
646 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
647 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
648 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
649 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
655 if test -n "$ac_prev"; then
656 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
657 { echo "$as_me: error: missing argument to $ac_option" >&2
658 { (exit 1); exit 1; }; }
661 # Be sure to have absolute paths.
662 for ac_var
in exec_prefix prefix
664 eval ac_val
=$
`echo $ac_var`
666 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
667 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
668 { (exit 1); exit 1; }; };;
672 # Be sure to have absolute paths.
673 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
674 localstatedir libdir includedir oldincludedir infodir mandir
676 eval ac_val
=$
`echo $ac_var`
678 [\\/$
]* | ?
:[\\/]* ) ;;
679 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
680 { (exit 1); exit 1; }; };;
684 # There might be people who depend on the old broken behavior: `$host'
685 # used to hold the argument of --host etc.
686 # FIXME: To remove some day.
691 # FIXME: To remove some day.
692 if test "x$host_alias" != x
; then
693 if test "x$build_alias" = x
; then
694 cross_compiling
=maybe
695 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
696 If a cross compiler is detected then cross compile mode will be used." >&2
697 elif test "x$build_alias" != "x$host_alias"; then
703 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
705 test "$silent" = yes && exec 6>/dev
/null
708 # Find the source files, if location was not specified.
709 if test -z "$srcdir"; then
710 ac_srcdir_defaulted
=yes
711 # Try the directory containing this script, then its parent.
712 ac_confdir
=`(dirname "$0") 2>/dev/null ||
713 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
714 X"$0" : 'X\(//\)[^/]' \| \
715 X"$0" : 'X\(//\)$' \| \
716 X"$0" : 'X\(/\)' \| \
717 . : '\(.\)' 2>/dev/null ||
719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
720 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
721 /^X\(\/\/\)$/{ s//\1/; q; }
722 /^X\(\/\).*/{ s//\1/; q; }
725 if test ! -r $srcdir/$ac_unique_file; then
729 ac_srcdir_defaulted
=no
731 if test ! -r $srcdir/$ac_unique_file; then
732 if test "$ac_srcdir_defaulted" = yes; then
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
734 { (exit 1); exit 1; }; }
736 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
737 { (exit 1); exit 1; }; }
740 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
741 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
742 { (exit 1); exit 1; }; }
743 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
744 ac_env_build_alias_set
=${build_alias+set}
745 ac_env_build_alias_value
=$build_alias
746 ac_cv_env_build_alias_set
=${build_alias+set}
747 ac_cv_env_build_alias_value
=$build_alias
748 ac_env_host_alias_set
=${host_alias+set}
749 ac_env_host_alias_value
=$host_alias
750 ac_cv_env_host_alias_set
=${host_alias+set}
751 ac_cv_env_host_alias_value
=$host_alias
752 ac_env_target_alias_set
=${target_alias+set}
753 ac_env_target_alias_value
=$target_alias
754 ac_cv_env_target_alias_set
=${target_alias+set}
755 ac_cv_env_target_alias_value
=$target_alias
756 ac_env_CC_set
=${CC+set}
758 ac_cv_env_CC_set
=${CC+set}
759 ac_cv_env_CC_value
=$CC
760 ac_env_CFLAGS_set
=${CFLAGS+set}
761 ac_env_CFLAGS_value
=$CFLAGS
762 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
763 ac_cv_env_CFLAGS_value
=$CFLAGS
764 ac_env_LDFLAGS_set
=${LDFLAGS+set}
765 ac_env_LDFLAGS_value
=$LDFLAGS
766 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
767 ac_cv_env_LDFLAGS_value
=$LDFLAGS
768 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
769 ac_env_CPPFLAGS_value
=$CPPFLAGS
770 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
771 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
772 ac_env_CPP_set
=${CPP+set}
773 ac_env_CPP_value
=$CPP
774 ac_cv_env_CPP_set
=${CPP+set}
775 ac_cv_env_CPP_value
=$CPP
778 # Report the --help message.
780 if test "$ac_init_help" = "long"; then
781 # Omit some internal or obsolete options to make the list less imposing.
782 # This message is too long to be a string in the A/UX 3.1 sh.
784 \`configure' configures python 2.5 to adapt to many kinds of systems.
786 Usage: $0 [OPTION]... [VAR=VALUE]...
788 To assign environment variables (e.g., CC, CFLAGS...), specify them as
789 VAR=VALUE. See below for descriptions of some of the useful variables.
791 Defaults for the options are specified in brackets.
794 -h, --help display this help and exit
795 --help=short display options specific to this package
796 --help=recursive display the short help of all the included packages
797 -V, --version display version information and exit
798 -q, --quiet, --silent do not print \`checking...' messages
799 --cache-file=FILE cache test results in FILE [disabled]
800 -C, --config-cache alias for \`--cache-file=config.cache'
801 -n, --no-create do not create output files
802 --srcdir=DIR find the sources in DIR [configure dir or \`..']
807 Installation directories:
808 --prefix=PREFIX install architecture-independent files in PREFIX
810 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
813 By default, \`make install' will install all the files in
814 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
815 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
816 for instance \`--prefix=\$HOME'.
818 For better control, use the options below.
820 Fine tuning of the installation directories:
821 --bindir=DIR user executables [EPREFIX/bin]
822 --sbindir=DIR system admin executables [EPREFIX/sbin]
823 --libexecdir=DIR program executables [EPREFIX/libexec]
824 --datadir=DIR read-only architecture-independent data [PREFIX/share]
825 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
826 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
827 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
828 --libdir=DIR object code libraries [EPREFIX/lib]
829 --includedir=DIR C header files [PREFIX/include]
830 --oldincludedir=DIR C header files for non-gcc [/usr/include]
831 --infodir=DIR info documentation [PREFIX/info]
832 --mandir=DIR man documentation [PREFIX/man]
839 if test -n "$ac_init_help"; then
840 case $ac_init_help in
841 short | recursive
) echo "Configuration of python 2.5:";;
846 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
847 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
848 --enable-universalsdk[SDKDIR
]
849 Build agains Mac OS X
10.4u SDK
(ppc
/i386
)
850 --enable-framework[=INSTALLDIR
]
851 Build
(MacOSX|Darwin
) framework
852 --enable-shared disable
/enable building shared python library
853 --enable-profiling enable C-level code profiling
854 --enable-toolbox-glue disable
/enable MacOSX glue code
for extensions
855 --enable-ipv6 Enable ipv6
(with ipv4
) support
856 --disable-ipv6 Disable ipv6 support
857 --enable-unicode[=ucs
[24]]
858 Enable Unicode
strings (default is
yes)
861 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
862 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
863 --without-gcc never use gcc
864 --with-cxx-main=<compiler
>
865 compile main
() and link python executable with C
++
867 --with-suffix=.exe
set executable suffix
868 --with-pydebug build with Py_DEBUG defined
869 --with-libs='lib1 ...' link against additional libs
870 --with-system-ffi build _ctypes module using an installed ffi library
871 --with-signal-module disable
/enable signal module
872 --with-dec-threads use DEC Alpha
/OSF1 thread-safe libraries
873 --with(out
)-threads[=DIRECTORY
]
874 disable
/enable thread support
875 --with(out
)-thread[=DIRECTORY
]
876 deprecated
; use
--with(out
)-threads
877 --with-pth use GNU pth threading libraries
878 --with(out
)-doc-strings disable
/enable documentation
strings
879 --with(out
)-tsc enable
/disable timestamp counter profile
880 --with(out
)-pymalloc disable
/enable specialized mallocs
881 --with-wctype-functions use wctype.h functions
882 --with-fpectl enable SIGFPE catching
883 --with-libm=STRING math library
884 --with-libc=STRING C library
886 Some influential environment variables
:
887 CC C compiler
command
888 CFLAGS C compiler flags
889 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
890 nonstandard directory
<lib dir
>
891 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
892 headers
in a nonstandard directory
<include dir
>
895 Use these variables to override the choices made by
`configure' or to help
896 it to find libraries and programs with nonstandard names/locations.
898 Report bugs to <http://www.python.org/python-bugs>.
902 if test "$ac_init_help" = "recursive"; then
903 # If there are subdirs, report their specific --help.
905 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
906 test -d $ac_dir || continue
909 if test "$ac_dir" != .; then
910 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
911 # A "../" for each directory in $ac_dir_suffix.
912 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
914 ac_dir_suffix= ac_top_builddir=
918 .) # No --srcdir option. We are building in place.
920 if test -z "$ac_top_builddir"; then
923 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
925 [\\/]* | ?:[\\/]* ) # Absolute path.
926 ac_srcdir=$srcdir$ac_dir_suffix;
927 ac_top_srcdir=$srcdir ;;
929 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
930 ac_top_srcdir=$ac_top_builddir$srcdir ;;
933 # Do not use `cd foo
&& pwd` to compute absolute paths, because
934 # the directories may not exist.
936 .) ac_abs_builddir="$ac_dir";;
939 .) ac_abs_builddir=`pwd`;;
940 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
941 *) ac_abs_builddir=`pwd`/"$ac_dir";;
944 case $ac_abs_builddir in
945 .) ac_abs_top_builddir=${ac_top_builddir}.;;
947 case ${ac_top_builddir}. in
948 .) ac_abs_top_builddir=$ac_abs_builddir;;
949 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
950 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
953 case $ac_abs_builddir in
954 .) ac_abs_srcdir=$ac_srcdir;;
957 .) ac_abs_srcdir=$ac_abs_builddir;;
958 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
959 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
962 case $ac_abs_builddir in
963 .) ac_abs_top_srcdir=$ac_top_srcdir;;
965 case $ac_top_srcdir in
966 .) ac_abs_top_srcdir=$ac_abs_builddir;;
967 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
968 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
973 # Check for guested configure; otherwise get Cygnus style configure.
974 if test -f $ac_srcdir/configure.gnu; then
976 $SHELL $ac_srcdir/configure.gnu --help=recursive
977 elif test -f $ac_srcdir/configure; then
979 $SHELL $ac_srcdir/configure --help=recursive
980 elif test -f $ac_srcdir/configure.ac ||
981 test -f $ac_srcdir/configure.in; then
985 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
991 test -n "$ac_init_help" && exit 0
992 if $ac_init_version; then
995 generated by GNU Autoconf 2.59
997 Copyright (C) 2003 Free Software Foundation, Inc.
998 This configure script is free software; the Free Software Foundation
999 gives unlimited permission to copy, distribute and modify it.
1005 This file contains any messages produced by compilers while
1006 running configure, to aid debugging if configure makes a mistake.
1008 It was created by python $as_me 2.5, which was
1009 generated by GNU Autoconf 2.59. Invocation command line was
1020 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1021 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1022 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1023 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1024 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1026 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1027 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1029 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1030 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1031 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1032 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1033 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1034 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1035 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1043 test -z "$as_dir" && as_dir=.
1044 echo "PATH: $as_dir"
1059 # Keep a trace of the command line.
1060 # Strip out --no-create and --no-recursion so they do not pile up.
1061 # Strip out --silent because we don't want to record it for future runs.
1062 # Also quote any args containing shell meta-characters.
1063 # Make two passes to allow for proper duplicate-argument suppression.
1068 ac_must_keep_next=false
1074 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1075 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1076 | -silent | --silent | --silen | --sile | --sil)
1078 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1079 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1082 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1084 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1085 if test $ac_must_keep_next = true; then
1086 ac_must_keep_next=false # Got value, back to normal.
1089 *=* | --config-cache | -C | -disable-* | --disable-* \
1090 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1091 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1092 | -with-* | --with-* | -without-* | --without-* | --x)
1093 case "$ac_configure_args0 " in
1094 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1097 -* ) ac_must_keep_next=true ;;
1100 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1101 # Get rid of the leading space.
1107 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1108 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1110 # When interrupted or exit'd, cleanup temporary files, and complete
1111 # config.log. We remove comments because anyway the quotes in there
1112 # would cause problems or look ugly.
1113 # WARNING: Be sure not to use single quotes in there, as some shells,
1114 # such as our DU 5.0 friend, will then `close
' the trap.
1115 trap 'exit_status
=$?
1116 # Save into config.log some information that might help in debugging.
1121 ## ---------------- ##
1122 ## Cache variables. ##
1123 ## ---------------- ##
1126 # The following way of writing the cache mishandles newlines in values,
1129 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1132 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1133 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1137 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1144 ## ----------------- ##
1145 ## Output variables. ##
1146 ## ----------------- ##
1149 for ac_var
in $ac_subst_vars
1151 eval ac_val
=$
`echo $ac_var`
1152 echo "$ac_var='"'"'$ac_val'"'"'"
1156 if test -n "$ac_subst_files"; then
1163 for ac_var
in $ac_subst_files
1165 eval ac_val
=$
`echo $ac_var`
1166 echo "$ac_var='"'"'$ac_val'"'"'"
1171 if test -s confdefs.h
; then
1178 sed "/^$/d" confdefs.h |
sort
1181 test "$ac_signal" != 0 &&
1182 echo "$as_me: caught signal $ac_signal"
1183 echo "$as_me: exit $exit_status"
1185 rm -f core
*.core
&&
1186 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1189 for ac_signal in 1 2 13 15; do
1190 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1194 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1195 rm -rf conftest* confdefs.h
1196 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1199 # Predefined preprocessor variables.
1201 cat >>confdefs.h <<_ACEOF
1202 #define PACKAGE_NAME "$PACKAGE_NAME"
1206 cat >>confdefs.h <<_ACEOF
1207 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1211 cat >>confdefs.h <<_ACEOF
1212 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1216 cat >>confdefs.h <<_ACEOF
1217 #define PACKAGE_STRING "$PACKAGE_STRING"
1221 cat >>confdefs.h <<_ACEOF
1222 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1226 # Let the site file select an alternate cache file if it wants to.
1227 # Prefer explicitly selected file to automatically selected ones.
1228 if test -z "$CONFIG_SITE"; then
1229 if test "x$prefix" != xNONE; then
1230 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1232 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1235 for ac_site_file in $CONFIG_SITE; do
1236 if test -r "$ac_site_file"; then
1237 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1238 echo "$as_me: loading site script $ac_site_file" >&6;}
1239 sed 's
/^
/|
/' "$ac_site_file" >&5
1244 if test -r "$cache_file"; then
1245 # Some versions of bash will fail to source /dev/null (special
1246 # files actually), so we avoid doing that.
1247 if test -f "$cache_file"; then
1248 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1249 echo "$as_me: loading cache $cache_file" >&6;}
1251 [\\/]* | ?:[\\/]* ) . $cache_file;;
1252 *) . ./$cache_file;;
1256 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1257 echo "$as_me: creating cache $cache_file" >&6;}
1261 # Check that the precious variables saved in the cache have kept the same
1263 ac_cache_corrupted=false
1264 for ac_var in `(set) 2>&1 |
1265 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1266 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1267 eval ac_new_set=\$ac_env_${ac_var}_set
1268 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1269 eval ac_new_val="\$ac_env_${ac_var}_value"
1270 case $ac_old_set,$ac_new_set in
1272 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1273 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1274 ac_cache_corrupted=: ;;
1276 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1277 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1278 ac_cache_corrupted=: ;;
1281 if test "x$ac_old_val" != "x$ac_new_val"; then
1282 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1283 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1284 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1285 echo "$as_me: former value: $ac_old_val" >&2;}
1286 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1287 echo "$as_me: current value: $ac_new_val" >&2;}
1288 ac_cache_corrupted=:
1291 # Pass precious variables to config.status.
1292 if test "$ac_new_set" = set; then
1294 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1295 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1296 *) ac_arg=$ac_var=$ac_new_val ;;
1298 case " $ac_configure_args " in
1299 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1300 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1304 if $ac_cache_corrupted; then
1305 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1306 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1307 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1308 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1309 { (exit 1); exit 1; }; }
1313 ac_cpp='$CPP $CPPFLAGS'
1314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1315 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1345 ac_config_headers="$ac_config_headers pyconfig.h"
1353 # We don't use PACKAGE_ variables
, and they cause conflicts
1354 # with other autoconf-based packages that include Python.h
1355 grep -v 'define PACKAGE_' <confdefs.h
>confdefs.h.new
1357 mv confdefs.h.new confdefs.h
1365 # The later defininition of _XOPEN_SOURCE disables certain features
1366 # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
1368 cat >>confdefs.h
<<\_ACEOF
1369 #define _GNU_SOURCE 1
1373 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1374 # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
1377 cat >>confdefs.h
<<\_ACEOF
1378 #define _NETBSD_SOURCE 1
1382 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1383 # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
1386 cat >>confdefs.h
<<\_ACEOF
1387 #define __BSD_VISIBLE 1
1391 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1392 # u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
1394 cat >>confdefs.h
<<\_ACEOF
1395 #define _BSD_TYPES 1
1399 define_xopen_source
=yes
1401 # Arguments passed to configure.
1403 CONFIG_ARGS
="$ac_configure_args"
1405 # Check whether --enable-universalsdk or --disable-universalsdk was given.
1406 if test "${enable_universalsdk+set}" = set; then
1407 enableval
="$enable_universalsdk"
1411 enableval
=/Developer
/SDKs
/MacOSX10.4u.sdk
1417 enable_universalsdk
=
1420 UNIVERSALSDK
=$enableval
1427 enable_universalsdk
=
1432 # Check whether --enable-framework or --disable-framework was given.
1433 if test "${enable_framework+set}" = set; then
1434 enableval
="$enable_framework"
1438 enableval
=/Library
/Frameworks
1443 PYTHONFRAMEWORKDIR
=no-framework
1444 PYTHONFRAMEWORKPREFIX
=
1445 PYTHONFRAMEWORKINSTALLDIR
=
1446 FRAMEWORKINSTALLFIRST
=
1447 FRAMEWORKINSTALLLAST
=
1448 FRAMEWORKALTINSTALLFIRST
=
1449 FRAMEWORKALTINSTALLLAST
=
1450 if test "x${prefix}" = "xNONE"; then
1451 FRAMEWORKUNIXTOOLSPREFIX
="${ac_default_prefix}"
1453 FRAMEWORKUNIXTOOLSPREFIX
="${prefix}"
1458 PYTHONFRAMEWORK
=Python
1459 PYTHONFRAMEWORKDIR
=Python.framework
1460 PYTHONFRAMEWORKPREFIX
=$enableval
1461 PYTHONFRAMEWORKINSTALLDIR
=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
1462 FRAMEWORKINSTALLFIRST
="frameworkinstallstructure"
1463 FRAMEWORKINSTALLLAST
="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools"
1464 FRAMEWORKALTINSTALLFIRST
="${FRAMEWORKINSTALLFIRST} bininstall maninstall"
1465 FRAMEWORKALTINSTALLLAST
="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools"
1466 if test "x${prefix}" = "xNONE" ; then
1467 FRAMEWORKUNIXTOOLSPREFIX
="${ac_default_prefix}"
1469 FRAMEWORKUNIXTOOLSPREFIX
="${prefix}"
1471 prefix
=$PYTHONFRAMEWORKINSTALLDIR/Versions
/$VERSION
1473 # Add makefiles for Mac specific code to the list of output
1475 ac_config_files
="$ac_config_files Mac/Makefile"
1477 ac_config_files
="$ac_config_files Mac/PythonLauncher/Makefile"
1479 ac_config_files
="$ac_config_files Mac/IDLE/Makefile"
1486 PYTHONFRAMEWORKDIR
=no-framework
1487 PYTHONFRAMEWORKPREFIX
=
1488 PYTHONFRAMEWORKINSTALLDIR
=
1489 FRAMEWORKINSTALLFIRST
=
1490 FRAMEWORKINSTALLLAST
=
1491 FRAMEWORKALTINSTALLFIRST
=
1492 FRAMEWORKALTINSTALLLAST
=
1493 if test "x${prefix}" = "xNONE" ; then
1494 FRAMEWORKUNIXTOOLSPREFIX
="${ac_default_prefix}"
1496 FRAMEWORKUNIXTOOLSPREFIX
="${prefix}"
1512 ## AC_HELP_STRING(--with-dyld,
1513 ## Use (OpenStep|Rhapsody) dynamic linker))
1515 # Set name for machine-dependent library files
1517 echo "$as_me:$LINENO: checking MACHDEP" >&5
1518 echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6
1519 if test -z "$MACHDEP"
1521 ac_sys_system
=`uname -s`
1522 if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \
1523 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
1524 ac_sys_release
=`uname -v`
1526 ac_sys_release
=`uname -r`
1528 ac_md_system
=`echo $ac_sys_system |
1529 tr -d '/ ' | tr '[A-Z]' '[a-z]'`
1530 ac_md_release
=`echo $ac_sys_release |
1531 tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'`
1532 MACHDEP
="$ac_md_system$ac_md_release"
1535 cygwin
*) MACHDEP
="cygwin";;
1536 darwin
*) MACHDEP
="darwin";;
1537 atheos
*) MACHDEP
="atheos";;
1538 irix646
) MACHDEP
="irix6";;
1539 '') MACHDEP
="unknown";;
1543 # Some systems cannot stand _XOPEN_SOURCE being defined at all; they
1544 # disable features if it is defined, without any means to access these
1545 # features as extensions. For these systems, we skip the definition of
1546 # _XOPEN_SOURCE. Before adding a system to the list to gain access to
1547 # some feature, make sure there is no alternative way to access this
1548 # feature. Also, when using wildcards, make sure you have verified the
1549 # need for not defining _XOPEN_SOURCE on all systems matching the
1550 # wildcard, and that the wildcard does not include future systems
1551 # (which may remove their limitations).
1552 case $ac_sys_system/$ac_sys_release in
1553 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
1554 # even though select is a POSIX function. Reported by J. Ribbens.
1555 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
1556 OpenBSD
/2.
* | OpenBSD
/3.
[0123456789])
1557 define_xopen_source
=no
;;
1558 # On Solaris 2.6, sys/wait.h is inconsistent in the usage
1559 # of union __?sigval. Reported by Stuart Bishop.
1561 define_xopen_source
=no
;;
1562 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
1563 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
1564 # Reconfirmed for 7.1.4 by Martin v. Loewis.
1565 OpenUNIX
/8.0.0| UnixWare
/7.1.
[0-4])
1566 define_xopen_source
=no
;;
1567 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
1568 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
1570 define_xopen_source
=no
;;
1571 # On FreeBSD 4.8 and MacOS X 10.2, a bug in ncurses.h means that
1572 # it craps out if _XOPEN_EXTENDED_SOURCE is defined. Apparently,
1573 # this is fixed in 10.3, which identifies itself as Darwin/7.*
1574 # This should hopefully be fixed in FreeBSD 4.9
1575 FreeBSD
/4.8* | Darwin
/6* )
1576 define_xopen_source
=no
;;
1577 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
1578 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
1579 # or has another value. By not (re)defining it, the defaults come in place.
1581 define_xopen_source
=no
;;
1583 if test `uname -r` -eq 1; then
1584 define_xopen_source
=no
1587 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
1588 # disables platform specific features beyond repair.
1589 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
1590 # has no effect, don't bother defining them
1592 define_xopen_source
=no
1597 if test $define_xopen_source = yes
1599 # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be
1600 # defined precisely as g++ defines it
1601 # Furthermore, on Solaris 10, XPG6 requires the use of a C99
1603 case $ac_sys_system/$ac_sys_release in
1604 SunOS
/5.8|SunOS
/5.9|SunOS
/5.10)
1606 cat >>confdefs.h
<<\_ACEOF
1607 #define _XOPEN_SOURCE 500
1613 cat >>confdefs.h
<<\_ACEOF
1614 #define _XOPEN_SOURCE 600
1620 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
1621 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
1622 # several APIs are not declared. Since this is also needed in some
1623 # cases for HP-UX, we define it globally.
1624 # except for Solaris 10, where it must not be defined,
1625 # as it implies XPG4.2
1626 case $ac_sys_system/$ac_sys_release in
1631 cat >>confdefs.h
<<\_ACEOF
1632 #define _XOPEN_SOURCE_EXTENDED 1
1639 cat >>confdefs.h
<<\_ACEOF
1640 #define _POSIX_C_SOURCE 200112L
1647 # SGI compilers allow the specification of the both the ABI and the
1648 # ISA on the command line. Depending on the values of these switches,
1649 # different and often incompatable code will be generated.
1651 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
1652 # thus supply support for various ABI/ISA combinations. The MACHDEP
1653 # variable is also adjusted.
1656 if test ! -z "$SGI_ABI"
1659 LDFLAGS
="$SGI_ABI $LDFLAGS"
1660 MACHDEP
=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'`
1662 echo "$as_me:$LINENO: result: $MACHDEP" >&5
1663 echo "${ECHO_T}$MACHDEP" >&6
1665 # And add extra plat-mac for darwin
1668 echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5
1669 echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6
1670 if test -z "$EXTRAPLATDIR"
1674 EXTRAPLATDIR
="\$(PLATMACDIRS)"
1675 EXTRAMACHDEPPATH
="\$(PLATMACPATH)"
1683 echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5
1684 echo "${ECHO_T}$EXTRAPLATDIR" >&6
1686 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
1687 # it may influence the way we can build extensions, so distutils
1691 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
=
1692 EXPORT_MACOSX_DEPLOYMENT_TARGET
='#'
1694 # checks for alternative programs
1696 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
1697 # for debug/optimization stuff. BASECFLAGS is for flags that are required
1698 # just to get things to compile and link. Users are free to override OPT
1699 # when running configure or make. The build should not break if they do.
1700 # BASECFLAGS should generally not be messed with, however.
1702 # XXX shouldn't some/most/all of this code be merged with the stuff later
1703 # on that fiddles with OPT and BASECFLAGS?
1704 echo "$as_me:$LINENO: checking for --without-gcc" >&5
1705 echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6
1707 # Check whether --with-gcc or --without-gcc was given.
1708 if test "${with_gcc+set}" = set; then
1717 without_gcc
=$withval;;
1721 case $ac_sys_system in
1725 case $BE_HOST_CPU in
1729 BASECFLAGS
="$BASECFLAGS -export pragma"
1731 LDFLAGS
="$LDFLAGS -nodup"
1739 { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5
1740 echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;}
1741 { (exit 1); exit 1; }; }
1744 AR
="\$(srcdir)/Modules/ar_beos"
1753 echo "$as_me:$LINENO: result: $without_gcc" >&5
1754 echo "${ECHO_T}$without_gcc" >&6
1756 # If the user switches compilers, we can't believe the cache
1757 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
1759 { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
1760 (it is also a good idea to do 'make clean' before compiling)" >&5
1761 echo "$as_me: error: cached CC is different -- throw away $cache_file
1762 (it is also a good idea to do 'make clean' before compiling)" >&2;}
1763 { (exit 1); exit 1; }; }
1767 ac_cpp
='$CPP $CPPFLAGS'
1768 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1769 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1770 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1771 if test -n "$ac_tool_prefix"; then
1772 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1773 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1774 echo "$as_me:$LINENO: checking for $ac_word" >&5
1775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1776 if test "${ac_cv_prog_CC+set}" = set; then
1777 echo $ECHO_N "(cached) $ECHO_C" >&6
1779 if test -n "$CC"; then
1780 ac_cv_prog_CC
="$CC" # Let the user override the test.
1782 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1786 test -z "$as_dir" && as_dir
=.
1787 for ac_exec_ext
in '' $ac_executable_extensions; do
1788 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1789 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1790 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1799 if test -n "$CC"; then
1800 echo "$as_me:$LINENO: result: $CC" >&5
1801 echo "${ECHO_T}$CC" >&6
1803 echo "$as_me:$LINENO: result: no" >&5
1804 echo "${ECHO_T}no" >&6
1808 if test -z "$ac_cv_prog_CC"; then
1810 # Extract the first word of "gcc", so it can be a program name with args.
1811 set dummy gcc
; ac_word
=$2
1812 echo "$as_me:$LINENO: checking for $ac_word" >&5
1813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1814 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1815 echo $ECHO_N "(cached) $ECHO_C" >&6
1817 if test -n "$ac_ct_CC"; then
1818 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1820 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1824 test -z "$as_dir" && as_dir
=.
1825 for ac_exec_ext
in '' $ac_executable_extensions; do
1826 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1827 ac_cv_prog_ac_ct_CC
="gcc"
1828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1836 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1837 if test -n "$ac_ct_CC"; then
1838 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1839 echo "${ECHO_T}$ac_ct_CC" >&6
1841 echo "$as_me:$LINENO: result: no" >&5
1842 echo "${ECHO_T}no" >&6
1850 if test -z "$CC"; then
1851 if test -n "$ac_tool_prefix"; then
1852 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1853 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1854 echo "$as_me:$LINENO: checking for $ac_word" >&5
1855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1856 if test "${ac_cv_prog_CC+set}" = set; then
1857 echo $ECHO_N "(cached) $ECHO_C" >&6
1859 if test -n "$CC"; then
1860 ac_cv_prog_CC
="$CC" # Let the user override the test.
1862 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1866 test -z "$as_dir" && as_dir
=.
1867 for ac_exec_ext
in '' $ac_executable_extensions; do
1868 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1869 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1879 if test -n "$CC"; then
1880 echo "$as_me:$LINENO: result: $CC" >&5
1881 echo "${ECHO_T}$CC" >&6
1883 echo "$as_me:$LINENO: result: no" >&5
1884 echo "${ECHO_T}no" >&6
1888 if test -z "$ac_cv_prog_CC"; then
1890 # Extract the first word of "cc", so it can be a program name with args.
1891 set dummy cc
; ac_word
=$2
1892 echo "$as_me:$LINENO: checking for $ac_word" >&5
1893 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1894 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1895 echo $ECHO_N "(cached) $ECHO_C" >&6
1897 if test -n "$ac_ct_CC"; then
1898 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1900 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1904 test -z "$as_dir" && as_dir
=.
1905 for ac_exec_ext
in '' $ac_executable_extensions; do
1906 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1907 ac_cv_prog_ac_ct_CC
="cc"
1908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1916 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1917 if test -n "$ac_ct_CC"; then
1918 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1919 echo "${ECHO_T}$ac_ct_CC" >&6
1921 echo "$as_me:$LINENO: result: no" >&5
1922 echo "${ECHO_T}no" >&6
1931 if test -z "$CC"; then
1932 # Extract the first word of "cc", so it can be a program name with args.
1933 set dummy cc
; ac_word
=$2
1934 echo "$as_me:$LINENO: checking for $ac_word" >&5
1935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1936 if test "${ac_cv_prog_CC+set}" = set; then
1937 echo $ECHO_N "(cached) $ECHO_C" >&6
1939 if test -n "$CC"; then
1940 ac_cv_prog_CC
="$CC" # Let the user override the test.
1943 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1947 test -z "$as_dir" && as_dir
=.
1948 for ac_exec_ext
in '' $ac_executable_extensions; do
1949 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1950 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1951 ac_prog_rejected
=yes
1955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1961 if test $ac_prog_rejected = yes; then
1962 # We found a bogon in the path, so make sure we never use it.
1963 set dummy
$ac_cv_prog_CC
1965 if test $# != 0; then
1966 # We chose a different compiler from the bogus one.
1967 # However, it has the same basename, so the bogon will be chosen
1968 # first if we set CC to just the basename; use the full file name.
1970 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
1976 if test -n "$CC"; then
1977 echo "$as_me:$LINENO: result: $CC" >&5
1978 echo "${ECHO_T}$CC" >&6
1980 echo "$as_me:$LINENO: result: no" >&5
1981 echo "${ECHO_T}no" >&6
1985 if test -z "$CC"; then
1986 if test -n "$ac_tool_prefix"; then
1989 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1990 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
1991 echo "$as_me:$LINENO: checking for $ac_word" >&5
1992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1993 if test "${ac_cv_prog_CC+set}" = set; then
1994 echo $ECHO_N "(cached) $ECHO_C" >&6
1996 if test -n "$CC"; then
1997 ac_cv_prog_CC
="$CC" # Let the user override the test.
1999 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2003 test -z "$as_dir" && as_dir
=.
2004 for ac_exec_ext
in '' $ac_executable_extensions; do
2005 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2006 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2016 if test -n "$CC"; then
2017 echo "$as_me:$LINENO: result: $CC" >&5
2018 echo "${ECHO_T}$CC" >&6
2020 echo "$as_me:$LINENO: result: no" >&5
2021 echo "${ECHO_T}no" >&6
2024 test -n "$CC" && break
2027 if test -z "$CC"; then
2031 # Extract the first word of "$ac_prog", so it can be a program name with args.
2032 set dummy
$ac_prog; ac_word
=$2
2033 echo "$as_me:$LINENO: checking for $ac_word" >&5
2034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2035 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2036 echo $ECHO_N "(cached) $ECHO_C" >&6
2038 if test -n "$ac_ct_CC"; then
2039 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2041 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2045 test -z "$as_dir" && as_dir
=.
2046 for ac_exec_ext
in '' $ac_executable_extensions; do
2047 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2048 ac_cv_prog_ac_ct_CC
="$ac_prog"
2049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2057 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2058 if test -n "$ac_ct_CC"; then
2059 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2060 echo "${ECHO_T}$ac_ct_CC" >&6
2062 echo "$as_me:$LINENO: result: no" >&5
2063 echo "${ECHO_T}no" >&6
2066 test -n "$ac_ct_CC" && break
2075 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2076 See \`config.log' for more details." >&5
2077 echo "$as_me: error: no acceptable C compiler found in \$PATH
2078 See \`config.log' for more details." >&2;}
2079 { (exit 1); exit 1; }; }
2081 # Provide some information about the compiler.
2082 echo "$as_me:$LINENO:" \
2083 "checking for C compiler version" >&5
2084 ac_compiler
=`set X $ac_compile; echo $2`
2085 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2086 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2089 (exit $ac_status); }
2090 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2091 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2094 (exit $ac_status); }
2095 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2096 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2099 (exit $ac_status); }
2101 cat >conftest.
$ac_ext <<_ACEOF
2104 cat confdefs.h
>>conftest.
$ac_ext
2105 cat >>conftest.
$ac_ext <<_ACEOF
2106 /* end confdefs.h. */
2116 ac_clean_files_save
=$ac_clean_files
2117 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2118 # Try to create an executable without -o first, disregard a.out.
2119 # It will help us diagnose broken compilers, and finding out an intuition
2121 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2122 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2123 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2124 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2125 (eval $ac_link_default) 2>&5
2127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2128 (exit $ac_status); }; then
2129 # Find the output, starting from the most likely. This scheme is
2130 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2133 # Be careful to initialize this variable, since it used to be cached.
2134 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2136 # b.out is created by i960 compilers.
2137 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2139 test -f "$ac_file" ||
continue
2141 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2144 # This is the source file.
2147 # We found the default executable, but exeext='' is most
2151 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2152 # FIXME: I believe we export ac_cv_exeext for Libtool,
2153 # but it would be cool to find out if it's true. Does anybody
2154 # maintain Libtool? --akim.
2162 echo "$as_me: failed program was:" >&5
2163 sed 's/^/| /' conftest.
$ac_ext >&5
2165 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2166 See \`config.log' for more details." >&5
2167 echo "$as_me: error: C compiler cannot create executables
2168 See \`config.log' for more details." >&2;}
2169 { (exit 77); exit 77; }; }
2172 ac_exeext
=$ac_cv_exeext
2173 echo "$as_me:$LINENO: result: $ac_file" >&5
2174 echo "${ECHO_T}$ac_file" >&6
2176 # Check the compiler produces executables we can run. If not, either
2177 # the compiler is broken, or we cross compile.
2178 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2179 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2180 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2181 # If not cross compiling, check that we can run a simple program.
2182 if test "$cross_compiling" != yes; then
2183 if { ac_try
='./$ac_file'
2184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2188 (exit $ac_status); }; }; then
2191 if test "$cross_compiling" = maybe
; then
2194 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2195 If you meant to cross compile, use \`--host'.
2196 See \`config.log' for more details." >&5
2197 echo "$as_me: error: cannot run C compiled programs.
2198 If you meant to cross compile, use \`--host'.
2199 See \`config.log' for more details." >&2;}
2200 { (exit 1); exit 1; }; }
2204 echo "$as_me:$LINENO: result: yes" >&5
2205 echo "${ECHO_T}yes" >&6
2207 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2208 ac_clean_files
=$ac_clean_files_save
2209 # Check the compiler produces executables we can run. If not, either
2210 # the compiler is broken, or we cross compile.
2211 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2212 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2213 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2214 echo "${ECHO_T}$cross_compiling" >&6
2216 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2217 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2219 (eval $ac_link) 2>&5
2221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2222 (exit $ac_status); }; then
2223 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2224 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2225 # work properly (i.e., refer to `conftest.exe'), while it won't with
2227 for ac_file
in conftest.exe conftest conftest.
*; do
2228 test -f "$ac_file" ||
continue
2230 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2231 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2238 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2239 See \`config.log' for more details." >&5
2240 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2241 See \`config.log' for more details." >&2;}
2242 { (exit 1); exit 1; }; }
2245 rm -f conftest
$ac_cv_exeext
2246 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2247 echo "${ECHO_T}$ac_cv_exeext" >&6
2249 rm -f conftest.
$ac_ext
2250 EXEEXT
=$ac_cv_exeext
2252 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2253 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2254 if test "${ac_cv_objext+set}" = set; then
2255 echo $ECHO_N "(cached) $ECHO_C" >&6
2257 cat >conftest.
$ac_ext <<_ACEOF
2260 cat confdefs.h
>>conftest.
$ac_ext
2261 cat >>conftest.
$ac_ext <<_ACEOF
2262 /* end confdefs.h. */
2272 rm -f conftest.o conftest.obj
2273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2274 (eval $ac_compile) 2>&5
2276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2277 (exit $ac_status); }; then
2278 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2280 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2281 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2286 echo "$as_me: failed program was:" >&5
2287 sed 's/^/| /' conftest.
$ac_ext >&5
2289 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2290 See \`config.log' for more details." >&5
2291 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2292 See \`config.log' for more details." >&2;}
2293 { (exit 1); exit 1; }; }
2296 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2298 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2299 echo "${ECHO_T}$ac_cv_objext" >&6
2300 OBJEXT
=$ac_cv_objext
2302 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2303 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2304 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2305 echo $ECHO_N "(cached) $ECHO_C" >&6
2307 cat >conftest.
$ac_ext <<_ACEOF
2310 cat confdefs.h
>>conftest.
$ac_ext
2311 cat >>conftest.
$ac_ext <<_ACEOF
2312 /* end confdefs.h. */
2325 rm -f conftest.
$ac_objext
2326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2327 (eval $ac_compile) 2>conftest.er1
2329 grep -v '^ *+' conftest.er1
>conftest.err
2331 cat conftest.err
>&5
2332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2333 (exit $ac_status); } &&
2334 { ac_try
='test -z "$ac_c_werror_flag"
2335 || test ! -s conftest.err'
2336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2340 (exit $ac_status); }; } &&
2341 { ac_try
='test -s conftest.$ac_objext'
2342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346 (exit $ac_status); }; }; then
2349 echo "$as_me: failed program was:" >&5
2350 sed 's/^/| /' conftest.
$ac_ext >&5
2354 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2355 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2358 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2359 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2360 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2361 ac_test_CFLAGS
=${CFLAGS+set}
2362 ac_save_CFLAGS
=$CFLAGS
2364 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2365 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2366 if test "${ac_cv_prog_cc_g+set}" = set; then
2367 echo $ECHO_N "(cached) $ECHO_C" >&6
2369 cat >conftest.
$ac_ext <<_ACEOF
2372 cat confdefs.h
>>conftest.
$ac_ext
2373 cat >>conftest.
$ac_ext <<_ACEOF
2374 /* end confdefs.h. */
2384 rm -f conftest.
$ac_objext
2385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2386 (eval $ac_compile) 2>conftest.er1
2388 grep -v '^ *+' conftest.er1
>conftest.err
2390 cat conftest.err
>&5
2391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2392 (exit $ac_status); } &&
2393 { ac_try
='test -z "$ac_c_werror_flag"
2394 || test ! -s conftest.err'
2395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399 (exit $ac_status); }; } &&
2400 { ac_try
='test -s conftest.$ac_objext'
2401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405 (exit $ac_status); }; }; then
2408 echo "$as_me: failed program was:" >&5
2409 sed 's/^/| /' conftest.
$ac_ext >&5
2413 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2415 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2416 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2417 if test "$ac_test_CFLAGS" = set; then
2418 CFLAGS
=$ac_save_CFLAGS
2419 elif test $ac_cv_prog_cc_g = yes; then
2420 if test "$GCC" = yes; then
2426 if test "$GCC" = yes; then
2432 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2433 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2434 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2435 echo $ECHO_N "(cached) $ECHO_C" >&6
2437 ac_cv_prog_cc_stdc
=no
2439 cat >conftest.
$ac_ext <<_ACEOF
2442 cat confdefs.h
>>conftest.
$ac_ext
2443 cat >>conftest.
$ac_ext <<_ACEOF
2444 /* end confdefs.h. */
2447 #include <sys/types.h>
2448 #include <sys/stat.h>
2449 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2450 struct buf { int x; };
2451 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2452 static char *e (p, i)
2458 static char *f (char * (*g) (char **, int), char **p, ...)
2463 s = g (p, va_arg (v,int));
2468 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2469 function prototypes and stuff, but not '\xHH' hex character constants.
2470 These don't provoke an error unfortunately, instead are silently treated
2471 as 'x'. The following induces an error, until -std1 is added to get
2472 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2473 array size at least. It's necessary to write '\x00'==0 to get something
2474 that's true only with -std1. */
2475 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2477 int test (int i, double x);
2478 struct s1 {int (*f) (int a);};
2479 struct s2 {int (*f) (double a);};
2480 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2486 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2491 # Don't try gcc -ansi; that turns off useful extensions and
2492 # breaks some systems' header files.
2493 # AIX -qlanglvl=ansi
2494 # Ultrix and OSF/1 -std1
2495 # HP-UX 10.20 and later -Ae
2496 # HP-UX older versions -Aa -D_HPUX_SOURCE
2497 # SVR4 -Xc -D__EXTENSIONS__
2498 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2500 CC
="$ac_save_CC $ac_arg"
2501 rm -f conftest.
$ac_objext
2502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2503 (eval $ac_compile) 2>conftest.er1
2505 grep -v '^ *+' conftest.er1
>conftest.err
2507 cat conftest.err
>&5
2508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509 (exit $ac_status); } &&
2510 { ac_try
='test -z "$ac_c_werror_flag"
2511 || test ! -s conftest.err'
2512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2516 (exit $ac_status); }; } &&
2517 { ac_try
='test -s conftest.$ac_objext'
2518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2522 (exit $ac_status); }; }; then
2523 ac_cv_prog_cc_stdc
=$ac_arg
2526 echo "$as_me: failed program was:" >&5
2527 sed 's/^/| /' conftest.
$ac_ext >&5
2530 rm -f conftest.err conftest.
$ac_objext
2532 rm -f conftest.
$ac_ext conftest.
$ac_objext
2537 case "x$ac_cv_prog_cc_stdc" in
2539 echo "$as_me:$LINENO: result: none needed" >&5
2540 echo "${ECHO_T}none needed" >&6 ;;
2542 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2543 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2544 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2547 # Some people use a C++ compiler to compile C. Since we use `exit',
2548 # in C++ we need to declare it. In case someone uses the same compiler
2549 # for both compiling C and C++ we need to have the C++ compiler decide
2550 # the declaration of exit, since it's the most demanding environment.
2551 cat >conftest.
$ac_ext <<_ACEOF
2556 rm -f conftest.
$ac_objext
2557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2558 (eval $ac_compile) 2>conftest.er1
2560 grep -v '^ *+' conftest.er1
>conftest.err
2562 cat conftest.err
>&5
2563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564 (exit $ac_status); } &&
2565 { ac_try
='test -z "$ac_c_werror_flag"
2566 || test ! -s conftest.err'
2567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571 (exit $ac_status); }; } &&
2572 { ac_try
='test -s conftest.$ac_objext'
2573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577 (exit $ac_status); }; }; then
2578 for ac_declaration
in \
2580 'extern "C" void std::exit (int) throw (); using std::exit;' \
2581 'extern "C" void std::exit (int); using std::exit;' \
2582 'extern "C" void exit (int) throw ();' \
2583 'extern "C" void exit (int);' \
2586 cat >conftest.
$ac_ext <<_ACEOF
2589 cat confdefs.h
>>conftest.
$ac_ext
2590 cat >>conftest.
$ac_ext <<_ACEOF
2591 /* end confdefs.h. */
2602 rm -f conftest.
$ac_objext
2603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2604 (eval $ac_compile) 2>conftest.er1
2606 grep -v '^ *+' conftest.er1
>conftest.err
2608 cat conftest.err
>&5
2609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610 (exit $ac_status); } &&
2611 { ac_try
='test -z "$ac_c_werror_flag"
2612 || test ! -s conftest.err'
2613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617 (exit $ac_status); }; } &&
2618 { ac_try
='test -s conftest.$ac_objext'
2619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623 (exit $ac_status); }; }; then
2626 echo "$as_me: failed program was:" >&5
2627 sed 's/^/| /' conftest.
$ac_ext >&5
2631 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2632 cat >conftest.
$ac_ext <<_ACEOF
2635 cat confdefs.h
>>conftest.
$ac_ext
2636 cat >>conftest.
$ac_ext <<_ACEOF
2637 /* end confdefs.h. */
2647 rm -f conftest.
$ac_objext
2648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2649 (eval $ac_compile) 2>conftest.er1
2651 grep -v '^ *+' conftest.er1
>conftest.err
2653 cat conftest.err
>&5
2654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655 (exit $ac_status); } &&
2656 { ac_try
='test -z "$ac_c_werror_flag"
2657 || test ! -s conftest.err'
2658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662 (exit $ac_status); }; } &&
2663 { ac_try
='test -s conftest.$ac_objext'
2664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2668 (exit $ac_status); }; }; then
2671 echo "$as_me: failed program was:" >&5
2672 sed 's/^/| /' conftest.
$ac_ext >&5
2675 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2678 if test -n "$ac_declaration"; then
2679 echo '#ifdef __cplusplus' >>confdefs.h
2680 echo $ac_declaration >>confdefs.h
2681 echo '#endif' >>confdefs.h
2685 echo "$as_me: failed program was:" >&5
2686 sed 's/^/| /' conftest.
$ac_ext >&5
2689 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2691 ac_cpp
='$CPP $CPPFLAGS'
2692 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2693 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2694 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2699 echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5
2700 echo $ECHO_N "checking for --with-cxx-main=<compiler>... $ECHO_C" >&6
2702 # Check whether --with-cxx_main or --without-cxx_main was given.
2703 if test "${with_cxx_main+set}" = set; then
2704 withval
="$with_cxx_main"
2708 no
) with_cxx_main
=no
2710 yes) with_cxx_main
=yes
2712 *) with_cxx_main
=yes
2725 echo "$as_me:$LINENO: result: $with_cxx_main" >&5
2726 echo "${ECHO_T}$with_cxx_main" >&6
2732 gcc
) # Extract the first word of "g++", so it can be a program name with args.
2733 set dummy g
++; ac_word
=$2
2734 echo "$as_me:$LINENO: checking for $ac_word" >&5
2735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2736 if test "${ac_cv_path_CXX+set}" = set; then
2737 echo $ECHO_N "(cached) $ECHO_C" >&6
2741 ac_cv_path_CXX
="$CXX" # Let the user override the test with a path.
2744 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2745 for as_dir
in notfound
2748 test -z "$as_dir" && as_dir
=.
2749 for ac_exec_ext
in '' $ac_executable_extensions; do
2750 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2751 ac_cv_path_CXX
="$as_dir/$ac_word$ac_exec_ext"
2752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2758 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX
="g++"
2764 if test -n "$CXX"; then
2765 echo "$as_me:$LINENO: result: $CXX" >&5
2766 echo "${ECHO_T}$CXX" >&6
2768 echo "$as_me:$LINENO: result: no" >&5
2769 echo "${ECHO_T}no" >&6
2772 cc
) # Extract the first word of "c++", so it can be a program name with args.
2773 set dummy c
++; ac_word
=$2
2774 echo "$as_me:$LINENO: checking for $ac_word" >&5
2775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2776 if test "${ac_cv_path_CXX+set}" = set; then
2777 echo $ECHO_N "(cached) $ECHO_C" >&6
2781 ac_cv_path_CXX
="$CXX" # Let the user override the test with a path.
2784 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2785 for as_dir
in notfound
2788 test -z "$as_dir" && as_dir
=.
2789 for ac_exec_ext
in '' $ac_executable_extensions; do
2790 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2791 ac_cv_path_CXX
="$as_dir/$ac_word$ac_exec_ext"
2792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2798 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX
="c++"
2804 if test -n "$CXX"; then
2805 echo "$as_me:$LINENO: result: $CXX" >&5
2806 echo "${ECHO_T}$CXX" >&6
2808 echo "$as_me:$LINENO: result: no" >&5
2809 echo "${ECHO_T}no" >&6
2813 if test "$CXX" = "notfound"
2820 for ac_prog
in $CCC c
++ g
++ gcc CC cxx cc
++ cl
2822 # Extract the first word of "$ac_prog", so it can be a program name with args.
2823 set dummy
$ac_prog; ac_word
=$2
2824 echo "$as_me:$LINENO: checking for $ac_word" >&5
2825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2826 if test "${ac_cv_prog_CXX+set}" = set; then
2827 echo $ECHO_N "(cached) $ECHO_C" >&6
2829 if test -n "$CXX"; then
2830 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
2832 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2836 test -z "$as_dir" && as_dir
=.
2837 for ac_exec_ext
in '' $ac_executable_extensions; do
2838 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2839 ac_cv_prog_CXX
="$ac_prog"
2840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2849 if test -n "$CXX"; then
2850 echo "$as_me:$LINENO: result: $CXX" >&5
2851 echo "${ECHO_T}$CXX" >&6
2853 echo "$as_me:$LINENO: result: no" >&5
2854 echo "${ECHO_T}no" >&6
2857 test -n "$CXX" && break
2859 test -n "$CXX" || CXX
="notfound"
2861 if test "$CXX" = "notfound"
2866 if test "$preset_cxx" != "$CXX"
2868 { echo "$as_me:$LINENO: WARNING:
2870 By default, distutils will build C++ extension modules with \"$CXX\".
2871 If this is not intended, then set CXX on the configure command line.
2873 echo "$as_me: WARNING:
2875 By default, distutils will build C++ extension modules with \"$CXX\".
2876 If this is not intended, then set CXX on the configure command line.
2881 # checks for UNIX variants that set C preprocessor variables
2884 ac_cpp
='$CPP $CPPFLAGS'
2885 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2886 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2887 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2888 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2889 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2890 # On Suns, sometimes $CPP names a directory.
2891 if test -n "$CPP" && test -d "$CPP"; then
2894 if test -z "$CPP"; then
2895 if test "${ac_cv_prog_CPP+set}" = set; then
2896 echo $ECHO_N "(cached) $ECHO_C" >&6
2898 # Double quotes because CPP needs to be expanded
2899 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2902 for ac_c_preproc_warn_flag
in '' yes
2904 # Use a header file that comes with gcc, so configuring glibc
2905 # with a fresh cross-compiler works.
2906 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2907 # <limits.h> exists even on freestanding compilers.
2908 # On the NeXT, cc -E runs the code through the compiler's parser,
2909 # not just through cpp. "Syntax error" is here to catch this case.
2910 cat >conftest.
$ac_ext <<_ACEOF
2913 cat confdefs.h
>>conftest.
$ac_ext
2914 cat >>conftest.
$ac_ext <<_ACEOF
2915 /* end confdefs.h. */
2917 # include <limits.h>
2919 # include <assert.h>
2923 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2924 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2926 grep -v '^ *+' conftest.er1
>conftest.err
2928 cat conftest.err
>&5
2929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930 (exit $ac_status); } >/dev
/null
; then
2931 if test -s conftest.err
; then
2932 ac_cpp_err
=$ac_c_preproc_warn_flag
2933 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2940 if test -z "$ac_cpp_err"; then
2943 echo "$as_me: failed program was:" >&5
2944 sed 's/^/| /' conftest.
$ac_ext >&5
2946 # Broken: fails on valid input.
2949 rm -f conftest.err conftest.
$ac_ext
2951 # OK, works on sane cases. Now check whether non-existent headers
2952 # can be detected and how.
2953 cat >conftest.
$ac_ext <<_ACEOF
2956 cat confdefs.h
>>conftest.
$ac_ext
2957 cat >>conftest.
$ac_ext <<_ACEOF
2958 /* end confdefs.h. */
2959 #include <ac_nonexistent.h>
2961 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2962 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2964 grep -v '^ *+' conftest.er1
>conftest.err
2966 cat conftest.err
>&5
2967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968 (exit $ac_status); } >/dev
/null
; then
2969 if test -s conftest.err
; then
2970 ac_cpp_err
=$ac_c_preproc_warn_flag
2971 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2978 if test -z "$ac_cpp_err"; then
2979 # Broken: success on invalid input.
2982 echo "$as_me: failed program was:" >&5
2983 sed 's/^/| /' conftest.
$ac_ext >&5
2985 # Passes both tests.
2989 rm -f conftest.err conftest.
$ac_ext
2992 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2993 rm -f conftest.err conftest.
$ac_ext
2994 if $ac_preproc_ok; then
3006 echo "$as_me:$LINENO: result: $CPP" >&5
3007 echo "${ECHO_T}$CPP" >&6
3009 for ac_c_preproc_warn_flag
in '' yes
3011 # Use a header file that comes with gcc, so configuring glibc
3012 # with a fresh cross-compiler works.
3013 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3014 # <limits.h> exists even on freestanding compilers.
3015 # On the NeXT, cc -E runs the code through the compiler's parser,
3016 # not just through cpp. "Syntax error" is here to catch this case.
3017 cat >conftest.
$ac_ext <<_ACEOF
3020 cat confdefs.h
>>conftest.
$ac_ext
3021 cat >>conftest.
$ac_ext <<_ACEOF
3022 /* end confdefs.h. */
3024 # include <limits.h>
3026 # include <assert.h>
3030 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3031 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3033 grep -v '^ *+' conftest.er1
>conftest.err
3035 cat conftest.err
>&5
3036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037 (exit $ac_status); } >/dev
/null
; then
3038 if test -s conftest.err
; then
3039 ac_cpp_err
=$ac_c_preproc_warn_flag
3040 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3047 if test -z "$ac_cpp_err"; then
3050 echo "$as_me: failed program was:" >&5
3051 sed 's/^/| /' conftest.
$ac_ext >&5
3053 # Broken: fails on valid input.
3056 rm -f conftest.err conftest.
$ac_ext
3058 # OK, works on sane cases. Now check whether non-existent headers
3059 # can be detected and how.
3060 cat >conftest.
$ac_ext <<_ACEOF
3063 cat confdefs.h
>>conftest.
$ac_ext
3064 cat >>conftest.
$ac_ext <<_ACEOF
3065 /* end confdefs.h. */
3066 #include <ac_nonexistent.h>
3068 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3069 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3071 grep -v '^ *+' conftest.er1
>conftest.err
3073 cat conftest.err
>&5
3074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075 (exit $ac_status); } >/dev
/null
; then
3076 if test -s conftest.err
; then
3077 ac_cpp_err
=$ac_c_preproc_warn_flag
3078 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3085 if test -z "$ac_cpp_err"; then
3086 # Broken: success on invalid input.
3089 echo "$as_me: failed program was:" >&5
3090 sed 's/^/| /' conftest.
$ac_ext >&5
3092 # Passes both tests.
3096 rm -f conftest.err conftest.
$ac_ext
3099 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3100 rm -f conftest.err conftest.
$ac_ext
3101 if $ac_preproc_ok; then
3104 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3105 See \`config.log' for more details." >&5
3106 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3107 See \`config.log' for more details." >&2;}
3108 { (exit 1); exit 1; }; }
3112 ac_cpp
='$CPP $CPPFLAGS'
3113 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3114 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3115 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3118 echo "$as_me:$LINENO: checking for egrep" >&5
3119 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3120 if test "${ac_cv_prog_egrep+set}" = set; then
3121 echo $ECHO_N "(cached) $ECHO_C" >&6
3123 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3124 then ac_cv_prog_egrep
='grep -E'
3125 else ac_cv_prog_egrep
='egrep'
3128 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3129 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3130 EGREP
=$ac_cv_prog_egrep
3134 echo "$as_me:$LINENO: checking for AIX" >&5
3135 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3136 cat >conftest.
$ac_ext <<_ACEOF
3139 cat confdefs.h
>>conftest.
$ac_ext
3140 cat >>conftest.
$ac_ext <<_ACEOF
3141 /* end confdefs.h. */
3147 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3148 $EGREP "yes" >/dev
/null
2>&1; then
3149 echo "$as_me:$LINENO: result: yes" >&5
3150 echo "${ECHO_T}yes" >&6
3151 cat >>confdefs.h
<<\_ACEOF
3152 #define _ALL_SOURCE 1
3156 echo "$as_me:$LINENO: result: no" >&5
3157 echo "${ECHO_T}no" >&6
3163 # Check for unsupported systems
3164 case $ac_sys_system/$ac_sys_release in
3166 echo This system \
($ac_sys_system/$ac_sys_release\
) is no longer supported.
3167 echo See README
for details.
3172 echo "$as_me:$LINENO: checking for --with-suffix" >&5
3173 echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6
3175 # Check whether --with-suffix or --without-suffix was given.
3176 if test "${with_suffix+set}" = set; then
3177 withval
="$with_suffix"
3182 *) EXEEXT
=$withval;;
3185 echo "$as_me:$LINENO: result: $EXEEXT" >&5
3186 echo "${ECHO_T}$EXEEXT" >&6
3188 # Test whether we're running on a non-case-sensitive system, in which
3189 # case we give a warning if no ext is given
3191 echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
3192 echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6
3193 if test ! -d CaseSensitiveTestDir
; then
3194 mkdir CaseSensitiveTestDir
3197 if test -d casesensitivetestdir
3199 echo "$as_me:$LINENO: result: yes" >&5
3200 echo "${ECHO_T}yes" >&6
3203 echo "$as_me:$LINENO: result: no" >&5
3204 echo "${ECHO_T}no" >&6
3207 rmdir CaseSensitiveTestDir
3212 gcc
) CC
="$CC -D_HAVE_BSDI";;
3216 case $ac_sys_system in
3219 cc|
*/cc
) CC
="$CC -Ae";;
3223 cc
) CC
="$CC -Wl,-Bexport";;
3226 # Some functions have a prototype only with that define, e.g. confstr
3228 cat >>confdefs.h
<<\_ACEOF
3229 #define __EXTENSIONS__ 1
3237 echo "$as_me:$LINENO: checking LIBRARY" >&5
3238 echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6
3239 if test -z "$LIBRARY"
3241 LIBRARY
='libpython$(VERSION).a'
3243 echo "$as_me:$LINENO: result: $LIBRARY" >&5
3244 echo "${ECHO_T}$LIBRARY" >&6
3246 # LDLIBRARY is the name of the library to link against (as opposed to the
3247 # name of the library into which to insert object files). BLDLIBRARY is also
3248 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
3249 # is blank as the main program is not linked directly against LDLIBRARY.
3250 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
3251 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
3252 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
3253 # DLLLIBRARY is the shared (i.e., DLL) library.
3255 # RUNSHARED is used to run shared python without installed libraries
3257 # INSTSONAME is the name of the shared library that will be use to install
3258 # on the system - some systems like version suffix, others don't
3265 LDLIBRARY
="$LIBRARY"
3266 BLDLIBRARY
='$(LDLIBRARY)'
3267 INSTSONAME
='$(LDLIBRARY)'
3272 # LINKCC is the command that links the python executable -- default is $(CC).
3273 # If CXX is set, and if it is needed to link a main function that was
3274 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
3275 # python might then depend on the C++ runtime
3276 # This is altered for AIX in order to build the export list before
3279 echo "$as_me:$LINENO: checking LINKCC" >&5
3280 echo $ECHO_N "checking LINKCC... $ECHO_C" >&6
3281 if test -z "$LINKCC"
3283 LINKCC
='$(PURIFY) $(MAINCC)'
3284 case $ac_sys_system in
3287 if test $ac_sys_release -ge 5 -o \
3288 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
3291 LINKCC
="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
3293 LINKCC
="$LINKCC -L/usr/lib/ia64l64";;
3296 echo "$as_me:$LINENO: result: $LINKCC" >&5
3297 echo "${ECHO_T}$LINKCC" >&6
3299 echo "$as_me:$LINENO: checking for --enable-shared" >&5
3300 echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6
3301 # Check whether --enable-shared or --disable-shared was given.
3302 if test "${enable_shared+set}" = set; then
3303 enableval
="$enable_shared"
3307 if test -z "$enable_shared"
3309 case $ac_sys_system in
3311 enable_shared
="yes";;
3313 enable_shared
="no";;
3316 echo "$as_me:$LINENO: result: $enable_shared" >&5
3317 echo "${ECHO_T}$enable_shared" >&6
3319 echo "$as_me:$LINENO: checking for --enable-profiling" >&5
3320 echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6
3321 # Check whether --enable-profiling or --disable-profiling was given.
3322 if test "${enable_profiling+set}" = set; then
3323 enableval
="$enable_profiling"
3326 if test "$cross_compiling" = yes; then
3327 ac_enable_profiling
="no"
3329 cat >conftest.
$ac_ext <<_ACEOF
3332 cat confdefs.h
>>conftest.
$ac_ext
3333 cat >>conftest.
$ac_ext <<_ACEOF
3334 /* end confdefs.h. */
3335 int main() { return 0; }
3337 rm -f conftest
$ac_exeext
3338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3339 (eval $ac_link) 2>&5
3341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3342 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347 (exit $ac_status); }; }; then
3348 ac_enable_profiling
="yes"
3350 echo "$as_me: program exited with status $ac_status" >&5
3351 echo "$as_me: failed program was:" >&5
3352 sed 's/^/| /' conftest.
$ac_ext >&5
3355 ac_enable_profiling
="no"
3357 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3361 echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5
3362 echo "${ECHO_T}$ac_enable_profiling" >&6
3364 case "$ac_enable_profiling" in
3366 BASECFLAGS
="-pg $BASECFLAGS"
3367 LDFLAGS
="-pg $LDFLAGS"
3371 echo "$as_me:$LINENO: checking LDLIBRARY" >&5
3372 echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6
3374 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
3375 # library that we build, but we do not want to link against it (we
3376 # will find it with a -framework option). For this reason there is an
3377 # extra variable BLDLIBRARY against which Python and the extension
3378 # modules are linked, BLDLIBRARY. This is normally the same as
3379 # LDLIBRARY, but empty for MacOSX framework builds.
3380 if test "$enable_framework"
3382 LDLIBRARY
='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
3383 RUNSHARED
=DYLD_FRAMEWORK_PATH
="`pwd`:$DYLD_FRAMEWORK_PATH"
3386 BLDLIBRARY
='$(LDLIBRARY)'
3389 # Other platforms follow
3390 if test $enable_shared = "yes"; then
3392 cat >>confdefs.h
<<\_ACEOF
3393 #define Py_ENABLE_SHARED 1
3396 case $ac_sys_system in
3398 LDLIBRARY
='libpython$(VERSION).so'
3401 LDLIBRARY
='libpython$(VERSION).dll.a'
3402 DLLLIBRARY
='libpython$(VERSION).dll'
3405 LDLIBRARY
='libpython$(VERSION).so'
3406 BLDLIBRARY
='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
3407 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
3408 INSTSONAME
="$LDLIBRARY".
$SOVERSION
3410 Linux
*|GNU
*|NetBSD
*|FreeBSD
*|DragonFly
*)
3411 LDLIBRARY
='libpython$(VERSION).so'
3412 BLDLIBRARY
='-L. -lpython$(VERSION)'
3413 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
3414 case $ac_sys_system in
3416 SOVERSION
=`echo $SOVERSION|cut -d "." -f 1`
3419 INSTSONAME
="$LDLIBRARY".
$SOVERSION
3424 LDLIBRARY
='libpython$(VERSION).so'
3427 LDLIBRARY
='libpython$(VERSION).sl'
3430 BLDLIBRARY
='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
3431 RUNSHARED
=SHLIB_PATH
=`pwd`:${SHLIB_PATH}
3434 LDLIBRARY
='libpython$(VERSION).so'
3435 BLDLIBRARY
='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
3436 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
3439 LDLIBRARY
='libpython$(VERSION).so'
3440 BLDLIBRARY
='-L. -lpython$(VERSION)'
3441 RUNSHARED
=DLL_PATH
=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
3444 else # shared is disabled
3445 case $ac_sys_system in
3447 BLDLIBRARY
='$(LIBRARY)'
3448 LDLIBRARY
='libpython$(VERSION).dll.a'
3453 echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
3454 echo "${ECHO_T}$LDLIBRARY" >&6
3456 if test -n "$ac_tool_prefix"; then
3457 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3458 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3459 echo "$as_me:$LINENO: checking for $ac_word" >&5
3460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3461 if test "${ac_cv_prog_RANLIB+set}" = set; then
3462 echo $ECHO_N "(cached) $ECHO_C" >&6
3464 if test -n "$RANLIB"; then
3465 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3467 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3471 test -z "$as_dir" && as_dir
=.
3472 for ac_exec_ext
in '' $ac_executable_extensions; do
3473 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3474 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3483 RANLIB
=$ac_cv_prog_RANLIB
3484 if test -n "$RANLIB"; then
3485 echo "$as_me:$LINENO: result: $RANLIB" >&5
3486 echo "${ECHO_T}$RANLIB" >&6
3488 echo "$as_me:$LINENO: result: no" >&5
3489 echo "${ECHO_T}no" >&6
3493 if test -z "$ac_cv_prog_RANLIB"; then
3494 ac_ct_RANLIB
=$RANLIB
3495 # Extract the first word of "ranlib", so it can be a program name with args.
3496 set dummy ranlib
; ac_word
=$2
3497 echo "$as_me:$LINENO: checking for $ac_word" >&5
3498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3499 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3500 echo $ECHO_N "(cached) $ECHO_C" >&6
3502 if test -n "$ac_ct_RANLIB"; then
3503 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3505 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3509 test -z "$as_dir" && as_dir
=.
3510 for ac_exec_ext
in '' $ac_executable_extensions; do
3511 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3512 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3519 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
3522 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3523 if test -n "$ac_ct_RANLIB"; then
3524 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3525 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3527 echo "$as_me:$LINENO: result: no" >&5
3528 echo "${ECHO_T}no" >&6
3531 RANLIB
=$ac_ct_RANLIB
3533 RANLIB
="$ac_cv_prog_RANLIB"
3537 for ac_prog
in ar aal
3539 # Extract the first word of "$ac_prog", so it can be a program name with args.
3540 set dummy
$ac_prog; ac_word
=$2
3541 echo "$as_me:$LINENO: checking for $ac_word" >&5
3542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3543 if test "${ac_cv_prog_AR+set}" = set; then
3544 echo $ECHO_N "(cached) $ECHO_C" >&6
3546 if test -n "$AR"; then
3547 ac_cv_prog_AR
="$AR" # Let the user override the test.
3549 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3553 test -z "$as_dir" && as_dir
=.
3554 for ac_exec_ext
in '' $ac_executable_extensions; do
3555 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3556 ac_cv_prog_AR
="$ac_prog"
3557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3566 if test -n "$AR"; then
3567 echo "$as_me:$LINENO: result: $AR" >&5
3568 echo "${ECHO_T}$AR" >&6
3570 echo "$as_me:$LINENO: result: no" >&5
3571 echo "${ECHO_T}no" >&6
3574 test -n "$AR" && break
3576 test -n "$AR" || AR
="ar"
3580 # Extract the first word of "svnversion", so it can be a program name with args.
3581 set dummy svnversion
; ac_word
=$2
3582 echo "$as_me:$LINENO: checking for $ac_word" >&5
3583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3584 if test "${ac_cv_prog_SVNVERSION+set}" = set; then
3585 echo $ECHO_N "(cached) $ECHO_C" >&6
3587 if test -n "$SVNVERSION"; then
3588 ac_cv_prog_SVNVERSION
="$SVNVERSION" # Let the user override the test.
3590 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3594 test -z "$as_dir" && as_dir
=.
3595 for ac_exec_ext
in '' $ac_executable_extensions; do
3596 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3597 ac_cv_prog_SVNVERSION
="found"
3598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3604 test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION
="not-found"
3607 SVNVERSION
=$ac_cv_prog_SVNVERSION
3608 if test -n "$SVNVERSION"; then
3609 echo "$as_me:$LINENO: result: $SVNVERSION" >&5
3610 echo "${ECHO_T}$SVNVERSION" >&6
3612 echo "$as_me:$LINENO: result: no" >&5
3613 echo "${ECHO_T}no" >&6
3616 if test $SVNVERSION = found
3618 SVNVERSION
="svnversion \$(srcdir)"
3620 SVNVERSION
="echo exported"
3625 # install -d does not work on BSDI or HP-UX
3626 if test -z "$INSTALL"
3628 INSTALL
="${srcdir}/install-sh -c"
3632 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
3633 if test -f $ac_dir/install-sh
; then
3635 ac_install_sh
="$ac_aux_dir/install-sh -c"
3637 elif test -f $ac_dir/install.sh
; then
3639 ac_install_sh
="$ac_aux_dir/install.sh -c"
3641 elif test -f $ac_dir/shtool
; then
3643 ac_install_sh
="$ac_aux_dir/shtool install -c"
3647 if test -z "$ac_aux_dir"; then
3648 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
3649 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
3650 { (exit 1); exit 1; }; }
3652 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
3653 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
3654 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3656 # Find a good install program. We prefer a C program (faster),
3657 # so one script is as good as another. But avoid the broken or
3658 # incompatible versions:
3659 # SysV /etc/install, /usr/sbin/install
3660 # SunOS /usr/etc/install
3661 # IRIX /sbin/install
3663 # AmigaOS /C/install, which installs bootblocks on floppy discs
3664 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3665 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3666 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3667 # OS/2's system install, which has a completely different semantic
3668 # ./install, which can be erroneously created by make from ./install.sh.
3669 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3670 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3671 if test -z "$INSTALL"; then
3672 if test "${ac_cv_path_install+set}" = set; then
3673 echo $ECHO_N "(cached) $ECHO_C" >&6
3675 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3679 test -z "$as_dir" && as_dir
=.
3680 # Account for people who put trailing slashes in PATH elements.
3682 .
/ | .
// |
/cC
/* | \
3683 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3684 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
3687 # OSF1 and SCO ODT 3.0 have their own names for install.
3688 # Don't use installbsd from OSF since it installs stuff as root
3690 for ac_prog
in ginstall scoinst
install; do
3691 for ac_exec_ext
in '' $ac_executable_extensions; do
3692 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3693 if test $ac_prog = install &&
3694 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3695 # AIX install. It has an incompatible calling convention.
3697 elif test $ac_prog = install &&
3698 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3699 # program-specific install script used by HP pwplus--don't use.
3702 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3714 if test "${ac_cv_path_install+set}" = set; then
3715 INSTALL
=$ac_cv_path_install
3717 # As a last resort, use the slow shell script. We don't cache a
3718 # path for INSTALL within a source directory, because that will
3719 # break other packages using the cache if that directory is
3720 # removed, or if the path is relative.
3721 INSTALL
=$ac_install_sh
3724 echo "$as_me:$LINENO: result: $INSTALL" >&5
3725 echo "${ECHO_T}$INSTALL" >&6
3727 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3728 # It thinks the first close brace ends the variable substitution.
3729 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3731 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3733 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3736 # Not every filesystem supports hard links
3738 if test -z "$LN" ; then
3739 case $ac_sys_system in
3741 CYGWIN
*) LN
="ln -s";;
3742 atheos
*) LN
="ln -s";;
3747 # Check for --with-pydebug
3748 echo "$as_me:$LINENO: checking for --with-pydebug" >&5
3749 echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6
3751 # Check whether --with-pydebug or --without-pydebug was given.
3752 if test "${with_pydebug+set}" = set; then
3753 withval
="$with_pydebug"
3755 if test "$withval" != no
3758 cat >>confdefs.h
<<\_ACEOF
3762 echo "$as_me:$LINENO: result: yes" >&5
3763 echo "${ECHO_T}yes" >&6;
3765 else echo "$as_me:$LINENO: result: no" >&5
3766 echo "${ECHO_T}no" >&6; Py_DEBUG
='false'
3769 echo "$as_me:$LINENO: result: no" >&5
3770 echo "${ECHO_T}no" >&6
3773 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
3774 # merged with this chunk of code?
3776 # Optimizer/debugger flags
3777 # ------------------------
3778 # (The following bit of code is complicated enough - please keep things
3779 # indented properly. Just pretend you're editing Python code. ;-)
3781 # There are two parallel sets of case statements below, one that checks to
3782 # see if OPT was set and one that does BASECFLAGS setting based upon
3783 # compiler and platform. BASECFLAGS tweaks need to be made even if the
3786 # tweak OPT based on compiler and platform, only if the user didn't set
3787 # it on the command line
3793 if test "$CC" != 'g++' ; then
3794 STRICT_PROTO
="-Wstrict-prototypes"
3796 case $ac_cv_prog_cc_g in
3798 if test "$Py_DEBUG" = 'true' ; then
3799 # Optimization messes up debuggers, so turn it off for
3801 OPT
="-g -Wall $STRICT_PROTO"
3803 OPT
="-g -O3 -Wall $STRICT_PROTO"
3807 OPT
="-O3 -Wall $STRICT_PROTO"
3810 case $ac_sys_system in
3811 SCO_SV
*) OPT
="$OPT -m486 -DSCO5"
3821 # The current (beta) Monterey compiler dies with optimizations
3822 # XXX what is Monterey? Does it still die w/ -O? Can we get rid of this?
3823 case $ac_sys_system in
3832 # tweak BASECFLAGS based on compiler and platform
3835 # Python violates C99 rules, by casting between incompatible
3836 # pointer types. GCC may generate bad code as a result of that,
3837 # so use -fno-strict-aliasing if supported.
3838 echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5
3839 echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6
3841 CC
="$CC -fno-strict-aliasing"
3842 if test "$cross_compiling" = yes; then
3843 ac_cv_no_strict_aliasing_ok
=no
3845 cat >conftest.
$ac_ext <<_ACEOF
3848 cat confdefs.h
>>conftest.
$ac_ext
3849 cat >>conftest.
$ac_ext <<_ACEOF
3850 /* end confdefs.h. */
3851 int main() { return 0; }
3853 rm -f conftest
$ac_exeext
3854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3855 (eval $ac_link) 2>&5
3857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3863 (exit $ac_status); }; }; then
3864 ac_cv_no_strict_aliasing_ok
=yes
3866 echo "$as_me: program exited with status $ac_status" >&5
3867 echo "$as_me: failed program was:" >&5
3868 sed 's/^/| /' conftest.
$ac_ext >&5
3871 ac_cv_no_strict_aliasing_ok
=no
3873 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3876 echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5
3877 echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6
3878 if test $ac_cv_no_strict_aliasing_ok = yes
3880 BASECFLAGS
="$BASECFLAGS -fno-strict-aliasing"
3882 case $ac_sys_system in
3884 BASECFLAGS
="$BASECFLAGS -m486 -DSCO5"
3886 # is there any other compiler on Darwin besides gcc?
3888 BASECFLAGS
="$BASECFLAGS -Wno-long-double -no-cpp-precomp -mno-fused-madd"
3889 if test "${enable_universalsdk}"; then
3890 BASECFLAGS
="-arch ppc -arch i386 -isysroot ${UNIVERSALSDK} ${BASECFLAGS}"
3895 BASECFLAGS
="$BASECFLAGS -mieee"
3901 case $ac_sys_system in
3902 OpenUNIX
*|UnixWare
*)
3903 BASECFLAGS
="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
3906 BASECFLAGS
="$BASECFLAGS -ieee -std"
3909 BASECFLAGS
="$BASECFLAGS -belf -Ki486 -DSCO5"
3915 if test "$Py_DEBUG" = 'true'; then
3921 if test "$ac_arch_flags"
3923 BASECFLAGS
="$BASECFLAGS $ac_arch_flags"
3926 # disable check for icc since it seems to pass, but generates a warning
3929 ac_cv_opt_olimit_ok
=no
3932 echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
3933 echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6
3934 if test "${ac_cv_opt_olimit_ok+set}" = set; then
3935 echo $ECHO_N "(cached) $ECHO_C" >&6
3938 CC
="$CC -OPT:Olimit=0"
3939 if test "$cross_compiling" = yes; then
3940 ac_cv_opt_olimit_ok
=no
3942 cat >conftest.
$ac_ext <<_ACEOF
3945 cat confdefs.h
>>conftest.
$ac_ext
3946 cat >>conftest.
$ac_ext <<_ACEOF
3947 /* end confdefs.h. */
3948 int main() { return 0; }
3950 rm -f conftest
$ac_exeext
3951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3952 (eval $ac_link) 2>&5
3954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3955 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960 (exit $ac_status); }; }; then
3961 ac_cv_opt_olimit_ok
=yes
3963 echo "$as_me: program exited with status $ac_status" >&5
3964 echo "$as_me: failed program was:" >&5
3965 sed 's/^/| /' conftest.
$ac_ext >&5
3968 ac_cv_opt_olimit_ok
=no
3970 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3975 echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
3976 echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6
3977 if test $ac_cv_opt_olimit_ok = yes; then
3978 case $ac_sys_system in
3979 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
3980 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
3985 BASECFLAGS
="$BASECFLAGS -OPT:Olimit=0"
3989 echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
3990 echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6
3991 if test "${ac_cv_olimit_ok+set}" = set; then
3992 echo $ECHO_N "(cached) $ECHO_C" >&6
3995 CC
="$CC -Olimit 1500"
3996 if test "$cross_compiling" = yes; then
3999 cat >conftest.
$ac_ext <<_ACEOF
4002 cat confdefs.h
>>conftest.
$ac_ext
4003 cat >>conftest.
$ac_ext <<_ACEOF
4004 /* end confdefs.h. */
4005 int main() { return 0; }
4007 rm -f conftest
$ac_exeext
4008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4009 (eval $ac_link) 2>&5
4011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4017 (exit $ac_status); }; }; then
4020 echo "$as_me: program exited with status $ac_status" >&5
4021 echo "$as_me: failed program was:" >&5
4022 sed 's/^/| /' conftest.
$ac_ext >&5
4027 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4032 echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
4033 echo "${ECHO_T}$ac_cv_olimit_ok" >&6
4034 if test $ac_cv_olimit_ok = yes; then
4035 BASECFLAGS
="$BASECFLAGS -Olimit 1500"
4039 # On some compilers, pthreads are available without further options
4040 # (e.g. MacOS X). On some of these systems, the compiler will not
4041 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
4042 # So we have to see first whether pthreads are available without
4043 # options before we can check whether -Kpthread improves anything.
4044 echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
4045 echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6
4046 if test "${ac_cv_pthread_is_default+set}" = set; then
4047 echo $ECHO_N "(cached) $ECHO_C" >&6
4049 if test "$cross_compiling" = yes; then
4050 ac_cv_pthread_is_default
=no
4052 cat >conftest.
$ac_ext <<_ACEOF
4055 cat confdefs.h
>>conftest.
$ac_ext
4056 cat >>conftest.
$ac_ext <<_ACEOF
4057 /* end confdefs.h. */
4059 #include <pthread.h>
4061 void* routine(void* p){return NULL;}
4065 if(pthread_create(&p,NULL,routine,NULL)!=0)
4067 (void)pthread_detach(p);
4072 rm -f conftest
$ac_exeext
4073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4074 (eval $ac_link) 2>&5
4076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082 (exit $ac_status); }; }; then
4084 ac_cv_pthread_is_default
=yes
4089 echo "$as_me: program exited with status $ac_status" >&5
4090 echo "$as_me: failed program was:" >&5
4091 sed 's/^/| /' conftest.
$ac_ext >&5
4094 ac_cv_pthread_is_default
=no
4096 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4101 echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
4102 echo "${ECHO_T}$ac_cv_pthread_is_default" >&6
4105 if test $ac_cv_pthread_is_default = yes
4109 # -Kpthread, if available, provides the right #defines
4110 # and linker options to make pthread_create available
4111 # Some compilers won't report that they do not support -Kpthread,
4112 # so we need to run a program to see whether it really made the
4113 # function available.
4114 echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
4115 echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6
4116 if test "${ac_cv_kpthread+set}" = set; then
4117 echo $ECHO_N "(cached) $ECHO_C" >&6
4121 if test "$cross_compiling" = yes; then
4124 cat >conftest.
$ac_ext <<_ACEOF
4127 cat confdefs.h
>>conftest.
$ac_ext
4128 cat >>conftest.
$ac_ext <<_ACEOF
4129 /* end confdefs.h. */
4131 #include <pthread.h>
4133 void* routine(void* p){return NULL;}
4137 if(pthread_create(&p,NULL,routine,NULL)!=0)
4139 (void)pthread_detach(p);
4144 rm -f conftest
$ac_exeext
4145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4146 (eval $ac_link) 2>&5
4148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4149 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154 (exit $ac_status); }; }; then
4157 echo "$as_me: program exited with status $ac_status" >&5
4158 echo "$as_me: failed program was:" >&5
4159 sed 's/^/| /' conftest.
$ac_ext >&5
4164 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4169 echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
4170 echo "${ECHO_T}$ac_cv_kpthread" >&6
4173 if test $ac_cv_kpthread = no
-a $ac_cv_pthread_is_default = no
4175 # -Kthread, if available, provides the right #defines
4176 # and linker options to make pthread_create available
4177 # Some compilers won't report that they do not support -Kthread,
4178 # so we need to run a program to see whether it really made the
4179 # function available.
4180 echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
4181 echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6
4182 if test "${ac_cv_kthread+set}" = set; then
4183 echo $ECHO_N "(cached) $ECHO_C" >&6
4187 if test "$cross_compiling" = yes; then
4190 cat >conftest.
$ac_ext <<_ACEOF
4193 cat confdefs.h
>>conftest.
$ac_ext
4194 cat >>conftest.
$ac_ext <<_ACEOF
4195 /* end confdefs.h. */
4197 #include <pthread.h>
4199 void* routine(void* p){return NULL;}
4203 if(pthread_create(&p,NULL,routine,NULL)!=0)
4205 (void)pthread_detach(p);
4210 rm -f conftest
$ac_exeext
4211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4212 (eval $ac_link) 2>&5
4214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4215 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220 (exit $ac_status); }; }; then
4223 echo "$as_me: program exited with status $ac_status" >&5
4224 echo "$as_me: failed program was:" >&5
4225 sed 's/^/| /' conftest.
$ac_ext >&5
4230 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4235 echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
4236 echo "${ECHO_T}$ac_cv_kthread" >&6
4239 if test $ac_cv_kthread = no
-a $ac_cv_pthread_is_default = no
4241 # -pthread, if available, provides the right #defines
4242 # and linker options to make pthread_create available
4243 # Some compilers won't report that they do not support -pthread,
4244 # so we need to run a program to see whether it really made the
4245 # function available.
4246 echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
4247 echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6
4248 if test "${ac_cv_thread+set}" = set; then
4249 echo $ECHO_N "(cached) $ECHO_C" >&6
4253 if test "$cross_compiling" = yes; then
4256 cat >conftest.
$ac_ext <<_ACEOF
4259 cat confdefs.h
>>conftest.
$ac_ext
4260 cat >>conftest.
$ac_ext <<_ACEOF
4261 /* end confdefs.h. */
4263 #include <pthread.h>
4265 void* routine(void* p){return NULL;}
4269 if(pthread_create(&p,NULL,routine,NULL)!=0)
4271 (void)pthread_detach(p);
4276 rm -f conftest
$ac_exeext
4277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4278 (eval $ac_link) 2>&5
4280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286 (exit $ac_status); }; }; then
4289 echo "$as_me: program exited with status $ac_status" >&5
4290 echo "$as_me: failed program was:" >&5
4291 sed 's/^/| /' conftest.
$ac_ext >&5
4296 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4301 echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
4302 echo "${ECHO_T}$ac_cv_pthread" >&6
4305 # If we have set a CC compiler flag for thread support then
4306 # check if it works for CXX, too.
4310 echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5
4311 echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6
4314 if test "$ac_cv_kpthread" = "yes"
4316 CXX
="$CXX -Kpthread"
4317 ac_cv_cxx_thread
=yes
4318 elif test "$ac_cv_kthread" = "yes"
4321 ac_cv_cxx_thread
=yes
4322 elif test "$ac_cv_pthread" = "yes"
4325 ac_cv_cxx_thread
=yes
4328 if test $ac_cv_cxx_thread = yes
4330 echo 'void foo();int main(){foo();}void foo(){}' > conftest.
$ac_ext
4331 $CXX -c conftest.
$ac_ext 2>&5
4332 if $CXX -o conftest
$ac_exeext conftest.
$ac_objext 2>&5 \
4333 && test -s conftest
$ac_exeext && .
/conftest
$ac_exeext
4335 ac_cv_cxx_thread
=yes
4341 echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
4342 echo "${ECHO_T}$ac_cv_cxx_thread" >&6
4347 # checks for header files
4348 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4349 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4350 if test "${ac_cv_header_stdc+set}" = set; then
4351 echo $ECHO_N "(cached) $ECHO_C" >&6
4353 cat >conftest.
$ac_ext <<_ACEOF
4356 cat confdefs.h
>>conftest.
$ac_ext
4357 cat >>conftest.
$ac_ext <<_ACEOF
4358 /* end confdefs.h. */
4372 rm -f conftest.
$ac_objext
4373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4374 (eval $ac_compile) 2>conftest.er1
4376 grep -v '^ *+' conftest.er1
>conftest.err
4378 cat conftest.err
>&5
4379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4380 (exit $ac_status); } &&
4381 { ac_try
='test -z "$ac_c_werror_flag"
4382 || test ! -s conftest.err'
4383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4387 (exit $ac_status); }; } &&
4388 { ac_try
='test -s conftest.$ac_objext'
4389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393 (exit $ac_status); }; }; then
4394 ac_cv_header_stdc
=yes
4396 echo "$as_me: failed program was:" >&5
4397 sed 's/^/| /' conftest.
$ac_ext >&5
4399 ac_cv_header_stdc
=no
4401 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4403 if test $ac_cv_header_stdc = yes; then
4404 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4405 cat >conftest.
$ac_ext <<_ACEOF
4408 cat confdefs.h
>>conftest.
$ac_ext
4409 cat >>conftest.
$ac_ext <<_ACEOF
4410 /* end confdefs.h. */
4414 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4415 $EGREP "memchr" >/dev
/null
2>&1; then
4418 ac_cv_header_stdc
=no
4424 if test $ac_cv_header_stdc = yes; then
4425 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4426 cat >conftest.
$ac_ext <<_ACEOF
4429 cat confdefs.h
>>conftest.
$ac_ext
4430 cat >>conftest.
$ac_ext <<_ACEOF
4431 /* end confdefs.h. */
4435 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4436 $EGREP "free" >/dev
/null
2>&1; then
4439 ac_cv_header_stdc
=no
4445 if test $ac_cv_header_stdc = yes; then
4446 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4447 if test "$cross_compiling" = yes; then
4450 cat >conftest.
$ac_ext <<_ACEOF
4453 cat confdefs.h
>>conftest.
$ac_ext
4454 cat >>conftest.
$ac_ext <<_ACEOF
4455 /* end confdefs.h. */
4457 #if ((' ' & 0x0FF) == 0x020)
4458 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4459 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4461 # define ISLOWER(c) \
4462 (('a' <= (c) && (c) <= 'i') \
4463 || ('j' <= (c) && (c) <= 'r') \
4464 || ('s' <= (c) && (c) <= 'z'))
4465 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4468 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4473 for (i = 0; i < 256; i++)
4474 if (XOR (islower (i), ISLOWER (i))
4475 || toupper (i) != TOUPPER (i))
4480 rm -f conftest
$ac_exeext
4481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4482 (eval $ac_link) 2>&5
4484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4485 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490 (exit $ac_status); }; }; then
4493 echo "$as_me: program exited with status $ac_status" >&5
4494 echo "$as_me: failed program was:" >&5
4495 sed 's/^/| /' conftest.
$ac_ext >&5
4498 ac_cv_header_stdc
=no
4500 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4504 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4505 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4506 if test $ac_cv_header_stdc = yes; then
4508 cat >>confdefs.h
<<\_ACEOF
4509 #define STDC_HEADERS 1
4514 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4524 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4525 inttypes.h stdint.h unistd.h
4527 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4528 echo "$as_me:$LINENO: checking for $ac_header" >&5
4529 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4530 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4531 echo $ECHO_N "(cached) $ECHO_C" >&6
4533 cat >conftest.
$ac_ext <<_ACEOF
4536 cat confdefs.h
>>conftest.
$ac_ext
4537 cat >>conftest.
$ac_ext <<_ACEOF
4538 /* end confdefs.h. */
4539 $ac_includes_default
4541 #include <$ac_header>
4543 rm -f conftest.
$ac_objext
4544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4545 (eval $ac_compile) 2>conftest.er1
4547 grep -v '^ *+' conftest.er1
>conftest.err
4549 cat conftest.err
>&5
4550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551 (exit $ac_status); } &&
4552 { ac_try
='test -z "$ac_c_werror_flag"
4553 || test ! -s conftest.err'
4554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558 (exit $ac_status); }; } &&
4559 { ac_try
='test -s conftest.$ac_objext'
4560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4564 (exit $ac_status); }; }; then
4565 eval "$as_ac_Header=yes"
4567 echo "$as_me: failed program was:" >&5
4568 sed 's/^/| /' conftest.
$ac_ext >&5
4570 eval "$as_ac_Header=no"
4572 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4574 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4575 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4576 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4577 cat >>confdefs.h
<<_ACEOF
4578 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4634 for ac_header
in asm
/types.h conio.h curses.h direct.h dlfcn.h errno.h \
4636 shadow.h io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \
4637 signal.h stropts.h termios.h thread.h \
4639 sys
/audioio.h sys
/bsdtty.h sys
/file.h sys
/loadavg.h sys
/lock.h sys
/mkdev.h \
4641 sys
/param.h sys
/poll.h sys
/select.h sys
/socket.h sys
/statvfs.h sys
/stat.h \
4643 sys
/times.h sys
/types.h sys
/un.h sys
/utsname.h sys
/wait.h pty.h libutil.h \
4644 sys
/resource.h netpacket
/packet.h sysexits.h bluetooth.h \
4645 bluetooth
/bluetooth.h
4647 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4648 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4649 echo "$as_me:$LINENO: checking for $ac_header" >&5
4650 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4651 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4652 echo $ECHO_N "(cached) $ECHO_C" >&6
4654 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4655 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4657 # Is the header compilable?
4658 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4659 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4660 cat >conftest.
$ac_ext <<_ACEOF
4663 cat confdefs.h
>>conftest.
$ac_ext
4664 cat >>conftest.
$ac_ext <<_ACEOF
4665 /* end confdefs.h. */
4666 $ac_includes_default
4667 #include <$ac_header>
4669 rm -f conftest.
$ac_objext
4670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4671 (eval $ac_compile) 2>conftest.er1
4673 grep -v '^ *+' conftest.er1
>conftest.err
4675 cat conftest.err
>&5
4676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4677 (exit $ac_status); } &&
4678 { ac_try
='test -z "$ac_c_werror_flag"
4679 || test ! -s conftest.err'
4680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4684 (exit $ac_status); }; } &&
4685 { ac_try
='test -s conftest.$ac_objext'
4686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690 (exit $ac_status); }; }; then
4691 ac_header_compiler
=yes
4693 echo "$as_me: failed program was:" >&5
4694 sed 's/^/| /' conftest.
$ac_ext >&5
4696 ac_header_compiler
=no
4698 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4699 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4700 echo "${ECHO_T}$ac_header_compiler" >&6
4702 # Is the header present?
4703 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4704 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4705 cat >conftest.
$ac_ext <<_ACEOF
4708 cat confdefs.h
>>conftest.
$ac_ext
4709 cat >>conftest.
$ac_ext <<_ACEOF
4710 /* end confdefs.h. */
4711 #include <$ac_header>
4713 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4714 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4716 grep -v '^ *+' conftest.er1
>conftest.err
4718 cat conftest.err
>&5
4719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720 (exit $ac_status); } >/dev
/null
; then
4721 if test -s conftest.err
; then
4722 ac_cpp_err
=$ac_c_preproc_warn_flag
4723 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4730 if test -z "$ac_cpp_err"; then
4731 ac_header_preproc
=yes
4733 echo "$as_me: failed program was:" >&5
4734 sed 's/^/| /' conftest.
$ac_ext >&5
4736 ac_header_preproc
=no
4738 rm -f conftest.err conftest.
$ac_ext
4739 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4740 echo "${ECHO_T}$ac_header_preproc" >&6
4742 # So? What about this header?
4743 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4745 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4746 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4747 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4748 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4749 ac_header_preproc
=yes
4752 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4753 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4754 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4755 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4756 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4757 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4758 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4759 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4760 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4761 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4762 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4763 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4766 ## ------------------------------------------------ ##
4767 ## Report this to http://www.python.org/python-bugs ##
4768 ## ------------------------------------------------ ##
4771 sed "s/^/$as_me: WARNING: /" >&2
4774 echo "$as_me:$LINENO: checking for $ac_header" >&5
4775 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4776 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4777 echo $ECHO_N "(cached) $ECHO_C" >&6
4779 eval "$as_ac_Header=\$ac_header_preproc"
4781 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4782 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4785 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4786 cat >>confdefs.h
<<_ACEOF
4787 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4800 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
4801 as_ac_Header
=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4802 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4803 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
4804 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4805 echo $ECHO_N "(cached) $ECHO_C" >&6
4807 cat >conftest.
$ac_ext <<_ACEOF
4810 cat confdefs.h
>>conftest.
$ac_ext
4811 cat >>conftest.
$ac_ext <<_ACEOF
4812 /* end confdefs.h. */
4813 #include <sys/types.h>
4825 rm -f conftest.
$ac_objext
4826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4827 (eval $ac_compile) 2>conftest.er1
4829 grep -v '^ *+' conftest.er1
>conftest.err
4831 cat conftest.err
>&5
4832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4833 (exit $ac_status); } &&
4834 { ac_try
='test -z "$ac_c_werror_flag"
4835 || test ! -s conftest.err'
4836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4840 (exit $ac_status); }; } &&
4841 { ac_try
='test -s conftest.$ac_objext'
4842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4846 (exit $ac_status); }; }; then
4847 eval "$as_ac_Header=yes"
4849 echo "$as_me: failed program was:" >&5
4850 sed 's/^/| /' conftest.
$ac_ext >&5
4852 eval "$as_ac_Header=no"
4854 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4856 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4857 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4858 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4859 cat >>confdefs.h
<<_ACEOF
4860 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4863 ac_header_dirent
=$ac_hdr; break
4867 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4868 if test $ac_header_dirent = dirent.h
; then
4869 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4870 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4871 if test "${ac_cv_search_opendir+set}" = set; then
4872 echo $ECHO_N "(cached) $ECHO_C" >&6
4874 ac_func_search_save_LIBS
=$LIBS
4875 ac_cv_search_opendir
=no
4876 cat >conftest.
$ac_ext <<_ACEOF
4879 cat confdefs.h
>>conftest.
$ac_ext
4880 cat >>conftest.
$ac_ext <<_ACEOF
4881 /* end confdefs.h. */
4883 /* Override any gcc2 internal prototype to avoid an error. */
4887 /* We use char because int might match the return type of a gcc2
4888 builtin and then its argument prototype would still apply. */
4898 rm -f conftest.
$ac_objext conftest
$ac_exeext
4899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4900 (eval $ac_link) 2>conftest.er1
4902 grep -v '^ *+' conftest.er1
>conftest.err
4904 cat conftest.err
>&5
4905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4906 (exit $ac_status); } &&
4907 { ac_try
='test -z "$ac_c_werror_flag"
4908 || test ! -s conftest.err'
4909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4913 (exit $ac_status); }; } &&
4914 { ac_try
='test -s conftest$ac_exeext'
4915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4919 (exit $ac_status); }; }; then
4920 ac_cv_search_opendir
="none required"
4922 echo "$as_me: failed program was:" >&5
4923 sed 's/^/| /' conftest.
$ac_ext >&5
4926 rm -f conftest.err conftest.
$ac_objext \
4927 conftest
$ac_exeext conftest.
$ac_ext
4928 if test "$ac_cv_search_opendir" = no
; then
4929 for ac_lib
in dir
; do
4930 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4931 cat >conftest.
$ac_ext <<_ACEOF
4934 cat confdefs.h
>>conftest.
$ac_ext
4935 cat >>conftest.
$ac_ext <<_ACEOF
4936 /* end confdefs.h. */
4938 /* Override any gcc2 internal prototype to avoid an error. */
4942 /* We use char because int might match the return type of a gcc2
4943 builtin and then its argument prototype would still apply. */
4953 rm -f conftest.
$ac_objext conftest
$ac_exeext
4954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4955 (eval $ac_link) 2>conftest.er1
4957 grep -v '^ *+' conftest.er1
>conftest.err
4959 cat conftest.err
>&5
4960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4961 (exit $ac_status); } &&
4962 { ac_try
='test -z "$ac_c_werror_flag"
4963 || test ! -s conftest.err'
4964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4968 (exit $ac_status); }; } &&
4969 { ac_try
='test -s conftest$ac_exeext'
4970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4974 (exit $ac_status); }; }; then
4975 ac_cv_search_opendir
="-l$ac_lib"
4978 echo "$as_me: failed program was:" >&5
4979 sed 's/^/| /' conftest.
$ac_ext >&5
4982 rm -f conftest.err conftest.
$ac_objext \
4983 conftest
$ac_exeext conftest.
$ac_ext
4986 LIBS
=$ac_func_search_save_LIBS
4988 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4989 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4990 if test "$ac_cv_search_opendir" != no
; then
4991 test "$ac_cv_search_opendir" = "none required" || LIBS
="$ac_cv_search_opendir $LIBS"
4996 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4997 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4998 if test "${ac_cv_search_opendir+set}" = set; then
4999 echo $ECHO_N "(cached) $ECHO_C" >&6
5001 ac_func_search_save_LIBS
=$LIBS
5002 ac_cv_search_opendir
=no
5003 cat >conftest.
$ac_ext <<_ACEOF
5006 cat confdefs.h
>>conftest.
$ac_ext
5007 cat >>conftest.
$ac_ext <<_ACEOF
5008 /* end confdefs.h. */
5010 /* Override any gcc2 internal prototype to avoid an error. */
5014 /* We use char because int might match the return type of a gcc2
5015 builtin and then its argument prototype would still apply. */
5025 rm -f conftest.
$ac_objext conftest
$ac_exeext
5026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5027 (eval $ac_link) 2>conftest.er1
5029 grep -v '^ *+' conftest.er1
>conftest.err
5031 cat conftest.err
>&5
5032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5033 (exit $ac_status); } &&
5034 { ac_try
='test -z "$ac_c_werror_flag"
5035 || test ! -s conftest.err'
5036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5040 (exit $ac_status); }; } &&
5041 { ac_try
='test -s conftest$ac_exeext'
5042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5046 (exit $ac_status); }; }; then
5047 ac_cv_search_opendir
="none required"
5049 echo "$as_me: failed program was:" >&5
5050 sed 's/^/| /' conftest.
$ac_ext >&5
5053 rm -f conftest.err conftest.
$ac_objext \
5054 conftest
$ac_exeext conftest.
$ac_ext
5055 if test "$ac_cv_search_opendir" = no
; then
5057 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5058 cat >conftest.
$ac_ext <<_ACEOF
5061 cat confdefs.h
>>conftest.
$ac_ext
5062 cat >>conftest.
$ac_ext <<_ACEOF
5063 /* end confdefs.h. */
5065 /* Override any gcc2 internal prototype to avoid an error. */
5069 /* We use char because int might match the return type of a gcc2
5070 builtin and then its argument prototype would still apply. */
5080 rm -f conftest.
$ac_objext conftest
$ac_exeext
5081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5082 (eval $ac_link) 2>conftest.er1
5084 grep -v '^ *+' conftest.er1
>conftest.err
5086 cat conftest.err
>&5
5087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5088 (exit $ac_status); } &&
5089 { ac_try
='test -z "$ac_c_werror_flag"
5090 || test ! -s conftest.err'
5091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5095 (exit $ac_status); }; } &&
5096 { ac_try
='test -s conftest$ac_exeext'
5097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5101 (exit $ac_status); }; }; then
5102 ac_cv_search_opendir
="-l$ac_lib"
5105 echo "$as_me: failed program was:" >&5
5106 sed 's/^/| /' conftest.
$ac_ext >&5
5109 rm -f conftest.err conftest.
$ac_objext \
5110 conftest
$ac_exeext conftest.
$ac_ext
5113 LIBS
=$ac_func_search_save_LIBS
5115 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5116 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5117 if test "$ac_cv_search_opendir" != no
; then
5118 test "$ac_cv_search_opendir" = "none required" || LIBS
="$ac_cv_search_opendir $LIBS"
5124 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
5125 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
5126 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
5127 echo $ECHO_N "(cached) $ECHO_C" >&6
5129 cat >conftest.
$ac_ext <<_ACEOF
5132 cat confdefs.h
>>conftest.
$ac_ext
5133 cat >>conftest.
$ac_ext <<_ACEOF
5134 /* end confdefs.h. */
5135 #include <sys/types.h>
5139 return makedev(0, 0);
5144 rm -f conftest.
$ac_objext conftest
$ac_exeext
5145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5146 (eval $ac_link) 2>conftest.er1
5148 grep -v '^ *+' conftest.er1
>conftest.err
5150 cat conftest.err
>&5
5151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5152 (exit $ac_status); } &&
5153 { ac_try
='test -z "$ac_c_werror_flag"
5154 || test ! -s conftest.err'
5155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5159 (exit $ac_status); }; } &&
5160 { ac_try
='test -s conftest$ac_exeext'
5161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5165 (exit $ac_status); }; }; then
5166 ac_cv_header_sys_types_h_makedev
=yes
5168 echo "$as_me: failed program was:" >&5
5169 sed 's/^/| /' conftest.
$ac_ext >&5
5171 ac_cv_header_sys_types_h_makedev
=no
5173 rm -f conftest.err conftest.
$ac_objext \
5174 conftest
$ac_exeext conftest.
$ac_ext
5177 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
5178 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
5180 if test $ac_cv_header_sys_types_h_makedev = no
; then
5181 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5182 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
5183 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
5184 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5185 echo $ECHO_N "(cached) $ECHO_C" >&6
5187 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
5188 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
5190 # Is the header compilable?
5191 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
5192 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
5193 cat >conftest.
$ac_ext <<_ACEOF
5196 cat confdefs.h
>>conftest.
$ac_ext
5197 cat >>conftest.
$ac_ext <<_ACEOF
5198 /* end confdefs.h. */
5199 $ac_includes_default
5200 #include <sys/mkdev.h>
5202 rm -f conftest.
$ac_objext
5203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5204 (eval $ac_compile) 2>conftest.er1
5206 grep -v '^ *+' conftest.er1
>conftest.err
5208 cat conftest.err
>&5
5209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5210 (exit $ac_status); } &&
5211 { ac_try
='test -z "$ac_c_werror_flag"
5212 || test ! -s conftest.err'
5213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5217 (exit $ac_status); }; } &&
5218 { ac_try
='test -s conftest.$ac_objext'
5219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5223 (exit $ac_status); }; }; then
5224 ac_header_compiler
=yes
5226 echo "$as_me: failed program was:" >&5
5227 sed 's/^/| /' conftest.
$ac_ext >&5
5229 ac_header_compiler
=no
5231 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5232 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5233 echo "${ECHO_T}$ac_header_compiler" >&6
5235 # Is the header present?
5236 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
5237 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
5238 cat >conftest.
$ac_ext <<_ACEOF
5241 cat confdefs.h
>>conftest.
$ac_ext
5242 cat >>conftest.
$ac_ext <<_ACEOF
5243 /* end confdefs.h. */
5244 #include <sys/mkdev.h>
5246 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5247 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5249 grep -v '^ *+' conftest.er1
>conftest.err
5251 cat conftest.err
>&5
5252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5253 (exit $ac_status); } >/dev
/null
; then
5254 if test -s conftest.err
; then
5255 ac_cpp_err
=$ac_c_preproc_warn_flag
5256 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5263 if test -z "$ac_cpp_err"; then
5264 ac_header_preproc
=yes
5266 echo "$as_me: failed program was:" >&5
5267 sed 's/^/| /' conftest.
$ac_ext >&5
5269 ac_header_preproc
=no
5271 rm -f conftest.err conftest.
$ac_ext
5272 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5273 echo "${ECHO_T}$ac_header_preproc" >&6
5275 # So? What about this header?
5276 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5278 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
5279 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5280 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
5281 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
5282 ac_header_preproc
=yes
5285 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
5286 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
5287 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
5288 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
5289 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
5290 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
5291 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
5292 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
5293 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
5294 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
5295 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
5296 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
5299 ## ------------------------------------------------ ##
5300 ## Report this to http://www.python.org/python-bugs ##
5301 ## ------------------------------------------------ ##
5304 sed "s/^/$as_me: WARNING: /" >&2
5307 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
5308 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
5309 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5310 echo $ECHO_N "(cached) $ECHO_C" >&6
5312 ac_cv_header_sys_mkdev_h
=$ac_header_preproc
5314 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
5315 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
5318 if test $ac_cv_header_sys_mkdev_h = yes; then
5320 cat >>confdefs.h
<<\_ACEOF
5321 #define MAJOR_IN_MKDEV 1
5328 if test $ac_cv_header_sys_mkdev_h = no
; then
5329 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5330 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
5331 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
5332 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5333 echo $ECHO_N "(cached) $ECHO_C" >&6
5335 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
5336 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
5338 # Is the header compilable?
5339 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
5340 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
5341 cat >conftest.
$ac_ext <<_ACEOF
5344 cat confdefs.h
>>conftest.
$ac_ext
5345 cat >>conftest.
$ac_ext <<_ACEOF
5346 /* end confdefs.h. */
5347 $ac_includes_default
5348 #include <sys/sysmacros.h>
5350 rm -f conftest.
$ac_objext
5351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5352 (eval $ac_compile) 2>conftest.er1
5354 grep -v '^ *+' conftest.er1
>conftest.err
5356 cat conftest.err
>&5
5357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5358 (exit $ac_status); } &&
5359 { ac_try
='test -z "$ac_c_werror_flag"
5360 || test ! -s conftest.err'
5361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5365 (exit $ac_status); }; } &&
5366 { ac_try
='test -s conftest.$ac_objext'
5367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5371 (exit $ac_status); }; }; then
5372 ac_header_compiler
=yes
5374 echo "$as_me: failed program was:" >&5
5375 sed 's/^/| /' conftest.
$ac_ext >&5
5377 ac_header_compiler
=no
5379 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5380 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5381 echo "${ECHO_T}$ac_header_compiler" >&6
5383 # Is the header present?
5384 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
5385 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
5386 cat >conftest.
$ac_ext <<_ACEOF
5389 cat confdefs.h
>>conftest.
$ac_ext
5390 cat >>conftest.
$ac_ext <<_ACEOF
5391 /* end confdefs.h. */
5392 #include <sys/sysmacros.h>
5394 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5395 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5397 grep -v '^ *+' conftest.er1
>conftest.err
5399 cat conftest.err
>&5
5400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5401 (exit $ac_status); } >/dev
/null
; then
5402 if test -s conftest.err
; then
5403 ac_cpp_err
=$ac_c_preproc_warn_flag
5404 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5411 if test -z "$ac_cpp_err"; then
5412 ac_header_preproc
=yes
5414 echo "$as_me: failed program was:" >&5
5415 sed 's/^/| /' conftest.
$ac_ext >&5
5417 ac_header_preproc
=no
5419 rm -f conftest.err conftest.
$ac_ext
5420 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5421 echo "${ECHO_T}$ac_header_preproc" >&6
5423 # So? What about this header?
5424 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5426 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
5427 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5428 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
5429 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
5430 ac_header_preproc
=yes
5433 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
5434 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
5435 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
5436 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
5437 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
5438 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
5439 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
5440 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
5441 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
5442 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
5443 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
5444 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
5447 ## ------------------------------------------------ ##
5448 ## Report this to http://www.python.org/python-bugs ##
5449 ## ------------------------------------------------ ##
5452 sed "s/^/$as_me: WARNING: /" >&2
5455 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
5456 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
5457 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5458 echo $ECHO_N "(cached) $ECHO_C" >&6
5460 ac_cv_header_sys_sysmacros_h
=$ac_header_preproc
5462 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
5463 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
5466 if test $ac_cv_header_sys_sysmacros_h = yes; then
5468 cat >>confdefs.h
<<\_ACEOF
5469 #define MAJOR_IN_SYSMACROS 1
5479 # On Solaris, term.h requires curses.h
5481 for ac_header
in term.h
5483 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5484 echo "$as_me:$LINENO: checking for $ac_header" >&5
5485 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5486 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5487 echo $ECHO_N "(cached) $ECHO_C" >&6
5489 cat >conftest.
$ac_ext <<_ACEOF
5492 cat confdefs.h
>>conftest.
$ac_ext
5493 cat >>conftest.
$ac_ext <<_ACEOF
5494 /* end confdefs.h. */
5496 #ifdef HAVE_CURSES_H
5501 #include <$ac_header>
5503 rm -f conftest.
$ac_objext
5504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5505 (eval $ac_compile) 2>conftest.er1
5507 grep -v '^ *+' conftest.er1
>conftest.err
5509 cat conftest.err
>&5
5510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5511 (exit $ac_status); } &&
5512 { ac_try
='test -z "$ac_c_werror_flag"
5513 || test ! -s conftest.err'
5514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5518 (exit $ac_status); }; } &&
5519 { ac_try
='test -s conftest.$ac_objext'
5520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524 (exit $ac_status); }; }; then
5525 eval "$as_ac_Header=yes"
5527 echo "$as_me: failed program was:" >&5
5528 sed 's/^/| /' conftest.
$ac_ext >&5
5530 eval "$as_ac_Header=no"
5532 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5534 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5535 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5536 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5537 cat >>confdefs.h
<<_ACEOF
5538 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5546 # On Linux, netlink.h requires asm/types.h
5548 for ac_header
in linux
/netlink.h
5550 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5551 echo "$as_me:$LINENO: checking for $ac_header" >&5
5552 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5553 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5554 echo $ECHO_N "(cached) $ECHO_C" >&6
5556 cat >conftest.
$ac_ext <<_ACEOF
5559 cat confdefs.h
>>conftest.
$ac_ext
5560 cat >>conftest.
$ac_ext <<_ACEOF
5561 /* end confdefs.h. */
5563 #ifdef HAVE_ASM_TYPES_H
5564 #include <asm/types.h>
5566 #ifdef HAVE_SYS_SOCKET_H
5567 #include <sys/socket.h>
5571 #include <$ac_header>
5573 rm -f conftest.
$ac_objext
5574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5575 (eval $ac_compile) 2>conftest.er1
5577 grep -v '^ *+' conftest.er1
>conftest.err
5579 cat conftest.err
>&5
5580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5581 (exit $ac_status); } &&
5582 { ac_try
='test -z "$ac_c_werror_flag"
5583 || test ! -s conftest.err'
5584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5588 (exit $ac_status); }; } &&
5589 { ac_try
='test -s conftest.$ac_objext'
5590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5594 (exit $ac_status); }; }; then
5595 eval "$as_ac_Header=yes"
5597 echo "$as_me: failed program was:" >&5
5598 sed 's/^/| /' conftest.
$ac_ext >&5
5600 eval "$as_ac_Header=no"
5602 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5604 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5605 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5606 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5607 cat >>confdefs.h
<<_ACEOF
5608 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5616 # checks for typedefs
5618 echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
5619 echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6
5620 cat >conftest.
$ac_ext <<_ACEOF
5623 cat confdefs.h
>>conftest.
$ac_ext
5624 cat >>conftest.
$ac_ext <<_ACEOF
5625 /* end confdefs.h. */
5629 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5630 $EGREP "clock_t" >/dev
/null
2>&1; then
5635 cat >>confdefs.h
<<\_ACEOF
5636 #define clock_t long
5643 echo "$as_me:$LINENO: result: $was_it_defined" >&5
5644 echo "${ECHO_T}$was_it_defined" >&6
5646 # Check whether using makedev requires defining _OSF_SOURCE
5647 echo "$as_me:$LINENO: checking for makedev" >&5
5648 echo $ECHO_N "checking for makedev... $ECHO_C" >&6
5649 cat >conftest.
$ac_ext <<_ACEOF
5652 cat confdefs.h
>>conftest.
$ac_ext
5653 cat >>conftest.
$ac_ext <<_ACEOF
5654 /* end confdefs.h. */
5655 #include <sys/types.h>
5664 rm -f conftest.
$ac_objext conftest
$ac_exeext
5665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5666 (eval $ac_link) 2>conftest.er1
5668 grep -v '^ *+' conftest.er1
>conftest.err
5670 cat conftest.err
>&5
5671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5672 (exit $ac_status); } &&
5673 { ac_try
='test -z "$ac_c_werror_flag"
5674 || test ! -s conftest.err'
5675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5679 (exit $ac_status); }; } &&
5680 { ac_try
='test -s conftest$ac_exeext'
5681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5685 (exit $ac_status); }; }; then
5686 ac_cv_has_makedev
=yes
5688 echo "$as_me: failed program was:" >&5
5689 sed 's/^/| /' conftest.
$ac_ext >&5
5691 ac_cv_has_makedev
=no
5693 rm -f conftest.err conftest.
$ac_objext \
5694 conftest
$ac_exeext conftest.
$ac_ext
5695 if test "$ac_cv_has_makedev" = "no"; then
5696 # we didn't link, try if _OSF_SOURCE will allow us to link
5697 cat >conftest.
$ac_ext <<_ACEOF
5700 cat confdefs.h
>>conftest.
$ac_ext
5701 cat >>conftest.
$ac_ext <<_ACEOF
5702 /* end confdefs.h. */
5704 #define _OSF_SOURCE 1
5705 #include <sys/types.h>
5715 rm -f conftest.
$ac_objext conftest
$ac_exeext
5716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5717 (eval $ac_link) 2>conftest.er1
5719 grep -v '^ *+' conftest.er1
>conftest.err
5721 cat conftest.err
>&5
5722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723 (exit $ac_status); } &&
5724 { ac_try
='test -z "$ac_c_werror_flag"
5725 || test ! -s conftest.err'
5726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730 (exit $ac_status); }; } &&
5731 { ac_try
='test -s conftest$ac_exeext'
5732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736 (exit $ac_status); }; }; then
5737 ac_cv_has_makedev
=yes
5739 echo "$as_me: failed program was:" >&5
5740 sed 's/^/| /' conftest.
$ac_ext >&5
5742 ac_cv_has_makedev
=no
5744 rm -f conftest.err conftest.
$ac_objext \
5745 conftest
$ac_exeext conftest.
$ac_ext
5746 if test "$ac_cv_has_makedev" = "yes"; then
5748 cat >>confdefs.h
<<\_ACEOF
5749 #define _OSF_SOURCE 1
5754 echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
5755 echo "${ECHO_T}$ac_cv_has_makedev" >&6
5756 if test "$ac_cv_has_makedev" = "yes"; then
5758 cat >>confdefs.h
<<\_ACEOF
5759 #define HAVE_MAKEDEV 1
5764 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
5765 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
5766 # defined, but the compiler does not support pragma redefine_extname,
5767 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
5768 # structures (such as rlimit64) without declaring them. As a
5769 # work-around, disable LFS on such configurations
5772 echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
5773 echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6
5774 cat >conftest.
$ac_ext <<_ACEOF
5777 cat confdefs.h
>>conftest.
$ac_ext
5778 cat >>conftest.
$ac_ext <<_ACEOF
5779 /* end confdefs.h. */
5781 #define _LARGEFILE_SOURCE 1
5782 #define _FILE_OFFSET_BITS 64
5783 #include <sys/resource.h>
5793 rm -f conftest.
$ac_objext
5794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5795 (eval $ac_compile) 2>conftest.er1
5797 grep -v '^ *+' conftest.er1
>conftest.err
5799 cat conftest.err
>&5
5800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5801 (exit $ac_status); } &&
5802 { ac_try
='test -z "$ac_c_werror_flag"
5803 || test ! -s conftest.err'
5804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5808 (exit $ac_status); }; } &&
5809 { ac_try
='test -s conftest.$ac_objext'
5810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814 (exit $ac_status); }; }; then
5817 echo "$as_me: failed program was:" >&5
5818 sed 's/^/| /' conftest.
$ac_ext >&5
5822 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5823 echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
5824 echo "${ECHO_T}$sol_lfs_bug" >&6
5825 if test "$sol_lfs_bug" = "yes"; then
5829 if test "$use_lfs" = "yes"; then
5830 # Two defines needed to enable largefile support on various platforms
5831 # These may affect some typedefs
5833 cat >>confdefs.h
<<\_ACEOF
5834 #define _LARGEFILE_SOURCE 1
5838 cat >>confdefs.h
<<\_ACEOF
5839 #define _FILE_OFFSET_BITS 64
5844 # Add some code to confdefs.h so that the test for off_t works on SCO
5845 cat >> confdefs.h
<<\EOF
5851 # Type availability checks
5852 echo "$as_me:$LINENO: checking for mode_t" >&5
5853 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
5854 if test "${ac_cv_type_mode_t+set}" = set; then
5855 echo $ECHO_N "(cached) $ECHO_C" >&6
5857 cat >conftest.
$ac_ext <<_ACEOF
5860 cat confdefs.h
>>conftest.
$ac_ext
5861 cat >>conftest.
$ac_ext <<_ACEOF
5862 /* end confdefs.h. */
5863 $ac_includes_default
5869 if (sizeof (mode_t))
5875 rm -f conftest.
$ac_objext
5876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5877 (eval $ac_compile) 2>conftest.er1
5879 grep -v '^ *+' conftest.er1
>conftest.err
5881 cat conftest.err
>&5
5882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5883 (exit $ac_status); } &&
5884 { ac_try
='test -z "$ac_c_werror_flag"
5885 || test ! -s conftest.err'
5886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5890 (exit $ac_status); }; } &&
5891 { ac_try
='test -s conftest.$ac_objext'
5892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5896 (exit $ac_status); }; }; then
5897 ac_cv_type_mode_t
=yes
5899 echo "$as_me: failed program was:" >&5
5900 sed 's/^/| /' conftest.
$ac_ext >&5
5902 ac_cv_type_mode_t
=no
5904 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5906 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
5907 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
5908 if test $ac_cv_type_mode_t = yes; then
5912 cat >>confdefs.h
<<_ACEOF
5918 echo "$as_me:$LINENO: checking for off_t" >&5
5919 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5920 if test "${ac_cv_type_off_t+set}" = set; then
5921 echo $ECHO_N "(cached) $ECHO_C" >&6
5923 cat >conftest.
$ac_ext <<_ACEOF
5926 cat confdefs.h
>>conftest.
$ac_ext
5927 cat >>conftest.
$ac_ext <<_ACEOF
5928 /* end confdefs.h. */
5929 $ac_includes_default
5941 rm -f conftest.
$ac_objext
5942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5943 (eval $ac_compile) 2>conftest.er1
5945 grep -v '^ *+' conftest.er1
>conftest.err
5947 cat conftest.err
>&5
5948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949 (exit $ac_status); } &&
5950 { ac_try
='test -z "$ac_c_werror_flag"
5951 || test ! -s conftest.err'
5952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5956 (exit $ac_status); }; } &&
5957 { ac_try
='test -s conftest.$ac_objext'
5958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5962 (exit $ac_status); }; }; then
5963 ac_cv_type_off_t
=yes
5965 echo "$as_me: failed program was:" >&5
5966 sed 's/^/| /' conftest.
$ac_ext >&5
5970 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5972 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5973 echo "${ECHO_T}$ac_cv_type_off_t" >&6
5974 if test $ac_cv_type_off_t = yes; then
5978 cat >>confdefs.h
<<_ACEOF
5984 echo "$as_me:$LINENO: checking for pid_t" >&5
5985 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
5986 if test "${ac_cv_type_pid_t+set}" = set; then
5987 echo $ECHO_N "(cached) $ECHO_C" >&6
5989 cat >conftest.
$ac_ext <<_ACEOF
5992 cat confdefs.h
>>conftest.
$ac_ext
5993 cat >>conftest.
$ac_ext <<_ACEOF
5994 /* end confdefs.h. */
5995 $ac_includes_default
6007 rm -f conftest.
$ac_objext
6008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6009 (eval $ac_compile) 2>conftest.er1
6011 grep -v '^ *+' conftest.er1
>conftest.err
6013 cat conftest.err
>&5
6014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015 (exit $ac_status); } &&
6016 { ac_try
='test -z "$ac_c_werror_flag"
6017 || test ! -s conftest.err'
6018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6022 (exit $ac_status); }; } &&
6023 { ac_try
='test -s conftest.$ac_objext'
6024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028 (exit $ac_status); }; }; then
6029 ac_cv_type_pid_t
=yes
6031 echo "$as_me: failed program was:" >&5
6032 sed 's/^/| /' conftest.
$ac_ext >&5
6036 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6038 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6039 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
6040 if test $ac_cv_type_pid_t = yes; then
6044 cat >>confdefs.h
<<_ACEOF
6050 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6051 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6052 if test "${ac_cv_type_signal+set}" = set; then
6053 echo $ECHO_N "(cached) $ECHO_C" >&6
6055 cat >conftest.
$ac_ext <<_ACEOF
6058 cat confdefs.h
>>conftest.
$ac_ext
6059 cat >>conftest.
$ac_ext <<_ACEOF
6060 /* end confdefs.h. */
6061 #include <sys/types.h>
6067 extern "C" void (*signal (int, void (*)(int)))(int);
6069 void (*signal ()) ();
6080 rm -f conftest.
$ac_objext
6081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6082 (eval $ac_compile) 2>conftest.er1
6084 grep -v '^ *+' conftest.er1
>conftest.err
6086 cat conftest.err
>&5
6087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6088 (exit $ac_status); } &&
6089 { ac_try
='test -z "$ac_c_werror_flag"
6090 || test ! -s conftest.err'
6091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6095 (exit $ac_status); }; } &&
6096 { ac_try
='test -s conftest.$ac_objext'
6097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6101 (exit $ac_status); }; }; then
6102 ac_cv_type_signal
=void
6104 echo "$as_me: failed program was:" >&5
6105 sed 's/^/| /' conftest.
$ac_ext >&5
6107 ac_cv_type_signal
=int
6109 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6111 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6112 echo "${ECHO_T}$ac_cv_type_signal" >&6
6114 cat >>confdefs.h
<<_ACEOF
6115 #define RETSIGTYPE $ac_cv_type_signal
6119 echo "$as_me:$LINENO: checking for size_t" >&5
6120 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6121 if test "${ac_cv_type_size_t+set}" = set; then
6122 echo $ECHO_N "(cached) $ECHO_C" >&6
6124 cat >conftest.
$ac_ext <<_ACEOF
6127 cat confdefs.h
>>conftest.
$ac_ext
6128 cat >>conftest.
$ac_ext <<_ACEOF
6129 /* end confdefs.h. */
6130 $ac_includes_default
6136 if (sizeof (size_t))
6142 rm -f conftest.
$ac_objext
6143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6144 (eval $ac_compile) 2>conftest.er1
6146 grep -v '^ *+' conftest.er1
>conftest.err
6148 cat conftest.err
>&5
6149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150 (exit $ac_status); } &&
6151 { ac_try
='test -z "$ac_c_werror_flag"
6152 || test ! -s conftest.err'
6153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6157 (exit $ac_status); }; } &&
6158 { ac_try
='test -s conftest.$ac_objext'
6159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163 (exit $ac_status); }; }; then
6164 ac_cv_type_size_t
=yes
6166 echo "$as_me: failed program was:" >&5
6167 sed 's/^/| /' conftest.
$ac_ext >&5
6169 ac_cv_type_size_t
=no
6171 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6173 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6174 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6175 if test $ac_cv_type_size_t = yes; then
6179 cat >>confdefs.h
<<_ACEOF
6180 #define size_t unsigned
6185 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6186 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
6187 if test "${ac_cv_type_uid_t+set}" = set; then
6188 echo $ECHO_N "(cached) $ECHO_C" >&6
6190 cat >conftest.
$ac_ext <<_ACEOF
6193 cat confdefs.h
>>conftest.
$ac_ext
6194 cat >>conftest.
$ac_ext <<_ACEOF
6195 /* end confdefs.h. */
6196 #include <sys/types.h>
6199 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6200 $EGREP "uid_t" >/dev
/null
2>&1; then
6201 ac_cv_type_uid_t
=yes
6208 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
6209 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
6210 if test $ac_cv_type_uid_t = no
; then
6212 cat >>confdefs.h
<<\_ACEOF
6217 cat >>confdefs.h
<<\_ACEOF
6223 echo "$as_me:$LINENO: checking for ssize_t" >&5
6224 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
6225 if test "${ac_cv_type_ssize_t+set}" = set; then
6226 echo $ECHO_N "(cached) $ECHO_C" >&6
6228 cat >conftest.
$ac_ext <<_ACEOF
6231 cat confdefs.h
>>conftest.
$ac_ext
6232 cat >>conftest.
$ac_ext <<_ACEOF
6233 /* end confdefs.h. */
6234 $ac_includes_default
6240 if (sizeof (ssize_t))
6246 rm -f conftest.
$ac_objext
6247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6248 (eval $ac_compile) 2>conftest.er1
6250 grep -v '^ *+' conftest.er1
>conftest.err
6252 cat conftest.err
>&5
6253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6254 (exit $ac_status); } &&
6255 { ac_try
='test -z "$ac_c_werror_flag"
6256 || test ! -s conftest.err'
6257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6261 (exit $ac_status); }; } &&
6262 { ac_try
='test -s conftest.$ac_objext'
6263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6267 (exit $ac_status); }; }; then
6268 ac_cv_type_ssize_t
=yes
6270 echo "$as_me: failed program was:" >&5
6271 sed 's/^/| /' conftest.
$ac_ext >&5
6273 ac_cv_type_ssize_t
=no
6275 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6277 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
6278 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
6279 if test $ac_cv_type_ssize_t = yes; then
6281 cat >>confdefs.h
<<\_ACEOF
6282 #define HAVE_SSIZE_T 1
6288 # Sizes of various common basic types
6289 # ANSI C requires sizeof(char) == 1, so no need to check it
6290 echo "$as_me:$LINENO: checking for int" >&5
6291 echo $ECHO_N "checking for int... $ECHO_C" >&6
6292 if test "${ac_cv_type_int+set}" = set; then
6293 echo $ECHO_N "(cached) $ECHO_C" >&6
6295 cat >conftest.
$ac_ext <<_ACEOF
6298 cat confdefs.h
>>conftest.
$ac_ext
6299 cat >>conftest.
$ac_ext <<_ACEOF
6300 /* end confdefs.h. */
6301 $ac_includes_default
6313 rm -f conftest.
$ac_objext
6314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6315 (eval $ac_compile) 2>conftest.er1
6317 grep -v '^ *+' conftest.er1
>conftest.err
6319 cat conftest.err
>&5
6320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321 (exit $ac_status); } &&
6322 { ac_try
='test -z "$ac_c_werror_flag"
6323 || test ! -s conftest.err'
6324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6328 (exit $ac_status); }; } &&
6329 { ac_try
='test -s conftest.$ac_objext'
6330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6334 (exit $ac_status); }; }; then
6337 echo "$as_me: failed program was:" >&5
6338 sed 's/^/| /' conftest.
$ac_ext >&5
6342 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6344 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
6345 echo "${ECHO_T}$ac_cv_type_int" >&6
6347 echo "$as_me:$LINENO: checking size of int" >&5
6348 echo $ECHO_N "checking size of int... $ECHO_C" >&6
6349 if test "${ac_cv_sizeof_int+set}" = set; then
6350 echo $ECHO_N "(cached) $ECHO_C" >&6
6352 if test "$ac_cv_type_int" = yes; then
6353 # The cast to unsigned long works around a bug in the HP C Compiler
6354 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6355 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6356 # This bug is HP SR number 8606223364.
6357 if test "$cross_compiling" = yes; then
6358 # Depending upon the size, compute the lo and hi bounds.
6359 cat >conftest.
$ac_ext <<_ACEOF
6362 cat confdefs.h
>>conftest.
$ac_ext
6363 cat >>conftest.
$ac_ext <<_ACEOF
6364 /* end confdefs.h. */
6365 $ac_includes_default
6369 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
6376 rm -f conftest.
$ac_objext
6377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6378 (eval $ac_compile) 2>conftest.er1
6380 grep -v '^ *+' conftest.er1
>conftest.err
6382 cat conftest.err
>&5
6383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6384 (exit $ac_status); } &&
6385 { ac_try
='test -z "$ac_c_werror_flag"
6386 || test ! -s conftest.err'
6387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6391 (exit $ac_status); }; } &&
6392 { ac_try
='test -s conftest.$ac_objext'
6393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397 (exit $ac_status); }; }; then
6400 cat >conftest.
$ac_ext <<_ACEOF
6403 cat confdefs.h
>>conftest.
$ac_ext
6404 cat >>conftest.
$ac_ext <<_ACEOF
6405 /* end confdefs.h. */
6406 $ac_includes_default
6410 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6417 rm -f conftest.
$ac_objext
6418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6419 (eval $ac_compile) 2>conftest.er1
6421 grep -v '^ *+' conftest.er1
>conftest.err
6423 cat conftest.err
>&5
6424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425 (exit $ac_status); } &&
6426 { ac_try
='test -z "$ac_c_werror_flag"
6427 || test ! -s conftest.err'
6428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432 (exit $ac_status); }; } &&
6433 { ac_try
='test -s conftest.$ac_objext'
6434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6438 (exit $ac_status); }; }; then
6439 ac_hi
=$ac_mid; break
6441 echo "$as_me: failed program was:" >&5
6442 sed 's/^/| /' conftest.
$ac_ext >&5
6444 ac_lo
=`expr $ac_mid + 1`
6445 if test $ac_lo -le $ac_mid; then
6449 ac_mid
=`expr 2 '*' $ac_mid + 1`
6451 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6454 echo "$as_me: failed program was:" >&5
6455 sed 's/^/| /' conftest.
$ac_ext >&5
6457 cat >conftest.
$ac_ext <<_ACEOF
6460 cat confdefs.h
>>conftest.
$ac_ext
6461 cat >>conftest.
$ac_ext <<_ACEOF
6462 /* end confdefs.h. */
6463 $ac_includes_default
6467 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
6474 rm -f conftest.
$ac_objext
6475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6476 (eval $ac_compile) 2>conftest.er1
6478 grep -v '^ *+' conftest.er1
>conftest.err
6480 cat conftest.err
>&5
6481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6482 (exit $ac_status); } &&
6483 { ac_try
='test -z "$ac_c_werror_flag"
6484 || test ! -s conftest.err'
6485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6489 (exit $ac_status); }; } &&
6490 { ac_try
='test -s conftest.$ac_objext'
6491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6495 (exit $ac_status); }; }; then
6498 cat >conftest.
$ac_ext <<_ACEOF
6501 cat confdefs.h
>>conftest.
$ac_ext
6502 cat >>conftest.
$ac_ext <<_ACEOF
6503 /* end confdefs.h. */
6504 $ac_includes_default
6508 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
6515 rm -f conftest.
$ac_objext
6516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6517 (eval $ac_compile) 2>conftest.er1
6519 grep -v '^ *+' conftest.er1
>conftest.err
6521 cat conftest.err
>&5
6522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6523 (exit $ac_status); } &&
6524 { ac_try
='test -z "$ac_c_werror_flag"
6525 || test ! -s conftest.err'
6526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6530 (exit $ac_status); }; } &&
6531 { ac_try
='test -s conftest.$ac_objext'
6532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6536 (exit $ac_status); }; }; then
6537 ac_lo
=$ac_mid; break
6539 echo "$as_me: failed program was:" >&5
6540 sed 's/^/| /' conftest.
$ac_ext >&5
6542 ac_hi
=`expr '(' $ac_mid ')' - 1`
6543 if test $ac_mid -le $ac_hi; then
6547 ac_mid
=`expr 2 '*' $ac_mid`
6549 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6552 echo "$as_me: failed program was:" >&5
6553 sed 's/^/| /' conftest.
$ac_ext >&5
6557 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6559 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6560 # Binary search between lo and hi bounds.
6561 while test "x$ac_lo" != "x$ac_hi"; do
6562 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6563 cat >conftest.
$ac_ext <<_ACEOF
6566 cat confdefs.h
>>conftest.
$ac_ext
6567 cat >>conftest.
$ac_ext <<_ACEOF
6568 /* end confdefs.h. */
6569 $ac_includes_default
6573 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6580 rm -f conftest.
$ac_objext
6581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6582 (eval $ac_compile) 2>conftest.er1
6584 grep -v '^ *+' conftest.er1
>conftest.err
6586 cat conftest.err
>&5
6587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6588 (exit $ac_status); } &&
6589 { ac_try
='test -z "$ac_c_werror_flag"
6590 || test ! -s conftest.err'
6591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6595 (exit $ac_status); }; } &&
6596 { ac_try
='test -s conftest.$ac_objext'
6597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601 (exit $ac_status); }; }; then
6604 echo "$as_me: failed program was:" >&5
6605 sed 's/^/| /' conftest.
$ac_ext >&5
6607 ac_lo
=`expr '(' $ac_mid ')' + 1`
6609 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6612 ?
*) ac_cv_sizeof_int
=$ac_lo;;
6613 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
6614 See \`config.log' for more details." >&5
6615 echo "$as_me: error: cannot compute sizeof (int), 77
6616 See \`config.log' for more details." >&2;}
6617 { (exit 1); exit 1; }; } ;;
6620 if test "$cross_compiling" = yes; then
6621 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6622 See \`config.log' for more details." >&5
6623 echo "$as_me: error: cannot run test program while cross compiling
6624 See \`config.log' for more details." >&2;}
6625 { (exit 1); exit 1; }; }
6627 cat >conftest.
$ac_ext <<_ACEOF
6630 cat confdefs.h
>>conftest.
$ac_ext
6631 cat >>conftest.
$ac_ext <<_ACEOF
6632 /* end confdefs.h. */
6633 $ac_includes_default
6634 long longval () { return (long) (sizeof (int)); }
6635 unsigned long ulongval () { return (long) (sizeof (int)); }
6642 FILE *f = fopen ("conftest.val", "w");
6645 if (((long) (sizeof (int))) < 0)
6647 long i = longval ();
6648 if (i != ((long) (sizeof (int))))
6650 fprintf (f, "%ld\n", i);
6654 unsigned long i = ulongval ();
6655 if (i != ((long) (sizeof (int))))
6657 fprintf (f, "%lu\n", i);
6659 exit (ferror (f) || fclose (f) != 0);
6665 rm -f conftest
$ac_exeext
6666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6667 (eval $ac_link) 2>&5
6669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6670 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6675 (exit $ac_status); }; }; then
6676 ac_cv_sizeof_int
=`cat conftest.val`
6678 echo "$as_me: program exited with status $ac_status" >&5
6679 echo "$as_me: failed program was:" >&5
6680 sed 's/^/| /' conftest.
$ac_ext >&5
6683 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
6684 See \`config.log' for more details." >&5
6685 echo "$as_me: error: cannot compute sizeof (int), 77
6686 See \`config.log' for more details." >&2;}
6687 { (exit 1); exit 1; }; }
6689 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6697 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6698 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
6699 cat >>confdefs.h
<<_ACEOF
6700 #define SIZEOF_INT $ac_cv_sizeof_int
6704 echo "$as_me:$LINENO: checking for long" >&5
6705 echo $ECHO_N "checking for long... $ECHO_C" >&6
6706 if test "${ac_cv_type_long+set}" = set; then
6707 echo $ECHO_N "(cached) $ECHO_C" >&6
6709 cat >conftest.
$ac_ext <<_ACEOF
6712 cat confdefs.h
>>conftest.
$ac_ext
6713 cat >>conftest.
$ac_ext <<_ACEOF
6714 /* end confdefs.h. */
6715 $ac_includes_default
6727 rm -f conftest.
$ac_objext
6728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6729 (eval $ac_compile) 2>conftest.er1
6731 grep -v '^ *+' conftest.er1
>conftest.err
6733 cat conftest.err
>&5
6734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6735 (exit $ac_status); } &&
6736 { ac_try
='test -z "$ac_c_werror_flag"
6737 || test ! -s conftest.err'
6738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6742 (exit $ac_status); }; } &&
6743 { ac_try
='test -s conftest.$ac_objext'
6744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6748 (exit $ac_status); }; }; then
6751 echo "$as_me: failed program was:" >&5
6752 sed 's/^/| /' conftest.
$ac_ext >&5
6756 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6758 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6759 echo "${ECHO_T}$ac_cv_type_long" >&6
6761 echo "$as_me:$LINENO: checking size of long" >&5
6762 echo $ECHO_N "checking size of long... $ECHO_C" >&6
6763 if test "${ac_cv_sizeof_long+set}" = set; then
6764 echo $ECHO_N "(cached) $ECHO_C" >&6
6766 if test "$ac_cv_type_long" = yes; then
6767 # The cast to unsigned long works around a bug in the HP C Compiler
6768 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6769 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6770 # This bug is HP SR number 8606223364.
6771 if test "$cross_compiling" = yes; then
6772 # Depending upon the size, compute the lo and hi bounds.
6773 cat >conftest.
$ac_ext <<_ACEOF
6776 cat confdefs.h
>>conftest.
$ac_ext
6777 cat >>conftest.
$ac_ext <<_ACEOF
6778 /* end confdefs.h. */
6779 $ac_includes_default
6783 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
6790 rm -f conftest.
$ac_objext
6791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6792 (eval $ac_compile) 2>conftest.er1
6794 grep -v '^ *+' conftest.er1
>conftest.err
6796 cat conftest.err
>&5
6797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6798 (exit $ac_status); } &&
6799 { ac_try
='test -z "$ac_c_werror_flag"
6800 || test ! -s conftest.err'
6801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6805 (exit $ac_status); }; } &&
6806 { ac_try
='test -s conftest.$ac_objext'
6807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6811 (exit $ac_status); }; }; then
6814 cat >conftest.
$ac_ext <<_ACEOF
6817 cat confdefs.h
>>conftest.
$ac_ext
6818 cat >>conftest.
$ac_ext <<_ACEOF
6819 /* end confdefs.h. */
6820 $ac_includes_default
6824 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6831 rm -f conftest.
$ac_objext
6832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6833 (eval $ac_compile) 2>conftest.er1
6835 grep -v '^ *+' conftest.er1
>conftest.err
6837 cat conftest.err
>&5
6838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6839 (exit $ac_status); } &&
6840 { ac_try
='test -z "$ac_c_werror_flag"
6841 || test ! -s conftest.err'
6842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6846 (exit $ac_status); }; } &&
6847 { ac_try
='test -s conftest.$ac_objext'
6848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6852 (exit $ac_status); }; }; then
6853 ac_hi
=$ac_mid; break
6855 echo "$as_me: failed program was:" >&5
6856 sed 's/^/| /' conftest.
$ac_ext >&5
6858 ac_lo
=`expr $ac_mid + 1`
6859 if test $ac_lo -le $ac_mid; then
6863 ac_mid
=`expr 2 '*' $ac_mid + 1`
6865 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6868 echo "$as_me: failed program was:" >&5
6869 sed 's/^/| /' conftest.
$ac_ext >&5
6871 cat >conftest.
$ac_ext <<_ACEOF
6874 cat confdefs.h
>>conftest.
$ac_ext
6875 cat >>conftest.
$ac_ext <<_ACEOF
6876 /* end confdefs.h. */
6877 $ac_includes_default
6881 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
6888 rm -f conftest.
$ac_objext
6889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6890 (eval $ac_compile) 2>conftest.er1
6892 grep -v '^ *+' conftest.er1
>conftest.err
6894 cat conftest.err
>&5
6895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896 (exit $ac_status); } &&
6897 { ac_try
='test -z "$ac_c_werror_flag"
6898 || test ! -s conftest.err'
6899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6903 (exit $ac_status); }; } &&
6904 { ac_try
='test -s conftest.$ac_objext'
6905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6909 (exit $ac_status); }; }; then
6912 cat >conftest.
$ac_ext <<_ACEOF
6915 cat confdefs.h
>>conftest.
$ac_ext
6916 cat >>conftest.
$ac_ext <<_ACEOF
6917 /* end confdefs.h. */
6918 $ac_includes_default
6922 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
6929 rm -f conftest.
$ac_objext
6930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6931 (eval $ac_compile) 2>conftest.er1
6933 grep -v '^ *+' conftest.er1
>conftest.err
6935 cat conftest.err
>&5
6936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6937 (exit $ac_status); } &&
6938 { ac_try
='test -z "$ac_c_werror_flag"
6939 || test ! -s conftest.err'
6940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6944 (exit $ac_status); }; } &&
6945 { ac_try
='test -s conftest.$ac_objext'
6946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6950 (exit $ac_status); }; }; then
6951 ac_lo
=$ac_mid; break
6953 echo "$as_me: failed program was:" >&5
6954 sed 's/^/| /' conftest.
$ac_ext >&5
6956 ac_hi
=`expr '(' $ac_mid ')' - 1`
6957 if test $ac_mid -le $ac_hi; then
6961 ac_mid
=`expr 2 '*' $ac_mid`
6963 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6966 echo "$as_me: failed program was:" >&5
6967 sed 's/^/| /' conftest.
$ac_ext >&5
6971 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6973 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6974 # Binary search between lo and hi bounds.
6975 while test "x$ac_lo" != "x$ac_hi"; do
6976 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6977 cat >conftest.
$ac_ext <<_ACEOF
6980 cat confdefs.h
>>conftest.
$ac_ext
6981 cat >>conftest.
$ac_ext <<_ACEOF
6982 /* end confdefs.h. */
6983 $ac_includes_default
6987 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6994 rm -f conftest.
$ac_objext
6995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6996 (eval $ac_compile) 2>conftest.er1
6998 grep -v '^ *+' conftest.er1
>conftest.err
7000 cat conftest.err
>&5
7001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7002 (exit $ac_status); } &&
7003 { ac_try
='test -z "$ac_c_werror_flag"
7004 || test ! -s conftest.err'
7005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7009 (exit $ac_status); }; } &&
7010 { ac_try
='test -s conftest.$ac_objext'
7011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015 (exit $ac_status); }; }; then
7018 echo "$as_me: failed program was:" >&5
7019 sed 's/^/| /' conftest.
$ac_ext >&5
7021 ac_lo
=`expr '(' $ac_mid ')' + 1`
7023 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7026 ?
*) ac_cv_sizeof_long
=$ac_lo;;
7027 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7028 See \`config.log' for more details." >&5
7029 echo "$as_me: error: cannot compute sizeof (long), 77
7030 See \`config.log' for more details." >&2;}
7031 { (exit 1); exit 1; }; } ;;
7034 if test "$cross_compiling" = yes; then
7035 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7036 See \`config.log' for more details." >&5
7037 echo "$as_me: error: cannot run test program while cross compiling
7038 See \`config.log' for more details." >&2;}
7039 { (exit 1); exit 1; }; }
7041 cat >conftest.
$ac_ext <<_ACEOF
7044 cat confdefs.h
>>conftest.
$ac_ext
7045 cat >>conftest.
$ac_ext <<_ACEOF
7046 /* end confdefs.h. */
7047 $ac_includes_default
7048 long longval () { return (long) (sizeof (long)); }
7049 unsigned long ulongval () { return (long) (sizeof (long)); }
7056 FILE *f = fopen ("conftest.val", "w");
7059 if (((long) (sizeof (long))) < 0)
7061 long i = longval ();
7062 if (i != ((long) (sizeof (long))))
7064 fprintf (f, "%ld\n", i);
7068 unsigned long i = ulongval ();
7069 if (i != ((long) (sizeof (long))))
7071 fprintf (f, "%lu\n", i);
7073 exit (ferror (f) || fclose (f) != 0);
7079 rm -f conftest
$ac_exeext
7080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7081 (eval $ac_link) 2>&5
7083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7084 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7089 (exit $ac_status); }; }; then
7090 ac_cv_sizeof_long
=`cat conftest.val`
7092 echo "$as_me: program exited with status $ac_status" >&5
7093 echo "$as_me: failed program was:" >&5
7094 sed 's/^/| /' conftest.
$ac_ext >&5
7097 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7098 See \`config.log' for more details." >&5
7099 echo "$as_me: error: cannot compute sizeof (long), 77
7100 See \`config.log' for more details." >&2;}
7101 { (exit 1); exit 1; }; }
7103 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7111 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7112 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7113 cat >>confdefs.h
<<_ACEOF
7114 #define SIZEOF_LONG $ac_cv_sizeof_long
7118 echo "$as_me:$LINENO: checking for void *" >&5
7119 echo $ECHO_N "checking for void *... $ECHO_C" >&6
7120 if test "${ac_cv_type_void_p+set}" = set; then
7121 echo $ECHO_N "(cached) $ECHO_C" >&6
7123 cat >conftest.
$ac_ext <<_ACEOF
7126 cat confdefs.h
>>conftest.
$ac_ext
7127 cat >>conftest.
$ac_ext <<_ACEOF
7128 /* end confdefs.h. */
7129 $ac_includes_default
7135 if (sizeof (void *))
7141 rm -f conftest.
$ac_objext
7142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7143 (eval $ac_compile) 2>conftest.er1
7145 grep -v '^ *+' conftest.er1
>conftest.err
7147 cat conftest.err
>&5
7148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7149 (exit $ac_status); } &&
7150 { ac_try
='test -z "$ac_c_werror_flag"
7151 || test ! -s conftest.err'
7152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7156 (exit $ac_status); }; } &&
7157 { ac_try
='test -s conftest.$ac_objext'
7158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7162 (exit $ac_status); }; }; then
7163 ac_cv_type_void_p
=yes
7165 echo "$as_me: failed program was:" >&5
7166 sed 's/^/| /' conftest.
$ac_ext >&5
7168 ac_cv_type_void_p
=no
7170 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7172 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
7173 echo "${ECHO_T}$ac_cv_type_void_p" >&6
7175 echo "$as_me:$LINENO: checking size of void *" >&5
7176 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
7177 if test "${ac_cv_sizeof_void_p+set}" = set; then
7178 echo $ECHO_N "(cached) $ECHO_C" >&6
7180 if test "$ac_cv_type_void_p" = yes; then
7181 # The cast to unsigned long works around a bug in the HP C Compiler
7182 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7183 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7184 # This bug is HP SR number 8606223364.
7185 if test "$cross_compiling" = yes; then
7186 # Depending upon the size, compute the lo and hi bounds.
7187 cat >conftest.
$ac_ext <<_ACEOF
7190 cat confdefs.h
>>conftest.
$ac_ext
7191 cat >>conftest.
$ac_ext <<_ACEOF
7192 /* end confdefs.h. */
7193 $ac_includes_default
7197 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
7204 rm -f conftest.
$ac_objext
7205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7206 (eval $ac_compile) 2>conftest.er1
7208 grep -v '^ *+' conftest.er1
>conftest.err
7210 cat conftest.err
>&5
7211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7212 (exit $ac_status); } &&
7213 { ac_try
='test -z "$ac_c_werror_flag"
7214 || test ! -s conftest.err'
7215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7219 (exit $ac_status); }; } &&
7220 { ac_try
='test -s conftest.$ac_objext'
7221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7225 (exit $ac_status); }; }; then
7228 cat >conftest.
$ac_ext <<_ACEOF
7231 cat confdefs.h
>>conftest.
$ac_ext
7232 cat >>conftest.
$ac_ext <<_ACEOF
7233 /* end confdefs.h. */
7234 $ac_includes_default
7238 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
7245 rm -f conftest.
$ac_objext
7246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7247 (eval $ac_compile) 2>conftest.er1
7249 grep -v '^ *+' conftest.er1
>conftest.err
7251 cat conftest.err
>&5
7252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7253 (exit $ac_status); } &&
7254 { ac_try
='test -z "$ac_c_werror_flag"
7255 || test ! -s conftest.err'
7256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7260 (exit $ac_status); }; } &&
7261 { ac_try
='test -s conftest.$ac_objext'
7262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7266 (exit $ac_status); }; }; then
7267 ac_hi
=$ac_mid; break
7269 echo "$as_me: failed program was:" >&5
7270 sed 's/^/| /' conftest.
$ac_ext >&5
7272 ac_lo
=`expr $ac_mid + 1`
7273 if test $ac_lo -le $ac_mid; then
7277 ac_mid
=`expr 2 '*' $ac_mid + 1`
7279 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7282 echo "$as_me: failed program was:" >&5
7283 sed 's/^/| /' conftest.
$ac_ext >&5
7285 cat >conftest.
$ac_ext <<_ACEOF
7288 cat confdefs.h
>>conftest.
$ac_ext
7289 cat >>conftest.
$ac_ext <<_ACEOF
7290 /* end confdefs.h. */
7291 $ac_includes_default
7295 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
7302 rm -f conftest.
$ac_objext
7303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7304 (eval $ac_compile) 2>conftest.er1
7306 grep -v '^ *+' conftest.er1
>conftest.err
7308 cat conftest.err
>&5
7309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7310 (exit $ac_status); } &&
7311 { ac_try
='test -z "$ac_c_werror_flag"
7312 || test ! -s conftest.err'
7313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7317 (exit $ac_status); }; } &&
7318 { ac_try
='test -s conftest.$ac_objext'
7319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7323 (exit $ac_status); }; }; then
7326 cat >conftest.
$ac_ext <<_ACEOF
7329 cat confdefs.h
>>conftest.
$ac_ext
7330 cat >>conftest.
$ac_ext <<_ACEOF
7331 /* end confdefs.h. */
7332 $ac_includes_default
7336 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
7343 rm -f conftest.
$ac_objext
7344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7345 (eval $ac_compile) 2>conftest.er1
7347 grep -v '^ *+' conftest.er1
>conftest.err
7349 cat conftest.err
>&5
7350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7351 (exit $ac_status); } &&
7352 { ac_try
='test -z "$ac_c_werror_flag"
7353 || test ! -s conftest.err'
7354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7358 (exit $ac_status); }; } &&
7359 { ac_try
='test -s conftest.$ac_objext'
7360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7364 (exit $ac_status); }; }; then
7365 ac_lo
=$ac_mid; break
7367 echo "$as_me: failed program was:" >&5
7368 sed 's/^/| /' conftest.
$ac_ext >&5
7370 ac_hi
=`expr '(' $ac_mid ')' - 1`
7371 if test $ac_mid -le $ac_hi; then
7375 ac_mid
=`expr 2 '*' $ac_mid`
7377 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7380 echo "$as_me: failed program was:" >&5
7381 sed 's/^/| /' conftest.
$ac_ext >&5
7385 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7387 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7388 # Binary search between lo and hi bounds.
7389 while test "x$ac_lo" != "x$ac_hi"; do
7390 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7391 cat >conftest.
$ac_ext <<_ACEOF
7394 cat confdefs.h
>>conftest.
$ac_ext
7395 cat >>conftest.
$ac_ext <<_ACEOF
7396 /* end confdefs.h. */
7397 $ac_includes_default
7401 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
7408 rm -f conftest.
$ac_objext
7409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7410 (eval $ac_compile) 2>conftest.er1
7412 grep -v '^ *+' conftest.er1
>conftest.err
7414 cat conftest.err
>&5
7415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7416 (exit $ac_status); } &&
7417 { ac_try
='test -z "$ac_c_werror_flag"
7418 || test ! -s conftest.err'
7419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7423 (exit $ac_status); }; } &&
7424 { ac_try
='test -s conftest.$ac_objext'
7425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7429 (exit $ac_status); }; }; then
7432 echo "$as_me: failed program was:" >&5
7433 sed 's/^/| /' conftest.
$ac_ext >&5
7435 ac_lo
=`expr '(' $ac_mid ')' + 1`
7437 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7440 ?
*) ac_cv_sizeof_void_p
=$ac_lo;;
7441 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
7442 See \`config.log' for more details." >&5
7443 echo "$as_me: error: cannot compute sizeof (void *), 77
7444 See \`config.log' for more details." >&2;}
7445 { (exit 1); exit 1; }; } ;;
7448 if test "$cross_compiling" = yes; then
7449 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7450 See \`config.log' for more details." >&5
7451 echo "$as_me: error: cannot run test program while cross compiling
7452 See \`config.log' for more details." >&2;}
7453 { (exit 1); exit 1; }; }
7455 cat >conftest.
$ac_ext <<_ACEOF
7458 cat confdefs.h
>>conftest.
$ac_ext
7459 cat >>conftest.
$ac_ext <<_ACEOF
7460 /* end confdefs.h. */
7461 $ac_includes_default
7462 long longval () { return (long) (sizeof (void *)); }
7463 unsigned long ulongval () { return (long) (sizeof (void *)); }
7470 FILE *f = fopen ("conftest.val", "w");
7473 if (((long) (sizeof (void *))) < 0)
7475 long i = longval ();
7476 if (i != ((long) (sizeof (void *))))
7478 fprintf (f, "%ld\n", i);
7482 unsigned long i = ulongval ();
7483 if (i != ((long) (sizeof (void *))))
7485 fprintf (f, "%lu\n", i);
7487 exit (ferror (f) || fclose (f) != 0);
7493 rm -f conftest
$ac_exeext
7494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7495 (eval $ac_link) 2>&5
7497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7498 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7503 (exit $ac_status); }; }; then
7504 ac_cv_sizeof_void_p
=`cat conftest.val`
7506 echo "$as_me: program exited with status $ac_status" >&5
7507 echo "$as_me: failed program was:" >&5
7508 sed 's/^/| /' conftest.
$ac_ext >&5
7511 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
7512 See \`config.log' for more details." >&5
7513 echo "$as_me: error: cannot compute sizeof (void *), 77
7514 See \`config.log' for more details." >&2;}
7515 { (exit 1); exit 1; }; }
7517 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7522 ac_cv_sizeof_void_p
=0
7525 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
7526 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
7527 cat >>confdefs.h
<<_ACEOF
7528 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
7532 echo "$as_me:$LINENO: checking for short" >&5
7533 echo $ECHO_N "checking for short... $ECHO_C" >&6
7534 if test "${ac_cv_type_short+set}" = set; then
7535 echo $ECHO_N "(cached) $ECHO_C" >&6
7537 cat >conftest.
$ac_ext <<_ACEOF
7540 cat confdefs.h
>>conftest.
$ac_ext
7541 cat >>conftest.
$ac_ext <<_ACEOF
7542 /* end confdefs.h. */
7543 $ac_includes_default
7555 rm -f conftest.
$ac_objext
7556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7557 (eval $ac_compile) 2>conftest.er1
7559 grep -v '^ *+' conftest.er1
>conftest.err
7561 cat conftest.err
>&5
7562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7563 (exit $ac_status); } &&
7564 { ac_try
='test -z "$ac_c_werror_flag"
7565 || test ! -s conftest.err'
7566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7570 (exit $ac_status); }; } &&
7571 { ac_try
='test -s conftest.$ac_objext'
7572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7576 (exit $ac_status); }; }; then
7577 ac_cv_type_short
=yes
7579 echo "$as_me: failed program was:" >&5
7580 sed 's/^/| /' conftest.
$ac_ext >&5
7584 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7586 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
7587 echo "${ECHO_T}$ac_cv_type_short" >&6
7589 echo "$as_me:$LINENO: checking size of short" >&5
7590 echo $ECHO_N "checking size of short... $ECHO_C" >&6
7591 if test "${ac_cv_sizeof_short+set}" = set; then
7592 echo $ECHO_N "(cached) $ECHO_C" >&6
7594 if test "$ac_cv_type_short" = yes; then
7595 # The cast to unsigned long works around a bug in the HP C Compiler
7596 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7597 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7598 # This bug is HP SR number 8606223364.
7599 if test "$cross_compiling" = yes; then
7600 # Depending upon the size, compute the lo and hi bounds.
7601 cat >conftest.
$ac_ext <<_ACEOF
7604 cat confdefs.h
>>conftest.
$ac_ext
7605 cat >>conftest.
$ac_ext <<_ACEOF
7606 /* end confdefs.h. */
7607 $ac_includes_default
7611 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
7618 rm -f conftest.
$ac_objext
7619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7620 (eval $ac_compile) 2>conftest.er1
7622 grep -v '^ *+' conftest.er1
>conftest.err
7624 cat conftest.err
>&5
7625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7626 (exit $ac_status); } &&
7627 { ac_try
='test -z "$ac_c_werror_flag"
7628 || test ! -s conftest.err'
7629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7633 (exit $ac_status); }; } &&
7634 { ac_try
='test -s conftest.$ac_objext'
7635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7639 (exit $ac_status); }; }; then
7642 cat >conftest.
$ac_ext <<_ACEOF
7645 cat confdefs.h
>>conftest.
$ac_ext
7646 cat >>conftest.
$ac_ext <<_ACEOF
7647 /* end confdefs.h. */
7648 $ac_includes_default
7652 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7659 rm -f conftest.
$ac_objext
7660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7661 (eval $ac_compile) 2>conftest.er1
7663 grep -v '^ *+' conftest.er1
>conftest.err
7665 cat conftest.err
>&5
7666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7667 (exit $ac_status); } &&
7668 { ac_try
='test -z "$ac_c_werror_flag"
7669 || test ! -s conftest.err'
7670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7674 (exit $ac_status); }; } &&
7675 { ac_try
='test -s conftest.$ac_objext'
7676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7680 (exit $ac_status); }; }; then
7681 ac_hi
=$ac_mid; break
7683 echo "$as_me: failed program was:" >&5
7684 sed 's/^/| /' conftest.
$ac_ext >&5
7686 ac_lo
=`expr $ac_mid + 1`
7687 if test $ac_lo -le $ac_mid; then
7691 ac_mid
=`expr 2 '*' $ac_mid + 1`
7693 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7696 echo "$as_me: failed program was:" >&5
7697 sed 's/^/| /' conftest.
$ac_ext >&5
7699 cat >conftest.
$ac_ext <<_ACEOF
7702 cat confdefs.h
>>conftest.
$ac_ext
7703 cat >>conftest.
$ac_ext <<_ACEOF
7704 /* end confdefs.h. */
7705 $ac_includes_default
7709 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
7716 rm -f conftest.
$ac_objext
7717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7718 (eval $ac_compile) 2>conftest.er1
7720 grep -v '^ *+' conftest.er1
>conftest.err
7722 cat conftest.err
>&5
7723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7724 (exit $ac_status); } &&
7725 { ac_try
='test -z "$ac_c_werror_flag"
7726 || test ! -s conftest.err'
7727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7731 (exit $ac_status); }; } &&
7732 { ac_try
='test -s conftest.$ac_objext'
7733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7737 (exit $ac_status); }; }; then
7740 cat >conftest.
$ac_ext <<_ACEOF
7743 cat confdefs.h
>>conftest.
$ac_ext
7744 cat >>conftest.
$ac_ext <<_ACEOF
7745 /* end confdefs.h. */
7746 $ac_includes_default
7750 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
7757 rm -f conftest.
$ac_objext
7758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7759 (eval $ac_compile) 2>conftest.er1
7761 grep -v '^ *+' conftest.er1
>conftest.err
7763 cat conftest.err
>&5
7764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7765 (exit $ac_status); } &&
7766 { ac_try
='test -z "$ac_c_werror_flag"
7767 || test ! -s conftest.err'
7768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7772 (exit $ac_status); }; } &&
7773 { ac_try
='test -s conftest.$ac_objext'
7774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7778 (exit $ac_status); }; }; then
7779 ac_lo
=$ac_mid; break
7781 echo "$as_me: failed program was:" >&5
7782 sed 's/^/| /' conftest.
$ac_ext >&5
7784 ac_hi
=`expr '(' $ac_mid ')' - 1`
7785 if test $ac_mid -le $ac_hi; then
7789 ac_mid
=`expr 2 '*' $ac_mid`
7791 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7794 echo "$as_me: failed program was:" >&5
7795 sed 's/^/| /' conftest.
$ac_ext >&5
7799 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7801 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7802 # Binary search between lo and hi bounds.
7803 while test "x$ac_lo" != "x$ac_hi"; do
7804 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7805 cat >conftest.
$ac_ext <<_ACEOF
7808 cat confdefs.h
>>conftest.
$ac_ext
7809 cat >>conftest.
$ac_ext <<_ACEOF
7810 /* end confdefs.h. */
7811 $ac_includes_default
7815 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7822 rm -f conftest.
$ac_objext
7823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7824 (eval $ac_compile) 2>conftest.er1
7826 grep -v '^ *+' conftest.er1
>conftest.err
7828 cat conftest.err
>&5
7829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7830 (exit $ac_status); } &&
7831 { ac_try
='test -z "$ac_c_werror_flag"
7832 || test ! -s conftest.err'
7833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7837 (exit $ac_status); }; } &&
7838 { ac_try
='test -s conftest.$ac_objext'
7839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7843 (exit $ac_status); }; }; then
7846 echo "$as_me: failed program was:" >&5
7847 sed 's/^/| /' conftest.
$ac_ext >&5
7849 ac_lo
=`expr '(' $ac_mid ')' + 1`
7851 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7854 ?
*) ac_cv_sizeof_short
=$ac_lo;;
7855 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7856 See \`config.log' for more details." >&5
7857 echo "$as_me: error: cannot compute sizeof (short), 77
7858 See \`config.log' for more details." >&2;}
7859 { (exit 1); exit 1; }; } ;;
7862 if test "$cross_compiling" = yes; then
7863 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7864 See \`config.log' for more details." >&5
7865 echo "$as_me: error: cannot run test program while cross compiling
7866 See \`config.log' for more details." >&2;}
7867 { (exit 1); exit 1; }; }
7869 cat >conftest.
$ac_ext <<_ACEOF
7872 cat confdefs.h
>>conftest.
$ac_ext
7873 cat >>conftest.
$ac_ext <<_ACEOF
7874 /* end confdefs.h. */
7875 $ac_includes_default
7876 long longval () { return (long) (sizeof (short)); }
7877 unsigned long ulongval () { return (long) (sizeof (short)); }
7884 FILE *f = fopen ("conftest.val", "w");
7887 if (((long) (sizeof (short))) < 0)
7889 long i = longval ();
7890 if (i != ((long) (sizeof (short))))
7892 fprintf (f, "%ld\n", i);
7896 unsigned long i = ulongval ();
7897 if (i != ((long) (sizeof (short))))
7899 fprintf (f, "%lu\n", i);
7901 exit (ferror (f) || fclose (f) != 0);
7907 rm -f conftest
$ac_exeext
7908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7909 (eval $ac_link) 2>&5
7911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7912 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7917 (exit $ac_status); }; }; then
7918 ac_cv_sizeof_short
=`cat conftest.val`
7920 echo "$as_me: program exited with status $ac_status" >&5
7921 echo "$as_me: failed program was:" >&5
7922 sed 's/^/| /' conftest.
$ac_ext >&5
7925 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7926 See \`config.log' for more details." >&5
7927 echo "$as_me: error: cannot compute sizeof (short), 77
7928 See \`config.log' for more details." >&2;}
7929 { (exit 1); exit 1; }; }
7931 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7936 ac_cv_sizeof_short
=0
7939 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
7940 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
7941 cat >>confdefs.h
<<_ACEOF
7942 #define SIZEOF_SHORT $ac_cv_sizeof_short
7946 echo "$as_me:$LINENO: checking for float" >&5
7947 echo $ECHO_N "checking for float... $ECHO_C" >&6
7948 if test "${ac_cv_type_float+set}" = set; then
7949 echo $ECHO_N "(cached) $ECHO_C" >&6
7951 cat >conftest.
$ac_ext <<_ACEOF
7954 cat confdefs.h
>>conftest.
$ac_ext
7955 cat >>conftest.
$ac_ext <<_ACEOF
7956 /* end confdefs.h. */
7957 $ac_includes_default
7969 rm -f conftest.
$ac_objext
7970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7971 (eval $ac_compile) 2>conftest.er1
7973 grep -v '^ *+' conftest.er1
>conftest.err
7975 cat conftest.err
>&5
7976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7977 (exit $ac_status); } &&
7978 { ac_try
='test -z "$ac_c_werror_flag"
7979 || test ! -s conftest.err'
7980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7984 (exit $ac_status); }; } &&
7985 { ac_try
='test -s conftest.$ac_objext'
7986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7990 (exit $ac_status); }; }; then
7991 ac_cv_type_float
=yes
7993 echo "$as_me: failed program was:" >&5
7994 sed 's/^/| /' conftest.
$ac_ext >&5
7998 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8000 echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
8001 echo "${ECHO_T}$ac_cv_type_float" >&6
8003 echo "$as_me:$LINENO: checking size of float" >&5
8004 echo $ECHO_N "checking size of float... $ECHO_C" >&6
8005 if test "${ac_cv_sizeof_float+set}" = set; then
8006 echo $ECHO_N "(cached) $ECHO_C" >&6
8008 if test "$ac_cv_type_float" = yes; then
8009 # The cast to unsigned long works around a bug in the HP C Compiler
8010 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8011 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8012 # This bug is HP SR number 8606223364.
8013 if test "$cross_compiling" = yes; then
8014 # Depending upon the size, compute the lo and hi bounds.
8015 cat >conftest.
$ac_ext <<_ACEOF
8018 cat confdefs.h
>>conftest.
$ac_ext
8019 cat >>conftest.
$ac_ext <<_ACEOF
8020 /* end confdefs.h. */
8021 $ac_includes_default
8025 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)];
8032 rm -f conftest.
$ac_objext
8033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8034 (eval $ac_compile) 2>conftest.er1
8036 grep -v '^ *+' conftest.er1
>conftest.err
8038 cat conftest.err
>&5
8039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8040 (exit $ac_status); } &&
8041 { ac_try
='test -z "$ac_c_werror_flag"
8042 || test ! -s conftest.err'
8043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8047 (exit $ac_status); }; } &&
8048 { ac_try
='test -s conftest.$ac_objext'
8049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8053 (exit $ac_status); }; }; then
8056 cat >conftest.
$ac_ext <<_ACEOF
8059 cat confdefs.h
>>conftest.
$ac_ext
8060 cat >>conftest.
$ac_ext <<_ACEOF
8061 /* end confdefs.h. */
8062 $ac_includes_default
8066 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
8073 rm -f conftest.
$ac_objext
8074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8075 (eval $ac_compile) 2>conftest.er1
8077 grep -v '^ *+' conftest.er1
>conftest.err
8079 cat conftest.err
>&5
8080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081 (exit $ac_status); } &&
8082 { ac_try
='test -z "$ac_c_werror_flag"
8083 || test ! -s conftest.err'
8084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8088 (exit $ac_status); }; } &&
8089 { ac_try
='test -s conftest.$ac_objext'
8090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8094 (exit $ac_status); }; }; then
8095 ac_hi
=$ac_mid; break
8097 echo "$as_me: failed program was:" >&5
8098 sed 's/^/| /' conftest.
$ac_ext >&5
8100 ac_lo
=`expr $ac_mid + 1`
8101 if test $ac_lo -le $ac_mid; then
8105 ac_mid
=`expr 2 '*' $ac_mid + 1`
8107 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8110 echo "$as_me: failed program was:" >&5
8111 sed 's/^/| /' conftest.
$ac_ext >&5
8113 cat >conftest.
$ac_ext <<_ACEOF
8116 cat confdefs.h
>>conftest.
$ac_ext
8117 cat >>conftest.
$ac_ext <<_ACEOF
8118 /* end confdefs.h. */
8119 $ac_includes_default
8123 static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)];
8130 rm -f conftest.
$ac_objext
8131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8132 (eval $ac_compile) 2>conftest.er1
8134 grep -v '^ *+' conftest.er1
>conftest.err
8136 cat conftest.err
>&5
8137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138 (exit $ac_status); } &&
8139 { ac_try
='test -z "$ac_c_werror_flag"
8140 || test ! -s conftest.err'
8141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8145 (exit $ac_status); }; } &&
8146 { ac_try
='test -s conftest.$ac_objext'
8147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8151 (exit $ac_status); }; }; then
8154 cat >conftest.
$ac_ext <<_ACEOF
8157 cat confdefs.h
>>conftest.
$ac_ext
8158 cat >>conftest.
$ac_ext <<_ACEOF
8159 /* end confdefs.h. */
8160 $ac_includes_default
8164 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)];
8171 rm -f conftest.
$ac_objext
8172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8173 (eval $ac_compile) 2>conftest.er1
8175 grep -v '^ *+' conftest.er1
>conftest.err
8177 cat conftest.err
>&5
8178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8179 (exit $ac_status); } &&
8180 { ac_try
='test -z "$ac_c_werror_flag"
8181 || test ! -s conftest.err'
8182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8186 (exit $ac_status); }; } &&
8187 { ac_try
='test -s conftest.$ac_objext'
8188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8192 (exit $ac_status); }; }; then
8193 ac_lo
=$ac_mid; break
8195 echo "$as_me: failed program was:" >&5
8196 sed 's/^/| /' conftest.
$ac_ext >&5
8198 ac_hi
=`expr '(' $ac_mid ')' - 1`
8199 if test $ac_mid -le $ac_hi; then
8203 ac_mid
=`expr 2 '*' $ac_mid`
8205 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8208 echo "$as_me: failed program was:" >&5
8209 sed 's/^/| /' conftest.
$ac_ext >&5
8213 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8215 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8216 # Binary search between lo and hi bounds.
8217 while test "x$ac_lo" != "x$ac_hi"; do
8218 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8219 cat >conftest.
$ac_ext <<_ACEOF
8222 cat confdefs.h
>>conftest.
$ac_ext
8223 cat >>conftest.
$ac_ext <<_ACEOF
8224 /* end confdefs.h. */
8225 $ac_includes_default
8229 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
8236 rm -f conftest.
$ac_objext
8237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8238 (eval $ac_compile) 2>conftest.er1
8240 grep -v '^ *+' conftest.er1
>conftest.err
8242 cat conftest.err
>&5
8243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8244 (exit $ac_status); } &&
8245 { ac_try
='test -z "$ac_c_werror_flag"
8246 || test ! -s conftest.err'
8247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8251 (exit $ac_status); }; } &&
8252 { ac_try
='test -s conftest.$ac_objext'
8253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257 (exit $ac_status); }; }; then
8260 echo "$as_me: failed program was:" >&5
8261 sed 's/^/| /' conftest.
$ac_ext >&5
8263 ac_lo
=`expr '(' $ac_mid ')' + 1`
8265 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8268 ?
*) ac_cv_sizeof_float
=$ac_lo;;
8269 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
8270 See \`config.log' for more details." >&5
8271 echo "$as_me: error: cannot compute sizeof (float), 77
8272 See \`config.log' for more details." >&2;}
8273 { (exit 1); exit 1; }; } ;;
8276 if test "$cross_compiling" = yes; then
8277 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8278 See \`config.log' for more details." >&5
8279 echo "$as_me: error: cannot run test program while cross compiling
8280 See \`config.log' for more details." >&2;}
8281 { (exit 1); exit 1; }; }
8283 cat >conftest.
$ac_ext <<_ACEOF
8286 cat confdefs.h
>>conftest.
$ac_ext
8287 cat >>conftest.
$ac_ext <<_ACEOF
8288 /* end confdefs.h. */
8289 $ac_includes_default
8290 long longval () { return (long) (sizeof (float)); }
8291 unsigned long ulongval () { return (long) (sizeof (float)); }
8298 FILE *f = fopen ("conftest.val", "w");
8301 if (((long) (sizeof (float))) < 0)
8303 long i = longval ();
8304 if (i != ((long) (sizeof (float))))
8306 fprintf (f, "%ld\n", i);
8310 unsigned long i = ulongval ();
8311 if (i != ((long) (sizeof (float))))
8313 fprintf (f, "%lu\n", i);
8315 exit (ferror (f) || fclose (f) != 0);
8321 rm -f conftest
$ac_exeext
8322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8323 (eval $ac_link) 2>&5
8325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8326 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8331 (exit $ac_status); }; }; then
8332 ac_cv_sizeof_float
=`cat conftest.val`
8334 echo "$as_me: program exited with status $ac_status" >&5
8335 echo "$as_me: failed program was:" >&5
8336 sed 's/^/| /' conftest.
$ac_ext >&5
8339 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
8340 See \`config.log' for more details." >&5
8341 echo "$as_me: error: cannot compute sizeof (float), 77
8342 See \`config.log' for more details." >&2;}
8343 { (exit 1); exit 1; }; }
8345 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8350 ac_cv_sizeof_float
=0
8353 echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
8354 echo "${ECHO_T}$ac_cv_sizeof_float" >&6
8355 cat >>confdefs.h
<<_ACEOF
8356 #define SIZEOF_FLOAT $ac_cv_sizeof_float
8360 echo "$as_me:$LINENO: checking for double" >&5
8361 echo $ECHO_N "checking for double... $ECHO_C" >&6
8362 if test "${ac_cv_type_double+set}" = set; then
8363 echo $ECHO_N "(cached) $ECHO_C" >&6
8365 cat >conftest.
$ac_ext <<_ACEOF
8368 cat confdefs.h
>>conftest.
$ac_ext
8369 cat >>conftest.
$ac_ext <<_ACEOF
8370 /* end confdefs.h. */
8371 $ac_includes_default
8377 if (sizeof (double))
8383 rm -f conftest.
$ac_objext
8384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8385 (eval $ac_compile) 2>conftest.er1
8387 grep -v '^ *+' conftest.er1
>conftest.err
8389 cat conftest.err
>&5
8390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8391 (exit $ac_status); } &&
8392 { ac_try
='test -z "$ac_c_werror_flag"
8393 || test ! -s conftest.err'
8394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8398 (exit $ac_status); }; } &&
8399 { ac_try
='test -s conftest.$ac_objext'
8400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8404 (exit $ac_status); }; }; then
8405 ac_cv_type_double
=yes
8407 echo "$as_me: failed program was:" >&5
8408 sed 's/^/| /' conftest.
$ac_ext >&5
8410 ac_cv_type_double
=no
8412 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8414 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
8415 echo "${ECHO_T}$ac_cv_type_double" >&6
8417 echo "$as_me:$LINENO: checking size of double" >&5
8418 echo $ECHO_N "checking size of double... $ECHO_C" >&6
8419 if test "${ac_cv_sizeof_double+set}" = set; then
8420 echo $ECHO_N "(cached) $ECHO_C" >&6
8422 if test "$ac_cv_type_double" = yes; then
8423 # The cast to unsigned long works around a bug in the HP C Compiler
8424 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8425 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8426 # This bug is HP SR number 8606223364.
8427 if test "$cross_compiling" = yes; then
8428 # Depending upon the size, compute the lo and hi bounds.
8429 cat >conftest.
$ac_ext <<_ACEOF
8432 cat confdefs.h
>>conftest.
$ac_ext
8433 cat >>conftest.
$ac_ext <<_ACEOF
8434 /* end confdefs.h. */
8435 $ac_includes_default
8439 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
8446 rm -f conftest.
$ac_objext
8447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8448 (eval $ac_compile) 2>conftest.er1
8450 grep -v '^ *+' conftest.er1
>conftest.err
8452 cat conftest.err
>&5
8453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8454 (exit $ac_status); } &&
8455 { ac_try
='test -z "$ac_c_werror_flag"
8456 || test ! -s conftest.err'
8457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461 (exit $ac_status); }; } &&
8462 { ac_try
='test -s conftest.$ac_objext'
8463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467 (exit $ac_status); }; }; then
8470 cat >conftest.
$ac_ext <<_ACEOF
8473 cat confdefs.h
>>conftest.
$ac_ext
8474 cat >>conftest.
$ac_ext <<_ACEOF
8475 /* end confdefs.h. */
8476 $ac_includes_default
8480 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
8487 rm -f conftest.
$ac_objext
8488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8489 (eval $ac_compile) 2>conftest.er1
8491 grep -v '^ *+' conftest.er1
>conftest.err
8493 cat conftest.err
>&5
8494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8495 (exit $ac_status); } &&
8496 { ac_try
='test -z "$ac_c_werror_flag"
8497 || test ! -s conftest.err'
8498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8502 (exit $ac_status); }; } &&
8503 { ac_try
='test -s conftest.$ac_objext'
8504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508 (exit $ac_status); }; }; then
8509 ac_hi
=$ac_mid; break
8511 echo "$as_me: failed program was:" >&5
8512 sed 's/^/| /' conftest.
$ac_ext >&5
8514 ac_lo
=`expr $ac_mid + 1`
8515 if test $ac_lo -le $ac_mid; then
8519 ac_mid
=`expr 2 '*' $ac_mid + 1`
8521 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8524 echo "$as_me: failed program was:" >&5
8525 sed 's/^/| /' conftest.
$ac_ext >&5
8527 cat >conftest.
$ac_ext <<_ACEOF
8530 cat confdefs.h
>>conftest.
$ac_ext
8531 cat >>conftest.
$ac_ext <<_ACEOF
8532 /* end confdefs.h. */
8533 $ac_includes_default
8537 static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
8544 rm -f conftest.
$ac_objext
8545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8546 (eval $ac_compile) 2>conftest.er1
8548 grep -v '^ *+' conftest.er1
>conftest.err
8550 cat conftest.err
>&5
8551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8552 (exit $ac_status); } &&
8553 { ac_try
='test -z "$ac_c_werror_flag"
8554 || test ! -s conftest.err'
8555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559 (exit $ac_status); }; } &&
8560 { ac_try
='test -s conftest.$ac_objext'
8561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565 (exit $ac_status); }; }; then
8568 cat >conftest.
$ac_ext <<_ACEOF
8571 cat confdefs.h
>>conftest.
$ac_ext
8572 cat >>conftest.
$ac_ext <<_ACEOF
8573 /* end confdefs.h. */
8574 $ac_includes_default
8578 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
8585 rm -f conftest.
$ac_objext
8586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8587 (eval $ac_compile) 2>conftest.er1
8589 grep -v '^ *+' conftest.er1
>conftest.err
8591 cat conftest.err
>&5
8592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8593 (exit $ac_status); } &&
8594 { ac_try
='test -z "$ac_c_werror_flag"
8595 || test ! -s conftest.err'
8596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8600 (exit $ac_status); }; } &&
8601 { ac_try
='test -s conftest.$ac_objext'
8602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8606 (exit $ac_status); }; }; then
8607 ac_lo
=$ac_mid; break
8609 echo "$as_me: failed program was:" >&5
8610 sed 's/^/| /' conftest.
$ac_ext >&5
8612 ac_hi
=`expr '(' $ac_mid ')' - 1`
8613 if test $ac_mid -le $ac_hi; then
8617 ac_mid
=`expr 2 '*' $ac_mid`
8619 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8622 echo "$as_me: failed program was:" >&5
8623 sed 's/^/| /' conftest.
$ac_ext >&5
8627 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8629 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8630 # Binary search between lo and hi bounds.
8631 while test "x$ac_lo" != "x$ac_hi"; do
8632 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8633 cat >conftest.
$ac_ext <<_ACEOF
8636 cat confdefs.h
>>conftest.
$ac_ext
8637 cat >>conftest.
$ac_ext <<_ACEOF
8638 /* end confdefs.h. */
8639 $ac_includes_default
8643 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
8650 rm -f conftest.
$ac_objext
8651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8652 (eval $ac_compile) 2>conftest.er1
8654 grep -v '^ *+' conftest.er1
>conftest.err
8656 cat conftest.err
>&5
8657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8658 (exit $ac_status); } &&
8659 { ac_try
='test -z "$ac_c_werror_flag"
8660 || test ! -s conftest.err'
8661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8665 (exit $ac_status); }; } &&
8666 { ac_try
='test -s conftest.$ac_objext'
8667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8671 (exit $ac_status); }; }; then
8674 echo "$as_me: failed program was:" >&5
8675 sed 's/^/| /' conftest.
$ac_ext >&5
8677 ac_lo
=`expr '(' $ac_mid ')' + 1`
8679 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8682 ?
*) ac_cv_sizeof_double
=$ac_lo;;
8683 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
8684 See \`config.log' for more details." >&5
8685 echo "$as_me: error: cannot compute sizeof (double), 77
8686 See \`config.log' for more details." >&2;}
8687 { (exit 1); exit 1; }; } ;;
8690 if test "$cross_compiling" = yes; then
8691 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8692 See \`config.log' for more details." >&5
8693 echo "$as_me: error: cannot run test program while cross compiling
8694 See \`config.log' for more details." >&2;}
8695 { (exit 1); exit 1; }; }
8697 cat >conftest.
$ac_ext <<_ACEOF
8700 cat confdefs.h
>>conftest.
$ac_ext
8701 cat >>conftest.
$ac_ext <<_ACEOF
8702 /* end confdefs.h. */
8703 $ac_includes_default
8704 long longval () { return (long) (sizeof (double)); }
8705 unsigned long ulongval () { return (long) (sizeof (double)); }
8712 FILE *f = fopen ("conftest.val", "w");
8715 if (((long) (sizeof (double))) < 0)
8717 long i = longval ();
8718 if (i != ((long) (sizeof (double))))
8720 fprintf (f, "%ld\n", i);
8724 unsigned long i = ulongval ();
8725 if (i != ((long) (sizeof (double))))
8727 fprintf (f, "%lu\n", i);
8729 exit (ferror (f) || fclose (f) != 0);
8735 rm -f conftest
$ac_exeext
8736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8737 (eval $ac_link) 2>&5
8739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8740 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8745 (exit $ac_status); }; }; then
8746 ac_cv_sizeof_double
=`cat conftest.val`
8748 echo "$as_me: program exited with status $ac_status" >&5
8749 echo "$as_me: failed program was:" >&5
8750 sed 's/^/| /' conftest.
$ac_ext >&5
8753 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
8754 See \`config.log' for more details." >&5
8755 echo "$as_me: error: cannot compute sizeof (double), 77
8756 See \`config.log' for more details." >&2;}
8757 { (exit 1); exit 1; }; }
8759 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8764 ac_cv_sizeof_double
=0
8767 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
8768 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
8769 cat >>confdefs.h
<<_ACEOF
8770 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
8774 echo "$as_me:$LINENO: checking for fpos_t" >&5
8775 echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6
8776 if test "${ac_cv_type_fpos_t+set}" = set; then
8777 echo $ECHO_N "(cached) $ECHO_C" >&6
8779 cat >conftest.
$ac_ext <<_ACEOF
8782 cat confdefs.h
>>conftest.
$ac_ext
8783 cat >>conftest.
$ac_ext <<_ACEOF
8784 /* end confdefs.h. */
8785 $ac_includes_default
8791 if (sizeof (fpos_t))
8797 rm -f conftest.
$ac_objext
8798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8799 (eval $ac_compile) 2>conftest.er1
8801 grep -v '^ *+' conftest.er1
>conftest.err
8803 cat conftest.err
>&5
8804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8805 (exit $ac_status); } &&
8806 { ac_try
='test -z "$ac_c_werror_flag"
8807 || test ! -s conftest.err'
8808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8812 (exit $ac_status); }; } &&
8813 { ac_try
='test -s conftest.$ac_objext'
8814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8818 (exit $ac_status); }; }; then
8819 ac_cv_type_fpos_t
=yes
8821 echo "$as_me: failed program was:" >&5
8822 sed 's/^/| /' conftest.
$ac_ext >&5
8824 ac_cv_type_fpos_t
=no
8826 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8828 echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
8829 echo "${ECHO_T}$ac_cv_type_fpos_t" >&6
8831 echo "$as_me:$LINENO: checking size of fpos_t" >&5
8832 echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6
8833 if test "${ac_cv_sizeof_fpos_t+set}" = set; then
8834 echo $ECHO_N "(cached) $ECHO_C" >&6
8836 if test "$ac_cv_type_fpos_t" = yes; then
8837 # The cast to unsigned long works around a bug in the HP C Compiler
8838 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8839 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8840 # This bug is HP SR number 8606223364.
8841 if test "$cross_compiling" = yes; then
8842 # Depending upon the size, compute the lo and hi bounds.
8843 cat >conftest.
$ac_ext <<_ACEOF
8846 cat confdefs.h
>>conftest.
$ac_ext
8847 cat >>conftest.
$ac_ext <<_ACEOF
8848 /* end confdefs.h. */
8849 $ac_includes_default
8853 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= 0)];
8860 rm -f conftest.
$ac_objext
8861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8862 (eval $ac_compile) 2>conftest.er1
8864 grep -v '^ *+' conftest.er1
>conftest.err
8866 cat conftest.err
>&5
8867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8868 (exit $ac_status); } &&
8869 { ac_try
='test -z "$ac_c_werror_flag"
8870 || test ! -s conftest.err'
8871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8875 (exit $ac_status); }; } &&
8876 { ac_try
='test -s conftest.$ac_objext'
8877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8881 (exit $ac_status); }; }; then
8884 cat >conftest.
$ac_ext <<_ACEOF
8887 cat confdefs.h
>>conftest.
$ac_ext
8888 cat >>conftest.
$ac_ext <<_ACEOF
8889 /* end confdefs.h. */
8890 $ac_includes_default
8894 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)];
8901 rm -f conftest.
$ac_objext
8902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8903 (eval $ac_compile) 2>conftest.er1
8905 grep -v '^ *+' conftest.er1
>conftest.err
8907 cat conftest.err
>&5
8908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8909 (exit $ac_status); } &&
8910 { ac_try
='test -z "$ac_c_werror_flag"
8911 || test ! -s conftest.err'
8912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8916 (exit $ac_status); }; } &&
8917 { ac_try
='test -s conftest.$ac_objext'
8918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8922 (exit $ac_status); }; }; then
8923 ac_hi
=$ac_mid; break
8925 echo "$as_me: failed program was:" >&5
8926 sed 's/^/| /' conftest.
$ac_ext >&5
8928 ac_lo
=`expr $ac_mid + 1`
8929 if test $ac_lo -le $ac_mid; then
8933 ac_mid
=`expr 2 '*' $ac_mid + 1`
8935 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8938 echo "$as_me: failed program was:" >&5
8939 sed 's/^/| /' conftest.
$ac_ext >&5
8941 cat >conftest.
$ac_ext <<_ACEOF
8944 cat confdefs.h
>>conftest.
$ac_ext
8945 cat >>conftest.
$ac_ext <<_ACEOF
8946 /* end confdefs.h. */
8947 $ac_includes_default
8951 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) < 0)];
8958 rm -f conftest.
$ac_objext
8959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8960 (eval $ac_compile) 2>conftest.er1
8962 grep -v '^ *+' conftest.er1
>conftest.err
8964 cat conftest.err
>&5
8965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8966 (exit $ac_status); } &&
8967 { ac_try
='test -z "$ac_c_werror_flag"
8968 || test ! -s conftest.err'
8969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8973 (exit $ac_status); }; } &&
8974 { ac_try
='test -s conftest.$ac_objext'
8975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8979 (exit $ac_status); }; }; then
8982 cat >conftest.
$ac_ext <<_ACEOF
8985 cat confdefs.h
>>conftest.
$ac_ext
8986 cat >>conftest.
$ac_ext <<_ACEOF
8987 /* end confdefs.h. */
8988 $ac_includes_default
8992 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= $ac_mid)];
8999 rm -f conftest.
$ac_objext
9000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9001 (eval $ac_compile) 2>conftest.er1
9003 grep -v '^ *+' conftest.er1
>conftest.err
9005 cat conftest.err
>&5
9006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9007 (exit $ac_status); } &&
9008 { ac_try
='test -z "$ac_c_werror_flag"
9009 || test ! -s conftest.err'
9010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9014 (exit $ac_status); }; } &&
9015 { ac_try
='test -s conftest.$ac_objext'
9016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9020 (exit $ac_status); }; }; then
9021 ac_lo
=$ac_mid; break
9023 echo "$as_me: failed program was:" >&5
9024 sed 's/^/| /' conftest.
$ac_ext >&5
9026 ac_hi
=`expr '(' $ac_mid ')' - 1`
9027 if test $ac_mid -le $ac_hi; then
9031 ac_mid
=`expr 2 '*' $ac_mid`
9033 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9036 echo "$as_me: failed program was:" >&5
9037 sed 's/^/| /' conftest.
$ac_ext >&5
9041 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9043 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9044 # Binary search between lo and hi bounds.
9045 while test "x$ac_lo" != "x$ac_hi"; do
9046 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9047 cat >conftest.
$ac_ext <<_ACEOF
9050 cat confdefs.h
>>conftest.
$ac_ext
9051 cat >>conftest.
$ac_ext <<_ACEOF
9052 /* end confdefs.h. */
9053 $ac_includes_default
9057 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)];
9064 rm -f conftest.
$ac_objext
9065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9066 (eval $ac_compile) 2>conftest.er1
9068 grep -v '^ *+' conftest.er1
>conftest.err
9070 cat conftest.err
>&5
9071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9072 (exit $ac_status); } &&
9073 { ac_try
='test -z "$ac_c_werror_flag"
9074 || test ! -s conftest.err'
9075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9079 (exit $ac_status); }; } &&
9080 { ac_try
='test -s conftest.$ac_objext'
9081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9085 (exit $ac_status); }; }; then
9088 echo "$as_me: failed program was:" >&5
9089 sed 's/^/| /' conftest.
$ac_ext >&5
9091 ac_lo
=`expr '(' $ac_mid ')' + 1`
9093 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9096 ?
*) ac_cv_sizeof_fpos_t
=$ac_lo;;
9097 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77
9098 See \`config.log' for more details." >&5
9099 echo "$as_me: error: cannot compute sizeof (fpos_t), 77
9100 See \`config.log' for more details." >&2;}
9101 { (exit 1); exit 1; }; } ;;
9104 if test "$cross_compiling" = yes; then
9105 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9106 See \`config.log' for more details." >&5
9107 echo "$as_me: error: cannot run test program while cross compiling
9108 See \`config.log' for more details." >&2;}
9109 { (exit 1); exit 1; }; }
9111 cat >conftest.
$ac_ext <<_ACEOF
9114 cat confdefs.h
>>conftest.
$ac_ext
9115 cat >>conftest.
$ac_ext <<_ACEOF
9116 /* end confdefs.h. */
9117 $ac_includes_default
9118 long longval () { return (long) (sizeof (fpos_t)); }
9119 unsigned long ulongval () { return (long) (sizeof (fpos_t)); }
9126 FILE *f = fopen ("conftest.val", "w");
9129 if (((long) (sizeof (fpos_t))) < 0)
9131 long i = longval ();
9132 if (i != ((long) (sizeof (fpos_t))))
9134 fprintf (f, "%ld\n", i);
9138 unsigned long i = ulongval ();
9139 if (i != ((long) (sizeof (fpos_t))))
9141 fprintf (f, "%lu\n", i);
9143 exit (ferror (f) || fclose (f) != 0);
9149 rm -f conftest
$ac_exeext
9150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9151 (eval $ac_link) 2>&5
9153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9154 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9159 (exit $ac_status); }; }; then
9160 ac_cv_sizeof_fpos_t
=`cat conftest.val`
9162 echo "$as_me: program exited with status $ac_status" >&5
9163 echo "$as_me: failed program was:" >&5
9164 sed 's/^/| /' conftest.
$ac_ext >&5
9167 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77
9168 See \`config.log' for more details." >&5
9169 echo "$as_me: error: cannot compute sizeof (fpos_t), 77
9170 See \`config.log' for more details." >&2;}
9171 { (exit 1); exit 1; }; }
9173 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9178 ac_cv_sizeof_fpos_t
=0
9181 echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
9182 echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6
9183 cat >>confdefs.h
<<_ACEOF
9184 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
9188 echo "$as_me:$LINENO: checking for size_t" >&5
9189 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
9190 if test "${ac_cv_type_size_t+set}" = set; then
9191 echo $ECHO_N "(cached) $ECHO_C" >&6
9193 cat >conftest.
$ac_ext <<_ACEOF
9196 cat confdefs.h
>>conftest.
$ac_ext
9197 cat >>conftest.
$ac_ext <<_ACEOF
9198 /* end confdefs.h. */
9199 $ac_includes_default
9205 if (sizeof (size_t))
9211 rm -f conftest.
$ac_objext
9212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9213 (eval $ac_compile) 2>conftest.er1
9215 grep -v '^ *+' conftest.er1
>conftest.err
9217 cat conftest.err
>&5
9218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9219 (exit $ac_status); } &&
9220 { ac_try
='test -z "$ac_c_werror_flag"
9221 || test ! -s conftest.err'
9222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9226 (exit $ac_status); }; } &&
9227 { ac_try
='test -s conftest.$ac_objext'
9228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9232 (exit $ac_status); }; }; then
9233 ac_cv_type_size_t
=yes
9235 echo "$as_me: failed program was:" >&5
9236 sed 's/^/| /' conftest.
$ac_ext >&5
9238 ac_cv_type_size_t
=no
9240 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9242 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9243 echo "${ECHO_T}$ac_cv_type_size_t" >&6
9245 echo "$as_me:$LINENO: checking size of size_t" >&5
9246 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
9247 if test "${ac_cv_sizeof_size_t+set}" = set; then
9248 echo $ECHO_N "(cached) $ECHO_C" >&6
9250 if test "$ac_cv_type_size_t" = yes; then
9251 # The cast to unsigned long works around a bug in the HP C Compiler
9252 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9253 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9254 # This bug is HP SR number 8606223364.
9255 if test "$cross_compiling" = yes; then
9256 # Depending upon the size, compute the lo and hi bounds.
9257 cat >conftest.
$ac_ext <<_ACEOF
9260 cat confdefs.h
>>conftest.
$ac_ext
9261 cat >>conftest.
$ac_ext <<_ACEOF
9262 /* end confdefs.h. */
9263 $ac_includes_default
9267 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
9274 rm -f conftest.
$ac_objext
9275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9276 (eval $ac_compile) 2>conftest.er1
9278 grep -v '^ *+' conftest.er1
>conftest.err
9280 cat conftest.err
>&5
9281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9282 (exit $ac_status); } &&
9283 { ac_try
='test -z "$ac_c_werror_flag"
9284 || test ! -s conftest.err'
9285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9289 (exit $ac_status); }; } &&
9290 { ac_try
='test -s conftest.$ac_objext'
9291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9295 (exit $ac_status); }; }; then
9298 cat >conftest.
$ac_ext <<_ACEOF
9301 cat confdefs.h
>>conftest.
$ac_ext
9302 cat >>conftest.
$ac_ext <<_ACEOF
9303 /* end confdefs.h. */
9304 $ac_includes_default
9308 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
9315 rm -f conftest.
$ac_objext
9316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9317 (eval $ac_compile) 2>conftest.er1
9319 grep -v '^ *+' conftest.er1
>conftest.err
9321 cat conftest.err
>&5
9322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9323 (exit $ac_status); } &&
9324 { ac_try
='test -z "$ac_c_werror_flag"
9325 || test ! -s conftest.err'
9326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9330 (exit $ac_status); }; } &&
9331 { ac_try
='test -s conftest.$ac_objext'
9332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9336 (exit $ac_status); }; }; then
9337 ac_hi
=$ac_mid; break
9339 echo "$as_me: failed program was:" >&5
9340 sed 's/^/| /' conftest.
$ac_ext >&5
9342 ac_lo
=`expr $ac_mid + 1`
9343 if test $ac_lo -le $ac_mid; then
9347 ac_mid
=`expr 2 '*' $ac_mid + 1`
9349 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9352 echo "$as_me: failed program was:" >&5
9353 sed 's/^/| /' conftest.
$ac_ext >&5
9355 cat >conftest.
$ac_ext <<_ACEOF
9358 cat confdefs.h
>>conftest.
$ac_ext
9359 cat >>conftest.
$ac_ext <<_ACEOF
9360 /* end confdefs.h. */
9361 $ac_includes_default
9365 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
9372 rm -f conftest.
$ac_objext
9373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9374 (eval $ac_compile) 2>conftest.er1
9376 grep -v '^ *+' conftest.er1
>conftest.err
9378 cat conftest.err
>&5
9379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9380 (exit $ac_status); } &&
9381 { ac_try
='test -z "$ac_c_werror_flag"
9382 || test ! -s conftest.err'
9383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9387 (exit $ac_status); }; } &&
9388 { ac_try
='test -s conftest.$ac_objext'
9389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393 (exit $ac_status); }; }; then
9396 cat >conftest.
$ac_ext <<_ACEOF
9399 cat confdefs.h
>>conftest.
$ac_ext
9400 cat >>conftest.
$ac_ext <<_ACEOF
9401 /* end confdefs.h. */
9402 $ac_includes_default
9406 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
9413 rm -f conftest.
$ac_objext
9414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9415 (eval $ac_compile) 2>conftest.er1
9417 grep -v '^ *+' conftest.er1
>conftest.err
9419 cat conftest.err
>&5
9420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9421 (exit $ac_status); } &&
9422 { ac_try
='test -z "$ac_c_werror_flag"
9423 || test ! -s conftest.err'
9424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9428 (exit $ac_status); }; } &&
9429 { ac_try
='test -s conftest.$ac_objext'
9430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9434 (exit $ac_status); }; }; then
9435 ac_lo
=$ac_mid; break
9437 echo "$as_me: failed program was:" >&5
9438 sed 's/^/| /' conftest.
$ac_ext >&5
9440 ac_hi
=`expr '(' $ac_mid ')' - 1`
9441 if test $ac_mid -le $ac_hi; then
9445 ac_mid
=`expr 2 '*' $ac_mid`
9447 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9450 echo "$as_me: failed program was:" >&5
9451 sed 's/^/| /' conftest.
$ac_ext >&5
9455 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9457 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9458 # Binary search between lo and hi bounds.
9459 while test "x$ac_lo" != "x$ac_hi"; do
9460 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9461 cat >conftest.
$ac_ext <<_ACEOF
9464 cat confdefs.h
>>conftest.
$ac_ext
9465 cat >>conftest.
$ac_ext <<_ACEOF
9466 /* end confdefs.h. */
9467 $ac_includes_default
9471 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
9478 rm -f conftest.
$ac_objext
9479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9480 (eval $ac_compile) 2>conftest.er1
9482 grep -v '^ *+' conftest.er1
>conftest.err
9484 cat conftest.err
>&5
9485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9486 (exit $ac_status); } &&
9487 { ac_try
='test -z "$ac_c_werror_flag"
9488 || test ! -s conftest.err'
9489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9493 (exit $ac_status); }; } &&
9494 { ac_try
='test -s conftest.$ac_objext'
9495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9499 (exit $ac_status); }; }; then
9502 echo "$as_me: failed program was:" >&5
9503 sed 's/^/| /' conftest.
$ac_ext >&5
9505 ac_lo
=`expr '(' $ac_mid ')' + 1`
9507 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9510 ?
*) ac_cv_sizeof_size_t
=$ac_lo;;
9511 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
9512 See \`config.log' for more details." >&5
9513 echo "$as_me: error: cannot compute sizeof (size_t), 77
9514 See \`config.log' for more details." >&2;}
9515 { (exit 1); exit 1; }; } ;;
9518 if test "$cross_compiling" = yes; then
9519 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9520 See \`config.log' for more details." >&5
9521 echo "$as_me: error: cannot run test program while cross compiling
9522 See \`config.log' for more details." >&2;}
9523 { (exit 1); exit 1; }; }
9525 cat >conftest.
$ac_ext <<_ACEOF
9528 cat confdefs.h
>>conftest.
$ac_ext
9529 cat >>conftest.
$ac_ext <<_ACEOF
9530 /* end confdefs.h. */
9531 $ac_includes_default
9532 long longval () { return (long) (sizeof (size_t)); }
9533 unsigned long ulongval () { return (long) (sizeof (size_t)); }
9540 FILE *f = fopen ("conftest.val", "w");
9543 if (((long) (sizeof (size_t))) < 0)
9545 long i = longval ();
9546 if (i != ((long) (sizeof (size_t))))
9548 fprintf (f, "%ld\n", i);
9552 unsigned long i = ulongval ();
9553 if (i != ((long) (sizeof (size_t))))
9555 fprintf (f, "%lu\n", i);
9557 exit (ferror (f) || fclose (f) != 0);
9563 rm -f conftest
$ac_exeext
9564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9565 (eval $ac_link) 2>&5
9567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9568 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9573 (exit $ac_status); }; }; then
9574 ac_cv_sizeof_size_t
=`cat conftest.val`
9576 echo "$as_me: program exited with status $ac_status" >&5
9577 echo "$as_me: failed program was:" >&5
9578 sed 's/^/| /' conftest.
$ac_ext >&5
9581 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
9582 See \`config.log' for more details." >&5
9583 echo "$as_me: error: cannot compute sizeof (size_t), 77
9584 See \`config.log' for more details." >&2;}
9585 { (exit 1); exit 1; }; }
9587 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9592 ac_cv_sizeof_size_t
=0
9595 echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
9596 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
9597 cat >>confdefs.h
<<_ACEOF
9598 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
9603 echo "$as_me:$LINENO: checking for long long support" >&5
9604 echo $ECHO_N "checking for long long support... $ECHO_C" >&6
9606 cat >conftest.
$ac_ext <<_ACEOF
9609 cat confdefs.h
>>conftest.
$ac_ext
9610 cat >>conftest.
$ac_ext <<_ACEOF
9611 /* end confdefs.h. */
9616 long long x; x = (long long)0;
9621 rm -f conftest.
$ac_objext
9622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9623 (eval $ac_compile) 2>conftest.er1
9625 grep -v '^ *+' conftest.er1
>conftest.err
9627 cat conftest.err
>&5
9628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9629 (exit $ac_status); } &&
9630 { ac_try
='test -z "$ac_c_werror_flag"
9631 || test ! -s conftest.err'
9632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9636 (exit $ac_status); }; } &&
9637 { ac_try
='test -s conftest.$ac_objext'
9638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9642 (exit $ac_status); }; }; then
9645 cat >>confdefs.h
<<\_ACEOF
9646 #define HAVE_LONG_LONG 1
9652 echo "$as_me: failed program was:" >&5
9653 sed 's/^/| /' conftest.
$ac_ext >&5
9656 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9657 echo "$as_me:$LINENO: result: $have_long_long" >&5
9658 echo "${ECHO_T}$have_long_long" >&6
9659 if test "$have_long_long" = yes ; then
9660 echo "$as_me:$LINENO: checking for long long" >&5
9661 echo $ECHO_N "checking for long long... $ECHO_C" >&6
9662 if test "${ac_cv_type_long_long+set}" = set; then
9663 echo $ECHO_N "(cached) $ECHO_C" >&6
9665 cat >conftest.
$ac_ext <<_ACEOF
9668 cat confdefs.h
>>conftest.
$ac_ext
9669 cat >>conftest.
$ac_ext <<_ACEOF
9670 /* end confdefs.h. */
9671 $ac_includes_default
9675 if ((long long *) 0)
9677 if (sizeof (long long))
9683 rm -f conftest.
$ac_objext
9684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9685 (eval $ac_compile) 2>conftest.er1
9687 grep -v '^ *+' conftest.er1
>conftest.err
9689 cat conftest.err
>&5
9690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9691 (exit $ac_status); } &&
9692 { ac_try
='test -z "$ac_c_werror_flag"
9693 || test ! -s conftest.err'
9694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698 (exit $ac_status); }; } &&
9699 { ac_try
='test -s conftest.$ac_objext'
9700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9704 (exit $ac_status); }; }; then
9705 ac_cv_type_long_long
=yes
9707 echo "$as_me: failed program was:" >&5
9708 sed 's/^/| /' conftest.
$ac_ext >&5
9710 ac_cv_type_long_long
=no
9712 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9714 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
9715 echo "${ECHO_T}$ac_cv_type_long_long" >&6
9717 echo "$as_me:$LINENO: checking size of long long" >&5
9718 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
9719 if test "${ac_cv_sizeof_long_long+set}" = set; then
9720 echo $ECHO_N "(cached) $ECHO_C" >&6
9722 if test "$ac_cv_type_long_long" = yes; then
9723 # The cast to unsigned long works around a bug in the HP C Compiler
9724 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9725 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9726 # This bug is HP SR number 8606223364.
9727 if test "$cross_compiling" = yes; then
9728 # Depending upon the size, compute the lo and hi bounds.
9729 cat >conftest.
$ac_ext <<_ACEOF
9732 cat confdefs.h
>>conftest.
$ac_ext
9733 cat >>conftest.
$ac_ext <<_ACEOF
9734 /* end confdefs.h. */
9735 $ac_includes_default
9739 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
9746 rm -f conftest.
$ac_objext
9747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9748 (eval $ac_compile) 2>conftest.er1
9750 grep -v '^ *+' conftest.er1
>conftest.err
9752 cat conftest.err
>&5
9753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9754 (exit $ac_status); } &&
9755 { ac_try
='test -z "$ac_c_werror_flag"
9756 || test ! -s conftest.err'
9757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9761 (exit $ac_status); }; } &&
9762 { ac_try
='test -s conftest.$ac_objext'
9763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9767 (exit $ac_status); }; }; then
9770 cat >conftest.
$ac_ext <<_ACEOF
9773 cat confdefs.h
>>conftest.
$ac_ext
9774 cat >>conftest.
$ac_ext <<_ACEOF
9775 /* end confdefs.h. */
9776 $ac_includes_default
9780 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
9787 rm -f conftest.
$ac_objext
9788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9789 (eval $ac_compile) 2>conftest.er1
9791 grep -v '^ *+' conftest.er1
>conftest.err
9793 cat conftest.err
>&5
9794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795 (exit $ac_status); } &&
9796 { ac_try
='test -z "$ac_c_werror_flag"
9797 || test ! -s conftest.err'
9798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9802 (exit $ac_status); }; } &&
9803 { ac_try
='test -s conftest.$ac_objext'
9804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9808 (exit $ac_status); }; }; then
9809 ac_hi
=$ac_mid; break
9811 echo "$as_me: failed program was:" >&5
9812 sed 's/^/| /' conftest.
$ac_ext >&5
9814 ac_lo
=`expr $ac_mid + 1`
9815 if test $ac_lo -le $ac_mid; then
9819 ac_mid
=`expr 2 '*' $ac_mid + 1`
9821 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9824 echo "$as_me: failed program was:" >&5
9825 sed 's/^/| /' conftest.
$ac_ext >&5
9827 cat >conftest.
$ac_ext <<_ACEOF
9830 cat confdefs.h
>>conftest.
$ac_ext
9831 cat >>conftest.
$ac_ext <<_ACEOF
9832 /* end confdefs.h. */
9833 $ac_includes_default
9837 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
9844 rm -f conftest.
$ac_objext
9845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9846 (eval $ac_compile) 2>conftest.er1
9848 grep -v '^ *+' conftest.er1
>conftest.err
9850 cat conftest.err
>&5
9851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852 (exit $ac_status); } &&
9853 { ac_try
='test -z "$ac_c_werror_flag"
9854 || test ! -s conftest.err'
9855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9859 (exit $ac_status); }; } &&
9860 { ac_try
='test -s conftest.$ac_objext'
9861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9865 (exit $ac_status); }; }; then
9868 cat >conftest.
$ac_ext <<_ACEOF
9871 cat confdefs.h
>>conftest.
$ac_ext
9872 cat >>conftest.
$ac_ext <<_ACEOF
9873 /* end confdefs.h. */
9874 $ac_includes_default
9878 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
9885 rm -f conftest.
$ac_objext
9886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9887 (eval $ac_compile) 2>conftest.er1
9889 grep -v '^ *+' conftest.er1
>conftest.err
9891 cat conftest.err
>&5
9892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9893 (exit $ac_status); } &&
9894 { ac_try
='test -z "$ac_c_werror_flag"
9895 || test ! -s conftest.err'
9896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9900 (exit $ac_status); }; } &&
9901 { ac_try
='test -s conftest.$ac_objext'
9902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9906 (exit $ac_status); }; }; then
9907 ac_lo
=$ac_mid; break
9909 echo "$as_me: failed program was:" >&5
9910 sed 's/^/| /' conftest.
$ac_ext >&5
9912 ac_hi
=`expr '(' $ac_mid ')' - 1`
9913 if test $ac_mid -le $ac_hi; then
9917 ac_mid
=`expr 2 '*' $ac_mid`
9919 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9922 echo "$as_me: failed program was:" >&5
9923 sed 's/^/| /' conftest.
$ac_ext >&5
9927 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9929 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9930 # Binary search between lo and hi bounds.
9931 while test "x$ac_lo" != "x$ac_hi"; do
9932 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9933 cat >conftest.
$ac_ext <<_ACEOF
9936 cat confdefs.h
>>conftest.
$ac_ext
9937 cat >>conftest.
$ac_ext <<_ACEOF
9938 /* end confdefs.h. */
9939 $ac_includes_default
9943 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
9950 rm -f conftest.
$ac_objext
9951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9952 (eval $ac_compile) 2>conftest.er1
9954 grep -v '^ *+' conftest.er1
>conftest.err
9956 cat conftest.err
>&5
9957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9958 (exit $ac_status); } &&
9959 { ac_try
='test -z "$ac_c_werror_flag"
9960 || test ! -s conftest.err'
9961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9965 (exit $ac_status); }; } &&
9966 { ac_try
='test -s conftest.$ac_objext'
9967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9971 (exit $ac_status); }; }; then
9974 echo "$as_me: failed program was:" >&5
9975 sed 's/^/| /' conftest.
$ac_ext >&5
9977 ac_lo
=`expr '(' $ac_mid ')' + 1`
9979 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9982 ?
*) ac_cv_sizeof_long_long
=$ac_lo;;
9983 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
9984 See \`config.log' for more details." >&5
9985 echo "$as_me: error: cannot compute sizeof (long long), 77
9986 See \`config.log' for more details." >&2;}
9987 { (exit 1); exit 1; }; } ;;
9990 if test "$cross_compiling" = yes; then
9991 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9992 See \`config.log' for more details." >&5
9993 echo "$as_me: error: cannot run test program while cross compiling
9994 See \`config.log' for more details." >&2;}
9995 { (exit 1); exit 1; }; }
9997 cat >conftest.
$ac_ext <<_ACEOF
10000 cat confdefs.h
>>conftest.
$ac_ext
10001 cat >>conftest.
$ac_ext <<_ACEOF
10002 /* end confdefs.h. */
10003 $ac_includes_default
10004 long longval () { return (long) (sizeof (long long)); }
10005 unsigned long ulongval () { return (long) (sizeof (long long)); }
10007 #include <stdlib.h>
10012 FILE *f = fopen ("conftest.val", "w");
10015 if (((long) (sizeof (long long))) < 0)
10017 long i = longval ();
10018 if (i != ((long) (sizeof (long long))))
10020 fprintf (f, "%ld\n", i);
10024 unsigned long i = ulongval ();
10025 if (i != ((long) (sizeof (long long))))
10027 fprintf (f, "%lu\n", i);
10029 exit (ferror (f) || fclose (f) != 0);
10035 rm -f conftest
$ac_exeext
10036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10037 (eval $ac_link) 2>&5
10039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10040 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10042 (eval $ac_try) 2>&5
10044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10045 (exit $ac_status); }; }; then
10046 ac_cv_sizeof_long_long
=`cat conftest.val`
10048 echo "$as_me: program exited with status $ac_status" >&5
10049 echo "$as_me: failed program was:" >&5
10050 sed 's/^/| /' conftest.
$ac_ext >&5
10052 ( exit $ac_status )
10053 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
10054 See \`config.log' for more details." >&5
10055 echo "$as_me: error: cannot compute sizeof (long long), 77
10056 See \`config.log' for more details." >&2;}
10057 { (exit 1); exit 1; }; }
10059 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10064 ac_cv_sizeof_long_long
=0
10067 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
10068 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
10069 cat >>confdefs.h
<<_ACEOF
10070 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10076 echo "$as_me:$LINENO: checking for uintptr_t support" >&5
10077 echo $ECHO_N "checking for uintptr_t support... $ECHO_C" >&6
10079 cat >conftest.
$ac_ext <<_ACEOF
10082 cat confdefs.h
>>conftest.
$ac_ext
10083 cat >>conftest.
$ac_ext <<_ACEOF
10084 /* end confdefs.h. */
10089 uintptr_t x; x = (uintptr_t)0;
10094 rm -f conftest.
$ac_objext
10095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10096 (eval $ac_compile) 2>conftest.er1
10098 grep -v '^ *+' conftest.er1
>conftest.err
10100 cat conftest.err
>&5
10101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10102 (exit $ac_status); } &&
10103 { ac_try
='test -z "$ac_c_werror_flag"
10104 || test ! -s conftest.err'
10105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10106 (eval $ac_try) 2>&5
10108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10109 (exit $ac_status); }; } &&
10110 { ac_try
='test -s conftest.$ac_objext'
10111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10112 (eval $ac_try) 2>&5
10114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10115 (exit $ac_status); }; }; then
10118 cat >>confdefs.h
<<\_ACEOF
10119 #define HAVE_UINTPTR_T 1
10125 echo "$as_me: failed program was:" >&5
10126 sed 's/^/| /' conftest.
$ac_ext >&5
10129 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10130 echo "$as_me:$LINENO: result: $have_uintptr_t" >&5
10131 echo "${ECHO_T}$have_uintptr_t" >&6
10132 if test "$have_uintptr_t" = yes ; then
10133 echo "$as_me:$LINENO: checking for uintptr_t" >&5
10134 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
10135 if test "${ac_cv_type_uintptr_t+set}" = set; then
10136 echo $ECHO_N "(cached) $ECHO_C" >&6
10138 cat >conftest.
$ac_ext <<_ACEOF
10141 cat confdefs.h
>>conftest.
$ac_ext
10142 cat >>conftest.
$ac_ext <<_ACEOF
10143 /* end confdefs.h. */
10144 $ac_includes_default
10148 if ((uintptr_t *) 0)
10150 if (sizeof (uintptr_t))
10156 rm -f conftest.
$ac_objext
10157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10158 (eval $ac_compile) 2>conftest.er1
10160 grep -v '^ *+' conftest.er1
>conftest.err
10162 cat conftest.err
>&5
10163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10164 (exit $ac_status); } &&
10165 { ac_try
='test -z "$ac_c_werror_flag"
10166 || test ! -s conftest.err'
10167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10168 (eval $ac_try) 2>&5
10170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10171 (exit $ac_status); }; } &&
10172 { ac_try
='test -s conftest.$ac_objext'
10173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10174 (eval $ac_try) 2>&5
10176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10177 (exit $ac_status); }; }; then
10178 ac_cv_type_uintptr_t
=yes
10180 echo "$as_me: failed program was:" >&5
10181 sed 's/^/| /' conftest.
$ac_ext >&5
10183 ac_cv_type_uintptr_t
=no
10185 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10187 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
10188 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
10190 echo "$as_me:$LINENO: checking size of uintptr_t" >&5
10191 echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6
10192 if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
10193 echo $ECHO_N "(cached) $ECHO_C" >&6
10195 if test "$ac_cv_type_uintptr_t" = yes; then
10196 # The cast to unsigned long works around a bug in the HP C Compiler
10197 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10198 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10199 # This bug is HP SR number 8606223364.
10200 if test "$cross_compiling" = yes; then
10201 # Depending upon the size, compute the lo and hi bounds.
10202 cat >conftest.
$ac_ext <<_ACEOF
10205 cat confdefs.h
>>conftest.
$ac_ext
10206 cat >>conftest.
$ac_ext <<_ACEOF
10207 /* end confdefs.h. */
10208 $ac_includes_default
10212 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= 0)];
10219 rm -f conftest.
$ac_objext
10220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10221 (eval $ac_compile) 2>conftest.er1
10223 grep -v '^ *+' conftest.er1
>conftest.err
10225 cat conftest.err
>&5
10226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10227 (exit $ac_status); } &&
10228 { ac_try
='test -z "$ac_c_werror_flag"
10229 || test ! -s conftest.err'
10230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10231 (eval $ac_try) 2>&5
10233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10234 (exit $ac_status); }; } &&
10235 { ac_try
='test -s conftest.$ac_objext'
10236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10237 (eval $ac_try) 2>&5
10239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10240 (exit $ac_status); }; }; then
10243 cat >conftest.
$ac_ext <<_ACEOF
10246 cat confdefs.h
>>conftest.
$ac_ext
10247 cat >>conftest.
$ac_ext <<_ACEOF
10248 /* end confdefs.h. */
10249 $ac_includes_default
10253 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)];
10260 rm -f conftest.
$ac_objext
10261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10262 (eval $ac_compile) 2>conftest.er1
10264 grep -v '^ *+' conftest.er1
>conftest.err
10266 cat conftest.err
>&5
10267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10268 (exit $ac_status); } &&
10269 { ac_try
='test -z "$ac_c_werror_flag"
10270 || test ! -s conftest.err'
10271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10272 (eval $ac_try) 2>&5
10274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10275 (exit $ac_status); }; } &&
10276 { ac_try
='test -s conftest.$ac_objext'
10277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10278 (eval $ac_try) 2>&5
10280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10281 (exit $ac_status); }; }; then
10282 ac_hi
=$ac_mid; break
10284 echo "$as_me: failed program was:" >&5
10285 sed 's/^/| /' conftest.
$ac_ext >&5
10287 ac_lo
=`expr $ac_mid + 1`
10288 if test $ac_lo -le $ac_mid; then
10292 ac_mid
=`expr 2 '*' $ac_mid + 1`
10294 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10297 echo "$as_me: failed program was:" >&5
10298 sed 's/^/| /' conftest.
$ac_ext >&5
10300 cat >conftest.
$ac_ext <<_ACEOF
10303 cat confdefs.h
>>conftest.
$ac_ext
10304 cat >>conftest.
$ac_ext <<_ACEOF
10305 /* end confdefs.h. */
10306 $ac_includes_default
10310 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) < 0)];
10317 rm -f conftest.
$ac_objext
10318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10319 (eval $ac_compile) 2>conftest.er1
10321 grep -v '^ *+' conftest.er1
>conftest.err
10323 cat conftest.err
>&5
10324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10325 (exit $ac_status); } &&
10326 { ac_try
='test -z "$ac_c_werror_flag"
10327 || test ! -s conftest.err'
10328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10329 (eval $ac_try) 2>&5
10331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10332 (exit $ac_status); }; } &&
10333 { ac_try
='test -s conftest.$ac_objext'
10334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10335 (eval $ac_try) 2>&5
10337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10338 (exit $ac_status); }; }; then
10341 cat >conftest.
$ac_ext <<_ACEOF
10344 cat confdefs.h
>>conftest.
$ac_ext
10345 cat >>conftest.
$ac_ext <<_ACEOF
10346 /* end confdefs.h. */
10347 $ac_includes_default
10351 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= $ac_mid)];
10358 rm -f conftest.
$ac_objext
10359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10360 (eval $ac_compile) 2>conftest.er1
10362 grep -v '^ *+' conftest.er1
>conftest.err
10364 cat conftest.err
>&5
10365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10366 (exit $ac_status); } &&
10367 { ac_try
='test -z "$ac_c_werror_flag"
10368 || test ! -s conftest.err'
10369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10370 (eval $ac_try) 2>&5
10372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10373 (exit $ac_status); }; } &&
10374 { ac_try
='test -s conftest.$ac_objext'
10375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10376 (eval $ac_try) 2>&5
10378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10379 (exit $ac_status); }; }; then
10380 ac_lo
=$ac_mid; break
10382 echo "$as_me: failed program was:" >&5
10383 sed 's/^/| /' conftest.
$ac_ext >&5
10385 ac_hi
=`expr '(' $ac_mid ')' - 1`
10386 if test $ac_mid -le $ac_hi; then
10390 ac_mid
=`expr 2 '*' $ac_mid`
10392 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10395 echo "$as_me: failed program was:" >&5
10396 sed 's/^/| /' conftest.
$ac_ext >&5
10400 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10402 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10403 # Binary search between lo and hi bounds.
10404 while test "x$ac_lo" != "x$ac_hi"; do
10405 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10406 cat >conftest.
$ac_ext <<_ACEOF
10409 cat confdefs.h
>>conftest.
$ac_ext
10410 cat >>conftest.
$ac_ext <<_ACEOF
10411 /* end confdefs.h. */
10412 $ac_includes_default
10416 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)];
10423 rm -f conftest.
$ac_objext
10424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10425 (eval $ac_compile) 2>conftest.er1
10427 grep -v '^ *+' conftest.er1
>conftest.err
10429 cat conftest.err
>&5
10430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10431 (exit $ac_status); } &&
10432 { ac_try
='test -z "$ac_c_werror_flag"
10433 || test ! -s conftest.err'
10434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10435 (eval $ac_try) 2>&5
10437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10438 (exit $ac_status); }; } &&
10439 { ac_try
='test -s conftest.$ac_objext'
10440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10441 (eval $ac_try) 2>&5
10443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10444 (exit $ac_status); }; }; then
10447 echo "$as_me: failed program was:" >&5
10448 sed 's/^/| /' conftest.
$ac_ext >&5
10450 ac_lo
=`expr '(' $ac_mid ')' + 1`
10452 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10455 ?
*) ac_cv_sizeof_uintptr_t
=$ac_lo;;
10456 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77
10457 See \`config.log' for more details." >&5
10458 echo "$as_me: error: cannot compute sizeof (uintptr_t), 77
10459 See \`config.log' for more details." >&2;}
10460 { (exit 1); exit 1; }; } ;;
10463 if test "$cross_compiling" = yes; then
10464 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10465 See \`config.log' for more details." >&5
10466 echo "$as_me: error: cannot run test program while cross compiling
10467 See \`config.log' for more details." >&2;}
10468 { (exit 1); exit 1; }; }
10470 cat >conftest.
$ac_ext <<_ACEOF
10473 cat confdefs.h
>>conftest.
$ac_ext
10474 cat >>conftest.
$ac_ext <<_ACEOF
10475 /* end confdefs.h. */
10476 $ac_includes_default
10477 long longval () { return (long) (sizeof (uintptr_t)); }
10478 unsigned long ulongval () { return (long) (sizeof (uintptr_t)); }
10480 #include <stdlib.h>
10485 FILE *f = fopen ("conftest.val", "w");
10488 if (((long) (sizeof (uintptr_t))) < 0)
10490 long i = longval ();
10491 if (i != ((long) (sizeof (uintptr_t))))
10493 fprintf (f, "%ld\n", i);
10497 unsigned long i = ulongval ();
10498 if (i != ((long) (sizeof (uintptr_t))))
10500 fprintf (f, "%lu\n", i);
10502 exit (ferror (f) || fclose (f) != 0);
10508 rm -f conftest
$ac_exeext
10509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10510 (eval $ac_link) 2>&5
10512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10513 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10515 (eval $ac_try) 2>&5
10517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10518 (exit $ac_status); }; }; then
10519 ac_cv_sizeof_uintptr_t
=`cat conftest.val`
10521 echo "$as_me: program exited with status $ac_status" >&5
10522 echo "$as_me: failed program was:" >&5
10523 sed 's/^/| /' conftest.
$ac_ext >&5
10525 ( exit $ac_status )
10526 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77
10527 See \`config.log' for more details." >&5
10528 echo "$as_me: error: cannot compute sizeof (uintptr_t), 77
10529 See \`config.log' for more details." >&2;}
10530 { (exit 1); exit 1; }; }
10532 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10537 ac_cv_sizeof_uintptr_t
=0
10540 echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
10541 echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6
10542 cat >>confdefs.h
<<_ACEOF
10543 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
10549 # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>.
10550 echo "$as_me:$LINENO: checking size of off_t" >&5
10551 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
10552 if test "${ac_cv_sizeof_off_t+set}" = set; then
10553 echo $ECHO_N "(cached) $ECHO_C" >&6
10555 if test "$cross_compiling" = yes; then
10556 ac_cv_sizeof_off_t
=4
10558 cat >conftest.
$ac_ext <<_ACEOF
10561 cat confdefs.h
>>conftest.
$ac_ext
10562 cat >>conftest.
$ac_ext <<_ACEOF
10563 /* end confdefs.h. */
10565 #include <sys/types.h>
10568 FILE *f=fopen("conftestval", "w");
10570 fprintf(f, "%d\n", sizeof(off_t));
10574 rm -f conftest
$ac_exeext
10575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10576 (eval $ac_link) 2>&5
10578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10579 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10581 (eval $ac_try) 2>&5
10583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10584 (exit $ac_status); }; }; then
10585 ac_cv_sizeof_off_t
=`cat conftestval`
10587 echo "$as_me: program exited with status $ac_status" >&5
10588 echo "$as_me: failed program was:" >&5
10589 sed 's/^/| /' conftest.
$ac_ext >&5
10591 ( exit $ac_status )
10592 ac_cv_sizeof_off_t
=0
10594 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10599 echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
10600 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
10602 cat >>confdefs.h
<<_ACEOF
10603 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
10607 echo "$as_me:$LINENO: checking whether to enable large file support" >&5
10608 echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6
10609 if test "$have_long_long" = yes -a \
10610 "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
10611 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
10613 cat >>confdefs.h
<<\_ACEOF
10614 #define HAVE_LARGEFILE_SUPPORT 1
10617 echo "$as_me:$LINENO: result: yes" >&5
10618 echo "${ECHO_T}yes" >&6
10620 echo "$as_me:$LINENO: result: no" >&5
10621 echo "${ECHO_T}no" >&6
10624 # AC_CHECK_SIZEOF() doesn't include <time.h>.
10625 echo "$as_me:$LINENO: checking size of time_t" >&5
10626 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6
10627 if test "${ac_cv_sizeof_time_t+set}" = set; then
10628 echo $ECHO_N "(cached) $ECHO_C" >&6
10630 if test "$cross_compiling" = yes; then
10631 ac_cv_sizeof_time_t
=4
10633 cat >conftest.
$ac_ext <<_ACEOF
10636 cat confdefs.h
>>conftest.
$ac_ext
10637 cat >>conftest.
$ac_ext <<_ACEOF
10638 /* end confdefs.h. */
10643 FILE *f=fopen("conftestval", "w");
10645 fprintf(f, "%d\n", sizeof(time_t));
10649 rm -f conftest
$ac_exeext
10650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10651 (eval $ac_link) 2>&5
10653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10654 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10656 (eval $ac_try) 2>&5
10658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10659 (exit $ac_status); }; }; then
10660 ac_cv_sizeof_time_t
=`cat conftestval`
10662 echo "$as_me: program exited with status $ac_status" >&5
10663 echo "$as_me: failed program was:" >&5
10664 sed 's/^/| /' conftest.
$ac_ext >&5
10666 ( exit $ac_status )
10667 ac_cv_sizeof_time_t
=0
10669 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10674 echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
10675 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6
10677 cat >>confdefs.h
<<_ACEOF
10678 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
10683 # if have pthread_t then define SIZEOF_PTHREAD_T
10685 if test "$ac_cv_kpthread" = "yes"
10686 then CC
="$CC -Kpthread"
10687 elif test "$ac_cv_kthread" = "yes"
10688 then CC
="$CC -Kthread"
10689 elif test "$ac_cv_pthread" = "yes"
10690 then CC
="$CC -pthread"
10692 echo "$as_me:$LINENO: checking for pthread_t" >&5
10693 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6
10695 cat >conftest.
$ac_ext <<_ACEOF
10698 cat confdefs.h
>>conftest.
$ac_ext
10699 cat >>conftest.
$ac_ext <<_ACEOF
10700 /* end confdefs.h. */
10701 #include <pthread.h>
10705 pthread_t x; x = *(pthread_t*)0;
10710 rm -f conftest.
$ac_objext
10711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10712 (eval $ac_compile) 2>conftest.er1
10714 grep -v '^ *+' conftest.er1
>conftest.err
10716 cat conftest.err
>&5
10717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718 (exit $ac_status); } &&
10719 { ac_try
='test -z "$ac_c_werror_flag"
10720 || test ! -s conftest.err'
10721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10722 (eval $ac_try) 2>&5
10724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10725 (exit $ac_status); }; } &&
10726 { ac_try
='test -s conftest.$ac_objext'
10727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10728 (eval $ac_try) 2>&5
10730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10731 (exit $ac_status); }; }; then
10734 echo "$as_me: failed program was:" >&5
10735 sed 's/^/| /' conftest.
$ac_ext >&5
10738 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10739 echo "$as_me:$LINENO: result: $have_pthread_t" >&5
10740 echo "${ECHO_T}$have_pthread_t" >&6
10741 if test "$have_pthread_t" = yes ; then
10742 # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
10743 echo "$as_me:$LINENO: checking size of pthread_t" >&5
10744 echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6
10745 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
10746 echo $ECHO_N "(cached) $ECHO_C" >&6
10748 if test "$cross_compiling" = yes; then
10749 ac_cv_sizeof_pthread_t
=4
10751 cat >conftest.
$ac_ext <<_ACEOF
10754 cat confdefs.h
>>conftest.
$ac_ext
10755 cat >>conftest.
$ac_ext <<_ACEOF
10756 /* end confdefs.h. */
10758 #include <pthread.h>
10761 FILE *f=fopen("conftestval", "w");
10763 fprintf(f, "%d\n", sizeof(pthread_t));
10767 rm -f conftest
$ac_exeext
10768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10769 (eval $ac_link) 2>&5
10771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10772 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10774 (eval $ac_try) 2>&5
10776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10777 (exit $ac_status); }; }; then
10778 ac_cv_sizeof_pthread_t
=`cat conftestval`
10780 echo "$as_me: program exited with status $ac_status" >&5
10781 echo "$as_me: failed program was:" >&5
10782 sed 's/^/| /' conftest.
$ac_ext >&5
10784 ( exit $ac_status )
10785 ac_cv_sizeof_pthread_t
=0
10787 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10792 echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
10793 echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6
10795 cat >>confdefs.h
<<_ACEOF
10796 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
10802 echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5
10803 echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6
10804 # Check whether --enable-toolbox-glue or --disable-toolbox-glue was given.
10805 if test "${enable_toolbox_glue+set}" = set; then
10806 enableval
="$enable_toolbox_glue"
10810 if test -z "$enable_toolbox_glue"
10812 case $ac_sys_system/$ac_sys_release in
10814 enable_toolbox_glue
="yes";;
10816 enable_toolbox_glue
="no";;
10819 case "$enable_toolbox_glue" in
10821 extra_machdep_objs
="Python/mactoolboxglue.o"
10822 extra_undefs
="-u _PyMac_Error"
10824 cat >>confdefs.h
<<\_ACEOF
10825 #define USE_TOOLBOX_OBJECT_GLUE 1
10830 extra_machdep_objs
=""
10834 echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5
10835 echo "${ECHO_T}$enable_toolbox_glue" >&6
10838 case $ac_sys_system/$ac_sys_release in
10839 Darwin
/[01567]\..
*)
10840 OTHER_LIBTOOL_OPT
="-prebind -seg1addr 0x10000000"
10843 OTHER_LIBTOOL_OPT
=""
10848 case $ac_sys_system/$ac_sys_release in
10849 Darwin
/[01567]\..
*)
10850 LIBTOOL_CRUFT
="-framework System -lcc_dynamic"
10851 if test "${enable_universalsdk}"; then
10854 LIBTOOL_CRUFT
="${LIBTOOL_CRUFT} -arch_only `arch`"
10856 LIBTOOL_CRUFT
=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10857 LIBTOOL_CRUFT
=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
10859 gcc_version
=`gcc -v 2>&1 | grep version | cut -d\ -f3`
10860 if test ${gcc_version} '<' 4.0
10862 LIBTOOL_CRUFT
="-lcc_dynamic"
10866 LIBTOOL_CRUFT
=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only `arch`"
10867 LIBTOOL_CRUFT
=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10868 LIBTOOL_CRUFT
=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
10871 echo "$as_me:$LINENO: checking for --enable-framework" >&5
10872 echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6
10873 if test "$enable_framework"
10875 BASECFLAGS
="$BASECFLAGS -fno-common -dynamic"
10876 # -F. is needed to allow linking to the framework while
10877 # in the build location.
10879 cat >>confdefs.h
<<\_ACEOF
10880 #define WITH_NEXT_FRAMEWORK 1
10883 echo "$as_me:$LINENO: result: yes" >&5
10884 echo "${ECHO_T}yes" >&6
10886 echo "$as_me:$LINENO: result: no" >&5
10887 echo "${ECHO_T}no" >&6
10890 echo "$as_me:$LINENO: checking for dyld" >&5
10891 echo $ECHO_N "checking for dyld... $ECHO_C" >&6
10892 case $ac_sys_system/$ac_sys_release in
10895 cat >>confdefs.h
<<\_ACEOF
10896 #define WITH_DYLD 1
10899 echo "$as_me:$LINENO: result: always on for Darwin" >&5
10900 echo "${ECHO_T}always on for Darwin" >&6
10903 echo "$as_me:$LINENO: result: no" >&5
10904 echo "${ECHO_T}no" >&6
10908 # Set info about shared libraries.
10914 # SO is the extension of shared libraries `(including the dot!)
10915 # -- usually .so, .sl on HP-UX, .dll on Cygwin
10916 echo "$as_me:$LINENO: checking SO" >&5
10917 echo $ECHO_N "checking SO... $ECHO_C" >&6
10920 case $ac_sys_system in
10931 # this might also be a termcap variable, see #610332
10933 echo '====================================================================='
10935 echo '+ WARNING: You have set SO in your environment. +'
10936 echo '+ Do you really mean to change the extension for shared libraries? +'
10937 echo '+ Continuing in 10 seconds to let you to ponder. +'
10939 echo '====================================================================='
10942 echo "$as_me:$LINENO: result: $SO" >&5
10943 echo "${ECHO_T}$SO" >&6
10945 cat >>confdefs.h
<<_ACEOF
10946 #define SHLIB_EXT "$SO"
10949 # LDSHARED is the ld *command* used to create shared library
10950 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
10951 # (Shared libraries in this instance are shared modules to be loaded into
10952 # Python, as opposed to building Python itself as a shared library.)
10953 echo "$as_me:$LINENO: checking LDSHARED" >&5
10954 echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6
10955 if test -z "$LDSHARED"
10957 case $ac_sys_system/$ac_sys_release in
10959 BLDSHARED
="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
10960 LDSHARED
="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
10963 BLDSHARED
="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
10964 LDSHARED
="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
10966 IRIX
/5*) LDSHARED
="ld -shared";;
10967 IRIX
*/6*) LDSHARED
="ld ${SGI_ABI} -shared -all";;
10969 if test "$GCC" = "yes"
10970 then LDSHARED
='$(CC) -shared'
10971 else LDSHARED
='$(CC) -G';
10973 hp
*|HP
*) LDSHARED
="ld -b";;
10974 OSF
*) LDSHARED
="ld -shared -expect_unresolved \"*\"";;
10976 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
10977 if test "$enable_framework" ; then
10978 # Link against the framework. All externals should be defined.
10979 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10980 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10982 # No framework. Ignore undefined symbols, assuming they come from Python
10983 LDSHARED
="$LDSHARED -undefined suppress"
10985 Darwin
/1.4*|Darwin
/5.
*|Darwin
/6.
*)
10986 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
10987 if test "$enable_framework" ; then
10988 # Link against the framework. All externals should be defined.
10989 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10990 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10992 # No framework, use the Python app as bundle-loader
10993 BLDSHARED
="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
10994 LDSHARED
="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
10997 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
10998 # This allows an extension to be used in any Python
10999 cur_target
=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
11000 if test ${cur_target} '>' 10.2; then
11003 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
11004 EXPORT_MACOSX_DEPLOYMENT_TARGET
=''
11005 if test ${MACOSX_DEPLOYMENT_TARGET-${cur_target}} '>' 10.2
11007 if test "${enable_universalsdk}"; then
11008 LDFLAGS
="-arch i386 -arch ppc -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
11010 LDSHARED
='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
11011 BLDSHARED
="$LDSHARED"
11013 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
11014 if test "$enable_framework" ; then
11015 # Link against the framework. All externals should be defined.
11016 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11017 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11019 # No framework, use the Python app as bundle-loader
11020 BLDSHARED
="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
11021 LDSHARED
="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
11025 Linux
*|GNU
*) LDSHARED
='$(CC) -shared';;
11026 BSD
/OS
*/4*) LDSHARED
="gcc -shared";;
11028 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
11030 LDSHARED
="$CC -shared ${LDFLAGS}"
11032 LDSHARED
="ld -Bshareable ${LDFLAGS}"
11035 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
11037 LDSHARED
='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
11040 [01].
* |
2.
[0-7] |
2.
[0-7].
*)
11041 LDSHARED
="ld -Bshareable ${LDFLAGS}"
11044 LDSHARED
='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
11048 NetBSD
*|DragonFly
*) LDSHARED
="cc -shared ${LDFLAGS}";;
11049 OpenUNIX
*|UnixWare
*)
11050 if test "$GCC" = "yes"
11051 then LDSHARED
='$(CC) -shared'
11052 else LDSHARED
='$(CC) -G'
11054 SCO_SV
*) LDSHARED
='$(CC) -Wl,-G,-Bexport';;
11055 Monterey
*) LDSHARED
="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";;
11056 CYGWIN
*) LDSHARED
="gcc -shared -Wl,--enable-auto-image-base";;
11057 atheos
*) LDSHARED
="gcc -shared";;
11061 echo "$as_me:$LINENO: result: $LDSHARED" >&5
11062 echo "${ECHO_T}$LDSHARED" >&6
11063 BLDSHARED
=${BLDSHARED-$LDSHARED}
11064 # CCSHARED are the C *flags* used to create objects to go into a shared
11065 # library (module) -- this is only needed for a few systems
11066 echo "$as_me:$LINENO: checking CCSHARED" >&5
11067 echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6
11068 if test -z "$CCSHARED"
11070 case $ac_sys_system/$ac_sys_release in
11071 SunOS
*) if test "$GCC" = yes;
11072 then CCSHARED
="-fPIC";
11073 else CCSHARED
="-xcode=pic32";
11075 hp
*|HP
*) if test "$GCC" = yes;
11076 then CCSHARED
="-fPIC";
11077 else CCSHARED
="+z";
11079 Linux
*|GNU
*) CCSHARED
="-fPIC";;
11080 BSD
/OS
*/4*) CCSHARED
="-fpic";;
11081 FreeBSD
*|NetBSD
*|OpenBSD
*|DragonFly
*) CCSHARED
="-fPIC";;
11082 OpenUNIX
*|UnixWare
*)
11083 if test "$GCC" = "yes"
11084 then CCSHARED
="-fPIC"
11085 else CCSHARED
="-KPIC"
11088 if test "$GCC" = "yes"
11089 then CCSHARED
="-fPIC"
11090 else CCSHARED
="-Kpic -belf"
11092 Monterey
*) CCSHARED
="-G";;
11093 IRIX
*/6*) case $CC in
11094 *gcc
*) CCSHARED
="-shared";;
11097 atheos
*) CCSHARED
="-fPIC";;
11100 echo "$as_me:$LINENO: result: $CCSHARED" >&5
11101 echo "${ECHO_T}$CCSHARED" >&6
11102 # LINKFORSHARED are the flags passed to the $(CC) command that links
11103 # the python executable -- this is only needed for a few systems
11104 echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
11105 echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6
11106 if test -z "$LINKFORSHARED"
11108 case $ac_sys_system/$ac_sys_release in
11109 AIX
*) LINKFORSHARED
='-Wl,-bE:Modules/python.exp -lld';;
11111 LINKFORSHARED
="-Wl,-E -Wl,+s";;
11112 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
11113 BSD
/OS
/4*) LINKFORSHARED
="-Xlinker -export-dynamic";;
11114 Linux
*|GNU
*) LINKFORSHARED
="-Xlinker -export-dynamic";;
11115 # -u libsys_s pulls in all symbols in libsys
11117 # -u _PyMac_Error is needed to pull in the mac toolbox glue,
11119 # not used by the core itself but which needs to be in the core so
11120 # that dynamically loaded extension modules have access to it.
11121 # -prebind is no longer used, because it actually seems to give a
11122 # slowdown in stead of a speedup, maybe due to the large number of
11123 # dynamic loads Python does.
11125 LINKFORSHARED
="$extra_undefs"
11126 if test "$enable_framework"
11128 LINKFORSHARED
="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11130 LINKFORSHARED
="$LINKFORSHARED";;
11131 OpenUNIX
*|UnixWare
*) LINKFORSHARED
="-Wl,-Bexport";;
11132 SCO_SV
*) LINKFORSHARED
="-Wl,-Bexport";;
11133 ReliantUNIX
*) LINKFORSHARED
="-W1 -Blargedynsym";;
11134 FreeBSD
*|NetBSD
*|OpenBSD
*|DragonFly
*)
11135 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
11137 LINKFORSHARED
="-Wl,--export-dynamic"
11139 SunOS
/5*) case $CC in
11141 if $CC -Xlinker --help 2>&1 |
grep export-dynamic
>/dev
/null
11143 LINKFORSHARED
="-Xlinker --export-dynamic"
11147 if test $enable_shared = "no"
11149 LINKFORSHARED
='-Wl,--out-implib=$(LDLIBRARY)'
11153 echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
11154 echo "${ECHO_T}$LINKFORSHARED" >&6
11157 echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
11158 echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6
11159 if test ! "$LIBRARY" = "$LDLIBRARY"
11161 case $ac_sys_system in
11163 # Cygwin needs CCSHARED when building extension DLLs
11164 # but not when building the interpreter DLL.
11165 CFLAGSFORSHARED
='';;
11167 CFLAGSFORSHARED
='$(CCSHARED)'
11170 echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
11171 echo "${ECHO_T}$CFLAGSFORSHARED" >&6
11173 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
11174 # library (with --enable-shared).
11175 # For platforms on which shared libraries are not allowed to have unresolved
11176 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
11177 # if it is not required, since it creates a dependency of the shared library
11178 # to LIBS. This, in turn, means that applications linking the shared libpython
11179 # don't need to link LIBS explicitly. The default should be only changed
11180 # on systems where this approach causes problems.
11182 echo "$as_me:$LINENO: checking SHLIBS" >&5
11183 echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6
11184 case "$ac_sys_system" in
11188 echo "$as_me:$LINENO: result: $SHLIBS" >&5
11189 echo "${ECHO_T}$SHLIBS" >&6
11192 # checks for libraries
11194 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11195 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11196 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11197 echo $ECHO_N "(cached) $ECHO_C" >&6
11199 ac_check_lib_save_LIBS
=$LIBS
11201 cat >conftest.
$ac_ext <<_ACEOF
11204 cat confdefs.h
>>conftest.
$ac_ext
11205 cat >>conftest.
$ac_ext <<_ACEOF
11206 /* end confdefs.h. */
11208 /* Override any gcc2 internal prototype to avoid an error. */
11212 /* We use char because int might match the return type of a gcc2
11213 builtin and then its argument prototype would still apply. */
11223 rm -f conftest.
$ac_objext conftest
$ac_exeext
11224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11225 (eval $ac_link) 2>conftest.er1
11227 grep -v '^ *+' conftest.er1
>conftest.err
11229 cat conftest.err
>&5
11230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11231 (exit $ac_status); } &&
11232 { ac_try
='test -z "$ac_c_werror_flag"
11233 || test ! -s conftest.err'
11234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11235 (eval $ac_try) 2>&5
11237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11238 (exit $ac_status); }; } &&
11239 { ac_try
='test -s conftest$ac_exeext'
11240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11241 (eval $ac_try) 2>&5
11243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11244 (exit $ac_status); }; }; then
11245 ac_cv_lib_dl_dlopen
=yes
11247 echo "$as_me: failed program was:" >&5
11248 sed 's/^/| /' conftest.
$ac_ext >&5
11250 ac_cv_lib_dl_dlopen
=no
11252 rm -f conftest.err conftest.
$ac_objext \
11253 conftest
$ac_exeext conftest.
$ac_ext
11254 LIBS
=$ac_check_lib_save_LIBS
11256 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11257 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11258 if test $ac_cv_lib_dl_dlopen = yes; then
11259 cat >>confdefs.h
<<_ACEOF
11260 #define HAVE_LIBDL 1
11266 # Dynamic linking for SunOS/Solaris and SYSV
11268 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11269 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11270 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11271 echo $ECHO_N "(cached) $ECHO_C" >&6
11273 ac_check_lib_save_LIBS
=$LIBS
11275 cat >conftest.
$ac_ext <<_ACEOF
11278 cat confdefs.h
>>conftest.
$ac_ext
11279 cat >>conftest.
$ac_ext <<_ACEOF
11280 /* end confdefs.h. */
11282 /* Override any gcc2 internal prototype to avoid an error. */
11286 /* We use char because int might match the return type of a gcc2
11287 builtin and then its argument prototype would still apply. */
11297 rm -f conftest.
$ac_objext conftest
$ac_exeext
11298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11299 (eval $ac_link) 2>conftest.er1
11301 grep -v '^ *+' conftest.er1
>conftest.err
11303 cat conftest.err
>&5
11304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11305 (exit $ac_status); } &&
11306 { ac_try
='test -z "$ac_c_werror_flag"
11307 || test ! -s conftest.err'
11308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11309 (eval $ac_try) 2>&5
11311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11312 (exit $ac_status); }; } &&
11313 { ac_try
='test -s conftest$ac_exeext'
11314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11315 (eval $ac_try) 2>&5
11317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11318 (exit $ac_status); }; }; then
11319 ac_cv_lib_dld_shl_load
=yes
11321 echo "$as_me: failed program was:" >&5
11322 sed 's/^/| /' conftest.
$ac_ext >&5
11324 ac_cv_lib_dld_shl_load
=no
11326 rm -f conftest.err conftest.
$ac_objext \
11327 conftest
$ac_exeext conftest.
$ac_ext
11328 LIBS
=$ac_check_lib_save_LIBS
11330 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11331 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11332 if test $ac_cv_lib_dld_shl_load = yes; then
11333 cat >>confdefs.h
<<_ACEOF
11334 #define HAVE_LIBDLD 1
11340 # Dynamic linking for HP-UX
11342 # only check for sem_ini if thread support is requested
11343 if test "$with_threads" = "yes" -o -z "$with_threads"; then
11344 echo "$as_me:$LINENO: checking for library containing sem_init" >&5
11345 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6
11346 if test "${ac_cv_search_sem_init+set}" = set; then
11347 echo $ECHO_N "(cached) $ECHO_C" >&6
11349 ac_func_search_save_LIBS
=$LIBS
11350 ac_cv_search_sem_init
=no
11351 cat >conftest.
$ac_ext <<_ACEOF
11354 cat confdefs.h
>>conftest.
$ac_ext
11355 cat >>conftest.
$ac_ext <<_ACEOF
11356 /* end confdefs.h. */
11358 /* Override any gcc2 internal prototype to avoid an error. */
11362 /* We use char because int might match the return type of a gcc2
11363 builtin and then its argument prototype would still apply. */
11373 rm -f conftest.
$ac_objext conftest
$ac_exeext
11374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11375 (eval $ac_link) 2>conftest.er1
11377 grep -v '^ *+' conftest.er1
>conftest.err
11379 cat conftest.err
>&5
11380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11381 (exit $ac_status); } &&
11382 { ac_try
='test -z "$ac_c_werror_flag"
11383 || test ! -s conftest.err'
11384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11385 (eval $ac_try) 2>&5
11387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11388 (exit $ac_status); }; } &&
11389 { ac_try
='test -s conftest$ac_exeext'
11390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11391 (eval $ac_try) 2>&5
11393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11394 (exit $ac_status); }; }; then
11395 ac_cv_search_sem_init
="none required"
11397 echo "$as_me: failed program was:" >&5
11398 sed 's/^/| /' conftest.
$ac_ext >&5
11401 rm -f conftest.err conftest.
$ac_objext \
11402 conftest
$ac_exeext conftest.
$ac_ext
11403 if test "$ac_cv_search_sem_init" = no
; then
11404 for ac_lib
in pthread rt posix4
; do
11405 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11406 cat >conftest.
$ac_ext <<_ACEOF
11409 cat confdefs.h
>>conftest.
$ac_ext
11410 cat >>conftest.
$ac_ext <<_ACEOF
11411 /* end confdefs.h. */
11413 /* Override any gcc2 internal prototype to avoid an error. */
11417 /* We use char because int might match the return type of a gcc2
11418 builtin and then its argument prototype would still apply. */
11428 rm -f conftest.
$ac_objext conftest
$ac_exeext
11429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11430 (eval $ac_link) 2>conftest.er1
11432 grep -v '^ *+' conftest.er1
>conftest.err
11434 cat conftest.err
>&5
11435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11436 (exit $ac_status); } &&
11437 { ac_try
='test -z "$ac_c_werror_flag"
11438 || test ! -s conftest.err'
11439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11440 (eval $ac_try) 2>&5
11442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11443 (exit $ac_status); }; } &&
11444 { ac_try
='test -s conftest$ac_exeext'
11445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11446 (eval $ac_try) 2>&5
11448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11449 (exit $ac_status); }; }; then
11450 ac_cv_search_sem_init
="-l$ac_lib"
11453 echo "$as_me: failed program was:" >&5
11454 sed 's/^/| /' conftest.
$ac_ext >&5
11457 rm -f conftest.err conftest.
$ac_objext \
11458 conftest
$ac_exeext conftest.
$ac_ext
11461 LIBS
=$ac_func_search_save_LIBS
11463 echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
11464 echo "${ECHO_T}$ac_cv_search_sem_init" >&6
11465 if test "$ac_cv_search_sem_init" != no
; then
11466 test "$ac_cv_search_sem_init" = "none required" || LIBS
="$ac_cv_search_sem_init $LIBS"
11469 # 'Real Time' functions on Solaris
11470 # posix4 on Solaris 2.6
11471 # pthread (first!) on Linux
11474 # check if we need libintl for locale functions
11475 echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
11476 echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6
11477 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
11478 echo $ECHO_N "(cached) $ECHO_C" >&6
11480 ac_check_lib_save_LIBS
=$LIBS
11481 LIBS
="-lintl $LIBS"
11482 cat >conftest.
$ac_ext <<_ACEOF
11485 cat confdefs.h
>>conftest.
$ac_ext
11486 cat >>conftest.
$ac_ext <<_ACEOF
11487 /* end confdefs.h. */
11489 /* Override any gcc2 internal prototype to avoid an error. */
11493 /* We use char because int might match the return type of a gcc2
11494 builtin and then its argument prototype would still apply. */
11495 char textdomain ();
11504 rm -f conftest.
$ac_objext conftest
$ac_exeext
11505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11506 (eval $ac_link) 2>conftest.er1
11508 grep -v '^ *+' conftest.er1
>conftest.err
11510 cat conftest.err
>&5
11511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11512 (exit $ac_status); } &&
11513 { ac_try
='test -z "$ac_c_werror_flag"
11514 || test ! -s conftest.err'
11515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11516 (eval $ac_try) 2>&5
11518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11519 (exit $ac_status); }; } &&
11520 { ac_try
='test -s conftest$ac_exeext'
11521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11522 (eval $ac_try) 2>&5
11524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11525 (exit $ac_status); }; }; then
11526 ac_cv_lib_intl_textdomain
=yes
11528 echo "$as_me: failed program was:" >&5
11529 sed 's/^/| /' conftest.
$ac_ext >&5
11531 ac_cv_lib_intl_textdomain
=no
11533 rm -f conftest.err conftest.
$ac_objext \
11534 conftest
$ac_exeext conftest.
$ac_ext
11535 LIBS
=$ac_check_lib_save_LIBS
11537 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
11538 echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6
11539 if test $ac_cv_lib_intl_textdomain = yes; then
11541 cat >>confdefs.h
<<\_ACEOF
11542 #define WITH_LIBINTL 1
11548 # checks for system dependent C++ extensions support
11549 case "$ac_sys_system" in
11550 AIX
*) echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
11551 echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6
11552 cat >conftest.
$ac_ext <<_ACEOF
11555 cat confdefs.h
>>conftest.
$ac_ext
11556 cat >>conftest.
$ac_ext <<_ACEOF
11557 /* end confdefs.h. */
11558 #include "/usr/lpp/xlC/include/load.h"
11562 loadAndInit("", 0, "")
11567 rm -f conftest.
$ac_objext conftest
$ac_exeext
11568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11569 (eval $ac_link) 2>conftest.er1
11571 grep -v '^ *+' conftest.er1
>conftest.err
11573 cat conftest.err
>&5
11574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11575 (exit $ac_status); } &&
11576 { ac_try
='test -z "$ac_c_werror_flag"
11577 || test ! -s conftest.err'
11578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11579 (eval $ac_try) 2>&5
11581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11582 (exit $ac_status); }; } &&
11583 { ac_try
='test -s conftest$ac_exeext'
11584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11585 (eval $ac_try) 2>&5
11587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11588 (exit $ac_status); }; }; then
11590 cat >>confdefs.h
<<\_ACEOF
11591 #define AIX_GENUINE_CPLUSPLUS 1
11594 echo "$as_me:$LINENO: result: yes" >&5
11595 echo "${ECHO_T}yes" >&6
11597 echo "$as_me: failed program was:" >&5
11598 sed 's/^/| /' conftest.
$ac_ext >&5
11600 echo "$as_me:$LINENO: result: no" >&5
11601 echo "${ECHO_T}no" >&6
11603 rm -f conftest.err conftest.
$ac_objext \
11604 conftest
$ac_exeext conftest.
$ac_ext;;
11608 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
11609 # BeOS' sockets are stashed in libnet.
11610 echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
11611 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6
11612 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
11613 echo $ECHO_N "(cached) $ECHO_C" >&6
11615 ac_check_lib_save_LIBS
=$LIBS
11617 cat >conftest.
$ac_ext <<_ACEOF
11620 cat confdefs.h
>>conftest.
$ac_ext
11621 cat >>conftest.
$ac_ext <<_ACEOF
11622 /* end confdefs.h. */
11624 /* Override any gcc2 internal prototype to avoid an error. */
11628 /* We use char because int might match the return type of a gcc2
11629 builtin and then its argument prototype would still apply. */
11639 rm -f conftest.
$ac_objext conftest
$ac_exeext
11640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11641 (eval $ac_link) 2>conftest.er1
11643 grep -v '^ *+' conftest.er1
>conftest.err
11645 cat conftest.err
>&5
11646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11647 (exit $ac_status); } &&
11648 { ac_try
='test -z "$ac_c_werror_flag"
11649 || test ! -s conftest.err'
11650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11651 (eval $ac_try) 2>&5
11653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11654 (exit $ac_status); }; } &&
11655 { ac_try
='test -s conftest$ac_exeext'
11656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11657 (eval $ac_try) 2>&5
11659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11660 (exit $ac_status); }; }; then
11661 ac_cv_lib_nsl_t_open
=yes
11663 echo "$as_me: failed program was:" >&5
11664 sed 's/^/| /' conftest.
$ac_ext >&5
11666 ac_cv_lib_nsl_t_open
=no
11668 rm -f conftest.err conftest.
$ac_objext \
11669 conftest
$ac_exeext conftest.
$ac_ext
11670 LIBS
=$ac_check_lib_save_LIBS
11672 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
11673 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6
11674 if test $ac_cv_lib_nsl_t_open = yes; then
11678 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
11679 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
11680 if test "${ac_cv_lib_socket_socket+set}" = set; then
11681 echo $ECHO_N "(cached) $ECHO_C" >&6
11683 ac_check_lib_save_LIBS
=$LIBS
11684 LIBS
="-lsocket $LIBS $LIBS"
11685 cat >conftest.
$ac_ext <<_ACEOF
11688 cat confdefs.h
>>conftest.
$ac_ext
11689 cat >>conftest.
$ac_ext <<_ACEOF
11690 /* end confdefs.h. */
11692 /* Override any gcc2 internal prototype to avoid an error. */
11696 /* We use char because int might match the return type of a gcc2
11697 builtin and then its argument prototype would still apply. */
11707 rm -f conftest.
$ac_objext conftest
$ac_exeext
11708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11709 (eval $ac_link) 2>conftest.er1
11711 grep -v '^ *+' conftest.er1
>conftest.err
11713 cat conftest.err
>&5
11714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11715 (exit $ac_status); } &&
11716 { ac_try
='test -z "$ac_c_werror_flag"
11717 || test ! -s conftest.err'
11718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11719 (eval $ac_try) 2>&5
11721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11722 (exit $ac_status); }; } &&
11723 { ac_try
='test -s conftest$ac_exeext'
11724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11725 (eval $ac_try) 2>&5
11727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11728 (exit $ac_status); }; }; then
11729 ac_cv_lib_socket_socket
=yes
11731 echo "$as_me: failed program was:" >&5
11732 sed 's/^/| /' conftest.
$ac_ext >&5
11734 ac_cv_lib_socket_socket
=no
11736 rm -f conftest.err conftest.
$ac_objext \
11737 conftest
$ac_exeext conftest.
$ac_ext
11738 LIBS
=$ac_check_lib_save_LIBS
11740 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
11741 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
11742 if test $ac_cv_lib_socket_socket = yes; then
11743 LIBS
="-lsocket $LIBS"
11747 case "$ac_sys_system" in
11749 echo "$as_me:$LINENO: checking for socket in -lnet" >&5
11750 echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6
11751 if test "${ac_cv_lib_net_socket+set}" = set; then
11752 echo $ECHO_N "(cached) $ECHO_C" >&6
11754 ac_check_lib_save_LIBS
=$LIBS
11755 LIBS
="-lnet $LIBS $LIBS"
11756 cat >conftest.
$ac_ext <<_ACEOF
11759 cat confdefs.h
>>conftest.
$ac_ext
11760 cat >>conftest.
$ac_ext <<_ACEOF
11761 /* end confdefs.h. */
11763 /* Override any gcc2 internal prototype to avoid an error. */
11767 /* We use char because int might match the return type of a gcc2
11768 builtin and then its argument prototype would still apply. */
11778 rm -f conftest.
$ac_objext conftest
$ac_exeext
11779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11780 (eval $ac_link) 2>conftest.er1
11782 grep -v '^ *+' conftest.er1
>conftest.err
11784 cat conftest.err
>&5
11785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11786 (exit $ac_status); } &&
11787 { ac_try
='test -z "$ac_c_werror_flag"
11788 || test ! -s conftest.err'
11789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11790 (eval $ac_try) 2>&5
11792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11793 (exit $ac_status); }; } &&
11794 { ac_try
='test -s conftest$ac_exeext'
11795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11796 (eval $ac_try) 2>&5
11798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11799 (exit $ac_status); }; }; then
11800 ac_cv_lib_net_socket
=yes
11802 echo "$as_me: failed program was:" >&5
11803 sed 's/^/| /' conftest.
$ac_ext >&5
11805 ac_cv_lib_net_socket
=no
11807 rm -f conftest.err conftest.
$ac_objext \
11808 conftest
$ac_exeext conftest.
$ac_ext
11809 LIBS
=$ac_check_lib_save_LIBS
11811 echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5
11812 echo "${ECHO_T}$ac_cv_lib_net_socket" >&6
11813 if test $ac_cv_lib_net_socket = yes; then
11820 echo "$as_me:$LINENO: checking for --with-libs" >&5
11821 echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6
11823 # Check whether --with-libs or --without-libs was given.
11824 if test "${with_libs+set}" = set; then
11825 withval
="$with_libs"
11827 echo "$as_me:$LINENO: result: $withval" >&5
11828 echo "${ECHO_T}$withval" >&6
11829 LIBS
="$withval $LIBS"
11832 echo "$as_me:$LINENO: result: no" >&5
11833 echo "${ECHO_T}no" >&6
11836 # Check for use of the system libffi library
11837 echo "$as_me:$LINENO: checking for --with-system-ffi" >&5
11838 echo $ECHO_N "checking for --with-system-ffi... $ECHO_C" >&6
11840 # Check whether --with-system_ffi or --without-system_ffi was given.
11841 if test "${with_system_ffi+set}" = set; then
11842 withval
="$with_system_ffi"
11846 if test -z "$with_system_ffi"
11847 then with_system_ffi
="no"
11849 echo "$as_me:$LINENO: result: $with_system_ffi" >&5
11850 echo "${ECHO_T}$with_system_ffi" >&6
11852 # Determine if signalmodule should be used.
11855 echo "$as_me:$LINENO: checking for --with-signal-module" >&5
11856 echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6
11858 # Check whether --with-signal-module or --without-signal-module was given.
11859 if test "${with_signal_module+set}" = set; then
11860 withval
="$with_signal_module"
11864 if test -z "$with_signal_module"
11865 then with_signal_module
="yes"
11867 echo "$as_me:$LINENO: result: $with_signal_module" >&5
11868 echo "${ECHO_T}$with_signal_module" >&6
11870 if test "${with_signal_module}" = "yes"; then
11871 USE_SIGNAL_MODULE
=""
11874 USE_SIGNAL_MODULE
="#"
11875 SIGNAL_OBJS
="Parser/intrcheck.o Python/sigcheck.o"
11878 # This is used to generate Setup.config
11880 USE_THREAD_MODULE
=""
11882 echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
11883 echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6
11886 # Check whether --with-dec-threads or --without-dec-threads was given.
11887 if test "${with_dec_threads+set}" = set; then
11888 withval
="$with_dec_threads"
11890 echo "$as_me:$LINENO: result: $withval" >&5
11891 echo "${ECHO_T}$withval" >&6
11893 if test "${with_thread+set}" != set; then
11894 with_thread
="$withval";
11897 echo "$as_me:$LINENO: result: no" >&5
11898 echo "${ECHO_T}no" >&6
11901 # Templates for things AC_DEFINEd more than once.
11902 # For a single AC_DEFINE, no template is needed.
11910 echo "$as_me:$LINENO: checking for --with-threads" >&5
11911 echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6
11913 # Check whether --with-threads or --without-threads was given.
11914 if test "${with_threads+set}" = set; then
11915 withval
="$with_threads"
11919 # --with-thread is deprecated, but check for it anyway
11921 # Check whether --with-thread or --without-thread was given.
11922 if test "${with_thread+set}" = set; then
11923 withval
="$with_thread"
11924 with_threads
=$with_thread
11927 if test -z "$with_threads"
11928 then with_threads
="yes"
11930 echo "$as_me:$LINENO: result: $with_threads" >&5
11931 echo "${ECHO_T}$with_threads" >&6
11934 if test "$with_threads" = "no"
11936 USE_THREAD_MODULE
="#"
11937 elif test "$ac_cv_pthread_is_default" = yes
11939 cat >>confdefs.h
<<\_ACEOF
11940 #define WITH_THREAD 1
11943 # Defining _REENTRANT on system with POSIX threads should not hurt.
11944 cat >>confdefs.h
<<\_ACEOF
11945 #define _REENTRANT 1
11949 THREADOBJ
="Python/thread.o"
11950 elif test "$ac_cv_kpthread" = "yes"
11953 if test "$ac_cv_cxx_thread" = "yes"; then
11954 CXX
="$CXX -Kpthread"
11956 cat >>confdefs.h
<<\_ACEOF
11957 #define WITH_THREAD 1
11961 THREADOBJ
="Python/thread.o"
11962 elif test "$ac_cv_kthread" = "yes"
11965 if test "$ac_cv_cxx_thread" = "yes"; then
11966 CXX
="$CXX -Kthread"
11968 cat >>confdefs.h
<<\_ACEOF
11969 #define WITH_THREAD 1
11973 THREADOBJ
="Python/thread.o"
11974 elif test "$ac_cv_pthread" = "yes"
11977 if test "$ac_cv_cxx_thread" = "yes"; then
11978 CXX
="$CXX -pthread"
11980 cat >>confdefs.h
<<\_ACEOF
11981 #define WITH_THREAD 1
11985 THREADOBJ
="Python/thread.o"
11987 if test ! -z "$with_threads" -a -d "$with_threads"
11988 then LDFLAGS
="$LDFLAGS -L$with_threads"
11990 if test ! -z "$withval" -a -d "$withval"
11991 then LDFLAGS
="$LDFLAGS -L$withval"
11994 # According to the POSIX spec, a pthreads implementation must
11995 # define _POSIX_THREADS in unistd.h. Some apparently don't
11996 # (e.g. gnu pth with pthread emulation)
11997 echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
11998 echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6
11999 cat >conftest.
$ac_ext <<_ACEOF
12002 cat confdefs.h
>>conftest.
$ac_ext
12003 cat >>conftest.
$ac_ext <<_ACEOF
12004 /* end confdefs.h. */
12006 #include <unistd.h>
12007 #ifdef _POSIX_THREADS
12012 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12013 $EGREP "yes" >/dev
/null
2>&1; then
12014 unistd_defines_pthreads
=yes
12016 unistd_defines_pthreads
=no
12020 echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
12021 echo "${ECHO_T}$unistd_defines_pthreads" >&6
12023 cat >>confdefs.h
<<\_ACEOF
12024 #define _REENTRANT 1
12027 if test "${ac_cv_header_cthreads_h+set}" = set; then
12028 echo "$as_me:$LINENO: checking for cthreads.h" >&5
12029 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6
12030 if test "${ac_cv_header_cthreads_h+set}" = set; then
12031 echo $ECHO_N "(cached) $ECHO_C" >&6
12033 echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
12034 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6
12036 # Is the header compilable?
12037 echo "$as_me:$LINENO: checking cthreads.h usability" >&5
12038 echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6
12039 cat >conftest.
$ac_ext <<_ACEOF
12042 cat confdefs.h
>>conftest.
$ac_ext
12043 cat >>conftest.
$ac_ext <<_ACEOF
12044 /* end confdefs.h. */
12045 $ac_includes_default
12046 #include <cthreads.h>
12048 rm -f conftest.
$ac_objext
12049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12050 (eval $ac_compile) 2>conftest.er1
12052 grep -v '^ *+' conftest.er1
>conftest.err
12054 cat conftest.err
>&5
12055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12056 (exit $ac_status); } &&
12057 { ac_try
='test -z "$ac_c_werror_flag"
12058 || test ! -s conftest.err'
12059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12060 (eval $ac_try) 2>&5
12062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12063 (exit $ac_status); }; } &&
12064 { ac_try
='test -s conftest.$ac_objext'
12065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12066 (eval $ac_try) 2>&5
12068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12069 (exit $ac_status); }; }; then
12070 ac_header_compiler
=yes
12072 echo "$as_me: failed program was:" >&5
12073 sed 's/^/| /' conftest.
$ac_ext >&5
12075 ac_header_compiler
=no
12077 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12078 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12079 echo "${ECHO_T}$ac_header_compiler" >&6
12081 # Is the header present?
12082 echo "$as_me:$LINENO: checking cthreads.h presence" >&5
12083 echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6
12084 cat >conftest.
$ac_ext <<_ACEOF
12087 cat confdefs.h
>>conftest.
$ac_ext
12088 cat >>conftest.
$ac_ext <<_ACEOF
12089 /* end confdefs.h. */
12090 #include <cthreads.h>
12092 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12093 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12095 grep -v '^ *+' conftest.er1
>conftest.err
12097 cat conftest.err
>&5
12098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12099 (exit $ac_status); } >/dev
/null
; then
12100 if test -s conftest.err
; then
12101 ac_cpp_err
=$ac_c_preproc_warn_flag
12102 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12109 if test -z "$ac_cpp_err"; then
12110 ac_header_preproc
=yes
12112 echo "$as_me: failed program was:" >&5
12113 sed 's/^/| /' conftest.
$ac_ext >&5
12115 ac_header_preproc
=no
12117 rm -f conftest.err conftest.
$ac_ext
12118 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12119 echo "${ECHO_T}$ac_header_preproc" >&6
12121 # So? What about this header?
12122 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12124 { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
12125 echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12126 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5
12127 echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;}
12128 ac_header_preproc
=yes
12131 { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
12132 echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
12133 { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
12134 echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
12135 { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5
12136 echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;}
12137 { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
12138 echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
12139 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
12140 echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;}
12141 { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5
12142 echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;}
12145 ## ------------------------------------------------ ##
12146 ## Report this to http://www.python.org/python-bugs ##
12147 ## ------------------------------------------------ ##
12150 sed "s/^/$as_me: WARNING: /" >&2
12153 echo "$as_me:$LINENO: checking for cthreads.h" >&5
12154 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6
12155 if test "${ac_cv_header_cthreads_h+set}" = set; then
12156 echo $ECHO_N "(cached) $ECHO_C" >&6
12158 ac_cv_header_cthreads_h
=$ac_header_preproc
12160 echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
12161 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6
12164 if test $ac_cv_header_cthreads_h = yes; then
12165 cat >>confdefs.h
<<\_ACEOF
12166 #define WITH_THREAD 1
12169 cat >>confdefs.h
<<\_ACEOF
12170 #define C_THREADS 1
12174 cat >>confdefs.h
<<\_ACEOF
12175 #define HURD_C_THREADS 1
12178 LIBS
="$LIBS -lthreads"
12179 THREADOBJ
="Python/thread.o"
12182 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
12183 echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
12184 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6
12185 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
12186 echo $ECHO_N "(cached) $ECHO_C" >&6
12188 echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
12189 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6
12191 # Is the header compilable?
12192 echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
12193 echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6
12194 cat >conftest.
$ac_ext <<_ACEOF
12197 cat confdefs.h
>>conftest.
$ac_ext
12198 cat >>conftest.
$ac_ext <<_ACEOF
12199 /* end confdefs.h. */
12200 $ac_includes_default
12201 #include <mach/cthreads.h>
12203 rm -f conftest.
$ac_objext
12204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12205 (eval $ac_compile) 2>conftest.er1
12207 grep -v '^ *+' conftest.er1
>conftest.err
12209 cat conftest.err
>&5
12210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12211 (exit $ac_status); } &&
12212 { ac_try
='test -z "$ac_c_werror_flag"
12213 || test ! -s conftest.err'
12214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12215 (eval $ac_try) 2>&5
12217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12218 (exit $ac_status); }; } &&
12219 { ac_try
='test -s conftest.$ac_objext'
12220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12221 (eval $ac_try) 2>&5
12223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12224 (exit $ac_status); }; }; then
12225 ac_header_compiler
=yes
12227 echo "$as_me: failed program was:" >&5
12228 sed 's/^/| /' conftest.
$ac_ext >&5
12230 ac_header_compiler
=no
12232 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12233 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12234 echo "${ECHO_T}$ac_header_compiler" >&6
12236 # Is the header present?
12237 echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
12238 echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6
12239 cat >conftest.
$ac_ext <<_ACEOF
12242 cat confdefs.h
>>conftest.
$ac_ext
12243 cat >>conftest.
$ac_ext <<_ACEOF
12244 /* end confdefs.h. */
12245 #include <mach/cthreads.h>
12247 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12248 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12250 grep -v '^ *+' conftest.er1
>conftest.err
12252 cat conftest.err
>&5
12253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12254 (exit $ac_status); } >/dev
/null
; then
12255 if test -s conftest.err
; then
12256 ac_cpp_err
=$ac_c_preproc_warn_flag
12257 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12264 if test -z "$ac_cpp_err"; then
12265 ac_header_preproc
=yes
12267 echo "$as_me: failed program was:" >&5
12268 sed 's/^/| /' conftest.
$ac_ext >&5
12270 ac_header_preproc
=no
12272 rm -f conftest.err conftest.
$ac_ext
12273 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12274 echo "${ECHO_T}$ac_header_preproc" >&6
12276 # So? What about this header?
12277 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12279 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
12280 echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12281 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
12282 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
12283 ac_header_preproc
=yes
12286 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
12287 echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
12288 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
12289 echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
12290 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
12291 echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
12292 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
12293 echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
12294 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
12295 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
12296 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
12297 echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
12300 ## ------------------------------------------------ ##
12301 ## Report this to http://www.python.org/python-bugs ##
12302 ## ------------------------------------------------ ##
12305 sed "s/^/$as_me: WARNING: /" >&2
12308 echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
12309 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6
12310 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
12311 echo $ECHO_N "(cached) $ECHO_C" >&6
12313 ac_cv_header_mach_cthreads_h
=$ac_header_preproc
12315 echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
12316 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6
12319 if test $ac_cv_header_mach_cthreads_h = yes; then
12320 cat >>confdefs.h
<<\_ACEOF
12321 #define WITH_THREAD 1
12324 cat >>confdefs.h
<<\_ACEOF
12325 #define C_THREADS 1
12329 cat >>confdefs.h
<<\_ACEOF
12330 #define MACH_C_THREADS 1
12333 THREADOBJ
="Python/thread.o"
12336 echo "$as_me:$LINENO: checking for --with-pth" >&5
12337 echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6
12339 # Check whether --with-pth or --without-pth was given.
12340 if test "${with_pth+set}" = set; then
12341 withval
="$with_pth"
12342 echo "$as_me:$LINENO: result: $withval" >&5
12343 echo "${ECHO_T}$withval" >&6
12344 cat >>confdefs.h
<<\_ACEOF
12345 #define WITH_THREAD 1
12349 cat >>confdefs.h
<<\_ACEOF
12354 THREADOBJ
="Python/thread.o"
12356 echo "$as_me:$LINENO: result: no" >&5
12357 echo "${ECHO_T}no" >&6
12359 # Just looking for pthread_create in libpthread is not enough:
12360 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
12361 # So we really have to include pthread.h, and then link.
12363 LIBS
="$LIBS -lpthread"
12364 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
12365 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
12366 cat >conftest.
$ac_ext <<_ACEOF
12369 cat confdefs.h
>>conftest.
$ac_ext
12370 cat >>conftest.
$ac_ext <<_ACEOF
12371 /* end confdefs.h. */
12372 #include <pthread.h>
12374 void * start_routine (void *arg) { exit (0); }
12379 pthread_create (NULL, NULL, start_routine, NULL)
12384 rm -f conftest.
$ac_objext conftest
$ac_exeext
12385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12386 (eval $ac_link) 2>conftest.er1
12388 grep -v '^ *+' conftest.er1
>conftest.err
12390 cat conftest.err
>&5
12391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12392 (exit $ac_status); } &&
12393 { ac_try
='test -z "$ac_c_werror_flag"
12394 || test ! -s conftest.err'
12395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12396 (eval $ac_try) 2>&5
12398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12399 (exit $ac_status); }; } &&
12400 { ac_try
='test -s conftest$ac_exeext'
12401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12402 (eval $ac_try) 2>&5
12404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12405 (exit $ac_status); }; }; then
12407 echo "$as_me:$LINENO: result: yes" >&5
12408 echo "${ECHO_T}yes" >&6
12409 cat >>confdefs.h
<<\_ACEOF
12410 #define WITH_THREAD 1
12414 THREADOBJ
="Python/thread.o"
12416 echo "$as_me: failed program was:" >&5
12417 sed 's/^/| /' conftest.
$ac_ext >&5
12421 echo "$as_me:$LINENO: checking for pthread_detach" >&5
12422 echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6
12423 if test "${ac_cv_func_pthread_detach+set}" = set; then
12424 echo $ECHO_N "(cached) $ECHO_C" >&6
12426 cat >conftest.
$ac_ext <<_ACEOF
12429 cat confdefs.h
>>conftest.
$ac_ext
12430 cat >>conftest.
$ac_ext <<_ACEOF
12431 /* end confdefs.h. */
12432 /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach.
12433 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12434 #define pthread_detach innocuous_pthread_detach
12436 /* System header to define __stub macros and hopefully few prototypes,
12437 which can conflict with char pthread_detach (); below.
12438 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12439 <limits.h> exists even on freestanding compilers. */
12442 # include <limits.h>
12444 # include <assert.h>
12447 #undef pthread_detach
12449 /* Override any gcc2 internal prototype to avoid an error. */
12454 /* We use char because int might match the return type of a gcc2
12455 builtin and then its argument prototype would still apply. */
12456 char pthread_detach ();
12457 /* The GNU C library defines this for functions which it implements
12458 to always fail with ENOSYS. Some functions are actually named
12459 something starting with __ and the normal name is an alias. */
12460 #if defined (__stub_pthread_detach) || defined (__stub___pthread_detach)
12463 char (*f) () = pthread_detach;
12472 return f != pthread_detach;
12477 rm -f conftest.
$ac_objext conftest
$ac_exeext
12478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12479 (eval $ac_link) 2>conftest.er1
12481 grep -v '^ *+' conftest.er1
>conftest.err
12483 cat conftest.err
>&5
12484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12485 (exit $ac_status); } &&
12486 { ac_try
='test -z "$ac_c_werror_flag"
12487 || test ! -s conftest.err'
12488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12489 (eval $ac_try) 2>&5
12491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12492 (exit $ac_status); }; } &&
12493 { ac_try
='test -s conftest$ac_exeext'
12494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12495 (eval $ac_try) 2>&5
12497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12498 (exit $ac_status); }; }; then
12499 ac_cv_func_pthread_detach
=yes
12501 echo "$as_me: failed program was:" >&5
12502 sed 's/^/| /' conftest.
$ac_ext >&5
12504 ac_cv_func_pthread_detach
=no
12506 rm -f conftest.err conftest.
$ac_objext \
12507 conftest
$ac_exeext conftest.
$ac_ext
12509 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
12510 echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6
12511 if test $ac_cv_func_pthread_detach = yes; then
12512 cat >>confdefs.h
<<\_ACEOF
12513 #define WITH_THREAD 1
12517 THREADOBJ
="Python/thread.o"
12520 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
12521 echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
12522 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6
12523 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
12524 echo $ECHO_N "(cached) $ECHO_C" >&6
12526 echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
12527 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6
12529 # Is the header compilable?
12530 echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
12531 echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6
12532 cat >conftest.
$ac_ext <<_ACEOF
12535 cat confdefs.h
>>conftest.
$ac_ext
12536 cat >>conftest.
$ac_ext <<_ACEOF
12537 /* end confdefs.h. */
12538 $ac_includes_default
12539 #include <atheos/threads.h>
12541 rm -f conftest.
$ac_objext
12542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12543 (eval $ac_compile) 2>conftest.er1
12545 grep -v '^ *+' conftest.er1
>conftest.err
12547 cat conftest.err
>&5
12548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549 (exit $ac_status); } &&
12550 { ac_try
='test -z "$ac_c_werror_flag"
12551 || test ! -s conftest.err'
12552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12553 (eval $ac_try) 2>&5
12555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12556 (exit $ac_status); }; } &&
12557 { ac_try
='test -s conftest.$ac_objext'
12558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12559 (eval $ac_try) 2>&5
12561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562 (exit $ac_status); }; }; then
12563 ac_header_compiler
=yes
12565 echo "$as_me: failed program was:" >&5
12566 sed 's/^/| /' conftest.
$ac_ext >&5
12568 ac_header_compiler
=no
12570 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12571 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12572 echo "${ECHO_T}$ac_header_compiler" >&6
12574 # Is the header present?
12575 echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
12576 echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6
12577 cat >conftest.
$ac_ext <<_ACEOF
12580 cat confdefs.h
>>conftest.
$ac_ext
12581 cat >>conftest.
$ac_ext <<_ACEOF
12582 /* end confdefs.h. */
12583 #include <atheos/threads.h>
12585 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12586 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12588 grep -v '^ *+' conftest.er1
>conftest.err
12590 cat conftest.err
>&5
12591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12592 (exit $ac_status); } >/dev
/null
; then
12593 if test -s conftest.err
; then
12594 ac_cpp_err
=$ac_c_preproc_warn_flag
12595 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12602 if test -z "$ac_cpp_err"; then
12603 ac_header_preproc
=yes
12605 echo "$as_me: failed program was:" >&5
12606 sed 's/^/| /' conftest.
$ac_ext >&5
12608 ac_header_preproc
=no
12610 rm -f conftest.err conftest.
$ac_ext
12611 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12612 echo "${ECHO_T}$ac_header_preproc" >&6
12614 # So? What about this header?
12615 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12617 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
12618 echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12619 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5
12620 echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;}
12621 ac_header_preproc
=yes
12624 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
12625 echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
12626 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
12627 echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
12628 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5
12629 echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;}
12630 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5
12631 echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;}
12632 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
12633 echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;}
12634 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5
12635 echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;}
12638 ## ------------------------------------------------ ##
12639 ## Report this to http://www.python.org/python-bugs ##
12640 ## ------------------------------------------------ ##
12643 sed "s/^/$as_me: WARNING: /" >&2
12646 echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
12647 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6
12648 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
12649 echo $ECHO_N "(cached) $ECHO_C" >&6
12651 ac_cv_header_atheos_threads_h
=$ac_header_preproc
12653 echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
12654 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6
12657 if test $ac_cv_header_atheos_threads_h = yes; then
12658 cat >>confdefs.h
<<\_ACEOF
12659 #define WITH_THREAD 1
12663 cat >>confdefs.h
<<\_ACEOF
12664 #define ATHEOS_THREADS 1
12667 THREADOBJ
="Python/thread.o"
12670 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
12671 echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
12672 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6
12673 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
12674 echo $ECHO_N "(cached) $ECHO_C" >&6
12676 echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
12677 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6
12679 # Is the header compilable?
12680 echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5
12681 echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6
12682 cat >conftest.
$ac_ext <<_ACEOF
12685 cat confdefs.h
>>conftest.
$ac_ext
12686 cat >>conftest.
$ac_ext <<_ACEOF
12687 /* end confdefs.h. */
12688 $ac_includes_default
12689 #include <kernel/OS.h>
12691 rm -f conftest.
$ac_objext
12692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12693 (eval $ac_compile) 2>conftest.er1
12695 grep -v '^ *+' conftest.er1
>conftest.err
12697 cat conftest.err
>&5
12698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12699 (exit $ac_status); } &&
12700 { ac_try
='test -z "$ac_c_werror_flag"
12701 || test ! -s conftest.err'
12702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12703 (eval $ac_try) 2>&5
12705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12706 (exit $ac_status); }; } &&
12707 { ac_try
='test -s conftest.$ac_objext'
12708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12709 (eval $ac_try) 2>&5
12711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12712 (exit $ac_status); }; }; then
12713 ac_header_compiler
=yes
12715 echo "$as_me: failed program was:" >&5
12716 sed 's/^/| /' conftest.
$ac_ext >&5
12718 ac_header_compiler
=no
12720 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12721 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12722 echo "${ECHO_T}$ac_header_compiler" >&6
12724 # Is the header present?
12725 echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5
12726 echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6
12727 cat >conftest.
$ac_ext <<_ACEOF
12730 cat confdefs.h
>>conftest.
$ac_ext
12731 cat >>conftest.
$ac_ext <<_ACEOF
12732 /* end confdefs.h. */
12733 #include <kernel/OS.h>
12735 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12736 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12738 grep -v '^ *+' conftest.er1
>conftest.err
12740 cat conftest.err
>&5
12741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12742 (exit $ac_status); } >/dev
/null
; then
12743 if test -s conftest.err
; then
12744 ac_cpp_err
=$ac_c_preproc_warn_flag
12745 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12752 if test -z "$ac_cpp_err"; then
12753 ac_header_preproc
=yes
12755 echo "$as_me: failed program was:" >&5
12756 sed 's/^/| /' conftest.
$ac_ext >&5
12758 ac_header_preproc
=no
12760 rm -f conftest.err conftest.
$ac_ext
12761 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12762 echo "${ECHO_T}$ac_header_preproc" >&6
12764 # So? What about this header?
12765 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12767 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5
12768 echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12769 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5
12770 echo "$as_me: WARNING: kernel/OS.h: proceeding with the compiler's result" >&2;}
12771 ac_header_preproc
=yes
12774 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5
12775 echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;}
12776 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5
12777 echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;}
12778 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5
12779 echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;}
12780 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5
12781 echo "$as_me: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&2;}
12782 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5
12783 echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;}
12784 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5
12785 echo "$as_me: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&2;}
12788 ## ------------------------------------------------ ##
12789 ## Report this to http://www.python.org/python-bugs ##
12790 ## ------------------------------------------------ ##
12793 sed "s/^/$as_me: WARNING: /" >&2
12796 echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
12797 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6
12798 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
12799 echo $ECHO_N "(cached) $ECHO_C" >&6
12801 ac_cv_header_kernel_OS_h
=$ac_header_preproc
12803 echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
12804 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6
12807 if test $ac_cv_header_kernel_OS_h = yes; then
12808 cat >>confdefs.h
<<\_ACEOF
12809 #define WITH_THREAD 1
12813 cat >>confdefs.h
<<\_ACEOF
12814 #define BEOS_THREADS 1
12817 THREADOBJ
="Python/thread.o"
12820 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
12821 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
12822 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
12823 echo $ECHO_N "(cached) $ECHO_C" >&6
12825 ac_check_lib_save_LIBS
=$LIBS
12826 LIBS
="-lpthreads $LIBS"
12827 cat >conftest.
$ac_ext <<_ACEOF
12830 cat confdefs.h
>>conftest.
$ac_ext
12831 cat >>conftest.
$ac_ext <<_ACEOF
12832 /* end confdefs.h. */
12834 /* Override any gcc2 internal prototype to avoid an error. */
12838 /* We use char because int might match the return type of a gcc2
12839 builtin and then its argument prototype would still apply. */
12840 char pthread_create ();
12849 rm -f conftest.
$ac_objext conftest
$ac_exeext
12850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12851 (eval $ac_link) 2>conftest.er1
12853 grep -v '^ *+' conftest.er1
>conftest.err
12855 cat conftest.err
>&5
12856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12857 (exit $ac_status); } &&
12858 { ac_try
='test -z "$ac_c_werror_flag"
12859 || test ! -s conftest.err'
12860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12861 (eval $ac_try) 2>&5
12863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12864 (exit $ac_status); }; } &&
12865 { ac_try
='test -s conftest$ac_exeext'
12866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12867 (eval $ac_try) 2>&5
12869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12870 (exit $ac_status); }; }; then
12871 ac_cv_lib_pthreads_pthread_create
=yes
12873 echo "$as_me: failed program was:" >&5
12874 sed 's/^/| /' conftest.
$ac_ext >&5
12876 ac_cv_lib_pthreads_pthread_create
=no
12878 rm -f conftest.err conftest.
$ac_objext \
12879 conftest
$ac_exeext conftest.
$ac_ext
12880 LIBS
=$ac_check_lib_save_LIBS
12882 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
12883 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
12884 if test $ac_cv_lib_pthreads_pthread_create = yes; then
12885 cat >>confdefs.h
<<\_ACEOF
12886 #define WITH_THREAD 1
12890 LIBS
="$LIBS -lpthreads"
12891 THREADOBJ
="Python/thread.o"
12894 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
12895 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
12896 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
12897 echo $ECHO_N "(cached) $ECHO_C" >&6
12899 ac_check_lib_save_LIBS
=$LIBS
12901 cat >conftest.
$ac_ext <<_ACEOF
12904 cat confdefs.h
>>conftest.
$ac_ext
12905 cat >>conftest.
$ac_ext <<_ACEOF
12906 /* end confdefs.h. */
12908 /* Override any gcc2 internal prototype to avoid an error. */
12912 /* We use char because int might match the return type of a gcc2
12913 builtin and then its argument prototype would still apply. */
12914 char pthread_create ();
12923 rm -f conftest.
$ac_objext conftest
$ac_exeext
12924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12925 (eval $ac_link) 2>conftest.er1
12927 grep -v '^ *+' conftest.er1
>conftest.err
12929 cat conftest.err
>&5
12930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12931 (exit $ac_status); } &&
12932 { ac_try
='test -z "$ac_c_werror_flag"
12933 || test ! -s conftest.err'
12934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12935 (eval $ac_try) 2>&5
12937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12938 (exit $ac_status); }; } &&
12939 { ac_try
='test -s conftest$ac_exeext'
12940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12941 (eval $ac_try) 2>&5
12943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12944 (exit $ac_status); }; }; then
12945 ac_cv_lib_c_r_pthread_create
=yes
12947 echo "$as_me: failed program was:" >&5
12948 sed 's/^/| /' conftest.
$ac_ext >&5
12950 ac_cv_lib_c_r_pthread_create
=no
12952 rm -f conftest.err conftest.
$ac_objext \
12953 conftest
$ac_exeext conftest.
$ac_ext
12954 LIBS
=$ac_check_lib_save_LIBS
12956 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
12957 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
12958 if test $ac_cv_lib_c_r_pthread_create = yes; then
12959 cat >>confdefs.h
<<\_ACEOF
12960 #define WITH_THREAD 1
12965 THREADOBJ
="Python/thread.o"
12968 echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
12969 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6
12970 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
12971 echo $ECHO_N "(cached) $ECHO_C" >&6
12973 ac_check_lib_save_LIBS
=$LIBS
12974 LIBS
="-lpthread $LIBS"
12975 cat >conftest.
$ac_ext <<_ACEOF
12978 cat confdefs.h
>>conftest.
$ac_ext
12979 cat >>conftest.
$ac_ext <<_ACEOF
12980 /* end confdefs.h. */
12982 /* Override any gcc2 internal prototype to avoid an error. */
12986 /* We use char because int might match the return type of a gcc2
12987 builtin and then its argument prototype would still apply. */
12988 char __pthread_create_system ();
12992 __pthread_create_system ();
12997 rm -f conftest.
$ac_objext conftest
$ac_exeext
12998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12999 (eval $ac_link) 2>conftest.er1
13001 grep -v '^ *+' conftest.er1
>conftest.err
13003 cat conftest.err
>&5
13004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13005 (exit $ac_status); } &&
13006 { ac_try
='test -z "$ac_c_werror_flag"
13007 || test ! -s conftest.err'
13008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13009 (eval $ac_try) 2>&5
13011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13012 (exit $ac_status); }; } &&
13013 { ac_try
='test -s conftest$ac_exeext'
13014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13015 (eval $ac_try) 2>&5
13017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13018 (exit $ac_status); }; }; then
13019 ac_cv_lib_pthread___pthread_create_system
=yes
13021 echo "$as_me: failed program was:" >&5
13022 sed 's/^/| /' conftest.
$ac_ext >&5
13024 ac_cv_lib_pthread___pthread_create_system
=no
13026 rm -f conftest.err conftest.
$ac_objext \
13027 conftest
$ac_exeext conftest.
$ac_ext
13028 LIBS
=$ac_check_lib_save_LIBS
13030 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
13031 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6
13032 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
13033 cat >>confdefs.h
<<\_ACEOF
13034 #define WITH_THREAD 1
13038 LIBS
="$LIBS -lpthread"
13039 THREADOBJ
="Python/thread.o"
13042 echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
13043 echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6
13044 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
13045 echo $ECHO_N "(cached) $ECHO_C" >&6
13047 ac_check_lib_save_LIBS
=$LIBS
13049 cat >conftest.
$ac_ext <<_ACEOF
13052 cat confdefs.h
>>conftest.
$ac_ext
13053 cat >>conftest.
$ac_ext <<_ACEOF
13054 /* end confdefs.h. */
13056 /* Override any gcc2 internal prototype to avoid an error. */
13060 /* We use char because int might match the return type of a gcc2
13061 builtin and then its argument prototype would still apply. */
13062 char pthread_create ();
13071 rm -f conftest.
$ac_objext conftest
$ac_exeext
13072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13073 (eval $ac_link) 2>conftest.er1
13075 grep -v '^ *+' conftest.er1
>conftest.err
13077 cat conftest.err
>&5
13078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13079 (exit $ac_status); } &&
13080 { ac_try
='test -z "$ac_c_werror_flag"
13081 || test ! -s conftest.err'
13082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13083 (eval $ac_try) 2>&5
13085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13086 (exit $ac_status); }; } &&
13087 { ac_try
='test -s conftest$ac_exeext'
13088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13089 (eval $ac_try) 2>&5
13091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13092 (exit $ac_status); }; }; then
13093 ac_cv_lib_cma_pthread_create
=yes
13095 echo "$as_me: failed program was:" >&5
13096 sed 's/^/| /' conftest.
$ac_ext >&5
13098 ac_cv_lib_cma_pthread_create
=no
13100 rm -f conftest.err conftest.
$ac_objext \
13101 conftest
$ac_exeext conftest.
$ac_ext
13102 LIBS
=$ac_check_lib_save_LIBS
13104 echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
13105 echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6
13106 if test $ac_cv_lib_cma_pthread_create = yes; then
13107 cat >>confdefs.h
<<\_ACEOF
13108 #define WITH_THREAD 1
13113 THREADOBJ
="Python/thread.o"
13116 USE_THREAD_MODULE
="#"
13135 rm -f conftest.err conftest.
$ac_objext \
13136 conftest
$ac_exeext conftest.
$ac_ext
13145 echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
13146 echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6
13147 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
13148 echo $ECHO_N "(cached) $ECHO_C" >&6
13150 ac_check_lib_save_LIBS
=$LIBS
13152 cat >conftest.
$ac_ext <<_ACEOF
13155 cat confdefs.h
>>conftest.
$ac_ext
13156 cat >>conftest.
$ac_ext <<_ACEOF
13157 /* end confdefs.h. */
13159 /* Override any gcc2 internal prototype to avoid an error. */
13163 /* We use char because int might match the return type of a gcc2
13164 builtin and then its argument prototype would still apply. */
13174 rm -f conftest.
$ac_objext conftest
$ac_exeext
13175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13176 (eval $ac_link) 2>conftest.er1
13178 grep -v '^ *+' conftest.er1
>conftest.err
13180 cat conftest.err
>&5
13181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13182 (exit $ac_status); } &&
13183 { ac_try
='test -z "$ac_c_werror_flag"
13184 || test ! -s conftest.err'
13185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13186 (eval $ac_try) 2>&5
13188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13189 (exit $ac_status); }; } &&
13190 { ac_try
='test -s conftest$ac_exeext'
13191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13192 (eval $ac_try) 2>&5
13194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13195 (exit $ac_status); }; }; then
13196 ac_cv_lib_mpc_usconfig
=yes
13198 echo "$as_me: failed program was:" >&5
13199 sed 's/^/| /' conftest.
$ac_ext >&5
13201 ac_cv_lib_mpc_usconfig
=no
13203 rm -f conftest.err conftest.
$ac_objext \
13204 conftest
$ac_exeext conftest.
$ac_ext
13205 LIBS
=$ac_check_lib_save_LIBS
13207 echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
13208 echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6
13209 if test $ac_cv_lib_mpc_usconfig = yes; then
13210 cat >>confdefs.h
<<\_ACEOF
13211 #define WITH_THREAD 1
13215 THREADOBJ
="Python/thread.o"
13216 USE_THREAD_MODULE
=""
13220 if test "$posix_threads" != "yes"; then
13221 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
13222 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
13223 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
13224 echo $ECHO_N "(cached) $ECHO_C" >&6
13226 ac_check_lib_save_LIBS
=$LIBS
13227 LIBS
="-lthread $LIBS"
13228 cat >conftest.
$ac_ext <<_ACEOF
13231 cat confdefs.h
>>conftest.
$ac_ext
13232 cat >>conftest.
$ac_ext <<_ACEOF
13233 /* end confdefs.h. */
13235 /* Override any gcc2 internal prototype to avoid an error. */
13239 /* We use char because int might match the return type of a gcc2
13240 builtin and then its argument prototype would still apply. */
13241 char thr_create ();
13250 rm -f conftest.
$ac_objext conftest
$ac_exeext
13251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13252 (eval $ac_link) 2>conftest.er1
13254 grep -v '^ *+' conftest.er1
>conftest.err
13256 cat conftest.err
>&5
13257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13258 (exit $ac_status); } &&
13259 { ac_try
='test -z "$ac_c_werror_flag"
13260 || test ! -s conftest.err'
13261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13262 (eval $ac_try) 2>&5
13264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13265 (exit $ac_status); }; } &&
13266 { ac_try
='test -s conftest$ac_exeext'
13267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13268 (eval $ac_try) 2>&5
13270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13271 (exit $ac_status); }; }; then
13272 ac_cv_lib_thread_thr_create
=yes
13274 echo "$as_me: failed program was:" >&5
13275 sed 's/^/| /' conftest.
$ac_ext >&5
13277 ac_cv_lib_thread_thr_create
=no
13279 rm -f conftest.err conftest.
$ac_objext \
13280 conftest
$ac_exeext conftest.
$ac_ext
13281 LIBS
=$ac_check_lib_save_LIBS
13283 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
13284 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
13285 if test $ac_cv_lib_thread_thr_create = yes; then
13286 cat >>confdefs.h
<<\_ACEOF
13287 #define WITH_THREAD 1
13290 LIBS
="$LIBS -lthread"
13291 THREADOBJ
="Python/thread.o"
13292 USE_THREAD_MODULE
=""
13297 if test "$USE_THREAD_MODULE" != "#"
13299 # If the above checks didn't disable threads, (at least) OSF1
13300 # needs this '-threads' argument during linking.
13301 case $ac_sys_system in
13302 OSF1
) LDLAST
=-threads;;
13307 if test "$posix_threads" = "yes"; then
13308 if test "$unistd_defines_pthreads" = "no"; then
13310 cat >>confdefs.h
<<\_ACEOF
13311 #define _POSIX_THREADS 1
13316 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
13317 case $ac_sys_system/$ac_sys_release in
13319 cat >>confdefs.h
<<\_ACEOF
13320 #define HAVE_PTHREAD_DESTRUCTOR 1
13325 cat >>confdefs.h
<<\_ACEOF
13326 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
13332 echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
13333 echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6
13334 if test "${ac_cv_pthread_system_supported+set}" = set; then
13335 echo $ECHO_N "(cached) $ECHO_C" >&6
13337 if test "$cross_compiling" = yes; then
13338 ac_cv_pthread_system_supported
=no
13340 cat >conftest.
$ac_ext <<_ACEOF
13343 cat confdefs.h
>>conftest.
$ac_ext
13344 cat >>conftest.
$ac_ext <<_ACEOF
13345 /* end confdefs.h. */
13346 #include <pthread.h>
13347 void *foo(void *parm) {
13351 pthread_attr_t attr;
13353 if (pthread_attr_init(&attr)) exit(-1);
13354 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
13355 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
13359 rm -f conftest
$ac_exeext
13360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13361 (eval $ac_link) 2>&5
13363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13364 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13366 (eval $ac_try) 2>&5
13368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13369 (exit $ac_status); }; }; then
13370 ac_cv_pthread_system_supported
=yes
13372 echo "$as_me: program exited with status $ac_status" >&5
13373 echo "$as_me: failed program was:" >&5
13374 sed 's/^/| /' conftest.
$ac_ext >&5
13376 ( exit $ac_status )
13377 ac_cv_pthread_system_supported
=no
13379 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13384 echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
13385 echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6
13386 if test "$ac_cv_pthread_system_supported" = "yes"; then
13388 cat >>confdefs.h
<<\_ACEOF
13389 #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
13394 for ac_func
in pthread_sigmask
13396 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13397 echo "$as_me:$LINENO: checking for $ac_func" >&5
13398 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13399 if eval "test \"\${$as_ac_var+set}\" = set"; then
13400 echo $ECHO_N "(cached) $ECHO_C" >&6
13402 cat >conftest.
$ac_ext <<_ACEOF
13405 cat confdefs.h
>>conftest.
$ac_ext
13406 cat >>conftest.
$ac_ext <<_ACEOF
13407 /* end confdefs.h. */
13408 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13409 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13410 #define $ac_func innocuous_$ac_func
13412 /* System header to define __stub macros and hopefully few prototypes,
13413 which can conflict with char $ac_func (); below.
13414 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13415 <limits.h> exists even on freestanding compilers. */
13418 # include <limits.h>
13420 # include <assert.h>
13425 /* Override any gcc2 internal prototype to avoid an error. */
13430 /* We use char because int might match the return type of a gcc2
13431 builtin and then its argument prototype would still apply. */
13433 /* The GNU C library defines this for functions which it implements
13434 to always fail with ENOSYS. Some functions are actually named
13435 something starting with __ and the normal name is an alias. */
13436 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13439 char (*f) () = $ac_func;
13448 return f != $ac_func;
13453 rm -f conftest.
$ac_objext conftest
$ac_exeext
13454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13455 (eval $ac_link) 2>conftest.er1
13457 grep -v '^ *+' conftest.er1
>conftest.err
13459 cat conftest.err
>&5
13460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13461 (exit $ac_status); } &&
13462 { ac_try
='test -z "$ac_c_werror_flag"
13463 || test ! -s conftest.err'
13464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13465 (eval $ac_try) 2>&5
13467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13468 (exit $ac_status); }; } &&
13469 { ac_try
='test -s conftest$ac_exeext'
13470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13471 (eval $ac_try) 2>&5
13473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13474 (exit $ac_status); }; }; then
13475 eval "$as_ac_var=yes"
13477 echo "$as_me: failed program was:" >&5
13478 sed 's/^/| /' conftest.
$ac_ext >&5
13480 eval "$as_ac_var=no"
13482 rm -f conftest.err conftest.
$ac_objext \
13483 conftest
$ac_exeext conftest.
$ac_ext
13485 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13486 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13487 if test `eval echo '${'$as_ac_var'}'` = yes; then
13488 cat >>confdefs.h
<<_ACEOF
13489 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13491 case $ac_sys_system in
13494 cat >>confdefs.h
<<\_ACEOF
13495 #define HAVE_BROKEN_PTHREAD_SIGMASK 1
13506 # Check for enable-ipv6
13509 echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
13510 echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6
13511 # Check whether --enable-ipv6 or --disable-ipv6 was given.
13512 if test "${enable_ipv6+set}" = set; then
13513 enableval
="$enable_ipv6"
13514 case "$enableval" in
13516 echo "$as_me:$LINENO: result: no" >&5
13517 echo "${ECHO_T}no" >&6
13520 *) echo "$as_me:$LINENO: result: yes" >&5
13521 echo "${ECHO_T}yes" >&6
13522 cat >>confdefs.h
<<\_ACEOF
13523 #define ENABLE_IPV6 1
13531 if test "$cross_compiling" = yes; then
13532 echo "$as_me:$LINENO: result: no" >&5
13533 echo "${ECHO_T}no" >&6
13537 cat >conftest.
$ac_ext <<_ACEOF
13540 cat confdefs.h
>>conftest.
$ac_ext
13541 cat >>conftest.
$ac_ext <<_ACEOF
13542 /* end confdefs.h. */
13543 /* AF_INET6 available check */
13544 #include <sys/types.h>
13545 #include <sys/socket.h>
13548 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
13555 rm -f conftest
$ac_exeext
13556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13557 (eval $ac_link) 2>&5
13559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13560 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13562 (eval $ac_try) 2>&5
13564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13565 (exit $ac_status); }; }; then
13566 echo "$as_me:$LINENO: result: yes" >&5
13567 echo "${ECHO_T}yes" >&6
13570 echo "$as_me: program exited with status $ac_status" >&5
13571 echo "$as_me: failed program was:" >&5
13572 sed 's/^/| /' conftest.
$ac_ext >&5
13574 ( exit $ac_status )
13575 echo "$as_me:$LINENO: result: no" >&5
13576 echo "${ECHO_T}no" >&6
13579 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13582 if test "$ipv6" = "yes"; then
13583 echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
13584 echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6
13585 cat >conftest.
$ac_ext <<_ACEOF
13588 cat confdefs.h
>>conftest.
$ac_ext
13589 cat >>conftest.
$ac_ext <<_ACEOF
13590 /* end confdefs.h. */
13591 #include <sys/types.h>
13592 #include <netinet/in.h>
13596 struct sockaddr_in6 x;
13602 rm -f conftest.
$ac_objext
13603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13604 (eval $ac_compile) 2>conftest.er1
13606 grep -v '^ *+' conftest.er1
>conftest.err
13608 cat conftest.err
>&5
13609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13610 (exit $ac_status); } &&
13611 { ac_try
='test -z "$ac_c_werror_flag"
13612 || test ! -s conftest.err'
13613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13614 (eval $ac_try) 2>&5
13616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13617 (exit $ac_status); }; } &&
13618 { ac_try
='test -s conftest.$ac_objext'
13619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13620 (eval $ac_try) 2>&5
13622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13623 (exit $ac_status); }; }; then
13624 echo "$as_me:$LINENO: result: yes" >&5
13625 echo "${ECHO_T}yes" >&6
13628 echo "$as_me: failed program was:" >&5
13629 sed 's/^/| /' conftest.
$ac_ext >&5
13631 echo "$as_me:$LINENO: result: no" >&5
13632 echo "${ECHO_T}no" >&6
13635 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13638 if test "$ipv6" = "yes"; then
13639 cat >>confdefs.h
<<\_ACEOF
13640 #define ENABLE_IPV6 1
13651 if test "$ipv6" = "yes"; then
13652 echo "$as_me:$LINENO: checking ipv6 stack type" >&5
13653 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6
13654 for i
in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta
;
13658 cat >conftest.
$ac_ext <<_ACEOF
13661 cat confdefs.h
>>conftest.
$ac_ext
13662 cat >>conftest.
$ac_ext <<_ACEOF
13663 /* end confdefs.h. */
13665 #include <netinet/in.h>
13666 #ifdef IPV6_INRIA_VERSION
13670 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13671 $EGREP "yes" >/dev
/null
2>&1; then
13678 cat >conftest.
$ac_ext <<_ACEOF
13681 cat confdefs.h
>>conftest.
$ac_ext
13682 cat >>conftest.
$ac_ext <<_ACEOF
13683 /* end confdefs.h. */
13685 #include <netinet/in.h>
13690 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13691 $EGREP "yes" >/dev
/null
2>&1; then
13694 ipv6libdir
=/usr
/local
/v
6/lib
13701 cat >conftest.
$ac_ext <<_ACEOF
13704 cat confdefs.h
>>conftest.
$ac_ext
13705 cat >>conftest.
$ac_ext <<_ACEOF
13706 /* end confdefs.h. */
13708 #include <features.h>
13709 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
13713 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13714 $EGREP "yes" >/dev
/null
2>&1; then
13722 if test -d /usr
/inet6
; then
13725 ipv6libdir
=/usr
/inet
6/lib
13726 BASECFLAGS
="-I/usr/inet6/include $BASECFLAGS"
13730 if test -f /etc
/netconfig
; then
13731 if /usr
/xpg
4/bin
/grep -q tcp6
/etc
/netconfig
; then
13738 cat >conftest.
$ac_ext <<_ACEOF
13741 cat confdefs.h
>>conftest.
$ac_ext
13742 cat >>conftest.
$ac_ext <<_ACEOF
13743 /* end confdefs.h. */
13745 #include <sys/param.h>
13746 #ifdef _TOSHIBA_INET6
13750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13751 $EGREP "yes" >/dev
/null
2>&1; then
13754 ipv6libdir
=/usr
/local
/v
6/lib
13760 cat >conftest.
$ac_ext <<_ACEOF
13763 cat confdefs.h
>>conftest.
$ac_ext
13764 cat >>conftest.
$ac_ext <<_ACEOF
13765 /* end confdefs.h. */
13767 #include </usr/local/v6/include/sys/v6config.h>
13772 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13773 $EGREP "yes" >/dev
/null
2>&1; then
13776 ipv6libdir
=/usr
/local
/v
6/lib
;
13777 BASECFLAGS
="-I/usr/local/v6/include $BASECFLAGS"
13783 cat >conftest.
$ac_ext <<_ACEOF
13786 cat confdefs.h
>>conftest.
$ac_ext
13787 cat >>conftest.
$ac_ext <<_ACEOF
13788 /* end confdefs.h. */
13790 #include <sys/param.h>
13791 #ifdef _ZETA_MINAMI_INET6
13795 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13796 $EGREP "yes" >/dev
/null
2>&1; then
13799 ipv6libdir
=/usr
/local
/v
6/lib
13805 if test "$ipv6type" != "unknown"; then
13809 echo "$as_me:$LINENO: result: $ipv6type" >&5
13810 echo "${ECHO_T}$ipv6type" >&6
13813 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
13814 if test -d $ipv6libdir -a -f $ipv6libdir/lib
$ipv6lib.a
; then
13815 LIBS
="-L$ipv6libdir -l$ipv6lib $LIBS"
13816 echo "using lib$ipv6lib"
13818 if test $ipv6trylibc = "yes"; then
13821 echo 'Fatal: no $ipv6lib library found. cannot continue.'
13822 echo "You need to fetch lib$ipv6lib.a from appropriate"
13823 echo 'ipv6 kit and compile beforehand.'
13829 # Check for --with-doc-strings
13830 echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
13831 echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6
13833 # Check whether --with-doc-strings or --without-doc-strings was given.
13834 if test "${with_doc_strings+set}" = set; then
13835 withval
="$with_doc_strings"
13839 if test -z "$with_doc_strings"
13840 then with_doc_strings
="yes"
13842 if test "$with_doc_strings" != "no"
13845 cat >>confdefs.h
<<\_ACEOF
13846 #define WITH_DOC_STRINGS 1
13850 echo "$as_me:$LINENO: result: $with_doc_strings" >&5
13851 echo "${ECHO_T}$with_doc_strings" >&6
13853 # Check for Python-specific malloc support
13854 echo "$as_me:$LINENO: checking for --with-tsc" >&5
13855 echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6
13857 # Check whether --with-tsc or --without-tsc was given.
13858 if test "${with_tsc+set}" = set; then
13859 withval
="$with_tsc"
13861 if test "$withval" != no
13864 cat >>confdefs.h
<<\_ACEOF
13868 echo "$as_me:$LINENO: result: yes" >&5
13869 echo "${ECHO_T}yes" >&6
13870 else echo "$as_me:$LINENO: result: no" >&5
13871 echo "${ECHO_T}no" >&6
13874 echo "$as_me:$LINENO: result: no" >&5
13875 echo "${ECHO_T}no" >&6
13878 # Check for Python-specific malloc support
13879 echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
13880 echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6
13882 # Check whether --with-pymalloc or --without-pymalloc was given.
13883 if test "${with_pymalloc+set}" = set; then
13884 withval
="$with_pymalloc"
13888 if test -z "$with_pymalloc"
13889 then with_pymalloc
="yes"
13891 if test "$with_pymalloc" != "no"
13894 cat >>confdefs.h
<<\_ACEOF
13895 #define WITH_PYMALLOC 1
13899 echo "$as_me:$LINENO: result: $with_pymalloc" >&5
13900 echo "${ECHO_T}$with_pymalloc" >&6
13902 # Check for --with-wctype-functions
13903 echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
13904 echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6
13906 # Check whether --with-wctype-functions or --without-wctype-functions was given.
13907 if test "${with_wctype_functions+set}" = set; then
13908 withval
="$with_wctype_functions"
13910 if test "$withval" != no
13913 cat >>confdefs.h
<<\_ACEOF
13914 #define WANT_WCTYPE_FUNCTIONS 1
13917 echo "$as_me:$LINENO: result: yes" >&5
13918 echo "${ECHO_T}yes" >&6
13919 else echo "$as_me:$LINENO: result: no" >&5
13920 echo "${ECHO_T}no" >&6
13923 echo "$as_me:$LINENO: result: no" >&5
13924 echo "${ECHO_T}no" >&6
13927 # -I${DLINCLDIR} is added to the compile rule for importdl.o
13931 # the dlopen() function means we might want to use dynload_shlib.o. some
13932 # platforms, such as AIX, have dlopen(), but don't want to use it.
13934 for ac_func
in dlopen
13936 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13937 echo "$as_me:$LINENO: checking for $ac_func" >&5
13938 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13939 if eval "test \"\${$as_ac_var+set}\" = set"; then
13940 echo $ECHO_N "(cached) $ECHO_C" >&6
13942 cat >conftest.
$ac_ext <<_ACEOF
13945 cat confdefs.h
>>conftest.
$ac_ext
13946 cat >>conftest.
$ac_ext <<_ACEOF
13947 /* end confdefs.h. */
13948 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13949 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13950 #define $ac_func innocuous_$ac_func
13952 /* System header to define __stub macros and hopefully few prototypes,
13953 which can conflict with char $ac_func (); below.
13954 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13955 <limits.h> exists even on freestanding compilers. */
13958 # include <limits.h>
13960 # include <assert.h>
13965 /* Override any gcc2 internal prototype to avoid an error. */
13970 /* We use char because int might match the return type of a gcc2
13971 builtin and then its argument prototype would still apply. */
13973 /* The GNU C library defines this for functions which it implements
13974 to always fail with ENOSYS. Some functions are actually named
13975 something starting with __ and the normal name is an alias. */
13976 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13979 char (*f) () = $ac_func;
13988 return f != $ac_func;
13993 rm -f conftest.
$ac_objext conftest
$ac_exeext
13994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13995 (eval $ac_link) 2>conftest.er1
13997 grep -v '^ *+' conftest.er1
>conftest.err
13999 cat conftest.err
>&5
14000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14001 (exit $ac_status); } &&
14002 { ac_try
='test -z "$ac_c_werror_flag"
14003 || test ! -s conftest.err'
14004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14005 (eval $ac_try) 2>&5
14007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14008 (exit $ac_status); }; } &&
14009 { ac_try
='test -s conftest$ac_exeext'
14010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14011 (eval $ac_try) 2>&5
14013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14014 (exit $ac_status); }; }; then
14015 eval "$as_ac_var=yes"
14017 echo "$as_me: failed program was:" >&5
14018 sed 's/^/| /' conftest.
$ac_ext >&5
14020 eval "$as_ac_var=no"
14022 rm -f conftest.err conftest.
$ac_objext \
14023 conftest
$ac_exeext conftest.
$ac_ext
14025 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14026 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14027 if test `eval echo '${'$as_ac_var'}'` = yes; then
14028 cat >>confdefs.h
<<_ACEOF
14029 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14036 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
14037 # loading of modules.
14039 echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
14040 echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6
14041 if test -z "$DYNLOADFILE"
14043 case $ac_sys_system/$ac_sys_release in
14044 AIX
*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
14045 if test "$ac_cv_func_dlopen" = yes
14046 then DYNLOADFILE
="dynload_shlib.o"
14047 else DYNLOADFILE
="dynload_aix.o"
14050 BeOS
*) DYNLOADFILE
="dynload_beos.o";;
14051 hp
*|HP
*) DYNLOADFILE
="dynload_hpux.o";;
14052 # Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
14053 Darwin
/[0156]\..
*) DYNLOADFILE
="dynload_next.o";;
14054 atheos
*) DYNLOADFILE
="dynload_atheos.o";;
14056 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
14057 # out any dynamic loading
14058 if test "$ac_cv_func_dlopen" = yes
14059 then DYNLOADFILE
="dynload_shlib.o"
14060 else DYNLOADFILE
="dynload_stub.o"
14065 echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
14066 echo "${ECHO_T}$DYNLOADFILE" >&6
14067 if test "$DYNLOADFILE" != "dynload_stub.o"
14070 cat >>confdefs.h
<<\_ACEOF
14071 #define HAVE_DYNAMIC_LOADING 1
14076 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
14079 echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
14080 echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6
14081 if test -z "$MACHDEP_OBJS"
14083 MACHDEP_OBJS
=$extra_machdep_objs
14085 MACHDEP_OBJS
="$MACHDEP_OBJS $extra_machdep_objs"
14087 echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
14088 echo "${ECHO_T}MACHDEP_OBJS" >&6
14090 # checks for library functions
14167 for ac_func
in alarm bind_textdomain_codeset chown
clock confstr ctermid \
14168 execv fork fpathconf ftime ftruncate \
14169 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
14170 getpriority getpwent getspnam getspent getsid getwd \
14171 kill killpg lchown lstat
mkfifo mknod mktime \
14172 mremap nice pathconf pause plock poll pthread_init \
14173 putenv readlink realpath \
14174 select setegid seteuid setgid \
14175 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
14176 sigaction siginterrupt sigrelse strftime \
14177 sysconf tcgetpgrp tcsetpgrp tempnam timegm
times tmpfile tmpnam tmpnam_r \
14178 truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty
14180 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14181 echo "$as_me:$LINENO: checking for $ac_func" >&5
14182 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14183 if eval "test \"\${$as_ac_var+set}\" = set"; then
14184 echo $ECHO_N "(cached) $ECHO_C" >&6
14186 cat >conftest.
$ac_ext <<_ACEOF
14189 cat confdefs.h
>>conftest.
$ac_ext
14190 cat >>conftest.
$ac_ext <<_ACEOF
14191 /* end confdefs.h. */
14192 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14193 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14194 #define $ac_func innocuous_$ac_func
14196 /* System header to define __stub macros and hopefully few prototypes,
14197 which can conflict with char $ac_func (); below.
14198 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14199 <limits.h> exists even on freestanding compilers. */
14202 # include <limits.h>
14204 # include <assert.h>
14209 /* Override any gcc2 internal prototype to avoid an error. */
14214 /* We use char because int might match the return type of a gcc2
14215 builtin and then its argument prototype would still apply. */
14217 /* The GNU C library defines this for functions which it implements
14218 to always fail with ENOSYS. Some functions are actually named
14219 something starting with __ and the normal name is an alias. */
14220 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14223 char (*f) () = $ac_func;
14232 return f != $ac_func;
14237 rm -f conftest.
$ac_objext conftest
$ac_exeext
14238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14239 (eval $ac_link) 2>conftest.er1
14241 grep -v '^ *+' conftest.er1
>conftest.err
14243 cat conftest.err
>&5
14244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14245 (exit $ac_status); } &&
14246 { ac_try
='test -z "$ac_c_werror_flag"
14247 || test ! -s conftest.err'
14248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14249 (eval $ac_try) 2>&5
14251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14252 (exit $ac_status); }; } &&
14253 { ac_try
='test -s conftest$ac_exeext'
14254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14255 (eval $ac_try) 2>&5
14257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14258 (exit $ac_status); }; }; then
14259 eval "$as_ac_var=yes"
14261 echo "$as_me: failed program was:" >&5
14262 sed 's/^/| /' conftest.
$ac_ext >&5
14264 eval "$as_ac_var=no"
14266 rm -f conftest.err conftest.
$ac_objext \
14267 conftest
$ac_exeext conftest.
$ac_ext
14269 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14270 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14271 if test `eval echo '${'$as_ac_var'}'` = yes; then
14272 cat >>confdefs.h
<<_ACEOF
14273 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14280 # For some functions, having a definition is not sufficient, since
14281 # we want to take their address.
14282 echo "$as_me:$LINENO: checking for chroot" >&5
14283 echo $ECHO_N "checking for chroot... $ECHO_C" >&6
14284 cat >conftest.
$ac_ext <<_ACEOF
14287 cat confdefs.h
>>conftest.
$ac_ext
14288 cat >>conftest.
$ac_ext <<_ACEOF
14289 /* end confdefs.h. */
14290 #include <unistd.h>
14299 rm -f conftest.
$ac_objext
14300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14301 (eval $ac_compile) 2>conftest.er1
14303 grep -v '^ *+' conftest.er1
>conftest.err
14305 cat conftest.err
>&5
14306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14307 (exit $ac_status); } &&
14308 { ac_try
='test -z "$ac_c_werror_flag"
14309 || test ! -s conftest.err'
14310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14311 (eval $ac_try) 2>&5
14313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14314 (exit $ac_status); }; } &&
14315 { ac_try
='test -s conftest.$ac_objext'
14316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14317 (eval $ac_try) 2>&5
14319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14320 (exit $ac_status); }; }; then
14322 cat >>confdefs.h
<<\_ACEOF
14323 #define HAVE_CHROOT 1
14326 echo "$as_me:$LINENO: result: yes" >&5
14327 echo "${ECHO_T}yes" >&6
14329 echo "$as_me: failed program was:" >&5
14330 sed 's/^/| /' conftest.
$ac_ext >&5
14332 echo "$as_me:$LINENO: result: no" >&5
14333 echo "${ECHO_T}no" >&6
14336 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14337 echo "$as_me:$LINENO: checking for link" >&5
14338 echo $ECHO_N "checking for link... $ECHO_C" >&6
14339 cat >conftest.
$ac_ext <<_ACEOF
14342 cat confdefs.h
>>conftest.
$ac_ext
14343 cat >>conftest.
$ac_ext <<_ACEOF
14344 /* end confdefs.h. */
14345 #include <unistd.h>
14354 rm -f conftest.
$ac_objext
14355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14356 (eval $ac_compile) 2>conftest.er1
14358 grep -v '^ *+' conftest.er1
>conftest.err
14360 cat conftest.err
>&5
14361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14362 (exit $ac_status); } &&
14363 { ac_try
='test -z "$ac_c_werror_flag"
14364 || test ! -s conftest.err'
14365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14366 (eval $ac_try) 2>&5
14368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14369 (exit $ac_status); }; } &&
14370 { ac_try
='test -s conftest.$ac_objext'
14371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14372 (eval $ac_try) 2>&5
14374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14375 (exit $ac_status); }; }; then
14377 cat >>confdefs.h
<<\_ACEOF
14378 #define HAVE_LINK 1
14381 echo "$as_me:$LINENO: result: yes" >&5
14382 echo "${ECHO_T}yes" >&6
14384 echo "$as_me: failed program was:" >&5
14385 sed 's/^/| /' conftest.
$ac_ext >&5
14387 echo "$as_me:$LINENO: result: no" >&5
14388 echo "${ECHO_T}no" >&6
14391 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14392 echo "$as_me:$LINENO: checking for symlink" >&5
14393 echo $ECHO_N "checking for symlink... $ECHO_C" >&6
14394 cat >conftest.
$ac_ext <<_ACEOF
14397 cat confdefs.h
>>conftest.
$ac_ext
14398 cat >>conftest.
$ac_ext <<_ACEOF
14399 /* end confdefs.h. */
14400 #include <unistd.h>
14409 rm -f conftest.
$ac_objext
14410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14411 (eval $ac_compile) 2>conftest.er1
14413 grep -v '^ *+' conftest.er1
>conftest.err
14415 cat conftest.err
>&5
14416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14417 (exit $ac_status); } &&
14418 { ac_try
='test -z "$ac_c_werror_flag"
14419 || test ! -s conftest.err'
14420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14421 (eval $ac_try) 2>&5
14423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14424 (exit $ac_status); }; } &&
14425 { ac_try
='test -s conftest.$ac_objext'
14426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14427 (eval $ac_try) 2>&5
14429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14430 (exit $ac_status); }; }; then
14432 cat >>confdefs.h
<<\_ACEOF
14433 #define HAVE_SYMLINK 1
14436 echo "$as_me:$LINENO: result: yes" >&5
14437 echo "${ECHO_T}yes" >&6
14439 echo "$as_me: failed program was:" >&5
14440 sed 's/^/| /' conftest.
$ac_ext >&5
14442 echo "$as_me:$LINENO: result: no" >&5
14443 echo "${ECHO_T}no" >&6
14446 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14447 echo "$as_me:$LINENO: checking for fchdir" >&5
14448 echo $ECHO_N "checking for fchdir... $ECHO_C" >&6
14449 cat >conftest.
$ac_ext <<_ACEOF
14452 cat confdefs.h
>>conftest.
$ac_ext
14453 cat >>conftest.
$ac_ext <<_ACEOF
14454 /* end confdefs.h. */
14455 #include <unistd.h>
14464 rm -f conftest.
$ac_objext
14465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14466 (eval $ac_compile) 2>conftest.er1
14468 grep -v '^ *+' conftest.er1
>conftest.err
14470 cat conftest.err
>&5
14471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14472 (exit $ac_status); } &&
14473 { ac_try
='test -z "$ac_c_werror_flag"
14474 || test ! -s conftest.err'
14475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14476 (eval $ac_try) 2>&5
14478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14479 (exit $ac_status); }; } &&
14480 { ac_try
='test -s conftest.$ac_objext'
14481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14482 (eval $ac_try) 2>&5
14484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14485 (exit $ac_status); }; }; then
14487 cat >>confdefs.h
<<\_ACEOF
14488 #define HAVE_FCHDIR 1
14491 echo "$as_me:$LINENO: result: yes" >&5
14492 echo "${ECHO_T}yes" >&6
14494 echo "$as_me: failed program was:" >&5
14495 sed 's/^/| /' conftest.
$ac_ext >&5
14497 echo "$as_me:$LINENO: result: no" >&5
14498 echo "${ECHO_T}no" >&6
14501 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14502 echo "$as_me:$LINENO: checking for fsync" >&5
14503 echo $ECHO_N "checking for fsync... $ECHO_C" >&6
14504 cat >conftest.
$ac_ext <<_ACEOF
14507 cat confdefs.h
>>conftest.
$ac_ext
14508 cat >>conftest.
$ac_ext <<_ACEOF
14509 /* end confdefs.h. */
14510 #include <unistd.h>
14519 rm -f conftest.
$ac_objext
14520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14521 (eval $ac_compile) 2>conftest.er1
14523 grep -v '^ *+' conftest.er1
>conftest.err
14525 cat conftest.err
>&5
14526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14527 (exit $ac_status); } &&
14528 { ac_try
='test -z "$ac_c_werror_flag"
14529 || test ! -s conftest.err'
14530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14531 (eval $ac_try) 2>&5
14533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14534 (exit $ac_status); }; } &&
14535 { ac_try
='test -s conftest.$ac_objext'
14536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14537 (eval $ac_try) 2>&5
14539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14540 (exit $ac_status); }; }; then
14542 cat >>confdefs.h
<<\_ACEOF
14543 #define HAVE_FSYNC 1
14546 echo "$as_me:$LINENO: result: yes" >&5
14547 echo "${ECHO_T}yes" >&6
14549 echo "$as_me: failed program was:" >&5
14550 sed 's/^/| /' conftest.
$ac_ext >&5
14552 echo "$as_me:$LINENO: result: no" >&5
14553 echo "${ECHO_T}no" >&6
14556 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14557 echo "$as_me:$LINENO: checking for fdatasync" >&5
14558 echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6
14559 cat >conftest.
$ac_ext <<_ACEOF
14562 cat confdefs.h
>>conftest.
$ac_ext
14563 cat >>conftest.
$ac_ext <<_ACEOF
14564 /* end confdefs.h. */
14565 #include <unistd.h>
14574 rm -f conftest.
$ac_objext
14575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14576 (eval $ac_compile) 2>conftest.er1
14578 grep -v '^ *+' conftest.er1
>conftest.err
14580 cat conftest.err
>&5
14581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14582 (exit $ac_status); } &&
14583 { ac_try
='test -z "$ac_c_werror_flag"
14584 || test ! -s conftest.err'
14585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14586 (eval $ac_try) 2>&5
14588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14589 (exit $ac_status); }; } &&
14590 { ac_try
='test -s conftest.$ac_objext'
14591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14592 (eval $ac_try) 2>&5
14594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14595 (exit $ac_status); }; }; then
14597 cat >>confdefs.h
<<\_ACEOF
14598 #define HAVE_FDATASYNC 1
14601 echo "$as_me:$LINENO: result: yes" >&5
14602 echo "${ECHO_T}yes" >&6
14604 echo "$as_me: failed program was:" >&5
14605 sed 's/^/| /' conftest.
$ac_ext >&5
14607 echo "$as_me:$LINENO: result: no" >&5
14608 echo "${ECHO_T}no" >&6
14611 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14613 # On some systems (eg. FreeBSD 5), we would find a definition of the
14614 # functions ctermid_r, setgroups in the library, but no prototype
14615 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
14616 # address to avoid compiler warnings and potential miscompilations
14617 # because of the missing prototypes.
14619 echo "$as_me:$LINENO: checking for ctermid_r" >&5
14620 echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6
14621 cat >conftest.
$ac_ext <<_ACEOF
14624 cat confdefs.h
>>conftest.
$ac_ext
14625 cat >>conftest.
$ac_ext <<_ACEOF
14626 /* end confdefs.h. */
14628 #include "confdefs.h"
14634 void* p = ctermid_r
14639 rm -f conftest.
$ac_objext
14640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14641 (eval $ac_compile) 2>conftest.er1
14643 grep -v '^ *+' conftest.er1
>conftest.err
14645 cat conftest.err
>&5
14646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14647 (exit $ac_status); } &&
14648 { ac_try
='test -z "$ac_c_werror_flag"
14649 || test ! -s conftest.err'
14650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14651 (eval $ac_try) 2>&5
14653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14654 (exit $ac_status); }; } &&
14655 { ac_try
='test -s conftest.$ac_objext'
14656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14657 (eval $ac_try) 2>&5
14659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14660 (exit $ac_status); }; }; then
14662 cat >>confdefs.h
<<\_ACEOF
14663 #define HAVE_CTERMID_R 1
14666 echo "$as_me:$LINENO: result: yes" >&5
14667 echo "${ECHO_T}yes" >&6
14669 echo "$as_me: failed program was:" >&5
14670 sed 's/^/| /' conftest.
$ac_ext >&5
14672 echo "$as_me:$LINENO: result: no" >&5
14673 echo "${ECHO_T}no" >&6
14676 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14678 echo "$as_me:$LINENO: checking for flock" >&5
14679 echo $ECHO_N "checking for flock... $ECHO_C" >&6
14680 cat >conftest.
$ac_ext <<_ACEOF
14683 cat confdefs.h
>>conftest.
$ac_ext
14684 cat >>conftest.
$ac_ext <<_ACEOF
14685 /* end confdefs.h. */
14687 #include "confdefs.h"
14688 #include <sys/file.h>
14698 rm -f conftest.
$ac_objext
14699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14700 (eval $ac_compile) 2>conftest.er1
14702 grep -v '^ *+' conftest.er1
>conftest.err
14704 cat conftest.err
>&5
14705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14706 (exit $ac_status); } &&
14707 { ac_try
='test -z "$ac_c_werror_flag"
14708 || test ! -s conftest.err'
14709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14710 (eval $ac_try) 2>&5
14712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14713 (exit $ac_status); }; } &&
14714 { ac_try
='test -s conftest.$ac_objext'
14715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14716 (eval $ac_try) 2>&5
14718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14719 (exit $ac_status); }; }; then
14721 cat >>confdefs.h
<<\_ACEOF
14722 #define HAVE_FLOCK 1
14725 echo "$as_me:$LINENO: result: yes" >&5
14726 echo "${ECHO_T}yes" >&6
14728 echo "$as_me: failed program was:" >&5
14729 sed 's/^/| /' conftest.
$ac_ext >&5
14731 echo "$as_me:$LINENO: result: no" >&5
14732 echo "${ECHO_T}no" >&6
14735 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14737 echo "$as_me:$LINENO: checking for getpagesize" >&5
14738 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6
14739 cat >conftest.
$ac_ext <<_ACEOF
14742 cat confdefs.h
>>conftest.
$ac_ext
14743 cat >>conftest.
$ac_ext <<_ACEOF
14744 /* end confdefs.h. */
14746 #include "confdefs.h"
14747 #include <unistd.h>
14752 void* p = getpagesize
14757 rm -f conftest.
$ac_objext
14758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14759 (eval $ac_compile) 2>conftest.er1
14761 grep -v '^ *+' conftest.er1
>conftest.err
14763 cat conftest.err
>&5
14764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14765 (exit $ac_status); } &&
14766 { ac_try
='test -z "$ac_c_werror_flag"
14767 || test ! -s conftest.err'
14768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14769 (eval $ac_try) 2>&5
14771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14772 (exit $ac_status); }; } &&
14773 { ac_try
='test -s conftest.$ac_objext'
14774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14775 (eval $ac_try) 2>&5
14777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14778 (exit $ac_status); }; }; then
14780 cat >>confdefs.h
<<\_ACEOF
14781 #define HAVE_GETPAGESIZE 1
14784 echo "$as_me:$LINENO: result: yes" >&5
14785 echo "${ECHO_T}yes" >&6
14787 echo "$as_me: failed program was:" >&5
14788 sed 's/^/| /' conftest.
$ac_ext >&5
14790 echo "$as_me:$LINENO: result: no" >&5
14791 echo "${ECHO_T}no" >&6
14794 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14796 for ac_prog
in true
14798 # Extract the first word of "$ac_prog", so it can be a program name with args.
14799 set dummy
$ac_prog; ac_word
=$2
14800 echo "$as_me:$LINENO: checking for $ac_word" >&5
14801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14802 if test "${ac_cv_prog_TRUE+set}" = set; then
14803 echo $ECHO_N "(cached) $ECHO_C" >&6
14805 if test -n "$TRUE"; then
14806 ac_cv_prog_TRUE
="$TRUE" # Let the user override the test.
14808 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14809 for as_dir
in $PATH
14812 test -z "$as_dir" && as_dir
=.
14813 for ac_exec_ext
in '' $ac_executable_extensions; do
14814 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14815 ac_cv_prog_TRUE
="$ac_prog"
14816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14824 TRUE
=$ac_cv_prog_TRUE
14825 if test -n "$TRUE"; then
14826 echo "$as_me:$LINENO: result: $TRUE" >&5
14827 echo "${ECHO_T}$TRUE" >&6
14829 echo "$as_me:$LINENO: result: no" >&5
14830 echo "${ECHO_T}no" >&6
14833 test -n "$TRUE" && break
14835 test -n "$TRUE" || TRUE
="/bin/true"
14838 echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
14839 echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6
14840 if test "${ac_cv_lib_c_inet_aton+set}" = set; then
14841 echo $ECHO_N "(cached) $ECHO_C" >&6
14843 ac_check_lib_save_LIBS
=$LIBS
14845 cat >conftest.
$ac_ext <<_ACEOF
14848 cat confdefs.h
>>conftest.
$ac_ext
14849 cat >>conftest.
$ac_ext <<_ACEOF
14850 /* end confdefs.h. */
14852 /* Override any gcc2 internal prototype to avoid an error. */
14856 /* We use char because int might match the return type of a gcc2
14857 builtin and then its argument prototype would still apply. */
14867 rm -f conftest.
$ac_objext conftest
$ac_exeext
14868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14869 (eval $ac_link) 2>conftest.er1
14871 grep -v '^ *+' conftest.er1
>conftest.err
14873 cat conftest.err
>&5
14874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14875 (exit $ac_status); } &&
14876 { ac_try
='test -z "$ac_c_werror_flag"
14877 || test ! -s conftest.err'
14878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14879 (eval $ac_try) 2>&5
14881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14882 (exit $ac_status); }; } &&
14883 { ac_try
='test -s conftest$ac_exeext'
14884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14885 (eval $ac_try) 2>&5
14887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14888 (exit $ac_status); }; }; then
14889 ac_cv_lib_c_inet_aton
=yes
14891 echo "$as_me: failed program was:" >&5
14892 sed 's/^/| /' conftest.
$ac_ext >&5
14894 ac_cv_lib_c_inet_aton
=no
14896 rm -f conftest.err conftest.
$ac_objext \
14897 conftest
$ac_exeext conftest.
$ac_ext
14898 LIBS
=$ac_check_lib_save_LIBS
14900 echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
14901 echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6
14902 if test $ac_cv_lib_c_inet_aton = yes; then
14906 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
14907 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
14908 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
14909 echo $ECHO_N "(cached) $ECHO_C" >&6
14911 ac_check_lib_save_LIBS
=$LIBS
14912 LIBS
="-lresolv $LIBS"
14913 cat >conftest.
$ac_ext <<_ACEOF
14916 cat confdefs.h
>>conftest.
$ac_ext
14917 cat >>conftest.
$ac_ext <<_ACEOF
14918 /* end confdefs.h. */
14920 /* Override any gcc2 internal prototype to avoid an error. */
14924 /* We use char because int might match the return type of a gcc2
14925 builtin and then its argument prototype would still apply. */
14935 rm -f conftest.
$ac_objext conftest
$ac_exeext
14936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14937 (eval $ac_link) 2>conftest.er1
14939 grep -v '^ *+' conftest.er1
>conftest.err
14941 cat conftest.err
>&5
14942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14943 (exit $ac_status); } &&
14944 { ac_try
='test -z "$ac_c_werror_flag"
14945 || test ! -s conftest.err'
14946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14947 (eval $ac_try) 2>&5
14949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14950 (exit $ac_status); }; } &&
14951 { ac_try
='test -s conftest$ac_exeext'
14952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14953 (eval $ac_try) 2>&5
14955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14956 (exit $ac_status); }; }; then
14957 ac_cv_lib_resolv_inet_aton
=yes
14959 echo "$as_me: failed program was:" >&5
14960 sed 's/^/| /' conftest.
$ac_ext >&5
14962 ac_cv_lib_resolv_inet_aton
=no
14964 rm -f conftest.err conftest.
$ac_objext \
14965 conftest
$ac_exeext conftest.
$ac_ext
14966 LIBS
=$ac_check_lib_save_LIBS
14968 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
14969 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
14970 if test $ac_cv_lib_resolv_inet_aton = yes; then
14971 cat >>confdefs.h
<<_ACEOF
14972 #define HAVE_LIBRESOLV 1
14975 LIBS
="-lresolv $LIBS"
14983 case $ac_sys_system/$ac_sys_release in
14985 _CUR_CFLAGS
="${CFLAGS}"
14986 _CUR_LDFLAGS
="${LDFLAGS}"
14987 CFLAGS
="${CFLAGS} -Wl,-search_paths_first"
14988 LDFLAGS
="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib"
14992 echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5
14993 echo $ECHO_N "checking for inflateCopy in -lz... $ECHO_C" >&6
14994 if test "${ac_cv_lib_z_inflateCopy+set}" = set; then
14995 echo $ECHO_N "(cached) $ECHO_C" >&6
14997 ac_check_lib_save_LIBS
=$LIBS
14999 cat >conftest.
$ac_ext <<_ACEOF
15002 cat confdefs.h
>>conftest.
$ac_ext
15003 cat >>conftest.
$ac_ext <<_ACEOF
15004 /* end confdefs.h. */
15006 /* Override any gcc2 internal prototype to avoid an error. */
15010 /* We use char because int might match the return type of a gcc2
15011 builtin and then its argument prototype would still apply. */
15012 char inflateCopy ();
15021 rm -f conftest.
$ac_objext conftest
$ac_exeext
15022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15023 (eval $ac_link) 2>conftest.er1
15025 grep -v '^ *+' conftest.er1
>conftest.err
15027 cat conftest.err
>&5
15028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15029 (exit $ac_status); } &&
15030 { ac_try
='test -z "$ac_c_werror_flag"
15031 || test ! -s conftest.err'
15032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15033 (eval $ac_try) 2>&5
15035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15036 (exit $ac_status); }; } &&
15037 { ac_try
='test -s conftest$ac_exeext'
15038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15039 (eval $ac_try) 2>&5
15041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15042 (exit $ac_status); }; }; then
15043 ac_cv_lib_z_inflateCopy
=yes
15045 echo "$as_me: failed program was:" >&5
15046 sed 's/^/| /' conftest.
$ac_ext >&5
15048 ac_cv_lib_z_inflateCopy
=no
15050 rm -f conftest.err conftest.
$ac_objext \
15051 conftest
$ac_exeext conftest.
$ac_ext
15052 LIBS
=$ac_check_lib_save_LIBS
15054 echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5
15055 echo "${ECHO_T}$ac_cv_lib_z_inflateCopy" >&6
15056 if test $ac_cv_lib_z_inflateCopy = yes; then
15058 cat >>confdefs.h
<<\_ACEOF
15059 #define HAVE_ZLIB_COPY 1
15065 case $ac_sys_system/$ac_sys_release in
15067 CFLAGS
="${_CUR_CFLAGS}"
15068 LDFLAGS
="${_CUR_LDFLAGS}"
15072 echo "$as_me:$LINENO: checking for hstrerror" >&5
15073 echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6
15074 cat >conftest.
$ac_ext <<_ACEOF
15077 cat confdefs.h
>>conftest.
$ac_ext
15078 cat >>conftest.
$ac_ext <<_ACEOF
15079 /* end confdefs.h. */
15081 #include "confdefs.h"
15087 void* p = hstrerror; hstrerror(0)
15092 rm -f conftest.
$ac_objext conftest
$ac_exeext
15093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15094 (eval $ac_link) 2>conftest.er1
15096 grep -v '^ *+' conftest.er1
>conftest.err
15098 cat conftest.err
>&5
15099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15100 (exit $ac_status); } &&
15101 { ac_try
='test -z "$ac_c_werror_flag"
15102 || test ! -s conftest.err'
15103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15104 (eval $ac_try) 2>&5
15106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15107 (exit $ac_status); }; } &&
15108 { ac_try
='test -s conftest$ac_exeext'
15109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15110 (eval $ac_try) 2>&5
15112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15113 (exit $ac_status); }; }; then
15115 cat >>confdefs.h
<<\_ACEOF
15116 #define HAVE_HSTRERROR 1
15119 echo "$as_me:$LINENO: result: yes" >&5
15120 echo "${ECHO_T}yes" >&6
15122 echo "$as_me: failed program was:" >&5
15123 sed 's/^/| /' conftest.
$ac_ext >&5
15125 echo "$as_me:$LINENO: result: no" >&5
15126 echo "${ECHO_T}no" >&6
15129 rm -f conftest.err conftest.
$ac_objext \
15130 conftest
$ac_exeext conftest.
$ac_ext
15132 echo "$as_me:$LINENO: checking for inet_aton" >&5
15133 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
15134 cat >conftest.
$ac_ext <<_ACEOF
15137 cat confdefs.h
>>conftest.
$ac_ext
15138 cat >>conftest.
$ac_ext <<_ACEOF
15139 /* end confdefs.h. */
15141 #include "confdefs.h"
15142 #include <sys/types.h>
15143 #include <sys/socket.h>
15144 #include <netinet/in.h>
15145 #include <arpa/inet.h>
15150 void* p = inet_aton;inet_aton(0,0)
15155 rm -f conftest.
$ac_objext conftest
$ac_exeext
15156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15157 (eval $ac_link) 2>conftest.er1
15159 grep -v '^ *+' conftest.er1
>conftest.err
15161 cat conftest.err
>&5
15162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15163 (exit $ac_status); } &&
15164 { ac_try
='test -z "$ac_c_werror_flag"
15165 || test ! -s conftest.err'
15166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15167 (eval $ac_try) 2>&5
15169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15170 (exit $ac_status); }; } &&
15171 { ac_try
='test -s conftest$ac_exeext'
15172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15173 (eval $ac_try) 2>&5
15175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15176 (exit $ac_status); }; }; then
15178 cat >>confdefs.h
<<\_ACEOF
15179 #define HAVE_INET_ATON 1
15182 echo "$as_me:$LINENO: result: yes" >&5
15183 echo "${ECHO_T}yes" >&6
15185 echo "$as_me: failed program was:" >&5
15186 sed 's/^/| /' conftest.
$ac_ext >&5
15188 echo "$as_me:$LINENO: result: no" >&5
15189 echo "${ECHO_T}no" >&6
15192 rm -f conftest.err conftest.
$ac_objext \
15193 conftest
$ac_exeext conftest.
$ac_ext
15195 echo "$as_me:$LINENO: checking for inet_pton" >&5
15196 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6
15197 cat >conftest.
$ac_ext <<_ACEOF
15200 cat confdefs.h
>>conftest.
$ac_ext
15201 cat >>conftest.
$ac_ext <<_ACEOF
15202 /* end confdefs.h. */
15204 #include "confdefs.h"
15205 #include <sys/types.h>
15206 #include <sys/socket.h>
15207 #include <netinet/in.h>
15208 #include <arpa/inet.h>
15213 void* p = inet_pton
15218 rm -f conftest.
$ac_objext
15219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15220 (eval $ac_compile) 2>conftest.er1
15222 grep -v '^ *+' conftest.er1
>conftest.err
15224 cat conftest.err
>&5
15225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15226 (exit $ac_status); } &&
15227 { ac_try
='test -z "$ac_c_werror_flag"
15228 || test ! -s conftest.err'
15229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15230 (eval $ac_try) 2>&5
15232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15233 (exit $ac_status); }; } &&
15234 { ac_try
='test -s conftest.$ac_objext'
15235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15236 (eval $ac_try) 2>&5
15238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15239 (exit $ac_status); }; }; then
15241 cat >>confdefs.h
<<\_ACEOF
15242 #define HAVE_INET_PTON 1
15245 echo "$as_me:$LINENO: result: yes" >&5
15246 echo "${ECHO_T}yes" >&6
15248 echo "$as_me: failed program was:" >&5
15249 sed 's/^/| /' conftest.
$ac_ext >&5
15251 echo "$as_me:$LINENO: result: no" >&5
15252 echo "${ECHO_T}no" >&6
15255 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15257 # On some systems, setgroups is in unistd.h, on others, in grp.h
15258 echo "$as_me:$LINENO: checking for setgroups" >&5
15259 echo $ECHO_N "checking for setgroups... $ECHO_C" >&6
15260 cat >conftest.
$ac_ext <<_ACEOF
15263 cat confdefs.h
>>conftest.
$ac_ext
15264 cat >>conftest.
$ac_ext <<_ACEOF
15265 /* end confdefs.h. */
15267 #include "confdefs.h"
15268 #include <unistd.h>
15276 void* p = setgroups
15281 rm -f conftest.
$ac_objext
15282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15283 (eval $ac_compile) 2>conftest.er1
15285 grep -v '^ *+' conftest.er1
>conftest.err
15287 cat conftest.err
>&5
15288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15289 (exit $ac_status); } &&
15290 { ac_try
='test -z "$ac_c_werror_flag"
15291 || test ! -s conftest.err'
15292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15293 (eval $ac_try) 2>&5
15295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15296 (exit $ac_status); }; } &&
15297 { ac_try
='test -s conftest.$ac_objext'
15298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15299 (eval $ac_try) 2>&5
15301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15302 (exit $ac_status); }; }; then
15304 cat >>confdefs.h
<<\_ACEOF
15305 #define HAVE_SETGROUPS 1
15308 echo "$as_me:$LINENO: result: yes" >&5
15309 echo "${ECHO_T}yes" >&6
15311 echo "$as_me: failed program was:" >&5
15312 sed 's/^/| /' conftest.
$ac_ext >&5
15314 echo "$as_me:$LINENO: result: no" >&5
15315 echo "${ECHO_T}no" >&6
15318 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15320 # check for openpty and forkpty
15323 for ac_func
in openpty
15325 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15326 echo "$as_me:$LINENO: checking for $ac_func" >&5
15327 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15328 if eval "test \"\${$as_ac_var+set}\" = set"; then
15329 echo $ECHO_N "(cached) $ECHO_C" >&6
15331 cat >conftest.
$ac_ext <<_ACEOF
15334 cat confdefs.h
>>conftest.
$ac_ext
15335 cat >>conftest.
$ac_ext <<_ACEOF
15336 /* end confdefs.h. */
15337 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15338 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15339 #define $ac_func innocuous_$ac_func
15341 /* System header to define __stub macros and hopefully few prototypes,
15342 which can conflict with char $ac_func (); below.
15343 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15344 <limits.h> exists even on freestanding compilers. */
15347 # include <limits.h>
15349 # include <assert.h>
15354 /* Override any gcc2 internal prototype to avoid an error. */
15359 /* We use char because int might match the return type of a gcc2
15360 builtin and then its argument prototype would still apply. */
15362 /* The GNU C library defines this for functions which it implements
15363 to always fail with ENOSYS. Some functions are actually named
15364 something starting with __ and the normal name is an alias. */
15365 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15368 char (*f) () = $ac_func;
15377 return f != $ac_func;
15382 rm -f conftest.
$ac_objext conftest
$ac_exeext
15383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15384 (eval $ac_link) 2>conftest.er1
15386 grep -v '^ *+' conftest.er1
>conftest.err
15388 cat conftest.err
>&5
15389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15390 (exit $ac_status); } &&
15391 { ac_try
='test -z "$ac_c_werror_flag"
15392 || test ! -s conftest.err'
15393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15394 (eval $ac_try) 2>&5
15396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15397 (exit $ac_status); }; } &&
15398 { ac_try
='test -s conftest$ac_exeext'
15399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15400 (eval $ac_try) 2>&5
15402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15403 (exit $ac_status); }; }; then
15404 eval "$as_ac_var=yes"
15406 echo "$as_me: failed program was:" >&5
15407 sed 's/^/| /' conftest.
$ac_ext >&5
15409 eval "$as_ac_var=no"
15411 rm -f conftest.err conftest.
$ac_objext \
15412 conftest
$ac_exeext conftest.
$ac_ext
15414 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15415 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15416 if test `eval echo '${'$as_ac_var'}'` = yes; then
15417 cat >>confdefs.h
<<_ACEOF
15418 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15422 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
15423 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
15424 if test "${ac_cv_lib_util_openpty+set}" = set; then
15425 echo $ECHO_N "(cached) $ECHO_C" >&6
15427 ac_check_lib_save_LIBS
=$LIBS
15428 LIBS
="-lutil $LIBS"
15429 cat >conftest.
$ac_ext <<_ACEOF
15432 cat confdefs.h
>>conftest.
$ac_ext
15433 cat >>conftest.
$ac_ext <<_ACEOF
15434 /* end confdefs.h. */
15436 /* Override any gcc2 internal prototype to avoid an error. */
15440 /* We use char because int might match the return type of a gcc2
15441 builtin and then its argument prototype would still apply. */
15451 rm -f conftest.
$ac_objext conftest
$ac_exeext
15452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15453 (eval $ac_link) 2>conftest.er1
15455 grep -v '^ *+' conftest.er1
>conftest.err
15457 cat conftest.err
>&5
15458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15459 (exit $ac_status); } &&
15460 { ac_try
='test -z "$ac_c_werror_flag"
15461 || test ! -s conftest.err'
15462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15463 (eval $ac_try) 2>&5
15465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15466 (exit $ac_status); }; } &&
15467 { ac_try
='test -s conftest$ac_exeext'
15468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15469 (eval $ac_try) 2>&5
15471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15472 (exit $ac_status); }; }; then
15473 ac_cv_lib_util_openpty
=yes
15475 echo "$as_me: failed program was:" >&5
15476 sed 's/^/| /' conftest.
$ac_ext >&5
15478 ac_cv_lib_util_openpty
=no
15480 rm -f conftest.err conftest.
$ac_objext \
15481 conftest
$ac_exeext conftest.
$ac_ext
15482 LIBS
=$ac_check_lib_save_LIBS
15484 echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
15485 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
15486 if test $ac_cv_lib_util_openpty = yes; then
15487 cat >>confdefs.h
<<\_ACEOF
15488 #define HAVE_OPENPTY 1
15490 LIBS
="$LIBS -lutil"
15492 echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
15493 echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6
15494 if test "${ac_cv_lib_bsd_openpty+set}" = set; then
15495 echo $ECHO_N "(cached) $ECHO_C" >&6
15497 ac_check_lib_save_LIBS
=$LIBS
15499 cat >conftest.
$ac_ext <<_ACEOF
15502 cat confdefs.h
>>conftest.
$ac_ext
15503 cat >>conftest.
$ac_ext <<_ACEOF
15504 /* end confdefs.h. */
15506 /* Override any gcc2 internal prototype to avoid an error. */
15510 /* We use char because int might match the return type of a gcc2
15511 builtin and then its argument prototype would still apply. */
15521 rm -f conftest.
$ac_objext conftest
$ac_exeext
15522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15523 (eval $ac_link) 2>conftest.er1
15525 grep -v '^ *+' conftest.er1
>conftest.err
15527 cat conftest.err
>&5
15528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15529 (exit $ac_status); } &&
15530 { ac_try
='test -z "$ac_c_werror_flag"
15531 || test ! -s conftest.err'
15532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15533 (eval $ac_try) 2>&5
15535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15536 (exit $ac_status); }; } &&
15537 { ac_try
='test -s conftest$ac_exeext'
15538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15539 (eval $ac_try) 2>&5
15541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15542 (exit $ac_status); }; }; then
15543 ac_cv_lib_bsd_openpty
=yes
15545 echo "$as_me: failed program was:" >&5
15546 sed 's/^/| /' conftest.
$ac_ext >&5
15548 ac_cv_lib_bsd_openpty
=no
15550 rm -f conftest.err conftest.
$ac_objext \
15551 conftest
$ac_exeext conftest.
$ac_ext
15552 LIBS
=$ac_check_lib_save_LIBS
15554 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
15555 echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6
15556 if test $ac_cv_lib_bsd_openpty = yes; then
15557 cat >>confdefs.h
<<\_ACEOF
15558 #define HAVE_OPENPTY 1
15571 for ac_func
in forkpty
15573 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15574 echo "$as_me:$LINENO: checking for $ac_func" >&5
15575 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15576 if eval "test \"\${$as_ac_var+set}\" = set"; then
15577 echo $ECHO_N "(cached) $ECHO_C" >&6
15579 cat >conftest.
$ac_ext <<_ACEOF
15582 cat confdefs.h
>>conftest.
$ac_ext
15583 cat >>conftest.
$ac_ext <<_ACEOF
15584 /* end confdefs.h. */
15585 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15586 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15587 #define $ac_func innocuous_$ac_func
15589 /* System header to define __stub macros and hopefully few prototypes,
15590 which can conflict with char $ac_func (); below.
15591 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15592 <limits.h> exists even on freestanding compilers. */
15595 # include <limits.h>
15597 # include <assert.h>
15602 /* Override any gcc2 internal prototype to avoid an error. */
15607 /* We use char because int might match the return type of a gcc2
15608 builtin and then its argument prototype would still apply. */
15610 /* The GNU C library defines this for functions which it implements
15611 to always fail with ENOSYS. Some functions are actually named
15612 something starting with __ and the normal name is an alias. */
15613 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15616 char (*f) () = $ac_func;
15625 return f != $ac_func;
15630 rm -f conftest.
$ac_objext conftest
$ac_exeext
15631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15632 (eval $ac_link) 2>conftest.er1
15634 grep -v '^ *+' conftest.er1
>conftest.err
15636 cat conftest.err
>&5
15637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15638 (exit $ac_status); } &&
15639 { ac_try
='test -z "$ac_c_werror_flag"
15640 || test ! -s conftest.err'
15641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15642 (eval $ac_try) 2>&5
15644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15645 (exit $ac_status); }; } &&
15646 { ac_try
='test -s conftest$ac_exeext'
15647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15648 (eval $ac_try) 2>&5
15650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15651 (exit $ac_status); }; }; then
15652 eval "$as_ac_var=yes"
15654 echo "$as_me: failed program was:" >&5
15655 sed 's/^/| /' conftest.
$ac_ext >&5
15657 eval "$as_ac_var=no"
15659 rm -f conftest.err conftest.
$ac_objext \
15660 conftest
$ac_exeext conftest.
$ac_ext
15662 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15663 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15664 if test `eval echo '${'$as_ac_var'}'` = yes; then
15665 cat >>confdefs.h
<<_ACEOF
15666 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15670 echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
15671 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6
15672 if test "${ac_cv_lib_util_forkpty+set}" = set; then
15673 echo $ECHO_N "(cached) $ECHO_C" >&6
15675 ac_check_lib_save_LIBS
=$LIBS
15676 LIBS
="-lutil $LIBS"
15677 cat >conftest.
$ac_ext <<_ACEOF
15680 cat confdefs.h
>>conftest.
$ac_ext
15681 cat >>conftest.
$ac_ext <<_ACEOF
15682 /* end confdefs.h. */
15684 /* Override any gcc2 internal prototype to avoid an error. */
15688 /* We use char because int might match the return type of a gcc2
15689 builtin and then its argument prototype would still apply. */
15699 rm -f conftest.
$ac_objext conftest
$ac_exeext
15700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15701 (eval $ac_link) 2>conftest.er1
15703 grep -v '^ *+' conftest.er1
>conftest.err
15705 cat conftest.err
>&5
15706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15707 (exit $ac_status); } &&
15708 { ac_try
='test -z "$ac_c_werror_flag"
15709 || test ! -s conftest.err'
15710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15711 (eval $ac_try) 2>&5
15713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15714 (exit $ac_status); }; } &&
15715 { ac_try
='test -s conftest$ac_exeext'
15716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15717 (eval $ac_try) 2>&5
15719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15720 (exit $ac_status); }; }; then
15721 ac_cv_lib_util_forkpty
=yes
15723 echo "$as_me: failed program was:" >&5
15724 sed 's/^/| /' conftest.
$ac_ext >&5
15726 ac_cv_lib_util_forkpty
=no
15728 rm -f conftest.err conftest.
$ac_objext \
15729 conftest
$ac_exeext conftest.
$ac_ext
15730 LIBS
=$ac_check_lib_save_LIBS
15732 echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
15733 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6
15734 if test $ac_cv_lib_util_forkpty = yes; then
15735 cat >>confdefs.h
<<\_ACEOF
15736 #define HAVE_FORKPTY 1
15738 LIBS
="$LIBS -lutil"
15740 echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
15741 echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6
15742 if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
15743 echo $ECHO_N "(cached) $ECHO_C" >&6
15745 ac_check_lib_save_LIBS
=$LIBS
15747 cat >conftest.
$ac_ext <<_ACEOF
15750 cat confdefs.h
>>conftest.
$ac_ext
15751 cat >>conftest.
$ac_ext <<_ACEOF
15752 /* end confdefs.h. */
15754 /* Override any gcc2 internal prototype to avoid an error. */
15758 /* We use char because int might match the return type of a gcc2
15759 builtin and then its argument prototype would still apply. */
15769 rm -f conftest.
$ac_objext conftest
$ac_exeext
15770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15771 (eval $ac_link) 2>conftest.er1
15773 grep -v '^ *+' conftest.er1
>conftest.err
15775 cat conftest.err
>&5
15776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15777 (exit $ac_status); } &&
15778 { ac_try
='test -z "$ac_c_werror_flag"
15779 || test ! -s conftest.err'
15780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15781 (eval $ac_try) 2>&5
15783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15784 (exit $ac_status); }; } &&
15785 { ac_try
='test -s conftest$ac_exeext'
15786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15787 (eval $ac_try) 2>&5
15789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15790 (exit $ac_status); }; }; then
15791 ac_cv_lib_bsd_forkpty
=yes
15793 echo "$as_me: failed program was:" >&5
15794 sed 's/^/| /' conftest.
$ac_ext >&5
15796 ac_cv_lib_bsd_forkpty
=no
15798 rm -f conftest.err conftest.
$ac_objext \
15799 conftest
$ac_exeext conftest.
$ac_ext
15800 LIBS
=$ac_check_lib_save_LIBS
15802 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
15803 echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6
15804 if test $ac_cv_lib_bsd_forkpty = yes; then
15805 cat >>confdefs.h
<<\_ACEOF
15806 #define HAVE_FORKPTY 1
15819 # check for long file support functions
15826 for ac_func
in fseek64 fseeko fstatvfs ftell64 ftello statvfs
15828 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15829 echo "$as_me:$LINENO: checking for $ac_func" >&5
15830 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15831 if eval "test \"\${$as_ac_var+set}\" = set"; then
15832 echo $ECHO_N "(cached) $ECHO_C" >&6
15834 cat >conftest.
$ac_ext <<_ACEOF
15837 cat confdefs.h
>>conftest.
$ac_ext
15838 cat >>conftest.
$ac_ext <<_ACEOF
15839 /* end confdefs.h. */
15840 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15841 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15842 #define $ac_func innocuous_$ac_func
15844 /* System header to define __stub macros and hopefully few prototypes,
15845 which can conflict with char $ac_func (); below.
15846 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15847 <limits.h> exists even on freestanding compilers. */
15850 # include <limits.h>
15852 # include <assert.h>
15857 /* Override any gcc2 internal prototype to avoid an error. */
15862 /* We use char because int might match the return type of a gcc2
15863 builtin and then its argument prototype would still apply. */
15865 /* The GNU C library defines this for functions which it implements
15866 to always fail with ENOSYS. Some functions are actually named
15867 something starting with __ and the normal name is an alias. */
15868 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15871 char (*f) () = $ac_func;
15880 return f != $ac_func;
15885 rm -f conftest.
$ac_objext conftest
$ac_exeext
15886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15887 (eval $ac_link) 2>conftest.er1
15889 grep -v '^ *+' conftest.er1
>conftest.err
15891 cat conftest.err
>&5
15892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15893 (exit $ac_status); } &&
15894 { ac_try
='test -z "$ac_c_werror_flag"
15895 || test ! -s conftest.err'
15896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15897 (eval $ac_try) 2>&5
15899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15900 (exit $ac_status); }; } &&
15901 { ac_try
='test -s conftest$ac_exeext'
15902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15903 (eval $ac_try) 2>&5
15905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15906 (exit $ac_status); }; }; then
15907 eval "$as_ac_var=yes"
15909 echo "$as_me: failed program was:" >&5
15910 sed 's/^/| /' conftest.
$ac_ext >&5
15912 eval "$as_ac_var=no"
15914 rm -f conftest.err conftest.
$ac_objext \
15915 conftest
$ac_exeext conftest.
$ac_ext
15917 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15918 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15919 if test `eval echo '${'$as_ac_var'}'` = yes; then
15920 cat >>confdefs.h
<<_ACEOF
15921 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15933 for ac_func
in dup2 getcwd strdup strerror memmove
15935 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15936 echo "$as_me:$LINENO: checking for $ac_func" >&5
15937 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15938 if eval "test \"\${$as_ac_var+set}\" = set"; then
15939 echo $ECHO_N "(cached) $ECHO_C" >&6
15941 cat >conftest.
$ac_ext <<_ACEOF
15944 cat confdefs.h
>>conftest.
$ac_ext
15945 cat >>conftest.
$ac_ext <<_ACEOF
15946 /* end confdefs.h. */
15947 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15948 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15949 #define $ac_func innocuous_$ac_func
15951 /* System header to define __stub macros and hopefully few prototypes,
15952 which can conflict with char $ac_func (); below.
15953 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15954 <limits.h> exists even on freestanding compilers. */
15957 # include <limits.h>
15959 # include <assert.h>
15964 /* Override any gcc2 internal prototype to avoid an error. */
15969 /* We use char because int might match the return type of a gcc2
15970 builtin and then its argument prototype would still apply. */
15972 /* The GNU C library defines this for functions which it implements
15973 to always fail with ENOSYS. Some functions are actually named
15974 something starting with __ and the normal name is an alias. */
15975 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15978 char (*f) () = $ac_func;
15987 return f != $ac_func;
15992 rm -f conftest.
$ac_objext conftest
$ac_exeext
15993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15994 (eval $ac_link) 2>conftest.er1
15996 grep -v '^ *+' conftest.er1
>conftest.err
15998 cat conftest.err
>&5
15999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16000 (exit $ac_status); } &&
16001 { ac_try
='test -z "$ac_c_werror_flag"
16002 || test ! -s conftest.err'
16003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16004 (eval $ac_try) 2>&5
16006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16007 (exit $ac_status); }; } &&
16008 { ac_try
='test -s conftest$ac_exeext'
16009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16010 (eval $ac_try) 2>&5
16012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16013 (exit $ac_status); }; }; then
16014 eval "$as_ac_var=yes"
16016 echo "$as_me: failed program was:" >&5
16017 sed 's/^/| /' conftest.
$ac_ext >&5
16019 eval "$as_ac_var=no"
16021 rm -f conftest.err conftest.
$ac_objext \
16022 conftest
$ac_exeext conftest.
$ac_ext
16024 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16025 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16026 if test `eval echo '${'$as_ac_var'}'` = yes; then
16027 cat >>confdefs.h
<<_ACEOF
16028 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16033 "$ac_func.$ac_objext" | \
16034 *" $ac_func.$ac_objext" | \
16035 "$ac_func.$ac_objext "* | \
16036 *" $ac_func.$ac_objext "* ) ;;
16037 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext" ;;
16045 for ac_func
in getpgrp
16047 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16048 echo "$as_me:$LINENO: checking for $ac_func" >&5
16049 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16050 if eval "test \"\${$as_ac_var+set}\" = set"; then
16051 echo $ECHO_N "(cached) $ECHO_C" >&6
16053 cat >conftest.
$ac_ext <<_ACEOF
16056 cat confdefs.h
>>conftest.
$ac_ext
16057 cat >>conftest.
$ac_ext <<_ACEOF
16058 /* end confdefs.h. */
16059 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16060 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16061 #define $ac_func innocuous_$ac_func
16063 /* System header to define __stub macros and hopefully few prototypes,
16064 which can conflict with char $ac_func (); below.
16065 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16066 <limits.h> exists even on freestanding compilers. */
16069 # include <limits.h>
16071 # include <assert.h>
16076 /* Override any gcc2 internal prototype to avoid an error. */
16081 /* We use char because int might match the return type of a gcc2
16082 builtin and then its argument prototype would still apply. */
16084 /* The GNU C library defines this for functions which it implements
16085 to always fail with ENOSYS. Some functions are actually named
16086 something starting with __ and the normal name is an alias. */
16087 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16090 char (*f) () = $ac_func;
16099 return f != $ac_func;
16104 rm -f conftest.
$ac_objext conftest
$ac_exeext
16105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16106 (eval $ac_link) 2>conftest.er1
16108 grep -v '^ *+' conftest.er1
>conftest.err
16110 cat conftest.err
>&5
16111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16112 (exit $ac_status); } &&
16113 { ac_try
='test -z "$ac_c_werror_flag"
16114 || test ! -s conftest.err'
16115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16116 (eval $ac_try) 2>&5
16118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16119 (exit $ac_status); }; } &&
16120 { ac_try
='test -s conftest$ac_exeext'
16121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16122 (eval $ac_try) 2>&5
16124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16125 (exit $ac_status); }; }; then
16126 eval "$as_ac_var=yes"
16128 echo "$as_me: failed program was:" >&5
16129 sed 's/^/| /' conftest.
$ac_ext >&5
16131 eval "$as_ac_var=no"
16133 rm -f conftest.err conftest.
$ac_objext \
16134 conftest
$ac_exeext conftest.
$ac_ext
16136 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16137 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16138 if test `eval echo '${'$as_ac_var'}'` = yes; then
16139 cat >>confdefs.h
<<_ACEOF
16140 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16142 cat >conftest.
$ac_ext <<_ACEOF
16145 cat confdefs.h
>>conftest.
$ac_ext
16146 cat >>conftest.
$ac_ext <<_ACEOF
16147 /* end confdefs.h. */
16148 #include <unistd.h>
16157 rm -f conftest.
$ac_objext
16158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16159 (eval $ac_compile) 2>conftest.er1
16161 grep -v '^ *+' conftest.er1
>conftest.err
16163 cat conftest.err
>&5
16164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16165 (exit $ac_status); } &&
16166 { ac_try
='test -z "$ac_c_werror_flag"
16167 || test ! -s conftest.err'
16168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16169 (eval $ac_try) 2>&5
16171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16172 (exit $ac_status); }; } &&
16173 { ac_try
='test -s conftest.$ac_objext'
16174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16175 (eval $ac_try) 2>&5
16177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16178 (exit $ac_status); }; }; then
16180 cat >>confdefs.h
<<\_ACEOF
16181 #define GETPGRP_HAVE_ARG 1
16186 echo "$as_me: failed program was:" >&5
16187 sed 's/^/| /' conftest.
$ac_ext >&5
16190 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16196 for ac_func
in setpgrp
16198 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16199 echo "$as_me:$LINENO: checking for $ac_func" >&5
16200 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16201 if eval "test \"\${$as_ac_var+set}\" = set"; then
16202 echo $ECHO_N "(cached) $ECHO_C" >&6
16204 cat >conftest.
$ac_ext <<_ACEOF
16207 cat confdefs.h
>>conftest.
$ac_ext
16208 cat >>conftest.
$ac_ext <<_ACEOF
16209 /* end confdefs.h. */
16210 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16211 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16212 #define $ac_func innocuous_$ac_func
16214 /* System header to define __stub macros and hopefully few prototypes,
16215 which can conflict with char $ac_func (); below.
16216 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16217 <limits.h> exists even on freestanding compilers. */
16220 # include <limits.h>
16222 # include <assert.h>
16227 /* Override any gcc2 internal prototype to avoid an error. */
16232 /* We use char because int might match the return type of a gcc2
16233 builtin and then its argument prototype would still apply. */
16235 /* The GNU C library defines this for functions which it implements
16236 to always fail with ENOSYS. Some functions are actually named
16237 something starting with __ and the normal name is an alias. */
16238 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16241 char (*f) () = $ac_func;
16250 return f != $ac_func;
16255 rm -f conftest.
$ac_objext conftest
$ac_exeext
16256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16257 (eval $ac_link) 2>conftest.er1
16259 grep -v '^ *+' conftest.er1
>conftest.err
16261 cat conftest.err
>&5
16262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16263 (exit $ac_status); } &&
16264 { ac_try
='test -z "$ac_c_werror_flag"
16265 || test ! -s conftest.err'
16266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16267 (eval $ac_try) 2>&5
16269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16270 (exit $ac_status); }; } &&
16271 { ac_try
='test -s conftest$ac_exeext'
16272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16273 (eval $ac_try) 2>&5
16275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16276 (exit $ac_status); }; }; then
16277 eval "$as_ac_var=yes"
16279 echo "$as_me: failed program was:" >&5
16280 sed 's/^/| /' conftest.
$ac_ext >&5
16282 eval "$as_ac_var=no"
16284 rm -f conftest.err conftest.
$ac_objext \
16285 conftest
$ac_exeext conftest.
$ac_ext
16287 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16288 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16289 if test `eval echo '${'$as_ac_var'}'` = yes; then
16290 cat >>confdefs.h
<<_ACEOF
16291 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16293 cat >conftest.
$ac_ext <<_ACEOF
16296 cat confdefs.h
>>conftest.
$ac_ext
16297 cat >>conftest.
$ac_ext <<_ACEOF
16298 /* end confdefs.h. */
16299 #include <unistd.h>
16308 rm -f conftest.
$ac_objext
16309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16310 (eval $ac_compile) 2>conftest.er1
16312 grep -v '^ *+' conftest.er1
>conftest.err
16314 cat conftest.err
>&5
16315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16316 (exit $ac_status); } &&
16317 { ac_try
='test -z "$ac_c_werror_flag"
16318 || test ! -s conftest.err'
16319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16320 (eval $ac_try) 2>&5
16322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16323 (exit $ac_status); }; } &&
16324 { ac_try
='test -s conftest.$ac_objext'
16325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16326 (eval $ac_try) 2>&5
16328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16329 (exit $ac_status); }; }; then
16331 cat >>confdefs.h
<<\_ACEOF
16332 #define SETPGRP_HAVE_ARG 1
16337 echo "$as_me: failed program was:" >&5
16338 sed 's/^/| /' conftest.
$ac_ext >&5
16341 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16347 for ac_func
in gettimeofday
16349 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16350 echo "$as_me:$LINENO: checking for $ac_func" >&5
16351 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16352 if eval "test \"\${$as_ac_var+set}\" = set"; then
16353 echo $ECHO_N "(cached) $ECHO_C" >&6
16355 cat >conftest.
$ac_ext <<_ACEOF
16358 cat confdefs.h
>>conftest.
$ac_ext
16359 cat >>conftest.
$ac_ext <<_ACEOF
16360 /* end confdefs.h. */
16361 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16362 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16363 #define $ac_func innocuous_$ac_func
16365 /* System header to define __stub macros and hopefully few prototypes,
16366 which can conflict with char $ac_func (); below.
16367 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16368 <limits.h> exists even on freestanding compilers. */
16371 # include <limits.h>
16373 # include <assert.h>
16378 /* Override any gcc2 internal prototype to avoid an error. */
16383 /* We use char because int might match the return type of a gcc2
16384 builtin and then its argument prototype would still apply. */
16386 /* The GNU C library defines this for functions which it implements
16387 to always fail with ENOSYS. Some functions are actually named
16388 something starting with __ and the normal name is an alias. */
16389 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16392 char (*f) () = $ac_func;
16401 return f != $ac_func;
16406 rm -f conftest.
$ac_objext conftest
$ac_exeext
16407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16408 (eval $ac_link) 2>conftest.er1
16410 grep -v '^ *+' conftest.er1
>conftest.err
16412 cat conftest.err
>&5
16413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16414 (exit $ac_status); } &&
16415 { ac_try
='test -z "$ac_c_werror_flag"
16416 || test ! -s conftest.err'
16417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16418 (eval $ac_try) 2>&5
16420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16421 (exit $ac_status); }; } &&
16422 { ac_try
='test -s conftest$ac_exeext'
16423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16424 (eval $ac_try) 2>&5
16426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16427 (exit $ac_status); }; }; then
16428 eval "$as_ac_var=yes"
16430 echo "$as_me: failed program was:" >&5
16431 sed 's/^/| /' conftest.
$ac_ext >&5
16433 eval "$as_ac_var=no"
16435 rm -f conftest.err conftest.
$ac_objext \
16436 conftest
$ac_exeext conftest.
$ac_ext
16438 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16439 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16440 if test `eval echo '${'$as_ac_var'}'` = yes; then
16441 cat >>confdefs.h
<<_ACEOF
16442 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16444 cat >conftest.
$ac_ext <<_ACEOF
16447 cat confdefs.h
>>conftest.
$ac_ext
16448 cat >>conftest.
$ac_ext <<_ACEOF
16449 /* end confdefs.h. */
16450 #include <sys/time.h>
16454 gettimeofday((struct timeval*)0,(struct timezone*)0);
16459 rm -f conftest.
$ac_objext
16460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16461 (eval $ac_compile) 2>conftest.er1
16463 grep -v '^ *+' conftest.er1
>conftest.err
16465 cat conftest.err
>&5
16466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16467 (exit $ac_status); } &&
16468 { ac_try
='test -z "$ac_c_werror_flag"
16469 || test ! -s conftest.err'
16470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16471 (eval $ac_try) 2>&5
16473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16474 (exit $ac_status); }; } &&
16475 { ac_try
='test -s conftest.$ac_objext'
16476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16477 (eval $ac_try) 2>&5
16479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16480 (exit $ac_status); }; }; then
16483 echo "$as_me: failed program was:" >&5
16484 sed 's/^/| /' conftest.
$ac_ext >&5
16487 cat >>confdefs.h
<<\_ACEOF
16488 #define GETTIMEOFDAY_NO_TZ 1
16493 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16499 echo "$as_me:$LINENO: checking for major" >&5
16500 echo $ECHO_N "checking for major... $ECHO_C" >&6
16501 cat >conftest.
$ac_ext <<_ACEOF
16504 cat confdefs.h
>>conftest.
$ac_ext
16505 cat >>conftest.
$ac_ext <<_ACEOF
16506 /* end confdefs.h. */
16508 #if defined(MAJOR_IN_MKDEV)
16509 #include <sys/mkdev.h>
16510 #elif defined(MAJOR_IN_SYSMACROS)
16511 #include <sys/sysmacros.h>
16513 #include <sys/types.h>
16520 makedev(major(0),minor(0));
16526 rm -f conftest.
$ac_objext conftest
$ac_exeext
16527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16528 (eval $ac_link) 2>conftest.er1
16530 grep -v '^ *+' conftest.er1
>conftest.err
16532 cat conftest.err
>&5
16533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16534 (exit $ac_status); } &&
16535 { ac_try
='test -z "$ac_c_werror_flag"
16536 || test ! -s conftest.err'
16537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16538 (eval $ac_try) 2>&5
16540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16541 (exit $ac_status); }; } &&
16542 { ac_try
='test -s conftest$ac_exeext'
16543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16544 (eval $ac_try) 2>&5
16546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16547 (exit $ac_status); }; }; then
16550 cat >>confdefs.h
<<\_ACEOF
16551 #define HAVE_DEVICE_MACROS 1
16554 echo "$as_me:$LINENO: result: yes" >&5
16555 echo "${ECHO_T}yes" >&6
16558 echo "$as_me: failed program was:" >&5
16559 sed 's/^/| /' conftest.
$ac_ext >&5
16562 echo "$as_me:$LINENO: result: no" >&5
16563 echo "${ECHO_T}no" >&6
16566 rm -f conftest.err conftest.
$ac_objext \
16567 conftest
$ac_exeext conftest.
$ac_ext
16569 # On OSF/1 V5.1, getaddrinfo is available, but a define
16570 # for [no]getaddrinfo in netdb.h.
16571 echo "$as_me:$LINENO: checking for getaddrinfo" >&5
16572 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6
16573 cat >conftest.
$ac_ext <<_ACEOF
16576 cat confdefs.h
>>conftest.
$ac_ext
16577 cat >>conftest.
$ac_ext <<_ACEOF
16578 /* end confdefs.h. */
16580 #include <sys/types.h>
16581 #include <sys/socket.h>
16589 getaddrinfo(NULL, NULL, NULL, NULL);
16595 rm -f conftest.
$ac_objext conftest
$ac_exeext
16596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16597 (eval $ac_link) 2>conftest.er1
16599 grep -v '^ *+' conftest.er1
>conftest.err
16601 cat conftest.err
>&5
16602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16603 (exit $ac_status); } &&
16604 { ac_try
='test -z "$ac_c_werror_flag"
16605 || test ! -s conftest.err'
16606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16607 (eval $ac_try) 2>&5
16609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16610 (exit $ac_status); }; } &&
16611 { ac_try
='test -s conftest$ac_exeext'
16612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16613 (eval $ac_try) 2>&5
16615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16616 (exit $ac_status); }; }; then
16618 echo "$as_me:$LINENO: result: yes" >&5
16619 echo "${ECHO_T}yes" >&6
16620 echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
16621 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6
16622 if test "$cross_compiling" = yes; then
16623 echo "$as_me:$LINENO: result: buggy" >&5
16624 echo "${ECHO_T}buggy" >&6
16625 buggygetaddrinfo
=yes
16627 cat >conftest.
$ac_ext <<_ACEOF
16630 cat confdefs.h
>>conftest.
$ac_ext
16631 cat >>conftest.
$ac_ext <<_ACEOF
16632 /* end confdefs.h. */
16634 #include <sys/types.h>
16636 #include <string.h>
16637 #include <sys/socket.h>
16638 #include <netinet/in.h>
16642 int passive, gaierr, inet4 = 0, inet6 = 0;
16643 struct addrinfo hints, *ai, *aitop;
16644 char straddr[INET6_ADDRSTRLEN], strport[16];
16646 for (passive = 0; passive <= 1; passive++) {
16647 memset(&hints, 0, sizeof(hints));
16648 hints.ai_family = AF_UNSPEC;
16649 hints.ai_flags = passive ? AI_PASSIVE : 0;
16650 hints.ai_socktype = SOCK_STREAM;
16651 hints.ai_protocol = IPPROTO_TCP;
16652 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
16653 (void)gai_strerror(gaierr);
16656 for (ai = aitop; ai; ai = ai->ai_next) {
16657 if (ai->ai_addr == NULL ||
16658 ai->ai_addrlen == 0 ||
16659 getnameinfo(ai->ai_addr, ai->ai_addrlen,
16660 straddr, sizeof(straddr), strport, sizeof(strport),
16661 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
16664 switch (ai->ai_family) {
16666 if (strcmp(strport, "54321") != 0) {
16670 if (strcmp(straddr, "0.0.0.0") != 0) {
16674 if (strcmp(straddr, "127.0.0.1") != 0) {
16681 if (strcmp(strport, "54321") != 0) {
16685 if (strcmp(straddr, "::") != 0) {
16689 if (strcmp(straddr, "::1") != 0) {
16699 /* another family support? */
16705 if (!(inet4 == 0 || inet4 == 2))
16707 if (!(inet6 == 0 || inet6 == 2))
16711 freeaddrinfo(aitop);
16716 freeaddrinfo(aitop);
16721 rm -f conftest
$ac_exeext
16722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16723 (eval $ac_link) 2>&5
16725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16726 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
16727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16728 (eval $ac_try) 2>&5
16730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16731 (exit $ac_status); }; }; then
16732 echo "$as_me:$LINENO: result: good" >&5
16733 echo "${ECHO_T}good" >&6
16734 buggygetaddrinfo
=no
16736 echo "$as_me: program exited with status $ac_status" >&5
16737 echo "$as_me: failed program was:" >&5
16738 sed 's/^/| /' conftest.
$ac_ext >&5
16740 ( exit $ac_status )
16741 echo "$as_me:$LINENO: result: buggy" >&5
16742 echo "${ECHO_T}buggy" >&6
16743 buggygetaddrinfo
=yes
16745 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
16748 echo "$as_me: failed program was:" >&5
16749 sed 's/^/| /' conftest.
$ac_ext >&5
16752 echo "$as_me:$LINENO: result: no" >&5
16753 echo "${ECHO_T}no" >&6
16754 buggygetaddrinfo
=yes
16757 rm -f conftest.err conftest.
$ac_objext \
16758 conftest
$ac_exeext conftest.
$ac_ext
16760 if test "$buggygetaddrinfo" = "yes"; then
16761 if test "$ipv6" = "yes"; then
16762 echo 'Fatal: You must get working getaddrinfo() function.'
16763 echo ' or you can specify "--disable-ipv6"'.
16768 cat >>confdefs.h
<<\_ACEOF
16769 #define HAVE_GETADDRINFO 1
16774 for ac_func
in getnameinfo
16776 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16777 echo "$as_me:$LINENO: checking for $ac_func" >&5
16778 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16779 if eval "test \"\${$as_ac_var+set}\" = set"; then
16780 echo $ECHO_N "(cached) $ECHO_C" >&6
16782 cat >conftest.
$ac_ext <<_ACEOF
16785 cat confdefs.h
>>conftest.
$ac_ext
16786 cat >>conftest.
$ac_ext <<_ACEOF
16787 /* end confdefs.h. */
16788 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16789 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16790 #define $ac_func innocuous_$ac_func
16792 /* System header to define __stub macros and hopefully few prototypes,
16793 which can conflict with char $ac_func (); below.
16794 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16795 <limits.h> exists even on freestanding compilers. */
16798 # include <limits.h>
16800 # include <assert.h>
16805 /* Override any gcc2 internal prototype to avoid an error. */
16810 /* We use char because int might match the return type of a gcc2
16811 builtin and then its argument prototype would still apply. */
16813 /* The GNU C library defines this for functions which it implements
16814 to always fail with ENOSYS. Some functions are actually named
16815 something starting with __ and the normal name is an alias. */
16816 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16819 char (*f) () = $ac_func;
16828 return f != $ac_func;
16833 rm -f conftest.
$ac_objext conftest
$ac_exeext
16834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16835 (eval $ac_link) 2>conftest.er1
16837 grep -v '^ *+' conftest.er1
>conftest.err
16839 cat conftest.err
>&5
16840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16841 (exit $ac_status); } &&
16842 { ac_try
='test -z "$ac_c_werror_flag"
16843 || test ! -s conftest.err'
16844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16845 (eval $ac_try) 2>&5
16847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16848 (exit $ac_status); }; } &&
16849 { ac_try
='test -s conftest$ac_exeext'
16850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16851 (eval $ac_try) 2>&5
16853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16854 (exit $ac_status); }; }; then
16855 eval "$as_ac_var=yes"
16857 echo "$as_me: failed program was:" >&5
16858 sed 's/^/| /' conftest.
$ac_ext >&5
16860 eval "$as_ac_var=no"
16862 rm -f conftest.err conftest.
$ac_objext \
16863 conftest
$ac_exeext conftest.
$ac_ext
16865 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16866 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16867 if test `eval echo '${'$as_ac_var'}'` = yes; then
16868 cat >>confdefs.h
<<_ACEOF
16869 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16876 # checks for structures
16877 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
16878 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
16879 if test "${ac_cv_header_time+set}" = set; then
16880 echo $ECHO_N "(cached) $ECHO_C" >&6
16882 cat >conftest.
$ac_ext <<_ACEOF
16885 cat confdefs.h
>>conftest.
$ac_ext
16886 cat >>conftest.
$ac_ext <<_ACEOF
16887 /* end confdefs.h. */
16888 #include <sys/types.h>
16889 #include <sys/time.h>
16895 if ((struct tm *) 0)
16901 rm -f conftest.
$ac_objext
16902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16903 (eval $ac_compile) 2>conftest.er1
16905 grep -v '^ *+' conftest.er1
>conftest.err
16907 cat conftest.err
>&5
16908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16909 (exit $ac_status); } &&
16910 { ac_try
='test -z "$ac_c_werror_flag"
16911 || test ! -s conftest.err'
16912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16913 (eval $ac_try) 2>&5
16915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16916 (exit $ac_status); }; } &&
16917 { ac_try
='test -s conftest.$ac_objext'
16918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16919 (eval $ac_try) 2>&5
16921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16922 (exit $ac_status); }; }; then
16923 ac_cv_header_time
=yes
16925 echo "$as_me: failed program was:" >&5
16926 sed 's/^/| /' conftest.
$ac_ext >&5
16928 ac_cv_header_time
=no
16930 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16932 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
16933 echo "${ECHO_T}$ac_cv_header_time" >&6
16934 if test $ac_cv_header_time = yes; then
16936 cat >>confdefs.h
<<\_ACEOF
16937 #define TIME_WITH_SYS_TIME 1
16942 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16943 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
16944 if test "${ac_cv_struct_tm+set}" = set; then
16945 echo $ECHO_N "(cached) $ECHO_C" >&6
16947 cat >conftest.
$ac_ext <<_ACEOF
16950 cat confdefs.h
>>conftest.
$ac_ext
16951 cat >>conftest.
$ac_ext <<_ACEOF
16952 /* end confdefs.h. */
16953 #include <sys/types.h>
16959 struct tm *tp; tp->tm_sec;
16964 rm -f conftest.
$ac_objext
16965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16966 (eval $ac_compile) 2>conftest.er1
16968 grep -v '^ *+' conftest.er1
>conftest.err
16970 cat conftest.err
>&5
16971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16972 (exit $ac_status); } &&
16973 { ac_try
='test -z "$ac_c_werror_flag"
16974 || test ! -s conftest.err'
16975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16976 (eval $ac_try) 2>&5
16978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16979 (exit $ac_status); }; } &&
16980 { ac_try
='test -s conftest.$ac_objext'
16981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16982 (eval $ac_try) 2>&5
16984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16985 (exit $ac_status); }; }; then
16986 ac_cv_struct_tm
=time.h
16988 echo "$as_me: failed program was:" >&5
16989 sed 's/^/| /' conftest.
$ac_ext >&5
16991 ac_cv_struct_tm
=sys
/time.h
16993 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16995 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16996 echo "${ECHO_T}$ac_cv_struct_tm" >&6
16997 if test $ac_cv_struct_tm = sys
/time.h
; then
16999 cat >>confdefs.h
<<\_ACEOF
17000 #define TM_IN_SYS_TIME 1
17005 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
17006 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
17007 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
17008 echo $ECHO_N "(cached) $ECHO_C" >&6
17010 cat >conftest.
$ac_ext <<_ACEOF
17013 cat confdefs.h
>>conftest.
$ac_ext
17014 cat >>conftest.
$ac_ext <<_ACEOF
17015 /* end confdefs.h. */
17016 #include <sys/types.h>
17017 #include <$ac_cv_struct_tm>
17023 static struct tm ac_aggr;
17024 if (ac_aggr.tm_zone)
17030 rm -f conftest.
$ac_objext
17031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17032 (eval $ac_compile) 2>conftest.er1
17034 grep -v '^ *+' conftest.er1
>conftest.err
17036 cat conftest.err
>&5
17037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17038 (exit $ac_status); } &&
17039 { ac_try
='test -z "$ac_c_werror_flag"
17040 || test ! -s conftest.err'
17041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17042 (eval $ac_try) 2>&5
17044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17045 (exit $ac_status); }; } &&
17046 { ac_try
='test -s conftest.$ac_objext'
17047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17048 (eval $ac_try) 2>&5
17050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17051 (exit $ac_status); }; }; then
17052 ac_cv_member_struct_tm_tm_zone
=yes
17054 echo "$as_me: failed program was:" >&5
17055 sed 's/^/| /' conftest.
$ac_ext >&5
17057 cat >conftest.
$ac_ext <<_ACEOF
17060 cat confdefs.h
>>conftest.
$ac_ext
17061 cat >>conftest.
$ac_ext <<_ACEOF
17062 /* end confdefs.h. */
17063 #include <sys/types.h>
17064 #include <$ac_cv_struct_tm>
17070 static struct tm ac_aggr;
17071 if (sizeof ac_aggr.tm_zone)
17077 rm -f conftest.
$ac_objext
17078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17079 (eval $ac_compile) 2>conftest.er1
17081 grep -v '^ *+' conftest.er1
>conftest.err
17083 cat conftest.err
>&5
17084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17085 (exit $ac_status); } &&
17086 { ac_try
='test -z "$ac_c_werror_flag"
17087 || test ! -s conftest.err'
17088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17089 (eval $ac_try) 2>&5
17091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17092 (exit $ac_status); }; } &&
17093 { ac_try
='test -s conftest.$ac_objext'
17094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17095 (eval $ac_try) 2>&5
17097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17098 (exit $ac_status); }; }; then
17099 ac_cv_member_struct_tm_tm_zone
=yes
17101 echo "$as_me: failed program was:" >&5
17102 sed 's/^/| /' conftest.
$ac_ext >&5
17104 ac_cv_member_struct_tm_tm_zone
=no
17106 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17108 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17110 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
17111 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
17112 if test $ac_cv_member_struct_tm_tm_zone = yes; then
17114 cat >>confdefs.h
<<_ACEOF
17115 #define HAVE_STRUCT_TM_TM_ZONE 1
17121 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
17123 cat >>confdefs.h
<<\_ACEOF
17124 #define HAVE_TM_ZONE 1
17128 echo "$as_me:$LINENO: checking for tzname" >&5
17129 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
17130 if test "${ac_cv_var_tzname+set}" = set; then
17131 echo $ECHO_N "(cached) $ECHO_C" >&6
17133 cat >conftest.
$ac_ext <<_ACEOF
17136 cat confdefs.h
>>conftest.
$ac_ext
17137 cat >>conftest.
$ac_ext <<_ACEOF
17138 /* end confdefs.h. */
17140 #ifndef tzname /* For SGI. */
17141 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
17152 rm -f conftest.
$ac_objext conftest
$ac_exeext
17153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17154 (eval $ac_link) 2>conftest.er1
17156 grep -v '^ *+' conftest.er1
>conftest.err
17158 cat conftest.err
>&5
17159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17160 (exit $ac_status); } &&
17161 { ac_try
='test -z "$ac_c_werror_flag"
17162 || test ! -s conftest.err'
17163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17164 (eval $ac_try) 2>&5
17166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17167 (exit $ac_status); }; } &&
17168 { ac_try
='test -s conftest$ac_exeext'
17169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17170 (eval $ac_try) 2>&5
17172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17173 (exit $ac_status); }; }; then
17174 ac_cv_var_tzname
=yes
17176 echo "$as_me: failed program was:" >&5
17177 sed 's/^/| /' conftest.
$ac_ext >&5
17179 ac_cv_var_tzname
=no
17181 rm -f conftest.err conftest.
$ac_objext \
17182 conftest
$ac_exeext conftest.
$ac_ext
17184 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
17185 echo "${ECHO_T}$ac_cv_var_tzname" >&6
17186 if test $ac_cv_var_tzname = yes; then
17188 cat >>confdefs.h
<<\_ACEOF
17189 #define HAVE_TZNAME 1
17195 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
17196 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
17197 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
17198 echo $ECHO_N "(cached) $ECHO_C" >&6
17200 cat >conftest.
$ac_ext <<_ACEOF
17203 cat confdefs.h
>>conftest.
$ac_ext
17204 cat >>conftest.
$ac_ext <<_ACEOF
17205 /* end confdefs.h. */
17206 $ac_includes_default
17210 static struct stat ac_aggr;
17211 if (ac_aggr.st_rdev)
17217 rm -f conftest.
$ac_objext
17218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17219 (eval $ac_compile) 2>conftest.er1
17221 grep -v '^ *+' conftest.er1
>conftest.err
17223 cat conftest.err
>&5
17224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17225 (exit $ac_status); } &&
17226 { ac_try
='test -z "$ac_c_werror_flag"
17227 || test ! -s conftest.err'
17228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17229 (eval $ac_try) 2>&5
17231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17232 (exit $ac_status); }; } &&
17233 { ac_try
='test -s conftest.$ac_objext'
17234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17235 (eval $ac_try) 2>&5
17237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17238 (exit $ac_status); }; }; then
17239 ac_cv_member_struct_stat_st_rdev
=yes
17241 echo "$as_me: failed program was:" >&5
17242 sed 's/^/| /' conftest.
$ac_ext >&5
17244 cat >conftest.
$ac_ext <<_ACEOF
17247 cat confdefs.h
>>conftest.
$ac_ext
17248 cat >>conftest.
$ac_ext <<_ACEOF
17249 /* end confdefs.h. */
17250 $ac_includes_default
17254 static struct stat ac_aggr;
17255 if (sizeof ac_aggr.st_rdev)
17261 rm -f conftest.
$ac_objext
17262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17263 (eval $ac_compile) 2>conftest.er1
17265 grep -v '^ *+' conftest.er1
>conftest.err
17267 cat conftest.err
>&5
17268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17269 (exit $ac_status); } &&
17270 { ac_try
='test -z "$ac_c_werror_flag"
17271 || test ! -s conftest.err'
17272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17273 (eval $ac_try) 2>&5
17275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17276 (exit $ac_status); }; } &&
17277 { ac_try
='test -s conftest.$ac_objext'
17278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17279 (eval $ac_try) 2>&5
17281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17282 (exit $ac_status); }; }; then
17283 ac_cv_member_struct_stat_st_rdev
=yes
17285 echo "$as_me: failed program was:" >&5
17286 sed 's/^/| /' conftest.
$ac_ext >&5
17288 ac_cv_member_struct_stat_st_rdev
=no
17290 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17292 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17294 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
17295 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
17296 if test $ac_cv_member_struct_stat_st_rdev = yes; then
17298 cat >>confdefs.h
<<_ACEOF
17299 #define HAVE_STRUCT_STAT_ST_RDEV 1
17305 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
17306 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
17307 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
17308 echo $ECHO_N "(cached) $ECHO_C" >&6
17310 cat >conftest.
$ac_ext <<_ACEOF
17313 cat confdefs.h
>>conftest.
$ac_ext
17314 cat >>conftest.
$ac_ext <<_ACEOF
17315 /* end confdefs.h. */
17316 $ac_includes_default
17320 static struct stat ac_aggr;
17321 if (ac_aggr.st_blksize)
17327 rm -f conftest.
$ac_objext
17328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17329 (eval $ac_compile) 2>conftest.er1
17331 grep -v '^ *+' conftest.er1
>conftest.err
17333 cat conftest.err
>&5
17334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17335 (exit $ac_status); } &&
17336 { ac_try
='test -z "$ac_c_werror_flag"
17337 || test ! -s conftest.err'
17338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17339 (eval $ac_try) 2>&5
17341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17342 (exit $ac_status); }; } &&
17343 { ac_try
='test -s conftest.$ac_objext'
17344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17345 (eval $ac_try) 2>&5
17347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17348 (exit $ac_status); }; }; then
17349 ac_cv_member_struct_stat_st_blksize
=yes
17351 echo "$as_me: failed program was:" >&5
17352 sed 's/^/| /' conftest.
$ac_ext >&5
17354 cat >conftest.
$ac_ext <<_ACEOF
17357 cat confdefs.h
>>conftest.
$ac_ext
17358 cat >>conftest.
$ac_ext <<_ACEOF
17359 /* end confdefs.h. */
17360 $ac_includes_default
17364 static struct stat ac_aggr;
17365 if (sizeof ac_aggr.st_blksize)
17371 rm -f conftest.
$ac_objext
17372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17373 (eval $ac_compile) 2>conftest.er1
17375 grep -v '^ *+' conftest.er1
>conftest.err
17377 cat conftest.err
>&5
17378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17379 (exit $ac_status); } &&
17380 { ac_try
='test -z "$ac_c_werror_flag"
17381 || test ! -s conftest.err'
17382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17383 (eval $ac_try) 2>&5
17385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17386 (exit $ac_status); }; } &&
17387 { ac_try
='test -s conftest.$ac_objext'
17388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17389 (eval $ac_try) 2>&5
17391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17392 (exit $ac_status); }; }; then
17393 ac_cv_member_struct_stat_st_blksize
=yes
17395 echo "$as_me: failed program was:" >&5
17396 sed 's/^/| /' conftest.
$ac_ext >&5
17398 ac_cv_member_struct_stat_st_blksize
=no
17400 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17402 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17404 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
17405 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
17406 if test $ac_cv_member_struct_stat_st_blksize = yes; then
17408 cat >>confdefs.h
<<_ACEOF
17409 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
17415 echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
17416 echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6
17417 if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
17418 echo $ECHO_N "(cached) $ECHO_C" >&6
17420 cat >conftest.
$ac_ext <<_ACEOF
17423 cat confdefs.h
>>conftest.
$ac_ext
17424 cat >>conftest.
$ac_ext <<_ACEOF
17425 /* end confdefs.h. */
17426 $ac_includes_default
17430 static struct stat ac_aggr;
17431 if (ac_aggr.st_flags)
17437 rm -f conftest.
$ac_objext
17438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17439 (eval $ac_compile) 2>conftest.er1
17441 grep -v '^ *+' conftest.er1
>conftest.err
17443 cat conftest.err
>&5
17444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17445 (exit $ac_status); } &&
17446 { ac_try
='test -z "$ac_c_werror_flag"
17447 || test ! -s conftest.err'
17448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17449 (eval $ac_try) 2>&5
17451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17452 (exit $ac_status); }; } &&
17453 { ac_try
='test -s conftest.$ac_objext'
17454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17455 (eval $ac_try) 2>&5
17457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17458 (exit $ac_status); }; }; then
17459 ac_cv_member_struct_stat_st_flags
=yes
17461 echo "$as_me: failed program was:" >&5
17462 sed 's/^/| /' conftest.
$ac_ext >&5
17464 cat >conftest.
$ac_ext <<_ACEOF
17467 cat confdefs.h
>>conftest.
$ac_ext
17468 cat >>conftest.
$ac_ext <<_ACEOF
17469 /* end confdefs.h. */
17470 $ac_includes_default
17474 static struct stat ac_aggr;
17475 if (sizeof ac_aggr.st_flags)
17481 rm -f conftest.
$ac_objext
17482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17483 (eval $ac_compile) 2>conftest.er1
17485 grep -v '^ *+' conftest.er1
>conftest.err
17487 cat conftest.err
>&5
17488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17489 (exit $ac_status); } &&
17490 { ac_try
='test -z "$ac_c_werror_flag"
17491 || test ! -s conftest.err'
17492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17493 (eval $ac_try) 2>&5
17495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17496 (exit $ac_status); }; } &&
17497 { ac_try
='test -s conftest.$ac_objext'
17498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17499 (eval $ac_try) 2>&5
17501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17502 (exit $ac_status); }; }; then
17503 ac_cv_member_struct_stat_st_flags
=yes
17505 echo "$as_me: failed program was:" >&5
17506 sed 's/^/| /' conftest.
$ac_ext >&5
17508 ac_cv_member_struct_stat_st_flags
=no
17510 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17512 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17514 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
17515 echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6
17516 if test $ac_cv_member_struct_stat_st_flags = yes; then
17518 cat >>confdefs.h
<<_ACEOF
17519 #define HAVE_STRUCT_STAT_ST_FLAGS 1
17525 echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
17526 echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6
17527 if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
17528 echo $ECHO_N "(cached) $ECHO_C" >&6
17530 cat >conftest.
$ac_ext <<_ACEOF
17533 cat confdefs.h
>>conftest.
$ac_ext
17534 cat >>conftest.
$ac_ext <<_ACEOF
17535 /* end confdefs.h. */
17536 $ac_includes_default
17540 static struct stat ac_aggr;
17541 if (ac_aggr.st_gen)
17547 rm -f conftest.
$ac_objext
17548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17549 (eval $ac_compile) 2>conftest.er1
17551 grep -v '^ *+' conftest.er1
>conftest.err
17553 cat conftest.err
>&5
17554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17555 (exit $ac_status); } &&
17556 { ac_try
='test -z "$ac_c_werror_flag"
17557 || test ! -s conftest.err'
17558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17559 (eval $ac_try) 2>&5
17561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17562 (exit $ac_status); }; } &&
17563 { ac_try
='test -s conftest.$ac_objext'
17564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17565 (eval $ac_try) 2>&5
17567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17568 (exit $ac_status); }; }; then
17569 ac_cv_member_struct_stat_st_gen
=yes
17571 echo "$as_me: failed program was:" >&5
17572 sed 's/^/| /' conftest.
$ac_ext >&5
17574 cat >conftest.
$ac_ext <<_ACEOF
17577 cat confdefs.h
>>conftest.
$ac_ext
17578 cat >>conftest.
$ac_ext <<_ACEOF
17579 /* end confdefs.h. */
17580 $ac_includes_default
17584 static struct stat ac_aggr;
17585 if (sizeof ac_aggr.st_gen)
17591 rm -f conftest.
$ac_objext
17592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17593 (eval $ac_compile) 2>conftest.er1
17595 grep -v '^ *+' conftest.er1
>conftest.err
17597 cat conftest.err
>&5
17598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17599 (exit $ac_status); } &&
17600 { ac_try
='test -z "$ac_c_werror_flag"
17601 || test ! -s conftest.err'
17602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17603 (eval $ac_try) 2>&5
17605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17606 (exit $ac_status); }; } &&
17607 { ac_try
='test -s conftest.$ac_objext'
17608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17609 (eval $ac_try) 2>&5
17611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17612 (exit $ac_status); }; }; then
17613 ac_cv_member_struct_stat_st_gen
=yes
17615 echo "$as_me: failed program was:" >&5
17616 sed 's/^/| /' conftest.
$ac_ext >&5
17618 ac_cv_member_struct_stat_st_gen
=no
17620 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17622 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17624 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
17625 echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6
17626 if test $ac_cv_member_struct_stat_st_gen = yes; then
17628 cat >>confdefs.h
<<_ACEOF
17629 #define HAVE_STRUCT_STAT_ST_GEN 1
17635 echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
17636 echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6
17637 if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
17638 echo $ECHO_N "(cached) $ECHO_C" >&6
17640 cat >conftest.
$ac_ext <<_ACEOF
17643 cat confdefs.h
>>conftest.
$ac_ext
17644 cat >>conftest.
$ac_ext <<_ACEOF
17645 /* end confdefs.h. */
17646 $ac_includes_default
17650 static struct stat ac_aggr;
17651 if (ac_aggr.st_birthtime)
17657 rm -f conftest.
$ac_objext
17658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17659 (eval $ac_compile) 2>conftest.er1
17661 grep -v '^ *+' conftest.er1
>conftest.err
17663 cat conftest.err
>&5
17664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17665 (exit $ac_status); } &&
17666 { ac_try
='test -z "$ac_c_werror_flag"
17667 || test ! -s conftest.err'
17668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17669 (eval $ac_try) 2>&5
17671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17672 (exit $ac_status); }; } &&
17673 { ac_try
='test -s conftest.$ac_objext'
17674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17675 (eval $ac_try) 2>&5
17677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17678 (exit $ac_status); }; }; then
17679 ac_cv_member_struct_stat_st_birthtime
=yes
17681 echo "$as_me: failed program was:" >&5
17682 sed 's/^/| /' conftest.
$ac_ext >&5
17684 cat >conftest.
$ac_ext <<_ACEOF
17687 cat confdefs.h
>>conftest.
$ac_ext
17688 cat >>conftest.
$ac_ext <<_ACEOF
17689 /* end confdefs.h. */
17690 $ac_includes_default
17694 static struct stat ac_aggr;
17695 if (sizeof ac_aggr.st_birthtime)
17701 rm -f conftest.
$ac_objext
17702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17703 (eval $ac_compile) 2>conftest.er1
17705 grep -v '^ *+' conftest.er1
>conftest.err
17707 cat conftest.err
>&5
17708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17709 (exit $ac_status); } &&
17710 { ac_try
='test -z "$ac_c_werror_flag"
17711 || test ! -s conftest.err'
17712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17713 (eval $ac_try) 2>&5
17715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17716 (exit $ac_status); }; } &&
17717 { ac_try
='test -s conftest.$ac_objext'
17718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17719 (eval $ac_try) 2>&5
17721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17722 (exit $ac_status); }; }; then
17723 ac_cv_member_struct_stat_st_birthtime
=yes
17725 echo "$as_me: failed program was:" >&5
17726 sed 's/^/| /' conftest.
$ac_ext >&5
17728 ac_cv_member_struct_stat_st_birthtime
=no
17730 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17732 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17734 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
17735 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6
17736 if test $ac_cv_member_struct_stat_st_birthtime = yes; then
17738 cat >>confdefs.h
<<_ACEOF
17739 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
17745 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
17746 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
17747 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
17748 echo $ECHO_N "(cached) $ECHO_C" >&6
17750 cat >conftest.
$ac_ext <<_ACEOF
17753 cat confdefs.h
>>conftest.
$ac_ext
17754 cat >>conftest.
$ac_ext <<_ACEOF
17755 /* end confdefs.h. */
17756 $ac_includes_default
17760 static struct stat ac_aggr;
17761 if (ac_aggr.st_blocks)
17767 rm -f conftest.
$ac_objext
17768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17769 (eval $ac_compile) 2>conftest.er1
17771 grep -v '^ *+' conftest.er1
>conftest.err
17773 cat conftest.err
>&5
17774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17775 (exit $ac_status); } &&
17776 { ac_try
='test -z "$ac_c_werror_flag"
17777 || test ! -s conftest.err'
17778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17779 (eval $ac_try) 2>&5
17781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17782 (exit $ac_status); }; } &&
17783 { ac_try
='test -s conftest.$ac_objext'
17784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17785 (eval $ac_try) 2>&5
17787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17788 (exit $ac_status); }; }; then
17789 ac_cv_member_struct_stat_st_blocks
=yes
17791 echo "$as_me: failed program was:" >&5
17792 sed 's/^/| /' conftest.
$ac_ext >&5
17794 cat >conftest.
$ac_ext <<_ACEOF
17797 cat confdefs.h
>>conftest.
$ac_ext
17798 cat >>conftest.
$ac_ext <<_ACEOF
17799 /* end confdefs.h. */
17800 $ac_includes_default
17804 static struct stat ac_aggr;
17805 if (sizeof ac_aggr.st_blocks)
17811 rm -f conftest.
$ac_objext
17812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17813 (eval $ac_compile) 2>conftest.er1
17815 grep -v '^ *+' conftest.er1
>conftest.err
17817 cat conftest.err
>&5
17818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17819 (exit $ac_status); } &&
17820 { ac_try
='test -z "$ac_c_werror_flag"
17821 || test ! -s conftest.err'
17822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17823 (eval $ac_try) 2>&5
17825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17826 (exit $ac_status); }; } &&
17827 { ac_try
='test -s conftest.$ac_objext'
17828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17829 (eval $ac_try) 2>&5
17831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17832 (exit $ac_status); }; }; then
17833 ac_cv_member_struct_stat_st_blocks
=yes
17835 echo "$as_me: failed program was:" >&5
17836 sed 's/^/| /' conftest.
$ac_ext >&5
17838 ac_cv_member_struct_stat_st_blocks
=no
17840 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17842 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17844 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
17845 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
17846 if test $ac_cv_member_struct_stat_st_blocks = yes; then
17848 cat >>confdefs.h
<<_ACEOF
17849 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
17853 cat >>confdefs.h
<<\_ACEOF
17854 #define HAVE_ST_BLOCKS 1
17859 "fileblocks.$ac_objext" | \
17860 *" fileblocks.$ac_objext" | \
17861 "fileblocks.$ac_objext "* | \
17862 *" fileblocks.$ac_objext "* ) ;;
17863 *) LIBOBJS
="$LIBOBJS fileblocks.$ac_objext" ;;
17870 echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
17871 echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6
17872 if test "${ac_cv_header_time_altzone+set}" = set; then
17873 echo $ECHO_N "(cached) $ECHO_C" >&6
17875 cat >conftest.
$ac_ext <<_ACEOF
17878 cat confdefs.h
>>conftest.
$ac_ext
17879 cat >>conftest.
$ac_ext <<_ACEOF
17880 /* end confdefs.h. */
17890 rm -f conftest.
$ac_objext
17891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17892 (eval $ac_compile) 2>conftest.er1
17894 grep -v '^ *+' conftest.er1
>conftest.err
17896 cat conftest.err
>&5
17897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17898 (exit $ac_status); } &&
17899 { ac_try
='test -z "$ac_c_werror_flag"
17900 || test ! -s conftest.err'
17901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17902 (eval $ac_try) 2>&5
17904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17905 (exit $ac_status); }; } &&
17906 { ac_try
='test -s conftest.$ac_objext'
17907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17908 (eval $ac_try) 2>&5
17910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17911 (exit $ac_status); }; }; then
17912 ac_cv_header_time_altzone
=yes
17914 echo "$as_me: failed program was:" >&5
17915 sed 's/^/| /' conftest.
$ac_ext >&5
17917 ac_cv_header_time_altzone
=no
17919 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17922 echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
17923 echo "${ECHO_T}$ac_cv_header_time_altzone" >&6
17924 if test $ac_cv_header_time_altzone = yes; then
17926 cat >>confdefs.h
<<\_ACEOF
17927 #define HAVE_ALTZONE 1
17933 echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
17934 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6
17935 cat >conftest.
$ac_ext <<_ACEOF
17938 cat confdefs.h
>>conftest.
$ac_ext
17939 cat >>conftest.
$ac_ext <<_ACEOF
17940 /* end confdefs.h. */
17942 #include <sys/types.h>
17943 #include <sys/select.h>
17944 #include <sys/time.h>
17954 rm -f conftest.
$ac_objext
17955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17956 (eval $ac_compile) 2>conftest.er1
17958 grep -v '^ *+' conftest.er1
>conftest.err
17960 cat conftest.err
>&5
17961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17962 (exit $ac_status); } &&
17963 { ac_try
='test -z "$ac_c_werror_flag"
17964 || test ! -s conftest.err'
17965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17966 (eval $ac_try) 2>&5
17968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17969 (exit $ac_status); }; } &&
17970 { ac_try
='test -s conftest.$ac_objext'
17971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17972 (eval $ac_try) 2>&5
17974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17975 (exit $ac_status); }; }; then
17978 cat >>confdefs.h
<<\_ACEOF
17979 #define SYS_SELECT_WITH_SYS_TIME 1
17985 echo "$as_me: failed program was:" >&5
17986 sed 's/^/| /' conftest.
$ac_ext >&5
17989 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17990 echo "$as_me:$LINENO: result: $was_it_defined" >&5
17991 echo "${ECHO_T}$was_it_defined" >&6
17993 echo "$as_me:$LINENO: checking for addrinfo" >&5
17994 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6
17995 if test "${ac_cv_struct_addrinfo+set}" = set; then
17996 echo $ECHO_N "(cached) $ECHO_C" >&6
17998 cat >conftest.
$ac_ext <<_ACEOF
18001 cat confdefs.h
>>conftest.
$ac_ext
18002 cat >>conftest.
$ac_ext <<_ACEOF
18003 /* end confdefs.h. */
18005 # include <netdb.h>
18014 rm -f conftest.
$ac_objext
18015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18016 (eval $ac_compile) 2>conftest.er1
18018 grep -v '^ *+' conftest.er1
>conftest.err
18020 cat conftest.err
>&5
18021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18022 (exit $ac_status); } &&
18023 { ac_try
='test -z "$ac_c_werror_flag"
18024 || test ! -s conftest.err'
18025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18026 (eval $ac_try) 2>&5
18028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18029 (exit $ac_status); }; } &&
18030 { ac_try
='test -s conftest.$ac_objext'
18031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18032 (eval $ac_try) 2>&5
18034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18035 (exit $ac_status); }; }; then
18036 ac_cv_struct_addrinfo
=yes
18038 echo "$as_me: failed program was:" >&5
18039 sed 's/^/| /' conftest.
$ac_ext >&5
18041 ac_cv_struct_addrinfo
=no
18043 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18046 echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
18047 echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6
18048 if test $ac_cv_struct_addrinfo = yes; then
18050 cat >>confdefs.h
<<\_ACEOF
18051 #define HAVE_ADDRINFO 1
18056 echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
18057 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6
18058 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
18059 echo $ECHO_N "(cached) $ECHO_C" >&6
18061 cat >conftest.
$ac_ext <<_ACEOF
18064 cat confdefs.h
>>conftest.
$ac_ext
18065 cat >>conftest.
$ac_ext <<_ACEOF
18066 /* end confdefs.h. */
18068 # include <sys/types.h>
18069 # include <sys/socket.h>
18073 struct sockaddr_storage s
18078 rm -f conftest.
$ac_objext
18079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18080 (eval $ac_compile) 2>conftest.er1
18082 grep -v '^ *+' conftest.er1
>conftest.err
18084 cat conftest.err
>&5
18085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18086 (exit $ac_status); } &&
18087 { ac_try
='test -z "$ac_c_werror_flag"
18088 || test ! -s conftest.err'
18089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18090 (eval $ac_try) 2>&5
18092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18093 (exit $ac_status); }; } &&
18094 { ac_try
='test -s conftest.$ac_objext'
18095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18096 (eval $ac_try) 2>&5
18098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18099 (exit $ac_status); }; }; then
18100 ac_cv_struct_sockaddr_storage
=yes
18102 echo "$as_me: failed program was:" >&5
18103 sed 's/^/| /' conftest.
$ac_ext >&5
18105 ac_cv_struct_sockaddr_storage
=no
18107 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18110 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
18111 echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6
18112 if test $ac_cv_struct_sockaddr_storage = yes; then
18114 cat >>confdefs.h
<<\_ACEOF
18115 #define HAVE_SOCKADDR_STORAGE 1
18120 # checks for compiler characteristics
18123 echo "$as_me:$LINENO: checking whether char is unsigned" >&5
18124 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
18125 if test "${ac_cv_c_char_unsigned+set}" = set; then
18126 echo $ECHO_N "(cached) $ECHO_C" >&6
18128 cat >conftest.
$ac_ext <<_ACEOF
18131 cat confdefs.h
>>conftest.
$ac_ext
18132 cat >>conftest.
$ac_ext <<_ACEOF
18133 /* end confdefs.h. */
18134 $ac_includes_default
18138 static int test_array [1 - 2 * !(((char) -1) < 0)];
18145 rm -f conftest.
$ac_objext
18146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18147 (eval $ac_compile) 2>conftest.er1
18149 grep -v '^ *+' conftest.er1
>conftest.err
18151 cat conftest.err
>&5
18152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18153 (exit $ac_status); } &&
18154 { ac_try
='test -z "$ac_c_werror_flag"
18155 || test ! -s conftest.err'
18156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18157 (eval $ac_try) 2>&5
18159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18160 (exit $ac_status); }; } &&
18161 { ac_try
='test -s conftest.$ac_objext'
18162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18163 (eval $ac_try) 2>&5
18165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18166 (exit $ac_status); }; }; then
18167 ac_cv_c_char_unsigned
=no
18169 echo "$as_me: failed program was:" >&5
18170 sed 's/^/| /' conftest.
$ac_ext >&5
18172 ac_cv_c_char_unsigned
=yes
18174 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18176 echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
18177 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
18178 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
18179 cat >>confdefs.h
<<\_ACEOF
18180 #define __CHAR_UNSIGNED__ 1
18185 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18186 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
18187 if test "${ac_cv_c_const+set}" = set; then
18188 echo $ECHO_N "(cached) $ECHO_C" >&6
18190 cat >conftest.
$ac_ext <<_ACEOF
18193 cat confdefs.h
>>conftest.
$ac_ext
18194 cat >>conftest.
$ac_ext <<_ACEOF
18195 /* end confdefs.h. */
18200 /* FIXME: Include the comments suggested by Paul. */
18201 #ifndef __cplusplus
18202 /* Ultrix mips cc rejects this. */
18203 typedef int charset[2];
18205 /* SunOS 4.1.1 cc rejects this. */
18206 char const *const *ccp;
18208 /* NEC SVR4.0.2 mips cc rejects this. */
18209 struct point {int x, y;};
18210 static struct point const zero = {0,0};
18211 /* AIX XL C 1.02.0.0 rejects this.
18212 It does not let you subtract one const X* pointer from another in
18213 an arm of an if-expression whose if-part is not a constant
18215 const char *g = "string";
18216 ccp = &g + (g ? g-g : 0);
18217 /* HPUX 7.0 cc rejects these. */
18220 ccp = (char const *const *) p;
18221 { /* SCO 3.2v4 cc rejects this. */
18223 char const *s = 0 ? (char *) 0 : (char const *) 0;
18227 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18228 int x[] = {25, 17};
18229 const int *foo = &x[0];
18232 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18233 typedef const int *iptr;
18237 { /* AIX XL C 1.02.0.0 rejects this saying
18238 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18239 struct s { int j; const int *ap[3]; };
18240 struct s *b; b->j = 5;
18242 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18243 const int foo = 10;
18251 rm -f conftest.
$ac_objext
18252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18253 (eval $ac_compile) 2>conftest.er1
18255 grep -v '^ *+' conftest.er1
>conftest.err
18257 cat conftest.err
>&5
18258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18259 (exit $ac_status); } &&
18260 { ac_try
='test -z "$ac_c_werror_flag"
18261 || test ! -s conftest.err'
18262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18263 (eval $ac_try) 2>&5
18265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18266 (exit $ac_status); }; } &&
18267 { ac_try
='test -s conftest.$ac_objext'
18268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18269 (eval $ac_try) 2>&5
18271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18272 (exit $ac_status); }; }; then
18275 echo "$as_me: failed program was:" >&5
18276 sed 's/^/| /' conftest.
$ac_ext >&5
18280 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18282 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18283 echo "${ECHO_T}$ac_cv_c_const" >&6
18284 if test $ac_cv_c_const = no
; then
18286 cat >>confdefs.h
<<\_ACEOF
18294 echo "$as_me:$LINENO: checking for working volatile" >&5
18295 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
18296 cat >conftest.
$ac_ext <<_ACEOF
18299 cat confdefs.h
>>conftest.
$ac_ext
18300 cat >>conftest.
$ac_ext <<_ACEOF
18301 /* end confdefs.h. */
18306 volatile int x; x = 0;
18311 rm -f conftest.
$ac_objext
18312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18313 (eval $ac_compile) 2>conftest.er1
18315 grep -v '^ *+' conftest.er1
>conftest.err
18317 cat conftest.err
>&5
18318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18319 (exit $ac_status); } &&
18320 { ac_try
='test -z "$ac_c_werror_flag"
18321 || test ! -s conftest.err'
18322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18323 (eval $ac_try) 2>&5
18325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18326 (exit $ac_status); }; } &&
18327 { ac_try
='test -s conftest.$ac_objext'
18328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18329 (eval $ac_try) 2>&5
18331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18332 (exit $ac_status); }; }; then
18335 echo "$as_me: failed program was:" >&5
18336 sed 's/^/| /' conftest.
$ac_ext >&5
18339 cat >>confdefs.h
<<\_ACEOF
18345 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18346 echo "$as_me:$LINENO: result: $works" >&5
18347 echo "${ECHO_T}$works" >&6
18350 echo "$as_me:$LINENO: checking for working signed char" >&5
18351 echo $ECHO_N "checking for working signed char... $ECHO_C" >&6
18352 cat >conftest.
$ac_ext <<_ACEOF
18355 cat confdefs.h
>>conftest.
$ac_ext
18356 cat >>conftest.
$ac_ext <<_ACEOF
18357 /* end confdefs.h. */
18367 rm -f conftest.
$ac_objext
18368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18369 (eval $ac_compile) 2>conftest.er1
18371 grep -v '^ *+' conftest.er1
>conftest.err
18373 cat conftest.err
>&5
18374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18375 (exit $ac_status); } &&
18376 { ac_try
='test -z "$ac_c_werror_flag"
18377 || test ! -s conftest.err'
18378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18379 (eval $ac_try) 2>&5
18381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18382 (exit $ac_status); }; } &&
18383 { ac_try
='test -s conftest.$ac_objext'
18384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18385 (eval $ac_try) 2>&5
18387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18388 (exit $ac_status); }; }; then
18391 echo "$as_me: failed program was:" >&5
18392 sed 's/^/| /' conftest.
$ac_ext >&5
18395 cat >>confdefs.h
<<\_ACEOF
18401 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18402 echo "$as_me:$LINENO: result: $works" >&5
18403 echo "${ECHO_T}$works" >&6
18406 echo "$as_me:$LINENO: checking for prototypes" >&5
18407 echo $ECHO_N "checking for prototypes... $ECHO_C" >&6
18408 cat >conftest.
$ac_ext <<_ACEOF
18411 cat confdefs.h
>>conftest.
$ac_ext
18412 cat >>conftest.
$ac_ext <<_ACEOF
18413 /* end confdefs.h. */
18414 int foo(int x) { return 0; }
18423 rm -f conftest.
$ac_objext
18424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18425 (eval $ac_compile) 2>conftest.er1
18427 grep -v '^ *+' conftest.er1
>conftest.err
18429 cat conftest.err
>&5
18430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18431 (exit $ac_status); } &&
18432 { ac_try
='test -z "$ac_c_werror_flag"
18433 || test ! -s conftest.err'
18434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18435 (eval $ac_try) 2>&5
18437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18438 (exit $ac_status); }; } &&
18439 { ac_try
='test -s conftest.$ac_objext'
18440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18441 (eval $ac_try) 2>&5
18443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18444 (exit $ac_status); }; }; then
18447 cat >>confdefs.h
<<\_ACEOF
18448 #define HAVE_PROTOTYPES 1
18451 have_prototypes
=yes
18454 echo "$as_me: failed program was:" >&5
18455 sed 's/^/| /' conftest.
$ac_ext >&5
18458 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18459 echo "$as_me:$LINENO: result: $have_prototypes" >&5
18460 echo "${ECHO_T}$have_prototypes" >&6
18463 echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
18464 echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6
18465 cat >conftest.
$ac_ext <<_ACEOF
18468 cat confdefs.h
>>conftest.
$ac_ext
18469 cat >>conftest.
$ac_ext <<_ACEOF
18470 /* end confdefs.h. */
18472 #include <stdarg.h>
18473 int foo(int x, ...) {
18477 va_arg(va, char *);
18478 va_arg(va, double);
18485 return foo(10, "", 3.14);
18490 rm -f conftest.
$ac_objext
18491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18492 (eval $ac_compile) 2>conftest.er1
18494 grep -v '^ *+' conftest.er1
>conftest.err
18496 cat conftest.err
>&5
18497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18498 (exit $ac_status); } &&
18499 { ac_try
='test -z "$ac_c_werror_flag"
18500 || test ! -s conftest.err'
18501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18502 (eval $ac_try) 2>&5
18504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18505 (exit $ac_status); }; } &&
18506 { ac_try
='test -s conftest.$ac_objext'
18507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18508 (eval $ac_try) 2>&5
18510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18511 (exit $ac_status); }; }; then
18514 cat >>confdefs.h
<<\_ACEOF
18515 #define HAVE_STDARG_PROTOTYPES 1
18521 echo "$as_me: failed program was:" >&5
18522 sed 's/^/| /' conftest.
$ac_ext >&5
18525 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18526 echo "$as_me:$LINENO: result: $works" >&5
18527 echo "${ECHO_T}$works" >&6
18529 # check for socketpair
18530 echo "$as_me:$LINENO: checking for socketpair" >&5
18531 echo $ECHO_N "checking for socketpair... $ECHO_C" >&6
18532 cat >conftest.
$ac_ext <<_ACEOF
18535 cat confdefs.h
>>conftest.
$ac_ext
18536 cat >>conftest.
$ac_ext <<_ACEOF
18537 /* end confdefs.h. */
18539 #include <sys/types.h>
18540 #include <sys/socket.h>
18550 rm -f conftest.
$ac_objext
18551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18552 (eval $ac_compile) 2>conftest.er1
18554 grep -v '^ *+' conftest.er1
>conftest.err
18556 cat conftest.err
>&5
18557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18558 (exit $ac_status); } &&
18559 { ac_try
='test -z "$ac_c_werror_flag"
18560 || test ! -s conftest.err'
18561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18562 (eval $ac_try) 2>&5
18564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18565 (exit $ac_status); }; } &&
18566 { ac_try
='test -s conftest.$ac_objext'
18567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18568 (eval $ac_try) 2>&5
18570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18571 (exit $ac_status); }; }; then
18573 cat >>confdefs.h
<<\_ACEOF
18574 #define HAVE_SOCKETPAIR 1
18577 echo "$as_me:$LINENO: result: yes" >&5
18578 echo "${ECHO_T}yes" >&6
18580 echo "$as_me: failed program was:" >&5
18581 sed 's/^/| /' conftest.
$ac_ext >&5
18583 echo "$as_me:$LINENO: result: no" >&5
18584 echo "${ECHO_T}no" >&6
18587 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18589 # check if sockaddr has sa_len member
18590 echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
18591 echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6
18592 cat >conftest.
$ac_ext <<_ACEOF
18595 cat confdefs.h
>>conftest.
$ac_ext
18596 cat >>conftest.
$ac_ext <<_ACEOF
18597 /* end confdefs.h. */
18598 #include <sys/types.h>
18599 #include <sys/socket.h>
18609 rm -f conftest.
$ac_objext
18610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18611 (eval $ac_compile) 2>conftest.er1
18613 grep -v '^ *+' conftest.er1
>conftest.err
18615 cat conftest.err
>&5
18616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18617 (exit $ac_status); } &&
18618 { ac_try
='test -z "$ac_c_werror_flag"
18619 || test ! -s conftest.err'
18620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18621 (eval $ac_try) 2>&5
18623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18624 (exit $ac_status); }; } &&
18625 { ac_try
='test -s conftest.$ac_objext'
18626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18627 (eval $ac_try) 2>&5
18629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18630 (exit $ac_status); }; }; then
18631 echo "$as_me:$LINENO: result: yes" >&5
18632 echo "${ECHO_T}yes" >&6
18634 cat >>confdefs.h
<<\_ACEOF
18635 #define HAVE_SOCKADDR_SA_LEN 1
18639 echo "$as_me: failed program was:" >&5
18640 sed 's/^/| /' conftest.
$ac_ext >&5
18642 echo "$as_me:$LINENO: result: no" >&5
18643 echo "${ECHO_T}no" >&6
18645 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18647 va_list_is_array
=no
18648 echo "$as_me:$LINENO: checking whether va_list is an array" >&5
18649 echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6
18650 cat >conftest.
$ac_ext <<_ACEOF
18653 cat confdefs.h
>>conftest.
$ac_ext
18654 cat >>conftest.
$ac_ext <<_ACEOF
18655 /* end confdefs.h. */
18657 #ifdef HAVE_STDARG_PROTOTYPES
18658 #include <stdarg.h>
18660 #include <varargs.h>
18666 va_list list1, list2; list1 = list2;
18671 rm -f conftest.
$ac_objext
18672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18673 (eval $ac_compile) 2>conftest.er1
18675 grep -v '^ *+' conftest.er1
>conftest.err
18677 cat conftest.err
>&5
18678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18679 (exit $ac_status); } &&
18680 { ac_try
='test -z "$ac_c_werror_flag"
18681 || test ! -s conftest.err'
18682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18683 (eval $ac_try) 2>&5
18685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18686 (exit $ac_status); }; } &&
18687 { ac_try
='test -s conftest.$ac_objext'
18688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18689 (eval $ac_try) 2>&5
18691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18692 (exit $ac_status); }; }; then
18695 echo "$as_me: failed program was:" >&5
18696 sed 's/^/| /' conftest.
$ac_ext >&5
18700 cat >>confdefs.h
<<\_ACEOF
18701 #define VA_LIST_IS_ARRAY 1
18704 va_list_is_array
=yes
18707 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18708 echo "$as_me:$LINENO: result: $va_list_is_array" >&5
18709 echo "${ECHO_T}$va_list_is_array" >&6
18711 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
18715 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
18716 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
18717 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
18718 echo $ECHO_N "(cached) $ECHO_C" >&6
18720 cat >conftest.
$ac_ext <<_ACEOF
18723 cat confdefs.h
>>conftest.
$ac_ext
18724 cat >>conftest.
$ac_ext <<_ACEOF
18725 /* end confdefs.h. */
18726 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
18727 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18728 #define gethostbyname_r innocuous_gethostbyname_r
18730 /* System header to define __stub macros and hopefully few prototypes,
18731 which can conflict with char gethostbyname_r (); below.
18732 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18733 <limits.h> exists even on freestanding compilers. */
18736 # include <limits.h>
18738 # include <assert.h>
18741 #undef gethostbyname_r
18743 /* Override any gcc2 internal prototype to avoid an error. */
18748 /* We use char because int might match the return type of a gcc2
18749 builtin and then its argument prototype would still apply. */
18750 char gethostbyname_r ();
18751 /* The GNU C library defines this for functions which it implements
18752 to always fail with ENOSYS. Some functions are actually named
18753 something starting with __ and the normal name is an alias. */
18754 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
18757 char (*f) () = gethostbyname_r;
18766 return f != gethostbyname_r;
18771 rm -f conftest.
$ac_objext conftest
$ac_exeext
18772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18773 (eval $ac_link) 2>conftest.er1
18775 grep -v '^ *+' conftest.er1
>conftest.err
18777 cat conftest.err
>&5
18778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18779 (exit $ac_status); } &&
18780 { ac_try
='test -z "$ac_c_werror_flag"
18781 || test ! -s conftest.err'
18782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18783 (eval $ac_try) 2>&5
18785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18786 (exit $ac_status); }; } &&
18787 { ac_try
='test -s conftest$ac_exeext'
18788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18789 (eval $ac_try) 2>&5
18791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18792 (exit $ac_status); }; }; then
18793 ac_cv_func_gethostbyname_r
=yes
18795 echo "$as_me: failed program was:" >&5
18796 sed 's/^/| /' conftest.
$ac_ext >&5
18798 ac_cv_func_gethostbyname_r
=no
18800 rm -f conftest.err conftest.
$ac_objext \
18801 conftest
$ac_exeext conftest.
$ac_ext
18803 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
18804 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
18805 if test $ac_cv_func_gethostbyname_r = yes; then
18807 cat >>confdefs.h
<<\_ACEOF
18808 #define HAVE_GETHOSTBYNAME_R 1
18811 echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
18812 echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6
18814 CFLAGS
="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
18815 cat >conftest.
$ac_ext <<_ACEOF
18818 cat confdefs.h
>>conftest.
$ac_ext
18819 cat >>conftest.
$ac_ext <<_ACEOF
18820 /* end confdefs.h. */
18822 # include <netdb.h>
18829 struct hostent *he, *res;
18834 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
18840 rm -f conftest.
$ac_objext
18841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18842 (eval $ac_compile) 2>conftest.er1
18844 grep -v '^ *+' conftest.er1
>conftest.err
18846 cat conftest.err
>&5
18847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18848 (exit $ac_status); } &&
18849 { ac_try
='test -z "$ac_c_werror_flag"
18850 || test ! -s conftest.err'
18851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18852 (eval $ac_try) 2>&5
18854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18855 (exit $ac_status); }; } &&
18856 { ac_try
='test -s conftest.$ac_objext'
18857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18858 (eval $ac_try) 2>&5
18860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18861 (exit $ac_status); }; }; then
18863 cat >>confdefs.h
<<\_ACEOF
18864 #define HAVE_GETHOSTBYNAME_R 1
18868 cat >>confdefs.h
<<\_ACEOF
18869 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
18872 echo "$as_me:$LINENO: result: yes" >&5
18873 echo "${ECHO_T}yes" >&6
18876 echo "$as_me: failed program was:" >&5
18877 sed 's/^/| /' conftest.
$ac_ext >&5
18880 echo "$as_me:$LINENO: result: no" >&5
18881 echo "${ECHO_T}no" >&6
18882 echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
18883 echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6
18884 cat >conftest.
$ac_ext <<_ACEOF
18887 cat confdefs.h
>>conftest.
$ac_ext
18888 cat >>conftest.
$ac_ext <<_ACEOF
18889 /* end confdefs.h. */
18891 # include <netdb.h>
18898 struct hostent *he;
18903 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
18909 rm -f conftest.
$ac_objext
18910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18911 (eval $ac_compile) 2>conftest.er1
18913 grep -v '^ *+' conftest.er1
>conftest.err
18915 cat conftest.err
>&5
18916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18917 (exit $ac_status); } &&
18918 { ac_try
='test -z "$ac_c_werror_flag"
18919 || test ! -s conftest.err'
18920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18921 (eval $ac_try) 2>&5
18923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18924 (exit $ac_status); }; } &&
18925 { ac_try
='test -s conftest.$ac_objext'
18926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18927 (eval $ac_try) 2>&5
18929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18930 (exit $ac_status); }; }; then
18932 cat >>confdefs.h
<<\_ACEOF
18933 #define HAVE_GETHOSTBYNAME_R 1
18937 cat >>confdefs.h
<<\_ACEOF
18938 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
18941 echo "$as_me:$LINENO: result: yes" >&5
18942 echo "${ECHO_T}yes" >&6
18945 echo "$as_me: failed program was:" >&5
18946 sed 's/^/| /' conftest.
$ac_ext >&5
18949 echo "$as_me:$LINENO: result: no" >&5
18950 echo "${ECHO_T}no" >&6
18951 echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
18952 echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6
18953 cat >conftest.
$ac_ext <<_ACEOF
18956 cat confdefs.h
>>conftest.
$ac_ext
18957 cat >>conftest.
$ac_ext <<_ACEOF
18958 /* end confdefs.h. */
18960 # include <netdb.h>
18967 struct hostent *he;
18968 struct hostent_data data;
18970 (void) gethostbyname_r(name, he, &data);
18976 rm -f conftest.
$ac_objext
18977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18978 (eval $ac_compile) 2>conftest.er1
18980 grep -v '^ *+' conftest.er1
>conftest.err
18982 cat conftest.err
>&5
18983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18984 (exit $ac_status); } &&
18985 { ac_try
='test -z "$ac_c_werror_flag"
18986 || test ! -s conftest.err'
18987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18988 (eval $ac_try) 2>&5
18990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18991 (exit $ac_status); }; } &&
18992 { ac_try
='test -s conftest.$ac_objext'
18993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18994 (eval $ac_try) 2>&5
18996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18997 (exit $ac_status); }; }; then
18999 cat >>confdefs.h
<<\_ACEOF
19000 #define HAVE_GETHOSTBYNAME_R 1
19004 cat >>confdefs.h
<<\_ACEOF
19005 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
19008 echo "$as_me:$LINENO: result: yes" >&5
19009 echo "${ECHO_T}yes" >&6
19012 echo "$as_me: failed program was:" >&5
19013 sed 's/^/| /' conftest.
$ac_ext >&5
19016 echo "$as_me:$LINENO: result: no" >&5
19017 echo "${ECHO_T}no" >&6
19020 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19023 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19026 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19032 for ac_func
in gethostbyname
19034 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19035 echo "$as_me:$LINENO: checking for $ac_func" >&5
19036 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19037 if eval "test \"\${$as_ac_var+set}\" = set"; then
19038 echo $ECHO_N "(cached) $ECHO_C" >&6
19040 cat >conftest.
$ac_ext <<_ACEOF
19043 cat confdefs.h
>>conftest.
$ac_ext
19044 cat >>conftest.
$ac_ext <<_ACEOF
19045 /* end confdefs.h. */
19046 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19047 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19048 #define $ac_func innocuous_$ac_func
19050 /* System header to define __stub macros and hopefully few prototypes,
19051 which can conflict with char $ac_func (); below.
19052 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19053 <limits.h> exists even on freestanding compilers. */
19056 # include <limits.h>
19058 # include <assert.h>
19063 /* Override any gcc2 internal prototype to avoid an error. */
19068 /* We use char because int might match the return type of a gcc2
19069 builtin and then its argument prototype would still apply. */
19071 /* The GNU C library defines this for functions which it implements
19072 to always fail with ENOSYS. Some functions are actually named
19073 something starting with __ and the normal name is an alias. */
19074 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19077 char (*f) () = $ac_func;
19086 return f != $ac_func;
19091 rm -f conftest.
$ac_objext conftest
$ac_exeext
19092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19093 (eval $ac_link) 2>conftest.er1
19095 grep -v '^ *+' conftest.er1
>conftest.err
19097 cat conftest.err
>&5
19098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19099 (exit $ac_status); } &&
19100 { ac_try
='test -z "$ac_c_werror_flag"
19101 || test ! -s conftest.err'
19102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19103 (eval $ac_try) 2>&5
19105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19106 (exit $ac_status); }; } &&
19107 { ac_try
='test -s conftest$ac_exeext'
19108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19109 (eval $ac_try) 2>&5
19111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19112 (exit $ac_status); }; }; then
19113 eval "$as_ac_var=yes"
19115 echo "$as_me: failed program was:" >&5
19116 sed 's/^/| /' conftest.
$ac_ext >&5
19118 eval "$as_ac_var=no"
19120 rm -f conftest.err conftest.
$ac_objext \
19121 conftest
$ac_exeext conftest.
$ac_ext
19123 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19124 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19125 if test `eval echo '${'$as_ac_var'}'` = yes; then
19126 cat >>confdefs.h
<<_ACEOF
19127 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19142 # checks for system services
19145 # Linux requires this for correct f.p. operations
19146 echo "$as_me:$LINENO: checking for __fpu_control" >&5
19147 echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6
19148 if test "${ac_cv_func___fpu_control+set}" = set; then
19149 echo $ECHO_N "(cached) $ECHO_C" >&6
19151 cat >conftest.
$ac_ext <<_ACEOF
19154 cat confdefs.h
>>conftest.
$ac_ext
19155 cat >>conftest.
$ac_ext <<_ACEOF
19156 /* end confdefs.h. */
19157 /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control.
19158 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19159 #define __fpu_control innocuous___fpu_control
19161 /* System header to define __stub macros and hopefully few prototypes,
19162 which can conflict with char __fpu_control (); below.
19163 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19164 <limits.h> exists even on freestanding compilers. */
19167 # include <limits.h>
19169 # include <assert.h>
19172 #undef __fpu_control
19174 /* Override any gcc2 internal prototype to avoid an error. */
19179 /* We use char because int might match the return type of a gcc2
19180 builtin and then its argument prototype would still apply. */
19181 char __fpu_control ();
19182 /* The GNU C library defines this for functions which it implements
19183 to always fail with ENOSYS. Some functions are actually named
19184 something starting with __ and the normal name is an alias. */
19185 #if defined (__stub___fpu_control) || defined (__stub_____fpu_control)
19188 char (*f) () = __fpu_control;
19197 return f != __fpu_control;
19202 rm -f conftest.
$ac_objext conftest
$ac_exeext
19203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19204 (eval $ac_link) 2>conftest.er1
19206 grep -v '^ *+' conftest.er1
>conftest.err
19208 cat conftest.err
>&5
19209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19210 (exit $ac_status); } &&
19211 { ac_try
='test -z "$ac_c_werror_flag"
19212 || test ! -s conftest.err'
19213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19214 (eval $ac_try) 2>&5
19216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19217 (exit $ac_status); }; } &&
19218 { ac_try
='test -s conftest$ac_exeext'
19219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19220 (eval $ac_try) 2>&5
19222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19223 (exit $ac_status); }; }; then
19224 ac_cv_func___fpu_control
=yes
19226 echo "$as_me: failed program was:" >&5
19227 sed 's/^/| /' conftest.
$ac_ext >&5
19229 ac_cv_func___fpu_control
=no
19231 rm -f conftest.err conftest.
$ac_objext \
19232 conftest
$ac_exeext conftest.
$ac_ext
19234 echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
19235 echo "${ECHO_T}$ac_cv_func___fpu_control" >&6
19236 if test $ac_cv_func___fpu_control = yes; then
19240 echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
19241 echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6
19242 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
19243 echo $ECHO_N "(cached) $ECHO_C" >&6
19245 ac_check_lib_save_LIBS
=$LIBS
19246 LIBS
="-lieee $LIBS"
19247 cat >conftest.
$ac_ext <<_ACEOF
19250 cat confdefs.h
>>conftest.
$ac_ext
19251 cat >>conftest.
$ac_ext <<_ACEOF
19252 /* end confdefs.h. */
19254 /* Override any gcc2 internal prototype to avoid an error. */
19258 /* We use char because int might match the return type of a gcc2
19259 builtin and then its argument prototype would still apply. */
19260 char __fpu_control ();
19269 rm -f conftest.
$ac_objext conftest
$ac_exeext
19270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19271 (eval $ac_link) 2>conftest.er1
19273 grep -v '^ *+' conftest.er1
>conftest.err
19275 cat conftest.err
>&5
19276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19277 (exit $ac_status); } &&
19278 { ac_try
='test -z "$ac_c_werror_flag"
19279 || test ! -s conftest.err'
19280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19281 (eval $ac_try) 2>&5
19283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19284 (exit $ac_status); }; } &&
19285 { ac_try
='test -s conftest$ac_exeext'
19286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19287 (eval $ac_try) 2>&5
19289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19290 (exit $ac_status); }; }; then
19291 ac_cv_lib_ieee___fpu_control
=yes
19293 echo "$as_me: failed program was:" >&5
19294 sed 's/^/| /' conftest.
$ac_ext >&5
19296 ac_cv_lib_ieee___fpu_control
=no
19298 rm -f conftest.err conftest.
$ac_objext \
19299 conftest
$ac_exeext conftest.
$ac_ext
19300 LIBS
=$ac_check_lib_save_LIBS
19302 echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
19303 echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6
19304 if test $ac_cv_lib_ieee___fpu_control = yes; then
19305 cat >>confdefs.h
<<_ACEOF
19306 #define HAVE_LIBIEEE 1
19309 LIBS
="-lieee $LIBS"
19317 # Check for --with-fpectl
19318 echo "$as_me:$LINENO: checking for --with-fpectl" >&5
19319 echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6
19321 # Check whether --with-fpectl or --without-fpectl was given.
19322 if test "${with_fpectl+set}" = set; then
19323 withval
="$with_fpectl"
19325 if test "$withval" != no
19328 cat >>confdefs.h
<<\_ACEOF
19329 #define WANT_SIGFPE_HANDLER 1
19332 echo "$as_me:$LINENO: result: yes" >&5
19333 echo "${ECHO_T}yes" >&6
19334 else echo "$as_me:$LINENO: result: no" >&5
19335 echo "${ECHO_T}no" >&6
19338 echo "$as_me:$LINENO: result: no" >&5
19339 echo "${ECHO_T}no" >&6
19342 # check for --with-libm=...
19344 case $ac_sys_system in
19349 echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
19350 echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6
19352 # Check whether --with-libm or --without-libm was given.
19353 if test "${with_libm+set}" = set; then
19354 withval
="$with_libm"
19356 if test "$withval" = no
19358 echo "$as_me:$LINENO: result: force LIBM empty" >&5
19359 echo "${ECHO_T}force LIBM empty" >&6
19360 elif test "$withval" != yes
19362 echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
19363 echo "${ECHO_T}set LIBM=\"$withval\"" >&6
19364 else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
19365 echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
19366 { (exit 1); exit 1; }; }
19369 echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
19370 echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6
19373 # check for --with-libc=...
19375 echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
19376 echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6
19378 # Check whether --with-libc or --without-libc was given.
19379 if test "${with_libc+set}" = set; then
19380 withval
="$with_libc"
19382 if test "$withval" = no
19384 echo "$as_me:$LINENO: result: force LIBC empty" >&5
19385 echo "${ECHO_T}force LIBC empty" >&6
19386 elif test "$withval" != yes
19388 echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
19389 echo "${ECHO_T}set LIBC=\"$withval\"" >&6
19390 else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
19391 echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
19392 { (exit 1); exit 1; }; }
19395 echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
19396 echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6
19399 # check for hypot() in math library
19403 for ac_func
in hypot
19405 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19406 echo "$as_me:$LINENO: checking for $ac_func" >&5
19407 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19408 if eval "test \"\${$as_ac_var+set}\" = set"; then
19409 echo $ECHO_N "(cached) $ECHO_C" >&6
19411 cat >conftest.
$ac_ext <<_ACEOF
19414 cat confdefs.h
>>conftest.
$ac_ext
19415 cat >>conftest.
$ac_ext <<_ACEOF
19416 /* end confdefs.h. */
19417 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19418 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19419 #define $ac_func innocuous_$ac_func
19421 /* System header to define __stub macros and hopefully few prototypes,
19422 which can conflict with char $ac_func (); below.
19423 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19424 <limits.h> exists even on freestanding compilers. */
19427 # include <limits.h>
19429 # include <assert.h>
19434 /* Override any gcc2 internal prototype to avoid an error. */
19439 /* We use char because int might match the return type of a gcc2
19440 builtin and then its argument prototype would still apply. */
19442 /* The GNU C library defines this for functions which it implements
19443 to always fail with ENOSYS. Some functions are actually named
19444 something starting with __ and the normal name is an alias. */
19445 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19448 char (*f) () = $ac_func;
19457 return f != $ac_func;
19462 rm -f conftest.
$ac_objext conftest
$ac_exeext
19463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19464 (eval $ac_link) 2>conftest.er1
19466 grep -v '^ *+' conftest.er1
>conftest.err
19468 cat conftest.err
>&5
19469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19470 (exit $ac_status); } &&
19471 { ac_try
='test -z "$ac_c_werror_flag"
19472 || test ! -s conftest.err'
19473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19474 (eval $ac_try) 2>&5
19476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19477 (exit $ac_status); }; } &&
19478 { ac_try
='test -s conftest$ac_exeext'
19479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19480 (eval $ac_try) 2>&5
19482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19483 (exit $ac_status); }; }; then
19484 eval "$as_ac_var=yes"
19486 echo "$as_me: failed program was:" >&5
19487 sed 's/^/| /' conftest.
$ac_ext >&5
19489 eval "$as_ac_var=no"
19491 rm -f conftest.err conftest.
$ac_objext \
19492 conftest
$ac_exeext conftest.
$ac_ext
19494 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19495 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19496 if test `eval echo '${'$as_ac_var'}'` = yes; then
19497 cat >>confdefs.h
<<_ACEOF
19498 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19503 "$ac_func.$ac_objext" | \
19504 *" $ac_func.$ac_objext" | \
19505 "$ac_func.$ac_objext "* | \
19506 *" $ac_func.$ac_objext "* ) ;;
19507 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext" ;;
19516 # check for wchar.h
19517 if test "${ac_cv_header_wchar_h+set}" = set; then
19518 echo "$as_me:$LINENO: checking for wchar.h" >&5
19519 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
19520 if test "${ac_cv_header_wchar_h+set}" = set; then
19521 echo $ECHO_N "(cached) $ECHO_C" >&6
19523 echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
19524 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6
19526 # Is the header compilable?
19527 echo "$as_me:$LINENO: checking wchar.h usability" >&5
19528 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6
19529 cat >conftest.
$ac_ext <<_ACEOF
19532 cat confdefs.h
>>conftest.
$ac_ext
19533 cat >>conftest.
$ac_ext <<_ACEOF
19534 /* end confdefs.h. */
19535 $ac_includes_default
19538 rm -f conftest.
$ac_objext
19539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19540 (eval $ac_compile) 2>conftest.er1
19542 grep -v '^ *+' conftest.er1
>conftest.err
19544 cat conftest.err
>&5
19545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19546 (exit $ac_status); } &&
19547 { ac_try
='test -z "$ac_c_werror_flag"
19548 || test ! -s conftest.err'
19549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19550 (eval $ac_try) 2>&5
19552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19553 (exit $ac_status); }; } &&
19554 { ac_try
='test -s conftest.$ac_objext'
19555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19556 (eval $ac_try) 2>&5
19558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19559 (exit $ac_status); }; }; then
19560 ac_header_compiler
=yes
19562 echo "$as_me: failed program was:" >&5
19563 sed 's/^/| /' conftest.
$ac_ext >&5
19565 ac_header_compiler
=no
19567 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19568 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19569 echo "${ECHO_T}$ac_header_compiler" >&6
19571 # Is the header present?
19572 echo "$as_me:$LINENO: checking wchar.h presence" >&5
19573 echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6
19574 cat >conftest.
$ac_ext <<_ACEOF
19577 cat confdefs.h
>>conftest.
$ac_ext
19578 cat >>conftest.
$ac_ext <<_ACEOF
19579 /* end confdefs.h. */
19582 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19583 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19585 grep -v '^ *+' conftest.er1
>conftest.err
19587 cat conftest.err
>&5
19588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19589 (exit $ac_status); } >/dev
/null
; then
19590 if test -s conftest.err
; then
19591 ac_cpp_err
=$ac_c_preproc_warn_flag
19592 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19599 if test -z "$ac_cpp_err"; then
19600 ac_header_preproc
=yes
19602 echo "$as_me: failed program was:" >&5
19603 sed 's/^/| /' conftest.
$ac_ext >&5
19605 ac_header_preproc
=no
19607 rm -f conftest.err conftest.
$ac_ext
19608 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19609 echo "${ECHO_T}$ac_header_preproc" >&6
19611 # So? What about this header?
19612 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19614 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
19615 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19616 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
19617 echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
19618 ac_header_preproc
=yes
19621 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
19622 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
19623 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
19624 echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
19625 { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
19626 echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
19627 { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5
19628 echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;}
19629 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
19630 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
19631 { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
19632 echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
19635 ## ------------------------------------------------ ##
19636 ## Report this to http://www.python.org/python-bugs ##
19637 ## ------------------------------------------------ ##
19640 sed "s/^/$as_me: WARNING: /" >&2
19643 echo "$as_me:$LINENO: checking for wchar.h" >&5
19644 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
19645 if test "${ac_cv_header_wchar_h+set}" = set; then
19646 echo $ECHO_N "(cached) $ECHO_C" >&6
19648 ac_cv_header_wchar_h
=$ac_header_preproc
19650 echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
19651 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6
19654 if test $ac_cv_header_wchar_h = yes; then
19657 cat >>confdefs.h
<<\_ACEOF
19658 #define HAVE_WCHAR_H 1
19670 # determine wchar_t size
19671 if test "$wchar_h" = yes
19673 echo "$as_me:$LINENO: checking for wchar_t" >&5
19674 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
19675 if test "${ac_cv_type_wchar_t+set}" = set; then
19676 echo $ECHO_N "(cached) $ECHO_C" >&6
19678 cat >conftest.
$ac_ext <<_ACEOF
19681 cat confdefs.h
>>conftest.
$ac_ext
19682 cat >>conftest.
$ac_ext <<_ACEOF
19683 /* end confdefs.h. */
19691 if (sizeof (wchar_t))
19697 rm -f conftest.
$ac_objext
19698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19699 (eval $ac_compile) 2>conftest.er1
19701 grep -v '^ *+' conftest.er1
>conftest.err
19703 cat conftest.err
>&5
19704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19705 (exit $ac_status); } &&
19706 { ac_try
='test -z "$ac_c_werror_flag"
19707 || test ! -s conftest.err'
19708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19709 (eval $ac_try) 2>&5
19711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19712 (exit $ac_status); }; } &&
19713 { ac_try
='test -s conftest.$ac_objext'
19714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19715 (eval $ac_try) 2>&5
19717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19718 (exit $ac_status); }; }; then
19719 ac_cv_type_wchar_t
=yes
19721 echo "$as_me: failed program was:" >&5
19722 sed 's/^/| /' conftest.
$ac_ext >&5
19724 ac_cv_type_wchar_t
=no
19726 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19728 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
19729 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
19731 echo "$as_me:$LINENO: checking size of wchar_t" >&5
19732 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
19733 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
19734 echo $ECHO_N "(cached) $ECHO_C" >&6
19736 if test "$ac_cv_type_wchar_t" = yes; then
19737 # The cast to unsigned long works around a bug in the HP C Compiler
19738 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19739 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19740 # This bug is HP SR number 8606223364.
19741 if test "$cross_compiling" = yes; then
19742 # Depending upon the size, compute the lo and hi bounds.
19743 cat >conftest.
$ac_ext <<_ACEOF
19746 cat confdefs.h
>>conftest.
$ac_ext
19747 cat >>conftest.
$ac_ext <<_ACEOF
19748 /* end confdefs.h. */
19754 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
19761 rm -f conftest.
$ac_objext
19762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19763 (eval $ac_compile) 2>conftest.er1
19765 grep -v '^ *+' conftest.er1
>conftest.err
19767 cat conftest.err
>&5
19768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19769 (exit $ac_status); } &&
19770 { ac_try
='test -z "$ac_c_werror_flag"
19771 || test ! -s conftest.err'
19772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19773 (eval $ac_try) 2>&5
19775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19776 (exit $ac_status); }; } &&
19777 { ac_try
='test -s conftest.$ac_objext'
19778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19779 (eval $ac_try) 2>&5
19781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19782 (exit $ac_status); }; }; then
19785 cat >conftest.
$ac_ext <<_ACEOF
19788 cat confdefs.h
>>conftest.
$ac_ext
19789 cat >>conftest.
$ac_ext <<_ACEOF
19790 /* end confdefs.h. */
19796 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19803 rm -f conftest.
$ac_objext
19804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19805 (eval $ac_compile) 2>conftest.er1
19807 grep -v '^ *+' conftest.er1
>conftest.err
19809 cat conftest.err
>&5
19810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19811 (exit $ac_status); } &&
19812 { ac_try
='test -z "$ac_c_werror_flag"
19813 || test ! -s conftest.err'
19814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19815 (eval $ac_try) 2>&5
19817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19818 (exit $ac_status); }; } &&
19819 { ac_try
='test -s conftest.$ac_objext'
19820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19821 (eval $ac_try) 2>&5
19823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19824 (exit $ac_status); }; }; then
19825 ac_hi
=$ac_mid; break
19827 echo "$as_me: failed program was:" >&5
19828 sed 's/^/| /' conftest.
$ac_ext >&5
19830 ac_lo
=`expr $ac_mid + 1`
19831 if test $ac_lo -le $ac_mid; then
19835 ac_mid
=`expr 2 '*' $ac_mid + 1`
19837 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19840 echo "$as_me: failed program was:" >&5
19841 sed 's/^/| /' conftest.
$ac_ext >&5
19843 cat >conftest.
$ac_ext <<_ACEOF
19846 cat confdefs.h
>>conftest.
$ac_ext
19847 cat >>conftest.
$ac_ext <<_ACEOF
19848 /* end confdefs.h. */
19854 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
19861 rm -f conftest.
$ac_objext
19862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19863 (eval $ac_compile) 2>conftest.er1
19865 grep -v '^ *+' conftest.er1
>conftest.err
19867 cat conftest.err
>&5
19868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19869 (exit $ac_status); } &&
19870 { ac_try
='test -z "$ac_c_werror_flag"
19871 || test ! -s conftest.err'
19872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19873 (eval $ac_try) 2>&5
19875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19876 (exit $ac_status); }; } &&
19877 { ac_try
='test -s conftest.$ac_objext'
19878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19879 (eval $ac_try) 2>&5
19881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19882 (exit $ac_status); }; }; then
19885 cat >conftest.
$ac_ext <<_ACEOF
19888 cat confdefs.h
>>conftest.
$ac_ext
19889 cat >>conftest.
$ac_ext <<_ACEOF
19890 /* end confdefs.h. */
19896 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
19903 rm -f conftest.
$ac_objext
19904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19905 (eval $ac_compile) 2>conftest.er1
19907 grep -v '^ *+' conftest.er1
>conftest.err
19909 cat conftest.err
>&5
19910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19911 (exit $ac_status); } &&
19912 { ac_try
='test -z "$ac_c_werror_flag"
19913 || test ! -s conftest.err'
19914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19915 (eval $ac_try) 2>&5
19917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19918 (exit $ac_status); }; } &&
19919 { ac_try
='test -s conftest.$ac_objext'
19920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19921 (eval $ac_try) 2>&5
19923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19924 (exit $ac_status); }; }; then
19925 ac_lo
=$ac_mid; break
19927 echo "$as_me: failed program was:" >&5
19928 sed 's/^/| /' conftest.
$ac_ext >&5
19930 ac_hi
=`expr '(' $ac_mid ')' - 1`
19931 if test $ac_mid -le $ac_hi; then
19935 ac_mid
=`expr 2 '*' $ac_mid`
19937 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19940 echo "$as_me: failed program was:" >&5
19941 sed 's/^/| /' conftest.
$ac_ext >&5
19945 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19947 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19948 # Binary search between lo and hi bounds.
19949 while test "x$ac_lo" != "x$ac_hi"; do
19950 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19951 cat >conftest.
$ac_ext <<_ACEOF
19954 cat confdefs.h
>>conftest.
$ac_ext
19955 cat >>conftest.
$ac_ext <<_ACEOF
19956 /* end confdefs.h. */
19962 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19969 rm -f conftest.
$ac_objext
19970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19971 (eval $ac_compile) 2>conftest.er1
19973 grep -v '^ *+' conftest.er1
>conftest.err
19975 cat conftest.err
>&5
19976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19977 (exit $ac_status); } &&
19978 { ac_try
='test -z "$ac_c_werror_flag"
19979 || test ! -s conftest.err'
19980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19981 (eval $ac_try) 2>&5
19983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19984 (exit $ac_status); }; } &&
19985 { ac_try
='test -s conftest.$ac_objext'
19986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19987 (eval $ac_try) 2>&5
19989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19990 (exit $ac_status); }; }; then
19993 echo "$as_me: failed program was:" >&5
19994 sed 's/^/| /' conftest.
$ac_ext >&5
19996 ac_lo
=`expr '(' $ac_mid ')' + 1`
19998 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20001 ?
*) ac_cv_sizeof_wchar_t
=$ac_lo;;
20002 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
20003 See \`config.log' for more details." >&5
20004 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
20005 See \`config.log' for more details." >&2;}
20006 { (exit 1); exit 1; }; } ;;
20009 if test "$cross_compiling" = yes; then
20010 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20011 See \`config.log' for more details." >&5
20012 echo "$as_me: error: cannot run test program while cross compiling
20013 See \`config.log' for more details." >&2;}
20014 { (exit 1); exit 1; }; }
20016 cat >conftest.
$ac_ext <<_ACEOF
20019 cat confdefs.h
>>conftest.
$ac_ext
20020 cat >>conftest.
$ac_ext <<_ACEOF
20021 /* end confdefs.h. */
20024 long longval () { return (long) (sizeof (wchar_t)); }
20025 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
20027 #include <stdlib.h>
20032 FILE *f = fopen ("conftest.val", "w");
20035 if (((long) (sizeof (wchar_t))) < 0)
20037 long i = longval ();
20038 if (i != ((long) (sizeof (wchar_t))))
20040 fprintf (f, "%ld\n", i);
20044 unsigned long i = ulongval ();
20045 if (i != ((long) (sizeof (wchar_t))))
20047 fprintf (f, "%lu\n", i);
20049 exit (ferror (f) || fclose (f) != 0);
20055 rm -f conftest
$ac_exeext
20056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20057 (eval $ac_link) 2>&5
20059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20060 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20062 (eval $ac_try) 2>&5
20064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20065 (exit $ac_status); }; }; then
20066 ac_cv_sizeof_wchar_t
=`cat conftest.val`
20068 echo "$as_me: program exited with status $ac_status" >&5
20069 echo "$as_me: failed program was:" >&5
20070 sed 's/^/| /' conftest.
$ac_ext >&5
20072 ( exit $ac_status )
20073 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
20074 See \`config.log' for more details." >&5
20075 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
20076 See \`config.log' for more details." >&2;}
20077 { (exit 1); exit 1; }; }
20079 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20084 ac_cv_sizeof_wchar_t
=0
20087 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
20088 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
20089 cat >>confdefs.h
<<_ACEOF
20090 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
20096 echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5
20097 echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6
20099 cat >conftest.
$ac_ext <<_ACEOF
20102 cat confdefs.h
>>conftest.
$ac_ext
20103 cat >>conftest.
$ac_ext <<_ACEOF
20104 /* end confdefs.h. */
20107 #if TCL_UTF_MAX != 6
20108 # error "NOT UCS4_TCL"
20118 rm -f conftest.
$ac_objext
20119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20120 (eval $ac_compile) 2>conftest.er1
20122 grep -v '^ *+' conftest.er1
>conftest.err
20124 cat conftest.err
>&5
20125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20126 (exit $ac_status); } &&
20127 { ac_try
='test -z "$ac_c_werror_flag"
20128 || test ! -s conftest.err'
20129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20130 (eval $ac_try) 2>&5
20132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20133 (exit $ac_status); }; } &&
20134 { ac_try
='test -s conftest.$ac_objext'
20135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20136 (eval $ac_try) 2>&5
20138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20139 (exit $ac_status); }; }; then
20142 cat >>confdefs.h
<<\_ACEOF
20143 #define HAVE_UCS4_TCL 1
20149 echo "$as_me: failed program was:" >&5
20150 sed 's/^/| /' conftest.
$ac_ext >&5
20153 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20154 echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5
20155 echo "${ECHO_T}$have_ucs4_tcl" >&6
20157 # check whether wchar_t is signed or not
20158 if test "$wchar_h" = yes
20160 # check whether wchar_t is signed or not
20161 echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5
20162 echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6
20163 if test "${ac_cv_wchar_t_signed+set}" = set; then
20164 echo $ECHO_N "(cached) $ECHO_C" >&6
20167 if test "$cross_compiling" = yes; then
20168 ac_cv_wchar_t_signed
=yes
20170 cat >conftest.
$ac_ext <<_ACEOF
20173 cat confdefs.h
>>conftest.
$ac_ext
20174 cat >>conftest.
$ac_ext <<_ACEOF
20175 /* end confdefs.h. */
20180 /* Success: exit code 0 */
20181 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
20185 rm -f conftest
$ac_exeext
20186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20187 (eval $ac_link) 2>&5
20189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20190 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20192 (eval $ac_try) 2>&5
20194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20195 (exit $ac_status); }; }; then
20196 ac_cv_wchar_t_signed
=yes
20198 echo "$as_me: program exited with status $ac_status" >&5
20199 echo "$as_me: failed program was:" >&5
20200 sed 's/^/| /' conftest.
$ac_ext >&5
20202 ( exit $ac_status )
20203 ac_cv_wchar_t_signed
=no
20205 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20209 echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5
20210 echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6
20213 echo "$as_me:$LINENO: checking what type to use for unicode" >&5
20214 echo $ECHO_N "checking what type to use for unicode... $ECHO_C" >&6
20215 # Check whether --enable-unicode or --disable-unicode was given.
20216 if test "${enable_unicode+set}" = set; then
20217 enableval
="$enable_unicode"
20223 if test $enable_unicode = yes
20225 # Without any arguments, Py_UNICODE defaults to two-byte mode
20226 case "$have_ucs4_tcl" in
20227 yes) enable_unicode
="ucs4"
20229 *) enable_unicode
="ucs2"
20236 case "$enable_unicode" in
20237 ucs2
) unicode_size
="2"
20238 cat >>confdefs.h
<<\_ACEOF
20239 #define Py_UNICODE_SIZE 2
20243 ucs4
) unicode_size
="4"
20244 cat >>confdefs.h
<<\_ACEOF
20245 #define Py_UNICODE_SIZE 4
20255 if test "$enable_unicode" = "no"
20258 echo "$as_me:$LINENO: result: not used" >&5
20259 echo "${ECHO_T}not used" >&6
20261 UNICODE_OBJS
="Objects/unicodeobject.o Objects/unicodectype.o"
20263 cat >>confdefs.h
<<\_ACEOF
20264 #define Py_USING_UNICODE 1
20268 # wchar_t is only usable if it maps to an unsigned type
20269 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
20270 -a "$ac_cv_wchar_t_signed" = "no"
20272 PY_UNICODE_TYPE
="wchar_t"
20274 cat >>confdefs.h
<<\_ACEOF
20275 #define HAVE_USABLE_WCHAR_T 1
20278 cat >>confdefs.h
<<\_ACEOF
20279 #define PY_UNICODE_TYPE wchar_t
20282 elif test "$ac_cv_sizeof_short" = "$unicode_size"
20284 PY_UNICODE_TYPE
="unsigned short"
20285 cat >>confdefs.h
<<\_ACEOF
20286 #define PY_UNICODE_TYPE unsigned short
20289 elif test "$ac_cv_sizeof_long" = "$unicode_size"
20291 PY_UNICODE_TYPE
="unsigned long"
20292 cat >>confdefs.h
<<\_ACEOF
20293 #define PY_UNICODE_TYPE unsigned long
20297 PY_UNICODE_TYPE
="no type found"
20299 echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
20300 echo "${ECHO_T}$PY_UNICODE_TYPE" >&6
20303 # check for endianness
20304 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20305 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20306 if test "${ac_cv_c_bigendian+set}" = set; then
20307 echo $ECHO_N "(cached) $ECHO_C" >&6
20309 # See if sys/param.h defines the BYTE_ORDER macro.
20310 cat >conftest.
$ac_ext <<_ACEOF
20313 cat confdefs.h
>>conftest.
$ac_ext
20314 cat >>conftest.
$ac_ext <<_ACEOF
20315 /* end confdefs.h. */
20316 #include <sys/types.h>
20317 #include <sys/param.h>
20322 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20323 bogus endian macros
20330 rm -f conftest.
$ac_objext
20331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20332 (eval $ac_compile) 2>conftest.er1
20334 grep -v '^ *+' conftest.er1
>conftest.err
20336 cat conftest.err
>&5
20337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20338 (exit $ac_status); } &&
20339 { ac_try
='test -z "$ac_c_werror_flag"
20340 || test ! -s conftest.err'
20341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20342 (eval $ac_try) 2>&5
20344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20345 (exit $ac_status); }; } &&
20346 { ac_try
='test -s conftest.$ac_objext'
20347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20348 (eval $ac_try) 2>&5
20350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20351 (exit $ac_status); }; }; then
20352 # It does; now see whether it defined to BIG_ENDIAN or not.
20353 cat >conftest.
$ac_ext <<_ACEOF
20356 cat confdefs.h
>>conftest.
$ac_ext
20357 cat >>conftest.
$ac_ext <<_ACEOF
20358 /* end confdefs.h. */
20359 #include <sys/types.h>
20360 #include <sys/param.h>
20365 #if BYTE_ORDER != BIG_ENDIAN
20373 rm -f conftest.
$ac_objext
20374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20375 (eval $ac_compile) 2>conftest.er1
20377 grep -v '^ *+' conftest.er1
>conftest.err
20379 cat conftest.err
>&5
20380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20381 (exit $ac_status); } &&
20382 { ac_try
='test -z "$ac_c_werror_flag"
20383 || test ! -s conftest.err'
20384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20385 (eval $ac_try) 2>&5
20387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20388 (exit $ac_status); }; } &&
20389 { ac_try
='test -s conftest.$ac_objext'
20390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20391 (eval $ac_try) 2>&5
20393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20394 (exit $ac_status); }; }; then
20395 ac_cv_c_bigendian
=yes
20397 echo "$as_me: failed program was:" >&5
20398 sed 's/^/| /' conftest.
$ac_ext >&5
20400 ac_cv_c_bigendian
=no
20402 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20404 echo "$as_me: failed program was:" >&5
20405 sed 's/^/| /' conftest.
$ac_ext >&5
20407 # It does not; compile a test program.
20408 if test "$cross_compiling" = yes; then
20409 # try to guess the endianness by grepping values into an object file
20410 ac_cv_c_bigendian
=unknown
20411 cat >conftest.
$ac_ext <<_ACEOF
20414 cat confdefs.h
>>conftest.
$ac_ext
20415 cat >>conftest.
$ac_ext <<_ACEOF
20416 /* end confdefs.h. */
20417 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20418 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20419 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20420 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20421 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20422 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20426 _ascii (); _ebcdic ();
20431 rm -f conftest.
$ac_objext
20432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20433 (eval $ac_compile) 2>conftest.er1
20435 grep -v '^ *+' conftest.er1
>conftest.err
20437 cat conftest.err
>&5
20438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20439 (exit $ac_status); } &&
20440 { ac_try
='test -z "$ac_c_werror_flag"
20441 || test ! -s conftest.err'
20442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20443 (eval $ac_try) 2>&5
20445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20446 (exit $ac_status); }; } &&
20447 { ac_try
='test -s conftest.$ac_objext'
20448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20449 (eval $ac_try) 2>&5
20451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20452 (exit $ac_status); }; }; then
20453 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
20454 ac_cv_c_bigendian
=yes
20456 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
20457 if test "$ac_cv_c_bigendian" = unknown
; then
20458 ac_cv_c_bigendian
=no
20460 # finding both strings is unlikely to happen, but who knows?
20461 ac_cv_c_bigendian
=unknown
20465 echo "$as_me: failed program was:" >&5
20466 sed 's/^/| /' conftest.
$ac_ext >&5
20469 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20471 cat >conftest.
$ac_ext <<_ACEOF
20474 cat confdefs.h
>>conftest.
$ac_ext
20475 cat >>conftest.
$ac_ext <<_ACEOF
20476 /* end confdefs.h. */
20480 /* Are we little or big endian? From Harbison&Steele. */
20484 char c[sizeof (long)];
20487 exit (u.c[sizeof (long) - 1] == 1);
20490 rm -f conftest
$ac_exeext
20491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20492 (eval $ac_link) 2>&5
20494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20495 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20497 (eval $ac_try) 2>&5
20499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20500 (exit $ac_status); }; }; then
20501 ac_cv_c_bigendian
=no
20503 echo "$as_me: program exited with status $ac_status" >&5
20504 echo "$as_me: failed program was:" >&5
20505 sed 's/^/| /' conftest.
$ac_ext >&5
20507 ( exit $ac_status )
20508 ac_cv_c_bigendian
=yes
20510 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20513 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20515 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20516 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20517 case $ac_cv_c_bigendian in
20520 cat >>confdefs.h
<<\_ACEOF
20521 #define WORDS_BIGENDIAN 1
20527 { { echo "$as_me:$LINENO: error: unknown endianness
20528 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20529 echo "$as_me: error: unknown endianness
20530 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20531 { (exit 1); exit 1; }; } ;;
20537 # Check whether right shifting a negative integer extends the sign bit
20538 # or fills with zeros (like the Cray J90, according to Tim Peters).
20539 echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
20540 echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6
20541 if test "${ac_cv_rshift_extends_sign+set}" = set; then
20542 echo $ECHO_N "(cached) $ECHO_C" >&6
20545 if test "$cross_compiling" = yes; then
20546 ac_cv_rshift_extends_sign
=yes
20548 cat >conftest.
$ac_ext <<_ACEOF
20551 cat confdefs.h
>>conftest.
$ac_ext
20552 cat >>conftest.
$ac_ext <<_ACEOF
20553 /* end confdefs.h. */
20557 exit(((-1)>>3 == -1) ? 0 : 1);
20561 rm -f conftest
$ac_exeext
20562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20563 (eval $ac_link) 2>&5
20565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20566 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20568 (eval $ac_try) 2>&5
20570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20571 (exit $ac_status); }; }; then
20572 ac_cv_rshift_extends_sign
=yes
20574 echo "$as_me: program exited with status $ac_status" >&5
20575 echo "$as_me: failed program was:" >&5
20576 sed 's/^/| /' conftest.
$ac_ext >&5
20578 ( exit $ac_status )
20579 ac_cv_rshift_extends_sign
=no
20581 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20585 echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
20586 echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6
20587 if test "$ac_cv_rshift_extends_sign" = no
20590 cat >>confdefs.h
<<\_ACEOF
20591 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
20596 # check for getc_unlocked and related locking functions
20597 echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
20598 echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6
20599 if test "${ac_cv_have_getc_unlocked+set}" = set; then
20600 echo $ECHO_N "(cached) $ECHO_C" >&6
20603 cat >conftest.
$ac_ext <<_ACEOF
20606 cat confdefs.h
>>conftest.
$ac_ext
20607 cat >>conftest.
$ac_ext <<_ACEOF
20608 /* end confdefs.h. */
20614 FILE *f = fopen("/dev/null", "r");
20623 rm -f conftest.
$ac_objext conftest
$ac_exeext
20624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20625 (eval $ac_link) 2>conftest.er1
20627 grep -v '^ *+' conftest.er1
>conftest.err
20629 cat conftest.err
>&5
20630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20631 (exit $ac_status); } &&
20632 { ac_try
='test -z "$ac_c_werror_flag"
20633 || test ! -s conftest.err'
20634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20635 (eval $ac_try) 2>&5
20637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20638 (exit $ac_status); }; } &&
20639 { ac_try
='test -s conftest$ac_exeext'
20640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20641 (eval $ac_try) 2>&5
20643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20644 (exit $ac_status); }; }; then
20645 ac_cv_have_getc_unlocked
=yes
20647 echo "$as_me: failed program was:" >&5
20648 sed 's/^/| /' conftest.
$ac_ext >&5
20650 ac_cv_have_getc_unlocked
=no
20652 rm -f conftest.err conftest.
$ac_objext \
20653 conftest
$ac_exeext conftest.
$ac_ext
20656 echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
20657 echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6
20658 if test "$ac_cv_have_getc_unlocked" = yes
20661 cat >>confdefs.h
<<\_ACEOF
20662 #define HAVE_GETC_UNLOCKED 1
20667 # check where readline lives
20668 # save the value of LIBS so we don't actually link Python with readline
20669 LIBS_no_readline
=$LIBS
20671 echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
20672 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
20673 if test "${ac_cv_lib_readline_readline+set}" = set; then
20674 echo $ECHO_N "(cached) $ECHO_C" >&6
20676 ac_check_lib_save_LIBS
=$LIBS
20677 LIBS
="-lreadline $LIBS"
20678 cat >conftest.
$ac_ext <<_ACEOF
20681 cat confdefs.h
>>conftest.
$ac_ext
20682 cat >>conftest.
$ac_ext <<_ACEOF
20683 /* end confdefs.h. */
20685 /* Override any gcc2 internal prototype to avoid an error. */
20689 /* We use char because int might match the return type of a gcc2
20690 builtin and then its argument prototype would still apply. */
20700 rm -f conftest.
$ac_objext conftest
$ac_exeext
20701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20702 (eval $ac_link) 2>conftest.er1
20704 grep -v '^ *+' conftest.er1
>conftest.err
20706 cat conftest.err
>&5
20707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20708 (exit $ac_status); } &&
20709 { ac_try
='test -z "$ac_c_werror_flag"
20710 || test ! -s conftest.err'
20711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20712 (eval $ac_try) 2>&5
20714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20715 (exit $ac_status); }; } &&
20716 { ac_try
='test -s conftest$ac_exeext'
20717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20718 (eval $ac_try) 2>&5
20720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20721 (exit $ac_status); }; }; then
20722 ac_cv_lib_readline_readline
=yes
20724 echo "$as_me: failed program was:" >&5
20725 sed 's/^/| /' conftest.
$ac_ext >&5
20727 ac_cv_lib_readline_readline
=no
20729 rm -f conftest.err conftest.
$ac_objext \
20730 conftest
$ac_exeext conftest.
$ac_ext
20731 LIBS
=$ac_check_lib_save_LIBS
20733 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
20734 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
20735 if test $ac_cv_lib_readline_readline = yes; then
20736 cat >>confdefs.h
<<_ACEOF
20737 #define HAVE_LIBREADLINE 1
20740 LIBS
="-lreadline $LIBS"
20744 if test "$ac_cv_have_readline_readline" = no
20747 echo "$as_me:$LINENO: checking for readline in -ltermcap" >&5
20748 echo $ECHO_N "checking for readline in -ltermcap... $ECHO_C" >&6
20749 if test "${ac_cv_lib_termcap_readline+set}" = set; then
20750 echo $ECHO_N "(cached) $ECHO_C" >&6
20752 ac_check_lib_save_LIBS
=$LIBS
20753 LIBS
="-ltermcap $LIBS"
20754 cat >conftest.
$ac_ext <<_ACEOF
20757 cat confdefs.h
>>conftest.
$ac_ext
20758 cat >>conftest.
$ac_ext <<_ACEOF
20759 /* end confdefs.h. */
20761 /* Override any gcc2 internal prototype to avoid an error. */
20765 /* We use char because int might match the return type of a gcc2
20766 builtin and then its argument prototype would still apply. */
20776 rm -f conftest.
$ac_objext conftest
$ac_exeext
20777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20778 (eval $ac_link) 2>conftest.er1
20780 grep -v '^ *+' conftest.er1
>conftest.err
20782 cat conftest.err
>&5
20783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20784 (exit $ac_status); } &&
20785 { ac_try
='test -z "$ac_c_werror_flag"
20786 || test ! -s conftest.err'
20787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20788 (eval $ac_try) 2>&5
20790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20791 (exit $ac_status); }; } &&
20792 { ac_try
='test -s conftest$ac_exeext'
20793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20794 (eval $ac_try) 2>&5
20796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20797 (exit $ac_status); }; }; then
20798 ac_cv_lib_termcap_readline
=yes
20800 echo "$as_me: failed program was:" >&5
20801 sed 's/^/| /' conftest.
$ac_ext >&5
20803 ac_cv_lib_termcap_readline
=no
20805 rm -f conftest.err conftest.
$ac_objext \
20806 conftest
$ac_exeext conftest.
$ac_ext
20807 LIBS
=$ac_check_lib_save_LIBS
20809 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_readline" >&5
20810 echo "${ECHO_T}$ac_cv_lib_termcap_readline" >&6
20811 if test $ac_cv_lib_termcap_readline = yes; then
20812 cat >>confdefs.h
<<_ACEOF
20813 #define HAVE_LIBTERMCAP 1
20816 LIBS
="-ltermcap $LIBS"
20822 # check for readline 2.1
20823 echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
20824 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6
20825 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
20826 echo $ECHO_N "(cached) $ECHO_C" >&6
20828 ac_check_lib_save_LIBS
=$LIBS
20829 LIBS
="-lreadline $LIBS"
20830 cat >conftest.
$ac_ext <<_ACEOF
20833 cat confdefs.h
>>conftest.
$ac_ext
20834 cat >>conftest.
$ac_ext <<_ACEOF
20835 /* end confdefs.h. */
20837 /* Override any gcc2 internal prototype to avoid an error. */
20841 /* We use char because int might match the return type of a gcc2
20842 builtin and then its argument prototype would still apply. */
20843 char rl_callback_handler_install ();
20847 rl_callback_handler_install ();
20852 rm -f conftest.
$ac_objext conftest
$ac_exeext
20853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20854 (eval $ac_link) 2>conftest.er1
20856 grep -v '^ *+' conftest.er1
>conftest.err
20858 cat conftest.err
>&5
20859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20860 (exit $ac_status); } &&
20861 { ac_try
='test -z "$ac_c_werror_flag"
20862 || test ! -s conftest.err'
20863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20864 (eval $ac_try) 2>&5
20866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20867 (exit $ac_status); }; } &&
20868 { ac_try
='test -s conftest$ac_exeext'
20869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20870 (eval $ac_try) 2>&5
20872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20873 (exit $ac_status); }; }; then
20874 ac_cv_lib_readline_rl_callback_handler_install
=yes
20876 echo "$as_me: failed program was:" >&5
20877 sed 's/^/| /' conftest.
$ac_ext >&5
20879 ac_cv_lib_readline_rl_callback_handler_install
=no
20881 rm -f conftest.err conftest.
$ac_objext \
20882 conftest
$ac_exeext conftest.
$ac_ext
20883 LIBS
=$ac_check_lib_save_LIBS
20885 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
20886 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6
20887 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
20889 cat >>confdefs.h
<<\_ACEOF
20890 #define HAVE_RL_CALLBACK 1
20896 # check for readline 2.2
20897 cat >conftest.
$ac_ext <<_ACEOF
20900 cat confdefs.h
>>conftest.
$ac_ext
20901 cat >>conftest.
$ac_ext <<_ACEOF
20902 /* end confdefs.h. */
20903 #include <readline/readline.h>
20905 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20906 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20908 grep -v '^ *+' conftest.er1
>conftest.err
20910 cat conftest.err
>&5
20911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20912 (exit $ac_status); } >/dev
/null
; then
20913 if test -s conftest.err
; then
20914 ac_cpp_err
=$ac_c_preproc_warn_flag
20915 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20922 if test -z "$ac_cpp_err"; then
20925 echo "$as_me: failed program was:" >&5
20926 sed 's/^/| /' conftest.
$ac_ext >&5
20930 rm -f conftest.err conftest.
$ac_ext
20931 if test $have_readline = yes
20933 cat >conftest.
$ac_ext <<_ACEOF
20936 cat confdefs.h
>>conftest.
$ac_ext
20937 cat >>conftest.
$ac_ext <<_ACEOF
20938 /* end confdefs.h. */
20939 #include <readline/readline.h>
20942 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20943 $EGREP "extern int rl_completion_append_character;" >/dev
/null
2>&1; then
20945 cat >>confdefs.h
<<\_ACEOF
20946 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
20954 # check for readline 4.0
20955 echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
20956 echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6
20957 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
20958 echo $ECHO_N "(cached) $ECHO_C" >&6
20960 ac_check_lib_save_LIBS
=$LIBS
20961 LIBS
="-lreadline $LIBS"
20962 cat >conftest.
$ac_ext <<_ACEOF
20965 cat confdefs.h
>>conftest.
$ac_ext
20966 cat >>conftest.
$ac_ext <<_ACEOF
20967 /* end confdefs.h. */
20969 /* Override any gcc2 internal prototype to avoid an error. */
20973 /* We use char because int might match the return type of a gcc2
20974 builtin and then its argument prototype would still apply. */
20975 char rl_pre_input_hook ();
20979 rl_pre_input_hook ();
20984 rm -f conftest.
$ac_objext conftest
$ac_exeext
20985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20986 (eval $ac_link) 2>conftest.er1
20988 grep -v '^ *+' conftest.er1
>conftest.err
20990 cat conftest.err
>&5
20991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20992 (exit $ac_status); } &&
20993 { ac_try
='test -z "$ac_c_werror_flag"
20994 || test ! -s conftest.err'
20995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20996 (eval $ac_try) 2>&5
20998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20999 (exit $ac_status); }; } &&
21000 { ac_try
='test -s conftest$ac_exeext'
21001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21002 (eval $ac_try) 2>&5
21004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21005 (exit $ac_status); }; }; then
21006 ac_cv_lib_readline_rl_pre_input_hook
=yes
21008 echo "$as_me: failed program was:" >&5
21009 sed 's/^/| /' conftest.
$ac_ext >&5
21011 ac_cv_lib_readline_rl_pre_input_hook
=no
21013 rm -f conftest.err conftest.
$ac_objext \
21014 conftest
$ac_exeext conftest.
$ac_ext
21015 LIBS
=$ac_check_lib_save_LIBS
21017 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
21018 echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6
21019 if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
21021 cat >>confdefs.h
<<\_ACEOF
21022 #define HAVE_RL_PRE_INPUT_HOOK 1
21028 # check for readline 4.2
21029 echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
21030 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6
21031 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
21032 echo $ECHO_N "(cached) $ECHO_C" >&6
21034 ac_check_lib_save_LIBS
=$LIBS
21035 LIBS
="-lreadline $LIBS"
21036 cat >conftest.
$ac_ext <<_ACEOF
21039 cat confdefs.h
>>conftest.
$ac_ext
21040 cat >>conftest.
$ac_ext <<_ACEOF
21041 /* end confdefs.h. */
21043 /* Override any gcc2 internal prototype to avoid an error. */
21047 /* We use char because int might match the return type of a gcc2
21048 builtin and then its argument prototype would still apply. */
21049 char rl_completion_matches ();
21053 rl_completion_matches ();
21058 rm -f conftest.
$ac_objext conftest
$ac_exeext
21059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21060 (eval $ac_link) 2>conftest.er1
21062 grep -v '^ *+' conftest.er1
>conftest.err
21064 cat conftest.err
>&5
21065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21066 (exit $ac_status); } &&
21067 { ac_try
='test -z "$ac_c_werror_flag"
21068 || test ! -s conftest.err'
21069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21070 (eval $ac_try) 2>&5
21072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21073 (exit $ac_status); }; } &&
21074 { ac_try
='test -s conftest$ac_exeext'
21075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21076 (eval $ac_try) 2>&5
21078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21079 (exit $ac_status); }; }; then
21080 ac_cv_lib_readline_rl_completion_matches
=yes
21082 echo "$as_me: failed program was:" >&5
21083 sed 's/^/| /' conftest.
$ac_ext >&5
21085 ac_cv_lib_readline_rl_completion_matches
=no
21087 rm -f conftest.err conftest.
$ac_objext \
21088 conftest
$ac_exeext conftest.
$ac_ext
21089 LIBS
=$ac_check_lib_save_LIBS
21091 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
21092 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6
21093 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
21095 cat >>confdefs.h
<<\_ACEOF
21096 #define HAVE_RL_COMPLETION_MATCHES 1
21102 # also in readline 4.2
21103 cat >conftest.
$ac_ext <<_ACEOF
21106 cat confdefs.h
>>conftest.
$ac_ext
21107 cat >>conftest.
$ac_ext <<_ACEOF
21108 /* end confdefs.h. */
21109 #include <readline/readline.h>
21111 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21112 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
21114 grep -v '^ *+' conftest.er1
>conftest.err
21116 cat conftest.err
>&5
21117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21118 (exit $ac_status); } >/dev
/null
; then
21119 if test -s conftest.err
; then
21120 ac_cpp_err
=$ac_c_preproc_warn_flag
21121 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
21128 if test -z "$ac_cpp_err"; then
21131 echo "$as_me: failed program was:" >&5
21132 sed 's/^/| /' conftest.
$ac_ext >&5
21136 rm -f conftest.err conftest.
$ac_ext
21137 if test $have_readline = yes
21139 cat >conftest.
$ac_ext <<_ACEOF
21142 cat confdefs.h
>>conftest.
$ac_ext
21143 cat >>conftest.
$ac_ext <<_ACEOF
21144 /* end confdefs.h. */
21145 #include <readline/readline.h>
21148 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21149 $EGREP "extern int rl_catch_signals;" >/dev
/null
2>&1; then
21151 cat >>confdefs.h
<<\_ACEOF
21152 #define HAVE_RL_CATCH_SIGNAL 1
21160 # End of readline checks: restore LIBS
21161 LIBS
=$LIBS_no_readline
21163 echo "$as_me:$LINENO: checking for broken nice()" >&5
21164 echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6
21165 if test "${ac_cv_broken_nice+set}" = set; then
21166 echo $ECHO_N "(cached) $ECHO_C" >&6
21169 if test "$cross_compiling" = yes; then
21170 ac_cv_broken_nice
=no
21172 cat >conftest.
$ac_ext <<_ACEOF
21175 cat confdefs.h
>>conftest.
$ac_ext
21176 cat >>conftest.
$ac_ext <<_ACEOF
21177 /* end confdefs.h. */
21181 int val1 = nice(1);
21182 if (val1 != -1 && val1 == nice(2))
21188 rm -f conftest
$ac_exeext
21189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21190 (eval $ac_link) 2>&5
21192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21193 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21195 (eval $ac_try) 2>&5
21197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21198 (exit $ac_status); }; }; then
21199 ac_cv_broken_nice
=yes
21201 echo "$as_me: program exited with status $ac_status" >&5
21202 echo "$as_me: failed program was:" >&5
21203 sed 's/^/| /' conftest.
$ac_ext >&5
21205 ( exit $ac_status )
21206 ac_cv_broken_nice
=no
21208 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21212 echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
21213 echo "${ECHO_T}$ac_cv_broken_nice" >&6
21214 if test "$ac_cv_broken_nice" = yes
21217 cat >>confdefs.h
<<\_ACEOF
21218 #define HAVE_BROKEN_NICE 1
21223 echo "$as_me:$LINENO: checking for broken poll()" >&5
21224 echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6
21225 if test "$cross_compiling" = yes; then
21226 ac_cv_broken_poll
=no
21228 cat >conftest.
$ac_ext <<_ACEOF
21231 cat confdefs.h
>>conftest.
$ac_ext
21232 cat >>conftest.
$ac_ext <<_ACEOF
21233 /* end confdefs.h. */
21239 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
21243 int poll_test = poll (&poll_struct, 1, 0);
21249 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
21260 rm -f conftest
$ac_exeext
21261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21262 (eval $ac_link) 2>&5
21264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21265 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21267 (eval $ac_try) 2>&5
21269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21270 (exit $ac_status); }; }; then
21271 ac_cv_broken_poll
=yes
21273 echo "$as_me: program exited with status $ac_status" >&5
21274 echo "$as_me: failed program was:" >&5
21275 sed 's/^/| /' conftest.
$ac_ext >&5
21277 ( exit $ac_status )
21278 ac_cv_broken_poll
=no
21280 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21282 echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5
21283 echo "${ECHO_T}$ac_cv_broken_poll" >&6
21284 if test "$ac_cv_broken_poll" = yes
21287 cat >>confdefs.h
<<\_ACEOF
21288 #define HAVE_BROKEN_POLL 1
21293 # Before we can test tzset, we need to check if struct tm has a tm_zone
21294 # (which is not required by ISO C or UNIX spec) and/or if we support
21296 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
21297 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
21298 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
21299 echo $ECHO_N "(cached) $ECHO_C" >&6
21301 cat >conftest.
$ac_ext <<_ACEOF
21304 cat confdefs.h
>>conftest.
$ac_ext
21305 cat >>conftest.
$ac_ext <<_ACEOF
21306 /* end confdefs.h. */
21307 #include <sys/types.h>
21308 #include <$ac_cv_struct_tm>
21314 static struct tm ac_aggr;
21315 if (ac_aggr.tm_zone)
21321 rm -f conftest.
$ac_objext
21322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21323 (eval $ac_compile) 2>conftest.er1
21325 grep -v '^ *+' conftest.er1
>conftest.err
21327 cat conftest.err
>&5
21328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21329 (exit $ac_status); } &&
21330 { ac_try
='test -z "$ac_c_werror_flag"
21331 || test ! -s conftest.err'
21332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21333 (eval $ac_try) 2>&5
21335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21336 (exit $ac_status); }; } &&
21337 { ac_try
='test -s conftest.$ac_objext'
21338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21339 (eval $ac_try) 2>&5
21341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21342 (exit $ac_status); }; }; then
21343 ac_cv_member_struct_tm_tm_zone
=yes
21345 echo "$as_me: failed program was:" >&5
21346 sed 's/^/| /' conftest.
$ac_ext >&5
21348 cat >conftest.
$ac_ext <<_ACEOF
21351 cat confdefs.h
>>conftest.
$ac_ext
21352 cat >>conftest.
$ac_ext <<_ACEOF
21353 /* end confdefs.h. */
21354 #include <sys/types.h>
21355 #include <$ac_cv_struct_tm>
21361 static struct tm ac_aggr;
21362 if (sizeof ac_aggr.tm_zone)
21368 rm -f conftest.
$ac_objext
21369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21370 (eval $ac_compile) 2>conftest.er1
21372 grep -v '^ *+' conftest.er1
>conftest.err
21374 cat conftest.err
>&5
21375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21376 (exit $ac_status); } &&
21377 { ac_try
='test -z "$ac_c_werror_flag"
21378 || test ! -s conftest.err'
21379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21380 (eval $ac_try) 2>&5
21382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21383 (exit $ac_status); }; } &&
21384 { ac_try
='test -s conftest.$ac_objext'
21385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21386 (eval $ac_try) 2>&5
21388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21389 (exit $ac_status); }; }; then
21390 ac_cv_member_struct_tm_tm_zone
=yes
21392 echo "$as_me: failed program was:" >&5
21393 sed 's/^/| /' conftest.
$ac_ext >&5
21395 ac_cv_member_struct_tm_tm_zone
=no
21397 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21399 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21401 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
21402 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
21403 if test $ac_cv_member_struct_tm_tm_zone = yes; then
21405 cat >>confdefs.h
<<_ACEOF
21406 #define HAVE_STRUCT_TM_TM_ZONE 1
21412 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21414 cat >>confdefs.h
<<\_ACEOF
21415 #define HAVE_TM_ZONE 1
21419 echo "$as_me:$LINENO: checking for tzname" >&5
21420 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
21421 if test "${ac_cv_var_tzname+set}" = set; then
21422 echo $ECHO_N "(cached) $ECHO_C" >&6
21424 cat >conftest.
$ac_ext <<_ACEOF
21427 cat confdefs.h
>>conftest.
$ac_ext
21428 cat >>conftest.
$ac_ext <<_ACEOF
21429 /* end confdefs.h. */
21431 #ifndef tzname /* For SGI. */
21432 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
21443 rm -f conftest.
$ac_objext conftest
$ac_exeext
21444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21445 (eval $ac_link) 2>conftest.er1
21447 grep -v '^ *+' conftest.er1
>conftest.err
21449 cat conftest.err
>&5
21450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21451 (exit $ac_status); } &&
21452 { ac_try
='test -z "$ac_c_werror_flag"
21453 || test ! -s conftest.err'
21454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21455 (eval $ac_try) 2>&5
21457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21458 (exit $ac_status); }; } &&
21459 { ac_try
='test -s conftest$ac_exeext'
21460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21461 (eval $ac_try) 2>&5
21463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21464 (exit $ac_status); }; }; then
21465 ac_cv_var_tzname
=yes
21467 echo "$as_me: failed program was:" >&5
21468 sed 's/^/| /' conftest.
$ac_ext >&5
21470 ac_cv_var_tzname
=no
21472 rm -f conftest.err conftest.
$ac_objext \
21473 conftest
$ac_exeext conftest.
$ac_ext
21475 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21476 echo "${ECHO_T}$ac_cv_var_tzname" >&6
21477 if test $ac_cv_var_tzname = yes; then
21479 cat >>confdefs.h
<<\_ACEOF
21480 #define HAVE_TZNAME 1
21487 # check tzset(3) exists and works like we expect it to
21488 echo "$as_me:$LINENO: checking for working tzset()" >&5
21489 echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6
21490 if test "${ac_cv_working_tzset+set}" = set; then
21491 echo $ECHO_N "(cached) $ECHO_C" >&6
21494 if test "$cross_compiling" = yes; then
21495 ac_cv_working_tzset
=no
21497 cat >conftest.
$ac_ext <<_ACEOF
21500 cat confdefs.h
>>conftest.
$ac_ext
21501 cat >>conftest.
$ac_ext <<_ACEOF
21502 /* end confdefs.h. */
21504 #include <stdlib.h>
21506 #include <string.h>
21509 extern char *tzname[];
21514 /* Note that we need to ensure that not only does tzset(3)
21515 do 'something' with localtime, but it works as documented
21516 in the library reference and as expected by the test suite.
21517 This includes making sure that tzname is set properly if
21518 tm->tm_zone does not exist since it is the alternative way
21519 of getting timezone info.
21521 Red Hat 6.2 doesn't understand the southern hemisphere
21522 after New Year's Day.
21525 time_t groundhogday = 1044144000; /* GMT-based */
21526 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
21528 putenv("TZ=UTC+0");
21530 if (localtime(&groundhogday)->tm_hour != 0)
21533 /* For UTC, tzname[1] is sometimes "", sometimes " " */
21534 if (strcmp(tzname[0], "UTC") ||
21535 (tzname[1][0] != 0 && tzname[1][0] != ' '))
21539 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
21541 if (localtime(&groundhogday)->tm_hour != 19)
21544 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
21548 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
21550 if (localtime(&groundhogday)->tm_hour != 11)
21553 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
21557 #if HAVE_STRUCT_TM_TM_ZONE
21558 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
21560 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
21568 rm -f conftest
$ac_exeext
21569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21570 (eval $ac_link) 2>&5
21572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21573 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21575 (eval $ac_try) 2>&5
21577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21578 (exit $ac_status); }; }; then
21579 ac_cv_working_tzset
=yes
21581 echo "$as_me: program exited with status $ac_status" >&5
21582 echo "$as_me: failed program was:" >&5
21583 sed 's/^/| /' conftest.
$ac_ext >&5
21585 ( exit $ac_status )
21586 ac_cv_working_tzset
=no
21588 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21592 echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5
21593 echo "${ECHO_T}$ac_cv_working_tzset" >&6
21594 if test "$ac_cv_working_tzset" = yes
21597 cat >>confdefs.h
<<\_ACEOF
21598 #define HAVE_WORKING_TZSET 1
21603 # Look for subsecond timestamps in struct stat
21604 echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
21605 echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6
21606 if test "${ac_cv_stat_tv_nsec+set}" = set; then
21607 echo $ECHO_N "(cached) $ECHO_C" >&6
21609 cat >conftest.
$ac_ext <<_ACEOF
21612 cat confdefs.h
>>conftest.
$ac_ext
21613 cat >>conftest.
$ac_ext <<_ACEOF
21614 /* end confdefs.h. */
21615 #include <sys/stat.h>
21621 st.st_mtim.tv_nsec = 1;
21627 rm -f conftest.
$ac_objext
21628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21629 (eval $ac_compile) 2>conftest.er1
21631 grep -v '^ *+' conftest.er1
>conftest.err
21633 cat conftest.err
>&5
21634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21635 (exit $ac_status); } &&
21636 { ac_try
='test -z "$ac_c_werror_flag"
21637 || test ! -s conftest.err'
21638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21639 (eval $ac_try) 2>&5
21641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21642 (exit $ac_status); }; } &&
21643 { ac_try
='test -s conftest.$ac_objext'
21644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21645 (eval $ac_try) 2>&5
21647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21648 (exit $ac_status); }; }; then
21649 ac_cv_stat_tv_nsec
=yes
21651 echo "$as_me: failed program was:" >&5
21652 sed 's/^/| /' conftest.
$ac_ext >&5
21654 ac_cv_stat_tv_nsec
=no
21656 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21659 echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
21660 echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6
21661 if test "$ac_cv_stat_tv_nsec" = yes
21664 cat >>confdefs.h
<<\_ACEOF
21665 #define HAVE_STAT_TV_NSEC 1
21670 # Look for BSD style subsecond timestamps in struct stat
21671 echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5
21672 echo $ECHO_N "checking for tv_nsec2 in struct stat... $ECHO_C" >&6
21673 if test "${ac_cv_stat_tv_nsec2+set}" = set; then
21674 echo $ECHO_N "(cached) $ECHO_C" >&6
21676 cat >conftest.
$ac_ext <<_ACEOF
21679 cat confdefs.h
>>conftest.
$ac_ext
21680 cat >>conftest.
$ac_ext <<_ACEOF
21681 /* end confdefs.h. */
21682 #include <sys/stat.h>
21688 st.st_mtimespec.tv_nsec = 1;
21694 rm -f conftest.
$ac_objext
21695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21696 (eval $ac_compile) 2>conftest.er1
21698 grep -v '^ *+' conftest.er1
>conftest.err
21700 cat conftest.err
>&5
21701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21702 (exit $ac_status); } &&
21703 { ac_try
='test -z "$ac_c_werror_flag"
21704 || test ! -s conftest.err'
21705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21706 (eval $ac_try) 2>&5
21708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21709 (exit $ac_status); }; } &&
21710 { ac_try
='test -s conftest.$ac_objext'
21711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21712 (eval $ac_try) 2>&5
21714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21715 (exit $ac_status); }; }; then
21716 ac_cv_stat_tv_nsec2
=yes
21718 echo "$as_me: failed program was:" >&5
21719 sed 's/^/| /' conftest.
$ac_ext >&5
21721 ac_cv_stat_tv_nsec2
=no
21723 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21726 echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5
21727 echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6
21728 if test "$ac_cv_stat_tv_nsec2" = yes
21731 cat >>confdefs.h
<<\_ACEOF
21732 #define HAVE_STAT_TV_NSEC2 1
21737 # On HP/UX 11.0, mvwdelch is a block with a return statement
21738 echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
21739 echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6
21740 if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
21741 echo $ECHO_N "(cached) $ECHO_C" >&6
21743 cat >conftest.
$ac_ext <<_ACEOF
21746 cat confdefs.h
>>conftest.
$ac_ext
21747 cat >>conftest.
$ac_ext <<_ACEOF
21748 /* end confdefs.h. */
21749 #include <curses.h>
21755 rtn = mvwdelch(0,0,0);
21761 rm -f conftest.
$ac_objext
21762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21763 (eval $ac_compile) 2>conftest.er1
21765 grep -v '^ *+' conftest.er1
>conftest.err
21767 cat conftest.err
>&5
21768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21769 (exit $ac_status); } &&
21770 { ac_try
='test -z "$ac_c_werror_flag"
21771 || test ! -s conftest.err'
21772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21773 (eval $ac_try) 2>&5
21775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21776 (exit $ac_status); }; } &&
21777 { ac_try
='test -s conftest.$ac_objext'
21778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21779 (eval $ac_try) 2>&5
21781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21782 (exit $ac_status); }; }; then
21783 ac_cv_mvwdelch_is_expression
=yes
21785 echo "$as_me: failed program was:" >&5
21786 sed 's/^/| /' conftest.
$ac_ext >&5
21788 ac_cv_mvwdelch_is_expression
=no
21790 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21793 echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
21794 echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6
21796 if test "$ac_cv_mvwdelch_is_expression" = yes
21799 cat >>confdefs.h
<<\_ACEOF
21800 #define MVWDELCH_IS_EXPRESSION 1
21805 echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
21806 echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6
21807 if test "${ac_cv_window_has_flags+set}" = set; then
21808 echo $ECHO_N "(cached) $ECHO_C" >&6
21810 cat >conftest.
$ac_ext <<_ACEOF
21813 cat confdefs.h
>>conftest.
$ac_ext
21814 cat >>conftest.
$ac_ext <<_ACEOF
21815 /* end confdefs.h. */
21816 #include <curses.h>
21828 rm -f conftest.
$ac_objext
21829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21830 (eval $ac_compile) 2>conftest.er1
21832 grep -v '^ *+' conftest.er1
>conftest.err
21834 cat conftest.err
>&5
21835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21836 (exit $ac_status); } &&
21837 { ac_try
='test -z "$ac_c_werror_flag"
21838 || test ! -s conftest.err'
21839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21840 (eval $ac_try) 2>&5
21842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21843 (exit $ac_status); }; } &&
21844 { ac_try
='test -s conftest.$ac_objext'
21845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21846 (eval $ac_try) 2>&5
21848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21849 (exit $ac_status); }; }; then
21850 ac_cv_window_has_flags
=yes
21852 echo "$as_me: failed program was:" >&5
21853 sed 's/^/| /' conftest.
$ac_ext >&5
21855 ac_cv_window_has_flags
=no
21857 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21860 echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
21861 echo "${ECHO_T}$ac_cv_window_has_flags" >&6
21864 if test "$ac_cv_window_has_flags" = yes
21867 cat >>confdefs.h
<<\_ACEOF
21868 #define WINDOW_HAS_FLAGS 1
21873 echo "$as_me:$LINENO: checking for is_term_resized" >&5
21874 echo $ECHO_N "checking for is_term_resized... $ECHO_C" >&6
21875 cat >conftest.
$ac_ext <<_ACEOF
21878 cat confdefs.h
>>conftest.
$ac_ext
21879 cat >>conftest.
$ac_ext <<_ACEOF
21880 /* end confdefs.h. */
21881 #include <curses.h>
21885 void *x=is_term_resized
21890 rm -f conftest.
$ac_objext
21891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21892 (eval $ac_compile) 2>conftest.er1
21894 grep -v '^ *+' conftest.er1
>conftest.err
21896 cat conftest.err
>&5
21897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21898 (exit $ac_status); } &&
21899 { ac_try
='test -z "$ac_c_werror_flag"
21900 || test ! -s conftest.err'
21901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21902 (eval $ac_try) 2>&5
21904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21905 (exit $ac_status); }; } &&
21906 { ac_try
='test -s conftest.$ac_objext'
21907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21908 (eval $ac_try) 2>&5
21910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21911 (exit $ac_status); }; }; then
21913 cat >>confdefs.h
<<\_ACEOF
21914 #define HAVE_CURSES_IS_TERM_RESIZED 1
21917 echo "$as_me:$LINENO: result: yes" >&5
21918 echo "${ECHO_T}yes" >&6
21920 echo "$as_me: failed program was:" >&5
21921 sed 's/^/| /' conftest.
$ac_ext >&5
21923 echo "$as_me:$LINENO: result: no" >&5
21924 echo "${ECHO_T}no" >&6
21927 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21929 echo "$as_me:$LINENO: checking for resize_term" >&5
21930 echo $ECHO_N "checking for resize_term... $ECHO_C" >&6
21931 cat >conftest.
$ac_ext <<_ACEOF
21934 cat confdefs.h
>>conftest.
$ac_ext
21935 cat >>conftest.
$ac_ext <<_ACEOF
21936 /* end confdefs.h. */
21937 #include <curses.h>
21941 void *x=resize_term
21946 rm -f conftest.
$ac_objext
21947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21948 (eval $ac_compile) 2>conftest.er1
21950 grep -v '^ *+' conftest.er1
>conftest.err
21952 cat conftest.err
>&5
21953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21954 (exit $ac_status); } &&
21955 { ac_try
='test -z "$ac_c_werror_flag"
21956 || test ! -s conftest.err'
21957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21958 (eval $ac_try) 2>&5
21960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21961 (exit $ac_status); }; } &&
21962 { ac_try
='test -s conftest.$ac_objext'
21963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21964 (eval $ac_try) 2>&5
21966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21967 (exit $ac_status); }; }; then
21969 cat >>confdefs.h
<<\_ACEOF
21970 #define HAVE_CURSES_RESIZE_TERM 1
21973 echo "$as_me:$LINENO: result: yes" >&5
21974 echo "${ECHO_T}yes" >&6
21976 echo "$as_me: failed program was:" >&5
21977 sed 's/^/| /' conftest.
$ac_ext >&5
21979 echo "$as_me:$LINENO: result: no" >&5
21980 echo "${ECHO_T}no" >&6
21983 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21985 echo "$as_me:$LINENO: checking for resizeterm" >&5
21986 echo $ECHO_N "checking for resizeterm... $ECHO_C" >&6
21987 cat >conftest.
$ac_ext <<_ACEOF
21990 cat confdefs.h
>>conftest.
$ac_ext
21991 cat >>conftest.
$ac_ext <<_ACEOF
21992 /* end confdefs.h. */
21993 #include <curses.h>
22002 rm -f conftest.
$ac_objext
22003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22004 (eval $ac_compile) 2>conftest.er1
22006 grep -v '^ *+' conftest.er1
>conftest.err
22008 cat conftest.err
>&5
22009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22010 (exit $ac_status); } &&
22011 { ac_try
='test -z "$ac_c_werror_flag"
22012 || test ! -s conftest.err'
22013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22014 (eval $ac_try) 2>&5
22016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22017 (exit $ac_status); }; } &&
22018 { ac_try
='test -s conftest.$ac_objext'
22019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22020 (eval $ac_try) 2>&5
22022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22023 (exit $ac_status); }; }; then
22025 cat >>confdefs.h
<<\_ACEOF
22026 #define HAVE_CURSES_RESIZETERM 1
22029 echo "$as_me:$LINENO: result: yes" >&5
22030 echo "${ECHO_T}yes" >&6
22032 echo "$as_me: failed program was:" >&5
22033 sed 's/^/| /' conftest.
$ac_ext >&5
22035 echo "$as_me:$LINENO: result: no" >&5
22036 echo "${ECHO_T}no" >&6
22039 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22041 echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
22042 echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6
22044 if test -e /dev
/ptmx
22046 echo "$as_me:$LINENO: result: yes" >&5
22047 echo "${ECHO_T}yes" >&6
22049 cat >>confdefs.h
<<\_ACEOF
22050 #define HAVE_DEV_PTMX 1
22054 echo "$as_me:$LINENO: result: no" >&5
22055 echo "${ECHO_T}no" >&6
22058 echo "$as_me:$LINENO: checking for /dev/ptc" >&5
22059 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6
22061 if test -e /dev
/ptc
22063 echo "$as_me:$LINENO: result: yes" >&5
22064 echo "${ECHO_T}yes" >&6
22066 cat >>confdefs.h
<<\_ACEOF
22067 #define HAVE_DEV_PTC 1
22071 echo "$as_me:$LINENO: result: no" >&5
22072 echo "${ECHO_T}no" >&6
22075 echo "$as_me:$LINENO: checking for %zd printf() format support" >&5
22076 echo $ECHO_N "checking for %zd printf() format support... $ECHO_C" >&6
22077 if test "$cross_compiling" = yes; then
22078 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22079 See \`config.log' for more details." >&5
22080 echo "$as_me: error: cannot run test program while cross compiling
22081 See \`config.log' for more details." >&2;}
22082 { (exit 1); exit 1; }; }
22084 cat >conftest.
$ac_ext <<_ACEOF
22087 cat confdefs.h
>>conftest.
$ac_ext
22088 cat >>conftest.
$ac_ext <<_ACEOF
22089 /* end confdefs.h. */
22091 #include <stddef.h>
22092 #include <string.h>
22098 if(sprintf(buffer, "%zd", (size_t)123) < 0)
22101 if (strncmp(buffer, "123", 3))
22107 rm -f conftest
$ac_exeext
22108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22109 (eval $ac_link) 2>&5
22111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22112 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
22113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22114 (eval $ac_try) 2>&5
22116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22117 (exit $ac_status); }; }; then
22118 echo "$as_me:$LINENO: result: yes" >&5
22119 echo "${ECHO_T}yes" >&6
22121 cat >>confdefs.h
<<\_ACEOF
22122 #define PY_FORMAT_SIZE_T "z"
22126 echo "$as_me: program exited with status $ac_status" >&5
22127 echo "$as_me: failed program was:" >&5
22128 sed 's/^/| /' conftest.
$ac_ext >&5
22130 ( exit $ac_status )
22131 echo "$as_me:$LINENO: result: no" >&5
22132 echo "${ECHO_T}no" >&6
22134 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
22137 echo "$as_me:$LINENO: checking for socklen_t" >&5
22138 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
22139 if test "${ac_cv_type_socklen_t+set}" = set; then
22140 echo $ECHO_N "(cached) $ECHO_C" >&6
22142 cat >conftest.
$ac_ext <<_ACEOF
22145 cat confdefs.h
>>conftest.
$ac_ext
22146 cat >>conftest.
$ac_ext <<_ACEOF
22147 /* end confdefs.h. */
22149 #ifdef HAVE_SYS_TYPES_H
22150 #include <sys/types.h>
22152 #ifdef HAVE_SYS_SOCKET_H
22153 #include <sys/socket.h>
22160 if ((socklen_t *) 0)
22162 if (sizeof (socklen_t))
22168 rm -f conftest.
$ac_objext
22169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22170 (eval $ac_compile) 2>conftest.er1
22172 grep -v '^ *+' conftest.er1
>conftest.err
22174 cat conftest.err
>&5
22175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22176 (exit $ac_status); } &&
22177 { ac_try
='test -z "$ac_c_werror_flag"
22178 || test ! -s conftest.err'
22179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22180 (eval $ac_try) 2>&5
22182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22183 (exit $ac_status); }; } &&
22184 { ac_try
='test -s conftest.$ac_objext'
22185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22186 (eval $ac_try) 2>&5
22188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22189 (exit $ac_status); }; }; then
22190 ac_cv_type_socklen_t
=yes
22192 echo "$as_me: failed program was:" >&5
22193 sed 's/^/| /' conftest.
$ac_ext >&5
22195 ac_cv_type_socklen_t
=no
22197 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22199 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
22200 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
22201 if test $ac_cv_type_socklen_t = yes; then
22205 cat >>confdefs.h
<<\_ACEOF
22206 #define socklen_t int
22214 for h
in `(cd $srcdir;echo Python/thread_*.h)`
22216 THREADHEADERS
="$THREADHEADERS \$(srcdir)/$h"
22220 SRCDIRS
="Parser Grammar Objects Python Modules Mac"
22221 echo "$as_me:$LINENO: checking for build directories" >&5
22222 echo $ECHO_N "checking for build directories... $ECHO_C" >&6
22223 for dir
in $SRCDIRS; do
22224 if test ! -d $dir; then
22228 echo "$as_me:$LINENO: result: done" >&5
22229 echo "${ECHO_T}done" >&6
22231 # generate output files
22232 ac_config_files
="$ac_config_files Makefile.pre Modules/Setup.config"
22234 cat >confcache
<<\_ACEOF
22235 # This file is a shell script that caches the results of configure
22236 # tests run on this system so they can be shared between configure
22237 # scripts and configure runs, see configure's option --config-cache.
22238 # It is not useful on other systems. If it contains results you don't
22239 # want to keep, you may remove or edit it.
22241 # config.status only pays attention to the cache file if you give it
22242 # the --recheck option to rerun configure.
22244 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22245 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22246 # following values.
22250 # The following way of writing the cache mishandles newlines in values,
22251 # but we know of no workaround that is simple, portable, and efficient.
22252 # So, don't put newlines in cache variables' values.
22253 # Ultrix sh set writes to stderr and can't be redirected directly,
22254 # and sets the high bit in the cache file unless we assign to the vars.
22257 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22259 # `set' does not quote correctly, so add quotes (double-quote
22260 # substitution turns \\\\ into \\, and sed turns \\ into \).
22263 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22266 # `set' quotes correctly as required by POSIX, so do not add quotes.
22268 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22275 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22277 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22279 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
22280 if test -w $cache_file; then
22281 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22282 cat confcache
>$cache_file
22284 echo "not updating unwritable cache $cache_file"
22289 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
22290 # Let make expand exec_prefix.
22291 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
22293 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22294 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22295 # trailing colons and then remove the whole line if VPATH becomes empty
22296 # (actually we leave an empty line to preserve line numbers).
22297 if test "x$srcdir" = x.
; then
22298 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
22299 s/:*\$(srcdir):*/:/;
22300 s/:*\${srcdir}:*/:/;
22302 s/^\([^=]*=[ ]*\):*/\1/;
22308 DEFS
=-DHAVE_CONFIG_H
22312 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
22313 # 1. Remove the extension, and $U if already installed.
22314 ac_i
=`echo "$ac_i" |
22315 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22317 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
22318 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
22320 LIBOBJS
=$ac_libobjs
22322 LTLIBOBJS
=$ac_ltlibobjs
22326 : ${CONFIG_STATUS=./config.status}
22327 ac_clean_files_save
=$ac_clean_files
22328 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
22329 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22330 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22331 cat >$CONFIG_STATUS <<_ACEOF
22333 # Generated by $as_me.
22334 # Run this file to recreate the current configuration.
22335 # Compiler output produced by configure, useful for debugging
22336 # configure, is in config.log if it exists.
22339 ac_cs_recheck=false
22341 SHELL=\${CONFIG_SHELL-$SHELL}
22344 cat >>$CONFIG_STATUS <<\_ACEOF
22345 ## --------------------- ##
22346 ## M4sh Initialization. ##
22347 ## --------------------- ##
22349 # Be Bourne compatible
22350 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
22353 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22354 # is contrary to our usage. Disable this feature.
22355 alias -g '${1+"$@"}'='"$@"'
22356 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
22359 DUALCASE
=1; export DUALCASE
# for MKS sh
22361 # Support unset when possible.
22362 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
22369 # Work around bugs in pre-3.0 UWIN ksh.
22370 $as_unset ENV MAIL MAILPATH
22377 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22378 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22379 LC_TELEPHONE LC_TIME
22381 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22382 eval $as_var=C
; export $as_var
22388 # Required to use basename.
22389 if expr a
: '\(a\)' >/dev
/null
2>&1; then
22395 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
22396 as_basename
=basename
22402 # Name of the executable.
22403 as_me
=`$as_basename "$0" ||
22404 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22405 X"$0" : 'X\(//\)$' \| \
22406 X"$0" : 'X\(/\)$' \| \
22407 . : '\(.\)' 2>/dev/null ||
22409 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22410 /^X\/\(\/\/\)$/{ s//\1/; q; }
22411 /^X\/\(\/\).*/{ s//\1/; q; }
22415 # PATH needs CR, and LINENO needs CR and PATH.
22416 # Avoid depending upon Character Ranges.
22417 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
22418 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22419 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
22420 as_cr_digits
='0123456789'
22421 as_cr_alnum
=$as_cr_Letters$as_cr_digits
22423 # The user is always right.
22424 if test "${PATH_SEPARATOR+set}" != set; then
22425 echo "#! /bin/sh" >conf$$.sh
22426 echo "exit 0" >>conf$$.sh
22428 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
22437 as_lineno_1
=$LINENO
22438 as_lineno_2
=$LINENO
22439 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
22440 test "x$as_lineno_1" != "x$as_lineno_2" &&
22441 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
22442 # Find who we are. Look in the path if we contain no path at all
22445 *[\\/]* ) as_myself
=$0 ;;
22446 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22447 for as_dir
in $PATH
22450 test -z "$as_dir" && as_dir
=.
22451 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
22456 # We did not find ourselves, most probably we were run as `sh COMMAND'
22457 # in which case we are not to be found in the path.
22458 if test "x$as_myself" = x
; then
22461 if test ! -f "$as_myself"; then
22462 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22463 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22464 { (exit 1); exit 1; }; }
22466 case $CONFIG_SHELL in
22468 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22469 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
22472 test -z "$as_dir" && as_dir
=.
22473 for as_base
in sh bash ksh sh5
; do
22476 if ("$as_dir/$as_base" -c '
22477 as_lineno_1=$LINENO
22478 as_lineno_2=$LINENO
22479 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22480 test "x$as_lineno_1" != "x$as_lineno_2" &&
22481 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
22482 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
22483 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
22484 CONFIG_SHELL
=$as_dir/$as_base
22485 export CONFIG_SHELL
22486 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22494 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22495 # uniformly replaced by the line number. The first 'sed' inserts a
22496 # line-number line before each line; the second 'sed' does the real
22497 # work. The second script uses 'N' to pair each line-number line
22498 # with the numbered line, and appends trailing '-' during
22499 # substitution so that $LINENO is not a special case at line end.
22500 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22501 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22502 sed '=' <$as_myself |
22507 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22510 s,^['$as_cr_digits']*\n,,
22511 ' >$as_me.lineno
&&
22512 chmod +x
$as_me.lineno ||
22513 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22514 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22515 { (exit 1); exit 1; }; }
22517 # Don't try to exec as it changes $[0], causing all sort of problems
22518 # (the dirname of $[0] is not the place where we might find the
22519 # original and so on. Autoconf is especially sensible to this).
22521 # Exit status is that of the last command.
22526 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22527 *c
*,-n*) ECHO_N
= ECHO_C
='
22529 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
22530 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
22533 if expr a
: '\(a\)' >/dev
/null
2>&1; then
22539 rm -f conf$$ conf$$.exe conf$$.
file
22541 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
22542 # We could just check for DJGPP; but this test a) works b) is more generic
22543 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22544 if test -f conf$$.exe
; then
22545 # Don't use ln at all; we don't have any links
22550 elif ln conf$$.
file conf$$
2>/dev
/null
; then
22555 rm -f conf$$ conf$$.exe conf$$.
file
22557 if mkdir
-p .
2>/dev
/null
; then
22560 test -d .
/-p && rmdir .
/-p
22564 as_executable_p
="test -f"
22566 # Sed expression to map a string onto a valid CPP name.
22567 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22569 # Sed expression to map a string onto a valid variable name.
22570 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22574 # We need space, tab and new line, in precisely that order.
22584 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22585 # report actual input values of CONFIG_FILES etc. instead of their
22586 # values after options handling. Logging --version etc. is OK.
22590 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22591 ## Running $as_me. ##
22596 This file was extended by python $as_me 2.5, which was
22597 generated by GNU Autoconf 2.59. Invocation command line was
22599 CONFIG_FILES = $CONFIG_FILES
22600 CONFIG_HEADERS = $CONFIG_HEADERS
22601 CONFIG_LINKS = $CONFIG_LINKS
22602 CONFIG_COMMANDS = $CONFIG_COMMANDS
22606 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22610 # Files that config.status was made for.
22611 if test -n "$ac_config_files"; then
22612 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22615 if test -n "$ac_config_headers"; then
22616 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22619 if test -n "$ac_config_links"; then
22620 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22623 if test -n "$ac_config_commands"; then
22624 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22627 cat >>$CONFIG_STATUS <<\_ACEOF
22630 \`$as_me' instantiates files from templates according to the
22631 current configuration.
22633 Usage: $0 [OPTIONS] [FILE]...
22635 -h, --help print this help, then exit
22636 -V, --version print version number, then exit
22637 -q, --quiet do not print progress messages
22638 -d, --debug don't remove temporary files
22639 --recheck update $as_me by reconfiguring in the same conditions
22640 --file=FILE[:TEMPLATE]
22641 instantiate the configuration file FILE
22642 --header=FILE[:TEMPLATE]
22643 instantiate the configuration header FILE
22645 Configuration files:
22648 Configuration headers:
22651 Report bugs to <bug-autoconf@gnu.org>."
22654 cat >>$CONFIG_STATUS <<_ACEOF
22656 python config.status 2.5
22657 configured by $0, generated by GNU Autoconf 2.59,
22658 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22660 Copyright (C) 2003 Free Software Foundation, Inc.
22661 This config.status script is free software; the Free Software Foundation
22662 gives unlimited permission to copy, distribute and modify it."
22667 cat >>$CONFIG_STATUS <<\_ACEOF
22668 # If no file are specified by the user, then we need to provide default
22669 # value. By we need to know if files were specified by the user.
22675 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
22676 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
22684 *) # This is not an option, so the user has probably given explicit
22687 ac_need_defaults
=false
;;
22691 # Handling of the options.
22693 cat >>$CONFIG_STATUS <<\_ACEOF
22694 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
22696 --version |
--vers* |
-V )
22697 echo "$ac_cs_version"; exit 0 ;;
22699 # Conflict between --help and --header
22700 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22701 Try \`$0 --help' for more information." >&5
22702 echo "$as_me: error: ambiguous option: $1
22703 Try \`$0 --help' for more information." >&2;}
22704 { (exit 1); exit 1; }; };;
22705 --help |
--hel |
-h )
22706 echo "$ac_cs_usage"; exit 0 ;;
22707 --debug |
--d* |
-d )
22709 --file |
--fil |
--fi |
--f )
22711 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
22712 ac_need_defaults
=false
;;
22713 --header |
--heade |
--head |
--hea )
22715 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
22716 ac_need_defaults
=false
;;
22717 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
22718 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
22721 # This is an error.
22722 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22723 Try \`$0 --help' for more information." >&5
22724 echo "$as_me: error: unrecognized option: $1
22725 Try \`$0 --help' for more information." >&2;}
22726 { (exit 1); exit 1; }; } ;;
22728 *) ac_config_targets
="$ac_config_targets $1" ;;
22734 ac_configure_extra_args
=
22736 if $ac_cs_silent; then
22738 ac_configure_extra_args
="$ac_configure_extra_args --silent"
22742 cat >>$CONFIG_STATUS <<_ACEOF
22743 if \$ac_cs_recheck; then
22744 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22745 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22754 cat >>$CONFIG_STATUS <<\_ACEOF
22755 for ac_config_target
in $ac_config_targets
22757 case "$ac_config_target" in
22758 # Handling of arguments.
22759 "Mac/Makefile" ) CONFIG_FILES
="$CONFIG_FILES Mac/Makefile" ;;
22760 "Mac/PythonLauncher/Makefile" ) CONFIG_FILES
="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;;
22761 "Mac/IDLE/Makefile" ) CONFIG_FILES
="$CONFIG_FILES Mac/IDLE/Makefile" ;;
22762 "Makefile.pre" ) CONFIG_FILES
="$CONFIG_FILES Makefile.pre" ;;
22763 "Modules/Setup.config" ) CONFIG_FILES
="$CONFIG_FILES Modules/Setup.config" ;;
22764 "pyconfig.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS pyconfig.h" ;;
22765 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22766 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22767 { (exit 1); exit 1; }; };;
22771 # If the user did not use the arguments to specify the items to instantiate,
22772 # then the envvar interface is used. Set only those that are not.
22773 # We use the long form for the default assignment because of an extremely
22774 # bizarre bug on SunOS 4.1.3.
22775 if $ac_need_defaults; then
22776 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
22777 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
22780 # Have a temporary directory for convenience. Make it in the build tree
22781 # simply because there is no reason to put it here, and in addition,
22782 # creating and moving files from /tmp can sometimes cause problems.
22783 # Create a temporary directory, and hook for its removal unless debugging.
22786 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22787 trap '{ (exit 1); exit 1; }' 1 2 13 15
22790 # Create a (secure) tmp directory for tmp files.
22793 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22794 test -n "$tmp" && test -d "$tmp"
22797 tmp
=.
/confstat$$
-$RANDOM
22798 (umask 077 && mkdir
$tmp)
22801 echo "$me: cannot create a temporary directory in ." >&2
22802 { (exit 1); exit 1; }
22807 cat >>$CONFIG_STATUS <<_ACEOF
22810 # CONFIG_FILES section.
22813 # No need to generate the scripts if there are no CONFIG_FILES.
22814 # This happens for instance when ./config.status config.h
22815 if test -n "\$CONFIG_FILES"; then
22816 # Protect against being on the right side of a sed subst in config.status.
22817 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22818 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22819 s,@SHELL@,$SHELL,;t t
22820 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22821 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22822 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22823 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22824 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22825 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22826 s,@exec_prefix@,$exec_prefix,;t t
22827 s,@prefix@,$prefix,;t t
22828 s,@program_transform_name@,$program_transform_name,;t t
22829 s,@bindir@,$bindir,;t t
22830 s,@sbindir@,$sbindir,;t t
22831 s,@libexecdir@,$libexecdir,;t t
22832 s,@datadir@,$datadir,;t t
22833 s,@sysconfdir@,$sysconfdir,;t t
22834 s,@sharedstatedir@,$sharedstatedir,;t t
22835 s,@localstatedir@,$localstatedir,;t t
22836 s,@libdir@,$libdir,;t t
22837 s,@includedir@,$includedir,;t t
22838 s,@oldincludedir@,$oldincludedir,;t t
22839 s,@infodir@,$infodir,;t t
22840 s,@mandir@,$mandir,;t t
22841 s,@build_alias@,$build_alias,;t t
22842 s,@host_alias@,$host_alias,;t t
22843 s,@target_alias@,$target_alias,;t t
22844 s,@DEFS@,$DEFS,;t t
22845 s,@ECHO_C@,$ECHO_C,;t t
22846 s,@ECHO_N@,$ECHO_N,;t t
22847 s,@ECHO_T@,$ECHO_T,;t t
22848 s,@LIBS@,$LIBS,;t t
22849 s,@VERSION@,$VERSION,;t t
22850 s,@SOVERSION@,$SOVERSION,;t t
22851 s,@CONFIG_ARGS@,$CONFIG_ARGS,;t t
22852 s,@UNIVERSALSDK@,$UNIVERSALSDK,;t t
22853 s,@PYTHONFRAMEWORK@,$PYTHONFRAMEWORK,;t t
22854 s,@PYTHONFRAMEWORKDIR@,$PYTHONFRAMEWORKDIR,;t t
22855 s,@PYTHONFRAMEWORKPREFIX@,$PYTHONFRAMEWORKPREFIX,;t t
22856 s,@PYTHONFRAMEWORKINSTALLDIR@,$PYTHONFRAMEWORKINSTALLDIR,;t t
22857 s,@FRAMEWORKINSTALLFIRST@,$FRAMEWORKINSTALLFIRST,;t t
22858 s,@FRAMEWORKINSTALLLAST@,$FRAMEWORKINSTALLLAST,;t t
22859 s,@FRAMEWORKALTINSTALLFIRST@,$FRAMEWORKALTINSTALLFIRST,;t t
22860 s,@FRAMEWORKALTINSTALLLAST@,$FRAMEWORKALTINSTALLLAST,;t t
22861 s,@FRAMEWORKUNIXTOOLSPREFIX@,$FRAMEWORKUNIXTOOLSPREFIX,;t t
22862 s,@MACHDEP@,$MACHDEP,;t t
22863 s,@SGI_ABI@,$SGI_ABI,;t t
22864 s,@EXTRAPLATDIR@,$EXTRAPLATDIR,;t t
22865 s,@EXTRAMACHDEPPATH@,$EXTRAMACHDEPPATH,;t t
22866 s,@CONFIGURE_MACOSX_DEPLOYMENT_TARGET@,$CONFIGURE_MACOSX_DEPLOYMENT_TARGET,;t t
22867 s,@EXPORT_MACOSX_DEPLOYMENT_TARGET@,$EXPORT_MACOSX_DEPLOYMENT_TARGET,;t t
22869 s,@CFLAGS@,$CFLAGS,;t t
22870 s,@LDFLAGS@,$LDFLAGS,;t t
22871 s,@CPPFLAGS@,$CPPFLAGS,;t t
22872 s,@ac_ct_CC@,$ac_ct_CC,;t t
22873 s,@EXEEXT@,$EXEEXT,;t t
22874 s,@OBJEXT@,$OBJEXT,;t t
22876 s,@MAINCC@,$MAINCC,;t t
22878 s,@EGREP@,$EGREP,;t t
22879 s,@BUILDEXEEXT@,$BUILDEXEEXT,;t t
22880 s,@LIBRARY@,$LIBRARY,;t t
22881 s,@LDLIBRARY@,$LDLIBRARY,;t t
22882 s,@DLLLIBRARY@,$DLLLIBRARY,;t t
22883 s,@BLDLIBRARY@,$BLDLIBRARY,;t t
22884 s,@LDLIBRARYDIR@,$LDLIBRARYDIR,;t t
22885 s,@INSTSONAME@,$INSTSONAME,;t t
22886 s,@RUNSHARED@,$RUNSHARED,;t t
22887 s,@LINKCC@,$LINKCC,;t t
22888 s,@RANLIB@,$RANLIB,;t t
22889 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22891 s,@SVNVERSION@,$SVNVERSION,;t t
22892 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22893 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22894 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22897 s,@BASECFLAGS@,$BASECFLAGS,;t t
22898 s,@OTHER_LIBTOOL_OPT@,$OTHER_LIBTOOL_OPT,;t t
22899 s,@LIBTOOL_CRUFT@,$LIBTOOL_CRUFT,;t t
22901 s,@LDSHARED@,$LDSHARED,;t t
22902 s,@BLDSHARED@,$BLDSHARED,;t t
22903 s,@CCSHARED@,$CCSHARED,;t t
22904 s,@LINKFORSHARED@,$LINKFORSHARED,;t t
22905 s,@CFLAGSFORSHARED@,$CFLAGSFORSHARED,;t t
22906 s,@SHLIBS@,$SHLIBS,;t t
22907 s,@USE_SIGNAL_MODULE@,$USE_SIGNAL_MODULE,;t t
22908 s,@SIGNAL_OBJS@,$SIGNAL_OBJS,;t t
22909 s,@USE_THREAD_MODULE@,$USE_THREAD_MODULE,;t t
22910 s,@LDLAST@,$LDLAST,;t t
22911 s,@THREADOBJ@,$THREADOBJ,;t t
22912 s,@DLINCLDIR@,$DLINCLDIR,;t t
22913 s,@DYNLOADFILE@,$DYNLOADFILE,;t t
22914 s,@MACHDEP_OBJS@,$MACHDEP_OBJS,;t t
22915 s,@TRUE@,$TRUE,;t t
22916 s,@LIBOBJS@,$LIBOBJS,;t t
22917 s,@HAVE_GETHOSTBYNAME_R_6_ARG@,$HAVE_GETHOSTBYNAME_R_6_ARG,;t t
22918 s,@HAVE_GETHOSTBYNAME_R_5_ARG@,$HAVE_GETHOSTBYNAME_R_5_ARG,;t t
22919 s,@HAVE_GETHOSTBYNAME_R_3_ARG@,$HAVE_GETHOSTBYNAME_R_3_ARG,;t t
22920 s,@HAVE_GETHOSTBYNAME_R@,$HAVE_GETHOSTBYNAME_R,;t t
22921 s,@HAVE_GETHOSTBYNAME@,$HAVE_GETHOSTBYNAME,;t t
22922 s,@LIBM@,$LIBM,;t t
22923 s,@LIBC@,$LIBC,;t t
22924 s,@UNICODE_OBJS@,$UNICODE_OBJS,;t t
22925 s,@THREADHEADERS@,$THREADHEADERS,;t t
22926 s,@SRCDIRS@,$SRCDIRS,;t t
22927 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22932 cat >>$CONFIG_STATUS <<\_ACEOF
22933 # Split the substitutions into bite-sized pieces for seds with
22934 # small command number limits, like on Digital OSF/1 and HP-UX.
22935 ac_max_sed_lines
=48
22936 ac_sed_frag
=1 # Number of current file.
22937 ac_beg
=1 # First line for current file.
22938 ac_end
=$ac_max_sed_lines # Line after last line for current file.
22941 while $ac_more_lines; do
22942 if test $ac_beg -gt 1; then
22943 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
22945 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
22947 if test ! -s $tmp/subs.frag
; then
22948 ac_more_lines
=false
22950 # The purpose of the label and of the branching condition is to
22951 # speed up the sed processing (if there are no `@' at all, there
22952 # is no need to browse any of the substitutions).
22953 # These are the two extra sed commands mentioned above.
22955 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
22956 if test -z "$ac_sed_cmds"; then
22957 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
22959 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22961 ac_sed_frag
=`expr $ac_sed_frag + 1`
22963 ac_end
=`expr $ac_end + $ac_max_sed_lines`
22966 if test -z "$ac_sed_cmds"; then
22969 fi # test -n "$CONFIG_FILES"
22972 cat >>$CONFIG_STATUS <<\_ACEOF
22973 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
22974 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22976 - |
*:- |
*:-:* ) # input from stdin
22978 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22979 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
22980 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22981 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
22982 * ) ac_file_in
=$ac_file.
in ;;
22985 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22986 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
22987 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22988 X"$ac_file" : 'X\(//\)[^/]' \| \
22989 X"$ac_file" : 'X\(//\)$' \| \
22990 X"$ac_file" : 'X\(/\)' \| \
22991 . : '\(.\)' 2>/dev/null ||
22993 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22994 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22995 /^X\(\/\/\)$/{ s//\1/; q; }
22996 /^X\(\/\).*/{ s//\1/; q; }
22998 { if $as_mkdir_p; then
23003 while test ! -d "$as_dir"; do
23004 as_dirs
="$as_dir $as_dirs"
23005 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
23006 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23007 X"$as_dir" : 'X\(//\)[^/]' \| \
23008 X"$as_dir" : 'X\(//\)$' \| \
23009 X"$as_dir" : 'X\(/\)' \| \
23010 . : '\(.\)' 2>/dev/null ||
23012 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23013 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23014 /^X\(\/\/\)$/{ s//\1/; q; }
23015 /^X\(\/\).*/{ s//\1/; q; }
23018 test ! -n "$as_dirs" || mkdir
$as_dirs
23019 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23020 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23021 { (exit 1); exit 1; }; }; }
23025 if test "$ac_dir" != .
; then
23026 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23027 # A "../" for each directory in $ac_dir_suffix.
23028 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23030 ac_dir_suffix
= ac_top_builddir
=
23034 .
) # No --srcdir option. We are building in place.
23036 if test -z "$ac_top_builddir"; then
23039 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
23041 [\\/]* | ?
:[\\/]* ) # Absolute path.
23042 ac_srcdir
=$srcdir$ac_dir_suffix;
23043 ac_top_srcdir
=$srcdir ;;
23044 *) # Relative path.
23045 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
23046 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
23049 # Do not use `cd foo && pwd` to compute absolute paths, because
23050 # the directories may not exist.
23052 .
) ac_abs_builddir
="$ac_dir";;
23055 .
) ac_abs_builddir
=`pwd`;;
23056 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
23057 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
23060 case $ac_abs_builddir in
23061 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
23063 case ${ac_top_builddir}.
in
23064 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
23065 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
23066 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
23069 case $ac_abs_builddir in
23070 .
) ac_abs_srcdir
=$ac_srcdir;;
23073 .
) ac_abs_srcdir
=$ac_abs_builddir;;
23074 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
23075 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
23078 case $ac_abs_builddir in
23079 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
23081 case $ac_top_srcdir in
23082 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
23083 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
23084 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
23090 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
23091 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
23094 if test x
"$ac_file" != x-
; then
23095 { echo "$as_me:$LINENO: creating $ac_file" >&5
23096 echo "$as_me: creating $ac_file" >&6;}
23099 # Let's still pretend it is `configure' which instantiates (i.e., don't
23100 # use $as_me), people would be surprised to read:
23101 # /* config.h. Generated by config.status. */
23102 if test x
"$ac_file" = x-
; then
23105 configure_input
="$ac_file. "
23107 configure_input
=$configure_input"Generated from `echo $ac_file_in |
23108 sed 's,.*/,,'` by configure."
23110 # First look for the input files in the build tree, otherwise in the
23112 ac_file_inputs
=`IFS=:
23113 for f in $ac_file_in; do
23115 -) echo $tmp/stdin ;;
23117 # Absolute (can't be DOS-style, as IFS=:)
23118 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23119 echo "$as_me: error: cannot find input file: $f" >&2;}
23120 { (exit 1); exit 1; }; }
23123 if test -f "$f"; then
23126 elif test -f "$srcdir/$f"; then
23131 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23132 echo "$as_me: error: cannot find input file: $f" >&2;}
23133 { (exit 1); exit 1; }; }
23136 done` ||
{ (exit 1); exit 1; }
23138 cat >>$CONFIG_STATUS <<_ACEOF
23142 cat >>$CONFIG_STATUS <<\_ACEOF
23144 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
23145 s
,@configure_input@
,$configure_input,;t t
23146 s
,@srcdir@
,$ac_srcdir,;t t
23147 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
23148 s
,@top_srcdir@
,$ac_top_srcdir,;t t
23149 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
23150 s
,@builddir@
,$ac_builddir,;t t
23151 s
,@abs_builddir@
,$ac_abs_builddir,;t t
23152 s
,@top_builddir@
,$ac_top_builddir,;t t
23153 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
23154 s
,@INSTALL@
,$ac_INSTALL,;t t
23155 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23157 if test x"$ac_file" != x-; then
23158 mv $tmp/out $ac_file
23166 cat >>$CONFIG_STATUS <<\_ACEOF
23169 # CONFIG_HEADER section.
23172 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
23173 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23175 # ac_d sets the value in "#define NAME VALUE" lines.
23176 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23177 ac_dB
='[ ].*$,\1#\2'
23180 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23181 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23182 ac_uB
='$,\1#\2define\3'
23186 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
23187 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23189 - |
*:- |
*:-:* ) # input from stdin
23191 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23192 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
23193 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23194 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
23195 * ) ac_file_in
=$ac_file.
in ;;
23198 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
23199 echo "$as_me: creating $ac_file" >&6;}
23201 # First look for the input files in the build tree, otherwise in the
23203 ac_file_inputs
=`IFS=:
23204 for f in $ac_file_in; do
23206 -) echo $tmp/stdin ;;
23208 # Absolute (can't be DOS-style, as IFS=:)
23209 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23210 echo "$as_me: error: cannot find input file: $f" >&2;}
23211 { (exit 1); exit 1; }; }
23212 # Do quote $f, to prevent DOS paths from being IFS'd.
23215 if test -f "$f"; then
23218 elif test -f "$srcdir/$f"; then
23223 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23224 echo "$as_me: error: cannot find input file: $f" >&2;}
23225 { (exit 1); exit 1; }; }
23228 done` ||
{ (exit 1); exit 1; }
23229 # Remove the trailing spaces.
23230 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23234 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23235 # `conftest.undefs', that substitutes the proper values into
23236 # config.h.in to produce config.h. The first handles `#define'
23237 # templates, and the second `#undef' templates.
23238 # And first: Protect against being on the right side of a sed subst in
23239 # config.status. Protect against being in an unquoted here document
23240 # in config.status.
23241 rm -f conftest.defines conftest.undefs
23242 # Using a here document instead of a string reduces the quoting nightmare.
23243 # Putting comments in sed scripts is not portable.
23245 # `end' is used to avoid that the second main sed command (meant for
23246 # 0-ary CPP macros) applies to n-ary macro definitions.
23247 # See the Autoconf documentation for `clear'.
23248 cat >confdef2sed.
sed <<\_ACEOF
23253 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23255 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23258 # If some macros were called several times there might be several times
23259 # the same #defines, which is useless. Nevertheless, we may not want to
23260 # sort them, since we want the *last* AC-DEFINE to be honored.
23261 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23262 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23263 rm -f confdef2sed.sed
23265 # This sed command replaces #undef with comments. This is necessary, for
23266 # example, in the case of _POSIX_SOURCE, which is predefined and required
23267 # on some systems where configure will not decide to define it.
23268 cat >>conftest.undefs <<\_ACEOF
23269 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23272 # Break up conftest.defines because some shells have a limit on the size
23273 # of here documents, and old seds have small limits too (100 cmds).
23274 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23275 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23276 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23277 echo ' :' >>$CONFIG_STATUS
23278 rm -f conftest.tail
23279 while grep . conftest.defines >/dev/null
23281 # Write a limited-size here document to $tmp/defines.sed.
23282 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23283 # Speed up: don't consider the non `#define' lines.
23284 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23285 # Work around the forget-to-reset-the-flag bug.
23286 echo 't clr' >>$CONFIG_STATUS
23287 echo ': clr' >>$CONFIG_STATUS
23288 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
23290 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23292 mv $tmp/out $tmp/in
23294 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
23295 rm -f conftest.defines
23296 mv conftest.
tail conftest.defines
23298 rm -f conftest.defines
23299 echo ' fi # grep' >>$CONFIG_STATUS
23300 echo >>$CONFIG_STATUS
23302 # Break up conftest.undefs because some shells have a limit on the size
23303 # of here documents, and old seds have small limits too (100 cmds).
23304 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23305 rm -f conftest.
tail
23306 while grep . conftest.undefs
>/dev
/null
23308 # Write a limited-size here document to $tmp/undefs.sed.
23309 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23310 # Speed up: don't consider the non
`#undef'
23311 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23312 # Work around the forget-to-reset-the-flag bug.
23313 echo 't clr' >>$CONFIG_STATUS
23314 echo ': clr' >>$CONFIG_STATUS
23315 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23317 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23319 mv $tmp/out $tmp/in
23321 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23322 rm -f conftest.undefs
23323 mv conftest.tail conftest.undefs
23325 rm -f conftest.undefs
23327 cat >>$CONFIG_STATUS <<\_ACEOF
23328 # Let's still pretend it is `configure
' which instantiates (i.e., don't
23329 # use $as_me), people would be surprised to read:
23330 # /* config.h. Generated by config.status. */
23331 if test x
"$ac_file" = x-
; then
23332 echo "/* Generated by configure. */" >$tmp/config.h
23334 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23336 cat $tmp/in >>$tmp/config.h
23338 if test x
"$ac_file" != x-
; then
23339 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
23340 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23341 echo "$as_me: $ac_file is unchanged" >&6;}
23343 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
23344 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23345 X"$ac_file" : 'X\(//\)[^/]' \| \
23346 X"$ac_file" : 'X\(//\)$' \| \
23347 X"$ac_file" : 'X\(/\)' \| \
23348 . : '\(.\)' 2>/dev/null ||
23350 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23351 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23352 /^X\(\/\/\)$/{ s//\1/; q; }
23353 /^X\(\/\).*/{ s//\1/; q; }
23355 { if $as_mkdir_p; then
23360 while test ! -d "$as_dir"; do
23361 as_dirs
="$as_dir $as_dirs"
23362 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
23363 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23364 X"$as_dir" : 'X\(//\)[^/]' \| \
23365 X"$as_dir" : 'X\(//\)$' \| \
23366 X"$as_dir" : 'X\(/\)' \| \
23367 . : '\(.\)' 2>/dev/null ||
23369 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23370 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23371 /^X\(\/\/\)$/{ s//\1/; q; }
23372 /^X\(\/\).*/{ s//\1/; q; }
23375 test ! -n "$as_dirs" || mkdir
$as_dirs
23376 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23377 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23378 { (exit 1); exit 1; }; }; }
23381 mv $tmp/config.h
$ac_file
23385 rm -f $tmp/config.h
23390 cat >>$CONFIG_STATUS <<\_ACEOF
23392 { (exit 0); exit 0; }
23394 chmod +x
$CONFIG_STATUS
23395 ac_clean_files
=$ac_clean_files_save
23398 # configure is writing to config.log, and then calls config.status.
23399 # config.status does its own redirection, appending to config.log.
23400 # Unfortunately, on DOS this fails, as config.log is still kept open
23401 # by configure, so config.status won't be able to write to it; its
23402 # output is simply discarded. So we exec the FD to /dev/null,
23403 # effectively closing config.log, so it can be properly (re)opened and
23404 # appended to by config.status. When coming back to configure, we
23405 # need to make the FD available again.
23406 if test "$no_create" != yes; then
23408 ac_config_status_args
=
23409 test "$silent" = yes &&
23410 ac_config_status_args
="$ac_config_status_args --quiet"
23412 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
23414 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23415 # would make configure fail if this is the last instruction.
23416 $ac_cs_success ||
{ (exit 1); exit 1; }
23420 echo "creating Modules/Setup"
23421 if test ! -f Modules
/Setup
23423 cp $srcdir/Modules
/Setup.dist Modules
/Setup
23426 echo "creating Modules/Setup.local"
23427 if test ! -f Modules
/Setup.
local
23429 echo "# Edit this file for local setup changes" >Modules
/Setup.
local
23432 echo "creating Makefile"
23433 $SHELL $srcdir/Modules
/makesetup
-c $srcdir/Modules
/config.c.
in \
23434 -s Modules Modules
/Setup.config \
23435 Modules
/Setup.
local Modules
/Setup
23436 mv config.c Modules