2 # From configure.in Revision: 53508 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59 for python 2.6.
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.6'
274 PACKAGE_STRING
='python 2.6'
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.6 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.6:";;
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.6, which was
1009 generated by GNU Autoconf 2.59. Invocation command line was
1020 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1021 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1022 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1023 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1024 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1026 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1027 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1029 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1030 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1031 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1032 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1033 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1034 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1035 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1043 test -z "$as_dir" && as_dir=.
1044 echo "PATH: $as_dir"
1059 # Keep a trace of the command line.
1060 # Strip out --no-create and --no-recursion so they do not pile up.
1061 # Strip out --silent because we don't want to record it for future runs.
1062 # Also quote any args containing shell meta-characters.
1063 # Make two passes to allow for proper duplicate-argument suppression.
1068 ac_must_keep_next=false
1074 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1075 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1076 | -silent | --silent | --silen | --sile | --sil)
1078 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1079 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1082 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1084 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1085 if test $ac_must_keep_next = true; then
1086 ac_must_keep_next=false # Got value, back to normal.
1089 *=* | --config-cache | -C | -disable-* | --disable-* \
1090 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1091 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1092 | -with-* | --with-* | -without-* | --without-* | --x)
1093 case "$ac_configure_args0 " in
1094 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1097 -* ) ac_must_keep_next=true ;;
1100 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1101 # Get rid of the leading space.
1107 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1108 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1110 # When interrupted or exit'd, cleanup temporary files, and complete
1111 # config.log. We remove comments because anyway the quotes in there
1112 # would cause problems or look ugly.
1113 # WARNING: Be sure not to use single quotes in there, as some shells,
1114 # such as our DU 5.0 friend, will then `close
' the trap.
1115 trap 'exit_status
=$?
1116 # Save into config.log some information that might help in debugging.
1121 ## ---------------- ##
1122 ## Cache variables. ##
1123 ## ---------------- ##
1126 # The following way of writing the cache mishandles newlines in values,
1129 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1132 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1133 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1137 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1144 ## ----------------- ##
1145 ## Output variables. ##
1146 ## ----------------- ##
1149 for ac_var
in $ac_subst_vars
1151 eval ac_val
=$
`echo $ac_var`
1152 echo "$ac_var='"'"'$ac_val'"'"'"
1156 if test -n "$ac_subst_files"; then
1163 for ac_var
in $ac_subst_files
1165 eval ac_val
=$
`echo $ac_var`
1166 echo "$ac_var='"'"'$ac_val'"'"'"
1171 if test -s confdefs.h
; then
1178 sed "/^$/d" confdefs.h |
sort
1181 test "$ac_signal" != 0 &&
1182 echo "$as_me: caught signal $ac_signal"
1183 echo "$as_me: exit $exit_status"
1185 rm -f core
*.core
&&
1186 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1189 for ac_signal in 1 2 13 15; do
1190 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1194 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1195 rm -rf conftest* confdefs.h
1196 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1199 # Predefined preprocessor variables.
1201 cat >>confdefs.h <<_ACEOF
1202 #define PACKAGE_NAME "$PACKAGE_NAME"
1206 cat >>confdefs.h <<_ACEOF
1207 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1211 cat >>confdefs.h <<_ACEOF
1212 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1216 cat >>confdefs.h <<_ACEOF
1217 #define PACKAGE_STRING "$PACKAGE_STRING"
1221 cat >>confdefs.h <<_ACEOF
1222 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1226 # Let the site file select an alternate cache file if it wants to.
1227 # Prefer explicitly selected file to automatically selected ones.
1228 if test -z "$CONFIG_SITE"; then
1229 if test "x$prefix" != xNONE; then
1230 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1232 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1235 for ac_site_file in $CONFIG_SITE; do
1236 if test -r "$ac_site_file"; then
1237 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1238 echo "$as_me: loading site script $ac_site_file" >&6;}
1239 sed 's
/^
/|
/' "$ac_site_file" >&5
1244 if test -r "$cache_file"; then
1245 # Some versions of bash will fail to source /dev/null (special
1246 # files actually), so we avoid doing that.
1247 if test -f "$cache_file"; then
1248 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1249 echo "$as_me: loading cache $cache_file" >&6;}
1251 [\\/]* | ?:[\\/]* ) . $cache_file;;
1252 *) . ./$cache_file;;
1256 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1257 echo "$as_me: creating cache $cache_file" >&6;}
1261 # Check that the precious variables saved in the cache have kept the same
1263 ac_cache_corrupted=false
1264 for ac_var in `(set) 2>&1 |
1265 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1266 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1267 eval ac_new_set=\$ac_env_${ac_var}_set
1268 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1269 eval ac_new_val="\$ac_env_${ac_var}_value"
1270 case $ac_old_set,$ac_new_set in
1272 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1273 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1274 ac_cache_corrupted=: ;;
1276 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1277 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1278 ac_cache_corrupted=: ;;
1281 if test "x$ac_old_val" != "x$ac_new_val"; then
1282 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1283 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1284 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1285 echo "$as_me: former value: $ac_old_val" >&2;}
1286 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1287 echo "$as_me: current value: $ac_new_val" >&2;}
1288 ac_cache_corrupted=:
1291 # Pass precious variables to config.status.
1292 if test "$ac_new_set" = set; then
1294 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1295 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1296 *) ac_arg=$ac_var=$ac_new_val ;;
1298 case " $ac_configure_args " in
1299 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1300 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1304 if $ac_cache_corrupted; then
1305 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1306 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1307 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1308 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1309 { (exit 1); exit 1; }; }
1313 ac_cpp='$CPP $CPPFLAGS'
1314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1315 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1345 ac_config_headers="$ac_config_headers pyconfig.h"
1353 # We don't use PACKAGE_ variables
, and they cause conflicts
1354 # with other autoconf-based packages that include Python.h
1355 grep -v 'define PACKAGE_' <confdefs.h
>confdefs.h.new
1357 mv confdefs.h.new confdefs.h
1365 # The later defininition of _XOPEN_SOURCE disables certain features
1366 # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
1368 cat >>confdefs.h
<<\_ACEOF
1369 #define _GNU_SOURCE 1
1373 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1374 # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
1377 cat >>confdefs.h
<<\_ACEOF
1378 #define _NETBSD_SOURCE 1
1382 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1383 # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
1386 cat >>confdefs.h
<<\_ACEOF
1387 #define __BSD_VISIBLE 1
1391 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1392 # u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
1394 cat >>confdefs.h
<<\_ACEOF
1395 #define _BSD_TYPES 1
1399 define_xopen_source
=yes
1401 # Arguments passed to configure.
1403 CONFIG_ARGS
="$ac_configure_args"
1405 # Check whether --enable-universalsdk or --disable-universalsdk was given.
1406 if test "${enable_universalsdk+set}" = set; then
1407 enableval
="$enable_universalsdk"
1411 enableval
=/Developer
/SDKs
/MacOSX10.4u.sdk
1417 enable_universalsdk
=
1420 UNIVERSALSDK
=$enableval
1427 enable_universalsdk
=
1432 # Check whether --enable-framework or --disable-framework was given.
1433 if test "${enable_framework+set}" = set; then
1434 enableval
="$enable_framework"
1438 enableval
=/Library
/Frameworks
1443 PYTHONFRAMEWORKDIR
=no-framework
1444 PYTHONFRAMEWORKPREFIX
=
1445 PYTHONFRAMEWORKINSTALLDIR
=
1446 FRAMEWORKINSTALLFIRST
=
1447 FRAMEWORKINSTALLLAST
=
1448 FRAMEWORKALTINSTALLFIRST
=
1449 FRAMEWORKALTINSTALLLAST
=
1450 if test "x${prefix}" = "xNONE"; then
1451 FRAMEWORKUNIXTOOLSPREFIX
="${ac_default_prefix}"
1453 FRAMEWORKUNIXTOOLSPREFIX
="${prefix}"
1458 PYTHONFRAMEWORK
=Python
1459 PYTHONFRAMEWORKDIR
=Python.framework
1460 PYTHONFRAMEWORKPREFIX
=$enableval
1461 PYTHONFRAMEWORKINSTALLDIR
=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
1462 FRAMEWORKINSTALLFIRST
="frameworkinstallstructure"
1463 FRAMEWORKINSTALLLAST
="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools"
1464 FRAMEWORKALTINSTALLFIRST
="${FRAMEWORKINSTALLFIRST} bininstall maninstall"
1465 FRAMEWORKALTINSTALLLAST
="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools"
1466 if test "x${prefix}" = "xNONE" ; then
1467 FRAMEWORKUNIXTOOLSPREFIX
="${ac_default_prefix}"
1469 FRAMEWORKUNIXTOOLSPREFIX
="${prefix}"
1471 prefix
=$PYTHONFRAMEWORKINSTALLDIR/Versions
/$VERSION
1473 # Add makefiles for Mac specific code to the list of output
1475 ac_config_files
="$ac_config_files Mac/Makefile"
1477 ac_config_files
="$ac_config_files Mac/PythonLauncher/Makefile"
1479 ac_config_files
="$ac_config_files Mac/IDLE/Makefile"
1486 PYTHONFRAMEWORKDIR
=no-framework
1487 PYTHONFRAMEWORKPREFIX
=
1488 PYTHONFRAMEWORKINSTALLDIR
=
1489 FRAMEWORKINSTALLFIRST
=
1490 FRAMEWORKINSTALLLAST
=
1491 FRAMEWORKALTINSTALLFIRST
=
1492 FRAMEWORKALTINSTALLLAST
=
1493 if test "x${prefix}" = "xNONE" ; then
1494 FRAMEWORKUNIXTOOLSPREFIX
="${ac_default_prefix}"
1496 FRAMEWORKUNIXTOOLSPREFIX
="${prefix}"
1512 ## AC_HELP_STRING(--with-dyld,
1513 ## Use (OpenStep|Rhapsody) dynamic linker))
1515 # Set name for machine-dependent library files
1517 echo "$as_me:$LINENO: checking MACHDEP" >&5
1518 echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6
1519 if test -z "$MACHDEP"
1521 ac_sys_system
=`uname -s`
1522 if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \
1523 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
1524 ac_sys_release
=`uname -v`
1526 ac_sys_release
=`uname -r`
1528 ac_md_system
=`echo $ac_sys_system |
1529 tr -d '/ ' | tr '[A-Z]' '[a-z]'`
1530 ac_md_release
=`echo $ac_sys_release |
1531 tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'`
1532 MACHDEP
="$ac_md_system$ac_md_release"
1535 cygwin
*) MACHDEP
="cygwin";;
1536 darwin
*) MACHDEP
="darwin";;
1537 atheos
*) MACHDEP
="atheos";;
1538 irix646
) MACHDEP
="irix6";;
1539 '') MACHDEP
="unknown";;
1543 # Some systems cannot stand _XOPEN_SOURCE being defined at all; they
1544 # disable features if it is defined, without any means to access these
1545 # features as extensions. For these systems, we skip the definition of
1546 # _XOPEN_SOURCE. Before adding a system to the list to gain access to
1547 # some feature, make sure there is no alternative way to access this
1548 # feature. Also, when using wildcards, make sure you have verified the
1549 # need for not defining _XOPEN_SOURCE on all systems matching the
1550 # wildcard, and that the wildcard does not include future systems
1551 # (which may remove their limitations).
1552 case $ac_sys_system/$ac_sys_release in
1553 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
1554 # even though select is a POSIX function. Reported by J. Ribbens.
1555 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
1556 OpenBSD
/2.
* | OpenBSD
/3.
[0123456789] | OpenBSD
/4.
[0])
1557 define_xopen_source
=no
;;
1558 # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of
1559 # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by
1561 NetBSD
/1.5 | NetBSD
/1.5.
* | NetBSD
/1.6 | NetBSD
/1.6.
* | NetBSD
/1.6A-S
)
1562 define_xopen_source
=no
;;
1563 # On Solaris 2.6, sys/wait.h is inconsistent in the usage
1564 # of union __?sigval. Reported by Stuart Bishop.
1566 define_xopen_source
=no
;;
1567 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
1568 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
1569 # Reconfirmed for 7.1.4 by Martin v. Loewis.
1570 OpenUNIX
/8.0.0| UnixWare
/7.1.
[0-4])
1571 define_xopen_source
=no
;;
1572 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
1573 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
1575 define_xopen_source
=no
;;
1576 # On FreeBSD 4.8 and MacOS X 10.2, a bug in ncurses.h means that
1577 # it craps out if _XOPEN_EXTENDED_SOURCE is defined. Apparently,
1578 # this is fixed in 10.3, which identifies itself as Darwin/7.*
1579 # This should hopefully be fixed in FreeBSD 4.9
1580 FreeBSD
/4.8* | Darwin
/6* )
1581 define_xopen_source
=no
;;
1582 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
1583 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
1584 # or has another value. By not (re)defining it, the defaults come in place.
1586 define_xopen_source
=no
;;
1588 if test `uname -r` -eq 1; then
1589 define_xopen_source
=no
1592 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
1593 # disables platform specific features beyond repair.
1594 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
1595 # has no effect, don't bother defining them
1597 define_xopen_source
=no
1602 if test $define_xopen_source = yes
1604 # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be
1605 # defined precisely as g++ defines it
1606 # Furthermore, on Solaris 10, XPG6 requires the use of a C99
1608 case $ac_sys_system/$ac_sys_release in
1609 SunOS
/5.8|SunOS
/5.9|SunOS
/5.10)
1611 cat >>confdefs.h
<<\_ACEOF
1612 #define _XOPEN_SOURCE 500
1618 cat >>confdefs.h
<<\_ACEOF
1619 #define _XOPEN_SOURCE 600
1625 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
1626 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
1627 # several APIs are not declared. Since this is also needed in some
1628 # cases for HP-UX, we define it globally.
1629 # except for Solaris 10, where it must not be defined,
1630 # as it implies XPG4.2
1631 case $ac_sys_system/$ac_sys_release in
1636 cat >>confdefs.h
<<\_ACEOF
1637 #define _XOPEN_SOURCE_EXTENDED 1
1644 cat >>confdefs.h
<<\_ACEOF
1645 #define _POSIX_C_SOURCE 200112L
1652 # SGI compilers allow the specification of the both the ABI and the
1653 # ISA on the command line. Depending on the values of these switches,
1654 # different and often incompatable code will be generated.
1656 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
1657 # thus supply support for various ABI/ISA combinations. The MACHDEP
1658 # variable is also adjusted.
1661 if test ! -z "$SGI_ABI"
1664 LDFLAGS
="$SGI_ABI $LDFLAGS"
1665 MACHDEP
=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'`
1667 echo "$as_me:$LINENO: result: $MACHDEP" >&5
1668 echo "${ECHO_T}$MACHDEP" >&6
1670 # And add extra plat-mac for darwin
1673 echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5
1674 echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6
1675 if test -z "$EXTRAPLATDIR"
1679 EXTRAPLATDIR
="\$(PLATMACDIRS)"
1680 EXTRAMACHDEPPATH
="\$(PLATMACPATH)"
1688 echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5
1689 echo "${ECHO_T}$EXTRAPLATDIR" >&6
1691 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
1692 # it may influence the way we can build extensions, so distutils
1696 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
=
1697 EXPORT_MACOSX_DEPLOYMENT_TARGET
='#'
1699 # checks for alternative programs
1701 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
1702 # for debug/optimization stuff. BASECFLAGS is for flags that are required
1703 # just to get things to compile and link. Users are free to override OPT
1704 # when running configure or make. The build should not break if they do.
1705 # BASECFLAGS should generally not be messed with, however.
1707 # XXX shouldn't some/most/all of this code be merged with the stuff later
1708 # on that fiddles with OPT and BASECFLAGS?
1709 echo "$as_me:$LINENO: checking for --without-gcc" >&5
1710 echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6
1712 # Check whether --with-gcc or --without-gcc was given.
1713 if test "${with_gcc+set}" = set; then
1722 without_gcc
=$withval;;
1726 case $ac_sys_system in
1730 case $BE_HOST_CPU in
1734 BASECFLAGS
="$BASECFLAGS -export pragma"
1736 LDFLAGS
="$LDFLAGS -nodup"
1744 { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5
1745 echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;}
1746 { (exit 1); exit 1; }; }
1749 AR
="\$(srcdir)/Modules/ar_beos"
1758 echo "$as_me:$LINENO: result: $without_gcc" >&5
1759 echo "${ECHO_T}$without_gcc" >&6
1761 # If the user switches compilers, we can't believe the cache
1762 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
1764 { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
1765 (it is also a good idea to do 'make clean' before compiling)" >&5
1766 echo "$as_me: error: cached CC is different -- throw away $cache_file
1767 (it is also a good idea to do 'make clean' before compiling)" >&2;}
1768 { (exit 1); exit 1; }; }
1772 ac_cpp
='$CPP $CPPFLAGS'
1773 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1774 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1775 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1776 if test -n "$ac_tool_prefix"; then
1777 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1778 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1779 echo "$as_me:$LINENO: checking for $ac_word" >&5
1780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1781 if test "${ac_cv_prog_CC+set}" = set; then
1782 echo $ECHO_N "(cached) $ECHO_C" >&6
1784 if test -n "$CC"; then
1785 ac_cv_prog_CC
="$CC" # Let the user override the test.
1787 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1791 test -z "$as_dir" && as_dir
=.
1792 for ac_exec_ext
in '' $ac_executable_extensions; do
1793 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1794 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1804 if test -n "$CC"; then
1805 echo "$as_me:$LINENO: result: $CC" >&5
1806 echo "${ECHO_T}$CC" >&6
1808 echo "$as_me:$LINENO: result: no" >&5
1809 echo "${ECHO_T}no" >&6
1813 if test -z "$ac_cv_prog_CC"; then
1815 # Extract the first word of "gcc", so it can be a program name with args.
1816 set dummy gcc
; ac_word
=$2
1817 echo "$as_me:$LINENO: checking for $ac_word" >&5
1818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1819 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1820 echo $ECHO_N "(cached) $ECHO_C" >&6
1822 if test -n "$ac_ct_CC"; then
1823 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1825 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1829 test -z "$as_dir" && as_dir
=.
1830 for ac_exec_ext
in '' $ac_executable_extensions; do
1831 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1832 ac_cv_prog_ac_ct_CC
="gcc"
1833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1841 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1842 if test -n "$ac_ct_CC"; then
1843 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1844 echo "${ECHO_T}$ac_ct_CC" >&6
1846 echo "$as_me:$LINENO: result: no" >&5
1847 echo "${ECHO_T}no" >&6
1855 if test -z "$CC"; then
1856 if test -n "$ac_tool_prefix"; then
1857 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1858 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1859 echo "$as_me:$LINENO: checking for $ac_word" >&5
1860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1861 if test "${ac_cv_prog_CC+set}" = set; then
1862 echo $ECHO_N "(cached) $ECHO_C" >&6
1864 if test -n "$CC"; then
1865 ac_cv_prog_CC
="$CC" # Let the user override the test.
1867 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1871 test -z "$as_dir" && as_dir
=.
1872 for ac_exec_ext
in '' $ac_executable_extensions; do
1873 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1874 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1884 if test -n "$CC"; then
1885 echo "$as_me:$LINENO: result: $CC" >&5
1886 echo "${ECHO_T}$CC" >&6
1888 echo "$as_me:$LINENO: result: no" >&5
1889 echo "${ECHO_T}no" >&6
1893 if test -z "$ac_cv_prog_CC"; then
1895 # Extract the first word of "cc", so it can be a program name with args.
1896 set dummy cc
; ac_word
=$2
1897 echo "$as_me:$LINENO: checking for $ac_word" >&5
1898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1899 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1900 echo $ECHO_N "(cached) $ECHO_C" >&6
1902 if test -n "$ac_ct_CC"; then
1903 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1905 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1909 test -z "$as_dir" && as_dir
=.
1910 for ac_exec_ext
in '' $ac_executable_extensions; do
1911 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1912 ac_cv_prog_ac_ct_CC
="cc"
1913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1921 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1922 if test -n "$ac_ct_CC"; then
1923 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1924 echo "${ECHO_T}$ac_ct_CC" >&6
1926 echo "$as_me:$LINENO: result: no" >&5
1927 echo "${ECHO_T}no" >&6
1936 if test -z "$CC"; then
1937 # Extract the first word of "cc", so it can be a program name with args.
1938 set dummy cc
; ac_word
=$2
1939 echo "$as_me:$LINENO: checking for $ac_word" >&5
1940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1941 if test "${ac_cv_prog_CC+set}" = set; then
1942 echo $ECHO_N "(cached) $ECHO_C" >&6
1944 if test -n "$CC"; then
1945 ac_cv_prog_CC
="$CC" # Let the user override the test.
1948 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1952 test -z "$as_dir" && as_dir
=.
1953 for ac_exec_ext
in '' $ac_executable_extensions; do
1954 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1955 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1956 ac_prog_rejected
=yes
1960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1966 if test $ac_prog_rejected = yes; then
1967 # We found a bogon in the path, so make sure we never use it.
1968 set dummy
$ac_cv_prog_CC
1970 if test $# != 0; then
1971 # We chose a different compiler from the bogus one.
1972 # However, it has the same basename, so the bogon will be chosen
1973 # first if we set CC to just the basename; use the full file name.
1975 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
1981 if test -n "$CC"; then
1982 echo "$as_me:$LINENO: result: $CC" >&5
1983 echo "${ECHO_T}$CC" >&6
1985 echo "$as_me:$LINENO: result: no" >&5
1986 echo "${ECHO_T}no" >&6
1990 if test -z "$CC"; then
1991 if test -n "$ac_tool_prefix"; then
1994 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1995 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
1996 echo "$as_me:$LINENO: checking for $ac_word" >&5
1997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1998 if test "${ac_cv_prog_CC+set}" = set; then
1999 echo $ECHO_N "(cached) $ECHO_C" >&6
2001 if test -n "$CC"; then
2002 ac_cv_prog_CC
="$CC" # Let the user override the test.
2004 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2008 test -z "$as_dir" && as_dir
=.
2009 for ac_exec_ext
in '' $ac_executable_extensions; do
2010 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2011 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2021 if test -n "$CC"; then
2022 echo "$as_me:$LINENO: result: $CC" >&5
2023 echo "${ECHO_T}$CC" >&6
2025 echo "$as_me:$LINENO: result: no" >&5
2026 echo "${ECHO_T}no" >&6
2029 test -n "$CC" && break
2032 if test -z "$CC"; then
2036 # Extract the first word of "$ac_prog", so it can be a program name with args.
2037 set dummy
$ac_prog; ac_word
=$2
2038 echo "$as_me:$LINENO: checking for $ac_word" >&5
2039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2040 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2041 echo $ECHO_N "(cached) $ECHO_C" >&6
2043 if test -n "$ac_ct_CC"; then
2044 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2046 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2050 test -z "$as_dir" && as_dir
=.
2051 for ac_exec_ext
in '' $ac_executable_extensions; do
2052 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2053 ac_cv_prog_ac_ct_CC
="$ac_prog"
2054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2062 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2063 if test -n "$ac_ct_CC"; then
2064 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2065 echo "${ECHO_T}$ac_ct_CC" >&6
2067 echo "$as_me:$LINENO: result: no" >&5
2068 echo "${ECHO_T}no" >&6
2071 test -n "$ac_ct_CC" && break
2080 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2081 See \`config.log' for more details." >&5
2082 echo "$as_me: error: no acceptable C compiler found in \$PATH
2083 See \`config.log' for more details." >&2;}
2084 { (exit 1); exit 1; }; }
2086 # Provide some information about the compiler.
2087 echo "$as_me:$LINENO:" \
2088 "checking for C compiler version" >&5
2089 ac_compiler
=`set X $ac_compile; echo $2`
2090 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2091 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2094 (exit $ac_status); }
2095 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2096 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2099 (exit $ac_status); }
2100 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2101 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2104 (exit $ac_status); }
2106 cat >conftest.
$ac_ext <<_ACEOF
2109 cat confdefs.h
>>conftest.
$ac_ext
2110 cat >>conftest.
$ac_ext <<_ACEOF
2111 /* end confdefs.h. */
2121 ac_clean_files_save
=$ac_clean_files
2122 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2123 # Try to create an executable without -o first, disregard a.out.
2124 # It will help us diagnose broken compilers, and finding out an intuition
2126 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2127 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2128 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2129 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2130 (eval $ac_link_default) 2>&5
2132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2133 (exit $ac_status); }; then
2134 # Find the output, starting from the most likely. This scheme is
2135 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2138 # Be careful to initialize this variable, since it used to be cached.
2139 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2141 # b.out is created by i960 compilers.
2142 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2144 test -f "$ac_file" ||
continue
2146 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2149 # This is the source file.
2152 # We found the default executable, but exeext='' is most
2156 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2157 # FIXME: I believe we export ac_cv_exeext for Libtool,
2158 # but it would be cool to find out if it's true. Does anybody
2159 # maintain Libtool? --akim.
2167 echo "$as_me: failed program was:" >&5
2168 sed 's/^/| /' conftest.
$ac_ext >&5
2170 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2171 See \`config.log' for more details." >&5
2172 echo "$as_me: error: C compiler cannot create executables
2173 See \`config.log' for more details." >&2;}
2174 { (exit 77); exit 77; }; }
2177 ac_exeext
=$ac_cv_exeext
2178 echo "$as_me:$LINENO: result: $ac_file" >&5
2179 echo "${ECHO_T}$ac_file" >&6
2181 # Check the compiler produces executables we can run. If not, either
2182 # the compiler is broken, or we cross compile.
2183 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2184 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2185 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2186 # If not cross compiling, check that we can run a simple program.
2187 if test "$cross_compiling" != yes; then
2188 if { ac_try
='./$ac_file'
2189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2193 (exit $ac_status); }; }; then
2196 if test "$cross_compiling" = maybe
; then
2199 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2200 If you meant to cross compile, use \`--host'.
2201 See \`config.log' for more details." >&5
2202 echo "$as_me: error: cannot run C compiled programs.
2203 If you meant to cross compile, use \`--host'.
2204 See \`config.log' for more details." >&2;}
2205 { (exit 1); exit 1; }; }
2209 echo "$as_me:$LINENO: result: yes" >&5
2210 echo "${ECHO_T}yes" >&6
2212 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2213 ac_clean_files
=$ac_clean_files_save
2214 # Check the compiler produces executables we can run. If not, either
2215 # the compiler is broken, or we cross compile.
2216 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2217 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2218 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2219 echo "${ECHO_T}$cross_compiling" >&6
2221 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2222 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2224 (eval $ac_link) 2>&5
2226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227 (exit $ac_status); }; then
2228 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2229 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2230 # work properly (i.e., refer to `conftest.exe'), while it won't with
2232 for ac_file
in conftest.exe conftest conftest.
*; do
2233 test -f "$ac_file" ||
continue
2235 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2236 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2243 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2244 See \`config.log' for more details." >&5
2245 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2246 See \`config.log' for more details." >&2;}
2247 { (exit 1); exit 1; }; }
2250 rm -f conftest
$ac_cv_exeext
2251 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2252 echo "${ECHO_T}$ac_cv_exeext" >&6
2254 rm -f conftest.
$ac_ext
2255 EXEEXT
=$ac_cv_exeext
2257 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2258 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2259 if test "${ac_cv_objext+set}" = set; then
2260 echo $ECHO_N "(cached) $ECHO_C" >&6
2262 cat >conftest.
$ac_ext <<_ACEOF
2265 cat confdefs.h
>>conftest.
$ac_ext
2266 cat >>conftest.
$ac_ext <<_ACEOF
2267 /* end confdefs.h. */
2277 rm -f conftest.o conftest.obj
2278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2279 (eval $ac_compile) 2>&5
2281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2282 (exit $ac_status); }; then
2283 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2285 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2286 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2291 echo "$as_me: failed program was:" >&5
2292 sed 's/^/| /' conftest.
$ac_ext >&5
2294 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2295 See \`config.log' for more details." >&5
2296 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2297 See \`config.log' for more details." >&2;}
2298 { (exit 1); exit 1; }; }
2301 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2303 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2304 echo "${ECHO_T}$ac_cv_objext" >&6
2305 OBJEXT
=$ac_cv_objext
2307 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2308 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2309 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2310 echo $ECHO_N "(cached) $ECHO_C" >&6
2312 cat >conftest.
$ac_ext <<_ACEOF
2315 cat confdefs.h
>>conftest.
$ac_ext
2316 cat >>conftest.
$ac_ext <<_ACEOF
2317 /* end confdefs.h. */
2330 rm -f conftest.
$ac_objext
2331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2332 (eval $ac_compile) 2>conftest.er1
2334 grep -v '^ *+' conftest.er1
>conftest.err
2336 cat conftest.err
>&5
2337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2338 (exit $ac_status); } &&
2339 { ac_try
='test -z "$ac_c_werror_flag"
2340 || test ! -s conftest.err'
2341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2345 (exit $ac_status); }; } &&
2346 { ac_try
='test -s conftest.$ac_objext'
2347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2351 (exit $ac_status); }; }; then
2354 echo "$as_me: failed program was:" >&5
2355 sed 's/^/| /' conftest.
$ac_ext >&5
2359 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2360 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2363 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2364 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2365 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2366 ac_test_CFLAGS
=${CFLAGS+set}
2367 ac_save_CFLAGS
=$CFLAGS
2369 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2370 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2371 if test "${ac_cv_prog_cc_g+set}" = set; then
2372 echo $ECHO_N "(cached) $ECHO_C" >&6
2374 cat >conftest.
$ac_ext <<_ACEOF
2377 cat confdefs.h
>>conftest.
$ac_ext
2378 cat >>conftest.
$ac_ext <<_ACEOF
2379 /* end confdefs.h. */
2389 rm -f conftest.
$ac_objext
2390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2391 (eval $ac_compile) 2>conftest.er1
2393 grep -v '^ *+' conftest.er1
>conftest.err
2395 cat conftest.err
>&5
2396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397 (exit $ac_status); } &&
2398 { ac_try
='test -z "$ac_c_werror_flag"
2399 || test ! -s conftest.err'
2400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404 (exit $ac_status); }; } &&
2405 { ac_try
='test -s conftest.$ac_objext'
2406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410 (exit $ac_status); }; }; then
2413 echo "$as_me: failed program was:" >&5
2414 sed 's/^/| /' conftest.
$ac_ext >&5
2418 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2420 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2421 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2422 if test "$ac_test_CFLAGS" = set; then
2423 CFLAGS
=$ac_save_CFLAGS
2424 elif test $ac_cv_prog_cc_g = yes; then
2425 if test "$GCC" = yes; then
2431 if test "$GCC" = yes; then
2437 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2438 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2439 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2440 echo $ECHO_N "(cached) $ECHO_C" >&6
2442 ac_cv_prog_cc_stdc
=no
2444 cat >conftest.
$ac_ext <<_ACEOF
2447 cat confdefs.h
>>conftest.
$ac_ext
2448 cat >>conftest.
$ac_ext <<_ACEOF
2449 /* end confdefs.h. */
2452 #include <sys/types.h>
2453 #include <sys/stat.h>
2454 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2455 struct buf { int x; };
2456 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2457 static char *e (p, i)
2463 static char *f (char * (*g) (char **, int), char **p, ...)
2468 s = g (p, va_arg (v,int));
2473 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2474 function prototypes and stuff, but not '\xHH' hex character constants.
2475 These don't provoke an error unfortunately, instead are silently treated
2476 as 'x'. The following induces an error, until -std1 is added to get
2477 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2478 array size at least. It's necessary to write '\x00'==0 to get something
2479 that's true only with -std1. */
2480 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2482 int test (int i, double x);
2483 struct s1 {int (*f) (int a);};
2484 struct s2 {int (*f) (double a);};
2485 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2491 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2496 # Don't try gcc -ansi; that turns off useful extensions and
2497 # breaks some systems' header files.
2498 # AIX -qlanglvl=ansi
2499 # Ultrix and OSF/1 -std1
2500 # HP-UX 10.20 and later -Ae
2501 # HP-UX older versions -Aa -D_HPUX_SOURCE
2502 # SVR4 -Xc -D__EXTENSIONS__
2503 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2505 CC
="$ac_save_CC $ac_arg"
2506 rm -f conftest.
$ac_objext
2507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2508 (eval $ac_compile) 2>conftest.er1
2510 grep -v '^ *+' conftest.er1
>conftest.err
2512 cat conftest.err
>&5
2513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514 (exit $ac_status); } &&
2515 { ac_try
='test -z "$ac_c_werror_flag"
2516 || test ! -s conftest.err'
2517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2521 (exit $ac_status); }; } &&
2522 { ac_try
='test -s conftest.$ac_objext'
2523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527 (exit $ac_status); }; }; then
2528 ac_cv_prog_cc_stdc
=$ac_arg
2531 echo "$as_me: failed program was:" >&5
2532 sed 's/^/| /' conftest.
$ac_ext >&5
2535 rm -f conftest.err conftest.
$ac_objext
2537 rm -f conftest.
$ac_ext conftest.
$ac_objext
2542 case "x$ac_cv_prog_cc_stdc" in
2544 echo "$as_me:$LINENO: result: none needed" >&5
2545 echo "${ECHO_T}none needed" >&6 ;;
2547 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2548 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2549 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2552 # Some people use a C++ compiler to compile C. Since we use `exit',
2553 # in C++ we need to declare it. In case someone uses the same compiler
2554 # for both compiling C and C++ we need to have the C++ compiler decide
2555 # the declaration of exit, since it's the most demanding environment.
2556 cat >conftest.
$ac_ext <<_ACEOF
2561 rm -f conftest.
$ac_objext
2562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2563 (eval $ac_compile) 2>conftest.er1
2565 grep -v '^ *+' conftest.er1
>conftest.err
2567 cat conftest.err
>&5
2568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569 (exit $ac_status); } &&
2570 { ac_try
='test -z "$ac_c_werror_flag"
2571 || test ! -s conftest.err'
2572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576 (exit $ac_status); }; } &&
2577 { ac_try
='test -s conftest.$ac_objext'
2578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582 (exit $ac_status); }; }; then
2583 for ac_declaration
in \
2585 'extern "C" void std::exit (int) throw (); using std::exit;' \
2586 'extern "C" void std::exit (int); using std::exit;' \
2587 'extern "C" void exit (int) throw ();' \
2588 'extern "C" void exit (int);' \
2591 cat >conftest.
$ac_ext <<_ACEOF
2594 cat confdefs.h
>>conftest.
$ac_ext
2595 cat >>conftest.
$ac_ext <<_ACEOF
2596 /* end confdefs.h. */
2607 rm -f conftest.
$ac_objext
2608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2609 (eval $ac_compile) 2>conftest.er1
2611 grep -v '^ *+' conftest.er1
>conftest.err
2613 cat conftest.err
>&5
2614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615 (exit $ac_status); } &&
2616 { ac_try
='test -z "$ac_c_werror_flag"
2617 || test ! -s conftest.err'
2618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622 (exit $ac_status); }; } &&
2623 { ac_try
='test -s conftest.$ac_objext'
2624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628 (exit $ac_status); }; }; then
2631 echo "$as_me: failed program was:" >&5
2632 sed 's/^/| /' conftest.
$ac_ext >&5
2636 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2637 cat >conftest.
$ac_ext <<_ACEOF
2640 cat confdefs.h
>>conftest.
$ac_ext
2641 cat >>conftest.
$ac_ext <<_ACEOF
2642 /* end confdefs.h. */
2652 rm -f conftest.
$ac_objext
2653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2654 (eval $ac_compile) 2>conftest.er1
2656 grep -v '^ *+' conftest.er1
>conftest.err
2658 cat conftest.err
>&5
2659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660 (exit $ac_status); } &&
2661 { ac_try
='test -z "$ac_c_werror_flag"
2662 || test ! -s conftest.err'
2663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667 (exit $ac_status); }; } &&
2668 { ac_try
='test -s conftest.$ac_objext'
2669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673 (exit $ac_status); }; }; then
2676 echo "$as_me: failed program was:" >&5
2677 sed 's/^/| /' conftest.
$ac_ext >&5
2680 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2683 if test -n "$ac_declaration"; then
2684 echo '#ifdef __cplusplus' >>confdefs.h
2685 echo $ac_declaration >>confdefs.h
2686 echo '#endif' >>confdefs.h
2690 echo "$as_me: failed program was:" >&5
2691 sed 's/^/| /' conftest.
$ac_ext >&5
2694 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2696 ac_cpp
='$CPP $CPPFLAGS'
2697 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2698 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2699 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2704 echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5
2705 echo $ECHO_N "checking for --with-cxx-main=<compiler>... $ECHO_C" >&6
2707 # Check whether --with-cxx_main or --without-cxx_main was given.
2708 if test "${with_cxx_main+set}" = set; then
2709 withval
="$with_cxx_main"
2713 no
) with_cxx_main
=no
2715 yes) with_cxx_main
=yes
2717 *) with_cxx_main
=yes
2730 echo "$as_me:$LINENO: result: $with_cxx_main" >&5
2731 echo "${ECHO_T}$with_cxx_main" >&6
2737 gcc
) # Extract the first word of "g++", so it can be a program name with args.
2738 set dummy g
++; ac_word
=$2
2739 echo "$as_me:$LINENO: checking for $ac_word" >&5
2740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2741 if test "${ac_cv_path_CXX+set}" = set; then
2742 echo $ECHO_N "(cached) $ECHO_C" >&6
2746 ac_cv_path_CXX
="$CXX" # Let the user override the test with a path.
2749 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2750 for as_dir
in notfound
2753 test -z "$as_dir" && as_dir
=.
2754 for ac_exec_ext
in '' $ac_executable_extensions; do
2755 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2756 ac_cv_path_CXX
="$as_dir/$ac_word$ac_exec_ext"
2757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2763 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX
="g++"
2769 if test -n "$CXX"; then
2770 echo "$as_me:$LINENO: result: $CXX" >&5
2771 echo "${ECHO_T}$CXX" >&6
2773 echo "$as_me:$LINENO: result: no" >&5
2774 echo "${ECHO_T}no" >&6
2777 cc
) # Extract the first word of "c++", so it can be a program name with args.
2778 set dummy c
++; ac_word
=$2
2779 echo "$as_me:$LINENO: checking for $ac_word" >&5
2780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2781 if test "${ac_cv_path_CXX+set}" = set; then
2782 echo $ECHO_N "(cached) $ECHO_C" >&6
2786 ac_cv_path_CXX
="$CXX" # Let the user override the test with a path.
2789 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2790 for as_dir
in notfound
2793 test -z "$as_dir" && as_dir
=.
2794 for ac_exec_ext
in '' $ac_executable_extensions; do
2795 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2796 ac_cv_path_CXX
="$as_dir/$ac_word$ac_exec_ext"
2797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2803 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX
="c++"
2809 if test -n "$CXX"; then
2810 echo "$as_me:$LINENO: result: $CXX" >&5
2811 echo "${ECHO_T}$CXX" >&6
2813 echo "$as_me:$LINENO: result: no" >&5
2814 echo "${ECHO_T}no" >&6
2818 if test "$CXX" = "notfound"
2825 for ac_prog
in $CCC c
++ g
++ gcc CC cxx cc
++ cl
2827 # Extract the first word of "$ac_prog", so it can be a program name with args.
2828 set dummy
$ac_prog; ac_word
=$2
2829 echo "$as_me:$LINENO: checking for $ac_word" >&5
2830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2831 if test "${ac_cv_prog_CXX+set}" = set; then
2832 echo $ECHO_N "(cached) $ECHO_C" >&6
2834 if test -n "$CXX"; then
2835 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
2837 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2841 test -z "$as_dir" && as_dir
=.
2842 for ac_exec_ext
in '' $ac_executable_extensions; do
2843 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2844 ac_cv_prog_CXX
="$ac_prog"
2845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2854 if test -n "$CXX"; then
2855 echo "$as_me:$LINENO: result: $CXX" >&5
2856 echo "${ECHO_T}$CXX" >&6
2858 echo "$as_me:$LINENO: result: no" >&5
2859 echo "${ECHO_T}no" >&6
2862 test -n "$CXX" && break
2864 test -n "$CXX" || CXX
="notfound"
2866 if test "$CXX" = "notfound"
2871 if test "$preset_cxx" != "$CXX"
2873 { echo "$as_me:$LINENO: WARNING:
2875 By default, distutils will build C++ extension modules with \"$CXX\".
2876 If this is not intended, then set CXX on the configure command line.
2878 echo "$as_me: WARNING:
2880 By default, distutils will build C++ extension modules with \"$CXX\".
2881 If this is not intended, then set CXX on the configure command line.
2886 # checks for UNIX variants that set C preprocessor variables
2889 ac_cpp
='$CPP $CPPFLAGS'
2890 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2891 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2892 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2893 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2894 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2895 # On Suns, sometimes $CPP names a directory.
2896 if test -n "$CPP" && test -d "$CPP"; then
2899 if test -z "$CPP"; then
2900 if test "${ac_cv_prog_CPP+set}" = set; then
2901 echo $ECHO_N "(cached) $ECHO_C" >&6
2903 # Double quotes because CPP needs to be expanded
2904 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2907 for ac_c_preproc_warn_flag
in '' yes
2909 # Use a header file that comes with gcc, so configuring glibc
2910 # with a fresh cross-compiler works.
2911 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2912 # <limits.h> exists even on freestanding compilers.
2913 # On the NeXT, cc -E runs the code through the compiler's parser,
2914 # not just through cpp. "Syntax error" is here to catch this case.
2915 cat >conftest.
$ac_ext <<_ACEOF
2918 cat confdefs.h
>>conftest.
$ac_ext
2919 cat >>conftest.
$ac_ext <<_ACEOF
2920 /* end confdefs.h. */
2922 # include <limits.h>
2924 # include <assert.h>
2928 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2929 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2931 grep -v '^ *+' conftest.er1
>conftest.err
2933 cat conftest.err
>&5
2934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935 (exit $ac_status); } >/dev
/null
; then
2936 if test -s conftest.err
; then
2937 ac_cpp_err
=$ac_c_preproc_warn_flag
2938 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2945 if test -z "$ac_cpp_err"; then
2948 echo "$as_me: failed program was:" >&5
2949 sed 's/^/| /' conftest.
$ac_ext >&5
2951 # Broken: fails on valid input.
2954 rm -f conftest.err conftest.
$ac_ext
2956 # OK, works on sane cases. Now check whether non-existent headers
2957 # can be detected and how.
2958 cat >conftest.
$ac_ext <<_ACEOF
2961 cat confdefs.h
>>conftest.
$ac_ext
2962 cat >>conftest.
$ac_ext <<_ACEOF
2963 /* end confdefs.h. */
2964 #include <ac_nonexistent.h>
2966 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2967 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2969 grep -v '^ *+' conftest.er1
>conftest.err
2971 cat conftest.err
>&5
2972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973 (exit $ac_status); } >/dev
/null
; then
2974 if test -s conftest.err
; then
2975 ac_cpp_err
=$ac_c_preproc_warn_flag
2976 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2983 if test -z "$ac_cpp_err"; then
2984 # Broken: success on invalid input.
2987 echo "$as_me: failed program was:" >&5
2988 sed 's/^/| /' conftest.
$ac_ext >&5
2990 # Passes both tests.
2994 rm -f conftest.err conftest.
$ac_ext
2997 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2998 rm -f conftest.err conftest.
$ac_ext
2999 if $ac_preproc_ok; then
3011 echo "$as_me:$LINENO: result: $CPP" >&5
3012 echo "${ECHO_T}$CPP" >&6
3014 for ac_c_preproc_warn_flag
in '' yes
3016 # Use a header file that comes with gcc, so configuring glibc
3017 # with a fresh cross-compiler works.
3018 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3019 # <limits.h> exists even on freestanding compilers.
3020 # On the NeXT, cc -E runs the code through the compiler's parser,
3021 # not just through cpp. "Syntax error" is here to catch this case.
3022 cat >conftest.
$ac_ext <<_ACEOF
3025 cat confdefs.h
>>conftest.
$ac_ext
3026 cat >>conftest.
$ac_ext <<_ACEOF
3027 /* end confdefs.h. */
3029 # include <limits.h>
3031 # include <assert.h>
3035 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3036 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3038 grep -v '^ *+' conftest.er1
>conftest.err
3040 cat conftest.err
>&5
3041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042 (exit $ac_status); } >/dev
/null
; then
3043 if test -s conftest.err
; then
3044 ac_cpp_err
=$ac_c_preproc_warn_flag
3045 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3052 if test -z "$ac_cpp_err"; then
3055 echo "$as_me: failed program was:" >&5
3056 sed 's/^/| /' conftest.
$ac_ext >&5
3058 # Broken: fails on valid input.
3061 rm -f conftest.err conftest.
$ac_ext
3063 # OK, works on sane cases. Now check whether non-existent headers
3064 # can be detected and how.
3065 cat >conftest.
$ac_ext <<_ACEOF
3068 cat confdefs.h
>>conftest.
$ac_ext
3069 cat >>conftest.
$ac_ext <<_ACEOF
3070 /* end confdefs.h. */
3071 #include <ac_nonexistent.h>
3073 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3074 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3076 grep -v '^ *+' conftest.er1
>conftest.err
3078 cat conftest.err
>&5
3079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3080 (exit $ac_status); } >/dev
/null
; then
3081 if test -s conftest.err
; then
3082 ac_cpp_err
=$ac_c_preproc_warn_flag
3083 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3090 if test -z "$ac_cpp_err"; then
3091 # Broken: success on invalid input.
3094 echo "$as_me: failed program was:" >&5
3095 sed 's/^/| /' conftest.
$ac_ext >&5
3097 # Passes both tests.
3101 rm -f conftest.err conftest.
$ac_ext
3104 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3105 rm -f conftest.err conftest.
$ac_ext
3106 if $ac_preproc_ok; then
3109 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3110 See \`config.log' for more details." >&5
3111 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3112 See \`config.log' for more details." >&2;}
3113 { (exit 1); exit 1; }; }
3117 ac_cpp
='$CPP $CPPFLAGS'
3118 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3119 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3120 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3123 echo "$as_me:$LINENO: checking for egrep" >&5
3124 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3125 if test "${ac_cv_prog_egrep+set}" = set; then
3126 echo $ECHO_N "(cached) $ECHO_C" >&6
3128 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3129 then ac_cv_prog_egrep
='grep -E'
3130 else ac_cv_prog_egrep
='egrep'
3133 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3134 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3135 EGREP
=$ac_cv_prog_egrep
3139 echo "$as_me:$LINENO: checking for AIX" >&5
3140 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3141 cat >conftest.
$ac_ext <<_ACEOF
3144 cat confdefs.h
>>conftest.
$ac_ext
3145 cat >>conftest.
$ac_ext <<_ACEOF
3146 /* end confdefs.h. */
3152 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3153 $EGREP "yes" >/dev
/null
2>&1; then
3154 echo "$as_me:$LINENO: result: yes" >&5
3155 echo "${ECHO_T}yes" >&6
3156 cat >>confdefs.h
<<\_ACEOF
3157 #define _ALL_SOURCE 1
3161 echo "$as_me:$LINENO: result: no" >&5
3162 echo "${ECHO_T}no" >&6
3168 # Check for unsupported systems
3169 case $ac_sys_system/$ac_sys_release in
3171 echo This system \
($ac_sys_system/$ac_sys_release\
) is no longer supported.
3172 echo See README
for details.
3177 echo "$as_me:$LINENO: checking for --with-suffix" >&5
3178 echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6
3180 # Check whether --with-suffix or --without-suffix was given.
3181 if test "${with_suffix+set}" = set; then
3182 withval
="$with_suffix"
3187 *) EXEEXT
=$withval;;
3190 echo "$as_me:$LINENO: result: $EXEEXT" >&5
3191 echo "${ECHO_T}$EXEEXT" >&6
3193 # Test whether we're running on a non-case-sensitive system, in which
3194 # case we give a warning if no ext is given
3196 echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
3197 echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6
3198 if test ! -d CaseSensitiveTestDir
; then
3199 mkdir CaseSensitiveTestDir
3202 if test -d casesensitivetestdir
3204 echo "$as_me:$LINENO: result: yes" >&5
3205 echo "${ECHO_T}yes" >&6
3208 echo "$as_me:$LINENO: result: no" >&5
3209 echo "${ECHO_T}no" >&6
3212 rmdir CaseSensitiveTestDir
3217 gcc
) CC
="$CC -D_HAVE_BSDI";;
3221 case $ac_sys_system in
3224 cc|
*/cc
) CC
="$CC -Ae";;
3228 cc
) CC
="$CC -Wl,-Bexport";;
3231 # Some functions have a prototype only with that define, e.g. confstr
3233 cat >>confdefs.h
<<\_ACEOF
3234 #define __EXTENSIONS__ 1
3242 echo "$as_me:$LINENO: checking LIBRARY" >&5
3243 echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6
3244 if test -z "$LIBRARY"
3246 LIBRARY
='libpython$(VERSION).a'
3248 echo "$as_me:$LINENO: result: $LIBRARY" >&5
3249 echo "${ECHO_T}$LIBRARY" >&6
3251 # LDLIBRARY is the name of the library to link against (as opposed to the
3252 # name of the library into which to insert object files). BLDLIBRARY is also
3253 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
3254 # is blank as the main program is not linked directly against LDLIBRARY.
3255 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
3256 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
3257 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
3258 # DLLLIBRARY is the shared (i.e., DLL) library.
3260 # RUNSHARED is used to run shared python without installed libraries
3262 # INSTSONAME is the name of the shared library that will be use to install
3263 # on the system - some systems like version suffix, others don't
3270 LDLIBRARY
="$LIBRARY"
3271 BLDLIBRARY
='$(LDLIBRARY)'
3272 INSTSONAME
='$(LDLIBRARY)'
3277 # LINKCC is the command that links the python executable -- default is $(CC).
3278 # If CXX is set, and if it is needed to link a main function that was
3279 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
3280 # python might then depend on the C++ runtime
3281 # This is altered for AIX in order to build the export list before
3284 echo "$as_me:$LINENO: checking LINKCC" >&5
3285 echo $ECHO_N "checking LINKCC... $ECHO_C" >&6
3286 if test -z "$LINKCC"
3288 LINKCC
='$(PURIFY) $(MAINCC)'
3289 case $ac_sys_system in
3292 if test $ac_sys_release -ge 5 -o \
3293 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
3296 LINKCC
="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
3298 LINKCC
="$LINKCC -L/usr/lib/ia64l64";;
3301 echo "$as_me:$LINENO: result: $LINKCC" >&5
3302 echo "${ECHO_T}$LINKCC" >&6
3304 echo "$as_me:$LINENO: checking for --enable-shared" >&5
3305 echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6
3306 # Check whether --enable-shared or --disable-shared was given.
3307 if test "${enable_shared+set}" = set; then
3308 enableval
="$enable_shared"
3312 if test -z "$enable_shared"
3314 case $ac_sys_system in
3316 enable_shared
="yes";;
3318 enable_shared
="no";;
3321 echo "$as_me:$LINENO: result: $enable_shared" >&5
3322 echo "${ECHO_T}$enable_shared" >&6
3324 echo "$as_me:$LINENO: checking for --enable-profiling" >&5
3325 echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6
3326 # Check whether --enable-profiling or --disable-profiling was given.
3327 if test "${enable_profiling+set}" = set; then
3328 enableval
="$enable_profiling"
3331 if test "$cross_compiling" = yes; then
3332 ac_enable_profiling
="no"
3334 cat >conftest.
$ac_ext <<_ACEOF
3337 cat confdefs.h
>>conftest.
$ac_ext
3338 cat >>conftest.
$ac_ext <<_ACEOF
3339 /* end confdefs.h. */
3340 int main() { return 0; }
3342 rm -f conftest
$ac_exeext
3343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3344 (eval $ac_link) 2>&5
3346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352 (exit $ac_status); }; }; then
3353 ac_enable_profiling
="yes"
3355 echo "$as_me: program exited with status $ac_status" >&5
3356 echo "$as_me: failed program was:" >&5
3357 sed 's/^/| /' conftest.
$ac_ext >&5
3360 ac_enable_profiling
="no"
3362 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3366 echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5
3367 echo "${ECHO_T}$ac_enable_profiling" >&6
3369 case "$ac_enable_profiling" in
3371 BASECFLAGS
="-pg $BASECFLAGS"
3372 LDFLAGS
="-pg $LDFLAGS"
3376 echo "$as_me:$LINENO: checking LDLIBRARY" >&5
3377 echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6
3379 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
3380 # library that we build, but we do not want to link against it (we
3381 # will find it with a -framework option). For this reason there is an
3382 # extra variable BLDLIBRARY against which Python and the extension
3383 # modules are linked, BLDLIBRARY. This is normally the same as
3384 # LDLIBRARY, but empty for MacOSX framework builds.
3385 if test "$enable_framework"
3387 LDLIBRARY
='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
3388 RUNSHARED
=DYLD_FRAMEWORK_PATH
="`pwd`:$DYLD_FRAMEWORK_PATH"
3391 BLDLIBRARY
='$(LDLIBRARY)'
3394 # Other platforms follow
3395 if test $enable_shared = "yes"; then
3397 cat >>confdefs.h
<<\_ACEOF
3398 #define Py_ENABLE_SHARED 1
3401 case $ac_sys_system in
3403 LDLIBRARY
='libpython$(VERSION).so'
3406 LDLIBRARY
='libpython$(VERSION).dll.a'
3407 DLLLIBRARY
='libpython$(VERSION).dll'
3410 LDLIBRARY
='libpython$(VERSION).so'
3411 BLDLIBRARY
='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
3412 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
3413 INSTSONAME
="$LDLIBRARY".
$SOVERSION
3415 Linux
*|GNU
*|NetBSD
*|FreeBSD
*|DragonFly
*)
3416 LDLIBRARY
='libpython$(VERSION).so'
3417 BLDLIBRARY
='-L. -lpython$(VERSION)'
3418 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
3419 case $ac_sys_system in
3421 SOVERSION
=`echo $SOVERSION|cut -d "." -f 1`
3424 INSTSONAME
="$LDLIBRARY".
$SOVERSION
3429 LDLIBRARY
='libpython$(VERSION).so'
3432 LDLIBRARY
='libpython$(VERSION).sl'
3435 BLDLIBRARY
='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
3436 RUNSHARED
=SHLIB_PATH
=`pwd`:${SHLIB_PATH}
3439 LDLIBRARY
='libpython$(VERSION).so'
3440 BLDLIBRARY
='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
3441 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
3444 LDLIBRARY
='libpython$(VERSION).so'
3445 BLDLIBRARY
='-L. -lpython$(VERSION)'
3446 RUNSHARED
=DLL_PATH
=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
3449 else # shared is disabled
3450 case $ac_sys_system in
3452 BLDLIBRARY
='$(LIBRARY)'
3453 LDLIBRARY
='libpython$(VERSION).dll.a'
3458 echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
3459 echo "${ECHO_T}$LDLIBRARY" >&6
3461 if test -n "$ac_tool_prefix"; then
3462 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3463 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3464 echo "$as_me:$LINENO: checking for $ac_word" >&5
3465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3466 if test "${ac_cv_prog_RANLIB+set}" = set; then
3467 echo $ECHO_N "(cached) $ECHO_C" >&6
3469 if test -n "$RANLIB"; then
3470 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3472 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3476 test -z "$as_dir" && as_dir
=.
3477 for ac_exec_ext
in '' $ac_executable_extensions; do
3478 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3479 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3488 RANLIB
=$ac_cv_prog_RANLIB
3489 if test -n "$RANLIB"; then
3490 echo "$as_me:$LINENO: result: $RANLIB" >&5
3491 echo "${ECHO_T}$RANLIB" >&6
3493 echo "$as_me:$LINENO: result: no" >&5
3494 echo "${ECHO_T}no" >&6
3498 if test -z "$ac_cv_prog_RANLIB"; then
3499 ac_ct_RANLIB
=$RANLIB
3500 # Extract the first word of "ranlib", so it can be a program name with args.
3501 set dummy ranlib
; ac_word
=$2
3502 echo "$as_me:$LINENO: checking for $ac_word" >&5
3503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3504 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3505 echo $ECHO_N "(cached) $ECHO_C" >&6
3507 if test -n "$ac_ct_RANLIB"; then
3508 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3510 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3514 test -z "$as_dir" && as_dir
=.
3515 for ac_exec_ext
in '' $ac_executable_extensions; do
3516 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3517 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3524 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
3527 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3528 if test -n "$ac_ct_RANLIB"; then
3529 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3530 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3532 echo "$as_me:$LINENO: result: no" >&5
3533 echo "${ECHO_T}no" >&6
3536 RANLIB
=$ac_ct_RANLIB
3538 RANLIB
="$ac_cv_prog_RANLIB"
3542 for ac_prog
in ar aal
3544 # Extract the first word of "$ac_prog", so it can be a program name with args.
3545 set dummy
$ac_prog; ac_word
=$2
3546 echo "$as_me:$LINENO: checking for $ac_word" >&5
3547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3548 if test "${ac_cv_prog_AR+set}" = set; then
3549 echo $ECHO_N "(cached) $ECHO_C" >&6
3551 if test -n "$AR"; then
3552 ac_cv_prog_AR
="$AR" # Let the user override the test.
3554 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3558 test -z "$as_dir" && as_dir
=.
3559 for ac_exec_ext
in '' $ac_executable_extensions; do
3560 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3561 ac_cv_prog_AR
="$ac_prog"
3562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3571 if test -n "$AR"; then
3572 echo "$as_me:$LINENO: result: $AR" >&5
3573 echo "${ECHO_T}$AR" >&6
3575 echo "$as_me:$LINENO: result: no" >&5
3576 echo "${ECHO_T}no" >&6
3579 test -n "$AR" && break
3581 test -n "$AR" || AR
="ar"
3585 # Extract the first word of "svnversion", so it can be a program name with args.
3586 set dummy svnversion
; ac_word
=$2
3587 echo "$as_me:$LINENO: checking for $ac_word" >&5
3588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3589 if test "${ac_cv_prog_SVNVERSION+set}" = set; then
3590 echo $ECHO_N "(cached) $ECHO_C" >&6
3592 if test -n "$SVNVERSION"; then
3593 ac_cv_prog_SVNVERSION
="$SVNVERSION" # Let the user override the test.
3595 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3599 test -z "$as_dir" && as_dir
=.
3600 for ac_exec_ext
in '' $ac_executable_extensions; do
3601 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3602 ac_cv_prog_SVNVERSION
="found"
3603 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3609 test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION
="not-found"
3612 SVNVERSION
=$ac_cv_prog_SVNVERSION
3613 if test -n "$SVNVERSION"; then
3614 echo "$as_me:$LINENO: result: $SVNVERSION" >&5
3615 echo "${ECHO_T}$SVNVERSION" >&6
3617 echo "$as_me:$LINENO: result: no" >&5
3618 echo "${ECHO_T}no" >&6
3621 if test $SVNVERSION = found
3623 SVNVERSION
="svnversion \$(srcdir)"
3625 SVNVERSION
="echo exported"
3630 # install -d does not work on BSDI or HP-UX
3631 if test -z "$INSTALL"
3633 INSTALL
="${srcdir}/install-sh -c"
3637 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
3638 if test -f $ac_dir/install-sh
; then
3640 ac_install_sh
="$ac_aux_dir/install-sh -c"
3642 elif test -f $ac_dir/install.sh
; then
3644 ac_install_sh
="$ac_aux_dir/install.sh -c"
3646 elif test -f $ac_dir/shtool
; then
3648 ac_install_sh
="$ac_aux_dir/shtool install -c"
3652 if test -z "$ac_aux_dir"; then
3653 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
3654 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
3655 { (exit 1); exit 1; }; }
3657 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
3658 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
3659 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3661 # Find a good install program. We prefer a C program (faster),
3662 # so one script is as good as another. But avoid the broken or
3663 # incompatible versions:
3664 # SysV /etc/install, /usr/sbin/install
3665 # SunOS /usr/etc/install
3666 # IRIX /sbin/install
3668 # AmigaOS /C/install, which installs bootblocks on floppy discs
3669 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3670 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3671 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3672 # OS/2's system install, which has a completely different semantic
3673 # ./install, which can be erroneously created by make from ./install.sh.
3674 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3675 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3676 if test -z "$INSTALL"; then
3677 if test "${ac_cv_path_install+set}" = set; then
3678 echo $ECHO_N "(cached) $ECHO_C" >&6
3680 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3684 test -z "$as_dir" && as_dir
=.
3685 # Account for people who put trailing slashes in PATH elements.
3687 .
/ | .
// |
/cC
/* | \
3688 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3689 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
3692 # OSF1 and SCO ODT 3.0 have their own names for install.
3693 # Don't use installbsd from OSF since it installs stuff as root
3695 for ac_prog
in ginstall scoinst
install; do
3696 for ac_exec_ext
in '' $ac_executable_extensions; do
3697 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3698 if test $ac_prog = install &&
3699 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3700 # AIX install. It has an incompatible calling convention.
3702 elif test $ac_prog = install &&
3703 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3704 # program-specific install script used by HP pwplus--don't use.
3707 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3719 if test "${ac_cv_path_install+set}" = set; then
3720 INSTALL
=$ac_cv_path_install
3722 # As a last resort, use the slow shell script. We don't cache a
3723 # path for INSTALL within a source directory, because that will
3724 # break other packages using the cache if that directory is
3725 # removed, or if the path is relative.
3726 INSTALL
=$ac_install_sh
3729 echo "$as_me:$LINENO: result: $INSTALL" >&5
3730 echo "${ECHO_T}$INSTALL" >&6
3732 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3733 # It thinks the first close brace ends the variable substitution.
3734 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3736 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3738 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3741 # Not every filesystem supports hard links
3743 if test -z "$LN" ; then
3744 case $ac_sys_system in
3746 CYGWIN
*) LN
="ln -s";;
3747 atheos
*) LN
="ln -s";;
3752 # Check for --with-pydebug
3753 echo "$as_me:$LINENO: checking for --with-pydebug" >&5
3754 echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6
3756 # Check whether --with-pydebug or --without-pydebug was given.
3757 if test "${with_pydebug+set}" = set; then
3758 withval
="$with_pydebug"
3760 if test "$withval" != no
3763 cat >>confdefs.h
<<\_ACEOF
3767 echo "$as_me:$LINENO: result: yes" >&5
3768 echo "${ECHO_T}yes" >&6;
3770 else echo "$as_me:$LINENO: result: no" >&5
3771 echo "${ECHO_T}no" >&6; Py_DEBUG
='false'
3774 echo "$as_me:$LINENO: result: no" >&5
3775 echo "${ECHO_T}no" >&6
3778 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
3779 # merged with this chunk of code?
3781 # Optimizer/debugger flags
3782 # ------------------------
3783 # (The following bit of code is complicated enough - please keep things
3784 # indented properly. Just pretend you're editing Python code. ;-)
3786 # There are two parallel sets of case statements below, one that checks to
3787 # see if OPT was set and one that does BASECFLAGS setting based upon
3788 # compiler and platform. BASECFLAGS tweaks need to be made even if the
3791 # tweak OPT based on compiler and platform, only if the user didn't set
3792 # it on the command line
3798 if test "$CC" != 'g++' ; then
3799 STRICT_PROTO
="-Wstrict-prototypes"
3801 case $ac_cv_prog_cc_g in
3803 if test "$Py_DEBUG" = 'true' ; then
3804 # Optimization messes up debuggers, so turn it off for
3806 OPT
="-g -Wall $STRICT_PROTO"
3808 OPT
="-g -O3 -Wall $STRICT_PROTO"
3812 OPT
="-O3 -Wall $STRICT_PROTO"
3815 case $ac_sys_system in
3816 SCO_SV
*) OPT
="$OPT -m486 -DSCO5"
3826 # The current (beta) Monterey compiler dies with optimizations
3827 # XXX what is Monterey? Does it still die w/ -O? Can we get rid of this?
3828 case $ac_sys_system in
3837 # tweak BASECFLAGS based on compiler and platform
3840 # Python violates C99 rules, by casting between incompatible
3841 # pointer types. GCC may generate bad code as a result of that,
3842 # so use -fno-strict-aliasing if supported.
3843 echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5
3844 echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6
3846 CC
="$CC -fno-strict-aliasing"
3847 if test "$cross_compiling" = yes; then
3848 ac_cv_no_strict_aliasing_ok
=no
3850 cat >conftest.
$ac_ext <<_ACEOF
3853 cat confdefs.h
>>conftest.
$ac_ext
3854 cat >>conftest.
$ac_ext <<_ACEOF
3855 /* end confdefs.h. */
3856 int main() { return 0; }
3858 rm -f conftest
$ac_exeext
3859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3860 (eval $ac_link) 2>&5
3862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3863 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868 (exit $ac_status); }; }; then
3869 ac_cv_no_strict_aliasing_ok
=yes
3871 echo "$as_me: program exited with status $ac_status" >&5
3872 echo "$as_me: failed program was:" >&5
3873 sed 's/^/| /' conftest.
$ac_ext >&5
3876 ac_cv_no_strict_aliasing_ok
=no
3878 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3881 echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5
3882 echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6
3883 if test $ac_cv_no_strict_aliasing_ok = yes
3885 BASECFLAGS
="$BASECFLAGS -fno-strict-aliasing"
3887 case $ac_sys_system in
3889 BASECFLAGS
="$BASECFLAGS -m486 -DSCO5"
3891 # is there any other compiler on Darwin besides gcc?
3893 BASECFLAGS
="$BASECFLAGS -Wno-long-double -no-cpp-precomp -mno-fused-madd"
3894 if test "${enable_universalsdk}"; then
3895 BASECFLAGS
="-arch ppc -arch i386 -isysroot ${UNIVERSALSDK} ${BASECFLAGS}"
3900 BASECFLAGS
="$BASECFLAGS -mieee"
3906 case $ac_sys_system in
3907 OpenUNIX
*|UnixWare
*)
3908 BASECFLAGS
="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
3911 BASECFLAGS
="$BASECFLAGS -ieee -std"
3914 BASECFLAGS
="$BASECFLAGS -belf -Ki486 -DSCO5"
3920 if test "$Py_DEBUG" = 'true'; then
3926 if test "$ac_arch_flags"
3928 BASECFLAGS
="$BASECFLAGS $ac_arch_flags"
3931 # disable check for icc since it seems to pass, but generates a warning
3934 ac_cv_opt_olimit_ok
=no
3937 echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
3938 echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6
3939 if test "${ac_cv_opt_olimit_ok+set}" = set; then
3940 echo $ECHO_N "(cached) $ECHO_C" >&6
3943 CC
="$CC -OPT:Olimit=0"
3944 if test "$cross_compiling" = yes; then
3945 ac_cv_opt_olimit_ok
=no
3947 cat >conftest.
$ac_ext <<_ACEOF
3950 cat confdefs.h
>>conftest.
$ac_ext
3951 cat >>conftest.
$ac_ext <<_ACEOF
3952 /* end confdefs.h. */
3953 int main() { return 0; }
3955 rm -f conftest
$ac_exeext
3956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3957 (eval $ac_link) 2>&5
3959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3965 (exit $ac_status); }; }; then
3966 ac_cv_opt_olimit_ok
=yes
3968 echo "$as_me: program exited with status $ac_status" >&5
3969 echo "$as_me: failed program was:" >&5
3970 sed 's/^/| /' conftest.
$ac_ext >&5
3973 ac_cv_opt_olimit_ok
=no
3975 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3980 echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
3981 echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6
3982 if test $ac_cv_opt_olimit_ok = yes; then
3983 case $ac_sys_system in
3984 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
3985 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
3990 BASECFLAGS
="$BASECFLAGS -OPT:Olimit=0"
3994 echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
3995 echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6
3996 if test "${ac_cv_olimit_ok+set}" = set; then
3997 echo $ECHO_N "(cached) $ECHO_C" >&6
4000 CC
="$CC -Olimit 1500"
4001 if test "$cross_compiling" = yes; then
4004 cat >conftest.
$ac_ext <<_ACEOF
4007 cat confdefs.h
>>conftest.
$ac_ext
4008 cat >>conftest.
$ac_ext <<_ACEOF
4009 /* end confdefs.h. */
4010 int main() { return 0; }
4012 rm -f conftest
$ac_exeext
4013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4014 (eval $ac_link) 2>&5
4016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4017 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4022 (exit $ac_status); }; }; then
4025 echo "$as_me: program exited with status $ac_status" >&5
4026 echo "$as_me: failed program was:" >&5
4027 sed 's/^/| /' conftest.
$ac_ext >&5
4032 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4037 echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
4038 echo "${ECHO_T}$ac_cv_olimit_ok" >&6
4039 if test $ac_cv_olimit_ok = yes; then
4040 BASECFLAGS
="$BASECFLAGS -Olimit 1500"
4044 # Check whether GCC supports PyArg_ParseTuple format
4045 if test "$GCC" = "yes"
4047 echo "$as_me:$LINENO: checking whether gcc supports ParseTuple __format__" >&5
4048 echo $ECHO_N "checking whether gcc supports ParseTuple __format__... $ECHO_C" >&6
4050 CFLAGS
="$CFLAGS -Werror"
4051 cat >conftest.
$ac_ext <<_ACEOF
4054 cat confdefs.h
>>conftest.
$ac_ext
4055 cat >>conftest.
$ac_ext <<_ACEOF
4056 /* end confdefs.h. */
4058 void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2)));
4068 rm -f conftest.
$ac_objext
4069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4070 (eval $ac_compile) 2>conftest.er1
4072 grep -v '^ *+' conftest.er1
>conftest.err
4074 cat conftest.err
>&5
4075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076 (exit $ac_status); } &&
4077 { ac_try
='test -z "$ac_c_werror_flag"
4078 || test ! -s conftest.err'
4079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4083 (exit $ac_status); }; } &&
4084 { ac_try
='test -s conftest.$ac_objext'
4085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4089 (exit $ac_status); }; }; then
4091 cat >>confdefs.h
<<\_ACEOF
4092 #define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1
4095 echo "$as_me:$LINENO: result: yes" >&5
4096 echo "${ECHO_T}yes" >&6
4098 echo "$as_me: failed program was:" >&5
4099 sed 's/^/| /' conftest.
$ac_ext >&5
4101 echo "$as_me:$LINENO: result: no" >&5
4102 echo "${ECHO_T}no" >&6
4105 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4109 # On some compilers, pthreads are available without further options
4110 # (e.g. MacOS X). On some of these systems, the compiler will not
4111 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
4112 # So we have to see first whether pthreads are available without
4113 # options before we can check whether -Kpthread improves anything.
4114 echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
4115 echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6
4116 if test "${ac_cv_pthread_is_default+set}" = set; then
4117 echo $ECHO_N "(cached) $ECHO_C" >&6
4119 if test "$cross_compiling" = yes; then
4120 ac_cv_pthread_is_default
=no
4122 cat >conftest.
$ac_ext <<_ACEOF
4125 cat confdefs.h
>>conftest.
$ac_ext
4126 cat >>conftest.
$ac_ext <<_ACEOF
4127 /* end confdefs.h. */
4129 #include <pthread.h>
4131 void* routine(void* p){return NULL;}
4135 if(pthread_create(&p,NULL,routine,NULL)!=0)
4137 (void)pthread_detach(p);
4142 rm -f conftest
$ac_exeext
4143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4144 (eval $ac_link) 2>&5
4146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4147 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4152 (exit $ac_status); }; }; then
4154 ac_cv_pthread_is_default
=yes
4159 echo "$as_me: program exited with status $ac_status" >&5
4160 echo "$as_me: failed program was:" >&5
4161 sed 's/^/| /' conftest.
$ac_ext >&5
4164 ac_cv_pthread_is_default
=no
4166 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4171 echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
4172 echo "${ECHO_T}$ac_cv_pthread_is_default" >&6
4175 if test $ac_cv_pthread_is_default = yes
4179 # -Kpthread, if available, provides the right #defines
4180 # and linker options to make pthread_create available
4181 # Some compilers won't report that they do not support -Kpthread,
4182 # so we need to run a program to see whether it really made the
4183 # function available.
4184 echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
4185 echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6
4186 if test "${ac_cv_kpthread+set}" = set; then
4187 echo $ECHO_N "(cached) $ECHO_C" >&6
4191 if test "$cross_compiling" = yes; then
4194 cat >conftest.
$ac_ext <<_ACEOF
4197 cat confdefs.h
>>conftest.
$ac_ext
4198 cat >>conftest.
$ac_ext <<_ACEOF
4199 /* end confdefs.h. */
4201 #include <pthread.h>
4203 void* routine(void* p){return NULL;}
4207 if(pthread_create(&p,NULL,routine,NULL)!=0)
4209 (void)pthread_detach(p);
4214 rm -f conftest
$ac_exeext
4215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4216 (eval $ac_link) 2>&5
4218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4219 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224 (exit $ac_status); }; }; then
4227 echo "$as_me: program exited with status $ac_status" >&5
4228 echo "$as_me: failed program was:" >&5
4229 sed 's/^/| /' conftest.
$ac_ext >&5
4234 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4239 echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
4240 echo "${ECHO_T}$ac_cv_kpthread" >&6
4243 if test $ac_cv_kpthread = no
-a $ac_cv_pthread_is_default = no
4245 # -Kthread, if available, provides the right #defines
4246 # and linker options to make pthread_create available
4247 # Some compilers won't report that they do not support -Kthread,
4248 # so we need to run a program to see whether it really made the
4249 # function available.
4250 echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
4251 echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6
4252 if test "${ac_cv_kthread+set}" = set; then
4253 echo $ECHO_N "(cached) $ECHO_C" >&6
4257 if test "$cross_compiling" = yes; then
4260 cat >conftest.
$ac_ext <<_ACEOF
4263 cat confdefs.h
>>conftest.
$ac_ext
4264 cat >>conftest.
$ac_ext <<_ACEOF
4265 /* end confdefs.h. */
4267 #include <pthread.h>
4269 void* routine(void* p){return NULL;}
4273 if(pthread_create(&p,NULL,routine,NULL)!=0)
4275 (void)pthread_detach(p);
4280 rm -f conftest
$ac_exeext
4281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4282 (eval $ac_link) 2>&5
4284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4285 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4290 (exit $ac_status); }; }; then
4293 echo "$as_me: program exited with status $ac_status" >&5
4294 echo "$as_me: failed program was:" >&5
4295 sed 's/^/| /' conftest.
$ac_ext >&5
4300 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4305 echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
4306 echo "${ECHO_T}$ac_cv_kthread" >&6
4309 if test $ac_cv_kthread = no
-a $ac_cv_pthread_is_default = no
4311 # -pthread, if available, provides the right #defines
4312 # and linker options to make pthread_create available
4313 # Some compilers won't report that they do not support -pthread,
4314 # so we need to run a program to see whether it really made the
4315 # function available.
4316 echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
4317 echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6
4318 if test "${ac_cv_thread+set}" = set; then
4319 echo $ECHO_N "(cached) $ECHO_C" >&6
4323 if test "$cross_compiling" = yes; then
4326 cat >conftest.
$ac_ext <<_ACEOF
4329 cat confdefs.h
>>conftest.
$ac_ext
4330 cat >>conftest.
$ac_ext <<_ACEOF
4331 /* end confdefs.h. */
4333 #include <pthread.h>
4335 void* routine(void* p){return NULL;}
4339 if(pthread_create(&p,NULL,routine,NULL)!=0)
4341 (void)pthread_detach(p);
4346 rm -f conftest
$ac_exeext
4347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4348 (eval $ac_link) 2>&5
4350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4356 (exit $ac_status); }; }; then
4359 echo "$as_me: program exited with status $ac_status" >&5
4360 echo "$as_me: failed program was:" >&5
4361 sed 's/^/| /' conftest.
$ac_ext >&5
4366 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4371 echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
4372 echo "${ECHO_T}$ac_cv_pthread" >&6
4375 # If we have set a CC compiler flag for thread support then
4376 # check if it works for CXX, too.
4380 echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5
4381 echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6
4384 if test "$ac_cv_kpthread" = "yes"
4386 CXX
="$CXX -Kpthread"
4387 ac_cv_cxx_thread
=yes
4388 elif test "$ac_cv_kthread" = "yes"
4391 ac_cv_cxx_thread
=yes
4392 elif test "$ac_cv_pthread" = "yes"
4395 ac_cv_cxx_thread
=yes
4398 if test $ac_cv_cxx_thread = yes
4400 echo 'void foo();int main(){foo();}void foo(){}' > conftest.
$ac_ext
4401 $CXX -c conftest.
$ac_ext 2>&5
4402 if $CXX -o conftest
$ac_exeext conftest.
$ac_objext 2>&5 \
4403 && test -s conftest
$ac_exeext && .
/conftest
$ac_exeext
4405 ac_cv_cxx_thread
=yes
4411 echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
4412 echo "${ECHO_T}$ac_cv_cxx_thread" >&6
4417 # checks for header files
4418 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4419 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4420 if test "${ac_cv_header_stdc+set}" = set; then
4421 echo $ECHO_N "(cached) $ECHO_C" >&6
4423 cat >conftest.
$ac_ext <<_ACEOF
4426 cat confdefs.h
>>conftest.
$ac_ext
4427 cat >>conftest.
$ac_ext <<_ACEOF
4428 /* end confdefs.h. */
4442 rm -f conftest.
$ac_objext
4443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4444 (eval $ac_compile) 2>conftest.er1
4446 grep -v '^ *+' conftest.er1
>conftest.err
4448 cat conftest.err
>&5
4449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4450 (exit $ac_status); } &&
4451 { ac_try
='test -z "$ac_c_werror_flag"
4452 || test ! -s conftest.err'
4453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4457 (exit $ac_status); }; } &&
4458 { ac_try
='test -s conftest.$ac_objext'
4459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4463 (exit $ac_status); }; }; then
4464 ac_cv_header_stdc
=yes
4466 echo "$as_me: failed program was:" >&5
4467 sed 's/^/| /' conftest.
$ac_ext >&5
4469 ac_cv_header_stdc
=no
4471 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4473 if test $ac_cv_header_stdc = yes; then
4474 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4475 cat >conftest.
$ac_ext <<_ACEOF
4478 cat confdefs.h
>>conftest.
$ac_ext
4479 cat >>conftest.
$ac_ext <<_ACEOF
4480 /* end confdefs.h. */
4484 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4485 $EGREP "memchr" >/dev
/null
2>&1; then
4488 ac_cv_header_stdc
=no
4494 if test $ac_cv_header_stdc = yes; then
4495 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4496 cat >conftest.
$ac_ext <<_ACEOF
4499 cat confdefs.h
>>conftest.
$ac_ext
4500 cat >>conftest.
$ac_ext <<_ACEOF
4501 /* end confdefs.h. */
4505 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4506 $EGREP "free" >/dev
/null
2>&1; then
4509 ac_cv_header_stdc
=no
4515 if test $ac_cv_header_stdc = yes; then
4516 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4517 if test "$cross_compiling" = yes; then
4520 cat >conftest.
$ac_ext <<_ACEOF
4523 cat confdefs.h
>>conftest.
$ac_ext
4524 cat >>conftest.
$ac_ext <<_ACEOF
4525 /* end confdefs.h. */
4527 #if ((' ' & 0x0FF) == 0x020)
4528 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4529 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4531 # define ISLOWER(c) \
4532 (('a' <= (c) && (c) <= 'i') \
4533 || ('j' <= (c) && (c) <= 'r') \
4534 || ('s' <= (c) && (c) <= 'z'))
4535 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4538 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4543 for (i = 0; i < 256; i++)
4544 if (XOR (islower (i), ISLOWER (i))
4545 || toupper (i) != TOUPPER (i))
4550 rm -f conftest
$ac_exeext
4551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4552 (eval $ac_link) 2>&5
4554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4555 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4560 (exit $ac_status); }; }; then
4563 echo "$as_me: program exited with status $ac_status" >&5
4564 echo "$as_me: failed program was:" >&5
4565 sed 's/^/| /' conftest.
$ac_ext >&5
4568 ac_cv_header_stdc
=no
4570 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4574 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4575 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4576 if test $ac_cv_header_stdc = yes; then
4578 cat >>confdefs.h
<<\_ACEOF
4579 #define STDC_HEADERS 1
4584 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4594 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4595 inttypes.h stdint.h unistd.h
4597 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4598 echo "$as_me:$LINENO: checking for $ac_header" >&5
4599 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4600 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4601 echo $ECHO_N "(cached) $ECHO_C" >&6
4603 cat >conftest.
$ac_ext <<_ACEOF
4606 cat confdefs.h
>>conftest.
$ac_ext
4607 cat >>conftest.
$ac_ext <<_ACEOF
4608 /* end confdefs.h. */
4609 $ac_includes_default
4611 #include <$ac_header>
4613 rm -f conftest.
$ac_objext
4614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4615 (eval $ac_compile) 2>conftest.er1
4617 grep -v '^ *+' conftest.er1
>conftest.err
4619 cat conftest.err
>&5
4620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4621 (exit $ac_status); } &&
4622 { ac_try
='test -z "$ac_c_werror_flag"
4623 || test ! -s conftest.err'
4624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4628 (exit $ac_status); }; } &&
4629 { ac_try
='test -s conftest.$ac_objext'
4630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4634 (exit $ac_status); }; }; then
4635 eval "$as_ac_Header=yes"
4637 echo "$as_me: failed program was:" >&5
4638 sed 's/^/| /' conftest.
$ac_ext >&5
4640 eval "$as_ac_Header=no"
4642 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4644 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4645 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4646 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4647 cat >>confdefs.h
<<_ACEOF
4648 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4705 for ac_header
in asm
/types.h conio.h curses.h direct.h dlfcn.h errno.h \
4707 io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \
4708 shadow.h signal.h stdint.h stropts.h termios.h thread.h \
4710 sys
/audioio.h sys
/bsdtty.h sys
/file.h sys
/loadavg.h sys
/lock.h sys
/mkdev.h \
4712 sys
/param.h sys
/poll.h sys
/select.h sys
/socket.h sys
/statvfs.h sys
/stat.h \
4714 sys
/times.h sys
/types.h sys
/un.h sys
/utsname.h sys
/wait.h pty.h libutil.h \
4715 sys
/resource.h netpacket
/packet.h sysexits.h bluetooth.h \
4716 bluetooth
/bluetooth.h
4718 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4719 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4720 echo "$as_me:$LINENO: checking for $ac_header" >&5
4721 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4722 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4723 echo $ECHO_N "(cached) $ECHO_C" >&6
4725 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4726 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4728 # Is the header compilable?
4729 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4730 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4731 cat >conftest.
$ac_ext <<_ACEOF
4734 cat confdefs.h
>>conftest.
$ac_ext
4735 cat >>conftest.
$ac_ext <<_ACEOF
4736 /* end confdefs.h. */
4737 $ac_includes_default
4738 #include <$ac_header>
4740 rm -f conftest.
$ac_objext
4741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4742 (eval $ac_compile) 2>conftest.er1
4744 grep -v '^ *+' conftest.er1
>conftest.err
4746 cat conftest.err
>&5
4747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4748 (exit $ac_status); } &&
4749 { ac_try
='test -z "$ac_c_werror_flag"
4750 || test ! -s conftest.err'
4751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4755 (exit $ac_status); }; } &&
4756 { ac_try
='test -s conftest.$ac_objext'
4757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4761 (exit $ac_status); }; }; then
4762 ac_header_compiler
=yes
4764 echo "$as_me: failed program was:" >&5
4765 sed 's/^/| /' conftest.
$ac_ext >&5
4767 ac_header_compiler
=no
4769 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4770 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4771 echo "${ECHO_T}$ac_header_compiler" >&6
4773 # Is the header present?
4774 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4775 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4776 cat >conftest.
$ac_ext <<_ACEOF
4779 cat confdefs.h
>>conftest.
$ac_ext
4780 cat >>conftest.
$ac_ext <<_ACEOF
4781 /* end confdefs.h. */
4782 #include <$ac_header>
4784 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4785 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4787 grep -v '^ *+' conftest.er1
>conftest.err
4789 cat conftest.err
>&5
4790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4791 (exit $ac_status); } >/dev
/null
; then
4792 if test -s conftest.err
; then
4793 ac_cpp_err
=$ac_c_preproc_warn_flag
4794 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4801 if test -z "$ac_cpp_err"; then
4802 ac_header_preproc
=yes
4804 echo "$as_me: failed program was:" >&5
4805 sed 's/^/| /' conftest.
$ac_ext >&5
4807 ac_header_preproc
=no
4809 rm -f conftest.err conftest.
$ac_ext
4810 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4811 echo "${ECHO_T}$ac_header_preproc" >&6
4813 # So? What about this header?
4814 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4816 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4817 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4818 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4819 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4820 ac_header_preproc
=yes
4823 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4824 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4825 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4826 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4827 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4828 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4829 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4830 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4831 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4832 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4833 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4834 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4837 ## ------------------------------------------------ ##
4838 ## Report this to http://www.python.org/python-bugs ##
4839 ## ------------------------------------------------ ##
4842 sed "s/^/$as_me: WARNING: /" >&2
4845 echo "$as_me:$LINENO: checking for $ac_header" >&5
4846 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4847 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4848 echo $ECHO_N "(cached) $ECHO_C" >&6
4850 eval "$as_ac_Header=\$ac_header_preproc"
4852 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4853 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4856 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4857 cat >>confdefs.h
<<_ACEOF
4858 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4871 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
4872 as_ac_Header
=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4873 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4874 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
4875 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4876 echo $ECHO_N "(cached) $ECHO_C" >&6
4878 cat >conftest.
$ac_ext <<_ACEOF
4881 cat confdefs.h
>>conftest.
$ac_ext
4882 cat >>conftest.
$ac_ext <<_ACEOF
4883 /* end confdefs.h. */
4884 #include <sys/types.h>
4896 rm -f conftest.
$ac_objext
4897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4898 (eval $ac_compile) 2>conftest.er1
4900 grep -v '^ *+' conftest.er1
>conftest.err
4902 cat conftest.err
>&5
4903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4904 (exit $ac_status); } &&
4905 { ac_try
='test -z "$ac_c_werror_flag"
4906 || test ! -s conftest.err'
4907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4911 (exit $ac_status); }; } &&
4912 { ac_try
='test -s conftest.$ac_objext'
4913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4917 (exit $ac_status); }; }; then
4918 eval "$as_ac_Header=yes"
4920 echo "$as_me: failed program was:" >&5
4921 sed 's/^/| /' conftest.
$ac_ext >&5
4923 eval "$as_ac_Header=no"
4925 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4927 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4928 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4929 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4930 cat >>confdefs.h
<<_ACEOF
4931 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4934 ac_header_dirent
=$ac_hdr; break
4938 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4939 if test $ac_header_dirent = dirent.h
; then
4940 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4941 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4942 if test "${ac_cv_search_opendir+set}" = set; then
4943 echo $ECHO_N "(cached) $ECHO_C" >&6
4945 ac_func_search_save_LIBS
=$LIBS
4946 ac_cv_search_opendir
=no
4947 cat >conftest.
$ac_ext <<_ACEOF
4950 cat confdefs.h
>>conftest.
$ac_ext
4951 cat >>conftest.
$ac_ext <<_ACEOF
4952 /* end confdefs.h. */
4954 /* Override any gcc2 internal prototype to avoid an error. */
4958 /* We use char because int might match the return type of a gcc2
4959 builtin and then its argument prototype would still apply. */
4969 rm -f conftest.
$ac_objext conftest
$ac_exeext
4970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4971 (eval $ac_link) 2>conftest.er1
4973 grep -v '^ *+' conftest.er1
>conftest.err
4975 cat conftest.err
>&5
4976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4977 (exit $ac_status); } &&
4978 { ac_try
='test -z "$ac_c_werror_flag"
4979 || test ! -s conftest.err'
4980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4984 (exit $ac_status); }; } &&
4985 { ac_try
='test -s conftest$ac_exeext'
4986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4990 (exit $ac_status); }; }; then
4991 ac_cv_search_opendir
="none required"
4993 echo "$as_me: failed program was:" >&5
4994 sed 's/^/| /' conftest.
$ac_ext >&5
4997 rm -f conftest.err conftest.
$ac_objext \
4998 conftest
$ac_exeext conftest.
$ac_ext
4999 if test "$ac_cv_search_opendir" = no
; then
5000 for ac_lib
in dir
; do
5001 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5002 cat >conftest.
$ac_ext <<_ACEOF
5005 cat confdefs.h
>>conftest.
$ac_ext
5006 cat >>conftest.
$ac_ext <<_ACEOF
5007 /* end confdefs.h. */
5009 /* Override any gcc2 internal prototype to avoid an error. */
5013 /* We use char because int might match the return type of a gcc2
5014 builtin and then its argument prototype would still apply. */
5024 rm -f conftest.
$ac_objext conftest
$ac_exeext
5025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5026 (eval $ac_link) 2>conftest.er1
5028 grep -v '^ *+' conftest.er1
>conftest.err
5030 cat conftest.err
>&5
5031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5032 (exit $ac_status); } &&
5033 { ac_try
='test -z "$ac_c_werror_flag"
5034 || test ! -s conftest.err'
5035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5039 (exit $ac_status); }; } &&
5040 { ac_try
='test -s conftest$ac_exeext'
5041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5045 (exit $ac_status); }; }; then
5046 ac_cv_search_opendir
="-l$ac_lib"
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
5057 LIBS
=$ac_func_search_save_LIBS
5059 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5060 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5061 if test "$ac_cv_search_opendir" != no
; then
5062 test "$ac_cv_search_opendir" = "none required" || LIBS
="$ac_cv_search_opendir $LIBS"
5067 echo "$as_me:$LINENO: checking for library containing opendir" >&5
5068 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5069 if test "${ac_cv_search_opendir+set}" = set; then
5070 echo $ECHO_N "(cached) $ECHO_C" >&6
5072 ac_func_search_save_LIBS
=$LIBS
5073 ac_cv_search_opendir
=no
5074 cat >conftest.
$ac_ext <<_ACEOF
5077 cat confdefs.h
>>conftest.
$ac_ext
5078 cat >>conftest.
$ac_ext <<_ACEOF
5079 /* end confdefs.h. */
5081 /* Override any gcc2 internal prototype to avoid an error. */
5085 /* We use char because int might match the return type of a gcc2
5086 builtin and then its argument prototype would still apply. */
5096 rm -f conftest.
$ac_objext conftest
$ac_exeext
5097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5098 (eval $ac_link) 2>conftest.er1
5100 grep -v '^ *+' conftest.er1
>conftest.err
5102 cat conftest.err
>&5
5103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5104 (exit $ac_status); } &&
5105 { ac_try
='test -z "$ac_c_werror_flag"
5106 || test ! -s conftest.err'
5107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5111 (exit $ac_status); }; } &&
5112 { ac_try
='test -s conftest$ac_exeext'
5113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117 (exit $ac_status); }; }; then
5118 ac_cv_search_opendir
="none required"
5120 echo "$as_me: failed program was:" >&5
5121 sed 's/^/| /' conftest.
$ac_ext >&5
5124 rm -f conftest.err conftest.
$ac_objext \
5125 conftest
$ac_exeext conftest.
$ac_ext
5126 if test "$ac_cv_search_opendir" = no
; then
5128 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5129 cat >conftest.
$ac_ext <<_ACEOF
5132 cat confdefs.h
>>conftest.
$ac_ext
5133 cat >>conftest.
$ac_ext <<_ACEOF
5134 /* end confdefs.h. */
5136 /* Override any gcc2 internal prototype to avoid an error. */
5140 /* We use char because int might match the return type of a gcc2
5141 builtin and then its argument prototype would still apply. */
5151 rm -f conftest.
$ac_objext conftest
$ac_exeext
5152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5153 (eval $ac_link) 2>conftest.er1
5155 grep -v '^ *+' conftest.er1
>conftest.err
5157 cat conftest.err
>&5
5158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5159 (exit $ac_status); } &&
5160 { ac_try
='test -z "$ac_c_werror_flag"
5161 || test ! -s conftest.err'
5162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5166 (exit $ac_status); }; } &&
5167 { ac_try
='test -s conftest$ac_exeext'
5168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5172 (exit $ac_status); }; }; then
5173 ac_cv_search_opendir
="-l$ac_lib"
5176 echo "$as_me: failed program was:" >&5
5177 sed 's/^/| /' conftest.
$ac_ext >&5
5180 rm -f conftest.err conftest.
$ac_objext \
5181 conftest
$ac_exeext conftest.
$ac_ext
5184 LIBS
=$ac_func_search_save_LIBS
5186 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5187 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5188 if test "$ac_cv_search_opendir" != no
; then
5189 test "$ac_cv_search_opendir" = "none required" || LIBS
="$ac_cv_search_opendir $LIBS"
5195 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
5196 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
5197 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
5198 echo $ECHO_N "(cached) $ECHO_C" >&6
5200 cat >conftest.
$ac_ext <<_ACEOF
5203 cat confdefs.h
>>conftest.
$ac_ext
5204 cat >>conftest.
$ac_ext <<_ACEOF
5205 /* end confdefs.h. */
5206 #include <sys/types.h>
5210 return makedev(0, 0);
5215 rm -f conftest.
$ac_objext conftest
$ac_exeext
5216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5217 (eval $ac_link) 2>conftest.er1
5219 grep -v '^ *+' conftest.er1
>conftest.err
5221 cat conftest.err
>&5
5222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5223 (exit $ac_status); } &&
5224 { ac_try
='test -z "$ac_c_werror_flag"
5225 || test ! -s conftest.err'
5226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5230 (exit $ac_status); }; } &&
5231 { ac_try
='test -s conftest$ac_exeext'
5232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5236 (exit $ac_status); }; }; then
5237 ac_cv_header_sys_types_h_makedev
=yes
5239 echo "$as_me: failed program was:" >&5
5240 sed 's/^/| /' conftest.
$ac_ext >&5
5242 ac_cv_header_sys_types_h_makedev
=no
5244 rm -f conftest.err conftest.
$ac_objext \
5245 conftest
$ac_exeext conftest.
$ac_ext
5248 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
5249 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
5251 if test $ac_cv_header_sys_types_h_makedev = no
; then
5252 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5253 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
5254 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
5255 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5256 echo $ECHO_N "(cached) $ECHO_C" >&6
5258 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
5259 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
5261 # Is the header compilable?
5262 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
5263 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
5264 cat >conftest.
$ac_ext <<_ACEOF
5267 cat confdefs.h
>>conftest.
$ac_ext
5268 cat >>conftest.
$ac_ext <<_ACEOF
5269 /* end confdefs.h. */
5270 $ac_includes_default
5271 #include <sys/mkdev.h>
5273 rm -f conftest.
$ac_objext
5274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5275 (eval $ac_compile) 2>conftest.er1
5277 grep -v '^ *+' conftest.er1
>conftest.err
5279 cat conftest.err
>&5
5280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281 (exit $ac_status); } &&
5282 { ac_try
='test -z "$ac_c_werror_flag"
5283 || test ! -s conftest.err'
5284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5288 (exit $ac_status); }; } &&
5289 { ac_try
='test -s conftest.$ac_objext'
5290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5294 (exit $ac_status); }; }; then
5295 ac_header_compiler
=yes
5297 echo "$as_me: failed program was:" >&5
5298 sed 's/^/| /' conftest.
$ac_ext >&5
5300 ac_header_compiler
=no
5302 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5303 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5304 echo "${ECHO_T}$ac_header_compiler" >&6
5306 # Is the header present?
5307 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
5308 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
5309 cat >conftest.
$ac_ext <<_ACEOF
5312 cat confdefs.h
>>conftest.
$ac_ext
5313 cat >>conftest.
$ac_ext <<_ACEOF
5314 /* end confdefs.h. */
5315 #include <sys/mkdev.h>
5317 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5318 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5320 grep -v '^ *+' conftest.er1
>conftest.err
5322 cat conftest.err
>&5
5323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5324 (exit $ac_status); } >/dev
/null
; then
5325 if test -s conftest.err
; then
5326 ac_cpp_err
=$ac_c_preproc_warn_flag
5327 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5334 if test -z "$ac_cpp_err"; then
5335 ac_header_preproc
=yes
5337 echo "$as_me: failed program was:" >&5
5338 sed 's/^/| /' conftest.
$ac_ext >&5
5340 ac_header_preproc
=no
5342 rm -f conftest.err conftest.
$ac_ext
5343 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5344 echo "${ECHO_T}$ac_header_preproc" >&6
5346 # So? What about this header?
5347 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5349 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
5350 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5351 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
5352 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
5353 ac_header_preproc
=yes
5356 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
5357 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
5358 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
5359 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
5360 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
5361 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
5362 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
5363 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
5364 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
5365 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
5366 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
5367 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
5370 ## ------------------------------------------------ ##
5371 ## Report this to http://www.python.org/python-bugs ##
5372 ## ------------------------------------------------ ##
5375 sed "s/^/$as_me: WARNING: /" >&2
5378 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
5379 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
5380 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5381 echo $ECHO_N "(cached) $ECHO_C" >&6
5383 ac_cv_header_sys_mkdev_h
=$ac_header_preproc
5385 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
5386 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
5389 if test $ac_cv_header_sys_mkdev_h = yes; then
5391 cat >>confdefs.h
<<\_ACEOF
5392 #define MAJOR_IN_MKDEV 1
5399 if test $ac_cv_header_sys_mkdev_h = no
; then
5400 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5401 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
5402 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
5403 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5404 echo $ECHO_N "(cached) $ECHO_C" >&6
5406 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
5407 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
5409 # Is the header compilable?
5410 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
5411 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
5412 cat >conftest.
$ac_ext <<_ACEOF
5415 cat confdefs.h
>>conftest.
$ac_ext
5416 cat >>conftest.
$ac_ext <<_ACEOF
5417 /* end confdefs.h. */
5418 $ac_includes_default
5419 #include <sys/sysmacros.h>
5421 rm -f conftest.
$ac_objext
5422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5423 (eval $ac_compile) 2>conftest.er1
5425 grep -v '^ *+' conftest.er1
>conftest.err
5427 cat conftest.err
>&5
5428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5429 (exit $ac_status); } &&
5430 { ac_try
='test -z "$ac_c_werror_flag"
5431 || test ! -s conftest.err'
5432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5436 (exit $ac_status); }; } &&
5437 { ac_try
='test -s conftest.$ac_objext'
5438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5442 (exit $ac_status); }; }; then
5443 ac_header_compiler
=yes
5445 echo "$as_me: failed program was:" >&5
5446 sed 's/^/| /' conftest.
$ac_ext >&5
5448 ac_header_compiler
=no
5450 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5451 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5452 echo "${ECHO_T}$ac_header_compiler" >&6
5454 # Is the header present?
5455 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
5456 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
5457 cat >conftest.
$ac_ext <<_ACEOF
5460 cat confdefs.h
>>conftest.
$ac_ext
5461 cat >>conftest.
$ac_ext <<_ACEOF
5462 /* end confdefs.h. */
5463 #include <sys/sysmacros.h>
5465 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5466 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5468 grep -v '^ *+' conftest.er1
>conftest.err
5470 cat conftest.err
>&5
5471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5472 (exit $ac_status); } >/dev
/null
; then
5473 if test -s conftest.err
; then
5474 ac_cpp_err
=$ac_c_preproc_warn_flag
5475 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5482 if test -z "$ac_cpp_err"; then
5483 ac_header_preproc
=yes
5485 echo "$as_me: failed program was:" >&5
5486 sed 's/^/| /' conftest.
$ac_ext >&5
5488 ac_header_preproc
=no
5490 rm -f conftest.err conftest.
$ac_ext
5491 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5492 echo "${ECHO_T}$ac_header_preproc" >&6
5494 # So? What about this header?
5495 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5497 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
5498 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5499 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
5500 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
5501 ac_header_preproc
=yes
5504 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
5505 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
5506 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
5507 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
5508 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
5509 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
5510 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
5511 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
5512 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
5513 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
5514 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
5515 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
5518 ## ------------------------------------------------ ##
5519 ## Report this to http://www.python.org/python-bugs ##
5520 ## ------------------------------------------------ ##
5523 sed "s/^/$as_me: WARNING: /" >&2
5526 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
5527 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
5528 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5529 echo $ECHO_N "(cached) $ECHO_C" >&6
5531 ac_cv_header_sys_sysmacros_h
=$ac_header_preproc
5533 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
5534 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
5537 if test $ac_cv_header_sys_sysmacros_h = yes; then
5539 cat >>confdefs.h
<<\_ACEOF
5540 #define MAJOR_IN_SYSMACROS 1
5550 # On Solaris, term.h requires curses.h
5552 for ac_header
in term.h
5554 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5555 echo "$as_me:$LINENO: checking for $ac_header" >&5
5556 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5557 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5558 echo $ECHO_N "(cached) $ECHO_C" >&6
5560 cat >conftest.
$ac_ext <<_ACEOF
5563 cat confdefs.h
>>conftest.
$ac_ext
5564 cat >>conftest.
$ac_ext <<_ACEOF
5565 /* end confdefs.h. */
5567 #ifdef HAVE_CURSES_H
5572 #include <$ac_header>
5574 rm -f conftest.
$ac_objext
5575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5576 (eval $ac_compile) 2>conftest.er1
5578 grep -v '^ *+' conftest.er1
>conftest.err
5580 cat conftest.err
>&5
5581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5582 (exit $ac_status); } &&
5583 { ac_try
='test -z "$ac_c_werror_flag"
5584 || test ! -s conftest.err'
5585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5589 (exit $ac_status); }; } &&
5590 { ac_try
='test -s conftest.$ac_objext'
5591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5595 (exit $ac_status); }; }; then
5596 eval "$as_ac_Header=yes"
5598 echo "$as_me: failed program was:" >&5
5599 sed 's/^/| /' conftest.
$ac_ext >&5
5601 eval "$as_ac_Header=no"
5603 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5605 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5606 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5607 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5608 cat >>confdefs.h
<<_ACEOF
5609 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5617 # On Linux, netlink.h requires asm/types.h
5619 for ac_header
in linux
/netlink.h
5621 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5622 echo "$as_me:$LINENO: checking for $ac_header" >&5
5623 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5624 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5625 echo $ECHO_N "(cached) $ECHO_C" >&6
5627 cat >conftest.
$ac_ext <<_ACEOF
5630 cat confdefs.h
>>conftest.
$ac_ext
5631 cat >>conftest.
$ac_ext <<_ACEOF
5632 /* end confdefs.h. */
5634 #ifdef HAVE_ASM_TYPES_H
5635 #include <asm/types.h>
5637 #ifdef HAVE_SYS_SOCKET_H
5638 #include <sys/socket.h>
5642 #include <$ac_header>
5644 rm -f conftest.
$ac_objext
5645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5646 (eval $ac_compile) 2>conftest.er1
5648 grep -v '^ *+' conftest.er1
>conftest.err
5650 cat conftest.err
>&5
5651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5652 (exit $ac_status); } &&
5653 { ac_try
='test -z "$ac_c_werror_flag"
5654 || test ! -s conftest.err'
5655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5659 (exit $ac_status); }; } &&
5660 { ac_try
='test -s conftest.$ac_objext'
5661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5665 (exit $ac_status); }; }; then
5666 eval "$as_ac_Header=yes"
5668 echo "$as_me: failed program was:" >&5
5669 sed 's/^/| /' conftest.
$ac_ext >&5
5671 eval "$as_ac_Header=no"
5673 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5675 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5676 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5677 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5678 cat >>confdefs.h
<<_ACEOF
5679 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5687 # checks for typedefs
5689 echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
5690 echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6
5691 cat >conftest.
$ac_ext <<_ACEOF
5694 cat confdefs.h
>>conftest.
$ac_ext
5695 cat >>conftest.
$ac_ext <<_ACEOF
5696 /* end confdefs.h. */
5700 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5701 $EGREP "clock_t" >/dev
/null
2>&1; then
5706 cat >>confdefs.h
<<\_ACEOF
5707 #define clock_t long
5714 echo "$as_me:$LINENO: result: $was_it_defined" >&5
5715 echo "${ECHO_T}$was_it_defined" >&6
5717 # Check whether using makedev requires defining _OSF_SOURCE
5718 echo "$as_me:$LINENO: checking for makedev" >&5
5719 echo $ECHO_N "checking for makedev... $ECHO_C" >&6
5720 cat >conftest.
$ac_ext <<_ACEOF
5723 cat confdefs.h
>>conftest.
$ac_ext
5724 cat >>conftest.
$ac_ext <<_ACEOF
5725 /* end confdefs.h. */
5726 #include <sys/types.h>
5735 rm -f conftest.
$ac_objext conftest
$ac_exeext
5736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5737 (eval $ac_link) 2>conftest.er1
5739 grep -v '^ *+' conftest.er1
>conftest.err
5741 cat conftest.err
>&5
5742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743 (exit $ac_status); } &&
5744 { ac_try
='test -z "$ac_c_werror_flag"
5745 || test ! -s conftest.err'
5746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5750 (exit $ac_status); }; } &&
5751 { ac_try
='test -s conftest$ac_exeext'
5752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5756 (exit $ac_status); }; }; then
5757 ac_cv_has_makedev
=yes
5759 echo "$as_me: failed program was:" >&5
5760 sed 's/^/| /' conftest.
$ac_ext >&5
5762 ac_cv_has_makedev
=no
5764 rm -f conftest.err conftest.
$ac_objext \
5765 conftest
$ac_exeext conftest.
$ac_ext
5766 if test "$ac_cv_has_makedev" = "no"; then
5767 # we didn't link, try if _OSF_SOURCE will allow us to link
5768 cat >conftest.
$ac_ext <<_ACEOF
5771 cat confdefs.h
>>conftest.
$ac_ext
5772 cat >>conftest.
$ac_ext <<_ACEOF
5773 /* end confdefs.h. */
5775 #define _OSF_SOURCE 1
5776 #include <sys/types.h>
5786 rm -f conftest.
$ac_objext conftest
$ac_exeext
5787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5788 (eval $ac_link) 2>conftest.er1
5790 grep -v '^ *+' conftest.er1
>conftest.err
5792 cat conftest.err
>&5
5793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5794 (exit $ac_status); } &&
5795 { ac_try
='test -z "$ac_c_werror_flag"
5796 || test ! -s conftest.err'
5797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5801 (exit $ac_status); }; } &&
5802 { ac_try
='test -s conftest$ac_exeext'
5803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5807 (exit $ac_status); }; }; then
5808 ac_cv_has_makedev
=yes
5810 echo "$as_me: failed program was:" >&5
5811 sed 's/^/| /' conftest.
$ac_ext >&5
5813 ac_cv_has_makedev
=no
5815 rm -f conftest.err conftest.
$ac_objext \
5816 conftest
$ac_exeext conftest.
$ac_ext
5817 if test "$ac_cv_has_makedev" = "yes"; then
5819 cat >>confdefs.h
<<\_ACEOF
5820 #define _OSF_SOURCE 1
5825 echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
5826 echo "${ECHO_T}$ac_cv_has_makedev" >&6
5827 if test "$ac_cv_has_makedev" = "yes"; then
5829 cat >>confdefs.h
<<\_ACEOF
5830 #define HAVE_MAKEDEV 1
5835 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
5836 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
5837 # defined, but the compiler does not support pragma redefine_extname,
5838 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
5839 # structures (such as rlimit64) without declaring them. As a
5840 # work-around, disable LFS on such configurations
5843 echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
5844 echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6
5845 cat >conftest.
$ac_ext <<_ACEOF
5848 cat confdefs.h
>>conftest.
$ac_ext
5849 cat >>conftest.
$ac_ext <<_ACEOF
5850 /* end confdefs.h. */
5852 #define _LARGEFILE_SOURCE 1
5853 #define _FILE_OFFSET_BITS 64
5854 #include <sys/resource.h>
5864 rm -f conftest.
$ac_objext
5865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5866 (eval $ac_compile) 2>conftest.er1
5868 grep -v '^ *+' conftest.er1
>conftest.err
5870 cat conftest.err
>&5
5871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872 (exit $ac_status); } &&
5873 { ac_try
='test -z "$ac_c_werror_flag"
5874 || test ! -s conftest.err'
5875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879 (exit $ac_status); }; } &&
5880 { ac_try
='test -s conftest.$ac_objext'
5881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5885 (exit $ac_status); }; }; then
5888 echo "$as_me: failed program was:" >&5
5889 sed 's/^/| /' conftest.
$ac_ext >&5
5893 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5894 echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
5895 echo "${ECHO_T}$sol_lfs_bug" >&6
5896 if test "$sol_lfs_bug" = "yes"; then
5900 if test "$use_lfs" = "yes"; then
5901 # Two defines needed to enable largefile support on various platforms
5902 # These may affect some typedefs
5904 cat >>confdefs.h
<<\_ACEOF
5905 #define _LARGEFILE_SOURCE 1
5909 cat >>confdefs.h
<<\_ACEOF
5910 #define _FILE_OFFSET_BITS 64
5915 # Add some code to confdefs.h so that the test for off_t works on SCO
5916 cat >> confdefs.h
<<\EOF
5922 # Type availability checks
5923 echo "$as_me:$LINENO: checking for mode_t" >&5
5924 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
5925 if test "${ac_cv_type_mode_t+set}" = set; then
5926 echo $ECHO_N "(cached) $ECHO_C" >&6
5928 cat >conftest.
$ac_ext <<_ACEOF
5931 cat confdefs.h
>>conftest.
$ac_ext
5932 cat >>conftest.
$ac_ext <<_ACEOF
5933 /* end confdefs.h. */
5934 $ac_includes_default
5940 if (sizeof (mode_t))
5946 rm -f conftest.
$ac_objext
5947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5948 (eval $ac_compile) 2>conftest.er1
5950 grep -v '^ *+' conftest.er1
>conftest.err
5952 cat conftest.err
>&5
5953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954 (exit $ac_status); } &&
5955 { ac_try
='test -z "$ac_c_werror_flag"
5956 || test ! -s conftest.err'
5957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961 (exit $ac_status); }; } &&
5962 { ac_try
='test -s conftest.$ac_objext'
5963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5967 (exit $ac_status); }; }; then
5968 ac_cv_type_mode_t
=yes
5970 echo "$as_me: failed program was:" >&5
5971 sed 's/^/| /' conftest.
$ac_ext >&5
5973 ac_cv_type_mode_t
=no
5975 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5977 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
5978 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
5979 if test $ac_cv_type_mode_t = yes; then
5983 cat >>confdefs.h
<<_ACEOF
5989 echo "$as_me:$LINENO: checking for off_t" >&5
5990 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5991 if test "${ac_cv_type_off_t+set}" = set; then
5992 echo $ECHO_N "(cached) $ECHO_C" >&6
5994 cat >conftest.
$ac_ext <<_ACEOF
5997 cat confdefs.h
>>conftest.
$ac_ext
5998 cat >>conftest.
$ac_ext <<_ACEOF
5999 /* end confdefs.h. */
6000 $ac_includes_default
6012 rm -f conftest.
$ac_objext
6013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6014 (eval $ac_compile) 2>conftest.er1
6016 grep -v '^ *+' conftest.er1
>conftest.err
6018 cat conftest.err
>&5
6019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020 (exit $ac_status); } &&
6021 { ac_try
='test -z "$ac_c_werror_flag"
6022 || test ! -s conftest.err'
6023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6027 (exit $ac_status); }; } &&
6028 { ac_try
='test -s conftest.$ac_objext'
6029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6033 (exit $ac_status); }; }; then
6034 ac_cv_type_off_t
=yes
6036 echo "$as_me: failed program was:" >&5
6037 sed 's/^/| /' conftest.
$ac_ext >&5
6041 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6043 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6044 echo "${ECHO_T}$ac_cv_type_off_t" >&6
6045 if test $ac_cv_type_off_t = yes; then
6049 cat >>confdefs.h
<<_ACEOF
6055 echo "$as_me:$LINENO: checking for pid_t" >&5
6056 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
6057 if test "${ac_cv_type_pid_t+set}" = set; then
6058 echo $ECHO_N "(cached) $ECHO_C" >&6
6060 cat >conftest.
$ac_ext <<_ACEOF
6063 cat confdefs.h
>>conftest.
$ac_ext
6064 cat >>conftest.
$ac_ext <<_ACEOF
6065 /* end confdefs.h. */
6066 $ac_includes_default
6078 rm -f conftest.
$ac_objext
6079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6080 (eval $ac_compile) 2>conftest.er1
6082 grep -v '^ *+' conftest.er1
>conftest.err
6084 cat conftest.err
>&5
6085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086 (exit $ac_status); } &&
6087 { ac_try
='test -z "$ac_c_werror_flag"
6088 || test ! -s conftest.err'
6089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6093 (exit $ac_status); }; } &&
6094 { ac_try
='test -s conftest.$ac_objext'
6095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6099 (exit $ac_status); }; }; then
6100 ac_cv_type_pid_t
=yes
6102 echo "$as_me: failed program was:" >&5
6103 sed 's/^/| /' conftest.
$ac_ext >&5
6107 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6109 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6110 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
6111 if test $ac_cv_type_pid_t = yes; then
6115 cat >>confdefs.h
<<_ACEOF
6121 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6122 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6123 if test "${ac_cv_type_signal+set}" = set; then
6124 echo $ECHO_N "(cached) $ECHO_C" >&6
6126 cat >conftest.
$ac_ext <<_ACEOF
6129 cat confdefs.h
>>conftest.
$ac_ext
6130 cat >>conftest.
$ac_ext <<_ACEOF
6131 /* end confdefs.h. */
6132 #include <sys/types.h>
6138 extern "C" void (*signal (int, void (*)(int)))(int);
6140 void (*signal ()) ();
6151 rm -f conftest.
$ac_objext
6152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6153 (eval $ac_compile) 2>conftest.er1
6155 grep -v '^ *+' conftest.er1
>conftest.err
6157 cat conftest.err
>&5
6158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6159 (exit $ac_status); } &&
6160 { ac_try
='test -z "$ac_c_werror_flag"
6161 || test ! -s conftest.err'
6162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6166 (exit $ac_status); }; } &&
6167 { ac_try
='test -s conftest.$ac_objext'
6168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6172 (exit $ac_status); }; }; then
6173 ac_cv_type_signal
=void
6175 echo "$as_me: failed program was:" >&5
6176 sed 's/^/| /' conftest.
$ac_ext >&5
6178 ac_cv_type_signal
=int
6180 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6182 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6183 echo "${ECHO_T}$ac_cv_type_signal" >&6
6185 cat >>confdefs.h
<<_ACEOF
6186 #define RETSIGTYPE $ac_cv_type_signal
6190 echo "$as_me:$LINENO: checking for size_t" >&5
6191 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6192 if test "${ac_cv_type_size_t+set}" = set; then
6193 echo $ECHO_N "(cached) $ECHO_C" >&6
6195 cat >conftest.
$ac_ext <<_ACEOF
6198 cat confdefs.h
>>conftest.
$ac_ext
6199 cat >>conftest.
$ac_ext <<_ACEOF
6200 /* end confdefs.h. */
6201 $ac_includes_default
6207 if (sizeof (size_t))
6213 rm -f conftest.
$ac_objext
6214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6215 (eval $ac_compile) 2>conftest.er1
6217 grep -v '^ *+' conftest.er1
>conftest.err
6219 cat conftest.err
>&5
6220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6221 (exit $ac_status); } &&
6222 { ac_try
='test -z "$ac_c_werror_flag"
6223 || test ! -s conftest.err'
6224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6228 (exit $ac_status); }; } &&
6229 { ac_try
='test -s conftest.$ac_objext'
6230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6234 (exit $ac_status); }; }; then
6235 ac_cv_type_size_t
=yes
6237 echo "$as_me: failed program was:" >&5
6238 sed 's/^/| /' conftest.
$ac_ext >&5
6240 ac_cv_type_size_t
=no
6242 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6244 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6245 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6246 if test $ac_cv_type_size_t = yes; then
6250 cat >>confdefs.h
<<_ACEOF
6251 #define size_t unsigned
6256 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6257 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
6258 if test "${ac_cv_type_uid_t+set}" = set; then
6259 echo $ECHO_N "(cached) $ECHO_C" >&6
6261 cat >conftest.
$ac_ext <<_ACEOF
6264 cat confdefs.h
>>conftest.
$ac_ext
6265 cat >>conftest.
$ac_ext <<_ACEOF
6266 /* end confdefs.h. */
6267 #include <sys/types.h>
6270 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6271 $EGREP "uid_t" >/dev
/null
2>&1; then
6272 ac_cv_type_uid_t
=yes
6279 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
6280 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
6281 if test $ac_cv_type_uid_t = no
; then
6283 cat >>confdefs.h
<<\_ACEOF
6288 cat >>confdefs.h
<<\_ACEOF
6294 echo "$as_me:$LINENO: checking for ssize_t" >&5
6295 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
6296 if test "${ac_cv_type_ssize_t+set}" = set; then
6297 echo $ECHO_N "(cached) $ECHO_C" >&6
6299 cat >conftest.
$ac_ext <<_ACEOF
6302 cat confdefs.h
>>conftest.
$ac_ext
6303 cat >>conftest.
$ac_ext <<_ACEOF
6304 /* end confdefs.h. */
6305 $ac_includes_default
6311 if (sizeof (ssize_t))
6317 rm -f conftest.
$ac_objext
6318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6319 (eval $ac_compile) 2>conftest.er1
6321 grep -v '^ *+' conftest.er1
>conftest.err
6323 cat conftest.err
>&5
6324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6325 (exit $ac_status); } &&
6326 { ac_try
='test -z "$ac_c_werror_flag"
6327 || test ! -s conftest.err'
6328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6332 (exit $ac_status); }; } &&
6333 { ac_try
='test -s conftest.$ac_objext'
6334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6338 (exit $ac_status); }; }; then
6339 ac_cv_type_ssize_t
=yes
6341 echo "$as_me: failed program was:" >&5
6342 sed 's/^/| /' conftest.
$ac_ext >&5
6344 ac_cv_type_ssize_t
=no
6346 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6348 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
6349 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
6350 if test $ac_cv_type_ssize_t = yes; then
6352 cat >>confdefs.h
<<\_ACEOF
6353 #define HAVE_SSIZE_T 1
6359 # Sizes of various common basic types
6360 # ANSI C requires sizeof(char) == 1, so no need to check it
6361 echo "$as_me:$LINENO: checking for int" >&5
6362 echo $ECHO_N "checking for int... $ECHO_C" >&6
6363 if test "${ac_cv_type_int+set}" = set; then
6364 echo $ECHO_N "(cached) $ECHO_C" >&6
6366 cat >conftest.
$ac_ext <<_ACEOF
6369 cat confdefs.h
>>conftest.
$ac_ext
6370 cat >>conftest.
$ac_ext <<_ACEOF
6371 /* end confdefs.h. */
6372 $ac_includes_default
6384 rm -f conftest.
$ac_objext
6385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6386 (eval $ac_compile) 2>conftest.er1
6388 grep -v '^ *+' conftest.er1
>conftest.err
6390 cat conftest.err
>&5
6391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6392 (exit $ac_status); } &&
6393 { ac_try
='test -z "$ac_c_werror_flag"
6394 || test ! -s conftest.err'
6395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6399 (exit $ac_status); }; } &&
6400 { ac_try
='test -s conftest.$ac_objext'
6401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6405 (exit $ac_status); }; }; then
6408 echo "$as_me: failed program was:" >&5
6409 sed 's/^/| /' conftest.
$ac_ext >&5
6413 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6415 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
6416 echo "${ECHO_T}$ac_cv_type_int" >&6
6418 echo "$as_me:$LINENO: checking size of int" >&5
6419 echo $ECHO_N "checking size of int... $ECHO_C" >&6
6420 if test "${ac_cv_sizeof_int+set}" = set; then
6421 echo $ECHO_N "(cached) $ECHO_C" >&6
6423 if test "$ac_cv_type_int" = yes; then
6424 # The cast to unsigned long works around a bug in the HP C Compiler
6425 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6426 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6427 # This bug is HP SR number 8606223364.
6428 if test "$cross_compiling" = yes; then
6429 # Depending upon the size, compute the lo and hi bounds.
6430 cat >conftest.
$ac_ext <<_ACEOF
6433 cat confdefs.h
>>conftest.
$ac_ext
6434 cat >>conftest.
$ac_ext <<_ACEOF
6435 /* end confdefs.h. */
6436 $ac_includes_default
6440 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
6447 rm -f conftest.
$ac_objext
6448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6449 (eval $ac_compile) 2>conftest.er1
6451 grep -v '^ *+' conftest.er1
>conftest.err
6453 cat conftest.err
>&5
6454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6455 (exit $ac_status); } &&
6456 { ac_try
='test -z "$ac_c_werror_flag"
6457 || test ! -s conftest.err'
6458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6462 (exit $ac_status); }; } &&
6463 { ac_try
='test -s conftest.$ac_objext'
6464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6468 (exit $ac_status); }; }; then
6471 cat >conftest.
$ac_ext <<_ACEOF
6474 cat confdefs.h
>>conftest.
$ac_ext
6475 cat >>conftest.
$ac_ext <<_ACEOF
6476 /* end confdefs.h. */
6477 $ac_includes_default
6481 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6488 rm -f conftest.
$ac_objext
6489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6490 (eval $ac_compile) 2>conftest.er1
6492 grep -v '^ *+' conftest.er1
>conftest.err
6494 cat conftest.err
>&5
6495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6496 (exit $ac_status); } &&
6497 { ac_try
='test -z "$ac_c_werror_flag"
6498 || test ! -s conftest.err'
6499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6503 (exit $ac_status); }; } &&
6504 { ac_try
='test -s conftest.$ac_objext'
6505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6509 (exit $ac_status); }; }; then
6510 ac_hi
=$ac_mid; break
6512 echo "$as_me: failed program was:" >&5
6513 sed 's/^/| /' conftest.
$ac_ext >&5
6515 ac_lo
=`expr $ac_mid + 1`
6516 if test $ac_lo -le $ac_mid; then
6520 ac_mid
=`expr 2 '*' $ac_mid + 1`
6522 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6525 echo "$as_me: failed program was:" >&5
6526 sed 's/^/| /' conftest.
$ac_ext >&5
6528 cat >conftest.
$ac_ext <<_ACEOF
6531 cat confdefs.h
>>conftest.
$ac_ext
6532 cat >>conftest.
$ac_ext <<_ACEOF
6533 /* end confdefs.h. */
6534 $ac_includes_default
6538 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
6545 rm -f conftest.
$ac_objext
6546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6547 (eval $ac_compile) 2>conftest.er1
6549 grep -v '^ *+' conftest.er1
>conftest.err
6551 cat conftest.err
>&5
6552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6553 (exit $ac_status); } &&
6554 { ac_try
='test -z "$ac_c_werror_flag"
6555 || test ! -s conftest.err'
6556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6560 (exit $ac_status); }; } &&
6561 { ac_try
='test -s conftest.$ac_objext'
6562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6566 (exit $ac_status); }; }; then
6569 cat >conftest.
$ac_ext <<_ACEOF
6572 cat confdefs.h
>>conftest.
$ac_ext
6573 cat >>conftest.
$ac_ext <<_ACEOF
6574 /* end confdefs.h. */
6575 $ac_includes_default
6579 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
6586 rm -f conftest.
$ac_objext
6587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6588 (eval $ac_compile) 2>conftest.er1
6590 grep -v '^ *+' conftest.er1
>conftest.err
6592 cat conftest.err
>&5
6593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6594 (exit $ac_status); } &&
6595 { ac_try
='test -z "$ac_c_werror_flag"
6596 || test ! -s conftest.err'
6597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601 (exit $ac_status); }; } &&
6602 { ac_try
='test -s conftest.$ac_objext'
6603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6607 (exit $ac_status); }; }; then
6608 ac_lo
=$ac_mid; break
6610 echo "$as_me: failed program was:" >&5
6611 sed 's/^/| /' conftest.
$ac_ext >&5
6613 ac_hi
=`expr '(' $ac_mid ')' - 1`
6614 if test $ac_mid -le $ac_hi; then
6618 ac_mid
=`expr 2 '*' $ac_mid`
6620 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6623 echo "$as_me: failed program was:" >&5
6624 sed 's/^/| /' conftest.
$ac_ext >&5
6628 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6630 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6631 # Binary search between lo and hi bounds.
6632 while test "x$ac_lo" != "x$ac_hi"; do
6633 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6634 cat >conftest.
$ac_ext <<_ACEOF
6637 cat confdefs.h
>>conftest.
$ac_ext
6638 cat >>conftest.
$ac_ext <<_ACEOF
6639 /* end confdefs.h. */
6640 $ac_includes_default
6644 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6651 rm -f conftest.
$ac_objext
6652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6653 (eval $ac_compile) 2>conftest.er1
6655 grep -v '^ *+' conftest.er1
>conftest.err
6657 cat conftest.err
>&5
6658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6659 (exit $ac_status); } &&
6660 { ac_try
='test -z "$ac_c_werror_flag"
6661 || test ! -s conftest.err'
6662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6666 (exit $ac_status); }; } &&
6667 { ac_try
='test -s conftest.$ac_objext'
6668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6672 (exit $ac_status); }; }; then
6675 echo "$as_me: failed program was:" >&5
6676 sed 's/^/| /' conftest.
$ac_ext >&5
6678 ac_lo
=`expr '(' $ac_mid ')' + 1`
6680 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6683 ?
*) ac_cv_sizeof_int
=$ac_lo;;
6684 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
6685 See \`config.log' for more details." >&5
6686 echo "$as_me: error: cannot compute sizeof (int), 77
6687 See \`config.log' for more details." >&2;}
6688 { (exit 1); exit 1; }; } ;;
6691 if test "$cross_compiling" = yes; then
6692 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6693 See \`config.log' for more details." >&5
6694 echo "$as_me: error: cannot run test program while cross compiling
6695 See \`config.log' for more details." >&2;}
6696 { (exit 1); exit 1; }; }
6698 cat >conftest.
$ac_ext <<_ACEOF
6701 cat confdefs.h
>>conftest.
$ac_ext
6702 cat >>conftest.
$ac_ext <<_ACEOF
6703 /* end confdefs.h. */
6704 $ac_includes_default
6705 long longval () { return (long) (sizeof (int)); }
6706 unsigned long ulongval () { return (long) (sizeof (int)); }
6713 FILE *f = fopen ("conftest.val", "w");
6716 if (((long) (sizeof (int))) < 0)
6718 long i = longval ();
6719 if (i != ((long) (sizeof (int))))
6721 fprintf (f, "%ld\n", i);
6725 unsigned long i = ulongval ();
6726 if (i != ((long) (sizeof (int))))
6728 fprintf (f, "%lu\n", i);
6730 exit (ferror (f) || fclose (f) != 0);
6736 rm -f conftest
$ac_exeext
6737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6738 (eval $ac_link) 2>&5
6740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6741 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6746 (exit $ac_status); }; }; then
6747 ac_cv_sizeof_int
=`cat conftest.val`
6749 echo "$as_me: program exited with status $ac_status" >&5
6750 echo "$as_me: failed program was:" >&5
6751 sed 's/^/| /' conftest.
$ac_ext >&5
6754 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
6755 See \`config.log' for more details." >&5
6756 echo "$as_me: error: cannot compute sizeof (int), 77
6757 See \`config.log' for more details." >&2;}
6758 { (exit 1); exit 1; }; }
6760 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6768 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6769 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
6770 cat >>confdefs.h
<<_ACEOF
6771 #define SIZEOF_INT $ac_cv_sizeof_int
6775 echo "$as_me:$LINENO: checking for long" >&5
6776 echo $ECHO_N "checking for long... $ECHO_C" >&6
6777 if test "${ac_cv_type_long+set}" = set; then
6778 echo $ECHO_N "(cached) $ECHO_C" >&6
6780 cat >conftest.
$ac_ext <<_ACEOF
6783 cat confdefs.h
>>conftest.
$ac_ext
6784 cat >>conftest.
$ac_ext <<_ACEOF
6785 /* end confdefs.h. */
6786 $ac_includes_default
6798 rm -f conftest.
$ac_objext
6799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6800 (eval $ac_compile) 2>conftest.er1
6802 grep -v '^ *+' conftest.er1
>conftest.err
6804 cat conftest.err
>&5
6805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6806 (exit $ac_status); } &&
6807 { ac_try
='test -z "$ac_c_werror_flag"
6808 || test ! -s conftest.err'
6809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6813 (exit $ac_status); }; } &&
6814 { ac_try
='test -s conftest.$ac_objext'
6815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6819 (exit $ac_status); }; }; then
6822 echo "$as_me: failed program was:" >&5
6823 sed 's/^/| /' conftest.
$ac_ext >&5
6827 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6829 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6830 echo "${ECHO_T}$ac_cv_type_long" >&6
6832 echo "$as_me:$LINENO: checking size of long" >&5
6833 echo $ECHO_N "checking size of long... $ECHO_C" >&6
6834 if test "${ac_cv_sizeof_long+set}" = set; then
6835 echo $ECHO_N "(cached) $ECHO_C" >&6
6837 if test "$ac_cv_type_long" = yes; then
6838 # The cast to unsigned long works around a bug in the HP C Compiler
6839 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6840 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6841 # This bug is HP SR number 8606223364.
6842 if test "$cross_compiling" = yes; then
6843 # Depending upon the size, compute the lo and hi bounds.
6844 cat >conftest.
$ac_ext <<_ACEOF
6847 cat confdefs.h
>>conftest.
$ac_ext
6848 cat >>conftest.
$ac_ext <<_ACEOF
6849 /* end confdefs.h. */
6850 $ac_includes_default
6854 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
6861 rm -f conftest.
$ac_objext
6862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6863 (eval $ac_compile) 2>conftest.er1
6865 grep -v '^ *+' conftest.er1
>conftest.err
6867 cat conftest.err
>&5
6868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6869 (exit $ac_status); } &&
6870 { ac_try
='test -z "$ac_c_werror_flag"
6871 || test ! -s conftest.err'
6872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6876 (exit $ac_status); }; } &&
6877 { ac_try
='test -s conftest.$ac_objext'
6878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6882 (exit $ac_status); }; }; then
6885 cat >conftest.
$ac_ext <<_ACEOF
6888 cat confdefs.h
>>conftest.
$ac_ext
6889 cat >>conftest.
$ac_ext <<_ACEOF
6890 /* end confdefs.h. */
6891 $ac_includes_default
6895 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6902 rm -f conftest.
$ac_objext
6903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6904 (eval $ac_compile) 2>conftest.er1
6906 grep -v '^ *+' conftest.er1
>conftest.err
6908 cat conftest.err
>&5
6909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6910 (exit $ac_status); } &&
6911 { ac_try
='test -z "$ac_c_werror_flag"
6912 || test ! -s conftest.err'
6913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6917 (exit $ac_status); }; } &&
6918 { ac_try
='test -s conftest.$ac_objext'
6919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6923 (exit $ac_status); }; }; then
6924 ac_hi
=$ac_mid; break
6926 echo "$as_me: failed program was:" >&5
6927 sed 's/^/| /' conftest.
$ac_ext >&5
6929 ac_lo
=`expr $ac_mid + 1`
6930 if test $ac_lo -le $ac_mid; then
6934 ac_mid
=`expr 2 '*' $ac_mid + 1`
6936 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6939 echo "$as_me: failed program was:" >&5
6940 sed 's/^/| /' conftest.
$ac_ext >&5
6942 cat >conftest.
$ac_ext <<_ACEOF
6945 cat confdefs.h
>>conftest.
$ac_ext
6946 cat >>conftest.
$ac_ext <<_ACEOF
6947 /* end confdefs.h. */
6948 $ac_includes_default
6952 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
6959 rm -f conftest.
$ac_objext
6960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6961 (eval $ac_compile) 2>conftest.er1
6963 grep -v '^ *+' conftest.er1
>conftest.err
6965 cat conftest.err
>&5
6966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6967 (exit $ac_status); } &&
6968 { ac_try
='test -z "$ac_c_werror_flag"
6969 || test ! -s conftest.err'
6970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6974 (exit $ac_status); }; } &&
6975 { ac_try
='test -s conftest.$ac_objext'
6976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6980 (exit $ac_status); }; }; then
6983 cat >conftest.
$ac_ext <<_ACEOF
6986 cat confdefs.h
>>conftest.
$ac_ext
6987 cat >>conftest.
$ac_ext <<_ACEOF
6988 /* end confdefs.h. */
6989 $ac_includes_default
6993 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
7000 rm -f conftest.
$ac_objext
7001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7002 (eval $ac_compile) 2>conftest.er1
7004 grep -v '^ *+' conftest.er1
>conftest.err
7006 cat conftest.err
>&5
7007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7008 (exit $ac_status); } &&
7009 { ac_try
='test -z "$ac_c_werror_flag"
7010 || test ! -s conftest.err'
7011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015 (exit $ac_status); }; } &&
7016 { ac_try
='test -s conftest.$ac_objext'
7017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021 (exit $ac_status); }; }; then
7022 ac_lo
=$ac_mid; break
7024 echo "$as_me: failed program was:" >&5
7025 sed 's/^/| /' conftest.
$ac_ext >&5
7027 ac_hi
=`expr '(' $ac_mid ')' - 1`
7028 if test $ac_mid -le $ac_hi; then
7032 ac_mid
=`expr 2 '*' $ac_mid`
7034 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7037 echo "$as_me: failed program was:" >&5
7038 sed 's/^/| /' conftest.
$ac_ext >&5
7042 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7044 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7045 # Binary search between lo and hi bounds.
7046 while test "x$ac_lo" != "x$ac_hi"; do
7047 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7048 cat >conftest.
$ac_ext <<_ACEOF
7051 cat confdefs.h
>>conftest.
$ac_ext
7052 cat >>conftest.
$ac_ext <<_ACEOF
7053 /* end confdefs.h. */
7054 $ac_includes_default
7058 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7065 rm -f conftest.
$ac_objext
7066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7067 (eval $ac_compile) 2>conftest.er1
7069 grep -v '^ *+' conftest.er1
>conftest.err
7071 cat conftest.err
>&5
7072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7073 (exit $ac_status); } &&
7074 { ac_try
='test -z "$ac_c_werror_flag"
7075 || test ! -s conftest.err'
7076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7080 (exit $ac_status); }; } &&
7081 { ac_try
='test -s conftest.$ac_objext'
7082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7086 (exit $ac_status); }; }; then
7089 echo "$as_me: failed program was:" >&5
7090 sed 's/^/| /' conftest.
$ac_ext >&5
7092 ac_lo
=`expr '(' $ac_mid ')' + 1`
7094 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7097 ?
*) ac_cv_sizeof_long
=$ac_lo;;
7098 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7099 See \`config.log' for more details." >&5
7100 echo "$as_me: error: cannot compute sizeof (long), 77
7101 See \`config.log' for more details." >&2;}
7102 { (exit 1); exit 1; }; } ;;
7105 if test "$cross_compiling" = yes; then
7106 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7107 See \`config.log' for more details." >&5
7108 echo "$as_me: error: cannot run test program while cross compiling
7109 See \`config.log' for more details." >&2;}
7110 { (exit 1); exit 1; }; }
7112 cat >conftest.
$ac_ext <<_ACEOF
7115 cat confdefs.h
>>conftest.
$ac_ext
7116 cat >>conftest.
$ac_ext <<_ACEOF
7117 /* end confdefs.h. */
7118 $ac_includes_default
7119 long longval () { return (long) (sizeof (long)); }
7120 unsigned long ulongval () { return (long) (sizeof (long)); }
7127 FILE *f = fopen ("conftest.val", "w");
7130 if (((long) (sizeof (long))) < 0)
7132 long i = longval ();
7133 if (i != ((long) (sizeof (long))))
7135 fprintf (f, "%ld\n", i);
7139 unsigned long i = ulongval ();
7140 if (i != ((long) (sizeof (long))))
7142 fprintf (f, "%lu\n", i);
7144 exit (ferror (f) || fclose (f) != 0);
7150 rm -f conftest
$ac_exeext
7151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7152 (eval $ac_link) 2>&5
7154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7155 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7160 (exit $ac_status); }; }; then
7161 ac_cv_sizeof_long
=`cat conftest.val`
7163 echo "$as_me: program exited with status $ac_status" >&5
7164 echo "$as_me: failed program was:" >&5
7165 sed 's/^/| /' conftest.
$ac_ext >&5
7168 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7169 See \`config.log' for more details." >&5
7170 echo "$as_me: error: cannot compute sizeof (long), 77
7171 See \`config.log' for more details." >&2;}
7172 { (exit 1); exit 1; }; }
7174 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7182 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7183 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7184 cat >>confdefs.h
<<_ACEOF
7185 #define SIZEOF_LONG $ac_cv_sizeof_long
7189 echo "$as_me:$LINENO: checking for void *" >&5
7190 echo $ECHO_N "checking for void *... $ECHO_C" >&6
7191 if test "${ac_cv_type_void_p+set}" = set; then
7192 echo $ECHO_N "(cached) $ECHO_C" >&6
7194 cat >conftest.
$ac_ext <<_ACEOF
7197 cat confdefs.h
>>conftest.
$ac_ext
7198 cat >>conftest.
$ac_ext <<_ACEOF
7199 /* end confdefs.h. */
7200 $ac_includes_default
7206 if (sizeof (void *))
7212 rm -f conftest.
$ac_objext
7213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7214 (eval $ac_compile) 2>conftest.er1
7216 grep -v '^ *+' conftest.er1
>conftest.err
7218 cat conftest.err
>&5
7219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7220 (exit $ac_status); } &&
7221 { ac_try
='test -z "$ac_c_werror_flag"
7222 || test ! -s conftest.err'
7223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7227 (exit $ac_status); }; } &&
7228 { ac_try
='test -s conftest.$ac_objext'
7229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7233 (exit $ac_status); }; }; then
7234 ac_cv_type_void_p
=yes
7236 echo "$as_me: failed program was:" >&5
7237 sed 's/^/| /' conftest.
$ac_ext >&5
7239 ac_cv_type_void_p
=no
7241 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7243 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
7244 echo "${ECHO_T}$ac_cv_type_void_p" >&6
7246 echo "$as_me:$LINENO: checking size of void *" >&5
7247 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
7248 if test "${ac_cv_sizeof_void_p+set}" = set; then
7249 echo $ECHO_N "(cached) $ECHO_C" >&6
7251 if test "$ac_cv_type_void_p" = yes; then
7252 # The cast to unsigned long works around a bug in the HP C Compiler
7253 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7254 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7255 # This bug is HP SR number 8606223364.
7256 if test "$cross_compiling" = yes; then
7257 # Depending upon the size, compute the lo and hi bounds.
7258 cat >conftest.
$ac_ext <<_ACEOF
7261 cat confdefs.h
>>conftest.
$ac_ext
7262 cat >>conftest.
$ac_ext <<_ACEOF
7263 /* end confdefs.h. */
7264 $ac_includes_default
7268 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
7275 rm -f conftest.
$ac_objext
7276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7277 (eval $ac_compile) 2>conftest.er1
7279 grep -v '^ *+' conftest.er1
>conftest.err
7281 cat conftest.err
>&5
7282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7283 (exit $ac_status); } &&
7284 { ac_try
='test -z "$ac_c_werror_flag"
7285 || test ! -s conftest.err'
7286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7290 (exit $ac_status); }; } &&
7291 { ac_try
='test -s conftest.$ac_objext'
7292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7296 (exit $ac_status); }; }; then
7299 cat >conftest.
$ac_ext <<_ACEOF
7302 cat confdefs.h
>>conftest.
$ac_ext
7303 cat >>conftest.
$ac_ext <<_ACEOF
7304 /* end confdefs.h. */
7305 $ac_includes_default
7309 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
7316 rm -f conftest.
$ac_objext
7317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7318 (eval $ac_compile) 2>conftest.er1
7320 grep -v '^ *+' conftest.er1
>conftest.err
7322 cat conftest.err
>&5
7323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7324 (exit $ac_status); } &&
7325 { ac_try
='test -z "$ac_c_werror_flag"
7326 || test ! -s conftest.err'
7327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7331 (exit $ac_status); }; } &&
7332 { ac_try
='test -s conftest.$ac_objext'
7333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7337 (exit $ac_status); }; }; then
7338 ac_hi
=$ac_mid; break
7340 echo "$as_me: failed program was:" >&5
7341 sed 's/^/| /' conftest.
$ac_ext >&5
7343 ac_lo
=`expr $ac_mid + 1`
7344 if test $ac_lo -le $ac_mid; then
7348 ac_mid
=`expr 2 '*' $ac_mid + 1`
7350 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7353 echo "$as_me: failed program was:" >&5
7354 sed 's/^/| /' conftest.
$ac_ext >&5
7356 cat >conftest.
$ac_ext <<_ACEOF
7359 cat confdefs.h
>>conftest.
$ac_ext
7360 cat >>conftest.
$ac_ext <<_ACEOF
7361 /* end confdefs.h. */
7362 $ac_includes_default
7366 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
7373 rm -f conftest.
$ac_objext
7374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7375 (eval $ac_compile) 2>conftest.er1
7377 grep -v '^ *+' conftest.er1
>conftest.err
7379 cat conftest.err
>&5
7380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7381 (exit $ac_status); } &&
7382 { ac_try
='test -z "$ac_c_werror_flag"
7383 || test ! -s conftest.err'
7384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7388 (exit $ac_status); }; } &&
7389 { ac_try
='test -s conftest.$ac_objext'
7390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7394 (exit $ac_status); }; }; then
7397 cat >conftest.
$ac_ext <<_ACEOF
7400 cat confdefs.h
>>conftest.
$ac_ext
7401 cat >>conftest.
$ac_ext <<_ACEOF
7402 /* end confdefs.h. */
7403 $ac_includes_default
7407 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
7414 rm -f conftest.
$ac_objext
7415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7416 (eval $ac_compile) 2>conftest.er1
7418 grep -v '^ *+' conftest.er1
>conftest.err
7420 cat conftest.err
>&5
7421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7422 (exit $ac_status); } &&
7423 { ac_try
='test -z "$ac_c_werror_flag"
7424 || test ! -s conftest.err'
7425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7429 (exit $ac_status); }; } &&
7430 { ac_try
='test -s conftest.$ac_objext'
7431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7435 (exit $ac_status); }; }; then
7436 ac_lo
=$ac_mid; break
7438 echo "$as_me: failed program was:" >&5
7439 sed 's/^/| /' conftest.
$ac_ext >&5
7441 ac_hi
=`expr '(' $ac_mid ')' - 1`
7442 if test $ac_mid -le $ac_hi; then
7446 ac_mid
=`expr 2 '*' $ac_mid`
7448 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7451 echo "$as_me: failed program was:" >&5
7452 sed 's/^/| /' conftest.
$ac_ext >&5
7456 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7458 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7459 # Binary search between lo and hi bounds.
7460 while test "x$ac_lo" != "x$ac_hi"; do
7461 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7462 cat >conftest.
$ac_ext <<_ACEOF
7465 cat confdefs.h
>>conftest.
$ac_ext
7466 cat >>conftest.
$ac_ext <<_ACEOF
7467 /* end confdefs.h. */
7468 $ac_includes_default
7472 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
7479 rm -f conftest.
$ac_objext
7480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7481 (eval $ac_compile) 2>conftest.er1
7483 grep -v '^ *+' conftest.er1
>conftest.err
7485 cat conftest.err
>&5
7486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7487 (exit $ac_status); } &&
7488 { ac_try
='test -z "$ac_c_werror_flag"
7489 || test ! -s conftest.err'
7490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7494 (exit $ac_status); }; } &&
7495 { ac_try
='test -s conftest.$ac_objext'
7496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7500 (exit $ac_status); }; }; then
7503 echo "$as_me: failed program was:" >&5
7504 sed 's/^/| /' conftest.
$ac_ext >&5
7506 ac_lo
=`expr '(' $ac_mid ')' + 1`
7508 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7511 ?
*) ac_cv_sizeof_void_p
=$ac_lo;;
7512 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
7513 See \`config.log' for more details." >&5
7514 echo "$as_me: error: cannot compute sizeof (void *), 77
7515 See \`config.log' for more details." >&2;}
7516 { (exit 1); exit 1; }; } ;;
7519 if test "$cross_compiling" = yes; then
7520 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7521 See \`config.log' for more details." >&5
7522 echo "$as_me: error: cannot run test program while cross compiling
7523 See \`config.log' for more details." >&2;}
7524 { (exit 1); exit 1; }; }
7526 cat >conftest.
$ac_ext <<_ACEOF
7529 cat confdefs.h
>>conftest.
$ac_ext
7530 cat >>conftest.
$ac_ext <<_ACEOF
7531 /* end confdefs.h. */
7532 $ac_includes_default
7533 long longval () { return (long) (sizeof (void *)); }
7534 unsigned long ulongval () { return (long) (sizeof (void *)); }
7541 FILE *f = fopen ("conftest.val", "w");
7544 if (((long) (sizeof (void *))) < 0)
7546 long i = longval ();
7547 if (i != ((long) (sizeof (void *))))
7549 fprintf (f, "%ld\n", i);
7553 unsigned long i = ulongval ();
7554 if (i != ((long) (sizeof (void *))))
7556 fprintf (f, "%lu\n", i);
7558 exit (ferror (f) || fclose (f) != 0);
7564 rm -f conftest
$ac_exeext
7565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7566 (eval $ac_link) 2>&5
7568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7569 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7574 (exit $ac_status); }; }; then
7575 ac_cv_sizeof_void_p
=`cat conftest.val`
7577 echo "$as_me: program exited with status $ac_status" >&5
7578 echo "$as_me: failed program was:" >&5
7579 sed 's/^/| /' conftest.
$ac_ext >&5
7582 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
7583 See \`config.log' for more details." >&5
7584 echo "$as_me: error: cannot compute sizeof (void *), 77
7585 See \`config.log' for more details." >&2;}
7586 { (exit 1); exit 1; }; }
7588 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7593 ac_cv_sizeof_void_p
=0
7596 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
7597 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
7598 cat >>confdefs.h
<<_ACEOF
7599 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
7603 echo "$as_me:$LINENO: checking for short" >&5
7604 echo $ECHO_N "checking for short... $ECHO_C" >&6
7605 if test "${ac_cv_type_short+set}" = set; then
7606 echo $ECHO_N "(cached) $ECHO_C" >&6
7608 cat >conftest.
$ac_ext <<_ACEOF
7611 cat confdefs.h
>>conftest.
$ac_ext
7612 cat >>conftest.
$ac_ext <<_ACEOF
7613 /* end confdefs.h. */
7614 $ac_includes_default
7626 rm -f conftest.
$ac_objext
7627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7628 (eval $ac_compile) 2>conftest.er1
7630 grep -v '^ *+' conftest.er1
>conftest.err
7632 cat conftest.err
>&5
7633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7634 (exit $ac_status); } &&
7635 { ac_try
='test -z "$ac_c_werror_flag"
7636 || test ! -s conftest.err'
7637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7641 (exit $ac_status); }; } &&
7642 { ac_try
='test -s conftest.$ac_objext'
7643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7647 (exit $ac_status); }; }; then
7648 ac_cv_type_short
=yes
7650 echo "$as_me: failed program was:" >&5
7651 sed 's/^/| /' conftest.
$ac_ext >&5
7655 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7657 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
7658 echo "${ECHO_T}$ac_cv_type_short" >&6
7660 echo "$as_me:$LINENO: checking size of short" >&5
7661 echo $ECHO_N "checking size of short... $ECHO_C" >&6
7662 if test "${ac_cv_sizeof_short+set}" = set; then
7663 echo $ECHO_N "(cached) $ECHO_C" >&6
7665 if test "$ac_cv_type_short" = yes; then
7666 # The cast to unsigned long works around a bug in the HP C Compiler
7667 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7668 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7669 # This bug is HP SR number 8606223364.
7670 if test "$cross_compiling" = yes; then
7671 # Depending upon the size, compute the lo and hi bounds.
7672 cat >conftest.
$ac_ext <<_ACEOF
7675 cat confdefs.h
>>conftest.
$ac_ext
7676 cat >>conftest.
$ac_ext <<_ACEOF
7677 /* end confdefs.h. */
7678 $ac_includes_default
7682 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
7689 rm -f conftest.
$ac_objext
7690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7691 (eval $ac_compile) 2>conftest.er1
7693 grep -v '^ *+' conftest.er1
>conftest.err
7695 cat conftest.err
>&5
7696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7697 (exit $ac_status); } &&
7698 { ac_try
='test -z "$ac_c_werror_flag"
7699 || test ! -s conftest.err'
7700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7704 (exit $ac_status); }; } &&
7705 { ac_try
='test -s conftest.$ac_objext'
7706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7710 (exit $ac_status); }; }; then
7713 cat >conftest.
$ac_ext <<_ACEOF
7716 cat confdefs.h
>>conftest.
$ac_ext
7717 cat >>conftest.
$ac_ext <<_ACEOF
7718 /* end confdefs.h. */
7719 $ac_includes_default
7723 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7730 rm -f conftest.
$ac_objext
7731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7732 (eval $ac_compile) 2>conftest.er1
7734 grep -v '^ *+' conftest.er1
>conftest.err
7736 cat conftest.err
>&5
7737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7738 (exit $ac_status); } &&
7739 { ac_try
='test -z "$ac_c_werror_flag"
7740 || test ! -s conftest.err'
7741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7745 (exit $ac_status); }; } &&
7746 { ac_try
='test -s conftest.$ac_objext'
7747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7751 (exit $ac_status); }; }; then
7752 ac_hi
=$ac_mid; break
7754 echo "$as_me: failed program was:" >&5
7755 sed 's/^/| /' conftest.
$ac_ext >&5
7757 ac_lo
=`expr $ac_mid + 1`
7758 if test $ac_lo -le $ac_mid; then
7762 ac_mid
=`expr 2 '*' $ac_mid + 1`
7764 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7767 echo "$as_me: failed program was:" >&5
7768 sed 's/^/| /' conftest.
$ac_ext >&5
7770 cat >conftest.
$ac_ext <<_ACEOF
7773 cat confdefs.h
>>conftest.
$ac_ext
7774 cat >>conftest.
$ac_ext <<_ACEOF
7775 /* end confdefs.h. */
7776 $ac_includes_default
7780 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
7787 rm -f conftest.
$ac_objext
7788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7789 (eval $ac_compile) 2>conftest.er1
7791 grep -v '^ *+' conftest.er1
>conftest.err
7793 cat conftest.err
>&5
7794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7795 (exit $ac_status); } &&
7796 { ac_try
='test -z "$ac_c_werror_flag"
7797 || test ! -s conftest.err'
7798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7802 (exit $ac_status); }; } &&
7803 { ac_try
='test -s conftest.$ac_objext'
7804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7808 (exit $ac_status); }; }; then
7811 cat >conftest.
$ac_ext <<_ACEOF
7814 cat confdefs.h
>>conftest.
$ac_ext
7815 cat >>conftest.
$ac_ext <<_ACEOF
7816 /* end confdefs.h. */
7817 $ac_includes_default
7821 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
7828 rm -f conftest.
$ac_objext
7829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7830 (eval $ac_compile) 2>conftest.er1
7832 grep -v '^ *+' conftest.er1
>conftest.err
7834 cat conftest.err
>&5
7835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7836 (exit $ac_status); } &&
7837 { ac_try
='test -z "$ac_c_werror_flag"
7838 || test ! -s conftest.err'
7839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7843 (exit $ac_status); }; } &&
7844 { ac_try
='test -s conftest.$ac_objext'
7845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7849 (exit $ac_status); }; }; then
7850 ac_lo
=$ac_mid; break
7852 echo "$as_me: failed program was:" >&5
7853 sed 's/^/| /' conftest.
$ac_ext >&5
7855 ac_hi
=`expr '(' $ac_mid ')' - 1`
7856 if test $ac_mid -le $ac_hi; then
7860 ac_mid
=`expr 2 '*' $ac_mid`
7862 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7865 echo "$as_me: failed program was:" >&5
7866 sed 's/^/| /' conftest.
$ac_ext >&5
7870 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7872 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7873 # Binary search between lo and hi bounds.
7874 while test "x$ac_lo" != "x$ac_hi"; do
7875 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7876 cat >conftest.
$ac_ext <<_ACEOF
7879 cat confdefs.h
>>conftest.
$ac_ext
7880 cat >>conftest.
$ac_ext <<_ACEOF
7881 /* end confdefs.h. */
7882 $ac_includes_default
7886 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7893 rm -f conftest.
$ac_objext
7894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7895 (eval $ac_compile) 2>conftest.er1
7897 grep -v '^ *+' conftest.er1
>conftest.err
7899 cat conftest.err
>&5
7900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7901 (exit $ac_status); } &&
7902 { ac_try
='test -z "$ac_c_werror_flag"
7903 || test ! -s conftest.err'
7904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7908 (exit $ac_status); }; } &&
7909 { ac_try
='test -s conftest.$ac_objext'
7910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7914 (exit $ac_status); }; }; then
7917 echo "$as_me: failed program was:" >&5
7918 sed 's/^/| /' conftest.
$ac_ext >&5
7920 ac_lo
=`expr '(' $ac_mid ')' + 1`
7922 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7925 ?
*) ac_cv_sizeof_short
=$ac_lo;;
7926 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7927 See \`config.log' for more details." >&5
7928 echo "$as_me: error: cannot compute sizeof (short), 77
7929 See \`config.log' for more details." >&2;}
7930 { (exit 1); exit 1; }; } ;;
7933 if test "$cross_compiling" = yes; then
7934 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7935 See \`config.log' for more details." >&5
7936 echo "$as_me: error: cannot run test program while cross compiling
7937 See \`config.log' for more details." >&2;}
7938 { (exit 1); exit 1; }; }
7940 cat >conftest.
$ac_ext <<_ACEOF
7943 cat confdefs.h
>>conftest.
$ac_ext
7944 cat >>conftest.
$ac_ext <<_ACEOF
7945 /* end confdefs.h. */
7946 $ac_includes_default
7947 long longval () { return (long) (sizeof (short)); }
7948 unsigned long ulongval () { return (long) (sizeof (short)); }
7955 FILE *f = fopen ("conftest.val", "w");
7958 if (((long) (sizeof (short))) < 0)
7960 long i = longval ();
7961 if (i != ((long) (sizeof (short))))
7963 fprintf (f, "%ld\n", i);
7967 unsigned long i = ulongval ();
7968 if (i != ((long) (sizeof (short))))
7970 fprintf (f, "%lu\n", i);
7972 exit (ferror (f) || fclose (f) != 0);
7978 rm -f conftest
$ac_exeext
7979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7980 (eval $ac_link) 2>&5
7982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7983 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7988 (exit $ac_status); }; }; then
7989 ac_cv_sizeof_short
=`cat conftest.val`
7991 echo "$as_me: program exited with status $ac_status" >&5
7992 echo "$as_me: failed program was:" >&5
7993 sed 's/^/| /' conftest.
$ac_ext >&5
7996 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7997 See \`config.log' for more details." >&5
7998 echo "$as_me: error: cannot compute sizeof (short), 77
7999 See \`config.log' for more details." >&2;}
8000 { (exit 1); exit 1; }; }
8002 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8007 ac_cv_sizeof_short
=0
8010 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
8011 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
8012 cat >>confdefs.h
<<_ACEOF
8013 #define SIZEOF_SHORT $ac_cv_sizeof_short
8017 echo "$as_me:$LINENO: checking for float" >&5
8018 echo $ECHO_N "checking for float... $ECHO_C" >&6
8019 if test "${ac_cv_type_float+set}" = set; then
8020 echo $ECHO_N "(cached) $ECHO_C" >&6
8022 cat >conftest.
$ac_ext <<_ACEOF
8025 cat confdefs.h
>>conftest.
$ac_ext
8026 cat >>conftest.
$ac_ext <<_ACEOF
8027 /* end confdefs.h. */
8028 $ac_includes_default
8040 rm -f conftest.
$ac_objext
8041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8042 (eval $ac_compile) 2>conftest.er1
8044 grep -v '^ *+' conftest.er1
>conftest.err
8046 cat conftest.err
>&5
8047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8048 (exit $ac_status); } &&
8049 { ac_try
='test -z "$ac_c_werror_flag"
8050 || test ! -s conftest.err'
8051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8055 (exit $ac_status); }; } &&
8056 { ac_try
='test -s conftest.$ac_objext'
8057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8061 (exit $ac_status); }; }; then
8062 ac_cv_type_float
=yes
8064 echo "$as_me: failed program was:" >&5
8065 sed 's/^/| /' conftest.
$ac_ext >&5
8069 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8071 echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
8072 echo "${ECHO_T}$ac_cv_type_float" >&6
8074 echo "$as_me:$LINENO: checking size of float" >&5
8075 echo $ECHO_N "checking size of float... $ECHO_C" >&6
8076 if test "${ac_cv_sizeof_float+set}" = set; then
8077 echo $ECHO_N "(cached) $ECHO_C" >&6
8079 if test "$ac_cv_type_float" = yes; then
8080 # The cast to unsigned long works around a bug in the HP C Compiler
8081 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8082 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8083 # This bug is HP SR number 8606223364.
8084 if test "$cross_compiling" = yes; then
8085 # Depending upon the size, compute the lo and hi bounds.
8086 cat >conftest.
$ac_ext <<_ACEOF
8089 cat confdefs.h
>>conftest.
$ac_ext
8090 cat >>conftest.
$ac_ext <<_ACEOF
8091 /* end confdefs.h. */
8092 $ac_includes_default
8096 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)];
8103 rm -f conftest.
$ac_objext
8104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8105 (eval $ac_compile) 2>conftest.er1
8107 grep -v '^ *+' conftest.er1
>conftest.err
8109 cat conftest.err
>&5
8110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8111 (exit $ac_status); } &&
8112 { ac_try
='test -z "$ac_c_werror_flag"
8113 || test ! -s conftest.err'
8114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8118 (exit $ac_status); }; } &&
8119 { ac_try
='test -s conftest.$ac_objext'
8120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8124 (exit $ac_status); }; }; then
8127 cat >conftest.
$ac_ext <<_ACEOF
8130 cat confdefs.h
>>conftest.
$ac_ext
8131 cat >>conftest.
$ac_ext <<_ACEOF
8132 /* end confdefs.h. */
8133 $ac_includes_default
8137 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
8144 rm -f conftest.
$ac_objext
8145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8146 (eval $ac_compile) 2>conftest.er1
8148 grep -v '^ *+' conftest.er1
>conftest.err
8150 cat conftest.err
>&5
8151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8152 (exit $ac_status); } &&
8153 { ac_try
='test -z "$ac_c_werror_flag"
8154 || test ! -s conftest.err'
8155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8159 (exit $ac_status); }; } &&
8160 { ac_try
='test -s conftest.$ac_objext'
8161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8165 (exit $ac_status); }; }; then
8166 ac_hi
=$ac_mid; break
8168 echo "$as_me: failed program was:" >&5
8169 sed 's/^/| /' conftest.
$ac_ext >&5
8171 ac_lo
=`expr $ac_mid + 1`
8172 if test $ac_lo -le $ac_mid; then
8176 ac_mid
=`expr 2 '*' $ac_mid + 1`
8178 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8181 echo "$as_me: failed program was:" >&5
8182 sed 's/^/| /' conftest.
$ac_ext >&5
8184 cat >conftest.
$ac_ext <<_ACEOF
8187 cat confdefs.h
>>conftest.
$ac_ext
8188 cat >>conftest.
$ac_ext <<_ACEOF
8189 /* end confdefs.h. */
8190 $ac_includes_default
8194 static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)];
8201 rm -f conftest.
$ac_objext
8202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8203 (eval $ac_compile) 2>conftest.er1
8205 grep -v '^ *+' conftest.er1
>conftest.err
8207 cat conftest.err
>&5
8208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8209 (exit $ac_status); } &&
8210 { ac_try
='test -z "$ac_c_werror_flag"
8211 || test ! -s conftest.err'
8212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8216 (exit $ac_status); }; } &&
8217 { ac_try
='test -s conftest.$ac_objext'
8218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8222 (exit $ac_status); }; }; then
8225 cat >conftest.
$ac_ext <<_ACEOF
8228 cat confdefs.h
>>conftest.
$ac_ext
8229 cat >>conftest.
$ac_ext <<_ACEOF
8230 /* end confdefs.h. */
8231 $ac_includes_default
8235 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)];
8242 rm -f conftest.
$ac_objext
8243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8244 (eval $ac_compile) 2>conftest.er1
8246 grep -v '^ *+' conftest.er1
>conftest.err
8248 cat conftest.err
>&5
8249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8250 (exit $ac_status); } &&
8251 { ac_try
='test -z "$ac_c_werror_flag"
8252 || test ! -s conftest.err'
8253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257 (exit $ac_status); }; } &&
8258 { ac_try
='test -s conftest.$ac_objext'
8259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8263 (exit $ac_status); }; }; then
8264 ac_lo
=$ac_mid; break
8266 echo "$as_me: failed program was:" >&5
8267 sed 's/^/| /' conftest.
$ac_ext >&5
8269 ac_hi
=`expr '(' $ac_mid ')' - 1`
8270 if test $ac_mid -le $ac_hi; then
8274 ac_mid
=`expr 2 '*' $ac_mid`
8276 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8279 echo "$as_me: failed program was:" >&5
8280 sed 's/^/| /' conftest.
$ac_ext >&5
8284 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8286 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8287 # Binary search between lo and hi bounds.
8288 while test "x$ac_lo" != "x$ac_hi"; do
8289 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8290 cat >conftest.
$ac_ext <<_ACEOF
8293 cat confdefs.h
>>conftest.
$ac_ext
8294 cat >>conftest.
$ac_ext <<_ACEOF
8295 /* end confdefs.h. */
8296 $ac_includes_default
8300 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
8307 rm -f conftest.
$ac_objext
8308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8309 (eval $ac_compile) 2>conftest.er1
8311 grep -v '^ *+' conftest.er1
>conftest.err
8313 cat conftest.err
>&5
8314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8315 (exit $ac_status); } &&
8316 { ac_try
='test -z "$ac_c_werror_flag"
8317 || test ! -s conftest.err'
8318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8322 (exit $ac_status); }; } &&
8323 { ac_try
='test -s conftest.$ac_objext'
8324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8328 (exit $ac_status); }; }; then
8331 echo "$as_me: failed program was:" >&5
8332 sed 's/^/| /' conftest.
$ac_ext >&5
8334 ac_lo
=`expr '(' $ac_mid ')' + 1`
8336 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8339 ?
*) ac_cv_sizeof_float
=$ac_lo;;
8340 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
8341 See \`config.log' for more details." >&5
8342 echo "$as_me: error: cannot compute sizeof (float), 77
8343 See \`config.log' for more details." >&2;}
8344 { (exit 1); exit 1; }; } ;;
8347 if test "$cross_compiling" = yes; then
8348 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8349 See \`config.log' for more details." >&5
8350 echo "$as_me: error: cannot run test program while cross compiling
8351 See \`config.log' for more details." >&2;}
8352 { (exit 1); exit 1; }; }
8354 cat >conftest.
$ac_ext <<_ACEOF
8357 cat confdefs.h
>>conftest.
$ac_ext
8358 cat >>conftest.
$ac_ext <<_ACEOF
8359 /* end confdefs.h. */
8360 $ac_includes_default
8361 long longval () { return (long) (sizeof (float)); }
8362 unsigned long ulongval () { return (long) (sizeof (float)); }
8369 FILE *f = fopen ("conftest.val", "w");
8372 if (((long) (sizeof (float))) < 0)
8374 long i = longval ();
8375 if (i != ((long) (sizeof (float))))
8377 fprintf (f, "%ld\n", i);
8381 unsigned long i = ulongval ();
8382 if (i != ((long) (sizeof (float))))
8384 fprintf (f, "%lu\n", i);
8386 exit (ferror (f) || fclose (f) != 0);
8392 rm -f conftest
$ac_exeext
8393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8394 (eval $ac_link) 2>&5
8396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8397 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402 (exit $ac_status); }; }; then
8403 ac_cv_sizeof_float
=`cat conftest.val`
8405 echo "$as_me: program exited with status $ac_status" >&5
8406 echo "$as_me: failed program was:" >&5
8407 sed 's/^/| /' conftest.
$ac_ext >&5
8410 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
8411 See \`config.log' for more details." >&5
8412 echo "$as_me: error: cannot compute sizeof (float), 77
8413 See \`config.log' for more details." >&2;}
8414 { (exit 1); exit 1; }; }
8416 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8421 ac_cv_sizeof_float
=0
8424 echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
8425 echo "${ECHO_T}$ac_cv_sizeof_float" >&6
8426 cat >>confdefs.h
<<_ACEOF
8427 #define SIZEOF_FLOAT $ac_cv_sizeof_float
8431 echo "$as_me:$LINENO: checking for double" >&5
8432 echo $ECHO_N "checking for double... $ECHO_C" >&6
8433 if test "${ac_cv_type_double+set}" = set; then
8434 echo $ECHO_N "(cached) $ECHO_C" >&6
8436 cat >conftest.
$ac_ext <<_ACEOF
8439 cat confdefs.h
>>conftest.
$ac_ext
8440 cat >>conftest.
$ac_ext <<_ACEOF
8441 /* end confdefs.h. */
8442 $ac_includes_default
8448 if (sizeof (double))
8454 rm -f conftest.
$ac_objext
8455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8456 (eval $ac_compile) 2>conftest.er1
8458 grep -v '^ *+' conftest.er1
>conftest.err
8460 cat conftest.err
>&5
8461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8462 (exit $ac_status); } &&
8463 { ac_try
='test -z "$ac_c_werror_flag"
8464 || test ! -s conftest.err'
8465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8469 (exit $ac_status); }; } &&
8470 { ac_try
='test -s conftest.$ac_objext'
8471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8475 (exit $ac_status); }; }; then
8476 ac_cv_type_double
=yes
8478 echo "$as_me: failed program was:" >&5
8479 sed 's/^/| /' conftest.
$ac_ext >&5
8481 ac_cv_type_double
=no
8483 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8485 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
8486 echo "${ECHO_T}$ac_cv_type_double" >&6
8488 echo "$as_me:$LINENO: checking size of double" >&5
8489 echo $ECHO_N "checking size of double... $ECHO_C" >&6
8490 if test "${ac_cv_sizeof_double+set}" = set; then
8491 echo $ECHO_N "(cached) $ECHO_C" >&6
8493 if test "$ac_cv_type_double" = yes; then
8494 # The cast to unsigned long works around a bug in the HP C Compiler
8495 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8496 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8497 # This bug is HP SR number 8606223364.
8498 if test "$cross_compiling" = yes; then
8499 # Depending upon the size, compute the lo and hi bounds.
8500 cat >conftest.
$ac_ext <<_ACEOF
8503 cat confdefs.h
>>conftest.
$ac_ext
8504 cat >>conftest.
$ac_ext <<_ACEOF
8505 /* end confdefs.h. */
8506 $ac_includes_default
8510 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
8517 rm -f conftest.
$ac_objext
8518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8519 (eval $ac_compile) 2>conftest.er1
8521 grep -v '^ *+' conftest.er1
>conftest.err
8523 cat conftest.err
>&5
8524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8525 (exit $ac_status); } &&
8526 { ac_try
='test -z "$ac_c_werror_flag"
8527 || test ! -s conftest.err'
8528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8532 (exit $ac_status); }; } &&
8533 { ac_try
='test -s conftest.$ac_objext'
8534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8538 (exit $ac_status); }; }; then
8541 cat >conftest.
$ac_ext <<_ACEOF
8544 cat confdefs.h
>>conftest.
$ac_ext
8545 cat >>conftest.
$ac_ext <<_ACEOF
8546 /* end confdefs.h. */
8547 $ac_includes_default
8551 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
8558 rm -f conftest.
$ac_objext
8559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8560 (eval $ac_compile) 2>conftest.er1
8562 grep -v '^ *+' conftest.er1
>conftest.err
8564 cat conftest.err
>&5
8565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566 (exit $ac_status); } &&
8567 { ac_try
='test -z "$ac_c_werror_flag"
8568 || test ! -s conftest.err'
8569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8573 (exit $ac_status); }; } &&
8574 { ac_try
='test -s conftest.$ac_objext'
8575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8579 (exit $ac_status); }; }; then
8580 ac_hi
=$ac_mid; break
8582 echo "$as_me: failed program was:" >&5
8583 sed 's/^/| /' conftest.
$ac_ext >&5
8585 ac_lo
=`expr $ac_mid + 1`
8586 if test $ac_lo -le $ac_mid; then
8590 ac_mid
=`expr 2 '*' $ac_mid + 1`
8592 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8595 echo "$as_me: failed program was:" >&5
8596 sed 's/^/| /' conftest.
$ac_ext >&5
8598 cat >conftest.
$ac_ext <<_ACEOF
8601 cat confdefs.h
>>conftest.
$ac_ext
8602 cat >>conftest.
$ac_ext <<_ACEOF
8603 /* end confdefs.h. */
8604 $ac_includes_default
8608 static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
8615 rm -f conftest.
$ac_objext
8616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8617 (eval $ac_compile) 2>conftest.er1
8619 grep -v '^ *+' conftest.er1
>conftest.err
8621 cat conftest.err
>&5
8622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623 (exit $ac_status); } &&
8624 { ac_try
='test -z "$ac_c_werror_flag"
8625 || test ! -s conftest.err'
8626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8630 (exit $ac_status); }; } &&
8631 { ac_try
='test -s conftest.$ac_objext'
8632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8636 (exit $ac_status); }; }; then
8639 cat >conftest.
$ac_ext <<_ACEOF
8642 cat confdefs.h
>>conftest.
$ac_ext
8643 cat >>conftest.
$ac_ext <<_ACEOF
8644 /* end confdefs.h. */
8645 $ac_includes_default
8649 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
8656 rm -f conftest.
$ac_objext
8657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8658 (eval $ac_compile) 2>conftest.er1
8660 grep -v '^ *+' conftest.er1
>conftest.err
8662 cat conftest.err
>&5
8663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8664 (exit $ac_status); } &&
8665 { ac_try
='test -z "$ac_c_werror_flag"
8666 || test ! -s conftest.err'
8667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8671 (exit $ac_status); }; } &&
8672 { ac_try
='test -s conftest.$ac_objext'
8673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8677 (exit $ac_status); }; }; then
8678 ac_lo
=$ac_mid; break
8680 echo "$as_me: failed program was:" >&5
8681 sed 's/^/| /' conftest.
$ac_ext >&5
8683 ac_hi
=`expr '(' $ac_mid ')' - 1`
8684 if test $ac_mid -le $ac_hi; then
8688 ac_mid
=`expr 2 '*' $ac_mid`
8690 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8693 echo "$as_me: failed program was:" >&5
8694 sed 's/^/| /' conftest.
$ac_ext >&5
8698 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8700 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8701 # Binary search between lo and hi bounds.
8702 while test "x$ac_lo" != "x$ac_hi"; do
8703 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8704 cat >conftest.
$ac_ext <<_ACEOF
8707 cat confdefs.h
>>conftest.
$ac_ext
8708 cat >>conftest.
$ac_ext <<_ACEOF
8709 /* end confdefs.h. */
8710 $ac_includes_default
8714 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
8721 rm -f conftest.
$ac_objext
8722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8723 (eval $ac_compile) 2>conftest.er1
8725 grep -v '^ *+' conftest.er1
>conftest.err
8727 cat conftest.err
>&5
8728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8729 (exit $ac_status); } &&
8730 { ac_try
='test -z "$ac_c_werror_flag"
8731 || test ! -s conftest.err'
8732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8736 (exit $ac_status); }; } &&
8737 { ac_try
='test -s conftest.$ac_objext'
8738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8742 (exit $ac_status); }; }; then
8745 echo "$as_me: failed program was:" >&5
8746 sed 's/^/| /' conftest.
$ac_ext >&5
8748 ac_lo
=`expr '(' $ac_mid ')' + 1`
8750 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8753 ?
*) ac_cv_sizeof_double
=$ac_lo;;
8754 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
8755 See \`config.log' for more details." >&5
8756 echo "$as_me: error: cannot compute sizeof (double), 77
8757 See \`config.log' for more details." >&2;}
8758 { (exit 1); exit 1; }; } ;;
8761 if test "$cross_compiling" = yes; then
8762 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8763 See \`config.log' for more details." >&5
8764 echo "$as_me: error: cannot run test program while cross compiling
8765 See \`config.log' for more details." >&2;}
8766 { (exit 1); exit 1; }; }
8768 cat >conftest.
$ac_ext <<_ACEOF
8771 cat confdefs.h
>>conftest.
$ac_ext
8772 cat >>conftest.
$ac_ext <<_ACEOF
8773 /* end confdefs.h. */
8774 $ac_includes_default
8775 long longval () { return (long) (sizeof (double)); }
8776 unsigned long ulongval () { return (long) (sizeof (double)); }
8783 FILE *f = fopen ("conftest.val", "w");
8786 if (((long) (sizeof (double))) < 0)
8788 long i = longval ();
8789 if (i != ((long) (sizeof (double))))
8791 fprintf (f, "%ld\n", i);
8795 unsigned long i = ulongval ();
8796 if (i != ((long) (sizeof (double))))
8798 fprintf (f, "%lu\n", i);
8800 exit (ferror (f) || fclose (f) != 0);
8806 rm -f conftest
$ac_exeext
8807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8808 (eval $ac_link) 2>&5
8810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8811 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8816 (exit $ac_status); }; }; then
8817 ac_cv_sizeof_double
=`cat conftest.val`
8819 echo "$as_me: program exited with status $ac_status" >&5
8820 echo "$as_me: failed program was:" >&5
8821 sed 's/^/| /' conftest.
$ac_ext >&5
8824 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
8825 See \`config.log' for more details." >&5
8826 echo "$as_me: error: cannot compute sizeof (double), 77
8827 See \`config.log' for more details." >&2;}
8828 { (exit 1); exit 1; }; }
8830 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8835 ac_cv_sizeof_double
=0
8838 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
8839 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
8840 cat >>confdefs.h
<<_ACEOF
8841 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
8845 echo "$as_me:$LINENO: checking for fpos_t" >&5
8846 echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6
8847 if test "${ac_cv_type_fpos_t+set}" = set; then
8848 echo $ECHO_N "(cached) $ECHO_C" >&6
8850 cat >conftest.
$ac_ext <<_ACEOF
8853 cat confdefs.h
>>conftest.
$ac_ext
8854 cat >>conftest.
$ac_ext <<_ACEOF
8855 /* end confdefs.h. */
8856 $ac_includes_default
8862 if (sizeof (fpos_t))
8868 rm -f conftest.
$ac_objext
8869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8870 (eval $ac_compile) 2>conftest.er1
8872 grep -v '^ *+' conftest.er1
>conftest.err
8874 cat conftest.err
>&5
8875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8876 (exit $ac_status); } &&
8877 { ac_try
='test -z "$ac_c_werror_flag"
8878 || test ! -s conftest.err'
8879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8883 (exit $ac_status); }; } &&
8884 { ac_try
='test -s conftest.$ac_objext'
8885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8889 (exit $ac_status); }; }; then
8890 ac_cv_type_fpos_t
=yes
8892 echo "$as_me: failed program was:" >&5
8893 sed 's/^/| /' conftest.
$ac_ext >&5
8895 ac_cv_type_fpos_t
=no
8897 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8899 echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
8900 echo "${ECHO_T}$ac_cv_type_fpos_t" >&6
8902 echo "$as_me:$LINENO: checking size of fpos_t" >&5
8903 echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6
8904 if test "${ac_cv_sizeof_fpos_t+set}" = set; then
8905 echo $ECHO_N "(cached) $ECHO_C" >&6
8907 if test "$ac_cv_type_fpos_t" = yes; then
8908 # The cast to unsigned long works around a bug in the HP C Compiler
8909 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8910 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8911 # This bug is HP SR number 8606223364.
8912 if test "$cross_compiling" = yes; then
8913 # Depending upon the size, compute the lo and hi bounds.
8914 cat >conftest.
$ac_ext <<_ACEOF
8917 cat confdefs.h
>>conftest.
$ac_ext
8918 cat >>conftest.
$ac_ext <<_ACEOF
8919 /* end confdefs.h. */
8920 $ac_includes_default
8924 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= 0)];
8931 rm -f conftest.
$ac_objext
8932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8933 (eval $ac_compile) 2>conftest.er1
8935 grep -v '^ *+' conftest.er1
>conftest.err
8937 cat conftest.err
>&5
8938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8939 (exit $ac_status); } &&
8940 { ac_try
='test -z "$ac_c_werror_flag"
8941 || test ! -s conftest.err'
8942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8946 (exit $ac_status); }; } &&
8947 { ac_try
='test -s conftest.$ac_objext'
8948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8952 (exit $ac_status); }; }; then
8955 cat >conftest.
$ac_ext <<_ACEOF
8958 cat confdefs.h
>>conftest.
$ac_ext
8959 cat >>conftest.
$ac_ext <<_ACEOF
8960 /* end confdefs.h. */
8961 $ac_includes_default
8965 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)];
8972 rm -f conftest.
$ac_objext
8973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8974 (eval $ac_compile) 2>conftest.er1
8976 grep -v '^ *+' conftest.er1
>conftest.err
8978 cat conftest.err
>&5
8979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8980 (exit $ac_status); } &&
8981 { ac_try
='test -z "$ac_c_werror_flag"
8982 || test ! -s conftest.err'
8983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8987 (exit $ac_status); }; } &&
8988 { ac_try
='test -s conftest.$ac_objext'
8989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8993 (exit $ac_status); }; }; then
8994 ac_hi
=$ac_mid; break
8996 echo "$as_me: failed program was:" >&5
8997 sed 's/^/| /' conftest.
$ac_ext >&5
8999 ac_lo
=`expr $ac_mid + 1`
9000 if test $ac_lo -le $ac_mid; then
9004 ac_mid
=`expr 2 '*' $ac_mid + 1`
9006 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9009 echo "$as_me: failed program was:" >&5
9010 sed 's/^/| /' conftest.
$ac_ext >&5
9012 cat >conftest.
$ac_ext <<_ACEOF
9015 cat confdefs.h
>>conftest.
$ac_ext
9016 cat >>conftest.
$ac_ext <<_ACEOF
9017 /* end confdefs.h. */
9018 $ac_includes_default
9022 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) < 0)];
9029 rm -f conftest.
$ac_objext
9030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9031 (eval $ac_compile) 2>conftest.er1
9033 grep -v '^ *+' conftest.er1
>conftest.err
9035 cat conftest.err
>&5
9036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9037 (exit $ac_status); } &&
9038 { ac_try
='test -z "$ac_c_werror_flag"
9039 || test ! -s conftest.err'
9040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9044 (exit $ac_status); }; } &&
9045 { ac_try
='test -s conftest.$ac_objext'
9046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9050 (exit $ac_status); }; }; then
9053 cat >conftest.
$ac_ext <<_ACEOF
9056 cat confdefs.h
>>conftest.
$ac_ext
9057 cat >>conftest.
$ac_ext <<_ACEOF
9058 /* end confdefs.h. */
9059 $ac_includes_default
9063 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= $ac_mid)];
9070 rm -f conftest.
$ac_objext
9071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9072 (eval $ac_compile) 2>conftest.er1
9074 grep -v '^ *+' conftest.er1
>conftest.err
9076 cat conftest.err
>&5
9077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9078 (exit $ac_status); } &&
9079 { ac_try
='test -z "$ac_c_werror_flag"
9080 || test ! -s conftest.err'
9081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9085 (exit $ac_status); }; } &&
9086 { ac_try
='test -s conftest.$ac_objext'
9087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9091 (exit $ac_status); }; }; then
9092 ac_lo
=$ac_mid; break
9094 echo "$as_me: failed program was:" >&5
9095 sed 's/^/| /' conftest.
$ac_ext >&5
9097 ac_hi
=`expr '(' $ac_mid ')' - 1`
9098 if test $ac_mid -le $ac_hi; then
9102 ac_mid
=`expr 2 '*' $ac_mid`
9104 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9107 echo "$as_me: failed program was:" >&5
9108 sed 's/^/| /' conftest.
$ac_ext >&5
9112 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9114 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9115 # Binary search between lo and hi bounds.
9116 while test "x$ac_lo" != "x$ac_hi"; do
9117 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9118 cat >conftest.
$ac_ext <<_ACEOF
9121 cat confdefs.h
>>conftest.
$ac_ext
9122 cat >>conftest.
$ac_ext <<_ACEOF
9123 /* end confdefs.h. */
9124 $ac_includes_default
9128 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)];
9135 rm -f conftest.
$ac_objext
9136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9137 (eval $ac_compile) 2>conftest.er1
9139 grep -v '^ *+' conftest.er1
>conftest.err
9141 cat conftest.err
>&5
9142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9143 (exit $ac_status); } &&
9144 { ac_try
='test -z "$ac_c_werror_flag"
9145 || test ! -s conftest.err'
9146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9150 (exit $ac_status); }; } &&
9151 { ac_try
='test -s conftest.$ac_objext'
9152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9156 (exit $ac_status); }; }; then
9159 echo "$as_me: failed program was:" >&5
9160 sed 's/^/| /' conftest.
$ac_ext >&5
9162 ac_lo
=`expr '(' $ac_mid ')' + 1`
9164 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9167 ?
*) ac_cv_sizeof_fpos_t
=$ac_lo;;
9168 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77
9169 See \`config.log' for more details." >&5
9170 echo "$as_me: error: cannot compute sizeof (fpos_t), 77
9171 See \`config.log' for more details." >&2;}
9172 { (exit 1); exit 1; }; } ;;
9175 if test "$cross_compiling" = yes; then
9176 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9177 See \`config.log' for more details." >&5
9178 echo "$as_me: error: cannot run test program while cross compiling
9179 See \`config.log' for more details." >&2;}
9180 { (exit 1); exit 1; }; }
9182 cat >conftest.
$ac_ext <<_ACEOF
9185 cat confdefs.h
>>conftest.
$ac_ext
9186 cat >>conftest.
$ac_ext <<_ACEOF
9187 /* end confdefs.h. */
9188 $ac_includes_default
9189 long longval () { return (long) (sizeof (fpos_t)); }
9190 unsigned long ulongval () { return (long) (sizeof (fpos_t)); }
9197 FILE *f = fopen ("conftest.val", "w");
9200 if (((long) (sizeof (fpos_t))) < 0)
9202 long i = longval ();
9203 if (i != ((long) (sizeof (fpos_t))))
9205 fprintf (f, "%ld\n", i);
9209 unsigned long i = ulongval ();
9210 if (i != ((long) (sizeof (fpos_t))))
9212 fprintf (f, "%lu\n", i);
9214 exit (ferror (f) || fclose (f) != 0);
9220 rm -f conftest
$ac_exeext
9221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9222 (eval $ac_link) 2>&5
9224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9225 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9230 (exit $ac_status); }; }; then
9231 ac_cv_sizeof_fpos_t
=`cat conftest.val`
9233 echo "$as_me: program exited with status $ac_status" >&5
9234 echo "$as_me: failed program was:" >&5
9235 sed 's/^/| /' conftest.
$ac_ext >&5
9238 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77
9239 See \`config.log' for more details." >&5
9240 echo "$as_me: error: cannot compute sizeof (fpos_t), 77
9241 See \`config.log' for more details." >&2;}
9242 { (exit 1); exit 1; }; }
9244 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9249 ac_cv_sizeof_fpos_t
=0
9252 echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
9253 echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6
9254 cat >>confdefs.h
<<_ACEOF
9255 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
9259 echo "$as_me:$LINENO: checking for size_t" >&5
9260 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
9261 if test "${ac_cv_type_size_t+set}" = set; then
9262 echo $ECHO_N "(cached) $ECHO_C" >&6
9264 cat >conftest.
$ac_ext <<_ACEOF
9267 cat confdefs.h
>>conftest.
$ac_ext
9268 cat >>conftest.
$ac_ext <<_ACEOF
9269 /* end confdefs.h. */
9270 $ac_includes_default
9276 if (sizeof (size_t))
9282 rm -f conftest.
$ac_objext
9283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9284 (eval $ac_compile) 2>conftest.er1
9286 grep -v '^ *+' conftest.er1
>conftest.err
9288 cat conftest.err
>&5
9289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9290 (exit $ac_status); } &&
9291 { ac_try
='test -z "$ac_c_werror_flag"
9292 || test ! -s conftest.err'
9293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9297 (exit $ac_status); }; } &&
9298 { ac_try
='test -s conftest.$ac_objext'
9299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9303 (exit $ac_status); }; }; then
9304 ac_cv_type_size_t
=yes
9306 echo "$as_me: failed program was:" >&5
9307 sed 's/^/| /' conftest.
$ac_ext >&5
9309 ac_cv_type_size_t
=no
9311 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9313 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9314 echo "${ECHO_T}$ac_cv_type_size_t" >&6
9316 echo "$as_me:$LINENO: checking size of size_t" >&5
9317 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
9318 if test "${ac_cv_sizeof_size_t+set}" = set; then
9319 echo $ECHO_N "(cached) $ECHO_C" >&6
9321 if test "$ac_cv_type_size_t" = yes; then
9322 # The cast to unsigned long works around a bug in the HP C Compiler
9323 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9324 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9325 # This bug is HP SR number 8606223364.
9326 if test "$cross_compiling" = yes; then
9327 # Depending upon the size, compute the lo and hi bounds.
9328 cat >conftest.
$ac_ext <<_ACEOF
9331 cat confdefs.h
>>conftest.
$ac_ext
9332 cat >>conftest.
$ac_ext <<_ACEOF
9333 /* end confdefs.h. */
9334 $ac_includes_default
9338 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
9345 rm -f conftest.
$ac_objext
9346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9347 (eval $ac_compile) 2>conftest.er1
9349 grep -v '^ *+' conftest.er1
>conftest.err
9351 cat conftest.err
>&5
9352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9353 (exit $ac_status); } &&
9354 { ac_try
='test -z "$ac_c_werror_flag"
9355 || test ! -s conftest.err'
9356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9360 (exit $ac_status); }; } &&
9361 { ac_try
='test -s conftest.$ac_objext'
9362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9366 (exit $ac_status); }; }; then
9369 cat >conftest.
$ac_ext <<_ACEOF
9372 cat confdefs.h
>>conftest.
$ac_ext
9373 cat >>conftest.
$ac_ext <<_ACEOF
9374 /* end confdefs.h. */
9375 $ac_includes_default
9379 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
9386 rm -f conftest.
$ac_objext
9387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9388 (eval $ac_compile) 2>conftest.er1
9390 grep -v '^ *+' conftest.er1
>conftest.err
9392 cat conftest.err
>&5
9393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9394 (exit $ac_status); } &&
9395 { ac_try
='test -z "$ac_c_werror_flag"
9396 || test ! -s conftest.err'
9397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9401 (exit $ac_status); }; } &&
9402 { ac_try
='test -s conftest.$ac_objext'
9403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9407 (exit $ac_status); }; }; then
9408 ac_hi
=$ac_mid; break
9410 echo "$as_me: failed program was:" >&5
9411 sed 's/^/| /' conftest.
$ac_ext >&5
9413 ac_lo
=`expr $ac_mid + 1`
9414 if test $ac_lo -le $ac_mid; then
9418 ac_mid
=`expr 2 '*' $ac_mid + 1`
9420 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9423 echo "$as_me: failed program was:" >&5
9424 sed 's/^/| /' conftest.
$ac_ext >&5
9426 cat >conftest.
$ac_ext <<_ACEOF
9429 cat confdefs.h
>>conftest.
$ac_ext
9430 cat >>conftest.
$ac_ext <<_ACEOF
9431 /* end confdefs.h. */
9432 $ac_includes_default
9436 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
9443 rm -f conftest.
$ac_objext
9444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9445 (eval $ac_compile) 2>conftest.er1
9447 grep -v '^ *+' conftest.er1
>conftest.err
9449 cat conftest.err
>&5
9450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9451 (exit $ac_status); } &&
9452 { ac_try
='test -z "$ac_c_werror_flag"
9453 || test ! -s conftest.err'
9454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9458 (exit $ac_status); }; } &&
9459 { ac_try
='test -s conftest.$ac_objext'
9460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9464 (exit $ac_status); }; }; then
9467 cat >conftest.
$ac_ext <<_ACEOF
9470 cat confdefs.h
>>conftest.
$ac_ext
9471 cat >>conftest.
$ac_ext <<_ACEOF
9472 /* end confdefs.h. */
9473 $ac_includes_default
9477 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
9484 rm -f conftest.
$ac_objext
9485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9486 (eval $ac_compile) 2>conftest.er1
9488 grep -v '^ *+' conftest.er1
>conftest.err
9490 cat conftest.err
>&5
9491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9492 (exit $ac_status); } &&
9493 { ac_try
='test -z "$ac_c_werror_flag"
9494 || test ! -s conftest.err'
9495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9499 (exit $ac_status); }; } &&
9500 { ac_try
='test -s conftest.$ac_objext'
9501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9505 (exit $ac_status); }; }; then
9506 ac_lo
=$ac_mid; break
9508 echo "$as_me: failed program was:" >&5
9509 sed 's/^/| /' conftest.
$ac_ext >&5
9511 ac_hi
=`expr '(' $ac_mid ')' - 1`
9512 if test $ac_mid -le $ac_hi; then
9516 ac_mid
=`expr 2 '*' $ac_mid`
9518 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9521 echo "$as_me: failed program was:" >&5
9522 sed 's/^/| /' conftest.
$ac_ext >&5
9526 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9528 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9529 # Binary search between lo and hi bounds.
9530 while test "x$ac_lo" != "x$ac_hi"; do
9531 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9532 cat >conftest.
$ac_ext <<_ACEOF
9535 cat confdefs.h
>>conftest.
$ac_ext
9536 cat >>conftest.
$ac_ext <<_ACEOF
9537 /* end confdefs.h. */
9538 $ac_includes_default
9542 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
9549 rm -f conftest.
$ac_objext
9550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9551 (eval $ac_compile) 2>conftest.er1
9553 grep -v '^ *+' conftest.er1
>conftest.err
9555 cat conftest.err
>&5
9556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9557 (exit $ac_status); } &&
9558 { ac_try
='test -z "$ac_c_werror_flag"
9559 || test ! -s conftest.err'
9560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9564 (exit $ac_status); }; } &&
9565 { ac_try
='test -s conftest.$ac_objext'
9566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9570 (exit $ac_status); }; }; then
9573 echo "$as_me: failed program was:" >&5
9574 sed 's/^/| /' conftest.
$ac_ext >&5
9576 ac_lo
=`expr '(' $ac_mid ')' + 1`
9578 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9581 ?
*) ac_cv_sizeof_size_t
=$ac_lo;;
9582 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
9583 See \`config.log' for more details." >&5
9584 echo "$as_me: error: cannot compute sizeof (size_t), 77
9585 See \`config.log' for more details." >&2;}
9586 { (exit 1); exit 1; }; } ;;
9589 if test "$cross_compiling" = yes; then
9590 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9591 See \`config.log' for more details." >&5
9592 echo "$as_me: error: cannot run test program while cross compiling
9593 See \`config.log' for more details." >&2;}
9594 { (exit 1); exit 1; }; }
9596 cat >conftest.
$ac_ext <<_ACEOF
9599 cat confdefs.h
>>conftest.
$ac_ext
9600 cat >>conftest.
$ac_ext <<_ACEOF
9601 /* end confdefs.h. */
9602 $ac_includes_default
9603 long longval () { return (long) (sizeof (size_t)); }
9604 unsigned long ulongval () { return (long) (sizeof (size_t)); }
9611 FILE *f = fopen ("conftest.val", "w");
9614 if (((long) (sizeof (size_t))) < 0)
9616 long i = longval ();
9617 if (i != ((long) (sizeof (size_t))))
9619 fprintf (f, "%ld\n", i);
9623 unsigned long i = ulongval ();
9624 if (i != ((long) (sizeof (size_t))))
9626 fprintf (f, "%lu\n", i);
9628 exit (ferror (f) || fclose (f) != 0);
9634 rm -f conftest
$ac_exeext
9635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9636 (eval $ac_link) 2>&5
9638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9639 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9644 (exit $ac_status); }; }; then
9645 ac_cv_sizeof_size_t
=`cat conftest.val`
9647 echo "$as_me: program exited with status $ac_status" >&5
9648 echo "$as_me: failed program was:" >&5
9649 sed 's/^/| /' conftest.
$ac_ext >&5
9652 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
9653 See \`config.log' for more details." >&5
9654 echo "$as_me: error: cannot compute sizeof (size_t), 77
9655 See \`config.log' for more details." >&2;}
9656 { (exit 1); exit 1; }; }
9658 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9663 ac_cv_sizeof_size_t
=0
9666 echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
9667 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
9668 cat >>confdefs.h
<<_ACEOF
9669 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
9674 echo "$as_me:$LINENO: checking for long long support" >&5
9675 echo $ECHO_N "checking for long long support... $ECHO_C" >&6
9677 cat >conftest.
$ac_ext <<_ACEOF
9680 cat confdefs.h
>>conftest.
$ac_ext
9681 cat >>conftest.
$ac_ext <<_ACEOF
9682 /* end confdefs.h. */
9687 long long x; x = (long long)0;
9692 rm -f conftest.
$ac_objext
9693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9694 (eval $ac_compile) 2>conftest.er1
9696 grep -v '^ *+' conftest.er1
>conftest.err
9698 cat conftest.err
>&5
9699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9700 (exit $ac_status); } &&
9701 { ac_try
='test -z "$ac_c_werror_flag"
9702 || test ! -s conftest.err'
9703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9707 (exit $ac_status); }; } &&
9708 { ac_try
='test -s conftest.$ac_objext'
9709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9713 (exit $ac_status); }; }; then
9716 cat >>confdefs.h
<<\_ACEOF
9717 #define HAVE_LONG_LONG 1
9723 echo "$as_me: failed program was:" >&5
9724 sed 's/^/| /' conftest.
$ac_ext >&5
9727 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9728 echo "$as_me:$LINENO: result: $have_long_long" >&5
9729 echo "${ECHO_T}$have_long_long" >&6
9730 if test "$have_long_long" = yes ; then
9731 echo "$as_me:$LINENO: checking for long long" >&5
9732 echo $ECHO_N "checking for long long... $ECHO_C" >&6
9733 if test "${ac_cv_type_long_long+set}" = set; then
9734 echo $ECHO_N "(cached) $ECHO_C" >&6
9736 cat >conftest.
$ac_ext <<_ACEOF
9739 cat confdefs.h
>>conftest.
$ac_ext
9740 cat >>conftest.
$ac_ext <<_ACEOF
9741 /* end confdefs.h. */
9742 $ac_includes_default
9746 if ((long long *) 0)
9748 if (sizeof (long long))
9754 rm -f conftest.
$ac_objext
9755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9756 (eval $ac_compile) 2>conftest.er1
9758 grep -v '^ *+' conftest.er1
>conftest.err
9760 cat conftest.err
>&5
9761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762 (exit $ac_status); } &&
9763 { ac_try
='test -z "$ac_c_werror_flag"
9764 || test ! -s conftest.err'
9765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769 (exit $ac_status); }; } &&
9770 { ac_try
='test -s conftest.$ac_objext'
9771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9775 (exit $ac_status); }; }; then
9776 ac_cv_type_long_long
=yes
9778 echo "$as_me: failed program was:" >&5
9779 sed 's/^/| /' conftest.
$ac_ext >&5
9781 ac_cv_type_long_long
=no
9783 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9785 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
9786 echo "${ECHO_T}$ac_cv_type_long_long" >&6
9788 echo "$as_me:$LINENO: checking size of long long" >&5
9789 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
9790 if test "${ac_cv_sizeof_long_long+set}" = set; then
9791 echo $ECHO_N "(cached) $ECHO_C" >&6
9793 if test "$ac_cv_type_long_long" = yes; then
9794 # The cast to unsigned long works around a bug in the HP C Compiler
9795 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9796 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9797 # This bug is HP SR number 8606223364.
9798 if test "$cross_compiling" = yes; then
9799 # Depending upon the size, compute the lo and hi bounds.
9800 cat >conftest.
$ac_ext <<_ACEOF
9803 cat confdefs.h
>>conftest.
$ac_ext
9804 cat >>conftest.
$ac_ext <<_ACEOF
9805 /* end confdefs.h. */
9806 $ac_includes_default
9810 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
9817 rm -f conftest.
$ac_objext
9818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9819 (eval $ac_compile) 2>conftest.er1
9821 grep -v '^ *+' conftest.er1
>conftest.err
9823 cat conftest.err
>&5
9824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9825 (exit $ac_status); } &&
9826 { ac_try
='test -z "$ac_c_werror_flag"
9827 || test ! -s conftest.err'
9828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9832 (exit $ac_status); }; } &&
9833 { ac_try
='test -s conftest.$ac_objext'
9834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838 (exit $ac_status); }; }; then
9841 cat >conftest.
$ac_ext <<_ACEOF
9844 cat confdefs.h
>>conftest.
$ac_ext
9845 cat >>conftest.
$ac_ext <<_ACEOF
9846 /* end confdefs.h. */
9847 $ac_includes_default
9851 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
9858 rm -f conftest.
$ac_objext
9859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9860 (eval $ac_compile) 2>conftest.er1
9862 grep -v '^ *+' conftest.er1
>conftest.err
9864 cat conftest.err
>&5
9865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866 (exit $ac_status); } &&
9867 { ac_try
='test -z "$ac_c_werror_flag"
9868 || test ! -s conftest.err'
9869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9873 (exit $ac_status); }; } &&
9874 { ac_try
='test -s conftest.$ac_objext'
9875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9879 (exit $ac_status); }; }; then
9880 ac_hi
=$ac_mid; break
9882 echo "$as_me: failed program was:" >&5
9883 sed 's/^/| /' conftest.
$ac_ext >&5
9885 ac_lo
=`expr $ac_mid + 1`
9886 if test $ac_lo -le $ac_mid; then
9890 ac_mid
=`expr 2 '*' $ac_mid + 1`
9892 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9895 echo "$as_me: failed program was:" >&5
9896 sed 's/^/| /' conftest.
$ac_ext >&5
9898 cat >conftest.
$ac_ext <<_ACEOF
9901 cat confdefs.h
>>conftest.
$ac_ext
9902 cat >>conftest.
$ac_ext <<_ACEOF
9903 /* end confdefs.h. */
9904 $ac_includes_default
9908 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
9915 rm -f conftest.
$ac_objext
9916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9917 (eval $ac_compile) 2>conftest.er1
9919 grep -v '^ *+' conftest.er1
>conftest.err
9921 cat conftest.err
>&5
9922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9923 (exit $ac_status); } &&
9924 { ac_try
='test -z "$ac_c_werror_flag"
9925 || test ! -s conftest.err'
9926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9930 (exit $ac_status); }; } &&
9931 { ac_try
='test -s conftest.$ac_objext'
9932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936 (exit $ac_status); }; }; then
9939 cat >conftest.
$ac_ext <<_ACEOF
9942 cat confdefs.h
>>conftest.
$ac_ext
9943 cat >>conftest.
$ac_ext <<_ACEOF
9944 /* end confdefs.h. */
9945 $ac_includes_default
9949 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
9956 rm -f conftest.
$ac_objext
9957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9958 (eval $ac_compile) 2>conftest.er1
9960 grep -v '^ *+' conftest.er1
>conftest.err
9962 cat conftest.err
>&5
9963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964 (exit $ac_status); } &&
9965 { ac_try
='test -z "$ac_c_werror_flag"
9966 || test ! -s conftest.err'
9967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9971 (exit $ac_status); }; } &&
9972 { ac_try
='test -s conftest.$ac_objext'
9973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9977 (exit $ac_status); }; }; then
9978 ac_lo
=$ac_mid; break
9980 echo "$as_me: failed program was:" >&5
9981 sed 's/^/| /' conftest.
$ac_ext >&5
9983 ac_hi
=`expr '(' $ac_mid ')' - 1`
9984 if test $ac_mid -le $ac_hi; then
9988 ac_mid
=`expr 2 '*' $ac_mid`
9990 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9993 echo "$as_me: failed program was:" >&5
9994 sed 's/^/| /' conftest.
$ac_ext >&5
9998 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10000 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10001 # Binary search between lo and hi bounds.
10002 while test "x$ac_lo" != "x$ac_hi"; do
10003 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10004 cat >conftest.
$ac_ext <<_ACEOF
10007 cat confdefs.h
>>conftest.
$ac_ext
10008 cat >>conftest.
$ac_ext <<_ACEOF
10009 /* end confdefs.h. */
10010 $ac_includes_default
10014 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
10021 rm -f conftest.
$ac_objext
10022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10023 (eval $ac_compile) 2>conftest.er1
10025 grep -v '^ *+' conftest.er1
>conftest.err
10027 cat conftest.err
>&5
10028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10029 (exit $ac_status); } &&
10030 { ac_try
='test -z "$ac_c_werror_flag"
10031 || test ! -s conftest.err'
10032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10033 (eval $ac_try) 2>&5
10035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10036 (exit $ac_status); }; } &&
10037 { ac_try
='test -s conftest.$ac_objext'
10038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10039 (eval $ac_try) 2>&5
10041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10042 (exit $ac_status); }; }; then
10045 echo "$as_me: failed program was:" >&5
10046 sed 's/^/| /' conftest.
$ac_ext >&5
10048 ac_lo
=`expr '(' $ac_mid ')' + 1`
10050 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10053 ?
*) ac_cv_sizeof_long_long
=$ac_lo;;
10054 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
10055 See \`config.log' for more details." >&5
10056 echo "$as_me: error: cannot compute sizeof (long long), 77
10057 See \`config.log' for more details." >&2;}
10058 { (exit 1); exit 1; }; } ;;
10061 if test "$cross_compiling" = yes; then
10062 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10063 See \`config.log' for more details." >&5
10064 echo "$as_me: error: cannot run test program while cross compiling
10065 See \`config.log' for more details." >&2;}
10066 { (exit 1); exit 1; }; }
10068 cat >conftest.
$ac_ext <<_ACEOF
10071 cat confdefs.h
>>conftest.
$ac_ext
10072 cat >>conftest.
$ac_ext <<_ACEOF
10073 /* end confdefs.h. */
10074 $ac_includes_default
10075 long longval () { return (long) (sizeof (long long)); }
10076 unsigned long ulongval () { return (long) (sizeof (long long)); }
10078 #include <stdlib.h>
10083 FILE *f = fopen ("conftest.val", "w");
10086 if (((long) (sizeof (long long))) < 0)
10088 long i = longval ();
10089 if (i != ((long) (sizeof (long long))))
10091 fprintf (f, "%ld\n", i);
10095 unsigned long i = ulongval ();
10096 if (i != ((long) (sizeof (long long))))
10098 fprintf (f, "%lu\n", i);
10100 exit (ferror (f) || fclose (f) != 0);
10106 rm -f conftest
$ac_exeext
10107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10108 (eval $ac_link) 2>&5
10110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10111 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10113 (eval $ac_try) 2>&5
10115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10116 (exit $ac_status); }; }; then
10117 ac_cv_sizeof_long_long
=`cat conftest.val`
10119 echo "$as_me: program exited with status $ac_status" >&5
10120 echo "$as_me: failed program was:" >&5
10121 sed 's/^/| /' conftest.
$ac_ext >&5
10123 ( exit $ac_status )
10124 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
10125 See \`config.log' for more details." >&5
10126 echo "$as_me: error: cannot compute sizeof (long long), 77
10127 See \`config.log' for more details." >&2;}
10128 { (exit 1); exit 1; }; }
10130 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10135 ac_cv_sizeof_long_long
=0
10138 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
10139 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
10140 cat >>confdefs.h
<<_ACEOF
10141 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10147 echo "$as_me:$LINENO: checking for _Bool support" >&5
10148 echo $ECHO_N "checking for _Bool support... $ECHO_C" >&6
10150 cat >conftest.
$ac_ext <<_ACEOF
10153 cat confdefs.h
>>conftest.
$ac_ext
10154 cat >>conftest.
$ac_ext <<_ACEOF
10155 /* end confdefs.h. */
10160 _Bool x; x = (_Bool)0;
10165 rm -f conftest.
$ac_objext
10166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10167 (eval $ac_compile) 2>conftest.er1
10169 grep -v '^ *+' conftest.er1
>conftest.err
10171 cat conftest.err
>&5
10172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10173 (exit $ac_status); } &&
10174 { ac_try
='test -z "$ac_c_werror_flag"
10175 || test ! -s conftest.err'
10176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10177 (eval $ac_try) 2>&5
10179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10180 (exit $ac_status); }; } &&
10181 { ac_try
='test -s conftest.$ac_objext'
10182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10183 (eval $ac_try) 2>&5
10185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10186 (exit $ac_status); }; }; then
10189 cat >>confdefs.h
<<\_ACEOF
10190 #define HAVE_C99_BOOL 1
10196 echo "$as_me: failed program was:" >&5
10197 sed 's/^/| /' conftest.
$ac_ext >&5
10200 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10201 echo "$as_me:$LINENO: result: $have_c99_bool" >&5
10202 echo "${ECHO_T}$have_c99_bool" >&6
10203 if test "$have_c99_bool" = yes ; then
10204 echo "$as_me:$LINENO: checking for _Bool" >&5
10205 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
10206 if test "${ac_cv_type__Bool+set}" = set; then
10207 echo $ECHO_N "(cached) $ECHO_C" >&6
10209 cat >conftest.
$ac_ext <<_ACEOF
10212 cat confdefs.h
>>conftest.
$ac_ext
10213 cat >>conftest.
$ac_ext <<_ACEOF
10214 /* end confdefs.h. */
10215 $ac_includes_default
10221 if (sizeof (_Bool))
10227 rm -f conftest.
$ac_objext
10228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10229 (eval $ac_compile) 2>conftest.er1
10231 grep -v '^ *+' conftest.er1
>conftest.err
10233 cat conftest.err
>&5
10234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10235 (exit $ac_status); } &&
10236 { ac_try
='test -z "$ac_c_werror_flag"
10237 || test ! -s conftest.err'
10238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10239 (eval $ac_try) 2>&5
10241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10242 (exit $ac_status); }; } &&
10243 { ac_try
='test -s conftest.$ac_objext'
10244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10245 (eval $ac_try) 2>&5
10247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10248 (exit $ac_status); }; }; then
10249 ac_cv_type__Bool
=yes
10251 echo "$as_me: failed program was:" >&5
10252 sed 's/^/| /' conftest.
$ac_ext >&5
10254 ac_cv_type__Bool
=no
10256 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10258 echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
10259 echo "${ECHO_T}$ac_cv_type__Bool" >&6
10261 echo "$as_me:$LINENO: checking size of _Bool" >&5
10262 echo $ECHO_N "checking size of _Bool... $ECHO_C" >&6
10263 if test "${ac_cv_sizeof__Bool+set}" = set; then
10264 echo $ECHO_N "(cached) $ECHO_C" >&6
10266 if test "$ac_cv_type__Bool" = yes; then
10267 # The cast to unsigned long works around a bug in the HP C Compiler
10268 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10269 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10270 # This bug is HP SR number 8606223364.
10271 if test "$cross_compiling" = yes; then
10272 # Depending upon the size, compute the lo and hi bounds.
10273 cat >conftest.
$ac_ext <<_ACEOF
10276 cat confdefs.h
>>conftest.
$ac_ext
10277 cat >>conftest.
$ac_ext <<_ACEOF
10278 /* end confdefs.h. */
10279 $ac_includes_default
10283 static int test_array [1 - 2 * !(((long) (sizeof (_Bool))) >= 0)];
10290 rm -f conftest.
$ac_objext
10291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10292 (eval $ac_compile) 2>conftest.er1
10294 grep -v '^ *+' conftest.er1
>conftest.err
10296 cat conftest.err
>&5
10297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10298 (exit $ac_status); } &&
10299 { ac_try
='test -z "$ac_c_werror_flag"
10300 || test ! -s conftest.err'
10301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10302 (eval $ac_try) 2>&5
10304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10305 (exit $ac_status); }; } &&
10306 { ac_try
='test -s conftest.$ac_objext'
10307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10308 (eval $ac_try) 2>&5
10310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10311 (exit $ac_status); }; }; then
10314 cat >conftest.
$ac_ext <<_ACEOF
10317 cat confdefs.h
>>conftest.
$ac_ext
10318 cat >>conftest.
$ac_ext <<_ACEOF
10319 /* end confdefs.h. */
10320 $ac_includes_default
10324 static int test_array [1 - 2 * !(((long) (sizeof (_Bool))) <= $ac_mid)];
10331 rm -f conftest.
$ac_objext
10332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10333 (eval $ac_compile) 2>conftest.er1
10335 grep -v '^ *+' conftest.er1
>conftest.err
10337 cat conftest.err
>&5
10338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10339 (exit $ac_status); } &&
10340 { ac_try
='test -z "$ac_c_werror_flag"
10341 || test ! -s conftest.err'
10342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10343 (eval $ac_try) 2>&5
10345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10346 (exit $ac_status); }; } &&
10347 { ac_try
='test -s conftest.$ac_objext'
10348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10349 (eval $ac_try) 2>&5
10351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10352 (exit $ac_status); }; }; then
10353 ac_hi
=$ac_mid; break
10355 echo "$as_me: failed program was:" >&5
10356 sed 's/^/| /' conftest.
$ac_ext >&5
10358 ac_lo
=`expr $ac_mid + 1`
10359 if test $ac_lo -le $ac_mid; then
10363 ac_mid
=`expr 2 '*' $ac_mid + 1`
10365 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10368 echo "$as_me: failed program was:" >&5
10369 sed 's/^/| /' conftest.
$ac_ext >&5
10371 cat >conftest.
$ac_ext <<_ACEOF
10374 cat confdefs.h
>>conftest.
$ac_ext
10375 cat >>conftest.
$ac_ext <<_ACEOF
10376 /* end confdefs.h. */
10377 $ac_includes_default
10381 static int test_array [1 - 2 * !(((long) (sizeof (_Bool))) < 0)];
10388 rm -f conftest.
$ac_objext
10389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10390 (eval $ac_compile) 2>conftest.er1
10392 grep -v '^ *+' conftest.er1
>conftest.err
10394 cat conftest.err
>&5
10395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10396 (exit $ac_status); } &&
10397 { ac_try
='test -z "$ac_c_werror_flag"
10398 || test ! -s conftest.err'
10399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10400 (eval $ac_try) 2>&5
10402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10403 (exit $ac_status); }; } &&
10404 { ac_try
='test -s conftest.$ac_objext'
10405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10406 (eval $ac_try) 2>&5
10408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10409 (exit $ac_status); }; }; then
10412 cat >conftest.
$ac_ext <<_ACEOF
10415 cat confdefs.h
>>conftest.
$ac_ext
10416 cat >>conftest.
$ac_ext <<_ACEOF
10417 /* end confdefs.h. */
10418 $ac_includes_default
10422 static int test_array [1 - 2 * !(((long) (sizeof (_Bool))) >= $ac_mid)];
10429 rm -f conftest.
$ac_objext
10430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10431 (eval $ac_compile) 2>conftest.er1
10433 grep -v '^ *+' conftest.er1
>conftest.err
10435 cat conftest.err
>&5
10436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10437 (exit $ac_status); } &&
10438 { ac_try
='test -z "$ac_c_werror_flag"
10439 || test ! -s conftest.err'
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); }; } &&
10445 { ac_try
='test -s conftest.$ac_objext'
10446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10447 (eval $ac_try) 2>&5
10449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10450 (exit $ac_status); }; }; then
10451 ac_lo
=$ac_mid; break
10453 echo "$as_me: failed program was:" >&5
10454 sed 's/^/| /' conftest.
$ac_ext >&5
10456 ac_hi
=`expr '(' $ac_mid ')' - 1`
10457 if test $ac_mid -le $ac_hi; then
10461 ac_mid
=`expr 2 '*' $ac_mid`
10463 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10466 echo "$as_me: failed program was:" >&5
10467 sed 's/^/| /' conftest.
$ac_ext >&5
10471 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10473 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10474 # Binary search between lo and hi bounds.
10475 while test "x$ac_lo" != "x$ac_hi"; do
10476 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10477 cat >conftest.
$ac_ext <<_ACEOF
10480 cat confdefs.h
>>conftest.
$ac_ext
10481 cat >>conftest.
$ac_ext <<_ACEOF
10482 /* end confdefs.h. */
10483 $ac_includes_default
10487 static int test_array [1 - 2 * !(((long) (sizeof (_Bool))) <= $ac_mid)];
10494 rm -f conftest.
$ac_objext
10495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10496 (eval $ac_compile) 2>conftest.er1
10498 grep -v '^ *+' conftest.er1
>conftest.err
10500 cat conftest.err
>&5
10501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10502 (exit $ac_status); } &&
10503 { ac_try
='test -z "$ac_c_werror_flag"
10504 || test ! -s conftest.err'
10505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10506 (eval $ac_try) 2>&5
10508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10509 (exit $ac_status); }; } &&
10510 { ac_try
='test -s conftest.$ac_objext'
10511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10512 (eval $ac_try) 2>&5
10514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10515 (exit $ac_status); }; }; then
10518 echo "$as_me: failed program was:" >&5
10519 sed 's/^/| /' conftest.
$ac_ext >&5
10521 ac_lo
=`expr '(' $ac_mid ')' + 1`
10523 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10526 ?
*) ac_cv_sizeof__Bool
=$ac_lo;;
10527 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool), 77
10528 See \`config.log' for more details." >&5
10529 echo "$as_me: error: cannot compute sizeof (_Bool), 77
10530 See \`config.log' for more details." >&2;}
10531 { (exit 1); exit 1; }; } ;;
10534 if test "$cross_compiling" = yes; then
10535 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10536 See \`config.log' for more details." >&5
10537 echo "$as_me: error: cannot run test program while cross compiling
10538 See \`config.log' for more details." >&2;}
10539 { (exit 1); exit 1; }; }
10541 cat >conftest.
$ac_ext <<_ACEOF
10544 cat confdefs.h
>>conftest.
$ac_ext
10545 cat >>conftest.
$ac_ext <<_ACEOF
10546 /* end confdefs.h. */
10547 $ac_includes_default
10548 long longval () { return (long) (sizeof (_Bool)); }
10549 unsigned long ulongval () { return (long) (sizeof (_Bool)); }
10551 #include <stdlib.h>
10556 FILE *f = fopen ("conftest.val", "w");
10559 if (((long) (sizeof (_Bool))) < 0)
10561 long i = longval ();
10562 if (i != ((long) (sizeof (_Bool))))
10564 fprintf (f, "%ld\n", i);
10568 unsigned long i = ulongval ();
10569 if (i != ((long) (sizeof (_Bool))))
10571 fprintf (f, "%lu\n", i);
10573 exit (ferror (f) || fclose (f) != 0);
10579 rm -f conftest
$ac_exeext
10580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10581 (eval $ac_link) 2>&5
10583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10584 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10586 (eval $ac_try) 2>&5
10588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10589 (exit $ac_status); }; }; then
10590 ac_cv_sizeof__Bool
=`cat conftest.val`
10592 echo "$as_me: program exited with status $ac_status" >&5
10593 echo "$as_me: failed program was:" >&5
10594 sed 's/^/| /' conftest.
$ac_ext >&5
10596 ( exit $ac_status )
10597 { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool), 77
10598 See \`config.log' for more details." >&5
10599 echo "$as_me: error: cannot compute sizeof (_Bool), 77
10600 See \`config.log' for more details." >&2;}
10601 { (exit 1); exit 1; }; }
10603 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10608 ac_cv_sizeof__Bool
=0
10611 echo "$as_me:$LINENO: result: $ac_cv_sizeof__Bool" >&5
10612 echo "${ECHO_T}$ac_cv_sizeof__Bool" >&6
10613 cat >>confdefs.h
<<_ACEOF
10614 #define SIZEOF__BOOL $ac_cv_sizeof__Bool
10620 echo "$as_me:$LINENO: checking for uintptr_t" >&5
10621 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
10622 if test "${ac_cv_type_uintptr_t+set}" = set; then
10623 echo $ECHO_N "(cached) $ECHO_C" >&6
10625 cat >conftest.
$ac_ext <<_ACEOF
10628 cat confdefs.h
>>conftest.
$ac_ext
10629 cat >>conftest.
$ac_ext <<_ACEOF
10630 /* end confdefs.h. */
10631 #ifdef HAVE_STDINT_H
10632 #include <stdint.h>
10638 if ((uintptr_t *) 0)
10640 if (sizeof (uintptr_t))
10646 rm -f conftest.
$ac_objext
10647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10648 (eval $ac_compile) 2>conftest.er1
10650 grep -v '^ *+' conftest.er1
>conftest.err
10652 cat conftest.err
>&5
10653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10654 (exit $ac_status); } &&
10655 { ac_try
='test -z "$ac_c_werror_flag"
10656 || test ! -s conftest.err'
10657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10658 (eval $ac_try) 2>&5
10660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10661 (exit $ac_status); }; } &&
10662 { ac_try
='test -s conftest.$ac_objext'
10663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10664 (eval $ac_try) 2>&5
10666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10667 (exit $ac_status); }; }; then
10668 ac_cv_type_uintptr_t
=yes
10670 echo "$as_me: failed program was:" >&5
10671 sed 's/^/| /' conftest.
$ac_ext >&5
10673 ac_cv_type_uintptr_t
=no
10675 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10677 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
10678 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
10679 if test $ac_cv_type_uintptr_t = yes; then
10681 cat >>confdefs.h
<<_ACEOF
10682 #define HAVE_UINTPTR_T 1
10685 echo "$as_me:$LINENO: checking for uintptr_t" >&5
10686 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
10687 if test "${ac_cv_type_uintptr_t+set}" = set; then
10688 echo $ECHO_N "(cached) $ECHO_C" >&6
10690 cat >conftest.
$ac_ext <<_ACEOF
10693 cat confdefs.h
>>conftest.
$ac_ext
10694 cat >>conftest.
$ac_ext <<_ACEOF
10695 /* end confdefs.h. */
10696 $ac_includes_default
10700 if ((uintptr_t *) 0)
10702 if (sizeof (uintptr_t))
10708 rm -f conftest.
$ac_objext
10709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10710 (eval $ac_compile) 2>conftest.er1
10712 grep -v '^ *+' conftest.er1
>conftest.err
10714 cat conftest.err
>&5
10715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10716 (exit $ac_status); } &&
10717 { ac_try
='test -z "$ac_c_werror_flag"
10718 || test ! -s conftest.err'
10719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10720 (eval $ac_try) 2>&5
10722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10723 (exit $ac_status); }; } &&
10724 { ac_try
='test -s conftest.$ac_objext'
10725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10726 (eval $ac_try) 2>&5
10728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10729 (exit $ac_status); }; }; then
10730 ac_cv_type_uintptr_t
=yes
10732 echo "$as_me: failed program was:" >&5
10733 sed 's/^/| /' conftest.
$ac_ext >&5
10735 ac_cv_type_uintptr_t
=no
10737 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10739 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
10740 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
10742 echo "$as_me:$LINENO: checking size of uintptr_t" >&5
10743 echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6
10744 if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
10745 echo $ECHO_N "(cached) $ECHO_C" >&6
10747 if test "$ac_cv_type_uintptr_t" = yes; then
10748 # The cast to unsigned long works around a bug in the HP C Compiler
10749 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10750 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10751 # This bug is HP SR number 8606223364.
10752 if test "$cross_compiling" = yes; then
10753 # Depending upon the size, compute the lo and hi bounds.
10754 cat >conftest.
$ac_ext <<_ACEOF
10757 cat confdefs.h
>>conftest.
$ac_ext
10758 cat >>conftest.
$ac_ext <<_ACEOF
10759 /* end confdefs.h. */
10760 $ac_includes_default
10764 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= 0)];
10771 rm -f conftest.
$ac_objext
10772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10773 (eval $ac_compile) 2>conftest.er1
10775 grep -v '^ *+' conftest.er1
>conftest.err
10777 cat conftest.err
>&5
10778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10779 (exit $ac_status); } &&
10780 { ac_try
='test -z "$ac_c_werror_flag"
10781 || test ! -s conftest.err'
10782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10783 (eval $ac_try) 2>&5
10785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10786 (exit $ac_status); }; } &&
10787 { ac_try
='test -s conftest.$ac_objext'
10788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10789 (eval $ac_try) 2>&5
10791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10792 (exit $ac_status); }; }; then
10795 cat >conftest.
$ac_ext <<_ACEOF
10798 cat confdefs.h
>>conftest.
$ac_ext
10799 cat >>conftest.
$ac_ext <<_ACEOF
10800 /* end confdefs.h. */
10801 $ac_includes_default
10805 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)];
10812 rm -f conftest.
$ac_objext
10813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10814 (eval $ac_compile) 2>conftest.er1
10816 grep -v '^ *+' conftest.er1
>conftest.err
10818 cat conftest.err
>&5
10819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10820 (exit $ac_status); } &&
10821 { ac_try
='test -z "$ac_c_werror_flag"
10822 || test ! -s conftest.err'
10823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10824 (eval $ac_try) 2>&5
10826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10827 (exit $ac_status); }; } &&
10828 { ac_try
='test -s conftest.$ac_objext'
10829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10830 (eval $ac_try) 2>&5
10832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10833 (exit $ac_status); }; }; then
10834 ac_hi
=$ac_mid; break
10836 echo "$as_me: failed program was:" >&5
10837 sed 's/^/| /' conftest.
$ac_ext >&5
10839 ac_lo
=`expr $ac_mid + 1`
10840 if test $ac_lo -le $ac_mid; then
10844 ac_mid
=`expr 2 '*' $ac_mid + 1`
10846 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10849 echo "$as_me: failed program was:" >&5
10850 sed 's/^/| /' conftest.
$ac_ext >&5
10852 cat >conftest.
$ac_ext <<_ACEOF
10855 cat confdefs.h
>>conftest.
$ac_ext
10856 cat >>conftest.
$ac_ext <<_ACEOF
10857 /* end confdefs.h. */
10858 $ac_includes_default
10862 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) < 0)];
10869 rm -f conftest.
$ac_objext
10870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10871 (eval $ac_compile) 2>conftest.er1
10873 grep -v '^ *+' conftest.er1
>conftest.err
10875 cat conftest.err
>&5
10876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10877 (exit $ac_status); } &&
10878 { ac_try
='test -z "$ac_c_werror_flag"
10879 || test ! -s conftest.err'
10880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10881 (eval $ac_try) 2>&5
10883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10884 (exit $ac_status); }; } &&
10885 { ac_try
='test -s conftest.$ac_objext'
10886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10887 (eval $ac_try) 2>&5
10889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10890 (exit $ac_status); }; }; then
10893 cat >conftest.
$ac_ext <<_ACEOF
10896 cat confdefs.h
>>conftest.
$ac_ext
10897 cat >>conftest.
$ac_ext <<_ACEOF
10898 /* end confdefs.h. */
10899 $ac_includes_default
10903 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= $ac_mid)];
10910 rm -f conftest.
$ac_objext
10911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10912 (eval $ac_compile) 2>conftest.er1
10914 grep -v '^ *+' conftest.er1
>conftest.err
10916 cat conftest.err
>&5
10917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10918 (exit $ac_status); } &&
10919 { ac_try
='test -z "$ac_c_werror_flag"
10920 || test ! -s conftest.err'
10921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10922 (eval $ac_try) 2>&5
10924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10925 (exit $ac_status); }; } &&
10926 { ac_try
='test -s conftest.$ac_objext'
10927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10928 (eval $ac_try) 2>&5
10930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10931 (exit $ac_status); }; }; then
10932 ac_lo
=$ac_mid; break
10934 echo "$as_me: failed program was:" >&5
10935 sed 's/^/| /' conftest.
$ac_ext >&5
10937 ac_hi
=`expr '(' $ac_mid ')' - 1`
10938 if test $ac_mid -le $ac_hi; then
10942 ac_mid
=`expr 2 '*' $ac_mid`
10944 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10947 echo "$as_me: failed program was:" >&5
10948 sed 's/^/| /' conftest.
$ac_ext >&5
10952 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10954 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10955 # Binary search between lo and hi bounds.
10956 while test "x$ac_lo" != "x$ac_hi"; do
10957 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10958 cat >conftest.
$ac_ext <<_ACEOF
10961 cat confdefs.h
>>conftest.
$ac_ext
10962 cat >>conftest.
$ac_ext <<_ACEOF
10963 /* end confdefs.h. */
10964 $ac_includes_default
10968 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)];
10975 rm -f conftest.
$ac_objext
10976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10977 (eval $ac_compile) 2>conftest.er1
10979 grep -v '^ *+' conftest.er1
>conftest.err
10981 cat conftest.err
>&5
10982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10983 (exit $ac_status); } &&
10984 { ac_try
='test -z "$ac_c_werror_flag"
10985 || test ! -s conftest.err'
10986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10987 (eval $ac_try) 2>&5
10989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10990 (exit $ac_status); }; } &&
10991 { ac_try
='test -s conftest.$ac_objext'
10992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10993 (eval $ac_try) 2>&5
10995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10996 (exit $ac_status); }; }; then
10999 echo "$as_me: failed program was:" >&5
11000 sed 's/^/| /' conftest.
$ac_ext >&5
11002 ac_lo
=`expr '(' $ac_mid ')' + 1`
11004 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11007 ?
*) ac_cv_sizeof_uintptr_t
=$ac_lo;;
11008 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77
11009 See \`config.log' for more details." >&5
11010 echo "$as_me: error: cannot compute sizeof (uintptr_t), 77
11011 See \`config.log' for more details." >&2;}
11012 { (exit 1); exit 1; }; } ;;
11015 if test "$cross_compiling" = yes; then
11016 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11017 See \`config.log' for more details." >&5
11018 echo "$as_me: error: cannot run test program while cross compiling
11019 See \`config.log' for more details." >&2;}
11020 { (exit 1); exit 1; }; }
11022 cat >conftest.
$ac_ext <<_ACEOF
11025 cat confdefs.h
>>conftest.
$ac_ext
11026 cat >>conftest.
$ac_ext <<_ACEOF
11027 /* end confdefs.h. */
11028 $ac_includes_default
11029 long longval () { return (long) (sizeof (uintptr_t)); }
11030 unsigned long ulongval () { return (long) (sizeof (uintptr_t)); }
11032 #include <stdlib.h>
11037 FILE *f = fopen ("conftest.val", "w");
11040 if (((long) (sizeof (uintptr_t))) < 0)
11042 long i = longval ();
11043 if (i != ((long) (sizeof (uintptr_t))))
11045 fprintf (f, "%ld\n", i);
11049 unsigned long i = ulongval ();
11050 if (i != ((long) (sizeof (uintptr_t))))
11052 fprintf (f, "%lu\n", i);
11054 exit (ferror (f) || fclose (f) != 0);
11060 rm -f conftest
$ac_exeext
11061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11062 (eval $ac_link) 2>&5
11064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11065 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11067 (eval $ac_try) 2>&5
11069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11070 (exit $ac_status); }; }; then
11071 ac_cv_sizeof_uintptr_t
=`cat conftest.val`
11073 echo "$as_me: program exited with status $ac_status" >&5
11074 echo "$as_me: failed program was:" >&5
11075 sed 's/^/| /' conftest.
$ac_ext >&5
11077 ( exit $ac_status )
11078 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77
11079 See \`config.log' for more details." >&5
11080 echo "$as_me: error: cannot compute sizeof (uintptr_t), 77
11081 See \`config.log' for more details." >&2;}
11082 { (exit 1); exit 1; }; }
11084 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11089 ac_cv_sizeof_uintptr_t
=0
11092 echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
11093 echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6
11094 cat >>confdefs.h
<<_ACEOF
11095 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
11103 # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>.
11104 echo "$as_me:$LINENO: checking size of off_t" >&5
11105 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
11106 if test "${ac_cv_sizeof_off_t+set}" = set; then
11107 echo $ECHO_N "(cached) $ECHO_C" >&6
11109 if test "$cross_compiling" = yes; then
11110 ac_cv_sizeof_off_t
=4
11112 cat >conftest.
$ac_ext <<_ACEOF
11115 cat confdefs.h
>>conftest.
$ac_ext
11116 cat >>conftest.
$ac_ext <<_ACEOF
11117 /* end confdefs.h. */
11119 #include <sys/types.h>
11122 FILE *f=fopen("conftestval", "w");
11124 fprintf(f, "%d\n", sizeof(off_t));
11128 rm -f conftest
$ac_exeext
11129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11130 (eval $ac_link) 2>&5
11132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11133 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11135 (eval $ac_try) 2>&5
11137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11138 (exit $ac_status); }; }; then
11139 ac_cv_sizeof_off_t
=`cat conftestval`
11141 echo "$as_me: program exited with status $ac_status" >&5
11142 echo "$as_me: failed program was:" >&5
11143 sed 's/^/| /' conftest.
$ac_ext >&5
11145 ( exit $ac_status )
11146 ac_cv_sizeof_off_t
=0
11148 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11153 echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
11154 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
11156 cat >>confdefs.h
<<_ACEOF
11157 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
11161 echo "$as_me:$LINENO: checking whether to enable large file support" >&5
11162 echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6
11163 if test "$have_long_long" = yes -a \
11164 "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
11165 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
11167 cat >>confdefs.h
<<\_ACEOF
11168 #define HAVE_LARGEFILE_SUPPORT 1
11171 echo "$as_me:$LINENO: result: yes" >&5
11172 echo "${ECHO_T}yes" >&6
11174 echo "$as_me:$LINENO: result: no" >&5
11175 echo "${ECHO_T}no" >&6
11178 # AC_CHECK_SIZEOF() doesn't include <time.h>.
11179 echo "$as_me:$LINENO: checking size of time_t" >&5
11180 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6
11181 if test "${ac_cv_sizeof_time_t+set}" = set; then
11182 echo $ECHO_N "(cached) $ECHO_C" >&6
11184 if test "$cross_compiling" = yes; then
11185 ac_cv_sizeof_time_t
=4
11187 cat >conftest.
$ac_ext <<_ACEOF
11190 cat confdefs.h
>>conftest.
$ac_ext
11191 cat >>conftest.
$ac_ext <<_ACEOF
11192 /* end confdefs.h. */
11197 FILE *f=fopen("conftestval", "w");
11199 fprintf(f, "%d\n", sizeof(time_t));
11203 rm -f conftest
$ac_exeext
11204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11205 (eval $ac_link) 2>&5
11207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11208 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11210 (eval $ac_try) 2>&5
11212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11213 (exit $ac_status); }; }; then
11214 ac_cv_sizeof_time_t
=`cat conftestval`
11216 echo "$as_me: program exited with status $ac_status" >&5
11217 echo "$as_me: failed program was:" >&5
11218 sed 's/^/| /' conftest.
$ac_ext >&5
11220 ( exit $ac_status )
11221 ac_cv_sizeof_time_t
=0
11223 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11228 echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
11229 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6
11231 cat >>confdefs.h
<<_ACEOF
11232 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
11237 # if have pthread_t then define SIZEOF_PTHREAD_T
11239 if test "$ac_cv_kpthread" = "yes"
11240 then CC
="$CC -Kpthread"
11241 elif test "$ac_cv_kthread" = "yes"
11242 then CC
="$CC -Kthread"
11243 elif test "$ac_cv_pthread" = "yes"
11244 then CC
="$CC -pthread"
11246 echo "$as_me:$LINENO: checking for pthread_t" >&5
11247 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6
11249 cat >conftest.
$ac_ext <<_ACEOF
11252 cat confdefs.h
>>conftest.
$ac_ext
11253 cat >>conftest.
$ac_ext <<_ACEOF
11254 /* end confdefs.h. */
11255 #include <pthread.h>
11259 pthread_t x; x = *(pthread_t*)0;
11264 rm -f conftest.
$ac_objext
11265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11266 (eval $ac_compile) 2>conftest.er1
11268 grep -v '^ *+' conftest.er1
>conftest.err
11270 cat conftest.err
>&5
11271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11272 (exit $ac_status); } &&
11273 { ac_try
='test -z "$ac_c_werror_flag"
11274 || test ! -s conftest.err'
11275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11276 (eval $ac_try) 2>&5
11278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11279 (exit $ac_status); }; } &&
11280 { ac_try
='test -s conftest.$ac_objext'
11281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11282 (eval $ac_try) 2>&5
11284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11285 (exit $ac_status); }; }; then
11288 echo "$as_me: failed program was:" >&5
11289 sed 's/^/| /' conftest.
$ac_ext >&5
11292 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11293 echo "$as_me:$LINENO: result: $have_pthread_t" >&5
11294 echo "${ECHO_T}$have_pthread_t" >&6
11295 if test "$have_pthread_t" = yes ; then
11296 # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
11297 echo "$as_me:$LINENO: checking size of pthread_t" >&5
11298 echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6
11299 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
11300 echo $ECHO_N "(cached) $ECHO_C" >&6
11302 if test "$cross_compiling" = yes; then
11303 ac_cv_sizeof_pthread_t
=4
11305 cat >conftest.
$ac_ext <<_ACEOF
11308 cat confdefs.h
>>conftest.
$ac_ext
11309 cat >>conftest.
$ac_ext <<_ACEOF
11310 /* end confdefs.h. */
11312 #include <pthread.h>
11315 FILE *f=fopen("conftestval", "w");
11317 fprintf(f, "%d\n", sizeof(pthread_t));
11321 rm -f conftest
$ac_exeext
11322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11323 (eval $ac_link) 2>&5
11325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11326 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11328 (eval $ac_try) 2>&5
11330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11331 (exit $ac_status); }; }; then
11332 ac_cv_sizeof_pthread_t
=`cat conftestval`
11334 echo "$as_me: program exited with status $ac_status" >&5
11335 echo "$as_me: failed program was:" >&5
11336 sed 's/^/| /' conftest.
$ac_ext >&5
11338 ( exit $ac_status )
11339 ac_cv_sizeof_pthread_t
=0
11341 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11346 echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
11347 echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6
11349 cat >>confdefs.h
<<_ACEOF
11350 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
11356 echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5
11357 echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6
11358 # Check whether --enable-toolbox-glue or --disable-toolbox-glue was given.
11359 if test "${enable_toolbox_glue+set}" = set; then
11360 enableval
="$enable_toolbox_glue"
11364 if test -z "$enable_toolbox_glue"
11366 case $ac_sys_system/$ac_sys_release in
11368 enable_toolbox_glue
="yes";;
11370 enable_toolbox_glue
="no";;
11373 case "$enable_toolbox_glue" in
11375 extra_machdep_objs
="Python/mactoolboxglue.o"
11376 extra_undefs
="-u _PyMac_Error"
11378 cat >>confdefs.h
<<\_ACEOF
11379 #define USE_TOOLBOX_OBJECT_GLUE 1
11384 extra_machdep_objs
=""
11388 echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5
11389 echo "${ECHO_T}$enable_toolbox_glue" >&6
11392 case $ac_sys_system/$ac_sys_release in
11393 Darwin
/[01567]\..
*)
11394 OTHER_LIBTOOL_OPT
="-prebind -seg1addr 0x10000000"
11397 OTHER_LIBTOOL_OPT
=""
11402 case $ac_sys_system/$ac_sys_release in
11403 Darwin
/[01567]\..
*)
11404 LIBTOOL_CRUFT
="-framework System -lcc_dynamic"
11405 if test "${enable_universalsdk}"; then
11408 LIBTOOL_CRUFT
="${LIBTOOL_CRUFT} -arch_only `arch`"
11410 LIBTOOL_CRUFT
=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11411 LIBTOOL_CRUFT
=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
11413 gcc_version
=`gcc -v 2>&1 | grep version | cut -d\ -f3`
11414 if test ${gcc_version} '<' 4.0
11416 LIBTOOL_CRUFT
="-lcc_dynamic"
11420 LIBTOOL_CRUFT
=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only `arch`"
11421 LIBTOOL_CRUFT
=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11422 LIBTOOL_CRUFT
=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
11425 echo "$as_me:$LINENO: checking for --enable-framework" >&5
11426 echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6
11427 if test "$enable_framework"
11429 BASECFLAGS
="$BASECFLAGS -fno-common -dynamic"
11430 # -F. is needed to allow linking to the framework while
11431 # in the build location.
11433 cat >>confdefs.h
<<\_ACEOF
11434 #define WITH_NEXT_FRAMEWORK 1
11437 echo "$as_me:$LINENO: result: yes" >&5
11438 echo "${ECHO_T}yes" >&6
11440 echo "$as_me:$LINENO: result: no" >&5
11441 echo "${ECHO_T}no" >&6
11444 echo "$as_me:$LINENO: checking for dyld" >&5
11445 echo $ECHO_N "checking for dyld... $ECHO_C" >&6
11446 case $ac_sys_system/$ac_sys_release in
11449 cat >>confdefs.h
<<\_ACEOF
11450 #define WITH_DYLD 1
11453 echo "$as_me:$LINENO: result: always on for Darwin" >&5
11454 echo "${ECHO_T}always on for Darwin" >&6
11457 echo "$as_me:$LINENO: result: no" >&5
11458 echo "${ECHO_T}no" >&6
11462 # Set info about shared libraries.
11468 # SO is the extension of shared libraries `(including the dot!)
11469 # -- usually .so, .sl on HP-UX, .dll on Cygwin
11470 echo "$as_me:$LINENO: checking SO" >&5
11471 echo $ECHO_N "checking SO... $ECHO_C" >&6
11474 case $ac_sys_system in
11485 # this might also be a termcap variable, see #610332
11487 echo '====================================================================='
11489 echo '+ WARNING: You have set SO in your environment. +'
11490 echo '+ Do you really mean to change the extension for shared libraries? +'
11491 echo '+ Continuing in 10 seconds to let you to ponder. +'
11493 echo '====================================================================='
11496 echo "$as_me:$LINENO: result: $SO" >&5
11497 echo "${ECHO_T}$SO" >&6
11499 cat >>confdefs.h
<<_ACEOF
11500 #define SHLIB_EXT "$SO"
11503 # LDSHARED is the ld *command* used to create shared library
11504 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
11505 # (Shared libraries in this instance are shared modules to be loaded into
11506 # Python, as opposed to building Python itself as a shared library.)
11507 echo "$as_me:$LINENO: checking LDSHARED" >&5
11508 echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6
11509 if test -z "$LDSHARED"
11511 case $ac_sys_system/$ac_sys_release in
11513 BLDSHARED
="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
11514 LDSHARED
="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
11517 BLDSHARED
="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
11518 LDSHARED
="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
11520 IRIX
/5*) LDSHARED
="ld -shared";;
11521 IRIX
*/6*) LDSHARED
="ld ${SGI_ABI} -shared -all";;
11523 if test "$GCC" = "yes"
11524 then LDSHARED
='$(CC) -shared'
11525 else LDSHARED
='$(CC) -G';
11527 hp
*|HP
*) LDSHARED
="ld -b";;
11528 OSF
*) LDSHARED
="ld -shared -expect_unresolved \"*\"";;
11530 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
11531 if test "$enable_framework" ; then
11532 # Link against the framework. All externals should be defined.
11533 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11534 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11536 # No framework. Ignore undefined symbols, assuming they come from Python
11537 LDSHARED
="$LDSHARED -undefined suppress"
11539 Darwin
/1.4*|Darwin
/5.
*|Darwin
/6.
*)
11540 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
11541 if test "$enable_framework" ; then
11542 # Link against the framework. All externals should be defined.
11543 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11544 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11546 # No framework, use the Python app as bundle-loader
11547 BLDSHARED
="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
11548 LDSHARED
="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
11551 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
11552 # This allows an extension to be used in any Python
11553 cur_target
=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
11554 if test ${cur_target} '>' 10.2; then
11557 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
11558 EXPORT_MACOSX_DEPLOYMENT_TARGET
=''
11559 if test ${MACOSX_DEPLOYMENT_TARGET-${cur_target}} '>' 10.2
11561 if test "${enable_universalsdk}"; then
11562 LDFLAGS
="-arch i386 -arch ppc -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
11564 LDSHARED
='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
11565 BLDSHARED
="$LDSHARED"
11567 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
11568 if test "$enable_framework" ; then
11569 # Link against the framework. All externals should be defined.
11570 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11571 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11573 # No framework, use the Python app as bundle-loader
11574 BLDSHARED
="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
11575 LDSHARED
="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
11579 Linux
*|GNU
*) LDSHARED
='$(CC) -shared';;
11580 BSD
/OS
*/4*) LDSHARED
="gcc -shared";;
11582 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
11584 LDSHARED
="$CC -shared ${LDFLAGS}"
11586 LDSHARED
="ld -Bshareable ${LDFLAGS}"
11589 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
11591 LDSHARED
='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
11594 [01].
* |
2.
[0-7] |
2.
[0-7].
*)
11595 LDSHARED
="ld -Bshareable ${LDFLAGS}"
11598 LDSHARED
='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
11602 NetBSD
*|DragonFly
*) LDSHARED
="cc -shared ${LDFLAGS}";;
11603 OpenUNIX
*|UnixWare
*)
11604 if test "$GCC" = "yes"
11605 then LDSHARED
='$(CC) -shared'
11606 else LDSHARED
='$(CC) -G'
11608 SCO_SV
*) LDSHARED
='$(CC) -Wl,-G,-Bexport';;
11609 Monterey
*) LDSHARED
="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";;
11610 CYGWIN
*) LDSHARED
="gcc -shared -Wl,--enable-auto-image-base";;
11611 atheos
*) LDSHARED
="gcc -shared";;
11615 echo "$as_me:$LINENO: result: $LDSHARED" >&5
11616 echo "${ECHO_T}$LDSHARED" >&6
11617 BLDSHARED
=${BLDSHARED-$LDSHARED}
11618 # CCSHARED are the C *flags* used to create objects to go into a shared
11619 # library (module) -- this is only needed for a few systems
11620 echo "$as_me:$LINENO: checking CCSHARED" >&5
11621 echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6
11622 if test -z "$CCSHARED"
11624 case $ac_sys_system/$ac_sys_release in
11625 SunOS
*) if test "$GCC" = yes;
11626 then CCSHARED
="-fPIC";
11627 else CCSHARED
="-xcode=pic32";
11629 hp
*|HP
*) if test "$GCC" = yes;
11630 then CCSHARED
="-fPIC";
11631 else CCSHARED
="+z";
11633 Linux
*|GNU
*) CCSHARED
="-fPIC";;
11634 BSD
/OS
*/4*) CCSHARED
="-fpic";;
11635 FreeBSD
*|NetBSD
*|OpenBSD
*|DragonFly
*) CCSHARED
="-fPIC";;
11636 OpenUNIX
*|UnixWare
*)
11637 if test "$GCC" = "yes"
11638 then CCSHARED
="-fPIC"
11639 else CCSHARED
="-KPIC"
11642 if test "$GCC" = "yes"
11643 then CCSHARED
="-fPIC"
11644 else CCSHARED
="-Kpic -belf"
11646 Monterey
*) CCSHARED
="-G";;
11647 IRIX
*/6*) case $CC in
11648 *gcc
*) CCSHARED
="-shared";;
11651 atheos
*) CCSHARED
="-fPIC";;
11654 echo "$as_me:$LINENO: result: $CCSHARED" >&5
11655 echo "${ECHO_T}$CCSHARED" >&6
11656 # LINKFORSHARED are the flags passed to the $(CC) command that links
11657 # the python executable -- this is only needed for a few systems
11658 echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
11659 echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6
11660 if test -z "$LINKFORSHARED"
11662 case $ac_sys_system/$ac_sys_release in
11663 AIX
*) LINKFORSHARED
='-Wl,-bE:Modules/python.exp -lld';;
11665 LINKFORSHARED
="-Wl,-E -Wl,+s";;
11666 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
11667 BSD
/OS
/4*) LINKFORSHARED
="-Xlinker -export-dynamic";;
11668 Linux
*|GNU
*) LINKFORSHARED
="-Xlinker -export-dynamic";;
11669 # -u libsys_s pulls in all symbols in libsys
11671 # -u _PyMac_Error is needed to pull in the mac toolbox glue,
11673 # not used by the core itself but which needs to be in the core so
11674 # that dynamically loaded extension modules have access to it.
11675 # -prebind is no longer used, because it actually seems to give a
11676 # slowdown in stead of a speedup, maybe due to the large number of
11677 # dynamic loads Python does.
11679 LINKFORSHARED
="$extra_undefs"
11680 if test "$enable_framework"
11682 LINKFORSHARED
="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11684 LINKFORSHARED
="$LINKFORSHARED";;
11685 OpenUNIX
*|UnixWare
*) LINKFORSHARED
="-Wl,-Bexport";;
11686 SCO_SV
*) LINKFORSHARED
="-Wl,-Bexport";;
11687 ReliantUNIX
*) LINKFORSHARED
="-W1 -Blargedynsym";;
11688 FreeBSD
*|NetBSD
*|OpenBSD
*|DragonFly
*)
11689 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
11691 LINKFORSHARED
="-Wl,--export-dynamic"
11693 SunOS
/5*) case $CC in
11695 if $CC -Xlinker --help 2>&1 |
grep export-dynamic
>/dev
/null
11697 LINKFORSHARED
="-Xlinker --export-dynamic"
11701 if test $enable_shared = "no"
11703 LINKFORSHARED
='-Wl,--out-implib=$(LDLIBRARY)'
11707 echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
11708 echo "${ECHO_T}$LINKFORSHARED" >&6
11711 echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
11712 echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6
11713 if test ! "$LIBRARY" = "$LDLIBRARY"
11715 case $ac_sys_system in
11717 # Cygwin needs CCSHARED when building extension DLLs
11718 # but not when building the interpreter DLL.
11719 CFLAGSFORSHARED
='';;
11721 CFLAGSFORSHARED
='$(CCSHARED)'
11724 echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
11725 echo "${ECHO_T}$CFLAGSFORSHARED" >&6
11727 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
11728 # library (with --enable-shared).
11729 # For platforms on which shared libraries are not allowed to have unresolved
11730 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
11731 # if it is not required, since it creates a dependency of the shared library
11732 # to LIBS. This, in turn, means that applications linking the shared libpython
11733 # don't need to link LIBS explicitly. The default should be only changed
11734 # on systems where this approach causes problems.
11736 echo "$as_me:$LINENO: checking SHLIBS" >&5
11737 echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6
11738 case "$ac_sys_system" in
11742 echo "$as_me:$LINENO: result: $SHLIBS" >&5
11743 echo "${ECHO_T}$SHLIBS" >&6
11746 # checks for libraries
11748 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11749 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11750 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11751 echo $ECHO_N "(cached) $ECHO_C" >&6
11753 ac_check_lib_save_LIBS
=$LIBS
11755 cat >conftest.
$ac_ext <<_ACEOF
11758 cat confdefs.h
>>conftest.
$ac_ext
11759 cat >>conftest.
$ac_ext <<_ACEOF
11760 /* end confdefs.h. */
11762 /* Override any gcc2 internal prototype to avoid an error. */
11766 /* We use char because int might match the return type of a gcc2
11767 builtin and then its argument prototype would still apply. */
11777 rm -f conftest.
$ac_objext conftest
$ac_exeext
11778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11779 (eval $ac_link) 2>conftest.er1
11781 grep -v '^ *+' conftest.er1
>conftest.err
11783 cat conftest.err
>&5
11784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11785 (exit $ac_status); } &&
11786 { ac_try
='test -z "$ac_c_werror_flag"
11787 || test ! -s conftest.err'
11788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11789 (eval $ac_try) 2>&5
11791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11792 (exit $ac_status); }; } &&
11793 { ac_try
='test -s conftest$ac_exeext'
11794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11795 (eval $ac_try) 2>&5
11797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11798 (exit $ac_status); }; }; then
11799 ac_cv_lib_dl_dlopen
=yes
11801 echo "$as_me: failed program was:" >&5
11802 sed 's/^/| /' conftest.
$ac_ext >&5
11804 ac_cv_lib_dl_dlopen
=no
11806 rm -f conftest.err conftest.
$ac_objext \
11807 conftest
$ac_exeext conftest.
$ac_ext
11808 LIBS
=$ac_check_lib_save_LIBS
11810 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11811 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11812 if test $ac_cv_lib_dl_dlopen = yes; then
11813 cat >>confdefs.h
<<_ACEOF
11814 #define HAVE_LIBDL 1
11820 # Dynamic linking for SunOS/Solaris and SYSV
11822 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11823 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11824 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11825 echo $ECHO_N "(cached) $ECHO_C" >&6
11827 ac_check_lib_save_LIBS
=$LIBS
11829 cat >conftest.
$ac_ext <<_ACEOF
11832 cat confdefs.h
>>conftest.
$ac_ext
11833 cat >>conftest.
$ac_ext <<_ACEOF
11834 /* end confdefs.h. */
11836 /* Override any gcc2 internal prototype to avoid an error. */
11840 /* We use char because int might match the return type of a gcc2
11841 builtin and then its argument prototype would still apply. */
11851 rm -f conftest.
$ac_objext conftest
$ac_exeext
11852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11853 (eval $ac_link) 2>conftest.er1
11855 grep -v '^ *+' conftest.er1
>conftest.err
11857 cat conftest.err
>&5
11858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11859 (exit $ac_status); } &&
11860 { ac_try
='test -z "$ac_c_werror_flag"
11861 || test ! -s conftest.err'
11862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11863 (eval $ac_try) 2>&5
11865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11866 (exit $ac_status); }; } &&
11867 { ac_try
='test -s conftest$ac_exeext'
11868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11869 (eval $ac_try) 2>&5
11871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11872 (exit $ac_status); }; }; then
11873 ac_cv_lib_dld_shl_load
=yes
11875 echo "$as_me: failed program was:" >&5
11876 sed 's/^/| /' conftest.
$ac_ext >&5
11878 ac_cv_lib_dld_shl_load
=no
11880 rm -f conftest.err conftest.
$ac_objext \
11881 conftest
$ac_exeext conftest.
$ac_ext
11882 LIBS
=$ac_check_lib_save_LIBS
11884 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11885 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11886 if test $ac_cv_lib_dld_shl_load = yes; then
11887 cat >>confdefs.h
<<_ACEOF
11888 #define HAVE_LIBDLD 1
11894 # Dynamic linking for HP-UX
11896 # only check for sem_ini if thread support is requested
11897 if test "$with_threads" = "yes" -o -z "$with_threads"; then
11898 echo "$as_me:$LINENO: checking for library containing sem_init" >&5
11899 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6
11900 if test "${ac_cv_search_sem_init+set}" = set; then
11901 echo $ECHO_N "(cached) $ECHO_C" >&6
11903 ac_func_search_save_LIBS
=$LIBS
11904 ac_cv_search_sem_init
=no
11905 cat >conftest.
$ac_ext <<_ACEOF
11908 cat confdefs.h
>>conftest.
$ac_ext
11909 cat >>conftest.
$ac_ext <<_ACEOF
11910 /* end confdefs.h. */
11912 /* Override any gcc2 internal prototype to avoid an error. */
11916 /* We use char because int might match the return type of a gcc2
11917 builtin and then its argument prototype would still apply. */
11927 rm -f conftest.
$ac_objext conftest
$ac_exeext
11928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11929 (eval $ac_link) 2>conftest.er1
11931 grep -v '^ *+' conftest.er1
>conftest.err
11933 cat conftest.err
>&5
11934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11935 (exit $ac_status); } &&
11936 { ac_try
='test -z "$ac_c_werror_flag"
11937 || test ! -s conftest.err'
11938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11939 (eval $ac_try) 2>&5
11941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11942 (exit $ac_status); }; } &&
11943 { ac_try
='test -s conftest$ac_exeext'
11944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11945 (eval $ac_try) 2>&5
11947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11948 (exit $ac_status); }; }; then
11949 ac_cv_search_sem_init
="none required"
11951 echo "$as_me: failed program was:" >&5
11952 sed 's/^/| /' conftest.
$ac_ext >&5
11955 rm -f conftest.err conftest.
$ac_objext \
11956 conftest
$ac_exeext conftest.
$ac_ext
11957 if test "$ac_cv_search_sem_init" = no
; then
11958 for ac_lib
in pthread rt posix4
; do
11959 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11960 cat >conftest.
$ac_ext <<_ACEOF
11963 cat confdefs.h
>>conftest.
$ac_ext
11964 cat >>conftest.
$ac_ext <<_ACEOF
11965 /* end confdefs.h. */
11967 /* Override any gcc2 internal prototype to avoid an error. */
11971 /* We use char because int might match the return type of a gcc2
11972 builtin and then its argument prototype would still apply. */
11982 rm -f conftest.
$ac_objext conftest
$ac_exeext
11983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11984 (eval $ac_link) 2>conftest.er1
11986 grep -v '^ *+' conftest.er1
>conftest.err
11988 cat conftest.err
>&5
11989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11990 (exit $ac_status); } &&
11991 { ac_try
='test -z "$ac_c_werror_flag"
11992 || test ! -s conftest.err'
11993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11994 (eval $ac_try) 2>&5
11996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11997 (exit $ac_status); }; } &&
11998 { ac_try
='test -s conftest$ac_exeext'
11999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12000 (eval $ac_try) 2>&5
12002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12003 (exit $ac_status); }; }; then
12004 ac_cv_search_sem_init
="-l$ac_lib"
12007 echo "$as_me: failed program was:" >&5
12008 sed 's/^/| /' conftest.
$ac_ext >&5
12011 rm -f conftest.err conftest.
$ac_objext \
12012 conftest
$ac_exeext conftest.
$ac_ext
12015 LIBS
=$ac_func_search_save_LIBS
12017 echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
12018 echo "${ECHO_T}$ac_cv_search_sem_init" >&6
12019 if test "$ac_cv_search_sem_init" != no
; then
12020 test "$ac_cv_search_sem_init" = "none required" || LIBS
="$ac_cv_search_sem_init $LIBS"
12023 # 'Real Time' functions on Solaris
12024 # posix4 on Solaris 2.6
12025 # pthread (first!) on Linux
12028 # check if we need libintl for locale functions
12029 echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
12030 echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6
12031 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
12032 echo $ECHO_N "(cached) $ECHO_C" >&6
12034 ac_check_lib_save_LIBS
=$LIBS
12035 LIBS
="-lintl $LIBS"
12036 cat >conftest.
$ac_ext <<_ACEOF
12039 cat confdefs.h
>>conftest.
$ac_ext
12040 cat >>conftest.
$ac_ext <<_ACEOF
12041 /* end confdefs.h. */
12043 /* Override any gcc2 internal prototype to avoid an error. */
12047 /* We use char because int might match the return type of a gcc2
12048 builtin and then its argument prototype would still apply. */
12049 char textdomain ();
12058 rm -f conftest.
$ac_objext conftest
$ac_exeext
12059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12060 (eval $ac_link) 2>conftest.er1
12062 grep -v '^ *+' conftest.er1
>conftest.err
12064 cat conftest.err
>&5
12065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12066 (exit $ac_status); } &&
12067 { ac_try
='test -z "$ac_c_werror_flag"
12068 || test ! -s conftest.err'
12069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12070 (eval $ac_try) 2>&5
12072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12073 (exit $ac_status); }; } &&
12074 { ac_try
='test -s conftest$ac_exeext'
12075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12076 (eval $ac_try) 2>&5
12078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12079 (exit $ac_status); }; }; then
12080 ac_cv_lib_intl_textdomain
=yes
12082 echo "$as_me: failed program was:" >&5
12083 sed 's/^/| /' conftest.
$ac_ext >&5
12085 ac_cv_lib_intl_textdomain
=no
12087 rm -f conftest.err conftest.
$ac_objext \
12088 conftest
$ac_exeext conftest.
$ac_ext
12089 LIBS
=$ac_check_lib_save_LIBS
12091 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
12092 echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6
12093 if test $ac_cv_lib_intl_textdomain = yes; then
12095 cat >>confdefs.h
<<\_ACEOF
12096 #define WITH_LIBINTL 1
12102 # checks for system dependent C++ extensions support
12103 case "$ac_sys_system" in
12104 AIX
*) echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
12105 echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6
12106 cat >conftest.
$ac_ext <<_ACEOF
12109 cat confdefs.h
>>conftest.
$ac_ext
12110 cat >>conftest.
$ac_ext <<_ACEOF
12111 /* end confdefs.h. */
12112 #include "/usr/lpp/xlC/include/load.h"
12116 loadAndInit("", 0, "")
12121 rm -f conftest.
$ac_objext conftest
$ac_exeext
12122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12123 (eval $ac_link) 2>conftest.er1
12125 grep -v '^ *+' conftest.er1
>conftest.err
12127 cat conftest.err
>&5
12128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12129 (exit $ac_status); } &&
12130 { ac_try
='test -z "$ac_c_werror_flag"
12131 || test ! -s conftest.err'
12132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12133 (eval $ac_try) 2>&5
12135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12136 (exit $ac_status); }; } &&
12137 { ac_try
='test -s conftest$ac_exeext'
12138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12139 (eval $ac_try) 2>&5
12141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12142 (exit $ac_status); }; }; then
12144 cat >>confdefs.h
<<\_ACEOF
12145 #define AIX_GENUINE_CPLUSPLUS 1
12148 echo "$as_me:$LINENO: result: yes" >&5
12149 echo "${ECHO_T}yes" >&6
12151 echo "$as_me: failed program was:" >&5
12152 sed 's/^/| /' conftest.
$ac_ext >&5
12154 echo "$as_me:$LINENO: result: no" >&5
12155 echo "${ECHO_T}no" >&6
12157 rm -f conftest.err conftest.
$ac_objext \
12158 conftest
$ac_exeext conftest.
$ac_ext;;
12162 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
12163 # BeOS' sockets are stashed in libnet.
12164 echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
12165 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6
12166 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
12167 echo $ECHO_N "(cached) $ECHO_C" >&6
12169 ac_check_lib_save_LIBS
=$LIBS
12171 cat >conftest.
$ac_ext <<_ACEOF
12174 cat confdefs.h
>>conftest.
$ac_ext
12175 cat >>conftest.
$ac_ext <<_ACEOF
12176 /* end confdefs.h. */
12178 /* Override any gcc2 internal prototype to avoid an error. */
12182 /* We use char because int might match the return type of a gcc2
12183 builtin and then its argument prototype would still apply. */
12193 rm -f conftest.
$ac_objext conftest
$ac_exeext
12194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12195 (eval $ac_link) 2>conftest.er1
12197 grep -v '^ *+' conftest.er1
>conftest.err
12199 cat conftest.err
>&5
12200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12201 (exit $ac_status); } &&
12202 { ac_try
='test -z "$ac_c_werror_flag"
12203 || test ! -s conftest.err'
12204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12205 (eval $ac_try) 2>&5
12207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12208 (exit $ac_status); }; } &&
12209 { ac_try
='test -s conftest$ac_exeext'
12210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12211 (eval $ac_try) 2>&5
12213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12214 (exit $ac_status); }; }; then
12215 ac_cv_lib_nsl_t_open
=yes
12217 echo "$as_me: failed program was:" >&5
12218 sed 's/^/| /' conftest.
$ac_ext >&5
12220 ac_cv_lib_nsl_t_open
=no
12222 rm -f conftest.err conftest.
$ac_objext \
12223 conftest
$ac_exeext conftest.
$ac_ext
12224 LIBS
=$ac_check_lib_save_LIBS
12226 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
12227 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6
12228 if test $ac_cv_lib_nsl_t_open = yes; then
12232 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
12233 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
12234 if test "${ac_cv_lib_socket_socket+set}" = set; then
12235 echo $ECHO_N "(cached) $ECHO_C" >&6
12237 ac_check_lib_save_LIBS
=$LIBS
12238 LIBS
="-lsocket $LIBS $LIBS"
12239 cat >conftest.
$ac_ext <<_ACEOF
12242 cat confdefs.h
>>conftest.
$ac_ext
12243 cat >>conftest.
$ac_ext <<_ACEOF
12244 /* end confdefs.h. */
12246 /* Override any gcc2 internal prototype to avoid an error. */
12250 /* We use char because int might match the return type of a gcc2
12251 builtin and then its argument prototype would still apply. */
12261 rm -f conftest.
$ac_objext conftest
$ac_exeext
12262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12263 (eval $ac_link) 2>conftest.er1
12265 grep -v '^ *+' conftest.er1
>conftest.err
12267 cat conftest.err
>&5
12268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12269 (exit $ac_status); } &&
12270 { ac_try
='test -z "$ac_c_werror_flag"
12271 || test ! -s conftest.err'
12272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12273 (eval $ac_try) 2>&5
12275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12276 (exit $ac_status); }; } &&
12277 { ac_try
='test -s conftest$ac_exeext'
12278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12279 (eval $ac_try) 2>&5
12281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12282 (exit $ac_status); }; }; then
12283 ac_cv_lib_socket_socket
=yes
12285 echo "$as_me: failed program was:" >&5
12286 sed 's/^/| /' conftest.
$ac_ext >&5
12288 ac_cv_lib_socket_socket
=no
12290 rm -f conftest.err conftest.
$ac_objext \
12291 conftest
$ac_exeext conftest.
$ac_ext
12292 LIBS
=$ac_check_lib_save_LIBS
12294 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
12295 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
12296 if test $ac_cv_lib_socket_socket = yes; then
12297 LIBS
="-lsocket $LIBS"
12301 case "$ac_sys_system" in
12303 echo "$as_me:$LINENO: checking for socket in -lnet" >&5
12304 echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6
12305 if test "${ac_cv_lib_net_socket+set}" = set; then
12306 echo $ECHO_N "(cached) $ECHO_C" >&6
12308 ac_check_lib_save_LIBS
=$LIBS
12309 LIBS
="-lnet $LIBS $LIBS"
12310 cat >conftest.
$ac_ext <<_ACEOF
12313 cat confdefs.h
>>conftest.
$ac_ext
12314 cat >>conftest.
$ac_ext <<_ACEOF
12315 /* end confdefs.h. */
12317 /* Override any gcc2 internal prototype to avoid an error. */
12321 /* We use char because int might match the return type of a gcc2
12322 builtin and then its argument prototype would still apply. */
12332 rm -f conftest.
$ac_objext conftest
$ac_exeext
12333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12334 (eval $ac_link) 2>conftest.er1
12336 grep -v '^ *+' conftest.er1
>conftest.err
12338 cat conftest.err
>&5
12339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12340 (exit $ac_status); } &&
12341 { ac_try
='test -z "$ac_c_werror_flag"
12342 || test ! -s conftest.err'
12343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12344 (eval $ac_try) 2>&5
12346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12347 (exit $ac_status); }; } &&
12348 { ac_try
='test -s conftest$ac_exeext'
12349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12350 (eval $ac_try) 2>&5
12352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12353 (exit $ac_status); }; }; then
12354 ac_cv_lib_net_socket
=yes
12356 echo "$as_me: failed program was:" >&5
12357 sed 's/^/| /' conftest.
$ac_ext >&5
12359 ac_cv_lib_net_socket
=no
12361 rm -f conftest.err conftest.
$ac_objext \
12362 conftest
$ac_exeext conftest.
$ac_ext
12363 LIBS
=$ac_check_lib_save_LIBS
12365 echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5
12366 echo "${ECHO_T}$ac_cv_lib_net_socket" >&6
12367 if test $ac_cv_lib_net_socket = yes; then
12374 echo "$as_me:$LINENO: checking for --with-libs" >&5
12375 echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6
12377 # Check whether --with-libs or --without-libs was given.
12378 if test "${with_libs+set}" = set; then
12379 withval
="$with_libs"
12381 echo "$as_me:$LINENO: result: $withval" >&5
12382 echo "${ECHO_T}$withval" >&6
12383 LIBS
="$withval $LIBS"
12386 echo "$as_me:$LINENO: result: no" >&5
12387 echo "${ECHO_T}no" >&6
12390 # Check for use of the system libffi library
12391 echo "$as_me:$LINENO: checking for --with-system-ffi" >&5
12392 echo $ECHO_N "checking for --with-system-ffi... $ECHO_C" >&6
12394 # Check whether --with-system_ffi or --without-system_ffi was given.
12395 if test "${with_system_ffi+set}" = set; then
12396 withval
="$with_system_ffi"
12400 if test -z "$with_system_ffi"
12401 then with_system_ffi
="no"
12403 echo "$as_me:$LINENO: result: $with_system_ffi" >&5
12404 echo "${ECHO_T}$with_system_ffi" >&6
12406 # Determine if signalmodule should be used.
12409 echo "$as_me:$LINENO: checking for --with-signal-module" >&5
12410 echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6
12412 # Check whether --with-signal-module or --without-signal-module was given.
12413 if test "${with_signal_module+set}" = set; then
12414 withval
="$with_signal_module"
12418 if test -z "$with_signal_module"
12419 then with_signal_module
="yes"
12421 echo "$as_me:$LINENO: result: $with_signal_module" >&5
12422 echo "${ECHO_T}$with_signal_module" >&6
12424 if test "${with_signal_module}" = "yes"; then
12425 USE_SIGNAL_MODULE
=""
12428 USE_SIGNAL_MODULE
="#"
12429 SIGNAL_OBJS
="Parser/intrcheck.o Python/sigcheck.o"
12432 # This is used to generate Setup.config
12434 USE_THREAD_MODULE
=""
12436 echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
12437 echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6
12440 # Check whether --with-dec-threads or --without-dec-threads was given.
12441 if test "${with_dec_threads+set}" = set; then
12442 withval
="$with_dec_threads"
12444 echo "$as_me:$LINENO: result: $withval" >&5
12445 echo "${ECHO_T}$withval" >&6
12447 if test "${with_thread+set}" != set; then
12448 with_thread
="$withval";
12451 echo "$as_me:$LINENO: result: no" >&5
12452 echo "${ECHO_T}no" >&6
12455 # Templates for things AC_DEFINEd more than once.
12456 # For a single AC_DEFINE, no template is needed.
12464 echo "$as_me:$LINENO: checking for --with-threads" >&5
12465 echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6
12467 # Check whether --with-threads or --without-threads was given.
12468 if test "${with_threads+set}" = set; then
12469 withval
="$with_threads"
12473 # --with-thread is deprecated, but check for it anyway
12475 # Check whether --with-thread or --without-thread was given.
12476 if test "${with_thread+set}" = set; then
12477 withval
="$with_thread"
12478 with_threads
=$with_thread
12481 if test -z "$with_threads"
12482 then with_threads
="yes"
12484 echo "$as_me:$LINENO: result: $with_threads" >&5
12485 echo "${ECHO_T}$with_threads" >&6
12488 if test "$with_threads" = "no"
12490 USE_THREAD_MODULE
="#"
12491 elif test "$ac_cv_pthread_is_default" = yes
12493 cat >>confdefs.h
<<\_ACEOF
12494 #define WITH_THREAD 1
12497 # Defining _REENTRANT on system with POSIX threads should not hurt.
12498 cat >>confdefs.h
<<\_ACEOF
12499 #define _REENTRANT 1
12503 THREADOBJ
="Python/thread.o"
12504 elif test "$ac_cv_kpthread" = "yes"
12507 if test "$ac_cv_cxx_thread" = "yes"; then
12508 CXX
="$CXX -Kpthread"
12510 cat >>confdefs.h
<<\_ACEOF
12511 #define WITH_THREAD 1
12515 THREADOBJ
="Python/thread.o"
12516 elif test "$ac_cv_kthread" = "yes"
12519 if test "$ac_cv_cxx_thread" = "yes"; then
12520 CXX
="$CXX -Kthread"
12522 cat >>confdefs.h
<<\_ACEOF
12523 #define WITH_THREAD 1
12527 THREADOBJ
="Python/thread.o"
12528 elif test "$ac_cv_pthread" = "yes"
12531 if test "$ac_cv_cxx_thread" = "yes"; then
12532 CXX
="$CXX -pthread"
12534 cat >>confdefs.h
<<\_ACEOF
12535 #define WITH_THREAD 1
12539 THREADOBJ
="Python/thread.o"
12541 if test ! -z "$with_threads" -a -d "$with_threads"
12542 then LDFLAGS
="$LDFLAGS -L$with_threads"
12544 if test ! -z "$withval" -a -d "$withval"
12545 then LDFLAGS
="$LDFLAGS -L$withval"
12548 # According to the POSIX spec, a pthreads implementation must
12549 # define _POSIX_THREADS in unistd.h. Some apparently don't
12550 # (e.g. gnu pth with pthread emulation)
12551 echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
12552 echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6
12553 cat >conftest.
$ac_ext <<_ACEOF
12556 cat confdefs.h
>>conftest.
$ac_ext
12557 cat >>conftest.
$ac_ext <<_ACEOF
12558 /* end confdefs.h. */
12560 #include <unistd.h>
12561 #ifdef _POSIX_THREADS
12566 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12567 $EGREP "yes" >/dev
/null
2>&1; then
12568 unistd_defines_pthreads
=yes
12570 unistd_defines_pthreads
=no
12574 echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
12575 echo "${ECHO_T}$unistd_defines_pthreads" >&6
12577 cat >>confdefs.h
<<\_ACEOF
12578 #define _REENTRANT 1
12581 if test "${ac_cv_header_cthreads_h+set}" = set; then
12582 echo "$as_me:$LINENO: checking for cthreads.h" >&5
12583 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6
12584 if test "${ac_cv_header_cthreads_h+set}" = set; then
12585 echo $ECHO_N "(cached) $ECHO_C" >&6
12587 echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
12588 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6
12590 # Is the header compilable?
12591 echo "$as_me:$LINENO: checking cthreads.h usability" >&5
12592 echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6
12593 cat >conftest.
$ac_ext <<_ACEOF
12596 cat confdefs.h
>>conftest.
$ac_ext
12597 cat >>conftest.
$ac_ext <<_ACEOF
12598 /* end confdefs.h. */
12599 $ac_includes_default
12600 #include <cthreads.h>
12602 rm -f conftest.
$ac_objext
12603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12604 (eval $ac_compile) 2>conftest.er1
12606 grep -v '^ *+' conftest.er1
>conftest.err
12608 cat conftest.err
>&5
12609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12610 (exit $ac_status); } &&
12611 { ac_try
='test -z "$ac_c_werror_flag"
12612 || test ! -s conftest.err'
12613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12614 (eval $ac_try) 2>&5
12616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12617 (exit $ac_status); }; } &&
12618 { ac_try
='test -s conftest.$ac_objext'
12619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12620 (eval $ac_try) 2>&5
12622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12623 (exit $ac_status); }; }; then
12624 ac_header_compiler
=yes
12626 echo "$as_me: failed program was:" >&5
12627 sed 's/^/| /' conftest.
$ac_ext >&5
12629 ac_header_compiler
=no
12631 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12632 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12633 echo "${ECHO_T}$ac_header_compiler" >&6
12635 # Is the header present?
12636 echo "$as_me:$LINENO: checking cthreads.h presence" >&5
12637 echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6
12638 cat >conftest.
$ac_ext <<_ACEOF
12641 cat confdefs.h
>>conftest.
$ac_ext
12642 cat >>conftest.
$ac_ext <<_ACEOF
12643 /* end confdefs.h. */
12644 #include <cthreads.h>
12646 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12647 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12649 grep -v '^ *+' conftest.er1
>conftest.err
12651 cat conftest.err
>&5
12652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12653 (exit $ac_status); } >/dev
/null
; then
12654 if test -s conftest.err
; then
12655 ac_cpp_err
=$ac_c_preproc_warn_flag
12656 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12663 if test -z "$ac_cpp_err"; then
12664 ac_header_preproc
=yes
12666 echo "$as_me: failed program was:" >&5
12667 sed 's/^/| /' conftest.
$ac_ext >&5
12669 ac_header_preproc
=no
12671 rm -f conftest.err conftest.
$ac_ext
12672 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12673 echo "${ECHO_T}$ac_header_preproc" >&6
12675 # So? What about this header?
12676 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12678 { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
12679 echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12680 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5
12681 echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;}
12682 ac_header_preproc
=yes
12685 { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
12686 echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
12687 { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
12688 echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
12689 { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5
12690 echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;}
12691 { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
12692 echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
12693 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
12694 echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;}
12695 { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5
12696 echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;}
12699 ## ------------------------------------------------ ##
12700 ## Report this to http://www.python.org/python-bugs ##
12701 ## ------------------------------------------------ ##
12704 sed "s/^/$as_me: WARNING: /" >&2
12707 echo "$as_me:$LINENO: checking for cthreads.h" >&5
12708 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6
12709 if test "${ac_cv_header_cthreads_h+set}" = set; then
12710 echo $ECHO_N "(cached) $ECHO_C" >&6
12712 ac_cv_header_cthreads_h
=$ac_header_preproc
12714 echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
12715 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6
12718 if test $ac_cv_header_cthreads_h = yes; then
12719 cat >>confdefs.h
<<\_ACEOF
12720 #define WITH_THREAD 1
12723 cat >>confdefs.h
<<\_ACEOF
12724 #define C_THREADS 1
12728 cat >>confdefs.h
<<\_ACEOF
12729 #define HURD_C_THREADS 1
12732 LIBS
="$LIBS -lthreads"
12733 THREADOBJ
="Python/thread.o"
12736 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
12737 echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
12738 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6
12739 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
12740 echo $ECHO_N "(cached) $ECHO_C" >&6
12742 echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
12743 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6
12745 # Is the header compilable?
12746 echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
12747 echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6
12748 cat >conftest.
$ac_ext <<_ACEOF
12751 cat confdefs.h
>>conftest.
$ac_ext
12752 cat >>conftest.
$ac_ext <<_ACEOF
12753 /* end confdefs.h. */
12754 $ac_includes_default
12755 #include <mach/cthreads.h>
12757 rm -f conftest.
$ac_objext
12758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12759 (eval $ac_compile) 2>conftest.er1
12761 grep -v '^ *+' conftest.er1
>conftest.err
12763 cat conftest.err
>&5
12764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12765 (exit $ac_status); } &&
12766 { ac_try
='test -z "$ac_c_werror_flag"
12767 || test ! -s conftest.err'
12768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12769 (eval $ac_try) 2>&5
12771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12772 (exit $ac_status); }; } &&
12773 { ac_try
='test -s conftest.$ac_objext'
12774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12775 (eval $ac_try) 2>&5
12777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12778 (exit $ac_status); }; }; then
12779 ac_header_compiler
=yes
12781 echo "$as_me: failed program was:" >&5
12782 sed 's/^/| /' conftest.
$ac_ext >&5
12784 ac_header_compiler
=no
12786 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12787 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12788 echo "${ECHO_T}$ac_header_compiler" >&6
12790 # Is the header present?
12791 echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
12792 echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6
12793 cat >conftest.
$ac_ext <<_ACEOF
12796 cat confdefs.h
>>conftest.
$ac_ext
12797 cat >>conftest.
$ac_ext <<_ACEOF
12798 /* end confdefs.h. */
12799 #include <mach/cthreads.h>
12801 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12802 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12804 grep -v '^ *+' conftest.er1
>conftest.err
12806 cat conftest.err
>&5
12807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12808 (exit $ac_status); } >/dev
/null
; then
12809 if test -s conftest.err
; then
12810 ac_cpp_err
=$ac_c_preproc_warn_flag
12811 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12818 if test -z "$ac_cpp_err"; then
12819 ac_header_preproc
=yes
12821 echo "$as_me: failed program was:" >&5
12822 sed 's/^/| /' conftest.
$ac_ext >&5
12824 ac_header_preproc
=no
12826 rm -f conftest.err conftest.
$ac_ext
12827 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12828 echo "${ECHO_T}$ac_header_preproc" >&6
12830 # So? What about this header?
12831 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12833 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
12834 echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12835 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
12836 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
12837 ac_header_preproc
=yes
12840 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
12841 echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
12842 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
12843 echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
12844 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
12845 echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
12846 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
12847 echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
12848 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
12849 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
12850 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
12851 echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
12854 ## ------------------------------------------------ ##
12855 ## Report this to http://www.python.org/python-bugs ##
12856 ## ------------------------------------------------ ##
12859 sed "s/^/$as_me: WARNING: /" >&2
12862 echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
12863 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6
12864 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
12865 echo $ECHO_N "(cached) $ECHO_C" >&6
12867 ac_cv_header_mach_cthreads_h
=$ac_header_preproc
12869 echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
12870 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6
12873 if test $ac_cv_header_mach_cthreads_h = yes; then
12874 cat >>confdefs.h
<<\_ACEOF
12875 #define WITH_THREAD 1
12878 cat >>confdefs.h
<<\_ACEOF
12879 #define C_THREADS 1
12883 cat >>confdefs.h
<<\_ACEOF
12884 #define MACH_C_THREADS 1
12887 THREADOBJ
="Python/thread.o"
12890 echo "$as_me:$LINENO: checking for --with-pth" >&5
12891 echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6
12893 # Check whether --with-pth or --without-pth was given.
12894 if test "${with_pth+set}" = set; then
12895 withval
="$with_pth"
12896 echo "$as_me:$LINENO: result: $withval" >&5
12897 echo "${ECHO_T}$withval" >&6
12898 cat >>confdefs.h
<<\_ACEOF
12899 #define WITH_THREAD 1
12903 cat >>confdefs.h
<<\_ACEOF
12908 THREADOBJ
="Python/thread.o"
12910 echo "$as_me:$LINENO: result: no" >&5
12911 echo "${ECHO_T}no" >&6
12913 # Just looking for pthread_create in libpthread is not enough:
12914 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
12915 # So we really have to include pthread.h, and then link.
12917 LIBS
="$LIBS -lpthread"
12918 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
12919 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
12920 cat >conftest.
$ac_ext <<_ACEOF
12923 cat confdefs.h
>>conftest.
$ac_ext
12924 cat >>conftest.
$ac_ext <<_ACEOF
12925 /* end confdefs.h. */
12926 #include <pthread.h>
12928 void * start_routine (void *arg) { exit (0); }
12933 pthread_create (NULL, NULL, start_routine, NULL)
12938 rm -f conftest.
$ac_objext conftest
$ac_exeext
12939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12940 (eval $ac_link) 2>conftest.er1
12942 grep -v '^ *+' conftest.er1
>conftest.err
12944 cat conftest.err
>&5
12945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12946 (exit $ac_status); } &&
12947 { ac_try
='test -z "$ac_c_werror_flag"
12948 || test ! -s conftest.err'
12949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12950 (eval $ac_try) 2>&5
12952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12953 (exit $ac_status); }; } &&
12954 { ac_try
='test -s conftest$ac_exeext'
12955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12956 (eval $ac_try) 2>&5
12958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12959 (exit $ac_status); }; }; then
12961 echo "$as_me:$LINENO: result: yes" >&5
12962 echo "${ECHO_T}yes" >&6
12963 cat >>confdefs.h
<<\_ACEOF
12964 #define WITH_THREAD 1
12968 THREADOBJ
="Python/thread.o"
12970 echo "$as_me: failed program was:" >&5
12971 sed 's/^/| /' conftest.
$ac_ext >&5
12975 echo "$as_me:$LINENO: checking for pthread_detach" >&5
12976 echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6
12977 if test "${ac_cv_func_pthread_detach+set}" = set; then
12978 echo $ECHO_N "(cached) $ECHO_C" >&6
12980 cat >conftest.
$ac_ext <<_ACEOF
12983 cat confdefs.h
>>conftest.
$ac_ext
12984 cat >>conftest.
$ac_ext <<_ACEOF
12985 /* end confdefs.h. */
12986 /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach.
12987 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12988 #define pthread_detach innocuous_pthread_detach
12990 /* System header to define __stub macros and hopefully few prototypes,
12991 which can conflict with char pthread_detach (); below.
12992 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12993 <limits.h> exists even on freestanding compilers. */
12996 # include <limits.h>
12998 # include <assert.h>
13001 #undef pthread_detach
13003 /* Override any gcc2 internal prototype to avoid an error. */
13008 /* We use char because int might match the return type of a gcc2
13009 builtin and then its argument prototype would still apply. */
13010 char pthread_detach ();
13011 /* The GNU C library defines this for functions which it implements
13012 to always fail with ENOSYS. Some functions are actually named
13013 something starting with __ and the normal name is an alias. */
13014 #if defined (__stub_pthread_detach) || defined (__stub___pthread_detach)
13017 char (*f) () = pthread_detach;
13026 return f != pthread_detach;
13031 rm -f conftest.
$ac_objext conftest
$ac_exeext
13032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13033 (eval $ac_link) 2>conftest.er1
13035 grep -v '^ *+' conftest.er1
>conftest.err
13037 cat conftest.err
>&5
13038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13039 (exit $ac_status); } &&
13040 { ac_try
='test -z "$ac_c_werror_flag"
13041 || test ! -s conftest.err'
13042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13043 (eval $ac_try) 2>&5
13045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13046 (exit $ac_status); }; } &&
13047 { ac_try
='test -s conftest$ac_exeext'
13048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13049 (eval $ac_try) 2>&5
13051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13052 (exit $ac_status); }; }; then
13053 ac_cv_func_pthread_detach
=yes
13055 echo "$as_me: failed program was:" >&5
13056 sed 's/^/| /' conftest.
$ac_ext >&5
13058 ac_cv_func_pthread_detach
=no
13060 rm -f conftest.err conftest.
$ac_objext \
13061 conftest
$ac_exeext conftest.
$ac_ext
13063 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
13064 echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6
13065 if test $ac_cv_func_pthread_detach = yes; then
13066 cat >>confdefs.h
<<\_ACEOF
13067 #define WITH_THREAD 1
13071 THREADOBJ
="Python/thread.o"
13074 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
13075 echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
13076 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6
13077 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
13078 echo $ECHO_N "(cached) $ECHO_C" >&6
13080 echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
13081 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6
13083 # Is the header compilable?
13084 echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
13085 echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6
13086 cat >conftest.
$ac_ext <<_ACEOF
13089 cat confdefs.h
>>conftest.
$ac_ext
13090 cat >>conftest.
$ac_ext <<_ACEOF
13091 /* end confdefs.h. */
13092 $ac_includes_default
13093 #include <atheos/threads.h>
13095 rm -f conftest.
$ac_objext
13096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13097 (eval $ac_compile) 2>conftest.er1
13099 grep -v '^ *+' conftest.er1
>conftest.err
13101 cat conftest.err
>&5
13102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13103 (exit $ac_status); } &&
13104 { ac_try
='test -z "$ac_c_werror_flag"
13105 || test ! -s conftest.err'
13106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13107 (eval $ac_try) 2>&5
13109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13110 (exit $ac_status); }; } &&
13111 { ac_try
='test -s conftest.$ac_objext'
13112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13113 (eval $ac_try) 2>&5
13115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13116 (exit $ac_status); }; }; then
13117 ac_header_compiler
=yes
13119 echo "$as_me: failed program was:" >&5
13120 sed 's/^/| /' conftest.
$ac_ext >&5
13122 ac_header_compiler
=no
13124 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13125 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13126 echo "${ECHO_T}$ac_header_compiler" >&6
13128 # Is the header present?
13129 echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
13130 echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6
13131 cat >conftest.
$ac_ext <<_ACEOF
13134 cat confdefs.h
>>conftest.
$ac_ext
13135 cat >>conftest.
$ac_ext <<_ACEOF
13136 /* end confdefs.h. */
13137 #include <atheos/threads.h>
13139 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13140 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13142 grep -v '^ *+' conftest.er1
>conftest.err
13144 cat conftest.err
>&5
13145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13146 (exit $ac_status); } >/dev
/null
; then
13147 if test -s conftest.err
; then
13148 ac_cpp_err
=$ac_c_preproc_warn_flag
13149 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
13156 if test -z "$ac_cpp_err"; then
13157 ac_header_preproc
=yes
13159 echo "$as_me: failed program was:" >&5
13160 sed 's/^/| /' conftest.
$ac_ext >&5
13162 ac_header_preproc
=no
13164 rm -f conftest.err conftest.
$ac_ext
13165 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13166 echo "${ECHO_T}$ac_header_preproc" >&6
13168 # So? What about this header?
13169 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13171 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
13172 echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13173 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5
13174 echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;}
13175 ac_header_preproc
=yes
13178 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
13179 echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
13180 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
13181 echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
13182 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5
13183 echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;}
13184 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5
13185 echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;}
13186 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
13187 echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;}
13188 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5
13189 echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;}
13192 ## ------------------------------------------------ ##
13193 ## Report this to http://www.python.org/python-bugs ##
13194 ## ------------------------------------------------ ##
13197 sed "s/^/$as_me: WARNING: /" >&2
13200 echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
13201 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6
13202 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
13203 echo $ECHO_N "(cached) $ECHO_C" >&6
13205 ac_cv_header_atheos_threads_h
=$ac_header_preproc
13207 echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
13208 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6
13211 if test $ac_cv_header_atheos_threads_h = yes; then
13212 cat >>confdefs.h
<<\_ACEOF
13213 #define WITH_THREAD 1
13217 cat >>confdefs.h
<<\_ACEOF
13218 #define ATHEOS_THREADS 1
13221 THREADOBJ
="Python/thread.o"
13224 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
13225 echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
13226 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6
13227 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
13228 echo $ECHO_N "(cached) $ECHO_C" >&6
13230 echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
13231 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6
13233 # Is the header compilable?
13234 echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5
13235 echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6
13236 cat >conftest.
$ac_ext <<_ACEOF
13239 cat confdefs.h
>>conftest.
$ac_ext
13240 cat >>conftest.
$ac_ext <<_ACEOF
13241 /* end confdefs.h. */
13242 $ac_includes_default
13243 #include <kernel/OS.h>
13245 rm -f conftest.
$ac_objext
13246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13247 (eval $ac_compile) 2>conftest.er1
13249 grep -v '^ *+' conftest.er1
>conftest.err
13251 cat conftest.err
>&5
13252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13253 (exit $ac_status); } &&
13254 { ac_try
='test -z "$ac_c_werror_flag"
13255 || test ! -s conftest.err'
13256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13257 (eval $ac_try) 2>&5
13259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13260 (exit $ac_status); }; } &&
13261 { ac_try
='test -s conftest.$ac_objext'
13262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13263 (eval $ac_try) 2>&5
13265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13266 (exit $ac_status); }; }; then
13267 ac_header_compiler
=yes
13269 echo "$as_me: failed program was:" >&5
13270 sed 's/^/| /' conftest.
$ac_ext >&5
13272 ac_header_compiler
=no
13274 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13275 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13276 echo "${ECHO_T}$ac_header_compiler" >&6
13278 # Is the header present?
13279 echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5
13280 echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6
13281 cat >conftest.
$ac_ext <<_ACEOF
13284 cat confdefs.h
>>conftest.
$ac_ext
13285 cat >>conftest.
$ac_ext <<_ACEOF
13286 /* end confdefs.h. */
13287 #include <kernel/OS.h>
13289 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13290 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13292 grep -v '^ *+' conftest.er1
>conftest.err
13294 cat conftest.err
>&5
13295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13296 (exit $ac_status); } >/dev
/null
; then
13297 if test -s conftest.err
; then
13298 ac_cpp_err
=$ac_c_preproc_warn_flag
13299 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
13306 if test -z "$ac_cpp_err"; then
13307 ac_header_preproc
=yes
13309 echo "$as_me: failed program was:" >&5
13310 sed 's/^/| /' conftest.
$ac_ext >&5
13312 ac_header_preproc
=no
13314 rm -f conftest.err conftest.
$ac_ext
13315 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13316 echo "${ECHO_T}$ac_header_preproc" >&6
13318 # So? What about this header?
13319 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13321 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5
13322 echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13323 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5
13324 echo "$as_me: WARNING: kernel/OS.h: proceeding with the compiler's result" >&2;}
13325 ac_header_preproc
=yes
13328 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5
13329 echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;}
13330 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5
13331 echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;}
13332 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5
13333 echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;}
13334 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5
13335 echo "$as_me: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&2;}
13336 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5
13337 echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;}
13338 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5
13339 echo "$as_me: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&2;}
13342 ## ------------------------------------------------ ##
13343 ## Report this to http://www.python.org/python-bugs ##
13344 ## ------------------------------------------------ ##
13347 sed "s/^/$as_me: WARNING: /" >&2
13350 echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
13351 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6
13352 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
13353 echo $ECHO_N "(cached) $ECHO_C" >&6
13355 ac_cv_header_kernel_OS_h
=$ac_header_preproc
13357 echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
13358 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6
13361 if test $ac_cv_header_kernel_OS_h = yes; then
13362 cat >>confdefs.h
<<\_ACEOF
13363 #define WITH_THREAD 1
13367 cat >>confdefs.h
<<\_ACEOF
13368 #define BEOS_THREADS 1
13371 THREADOBJ
="Python/thread.o"
13374 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
13375 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
13376 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
13377 echo $ECHO_N "(cached) $ECHO_C" >&6
13379 ac_check_lib_save_LIBS
=$LIBS
13380 LIBS
="-lpthreads $LIBS"
13381 cat >conftest.
$ac_ext <<_ACEOF
13384 cat confdefs.h
>>conftest.
$ac_ext
13385 cat >>conftest.
$ac_ext <<_ACEOF
13386 /* end confdefs.h. */
13388 /* Override any gcc2 internal prototype to avoid an error. */
13392 /* We use char because int might match the return type of a gcc2
13393 builtin and then its argument prototype would still apply. */
13394 char pthread_create ();
13403 rm -f conftest.
$ac_objext conftest
$ac_exeext
13404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13405 (eval $ac_link) 2>conftest.er1
13407 grep -v '^ *+' conftest.er1
>conftest.err
13409 cat conftest.err
>&5
13410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13411 (exit $ac_status); } &&
13412 { ac_try
='test -z "$ac_c_werror_flag"
13413 || test ! -s conftest.err'
13414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13415 (eval $ac_try) 2>&5
13417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13418 (exit $ac_status); }; } &&
13419 { ac_try
='test -s conftest$ac_exeext'
13420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13421 (eval $ac_try) 2>&5
13423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13424 (exit $ac_status); }; }; then
13425 ac_cv_lib_pthreads_pthread_create
=yes
13427 echo "$as_me: failed program was:" >&5
13428 sed 's/^/| /' conftest.
$ac_ext >&5
13430 ac_cv_lib_pthreads_pthread_create
=no
13432 rm -f conftest.err conftest.
$ac_objext \
13433 conftest
$ac_exeext conftest.
$ac_ext
13434 LIBS
=$ac_check_lib_save_LIBS
13436 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
13437 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
13438 if test $ac_cv_lib_pthreads_pthread_create = yes; then
13439 cat >>confdefs.h
<<\_ACEOF
13440 #define WITH_THREAD 1
13444 LIBS
="$LIBS -lpthreads"
13445 THREADOBJ
="Python/thread.o"
13448 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
13449 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
13450 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
13451 echo $ECHO_N "(cached) $ECHO_C" >&6
13453 ac_check_lib_save_LIBS
=$LIBS
13455 cat >conftest.
$ac_ext <<_ACEOF
13458 cat confdefs.h
>>conftest.
$ac_ext
13459 cat >>conftest.
$ac_ext <<_ACEOF
13460 /* end confdefs.h. */
13462 /* Override any gcc2 internal prototype to avoid an error. */
13466 /* We use char because int might match the return type of a gcc2
13467 builtin and then its argument prototype would still apply. */
13468 char pthread_create ();
13477 rm -f conftest.
$ac_objext conftest
$ac_exeext
13478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13479 (eval $ac_link) 2>conftest.er1
13481 grep -v '^ *+' conftest.er1
>conftest.err
13483 cat conftest.err
>&5
13484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13485 (exit $ac_status); } &&
13486 { ac_try
='test -z "$ac_c_werror_flag"
13487 || test ! -s conftest.err'
13488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13489 (eval $ac_try) 2>&5
13491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13492 (exit $ac_status); }; } &&
13493 { ac_try
='test -s conftest$ac_exeext'
13494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13495 (eval $ac_try) 2>&5
13497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13498 (exit $ac_status); }; }; then
13499 ac_cv_lib_c_r_pthread_create
=yes
13501 echo "$as_me: failed program was:" >&5
13502 sed 's/^/| /' conftest.
$ac_ext >&5
13504 ac_cv_lib_c_r_pthread_create
=no
13506 rm -f conftest.err conftest.
$ac_objext \
13507 conftest
$ac_exeext conftest.
$ac_ext
13508 LIBS
=$ac_check_lib_save_LIBS
13510 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
13511 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
13512 if test $ac_cv_lib_c_r_pthread_create = yes; then
13513 cat >>confdefs.h
<<\_ACEOF
13514 #define WITH_THREAD 1
13519 THREADOBJ
="Python/thread.o"
13522 echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
13523 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6
13524 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
13525 echo $ECHO_N "(cached) $ECHO_C" >&6
13527 ac_check_lib_save_LIBS
=$LIBS
13528 LIBS
="-lpthread $LIBS"
13529 cat >conftest.
$ac_ext <<_ACEOF
13532 cat confdefs.h
>>conftest.
$ac_ext
13533 cat >>conftest.
$ac_ext <<_ACEOF
13534 /* end confdefs.h. */
13536 /* Override any gcc2 internal prototype to avoid an error. */
13540 /* We use char because int might match the return type of a gcc2
13541 builtin and then its argument prototype would still apply. */
13542 char __pthread_create_system ();
13546 __pthread_create_system ();
13551 rm -f conftest.
$ac_objext conftest
$ac_exeext
13552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13553 (eval $ac_link) 2>conftest.er1
13555 grep -v '^ *+' conftest.er1
>conftest.err
13557 cat conftest.err
>&5
13558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13559 (exit $ac_status); } &&
13560 { ac_try
='test -z "$ac_c_werror_flag"
13561 || test ! -s conftest.err'
13562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13563 (eval $ac_try) 2>&5
13565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13566 (exit $ac_status); }; } &&
13567 { ac_try
='test -s conftest$ac_exeext'
13568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13569 (eval $ac_try) 2>&5
13571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13572 (exit $ac_status); }; }; then
13573 ac_cv_lib_pthread___pthread_create_system
=yes
13575 echo "$as_me: failed program was:" >&5
13576 sed 's/^/| /' conftest.
$ac_ext >&5
13578 ac_cv_lib_pthread___pthread_create_system
=no
13580 rm -f conftest.err conftest.
$ac_objext \
13581 conftest
$ac_exeext conftest.
$ac_ext
13582 LIBS
=$ac_check_lib_save_LIBS
13584 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
13585 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6
13586 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
13587 cat >>confdefs.h
<<\_ACEOF
13588 #define WITH_THREAD 1
13592 LIBS
="$LIBS -lpthread"
13593 THREADOBJ
="Python/thread.o"
13596 echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
13597 echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6
13598 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
13599 echo $ECHO_N "(cached) $ECHO_C" >&6
13601 ac_check_lib_save_LIBS
=$LIBS
13603 cat >conftest.
$ac_ext <<_ACEOF
13606 cat confdefs.h
>>conftest.
$ac_ext
13607 cat >>conftest.
$ac_ext <<_ACEOF
13608 /* end confdefs.h. */
13610 /* Override any gcc2 internal prototype to avoid an error. */
13614 /* We use char because int might match the return type of a gcc2
13615 builtin and then its argument prototype would still apply. */
13616 char pthread_create ();
13625 rm -f conftest.
$ac_objext conftest
$ac_exeext
13626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13627 (eval $ac_link) 2>conftest.er1
13629 grep -v '^ *+' conftest.er1
>conftest.err
13631 cat conftest.err
>&5
13632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13633 (exit $ac_status); } &&
13634 { ac_try
='test -z "$ac_c_werror_flag"
13635 || test ! -s conftest.err'
13636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13637 (eval $ac_try) 2>&5
13639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13640 (exit $ac_status); }; } &&
13641 { ac_try
='test -s conftest$ac_exeext'
13642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13643 (eval $ac_try) 2>&5
13645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13646 (exit $ac_status); }; }; then
13647 ac_cv_lib_cma_pthread_create
=yes
13649 echo "$as_me: failed program was:" >&5
13650 sed 's/^/| /' conftest.
$ac_ext >&5
13652 ac_cv_lib_cma_pthread_create
=no
13654 rm -f conftest.err conftest.
$ac_objext \
13655 conftest
$ac_exeext conftest.
$ac_ext
13656 LIBS
=$ac_check_lib_save_LIBS
13658 echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
13659 echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6
13660 if test $ac_cv_lib_cma_pthread_create = yes; then
13661 cat >>confdefs.h
<<\_ACEOF
13662 #define WITH_THREAD 1
13667 THREADOBJ
="Python/thread.o"
13670 USE_THREAD_MODULE
="#"
13689 rm -f conftest.err conftest.
$ac_objext \
13690 conftest
$ac_exeext conftest.
$ac_ext
13699 echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
13700 echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6
13701 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
13702 echo $ECHO_N "(cached) $ECHO_C" >&6
13704 ac_check_lib_save_LIBS
=$LIBS
13706 cat >conftest.
$ac_ext <<_ACEOF
13709 cat confdefs.h
>>conftest.
$ac_ext
13710 cat >>conftest.
$ac_ext <<_ACEOF
13711 /* end confdefs.h. */
13713 /* Override any gcc2 internal prototype to avoid an error. */
13717 /* We use char because int might match the return type of a gcc2
13718 builtin and then its argument prototype would still apply. */
13728 rm -f conftest.
$ac_objext conftest
$ac_exeext
13729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13730 (eval $ac_link) 2>conftest.er1
13732 grep -v '^ *+' conftest.er1
>conftest.err
13734 cat conftest.err
>&5
13735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13736 (exit $ac_status); } &&
13737 { ac_try
='test -z "$ac_c_werror_flag"
13738 || test ! -s conftest.err'
13739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13740 (eval $ac_try) 2>&5
13742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13743 (exit $ac_status); }; } &&
13744 { ac_try
='test -s conftest$ac_exeext'
13745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13746 (eval $ac_try) 2>&5
13748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13749 (exit $ac_status); }; }; then
13750 ac_cv_lib_mpc_usconfig
=yes
13752 echo "$as_me: failed program was:" >&5
13753 sed 's/^/| /' conftest.
$ac_ext >&5
13755 ac_cv_lib_mpc_usconfig
=no
13757 rm -f conftest.err conftest.
$ac_objext \
13758 conftest
$ac_exeext conftest.
$ac_ext
13759 LIBS
=$ac_check_lib_save_LIBS
13761 echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
13762 echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6
13763 if test $ac_cv_lib_mpc_usconfig = yes; then
13764 cat >>confdefs.h
<<\_ACEOF
13765 #define WITH_THREAD 1
13769 THREADOBJ
="Python/thread.o"
13770 USE_THREAD_MODULE
=""
13774 if test "$posix_threads" != "yes"; then
13775 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
13776 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
13777 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
13778 echo $ECHO_N "(cached) $ECHO_C" >&6
13780 ac_check_lib_save_LIBS
=$LIBS
13781 LIBS
="-lthread $LIBS"
13782 cat >conftest.
$ac_ext <<_ACEOF
13785 cat confdefs.h
>>conftest.
$ac_ext
13786 cat >>conftest.
$ac_ext <<_ACEOF
13787 /* end confdefs.h. */
13789 /* Override any gcc2 internal prototype to avoid an error. */
13793 /* We use char because int might match the return type of a gcc2
13794 builtin and then its argument prototype would still apply. */
13795 char thr_create ();
13804 rm -f conftest.
$ac_objext conftest
$ac_exeext
13805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13806 (eval $ac_link) 2>conftest.er1
13808 grep -v '^ *+' conftest.er1
>conftest.err
13810 cat conftest.err
>&5
13811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13812 (exit $ac_status); } &&
13813 { ac_try
='test -z "$ac_c_werror_flag"
13814 || test ! -s conftest.err'
13815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13816 (eval $ac_try) 2>&5
13818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13819 (exit $ac_status); }; } &&
13820 { ac_try
='test -s conftest$ac_exeext'
13821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13822 (eval $ac_try) 2>&5
13824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13825 (exit $ac_status); }; }; then
13826 ac_cv_lib_thread_thr_create
=yes
13828 echo "$as_me: failed program was:" >&5
13829 sed 's/^/| /' conftest.
$ac_ext >&5
13831 ac_cv_lib_thread_thr_create
=no
13833 rm -f conftest.err conftest.
$ac_objext \
13834 conftest
$ac_exeext conftest.
$ac_ext
13835 LIBS
=$ac_check_lib_save_LIBS
13837 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
13838 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
13839 if test $ac_cv_lib_thread_thr_create = yes; then
13840 cat >>confdefs.h
<<\_ACEOF
13841 #define WITH_THREAD 1
13844 LIBS
="$LIBS -lthread"
13845 THREADOBJ
="Python/thread.o"
13846 USE_THREAD_MODULE
=""
13851 if test "$USE_THREAD_MODULE" != "#"
13853 # If the above checks didn't disable threads, (at least) OSF1
13854 # needs this '-threads' argument during linking.
13855 case $ac_sys_system in
13856 OSF1
) LDLAST
=-threads;;
13861 if test "$posix_threads" = "yes"; then
13862 if test "$unistd_defines_pthreads" = "no"; then
13864 cat >>confdefs.h
<<\_ACEOF
13865 #define _POSIX_THREADS 1
13870 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
13871 case $ac_sys_system/$ac_sys_release in
13873 cat >>confdefs.h
<<\_ACEOF
13874 #define HAVE_PTHREAD_DESTRUCTOR 1
13879 cat >>confdefs.h
<<\_ACEOF
13880 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
13886 echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
13887 echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6
13888 if test "${ac_cv_pthread_system_supported+set}" = set; then
13889 echo $ECHO_N "(cached) $ECHO_C" >&6
13891 if test "$cross_compiling" = yes; then
13892 ac_cv_pthread_system_supported
=no
13894 cat >conftest.
$ac_ext <<_ACEOF
13897 cat confdefs.h
>>conftest.
$ac_ext
13898 cat >>conftest.
$ac_ext <<_ACEOF
13899 /* end confdefs.h. */
13900 #include <pthread.h>
13901 void *foo(void *parm) {
13905 pthread_attr_t attr;
13907 if (pthread_attr_init(&attr)) exit(-1);
13908 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
13909 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
13913 rm -f conftest
$ac_exeext
13914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13915 (eval $ac_link) 2>&5
13917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13918 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13920 (eval $ac_try) 2>&5
13922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13923 (exit $ac_status); }; }; then
13924 ac_cv_pthread_system_supported
=yes
13926 echo "$as_me: program exited with status $ac_status" >&5
13927 echo "$as_me: failed program was:" >&5
13928 sed 's/^/| /' conftest.
$ac_ext >&5
13930 ( exit $ac_status )
13931 ac_cv_pthread_system_supported
=no
13933 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13938 echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
13939 echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6
13940 if test "$ac_cv_pthread_system_supported" = "yes"; then
13942 cat >>confdefs.h
<<\_ACEOF
13943 #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
13948 for ac_func
in pthread_sigmask
13950 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13951 echo "$as_me:$LINENO: checking for $ac_func" >&5
13952 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13953 if eval "test \"\${$as_ac_var+set}\" = set"; then
13954 echo $ECHO_N "(cached) $ECHO_C" >&6
13956 cat >conftest.
$ac_ext <<_ACEOF
13959 cat confdefs.h
>>conftest.
$ac_ext
13960 cat >>conftest.
$ac_ext <<_ACEOF
13961 /* end confdefs.h. */
13962 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13963 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13964 #define $ac_func innocuous_$ac_func
13966 /* System header to define __stub macros and hopefully few prototypes,
13967 which can conflict with char $ac_func (); below.
13968 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13969 <limits.h> exists even on freestanding compilers. */
13972 # include <limits.h>
13974 # include <assert.h>
13979 /* Override any gcc2 internal prototype to avoid an error. */
13984 /* We use char because int might match the return type of a gcc2
13985 builtin and then its argument prototype would still apply. */
13987 /* The GNU C library defines this for functions which it implements
13988 to always fail with ENOSYS. Some functions are actually named
13989 something starting with __ and the normal name is an alias. */
13990 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13993 char (*f) () = $ac_func;
14002 return f != $ac_func;
14007 rm -f conftest.
$ac_objext conftest
$ac_exeext
14008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14009 (eval $ac_link) 2>conftest.er1
14011 grep -v '^ *+' conftest.er1
>conftest.err
14013 cat conftest.err
>&5
14014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14015 (exit $ac_status); } &&
14016 { ac_try
='test -z "$ac_c_werror_flag"
14017 || test ! -s conftest.err'
14018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14019 (eval $ac_try) 2>&5
14021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14022 (exit $ac_status); }; } &&
14023 { ac_try
='test -s conftest$ac_exeext'
14024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14025 (eval $ac_try) 2>&5
14027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14028 (exit $ac_status); }; }; then
14029 eval "$as_ac_var=yes"
14031 echo "$as_me: failed program was:" >&5
14032 sed 's/^/| /' conftest.
$ac_ext >&5
14034 eval "$as_ac_var=no"
14036 rm -f conftest.err conftest.
$ac_objext \
14037 conftest
$ac_exeext conftest.
$ac_ext
14039 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14040 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14041 if test `eval echo '${'$as_ac_var'}'` = yes; then
14042 cat >>confdefs.h
<<_ACEOF
14043 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14045 case $ac_sys_system in
14048 cat >>confdefs.h
<<\_ACEOF
14049 #define HAVE_BROKEN_PTHREAD_SIGMASK 1
14060 # Check for enable-ipv6
14063 echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
14064 echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6
14065 # Check whether --enable-ipv6 or --disable-ipv6 was given.
14066 if test "${enable_ipv6+set}" = set; then
14067 enableval
="$enable_ipv6"
14068 case "$enableval" in
14070 echo "$as_me:$LINENO: result: no" >&5
14071 echo "${ECHO_T}no" >&6
14074 *) echo "$as_me:$LINENO: result: yes" >&5
14075 echo "${ECHO_T}yes" >&6
14076 cat >>confdefs.h
<<\_ACEOF
14077 #define ENABLE_IPV6 1
14085 if test "$cross_compiling" = yes; then
14086 echo "$as_me:$LINENO: result: no" >&5
14087 echo "${ECHO_T}no" >&6
14091 cat >conftest.
$ac_ext <<_ACEOF
14094 cat confdefs.h
>>conftest.
$ac_ext
14095 cat >>conftest.
$ac_ext <<_ACEOF
14096 /* end confdefs.h. */
14097 /* AF_INET6 available check */
14098 #include <sys/types.h>
14099 #include <sys/socket.h>
14102 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
14109 rm -f conftest
$ac_exeext
14110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14111 (eval $ac_link) 2>&5
14113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14114 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
14115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14116 (eval $ac_try) 2>&5
14118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14119 (exit $ac_status); }; }; then
14120 echo "$as_me:$LINENO: result: yes" >&5
14121 echo "${ECHO_T}yes" >&6
14124 echo "$as_me: program exited with status $ac_status" >&5
14125 echo "$as_me: failed program was:" >&5
14126 sed 's/^/| /' conftest.
$ac_ext >&5
14128 ( exit $ac_status )
14129 echo "$as_me:$LINENO: result: no" >&5
14130 echo "${ECHO_T}no" >&6
14133 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
14136 if test "$ipv6" = "yes"; then
14137 echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
14138 echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6
14139 cat >conftest.
$ac_ext <<_ACEOF
14142 cat confdefs.h
>>conftest.
$ac_ext
14143 cat >>conftest.
$ac_ext <<_ACEOF
14144 /* end confdefs.h. */
14145 #include <sys/types.h>
14146 #include <netinet/in.h>
14150 struct sockaddr_in6 x;
14156 rm -f conftest.
$ac_objext
14157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14158 (eval $ac_compile) 2>conftest.er1
14160 grep -v '^ *+' conftest.er1
>conftest.err
14162 cat conftest.err
>&5
14163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14164 (exit $ac_status); } &&
14165 { ac_try
='test -z "$ac_c_werror_flag"
14166 || test ! -s conftest.err'
14167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14168 (eval $ac_try) 2>&5
14170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14171 (exit $ac_status); }; } &&
14172 { ac_try
='test -s conftest.$ac_objext'
14173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14174 (eval $ac_try) 2>&5
14176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14177 (exit $ac_status); }; }; then
14178 echo "$as_me:$LINENO: result: yes" >&5
14179 echo "${ECHO_T}yes" >&6
14182 echo "$as_me: failed program was:" >&5
14183 sed 's/^/| /' conftest.
$ac_ext >&5
14185 echo "$as_me:$LINENO: result: no" >&5
14186 echo "${ECHO_T}no" >&6
14189 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14192 if test "$ipv6" = "yes"; then
14193 cat >>confdefs.h
<<\_ACEOF
14194 #define ENABLE_IPV6 1
14205 if test "$ipv6" = "yes"; then
14206 echo "$as_me:$LINENO: checking ipv6 stack type" >&5
14207 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6
14208 for i
in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta
;
14212 cat >conftest.
$ac_ext <<_ACEOF
14215 cat confdefs.h
>>conftest.
$ac_ext
14216 cat >>conftest.
$ac_ext <<_ACEOF
14217 /* end confdefs.h. */
14219 #include <netinet/in.h>
14220 #ifdef IPV6_INRIA_VERSION
14224 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14225 $EGREP "yes" >/dev
/null
2>&1; then
14232 cat >conftest.
$ac_ext <<_ACEOF
14235 cat confdefs.h
>>conftest.
$ac_ext
14236 cat >>conftest.
$ac_ext <<_ACEOF
14237 /* end confdefs.h. */
14239 #include <netinet/in.h>
14244 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14245 $EGREP "yes" >/dev
/null
2>&1; then
14248 ipv6libdir
=/usr
/local
/v
6/lib
14255 cat >conftest.
$ac_ext <<_ACEOF
14258 cat confdefs.h
>>conftest.
$ac_ext
14259 cat >>conftest.
$ac_ext <<_ACEOF
14260 /* end confdefs.h. */
14262 #include <features.h>
14263 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
14267 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14268 $EGREP "yes" >/dev
/null
2>&1; then
14276 if test -d /usr
/inet6
; then
14279 ipv6libdir
=/usr
/inet
6/lib
14280 BASECFLAGS
="-I/usr/inet6/include $BASECFLAGS"
14284 if test -f /etc
/netconfig
; then
14285 if /usr
/xpg
4/bin
/grep -q tcp6
/etc
/netconfig
; then
14292 cat >conftest.
$ac_ext <<_ACEOF
14295 cat confdefs.h
>>conftest.
$ac_ext
14296 cat >>conftest.
$ac_ext <<_ACEOF
14297 /* end confdefs.h. */
14299 #include <sys/param.h>
14300 #ifdef _TOSHIBA_INET6
14304 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14305 $EGREP "yes" >/dev
/null
2>&1; then
14308 ipv6libdir
=/usr
/local
/v
6/lib
14314 cat >conftest.
$ac_ext <<_ACEOF
14317 cat confdefs.h
>>conftest.
$ac_ext
14318 cat >>conftest.
$ac_ext <<_ACEOF
14319 /* end confdefs.h. */
14321 #include </usr/local/v6/include/sys/v6config.h>
14326 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14327 $EGREP "yes" >/dev
/null
2>&1; then
14330 ipv6libdir
=/usr
/local
/v
6/lib
;
14331 BASECFLAGS
="-I/usr/local/v6/include $BASECFLAGS"
14337 cat >conftest.
$ac_ext <<_ACEOF
14340 cat confdefs.h
>>conftest.
$ac_ext
14341 cat >>conftest.
$ac_ext <<_ACEOF
14342 /* end confdefs.h. */
14344 #include <sys/param.h>
14345 #ifdef _ZETA_MINAMI_INET6
14349 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14350 $EGREP "yes" >/dev
/null
2>&1; then
14353 ipv6libdir
=/usr
/local
/v
6/lib
14359 if test "$ipv6type" != "unknown"; then
14363 echo "$as_me:$LINENO: result: $ipv6type" >&5
14364 echo "${ECHO_T}$ipv6type" >&6
14367 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
14368 if test -d $ipv6libdir -a -f $ipv6libdir/lib
$ipv6lib.a
; then
14369 LIBS
="-L$ipv6libdir -l$ipv6lib $LIBS"
14370 echo "using lib$ipv6lib"
14372 if test $ipv6trylibc = "yes"; then
14375 echo 'Fatal: no $ipv6lib library found. cannot continue.'
14376 echo "You need to fetch lib$ipv6lib.a from appropriate"
14377 echo 'ipv6 kit and compile beforehand.'
14383 # Check for --with-doc-strings
14384 echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
14385 echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6
14387 # Check whether --with-doc-strings or --without-doc-strings was given.
14388 if test "${with_doc_strings+set}" = set; then
14389 withval
="$with_doc_strings"
14393 if test -z "$with_doc_strings"
14394 then with_doc_strings
="yes"
14396 if test "$with_doc_strings" != "no"
14399 cat >>confdefs.h
<<\_ACEOF
14400 #define WITH_DOC_STRINGS 1
14404 echo "$as_me:$LINENO: result: $with_doc_strings" >&5
14405 echo "${ECHO_T}$with_doc_strings" >&6
14407 # Check for Python-specific malloc support
14408 echo "$as_me:$LINENO: checking for --with-tsc" >&5
14409 echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6
14411 # Check whether --with-tsc or --without-tsc was given.
14412 if test "${with_tsc+set}" = set; then
14413 withval
="$with_tsc"
14415 if test "$withval" != no
14418 cat >>confdefs.h
<<\_ACEOF
14422 echo "$as_me:$LINENO: result: yes" >&5
14423 echo "${ECHO_T}yes" >&6
14424 else echo "$as_me:$LINENO: result: no" >&5
14425 echo "${ECHO_T}no" >&6
14428 echo "$as_me:$LINENO: result: no" >&5
14429 echo "${ECHO_T}no" >&6
14432 # Check for Python-specific malloc support
14433 echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
14434 echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6
14436 # Check whether --with-pymalloc or --without-pymalloc was given.
14437 if test "${with_pymalloc+set}" = set; then
14438 withval
="$with_pymalloc"
14442 if test -z "$with_pymalloc"
14443 then with_pymalloc
="yes"
14445 if test "$with_pymalloc" != "no"
14448 cat >>confdefs.h
<<\_ACEOF
14449 #define WITH_PYMALLOC 1
14453 echo "$as_me:$LINENO: result: $with_pymalloc" >&5
14454 echo "${ECHO_T}$with_pymalloc" >&6
14456 # Check for --with-wctype-functions
14457 echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
14458 echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6
14460 # Check whether --with-wctype-functions or --without-wctype-functions was given.
14461 if test "${with_wctype_functions+set}" = set; then
14462 withval
="$with_wctype_functions"
14464 if test "$withval" != no
14467 cat >>confdefs.h
<<\_ACEOF
14468 #define WANT_WCTYPE_FUNCTIONS 1
14471 echo "$as_me:$LINENO: result: yes" >&5
14472 echo "${ECHO_T}yes" >&6
14473 else echo "$as_me:$LINENO: result: no" >&5
14474 echo "${ECHO_T}no" >&6
14477 echo "$as_me:$LINENO: result: no" >&5
14478 echo "${ECHO_T}no" >&6
14481 # -I${DLINCLDIR} is added to the compile rule for importdl.o
14485 # the dlopen() function means we might want to use dynload_shlib.o. some
14486 # platforms, such as AIX, have dlopen(), but don't want to use it.
14488 for ac_func
in dlopen
14490 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14491 echo "$as_me:$LINENO: checking for $ac_func" >&5
14492 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14493 if eval "test \"\${$as_ac_var+set}\" = set"; then
14494 echo $ECHO_N "(cached) $ECHO_C" >&6
14496 cat >conftest.
$ac_ext <<_ACEOF
14499 cat confdefs.h
>>conftest.
$ac_ext
14500 cat >>conftest.
$ac_ext <<_ACEOF
14501 /* end confdefs.h. */
14502 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14503 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14504 #define $ac_func innocuous_$ac_func
14506 /* System header to define __stub macros and hopefully few prototypes,
14507 which can conflict with char $ac_func (); below.
14508 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14509 <limits.h> exists even on freestanding compilers. */
14512 # include <limits.h>
14514 # include <assert.h>
14519 /* Override any gcc2 internal prototype to avoid an error. */
14524 /* We use char because int might match the return type of a gcc2
14525 builtin and then its argument prototype would still apply. */
14527 /* The GNU C library defines this for functions which it implements
14528 to always fail with ENOSYS. Some functions are actually named
14529 something starting with __ and the normal name is an alias. */
14530 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14533 char (*f) () = $ac_func;
14542 return f != $ac_func;
14547 rm -f conftest.
$ac_objext conftest
$ac_exeext
14548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14549 (eval $ac_link) 2>conftest.er1
14551 grep -v '^ *+' conftest.er1
>conftest.err
14553 cat conftest.err
>&5
14554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14555 (exit $ac_status); } &&
14556 { ac_try
='test -z "$ac_c_werror_flag"
14557 || test ! -s conftest.err'
14558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14559 (eval $ac_try) 2>&5
14561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14562 (exit $ac_status); }; } &&
14563 { ac_try
='test -s conftest$ac_exeext'
14564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14565 (eval $ac_try) 2>&5
14567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14568 (exit $ac_status); }; }; then
14569 eval "$as_ac_var=yes"
14571 echo "$as_me: failed program was:" >&5
14572 sed 's/^/| /' conftest.
$ac_ext >&5
14574 eval "$as_ac_var=no"
14576 rm -f conftest.err conftest.
$ac_objext \
14577 conftest
$ac_exeext conftest.
$ac_ext
14579 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14580 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14581 if test `eval echo '${'$as_ac_var'}'` = yes; then
14582 cat >>confdefs.h
<<_ACEOF
14583 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14590 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
14591 # loading of modules.
14593 echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
14594 echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6
14595 if test -z "$DYNLOADFILE"
14597 case $ac_sys_system/$ac_sys_release in
14598 AIX
*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
14599 if test "$ac_cv_func_dlopen" = yes
14600 then DYNLOADFILE
="dynload_shlib.o"
14601 else DYNLOADFILE
="dynload_aix.o"
14604 BeOS
*) DYNLOADFILE
="dynload_beos.o";;
14605 hp
*|HP
*) DYNLOADFILE
="dynload_hpux.o";;
14606 # Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
14607 Darwin
/[0156]\..
*) DYNLOADFILE
="dynload_next.o";;
14608 atheos
*) DYNLOADFILE
="dynload_atheos.o";;
14610 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
14611 # out any dynamic loading
14612 if test "$ac_cv_func_dlopen" = yes
14613 then DYNLOADFILE
="dynload_shlib.o"
14614 else DYNLOADFILE
="dynload_stub.o"
14619 echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
14620 echo "${ECHO_T}$DYNLOADFILE" >&6
14621 if test "$DYNLOADFILE" != "dynload_stub.o"
14624 cat >>confdefs.h
<<\_ACEOF
14625 #define HAVE_DYNAMIC_LOADING 1
14630 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
14633 echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
14634 echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6
14635 if test -z "$MACHDEP_OBJS"
14637 MACHDEP_OBJS
=$extra_machdep_objs
14639 MACHDEP_OBJS
="$MACHDEP_OBJS $extra_machdep_objs"
14641 echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
14642 echo "${ECHO_T}MACHDEP_OBJS" >&6
14644 # checks for library functions
14723 for ac_func
in alarm bind_textdomain_codeset chflags chown
clock confstr \
14724 ctermid execv fork fpathconf ftime ftruncate \
14725 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
14726 getpriority getpwent getspnam getspent getsid getwd \
14727 kill killpg lchflags lchown lstat
mkfifo mknod mktime \
14728 mremap nice pathconf pause plock poll pthread_init \
14729 putenv readlink realpath \
14730 select setegid seteuid setgid \
14731 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
14732 sigaction siginterrupt sigrelse strftime \
14733 sysconf tcgetpgrp tcsetpgrp tempnam timegm
times tmpfile tmpnam tmpnam_r \
14734 truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty
14736 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14737 echo "$as_me:$LINENO: checking for $ac_func" >&5
14738 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14739 if eval "test \"\${$as_ac_var+set}\" = set"; then
14740 echo $ECHO_N "(cached) $ECHO_C" >&6
14742 cat >conftest.
$ac_ext <<_ACEOF
14745 cat confdefs.h
>>conftest.
$ac_ext
14746 cat >>conftest.
$ac_ext <<_ACEOF
14747 /* end confdefs.h. */
14748 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14749 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14750 #define $ac_func innocuous_$ac_func
14752 /* System header to define __stub macros and hopefully few prototypes,
14753 which can conflict with char $ac_func (); below.
14754 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14755 <limits.h> exists even on freestanding compilers. */
14758 # include <limits.h>
14760 # include <assert.h>
14765 /* Override any gcc2 internal prototype to avoid an error. */
14770 /* We use char because int might match the return type of a gcc2
14771 builtin and then its argument prototype would still apply. */
14773 /* The GNU C library defines this for functions which it implements
14774 to always fail with ENOSYS. Some functions are actually named
14775 something starting with __ and the normal name is an alias. */
14776 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14779 char (*f) () = $ac_func;
14788 return f != $ac_func;
14793 rm -f conftest.
$ac_objext conftest
$ac_exeext
14794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14795 (eval $ac_link) 2>conftest.er1
14797 grep -v '^ *+' conftest.er1
>conftest.err
14799 cat conftest.err
>&5
14800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14801 (exit $ac_status); } &&
14802 { ac_try
='test -z "$ac_c_werror_flag"
14803 || test ! -s conftest.err'
14804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14805 (eval $ac_try) 2>&5
14807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14808 (exit $ac_status); }; } &&
14809 { ac_try
='test -s conftest$ac_exeext'
14810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14811 (eval $ac_try) 2>&5
14813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14814 (exit $ac_status); }; }; then
14815 eval "$as_ac_var=yes"
14817 echo "$as_me: failed program was:" >&5
14818 sed 's/^/| /' conftest.
$ac_ext >&5
14820 eval "$as_ac_var=no"
14822 rm -f conftest.err conftest.
$ac_objext \
14823 conftest
$ac_exeext conftest.
$ac_ext
14825 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14826 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14827 if test `eval echo '${'$as_ac_var'}'` = yes; then
14828 cat >>confdefs.h
<<_ACEOF
14829 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14836 # For some functions, having a definition is not sufficient, since
14837 # we want to take their address.
14838 echo "$as_me:$LINENO: checking for chroot" >&5
14839 echo $ECHO_N "checking for chroot... $ECHO_C" >&6
14840 cat >conftest.
$ac_ext <<_ACEOF
14843 cat confdefs.h
>>conftest.
$ac_ext
14844 cat >>conftest.
$ac_ext <<_ACEOF
14845 /* end confdefs.h. */
14846 #include <unistd.h>
14855 rm -f conftest.
$ac_objext
14856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14857 (eval $ac_compile) 2>conftest.er1
14859 grep -v '^ *+' conftest.er1
>conftest.err
14861 cat conftest.err
>&5
14862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14863 (exit $ac_status); } &&
14864 { ac_try
='test -z "$ac_c_werror_flag"
14865 || test ! -s conftest.err'
14866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14867 (eval $ac_try) 2>&5
14869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14870 (exit $ac_status); }; } &&
14871 { ac_try
='test -s conftest.$ac_objext'
14872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14873 (eval $ac_try) 2>&5
14875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14876 (exit $ac_status); }; }; then
14878 cat >>confdefs.h
<<\_ACEOF
14879 #define HAVE_CHROOT 1
14882 echo "$as_me:$LINENO: result: yes" >&5
14883 echo "${ECHO_T}yes" >&6
14885 echo "$as_me: failed program was:" >&5
14886 sed 's/^/| /' conftest.
$ac_ext >&5
14888 echo "$as_me:$LINENO: result: no" >&5
14889 echo "${ECHO_T}no" >&6
14892 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14893 echo "$as_me:$LINENO: checking for link" >&5
14894 echo $ECHO_N "checking for link... $ECHO_C" >&6
14895 cat >conftest.
$ac_ext <<_ACEOF
14898 cat confdefs.h
>>conftest.
$ac_ext
14899 cat >>conftest.
$ac_ext <<_ACEOF
14900 /* end confdefs.h. */
14901 #include <unistd.h>
14910 rm -f conftest.
$ac_objext
14911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14912 (eval $ac_compile) 2>conftest.er1
14914 grep -v '^ *+' conftest.er1
>conftest.err
14916 cat conftest.err
>&5
14917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14918 (exit $ac_status); } &&
14919 { ac_try
='test -z "$ac_c_werror_flag"
14920 || test ! -s conftest.err'
14921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14922 (eval $ac_try) 2>&5
14924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14925 (exit $ac_status); }; } &&
14926 { ac_try
='test -s conftest.$ac_objext'
14927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14928 (eval $ac_try) 2>&5
14930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14931 (exit $ac_status); }; }; then
14933 cat >>confdefs.h
<<\_ACEOF
14934 #define HAVE_LINK 1
14937 echo "$as_me:$LINENO: result: yes" >&5
14938 echo "${ECHO_T}yes" >&6
14940 echo "$as_me: failed program was:" >&5
14941 sed 's/^/| /' conftest.
$ac_ext >&5
14943 echo "$as_me:$LINENO: result: no" >&5
14944 echo "${ECHO_T}no" >&6
14947 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14948 echo "$as_me:$LINENO: checking for symlink" >&5
14949 echo $ECHO_N "checking for symlink... $ECHO_C" >&6
14950 cat >conftest.
$ac_ext <<_ACEOF
14953 cat confdefs.h
>>conftest.
$ac_ext
14954 cat >>conftest.
$ac_ext <<_ACEOF
14955 /* end confdefs.h. */
14956 #include <unistd.h>
14965 rm -f conftest.
$ac_objext
14966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14967 (eval $ac_compile) 2>conftest.er1
14969 grep -v '^ *+' conftest.er1
>conftest.err
14971 cat conftest.err
>&5
14972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14973 (exit $ac_status); } &&
14974 { ac_try
='test -z "$ac_c_werror_flag"
14975 || test ! -s conftest.err'
14976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14977 (eval $ac_try) 2>&5
14979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14980 (exit $ac_status); }; } &&
14981 { ac_try
='test -s conftest.$ac_objext'
14982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14983 (eval $ac_try) 2>&5
14985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14986 (exit $ac_status); }; }; then
14988 cat >>confdefs.h
<<\_ACEOF
14989 #define HAVE_SYMLINK 1
14992 echo "$as_me:$LINENO: result: yes" >&5
14993 echo "${ECHO_T}yes" >&6
14995 echo "$as_me: failed program was:" >&5
14996 sed 's/^/| /' conftest.
$ac_ext >&5
14998 echo "$as_me:$LINENO: result: no" >&5
14999 echo "${ECHO_T}no" >&6
15002 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15003 echo "$as_me:$LINENO: checking for fchdir" >&5
15004 echo $ECHO_N "checking for fchdir... $ECHO_C" >&6
15005 cat >conftest.
$ac_ext <<_ACEOF
15008 cat confdefs.h
>>conftest.
$ac_ext
15009 cat >>conftest.
$ac_ext <<_ACEOF
15010 /* end confdefs.h. */
15011 #include <unistd.h>
15020 rm -f conftest.
$ac_objext
15021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15022 (eval $ac_compile) 2>conftest.er1
15024 grep -v '^ *+' conftest.er1
>conftest.err
15026 cat conftest.err
>&5
15027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15028 (exit $ac_status); } &&
15029 { ac_try
='test -z "$ac_c_werror_flag"
15030 || test ! -s conftest.err'
15031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15032 (eval $ac_try) 2>&5
15034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15035 (exit $ac_status); }; } &&
15036 { ac_try
='test -s conftest.$ac_objext'
15037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15038 (eval $ac_try) 2>&5
15040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15041 (exit $ac_status); }; }; then
15043 cat >>confdefs.h
<<\_ACEOF
15044 #define HAVE_FCHDIR 1
15047 echo "$as_me:$LINENO: result: yes" >&5
15048 echo "${ECHO_T}yes" >&6
15050 echo "$as_me: failed program was:" >&5
15051 sed 's/^/| /' conftest.
$ac_ext >&5
15053 echo "$as_me:$LINENO: result: no" >&5
15054 echo "${ECHO_T}no" >&6
15057 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15058 echo "$as_me:$LINENO: checking for fsync" >&5
15059 echo $ECHO_N "checking for fsync... $ECHO_C" >&6
15060 cat >conftest.
$ac_ext <<_ACEOF
15063 cat confdefs.h
>>conftest.
$ac_ext
15064 cat >>conftest.
$ac_ext <<_ACEOF
15065 /* end confdefs.h. */
15066 #include <unistd.h>
15075 rm -f conftest.
$ac_objext
15076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15077 (eval $ac_compile) 2>conftest.er1
15079 grep -v '^ *+' conftest.er1
>conftest.err
15081 cat conftest.err
>&5
15082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15083 (exit $ac_status); } &&
15084 { ac_try
='test -z "$ac_c_werror_flag"
15085 || test ! -s conftest.err'
15086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15087 (eval $ac_try) 2>&5
15089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15090 (exit $ac_status); }; } &&
15091 { ac_try
='test -s conftest.$ac_objext'
15092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15093 (eval $ac_try) 2>&5
15095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15096 (exit $ac_status); }; }; then
15098 cat >>confdefs.h
<<\_ACEOF
15099 #define HAVE_FSYNC 1
15102 echo "$as_me:$LINENO: result: yes" >&5
15103 echo "${ECHO_T}yes" >&6
15105 echo "$as_me: failed program was:" >&5
15106 sed 's/^/| /' conftest.
$ac_ext >&5
15108 echo "$as_me:$LINENO: result: no" >&5
15109 echo "${ECHO_T}no" >&6
15112 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15113 echo "$as_me:$LINENO: checking for fdatasync" >&5
15114 echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6
15115 cat >conftest.
$ac_ext <<_ACEOF
15118 cat confdefs.h
>>conftest.
$ac_ext
15119 cat >>conftest.
$ac_ext <<_ACEOF
15120 /* end confdefs.h. */
15121 #include <unistd.h>
15130 rm -f conftest.
$ac_objext
15131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15132 (eval $ac_compile) 2>conftest.er1
15134 grep -v '^ *+' conftest.er1
>conftest.err
15136 cat conftest.err
>&5
15137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15138 (exit $ac_status); } &&
15139 { ac_try
='test -z "$ac_c_werror_flag"
15140 || test ! -s conftest.err'
15141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15142 (eval $ac_try) 2>&5
15144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15145 (exit $ac_status); }; } &&
15146 { ac_try
='test -s conftest.$ac_objext'
15147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15148 (eval $ac_try) 2>&5
15150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15151 (exit $ac_status); }; }; then
15153 cat >>confdefs.h
<<\_ACEOF
15154 #define HAVE_FDATASYNC 1
15157 echo "$as_me:$LINENO: result: yes" >&5
15158 echo "${ECHO_T}yes" >&6
15160 echo "$as_me: failed program was:" >&5
15161 sed 's/^/| /' conftest.
$ac_ext >&5
15163 echo "$as_me:$LINENO: result: no" >&5
15164 echo "${ECHO_T}no" >&6
15167 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15169 # On some systems (eg. FreeBSD 5), we would find a definition of the
15170 # functions ctermid_r, setgroups in the library, but no prototype
15171 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
15172 # address to avoid compiler warnings and potential miscompilations
15173 # because of the missing prototypes.
15175 echo "$as_me:$LINENO: checking for ctermid_r" >&5
15176 echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6
15177 cat >conftest.
$ac_ext <<_ACEOF
15180 cat confdefs.h
>>conftest.
$ac_ext
15181 cat >>conftest.
$ac_ext <<_ACEOF
15182 /* end confdefs.h. */
15184 #include "confdefs.h"
15190 void* p = ctermid_r
15195 rm -f conftest.
$ac_objext
15196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15197 (eval $ac_compile) 2>conftest.er1
15199 grep -v '^ *+' conftest.er1
>conftest.err
15201 cat conftest.err
>&5
15202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15203 (exit $ac_status); } &&
15204 { ac_try
='test -z "$ac_c_werror_flag"
15205 || test ! -s conftest.err'
15206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15207 (eval $ac_try) 2>&5
15209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15210 (exit $ac_status); }; } &&
15211 { ac_try
='test -s conftest.$ac_objext'
15212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15213 (eval $ac_try) 2>&5
15215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15216 (exit $ac_status); }; }; then
15218 cat >>confdefs.h
<<\_ACEOF
15219 #define HAVE_CTERMID_R 1
15222 echo "$as_me:$LINENO: result: yes" >&5
15223 echo "${ECHO_T}yes" >&6
15225 echo "$as_me: failed program was:" >&5
15226 sed 's/^/| /' conftest.
$ac_ext >&5
15228 echo "$as_me:$LINENO: result: no" >&5
15229 echo "${ECHO_T}no" >&6
15232 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15234 echo "$as_me:$LINENO: checking for flock" >&5
15235 echo $ECHO_N "checking for flock... $ECHO_C" >&6
15236 cat >conftest.
$ac_ext <<_ACEOF
15239 cat confdefs.h
>>conftest.
$ac_ext
15240 cat >>conftest.
$ac_ext <<_ACEOF
15241 /* end confdefs.h. */
15243 #include "confdefs.h"
15244 #include <sys/file.h>
15254 rm -f conftest.
$ac_objext
15255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15256 (eval $ac_compile) 2>conftest.er1
15258 grep -v '^ *+' conftest.er1
>conftest.err
15260 cat conftest.err
>&5
15261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15262 (exit $ac_status); } &&
15263 { ac_try
='test -z "$ac_c_werror_flag"
15264 || test ! -s conftest.err'
15265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15266 (eval $ac_try) 2>&5
15268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15269 (exit $ac_status); }; } &&
15270 { ac_try
='test -s conftest.$ac_objext'
15271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15272 (eval $ac_try) 2>&5
15274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15275 (exit $ac_status); }; }; then
15277 cat >>confdefs.h
<<\_ACEOF
15278 #define HAVE_FLOCK 1
15281 echo "$as_me:$LINENO: result: yes" >&5
15282 echo "${ECHO_T}yes" >&6
15284 echo "$as_me: failed program was:" >&5
15285 sed 's/^/| /' conftest.
$ac_ext >&5
15287 echo "$as_me:$LINENO: result: no" >&5
15288 echo "${ECHO_T}no" >&6
15291 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15293 echo "$as_me:$LINENO: checking for getpagesize" >&5
15294 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6
15295 cat >conftest.
$ac_ext <<_ACEOF
15298 cat confdefs.h
>>conftest.
$ac_ext
15299 cat >>conftest.
$ac_ext <<_ACEOF
15300 /* end confdefs.h. */
15302 #include "confdefs.h"
15303 #include <unistd.h>
15308 void* p = getpagesize
15313 rm -f conftest.
$ac_objext
15314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15315 (eval $ac_compile) 2>conftest.er1
15317 grep -v '^ *+' conftest.er1
>conftest.err
15319 cat conftest.err
>&5
15320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15321 (exit $ac_status); } &&
15322 { ac_try
='test -z "$ac_c_werror_flag"
15323 || test ! -s conftest.err'
15324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15325 (eval $ac_try) 2>&5
15327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15328 (exit $ac_status); }; } &&
15329 { ac_try
='test -s conftest.$ac_objext'
15330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15331 (eval $ac_try) 2>&5
15333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15334 (exit $ac_status); }; }; then
15336 cat >>confdefs.h
<<\_ACEOF
15337 #define HAVE_GETPAGESIZE 1
15340 echo "$as_me:$LINENO: result: yes" >&5
15341 echo "${ECHO_T}yes" >&6
15343 echo "$as_me: failed program was:" >&5
15344 sed 's/^/| /' conftest.
$ac_ext >&5
15346 echo "$as_me:$LINENO: result: no" >&5
15347 echo "${ECHO_T}no" >&6
15350 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15352 for ac_prog
in true
15354 # Extract the first word of "$ac_prog", so it can be a program name with args.
15355 set dummy
$ac_prog; ac_word
=$2
15356 echo "$as_me:$LINENO: checking for $ac_word" >&5
15357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15358 if test "${ac_cv_prog_TRUE+set}" = set; then
15359 echo $ECHO_N "(cached) $ECHO_C" >&6
15361 if test -n "$TRUE"; then
15362 ac_cv_prog_TRUE
="$TRUE" # Let the user override the test.
15364 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15365 for as_dir
in $PATH
15368 test -z "$as_dir" && as_dir
=.
15369 for ac_exec_ext
in '' $ac_executable_extensions; do
15370 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15371 ac_cv_prog_TRUE
="$ac_prog"
15372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15380 TRUE
=$ac_cv_prog_TRUE
15381 if test -n "$TRUE"; then
15382 echo "$as_me:$LINENO: result: $TRUE" >&5
15383 echo "${ECHO_T}$TRUE" >&6
15385 echo "$as_me:$LINENO: result: no" >&5
15386 echo "${ECHO_T}no" >&6
15389 test -n "$TRUE" && break
15391 test -n "$TRUE" || TRUE
="/bin/true"
15394 echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
15395 echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6
15396 if test "${ac_cv_lib_c_inet_aton+set}" = set; then
15397 echo $ECHO_N "(cached) $ECHO_C" >&6
15399 ac_check_lib_save_LIBS
=$LIBS
15401 cat >conftest.
$ac_ext <<_ACEOF
15404 cat confdefs.h
>>conftest.
$ac_ext
15405 cat >>conftest.
$ac_ext <<_ACEOF
15406 /* end confdefs.h. */
15408 /* Override any gcc2 internal prototype to avoid an error. */
15412 /* We use char because int might match the return type of a gcc2
15413 builtin and then its argument prototype would still apply. */
15423 rm -f conftest.
$ac_objext conftest
$ac_exeext
15424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15425 (eval $ac_link) 2>conftest.er1
15427 grep -v '^ *+' conftest.er1
>conftest.err
15429 cat conftest.err
>&5
15430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15431 (exit $ac_status); } &&
15432 { ac_try
='test -z "$ac_c_werror_flag"
15433 || test ! -s conftest.err'
15434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15435 (eval $ac_try) 2>&5
15437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15438 (exit $ac_status); }; } &&
15439 { ac_try
='test -s conftest$ac_exeext'
15440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15441 (eval $ac_try) 2>&5
15443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15444 (exit $ac_status); }; }; then
15445 ac_cv_lib_c_inet_aton
=yes
15447 echo "$as_me: failed program was:" >&5
15448 sed 's/^/| /' conftest.
$ac_ext >&5
15450 ac_cv_lib_c_inet_aton
=no
15452 rm -f conftest.err conftest.
$ac_objext \
15453 conftest
$ac_exeext conftest.
$ac_ext
15454 LIBS
=$ac_check_lib_save_LIBS
15456 echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
15457 echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6
15458 if test $ac_cv_lib_c_inet_aton = yes; then
15462 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
15463 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
15464 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
15465 echo $ECHO_N "(cached) $ECHO_C" >&6
15467 ac_check_lib_save_LIBS
=$LIBS
15468 LIBS
="-lresolv $LIBS"
15469 cat >conftest.
$ac_ext <<_ACEOF
15472 cat confdefs.h
>>conftest.
$ac_ext
15473 cat >>conftest.
$ac_ext <<_ACEOF
15474 /* end confdefs.h. */
15476 /* Override any gcc2 internal prototype to avoid an error. */
15480 /* We use char because int might match the return type of a gcc2
15481 builtin and then its argument prototype would still apply. */
15491 rm -f conftest.
$ac_objext conftest
$ac_exeext
15492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15493 (eval $ac_link) 2>conftest.er1
15495 grep -v '^ *+' conftest.er1
>conftest.err
15497 cat conftest.err
>&5
15498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15499 (exit $ac_status); } &&
15500 { ac_try
='test -z "$ac_c_werror_flag"
15501 || test ! -s conftest.err'
15502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15503 (eval $ac_try) 2>&5
15505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15506 (exit $ac_status); }; } &&
15507 { ac_try
='test -s conftest$ac_exeext'
15508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15509 (eval $ac_try) 2>&5
15511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15512 (exit $ac_status); }; }; then
15513 ac_cv_lib_resolv_inet_aton
=yes
15515 echo "$as_me: failed program was:" >&5
15516 sed 's/^/| /' conftest.
$ac_ext >&5
15518 ac_cv_lib_resolv_inet_aton
=no
15520 rm -f conftest.err conftest.
$ac_objext \
15521 conftest
$ac_exeext conftest.
$ac_ext
15522 LIBS
=$ac_check_lib_save_LIBS
15524 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
15525 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
15526 if test $ac_cv_lib_resolv_inet_aton = yes; then
15527 cat >>confdefs.h
<<_ACEOF
15528 #define HAVE_LIBRESOLV 1
15531 LIBS
="-lresolv $LIBS"
15539 case $ac_sys_system/$ac_sys_release in
15541 _CUR_CFLAGS
="${CFLAGS}"
15542 _CUR_LDFLAGS
="${LDFLAGS}"
15543 CFLAGS
="${CFLAGS} -Wl,-search_paths_first"
15544 LDFLAGS
="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib"
15548 echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5
15549 echo $ECHO_N "checking for inflateCopy in -lz... $ECHO_C" >&6
15550 if test "${ac_cv_lib_z_inflateCopy+set}" = set; then
15551 echo $ECHO_N "(cached) $ECHO_C" >&6
15553 ac_check_lib_save_LIBS
=$LIBS
15555 cat >conftest.
$ac_ext <<_ACEOF
15558 cat confdefs.h
>>conftest.
$ac_ext
15559 cat >>conftest.
$ac_ext <<_ACEOF
15560 /* end confdefs.h. */
15562 /* Override any gcc2 internal prototype to avoid an error. */
15566 /* We use char because int might match the return type of a gcc2
15567 builtin and then its argument prototype would still apply. */
15568 char inflateCopy ();
15577 rm -f conftest.
$ac_objext conftest
$ac_exeext
15578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15579 (eval $ac_link) 2>conftest.er1
15581 grep -v '^ *+' conftest.er1
>conftest.err
15583 cat conftest.err
>&5
15584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15585 (exit $ac_status); } &&
15586 { ac_try
='test -z "$ac_c_werror_flag"
15587 || test ! -s conftest.err'
15588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15589 (eval $ac_try) 2>&5
15591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15592 (exit $ac_status); }; } &&
15593 { ac_try
='test -s conftest$ac_exeext'
15594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15595 (eval $ac_try) 2>&5
15597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15598 (exit $ac_status); }; }; then
15599 ac_cv_lib_z_inflateCopy
=yes
15601 echo "$as_me: failed program was:" >&5
15602 sed 's/^/| /' conftest.
$ac_ext >&5
15604 ac_cv_lib_z_inflateCopy
=no
15606 rm -f conftest.err conftest.
$ac_objext \
15607 conftest
$ac_exeext conftest.
$ac_ext
15608 LIBS
=$ac_check_lib_save_LIBS
15610 echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5
15611 echo "${ECHO_T}$ac_cv_lib_z_inflateCopy" >&6
15612 if test $ac_cv_lib_z_inflateCopy = yes; then
15614 cat >>confdefs.h
<<\_ACEOF
15615 #define HAVE_ZLIB_COPY 1
15621 case $ac_sys_system/$ac_sys_release in
15623 CFLAGS
="${_CUR_CFLAGS}"
15624 LDFLAGS
="${_CUR_LDFLAGS}"
15628 echo "$as_me:$LINENO: checking for hstrerror" >&5
15629 echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6
15630 cat >conftest.
$ac_ext <<_ACEOF
15633 cat confdefs.h
>>conftest.
$ac_ext
15634 cat >>conftest.
$ac_ext <<_ACEOF
15635 /* end confdefs.h. */
15637 #include "confdefs.h"
15643 void* p = hstrerror; hstrerror(0)
15648 rm -f conftest.
$ac_objext conftest
$ac_exeext
15649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15650 (eval $ac_link) 2>conftest.er1
15652 grep -v '^ *+' conftest.er1
>conftest.err
15654 cat conftest.err
>&5
15655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15656 (exit $ac_status); } &&
15657 { ac_try
='test -z "$ac_c_werror_flag"
15658 || test ! -s conftest.err'
15659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15660 (eval $ac_try) 2>&5
15662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15663 (exit $ac_status); }; } &&
15664 { ac_try
='test -s conftest$ac_exeext'
15665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15666 (eval $ac_try) 2>&5
15668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15669 (exit $ac_status); }; }; then
15671 cat >>confdefs.h
<<\_ACEOF
15672 #define HAVE_HSTRERROR 1
15675 echo "$as_me:$LINENO: result: yes" >&5
15676 echo "${ECHO_T}yes" >&6
15678 echo "$as_me: failed program was:" >&5
15679 sed 's/^/| /' conftest.
$ac_ext >&5
15681 echo "$as_me:$LINENO: result: no" >&5
15682 echo "${ECHO_T}no" >&6
15685 rm -f conftest.err conftest.
$ac_objext \
15686 conftest
$ac_exeext conftest.
$ac_ext
15688 echo "$as_me:$LINENO: checking for inet_aton" >&5
15689 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
15690 cat >conftest.
$ac_ext <<_ACEOF
15693 cat confdefs.h
>>conftest.
$ac_ext
15694 cat >>conftest.
$ac_ext <<_ACEOF
15695 /* end confdefs.h. */
15697 #include "confdefs.h"
15698 #include <sys/types.h>
15699 #include <sys/socket.h>
15700 #include <netinet/in.h>
15701 #include <arpa/inet.h>
15706 void* p = inet_aton;inet_aton(0,0)
15711 rm -f conftest.
$ac_objext conftest
$ac_exeext
15712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15713 (eval $ac_link) 2>conftest.er1
15715 grep -v '^ *+' conftest.er1
>conftest.err
15717 cat conftest.err
>&5
15718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15719 (exit $ac_status); } &&
15720 { ac_try
='test -z "$ac_c_werror_flag"
15721 || test ! -s conftest.err'
15722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15723 (eval $ac_try) 2>&5
15725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15726 (exit $ac_status); }; } &&
15727 { ac_try
='test -s conftest$ac_exeext'
15728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15729 (eval $ac_try) 2>&5
15731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15732 (exit $ac_status); }; }; then
15734 cat >>confdefs.h
<<\_ACEOF
15735 #define HAVE_INET_ATON 1
15738 echo "$as_me:$LINENO: result: yes" >&5
15739 echo "${ECHO_T}yes" >&6
15741 echo "$as_me: failed program was:" >&5
15742 sed 's/^/| /' conftest.
$ac_ext >&5
15744 echo "$as_me:$LINENO: result: no" >&5
15745 echo "${ECHO_T}no" >&6
15748 rm -f conftest.err conftest.
$ac_objext \
15749 conftest
$ac_exeext conftest.
$ac_ext
15751 echo "$as_me:$LINENO: checking for inet_pton" >&5
15752 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6
15753 cat >conftest.
$ac_ext <<_ACEOF
15756 cat confdefs.h
>>conftest.
$ac_ext
15757 cat >>conftest.
$ac_ext <<_ACEOF
15758 /* end confdefs.h. */
15760 #include "confdefs.h"
15761 #include <sys/types.h>
15762 #include <sys/socket.h>
15763 #include <netinet/in.h>
15764 #include <arpa/inet.h>
15769 void* p = inet_pton
15774 rm -f conftest.
$ac_objext
15775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15776 (eval $ac_compile) 2>conftest.er1
15778 grep -v '^ *+' conftest.er1
>conftest.err
15780 cat conftest.err
>&5
15781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15782 (exit $ac_status); } &&
15783 { ac_try
='test -z "$ac_c_werror_flag"
15784 || test ! -s conftest.err'
15785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15786 (eval $ac_try) 2>&5
15788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15789 (exit $ac_status); }; } &&
15790 { ac_try
='test -s conftest.$ac_objext'
15791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15792 (eval $ac_try) 2>&5
15794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15795 (exit $ac_status); }; }; then
15797 cat >>confdefs.h
<<\_ACEOF
15798 #define HAVE_INET_PTON 1
15801 echo "$as_me:$LINENO: result: yes" >&5
15802 echo "${ECHO_T}yes" >&6
15804 echo "$as_me: failed program was:" >&5
15805 sed 's/^/| /' conftest.
$ac_ext >&5
15807 echo "$as_me:$LINENO: result: no" >&5
15808 echo "${ECHO_T}no" >&6
15811 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15813 # On some systems, setgroups is in unistd.h, on others, in grp.h
15814 echo "$as_me:$LINENO: checking for setgroups" >&5
15815 echo $ECHO_N "checking for setgroups... $ECHO_C" >&6
15816 cat >conftest.
$ac_ext <<_ACEOF
15819 cat confdefs.h
>>conftest.
$ac_ext
15820 cat >>conftest.
$ac_ext <<_ACEOF
15821 /* end confdefs.h. */
15823 #include "confdefs.h"
15824 #include <unistd.h>
15832 void* p = setgroups
15837 rm -f conftest.
$ac_objext
15838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15839 (eval $ac_compile) 2>conftest.er1
15841 grep -v '^ *+' conftest.er1
>conftest.err
15843 cat conftest.err
>&5
15844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15845 (exit $ac_status); } &&
15846 { ac_try
='test -z "$ac_c_werror_flag"
15847 || test ! -s conftest.err'
15848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15849 (eval $ac_try) 2>&5
15851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15852 (exit $ac_status); }; } &&
15853 { ac_try
='test -s conftest.$ac_objext'
15854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15855 (eval $ac_try) 2>&5
15857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15858 (exit $ac_status); }; }; then
15860 cat >>confdefs.h
<<\_ACEOF
15861 #define HAVE_SETGROUPS 1
15864 echo "$as_me:$LINENO: result: yes" >&5
15865 echo "${ECHO_T}yes" >&6
15867 echo "$as_me: failed program was:" >&5
15868 sed 's/^/| /' conftest.
$ac_ext >&5
15870 echo "$as_me:$LINENO: result: no" >&5
15871 echo "${ECHO_T}no" >&6
15874 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15876 # check for openpty and forkpty
15879 for ac_func
in openpty
15881 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15882 echo "$as_me:$LINENO: checking for $ac_func" >&5
15883 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15884 if eval "test \"\${$as_ac_var+set}\" = set"; then
15885 echo $ECHO_N "(cached) $ECHO_C" >&6
15887 cat >conftest.
$ac_ext <<_ACEOF
15890 cat confdefs.h
>>conftest.
$ac_ext
15891 cat >>conftest.
$ac_ext <<_ACEOF
15892 /* end confdefs.h. */
15893 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15894 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15895 #define $ac_func innocuous_$ac_func
15897 /* System header to define __stub macros and hopefully few prototypes,
15898 which can conflict with char $ac_func (); below.
15899 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15900 <limits.h> exists even on freestanding compilers. */
15903 # include <limits.h>
15905 # include <assert.h>
15910 /* Override any gcc2 internal prototype to avoid an error. */
15915 /* We use char because int might match the return type of a gcc2
15916 builtin and then its argument prototype would still apply. */
15918 /* The GNU C library defines this for functions which it implements
15919 to always fail with ENOSYS. Some functions are actually named
15920 something starting with __ and the normal name is an alias. */
15921 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15924 char (*f) () = $ac_func;
15933 return f != $ac_func;
15938 rm -f conftest.
$ac_objext conftest
$ac_exeext
15939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15940 (eval $ac_link) 2>conftest.er1
15942 grep -v '^ *+' conftest.er1
>conftest.err
15944 cat conftest.err
>&5
15945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15946 (exit $ac_status); } &&
15947 { ac_try
='test -z "$ac_c_werror_flag"
15948 || test ! -s conftest.err'
15949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15950 (eval $ac_try) 2>&5
15952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15953 (exit $ac_status); }; } &&
15954 { ac_try
='test -s conftest$ac_exeext'
15955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15956 (eval $ac_try) 2>&5
15958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15959 (exit $ac_status); }; }; then
15960 eval "$as_ac_var=yes"
15962 echo "$as_me: failed program was:" >&5
15963 sed 's/^/| /' conftest.
$ac_ext >&5
15965 eval "$as_ac_var=no"
15967 rm -f conftest.err conftest.
$ac_objext \
15968 conftest
$ac_exeext conftest.
$ac_ext
15970 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15971 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15972 if test `eval echo '${'$as_ac_var'}'` = yes; then
15973 cat >>confdefs.h
<<_ACEOF
15974 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15978 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
15979 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
15980 if test "${ac_cv_lib_util_openpty+set}" = set; then
15981 echo $ECHO_N "(cached) $ECHO_C" >&6
15983 ac_check_lib_save_LIBS
=$LIBS
15984 LIBS
="-lutil $LIBS"
15985 cat >conftest.
$ac_ext <<_ACEOF
15988 cat confdefs.h
>>conftest.
$ac_ext
15989 cat >>conftest.
$ac_ext <<_ACEOF
15990 /* end confdefs.h. */
15992 /* Override any gcc2 internal prototype to avoid an error. */
15996 /* We use char because int might match the return type of a gcc2
15997 builtin and then its argument prototype would still apply. */
16007 rm -f conftest.
$ac_objext conftest
$ac_exeext
16008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16009 (eval $ac_link) 2>conftest.er1
16011 grep -v '^ *+' conftest.er1
>conftest.err
16013 cat conftest.err
>&5
16014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16015 (exit $ac_status); } &&
16016 { ac_try
='test -z "$ac_c_werror_flag"
16017 || test ! -s conftest.err'
16018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16019 (eval $ac_try) 2>&5
16021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16022 (exit $ac_status); }; } &&
16023 { ac_try
='test -s conftest$ac_exeext'
16024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16025 (eval $ac_try) 2>&5
16027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16028 (exit $ac_status); }; }; then
16029 ac_cv_lib_util_openpty
=yes
16031 echo "$as_me: failed program was:" >&5
16032 sed 's/^/| /' conftest.
$ac_ext >&5
16034 ac_cv_lib_util_openpty
=no
16036 rm -f conftest.err conftest.
$ac_objext \
16037 conftest
$ac_exeext conftest.
$ac_ext
16038 LIBS
=$ac_check_lib_save_LIBS
16040 echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
16041 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
16042 if test $ac_cv_lib_util_openpty = yes; then
16043 cat >>confdefs.h
<<\_ACEOF
16044 #define HAVE_OPENPTY 1
16046 LIBS
="$LIBS -lutil"
16048 echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
16049 echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6
16050 if test "${ac_cv_lib_bsd_openpty+set}" = set; then
16051 echo $ECHO_N "(cached) $ECHO_C" >&6
16053 ac_check_lib_save_LIBS
=$LIBS
16055 cat >conftest.
$ac_ext <<_ACEOF
16058 cat confdefs.h
>>conftest.
$ac_ext
16059 cat >>conftest.
$ac_ext <<_ACEOF
16060 /* end confdefs.h. */
16062 /* Override any gcc2 internal prototype to avoid an error. */
16066 /* We use char because int might match the return type of a gcc2
16067 builtin and then its argument prototype would still apply. */
16077 rm -f conftest.
$ac_objext conftest
$ac_exeext
16078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16079 (eval $ac_link) 2>conftest.er1
16081 grep -v '^ *+' conftest.er1
>conftest.err
16083 cat conftest.err
>&5
16084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16085 (exit $ac_status); } &&
16086 { ac_try
='test -z "$ac_c_werror_flag"
16087 || test ! -s conftest.err'
16088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16089 (eval $ac_try) 2>&5
16091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16092 (exit $ac_status); }; } &&
16093 { ac_try
='test -s conftest$ac_exeext'
16094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16095 (eval $ac_try) 2>&5
16097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16098 (exit $ac_status); }; }; then
16099 ac_cv_lib_bsd_openpty
=yes
16101 echo "$as_me: failed program was:" >&5
16102 sed 's/^/| /' conftest.
$ac_ext >&5
16104 ac_cv_lib_bsd_openpty
=no
16106 rm -f conftest.err conftest.
$ac_objext \
16107 conftest
$ac_exeext conftest.
$ac_ext
16108 LIBS
=$ac_check_lib_save_LIBS
16110 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
16111 echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6
16112 if test $ac_cv_lib_bsd_openpty = yes; then
16113 cat >>confdefs.h
<<\_ACEOF
16114 #define HAVE_OPENPTY 1
16127 for ac_func
in forkpty
16129 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16130 echo "$as_me:$LINENO: checking for $ac_func" >&5
16131 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16132 if eval "test \"\${$as_ac_var+set}\" = set"; then
16133 echo $ECHO_N "(cached) $ECHO_C" >&6
16135 cat >conftest.
$ac_ext <<_ACEOF
16138 cat confdefs.h
>>conftest.
$ac_ext
16139 cat >>conftest.
$ac_ext <<_ACEOF
16140 /* end confdefs.h. */
16141 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16142 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16143 #define $ac_func innocuous_$ac_func
16145 /* System header to define __stub macros and hopefully few prototypes,
16146 which can conflict with char $ac_func (); below.
16147 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16148 <limits.h> exists even on freestanding compilers. */
16151 # include <limits.h>
16153 # include <assert.h>
16158 /* Override any gcc2 internal prototype to avoid an error. */
16163 /* We use char because int might match the return type of a gcc2
16164 builtin and then its argument prototype would still apply. */
16166 /* The GNU C library defines this for functions which it implements
16167 to always fail with ENOSYS. Some functions are actually named
16168 something starting with __ and the normal name is an alias. */
16169 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16172 char (*f) () = $ac_func;
16181 return f != $ac_func;
16186 rm -f conftest.
$ac_objext conftest
$ac_exeext
16187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16188 (eval $ac_link) 2>conftest.er1
16190 grep -v '^ *+' conftest.er1
>conftest.err
16192 cat conftest.err
>&5
16193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16194 (exit $ac_status); } &&
16195 { ac_try
='test -z "$ac_c_werror_flag"
16196 || test ! -s conftest.err'
16197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16198 (eval $ac_try) 2>&5
16200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16201 (exit $ac_status); }; } &&
16202 { ac_try
='test -s conftest$ac_exeext'
16203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16204 (eval $ac_try) 2>&5
16206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16207 (exit $ac_status); }; }; then
16208 eval "$as_ac_var=yes"
16210 echo "$as_me: failed program was:" >&5
16211 sed 's/^/| /' conftest.
$ac_ext >&5
16213 eval "$as_ac_var=no"
16215 rm -f conftest.err conftest.
$ac_objext \
16216 conftest
$ac_exeext conftest.
$ac_ext
16218 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16219 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16220 if test `eval echo '${'$as_ac_var'}'` = yes; then
16221 cat >>confdefs.h
<<_ACEOF
16222 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16226 echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
16227 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6
16228 if test "${ac_cv_lib_util_forkpty+set}" = set; then
16229 echo $ECHO_N "(cached) $ECHO_C" >&6
16231 ac_check_lib_save_LIBS
=$LIBS
16232 LIBS
="-lutil $LIBS"
16233 cat >conftest.
$ac_ext <<_ACEOF
16236 cat confdefs.h
>>conftest.
$ac_ext
16237 cat >>conftest.
$ac_ext <<_ACEOF
16238 /* end confdefs.h. */
16240 /* Override any gcc2 internal prototype to avoid an error. */
16244 /* We use char because int might match the return type of a gcc2
16245 builtin and then its argument prototype would still apply. */
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 ac_cv_lib_util_forkpty
=yes
16279 echo "$as_me: failed program was:" >&5
16280 sed 's/^/| /' conftest.
$ac_ext >&5
16282 ac_cv_lib_util_forkpty
=no
16284 rm -f conftest.err conftest.
$ac_objext \
16285 conftest
$ac_exeext conftest.
$ac_ext
16286 LIBS
=$ac_check_lib_save_LIBS
16288 echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
16289 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6
16290 if test $ac_cv_lib_util_forkpty = yes; then
16291 cat >>confdefs.h
<<\_ACEOF
16292 #define HAVE_FORKPTY 1
16294 LIBS
="$LIBS -lutil"
16296 echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
16297 echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6
16298 if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
16299 echo $ECHO_N "(cached) $ECHO_C" >&6
16301 ac_check_lib_save_LIBS
=$LIBS
16303 cat >conftest.
$ac_ext <<_ACEOF
16306 cat confdefs.h
>>conftest.
$ac_ext
16307 cat >>conftest.
$ac_ext <<_ACEOF
16308 /* end confdefs.h. */
16310 /* Override any gcc2 internal prototype to avoid an error. */
16314 /* We use char because int might match the return type of a gcc2
16315 builtin and then its argument prototype would still apply. */
16325 rm -f conftest.
$ac_objext conftest
$ac_exeext
16326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16327 (eval $ac_link) 2>conftest.er1
16329 grep -v '^ *+' conftest.er1
>conftest.err
16331 cat conftest.err
>&5
16332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16333 (exit $ac_status); } &&
16334 { ac_try
='test -z "$ac_c_werror_flag"
16335 || test ! -s conftest.err'
16336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16337 (eval $ac_try) 2>&5
16339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16340 (exit $ac_status); }; } &&
16341 { ac_try
='test -s conftest$ac_exeext'
16342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16343 (eval $ac_try) 2>&5
16345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16346 (exit $ac_status); }; }; then
16347 ac_cv_lib_bsd_forkpty
=yes
16349 echo "$as_me: failed program was:" >&5
16350 sed 's/^/| /' conftest.
$ac_ext >&5
16352 ac_cv_lib_bsd_forkpty
=no
16354 rm -f conftest.err conftest.
$ac_objext \
16355 conftest
$ac_exeext conftest.
$ac_ext
16356 LIBS
=$ac_check_lib_save_LIBS
16358 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
16359 echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6
16360 if test $ac_cv_lib_bsd_forkpty = yes; then
16361 cat >>confdefs.h
<<\_ACEOF
16362 #define HAVE_FORKPTY 1
16375 # check for long file support functions
16382 for ac_func
in fseek64 fseeko fstatvfs ftell64 ftello statvfs
16384 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16385 echo "$as_me:$LINENO: checking for $ac_func" >&5
16386 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16387 if eval "test \"\${$as_ac_var+set}\" = set"; then
16388 echo $ECHO_N "(cached) $ECHO_C" >&6
16390 cat >conftest.
$ac_ext <<_ACEOF
16393 cat confdefs.h
>>conftest.
$ac_ext
16394 cat >>conftest.
$ac_ext <<_ACEOF
16395 /* end confdefs.h. */
16396 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16397 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16398 #define $ac_func innocuous_$ac_func
16400 /* System header to define __stub macros and hopefully few prototypes,
16401 which can conflict with char $ac_func (); below.
16402 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16403 <limits.h> exists even on freestanding compilers. */
16406 # include <limits.h>
16408 # include <assert.h>
16413 /* Override any gcc2 internal prototype to avoid an error. */
16418 /* We use char because int might match the return type of a gcc2
16419 builtin and then its argument prototype would still apply. */
16421 /* The GNU C library defines this for functions which it implements
16422 to always fail with ENOSYS. Some functions are actually named
16423 something starting with __ and the normal name is an alias. */
16424 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16427 char (*f) () = $ac_func;
16436 return f != $ac_func;
16441 rm -f conftest.
$ac_objext conftest
$ac_exeext
16442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16443 (eval $ac_link) 2>conftest.er1
16445 grep -v '^ *+' conftest.er1
>conftest.err
16447 cat conftest.err
>&5
16448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16449 (exit $ac_status); } &&
16450 { ac_try
='test -z "$ac_c_werror_flag"
16451 || test ! -s conftest.err'
16452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16453 (eval $ac_try) 2>&5
16455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16456 (exit $ac_status); }; } &&
16457 { ac_try
='test -s conftest$ac_exeext'
16458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16459 (eval $ac_try) 2>&5
16461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16462 (exit $ac_status); }; }; then
16463 eval "$as_ac_var=yes"
16465 echo "$as_me: failed program was:" >&5
16466 sed 's/^/| /' conftest.
$ac_ext >&5
16468 eval "$as_ac_var=no"
16470 rm -f conftest.err conftest.
$ac_objext \
16471 conftest
$ac_exeext conftest.
$ac_ext
16473 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16474 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16475 if test `eval echo '${'$as_ac_var'}'` = yes; then
16476 cat >>confdefs.h
<<_ACEOF
16477 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16489 for ac_func
in dup2 getcwd strdup strerror memmove
16491 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16492 echo "$as_me:$LINENO: checking for $ac_func" >&5
16493 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16494 if eval "test \"\${$as_ac_var+set}\" = set"; then
16495 echo $ECHO_N "(cached) $ECHO_C" >&6
16497 cat >conftest.
$ac_ext <<_ACEOF
16500 cat confdefs.h
>>conftest.
$ac_ext
16501 cat >>conftest.
$ac_ext <<_ACEOF
16502 /* end confdefs.h. */
16503 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16504 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16505 #define $ac_func innocuous_$ac_func
16507 /* System header to define __stub macros and hopefully few prototypes,
16508 which can conflict with char $ac_func (); below.
16509 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16510 <limits.h> exists even on freestanding compilers. */
16513 # include <limits.h>
16515 # include <assert.h>
16520 /* Override any gcc2 internal prototype to avoid an error. */
16525 /* We use char because int might match the return type of a gcc2
16526 builtin and then its argument prototype would still apply. */
16528 /* The GNU C library defines this for functions which it implements
16529 to always fail with ENOSYS. Some functions are actually named
16530 something starting with __ and the normal name is an alias. */
16531 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16534 char (*f) () = $ac_func;
16543 return f != $ac_func;
16548 rm -f conftest.
$ac_objext conftest
$ac_exeext
16549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16550 (eval $ac_link) 2>conftest.er1
16552 grep -v '^ *+' conftest.er1
>conftest.err
16554 cat conftest.err
>&5
16555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16556 (exit $ac_status); } &&
16557 { ac_try
='test -z "$ac_c_werror_flag"
16558 || test ! -s conftest.err'
16559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16560 (eval $ac_try) 2>&5
16562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16563 (exit $ac_status); }; } &&
16564 { ac_try
='test -s conftest$ac_exeext'
16565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16566 (eval $ac_try) 2>&5
16568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16569 (exit $ac_status); }; }; then
16570 eval "$as_ac_var=yes"
16572 echo "$as_me: failed program was:" >&5
16573 sed 's/^/| /' conftest.
$ac_ext >&5
16575 eval "$as_ac_var=no"
16577 rm -f conftest.err conftest.
$ac_objext \
16578 conftest
$ac_exeext conftest.
$ac_ext
16580 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16581 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16582 if test `eval echo '${'$as_ac_var'}'` = yes; then
16583 cat >>confdefs.h
<<_ACEOF
16584 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16589 "$ac_func.$ac_objext" | \
16590 *" $ac_func.$ac_objext" | \
16591 "$ac_func.$ac_objext "* | \
16592 *" $ac_func.$ac_objext "* ) ;;
16593 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext" ;;
16601 for ac_func
in getpgrp
16603 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16604 echo "$as_me:$LINENO: checking for $ac_func" >&5
16605 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16606 if eval "test \"\${$as_ac_var+set}\" = set"; then
16607 echo $ECHO_N "(cached) $ECHO_C" >&6
16609 cat >conftest.
$ac_ext <<_ACEOF
16612 cat confdefs.h
>>conftest.
$ac_ext
16613 cat >>conftest.
$ac_ext <<_ACEOF
16614 /* end confdefs.h. */
16615 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16616 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16617 #define $ac_func innocuous_$ac_func
16619 /* System header to define __stub macros and hopefully few prototypes,
16620 which can conflict with char $ac_func (); below.
16621 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16622 <limits.h> exists even on freestanding compilers. */
16625 # include <limits.h>
16627 # include <assert.h>
16632 /* Override any gcc2 internal prototype to avoid an error. */
16637 /* We use char because int might match the return type of a gcc2
16638 builtin and then its argument prototype would still apply. */
16640 /* The GNU C library defines this for functions which it implements
16641 to always fail with ENOSYS. Some functions are actually named
16642 something starting with __ and the normal name is an alias. */
16643 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16646 char (*f) () = $ac_func;
16655 return f != $ac_func;
16660 rm -f conftest.
$ac_objext conftest
$ac_exeext
16661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16662 (eval $ac_link) 2>conftest.er1
16664 grep -v '^ *+' conftest.er1
>conftest.err
16666 cat conftest.err
>&5
16667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16668 (exit $ac_status); } &&
16669 { ac_try
='test -z "$ac_c_werror_flag"
16670 || test ! -s conftest.err'
16671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16672 (eval $ac_try) 2>&5
16674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16675 (exit $ac_status); }; } &&
16676 { ac_try
='test -s conftest$ac_exeext'
16677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16678 (eval $ac_try) 2>&5
16680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16681 (exit $ac_status); }; }; then
16682 eval "$as_ac_var=yes"
16684 echo "$as_me: failed program was:" >&5
16685 sed 's/^/| /' conftest.
$ac_ext >&5
16687 eval "$as_ac_var=no"
16689 rm -f conftest.err conftest.
$ac_objext \
16690 conftest
$ac_exeext conftest.
$ac_ext
16692 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16693 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16694 if test `eval echo '${'$as_ac_var'}'` = yes; then
16695 cat >>confdefs.h
<<_ACEOF
16696 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16698 cat >conftest.
$ac_ext <<_ACEOF
16701 cat confdefs.h
>>conftest.
$ac_ext
16702 cat >>conftest.
$ac_ext <<_ACEOF
16703 /* end confdefs.h. */
16704 #include <unistd.h>
16713 rm -f conftest.
$ac_objext
16714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16715 (eval $ac_compile) 2>conftest.er1
16717 grep -v '^ *+' conftest.er1
>conftest.err
16719 cat conftest.err
>&5
16720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16721 (exit $ac_status); } &&
16722 { ac_try
='test -z "$ac_c_werror_flag"
16723 || test ! -s conftest.err'
16724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16725 (eval $ac_try) 2>&5
16727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16728 (exit $ac_status); }; } &&
16729 { ac_try
='test -s conftest.$ac_objext'
16730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16731 (eval $ac_try) 2>&5
16733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16734 (exit $ac_status); }; }; then
16736 cat >>confdefs.h
<<\_ACEOF
16737 #define GETPGRP_HAVE_ARG 1
16742 echo "$as_me: failed program was:" >&5
16743 sed 's/^/| /' conftest.
$ac_ext >&5
16746 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16752 for ac_func
in setpgrp
16754 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16755 echo "$as_me:$LINENO: checking for $ac_func" >&5
16756 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16757 if eval "test \"\${$as_ac_var+set}\" = set"; then
16758 echo $ECHO_N "(cached) $ECHO_C" >&6
16760 cat >conftest.
$ac_ext <<_ACEOF
16763 cat confdefs.h
>>conftest.
$ac_ext
16764 cat >>conftest.
$ac_ext <<_ACEOF
16765 /* end confdefs.h. */
16766 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16767 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16768 #define $ac_func innocuous_$ac_func
16770 /* System header to define __stub macros and hopefully few prototypes,
16771 which can conflict with char $ac_func (); below.
16772 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16773 <limits.h> exists even on freestanding compilers. */
16776 # include <limits.h>
16778 # include <assert.h>
16783 /* Override any gcc2 internal prototype to avoid an error. */
16788 /* We use char because int might match the return type of a gcc2
16789 builtin and then its argument prototype would still apply. */
16791 /* The GNU C library defines this for functions which it implements
16792 to always fail with ENOSYS. Some functions are actually named
16793 something starting with __ and the normal name is an alias. */
16794 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16797 char (*f) () = $ac_func;
16806 return f != $ac_func;
16811 rm -f conftest.
$ac_objext conftest
$ac_exeext
16812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16813 (eval $ac_link) 2>conftest.er1
16815 grep -v '^ *+' conftest.er1
>conftest.err
16817 cat conftest.err
>&5
16818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16819 (exit $ac_status); } &&
16820 { ac_try
='test -z "$ac_c_werror_flag"
16821 || test ! -s conftest.err'
16822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16823 (eval $ac_try) 2>&5
16825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16826 (exit $ac_status); }; } &&
16827 { ac_try
='test -s conftest$ac_exeext'
16828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16829 (eval $ac_try) 2>&5
16831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16832 (exit $ac_status); }; }; then
16833 eval "$as_ac_var=yes"
16835 echo "$as_me: failed program was:" >&5
16836 sed 's/^/| /' conftest.
$ac_ext >&5
16838 eval "$as_ac_var=no"
16840 rm -f conftest.err conftest.
$ac_objext \
16841 conftest
$ac_exeext conftest.
$ac_ext
16843 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16844 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16845 if test `eval echo '${'$as_ac_var'}'` = yes; then
16846 cat >>confdefs.h
<<_ACEOF
16847 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16849 cat >conftest.
$ac_ext <<_ACEOF
16852 cat confdefs.h
>>conftest.
$ac_ext
16853 cat >>conftest.
$ac_ext <<_ACEOF
16854 /* end confdefs.h. */
16855 #include <unistd.h>
16864 rm -f conftest.
$ac_objext
16865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16866 (eval $ac_compile) 2>conftest.er1
16868 grep -v '^ *+' conftest.er1
>conftest.err
16870 cat conftest.err
>&5
16871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16872 (exit $ac_status); } &&
16873 { ac_try
='test -z "$ac_c_werror_flag"
16874 || test ! -s conftest.err'
16875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16876 (eval $ac_try) 2>&5
16878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16879 (exit $ac_status); }; } &&
16880 { ac_try
='test -s conftest.$ac_objext'
16881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16882 (eval $ac_try) 2>&5
16884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16885 (exit $ac_status); }; }; then
16887 cat >>confdefs.h
<<\_ACEOF
16888 #define SETPGRP_HAVE_ARG 1
16893 echo "$as_me: failed program was:" >&5
16894 sed 's/^/| /' conftest.
$ac_ext >&5
16897 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16903 for ac_func
in gettimeofday
16905 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16906 echo "$as_me:$LINENO: checking for $ac_func" >&5
16907 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16908 if eval "test \"\${$as_ac_var+set}\" = set"; then
16909 echo $ECHO_N "(cached) $ECHO_C" >&6
16911 cat >conftest.
$ac_ext <<_ACEOF
16914 cat confdefs.h
>>conftest.
$ac_ext
16915 cat >>conftest.
$ac_ext <<_ACEOF
16916 /* end confdefs.h. */
16917 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16918 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16919 #define $ac_func innocuous_$ac_func
16921 /* System header to define __stub macros and hopefully few prototypes,
16922 which can conflict with char $ac_func (); below.
16923 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16924 <limits.h> exists even on freestanding compilers. */
16927 # include <limits.h>
16929 # include <assert.h>
16934 /* Override any gcc2 internal prototype to avoid an error. */
16939 /* We use char because int might match the return type of a gcc2
16940 builtin and then its argument prototype would still apply. */
16942 /* The GNU C library defines this for functions which it implements
16943 to always fail with ENOSYS. Some functions are actually named
16944 something starting with __ and the normal name is an alias. */
16945 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16948 char (*f) () = $ac_func;
16957 return f != $ac_func;
16962 rm -f conftest.
$ac_objext conftest
$ac_exeext
16963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16964 (eval $ac_link) 2>conftest.er1
16966 grep -v '^ *+' conftest.er1
>conftest.err
16968 cat conftest.err
>&5
16969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16970 (exit $ac_status); } &&
16971 { ac_try
='test -z "$ac_c_werror_flag"
16972 || test ! -s conftest.err'
16973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16974 (eval $ac_try) 2>&5
16976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16977 (exit $ac_status); }; } &&
16978 { ac_try
='test -s conftest$ac_exeext'
16979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16980 (eval $ac_try) 2>&5
16982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16983 (exit $ac_status); }; }; then
16984 eval "$as_ac_var=yes"
16986 echo "$as_me: failed program was:" >&5
16987 sed 's/^/| /' conftest.
$ac_ext >&5
16989 eval "$as_ac_var=no"
16991 rm -f conftest.err conftest.
$ac_objext \
16992 conftest
$ac_exeext conftest.
$ac_ext
16994 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16995 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16996 if test `eval echo '${'$as_ac_var'}'` = yes; then
16997 cat >>confdefs.h
<<_ACEOF
16998 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17000 cat >conftest.
$ac_ext <<_ACEOF
17003 cat confdefs.h
>>conftest.
$ac_ext
17004 cat >>conftest.
$ac_ext <<_ACEOF
17005 /* end confdefs.h. */
17006 #include <sys/time.h>
17010 gettimeofday((struct timeval*)0,(struct timezone*)0);
17015 rm -f conftest.
$ac_objext
17016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17017 (eval $ac_compile) 2>conftest.er1
17019 grep -v '^ *+' conftest.er1
>conftest.err
17021 cat conftest.err
>&5
17022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17023 (exit $ac_status); } &&
17024 { ac_try
='test -z "$ac_c_werror_flag"
17025 || test ! -s conftest.err'
17026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17027 (eval $ac_try) 2>&5
17029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17030 (exit $ac_status); }; } &&
17031 { ac_try
='test -s conftest.$ac_objext'
17032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17033 (eval $ac_try) 2>&5
17035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17036 (exit $ac_status); }; }; then
17039 echo "$as_me: failed program was:" >&5
17040 sed 's/^/| /' conftest.
$ac_ext >&5
17043 cat >>confdefs.h
<<\_ACEOF
17044 #define GETTIMEOFDAY_NO_TZ 1
17049 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17055 echo "$as_me:$LINENO: checking for major" >&5
17056 echo $ECHO_N "checking for major... $ECHO_C" >&6
17057 cat >conftest.
$ac_ext <<_ACEOF
17060 cat confdefs.h
>>conftest.
$ac_ext
17061 cat >>conftest.
$ac_ext <<_ACEOF
17062 /* end confdefs.h. */
17064 #if defined(MAJOR_IN_MKDEV)
17065 #include <sys/mkdev.h>
17066 #elif defined(MAJOR_IN_SYSMACROS)
17067 #include <sys/sysmacros.h>
17069 #include <sys/types.h>
17076 makedev(major(0),minor(0));
17082 rm -f conftest.
$ac_objext conftest
$ac_exeext
17083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17084 (eval $ac_link) 2>conftest.er1
17086 grep -v '^ *+' conftest.er1
>conftest.err
17088 cat conftest.err
>&5
17089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17090 (exit $ac_status); } &&
17091 { ac_try
='test -z "$ac_c_werror_flag"
17092 || test ! -s conftest.err'
17093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17094 (eval $ac_try) 2>&5
17096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17097 (exit $ac_status); }; } &&
17098 { ac_try
='test -s conftest$ac_exeext'
17099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17100 (eval $ac_try) 2>&5
17102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17103 (exit $ac_status); }; }; then
17106 cat >>confdefs.h
<<\_ACEOF
17107 #define HAVE_DEVICE_MACROS 1
17110 echo "$as_me:$LINENO: result: yes" >&5
17111 echo "${ECHO_T}yes" >&6
17114 echo "$as_me: failed program was:" >&5
17115 sed 's/^/| /' conftest.
$ac_ext >&5
17118 echo "$as_me:$LINENO: result: no" >&5
17119 echo "${ECHO_T}no" >&6
17122 rm -f conftest.err conftest.
$ac_objext \
17123 conftest
$ac_exeext conftest.
$ac_ext
17125 # On OSF/1 V5.1, getaddrinfo is available, but a define
17126 # for [no]getaddrinfo in netdb.h.
17127 echo "$as_me:$LINENO: checking for getaddrinfo" >&5
17128 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6
17129 cat >conftest.
$ac_ext <<_ACEOF
17132 cat confdefs.h
>>conftest.
$ac_ext
17133 cat >>conftest.
$ac_ext <<_ACEOF
17134 /* end confdefs.h. */
17136 #include <sys/types.h>
17137 #include <sys/socket.h>
17145 getaddrinfo(NULL, NULL, NULL, NULL);
17151 rm -f conftest.
$ac_objext conftest
$ac_exeext
17152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17153 (eval $ac_link) 2>conftest.er1
17155 grep -v '^ *+' conftest.er1
>conftest.err
17157 cat conftest.err
>&5
17158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17159 (exit $ac_status); } &&
17160 { ac_try
='test -z "$ac_c_werror_flag"
17161 || test ! -s conftest.err'
17162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17163 (eval $ac_try) 2>&5
17165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17166 (exit $ac_status); }; } &&
17167 { ac_try
='test -s conftest$ac_exeext'
17168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17169 (eval $ac_try) 2>&5
17171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17172 (exit $ac_status); }; }; then
17174 echo "$as_me:$LINENO: result: yes" >&5
17175 echo "${ECHO_T}yes" >&6
17176 echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
17177 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6
17178 if test "$cross_compiling" = yes; then
17179 echo "$as_me:$LINENO: result: buggy" >&5
17180 echo "${ECHO_T}buggy" >&6
17181 buggygetaddrinfo
=yes
17183 cat >conftest.
$ac_ext <<_ACEOF
17186 cat confdefs.h
>>conftest.
$ac_ext
17187 cat >>conftest.
$ac_ext <<_ACEOF
17188 /* end confdefs.h. */
17190 #include <sys/types.h>
17192 #include <string.h>
17193 #include <sys/socket.h>
17194 #include <netinet/in.h>
17198 int passive, gaierr, inet4 = 0, inet6 = 0;
17199 struct addrinfo hints, *ai, *aitop;
17200 char straddr[INET6_ADDRSTRLEN], strport[16];
17202 for (passive = 0; passive <= 1; passive++) {
17203 memset(&hints, 0, sizeof(hints));
17204 hints.ai_family = AF_UNSPEC;
17205 hints.ai_flags = passive ? AI_PASSIVE : 0;
17206 hints.ai_socktype = SOCK_STREAM;
17207 hints.ai_protocol = IPPROTO_TCP;
17208 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
17209 (void)gai_strerror(gaierr);
17212 for (ai = aitop; ai; ai = ai->ai_next) {
17213 if (ai->ai_addr == NULL ||
17214 ai->ai_addrlen == 0 ||
17215 getnameinfo(ai->ai_addr, ai->ai_addrlen,
17216 straddr, sizeof(straddr), strport, sizeof(strport),
17217 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
17220 switch (ai->ai_family) {
17222 if (strcmp(strport, "54321") != 0) {
17226 if (strcmp(straddr, "0.0.0.0") != 0) {
17230 if (strcmp(straddr, "127.0.0.1") != 0) {
17237 if (strcmp(strport, "54321") != 0) {
17241 if (strcmp(straddr, "::") != 0) {
17245 if (strcmp(straddr, "::1") != 0) {
17255 /* another family support? */
17261 if (!(inet4 == 0 || inet4 == 2))
17263 if (!(inet6 == 0 || inet6 == 2))
17267 freeaddrinfo(aitop);
17272 freeaddrinfo(aitop);
17277 rm -f conftest
$ac_exeext
17278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17279 (eval $ac_link) 2>&5
17281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17282 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
17283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17284 (eval $ac_try) 2>&5
17286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17287 (exit $ac_status); }; }; then
17288 echo "$as_me:$LINENO: result: good" >&5
17289 echo "${ECHO_T}good" >&6
17290 buggygetaddrinfo
=no
17292 echo "$as_me: program exited with status $ac_status" >&5
17293 echo "$as_me: failed program was:" >&5
17294 sed 's/^/| /' conftest.
$ac_ext >&5
17296 ( exit $ac_status )
17297 echo "$as_me:$LINENO: result: buggy" >&5
17298 echo "${ECHO_T}buggy" >&6
17299 buggygetaddrinfo
=yes
17301 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
17304 echo "$as_me: failed program was:" >&5
17305 sed 's/^/| /' conftest.
$ac_ext >&5
17308 echo "$as_me:$LINENO: result: no" >&5
17309 echo "${ECHO_T}no" >&6
17310 buggygetaddrinfo
=yes
17313 rm -f conftest.err conftest.
$ac_objext \
17314 conftest
$ac_exeext conftest.
$ac_ext
17316 if test "$buggygetaddrinfo" = "yes"; then
17317 if test "$ipv6" = "yes"; then
17318 echo 'Fatal: You must get working getaddrinfo() function.'
17319 echo ' or you can specify "--disable-ipv6"'.
17324 cat >>confdefs.h
<<\_ACEOF
17325 #define HAVE_GETADDRINFO 1
17330 for ac_func
in getnameinfo
17332 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17333 echo "$as_me:$LINENO: checking for $ac_func" >&5
17334 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17335 if eval "test \"\${$as_ac_var+set}\" = set"; then
17336 echo $ECHO_N "(cached) $ECHO_C" >&6
17338 cat >conftest.
$ac_ext <<_ACEOF
17341 cat confdefs.h
>>conftest.
$ac_ext
17342 cat >>conftest.
$ac_ext <<_ACEOF
17343 /* end confdefs.h. */
17344 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17345 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17346 #define $ac_func innocuous_$ac_func
17348 /* System header to define __stub macros and hopefully few prototypes,
17349 which can conflict with char $ac_func (); below.
17350 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17351 <limits.h> exists even on freestanding compilers. */
17354 # include <limits.h>
17356 # include <assert.h>
17361 /* Override any gcc2 internal prototype to avoid an error. */
17366 /* We use char because int might match the return type of a gcc2
17367 builtin and then its argument prototype would still apply. */
17369 /* The GNU C library defines this for functions which it implements
17370 to always fail with ENOSYS. Some functions are actually named
17371 something starting with __ and the normal name is an alias. */
17372 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17375 char (*f) () = $ac_func;
17384 return f != $ac_func;
17389 rm -f conftest.
$ac_objext conftest
$ac_exeext
17390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17391 (eval $ac_link) 2>conftest.er1
17393 grep -v '^ *+' conftest.er1
>conftest.err
17395 cat conftest.err
>&5
17396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17397 (exit $ac_status); } &&
17398 { ac_try
='test -z "$ac_c_werror_flag"
17399 || test ! -s conftest.err'
17400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17401 (eval $ac_try) 2>&5
17403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17404 (exit $ac_status); }; } &&
17405 { ac_try
='test -s conftest$ac_exeext'
17406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17407 (eval $ac_try) 2>&5
17409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17410 (exit $ac_status); }; }; then
17411 eval "$as_ac_var=yes"
17413 echo "$as_me: failed program was:" >&5
17414 sed 's/^/| /' conftest.
$ac_ext >&5
17416 eval "$as_ac_var=no"
17418 rm -f conftest.err conftest.
$ac_objext \
17419 conftest
$ac_exeext conftest.
$ac_ext
17421 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17422 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17423 if test `eval echo '${'$as_ac_var'}'` = yes; then
17424 cat >>confdefs.h
<<_ACEOF
17425 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17432 # checks for structures
17433 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
17434 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
17435 if test "${ac_cv_header_time+set}" = set; then
17436 echo $ECHO_N "(cached) $ECHO_C" >&6
17438 cat >conftest.
$ac_ext <<_ACEOF
17441 cat confdefs.h
>>conftest.
$ac_ext
17442 cat >>conftest.
$ac_ext <<_ACEOF
17443 /* end confdefs.h. */
17444 #include <sys/types.h>
17445 #include <sys/time.h>
17451 if ((struct tm *) 0)
17457 rm -f conftest.
$ac_objext
17458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17459 (eval $ac_compile) 2>conftest.er1
17461 grep -v '^ *+' conftest.er1
>conftest.err
17463 cat conftest.err
>&5
17464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17465 (exit $ac_status); } &&
17466 { ac_try
='test -z "$ac_c_werror_flag"
17467 || test ! -s conftest.err'
17468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17469 (eval $ac_try) 2>&5
17471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17472 (exit $ac_status); }; } &&
17473 { ac_try
='test -s conftest.$ac_objext'
17474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17475 (eval $ac_try) 2>&5
17477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17478 (exit $ac_status); }; }; then
17479 ac_cv_header_time
=yes
17481 echo "$as_me: failed program was:" >&5
17482 sed 's/^/| /' conftest.
$ac_ext >&5
17484 ac_cv_header_time
=no
17486 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17488 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
17489 echo "${ECHO_T}$ac_cv_header_time" >&6
17490 if test $ac_cv_header_time = yes; then
17492 cat >>confdefs.h
<<\_ACEOF
17493 #define TIME_WITH_SYS_TIME 1
17498 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17499 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
17500 if test "${ac_cv_struct_tm+set}" = set; then
17501 echo $ECHO_N "(cached) $ECHO_C" >&6
17503 cat >conftest.
$ac_ext <<_ACEOF
17506 cat confdefs.h
>>conftest.
$ac_ext
17507 cat >>conftest.
$ac_ext <<_ACEOF
17508 /* end confdefs.h. */
17509 #include <sys/types.h>
17515 struct tm *tp; tp->tm_sec;
17520 rm -f conftest.
$ac_objext
17521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17522 (eval $ac_compile) 2>conftest.er1
17524 grep -v '^ *+' conftest.er1
>conftest.err
17526 cat conftest.err
>&5
17527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17528 (exit $ac_status); } &&
17529 { ac_try
='test -z "$ac_c_werror_flag"
17530 || test ! -s conftest.err'
17531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17532 (eval $ac_try) 2>&5
17534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17535 (exit $ac_status); }; } &&
17536 { ac_try
='test -s conftest.$ac_objext'
17537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17538 (eval $ac_try) 2>&5
17540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17541 (exit $ac_status); }; }; then
17542 ac_cv_struct_tm
=time.h
17544 echo "$as_me: failed program was:" >&5
17545 sed 's/^/| /' conftest.
$ac_ext >&5
17547 ac_cv_struct_tm
=sys
/time.h
17549 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17551 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17552 echo "${ECHO_T}$ac_cv_struct_tm" >&6
17553 if test $ac_cv_struct_tm = sys
/time.h
; then
17555 cat >>confdefs.h
<<\_ACEOF
17556 #define TM_IN_SYS_TIME 1
17561 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
17562 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
17563 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
17564 echo $ECHO_N "(cached) $ECHO_C" >&6
17566 cat >conftest.
$ac_ext <<_ACEOF
17569 cat confdefs.h
>>conftest.
$ac_ext
17570 cat >>conftest.
$ac_ext <<_ACEOF
17571 /* end confdefs.h. */
17572 #include <sys/types.h>
17573 #include <$ac_cv_struct_tm>
17579 static struct tm ac_aggr;
17580 if (ac_aggr.tm_zone)
17586 rm -f conftest.
$ac_objext
17587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17588 (eval $ac_compile) 2>conftest.er1
17590 grep -v '^ *+' conftest.er1
>conftest.err
17592 cat conftest.err
>&5
17593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17594 (exit $ac_status); } &&
17595 { ac_try
='test -z "$ac_c_werror_flag"
17596 || test ! -s conftest.err'
17597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17598 (eval $ac_try) 2>&5
17600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17601 (exit $ac_status); }; } &&
17602 { ac_try
='test -s conftest.$ac_objext'
17603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17604 (eval $ac_try) 2>&5
17606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17607 (exit $ac_status); }; }; then
17608 ac_cv_member_struct_tm_tm_zone
=yes
17610 echo "$as_me: failed program was:" >&5
17611 sed 's/^/| /' conftest.
$ac_ext >&5
17613 cat >conftest.
$ac_ext <<_ACEOF
17616 cat confdefs.h
>>conftest.
$ac_ext
17617 cat >>conftest.
$ac_ext <<_ACEOF
17618 /* end confdefs.h. */
17619 #include <sys/types.h>
17620 #include <$ac_cv_struct_tm>
17626 static struct tm ac_aggr;
17627 if (sizeof ac_aggr.tm_zone)
17633 rm -f conftest.
$ac_objext
17634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17635 (eval $ac_compile) 2>conftest.er1
17637 grep -v '^ *+' conftest.er1
>conftest.err
17639 cat conftest.err
>&5
17640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17641 (exit $ac_status); } &&
17642 { ac_try
='test -z "$ac_c_werror_flag"
17643 || test ! -s conftest.err'
17644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17645 (eval $ac_try) 2>&5
17647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17648 (exit $ac_status); }; } &&
17649 { ac_try
='test -s conftest.$ac_objext'
17650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17651 (eval $ac_try) 2>&5
17653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17654 (exit $ac_status); }; }; then
17655 ac_cv_member_struct_tm_tm_zone
=yes
17657 echo "$as_me: failed program was:" >&5
17658 sed 's/^/| /' conftest.
$ac_ext >&5
17660 ac_cv_member_struct_tm_tm_zone
=no
17662 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17664 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17666 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
17667 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
17668 if test $ac_cv_member_struct_tm_tm_zone = yes; then
17670 cat >>confdefs.h
<<_ACEOF
17671 #define HAVE_STRUCT_TM_TM_ZONE 1
17677 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
17679 cat >>confdefs.h
<<\_ACEOF
17680 #define HAVE_TM_ZONE 1
17684 echo "$as_me:$LINENO: checking for tzname" >&5
17685 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
17686 if test "${ac_cv_var_tzname+set}" = set; then
17687 echo $ECHO_N "(cached) $ECHO_C" >&6
17689 cat >conftest.
$ac_ext <<_ACEOF
17692 cat confdefs.h
>>conftest.
$ac_ext
17693 cat >>conftest.
$ac_ext <<_ACEOF
17694 /* end confdefs.h. */
17696 #ifndef tzname /* For SGI. */
17697 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
17708 rm -f conftest.
$ac_objext conftest
$ac_exeext
17709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17710 (eval $ac_link) 2>conftest.er1
17712 grep -v '^ *+' conftest.er1
>conftest.err
17714 cat conftest.err
>&5
17715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17716 (exit $ac_status); } &&
17717 { ac_try
='test -z "$ac_c_werror_flag"
17718 || test ! -s conftest.err'
17719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17720 (eval $ac_try) 2>&5
17722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17723 (exit $ac_status); }; } &&
17724 { ac_try
='test -s conftest$ac_exeext'
17725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17726 (eval $ac_try) 2>&5
17728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17729 (exit $ac_status); }; }; then
17730 ac_cv_var_tzname
=yes
17732 echo "$as_me: failed program was:" >&5
17733 sed 's/^/| /' conftest.
$ac_ext >&5
17735 ac_cv_var_tzname
=no
17737 rm -f conftest.err conftest.
$ac_objext \
17738 conftest
$ac_exeext conftest.
$ac_ext
17740 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
17741 echo "${ECHO_T}$ac_cv_var_tzname" >&6
17742 if test $ac_cv_var_tzname = yes; then
17744 cat >>confdefs.h
<<\_ACEOF
17745 #define HAVE_TZNAME 1
17751 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
17752 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
17753 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
17754 echo $ECHO_N "(cached) $ECHO_C" >&6
17756 cat >conftest.
$ac_ext <<_ACEOF
17759 cat confdefs.h
>>conftest.
$ac_ext
17760 cat >>conftest.
$ac_ext <<_ACEOF
17761 /* end confdefs.h. */
17762 $ac_includes_default
17766 static struct stat ac_aggr;
17767 if (ac_aggr.st_rdev)
17773 rm -f conftest.
$ac_objext
17774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17775 (eval $ac_compile) 2>conftest.er1
17777 grep -v '^ *+' conftest.er1
>conftest.err
17779 cat conftest.err
>&5
17780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17781 (exit $ac_status); } &&
17782 { ac_try
='test -z "$ac_c_werror_flag"
17783 || test ! -s conftest.err'
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); }; } &&
17789 { ac_try
='test -s conftest.$ac_objext'
17790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17791 (eval $ac_try) 2>&5
17793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17794 (exit $ac_status); }; }; then
17795 ac_cv_member_struct_stat_st_rdev
=yes
17797 echo "$as_me: failed program was:" >&5
17798 sed 's/^/| /' conftest.
$ac_ext >&5
17800 cat >conftest.
$ac_ext <<_ACEOF
17803 cat confdefs.h
>>conftest.
$ac_ext
17804 cat >>conftest.
$ac_ext <<_ACEOF
17805 /* end confdefs.h. */
17806 $ac_includes_default
17810 static struct stat ac_aggr;
17811 if (sizeof ac_aggr.st_rdev)
17817 rm -f conftest.
$ac_objext
17818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17819 (eval $ac_compile) 2>conftest.er1
17821 grep -v '^ *+' conftest.er1
>conftest.err
17823 cat conftest.err
>&5
17824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17825 (exit $ac_status); } &&
17826 { ac_try
='test -z "$ac_c_werror_flag"
17827 || test ! -s conftest.err'
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); }; } &&
17833 { ac_try
='test -s conftest.$ac_objext'
17834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17835 (eval $ac_try) 2>&5
17837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17838 (exit $ac_status); }; }; then
17839 ac_cv_member_struct_stat_st_rdev
=yes
17841 echo "$as_me: failed program was:" >&5
17842 sed 's/^/| /' conftest.
$ac_ext >&5
17844 ac_cv_member_struct_stat_st_rdev
=no
17846 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17848 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17850 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
17851 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
17852 if test $ac_cv_member_struct_stat_st_rdev = yes; then
17854 cat >>confdefs.h
<<_ACEOF
17855 #define HAVE_STRUCT_STAT_ST_RDEV 1
17861 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
17862 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
17863 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
17864 echo $ECHO_N "(cached) $ECHO_C" >&6
17866 cat >conftest.
$ac_ext <<_ACEOF
17869 cat confdefs.h
>>conftest.
$ac_ext
17870 cat >>conftest.
$ac_ext <<_ACEOF
17871 /* end confdefs.h. */
17872 $ac_includes_default
17876 static struct stat ac_aggr;
17877 if (ac_aggr.st_blksize)
17883 rm -f conftest.
$ac_objext
17884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17885 (eval $ac_compile) 2>conftest.er1
17887 grep -v '^ *+' conftest.er1
>conftest.err
17889 cat conftest.err
>&5
17890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17891 (exit $ac_status); } &&
17892 { ac_try
='test -z "$ac_c_werror_flag"
17893 || test ! -s conftest.err'
17894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17895 (eval $ac_try) 2>&5
17897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17898 (exit $ac_status); }; } &&
17899 { ac_try
='test -s conftest.$ac_objext'
17900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17901 (eval $ac_try) 2>&5
17903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17904 (exit $ac_status); }; }; then
17905 ac_cv_member_struct_stat_st_blksize
=yes
17907 echo "$as_me: failed program was:" >&5
17908 sed 's/^/| /' conftest.
$ac_ext >&5
17910 cat >conftest.
$ac_ext <<_ACEOF
17913 cat confdefs.h
>>conftest.
$ac_ext
17914 cat >>conftest.
$ac_ext <<_ACEOF
17915 /* end confdefs.h. */
17916 $ac_includes_default
17920 static struct stat ac_aggr;
17921 if (sizeof ac_aggr.st_blksize)
17927 rm -f conftest.
$ac_objext
17928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17929 (eval $ac_compile) 2>conftest.er1
17931 grep -v '^ *+' conftest.er1
>conftest.err
17933 cat conftest.err
>&5
17934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17935 (exit $ac_status); } &&
17936 { ac_try
='test -z "$ac_c_werror_flag"
17937 || test ! -s conftest.err'
17938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17939 (eval $ac_try) 2>&5
17941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17942 (exit $ac_status); }; } &&
17943 { ac_try
='test -s conftest.$ac_objext'
17944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17945 (eval $ac_try) 2>&5
17947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17948 (exit $ac_status); }; }; then
17949 ac_cv_member_struct_stat_st_blksize
=yes
17951 echo "$as_me: failed program was:" >&5
17952 sed 's/^/| /' conftest.
$ac_ext >&5
17954 ac_cv_member_struct_stat_st_blksize
=no
17956 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17958 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17960 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
17961 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
17962 if test $ac_cv_member_struct_stat_st_blksize = yes; then
17964 cat >>confdefs.h
<<_ACEOF
17965 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
17971 echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
17972 echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6
17973 if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
17974 echo $ECHO_N "(cached) $ECHO_C" >&6
17976 cat >conftest.
$ac_ext <<_ACEOF
17979 cat confdefs.h
>>conftest.
$ac_ext
17980 cat >>conftest.
$ac_ext <<_ACEOF
17981 /* end confdefs.h. */
17982 $ac_includes_default
17986 static struct stat ac_aggr;
17987 if (ac_aggr.st_flags)
17993 rm -f conftest.
$ac_objext
17994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17995 (eval $ac_compile) 2>conftest.er1
17997 grep -v '^ *+' conftest.er1
>conftest.err
17999 cat conftest.err
>&5
18000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18001 (exit $ac_status); } &&
18002 { ac_try
='test -z "$ac_c_werror_flag"
18003 || test ! -s conftest.err'
18004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18005 (eval $ac_try) 2>&5
18007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18008 (exit $ac_status); }; } &&
18009 { ac_try
='test -s conftest.$ac_objext'
18010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18011 (eval $ac_try) 2>&5
18013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18014 (exit $ac_status); }; }; then
18015 ac_cv_member_struct_stat_st_flags
=yes
18017 echo "$as_me: failed program was:" >&5
18018 sed 's/^/| /' conftest.
$ac_ext >&5
18020 cat >conftest.
$ac_ext <<_ACEOF
18023 cat confdefs.h
>>conftest.
$ac_ext
18024 cat >>conftest.
$ac_ext <<_ACEOF
18025 /* end confdefs.h. */
18026 $ac_includes_default
18030 static struct stat ac_aggr;
18031 if (sizeof ac_aggr.st_flags)
18037 rm -f conftest.
$ac_objext
18038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18039 (eval $ac_compile) 2>conftest.er1
18041 grep -v '^ *+' conftest.er1
>conftest.err
18043 cat conftest.err
>&5
18044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18045 (exit $ac_status); } &&
18046 { ac_try
='test -z "$ac_c_werror_flag"
18047 || test ! -s conftest.err'
18048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18049 (eval $ac_try) 2>&5
18051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18052 (exit $ac_status); }; } &&
18053 { ac_try
='test -s conftest.$ac_objext'
18054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18055 (eval $ac_try) 2>&5
18057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18058 (exit $ac_status); }; }; then
18059 ac_cv_member_struct_stat_st_flags
=yes
18061 echo "$as_me: failed program was:" >&5
18062 sed 's/^/| /' conftest.
$ac_ext >&5
18064 ac_cv_member_struct_stat_st_flags
=no
18066 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18068 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18070 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
18071 echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6
18072 if test $ac_cv_member_struct_stat_st_flags = yes; then
18074 cat >>confdefs.h
<<_ACEOF
18075 #define HAVE_STRUCT_STAT_ST_FLAGS 1
18081 echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
18082 echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6
18083 if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
18084 echo $ECHO_N "(cached) $ECHO_C" >&6
18086 cat >conftest.
$ac_ext <<_ACEOF
18089 cat confdefs.h
>>conftest.
$ac_ext
18090 cat >>conftest.
$ac_ext <<_ACEOF
18091 /* end confdefs.h. */
18092 $ac_includes_default
18096 static struct stat ac_aggr;
18097 if (ac_aggr.st_gen)
18103 rm -f conftest.
$ac_objext
18104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18105 (eval $ac_compile) 2>conftest.er1
18107 grep -v '^ *+' conftest.er1
>conftest.err
18109 cat conftest.err
>&5
18110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18111 (exit $ac_status); } &&
18112 { ac_try
='test -z "$ac_c_werror_flag"
18113 || test ! -s conftest.err'
18114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18115 (eval $ac_try) 2>&5
18117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18118 (exit $ac_status); }; } &&
18119 { ac_try
='test -s conftest.$ac_objext'
18120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18121 (eval $ac_try) 2>&5
18123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18124 (exit $ac_status); }; }; then
18125 ac_cv_member_struct_stat_st_gen
=yes
18127 echo "$as_me: failed program was:" >&5
18128 sed 's/^/| /' conftest.
$ac_ext >&5
18130 cat >conftest.
$ac_ext <<_ACEOF
18133 cat confdefs.h
>>conftest.
$ac_ext
18134 cat >>conftest.
$ac_ext <<_ACEOF
18135 /* end confdefs.h. */
18136 $ac_includes_default
18140 static struct stat ac_aggr;
18141 if (sizeof ac_aggr.st_gen)
18147 rm -f conftest.
$ac_objext
18148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18149 (eval $ac_compile) 2>conftest.er1
18151 grep -v '^ *+' conftest.er1
>conftest.err
18153 cat conftest.err
>&5
18154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18155 (exit $ac_status); } &&
18156 { ac_try
='test -z "$ac_c_werror_flag"
18157 || test ! -s conftest.err'
18158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18159 (eval $ac_try) 2>&5
18161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18162 (exit $ac_status); }; } &&
18163 { ac_try
='test -s conftest.$ac_objext'
18164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18165 (eval $ac_try) 2>&5
18167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18168 (exit $ac_status); }; }; then
18169 ac_cv_member_struct_stat_st_gen
=yes
18171 echo "$as_me: failed program was:" >&5
18172 sed 's/^/| /' conftest.
$ac_ext >&5
18174 ac_cv_member_struct_stat_st_gen
=no
18176 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18178 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18180 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
18181 echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6
18182 if test $ac_cv_member_struct_stat_st_gen = yes; then
18184 cat >>confdefs.h
<<_ACEOF
18185 #define HAVE_STRUCT_STAT_ST_GEN 1
18191 echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
18192 echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6
18193 if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
18194 echo $ECHO_N "(cached) $ECHO_C" >&6
18196 cat >conftest.
$ac_ext <<_ACEOF
18199 cat confdefs.h
>>conftest.
$ac_ext
18200 cat >>conftest.
$ac_ext <<_ACEOF
18201 /* end confdefs.h. */
18202 $ac_includes_default
18206 static struct stat ac_aggr;
18207 if (ac_aggr.st_birthtime)
18213 rm -f conftest.
$ac_objext
18214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18215 (eval $ac_compile) 2>conftest.er1
18217 grep -v '^ *+' conftest.er1
>conftest.err
18219 cat conftest.err
>&5
18220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18221 (exit $ac_status); } &&
18222 { ac_try
='test -z "$ac_c_werror_flag"
18223 || test ! -s conftest.err'
18224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18225 (eval $ac_try) 2>&5
18227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18228 (exit $ac_status); }; } &&
18229 { ac_try
='test -s conftest.$ac_objext'
18230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18231 (eval $ac_try) 2>&5
18233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18234 (exit $ac_status); }; }; then
18235 ac_cv_member_struct_stat_st_birthtime
=yes
18237 echo "$as_me: failed program was:" >&5
18238 sed 's/^/| /' conftest.
$ac_ext >&5
18240 cat >conftest.
$ac_ext <<_ACEOF
18243 cat confdefs.h
>>conftest.
$ac_ext
18244 cat >>conftest.
$ac_ext <<_ACEOF
18245 /* end confdefs.h. */
18246 $ac_includes_default
18250 static struct stat ac_aggr;
18251 if (sizeof ac_aggr.st_birthtime)
18257 rm -f conftest.
$ac_objext
18258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18259 (eval $ac_compile) 2>conftest.er1
18261 grep -v '^ *+' conftest.er1
>conftest.err
18263 cat conftest.err
>&5
18264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18265 (exit $ac_status); } &&
18266 { ac_try
='test -z "$ac_c_werror_flag"
18267 || test ! -s conftest.err'
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); }; } &&
18273 { ac_try
='test -s conftest.$ac_objext'
18274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18275 (eval $ac_try) 2>&5
18277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18278 (exit $ac_status); }; }; then
18279 ac_cv_member_struct_stat_st_birthtime
=yes
18281 echo "$as_me: failed program was:" >&5
18282 sed 's/^/| /' conftest.
$ac_ext >&5
18284 ac_cv_member_struct_stat_st_birthtime
=no
18286 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18288 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18290 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
18291 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6
18292 if test $ac_cv_member_struct_stat_st_birthtime = yes; then
18294 cat >>confdefs.h
<<_ACEOF
18295 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
18301 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
18302 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
18303 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
18304 echo $ECHO_N "(cached) $ECHO_C" >&6
18306 cat >conftest.
$ac_ext <<_ACEOF
18309 cat confdefs.h
>>conftest.
$ac_ext
18310 cat >>conftest.
$ac_ext <<_ACEOF
18311 /* end confdefs.h. */
18312 $ac_includes_default
18316 static struct stat ac_aggr;
18317 if (ac_aggr.st_blocks)
18323 rm -f conftest.
$ac_objext
18324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18325 (eval $ac_compile) 2>conftest.er1
18327 grep -v '^ *+' conftest.er1
>conftest.err
18329 cat conftest.err
>&5
18330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18331 (exit $ac_status); } &&
18332 { ac_try
='test -z "$ac_c_werror_flag"
18333 || test ! -s conftest.err'
18334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18335 (eval $ac_try) 2>&5
18337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18338 (exit $ac_status); }; } &&
18339 { ac_try
='test -s conftest.$ac_objext'
18340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18341 (eval $ac_try) 2>&5
18343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18344 (exit $ac_status); }; }; then
18345 ac_cv_member_struct_stat_st_blocks
=yes
18347 echo "$as_me: failed program was:" >&5
18348 sed 's/^/| /' conftest.
$ac_ext >&5
18350 cat >conftest.
$ac_ext <<_ACEOF
18353 cat confdefs.h
>>conftest.
$ac_ext
18354 cat >>conftest.
$ac_ext <<_ACEOF
18355 /* end confdefs.h. */
18356 $ac_includes_default
18360 static struct stat ac_aggr;
18361 if (sizeof ac_aggr.st_blocks)
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
18389 ac_cv_member_struct_stat_st_blocks
=yes
18391 echo "$as_me: failed program was:" >&5
18392 sed 's/^/| /' conftest.
$ac_ext >&5
18394 ac_cv_member_struct_stat_st_blocks
=no
18396 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18398 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18400 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
18401 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
18402 if test $ac_cv_member_struct_stat_st_blocks = yes; then
18404 cat >>confdefs.h
<<_ACEOF
18405 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
18409 cat >>confdefs.h
<<\_ACEOF
18410 #define HAVE_ST_BLOCKS 1
18415 "fileblocks.$ac_objext" | \
18416 *" fileblocks.$ac_objext" | \
18417 "fileblocks.$ac_objext "* | \
18418 *" fileblocks.$ac_objext "* ) ;;
18419 *) LIBOBJS
="$LIBOBJS fileblocks.$ac_objext" ;;
18426 echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
18427 echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6
18428 if test "${ac_cv_header_time_altzone+set}" = set; then
18429 echo $ECHO_N "(cached) $ECHO_C" >&6
18431 cat >conftest.
$ac_ext <<_ACEOF
18434 cat confdefs.h
>>conftest.
$ac_ext
18435 cat >>conftest.
$ac_ext <<_ACEOF
18436 /* end confdefs.h. */
18446 rm -f conftest.
$ac_objext
18447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18448 (eval $ac_compile) 2>conftest.er1
18450 grep -v '^ *+' conftest.er1
>conftest.err
18452 cat conftest.err
>&5
18453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18454 (exit $ac_status); } &&
18455 { ac_try
='test -z "$ac_c_werror_flag"
18456 || test ! -s conftest.err'
18457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18458 (eval $ac_try) 2>&5
18460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18461 (exit $ac_status); }; } &&
18462 { ac_try
='test -s conftest.$ac_objext'
18463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18464 (eval $ac_try) 2>&5
18466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18467 (exit $ac_status); }; }; then
18468 ac_cv_header_time_altzone
=yes
18470 echo "$as_me: failed program was:" >&5
18471 sed 's/^/| /' conftest.
$ac_ext >&5
18473 ac_cv_header_time_altzone
=no
18475 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18478 echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
18479 echo "${ECHO_T}$ac_cv_header_time_altzone" >&6
18480 if test $ac_cv_header_time_altzone = yes; then
18482 cat >>confdefs.h
<<\_ACEOF
18483 #define HAVE_ALTZONE 1
18489 echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
18490 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6
18491 cat >conftest.
$ac_ext <<_ACEOF
18494 cat confdefs.h
>>conftest.
$ac_ext
18495 cat >>conftest.
$ac_ext <<_ACEOF
18496 /* end confdefs.h. */
18498 #include <sys/types.h>
18499 #include <sys/select.h>
18500 #include <sys/time.h>
18510 rm -f conftest.
$ac_objext
18511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18512 (eval $ac_compile) 2>conftest.er1
18514 grep -v '^ *+' conftest.er1
>conftest.err
18516 cat conftest.err
>&5
18517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18518 (exit $ac_status); } &&
18519 { ac_try
='test -z "$ac_c_werror_flag"
18520 || test ! -s conftest.err'
18521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18522 (eval $ac_try) 2>&5
18524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18525 (exit $ac_status); }; } &&
18526 { ac_try
='test -s conftest.$ac_objext'
18527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18528 (eval $ac_try) 2>&5
18530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18531 (exit $ac_status); }; }; then
18534 cat >>confdefs.h
<<\_ACEOF
18535 #define SYS_SELECT_WITH_SYS_TIME 1
18541 echo "$as_me: failed program was:" >&5
18542 sed 's/^/| /' conftest.
$ac_ext >&5
18545 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18546 echo "$as_me:$LINENO: result: $was_it_defined" >&5
18547 echo "${ECHO_T}$was_it_defined" >&6
18549 echo "$as_me:$LINENO: checking for addrinfo" >&5
18550 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6
18551 if test "${ac_cv_struct_addrinfo+set}" = set; then
18552 echo $ECHO_N "(cached) $ECHO_C" >&6
18554 cat >conftest.
$ac_ext <<_ACEOF
18557 cat confdefs.h
>>conftest.
$ac_ext
18558 cat >>conftest.
$ac_ext <<_ACEOF
18559 /* end confdefs.h. */
18561 # include <netdb.h>
18570 rm -f conftest.
$ac_objext
18571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18572 (eval $ac_compile) 2>conftest.er1
18574 grep -v '^ *+' conftest.er1
>conftest.err
18576 cat conftest.err
>&5
18577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18578 (exit $ac_status); } &&
18579 { ac_try
='test -z "$ac_c_werror_flag"
18580 || test ! -s conftest.err'
18581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18582 (eval $ac_try) 2>&5
18584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18585 (exit $ac_status); }; } &&
18586 { ac_try
='test -s conftest.$ac_objext'
18587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18588 (eval $ac_try) 2>&5
18590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18591 (exit $ac_status); }; }; then
18592 ac_cv_struct_addrinfo
=yes
18594 echo "$as_me: failed program was:" >&5
18595 sed 's/^/| /' conftest.
$ac_ext >&5
18597 ac_cv_struct_addrinfo
=no
18599 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18602 echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
18603 echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6
18604 if test $ac_cv_struct_addrinfo = yes; then
18606 cat >>confdefs.h
<<\_ACEOF
18607 #define HAVE_ADDRINFO 1
18612 echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
18613 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6
18614 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
18615 echo $ECHO_N "(cached) $ECHO_C" >&6
18617 cat >conftest.
$ac_ext <<_ACEOF
18620 cat confdefs.h
>>conftest.
$ac_ext
18621 cat >>conftest.
$ac_ext <<_ACEOF
18622 /* end confdefs.h. */
18624 # include <sys/types.h>
18625 # include <sys/socket.h>
18629 struct sockaddr_storage s
18634 rm -f conftest.
$ac_objext
18635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18636 (eval $ac_compile) 2>conftest.er1
18638 grep -v '^ *+' conftest.er1
>conftest.err
18640 cat conftest.err
>&5
18641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18642 (exit $ac_status); } &&
18643 { ac_try
='test -z "$ac_c_werror_flag"
18644 || test ! -s conftest.err'
18645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18646 (eval $ac_try) 2>&5
18648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18649 (exit $ac_status); }; } &&
18650 { ac_try
='test -s conftest.$ac_objext'
18651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18652 (eval $ac_try) 2>&5
18654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18655 (exit $ac_status); }; }; then
18656 ac_cv_struct_sockaddr_storage
=yes
18658 echo "$as_me: failed program was:" >&5
18659 sed 's/^/| /' conftest.
$ac_ext >&5
18661 ac_cv_struct_sockaddr_storage
=no
18663 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18666 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
18667 echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6
18668 if test $ac_cv_struct_sockaddr_storage = yes; then
18670 cat >>confdefs.h
<<\_ACEOF
18671 #define HAVE_SOCKADDR_STORAGE 1
18676 # checks for compiler characteristics
18679 echo "$as_me:$LINENO: checking whether char is unsigned" >&5
18680 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
18681 if test "${ac_cv_c_char_unsigned+set}" = set; then
18682 echo $ECHO_N "(cached) $ECHO_C" >&6
18684 cat >conftest.
$ac_ext <<_ACEOF
18687 cat confdefs.h
>>conftest.
$ac_ext
18688 cat >>conftest.
$ac_ext <<_ACEOF
18689 /* end confdefs.h. */
18690 $ac_includes_default
18694 static int test_array [1 - 2 * !(((char) -1) < 0)];
18701 rm -f conftest.
$ac_objext
18702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18703 (eval $ac_compile) 2>conftest.er1
18705 grep -v '^ *+' conftest.er1
>conftest.err
18707 cat conftest.err
>&5
18708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18709 (exit $ac_status); } &&
18710 { ac_try
='test -z "$ac_c_werror_flag"
18711 || test ! -s conftest.err'
18712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18713 (eval $ac_try) 2>&5
18715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18716 (exit $ac_status); }; } &&
18717 { ac_try
='test -s conftest.$ac_objext'
18718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18719 (eval $ac_try) 2>&5
18721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18722 (exit $ac_status); }; }; then
18723 ac_cv_c_char_unsigned
=no
18725 echo "$as_me: failed program was:" >&5
18726 sed 's/^/| /' conftest.
$ac_ext >&5
18728 ac_cv_c_char_unsigned
=yes
18730 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18732 echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
18733 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
18734 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
18735 cat >>confdefs.h
<<\_ACEOF
18736 #define __CHAR_UNSIGNED__ 1
18741 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18742 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
18743 if test "${ac_cv_c_const+set}" = set; then
18744 echo $ECHO_N "(cached) $ECHO_C" >&6
18746 cat >conftest.
$ac_ext <<_ACEOF
18749 cat confdefs.h
>>conftest.
$ac_ext
18750 cat >>conftest.
$ac_ext <<_ACEOF
18751 /* end confdefs.h. */
18756 /* FIXME: Include the comments suggested by Paul. */
18757 #ifndef __cplusplus
18758 /* Ultrix mips cc rejects this. */
18759 typedef int charset[2];
18761 /* SunOS 4.1.1 cc rejects this. */
18762 char const *const *ccp;
18764 /* NEC SVR4.0.2 mips cc rejects this. */
18765 struct point {int x, y;};
18766 static struct point const zero = {0,0};
18767 /* AIX XL C 1.02.0.0 rejects this.
18768 It does not let you subtract one const X* pointer from another in
18769 an arm of an if-expression whose if-part is not a constant
18771 const char *g = "string";
18772 ccp = &g + (g ? g-g : 0);
18773 /* HPUX 7.0 cc rejects these. */
18776 ccp = (char const *const *) p;
18777 { /* SCO 3.2v4 cc rejects this. */
18779 char const *s = 0 ? (char *) 0 : (char const *) 0;
18783 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18784 int x[] = {25, 17};
18785 const int *foo = &x[0];
18788 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18789 typedef const int *iptr;
18793 { /* AIX XL C 1.02.0.0 rejects this saying
18794 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18795 struct s { int j; const int *ap[3]; };
18796 struct s *b; b->j = 5;
18798 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18799 const int foo = 10;
18807 rm -f conftest.
$ac_objext
18808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18809 (eval $ac_compile) 2>conftest.er1
18811 grep -v '^ *+' conftest.er1
>conftest.err
18813 cat conftest.err
>&5
18814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18815 (exit $ac_status); } &&
18816 { ac_try
='test -z "$ac_c_werror_flag"
18817 || test ! -s conftest.err'
18818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18819 (eval $ac_try) 2>&5
18821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18822 (exit $ac_status); }; } &&
18823 { ac_try
='test -s conftest.$ac_objext'
18824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18825 (eval $ac_try) 2>&5
18827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18828 (exit $ac_status); }; }; then
18831 echo "$as_me: failed program was:" >&5
18832 sed 's/^/| /' conftest.
$ac_ext >&5
18836 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18838 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18839 echo "${ECHO_T}$ac_cv_c_const" >&6
18840 if test $ac_cv_c_const = no
; then
18842 cat >>confdefs.h
<<\_ACEOF
18850 echo "$as_me:$LINENO: checking for working volatile" >&5
18851 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
18852 cat >conftest.
$ac_ext <<_ACEOF
18855 cat confdefs.h
>>conftest.
$ac_ext
18856 cat >>conftest.
$ac_ext <<_ACEOF
18857 /* end confdefs.h. */
18862 volatile int x; x = 0;
18867 rm -f conftest.
$ac_objext
18868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18869 (eval $ac_compile) 2>conftest.er1
18871 grep -v '^ *+' conftest.er1
>conftest.err
18873 cat conftest.err
>&5
18874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18875 (exit $ac_status); } &&
18876 { ac_try
='test -z "$ac_c_werror_flag"
18877 || test ! -s conftest.err'
18878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18879 (eval $ac_try) 2>&5
18881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18882 (exit $ac_status); }; } &&
18883 { ac_try
='test -s conftest.$ac_objext'
18884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18885 (eval $ac_try) 2>&5
18887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18888 (exit $ac_status); }; }; then
18891 echo "$as_me: failed program was:" >&5
18892 sed 's/^/| /' conftest.
$ac_ext >&5
18895 cat >>confdefs.h
<<\_ACEOF
18901 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18902 echo "$as_me:$LINENO: result: $works" >&5
18903 echo "${ECHO_T}$works" >&6
18906 echo "$as_me:$LINENO: checking for working signed char" >&5
18907 echo $ECHO_N "checking for working signed char... $ECHO_C" >&6
18908 cat >conftest.
$ac_ext <<_ACEOF
18911 cat confdefs.h
>>conftest.
$ac_ext
18912 cat >>conftest.
$ac_ext <<_ACEOF
18913 /* end confdefs.h. */
18923 rm -f conftest.
$ac_objext
18924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18925 (eval $ac_compile) 2>conftest.er1
18927 grep -v '^ *+' conftest.er1
>conftest.err
18929 cat conftest.err
>&5
18930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18931 (exit $ac_status); } &&
18932 { ac_try
='test -z "$ac_c_werror_flag"
18933 || test ! -s conftest.err'
18934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18935 (eval $ac_try) 2>&5
18937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18938 (exit $ac_status); }; } &&
18939 { ac_try
='test -s conftest.$ac_objext'
18940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18941 (eval $ac_try) 2>&5
18943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18944 (exit $ac_status); }; }; then
18947 echo "$as_me: failed program was:" >&5
18948 sed 's/^/| /' conftest.
$ac_ext >&5
18951 cat >>confdefs.h
<<\_ACEOF
18957 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18958 echo "$as_me:$LINENO: result: $works" >&5
18959 echo "${ECHO_T}$works" >&6
18962 echo "$as_me:$LINENO: checking for prototypes" >&5
18963 echo $ECHO_N "checking for prototypes... $ECHO_C" >&6
18964 cat >conftest.
$ac_ext <<_ACEOF
18967 cat confdefs.h
>>conftest.
$ac_ext
18968 cat >>conftest.
$ac_ext <<_ACEOF
18969 /* end confdefs.h. */
18970 int foo(int x) { return 0; }
18979 rm -f conftest.
$ac_objext
18980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18981 (eval $ac_compile) 2>conftest.er1
18983 grep -v '^ *+' conftest.er1
>conftest.err
18985 cat conftest.err
>&5
18986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18987 (exit $ac_status); } &&
18988 { ac_try
='test -z "$ac_c_werror_flag"
18989 || test ! -s conftest.err'
18990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18991 (eval $ac_try) 2>&5
18993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18994 (exit $ac_status); }; } &&
18995 { ac_try
='test -s conftest.$ac_objext'
18996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18997 (eval $ac_try) 2>&5
18999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19000 (exit $ac_status); }; }; then
19003 cat >>confdefs.h
<<\_ACEOF
19004 #define HAVE_PROTOTYPES 1
19007 have_prototypes
=yes
19010 echo "$as_me: failed program was:" >&5
19011 sed 's/^/| /' conftest.
$ac_ext >&5
19014 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19015 echo "$as_me:$LINENO: result: $have_prototypes" >&5
19016 echo "${ECHO_T}$have_prototypes" >&6
19019 echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
19020 echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6
19021 cat >conftest.
$ac_ext <<_ACEOF
19024 cat confdefs.h
>>conftest.
$ac_ext
19025 cat >>conftest.
$ac_ext <<_ACEOF
19026 /* end confdefs.h. */
19028 #include <stdarg.h>
19029 int foo(int x, ...) {
19033 va_arg(va, char *);
19034 va_arg(va, double);
19041 return foo(10, "", 3.14);
19046 rm -f conftest.
$ac_objext
19047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19048 (eval $ac_compile) 2>conftest.er1
19050 grep -v '^ *+' conftest.er1
>conftest.err
19052 cat conftest.err
>&5
19053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19054 (exit $ac_status); } &&
19055 { ac_try
='test -z "$ac_c_werror_flag"
19056 || test ! -s conftest.err'
19057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19058 (eval $ac_try) 2>&5
19060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19061 (exit $ac_status); }; } &&
19062 { ac_try
='test -s conftest.$ac_objext'
19063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19064 (eval $ac_try) 2>&5
19066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19067 (exit $ac_status); }; }; then
19070 cat >>confdefs.h
<<\_ACEOF
19071 #define HAVE_STDARG_PROTOTYPES 1
19077 echo "$as_me: failed program was:" >&5
19078 sed 's/^/| /' conftest.
$ac_ext >&5
19081 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19082 echo "$as_me:$LINENO: result: $works" >&5
19083 echo "${ECHO_T}$works" >&6
19085 # check for socketpair
19086 echo "$as_me:$LINENO: checking for socketpair" >&5
19087 echo $ECHO_N "checking for socketpair... $ECHO_C" >&6
19088 cat >conftest.
$ac_ext <<_ACEOF
19091 cat confdefs.h
>>conftest.
$ac_ext
19092 cat >>conftest.
$ac_ext <<_ACEOF
19093 /* end confdefs.h. */
19095 #include <sys/types.h>
19096 #include <sys/socket.h>
19106 rm -f conftest.
$ac_objext
19107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19108 (eval $ac_compile) 2>conftest.er1
19110 grep -v '^ *+' conftest.er1
>conftest.err
19112 cat conftest.err
>&5
19113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19114 (exit $ac_status); } &&
19115 { ac_try
='test -z "$ac_c_werror_flag"
19116 || test ! -s conftest.err'
19117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19118 (eval $ac_try) 2>&5
19120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19121 (exit $ac_status); }; } &&
19122 { ac_try
='test -s conftest.$ac_objext'
19123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19124 (eval $ac_try) 2>&5
19126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19127 (exit $ac_status); }; }; then
19129 cat >>confdefs.h
<<\_ACEOF
19130 #define HAVE_SOCKETPAIR 1
19133 echo "$as_me:$LINENO: result: yes" >&5
19134 echo "${ECHO_T}yes" >&6
19136 echo "$as_me: failed program was:" >&5
19137 sed 's/^/| /' conftest.
$ac_ext >&5
19139 echo "$as_me:$LINENO: result: no" >&5
19140 echo "${ECHO_T}no" >&6
19143 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19145 # check if sockaddr has sa_len member
19146 echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
19147 echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6
19148 cat >conftest.
$ac_ext <<_ACEOF
19151 cat confdefs.h
>>conftest.
$ac_ext
19152 cat >>conftest.
$ac_ext <<_ACEOF
19153 /* end confdefs.h. */
19154 #include <sys/types.h>
19155 #include <sys/socket.h>
19165 rm -f conftest.
$ac_objext
19166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19167 (eval $ac_compile) 2>conftest.er1
19169 grep -v '^ *+' conftest.er1
>conftest.err
19171 cat conftest.err
>&5
19172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19173 (exit $ac_status); } &&
19174 { ac_try
='test -z "$ac_c_werror_flag"
19175 || test ! -s conftest.err'
19176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19177 (eval $ac_try) 2>&5
19179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19180 (exit $ac_status); }; } &&
19181 { ac_try
='test -s conftest.$ac_objext'
19182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19183 (eval $ac_try) 2>&5
19185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19186 (exit $ac_status); }; }; then
19187 echo "$as_me:$LINENO: result: yes" >&5
19188 echo "${ECHO_T}yes" >&6
19190 cat >>confdefs.h
<<\_ACEOF
19191 #define HAVE_SOCKADDR_SA_LEN 1
19195 echo "$as_me: failed program was:" >&5
19196 sed 's/^/| /' conftest.
$ac_ext >&5
19198 echo "$as_me:$LINENO: result: no" >&5
19199 echo "${ECHO_T}no" >&6
19201 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19203 va_list_is_array
=no
19204 echo "$as_me:$LINENO: checking whether va_list is an array" >&5
19205 echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6
19206 cat >conftest.
$ac_ext <<_ACEOF
19209 cat confdefs.h
>>conftest.
$ac_ext
19210 cat >>conftest.
$ac_ext <<_ACEOF
19211 /* end confdefs.h. */
19213 #ifdef HAVE_STDARG_PROTOTYPES
19214 #include <stdarg.h>
19216 #include <varargs.h>
19222 va_list list1, list2; list1 = list2;
19227 rm -f conftest.
$ac_objext
19228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19229 (eval $ac_compile) 2>conftest.er1
19231 grep -v '^ *+' conftest.er1
>conftest.err
19233 cat conftest.err
>&5
19234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19235 (exit $ac_status); } &&
19236 { ac_try
='test -z "$ac_c_werror_flag"
19237 || test ! -s conftest.err'
19238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19239 (eval $ac_try) 2>&5
19241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19242 (exit $ac_status); }; } &&
19243 { ac_try
='test -s conftest.$ac_objext'
19244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19245 (eval $ac_try) 2>&5
19247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19248 (exit $ac_status); }; }; then
19251 echo "$as_me: failed program was:" >&5
19252 sed 's/^/| /' conftest.
$ac_ext >&5
19256 cat >>confdefs.h
<<\_ACEOF
19257 #define VA_LIST_IS_ARRAY 1
19260 va_list_is_array
=yes
19263 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19264 echo "$as_me:$LINENO: result: $va_list_is_array" >&5
19265 echo "${ECHO_T}$va_list_is_array" >&6
19267 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
19271 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
19272 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
19273 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
19274 echo $ECHO_N "(cached) $ECHO_C" >&6
19276 cat >conftest.
$ac_ext <<_ACEOF
19279 cat confdefs.h
>>conftest.
$ac_ext
19280 cat >>conftest.
$ac_ext <<_ACEOF
19281 /* end confdefs.h. */
19282 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
19283 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19284 #define gethostbyname_r innocuous_gethostbyname_r
19286 /* System header to define __stub macros and hopefully few prototypes,
19287 which can conflict with char gethostbyname_r (); below.
19288 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19289 <limits.h> exists even on freestanding compilers. */
19292 # include <limits.h>
19294 # include <assert.h>
19297 #undef gethostbyname_r
19299 /* Override any gcc2 internal prototype to avoid an error. */
19304 /* We use char because int might match the return type of a gcc2
19305 builtin and then its argument prototype would still apply. */
19306 char gethostbyname_r ();
19307 /* The GNU C library defines this for functions which it implements
19308 to always fail with ENOSYS. Some functions are actually named
19309 something starting with __ and the normal name is an alias. */
19310 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
19313 char (*f) () = gethostbyname_r;
19322 return f != gethostbyname_r;
19327 rm -f conftest.
$ac_objext conftest
$ac_exeext
19328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19329 (eval $ac_link) 2>conftest.er1
19331 grep -v '^ *+' conftest.er1
>conftest.err
19333 cat conftest.err
>&5
19334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19335 (exit $ac_status); } &&
19336 { ac_try
='test -z "$ac_c_werror_flag"
19337 || test ! -s conftest.err'
19338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19339 (eval $ac_try) 2>&5
19341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19342 (exit $ac_status); }; } &&
19343 { ac_try
='test -s conftest$ac_exeext'
19344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19345 (eval $ac_try) 2>&5
19347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19348 (exit $ac_status); }; }; then
19349 ac_cv_func_gethostbyname_r
=yes
19351 echo "$as_me: failed program was:" >&5
19352 sed 's/^/| /' conftest.
$ac_ext >&5
19354 ac_cv_func_gethostbyname_r
=no
19356 rm -f conftest.err conftest.
$ac_objext \
19357 conftest
$ac_exeext conftest.
$ac_ext
19359 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
19360 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
19361 if test $ac_cv_func_gethostbyname_r = yes; then
19363 cat >>confdefs.h
<<\_ACEOF
19364 #define HAVE_GETHOSTBYNAME_R 1
19367 echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
19368 echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6
19370 CFLAGS
="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
19371 cat >conftest.
$ac_ext <<_ACEOF
19374 cat confdefs.h
>>conftest.
$ac_ext
19375 cat >>conftest.
$ac_ext <<_ACEOF
19376 /* end confdefs.h. */
19378 # include <netdb.h>
19385 struct hostent *he, *res;
19390 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
19396 rm -f conftest.
$ac_objext
19397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19398 (eval $ac_compile) 2>conftest.er1
19400 grep -v '^ *+' conftest.er1
>conftest.err
19402 cat conftest.err
>&5
19403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19404 (exit $ac_status); } &&
19405 { ac_try
='test -z "$ac_c_werror_flag"
19406 || test ! -s conftest.err'
19407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19408 (eval $ac_try) 2>&5
19410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19411 (exit $ac_status); }; } &&
19412 { ac_try
='test -s conftest.$ac_objext'
19413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19414 (eval $ac_try) 2>&5
19416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19417 (exit $ac_status); }; }; then
19419 cat >>confdefs.h
<<\_ACEOF
19420 #define HAVE_GETHOSTBYNAME_R 1
19424 cat >>confdefs.h
<<\_ACEOF
19425 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
19428 echo "$as_me:$LINENO: result: yes" >&5
19429 echo "${ECHO_T}yes" >&6
19432 echo "$as_me: failed program was:" >&5
19433 sed 's/^/| /' conftest.
$ac_ext >&5
19436 echo "$as_me:$LINENO: result: no" >&5
19437 echo "${ECHO_T}no" >&6
19438 echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
19439 echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6
19440 cat >conftest.
$ac_ext <<_ACEOF
19443 cat confdefs.h
>>conftest.
$ac_ext
19444 cat >>conftest.
$ac_ext <<_ACEOF
19445 /* end confdefs.h. */
19447 # include <netdb.h>
19454 struct hostent *he;
19459 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
19465 rm -f conftest.
$ac_objext
19466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19467 (eval $ac_compile) 2>conftest.er1
19469 grep -v '^ *+' conftest.er1
>conftest.err
19471 cat conftest.err
>&5
19472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19473 (exit $ac_status); } &&
19474 { ac_try
='test -z "$ac_c_werror_flag"
19475 || test ! -s conftest.err'
19476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19477 (eval $ac_try) 2>&5
19479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19480 (exit $ac_status); }; } &&
19481 { ac_try
='test -s conftest.$ac_objext'
19482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19483 (eval $ac_try) 2>&5
19485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19486 (exit $ac_status); }; }; then
19488 cat >>confdefs.h
<<\_ACEOF
19489 #define HAVE_GETHOSTBYNAME_R 1
19493 cat >>confdefs.h
<<\_ACEOF
19494 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
19497 echo "$as_me:$LINENO: result: yes" >&5
19498 echo "${ECHO_T}yes" >&6
19501 echo "$as_me: failed program was:" >&5
19502 sed 's/^/| /' conftest.
$ac_ext >&5
19505 echo "$as_me:$LINENO: result: no" >&5
19506 echo "${ECHO_T}no" >&6
19507 echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
19508 echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6
19509 cat >conftest.
$ac_ext <<_ACEOF
19512 cat confdefs.h
>>conftest.
$ac_ext
19513 cat >>conftest.
$ac_ext <<_ACEOF
19514 /* end confdefs.h. */
19516 # include <netdb.h>
19523 struct hostent *he;
19524 struct hostent_data data;
19526 (void) gethostbyname_r(name, he, &data);
19532 rm -f conftest.
$ac_objext
19533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19534 (eval $ac_compile) 2>conftest.er1
19536 grep -v '^ *+' conftest.er1
>conftest.err
19538 cat conftest.err
>&5
19539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19540 (exit $ac_status); } &&
19541 { ac_try
='test -z "$ac_c_werror_flag"
19542 || test ! -s conftest.err'
19543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19544 (eval $ac_try) 2>&5
19546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19547 (exit $ac_status); }; } &&
19548 { ac_try
='test -s conftest.$ac_objext'
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); }; }; then
19555 cat >>confdefs.h
<<\_ACEOF
19556 #define HAVE_GETHOSTBYNAME_R 1
19560 cat >>confdefs.h
<<\_ACEOF
19561 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
19564 echo "$as_me:$LINENO: result: yes" >&5
19565 echo "${ECHO_T}yes" >&6
19568 echo "$as_me: failed program was:" >&5
19569 sed 's/^/| /' conftest.
$ac_ext >&5
19572 echo "$as_me:$LINENO: result: no" >&5
19573 echo "${ECHO_T}no" >&6
19576 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19579 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19582 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19588 for ac_func
in gethostbyname
19590 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19591 echo "$as_me:$LINENO: checking for $ac_func" >&5
19592 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19593 if eval "test \"\${$as_ac_var+set}\" = set"; then
19594 echo $ECHO_N "(cached) $ECHO_C" >&6
19596 cat >conftest.
$ac_ext <<_ACEOF
19599 cat confdefs.h
>>conftest.
$ac_ext
19600 cat >>conftest.
$ac_ext <<_ACEOF
19601 /* end confdefs.h. */
19602 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19603 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19604 #define $ac_func innocuous_$ac_func
19606 /* System header to define __stub macros and hopefully few prototypes,
19607 which can conflict with char $ac_func (); below.
19608 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19609 <limits.h> exists even on freestanding compilers. */
19612 # include <limits.h>
19614 # include <assert.h>
19619 /* Override any gcc2 internal prototype to avoid an error. */
19624 /* We use char because int might match the return type of a gcc2
19625 builtin and then its argument prototype would still apply. */
19627 /* The GNU C library defines this for functions which it implements
19628 to always fail with ENOSYS. Some functions are actually named
19629 something starting with __ and the normal name is an alias. */
19630 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19633 char (*f) () = $ac_func;
19642 return f != $ac_func;
19647 rm -f conftest.
$ac_objext conftest
$ac_exeext
19648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19649 (eval $ac_link) 2>conftest.er1
19651 grep -v '^ *+' conftest.er1
>conftest.err
19653 cat conftest.err
>&5
19654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19655 (exit $ac_status); } &&
19656 { ac_try
='test -z "$ac_c_werror_flag"
19657 || test ! -s conftest.err'
19658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19659 (eval $ac_try) 2>&5
19661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19662 (exit $ac_status); }; } &&
19663 { ac_try
='test -s conftest$ac_exeext'
19664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19665 (eval $ac_try) 2>&5
19667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19668 (exit $ac_status); }; }; then
19669 eval "$as_ac_var=yes"
19671 echo "$as_me: failed program was:" >&5
19672 sed 's/^/| /' conftest.
$ac_ext >&5
19674 eval "$as_ac_var=no"
19676 rm -f conftest.err conftest.
$ac_objext \
19677 conftest
$ac_exeext conftest.
$ac_ext
19679 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19680 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19681 if test `eval echo '${'$as_ac_var'}'` = yes; then
19682 cat >>confdefs.h
<<_ACEOF
19683 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19698 # checks for system services
19701 # Linux requires this for correct f.p. operations
19702 echo "$as_me:$LINENO: checking for __fpu_control" >&5
19703 echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6
19704 if test "${ac_cv_func___fpu_control+set}" = set; then
19705 echo $ECHO_N "(cached) $ECHO_C" >&6
19707 cat >conftest.
$ac_ext <<_ACEOF
19710 cat confdefs.h
>>conftest.
$ac_ext
19711 cat >>conftest.
$ac_ext <<_ACEOF
19712 /* end confdefs.h. */
19713 /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control.
19714 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19715 #define __fpu_control innocuous___fpu_control
19717 /* System header to define __stub macros and hopefully few prototypes,
19718 which can conflict with char __fpu_control (); below.
19719 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19720 <limits.h> exists even on freestanding compilers. */
19723 # include <limits.h>
19725 # include <assert.h>
19728 #undef __fpu_control
19730 /* Override any gcc2 internal prototype to avoid an error. */
19735 /* We use char because int might match the return type of a gcc2
19736 builtin and then its argument prototype would still apply. */
19737 char __fpu_control ();
19738 /* The GNU C library defines this for functions which it implements
19739 to always fail with ENOSYS. Some functions are actually named
19740 something starting with __ and the normal name is an alias. */
19741 #if defined (__stub___fpu_control) || defined (__stub_____fpu_control)
19744 char (*f) () = __fpu_control;
19753 return f != __fpu_control;
19758 rm -f conftest.
$ac_objext conftest
$ac_exeext
19759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19760 (eval $ac_link) 2>conftest.er1
19762 grep -v '^ *+' conftest.er1
>conftest.err
19764 cat conftest.err
>&5
19765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19766 (exit $ac_status); } &&
19767 { ac_try
='test -z "$ac_c_werror_flag"
19768 || test ! -s conftest.err'
19769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19770 (eval $ac_try) 2>&5
19772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19773 (exit $ac_status); }; } &&
19774 { ac_try
='test -s conftest$ac_exeext'
19775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19776 (eval $ac_try) 2>&5
19778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19779 (exit $ac_status); }; }; then
19780 ac_cv_func___fpu_control
=yes
19782 echo "$as_me: failed program was:" >&5
19783 sed 's/^/| /' conftest.
$ac_ext >&5
19785 ac_cv_func___fpu_control
=no
19787 rm -f conftest.err conftest.
$ac_objext \
19788 conftest
$ac_exeext conftest.
$ac_ext
19790 echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
19791 echo "${ECHO_T}$ac_cv_func___fpu_control" >&6
19792 if test $ac_cv_func___fpu_control = yes; then
19796 echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
19797 echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6
19798 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
19799 echo $ECHO_N "(cached) $ECHO_C" >&6
19801 ac_check_lib_save_LIBS
=$LIBS
19802 LIBS
="-lieee $LIBS"
19803 cat >conftest.
$ac_ext <<_ACEOF
19806 cat confdefs.h
>>conftest.
$ac_ext
19807 cat >>conftest.
$ac_ext <<_ACEOF
19808 /* end confdefs.h. */
19810 /* Override any gcc2 internal prototype to avoid an error. */
19814 /* We use char because int might match the return type of a gcc2
19815 builtin and then its argument prototype would still apply. */
19816 char __fpu_control ();
19825 rm -f conftest.
$ac_objext conftest
$ac_exeext
19826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19827 (eval $ac_link) 2>conftest.er1
19829 grep -v '^ *+' conftest.er1
>conftest.err
19831 cat conftest.err
>&5
19832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19833 (exit $ac_status); } &&
19834 { ac_try
='test -z "$ac_c_werror_flag"
19835 || test ! -s conftest.err'
19836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19837 (eval $ac_try) 2>&5
19839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19840 (exit $ac_status); }; } &&
19841 { ac_try
='test -s conftest$ac_exeext'
19842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19843 (eval $ac_try) 2>&5
19845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19846 (exit $ac_status); }; }; then
19847 ac_cv_lib_ieee___fpu_control
=yes
19849 echo "$as_me: failed program was:" >&5
19850 sed 's/^/| /' conftest.
$ac_ext >&5
19852 ac_cv_lib_ieee___fpu_control
=no
19854 rm -f conftest.err conftest.
$ac_objext \
19855 conftest
$ac_exeext conftest.
$ac_ext
19856 LIBS
=$ac_check_lib_save_LIBS
19858 echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
19859 echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6
19860 if test $ac_cv_lib_ieee___fpu_control = yes; then
19861 cat >>confdefs.h
<<_ACEOF
19862 #define HAVE_LIBIEEE 1
19865 LIBS
="-lieee $LIBS"
19873 # Check for --with-fpectl
19874 echo "$as_me:$LINENO: checking for --with-fpectl" >&5
19875 echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6
19877 # Check whether --with-fpectl or --without-fpectl was given.
19878 if test "${with_fpectl+set}" = set; then
19879 withval
="$with_fpectl"
19881 if test "$withval" != no
19884 cat >>confdefs.h
<<\_ACEOF
19885 #define WANT_SIGFPE_HANDLER 1
19888 echo "$as_me:$LINENO: result: yes" >&5
19889 echo "${ECHO_T}yes" >&6
19890 else echo "$as_me:$LINENO: result: no" >&5
19891 echo "${ECHO_T}no" >&6
19894 echo "$as_me:$LINENO: result: no" >&5
19895 echo "${ECHO_T}no" >&6
19898 # check for --with-libm=...
19900 case $ac_sys_system in
19905 echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
19906 echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6
19908 # Check whether --with-libm or --without-libm was given.
19909 if test "${with_libm+set}" = set; then
19910 withval
="$with_libm"
19912 if test "$withval" = no
19914 echo "$as_me:$LINENO: result: force LIBM empty" >&5
19915 echo "${ECHO_T}force LIBM empty" >&6
19916 elif test "$withval" != yes
19918 echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
19919 echo "${ECHO_T}set LIBM=\"$withval\"" >&6
19920 else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
19921 echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
19922 { (exit 1); exit 1; }; }
19925 echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
19926 echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6
19929 # check for --with-libc=...
19931 echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
19932 echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6
19934 # Check whether --with-libc or --without-libc was given.
19935 if test "${with_libc+set}" = set; then
19936 withval
="$with_libc"
19938 if test "$withval" = no
19940 echo "$as_me:$LINENO: result: force LIBC empty" >&5
19941 echo "${ECHO_T}force LIBC empty" >&6
19942 elif test "$withval" != yes
19944 echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
19945 echo "${ECHO_T}set LIBC=\"$withval\"" >&6
19946 else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
19947 echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
19948 { (exit 1); exit 1; }; }
19951 echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
19952 echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6
19955 # check for hypot() in math library
19959 for ac_func
in hypot
19961 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19962 echo "$as_me:$LINENO: checking for $ac_func" >&5
19963 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19964 if eval "test \"\${$as_ac_var+set}\" = set"; then
19965 echo $ECHO_N "(cached) $ECHO_C" >&6
19967 cat >conftest.
$ac_ext <<_ACEOF
19970 cat confdefs.h
>>conftest.
$ac_ext
19971 cat >>conftest.
$ac_ext <<_ACEOF
19972 /* end confdefs.h. */
19973 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19974 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19975 #define $ac_func innocuous_$ac_func
19977 /* System header to define __stub macros and hopefully few prototypes,
19978 which can conflict with char $ac_func (); below.
19979 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19980 <limits.h> exists even on freestanding compilers. */
19983 # include <limits.h>
19985 # include <assert.h>
19990 /* Override any gcc2 internal prototype to avoid an error. */
19995 /* We use char because int might match the return type of a gcc2
19996 builtin and then its argument prototype would still apply. */
19998 /* The GNU C library defines this for functions which it implements
19999 to always fail with ENOSYS. Some functions are actually named
20000 something starting with __ and the normal name is an alias. */
20001 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20004 char (*f) () = $ac_func;
20013 return f != $ac_func;
20018 rm -f conftest.
$ac_objext conftest
$ac_exeext
20019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20020 (eval $ac_link) 2>conftest.er1
20022 grep -v '^ *+' conftest.er1
>conftest.err
20024 cat conftest.err
>&5
20025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20026 (exit $ac_status); } &&
20027 { ac_try
='test -z "$ac_c_werror_flag"
20028 || test ! -s conftest.err'
20029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20030 (eval $ac_try) 2>&5
20032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20033 (exit $ac_status); }; } &&
20034 { ac_try
='test -s conftest$ac_exeext'
20035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20036 (eval $ac_try) 2>&5
20038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20039 (exit $ac_status); }; }; then
20040 eval "$as_ac_var=yes"
20042 echo "$as_me: failed program was:" >&5
20043 sed 's/^/| /' conftest.
$ac_ext >&5
20045 eval "$as_ac_var=no"
20047 rm -f conftest.err conftest.
$ac_objext \
20048 conftest
$ac_exeext conftest.
$ac_ext
20050 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20051 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20052 if test `eval echo '${'$as_ac_var'}'` = yes; then
20053 cat >>confdefs.h
<<_ACEOF
20054 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20059 "$ac_func.$ac_objext" | \
20060 *" $ac_func.$ac_objext" | \
20061 "$ac_func.$ac_objext "* | \
20062 *" $ac_func.$ac_objext "* ) ;;
20063 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext" ;;
20072 # check for wchar.h
20073 if test "${ac_cv_header_wchar_h+set}" = set; then
20074 echo "$as_me:$LINENO: checking for wchar.h" >&5
20075 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
20076 if test "${ac_cv_header_wchar_h+set}" = set; then
20077 echo $ECHO_N "(cached) $ECHO_C" >&6
20079 echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
20080 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6
20082 # Is the header compilable?
20083 echo "$as_me:$LINENO: checking wchar.h usability" >&5
20084 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6
20085 cat >conftest.
$ac_ext <<_ACEOF
20088 cat confdefs.h
>>conftest.
$ac_ext
20089 cat >>conftest.
$ac_ext <<_ACEOF
20090 /* end confdefs.h. */
20091 $ac_includes_default
20094 rm -f conftest.
$ac_objext
20095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20096 (eval $ac_compile) 2>conftest.er1
20098 grep -v '^ *+' conftest.er1
>conftest.err
20100 cat conftest.err
>&5
20101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20102 (exit $ac_status); } &&
20103 { ac_try
='test -z "$ac_c_werror_flag"
20104 || test ! -s conftest.err'
20105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20106 (eval $ac_try) 2>&5
20108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20109 (exit $ac_status); }; } &&
20110 { ac_try
='test -s conftest.$ac_objext'
20111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20112 (eval $ac_try) 2>&5
20114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20115 (exit $ac_status); }; }; then
20116 ac_header_compiler
=yes
20118 echo "$as_me: failed program was:" >&5
20119 sed 's/^/| /' conftest.
$ac_ext >&5
20121 ac_header_compiler
=no
20123 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20124 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20125 echo "${ECHO_T}$ac_header_compiler" >&6
20127 # Is the header present?
20128 echo "$as_me:$LINENO: checking wchar.h presence" >&5
20129 echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6
20130 cat >conftest.
$ac_ext <<_ACEOF
20133 cat confdefs.h
>>conftest.
$ac_ext
20134 cat >>conftest.
$ac_ext <<_ACEOF
20135 /* end confdefs.h. */
20138 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20139 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20141 grep -v '^ *+' conftest.er1
>conftest.err
20143 cat conftest.err
>&5
20144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20145 (exit $ac_status); } >/dev
/null
; then
20146 if test -s conftest.err
; then
20147 ac_cpp_err
=$ac_c_preproc_warn_flag
20148 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20155 if test -z "$ac_cpp_err"; then
20156 ac_header_preproc
=yes
20158 echo "$as_me: failed program was:" >&5
20159 sed 's/^/| /' conftest.
$ac_ext >&5
20161 ac_header_preproc
=no
20163 rm -f conftest.err conftest.
$ac_ext
20164 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20165 echo "${ECHO_T}$ac_header_preproc" >&6
20167 # So? What about this header?
20168 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20170 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
20171 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20172 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
20173 echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
20174 ac_header_preproc
=yes
20177 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
20178 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
20179 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
20180 echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
20181 { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
20182 echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
20183 { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5
20184 echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;}
20185 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
20186 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
20187 { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
20188 echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
20191 ## ------------------------------------------------ ##
20192 ## Report this to http://www.python.org/python-bugs ##
20193 ## ------------------------------------------------ ##
20196 sed "s/^/$as_me: WARNING: /" >&2
20199 echo "$as_me:$LINENO: checking for wchar.h" >&5
20200 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
20201 if test "${ac_cv_header_wchar_h+set}" = set; then
20202 echo $ECHO_N "(cached) $ECHO_C" >&6
20204 ac_cv_header_wchar_h
=$ac_header_preproc
20206 echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
20207 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6
20210 if test $ac_cv_header_wchar_h = yes; then
20213 cat >>confdefs.h
<<\_ACEOF
20214 #define HAVE_WCHAR_H 1
20226 # determine wchar_t size
20227 if test "$wchar_h" = yes
20229 echo "$as_me:$LINENO: checking for wchar_t" >&5
20230 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
20231 if test "${ac_cv_type_wchar_t+set}" = set; then
20232 echo $ECHO_N "(cached) $ECHO_C" >&6
20234 cat >conftest.
$ac_ext <<_ACEOF
20237 cat confdefs.h
>>conftest.
$ac_ext
20238 cat >>conftest.
$ac_ext <<_ACEOF
20239 /* end confdefs.h. */
20247 if (sizeof (wchar_t))
20253 rm -f conftest.
$ac_objext
20254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20255 (eval $ac_compile) 2>conftest.er1
20257 grep -v '^ *+' conftest.er1
>conftest.err
20259 cat conftest.err
>&5
20260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20261 (exit $ac_status); } &&
20262 { ac_try
='test -z "$ac_c_werror_flag"
20263 || test ! -s conftest.err'
20264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20265 (eval $ac_try) 2>&5
20267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20268 (exit $ac_status); }; } &&
20269 { ac_try
='test -s conftest.$ac_objext'
20270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20271 (eval $ac_try) 2>&5
20273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20274 (exit $ac_status); }; }; then
20275 ac_cv_type_wchar_t
=yes
20277 echo "$as_me: failed program was:" >&5
20278 sed 's/^/| /' conftest.
$ac_ext >&5
20280 ac_cv_type_wchar_t
=no
20282 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20284 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
20285 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
20287 echo "$as_me:$LINENO: checking size of wchar_t" >&5
20288 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
20289 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
20290 echo $ECHO_N "(cached) $ECHO_C" >&6
20292 if test "$ac_cv_type_wchar_t" = yes; then
20293 # The cast to unsigned long works around a bug in the HP C Compiler
20294 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20295 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20296 # This bug is HP SR number 8606223364.
20297 if test "$cross_compiling" = yes; then
20298 # Depending upon the size, compute the lo and hi bounds.
20299 cat >conftest.
$ac_ext <<_ACEOF
20302 cat confdefs.h
>>conftest.
$ac_ext
20303 cat >>conftest.
$ac_ext <<_ACEOF
20304 /* end confdefs.h. */
20310 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
20317 rm -f conftest.
$ac_objext
20318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20319 (eval $ac_compile) 2>conftest.er1
20321 grep -v '^ *+' conftest.er1
>conftest.err
20323 cat conftest.err
>&5
20324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20325 (exit $ac_status); } &&
20326 { ac_try
='test -z "$ac_c_werror_flag"
20327 || test ! -s conftest.err'
20328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20329 (eval $ac_try) 2>&5
20331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20332 (exit $ac_status); }; } &&
20333 { ac_try
='test -s conftest.$ac_objext'
20334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20335 (eval $ac_try) 2>&5
20337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20338 (exit $ac_status); }; }; then
20341 cat >conftest.
$ac_ext <<_ACEOF
20344 cat confdefs.h
>>conftest.
$ac_ext
20345 cat >>conftest.
$ac_ext <<_ACEOF
20346 /* end confdefs.h. */
20352 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
20359 rm -f conftest.
$ac_objext
20360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20361 (eval $ac_compile) 2>conftest.er1
20363 grep -v '^ *+' conftest.er1
>conftest.err
20365 cat conftest.err
>&5
20366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20367 (exit $ac_status); } &&
20368 { ac_try
='test -z "$ac_c_werror_flag"
20369 || test ! -s conftest.err'
20370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20371 (eval $ac_try) 2>&5
20373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20374 (exit $ac_status); }; } &&
20375 { ac_try
='test -s conftest.$ac_objext'
20376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20377 (eval $ac_try) 2>&5
20379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20380 (exit $ac_status); }; }; then
20381 ac_hi
=$ac_mid; break
20383 echo "$as_me: failed program was:" >&5
20384 sed 's/^/| /' conftest.
$ac_ext >&5
20386 ac_lo
=`expr $ac_mid + 1`
20387 if test $ac_lo -le $ac_mid; then
20391 ac_mid
=`expr 2 '*' $ac_mid + 1`
20393 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20396 echo "$as_me: failed program was:" >&5
20397 sed 's/^/| /' conftest.
$ac_ext >&5
20399 cat >conftest.
$ac_ext <<_ACEOF
20402 cat confdefs.h
>>conftest.
$ac_ext
20403 cat >>conftest.
$ac_ext <<_ACEOF
20404 /* end confdefs.h. */
20410 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
20417 rm -f conftest.
$ac_objext
20418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20419 (eval $ac_compile) 2>conftest.er1
20421 grep -v '^ *+' conftest.er1
>conftest.err
20423 cat conftest.err
>&5
20424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20425 (exit $ac_status); } &&
20426 { ac_try
='test -z "$ac_c_werror_flag"
20427 || test ! -s conftest.err'
20428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20429 (eval $ac_try) 2>&5
20431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20432 (exit $ac_status); }; } &&
20433 { ac_try
='test -s conftest.$ac_objext'
20434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20435 (eval $ac_try) 2>&5
20437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20438 (exit $ac_status); }; }; then
20441 cat >conftest.
$ac_ext <<_ACEOF
20444 cat confdefs.h
>>conftest.
$ac_ext
20445 cat >>conftest.
$ac_ext <<_ACEOF
20446 /* end confdefs.h. */
20452 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
20459 rm -f conftest.
$ac_objext
20460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20461 (eval $ac_compile) 2>conftest.er1
20463 grep -v '^ *+' conftest.er1
>conftest.err
20465 cat conftest.err
>&5
20466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20467 (exit $ac_status); } &&
20468 { ac_try
='test -z "$ac_c_werror_flag"
20469 || test ! -s conftest.err'
20470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20471 (eval $ac_try) 2>&5
20473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20474 (exit $ac_status); }; } &&
20475 { ac_try
='test -s conftest.$ac_objext'
20476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20477 (eval $ac_try) 2>&5
20479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20480 (exit $ac_status); }; }; then
20481 ac_lo
=$ac_mid; break
20483 echo "$as_me: failed program was:" >&5
20484 sed 's/^/| /' conftest.
$ac_ext >&5
20486 ac_hi
=`expr '(' $ac_mid ')' - 1`
20487 if test $ac_mid -le $ac_hi; then
20491 ac_mid
=`expr 2 '*' $ac_mid`
20493 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20496 echo "$as_me: failed program was:" >&5
20497 sed 's/^/| /' conftest.
$ac_ext >&5
20501 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20503 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20504 # Binary search between lo and hi bounds.
20505 while test "x$ac_lo" != "x$ac_hi"; do
20506 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20507 cat >conftest.
$ac_ext <<_ACEOF
20510 cat confdefs.h
>>conftest.
$ac_ext
20511 cat >>conftest.
$ac_ext <<_ACEOF
20512 /* end confdefs.h. */
20518 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
20525 rm -f conftest.
$ac_objext
20526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20527 (eval $ac_compile) 2>conftest.er1
20529 grep -v '^ *+' conftest.er1
>conftest.err
20531 cat conftest.err
>&5
20532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20533 (exit $ac_status); } &&
20534 { ac_try
='test -z "$ac_c_werror_flag"
20535 || test ! -s conftest.err'
20536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20537 (eval $ac_try) 2>&5
20539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20540 (exit $ac_status); }; } &&
20541 { ac_try
='test -s conftest.$ac_objext'
20542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20543 (eval $ac_try) 2>&5
20545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20546 (exit $ac_status); }; }; then
20549 echo "$as_me: failed program was:" >&5
20550 sed 's/^/| /' conftest.
$ac_ext >&5
20552 ac_lo
=`expr '(' $ac_mid ')' + 1`
20554 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20557 ?
*) ac_cv_sizeof_wchar_t
=$ac_lo;;
20558 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
20559 See \`config.log' for more details." >&5
20560 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
20561 See \`config.log' for more details." >&2;}
20562 { (exit 1); exit 1; }; } ;;
20565 if test "$cross_compiling" = yes; then
20566 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20567 See \`config.log' for more details." >&5
20568 echo "$as_me: error: cannot run test program while cross compiling
20569 See \`config.log' for more details." >&2;}
20570 { (exit 1); exit 1; }; }
20572 cat >conftest.
$ac_ext <<_ACEOF
20575 cat confdefs.h
>>conftest.
$ac_ext
20576 cat >>conftest.
$ac_ext <<_ACEOF
20577 /* end confdefs.h. */
20580 long longval () { return (long) (sizeof (wchar_t)); }
20581 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
20583 #include <stdlib.h>
20588 FILE *f = fopen ("conftest.val", "w");
20591 if (((long) (sizeof (wchar_t))) < 0)
20593 long i = longval ();
20594 if (i != ((long) (sizeof (wchar_t))))
20596 fprintf (f, "%ld\n", i);
20600 unsigned long i = ulongval ();
20601 if (i != ((long) (sizeof (wchar_t))))
20603 fprintf (f, "%lu\n", i);
20605 exit (ferror (f) || fclose (f) != 0);
20611 rm -f conftest
$ac_exeext
20612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20613 (eval $ac_link) 2>&5
20615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20616 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20618 (eval $ac_try) 2>&5
20620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20621 (exit $ac_status); }; }; then
20622 ac_cv_sizeof_wchar_t
=`cat conftest.val`
20624 echo "$as_me: program exited with status $ac_status" >&5
20625 echo "$as_me: failed program was:" >&5
20626 sed 's/^/| /' conftest.
$ac_ext >&5
20628 ( exit $ac_status )
20629 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
20630 See \`config.log' for more details." >&5
20631 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
20632 See \`config.log' for more details." >&2;}
20633 { (exit 1); exit 1; }; }
20635 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20640 ac_cv_sizeof_wchar_t
=0
20643 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
20644 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
20645 cat >>confdefs.h
<<_ACEOF
20646 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
20652 echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5
20653 echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6
20655 cat >conftest.
$ac_ext <<_ACEOF
20658 cat confdefs.h
>>conftest.
$ac_ext
20659 cat >>conftest.
$ac_ext <<_ACEOF
20660 /* end confdefs.h. */
20663 #if TCL_UTF_MAX != 6
20664 # error "NOT UCS4_TCL"
20674 rm -f conftest.
$ac_objext
20675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20676 (eval $ac_compile) 2>conftest.er1
20678 grep -v '^ *+' conftest.er1
>conftest.err
20680 cat conftest.err
>&5
20681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20682 (exit $ac_status); } &&
20683 { ac_try
='test -z "$ac_c_werror_flag"
20684 || test ! -s conftest.err'
20685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20686 (eval $ac_try) 2>&5
20688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20689 (exit $ac_status); }; } &&
20690 { ac_try
='test -s conftest.$ac_objext'
20691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20692 (eval $ac_try) 2>&5
20694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20695 (exit $ac_status); }; }; then
20698 cat >>confdefs.h
<<\_ACEOF
20699 #define HAVE_UCS4_TCL 1
20705 echo "$as_me: failed program was:" >&5
20706 sed 's/^/| /' conftest.
$ac_ext >&5
20709 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20710 echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5
20711 echo "${ECHO_T}$have_ucs4_tcl" >&6
20713 # check whether wchar_t is signed or not
20714 if test "$wchar_h" = yes
20716 # check whether wchar_t is signed or not
20717 echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5
20718 echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6
20719 if test "${ac_cv_wchar_t_signed+set}" = set; then
20720 echo $ECHO_N "(cached) $ECHO_C" >&6
20723 if test "$cross_compiling" = yes; then
20724 ac_cv_wchar_t_signed
=yes
20726 cat >conftest.
$ac_ext <<_ACEOF
20729 cat confdefs.h
>>conftest.
$ac_ext
20730 cat >>conftest.
$ac_ext <<_ACEOF
20731 /* end confdefs.h. */
20736 /* Success: exit code 0 */
20737 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
20741 rm -f conftest
$ac_exeext
20742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20743 (eval $ac_link) 2>&5
20745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20746 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20748 (eval $ac_try) 2>&5
20750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20751 (exit $ac_status); }; }; then
20752 ac_cv_wchar_t_signed
=yes
20754 echo "$as_me: program exited with status $ac_status" >&5
20755 echo "$as_me: failed program was:" >&5
20756 sed 's/^/| /' conftest.
$ac_ext >&5
20758 ( exit $ac_status )
20759 ac_cv_wchar_t_signed
=no
20761 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20765 echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5
20766 echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6
20769 echo "$as_me:$LINENO: checking what type to use for unicode" >&5
20770 echo $ECHO_N "checking what type to use for unicode... $ECHO_C" >&6
20771 # Check whether --enable-unicode or --disable-unicode was given.
20772 if test "${enable_unicode+set}" = set; then
20773 enableval
="$enable_unicode"
20779 if test $enable_unicode = yes
20781 # Without any arguments, Py_UNICODE defaults to two-byte mode
20782 case "$have_ucs4_tcl" in
20783 yes) enable_unicode
="ucs4"
20785 *) enable_unicode
="ucs2"
20792 case "$enable_unicode" in
20793 ucs2
) unicode_size
="2"
20794 cat >>confdefs.h
<<\_ACEOF
20795 #define Py_UNICODE_SIZE 2
20799 ucs4
) unicode_size
="4"
20800 cat >>confdefs.h
<<\_ACEOF
20801 #define Py_UNICODE_SIZE 4
20811 if test "$enable_unicode" = "no"
20814 echo "$as_me:$LINENO: result: not used" >&5
20815 echo "${ECHO_T}not used" >&6
20817 UNICODE_OBJS
="Objects/unicodeobject.o Objects/unicodectype.o"
20819 cat >>confdefs.h
<<\_ACEOF
20820 #define Py_USING_UNICODE 1
20824 # wchar_t is only usable if it maps to an unsigned type
20825 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
20826 -a "$ac_cv_wchar_t_signed" = "no"
20828 PY_UNICODE_TYPE
="wchar_t"
20830 cat >>confdefs.h
<<\_ACEOF
20831 #define HAVE_USABLE_WCHAR_T 1
20834 cat >>confdefs.h
<<\_ACEOF
20835 #define PY_UNICODE_TYPE wchar_t
20838 elif test "$ac_cv_sizeof_short" = "$unicode_size"
20840 PY_UNICODE_TYPE
="unsigned short"
20841 cat >>confdefs.h
<<\_ACEOF
20842 #define PY_UNICODE_TYPE unsigned short
20845 elif test "$ac_cv_sizeof_long" = "$unicode_size"
20847 PY_UNICODE_TYPE
="unsigned long"
20848 cat >>confdefs.h
<<\_ACEOF
20849 #define PY_UNICODE_TYPE unsigned long
20853 PY_UNICODE_TYPE
="no type found"
20855 echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
20856 echo "${ECHO_T}$PY_UNICODE_TYPE" >&6
20859 # check for endianness
20860 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20861 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20862 if test "${ac_cv_c_bigendian+set}" = set; then
20863 echo $ECHO_N "(cached) $ECHO_C" >&6
20865 # See if sys/param.h defines the BYTE_ORDER macro.
20866 cat >conftest.
$ac_ext <<_ACEOF
20869 cat confdefs.h
>>conftest.
$ac_ext
20870 cat >>conftest.
$ac_ext <<_ACEOF
20871 /* end confdefs.h. */
20872 #include <sys/types.h>
20873 #include <sys/param.h>
20878 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20879 bogus endian macros
20886 rm -f conftest.
$ac_objext
20887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20888 (eval $ac_compile) 2>conftest.er1
20890 grep -v '^ *+' conftest.er1
>conftest.err
20892 cat conftest.err
>&5
20893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20894 (exit $ac_status); } &&
20895 { ac_try
='test -z "$ac_c_werror_flag"
20896 || test ! -s conftest.err'
20897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20898 (eval $ac_try) 2>&5
20900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20901 (exit $ac_status); }; } &&
20902 { ac_try
='test -s conftest.$ac_objext'
20903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20904 (eval $ac_try) 2>&5
20906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20907 (exit $ac_status); }; }; then
20908 # It does; now see whether it defined to BIG_ENDIAN or not.
20909 cat >conftest.
$ac_ext <<_ACEOF
20912 cat confdefs.h
>>conftest.
$ac_ext
20913 cat >>conftest.
$ac_ext <<_ACEOF
20914 /* end confdefs.h. */
20915 #include <sys/types.h>
20916 #include <sys/param.h>
20921 #if BYTE_ORDER != BIG_ENDIAN
20929 rm -f conftest.
$ac_objext
20930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20931 (eval $ac_compile) 2>conftest.er1
20933 grep -v '^ *+' conftest.er1
>conftest.err
20935 cat conftest.err
>&5
20936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20937 (exit $ac_status); } &&
20938 { ac_try
='test -z "$ac_c_werror_flag"
20939 || test ! -s conftest.err'
20940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20941 (eval $ac_try) 2>&5
20943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20944 (exit $ac_status); }; } &&
20945 { ac_try
='test -s conftest.$ac_objext'
20946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20947 (eval $ac_try) 2>&5
20949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20950 (exit $ac_status); }; }; then
20951 ac_cv_c_bigendian
=yes
20953 echo "$as_me: failed program was:" >&5
20954 sed 's/^/| /' conftest.
$ac_ext >&5
20956 ac_cv_c_bigendian
=no
20958 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20960 echo "$as_me: failed program was:" >&5
20961 sed 's/^/| /' conftest.
$ac_ext >&5
20963 # It does not; compile a test program.
20964 if test "$cross_compiling" = yes; then
20965 # try to guess the endianness by grepping values into an object file
20966 ac_cv_c_bigendian
=unknown
20967 cat >conftest.
$ac_ext <<_ACEOF
20970 cat confdefs.h
>>conftest.
$ac_ext
20971 cat >>conftest.
$ac_ext <<_ACEOF
20972 /* end confdefs.h. */
20973 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20974 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20975 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20976 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20977 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20978 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20982 _ascii (); _ebcdic ();
20987 rm -f conftest.
$ac_objext
20988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20989 (eval $ac_compile) 2>conftest.er1
20991 grep -v '^ *+' conftest.er1
>conftest.err
20993 cat conftest.err
>&5
20994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20995 (exit $ac_status); } &&
20996 { ac_try
='test -z "$ac_c_werror_flag"
20997 || test ! -s conftest.err'
20998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20999 (eval $ac_try) 2>&5
21001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21002 (exit $ac_status); }; } &&
21003 { ac_try
='test -s conftest.$ac_objext'
21004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21005 (eval $ac_try) 2>&5
21007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21008 (exit $ac_status); }; }; then
21009 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
21010 ac_cv_c_bigendian
=yes
21012 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
21013 if test "$ac_cv_c_bigendian" = unknown
; then
21014 ac_cv_c_bigendian
=no
21016 # finding both strings is unlikely to happen, but who knows?
21017 ac_cv_c_bigendian
=unknown
21021 echo "$as_me: failed program was:" >&5
21022 sed 's/^/| /' conftest.
$ac_ext >&5
21025 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21027 cat >conftest.
$ac_ext <<_ACEOF
21030 cat confdefs.h
>>conftest.
$ac_ext
21031 cat >>conftest.
$ac_ext <<_ACEOF
21032 /* end confdefs.h. */
21036 /* Are we little or big endian? From Harbison&Steele. */
21040 char c[sizeof (long)];
21043 exit (u.c[sizeof (long) - 1] == 1);
21046 rm -f conftest
$ac_exeext
21047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21048 (eval $ac_link) 2>&5
21050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21051 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21053 (eval $ac_try) 2>&5
21055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21056 (exit $ac_status); }; }; then
21057 ac_cv_c_bigendian
=no
21059 echo "$as_me: program exited with status $ac_status" >&5
21060 echo "$as_me: failed program was:" >&5
21061 sed 's/^/| /' conftest.
$ac_ext >&5
21063 ( exit $ac_status )
21064 ac_cv_c_bigendian
=yes
21066 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21069 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21071 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
21072 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
21073 case $ac_cv_c_bigendian in
21076 cat >>confdefs.h
<<\_ACEOF
21077 #define WORDS_BIGENDIAN 1
21083 { { echo "$as_me:$LINENO: error: unknown endianness
21084 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
21085 echo "$as_me: error: unknown endianness
21086 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
21087 { (exit 1); exit 1; }; } ;;
21093 # Check whether right shifting a negative integer extends the sign bit
21094 # or fills with zeros (like the Cray J90, according to Tim Peters).
21095 echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
21096 echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6
21097 if test "${ac_cv_rshift_extends_sign+set}" = set; then
21098 echo $ECHO_N "(cached) $ECHO_C" >&6
21101 if test "$cross_compiling" = yes; then
21102 ac_cv_rshift_extends_sign
=yes
21104 cat >conftest.
$ac_ext <<_ACEOF
21107 cat confdefs.h
>>conftest.
$ac_ext
21108 cat >>conftest.
$ac_ext <<_ACEOF
21109 /* end confdefs.h. */
21113 exit(((-1)>>3 == -1) ? 0 : 1);
21117 rm -f conftest
$ac_exeext
21118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21119 (eval $ac_link) 2>&5
21121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21122 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21124 (eval $ac_try) 2>&5
21126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21127 (exit $ac_status); }; }; then
21128 ac_cv_rshift_extends_sign
=yes
21130 echo "$as_me: program exited with status $ac_status" >&5
21131 echo "$as_me: failed program was:" >&5
21132 sed 's/^/| /' conftest.
$ac_ext >&5
21134 ( exit $ac_status )
21135 ac_cv_rshift_extends_sign
=no
21137 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21141 echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
21142 echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6
21143 if test "$ac_cv_rshift_extends_sign" = no
21146 cat >>confdefs.h
<<\_ACEOF
21147 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
21152 # check for getc_unlocked and related locking functions
21153 echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
21154 echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6
21155 if test "${ac_cv_have_getc_unlocked+set}" = set; then
21156 echo $ECHO_N "(cached) $ECHO_C" >&6
21159 cat >conftest.
$ac_ext <<_ACEOF
21162 cat confdefs.h
>>conftest.
$ac_ext
21163 cat >>conftest.
$ac_ext <<_ACEOF
21164 /* end confdefs.h. */
21170 FILE *f = fopen("/dev/null", "r");
21179 rm -f conftest.
$ac_objext conftest
$ac_exeext
21180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21181 (eval $ac_link) 2>conftest.er1
21183 grep -v '^ *+' conftest.er1
>conftest.err
21185 cat conftest.err
>&5
21186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21187 (exit $ac_status); } &&
21188 { ac_try
='test -z "$ac_c_werror_flag"
21189 || test ! -s conftest.err'
21190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21191 (eval $ac_try) 2>&5
21193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21194 (exit $ac_status); }; } &&
21195 { ac_try
='test -s conftest$ac_exeext'
21196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21197 (eval $ac_try) 2>&5
21199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21200 (exit $ac_status); }; }; then
21201 ac_cv_have_getc_unlocked
=yes
21203 echo "$as_me: failed program was:" >&5
21204 sed 's/^/| /' conftest.
$ac_ext >&5
21206 ac_cv_have_getc_unlocked
=no
21208 rm -f conftest.err conftest.
$ac_objext \
21209 conftest
$ac_exeext conftest.
$ac_ext
21212 echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
21213 echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6
21214 if test "$ac_cv_have_getc_unlocked" = yes
21217 cat >>confdefs.h
<<\_ACEOF
21218 #define HAVE_GETC_UNLOCKED 1
21223 # check where readline lives
21224 # save the value of LIBS so we don't actually link Python with readline
21225 LIBS_no_readline
=$LIBS
21227 echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
21228 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
21229 if test "${ac_cv_lib_readline_readline+set}" = set; then
21230 echo $ECHO_N "(cached) $ECHO_C" >&6
21232 ac_check_lib_save_LIBS
=$LIBS
21233 LIBS
="-lreadline $LIBS"
21234 cat >conftest.
$ac_ext <<_ACEOF
21237 cat confdefs.h
>>conftest.
$ac_ext
21238 cat >>conftest.
$ac_ext <<_ACEOF
21239 /* end confdefs.h. */
21241 /* Override any gcc2 internal prototype to avoid an error. */
21245 /* We use char because int might match the return type of a gcc2
21246 builtin and then its argument prototype would still apply. */
21256 rm -f conftest.
$ac_objext conftest
$ac_exeext
21257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21258 (eval $ac_link) 2>conftest.er1
21260 grep -v '^ *+' conftest.er1
>conftest.err
21262 cat conftest.err
>&5
21263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21264 (exit $ac_status); } &&
21265 { ac_try
='test -z "$ac_c_werror_flag"
21266 || test ! -s conftest.err'
21267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21268 (eval $ac_try) 2>&5
21270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21271 (exit $ac_status); }; } &&
21272 { ac_try
='test -s conftest$ac_exeext'
21273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21274 (eval $ac_try) 2>&5
21276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21277 (exit $ac_status); }; }; then
21278 ac_cv_lib_readline_readline
=yes
21280 echo "$as_me: failed program was:" >&5
21281 sed 's/^/| /' conftest.
$ac_ext >&5
21283 ac_cv_lib_readline_readline
=no
21285 rm -f conftest.err conftest.
$ac_objext \
21286 conftest
$ac_exeext conftest.
$ac_ext
21287 LIBS
=$ac_check_lib_save_LIBS
21289 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
21290 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
21291 if test $ac_cv_lib_readline_readline = yes; then
21292 cat >>confdefs.h
<<_ACEOF
21293 #define HAVE_LIBREADLINE 1
21296 LIBS
="-lreadline $LIBS"
21300 if test "$ac_cv_have_readline_readline" = no
21303 echo "$as_me:$LINENO: checking for readline in -ltermcap" >&5
21304 echo $ECHO_N "checking for readline in -ltermcap... $ECHO_C" >&6
21305 if test "${ac_cv_lib_termcap_readline+set}" = set; then
21306 echo $ECHO_N "(cached) $ECHO_C" >&6
21308 ac_check_lib_save_LIBS
=$LIBS
21309 LIBS
="-ltermcap $LIBS"
21310 cat >conftest.
$ac_ext <<_ACEOF
21313 cat confdefs.h
>>conftest.
$ac_ext
21314 cat >>conftest.
$ac_ext <<_ACEOF
21315 /* end confdefs.h. */
21317 /* Override any gcc2 internal prototype to avoid an error. */
21321 /* We use char because int might match the return type of a gcc2
21322 builtin and then its argument prototype would still apply. */
21332 rm -f conftest.
$ac_objext conftest
$ac_exeext
21333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21334 (eval $ac_link) 2>conftest.er1
21336 grep -v '^ *+' conftest.er1
>conftest.err
21338 cat conftest.err
>&5
21339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21340 (exit $ac_status); } &&
21341 { ac_try
='test -z "$ac_c_werror_flag"
21342 || test ! -s conftest.err'
21343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21344 (eval $ac_try) 2>&5
21346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21347 (exit $ac_status); }; } &&
21348 { ac_try
='test -s conftest$ac_exeext'
21349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21350 (eval $ac_try) 2>&5
21352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21353 (exit $ac_status); }; }; then
21354 ac_cv_lib_termcap_readline
=yes
21356 echo "$as_me: failed program was:" >&5
21357 sed 's/^/| /' conftest.
$ac_ext >&5
21359 ac_cv_lib_termcap_readline
=no
21361 rm -f conftest.err conftest.
$ac_objext \
21362 conftest
$ac_exeext conftest.
$ac_ext
21363 LIBS
=$ac_check_lib_save_LIBS
21365 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_readline" >&5
21366 echo "${ECHO_T}$ac_cv_lib_termcap_readline" >&6
21367 if test $ac_cv_lib_termcap_readline = yes; then
21368 cat >>confdefs.h
<<_ACEOF
21369 #define HAVE_LIBTERMCAP 1
21372 LIBS
="-ltermcap $LIBS"
21378 # check for readline 2.1
21379 echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
21380 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6
21381 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
21382 echo $ECHO_N "(cached) $ECHO_C" >&6
21384 ac_check_lib_save_LIBS
=$LIBS
21385 LIBS
="-lreadline $LIBS"
21386 cat >conftest.
$ac_ext <<_ACEOF
21389 cat confdefs.h
>>conftest.
$ac_ext
21390 cat >>conftest.
$ac_ext <<_ACEOF
21391 /* end confdefs.h. */
21393 /* Override any gcc2 internal prototype to avoid an error. */
21397 /* We use char because int might match the return type of a gcc2
21398 builtin and then its argument prototype would still apply. */
21399 char rl_callback_handler_install ();
21403 rl_callback_handler_install ();
21408 rm -f conftest.
$ac_objext conftest
$ac_exeext
21409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21410 (eval $ac_link) 2>conftest.er1
21412 grep -v '^ *+' conftest.er1
>conftest.err
21414 cat conftest.err
>&5
21415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21416 (exit $ac_status); } &&
21417 { ac_try
='test -z "$ac_c_werror_flag"
21418 || test ! -s conftest.err'
21419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21420 (eval $ac_try) 2>&5
21422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21423 (exit $ac_status); }; } &&
21424 { ac_try
='test -s conftest$ac_exeext'
21425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21426 (eval $ac_try) 2>&5
21428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21429 (exit $ac_status); }; }; then
21430 ac_cv_lib_readline_rl_callback_handler_install
=yes
21432 echo "$as_me: failed program was:" >&5
21433 sed 's/^/| /' conftest.
$ac_ext >&5
21435 ac_cv_lib_readline_rl_callback_handler_install
=no
21437 rm -f conftest.err conftest.
$ac_objext \
21438 conftest
$ac_exeext conftest.
$ac_ext
21439 LIBS
=$ac_check_lib_save_LIBS
21441 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
21442 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6
21443 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
21445 cat >>confdefs.h
<<\_ACEOF
21446 #define HAVE_RL_CALLBACK 1
21452 # check for readline 2.2
21453 cat >conftest.
$ac_ext <<_ACEOF
21456 cat confdefs.h
>>conftest.
$ac_ext
21457 cat >>conftest.
$ac_ext <<_ACEOF
21458 /* end confdefs.h. */
21459 #include <readline/readline.h>
21461 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21462 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
21464 grep -v '^ *+' conftest.er1
>conftest.err
21466 cat conftest.err
>&5
21467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21468 (exit $ac_status); } >/dev
/null
; then
21469 if test -s conftest.err
; then
21470 ac_cpp_err
=$ac_c_preproc_warn_flag
21471 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
21478 if test -z "$ac_cpp_err"; then
21481 echo "$as_me: failed program was:" >&5
21482 sed 's/^/| /' conftest.
$ac_ext >&5
21486 rm -f conftest.err conftest.
$ac_ext
21487 if test $have_readline = yes
21489 cat >conftest.
$ac_ext <<_ACEOF
21492 cat confdefs.h
>>conftest.
$ac_ext
21493 cat >>conftest.
$ac_ext <<_ACEOF
21494 /* end confdefs.h. */
21495 #include <readline/readline.h>
21498 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21499 $EGREP "extern int rl_completion_append_character;" >/dev
/null
2>&1; then
21501 cat >>confdefs.h
<<\_ACEOF
21502 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
21510 # check for readline 4.0
21511 echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
21512 echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6
21513 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
21514 echo $ECHO_N "(cached) $ECHO_C" >&6
21516 ac_check_lib_save_LIBS
=$LIBS
21517 LIBS
="-lreadline $LIBS"
21518 cat >conftest.
$ac_ext <<_ACEOF
21521 cat confdefs.h
>>conftest.
$ac_ext
21522 cat >>conftest.
$ac_ext <<_ACEOF
21523 /* end confdefs.h. */
21525 /* Override any gcc2 internal prototype to avoid an error. */
21529 /* We use char because int might match the return type of a gcc2
21530 builtin and then its argument prototype would still apply. */
21531 char rl_pre_input_hook ();
21535 rl_pre_input_hook ();
21540 rm -f conftest.
$ac_objext conftest
$ac_exeext
21541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21542 (eval $ac_link) 2>conftest.er1
21544 grep -v '^ *+' conftest.er1
>conftest.err
21546 cat conftest.err
>&5
21547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21548 (exit $ac_status); } &&
21549 { ac_try
='test -z "$ac_c_werror_flag"
21550 || test ! -s conftest.err'
21551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21552 (eval $ac_try) 2>&5
21554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21555 (exit $ac_status); }; } &&
21556 { ac_try
='test -s conftest$ac_exeext'
21557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21558 (eval $ac_try) 2>&5
21560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21561 (exit $ac_status); }; }; then
21562 ac_cv_lib_readline_rl_pre_input_hook
=yes
21564 echo "$as_me: failed program was:" >&5
21565 sed 's/^/| /' conftest.
$ac_ext >&5
21567 ac_cv_lib_readline_rl_pre_input_hook
=no
21569 rm -f conftest.err conftest.
$ac_objext \
21570 conftest
$ac_exeext conftest.
$ac_ext
21571 LIBS
=$ac_check_lib_save_LIBS
21573 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
21574 echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6
21575 if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
21577 cat >>confdefs.h
<<\_ACEOF
21578 #define HAVE_RL_PRE_INPUT_HOOK 1
21584 # check for readline 4.2
21585 echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
21586 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6
21587 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
21588 echo $ECHO_N "(cached) $ECHO_C" >&6
21590 ac_check_lib_save_LIBS
=$LIBS
21591 LIBS
="-lreadline $LIBS"
21592 cat >conftest.
$ac_ext <<_ACEOF
21595 cat confdefs.h
>>conftest.
$ac_ext
21596 cat >>conftest.
$ac_ext <<_ACEOF
21597 /* end confdefs.h. */
21599 /* Override any gcc2 internal prototype to avoid an error. */
21603 /* We use char because int might match the return type of a gcc2
21604 builtin and then its argument prototype would still apply. */
21605 char rl_completion_matches ();
21609 rl_completion_matches ();
21614 rm -f conftest.
$ac_objext conftest
$ac_exeext
21615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21616 (eval $ac_link) 2>conftest.er1
21618 grep -v '^ *+' conftest.er1
>conftest.err
21620 cat conftest.err
>&5
21621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21622 (exit $ac_status); } &&
21623 { ac_try
='test -z "$ac_c_werror_flag"
21624 || test ! -s conftest.err'
21625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21626 (eval $ac_try) 2>&5
21628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21629 (exit $ac_status); }; } &&
21630 { ac_try
='test -s conftest$ac_exeext'
21631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21632 (eval $ac_try) 2>&5
21634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21635 (exit $ac_status); }; }; then
21636 ac_cv_lib_readline_rl_completion_matches
=yes
21638 echo "$as_me: failed program was:" >&5
21639 sed 's/^/| /' conftest.
$ac_ext >&5
21641 ac_cv_lib_readline_rl_completion_matches
=no
21643 rm -f conftest.err conftest.
$ac_objext \
21644 conftest
$ac_exeext conftest.
$ac_ext
21645 LIBS
=$ac_check_lib_save_LIBS
21647 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
21648 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6
21649 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
21651 cat >>confdefs.h
<<\_ACEOF
21652 #define HAVE_RL_COMPLETION_MATCHES 1
21658 # also in readline 4.2
21659 cat >conftest.
$ac_ext <<_ACEOF
21662 cat confdefs.h
>>conftest.
$ac_ext
21663 cat >>conftest.
$ac_ext <<_ACEOF
21664 /* end confdefs.h. */
21665 #include <readline/readline.h>
21667 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21668 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
21670 grep -v '^ *+' conftest.er1
>conftest.err
21672 cat conftest.err
>&5
21673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21674 (exit $ac_status); } >/dev
/null
; then
21675 if test -s conftest.err
; then
21676 ac_cpp_err
=$ac_c_preproc_warn_flag
21677 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
21684 if test -z "$ac_cpp_err"; then
21687 echo "$as_me: failed program was:" >&5
21688 sed 's/^/| /' conftest.
$ac_ext >&5
21692 rm -f conftest.err conftest.
$ac_ext
21693 if test $have_readline = yes
21695 cat >conftest.
$ac_ext <<_ACEOF
21698 cat confdefs.h
>>conftest.
$ac_ext
21699 cat >>conftest.
$ac_ext <<_ACEOF
21700 /* end confdefs.h. */
21701 #include <readline/readline.h>
21704 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21705 $EGREP "extern int rl_catch_signals;" >/dev
/null
2>&1; then
21707 cat >>confdefs.h
<<\_ACEOF
21708 #define HAVE_RL_CATCH_SIGNAL 1
21716 # End of readline checks: restore LIBS
21717 LIBS
=$LIBS_no_readline
21719 echo "$as_me:$LINENO: checking for broken nice()" >&5
21720 echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6
21721 if test "${ac_cv_broken_nice+set}" = set; then
21722 echo $ECHO_N "(cached) $ECHO_C" >&6
21725 if test "$cross_compiling" = yes; then
21726 ac_cv_broken_nice
=no
21728 cat >conftest.
$ac_ext <<_ACEOF
21731 cat confdefs.h
>>conftest.
$ac_ext
21732 cat >>conftest.
$ac_ext <<_ACEOF
21733 /* end confdefs.h. */
21737 int val1 = nice(1);
21738 if (val1 != -1 && val1 == nice(2))
21744 rm -f conftest
$ac_exeext
21745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21746 (eval $ac_link) 2>&5
21748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21749 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21751 (eval $ac_try) 2>&5
21753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21754 (exit $ac_status); }; }; then
21755 ac_cv_broken_nice
=yes
21757 echo "$as_me: program exited with status $ac_status" >&5
21758 echo "$as_me: failed program was:" >&5
21759 sed 's/^/| /' conftest.
$ac_ext >&5
21761 ( exit $ac_status )
21762 ac_cv_broken_nice
=no
21764 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21768 echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
21769 echo "${ECHO_T}$ac_cv_broken_nice" >&6
21770 if test "$ac_cv_broken_nice" = yes
21773 cat >>confdefs.h
<<\_ACEOF
21774 #define HAVE_BROKEN_NICE 1
21779 echo "$as_me:$LINENO: checking for broken poll()" >&5
21780 echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6
21781 if test "$cross_compiling" = yes; then
21782 ac_cv_broken_poll
=no
21784 cat >conftest.
$ac_ext <<_ACEOF
21787 cat confdefs.h
>>conftest.
$ac_ext
21788 cat >>conftest.
$ac_ext <<_ACEOF
21789 /* end confdefs.h. */
21795 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
21799 int poll_test = poll (&poll_struct, 1, 0);
21805 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
21816 rm -f conftest
$ac_exeext
21817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21818 (eval $ac_link) 2>&5
21820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21821 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21823 (eval $ac_try) 2>&5
21825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21826 (exit $ac_status); }; }; then
21827 ac_cv_broken_poll
=yes
21829 echo "$as_me: program exited with status $ac_status" >&5
21830 echo "$as_me: failed program was:" >&5
21831 sed 's/^/| /' conftest.
$ac_ext >&5
21833 ( exit $ac_status )
21834 ac_cv_broken_poll
=no
21836 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21838 echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5
21839 echo "${ECHO_T}$ac_cv_broken_poll" >&6
21840 if test "$ac_cv_broken_poll" = yes
21843 cat >>confdefs.h
<<\_ACEOF
21844 #define HAVE_BROKEN_POLL 1
21849 # Before we can test tzset, we need to check if struct tm has a tm_zone
21850 # (which is not required by ISO C or UNIX spec) and/or if we support
21852 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
21853 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
21854 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
21855 echo $ECHO_N "(cached) $ECHO_C" >&6
21857 cat >conftest.
$ac_ext <<_ACEOF
21860 cat confdefs.h
>>conftest.
$ac_ext
21861 cat >>conftest.
$ac_ext <<_ACEOF
21862 /* end confdefs.h. */
21863 #include <sys/types.h>
21864 #include <$ac_cv_struct_tm>
21870 static struct tm ac_aggr;
21871 if (ac_aggr.tm_zone)
21877 rm -f conftest.
$ac_objext
21878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21879 (eval $ac_compile) 2>conftest.er1
21881 grep -v '^ *+' conftest.er1
>conftest.err
21883 cat conftest.err
>&5
21884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21885 (exit $ac_status); } &&
21886 { ac_try
='test -z "$ac_c_werror_flag"
21887 || test ! -s conftest.err'
21888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21889 (eval $ac_try) 2>&5
21891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21892 (exit $ac_status); }; } &&
21893 { ac_try
='test -s conftest.$ac_objext'
21894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21895 (eval $ac_try) 2>&5
21897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21898 (exit $ac_status); }; }; then
21899 ac_cv_member_struct_tm_tm_zone
=yes
21901 echo "$as_me: failed program was:" >&5
21902 sed 's/^/| /' conftest.
$ac_ext >&5
21904 cat >conftest.
$ac_ext <<_ACEOF
21907 cat confdefs.h
>>conftest.
$ac_ext
21908 cat >>conftest.
$ac_ext <<_ACEOF
21909 /* end confdefs.h. */
21910 #include <sys/types.h>
21911 #include <$ac_cv_struct_tm>
21917 static struct tm ac_aggr;
21918 if (sizeof ac_aggr.tm_zone)
21924 rm -f conftest.
$ac_objext
21925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21926 (eval $ac_compile) 2>conftest.er1
21928 grep -v '^ *+' conftest.er1
>conftest.err
21930 cat conftest.err
>&5
21931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21932 (exit $ac_status); } &&
21933 { ac_try
='test -z "$ac_c_werror_flag"
21934 || test ! -s conftest.err'
21935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21936 (eval $ac_try) 2>&5
21938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21939 (exit $ac_status); }; } &&
21940 { ac_try
='test -s conftest.$ac_objext'
21941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21942 (eval $ac_try) 2>&5
21944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21945 (exit $ac_status); }; }; then
21946 ac_cv_member_struct_tm_tm_zone
=yes
21948 echo "$as_me: failed program was:" >&5
21949 sed 's/^/| /' conftest.
$ac_ext >&5
21951 ac_cv_member_struct_tm_tm_zone
=no
21953 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21955 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21957 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
21958 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
21959 if test $ac_cv_member_struct_tm_tm_zone = yes; then
21961 cat >>confdefs.h
<<_ACEOF
21962 #define HAVE_STRUCT_TM_TM_ZONE 1
21968 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21970 cat >>confdefs.h
<<\_ACEOF
21971 #define HAVE_TM_ZONE 1
21975 echo "$as_me:$LINENO: checking for tzname" >&5
21976 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
21977 if test "${ac_cv_var_tzname+set}" = set; then
21978 echo $ECHO_N "(cached) $ECHO_C" >&6
21980 cat >conftest.
$ac_ext <<_ACEOF
21983 cat confdefs.h
>>conftest.
$ac_ext
21984 cat >>conftest.
$ac_ext <<_ACEOF
21985 /* end confdefs.h. */
21987 #ifndef tzname /* For SGI. */
21988 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
21999 rm -f conftest.
$ac_objext conftest
$ac_exeext
22000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22001 (eval $ac_link) 2>conftest.er1
22003 grep -v '^ *+' conftest.er1
>conftest.err
22005 cat conftest.err
>&5
22006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22007 (exit $ac_status); } &&
22008 { ac_try
='test -z "$ac_c_werror_flag"
22009 || test ! -s conftest.err'
22010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22011 (eval $ac_try) 2>&5
22013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22014 (exit $ac_status); }; } &&
22015 { ac_try
='test -s conftest$ac_exeext'
22016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22017 (eval $ac_try) 2>&5
22019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22020 (exit $ac_status); }; }; then
22021 ac_cv_var_tzname
=yes
22023 echo "$as_me: failed program was:" >&5
22024 sed 's/^/| /' conftest.
$ac_ext >&5
22026 ac_cv_var_tzname
=no
22028 rm -f conftest.err conftest.
$ac_objext \
22029 conftest
$ac_exeext conftest.
$ac_ext
22031 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
22032 echo "${ECHO_T}$ac_cv_var_tzname" >&6
22033 if test $ac_cv_var_tzname = yes; then
22035 cat >>confdefs.h
<<\_ACEOF
22036 #define HAVE_TZNAME 1
22043 # check tzset(3) exists and works like we expect it to
22044 echo "$as_me:$LINENO: checking for working tzset()" >&5
22045 echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6
22046 if test "${ac_cv_working_tzset+set}" = set; then
22047 echo $ECHO_N "(cached) $ECHO_C" >&6
22050 if test "$cross_compiling" = yes; then
22051 ac_cv_working_tzset
=no
22053 cat >conftest.
$ac_ext <<_ACEOF
22056 cat confdefs.h
>>conftest.
$ac_ext
22057 cat >>conftest.
$ac_ext <<_ACEOF
22058 /* end confdefs.h. */
22060 #include <stdlib.h>
22062 #include <string.h>
22065 extern char *tzname[];
22070 /* Note that we need to ensure that not only does tzset(3)
22071 do 'something' with localtime, but it works as documented
22072 in the library reference and as expected by the test suite.
22073 This includes making sure that tzname is set properly if
22074 tm->tm_zone does not exist since it is the alternative way
22075 of getting timezone info.
22077 Red Hat 6.2 doesn't understand the southern hemisphere
22078 after New Year's Day.
22081 time_t groundhogday = 1044144000; /* GMT-based */
22082 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
22084 putenv("TZ=UTC+0");
22086 if (localtime(&groundhogday)->tm_hour != 0)
22089 /* For UTC, tzname[1] is sometimes "", sometimes " " */
22090 if (strcmp(tzname[0], "UTC") ||
22091 (tzname[1][0] != 0 && tzname[1][0] != ' '))
22095 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
22097 if (localtime(&groundhogday)->tm_hour != 19)
22100 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
22104 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
22106 if (localtime(&groundhogday)->tm_hour != 11)
22109 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
22113 #if HAVE_STRUCT_TM_TM_ZONE
22114 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
22116 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
22124 rm -f conftest
$ac_exeext
22125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22126 (eval $ac_link) 2>&5
22128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22129 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
22130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22131 (eval $ac_try) 2>&5
22133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22134 (exit $ac_status); }; }; then
22135 ac_cv_working_tzset
=yes
22137 echo "$as_me: program exited with status $ac_status" >&5
22138 echo "$as_me: failed program was:" >&5
22139 sed 's/^/| /' conftest.
$ac_ext >&5
22141 ( exit $ac_status )
22142 ac_cv_working_tzset
=no
22144 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
22148 echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5
22149 echo "${ECHO_T}$ac_cv_working_tzset" >&6
22150 if test "$ac_cv_working_tzset" = yes
22153 cat >>confdefs.h
<<\_ACEOF
22154 #define HAVE_WORKING_TZSET 1
22159 # Look for subsecond timestamps in struct stat
22160 echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
22161 echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6
22162 if test "${ac_cv_stat_tv_nsec+set}" = set; then
22163 echo $ECHO_N "(cached) $ECHO_C" >&6
22165 cat >conftest.
$ac_ext <<_ACEOF
22168 cat confdefs.h
>>conftest.
$ac_ext
22169 cat >>conftest.
$ac_ext <<_ACEOF
22170 /* end confdefs.h. */
22171 #include <sys/stat.h>
22177 st.st_mtim.tv_nsec = 1;
22183 rm -f conftest.
$ac_objext
22184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22185 (eval $ac_compile) 2>conftest.er1
22187 grep -v '^ *+' conftest.er1
>conftest.err
22189 cat conftest.err
>&5
22190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22191 (exit $ac_status); } &&
22192 { ac_try
='test -z "$ac_c_werror_flag"
22193 || test ! -s conftest.err'
22194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22195 (eval $ac_try) 2>&5
22197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22198 (exit $ac_status); }; } &&
22199 { ac_try
='test -s conftest.$ac_objext'
22200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22201 (eval $ac_try) 2>&5
22203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22204 (exit $ac_status); }; }; then
22205 ac_cv_stat_tv_nsec
=yes
22207 echo "$as_me: failed program was:" >&5
22208 sed 's/^/| /' conftest.
$ac_ext >&5
22210 ac_cv_stat_tv_nsec
=no
22212 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22215 echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
22216 echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6
22217 if test "$ac_cv_stat_tv_nsec" = yes
22220 cat >>confdefs.h
<<\_ACEOF
22221 #define HAVE_STAT_TV_NSEC 1
22226 # Look for BSD style subsecond timestamps in struct stat
22227 echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5
22228 echo $ECHO_N "checking for tv_nsec2 in struct stat... $ECHO_C" >&6
22229 if test "${ac_cv_stat_tv_nsec2+set}" = set; then
22230 echo $ECHO_N "(cached) $ECHO_C" >&6
22232 cat >conftest.
$ac_ext <<_ACEOF
22235 cat confdefs.h
>>conftest.
$ac_ext
22236 cat >>conftest.
$ac_ext <<_ACEOF
22237 /* end confdefs.h. */
22238 #include <sys/stat.h>
22244 st.st_mtimespec.tv_nsec = 1;
22250 rm -f conftest.
$ac_objext
22251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22252 (eval $ac_compile) 2>conftest.er1
22254 grep -v '^ *+' conftest.er1
>conftest.err
22256 cat conftest.err
>&5
22257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22258 (exit $ac_status); } &&
22259 { ac_try
='test -z "$ac_c_werror_flag"
22260 || test ! -s conftest.err'
22261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22262 (eval $ac_try) 2>&5
22264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22265 (exit $ac_status); }; } &&
22266 { ac_try
='test -s conftest.$ac_objext'
22267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22268 (eval $ac_try) 2>&5
22270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22271 (exit $ac_status); }; }; then
22272 ac_cv_stat_tv_nsec2
=yes
22274 echo "$as_me: failed program was:" >&5
22275 sed 's/^/| /' conftest.
$ac_ext >&5
22277 ac_cv_stat_tv_nsec2
=no
22279 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22282 echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5
22283 echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6
22284 if test "$ac_cv_stat_tv_nsec2" = yes
22287 cat >>confdefs.h
<<\_ACEOF
22288 #define HAVE_STAT_TV_NSEC2 1
22293 # On HP/UX 11.0, mvwdelch is a block with a return statement
22294 echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
22295 echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6
22296 if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
22297 echo $ECHO_N "(cached) $ECHO_C" >&6
22299 cat >conftest.
$ac_ext <<_ACEOF
22302 cat confdefs.h
>>conftest.
$ac_ext
22303 cat >>conftest.
$ac_ext <<_ACEOF
22304 /* end confdefs.h. */
22305 #include <curses.h>
22311 rtn = mvwdelch(0,0,0);
22317 rm -f conftest.
$ac_objext
22318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22319 (eval $ac_compile) 2>conftest.er1
22321 grep -v '^ *+' conftest.er1
>conftest.err
22323 cat conftest.err
>&5
22324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22325 (exit $ac_status); } &&
22326 { ac_try
='test -z "$ac_c_werror_flag"
22327 || test ! -s conftest.err'
22328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22329 (eval $ac_try) 2>&5
22331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22332 (exit $ac_status); }; } &&
22333 { ac_try
='test -s conftest.$ac_objext'
22334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22335 (eval $ac_try) 2>&5
22337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22338 (exit $ac_status); }; }; then
22339 ac_cv_mvwdelch_is_expression
=yes
22341 echo "$as_me: failed program was:" >&5
22342 sed 's/^/| /' conftest.
$ac_ext >&5
22344 ac_cv_mvwdelch_is_expression
=no
22346 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22349 echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
22350 echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6
22352 if test "$ac_cv_mvwdelch_is_expression" = yes
22355 cat >>confdefs.h
<<\_ACEOF
22356 #define MVWDELCH_IS_EXPRESSION 1
22361 echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
22362 echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6
22363 if test "${ac_cv_window_has_flags+set}" = set; then
22364 echo $ECHO_N "(cached) $ECHO_C" >&6
22366 cat >conftest.
$ac_ext <<_ACEOF
22369 cat confdefs.h
>>conftest.
$ac_ext
22370 cat >>conftest.
$ac_ext <<_ACEOF
22371 /* end confdefs.h. */
22372 #include <curses.h>
22384 rm -f conftest.
$ac_objext
22385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22386 (eval $ac_compile) 2>conftest.er1
22388 grep -v '^ *+' conftest.er1
>conftest.err
22390 cat conftest.err
>&5
22391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22392 (exit $ac_status); } &&
22393 { ac_try
='test -z "$ac_c_werror_flag"
22394 || test ! -s conftest.err'
22395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22396 (eval $ac_try) 2>&5
22398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22399 (exit $ac_status); }; } &&
22400 { ac_try
='test -s conftest.$ac_objext'
22401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22402 (eval $ac_try) 2>&5
22404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22405 (exit $ac_status); }; }; then
22406 ac_cv_window_has_flags
=yes
22408 echo "$as_me: failed program was:" >&5
22409 sed 's/^/| /' conftest.
$ac_ext >&5
22411 ac_cv_window_has_flags
=no
22413 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22416 echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
22417 echo "${ECHO_T}$ac_cv_window_has_flags" >&6
22420 if test "$ac_cv_window_has_flags" = yes
22423 cat >>confdefs.h
<<\_ACEOF
22424 #define WINDOW_HAS_FLAGS 1
22429 echo "$as_me:$LINENO: checking for is_term_resized" >&5
22430 echo $ECHO_N "checking for is_term_resized... $ECHO_C" >&6
22431 cat >conftest.
$ac_ext <<_ACEOF
22434 cat confdefs.h
>>conftest.
$ac_ext
22435 cat >>conftest.
$ac_ext <<_ACEOF
22436 /* end confdefs.h. */
22437 #include <curses.h>
22441 void *x=is_term_resized
22446 rm -f conftest.
$ac_objext
22447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22448 (eval $ac_compile) 2>conftest.er1
22450 grep -v '^ *+' conftest.er1
>conftest.err
22452 cat conftest.err
>&5
22453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22454 (exit $ac_status); } &&
22455 { ac_try
='test -z "$ac_c_werror_flag"
22456 || test ! -s conftest.err'
22457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22458 (eval $ac_try) 2>&5
22460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22461 (exit $ac_status); }; } &&
22462 { ac_try
='test -s conftest.$ac_objext'
22463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22464 (eval $ac_try) 2>&5
22466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22467 (exit $ac_status); }; }; then
22469 cat >>confdefs.h
<<\_ACEOF
22470 #define HAVE_CURSES_IS_TERM_RESIZED 1
22473 echo "$as_me:$LINENO: result: yes" >&5
22474 echo "${ECHO_T}yes" >&6
22476 echo "$as_me: failed program was:" >&5
22477 sed 's/^/| /' conftest.
$ac_ext >&5
22479 echo "$as_me:$LINENO: result: no" >&5
22480 echo "${ECHO_T}no" >&6
22483 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22485 echo "$as_me:$LINENO: checking for resize_term" >&5
22486 echo $ECHO_N "checking for resize_term... $ECHO_C" >&6
22487 cat >conftest.
$ac_ext <<_ACEOF
22490 cat confdefs.h
>>conftest.
$ac_ext
22491 cat >>conftest.
$ac_ext <<_ACEOF
22492 /* end confdefs.h. */
22493 #include <curses.h>
22497 void *x=resize_term
22502 rm -f conftest.
$ac_objext
22503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22504 (eval $ac_compile) 2>conftest.er1
22506 grep -v '^ *+' conftest.er1
>conftest.err
22508 cat conftest.err
>&5
22509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22510 (exit $ac_status); } &&
22511 { ac_try
='test -z "$ac_c_werror_flag"
22512 || test ! -s conftest.err'
22513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22514 (eval $ac_try) 2>&5
22516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22517 (exit $ac_status); }; } &&
22518 { ac_try
='test -s conftest.$ac_objext'
22519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22520 (eval $ac_try) 2>&5
22522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22523 (exit $ac_status); }; }; then
22525 cat >>confdefs.h
<<\_ACEOF
22526 #define HAVE_CURSES_RESIZE_TERM 1
22529 echo "$as_me:$LINENO: result: yes" >&5
22530 echo "${ECHO_T}yes" >&6
22532 echo "$as_me: failed program was:" >&5
22533 sed 's/^/| /' conftest.
$ac_ext >&5
22535 echo "$as_me:$LINENO: result: no" >&5
22536 echo "${ECHO_T}no" >&6
22539 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22541 echo "$as_me:$LINENO: checking for resizeterm" >&5
22542 echo $ECHO_N "checking for resizeterm... $ECHO_C" >&6
22543 cat >conftest.
$ac_ext <<_ACEOF
22546 cat confdefs.h
>>conftest.
$ac_ext
22547 cat >>conftest.
$ac_ext <<_ACEOF
22548 /* end confdefs.h. */
22549 #include <curses.h>
22558 rm -f conftest.
$ac_objext
22559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22560 (eval $ac_compile) 2>conftest.er1
22562 grep -v '^ *+' conftest.er1
>conftest.err
22564 cat conftest.err
>&5
22565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22566 (exit $ac_status); } &&
22567 { ac_try
='test -z "$ac_c_werror_flag"
22568 || test ! -s conftest.err'
22569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22570 (eval $ac_try) 2>&5
22572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22573 (exit $ac_status); }; } &&
22574 { ac_try
='test -s conftest.$ac_objext'
22575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22576 (eval $ac_try) 2>&5
22578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22579 (exit $ac_status); }; }; then
22581 cat >>confdefs.h
<<\_ACEOF
22582 #define HAVE_CURSES_RESIZETERM 1
22585 echo "$as_me:$LINENO: result: yes" >&5
22586 echo "${ECHO_T}yes" >&6
22588 echo "$as_me: failed program was:" >&5
22589 sed 's/^/| /' conftest.
$ac_ext >&5
22591 echo "$as_me:$LINENO: result: no" >&5
22592 echo "${ECHO_T}no" >&6
22595 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22597 echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
22598 echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6
22600 if test -r /dev
/ptmx
22602 echo "$as_me:$LINENO: result: yes" >&5
22603 echo "${ECHO_T}yes" >&6
22605 cat >>confdefs.h
<<\_ACEOF
22606 #define HAVE_DEV_PTMX 1
22610 echo "$as_me:$LINENO: result: no" >&5
22611 echo "${ECHO_T}no" >&6
22614 echo "$as_me:$LINENO: checking for /dev/ptc" >&5
22615 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6
22617 if test -r /dev
/ptc
22619 echo "$as_me:$LINENO: result: yes" >&5
22620 echo "${ECHO_T}yes" >&6
22622 cat >>confdefs.h
<<\_ACEOF
22623 #define HAVE_DEV_PTC 1
22627 echo "$as_me:$LINENO: result: no" >&5
22628 echo "${ECHO_T}no" >&6
22631 echo "$as_me:$LINENO: checking for %zd printf() format support" >&5
22632 echo $ECHO_N "checking for %zd printf() format support... $ECHO_C" >&6
22633 if test "$cross_compiling" = yes; then
22634 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22635 See \`config.log' for more details." >&5
22636 echo "$as_me: error: cannot run test program while cross compiling
22637 See \`config.log' for more details." >&2;}
22638 { (exit 1); exit 1; }; }
22640 cat >conftest.
$ac_ext <<_ACEOF
22643 cat confdefs.h
>>conftest.
$ac_ext
22644 cat >>conftest.
$ac_ext <<_ACEOF
22645 /* end confdefs.h. */
22647 #include <stddef.h>
22648 #include <string.h>
22654 #ifdef HAVE_SSIZE_T
22655 typedef ssize_t Py_ssize_t;
22656 #elif SIZEOF_VOID_P == SIZEOF_LONG
22657 typedef long Py_ssize_t;
22659 typedef int Py_ssize_t;
22662 if(sprintf(buffer, "%zd", (size_t)123) < 0)
22665 if (strcmp(buffer, "123"))
22668 if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0)
22671 if (strcmp(buffer, "-123"))
22677 rm -f conftest
$ac_exeext
22678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22679 (eval $ac_link) 2>&5
22681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22682 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
22683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22684 (eval $ac_try) 2>&5
22686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22687 (exit $ac_status); }; }; then
22688 echo "$as_me:$LINENO: result: yes" >&5
22689 echo "${ECHO_T}yes" >&6
22691 cat >>confdefs.h
<<\_ACEOF
22692 #define PY_FORMAT_SIZE_T "z"
22696 echo "$as_me: program exited with status $ac_status" >&5
22697 echo "$as_me: failed program was:" >&5
22698 sed 's/^/| /' conftest.
$ac_ext >&5
22700 ( exit $ac_status )
22701 echo "$as_me:$LINENO: result: no" >&5
22702 echo "${ECHO_T}no" >&6
22704 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
22707 echo "$as_me:$LINENO: checking for socklen_t" >&5
22708 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
22709 if test "${ac_cv_type_socklen_t+set}" = set; then
22710 echo $ECHO_N "(cached) $ECHO_C" >&6
22712 cat >conftest.
$ac_ext <<_ACEOF
22715 cat confdefs.h
>>conftest.
$ac_ext
22716 cat >>conftest.
$ac_ext <<_ACEOF
22717 /* end confdefs.h. */
22719 #ifdef HAVE_SYS_TYPES_H
22720 #include <sys/types.h>
22722 #ifdef HAVE_SYS_SOCKET_H
22723 #include <sys/socket.h>
22730 if ((socklen_t *) 0)
22732 if (sizeof (socklen_t))
22738 rm -f conftest.
$ac_objext
22739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22740 (eval $ac_compile) 2>conftest.er1
22742 grep -v '^ *+' conftest.er1
>conftest.err
22744 cat conftest.err
>&5
22745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22746 (exit $ac_status); } &&
22747 { ac_try
='test -z "$ac_c_werror_flag"
22748 || test ! -s conftest.err'
22749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22750 (eval $ac_try) 2>&5
22752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22753 (exit $ac_status); }; } &&
22754 { ac_try
='test -s conftest.$ac_objext'
22755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22756 (eval $ac_try) 2>&5
22758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22759 (exit $ac_status); }; }; then
22760 ac_cv_type_socklen_t
=yes
22762 echo "$as_me: failed program was:" >&5
22763 sed 's/^/| /' conftest.
$ac_ext >&5
22765 ac_cv_type_socklen_t
=no
22767 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22769 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
22770 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
22771 if test $ac_cv_type_socklen_t = yes; then
22775 cat >>confdefs.h
<<\_ACEOF
22776 #define socklen_t int
22784 for h
in `(cd $srcdir;echo Python/thread_*.h)`
22786 THREADHEADERS
="$THREADHEADERS \$(srcdir)/$h"
22790 SRCDIRS
="Parser Grammar Objects Python Modules Mac"
22791 echo "$as_me:$LINENO: checking for build directories" >&5
22792 echo $ECHO_N "checking for build directories... $ECHO_C" >&6
22793 for dir
in $SRCDIRS; do
22794 if test ! -d $dir; then
22798 echo "$as_me:$LINENO: result: done" >&5
22799 echo "${ECHO_T}done" >&6
22801 # generate output files
22802 ac_config_files
="$ac_config_files Makefile.pre Modules/Setup.config"
22804 cat >confcache
<<\_ACEOF
22805 # This file is a shell script that caches the results of configure
22806 # tests run on this system so they can be shared between configure
22807 # scripts and configure runs, see configure's option --config-cache.
22808 # It is not useful on other systems. If it contains results you don't
22809 # want to keep, you may remove or edit it.
22811 # config.status only pays attention to the cache file if you give it
22812 # the --recheck option to rerun configure.
22814 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22815 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22816 # following values.
22820 # The following way of writing the cache mishandles newlines in values,
22821 # but we know of no workaround that is simple, portable, and efficient.
22822 # So, don't put newlines in cache variables' values.
22823 # Ultrix sh set writes to stderr and can't be redirected directly,
22824 # and sets the high bit in the cache file unless we assign to the vars.
22827 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22829 # `set' does not quote correctly, so add quotes (double-quote
22830 # substitution turns \\\\ into \\, and sed turns \\ into \).
22833 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22836 # `set' quotes correctly as required by POSIX, so do not add quotes.
22838 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22845 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22847 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22849 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
22850 if test -w $cache_file; then
22851 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22852 cat confcache
>$cache_file
22854 echo "not updating unwritable cache $cache_file"
22859 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
22860 # Let make expand exec_prefix.
22861 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
22863 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22864 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22865 # trailing colons and then remove the whole line if VPATH becomes empty
22866 # (actually we leave an empty line to preserve line numbers).
22867 if test "x$srcdir" = x.
; then
22868 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
22869 s/:*\$(srcdir):*/:/;
22870 s/:*\${srcdir}:*/:/;
22872 s/^\([^=]*=[ ]*\):*/\1/;
22878 DEFS
=-DHAVE_CONFIG_H
22882 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
22883 # 1. Remove the extension, and $U if already installed.
22884 ac_i
=`echo "$ac_i" |
22885 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22887 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
22888 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
22890 LIBOBJS
=$ac_libobjs
22892 LTLIBOBJS
=$ac_ltlibobjs
22896 : ${CONFIG_STATUS=./config.status}
22897 ac_clean_files_save
=$ac_clean_files
22898 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
22899 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22900 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22901 cat >$CONFIG_STATUS <<_ACEOF
22903 # Generated by $as_me.
22904 # Run this file to recreate the current configuration.
22905 # Compiler output produced by configure, useful for debugging
22906 # configure, is in config.log if it exists.
22909 ac_cs_recheck=false
22911 SHELL=\${CONFIG_SHELL-$SHELL}
22914 cat >>$CONFIG_STATUS <<\_ACEOF
22915 ## --------------------- ##
22916 ## M4sh Initialization. ##
22917 ## --------------------- ##
22919 # Be Bourne compatible
22920 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
22923 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22924 # is contrary to our usage. Disable this feature.
22925 alias -g '${1+"$@"}'='"$@"'
22926 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
22929 DUALCASE
=1; export DUALCASE
# for MKS sh
22931 # Support unset when possible.
22932 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
22939 # Work around bugs in pre-3.0 UWIN ksh.
22940 $as_unset ENV MAIL MAILPATH
22947 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22948 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22949 LC_TELEPHONE LC_TIME
22951 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22952 eval $as_var=C
; export $as_var
22958 # Required to use basename.
22959 if expr a
: '\(a\)' >/dev
/null
2>&1; then
22965 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
22966 as_basename
=basename
22972 # Name of the executable.
22973 as_me
=`$as_basename "$0" ||
22974 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22975 X"$0" : 'X\(//\)$' \| \
22976 X"$0" : 'X\(/\)$' \| \
22977 . : '\(.\)' 2>/dev/null ||
22979 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22980 /^X\/\(\/\/\)$/{ s//\1/; q; }
22981 /^X\/\(\/\).*/{ s//\1/; q; }
22985 # PATH needs CR, and LINENO needs CR and PATH.
22986 # Avoid depending upon Character Ranges.
22987 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
22988 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22989 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
22990 as_cr_digits
='0123456789'
22991 as_cr_alnum
=$as_cr_Letters$as_cr_digits
22993 # The user is always right.
22994 if test "${PATH_SEPARATOR+set}" != set; then
22995 echo "#! /bin/sh" >conf$$.sh
22996 echo "exit 0" >>conf$$.sh
22998 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
23007 as_lineno_1
=$LINENO
23008 as_lineno_2
=$LINENO
23009 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
23010 test "x$as_lineno_1" != "x$as_lineno_2" &&
23011 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
23012 # Find who we are. Look in the path if we contain no path at all
23015 *[\\/]* ) as_myself
=$0 ;;
23016 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23017 for as_dir
in $PATH
23020 test -z "$as_dir" && as_dir
=.
23021 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
23026 # We did not find ourselves, most probably we were run as `sh COMMAND'
23027 # in which case we are not to be found in the path.
23028 if test "x$as_myself" = x
; then
23031 if test ! -f "$as_myself"; then
23032 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23033 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23034 { (exit 1); exit 1; }; }
23036 case $CONFIG_SHELL in
23038 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23039 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
23042 test -z "$as_dir" && as_dir
=.
23043 for as_base
in sh bash ksh sh5
; do
23046 if ("$as_dir/$as_base" -c '
23047 as_lineno_1=$LINENO
23048 as_lineno_2=$LINENO
23049 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23050 test "x$as_lineno_1" != "x$as_lineno_2" &&
23051 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
23052 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
23053 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
23054 CONFIG_SHELL
=$as_dir/$as_base
23055 export CONFIG_SHELL
23056 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23064 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23065 # uniformly replaced by the line number. The first 'sed' inserts a
23066 # line-number line before each line; the second 'sed' does the real
23067 # work. The second script uses 'N' to pair each line-number line
23068 # with the numbered line, and appends trailing '-' during
23069 # substitution so that $LINENO is not a special case at line end.
23070 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23071 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23072 sed '=' <$as_myself |
23077 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23080 s,^['$as_cr_digits']*\n,,
23081 ' >$as_me.lineno
&&
23082 chmod +x
$as_me.lineno ||
23083 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23084 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23085 { (exit 1); exit 1; }; }
23087 # Don't try to exec as it changes $[0], causing all sort of problems
23088 # (the dirname of $[0] is not the place where we might find the
23089 # original and so on. Autoconf is especially sensible to this).
23091 # Exit status is that of the last command.
23096 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23097 *c
*,-n*) ECHO_N
= ECHO_C
='
23099 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
23100 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
23103 if expr a
: '\(a\)' >/dev
/null
2>&1; then
23109 rm -f conf$$ conf$$.exe conf$$.
file
23111 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
23112 # We could just check for DJGPP; but this test a) works b) is more generic
23113 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23114 if test -f conf$$.exe
; then
23115 # Don't use ln at all; we don't have any links
23120 elif ln conf$$.
file conf$$
2>/dev
/null
; then
23125 rm -f conf$$ conf$$.exe conf$$.
file
23127 if mkdir
-p .
2>/dev
/null
; then
23130 test -d .
/-p && rmdir .
/-p
23134 as_executable_p
="test -f"
23136 # Sed expression to map a string onto a valid CPP name.
23137 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23139 # Sed expression to map a string onto a valid variable name.
23140 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23144 # We need space, tab and new line, in precisely that order.
23154 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23155 # report actual input values of CONFIG_FILES etc. instead of their
23156 # values after options handling. Logging --version etc. is OK.
23160 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23161 ## Running $as_me. ##
23166 This file was extended by python $as_me 2.6, which was
23167 generated by GNU Autoconf 2.59. Invocation command line was
23169 CONFIG_FILES = $CONFIG_FILES
23170 CONFIG_HEADERS = $CONFIG_HEADERS
23171 CONFIG_LINKS = $CONFIG_LINKS
23172 CONFIG_COMMANDS = $CONFIG_COMMANDS
23176 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23180 # Files that config.status was made for.
23181 if test -n "$ac_config_files"; then
23182 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23185 if test -n "$ac_config_headers"; then
23186 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23189 if test -n "$ac_config_links"; then
23190 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23193 if test -n "$ac_config_commands"; then
23194 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23197 cat >>$CONFIG_STATUS <<\_ACEOF
23200 \`$as_me' instantiates files from templates according to the
23201 current configuration.
23203 Usage: $0 [OPTIONS] [FILE]...
23205 -h, --help print this help, then exit
23206 -V, --version print version number, then exit
23207 -q, --quiet do not print progress messages
23208 -d, --debug don't remove temporary files
23209 --recheck update $as_me by reconfiguring in the same conditions
23210 --file=FILE[:TEMPLATE]
23211 instantiate the configuration file FILE
23212 --header=FILE[:TEMPLATE]
23213 instantiate the configuration header FILE
23215 Configuration files:
23218 Configuration headers:
23221 Report bugs to <bug-autoconf@gnu.org>."
23224 cat >>$CONFIG_STATUS <<_ACEOF
23226 python config.status 2.6
23227 configured by $0, generated by GNU Autoconf 2.59,
23228 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23230 Copyright (C) 2003 Free Software Foundation, Inc.
23231 This config.status script is free software; the Free Software Foundation
23232 gives unlimited permission to copy, distribute and modify it."
23237 cat >>$CONFIG_STATUS <<\_ACEOF
23238 # If no file are specified by the user, then we need to provide default
23239 # value. By we need to know if files were specified by the user.
23245 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
23246 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
23254 *) # This is not an option, so the user has probably given explicit
23257 ac_need_defaults
=false
;;
23261 # Handling of the options.
23263 cat >>$CONFIG_STATUS <<\_ACEOF
23264 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
23266 --version |
--vers* |
-V )
23267 echo "$ac_cs_version"; exit 0 ;;
23269 # Conflict between --help and --header
23270 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23271 Try \`$0 --help' for more information." >&5
23272 echo "$as_me: error: ambiguous option: $1
23273 Try \`$0 --help' for more information." >&2;}
23274 { (exit 1); exit 1; }; };;
23275 --help |
--hel |
-h )
23276 echo "$ac_cs_usage"; exit 0 ;;
23277 --debug |
--d* |
-d )
23279 --file |
--fil |
--fi |
--f )
23281 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
23282 ac_need_defaults
=false
;;
23283 --header |
--heade |
--head |
--hea )
23285 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
23286 ac_need_defaults
=false
;;
23287 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
23288 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
23291 # This is an error.
23292 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23293 Try \`$0 --help' for more information." >&5
23294 echo "$as_me: error: unrecognized option: $1
23295 Try \`$0 --help' for more information." >&2;}
23296 { (exit 1); exit 1; }; } ;;
23298 *) ac_config_targets
="$ac_config_targets $1" ;;
23304 ac_configure_extra_args
=
23306 if $ac_cs_silent; then
23308 ac_configure_extra_args
="$ac_configure_extra_args --silent"
23312 cat >>$CONFIG_STATUS <<_ACEOF
23313 if \$ac_cs_recheck; then
23314 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23315 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23324 cat >>$CONFIG_STATUS <<\_ACEOF
23325 for ac_config_target
in $ac_config_targets
23327 case "$ac_config_target" in
23328 # Handling of arguments.
23329 "Mac/Makefile" ) CONFIG_FILES
="$CONFIG_FILES Mac/Makefile" ;;
23330 "Mac/PythonLauncher/Makefile" ) CONFIG_FILES
="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;;
23331 "Mac/IDLE/Makefile" ) CONFIG_FILES
="$CONFIG_FILES Mac/IDLE/Makefile" ;;
23332 "Makefile.pre" ) CONFIG_FILES
="$CONFIG_FILES Makefile.pre" ;;
23333 "Modules/Setup.config" ) CONFIG_FILES
="$CONFIG_FILES Modules/Setup.config" ;;
23334 "pyconfig.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS pyconfig.h" ;;
23335 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23336 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23337 { (exit 1); exit 1; }; };;
23341 # If the user did not use the arguments to specify the items to instantiate,
23342 # then the envvar interface is used. Set only those that are not.
23343 # We use the long form for the default assignment because of an extremely
23344 # bizarre bug on SunOS 4.1.3.
23345 if $ac_need_defaults; then
23346 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
23347 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
23350 # Have a temporary directory for convenience. Make it in the build tree
23351 # simply because there is no reason to put it here, and in addition,
23352 # creating and moving files from /tmp can sometimes cause problems.
23353 # Create a temporary directory, and hook for its removal unless debugging.
23356 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23357 trap '{ (exit 1); exit 1; }' 1 2 13 15
23360 # Create a (secure) tmp directory for tmp files.
23363 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23364 test -n "$tmp" && test -d "$tmp"
23367 tmp
=.
/confstat$$
-$RANDOM
23368 (umask 077 && mkdir
$tmp)
23371 echo "$me: cannot create a temporary directory in ." >&2
23372 { (exit 1); exit 1; }
23377 cat >>$CONFIG_STATUS <<_ACEOF
23380 # CONFIG_FILES section.
23383 # No need to generate the scripts if there are no CONFIG_FILES.
23384 # This happens for instance when ./config.status config.h
23385 if test -n "\$CONFIG_FILES"; then
23386 # Protect against being on the right side of a sed subst in config.status.
23387 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23388 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23389 s,@SHELL@,$SHELL,;t t
23390 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23391 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23392 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23393 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23394 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23395 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23396 s,@exec_prefix@,$exec_prefix,;t t
23397 s,@prefix@,$prefix,;t t
23398 s,@program_transform_name@,$program_transform_name,;t t
23399 s,@bindir@,$bindir,;t t
23400 s,@sbindir@,$sbindir,;t t
23401 s,@libexecdir@,$libexecdir,;t t
23402 s,@datadir@,$datadir,;t t
23403 s,@sysconfdir@,$sysconfdir,;t t
23404 s,@sharedstatedir@,$sharedstatedir,;t t
23405 s,@localstatedir@,$localstatedir,;t t
23406 s,@libdir@,$libdir,;t t
23407 s,@includedir@,$includedir,;t t
23408 s,@oldincludedir@,$oldincludedir,;t t
23409 s,@infodir@,$infodir,;t t
23410 s,@mandir@,$mandir,;t t
23411 s,@build_alias@,$build_alias,;t t
23412 s,@host_alias@,$host_alias,;t t
23413 s,@target_alias@,$target_alias,;t t
23414 s,@DEFS@,$DEFS,;t t
23415 s,@ECHO_C@,$ECHO_C,;t t
23416 s,@ECHO_N@,$ECHO_N,;t t
23417 s,@ECHO_T@,$ECHO_T,;t t
23418 s,@LIBS@,$LIBS,;t t
23419 s,@VERSION@,$VERSION,;t t
23420 s,@SOVERSION@,$SOVERSION,;t t
23421 s,@CONFIG_ARGS@,$CONFIG_ARGS,;t t
23422 s,@UNIVERSALSDK@,$UNIVERSALSDK,;t t
23423 s,@PYTHONFRAMEWORK@,$PYTHONFRAMEWORK,;t t
23424 s,@PYTHONFRAMEWORKDIR@,$PYTHONFRAMEWORKDIR,;t t
23425 s,@PYTHONFRAMEWORKPREFIX@,$PYTHONFRAMEWORKPREFIX,;t t
23426 s,@PYTHONFRAMEWORKINSTALLDIR@,$PYTHONFRAMEWORKINSTALLDIR,;t t
23427 s,@FRAMEWORKINSTALLFIRST@,$FRAMEWORKINSTALLFIRST,;t t
23428 s,@FRAMEWORKINSTALLLAST@,$FRAMEWORKINSTALLLAST,;t t
23429 s,@FRAMEWORKALTINSTALLFIRST@,$FRAMEWORKALTINSTALLFIRST,;t t
23430 s,@FRAMEWORKALTINSTALLLAST@,$FRAMEWORKALTINSTALLLAST,;t t
23431 s,@FRAMEWORKUNIXTOOLSPREFIX@,$FRAMEWORKUNIXTOOLSPREFIX,;t t
23432 s,@MACHDEP@,$MACHDEP,;t t
23433 s,@SGI_ABI@,$SGI_ABI,;t t
23434 s,@EXTRAPLATDIR@,$EXTRAPLATDIR,;t t
23435 s,@EXTRAMACHDEPPATH@,$EXTRAMACHDEPPATH,;t t
23436 s,@CONFIGURE_MACOSX_DEPLOYMENT_TARGET@,$CONFIGURE_MACOSX_DEPLOYMENT_TARGET,;t t
23437 s,@EXPORT_MACOSX_DEPLOYMENT_TARGET@,$EXPORT_MACOSX_DEPLOYMENT_TARGET,;t t
23439 s,@CFLAGS@,$CFLAGS,;t t
23440 s,@LDFLAGS@,$LDFLAGS,;t t
23441 s,@CPPFLAGS@,$CPPFLAGS,;t t
23442 s,@ac_ct_CC@,$ac_ct_CC,;t t
23443 s,@EXEEXT@,$EXEEXT,;t t
23444 s,@OBJEXT@,$OBJEXT,;t t
23446 s,@MAINCC@,$MAINCC,;t t
23448 s,@EGREP@,$EGREP,;t t
23449 s,@BUILDEXEEXT@,$BUILDEXEEXT,;t t
23450 s,@LIBRARY@,$LIBRARY,;t t
23451 s,@LDLIBRARY@,$LDLIBRARY,;t t
23452 s,@DLLLIBRARY@,$DLLLIBRARY,;t t
23453 s,@BLDLIBRARY@,$BLDLIBRARY,;t t
23454 s,@LDLIBRARYDIR@,$LDLIBRARYDIR,;t t
23455 s,@INSTSONAME@,$INSTSONAME,;t t
23456 s,@RUNSHARED@,$RUNSHARED,;t t
23457 s,@LINKCC@,$LINKCC,;t t
23458 s,@RANLIB@,$RANLIB,;t t
23459 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23461 s,@SVNVERSION@,$SVNVERSION,;t t
23462 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23463 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23464 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23467 s,@BASECFLAGS@,$BASECFLAGS,;t t
23468 s,@OTHER_LIBTOOL_OPT@,$OTHER_LIBTOOL_OPT,;t t
23469 s,@LIBTOOL_CRUFT@,$LIBTOOL_CRUFT,;t t
23471 s,@LDSHARED@,$LDSHARED,;t t
23472 s,@BLDSHARED@,$BLDSHARED,;t t
23473 s,@CCSHARED@,$CCSHARED,;t t
23474 s,@LINKFORSHARED@,$LINKFORSHARED,;t t
23475 s,@CFLAGSFORSHARED@,$CFLAGSFORSHARED,;t t
23476 s,@SHLIBS@,$SHLIBS,;t t
23477 s,@USE_SIGNAL_MODULE@,$USE_SIGNAL_MODULE,;t t
23478 s,@SIGNAL_OBJS@,$SIGNAL_OBJS,;t t
23479 s,@USE_THREAD_MODULE@,$USE_THREAD_MODULE,;t t
23480 s,@LDLAST@,$LDLAST,;t t
23481 s,@THREADOBJ@,$THREADOBJ,;t t
23482 s,@DLINCLDIR@,$DLINCLDIR,;t t
23483 s,@DYNLOADFILE@,$DYNLOADFILE,;t t
23484 s,@MACHDEP_OBJS@,$MACHDEP_OBJS,;t t
23485 s,@TRUE@,$TRUE,;t t
23486 s,@LIBOBJS@,$LIBOBJS,;t t
23487 s,@HAVE_GETHOSTBYNAME_R_6_ARG@,$HAVE_GETHOSTBYNAME_R_6_ARG,;t t
23488 s,@HAVE_GETHOSTBYNAME_R_5_ARG@,$HAVE_GETHOSTBYNAME_R_5_ARG,;t t
23489 s,@HAVE_GETHOSTBYNAME_R_3_ARG@,$HAVE_GETHOSTBYNAME_R_3_ARG,;t t
23490 s,@HAVE_GETHOSTBYNAME_R@,$HAVE_GETHOSTBYNAME_R,;t t
23491 s,@HAVE_GETHOSTBYNAME@,$HAVE_GETHOSTBYNAME,;t t
23492 s,@LIBM@,$LIBM,;t t
23493 s,@LIBC@,$LIBC,;t t
23494 s,@UNICODE_OBJS@,$UNICODE_OBJS,;t t
23495 s,@THREADHEADERS@,$THREADHEADERS,;t t
23496 s,@SRCDIRS@,$SRCDIRS,;t t
23497 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23502 cat >>$CONFIG_STATUS <<\_ACEOF
23503 # Split the substitutions into bite-sized pieces for seds with
23504 # small command number limits, like on Digital OSF/1 and HP-UX.
23505 ac_max_sed_lines
=48
23506 ac_sed_frag
=1 # Number of current file.
23507 ac_beg
=1 # First line for current file.
23508 ac_end
=$ac_max_sed_lines # Line after last line for current file.
23511 while $ac_more_lines; do
23512 if test $ac_beg -gt 1; then
23513 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
23515 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
23517 if test ! -s $tmp/subs.frag
; then
23518 ac_more_lines
=false
23520 # The purpose of the label and of the branching condition is to
23521 # speed up the sed processing (if there are no `@' at all, there
23522 # is no need to browse any of the substitutions).
23523 # These are the two extra sed commands mentioned above.
23525 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
23526 if test -z "$ac_sed_cmds"; then
23527 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
23529 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23531 ac_sed_frag
=`expr $ac_sed_frag + 1`
23533 ac_end
=`expr $ac_end + $ac_max_sed_lines`
23536 if test -z "$ac_sed_cmds"; then
23539 fi # test -n "$CONFIG_FILES"
23542 cat >>$CONFIG_STATUS <<\_ACEOF
23543 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
23544 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23546 - |
*:- |
*:-:* ) # input from stdin
23548 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23549 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
23550 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23551 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
23552 * ) ac_file_in
=$ac_file.
in ;;
23555 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23556 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
23557 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23558 X"$ac_file" : 'X\(//\)[^/]' \| \
23559 X"$ac_file" : 'X\(//\)$' \| \
23560 X"$ac_file" : 'X\(/\)' \| \
23561 . : '\(.\)' 2>/dev/null ||
23563 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23564 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23565 /^X\(\/\/\)$/{ s//\1/; q; }
23566 /^X\(\/\).*/{ s//\1/; q; }
23568 { if $as_mkdir_p; then
23573 while test ! -d "$as_dir"; do
23574 as_dirs
="$as_dir $as_dirs"
23575 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
23576 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23577 X"$as_dir" : 'X\(//\)[^/]' \| \
23578 X"$as_dir" : 'X\(//\)$' \| \
23579 X"$as_dir" : 'X\(/\)' \| \
23580 . : '\(.\)' 2>/dev/null ||
23582 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23583 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23584 /^X\(\/\/\)$/{ s//\1/; q; }
23585 /^X\(\/\).*/{ s//\1/; q; }
23588 test ! -n "$as_dirs" || mkdir
$as_dirs
23589 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23590 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23591 { (exit 1); exit 1; }; }; }
23595 if test "$ac_dir" != .
; then
23596 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23597 # A "../" for each directory in $ac_dir_suffix.
23598 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23600 ac_dir_suffix
= ac_top_builddir
=
23604 .
) # No --srcdir option. We are building in place.
23606 if test -z "$ac_top_builddir"; then
23609 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
23611 [\\/]* | ?
:[\\/]* ) # Absolute path.
23612 ac_srcdir
=$srcdir$ac_dir_suffix;
23613 ac_top_srcdir
=$srcdir ;;
23614 *) # Relative path.
23615 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
23616 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
23619 # Do not use `cd foo && pwd` to compute absolute paths, because
23620 # the directories may not exist.
23622 .
) ac_abs_builddir
="$ac_dir";;
23625 .
) ac_abs_builddir
=`pwd`;;
23626 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
23627 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
23630 case $ac_abs_builddir in
23631 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
23633 case ${ac_top_builddir}.
in
23634 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
23635 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
23636 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
23639 case $ac_abs_builddir in
23640 .
) ac_abs_srcdir
=$ac_srcdir;;
23643 .
) ac_abs_srcdir
=$ac_abs_builddir;;
23644 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
23645 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
23648 case $ac_abs_builddir in
23649 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
23651 case $ac_top_srcdir in
23652 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
23653 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
23654 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
23660 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
23661 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
23664 if test x
"$ac_file" != x-
; then
23665 { echo "$as_me:$LINENO: creating $ac_file" >&5
23666 echo "$as_me: creating $ac_file" >&6;}
23669 # Let's still pretend it is `configure' which instantiates (i.e., don't
23670 # use $as_me), people would be surprised to read:
23671 # /* config.h. Generated by config.status. */
23672 if test x
"$ac_file" = x-
; then
23675 configure_input
="$ac_file. "
23677 configure_input
=$configure_input"Generated from `echo $ac_file_in |
23678 sed 's,.*/,,'` by configure."
23680 # First look for the input files in the build tree, otherwise in the
23682 ac_file_inputs
=`IFS=:
23683 for f in $ac_file_in; do
23685 -) echo $tmp/stdin ;;
23687 # Absolute (can't be DOS-style, as IFS=:)
23688 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23689 echo "$as_me: error: cannot find input file: $f" >&2;}
23690 { (exit 1); exit 1; }; }
23693 if test -f "$f"; then
23696 elif test -f "$srcdir/$f"; then
23701 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23702 echo "$as_me: error: cannot find input file: $f" >&2;}
23703 { (exit 1); exit 1; }; }
23706 done` ||
{ (exit 1); exit 1; }
23708 cat >>$CONFIG_STATUS <<_ACEOF
23712 cat >>$CONFIG_STATUS <<\_ACEOF
23714 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
23715 s
,@configure_input@
,$configure_input,;t t
23716 s
,@srcdir@
,$ac_srcdir,;t t
23717 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
23718 s
,@top_srcdir@
,$ac_top_srcdir,;t t
23719 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
23720 s
,@builddir@
,$ac_builddir,;t t
23721 s
,@abs_builddir@
,$ac_abs_builddir,;t t
23722 s
,@top_builddir@
,$ac_top_builddir,;t t
23723 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
23724 s
,@INSTALL@
,$ac_INSTALL,;t t
23725 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23727 if test x"$ac_file" != x-; then
23728 mv $tmp/out $ac_file
23736 cat >>$CONFIG_STATUS <<\_ACEOF
23739 # CONFIG_HEADER section.
23742 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
23743 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23745 # ac_d sets the value in "#define NAME VALUE" lines.
23746 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23747 ac_dB
='[ ].*$,\1#\2'
23750 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23751 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23752 ac_uB
='$,\1#\2define\3'
23756 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
23757 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23759 - |
*:- |
*:-:* ) # input from stdin
23761 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23762 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
23763 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23764 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
23765 * ) ac_file_in
=$ac_file.
in ;;
23768 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
23769 echo "$as_me: creating $ac_file" >&6;}
23771 # First look for the input files in the build tree, otherwise in the
23773 ac_file_inputs
=`IFS=:
23774 for f in $ac_file_in; do
23776 -) echo $tmp/stdin ;;
23778 # Absolute (can't be DOS-style, as IFS=:)
23779 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23780 echo "$as_me: error: cannot find input file: $f" >&2;}
23781 { (exit 1); exit 1; }; }
23782 # Do quote $f, to prevent DOS paths from being IFS'd.
23785 if test -f "$f"; then
23788 elif test -f "$srcdir/$f"; then
23793 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23794 echo "$as_me: error: cannot find input file: $f" >&2;}
23795 { (exit 1); exit 1; }; }
23798 done` ||
{ (exit 1); exit 1; }
23799 # Remove the trailing spaces.
23800 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23804 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23805 # `conftest.undefs', that substitutes the proper values into
23806 # config.h.in to produce config.h. The first handles `#define'
23807 # templates, and the second `#undef' templates.
23808 # And first: Protect against being on the right side of a sed subst in
23809 # config.status. Protect against being in an unquoted here document
23810 # in config.status.
23811 rm -f conftest.defines conftest.undefs
23812 # Using a here document instead of a string reduces the quoting nightmare.
23813 # Putting comments in sed scripts is not portable.
23815 # `end' is used to avoid that the second main sed command (meant for
23816 # 0-ary CPP macros) applies to n-ary macro definitions.
23817 # See the Autoconf documentation for `clear'.
23818 cat >confdef2sed.
sed <<\_ACEOF
23823 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23825 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23828 # If some macros were called several times there might be several times
23829 # the same #defines, which is useless. Nevertheless, we may not want to
23830 # sort them, since we want the *last* AC-DEFINE to be honored.
23831 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23832 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23833 rm -f confdef2sed.sed
23835 # This sed command replaces #undef with comments. This is necessary, for
23836 # example, in the case of _POSIX_SOURCE, which is predefined and required
23837 # on some systems where configure will not decide to define it.
23838 cat >>conftest.undefs <<\_ACEOF
23839 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23842 # Break up conftest.defines because some shells have a limit on the size
23843 # of here documents, and old seds have small limits too (100 cmds).
23844 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23845 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23846 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23847 echo ' :' >>$CONFIG_STATUS
23848 rm -f conftest.tail
23849 while grep . conftest.defines >/dev/null
23851 # Write a limited-size here document to $tmp/defines.sed.
23852 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23853 # Speed up: don't consider the non `#define' lines.
23854 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23855 # Work around the forget-to-reset-the-flag bug.
23856 echo 't clr' >>$CONFIG_STATUS
23857 echo ': clr' >>$CONFIG_STATUS
23858 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
23860 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23862 mv $tmp/out $tmp/in
23864 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
23865 rm -f conftest.defines
23866 mv conftest.
tail conftest.defines
23868 rm -f conftest.defines
23869 echo ' fi # grep' >>$CONFIG_STATUS
23870 echo >>$CONFIG_STATUS
23872 # Break up conftest.undefs because some shells have a limit on the size
23873 # of here documents, and old seds have small limits too (100 cmds).
23874 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23875 rm -f conftest.
tail
23876 while grep . conftest.undefs
>/dev
/null
23878 # Write a limited-size here document to $tmp/undefs.sed.
23879 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23880 # Speed up: don't consider the non
`#undef'
23881 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23882 # Work around the forget-to-reset-the-flag bug.
23883 echo 't clr' >>$CONFIG_STATUS
23884 echo ': clr' >>$CONFIG_STATUS
23885 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23887 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23889 mv $tmp/out $tmp/in
23891 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23892 rm -f conftest.undefs
23893 mv conftest.tail conftest.undefs
23895 rm -f conftest.undefs
23897 cat >>$CONFIG_STATUS <<\_ACEOF
23898 # Let's still pretend it is `configure
' which instantiates (i.e., don't
23899 # use $as_me), people would be surprised to read:
23900 # /* config.h. Generated by config.status. */
23901 if test x
"$ac_file" = x-
; then
23902 echo "/* Generated by configure. */" >$tmp/config.h
23904 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23906 cat $tmp/in >>$tmp/config.h
23908 if test x
"$ac_file" != x-
; then
23909 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
23910 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23911 echo "$as_me: $ac_file is unchanged" >&6;}
23913 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
23914 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23915 X"$ac_file" : 'X\(//\)[^/]' \| \
23916 X"$ac_file" : 'X\(//\)$' \| \
23917 X"$ac_file" : 'X\(/\)' \| \
23918 . : '\(.\)' 2>/dev/null ||
23920 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23921 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23922 /^X\(\/\/\)$/{ s//\1/; q; }
23923 /^X\(\/\).*/{ s//\1/; q; }
23925 { if $as_mkdir_p; then
23930 while test ! -d "$as_dir"; do
23931 as_dirs
="$as_dir $as_dirs"
23932 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
23933 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23934 X"$as_dir" : 'X\(//\)[^/]' \| \
23935 X"$as_dir" : 'X\(//\)$' \| \
23936 X"$as_dir" : 'X\(/\)' \| \
23937 . : '\(.\)' 2>/dev/null ||
23939 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23940 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23941 /^X\(\/\/\)$/{ s//\1/; q; }
23942 /^X\(\/\).*/{ s//\1/; q; }
23945 test ! -n "$as_dirs" || mkdir
$as_dirs
23946 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23947 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23948 { (exit 1); exit 1; }; }; }
23951 mv $tmp/config.h
$ac_file
23955 rm -f $tmp/config.h
23960 cat >>$CONFIG_STATUS <<\_ACEOF
23962 { (exit 0); exit 0; }
23964 chmod +x
$CONFIG_STATUS
23965 ac_clean_files
=$ac_clean_files_save
23968 # configure is writing to config.log, and then calls config.status.
23969 # config.status does its own redirection, appending to config.log.
23970 # Unfortunately, on DOS this fails, as config.log is still kept open
23971 # by configure, so config.status won't be able to write to it; its
23972 # output is simply discarded. So we exec the FD to /dev/null,
23973 # effectively closing config.log, so it can be properly (re)opened and
23974 # appended to by config.status. When coming back to configure, we
23975 # need to make the FD available again.
23976 if test "$no_create" != yes; then
23978 ac_config_status_args
=
23979 test "$silent" = yes &&
23980 ac_config_status_args
="$ac_config_status_args --quiet"
23982 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
23984 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23985 # would make configure fail if this is the last instruction.
23986 $ac_cs_success ||
{ (exit 1); exit 1; }
23990 echo "creating Modules/Setup"
23991 if test ! -f Modules
/Setup
23993 cp $srcdir/Modules
/Setup.dist Modules
/Setup
23996 echo "creating Modules/Setup.local"
23997 if test ! -f Modules
/Setup.
local
23999 echo "# Edit this file for local setup changes" >Modules
/Setup.
local
24002 echo "creating Makefile"
24003 $SHELL $srcdir/Modules
/makesetup
-c $srcdir/Modules
/config.c.
in \
24004 -s Modules Modules
/Setup.config \
24005 Modules
/Setup.
local Modules
/Setup
24006 mv config.c Modules