2 # From configure.in Revision: 45278 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59 for python 2.5.
6 # Report bugs to <http://www.python.org/python-bugs>.
8 # Copyright (C) 2003 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
25 DUALCASE
=1; export DUALCASE
# for MKS sh
27 # Support unset when possible.
28 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
35 # Work around bugs in pre-3.0 UWIN ksh.
36 $as_unset ENV MAIL MAILPATH
43 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
47 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
48 eval $as_var=C
; export $as_var
54 # Required to use basename.
55 if expr a
: '\(a\)' >/dev
/null
2>&1; then
61 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
68 # Name of the executable.
69 as_me
=`$as_basename "$0" ||
70 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71 X"$0" : 'X\(//\)$' \| \
72 X"$0" : 'X\(/\)$' \| \
73 . : '\(.\)' 2>/dev/null ||
75 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76 /^X\/\(\/\/\)$/{ s//\1/; q; }
77 /^X\/\(\/\).*/{ s//\1/; q; }
81 # PATH needs CR, and LINENO needs CR and PATH.
82 # Avoid depending upon Character Ranges.
83 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
84 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
86 as_cr_digits
='0123456789'
87 as_cr_alnum
=$as_cr_Letters$as_cr_digits
89 # The user is always right.
90 if test "${PATH_SEPARATOR+set}" != set; then
91 echo "#! /bin/sh" >conf$$.sh
92 echo "exit 0" >>conf$$.sh
94 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
105 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
106 test "x$as_lineno_1" != "x$as_lineno_2" &&
107 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
108 # Find who we are. Look in the path if we contain no path at all
111 *[\\/]* ) as_myself
=$0 ;;
112 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
116 test -z "$as_dir" && as_dir
=.
117 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
122 # We did not find ourselves, most probably we were run as `sh COMMAND'
123 # in which case we are not to be found in the path.
124 if test "x$as_myself" = x
; then
127 if test ! -f "$as_myself"; then
128 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129 { (exit 1); exit 1; }; }
131 case $CONFIG_SHELL in
133 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
134 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
137 test -z "$as_dir" && as_dir
=.
138 for as_base
in sh bash ksh sh5
; do
141 if ("$as_dir/$as_base" -c '
144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145 test "x$as_lineno_1" != "x$as_lineno_2" &&
146 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
147 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
148 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
149 CONFIG_SHELL
=$as_dir/$as_base
151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160 # uniformly replaced by the line number. The first 'sed' inserts a
161 # line-number line before each line; the second 'sed' does the real
162 # work. The second script uses 'N' to pair each line-number line
163 # with the numbered line, and appends trailing '-' during
164 # substitution so that $LINENO is not a special case at line end.
165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
167 sed '=' <$as_myself |
172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
175 s,^['$as_cr_digits']*\n,,
177 chmod +x
$as_me.lineno ||
178 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179 { (exit 1); exit 1; }; }
181 # Don't try to exec as it changes $[0], causing all sort of problems
182 # (the dirname of $[0] is not the place where we might find the
183 # original and so on. Autoconf is especially sensible to this).
185 # Exit status is that of the last command.
190 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191 *c
*,-n*) ECHO_N
= ECHO_C
='
193 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
194 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
197 if expr a
: '\(a\)' >/dev
/null
2>&1; then
203 rm -f conf$$ conf$$.exe conf$$.
file
205 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
206 # We could just check for DJGPP; but this test a) works b) is more generic
207 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208 if test -f conf$$.exe
; then
209 # Don't use ln at all; we don't have any links
214 elif ln conf$$.
file conf$$
2>/dev
/null
; then
219 rm -f conf$$ conf$$.exe conf$$.
file
221 if mkdir
-p .
2>/dev
/null
; then
224 test -d .
/-p && rmdir .
/-p
228 as_executable_p
="test -f"
230 # Sed expression to map a string onto a valid CPP name.
231 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
233 # Sed expression to map a string onto a valid variable name.
234 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
238 # We need space, tab and new line, in precisely that order.
248 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
249 # so uname gets run too.
250 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
257 ac_default_prefix
=/usr
/local
258 ac_config_libobj_dir
=.
263 SHELL
=${CONFIG_SHELL-/bin/sh}
265 # Maximum number of lines to put in a shell here document.
266 # This variable seems obsolete. It should probably be removed, and
267 # only ac_max_sed_lines should be used.
268 : ${ac_max_here_lines=38}
270 # Identity of this package.
271 PACKAGE_NAME
='python'
272 PACKAGE_TARNAME
='python'
273 PACKAGE_VERSION
='2.5'
274 PACKAGE_STRING
='python 2.5'
275 PACKAGE_BUGREPORT
='http://www.python.org/python-bugs'
277 ac_unique_file
="Include/object.h"
278 # Factoring default headers for most tests.
279 ac_includes_default
="\
282 # include <sys/types.h>
285 # include <sys/stat.h>
296 # if !STDC_HEADERS && HAVE_MEMORY_H
302 # include <strings.h>
305 # include <inttypes.h>
315 ac_subst_vars
='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS VERSION SOVERSION CONFIG_ARGS PYTHONFRAMEWORK PYTHONFRAMEWORKDIR PYTHONFRAMEWORKPREFIX PYTHONFRAMEWORKINSTALLDIR MACHDEP SGI_ABI EXTRAPLATDIR EXTRAMACHDEPPATH CONFIGURE_MACOSX_DEPLOYMENT_TARGET CXX MAINOBJ EXEEXT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC OBJEXT CPP EGREP BUILDEXEEXT LIBRARY LDLIBRARY DLLLIBRARY BLDLIBRARY LDLIBRARYDIR INSTSONAME RUNSHARED LINKCC RANLIB ac_ct_RANLIB AR SVNVERSION INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN OPT BASECFLAGS OTHER_LIBTOOL_OPT LIBTOOL_CRUFT SO LDSHARED BLDSHARED CCSHARED LINKFORSHARED CFLAGSFORSHARED SHLIBS USE_SIGNAL_MODULE SIGNAL_OBJS USE_THREAD_MODULE LDLAST THREADOBJ DLINCLDIR DYNLOADFILE MACHDEP_OBJS TRUE LIBOBJS HAVE_GETHOSTBYNAME_R_6_ARG HAVE_GETHOSTBYNAME_R_5_ARG HAVE_GETHOSTBYNAME_R_3_ARG HAVE_GETHOSTBYNAME_R HAVE_GETHOSTBYNAME LIBM LIBC UNICODE_OBJS THREADHEADERS SRCDIRS LTLIBOBJS'
318 # Initialize some variables set by options.
320 ac_init_version
=false
321 # The variables have the same names as the options, with
322 # dashes changed to underlines.
330 program_transform_name
=s
,x
,x
,
338 # Installation directory options.
339 # These are left unexpanded so users can "make install exec_prefix=/foo"
340 # and all the variables that are supposed to be based on exec_prefix
341 # by default will actually change.
342 # Use braces instead of parens because sh, perl, etc. also accept them.
343 bindir
='${exec_prefix}/bin'
344 sbindir
='${exec_prefix}/sbin'
345 libexecdir
='${exec_prefix}/libexec'
346 datadir
='${prefix}/share'
347 sysconfdir
='${prefix}/etc'
348 sharedstatedir
='${prefix}/com'
349 localstatedir
='${prefix}/var'
350 libdir
='${exec_prefix}/lib'
351 includedir
='${prefix}/include'
352 oldincludedir
='/usr/include'
353 infodir
='${prefix}/info'
354 mandir
='${prefix}/man'
359 # If the previous option needs an argument, assign it.
360 if test -n "$ac_prev"; then
361 eval "$ac_prev=\$ac_option"
366 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
368 # Accept the important Cygnus configure options, so we can diagnose typos.
372 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
374 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
377 -build |
--build |
--buil |
--bui |
--bu)
378 ac_prev
=build_alias
;;
379 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
380 build_alias
=$ac_optarg ;;
382 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
383 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
384 ac_prev
=cache_file
;;
385 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
386 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
387 cache_file
=$ac_optarg ;;
390 cache_file
=config.cache
;;
392 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
394 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
396 datadir
=$ac_optarg ;;
398 -disable-* |
--disable-*)
399 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
400 # Reject names that are not valid shell variable names.
401 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
402 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
403 { (exit 1); exit 1; }; }
404 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
405 eval "enable_$ac_feature=no" ;;
407 -enable-* |
--enable-*)
408 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
409 # Reject names that are not valid shell variable names.
410 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
411 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
412 { (exit 1); exit 1; }; }
413 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
415 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
418 eval "enable_$ac_feature='$ac_optarg'" ;;
420 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
421 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
422 |
--exec |
--exe |
--ex)
423 ac_prev
=exec_prefix
;;
424 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
425 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
426 |
--exec=* |
--exe=* |
--ex=*)
427 exec_prefix
=$ac_optarg ;;
429 -gas |
--gas |
--ga |
--g)
430 # Obsolete; use --with-gas.
433 -help |
--help |
--hel |
--he |
-h)
435 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
436 ac_init_help
=recursive
;;
437 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
438 ac_init_help
=short
;;
440 -host |
--host |
--hos |
--ho)
441 ac_prev
=host_alias
;;
442 -host=* |
--host=* |
--hos=* |
--ho=*)
443 host_alias
=$ac_optarg ;;
445 -includedir |
--includedir |
--includedi |
--included |
--include \
446 |
--includ |
--inclu |
--incl |
--inc)
447 ac_prev
=includedir
;;
448 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
449 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
450 includedir
=$ac_optarg ;;
452 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
454 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
455 infodir
=$ac_optarg ;;
457 -libdir |
--libdir |
--libdi |
--libd)
459 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
462 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
463 |
--libexe |
--libex |
--libe)
464 ac_prev
=libexecdir
;;
465 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
466 |
--libexe=* |
--libex=* |
--libe=*)
467 libexecdir
=$ac_optarg ;;
469 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
470 |
--localstate |
--localstat |
--localsta |
--localst \
471 |
--locals |
--local |
--loca |
--loc |
--lo)
472 ac_prev
=localstatedir
;;
473 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
474 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
475 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
476 localstatedir
=$ac_optarg ;;
478 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
480 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
484 # Obsolete; use --without-fp.
487 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
488 |
--no-cr |
--no-c |
-n)
491 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
492 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
495 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
496 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
497 |
--oldin |
--oldi |
--old |
--ol |
--o)
498 ac_prev
=oldincludedir
;;
499 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
500 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
501 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
502 oldincludedir
=$ac_optarg ;;
504 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
506 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
509 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
510 |
--program-pre |
--program-pr |
--program-p)
511 ac_prev
=program_prefix
;;
512 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
513 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
514 program_prefix
=$ac_optarg ;;
516 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
517 |
--program-suf |
--program-su |
--program-s)
518 ac_prev
=program_suffix
;;
519 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
520 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
521 program_suffix
=$ac_optarg ;;
523 -program-transform-name |
--program-transform-name \
524 |
--program-transform-nam |
--program-transform-na \
525 |
--program-transform-n |
--program-transform- \
526 |
--program-transform |
--program-transfor \
527 |
--program-transfo |
--program-transf \
528 |
--program-trans |
--program-tran \
529 |
--progr-tra |
--program-tr |
--program-t)
530 ac_prev
=program_transform_name
;;
531 -program-transform-name=* |
--program-transform-name=* \
532 |
--program-transform-nam=* |
--program-transform-na=* \
533 |
--program-transform-n=* |
--program-transform-=* \
534 |
--program-transform=* |
--program-transfor=* \
535 |
--program-transfo=* |
--program-transf=* \
536 |
--program-trans=* |
--program-tran=* \
537 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
538 program_transform_name
=$ac_optarg ;;
540 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
541 |
-silent |
--silent |
--silen |
--sile |
--sil)
544 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
546 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
548 sbindir
=$ac_optarg ;;
550 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
551 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
552 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
554 ac_prev
=sharedstatedir
;;
555 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
556 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
557 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
559 sharedstatedir
=$ac_optarg ;;
561 -site |
--site |
--sit)
563 -site=* |
--site=* |
--sit=*)
566 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
568 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
571 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
572 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
573 ac_prev
=sysconfdir
;;
574 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
575 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
576 sysconfdir
=$ac_optarg ;;
578 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
579 ac_prev
=target_alias
;;
580 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
581 target_alias
=$ac_optarg ;;
583 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
586 -version |
--version |
--versio |
--versi |
--vers |
-V)
590 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
591 # Reject names that are not valid shell variable names.
592 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
593 { echo "$as_me: error: invalid package name: $ac_package" >&2
594 { (exit 1); exit 1; }; }
595 ac_package
=`echo $ac_package| sed 's/-/_/g'`
597 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
600 eval "with_$ac_package='$ac_optarg'" ;;
602 -without-* |
--without-*)
603 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
604 # Reject names that are not valid shell variable names.
605 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
606 { echo "$as_me: error: invalid package name: $ac_package" >&2
607 { (exit 1); exit 1; }; }
608 ac_package
=`echo $ac_package | sed 's/-/_/g'`
609 eval "with_$ac_package=no" ;;
612 # Obsolete; use --with-x.
615 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
616 |
--x-incl |
--x-inc |
--x-in |
--x-i)
617 ac_prev
=x_includes
;;
618 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
619 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
620 x_includes
=$ac_optarg ;;
622 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
623 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
624 ac_prev
=x_libraries
;;
625 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
626 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
627 x_libraries
=$ac_optarg ;;
629 -*) { echo "$as_me: error: unrecognized option: $ac_option
630 Try \`$0 --help' for more information." >&2
631 { (exit 1); exit 1; }; }
635 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
636 # Reject names that are not valid shell variable names.
637 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
638 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
639 { (exit 1); exit 1; }; }
640 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
641 eval "$ac_envvar='$ac_optarg'"
645 # FIXME: should be removed in autoconf 3.0.
646 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
647 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
648 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
649 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
655 if test -n "$ac_prev"; then
656 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
657 { echo "$as_me: error: missing argument to $ac_option" >&2
658 { (exit 1); exit 1; }; }
661 # Be sure to have absolute paths.
662 for ac_var
in exec_prefix prefix
664 eval ac_val
=$
`echo $ac_var`
666 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
667 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
668 { (exit 1); exit 1; }; };;
672 # Be sure to have absolute paths.
673 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
674 localstatedir libdir includedir oldincludedir infodir mandir
676 eval ac_val
=$
`echo $ac_var`
678 [\\/$
]* | ?
:[\\/]* ) ;;
679 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
680 { (exit 1); exit 1; }; };;
684 # There might be people who depend on the old broken behavior: `$host'
685 # used to hold the argument of --host etc.
686 # FIXME: To remove some day.
691 # FIXME: To remove some day.
692 if test "x$host_alias" != x
; then
693 if test "x$build_alias" = x
; then
694 cross_compiling
=maybe
695 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
696 If a cross compiler is detected then cross compile mode will be used." >&2
697 elif test "x$build_alias" != "x$host_alias"; then
703 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
705 test "$silent" = yes && exec 6>/dev
/null
708 # Find the source files, if location was not specified.
709 if test -z "$srcdir"; then
710 ac_srcdir_defaulted
=yes
711 # Try the directory containing this script, then its parent.
712 ac_confdir
=`(dirname "$0") 2>/dev/null ||
713 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
714 X"$0" : 'X\(//\)[^/]' \| \
715 X"$0" : 'X\(//\)$' \| \
716 X"$0" : 'X\(/\)' \| \
717 . : '\(.\)' 2>/dev/null ||
719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
720 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
721 /^X\(\/\/\)$/{ s//\1/; q; }
722 /^X\(\/\).*/{ s//\1/; q; }
725 if test ! -r $srcdir/$ac_unique_file; then
729 ac_srcdir_defaulted
=no
731 if test ! -r $srcdir/$ac_unique_file; then
732 if test "$ac_srcdir_defaulted" = yes; then
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
734 { (exit 1); exit 1; }; }
736 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
737 { (exit 1); exit 1; }; }
740 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
741 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
742 { (exit 1); exit 1; }; }
743 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
744 ac_env_build_alias_set
=${build_alias+set}
745 ac_env_build_alias_value
=$build_alias
746 ac_cv_env_build_alias_set
=${build_alias+set}
747 ac_cv_env_build_alias_value
=$build_alias
748 ac_env_host_alias_set
=${host_alias+set}
749 ac_env_host_alias_value
=$host_alias
750 ac_cv_env_host_alias_set
=${host_alias+set}
751 ac_cv_env_host_alias_value
=$host_alias
752 ac_env_target_alias_set
=${target_alias+set}
753 ac_env_target_alias_value
=$target_alias
754 ac_cv_env_target_alias_set
=${target_alias+set}
755 ac_cv_env_target_alias_value
=$target_alias
756 ac_env_CC_set
=${CC+set}
758 ac_cv_env_CC_set
=${CC+set}
759 ac_cv_env_CC_value
=$CC
760 ac_env_CFLAGS_set
=${CFLAGS+set}
761 ac_env_CFLAGS_value
=$CFLAGS
762 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
763 ac_cv_env_CFLAGS_value
=$CFLAGS
764 ac_env_LDFLAGS_set
=${LDFLAGS+set}
765 ac_env_LDFLAGS_value
=$LDFLAGS
766 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
767 ac_cv_env_LDFLAGS_value
=$LDFLAGS
768 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
769 ac_env_CPPFLAGS_value
=$CPPFLAGS
770 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
771 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
772 ac_env_CPP_set
=${CPP+set}
773 ac_env_CPP_value
=$CPP
774 ac_cv_env_CPP_set
=${CPP+set}
775 ac_cv_env_CPP_value
=$CPP
778 # Report the --help message.
780 if test "$ac_init_help" = "long"; then
781 # Omit some internal or obsolete options to make the list less imposing.
782 # This message is too long to be a string in the A/UX 3.1 sh.
784 \`configure' configures python 2.5 to adapt to many kinds of systems.
786 Usage: $0 [OPTION]... [VAR=VALUE]...
788 To assign environment variables (e.g., CC, CFLAGS...), specify them as
789 VAR=VALUE. See below for descriptions of some of the useful variables.
791 Defaults for the options are specified in brackets.
794 -h, --help display this help and exit
795 --help=short display options specific to this package
796 --help=recursive display the short help of all the included packages
797 -V, --version display version information and exit
798 -q, --quiet, --silent do not print \`checking...' messages
799 --cache-file=FILE cache test results in FILE [disabled]
800 -C, --config-cache alias for \`--cache-file=config.cache'
801 -n, --no-create do not create output files
802 --srcdir=DIR find the sources in DIR [configure dir or \`..']
807 Installation directories:
808 --prefix=PREFIX install architecture-independent files in PREFIX
810 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
813 By default, \`make install' will install all the files in
814 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
815 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
816 for instance \`--prefix=\$HOME'.
818 For better control, use the options below.
820 Fine tuning of the installation directories:
821 --bindir=DIR user executables [EPREFIX/bin]
822 --sbindir=DIR system admin executables [EPREFIX/sbin]
823 --libexecdir=DIR program executables [EPREFIX/libexec]
824 --datadir=DIR read-only architecture-independent data [PREFIX/share]
825 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
826 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
827 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
828 --libdir=DIR object code libraries [EPREFIX/lib]
829 --includedir=DIR C header files [PREFIX/include]
830 --oldincludedir=DIR C header files for non-gcc [/usr/include]
831 --infodir=DIR info documentation [PREFIX/info]
832 --mandir=DIR man documentation [PREFIX/man]
839 if test -n "$ac_init_help"; then
840 case $ac_init_help in
841 short | recursive
) echo "Configuration of python 2.5:";;
846 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
847 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
848 --enable-framework[=INSTALLDIR
]
849 Build
(MacOSX|Darwin
) framework
850 --enable-shared disable
/enable building shared python library
851 --enable-profiling enable C-level code profiling
852 --enable-toolbox-glue disable
/enable MacOSX glue code
for extensions
853 --enable-ipv6 Enable ipv6
(with ipv4
) support
854 --disable-ipv6 Disable ipv6 support
855 --enable-unicode[=ucs
[24]]
856 Enable Unicode
strings (default is
yes)
859 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
860 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
861 --without-gcc never use gcc
862 --with-cxx=<compiler
> enable C
++ support
863 --with-suffix=.exe
set executable suffix
864 --with-pydebug build with Py_DEBUG defined
865 --with-libs='lib1 ...' link against additional libs
866 --with-system-ffi build _ctypes module using an installed ffi library
867 --with-signal-module disable
/enable signal module
868 --with-dec-threads use DEC Alpha
/OSF1 thread-safe libraries
869 --with(out
)-threads[=DIRECTORY
]
870 disable
/enable thread support
871 --with(out
)-thread[=DIRECTORY
]
872 deprecated
; use
--with(out
)-threads
873 --with-pth use GNU pth threading libraries
874 --with(out
)-doc-strings disable
/enable documentation
strings
875 --with(out
)-tsc enable
/disable timestamp counter profile
876 --with(out
)-pymalloc disable
/enable specialized mallocs
877 --with-wctype-functions use wctype.h functions
878 --with-fpectl enable SIGFPE catching
879 --with-libm=STRING math library
880 --with-libc=STRING C library
882 Some influential environment variables
:
883 CC C compiler
command
884 CFLAGS C compiler flags
885 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
886 nonstandard directory
<lib dir
>
887 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
888 headers
in a nonstandard directory
<include dir
>
891 Use these variables to override the choices made by
`configure' or to help
892 it to find libraries and programs with nonstandard names/locations.
894 Report bugs to <http://www.python.org/python-bugs>.
898 if test "$ac_init_help" = "recursive"; then
899 # If there are subdirs, report their specific --help.
901 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
902 test -d $ac_dir || continue
905 if test "$ac_dir" != .; then
906 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
907 # A "../" for each directory in $ac_dir_suffix.
908 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
910 ac_dir_suffix= ac_top_builddir=
914 .) # No --srcdir option. We are building in place.
916 if test -z "$ac_top_builddir"; then
919 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
921 [\\/]* | ?:[\\/]* ) # Absolute path.
922 ac_srcdir=$srcdir$ac_dir_suffix;
923 ac_top_srcdir=$srcdir ;;
925 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
926 ac_top_srcdir=$ac_top_builddir$srcdir ;;
929 # Do not use `cd foo
&& pwd` to compute absolute paths, because
930 # the directories may not exist.
932 .) ac_abs_builddir="$ac_dir";;
935 .) ac_abs_builddir=`pwd`;;
936 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
937 *) ac_abs_builddir=`pwd`/"$ac_dir";;
940 case $ac_abs_builddir in
941 .) ac_abs_top_builddir=${ac_top_builddir}.;;
943 case ${ac_top_builddir}. in
944 .) ac_abs_top_builddir=$ac_abs_builddir;;
945 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
946 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
949 case $ac_abs_builddir in
950 .) ac_abs_srcdir=$ac_srcdir;;
953 .) ac_abs_srcdir=$ac_abs_builddir;;
954 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
955 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
958 case $ac_abs_builddir in
959 .) ac_abs_top_srcdir=$ac_top_srcdir;;
961 case $ac_top_srcdir in
962 .) ac_abs_top_srcdir=$ac_abs_builddir;;
963 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
964 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
969 # Check for guested configure; otherwise get Cygnus style configure.
970 if test -f $ac_srcdir/configure.gnu; then
972 $SHELL $ac_srcdir/configure.gnu --help=recursive
973 elif test -f $ac_srcdir/configure; then
975 $SHELL $ac_srcdir/configure --help=recursive
976 elif test -f $ac_srcdir/configure.ac ||
977 test -f $ac_srcdir/configure.in; then
981 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
987 test -n "$ac_init_help" && exit 0
988 if $ac_init_version; then
991 generated by GNU Autoconf 2.59
993 Copyright (C) 2003 Free Software Foundation, Inc.
994 This configure script is free software; the Free Software Foundation
995 gives unlimited permission to copy, distribute and modify it.
1001 This file contains any messages produced by compilers while
1002 running configure, to aid debugging if configure makes a mistake.
1004 It was created by python $as_me 2.5, which was
1005 generated by GNU Autoconf 2.59. Invocation command line was
1016 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1017 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1018 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1019 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1020 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1022 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1023 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1025 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1026 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1027 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1028 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1029 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1030 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1031 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1039 test -z "$as_dir" && as_dir=.
1040 echo "PATH: $as_dir"
1055 # Keep a trace of the command line.
1056 # Strip out --no-create and --no-recursion so they do not pile up.
1057 # Strip out --silent because we don't want to record it for future runs.
1058 # Also quote any args containing shell meta-characters.
1059 # Make two passes to allow for proper duplicate-argument suppression.
1064 ac_must_keep_next=false
1070 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1071 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1072 | -silent | --silent | --silen | --sile | --sil)
1074 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1075 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1078 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1080 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1081 if test $ac_must_keep_next = true; then
1082 ac_must_keep_next=false # Got value, back to normal.
1085 *=* | --config-cache | -C | -disable-* | --disable-* \
1086 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1087 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1088 | -with-* | --with-* | -without-* | --without-* | --x)
1089 case "$ac_configure_args0 " in
1090 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1093 -* ) ac_must_keep_next=true ;;
1096 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1097 # Get rid of the leading space.
1103 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1104 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1106 # When interrupted or exit'd, cleanup temporary files, and complete
1107 # config.log. We remove comments because anyway the quotes in there
1108 # would cause problems or look ugly.
1109 # WARNING: Be sure not to use single quotes in there, as some shells,
1110 # such as our DU 5.0 friend, will then `close
' the trap.
1111 trap 'exit_status
=$?
1112 # Save into config.log some information that might help in debugging.
1117 ## ---------------- ##
1118 ## Cache variables. ##
1119 ## ---------------- ##
1122 # The following way of writing the cache mishandles newlines in values,
1125 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1128 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1129 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1133 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1140 ## ----------------- ##
1141 ## Output variables. ##
1142 ## ----------------- ##
1145 for ac_var
in $ac_subst_vars
1147 eval ac_val
=$
`echo $ac_var`
1148 echo "$ac_var='"'"'$ac_val'"'"'"
1152 if test -n "$ac_subst_files"; then
1159 for ac_var
in $ac_subst_files
1161 eval ac_val
=$
`echo $ac_var`
1162 echo "$ac_var='"'"'$ac_val'"'"'"
1167 if test -s confdefs.h
; then
1174 sed "/^$/d" confdefs.h |
sort
1177 test "$ac_signal" != 0 &&
1178 echo "$as_me: caught signal $ac_signal"
1179 echo "$as_me: exit $exit_status"
1181 rm -f core
*.core
&&
1182 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1185 for ac_signal in 1 2 13 15; do
1186 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1190 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1191 rm -rf conftest* confdefs.h
1192 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1195 # Predefined preprocessor variables.
1197 cat >>confdefs.h <<_ACEOF
1198 #define PACKAGE_NAME "$PACKAGE_NAME"
1202 cat >>confdefs.h <<_ACEOF
1203 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1207 cat >>confdefs.h <<_ACEOF
1208 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1212 cat >>confdefs.h <<_ACEOF
1213 #define PACKAGE_STRING "$PACKAGE_STRING"
1217 cat >>confdefs.h <<_ACEOF
1218 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1222 # Let the site file select an alternate cache file if it wants to.
1223 # Prefer explicitly selected file to automatically selected ones.
1224 if test -z "$CONFIG_SITE"; then
1225 if test "x$prefix" != xNONE; then
1226 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1228 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1231 for ac_site_file in $CONFIG_SITE; do
1232 if test -r "$ac_site_file"; then
1233 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1234 echo "$as_me: loading site script $ac_site_file" >&6;}
1235 sed 's
/^
/|
/' "$ac_site_file" >&5
1240 if test -r "$cache_file"; then
1241 # Some versions of bash will fail to source /dev/null (special
1242 # files actually), so we avoid doing that.
1243 if test -f "$cache_file"; then
1244 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1245 echo "$as_me: loading cache $cache_file" >&6;}
1247 [\\/]* | ?:[\\/]* ) . $cache_file;;
1248 *) . ./$cache_file;;
1252 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1253 echo "$as_me: creating cache $cache_file" >&6;}
1257 # Check that the precious variables saved in the cache have kept the same
1259 ac_cache_corrupted=false
1260 for ac_var in `(set) 2>&1 |
1261 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1262 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1263 eval ac_new_set=\$ac_env_${ac_var}_set
1264 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1265 eval ac_new_val="\$ac_env_${ac_var}_value"
1266 case $ac_old_set,$ac_new_set in
1268 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1269 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1270 ac_cache_corrupted=: ;;
1272 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1273 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1274 ac_cache_corrupted=: ;;
1277 if test "x$ac_old_val" != "x$ac_new_val"; then
1278 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1279 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1280 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1281 echo "$as_me: former value: $ac_old_val" >&2;}
1282 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1283 echo "$as_me: current value: $ac_new_val" >&2;}
1284 ac_cache_corrupted=:
1287 # Pass precious variables to config.status.
1288 if test "$ac_new_set" = set; then
1290 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1291 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1292 *) ac_arg=$ac_var=$ac_new_val ;;
1294 case " $ac_configure_args " in
1295 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1296 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1300 if $ac_cache_corrupted; then
1301 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1302 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1303 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1304 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1305 { (exit 1); exit 1; }; }
1309 ac_cpp='$CPP $CPPFLAGS'
1310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1311 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1341 ac_config_headers="$ac_config_headers pyconfig.h"
1349 # We don't use PACKAGE_ variables
, and they cause conflicts
1350 # with other autoconf-based packages that include Python.h
1351 grep -v 'define PACKAGE_' <confdefs.h
>confdefs.h.new
1353 mv confdefs.h.new confdefs.h
1361 # The later defininition of _XOPEN_SOURCE disables certain features
1362 # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
1364 cat >>confdefs.h
<<\_ACEOF
1365 #define _GNU_SOURCE 1
1369 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1370 # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
1373 cat >>confdefs.h
<<\_ACEOF
1374 #define _NETBSD_SOURCE 1
1378 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1379 # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
1382 cat >>confdefs.h
<<\_ACEOF
1383 #define __BSD_VISIBLE 1
1387 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1388 # u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
1390 cat >>confdefs.h
<<\_ACEOF
1391 #define _BSD_TYPES 1
1395 define_xopen_source
=yes
1397 # Arguments passed to configure.
1399 CONFIG_ARGS
="$ac_configure_args"
1401 # Check whether --enable-framework or --disable-framework was given.
1402 if test "${enable_framework+set}" = set; then
1403 enableval
="$enable_framework"
1407 enableval
=/Library
/Frameworks
1412 PYTHONFRAMEWORKDIR
=no-framework
1413 PYTHONFRAMEWORKPREFIX
=
1414 PYTHONFRAMEWORKINSTALLDIR
=
1418 PYTHONFRAMEWORK
=Python
1419 PYTHONFRAMEWORKDIR
=Python.framework
1420 PYTHONFRAMEWORKPREFIX
=$enableval
1421 PYTHONFRAMEWORKINSTALLDIR
=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
1422 prefix
=$PYTHONFRAMEWORKINSTALLDIR/Versions
/$VERSION
1428 PYTHONFRAMEWORKDIR
=no-framework
1429 PYTHONFRAMEWORKPREFIX
=
1430 PYTHONFRAMEWORKINSTALLDIR
=
1440 ## AC_HELP_STRING(--with-dyld,
1441 ## Use (OpenStep|Rhapsody) dynamic linker))
1443 # Set name for machine-dependent library files
1445 echo "$as_me:$LINENO: checking MACHDEP" >&5
1446 echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6
1447 if test -z "$MACHDEP"
1449 ac_sys_system
=`uname -s`
1450 if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \
1451 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
1452 ac_sys_release
=`uname -v`
1454 ac_sys_release
=`uname -r`
1456 ac_md_system
=`echo $ac_sys_system |
1457 tr -d '/ ' | tr '[A-Z]' '[a-z]'`
1458 ac_md_release
=`echo $ac_sys_release |
1459 tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'`
1460 MACHDEP
="$ac_md_system$ac_md_release"
1463 cygwin
*) MACHDEP
="cygwin";;
1464 darwin
*) MACHDEP
="darwin";;
1465 atheos
*) MACHDEP
="atheos";;
1466 irix646
) MACHDEP
="irix6";;
1467 '') MACHDEP
="unknown";;
1471 # Some systems cannot stand _XOPEN_SOURCE being defined at all; they
1472 # disable features if it is defined, without any means to access these
1473 # features as extensions. For these systems, we skip the definition of
1474 # _XOPEN_SOURCE. Before adding a system to the list to gain access to
1475 # some feature, make sure there is no alternative way to access this
1476 # feature. Also, when using wildcards, make sure you have verified the
1477 # need for not defining _XOPEN_SOURCE on all systems matching the
1478 # wildcard, and that the wildcard does not include future systems
1479 # (which may remove their limitations).
1480 case $ac_sys_system/$ac_sys_release in
1481 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
1482 # even though select is a POSIX function. Reported by J. Ribbens.
1483 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
1484 OpenBSD
/2.
* | OpenBSD
/3.
[012345678])
1485 define_xopen_source
=no
;;
1486 # On Solaris 2.6, sys/wait.h is inconsistent in the usage
1487 # of union __?sigval. Reported by Stuart Bishop.
1489 define_xopen_source
=no
;;
1490 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
1491 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
1492 # Reconfirmed for 7.1.4 by Martin v. Loewis.
1493 OpenUNIX
/8.0.0| UnixWare
/7.1.
[0-4])
1494 define_xopen_source
=no
;;
1495 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
1496 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
1498 define_xopen_source
=no
;;
1499 # On FreeBSD 4.8 and MacOS X 10.2, a bug in ncurses.h means that
1500 # it craps out if _XOPEN_EXTENDED_SOURCE is defined. Apparently,
1501 # this is fixed in 10.3, which identifies itself as Darwin/7.*
1502 # This should hopefully be fixed in FreeBSD 4.9
1503 FreeBSD
/4.8* | Darwin
/6* )
1504 define_xopen_source
=no
;;
1505 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
1506 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
1507 # or has another value. By not (re)defining it, the defaults come in place.
1509 define_xopen_source
=no
;;
1511 if test `uname -r` -eq 1; then
1512 define_xopen_source
=no
1515 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
1516 # disables platform specific features beyond repair.
1517 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
1518 # has no effect, don't bother defineing them
1520 define_xopen_source
=no
1525 if test $define_xopen_source = yes
1527 # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be
1528 # defined precisely as g++ defines it
1529 # Furthermore, on Solaris 10, XPG6 requires the use of a C99
1531 case $ac_sys_system/$ac_sys_release in
1532 SunOS
/5.8|SunOS
/5.9|SunOS
/5.10)
1534 cat >>confdefs.h
<<\_ACEOF
1535 #define _XOPEN_SOURCE 500
1541 cat >>confdefs.h
<<\_ACEOF
1542 #define _XOPEN_SOURCE 600
1548 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
1549 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
1550 # several APIs are not declared. Since this is also needed in some
1551 # cases for HP-UX, we define it globally.
1552 # except for Solaris 10, where it must not be defined,
1553 # as it implies XPG4.2
1554 case $ac_sys_system/$ac_sys_release in
1559 cat >>confdefs.h
<<\_ACEOF
1560 #define _XOPEN_SOURCE_EXTENDED 1
1567 cat >>confdefs.h
<<\_ACEOF
1568 #define _POSIX_C_SOURCE 200112L
1575 # SGI compilers allow the specification of the both the ABI and the
1576 # ISA on the command line. Depending on the values of these switches,
1577 # different and often incompatable code will be generated.
1579 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
1580 # thus supply support for various ABI/ISA combinations. The MACHDEP
1581 # variable is also adjusted.
1584 if test ! -z "$SGI_ABI"
1587 LDFLAGS
="$SGI_ABI $LDFLAGS"
1588 MACHDEP
=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'`
1590 echo "$as_me:$LINENO: result: $MACHDEP" >&5
1591 echo "${ECHO_T}$MACHDEP" >&6
1593 # And add extra plat-mac for darwin
1596 echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5
1597 echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6
1598 if test -z "$EXTRAPLATDIR"
1602 EXTRAPLATDIR
="\$(PLATMACDIRS)"
1603 EXTRAMACHDEPPATH
="\$(PLATMACPATH)"
1611 echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5
1612 echo "${ECHO_T}$EXTRAPLATDIR" >&6
1614 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
1615 # it may influence the way we can build extensions, so distutils
1618 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
=
1620 # checks for alternative programs
1622 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
1623 # for debug/optimization stuff. BASECFLAGS is for flags that are required
1624 # just to get things to compile and link. Users are free to override OPT
1625 # when running configure or make. The build should not break if they do.
1626 # BASECFLAGS should generally not be messed with, however.
1628 # XXX shouldn't some/most/all of this code be merged with the stuff later
1629 # on that fiddles with OPT and BASECFLAGS?
1630 echo "$as_me:$LINENO: checking for --without-gcc" >&5
1631 echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6
1633 # Check whether --with-gcc or --without-gcc was given.
1634 if test "${with_gcc+set}" = set; then
1643 without_gcc
=$withval;;
1647 case $ac_sys_system in
1651 case $BE_HOST_CPU in
1655 BASECFLAGS
="$BASECFLAGS -export pragma"
1657 LDFLAGS
="$LDFLAGS -nodup"
1665 { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5
1666 echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;}
1667 { (exit 1); exit 1; }; }
1670 AR
="\$(srcdir)/Modules/ar_beos"
1679 echo "$as_me:$LINENO: result: $without_gcc" >&5
1680 echo "${ECHO_T}$without_gcc" >&6
1685 echo "$as_me:$LINENO: checking for --with-cxx=<compiler>" >&5
1686 echo $ECHO_N "checking for --with-cxx=<compiler>... $ECHO_C" >&6
1688 # Check whether --with-cxx or --without-cxx was given.
1689 if test "${with_cxx+set}" = set; then
1706 echo "$as_me:$LINENO: result: $with_cxx" >&5
1707 echo "${ECHO_T}$with_cxx" >&6
1709 if test "$with_cxx" = "yes"
1711 { { echo "$as_me:$LINENO: error: must supply a compiler when using --with-cxx" >&5
1712 echo "$as_me: error: must supply a compiler when using --with-cxx" >&2;}
1713 { (exit 1); exit 1; }; }
1719 if test "$check_cxx" = "yes"
1721 for ac_prog
in $CCC c
++ g
++ gcc CC cxx cc
++ cl
1723 # Extract the first word of "$ac_prog", so it can be a program name with args.
1724 set dummy
$ac_prog; ac_word
=$2
1725 echo "$as_me:$LINENO: checking for $ac_word" >&5
1726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1727 if test "${ac_cv_prog_CXX+set}" = set; then
1728 echo $ECHO_N "(cached) $ECHO_C" >&6
1730 if test -n "$CXX"; then
1731 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
1733 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1737 test -z "$as_dir" && as_dir
=.
1738 for ac_exec_ext
in '' $ac_executable_extensions; do
1739 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1740 ac_cv_prog_CXX
="$ac_prog"
1741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1750 if test -n "$CXX"; then
1751 echo "$as_me:$LINENO: result: $CXX" >&5
1752 echo "${ECHO_T}$CXX" >&6
1754 echo "$as_me:$LINENO: result: no" >&5
1755 echo "${ECHO_T}no" >&6
1758 test -n "$CXX" && break
1760 test -n "$CXX" || CXX
="notfound"
1762 if test "$CXX" = "notfound"
1767 ac_cpp
='$CXXCPP $CPPFLAGS'
1768 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1769 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1770 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
1771 cat >conftest.
$ac_ext <<_ACEOF
1774 cat confdefs.h
>>conftest.
$ac_ext
1775 cat >>conftest.
$ac_ext <<_ACEOF
1776 /* end confdefs.h. */
1786 ac_clean_files_save
=$ac_clean_files
1787 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
1788 # Try to create an executable without -o first, disregard a.out.
1789 # It will help us diagnose broken compilers, and finding out an intuition
1791 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
1792 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
1793 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1794 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1795 (eval $ac_link_default) 2>&5
1797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1798 (exit $ac_status); }; then
1799 # Find the output, starting from the most likely. This scheme is
1800 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1803 # Be careful to initialize this variable, since it used to be cached.
1804 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1806 # b.out is created by i960 compilers.
1807 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
1809 test -f "$ac_file" ||
continue
1811 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
1814 # This is the source file.
1817 # We found the default executable, but exeext='' is most
1821 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1822 # FIXME: I believe we export ac_cv_exeext for Libtool,
1823 # but it would be cool to find out if it's true. Does anybody
1824 # maintain Libtool? --akim.
1832 echo "$as_me: failed program was:" >&5
1833 sed 's/^/| /' conftest.
$ac_ext >&5
1835 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
1836 See \`config.log' for more details." >&5
1837 echo "$as_me: error: C++ compiler cannot create executables
1838 See \`config.log' for more details." >&2;}
1839 { (exit 77); exit 77; }; }
1842 ac_exeext
=$ac_cv_exeext
1843 echo "$as_me:$LINENO: result: $ac_file" >&5
1844 echo "${ECHO_T}$ac_file" >&6
1846 # Check the compiler produces executables we can run. If not, either
1847 # the compiler is broken, or we cross compile.
1848 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
1849 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
1850 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1851 # If not cross compiling, check that we can run a simple program.
1852 if test "$cross_compiling" != yes; then
1853 if { ac_try
='./$ac_file'
1854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1858 (exit $ac_status); }; }; then
1861 if test "$cross_compiling" = maybe
; then
1864 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
1865 If you meant to cross compile, use \`--host'.
1866 See \`config.log' for more details." >&5
1867 echo "$as_me: error: cannot run C++ compiled programs.
1868 If you meant to cross compile, use \`--host'.
1869 See \`config.log' for more details." >&2;}
1870 { (exit 1); exit 1; }; }
1874 echo "$as_me:$LINENO: result: yes" >&5
1875 echo "${ECHO_T}yes" >&6
1877 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
1878 ac_clean_files
=$ac_clean_files_save
1879 # Check the compiler produces executables we can run. If not, either
1880 # the compiler is broken, or we cross compile.
1881 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1882 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1883 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1884 echo "${ECHO_T}$cross_compiling" >&6
1886 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1887 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1889 (eval $ac_link) 2>&5
1891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1892 (exit $ac_status); }; then
1893 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1894 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1895 # work properly (i.e., refer to `conftest.exe'), while it won't with
1897 for ac_file
in conftest.exe conftest conftest.
*; do
1898 test -f "$ac_file" ||
continue
1900 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
1901 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1908 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1909 See \`config.log' for more details." >&5
1910 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1911 See \`config.log' for more details." >&2;}
1912 { (exit 1); exit 1; }; }
1915 rm -f conftest
$ac_cv_exeext
1916 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1917 echo "${ECHO_T}$ac_cv_exeext" >&6
1919 rm -f conftest.
$ac_ext
1920 EXEEXT
=$ac_cv_exeext
1924 ac_cpp
='$CPP $CPPFLAGS'
1925 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1926 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1927 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1934 # If the user switches compilers, we can't believe the cache
1935 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
1937 { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
1938 (it is also a good idea to do 'make clean' before compiling)" >&5
1939 echo "$as_me: error: cached CC is different -- throw away $cache_file
1940 (it is also a good idea to do 'make clean' before compiling)" >&2;}
1941 { (exit 1); exit 1; }; }
1945 ac_cpp
='$CPP $CPPFLAGS'
1946 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1947 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1948 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1949 if test -n "$ac_tool_prefix"; then
1950 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1951 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1952 echo "$as_me:$LINENO: checking for $ac_word" >&5
1953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1954 if test "${ac_cv_prog_CC+set}" = set; then
1955 echo $ECHO_N "(cached) $ECHO_C" >&6
1957 if test -n "$CC"; then
1958 ac_cv_prog_CC
="$CC" # Let the user override the test.
1960 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1964 test -z "$as_dir" && as_dir
=.
1965 for ac_exec_ext
in '' $ac_executable_extensions; do
1966 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1967 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1977 if test -n "$CC"; then
1978 echo "$as_me:$LINENO: result: $CC" >&5
1979 echo "${ECHO_T}$CC" >&6
1981 echo "$as_me:$LINENO: result: no" >&5
1982 echo "${ECHO_T}no" >&6
1986 if test -z "$ac_cv_prog_CC"; then
1988 # Extract the first word of "gcc", so it can be a program name with args.
1989 set dummy gcc
; ac_word
=$2
1990 echo "$as_me:$LINENO: checking for $ac_word" >&5
1991 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1992 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1993 echo $ECHO_N "(cached) $ECHO_C" >&6
1995 if test -n "$ac_ct_CC"; then
1996 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1998 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2002 test -z "$as_dir" && as_dir
=.
2003 for ac_exec_ext
in '' $ac_executable_extensions; do
2004 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2005 ac_cv_prog_ac_ct_CC
="gcc"
2006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2014 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2015 if test -n "$ac_ct_CC"; then
2016 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2017 echo "${ECHO_T}$ac_ct_CC" >&6
2019 echo "$as_me:$LINENO: result: no" >&5
2020 echo "${ECHO_T}no" >&6
2028 if test -z "$CC"; then
2029 if test -n "$ac_tool_prefix"; then
2030 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2031 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2032 echo "$as_me:$LINENO: checking for $ac_word" >&5
2033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2034 if test "${ac_cv_prog_CC+set}" = set; then
2035 echo $ECHO_N "(cached) $ECHO_C" >&6
2037 if test -n "$CC"; then
2038 ac_cv_prog_CC
="$CC" # Let the user override the test.
2040 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2044 test -z "$as_dir" && as_dir
=.
2045 for ac_exec_ext
in '' $ac_executable_extensions; do
2046 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2047 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2048 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2057 if test -n "$CC"; then
2058 echo "$as_me:$LINENO: result: $CC" >&5
2059 echo "${ECHO_T}$CC" >&6
2061 echo "$as_me:$LINENO: result: no" >&5
2062 echo "${ECHO_T}no" >&6
2066 if test -z "$ac_cv_prog_CC"; then
2068 # Extract the first word of "cc", so it can be a program name with args.
2069 set dummy cc
; ac_word
=$2
2070 echo "$as_me:$LINENO: checking for $ac_word" >&5
2071 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2072 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2073 echo $ECHO_N "(cached) $ECHO_C" >&6
2075 if test -n "$ac_ct_CC"; then
2076 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2078 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2082 test -z "$as_dir" && as_dir
=.
2083 for ac_exec_ext
in '' $ac_executable_extensions; do
2084 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2085 ac_cv_prog_ac_ct_CC
="cc"
2086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2094 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2095 if test -n "$ac_ct_CC"; then
2096 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2097 echo "${ECHO_T}$ac_ct_CC" >&6
2099 echo "$as_me:$LINENO: result: no" >&5
2100 echo "${ECHO_T}no" >&6
2109 if test -z "$CC"; then
2110 # Extract the first word of "cc", so it can be a program name with args.
2111 set dummy cc
; ac_word
=$2
2112 echo "$as_me:$LINENO: checking for $ac_word" >&5
2113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2114 if test "${ac_cv_prog_CC+set}" = set; then
2115 echo $ECHO_N "(cached) $ECHO_C" >&6
2117 if test -n "$CC"; then
2118 ac_cv_prog_CC
="$CC" # Let the user override the test.
2121 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2125 test -z "$as_dir" && as_dir
=.
2126 for ac_exec_ext
in '' $ac_executable_extensions; do
2127 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2128 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2129 ac_prog_rejected
=yes
2133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2139 if test $ac_prog_rejected = yes; then
2140 # We found a bogon in the path, so make sure we never use it.
2141 set dummy
$ac_cv_prog_CC
2143 if test $# != 0; then
2144 # We chose a different compiler from the bogus one.
2145 # However, it has the same basename, so the bogon will be chosen
2146 # first if we set CC to just the basename; use the full file name.
2148 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2154 if test -n "$CC"; then
2155 echo "$as_me:$LINENO: result: $CC" >&5
2156 echo "${ECHO_T}$CC" >&6
2158 echo "$as_me:$LINENO: result: no" >&5
2159 echo "${ECHO_T}no" >&6
2163 if test -z "$CC"; then
2164 if test -n "$ac_tool_prefix"; then
2167 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2168 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2169 echo "$as_me:$LINENO: checking for $ac_word" >&5
2170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2171 if test "${ac_cv_prog_CC+set}" = set; then
2172 echo $ECHO_N "(cached) $ECHO_C" >&6
2174 if test -n "$CC"; then
2175 ac_cv_prog_CC
="$CC" # Let the user override the test.
2177 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2181 test -z "$as_dir" && as_dir
=.
2182 for ac_exec_ext
in '' $ac_executable_extensions; do
2183 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2184 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2194 if test -n "$CC"; then
2195 echo "$as_me:$LINENO: result: $CC" >&5
2196 echo "${ECHO_T}$CC" >&6
2198 echo "$as_me:$LINENO: result: no" >&5
2199 echo "${ECHO_T}no" >&6
2202 test -n "$CC" && break
2205 if test -z "$CC"; then
2209 # Extract the first word of "$ac_prog", so it can be a program name with args.
2210 set dummy
$ac_prog; ac_word
=$2
2211 echo "$as_me:$LINENO: checking for $ac_word" >&5
2212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2213 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2214 echo $ECHO_N "(cached) $ECHO_C" >&6
2216 if test -n "$ac_ct_CC"; then
2217 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2219 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2223 test -z "$as_dir" && as_dir
=.
2224 for ac_exec_ext
in '' $ac_executable_extensions; do
2225 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2226 ac_cv_prog_ac_ct_CC
="$ac_prog"
2227 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2235 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2236 if test -n "$ac_ct_CC"; then
2237 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2238 echo "${ECHO_T}$ac_ct_CC" >&6
2240 echo "$as_me:$LINENO: result: no" >&5
2241 echo "${ECHO_T}no" >&6
2244 test -n "$ac_ct_CC" && break
2253 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2254 See \`config.log' for more details." >&5
2255 echo "$as_me: error: no acceptable C compiler found in \$PATH
2256 See \`config.log' for more details." >&2;}
2257 { (exit 1); exit 1; }; }
2259 # Provide some information about the compiler.
2260 echo "$as_me:$LINENO:" \
2261 "checking for C compiler version" >&5
2262 ac_compiler
=`set X $ac_compile; echo $2`
2263 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2264 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2267 (exit $ac_status); }
2268 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2269 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272 (exit $ac_status); }
2273 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2274 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2277 (exit $ac_status); }
2279 cat >conftest.
$ac_ext <<_ACEOF
2282 cat confdefs.h
>>conftest.
$ac_ext
2283 cat >>conftest.
$ac_ext <<_ACEOF
2284 /* end confdefs.h. */
2294 ac_clean_files_save
=$ac_clean_files
2295 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2296 # Try to create an executable without -o first, disregard a.out.
2297 # It will help us diagnose broken compilers, and finding out an intuition
2299 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2300 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2301 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2302 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2303 (eval $ac_link_default) 2>&5
2305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2306 (exit $ac_status); }; then
2307 # Find the output, starting from the most likely. This scheme is
2308 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2311 # Be careful to initialize this variable, since it used to be cached.
2312 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2314 # b.out is created by i960 compilers.
2315 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2317 test -f "$ac_file" ||
continue
2319 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2322 # This is the source file.
2325 # We found the default executable, but exeext='' is most
2329 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2330 # FIXME: I believe we export ac_cv_exeext for Libtool,
2331 # but it would be cool to find out if it's true. Does anybody
2332 # maintain Libtool? --akim.
2340 echo "$as_me: failed program was:" >&5
2341 sed 's/^/| /' conftest.
$ac_ext >&5
2343 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2344 See \`config.log' for more details." >&5
2345 echo "$as_me: error: C compiler cannot create executables
2346 See \`config.log' for more details." >&2;}
2347 { (exit 77); exit 77; }; }
2350 ac_exeext
=$ac_cv_exeext
2351 echo "$as_me:$LINENO: result: $ac_file" >&5
2352 echo "${ECHO_T}$ac_file" >&6
2354 # Check the compiler produces executables we can run. If not, either
2355 # the compiler is broken, or we cross compile.
2356 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2357 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2358 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2359 # If not cross compiling, check that we can run a simple program.
2360 if test "$cross_compiling" != yes; then
2361 if { ac_try
='./$ac_file'
2362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366 (exit $ac_status); }; }; then
2369 if test "$cross_compiling" = maybe
; then
2372 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2373 If you meant to cross compile, use \`--host'.
2374 See \`config.log' for more details." >&5
2375 echo "$as_me: error: cannot run C compiled programs.
2376 If you meant to cross compile, use \`--host'.
2377 See \`config.log' for more details." >&2;}
2378 { (exit 1); exit 1; }; }
2382 echo "$as_me:$LINENO: result: yes" >&5
2383 echo "${ECHO_T}yes" >&6
2385 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2386 ac_clean_files
=$ac_clean_files_save
2387 # Check the compiler produces executables we can run. If not, either
2388 # the compiler is broken, or we cross compile.
2389 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2390 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2391 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2392 echo "${ECHO_T}$cross_compiling" >&6
2394 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2395 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2397 (eval $ac_link) 2>&5
2399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2400 (exit $ac_status); }; then
2401 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2402 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2403 # work properly (i.e., refer to `conftest.exe'), while it won't with
2405 for ac_file
in conftest.exe conftest conftest.
*; do
2406 test -f "$ac_file" ||
continue
2408 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2409 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2416 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2417 See \`config.log' for more details." >&5
2418 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2419 See \`config.log' for more details." >&2;}
2420 { (exit 1); exit 1; }; }
2423 rm -f conftest
$ac_cv_exeext
2424 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2425 echo "${ECHO_T}$ac_cv_exeext" >&6
2427 rm -f conftest.
$ac_ext
2428 EXEEXT
=$ac_cv_exeext
2430 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2431 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2432 if test "${ac_cv_objext+set}" = set; then
2433 echo $ECHO_N "(cached) $ECHO_C" >&6
2435 cat >conftest.
$ac_ext <<_ACEOF
2438 cat confdefs.h
>>conftest.
$ac_ext
2439 cat >>conftest.
$ac_ext <<_ACEOF
2440 /* end confdefs.h. */
2450 rm -f conftest.o conftest.obj
2451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2452 (eval $ac_compile) 2>&5
2454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455 (exit $ac_status); }; then
2456 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2458 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2459 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2464 echo "$as_me: failed program was:" >&5
2465 sed 's/^/| /' conftest.
$ac_ext >&5
2467 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2468 See \`config.log' for more details." >&5
2469 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2470 See \`config.log' for more details." >&2;}
2471 { (exit 1); exit 1; }; }
2474 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2476 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2477 echo "${ECHO_T}$ac_cv_objext" >&6
2478 OBJEXT
=$ac_cv_objext
2480 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2481 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2482 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2483 echo $ECHO_N "(cached) $ECHO_C" >&6
2485 cat >conftest.
$ac_ext <<_ACEOF
2488 cat confdefs.h
>>conftest.
$ac_ext
2489 cat >>conftest.
$ac_ext <<_ACEOF
2490 /* end confdefs.h. */
2503 rm -f conftest.
$ac_objext
2504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2505 (eval $ac_compile) 2>conftest.er1
2507 grep -v '^ *+' conftest.er1
>conftest.err
2509 cat conftest.err
>&5
2510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2511 (exit $ac_status); } &&
2512 { ac_try
='test -z "$ac_c_werror_flag"
2513 || test ! -s conftest.err'
2514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518 (exit $ac_status); }; } &&
2519 { ac_try
='test -s conftest.$ac_objext'
2520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524 (exit $ac_status); }; }; then
2527 echo "$as_me: failed program was:" >&5
2528 sed 's/^/| /' conftest.
$ac_ext >&5
2532 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2533 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2536 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2537 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2538 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2539 ac_test_CFLAGS
=${CFLAGS+set}
2540 ac_save_CFLAGS
=$CFLAGS
2542 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2543 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2544 if test "${ac_cv_prog_cc_g+set}" = set; then
2545 echo $ECHO_N "(cached) $ECHO_C" >&6
2547 cat >conftest.
$ac_ext <<_ACEOF
2550 cat confdefs.h
>>conftest.
$ac_ext
2551 cat >>conftest.
$ac_ext <<_ACEOF
2552 /* end confdefs.h. */
2562 rm -f conftest.
$ac_objext
2563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2564 (eval $ac_compile) 2>conftest.er1
2566 grep -v '^ *+' conftest.er1
>conftest.err
2568 cat conftest.err
>&5
2569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570 (exit $ac_status); } &&
2571 { ac_try
='test -z "$ac_c_werror_flag"
2572 || test ! -s conftest.err'
2573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577 (exit $ac_status); }; } &&
2578 { ac_try
='test -s conftest.$ac_objext'
2579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583 (exit $ac_status); }; }; then
2586 echo "$as_me: failed program was:" >&5
2587 sed 's/^/| /' conftest.
$ac_ext >&5
2591 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2593 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2594 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2595 if test "$ac_test_CFLAGS" = set; then
2596 CFLAGS
=$ac_save_CFLAGS
2597 elif test $ac_cv_prog_cc_g = yes; then
2598 if test "$GCC" = yes; then
2604 if test "$GCC" = yes; then
2610 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2611 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2612 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2613 echo $ECHO_N "(cached) $ECHO_C" >&6
2615 ac_cv_prog_cc_stdc
=no
2617 cat >conftest.
$ac_ext <<_ACEOF
2620 cat confdefs.h
>>conftest.
$ac_ext
2621 cat >>conftest.
$ac_ext <<_ACEOF
2622 /* end confdefs.h. */
2625 #include <sys/types.h>
2626 #include <sys/stat.h>
2627 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2628 struct buf { int x; };
2629 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2630 static char *e (p, i)
2636 static char *f (char * (*g) (char **, int), char **p, ...)
2641 s = g (p, va_arg (v,int));
2646 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2647 function prototypes and stuff, but not '\xHH' hex character constants.
2648 These don't provoke an error unfortunately, instead are silently treated
2649 as 'x'. The following induces an error, until -std1 is added to get
2650 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2651 array size at least. It's necessary to write '\x00'==0 to get something
2652 that's true only with -std1. */
2653 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2655 int test (int i, double x);
2656 struct s1 {int (*f) (int a);};
2657 struct s2 {int (*f) (double a);};
2658 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2664 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2669 # Don't try gcc -ansi; that turns off useful extensions and
2670 # breaks some systems' header files.
2671 # AIX -qlanglvl=ansi
2672 # Ultrix and OSF/1 -std1
2673 # HP-UX 10.20 and later -Ae
2674 # HP-UX older versions -Aa -D_HPUX_SOURCE
2675 # SVR4 -Xc -D__EXTENSIONS__
2676 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2678 CC
="$ac_save_CC $ac_arg"
2679 rm -f conftest.
$ac_objext
2680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2681 (eval $ac_compile) 2>conftest.er1
2683 grep -v '^ *+' conftest.er1
>conftest.err
2685 cat conftest.err
>&5
2686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687 (exit $ac_status); } &&
2688 { ac_try
='test -z "$ac_c_werror_flag"
2689 || test ! -s conftest.err'
2690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2694 (exit $ac_status); }; } &&
2695 { ac_try
='test -s conftest.$ac_objext'
2696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700 (exit $ac_status); }; }; then
2701 ac_cv_prog_cc_stdc
=$ac_arg
2704 echo "$as_me: failed program was:" >&5
2705 sed 's/^/| /' conftest.
$ac_ext >&5
2708 rm -f conftest.err conftest.
$ac_objext
2710 rm -f conftest.
$ac_ext conftest.
$ac_objext
2715 case "x$ac_cv_prog_cc_stdc" in
2717 echo "$as_me:$LINENO: result: none needed" >&5
2718 echo "${ECHO_T}none needed" >&6 ;;
2720 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2721 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2722 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2725 # Some people use a C++ compiler to compile C. Since we use `exit',
2726 # in C++ we need to declare it. In case someone uses the same compiler
2727 # for both compiling C and C++ we need to have the C++ compiler decide
2728 # the declaration of exit, since it's the most demanding environment.
2729 cat >conftest.
$ac_ext <<_ACEOF
2734 rm -f conftest.
$ac_objext
2735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2736 (eval $ac_compile) 2>conftest.er1
2738 grep -v '^ *+' conftest.er1
>conftest.err
2740 cat conftest.err
>&5
2741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742 (exit $ac_status); } &&
2743 { ac_try
='test -z "$ac_c_werror_flag"
2744 || test ! -s conftest.err'
2745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2749 (exit $ac_status); }; } &&
2750 { ac_try
='test -s conftest.$ac_objext'
2751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755 (exit $ac_status); }; }; then
2756 for ac_declaration
in \
2758 'extern "C" void std::exit (int) throw (); using std::exit;' \
2759 'extern "C" void std::exit (int); using std::exit;' \
2760 'extern "C" void exit (int) throw ();' \
2761 'extern "C" void exit (int);' \
2764 cat >conftest.
$ac_ext <<_ACEOF
2767 cat confdefs.h
>>conftest.
$ac_ext
2768 cat >>conftest.
$ac_ext <<_ACEOF
2769 /* end confdefs.h. */
2780 rm -f conftest.
$ac_objext
2781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2782 (eval $ac_compile) 2>conftest.er1
2784 grep -v '^ *+' conftest.er1
>conftest.err
2786 cat conftest.err
>&5
2787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788 (exit $ac_status); } &&
2789 { ac_try
='test -z "$ac_c_werror_flag"
2790 || test ! -s conftest.err'
2791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795 (exit $ac_status); }; } &&
2796 { ac_try
='test -s conftest.$ac_objext'
2797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801 (exit $ac_status); }; }; then
2804 echo "$as_me: failed program was:" >&5
2805 sed 's/^/| /' conftest.
$ac_ext >&5
2809 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2810 cat >conftest.
$ac_ext <<_ACEOF
2813 cat confdefs.h
>>conftest.
$ac_ext
2814 cat >>conftest.
$ac_ext <<_ACEOF
2815 /* end confdefs.h. */
2825 rm -f conftest.
$ac_objext
2826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2827 (eval $ac_compile) 2>conftest.er1
2829 grep -v '^ *+' conftest.er1
>conftest.err
2831 cat conftest.err
>&5
2832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833 (exit $ac_status); } &&
2834 { ac_try
='test -z "$ac_c_werror_flag"
2835 || test ! -s conftest.err'
2836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840 (exit $ac_status); }; } &&
2841 { ac_try
='test -s conftest.$ac_objext'
2842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846 (exit $ac_status); }; }; then
2849 echo "$as_me: failed program was:" >&5
2850 sed 's/^/| /' conftest.
$ac_ext >&5
2853 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2856 if test -n "$ac_declaration"; then
2857 echo '#ifdef __cplusplus' >>confdefs.h
2858 echo $ac_declaration >>confdefs.h
2859 echo '#endif' >>confdefs.h
2863 echo "$as_me: failed program was:" >&5
2864 sed 's/^/| /' conftest.
$ac_ext >&5
2867 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2869 ac_cpp
='$CPP $CPPFLAGS'
2870 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2871 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2872 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2875 # checks for UNIX variants that set C preprocessor variables
2878 ac_cpp
='$CPP $CPPFLAGS'
2879 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2880 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2881 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2882 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2883 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2884 # On Suns, sometimes $CPP names a directory.
2885 if test -n "$CPP" && test -d "$CPP"; then
2888 if test -z "$CPP"; then
2889 if test "${ac_cv_prog_CPP+set}" = set; then
2890 echo $ECHO_N "(cached) $ECHO_C" >&6
2892 # Double quotes because CPP needs to be expanded
2893 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2896 for ac_c_preproc_warn_flag
in '' yes
2898 # Use a header file that comes with gcc, so configuring glibc
2899 # with a fresh cross-compiler works.
2900 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2901 # <limits.h> exists even on freestanding compilers.
2902 # On the NeXT, cc -E runs the code through the compiler's parser,
2903 # not just through cpp. "Syntax error" is here to catch this case.
2904 cat >conftest.
$ac_ext <<_ACEOF
2907 cat confdefs.h
>>conftest.
$ac_ext
2908 cat >>conftest.
$ac_ext <<_ACEOF
2909 /* end confdefs.h. */
2911 # include <limits.h>
2913 # include <assert.h>
2917 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2918 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2920 grep -v '^ *+' conftest.er1
>conftest.err
2922 cat conftest.err
>&5
2923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924 (exit $ac_status); } >/dev
/null
; then
2925 if test -s conftest.err
; then
2926 ac_cpp_err
=$ac_c_preproc_warn_flag
2927 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2934 if test -z "$ac_cpp_err"; then
2937 echo "$as_me: failed program was:" >&5
2938 sed 's/^/| /' conftest.
$ac_ext >&5
2940 # Broken: fails on valid input.
2943 rm -f conftest.err conftest.
$ac_ext
2945 # OK, works on sane cases. Now check whether non-existent headers
2946 # can be detected and how.
2947 cat >conftest.
$ac_ext <<_ACEOF
2950 cat confdefs.h
>>conftest.
$ac_ext
2951 cat >>conftest.
$ac_ext <<_ACEOF
2952 /* end confdefs.h. */
2953 #include <ac_nonexistent.h>
2955 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2956 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2958 grep -v '^ *+' conftest.er1
>conftest.err
2960 cat conftest.err
>&5
2961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962 (exit $ac_status); } >/dev
/null
; then
2963 if test -s conftest.err
; then
2964 ac_cpp_err
=$ac_c_preproc_warn_flag
2965 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2972 if test -z "$ac_cpp_err"; then
2973 # Broken: success on invalid input.
2976 echo "$as_me: failed program was:" >&5
2977 sed 's/^/| /' conftest.
$ac_ext >&5
2979 # Passes both tests.
2983 rm -f conftest.err conftest.
$ac_ext
2986 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2987 rm -f conftest.err conftest.
$ac_ext
2988 if $ac_preproc_ok; then
3000 echo "$as_me:$LINENO: result: $CPP" >&5
3001 echo "${ECHO_T}$CPP" >&6
3003 for ac_c_preproc_warn_flag
in '' yes
3005 # Use a header file that comes with gcc, so configuring glibc
3006 # with a fresh cross-compiler works.
3007 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3008 # <limits.h> exists even on freestanding compilers.
3009 # On the NeXT, cc -E runs the code through the compiler's parser,
3010 # not just through cpp. "Syntax error" is here to catch this case.
3011 cat >conftest.
$ac_ext <<_ACEOF
3014 cat confdefs.h
>>conftest.
$ac_ext
3015 cat >>conftest.
$ac_ext <<_ACEOF
3016 /* end confdefs.h. */
3018 # include <limits.h>
3020 # include <assert.h>
3024 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3025 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3027 grep -v '^ *+' conftest.er1
>conftest.err
3029 cat conftest.err
>&5
3030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031 (exit $ac_status); } >/dev
/null
; then
3032 if test -s conftest.err
; then
3033 ac_cpp_err
=$ac_c_preproc_warn_flag
3034 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3041 if test -z "$ac_cpp_err"; then
3044 echo "$as_me: failed program was:" >&5
3045 sed 's/^/| /' conftest.
$ac_ext >&5
3047 # Broken: fails on valid input.
3050 rm -f conftest.err conftest.
$ac_ext
3052 # OK, works on sane cases. Now check whether non-existent headers
3053 # can be detected and how.
3054 cat >conftest.
$ac_ext <<_ACEOF
3057 cat confdefs.h
>>conftest.
$ac_ext
3058 cat >>conftest.
$ac_ext <<_ACEOF
3059 /* end confdefs.h. */
3060 #include <ac_nonexistent.h>
3062 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3063 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3065 grep -v '^ *+' conftest.er1
>conftest.err
3067 cat conftest.err
>&5
3068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069 (exit $ac_status); } >/dev
/null
; then
3070 if test -s conftest.err
; then
3071 ac_cpp_err
=$ac_c_preproc_warn_flag
3072 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3079 if test -z "$ac_cpp_err"; then
3080 # Broken: success on invalid input.
3083 echo "$as_me: failed program was:" >&5
3084 sed 's/^/| /' conftest.
$ac_ext >&5
3086 # Passes both tests.
3090 rm -f conftest.err conftest.
$ac_ext
3093 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3094 rm -f conftest.err conftest.
$ac_ext
3095 if $ac_preproc_ok; then
3098 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3099 See \`config.log' for more details." >&5
3100 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3101 See \`config.log' for more details." >&2;}
3102 { (exit 1); exit 1; }; }
3106 ac_cpp
='$CPP $CPPFLAGS'
3107 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3108 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3109 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3112 echo "$as_me:$LINENO: checking for egrep" >&5
3113 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3114 if test "${ac_cv_prog_egrep+set}" = set; then
3115 echo $ECHO_N "(cached) $ECHO_C" >&6
3117 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3118 then ac_cv_prog_egrep
='grep -E'
3119 else ac_cv_prog_egrep
='egrep'
3122 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3123 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3124 EGREP
=$ac_cv_prog_egrep
3128 echo "$as_me:$LINENO: checking for AIX" >&5
3129 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3130 cat >conftest.
$ac_ext <<_ACEOF
3133 cat confdefs.h
>>conftest.
$ac_ext
3134 cat >>conftest.
$ac_ext <<_ACEOF
3135 /* end confdefs.h. */
3141 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3142 $EGREP "yes" >/dev
/null
2>&1; then
3143 echo "$as_me:$LINENO: result: yes" >&5
3144 echo "${ECHO_T}yes" >&6
3145 cat >>confdefs.h
<<\_ACEOF
3146 #define _ALL_SOURCE 1
3150 echo "$as_me:$LINENO: result: no" >&5
3151 echo "${ECHO_T}no" >&6
3157 # Check for unsupported systems
3158 case $ac_sys_system/$ac_sys_release in
3160 echo This system \
($ac_sys_system/$ac_sys_release\
) is no longer supported.
3161 echo See README
for details.
3166 echo "$as_me:$LINENO: checking for --with-suffix" >&5
3167 echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6
3169 # Check whether --with-suffix or --without-suffix was given.
3170 if test "${with_suffix+set}" = set; then
3171 withval
="$with_suffix"
3176 *) EXEEXT
=$withval;;
3179 echo "$as_me:$LINENO: result: $EXEEXT" >&5
3180 echo "${ECHO_T}$EXEEXT" >&6
3182 # Test whether we're running on a non-case-sensitive system, in which
3183 # case we give a warning if no ext is given
3185 echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
3186 echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6
3187 if test ! -d CaseSensitiveTestDir
; then
3188 mkdir CaseSensitiveTestDir
3191 if test -d casesensitivetestdir
3193 echo "$as_me:$LINENO: result: yes" >&5
3194 echo "${ECHO_T}yes" >&6
3197 echo "$as_me:$LINENO: result: no" >&5
3198 echo "${ECHO_T}no" >&6
3201 rmdir CaseSensitiveTestDir
3206 gcc
) CC
="$CC -D_HAVE_BSDI";;
3210 case $ac_sys_system in
3213 cc|
*/cc
) CC
="$CC -Ae";;
3217 cc
) CC
="$CC -Wl,-Bexport";;
3220 # Some functions have a prototype only with that define, e.g. confstr
3222 cat >>confdefs.h
<<\_ACEOF
3223 #define __EXTENSIONS__ 1
3231 echo "$as_me:$LINENO: checking LIBRARY" >&5
3232 echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6
3233 if test -z "$LIBRARY"
3235 LIBRARY
='libpython$(VERSION).a'
3237 echo "$as_me:$LINENO: result: $LIBRARY" >&5
3238 echo "${ECHO_T}$LIBRARY" >&6
3240 # LDLIBRARY is the name of the library to link against (as opposed to the
3241 # name of the library into which to insert object files). BLDLIBRARY is also
3242 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
3243 # is blank as the main program is not linked directly against LDLIBRARY.
3244 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
3245 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
3246 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
3247 # DLLLIBRARY is the shared (i.e., DLL) library.
3249 # RUNSHARED is used to run shared python without installed libraries
3251 # INSTSONAME is the name of the shared library that will be use to install
3252 # on the system - some systems like version suffix, others don't
3259 LDLIBRARY
="$LIBRARY"
3260 BLDLIBRARY
='$(LDLIBRARY)'
3261 INSTSONAME
='$(LDLIBRARY)'
3266 # LINKCC is the command that links the python executable -- default is $(CC).
3267 # If CXX is set, and if it is needed to link a main function that was
3268 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
3269 # python might then depend on the C++ runtime
3270 # This is altered for AIX in order to build the export list before
3273 echo "$as_me:$LINENO: checking LINKCC" >&5
3274 echo $ECHO_N "checking LINKCC... $ECHO_C" >&6
3275 if test -z "$LINKCC"
3277 if test -z "$CXX"; then
3278 LINKCC
="\$(PURIFY) \$(CC)"
3280 echo 'extern "C" void foo();int main(){foo();}' > conftest_a.cc
3281 $CXX -c conftest_a.cc
# 2>&5
3282 echo 'void foo(){}' > conftest_b.
$ac_ext
3283 $CC -c conftest_b.
$ac_ext # 2>&5
3284 if $CC -o conftest
$ac_exeext conftest_a.
$ac_objext conftest_b.
$ac_objext 2>&5 \
3285 && test -s conftest
$ac_exeext && .
/conftest
$ac_exeext
3287 LINKCC
="\$(PURIFY) \$(CC)"
3289 LINKCC
="\$(PURIFY) \$(CXX)"
3293 case $ac_sys_system in
3296 if test $ac_sys_release -ge 5 -o \
3297 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
3300 LINKCC
="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
3302 LINKCC
="$LINKCC -L/usr/lib/ia64l64";;
3305 echo "$as_me:$LINENO: result: $LINKCC" >&5
3306 echo "${ECHO_T}$LINKCC" >&6
3308 echo "$as_me:$LINENO: checking for --enable-shared" >&5
3309 echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6
3310 # Check whether --enable-shared or --disable-shared was given.
3311 if test "${enable_shared+set}" = set; then
3312 enableval
="$enable_shared"
3316 if test -z "$enable_shared"
3318 case $ac_sys_system in
3320 enable_shared
="yes";;
3322 enable_shared
="no";;
3325 echo "$as_me:$LINENO: result: $enable_shared" >&5
3326 echo "${ECHO_T}$enable_shared" >&6
3328 echo "$as_me:$LINENO: checking for --enable-profiling" >&5
3329 echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6
3330 # Check whether --enable-profiling or --disable-profiling was given.
3331 if test "${enable_profiling+set}" = set; then
3332 enableval
="$enable_profiling"
3335 if test "$cross_compiling" = yes; then
3336 ac_enable_profiling
="no"
3338 cat >conftest.
$ac_ext <<_ACEOF
3341 cat confdefs.h
>>conftest.
$ac_ext
3342 cat >>conftest.
$ac_ext <<_ACEOF
3343 /* end confdefs.h. */
3344 int main() { return 0; }
3346 rm -f conftest
$ac_exeext
3347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3348 (eval $ac_link) 2>&5
3350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356 (exit $ac_status); }; }; then
3357 ac_enable_profiling
="yes"
3359 echo "$as_me: program exited with status $ac_status" >&5
3360 echo "$as_me: failed program was:" >&5
3361 sed 's/^/| /' conftest.
$ac_ext >&5
3364 ac_enable_profiling
="no"
3366 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3370 echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5
3371 echo "${ECHO_T}$ac_enable_profiling" >&6
3373 case "$ac_enable_profiling" in
3375 BASECFLAGS
="-pg $BASECFLAGS"
3376 LDFLAGS
="-pg $LDFLAGS"
3380 echo "$as_me:$LINENO: checking LDLIBRARY" >&5
3381 echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6
3383 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
3384 # library that we build, but we do not want to link against it (we
3385 # will find it with a -framework option). For this reason there is an
3386 # extra variable BLDLIBRARY against which Python and the extension
3387 # modules are linked, BLDLIBRARY. This is normally the same as
3388 # LDLIBRARY, but empty for MacOSX framework builds.
3389 if test "$enable_framework"
3391 LDLIBRARY
='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
3392 RUNSHARED
=DYLD_FRAMEWORK_PATH
="`pwd`:$DYLD_FRAMEWORK_PATH"
3395 BLDLIBRARY
='$(LDLIBRARY)'
3398 # Other platforms follow
3399 if test $enable_shared = "yes"; then
3401 cat >>confdefs.h
<<\_ACEOF
3402 #define Py_ENABLE_SHARED 1
3405 case $ac_sys_system in
3407 LDLIBRARY
='libpython$(VERSION).so'
3410 LDLIBRARY
='libpython$(VERSION).dll.a'
3411 DLLLIBRARY
='libpython$(VERSION).dll'
3414 LDLIBRARY
='libpython$(VERSION).so'
3415 BLDLIBRARY
='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
3416 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
3417 INSTSONAME
="$LDLIBRARY".
$SOVERSION
3419 Linux
*|GNU
*|NetBSD
*|FreeBSD
*|DragonFly
*)
3420 LDLIBRARY
='libpython$(VERSION).so'
3421 BLDLIBRARY
='-L. -lpython$(VERSION)'
3422 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
3423 case $ac_sys_system in
3425 SOVERSION
=`echo $SOVERSION|cut -d "." -f 1`
3428 INSTSONAME
="$LDLIBRARY".
$SOVERSION
3431 LDLIBRARY
='libpython$(VERSION).sl'
3432 BLDLIBRARY
='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
3433 RUNSHARED
=SHLIB_PATH
=`pwd`:${SHLIB_PATH}
3436 LDLIBRARY
='libpython$(VERSION).so'
3437 BLDLIBRARY
='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
3438 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
3441 LDLIBRARY
='libpython$(VERSION).so'
3442 BLDLIBRARY
='-L. -lpython$(VERSION)'
3443 RUNSHARED
=DLL_PATH
=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
3446 else # shared is disabled
3447 case $ac_sys_system in
3449 BLDLIBRARY
='$(LIBRARY)'
3450 LDLIBRARY
='libpython$(VERSION).dll.a'
3455 echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
3456 echo "${ECHO_T}$LDLIBRARY" >&6
3458 if test -n "$ac_tool_prefix"; then
3459 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3460 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3461 echo "$as_me:$LINENO: checking for $ac_word" >&5
3462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3463 if test "${ac_cv_prog_RANLIB+set}" = set; then
3464 echo $ECHO_N "(cached) $ECHO_C" >&6
3466 if test -n "$RANLIB"; then
3467 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3469 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3473 test -z "$as_dir" && as_dir
=.
3474 for ac_exec_ext
in '' $ac_executable_extensions; do
3475 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3476 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3485 RANLIB
=$ac_cv_prog_RANLIB
3486 if test -n "$RANLIB"; then
3487 echo "$as_me:$LINENO: result: $RANLIB" >&5
3488 echo "${ECHO_T}$RANLIB" >&6
3490 echo "$as_me:$LINENO: result: no" >&5
3491 echo "${ECHO_T}no" >&6
3495 if test -z "$ac_cv_prog_RANLIB"; then
3496 ac_ct_RANLIB
=$RANLIB
3497 # Extract the first word of "ranlib", so it can be a program name with args.
3498 set dummy ranlib
; ac_word
=$2
3499 echo "$as_me:$LINENO: checking for $ac_word" >&5
3500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3501 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3502 echo $ECHO_N "(cached) $ECHO_C" >&6
3504 if test -n "$ac_ct_RANLIB"; then
3505 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3507 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3511 test -z "$as_dir" && as_dir
=.
3512 for ac_exec_ext
in '' $ac_executable_extensions; do
3513 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3514 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3515 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3521 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
3524 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3525 if test -n "$ac_ct_RANLIB"; then
3526 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3527 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3529 echo "$as_me:$LINENO: result: no" >&5
3530 echo "${ECHO_T}no" >&6
3533 RANLIB
=$ac_ct_RANLIB
3535 RANLIB
="$ac_cv_prog_RANLIB"
3539 for ac_prog
in ar aal
3541 # Extract the first word of "$ac_prog", so it can be a program name with args.
3542 set dummy
$ac_prog; ac_word
=$2
3543 echo "$as_me:$LINENO: checking for $ac_word" >&5
3544 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3545 if test "${ac_cv_prog_AR+set}" = set; then
3546 echo $ECHO_N "(cached) $ECHO_C" >&6
3548 if test -n "$AR"; then
3549 ac_cv_prog_AR
="$AR" # Let the user override the test.
3551 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3555 test -z "$as_dir" && as_dir
=.
3556 for ac_exec_ext
in '' $ac_executable_extensions; do
3557 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3558 ac_cv_prog_AR
="$ac_prog"
3559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3568 if test -n "$AR"; then
3569 echo "$as_me:$LINENO: result: $AR" >&5
3570 echo "${ECHO_T}$AR" >&6
3572 echo "$as_me:$LINENO: result: no" >&5
3573 echo "${ECHO_T}no" >&6
3576 test -n "$AR" && break
3578 test -n "$AR" || AR
="ar"
3582 # Extract the first word of "svnversion", so it can be a program name with args.
3583 set dummy svnversion
; ac_word
=$2
3584 echo "$as_me:$LINENO: checking for $ac_word" >&5
3585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3586 if test "${ac_cv_prog_SVNVERSION+set}" = set; then
3587 echo $ECHO_N "(cached) $ECHO_C" >&6
3589 if test -n "$SVNVERSION"; then
3590 ac_cv_prog_SVNVERSION
="$SVNVERSION" # Let the user override the test.
3592 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3596 test -z "$as_dir" && as_dir
=.
3597 for ac_exec_ext
in '' $ac_executable_extensions; do
3598 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3599 ac_cv_prog_SVNVERSION
="found"
3600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3606 test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION
="not-found"
3609 SVNVERSION
=$ac_cv_prog_SVNVERSION
3610 if test -n "$SVNVERSION"; then
3611 echo "$as_me:$LINENO: result: $SVNVERSION" >&5
3612 echo "${ECHO_T}$SVNVERSION" >&6
3614 echo "$as_me:$LINENO: result: no" >&5
3615 echo "${ECHO_T}no" >&6
3618 if test $SVNVERSION = found
3620 SVNVERSION
="svnversion \$(srcdir)"
3622 SVNVERSION
="echo exported"
3627 # install -d does not work on BSDI or HP-UX
3628 if test -z "$INSTALL"
3630 INSTALL
="${srcdir}/install-sh -c"
3634 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
3635 if test -f $ac_dir/install-sh
; then
3637 ac_install_sh
="$ac_aux_dir/install-sh -c"
3639 elif test -f $ac_dir/install.sh
; then
3641 ac_install_sh
="$ac_aux_dir/install.sh -c"
3643 elif test -f $ac_dir/shtool
; then
3645 ac_install_sh
="$ac_aux_dir/shtool install -c"
3649 if test -z "$ac_aux_dir"; then
3650 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
3651 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
3652 { (exit 1); exit 1; }; }
3654 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
3655 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
3656 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3658 # Find a good install program. We prefer a C program (faster),
3659 # so one script is as good as another. But avoid the broken or
3660 # incompatible versions:
3661 # SysV /etc/install, /usr/sbin/install
3662 # SunOS /usr/etc/install
3663 # IRIX /sbin/install
3665 # AmigaOS /C/install, which installs bootblocks on floppy discs
3666 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3667 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3668 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3669 # OS/2's system install, which has a completely different semantic
3670 # ./install, which can be erroneously created by make from ./install.sh.
3671 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3672 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3673 if test -z "$INSTALL"; then
3674 if test "${ac_cv_path_install+set}" = set; then
3675 echo $ECHO_N "(cached) $ECHO_C" >&6
3677 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3681 test -z "$as_dir" && as_dir
=.
3682 # Account for people who put trailing slashes in PATH elements.
3684 .
/ | .
// |
/cC
/* | \
3685 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3686 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
3689 # OSF1 and SCO ODT 3.0 have their own names for install.
3690 # Don't use installbsd from OSF since it installs stuff as root
3692 for ac_prog
in ginstall scoinst
install; do
3693 for ac_exec_ext
in '' $ac_executable_extensions; do
3694 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3695 if test $ac_prog = install &&
3696 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3697 # AIX install. It has an incompatible calling convention.
3699 elif test $ac_prog = install &&
3700 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3701 # program-specific install script used by HP pwplus--don't use.
3704 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3716 if test "${ac_cv_path_install+set}" = set; then
3717 INSTALL
=$ac_cv_path_install
3719 # As a last resort, use the slow shell script. We don't cache a
3720 # path for INSTALL within a source directory, because that will
3721 # break other packages using the cache if that directory is
3722 # removed, or if the path is relative.
3723 INSTALL
=$ac_install_sh
3726 echo "$as_me:$LINENO: result: $INSTALL" >&5
3727 echo "${ECHO_T}$INSTALL" >&6
3729 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3730 # It thinks the first close brace ends the variable substitution.
3731 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3733 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3735 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3738 # Not every filesystem supports hard links
3740 if test -z "$LN" ; then
3741 case $ac_sys_system in
3743 CYGWIN
*) LN
="ln -s";;
3744 atheos
*) LN
="ln -s";;
3749 # Check for --with-pydebug
3750 echo "$as_me:$LINENO: checking for --with-pydebug" >&5
3751 echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6
3753 # Check whether --with-pydebug or --without-pydebug was given.
3754 if test "${with_pydebug+set}" = set; then
3755 withval
="$with_pydebug"
3757 if test "$withval" != no
3760 cat >>confdefs.h
<<\_ACEOF
3764 echo "$as_me:$LINENO: result: yes" >&5
3765 echo "${ECHO_T}yes" >&6;
3767 else echo "$as_me:$LINENO: result: no" >&5
3768 echo "${ECHO_T}no" >&6; Py_DEBUG
='false'
3771 echo "$as_me:$LINENO: result: no" >&5
3772 echo "${ECHO_T}no" >&6
3775 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
3776 # merged with this chunk of code?
3778 # Optimizer/debugger flags
3779 # ------------------------
3780 # (The following bit of code is complicated enough - please keep things
3781 # indented properly. Just pretend you're editing Python code. ;-)
3783 # There are two parallel sets of case statements below, one that checks to
3784 # see if OPT was set and one that does BASECFLAGS setting based upon
3785 # compiler and platform. BASECFLAGS tweaks need to be made even if the
3788 # tweak OPT based on compiler and platform, only if the user didn't set
3789 # it on the command line
3795 if test "$CC" != 'g++' ; then
3796 STRICT_PROTO
="-Wstrict-prototypes"
3798 case $ac_cv_prog_cc_g in
3800 if test "$Py_DEBUG" = 'true' ; then
3801 # Optimization messes up debuggers, so turn it off for
3803 OPT
="-g -Wall $STRICT_PROTO"
3805 OPT
="-g -O3 -Wall $STRICT_PROTO"
3809 OPT
="-O3 -Wall $STRICT_PROTO"
3812 case $ac_sys_system in
3813 SCO_SV
*) OPT
="$OPT -m486 -DSCO5"
3823 # The current (beta) Monterey compiler dies with optimizations
3824 # XXX what is Monterey? Does it still die w/ -O? Can we get rid of this?
3825 case $ac_sys_system in
3834 # tweak BASECFLAGS based on compiler and platform
3837 # Python violates C99 rules, by casting between incompatible
3838 # pointer types. GCC may generate bad code as a result of that,
3839 # so use -fno-strict-aliasing if supported.
3840 echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5
3841 echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6
3843 CC
="$CC -fno-strict-aliasing"
3844 if test "$cross_compiling" = yes; then
3845 ac_cv_no_strict_aliasing_ok
=no
3847 cat >conftest.
$ac_ext <<_ACEOF
3850 cat confdefs.h
>>conftest.
$ac_ext
3851 cat >>conftest.
$ac_ext <<_ACEOF
3852 /* end confdefs.h. */
3853 int main() { return 0; }
3855 rm -f conftest
$ac_exeext
3856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3857 (eval $ac_link) 2>&5
3859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865 (exit $ac_status); }; }; then
3866 ac_cv_no_strict_aliasing_ok
=yes
3868 echo "$as_me: program exited with status $ac_status" >&5
3869 echo "$as_me: failed program was:" >&5
3870 sed 's/^/| /' conftest.
$ac_ext >&5
3873 ac_cv_no_strict_aliasing_ok
=no
3875 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3878 echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5
3879 echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6
3880 if test $ac_cv_no_strict_aliasing_ok = yes
3882 BASECFLAGS
="$BASECFLAGS -fno-strict-aliasing"
3884 case $ac_sys_system in
3886 BASECFLAGS
="$BASECFLAGS -m486 -DSCO5"
3888 # is there any other compiler on Darwin besides gcc?
3890 BASECFLAGS
="$BASECFLAGS -Wno-long-double -no-cpp-precomp -mno-fused-madd"
3893 BASECFLAGS
="$BASECFLAGS -mieee"
3899 case $ac_sys_system in
3900 OpenUNIX
*|UnixWare
*)
3901 BASECFLAGS
="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
3904 BASECFLAGS
="$BASECFLAGS -ieee -std"
3907 BASECFLAGS
="$BASECFLAGS -belf -Ki486 -DSCO5"
3913 if test "$Py_DEBUG" = 'true'; then
3919 if test "$ac_arch_flags"
3921 BASECFLAGS
="$BASECFLAGS $ac_arch_flags"
3924 # disable check for icc since it seems to pass, but generates a warning
3927 ac_cv_opt_olimit_ok
=no
3930 echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
3931 echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6
3932 if test "${ac_cv_opt_olimit_ok+set}" = set; then
3933 echo $ECHO_N "(cached) $ECHO_C" >&6
3936 CC
="$CC -OPT:Olimit=0"
3937 if test "$cross_compiling" = yes; then
3938 ac_cv_opt_olimit_ok
=no
3940 cat >conftest.
$ac_ext <<_ACEOF
3943 cat confdefs.h
>>conftest.
$ac_ext
3944 cat >>conftest.
$ac_ext <<_ACEOF
3945 /* end confdefs.h. */
3946 int main() { return 0; }
3948 rm -f conftest
$ac_exeext
3949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3950 (eval $ac_link) 2>&5
3952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3953 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3958 (exit $ac_status); }; }; then
3959 ac_cv_opt_olimit_ok
=yes
3961 echo "$as_me: program exited with status $ac_status" >&5
3962 echo "$as_me: failed program was:" >&5
3963 sed 's/^/| /' conftest.
$ac_ext >&5
3966 ac_cv_opt_olimit_ok
=no
3968 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3973 echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
3974 echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6
3975 if test $ac_cv_opt_olimit_ok = yes; then
3976 case $ac_sys_system in
3977 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
3978 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
3983 BASECFLAGS
="$BASECFLAGS -OPT:Olimit=0"
3987 echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
3988 echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6
3989 if test "${ac_cv_olimit_ok+set}" = set; then
3990 echo $ECHO_N "(cached) $ECHO_C" >&6
3993 CC
="$CC -Olimit 1500"
3994 if test "$cross_compiling" = yes; then
3997 cat >conftest.
$ac_ext <<_ACEOF
4000 cat confdefs.h
>>conftest.
$ac_ext
4001 cat >>conftest.
$ac_ext <<_ACEOF
4002 /* end confdefs.h. */
4003 int main() { return 0; }
4005 rm -f conftest
$ac_exeext
4006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4007 (eval $ac_link) 2>&5
4009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4015 (exit $ac_status); }; }; then
4018 echo "$as_me: program exited with status $ac_status" >&5
4019 echo "$as_me: failed program was:" >&5
4020 sed 's/^/| /' conftest.
$ac_ext >&5
4025 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4030 echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
4031 echo "${ECHO_T}$ac_cv_olimit_ok" >&6
4032 if test $ac_cv_olimit_ok = yes; then
4033 BASECFLAGS
="$BASECFLAGS -Olimit 1500"
4037 # On some compilers, pthreads are available without further options
4038 # (e.g. MacOS X). On some of these systems, the compiler will not
4039 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
4040 # So we have to see first whether pthreads are available without
4041 # options before we can check whether -Kpthread improves anything.
4042 echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
4043 echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6
4044 if test "${ac_cv_pthread_is_default+set}" = set; then
4045 echo $ECHO_N "(cached) $ECHO_C" >&6
4047 if test "$cross_compiling" = yes; then
4048 ac_cv_pthread_is_default
=no
4050 cat >conftest.
$ac_ext <<_ACEOF
4053 cat confdefs.h
>>conftest.
$ac_ext
4054 cat >>conftest.
$ac_ext <<_ACEOF
4055 /* end confdefs.h. */
4057 #include <pthread.h>
4059 void* routine(void* p){return NULL;}
4063 if(pthread_create(&p,NULL,routine,NULL)!=0)
4065 (void)pthread_detach(p);
4070 rm -f conftest
$ac_exeext
4071 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4072 (eval $ac_link) 2>&5
4074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080 (exit $ac_status); }; }; then
4082 ac_cv_pthread_is_default
=yes
4087 echo "$as_me: program exited with status $ac_status" >&5
4088 echo "$as_me: failed program was:" >&5
4089 sed 's/^/| /' conftest.
$ac_ext >&5
4092 ac_cv_pthread_is_default
=no
4094 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4099 echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
4100 echo "${ECHO_T}$ac_cv_pthread_is_default" >&6
4103 if test $ac_cv_pthread_is_default = yes
4107 # -Kpthread, if available, provides the right #defines
4108 # and linker options to make pthread_create available
4109 # Some compilers won't report that they do not support -Kpthread,
4110 # so we need to run a program to see whether it really made the
4111 # function available.
4112 echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
4113 echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6
4114 if test "${ac_cv_kpthread+set}" = set; then
4115 echo $ECHO_N "(cached) $ECHO_C" >&6
4119 if test "$cross_compiling" = yes; then
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
4155 echo "$as_me: program exited with status $ac_status" >&5
4156 echo "$as_me: failed program was:" >&5
4157 sed 's/^/| /' conftest.
$ac_ext >&5
4162 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4167 echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
4168 echo "${ECHO_T}$ac_cv_kpthread" >&6
4171 if test $ac_cv_kpthread = no
-a $ac_cv_pthread_is_default = no
4173 # -Kthread, if available, provides the right #defines
4174 # and linker options to make pthread_create available
4175 # Some compilers won't report that they do not support -Kthread,
4176 # so we need to run a program to see whether it really made the
4177 # function available.
4178 echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
4179 echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6
4180 if test "${ac_cv_kthread+set}" = set; then
4181 echo $ECHO_N "(cached) $ECHO_C" >&6
4185 if test "$cross_compiling" = yes; then
4188 cat >conftest.
$ac_ext <<_ACEOF
4191 cat confdefs.h
>>conftest.
$ac_ext
4192 cat >>conftest.
$ac_ext <<_ACEOF
4193 /* end confdefs.h. */
4195 #include <pthread.h>
4197 void* routine(void* p){return NULL;}
4201 if(pthread_create(&p,NULL,routine,NULL)!=0)
4203 (void)pthread_detach(p);
4208 rm -f conftest
$ac_exeext
4209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4210 (eval $ac_link) 2>&5
4212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4213 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4218 (exit $ac_status); }; }; then
4221 echo "$as_me: program exited with status $ac_status" >&5
4222 echo "$as_me: failed program was:" >&5
4223 sed 's/^/| /' conftest.
$ac_ext >&5
4228 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4233 echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
4234 echo "${ECHO_T}$ac_cv_kthread" >&6
4237 if test $ac_cv_kthread = no
-a $ac_cv_pthread_is_default = no
4239 # -pthread, if available, provides the right #defines
4240 # and linker options to make pthread_create available
4241 # Some compilers won't report that they do not support -pthread,
4242 # so we need to run a program to see whether it really made the
4243 # function available.
4244 echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
4245 echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6
4246 if test "${ac_cv_thread+set}" = set; then
4247 echo $ECHO_N "(cached) $ECHO_C" >&6
4251 if test "$cross_compiling" = yes; then
4254 cat >conftest.
$ac_ext <<_ACEOF
4257 cat confdefs.h
>>conftest.
$ac_ext
4258 cat >>conftest.
$ac_ext <<_ACEOF
4259 /* end confdefs.h. */
4261 #include <pthread.h>
4263 void* routine(void* p){return NULL;}
4267 if(pthread_create(&p,NULL,routine,NULL)!=0)
4269 (void)pthread_detach(p);
4274 rm -f conftest
$ac_exeext
4275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4276 (eval $ac_link) 2>&5
4278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4284 (exit $ac_status); }; }; then
4287 echo "$as_me: program exited with status $ac_status" >&5
4288 echo "$as_me: failed program was:" >&5
4289 sed 's/^/| /' conftest.
$ac_ext >&5
4294 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4299 echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
4300 echo "${ECHO_T}$ac_cv_pthread" >&6
4303 # If we have set a CC compiler flag for thread support then
4304 # check if it works for CXX, too.
4308 echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5
4309 echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6
4312 if test "$ac_cv_kpthread" = "yes"
4314 CXX
="$CXX -Kpthread"
4315 ac_cv_cxx_thread
=yes
4316 elif test "$ac_cv_kthread" = "yes"
4319 ac_cv_cxx_thread
=yes
4320 elif test "$ac_cv_pthread" = "yes"
4323 ac_cv_cxx_thread
=yes
4326 if test $ac_cv_cxx_thread = yes
4328 echo 'void foo();int main(){foo();}void foo(){}' > conftest.
$ac_ext
4329 $CXX -c conftest.
$ac_ext 2>&5
4330 if $CXX -o conftest
$ac_exeext conftest.
$ac_objext 2>&5 \
4331 && test -s conftest
$ac_exeext && .
/conftest
$ac_exeext
4333 ac_cv_cxx_thread
=yes
4339 echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
4340 echo "${ECHO_T}$ac_cv_cxx_thread" >&6
4345 # checks for header files
4346 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4347 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4348 if test "${ac_cv_header_stdc+set}" = set; then
4349 echo $ECHO_N "(cached) $ECHO_C" >&6
4351 cat >conftest.
$ac_ext <<_ACEOF
4354 cat confdefs.h
>>conftest.
$ac_ext
4355 cat >>conftest.
$ac_ext <<_ACEOF
4356 /* end confdefs.h. */
4370 rm -f conftest.
$ac_objext
4371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4372 (eval $ac_compile) 2>conftest.er1
4374 grep -v '^ *+' conftest.er1
>conftest.err
4376 cat conftest.err
>&5
4377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4378 (exit $ac_status); } &&
4379 { ac_try
='test -z "$ac_c_werror_flag"
4380 || test ! -s conftest.err'
4381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4385 (exit $ac_status); }; } &&
4386 { ac_try
='test -s conftest.$ac_objext'
4387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4391 (exit $ac_status); }; }; then
4392 ac_cv_header_stdc
=yes
4394 echo "$as_me: failed program was:" >&5
4395 sed 's/^/| /' conftest.
$ac_ext >&5
4397 ac_cv_header_stdc
=no
4399 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4401 if test $ac_cv_header_stdc = yes; then
4402 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4403 cat >conftest.
$ac_ext <<_ACEOF
4406 cat confdefs.h
>>conftest.
$ac_ext
4407 cat >>conftest.
$ac_ext <<_ACEOF
4408 /* end confdefs.h. */
4412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4413 $EGREP "memchr" >/dev
/null
2>&1; then
4416 ac_cv_header_stdc
=no
4422 if test $ac_cv_header_stdc = yes; then
4423 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4424 cat >conftest.
$ac_ext <<_ACEOF
4427 cat confdefs.h
>>conftest.
$ac_ext
4428 cat >>conftest.
$ac_ext <<_ACEOF
4429 /* end confdefs.h. */
4433 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4434 $EGREP "free" >/dev
/null
2>&1; then
4437 ac_cv_header_stdc
=no
4443 if test $ac_cv_header_stdc = yes; then
4444 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4445 if test "$cross_compiling" = yes; then
4448 cat >conftest.
$ac_ext <<_ACEOF
4451 cat confdefs.h
>>conftest.
$ac_ext
4452 cat >>conftest.
$ac_ext <<_ACEOF
4453 /* end confdefs.h. */
4455 #if ((' ' & 0x0FF) == 0x020)
4456 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4457 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4459 # define ISLOWER(c) \
4460 (('a' <= (c) && (c) <= 'i') \
4461 || ('j' <= (c) && (c) <= 'r') \
4462 || ('s' <= (c) && (c) <= 'z'))
4463 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4466 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4471 for (i = 0; i < 256; i++)
4472 if (XOR (islower (i), ISLOWER (i))
4473 || toupper (i) != TOUPPER (i))
4478 rm -f conftest
$ac_exeext
4479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4480 (eval $ac_link) 2>&5
4482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488 (exit $ac_status); }; }; then
4491 echo "$as_me: program exited with status $ac_status" >&5
4492 echo "$as_me: failed program was:" >&5
4493 sed 's/^/| /' conftest.
$ac_ext >&5
4496 ac_cv_header_stdc
=no
4498 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4502 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4503 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4504 if test $ac_cv_header_stdc = yes; then
4506 cat >>confdefs.h
<<\_ACEOF
4507 #define STDC_HEADERS 1
4512 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4522 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4523 inttypes.h stdint.h unistd.h
4525 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4526 echo "$as_me:$LINENO: checking for $ac_header" >&5
4527 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4528 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4529 echo $ECHO_N "(cached) $ECHO_C" >&6
4531 cat >conftest.
$ac_ext <<_ACEOF
4534 cat confdefs.h
>>conftest.
$ac_ext
4535 cat >>conftest.
$ac_ext <<_ACEOF
4536 /* end confdefs.h. */
4537 $ac_includes_default
4539 #include <$ac_header>
4541 rm -f conftest.
$ac_objext
4542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4543 (eval $ac_compile) 2>conftest.er1
4545 grep -v '^ *+' conftest.er1
>conftest.err
4547 cat conftest.err
>&5
4548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549 (exit $ac_status); } &&
4550 { ac_try
='test -z "$ac_c_werror_flag"
4551 || test ! -s conftest.err'
4552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556 (exit $ac_status); }; } &&
4557 { ac_try
='test -s conftest.$ac_objext'
4558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4562 (exit $ac_status); }; }; then
4563 eval "$as_ac_Header=yes"
4565 echo "$as_me: failed program was:" >&5
4566 sed 's/^/| /' conftest.
$ac_ext >&5
4568 eval "$as_ac_Header=no"
4570 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4572 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4573 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4574 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4575 cat >>confdefs.h
<<_ACEOF
4576 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4623 for ac_header
in asm
/types.h curses.h dlfcn.h fcntl.h grp.h \
4624 shadow.h langinfo.h libintl.h ncurses.h poll.h pthread.h \
4625 stropts.h termios.h thread.h \
4627 sys
/audioio.h sys
/bsdtty.h sys
/file.h sys
/loadavg.h sys
/lock.h sys
/mkdev.h \
4629 sys
/param.h sys
/poll.h sys
/select.h sys
/socket.h sys
/time.h sys
/times.h \
4630 sys
/un.h sys
/utsname.h sys
/wait.h pty.h libutil.h \
4631 sys
/resource.h netpacket
/packet.h sysexits.h bluetooth.h \
4632 bluetooth
/bluetooth.h
4634 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4635 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4636 echo "$as_me:$LINENO: checking for $ac_header" >&5
4637 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4638 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4639 echo $ECHO_N "(cached) $ECHO_C" >&6
4641 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4642 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4644 # Is the header compilable?
4645 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4646 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4647 cat >conftest.
$ac_ext <<_ACEOF
4650 cat confdefs.h
>>conftest.
$ac_ext
4651 cat >>conftest.
$ac_ext <<_ACEOF
4652 /* end confdefs.h. */
4653 $ac_includes_default
4654 #include <$ac_header>
4656 rm -f conftest.
$ac_objext
4657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4658 (eval $ac_compile) 2>conftest.er1
4660 grep -v '^ *+' conftest.er1
>conftest.err
4662 cat conftest.err
>&5
4663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664 (exit $ac_status); } &&
4665 { ac_try
='test -z "$ac_c_werror_flag"
4666 || test ! -s conftest.err'
4667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4671 (exit $ac_status); }; } &&
4672 { ac_try
='test -s conftest.$ac_objext'
4673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4677 (exit $ac_status); }; }; then
4678 ac_header_compiler
=yes
4680 echo "$as_me: failed program was:" >&5
4681 sed 's/^/| /' conftest.
$ac_ext >&5
4683 ac_header_compiler
=no
4685 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4686 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4687 echo "${ECHO_T}$ac_header_compiler" >&6
4689 # Is the header present?
4690 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4691 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4692 cat >conftest.
$ac_ext <<_ACEOF
4695 cat confdefs.h
>>conftest.
$ac_ext
4696 cat >>conftest.
$ac_ext <<_ACEOF
4697 /* end confdefs.h. */
4698 #include <$ac_header>
4700 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4701 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4703 grep -v '^ *+' conftest.er1
>conftest.err
4705 cat conftest.err
>&5
4706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707 (exit $ac_status); } >/dev
/null
; then
4708 if test -s conftest.err
; then
4709 ac_cpp_err
=$ac_c_preproc_warn_flag
4710 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4717 if test -z "$ac_cpp_err"; then
4718 ac_header_preproc
=yes
4720 echo "$as_me: failed program was:" >&5
4721 sed 's/^/| /' conftest.
$ac_ext >&5
4723 ac_header_preproc
=no
4725 rm -f conftest.err conftest.
$ac_ext
4726 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4727 echo "${ECHO_T}$ac_header_preproc" >&6
4729 # So? What about this header?
4730 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4732 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4733 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4734 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4735 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4736 ac_header_preproc
=yes
4739 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4740 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4741 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4742 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4743 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4744 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4745 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4746 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4747 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4748 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4749 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4750 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4753 ## ------------------------------------------------ ##
4754 ## Report this to http://www.python.org/python-bugs ##
4755 ## ------------------------------------------------ ##
4758 sed "s/^/$as_me: WARNING: /" >&2
4761 echo "$as_me:$LINENO: checking for $ac_header" >&5
4762 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4763 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4764 echo $ECHO_N "(cached) $ECHO_C" >&6
4766 eval "$as_ac_Header=\$ac_header_preproc"
4768 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4769 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4772 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4773 cat >>confdefs.h
<<_ACEOF
4774 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4787 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
4788 as_ac_Header
=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4789 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4790 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
4791 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4792 echo $ECHO_N "(cached) $ECHO_C" >&6
4794 cat >conftest.
$ac_ext <<_ACEOF
4797 cat confdefs.h
>>conftest.
$ac_ext
4798 cat >>conftest.
$ac_ext <<_ACEOF
4799 /* end confdefs.h. */
4800 #include <sys/types.h>
4812 rm -f conftest.
$ac_objext
4813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4814 (eval $ac_compile) 2>conftest.er1
4816 grep -v '^ *+' conftest.er1
>conftest.err
4818 cat conftest.err
>&5
4819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4820 (exit $ac_status); } &&
4821 { ac_try
='test -z "$ac_c_werror_flag"
4822 || test ! -s conftest.err'
4823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4827 (exit $ac_status); }; } &&
4828 { ac_try
='test -s conftest.$ac_objext'
4829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4833 (exit $ac_status); }; }; then
4834 eval "$as_ac_Header=yes"
4836 echo "$as_me: failed program was:" >&5
4837 sed 's/^/| /' conftest.
$ac_ext >&5
4839 eval "$as_ac_Header=no"
4841 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4843 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4844 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4845 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4846 cat >>confdefs.h
<<_ACEOF
4847 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4850 ac_header_dirent
=$ac_hdr; break
4854 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4855 if test $ac_header_dirent = dirent.h
; then
4856 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4857 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4858 if test "${ac_cv_search_opendir+set}" = set; then
4859 echo $ECHO_N "(cached) $ECHO_C" >&6
4861 ac_func_search_save_LIBS
=$LIBS
4862 ac_cv_search_opendir
=no
4863 cat >conftest.
$ac_ext <<_ACEOF
4866 cat confdefs.h
>>conftest.
$ac_ext
4867 cat >>conftest.
$ac_ext <<_ACEOF
4868 /* end confdefs.h. */
4870 /* Override any gcc2 internal prototype to avoid an error. */
4874 /* We use char because int might match the return type of a gcc2
4875 builtin and then its argument prototype would still apply. */
4885 rm -f conftest.
$ac_objext conftest
$ac_exeext
4886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4887 (eval $ac_link) 2>conftest.er1
4889 grep -v '^ *+' conftest.er1
>conftest.err
4891 cat conftest.err
>&5
4892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4893 (exit $ac_status); } &&
4894 { ac_try
='test -z "$ac_c_werror_flag"
4895 || test ! -s conftest.err'
4896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4900 (exit $ac_status); }; } &&
4901 { ac_try
='test -s conftest$ac_exeext'
4902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4906 (exit $ac_status); }; }; then
4907 ac_cv_search_opendir
="none required"
4909 echo "$as_me: failed program was:" >&5
4910 sed 's/^/| /' conftest.
$ac_ext >&5
4913 rm -f conftest.err conftest.
$ac_objext \
4914 conftest
$ac_exeext conftest.
$ac_ext
4915 if test "$ac_cv_search_opendir" = no
; then
4916 for ac_lib
in dir
; do
4917 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4918 cat >conftest.
$ac_ext <<_ACEOF
4921 cat confdefs.h
>>conftest.
$ac_ext
4922 cat >>conftest.
$ac_ext <<_ACEOF
4923 /* end confdefs.h. */
4925 /* Override any gcc2 internal prototype to avoid an error. */
4929 /* We use char because int might match the return type of a gcc2
4930 builtin and then its argument prototype would still apply. */
4940 rm -f conftest.
$ac_objext conftest
$ac_exeext
4941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4942 (eval $ac_link) 2>conftest.er1
4944 grep -v '^ *+' conftest.er1
>conftest.err
4946 cat conftest.err
>&5
4947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4948 (exit $ac_status); } &&
4949 { ac_try
='test -z "$ac_c_werror_flag"
4950 || test ! -s conftest.err'
4951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4955 (exit $ac_status); }; } &&
4956 { ac_try
='test -s conftest$ac_exeext'
4957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4961 (exit $ac_status); }; }; then
4962 ac_cv_search_opendir
="-l$ac_lib"
4965 echo "$as_me: failed program was:" >&5
4966 sed 's/^/| /' conftest.
$ac_ext >&5
4969 rm -f conftest.err conftest.
$ac_objext \
4970 conftest
$ac_exeext conftest.
$ac_ext
4973 LIBS
=$ac_func_search_save_LIBS
4975 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4976 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4977 if test "$ac_cv_search_opendir" != no
; then
4978 test "$ac_cv_search_opendir" = "none required" || LIBS
="$ac_cv_search_opendir $LIBS"
4983 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4984 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4985 if test "${ac_cv_search_opendir+set}" = set; then
4986 echo $ECHO_N "(cached) $ECHO_C" >&6
4988 ac_func_search_save_LIBS
=$LIBS
4989 ac_cv_search_opendir
=no
4990 cat >conftest.
$ac_ext <<_ACEOF
4993 cat confdefs.h
>>conftest.
$ac_ext
4994 cat >>conftest.
$ac_ext <<_ACEOF
4995 /* end confdefs.h. */
4997 /* Override any gcc2 internal prototype to avoid an error. */
5001 /* We use char because int might match the return type of a gcc2
5002 builtin and then its argument prototype would still apply. */
5012 rm -f conftest.
$ac_objext conftest
$ac_exeext
5013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5014 (eval $ac_link) 2>conftest.er1
5016 grep -v '^ *+' conftest.er1
>conftest.err
5018 cat conftest.err
>&5
5019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5020 (exit $ac_status); } &&
5021 { ac_try
='test -z "$ac_c_werror_flag"
5022 || test ! -s conftest.err'
5023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5027 (exit $ac_status); }; } &&
5028 { ac_try
='test -s conftest$ac_exeext'
5029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5033 (exit $ac_status); }; }; then
5034 ac_cv_search_opendir
="none required"
5036 echo "$as_me: failed program was:" >&5
5037 sed 's/^/| /' conftest.
$ac_ext >&5
5040 rm -f conftest.err conftest.
$ac_objext \
5041 conftest
$ac_exeext conftest.
$ac_ext
5042 if test "$ac_cv_search_opendir" = no
; then
5044 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5045 cat >conftest.
$ac_ext <<_ACEOF
5048 cat confdefs.h
>>conftest.
$ac_ext
5049 cat >>conftest.
$ac_ext <<_ACEOF
5050 /* end confdefs.h. */
5052 /* Override any gcc2 internal prototype to avoid an error. */
5056 /* We use char because int might match the return type of a gcc2
5057 builtin and then its argument prototype would still apply. */
5067 rm -f conftest.
$ac_objext conftest
$ac_exeext
5068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5069 (eval $ac_link) 2>conftest.er1
5071 grep -v '^ *+' conftest.er1
>conftest.err
5073 cat conftest.err
>&5
5074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5075 (exit $ac_status); } &&
5076 { ac_try
='test -z "$ac_c_werror_flag"
5077 || test ! -s conftest.err'
5078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082 (exit $ac_status); }; } &&
5083 { ac_try
='test -s conftest$ac_exeext'
5084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5088 (exit $ac_status); }; }; then
5089 ac_cv_search_opendir
="-l$ac_lib"
5092 echo "$as_me: failed program was:" >&5
5093 sed 's/^/| /' conftest.
$ac_ext >&5
5096 rm -f conftest.err conftest.
$ac_objext \
5097 conftest
$ac_exeext conftest.
$ac_ext
5100 LIBS
=$ac_func_search_save_LIBS
5102 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5103 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5104 if test "$ac_cv_search_opendir" != no
; then
5105 test "$ac_cv_search_opendir" = "none required" || LIBS
="$ac_cv_search_opendir $LIBS"
5111 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
5112 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
5113 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
5114 echo $ECHO_N "(cached) $ECHO_C" >&6
5116 cat >conftest.
$ac_ext <<_ACEOF
5119 cat confdefs.h
>>conftest.
$ac_ext
5120 cat >>conftest.
$ac_ext <<_ACEOF
5121 /* end confdefs.h. */
5122 #include <sys/types.h>
5126 return makedev(0, 0);
5131 rm -f conftest.
$ac_objext conftest
$ac_exeext
5132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5133 (eval $ac_link) 2>conftest.er1
5135 grep -v '^ *+' conftest.er1
>conftest.err
5137 cat conftest.err
>&5
5138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5139 (exit $ac_status); } &&
5140 { ac_try
='test -z "$ac_c_werror_flag"
5141 || test ! -s conftest.err'
5142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5146 (exit $ac_status); }; } &&
5147 { ac_try
='test -s conftest$ac_exeext'
5148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5152 (exit $ac_status); }; }; then
5153 ac_cv_header_sys_types_h_makedev
=yes
5155 echo "$as_me: failed program was:" >&5
5156 sed 's/^/| /' conftest.
$ac_ext >&5
5158 ac_cv_header_sys_types_h_makedev
=no
5160 rm -f conftest.err conftest.
$ac_objext \
5161 conftest
$ac_exeext conftest.
$ac_ext
5164 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
5165 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
5167 if test $ac_cv_header_sys_types_h_makedev = no
; then
5168 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5169 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
5170 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
5171 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5172 echo $ECHO_N "(cached) $ECHO_C" >&6
5174 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
5175 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
5177 # Is the header compilable?
5178 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
5179 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
5180 cat >conftest.
$ac_ext <<_ACEOF
5183 cat confdefs.h
>>conftest.
$ac_ext
5184 cat >>conftest.
$ac_ext <<_ACEOF
5185 /* end confdefs.h. */
5186 $ac_includes_default
5187 #include <sys/mkdev.h>
5189 rm -f conftest.
$ac_objext
5190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5191 (eval $ac_compile) 2>conftest.er1
5193 grep -v '^ *+' conftest.er1
>conftest.err
5195 cat conftest.err
>&5
5196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5197 (exit $ac_status); } &&
5198 { ac_try
='test -z "$ac_c_werror_flag"
5199 || test ! -s conftest.err'
5200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5204 (exit $ac_status); }; } &&
5205 { ac_try
='test -s conftest.$ac_objext'
5206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5210 (exit $ac_status); }; }; then
5211 ac_header_compiler
=yes
5213 echo "$as_me: failed program was:" >&5
5214 sed 's/^/| /' conftest.
$ac_ext >&5
5216 ac_header_compiler
=no
5218 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5219 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5220 echo "${ECHO_T}$ac_header_compiler" >&6
5222 # Is the header present?
5223 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
5224 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
5225 cat >conftest.
$ac_ext <<_ACEOF
5228 cat confdefs.h
>>conftest.
$ac_ext
5229 cat >>conftest.
$ac_ext <<_ACEOF
5230 /* end confdefs.h. */
5231 #include <sys/mkdev.h>
5233 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5234 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5236 grep -v '^ *+' conftest.er1
>conftest.err
5238 cat conftest.err
>&5
5239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240 (exit $ac_status); } >/dev
/null
; then
5241 if test -s conftest.err
; then
5242 ac_cpp_err
=$ac_c_preproc_warn_flag
5243 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5250 if test -z "$ac_cpp_err"; then
5251 ac_header_preproc
=yes
5253 echo "$as_me: failed program was:" >&5
5254 sed 's/^/| /' conftest.
$ac_ext >&5
5256 ac_header_preproc
=no
5258 rm -f conftest.err conftest.
$ac_ext
5259 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5260 echo "${ECHO_T}$ac_header_preproc" >&6
5262 # So? What about this header?
5263 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5265 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
5266 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5267 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
5268 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
5269 ac_header_preproc
=yes
5272 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
5273 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
5274 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
5275 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
5276 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
5277 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
5278 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
5279 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
5280 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
5281 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
5282 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
5283 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
5286 ## ------------------------------------------------ ##
5287 ## Report this to http://www.python.org/python-bugs ##
5288 ## ------------------------------------------------ ##
5291 sed "s/^/$as_me: WARNING: /" >&2
5294 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
5295 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
5296 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5297 echo $ECHO_N "(cached) $ECHO_C" >&6
5299 ac_cv_header_sys_mkdev_h
=$ac_header_preproc
5301 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
5302 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
5305 if test $ac_cv_header_sys_mkdev_h = yes; then
5307 cat >>confdefs.h
<<\_ACEOF
5308 #define MAJOR_IN_MKDEV 1
5315 if test $ac_cv_header_sys_mkdev_h = no
; then
5316 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5317 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
5318 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
5319 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5320 echo $ECHO_N "(cached) $ECHO_C" >&6
5322 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
5323 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
5325 # Is the header compilable?
5326 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
5327 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
5328 cat >conftest.
$ac_ext <<_ACEOF
5331 cat confdefs.h
>>conftest.
$ac_ext
5332 cat >>conftest.
$ac_ext <<_ACEOF
5333 /* end confdefs.h. */
5334 $ac_includes_default
5335 #include <sys/sysmacros.h>
5337 rm -f conftest.
$ac_objext
5338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5339 (eval $ac_compile) 2>conftest.er1
5341 grep -v '^ *+' conftest.er1
>conftest.err
5343 cat conftest.err
>&5
5344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5345 (exit $ac_status); } &&
5346 { ac_try
='test -z "$ac_c_werror_flag"
5347 || test ! -s conftest.err'
5348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5352 (exit $ac_status); }; } &&
5353 { ac_try
='test -s conftest.$ac_objext'
5354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5358 (exit $ac_status); }; }; then
5359 ac_header_compiler
=yes
5361 echo "$as_me: failed program was:" >&5
5362 sed 's/^/| /' conftest.
$ac_ext >&5
5364 ac_header_compiler
=no
5366 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5367 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5368 echo "${ECHO_T}$ac_header_compiler" >&6
5370 # Is the header present?
5371 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
5372 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
5373 cat >conftest.
$ac_ext <<_ACEOF
5376 cat confdefs.h
>>conftest.
$ac_ext
5377 cat >>conftest.
$ac_ext <<_ACEOF
5378 /* end confdefs.h. */
5379 #include <sys/sysmacros.h>
5381 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5382 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5384 grep -v '^ *+' conftest.er1
>conftest.err
5386 cat conftest.err
>&5
5387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5388 (exit $ac_status); } >/dev
/null
; then
5389 if test -s conftest.err
; then
5390 ac_cpp_err
=$ac_c_preproc_warn_flag
5391 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5398 if test -z "$ac_cpp_err"; then
5399 ac_header_preproc
=yes
5401 echo "$as_me: failed program was:" >&5
5402 sed 's/^/| /' conftest.
$ac_ext >&5
5404 ac_header_preproc
=no
5406 rm -f conftest.err conftest.
$ac_ext
5407 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5408 echo "${ECHO_T}$ac_header_preproc" >&6
5410 # So? What about this header?
5411 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5413 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
5414 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5415 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
5416 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
5417 ac_header_preproc
=yes
5420 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
5421 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
5422 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
5423 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
5424 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
5425 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
5426 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
5427 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
5428 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
5429 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
5430 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
5431 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
5434 ## ------------------------------------------------ ##
5435 ## Report this to http://www.python.org/python-bugs ##
5436 ## ------------------------------------------------ ##
5439 sed "s/^/$as_me: WARNING: /" >&2
5442 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
5443 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
5444 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5445 echo $ECHO_N "(cached) $ECHO_C" >&6
5447 ac_cv_header_sys_sysmacros_h
=$ac_header_preproc
5449 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
5450 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
5453 if test $ac_cv_header_sys_sysmacros_h = yes; then
5455 cat >>confdefs.h
<<\_ACEOF
5456 #define MAJOR_IN_SYSMACROS 1
5466 # On Solaris, term.h requires curses.h
5468 for ac_header
in term.h
5470 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5471 echo "$as_me:$LINENO: checking for $ac_header" >&5
5472 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5473 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5474 echo $ECHO_N "(cached) $ECHO_C" >&6
5476 cat >conftest.
$ac_ext <<_ACEOF
5479 cat confdefs.h
>>conftest.
$ac_ext
5480 cat >>conftest.
$ac_ext <<_ACEOF
5481 /* end confdefs.h. */
5483 #ifdef HAVE_CURSES_H
5488 #include <$ac_header>
5490 rm -f conftest.
$ac_objext
5491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5492 (eval $ac_compile) 2>conftest.er1
5494 grep -v '^ *+' conftest.er1
>conftest.err
5496 cat conftest.err
>&5
5497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5498 (exit $ac_status); } &&
5499 { ac_try
='test -z "$ac_c_werror_flag"
5500 || test ! -s conftest.err'
5501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5505 (exit $ac_status); }; } &&
5506 { ac_try
='test -s conftest.$ac_objext'
5507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5511 (exit $ac_status); }; }; then
5512 eval "$as_ac_Header=yes"
5514 echo "$as_me: failed program was:" >&5
5515 sed 's/^/| /' conftest.
$ac_ext >&5
5517 eval "$as_ac_Header=no"
5519 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5521 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5522 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5523 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5524 cat >>confdefs.h
<<_ACEOF
5525 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5533 # On Linux, netlink.h requires asm/types.h
5535 for ac_header
in linux
/netlink.h
5537 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5538 echo "$as_me:$LINENO: checking for $ac_header" >&5
5539 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5540 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5541 echo $ECHO_N "(cached) $ECHO_C" >&6
5543 cat >conftest.
$ac_ext <<_ACEOF
5546 cat confdefs.h
>>conftest.
$ac_ext
5547 cat >>conftest.
$ac_ext <<_ACEOF
5548 /* end confdefs.h. */
5550 #ifdef HAVE_ASM_TYPES_H
5551 #include <asm/types.h>
5553 #ifdef HAVE_SYS_SOCKET_H
5554 #include <sys/socket.h>
5558 #include <$ac_header>
5560 rm -f conftest.
$ac_objext
5561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5562 (eval $ac_compile) 2>conftest.er1
5564 grep -v '^ *+' conftest.er1
>conftest.err
5566 cat conftest.err
>&5
5567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5568 (exit $ac_status); } &&
5569 { ac_try
='test -z "$ac_c_werror_flag"
5570 || test ! -s conftest.err'
5571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5575 (exit $ac_status); }; } &&
5576 { ac_try
='test -s conftest.$ac_objext'
5577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5581 (exit $ac_status); }; }; then
5582 eval "$as_ac_Header=yes"
5584 echo "$as_me: failed program was:" >&5
5585 sed 's/^/| /' conftest.
$ac_ext >&5
5587 eval "$as_ac_Header=no"
5589 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5591 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5592 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5593 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5594 cat >>confdefs.h
<<_ACEOF
5595 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5603 # checks for typedefs
5605 echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
5606 echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6
5607 cat >conftest.
$ac_ext <<_ACEOF
5610 cat confdefs.h
>>conftest.
$ac_ext
5611 cat >>conftest.
$ac_ext <<_ACEOF
5612 /* end confdefs.h. */
5616 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5617 $EGREP "clock_t" >/dev
/null
2>&1; then
5622 cat >>confdefs.h
<<\_ACEOF
5623 #define clock_t long
5630 echo "$as_me:$LINENO: result: $was_it_defined" >&5
5631 echo "${ECHO_T}$was_it_defined" >&6
5633 # Check whether using makedev requires defining _OSF_SOURCE
5634 echo "$as_me:$LINENO: checking for makedev" >&5
5635 echo $ECHO_N "checking for makedev... $ECHO_C" >&6
5636 cat >conftest.
$ac_ext <<_ACEOF
5639 cat confdefs.h
>>conftest.
$ac_ext
5640 cat >>conftest.
$ac_ext <<_ACEOF
5641 /* end confdefs.h. */
5642 #include <sys/types.h>
5651 rm -f conftest.
$ac_objext conftest
$ac_exeext
5652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5653 (eval $ac_link) 2>conftest.er1
5655 grep -v '^ *+' conftest.er1
>conftest.err
5657 cat conftest.err
>&5
5658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5659 (exit $ac_status); } &&
5660 { ac_try
='test -z "$ac_c_werror_flag"
5661 || test ! -s conftest.err'
5662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5666 (exit $ac_status); }; } &&
5667 { ac_try
='test -s conftest$ac_exeext'
5668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5672 (exit $ac_status); }; }; then
5673 ac_cv_has_makedev
=yes
5675 echo "$as_me: failed program was:" >&5
5676 sed 's/^/| /' conftest.
$ac_ext >&5
5678 ac_cv_has_makedev
=no
5680 rm -f conftest.err conftest.
$ac_objext \
5681 conftest
$ac_exeext conftest.
$ac_ext
5682 if test "$ac_cv_has_makedev" = "no"; then
5683 # we didn't link, try if _OSF_SOURCE will allow us to link
5684 cat >conftest.
$ac_ext <<_ACEOF
5687 cat confdefs.h
>>conftest.
$ac_ext
5688 cat >>conftest.
$ac_ext <<_ACEOF
5689 /* end confdefs.h. */
5691 #define _OSF_SOURCE 1
5692 #include <sys/types.h>
5702 rm -f conftest.
$ac_objext conftest
$ac_exeext
5703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5704 (eval $ac_link) 2>conftest.er1
5706 grep -v '^ *+' conftest.er1
>conftest.err
5708 cat conftest.err
>&5
5709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5710 (exit $ac_status); } &&
5711 { ac_try
='test -z "$ac_c_werror_flag"
5712 || test ! -s conftest.err'
5713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5717 (exit $ac_status); }; } &&
5718 { ac_try
='test -s conftest$ac_exeext'
5719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723 (exit $ac_status); }; }; then
5724 ac_cv_has_makedev
=yes
5726 echo "$as_me: failed program was:" >&5
5727 sed 's/^/| /' conftest.
$ac_ext >&5
5729 ac_cv_has_makedev
=no
5731 rm -f conftest.err conftest.
$ac_objext \
5732 conftest
$ac_exeext conftest.
$ac_ext
5733 if test "$ac_cv_has_makedev" = "yes"; then
5735 cat >>confdefs.h
<<\_ACEOF
5736 #define _OSF_SOURCE 1
5741 echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
5742 echo "${ECHO_T}$ac_cv_has_makedev" >&6
5743 if test "$ac_cv_has_makedev" = "yes"; then
5745 cat >>confdefs.h
<<\_ACEOF
5746 #define HAVE_MAKEDEV 1
5751 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
5752 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
5753 # defined, but the compiler does not support pragma redefine_extname,
5754 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
5755 # structures (such as rlimit64) without declaring them. As a
5756 # work-around, disable LFS on such configurations
5759 echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
5760 echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6
5761 cat >conftest.
$ac_ext <<_ACEOF
5764 cat confdefs.h
>>conftest.
$ac_ext
5765 cat >>conftest.
$ac_ext <<_ACEOF
5766 /* end confdefs.h. */
5768 #define _LARGEFILE_SOURCE 1
5769 #define _FILE_OFFSET_BITS 64
5770 #include <sys/resource.h>
5780 rm -f conftest.
$ac_objext
5781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5782 (eval $ac_compile) 2>conftest.er1
5784 grep -v '^ *+' conftest.er1
>conftest.err
5786 cat conftest.err
>&5
5787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788 (exit $ac_status); } &&
5789 { ac_try
='test -z "$ac_c_werror_flag"
5790 || test ! -s conftest.err'
5791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5795 (exit $ac_status); }; } &&
5796 { ac_try
='test -s conftest.$ac_objext'
5797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5801 (exit $ac_status); }; }; then
5804 echo "$as_me: failed program was:" >&5
5805 sed 's/^/| /' conftest.
$ac_ext >&5
5809 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5810 echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
5811 echo "${ECHO_T}$sol_lfs_bug" >&6
5812 if test "$sol_lfs_bug" = "yes"; then
5816 if test "$use_lfs" = "yes"; then
5817 # Two defines needed to enable largefile support on various platforms
5818 # These may affect some typedefs
5820 cat >>confdefs.h
<<\_ACEOF
5821 #define _LARGEFILE_SOURCE 1
5825 cat >>confdefs.h
<<\_ACEOF
5826 #define _FILE_OFFSET_BITS 64
5831 # Add some code to confdefs.h so that the test for off_t works on SCO
5832 cat >> confdefs.h
<<\EOF
5838 # Type availability checks
5839 echo "$as_me:$LINENO: checking for mode_t" >&5
5840 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
5841 if test "${ac_cv_type_mode_t+set}" = set; then
5842 echo $ECHO_N "(cached) $ECHO_C" >&6
5844 cat >conftest.
$ac_ext <<_ACEOF
5847 cat confdefs.h
>>conftest.
$ac_ext
5848 cat >>conftest.
$ac_ext <<_ACEOF
5849 /* end confdefs.h. */
5850 $ac_includes_default
5856 if (sizeof (mode_t))
5862 rm -f conftest.
$ac_objext
5863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5864 (eval $ac_compile) 2>conftest.er1
5866 grep -v '^ *+' conftest.er1
>conftest.err
5868 cat conftest.err
>&5
5869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5870 (exit $ac_status); } &&
5871 { ac_try
='test -z "$ac_c_werror_flag"
5872 || test ! -s conftest.err'
5873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877 (exit $ac_status); }; } &&
5878 { ac_try
='test -s conftest.$ac_objext'
5879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5883 (exit $ac_status); }; }; then
5884 ac_cv_type_mode_t
=yes
5886 echo "$as_me: failed program was:" >&5
5887 sed 's/^/| /' conftest.
$ac_ext >&5
5889 ac_cv_type_mode_t
=no
5891 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5893 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
5894 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
5895 if test $ac_cv_type_mode_t = yes; then
5899 cat >>confdefs.h
<<_ACEOF
5905 echo "$as_me:$LINENO: checking for off_t" >&5
5906 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5907 if test "${ac_cv_type_off_t+set}" = set; then
5908 echo $ECHO_N "(cached) $ECHO_C" >&6
5910 cat >conftest.
$ac_ext <<_ACEOF
5913 cat confdefs.h
>>conftest.
$ac_ext
5914 cat >>conftest.
$ac_ext <<_ACEOF
5915 /* end confdefs.h. */
5916 $ac_includes_default
5928 rm -f conftest.
$ac_objext
5929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5930 (eval $ac_compile) 2>conftest.er1
5932 grep -v '^ *+' conftest.er1
>conftest.err
5934 cat conftest.err
>&5
5935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936 (exit $ac_status); } &&
5937 { ac_try
='test -z "$ac_c_werror_flag"
5938 || test ! -s conftest.err'
5939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943 (exit $ac_status); }; } &&
5944 { ac_try
='test -s conftest.$ac_objext'
5945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949 (exit $ac_status); }; }; then
5950 ac_cv_type_off_t
=yes
5952 echo "$as_me: failed program was:" >&5
5953 sed 's/^/| /' conftest.
$ac_ext >&5
5957 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5959 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5960 echo "${ECHO_T}$ac_cv_type_off_t" >&6
5961 if test $ac_cv_type_off_t = yes; then
5965 cat >>confdefs.h
<<_ACEOF
5971 echo "$as_me:$LINENO: checking for pid_t" >&5
5972 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
5973 if test "${ac_cv_type_pid_t+set}" = set; then
5974 echo $ECHO_N "(cached) $ECHO_C" >&6
5976 cat >conftest.
$ac_ext <<_ACEOF
5979 cat confdefs.h
>>conftest.
$ac_ext
5980 cat >>conftest.
$ac_ext <<_ACEOF
5981 /* end confdefs.h. */
5982 $ac_includes_default
5994 rm -f conftest.
$ac_objext
5995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5996 (eval $ac_compile) 2>conftest.er1
5998 grep -v '^ *+' conftest.er1
>conftest.err
6000 cat conftest.err
>&5
6001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002 (exit $ac_status); } &&
6003 { ac_try
='test -z "$ac_c_werror_flag"
6004 || test ! -s conftest.err'
6005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6009 (exit $ac_status); }; } &&
6010 { ac_try
='test -s conftest.$ac_objext'
6011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015 (exit $ac_status); }; }; then
6016 ac_cv_type_pid_t
=yes
6018 echo "$as_me: failed program was:" >&5
6019 sed 's/^/| /' conftest.
$ac_ext >&5
6023 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6025 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6026 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
6027 if test $ac_cv_type_pid_t = yes; then
6031 cat >>confdefs.h
<<_ACEOF
6037 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6038 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6039 if test "${ac_cv_type_signal+set}" = set; then
6040 echo $ECHO_N "(cached) $ECHO_C" >&6
6042 cat >conftest.
$ac_ext <<_ACEOF
6045 cat confdefs.h
>>conftest.
$ac_ext
6046 cat >>conftest.
$ac_ext <<_ACEOF
6047 /* end confdefs.h. */
6048 #include <sys/types.h>
6054 extern "C" void (*signal (int, void (*)(int)))(int);
6056 void (*signal ()) ();
6067 rm -f conftest.
$ac_objext
6068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6069 (eval $ac_compile) 2>conftest.er1
6071 grep -v '^ *+' conftest.er1
>conftest.err
6073 cat conftest.err
>&5
6074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6075 (exit $ac_status); } &&
6076 { ac_try
='test -z "$ac_c_werror_flag"
6077 || test ! -s conftest.err'
6078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6082 (exit $ac_status); }; } &&
6083 { ac_try
='test -s conftest.$ac_objext'
6084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6088 (exit $ac_status); }; }; then
6089 ac_cv_type_signal
=void
6091 echo "$as_me: failed program was:" >&5
6092 sed 's/^/| /' conftest.
$ac_ext >&5
6094 ac_cv_type_signal
=int
6096 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6098 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6099 echo "${ECHO_T}$ac_cv_type_signal" >&6
6101 cat >>confdefs.h
<<_ACEOF
6102 #define RETSIGTYPE $ac_cv_type_signal
6106 echo "$as_me:$LINENO: checking for size_t" >&5
6107 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6108 if test "${ac_cv_type_size_t+set}" = set; then
6109 echo $ECHO_N "(cached) $ECHO_C" >&6
6111 cat >conftest.
$ac_ext <<_ACEOF
6114 cat confdefs.h
>>conftest.
$ac_ext
6115 cat >>conftest.
$ac_ext <<_ACEOF
6116 /* end confdefs.h. */
6117 $ac_includes_default
6123 if (sizeof (size_t))
6129 rm -f conftest.
$ac_objext
6130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6131 (eval $ac_compile) 2>conftest.er1
6133 grep -v '^ *+' conftest.er1
>conftest.err
6135 cat conftest.err
>&5
6136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6137 (exit $ac_status); } &&
6138 { ac_try
='test -z "$ac_c_werror_flag"
6139 || test ! -s conftest.err'
6140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144 (exit $ac_status); }; } &&
6145 { ac_try
='test -s conftest.$ac_objext'
6146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150 (exit $ac_status); }; }; then
6151 ac_cv_type_size_t
=yes
6153 echo "$as_me: failed program was:" >&5
6154 sed 's/^/| /' conftest.
$ac_ext >&5
6156 ac_cv_type_size_t
=no
6158 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6160 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6161 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6162 if test $ac_cv_type_size_t = yes; then
6166 cat >>confdefs.h
<<_ACEOF
6167 #define size_t unsigned
6172 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6173 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
6174 if test "${ac_cv_type_uid_t+set}" = set; then
6175 echo $ECHO_N "(cached) $ECHO_C" >&6
6177 cat >conftest.
$ac_ext <<_ACEOF
6180 cat confdefs.h
>>conftest.
$ac_ext
6181 cat >>conftest.
$ac_ext <<_ACEOF
6182 /* end confdefs.h. */
6183 #include <sys/types.h>
6186 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6187 $EGREP "uid_t" >/dev
/null
2>&1; then
6188 ac_cv_type_uid_t
=yes
6195 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
6196 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
6197 if test $ac_cv_type_uid_t = no
; then
6199 cat >>confdefs.h
<<\_ACEOF
6204 cat >>confdefs.h
<<\_ACEOF
6210 echo "$as_me:$LINENO: checking for ssize_t" >&5
6211 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
6212 if test "${ac_cv_type_ssize_t+set}" = set; then
6213 echo $ECHO_N "(cached) $ECHO_C" >&6
6215 cat >conftest.
$ac_ext <<_ACEOF
6218 cat confdefs.h
>>conftest.
$ac_ext
6219 cat >>conftest.
$ac_ext <<_ACEOF
6220 /* end confdefs.h. */
6221 $ac_includes_default
6227 if (sizeof (ssize_t))
6233 rm -f conftest.
$ac_objext
6234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6235 (eval $ac_compile) 2>conftest.er1
6237 grep -v '^ *+' conftest.er1
>conftest.err
6239 cat conftest.err
>&5
6240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6241 (exit $ac_status); } &&
6242 { ac_try
='test -z "$ac_c_werror_flag"
6243 || test ! -s conftest.err'
6244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6248 (exit $ac_status); }; } &&
6249 { ac_try
='test -s conftest.$ac_objext'
6250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6254 (exit $ac_status); }; }; then
6255 ac_cv_type_ssize_t
=yes
6257 echo "$as_me: failed program was:" >&5
6258 sed 's/^/| /' conftest.
$ac_ext >&5
6260 ac_cv_type_ssize_t
=no
6262 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6264 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
6265 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
6266 if test $ac_cv_type_ssize_t = yes; then
6268 cat >>confdefs.h
<<\_ACEOF
6269 #define HAVE_SSIZE_T 1
6275 # Sizes of various common basic types
6276 # ANSI C requires sizeof(char) == 1, so no need to check it
6277 echo "$as_me:$LINENO: checking for int" >&5
6278 echo $ECHO_N "checking for int... $ECHO_C" >&6
6279 if test "${ac_cv_type_int+set}" = set; then
6280 echo $ECHO_N "(cached) $ECHO_C" >&6
6282 cat >conftest.
$ac_ext <<_ACEOF
6285 cat confdefs.h
>>conftest.
$ac_ext
6286 cat >>conftest.
$ac_ext <<_ACEOF
6287 /* end confdefs.h. */
6288 $ac_includes_default
6300 rm -f conftest.
$ac_objext
6301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6302 (eval $ac_compile) 2>conftest.er1
6304 grep -v '^ *+' conftest.er1
>conftest.err
6306 cat conftest.err
>&5
6307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308 (exit $ac_status); } &&
6309 { ac_try
='test -z "$ac_c_werror_flag"
6310 || test ! -s conftest.err'
6311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6315 (exit $ac_status); }; } &&
6316 { ac_try
='test -s conftest.$ac_objext'
6317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321 (exit $ac_status); }; }; then
6324 echo "$as_me: failed program was:" >&5
6325 sed 's/^/| /' conftest.
$ac_ext >&5
6329 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6331 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
6332 echo "${ECHO_T}$ac_cv_type_int" >&6
6334 echo "$as_me:$LINENO: checking size of int" >&5
6335 echo $ECHO_N "checking size of int... $ECHO_C" >&6
6336 if test "${ac_cv_sizeof_int+set}" = set; then
6337 echo $ECHO_N "(cached) $ECHO_C" >&6
6339 if test "$ac_cv_type_int" = yes; then
6340 # The cast to unsigned long works around a bug in the HP C Compiler
6341 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6342 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6343 # This bug is HP SR number 8606223364.
6344 if test "$cross_compiling" = yes; then
6345 # Depending upon the size, compute the lo and hi bounds.
6346 cat >conftest.
$ac_ext <<_ACEOF
6349 cat confdefs.h
>>conftest.
$ac_ext
6350 cat >>conftest.
$ac_ext <<_ACEOF
6351 /* end confdefs.h. */
6352 $ac_includes_default
6356 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
6363 rm -f conftest.
$ac_objext
6364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6365 (eval $ac_compile) 2>conftest.er1
6367 grep -v '^ *+' conftest.er1
>conftest.err
6369 cat conftest.err
>&5
6370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6371 (exit $ac_status); } &&
6372 { ac_try
='test -z "$ac_c_werror_flag"
6373 || test ! -s conftest.err'
6374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6378 (exit $ac_status); }; } &&
6379 { ac_try
='test -s conftest.$ac_objext'
6380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6384 (exit $ac_status); }; }; then
6387 cat >conftest.
$ac_ext <<_ACEOF
6390 cat confdefs.h
>>conftest.
$ac_ext
6391 cat >>conftest.
$ac_ext <<_ACEOF
6392 /* end confdefs.h. */
6393 $ac_includes_default
6397 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6404 rm -f conftest.
$ac_objext
6405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6406 (eval $ac_compile) 2>conftest.er1
6408 grep -v '^ *+' conftest.er1
>conftest.err
6410 cat conftest.err
>&5
6411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6412 (exit $ac_status); } &&
6413 { ac_try
='test -z "$ac_c_werror_flag"
6414 || test ! -s conftest.err'
6415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419 (exit $ac_status); }; } &&
6420 { ac_try
='test -s conftest.$ac_objext'
6421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425 (exit $ac_status); }; }; then
6426 ac_hi
=$ac_mid; break
6428 echo "$as_me: failed program was:" >&5
6429 sed 's/^/| /' conftest.
$ac_ext >&5
6431 ac_lo
=`expr $ac_mid + 1`
6432 if test $ac_lo -le $ac_mid; then
6436 ac_mid
=`expr 2 '*' $ac_mid + 1`
6438 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6441 echo "$as_me: failed program was:" >&5
6442 sed 's/^/| /' conftest.
$ac_ext >&5
6444 cat >conftest.
$ac_ext <<_ACEOF
6447 cat confdefs.h
>>conftest.
$ac_ext
6448 cat >>conftest.
$ac_ext <<_ACEOF
6449 /* end confdefs.h. */
6450 $ac_includes_default
6454 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
6461 rm -f conftest.
$ac_objext
6462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6463 (eval $ac_compile) 2>conftest.er1
6465 grep -v '^ *+' conftest.er1
>conftest.err
6467 cat conftest.err
>&5
6468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6469 (exit $ac_status); } &&
6470 { ac_try
='test -z "$ac_c_werror_flag"
6471 || test ! -s conftest.err'
6472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6476 (exit $ac_status); }; } &&
6477 { ac_try
='test -s conftest.$ac_objext'
6478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6482 (exit $ac_status); }; }; then
6485 cat >conftest.
$ac_ext <<_ACEOF
6488 cat confdefs.h
>>conftest.
$ac_ext
6489 cat >>conftest.
$ac_ext <<_ACEOF
6490 /* end confdefs.h. */
6491 $ac_includes_default
6495 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
6502 rm -f conftest.
$ac_objext
6503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6504 (eval $ac_compile) 2>conftest.er1
6506 grep -v '^ *+' conftest.er1
>conftest.err
6508 cat conftest.err
>&5
6509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6510 (exit $ac_status); } &&
6511 { ac_try
='test -z "$ac_c_werror_flag"
6512 || test ! -s conftest.err'
6513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6517 (exit $ac_status); }; } &&
6518 { ac_try
='test -s conftest.$ac_objext'
6519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6523 (exit $ac_status); }; }; then
6524 ac_lo
=$ac_mid; break
6526 echo "$as_me: failed program was:" >&5
6527 sed 's/^/| /' conftest.
$ac_ext >&5
6529 ac_hi
=`expr '(' $ac_mid ')' - 1`
6530 if test $ac_mid -le $ac_hi; then
6534 ac_mid
=`expr 2 '*' $ac_mid`
6536 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6539 echo "$as_me: failed program was:" >&5
6540 sed 's/^/| /' conftest.
$ac_ext >&5
6544 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6546 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6547 # Binary search between lo and hi bounds.
6548 while test "x$ac_lo" != "x$ac_hi"; do
6549 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6550 cat >conftest.
$ac_ext <<_ACEOF
6553 cat confdefs.h
>>conftest.
$ac_ext
6554 cat >>conftest.
$ac_ext <<_ACEOF
6555 /* end confdefs.h. */
6556 $ac_includes_default
6560 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6567 rm -f conftest.
$ac_objext
6568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6569 (eval $ac_compile) 2>conftest.er1
6571 grep -v '^ *+' conftest.er1
>conftest.err
6573 cat conftest.err
>&5
6574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6575 (exit $ac_status); } &&
6576 { ac_try
='test -z "$ac_c_werror_flag"
6577 || test ! -s conftest.err'
6578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6582 (exit $ac_status); }; } &&
6583 { ac_try
='test -s conftest.$ac_objext'
6584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6588 (exit $ac_status); }; }; then
6591 echo "$as_me: failed program was:" >&5
6592 sed 's/^/| /' conftest.
$ac_ext >&5
6594 ac_lo
=`expr '(' $ac_mid ')' + 1`
6596 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6599 ?
*) ac_cv_sizeof_int
=$ac_lo;;
6600 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
6601 See \`config.log' for more details." >&5
6602 echo "$as_me: error: cannot compute sizeof (int), 77
6603 See \`config.log' for more details." >&2;}
6604 { (exit 1); exit 1; }; } ;;
6607 if test "$cross_compiling" = yes; then
6608 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6609 See \`config.log' for more details." >&5
6610 echo "$as_me: error: cannot run test program while cross compiling
6611 See \`config.log' for more details." >&2;}
6612 { (exit 1); exit 1; }; }
6614 cat >conftest.
$ac_ext <<_ACEOF
6617 cat confdefs.h
>>conftest.
$ac_ext
6618 cat >>conftest.
$ac_ext <<_ACEOF
6619 /* end confdefs.h. */
6620 $ac_includes_default
6621 long longval () { return (long) (sizeof (int)); }
6622 unsigned long ulongval () { return (long) (sizeof (int)); }
6629 FILE *f = fopen ("conftest.val", "w");
6632 if (((long) (sizeof (int))) < 0)
6634 long i = longval ();
6635 if (i != ((long) (sizeof (int))))
6637 fprintf (f, "%ld\n", i);
6641 unsigned long i = ulongval ();
6642 if (i != ((long) (sizeof (int))))
6644 fprintf (f, "%lu\n", i);
6646 exit (ferror (f) || fclose (f) != 0);
6652 rm -f conftest
$ac_exeext
6653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6654 (eval $ac_link) 2>&5
6656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6657 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6662 (exit $ac_status); }; }; then
6663 ac_cv_sizeof_int
=`cat conftest.val`
6665 echo "$as_me: program exited with status $ac_status" >&5
6666 echo "$as_me: failed program was:" >&5
6667 sed 's/^/| /' conftest.
$ac_ext >&5
6670 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
6671 See \`config.log' for more details." >&5
6672 echo "$as_me: error: cannot compute sizeof (int), 77
6673 See \`config.log' for more details." >&2;}
6674 { (exit 1); exit 1; }; }
6676 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6684 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6685 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
6686 cat >>confdefs.h
<<_ACEOF
6687 #define SIZEOF_INT $ac_cv_sizeof_int
6691 echo "$as_me:$LINENO: checking for long" >&5
6692 echo $ECHO_N "checking for long... $ECHO_C" >&6
6693 if test "${ac_cv_type_long+set}" = set; then
6694 echo $ECHO_N "(cached) $ECHO_C" >&6
6696 cat >conftest.
$ac_ext <<_ACEOF
6699 cat confdefs.h
>>conftest.
$ac_ext
6700 cat >>conftest.
$ac_ext <<_ACEOF
6701 /* end confdefs.h. */
6702 $ac_includes_default
6714 rm -f conftest.
$ac_objext
6715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6716 (eval $ac_compile) 2>conftest.er1
6718 grep -v '^ *+' conftest.er1
>conftest.err
6720 cat conftest.err
>&5
6721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6722 (exit $ac_status); } &&
6723 { ac_try
='test -z "$ac_c_werror_flag"
6724 || test ! -s conftest.err'
6725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6729 (exit $ac_status); }; } &&
6730 { ac_try
='test -s conftest.$ac_objext'
6731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6735 (exit $ac_status); }; }; then
6738 echo "$as_me: failed program was:" >&5
6739 sed 's/^/| /' conftest.
$ac_ext >&5
6743 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6745 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6746 echo "${ECHO_T}$ac_cv_type_long" >&6
6748 echo "$as_me:$LINENO: checking size of long" >&5
6749 echo $ECHO_N "checking size of long... $ECHO_C" >&6
6750 if test "${ac_cv_sizeof_long+set}" = set; then
6751 echo $ECHO_N "(cached) $ECHO_C" >&6
6753 if test "$ac_cv_type_long" = yes; then
6754 # The cast to unsigned long works around a bug in the HP C Compiler
6755 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6756 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6757 # This bug is HP SR number 8606223364.
6758 if test "$cross_compiling" = yes; then
6759 # Depending upon the size, compute the lo and hi bounds.
6760 cat >conftest.
$ac_ext <<_ACEOF
6763 cat confdefs.h
>>conftest.
$ac_ext
6764 cat >>conftest.
$ac_ext <<_ACEOF
6765 /* end confdefs.h. */
6766 $ac_includes_default
6770 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
6777 rm -f conftest.
$ac_objext
6778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6779 (eval $ac_compile) 2>conftest.er1
6781 grep -v '^ *+' conftest.er1
>conftest.err
6783 cat conftest.err
>&5
6784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6785 (exit $ac_status); } &&
6786 { ac_try
='test -z "$ac_c_werror_flag"
6787 || test ! -s conftest.err'
6788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6792 (exit $ac_status); }; } &&
6793 { ac_try
='test -s conftest.$ac_objext'
6794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6798 (exit $ac_status); }; }; then
6801 cat >conftest.
$ac_ext <<_ACEOF
6804 cat confdefs.h
>>conftest.
$ac_ext
6805 cat >>conftest.
$ac_ext <<_ACEOF
6806 /* end confdefs.h. */
6807 $ac_includes_default
6811 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6818 rm -f conftest.
$ac_objext
6819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6820 (eval $ac_compile) 2>conftest.er1
6822 grep -v '^ *+' conftest.er1
>conftest.err
6824 cat conftest.err
>&5
6825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6826 (exit $ac_status); } &&
6827 { ac_try
='test -z "$ac_c_werror_flag"
6828 || test ! -s conftest.err'
6829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6833 (exit $ac_status); }; } &&
6834 { ac_try
='test -s conftest.$ac_objext'
6835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6839 (exit $ac_status); }; }; then
6840 ac_hi
=$ac_mid; break
6842 echo "$as_me: failed program was:" >&5
6843 sed 's/^/| /' conftest.
$ac_ext >&5
6845 ac_lo
=`expr $ac_mid + 1`
6846 if test $ac_lo -le $ac_mid; then
6850 ac_mid
=`expr 2 '*' $ac_mid + 1`
6852 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6855 echo "$as_me: failed program was:" >&5
6856 sed 's/^/| /' conftest.
$ac_ext >&5
6858 cat >conftest.
$ac_ext <<_ACEOF
6861 cat confdefs.h
>>conftest.
$ac_ext
6862 cat >>conftest.
$ac_ext <<_ACEOF
6863 /* end confdefs.h. */
6864 $ac_includes_default
6868 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
6875 rm -f conftest.
$ac_objext
6876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6877 (eval $ac_compile) 2>conftest.er1
6879 grep -v '^ *+' conftest.er1
>conftest.err
6881 cat conftest.err
>&5
6882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6883 (exit $ac_status); } &&
6884 { ac_try
='test -z "$ac_c_werror_flag"
6885 || test ! -s conftest.err'
6886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6890 (exit $ac_status); }; } &&
6891 { ac_try
='test -s conftest.$ac_objext'
6892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896 (exit $ac_status); }; }; then
6899 cat >conftest.
$ac_ext <<_ACEOF
6902 cat confdefs.h
>>conftest.
$ac_ext
6903 cat >>conftest.
$ac_ext <<_ACEOF
6904 /* end confdefs.h. */
6905 $ac_includes_default
6909 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
6916 rm -f conftest.
$ac_objext
6917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6918 (eval $ac_compile) 2>conftest.er1
6920 grep -v '^ *+' conftest.er1
>conftest.err
6922 cat conftest.err
>&5
6923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6924 (exit $ac_status); } &&
6925 { ac_try
='test -z "$ac_c_werror_flag"
6926 || test ! -s conftest.err'
6927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6931 (exit $ac_status); }; } &&
6932 { ac_try
='test -s conftest.$ac_objext'
6933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6937 (exit $ac_status); }; }; then
6938 ac_lo
=$ac_mid; break
6940 echo "$as_me: failed program was:" >&5
6941 sed 's/^/| /' conftest.
$ac_ext >&5
6943 ac_hi
=`expr '(' $ac_mid ')' - 1`
6944 if test $ac_mid -le $ac_hi; then
6948 ac_mid
=`expr 2 '*' $ac_mid`
6950 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6953 echo "$as_me: failed program was:" >&5
6954 sed 's/^/| /' conftest.
$ac_ext >&5
6958 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6960 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6961 # Binary search between lo and hi bounds.
6962 while test "x$ac_lo" != "x$ac_hi"; do
6963 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6964 cat >conftest.
$ac_ext <<_ACEOF
6967 cat confdefs.h
>>conftest.
$ac_ext
6968 cat >>conftest.
$ac_ext <<_ACEOF
6969 /* end confdefs.h. */
6970 $ac_includes_default
6974 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6981 rm -f conftest.
$ac_objext
6982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6983 (eval $ac_compile) 2>conftest.er1
6985 grep -v '^ *+' conftest.er1
>conftest.err
6987 cat conftest.err
>&5
6988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6989 (exit $ac_status); } &&
6990 { ac_try
='test -z "$ac_c_werror_flag"
6991 || test ! -s conftest.err'
6992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6996 (exit $ac_status); }; } &&
6997 { ac_try
='test -s conftest.$ac_objext'
6998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7002 (exit $ac_status); }; }; then
7005 echo "$as_me: failed program was:" >&5
7006 sed 's/^/| /' conftest.
$ac_ext >&5
7008 ac_lo
=`expr '(' $ac_mid ')' + 1`
7010 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7013 ?
*) ac_cv_sizeof_long
=$ac_lo;;
7014 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7015 See \`config.log' for more details." >&5
7016 echo "$as_me: error: cannot compute sizeof (long), 77
7017 See \`config.log' for more details." >&2;}
7018 { (exit 1); exit 1; }; } ;;
7021 if test "$cross_compiling" = yes; then
7022 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7023 See \`config.log' for more details." >&5
7024 echo "$as_me: error: cannot run test program while cross compiling
7025 See \`config.log' for more details." >&2;}
7026 { (exit 1); exit 1; }; }
7028 cat >conftest.
$ac_ext <<_ACEOF
7031 cat confdefs.h
>>conftest.
$ac_ext
7032 cat >>conftest.
$ac_ext <<_ACEOF
7033 /* end confdefs.h. */
7034 $ac_includes_default
7035 long longval () { return (long) (sizeof (long)); }
7036 unsigned long ulongval () { return (long) (sizeof (long)); }
7043 FILE *f = fopen ("conftest.val", "w");
7046 if (((long) (sizeof (long))) < 0)
7048 long i = longval ();
7049 if (i != ((long) (sizeof (long))))
7051 fprintf (f, "%ld\n", i);
7055 unsigned long i = ulongval ();
7056 if (i != ((long) (sizeof (long))))
7058 fprintf (f, "%lu\n", i);
7060 exit (ferror (f) || fclose (f) != 0);
7066 rm -f conftest
$ac_exeext
7067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7068 (eval $ac_link) 2>&5
7070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7071 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7076 (exit $ac_status); }; }; then
7077 ac_cv_sizeof_long
=`cat conftest.val`
7079 echo "$as_me: program exited with status $ac_status" >&5
7080 echo "$as_me: failed program was:" >&5
7081 sed 's/^/| /' conftest.
$ac_ext >&5
7084 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7085 See \`config.log' for more details." >&5
7086 echo "$as_me: error: cannot compute sizeof (long), 77
7087 See \`config.log' for more details." >&2;}
7088 { (exit 1); exit 1; }; }
7090 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7098 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7099 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7100 cat >>confdefs.h
<<_ACEOF
7101 #define SIZEOF_LONG $ac_cv_sizeof_long
7105 echo "$as_me:$LINENO: checking for void *" >&5
7106 echo $ECHO_N "checking for void *... $ECHO_C" >&6
7107 if test "${ac_cv_type_void_p+set}" = set; then
7108 echo $ECHO_N "(cached) $ECHO_C" >&6
7110 cat >conftest.
$ac_ext <<_ACEOF
7113 cat confdefs.h
>>conftest.
$ac_ext
7114 cat >>conftest.
$ac_ext <<_ACEOF
7115 /* end confdefs.h. */
7116 $ac_includes_default
7122 if (sizeof (void *))
7128 rm -f conftest.
$ac_objext
7129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7130 (eval $ac_compile) 2>conftest.er1
7132 grep -v '^ *+' conftest.er1
>conftest.err
7134 cat conftest.err
>&5
7135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7136 (exit $ac_status); } &&
7137 { ac_try
='test -z "$ac_c_werror_flag"
7138 || test ! -s conftest.err'
7139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7143 (exit $ac_status); }; } &&
7144 { ac_try
='test -s conftest.$ac_objext'
7145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7149 (exit $ac_status); }; }; then
7150 ac_cv_type_void_p
=yes
7152 echo "$as_me: failed program was:" >&5
7153 sed 's/^/| /' conftest.
$ac_ext >&5
7155 ac_cv_type_void_p
=no
7157 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7159 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
7160 echo "${ECHO_T}$ac_cv_type_void_p" >&6
7162 echo "$as_me:$LINENO: checking size of void *" >&5
7163 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
7164 if test "${ac_cv_sizeof_void_p+set}" = set; then
7165 echo $ECHO_N "(cached) $ECHO_C" >&6
7167 if test "$ac_cv_type_void_p" = yes; then
7168 # The cast to unsigned long works around a bug in the HP C Compiler
7169 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7170 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7171 # This bug is HP SR number 8606223364.
7172 if test "$cross_compiling" = yes; then
7173 # Depending upon the size, compute the lo and hi bounds.
7174 cat >conftest.
$ac_ext <<_ACEOF
7177 cat confdefs.h
>>conftest.
$ac_ext
7178 cat >>conftest.
$ac_ext <<_ACEOF
7179 /* end confdefs.h. */
7180 $ac_includes_default
7184 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
7191 rm -f conftest.
$ac_objext
7192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7193 (eval $ac_compile) 2>conftest.er1
7195 grep -v '^ *+' conftest.er1
>conftest.err
7197 cat conftest.err
>&5
7198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7199 (exit $ac_status); } &&
7200 { ac_try
='test -z "$ac_c_werror_flag"
7201 || test ! -s conftest.err'
7202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7206 (exit $ac_status); }; } &&
7207 { ac_try
='test -s conftest.$ac_objext'
7208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7212 (exit $ac_status); }; }; then
7215 cat >conftest.
$ac_ext <<_ACEOF
7218 cat confdefs.h
>>conftest.
$ac_ext
7219 cat >>conftest.
$ac_ext <<_ACEOF
7220 /* end confdefs.h. */
7221 $ac_includes_default
7225 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
7232 rm -f conftest.
$ac_objext
7233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7234 (eval $ac_compile) 2>conftest.er1
7236 grep -v '^ *+' conftest.er1
>conftest.err
7238 cat conftest.err
>&5
7239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7240 (exit $ac_status); } &&
7241 { ac_try
='test -z "$ac_c_werror_flag"
7242 || test ! -s conftest.err'
7243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7247 (exit $ac_status); }; } &&
7248 { ac_try
='test -s conftest.$ac_objext'
7249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7253 (exit $ac_status); }; }; then
7254 ac_hi
=$ac_mid; break
7256 echo "$as_me: failed program was:" >&5
7257 sed 's/^/| /' conftest.
$ac_ext >&5
7259 ac_lo
=`expr $ac_mid + 1`
7260 if test $ac_lo -le $ac_mid; then
7264 ac_mid
=`expr 2 '*' $ac_mid + 1`
7266 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7269 echo "$as_me: failed program was:" >&5
7270 sed 's/^/| /' conftest.
$ac_ext >&5
7272 cat >conftest.
$ac_ext <<_ACEOF
7275 cat confdefs.h
>>conftest.
$ac_ext
7276 cat >>conftest.
$ac_ext <<_ACEOF
7277 /* end confdefs.h. */
7278 $ac_includes_default
7282 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
7289 rm -f conftest.
$ac_objext
7290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7291 (eval $ac_compile) 2>conftest.er1
7293 grep -v '^ *+' conftest.er1
>conftest.err
7295 cat conftest.err
>&5
7296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7297 (exit $ac_status); } &&
7298 { ac_try
='test -z "$ac_c_werror_flag"
7299 || test ! -s conftest.err'
7300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7304 (exit $ac_status); }; } &&
7305 { ac_try
='test -s conftest.$ac_objext'
7306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7310 (exit $ac_status); }; }; then
7313 cat >conftest.
$ac_ext <<_ACEOF
7316 cat confdefs.h
>>conftest.
$ac_ext
7317 cat >>conftest.
$ac_ext <<_ACEOF
7318 /* end confdefs.h. */
7319 $ac_includes_default
7323 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
7330 rm -f conftest.
$ac_objext
7331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7332 (eval $ac_compile) 2>conftest.er1
7334 grep -v '^ *+' conftest.er1
>conftest.err
7336 cat conftest.err
>&5
7337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7338 (exit $ac_status); } &&
7339 { ac_try
='test -z "$ac_c_werror_flag"
7340 || test ! -s conftest.err'
7341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7345 (exit $ac_status); }; } &&
7346 { ac_try
='test -s conftest.$ac_objext'
7347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7351 (exit $ac_status); }; }; then
7352 ac_lo
=$ac_mid; break
7354 echo "$as_me: failed program was:" >&5
7355 sed 's/^/| /' conftest.
$ac_ext >&5
7357 ac_hi
=`expr '(' $ac_mid ')' - 1`
7358 if test $ac_mid -le $ac_hi; then
7362 ac_mid
=`expr 2 '*' $ac_mid`
7364 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7367 echo "$as_me: failed program was:" >&5
7368 sed 's/^/| /' conftest.
$ac_ext >&5
7372 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7374 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7375 # Binary search between lo and hi bounds.
7376 while test "x$ac_lo" != "x$ac_hi"; do
7377 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7378 cat >conftest.
$ac_ext <<_ACEOF
7381 cat confdefs.h
>>conftest.
$ac_ext
7382 cat >>conftest.
$ac_ext <<_ACEOF
7383 /* end confdefs.h. */
7384 $ac_includes_default
7388 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
7395 rm -f conftest.
$ac_objext
7396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7397 (eval $ac_compile) 2>conftest.er1
7399 grep -v '^ *+' conftest.er1
>conftest.err
7401 cat conftest.err
>&5
7402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7403 (exit $ac_status); } &&
7404 { ac_try
='test -z "$ac_c_werror_flag"
7405 || test ! -s conftest.err'
7406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7410 (exit $ac_status); }; } &&
7411 { ac_try
='test -s conftest.$ac_objext'
7412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7416 (exit $ac_status); }; }; then
7419 echo "$as_me: failed program was:" >&5
7420 sed 's/^/| /' conftest.
$ac_ext >&5
7422 ac_lo
=`expr '(' $ac_mid ')' + 1`
7424 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7427 ?
*) ac_cv_sizeof_void_p
=$ac_lo;;
7428 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
7429 See \`config.log' for more details." >&5
7430 echo "$as_me: error: cannot compute sizeof (void *), 77
7431 See \`config.log' for more details." >&2;}
7432 { (exit 1); exit 1; }; } ;;
7435 if test "$cross_compiling" = yes; then
7436 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7437 See \`config.log' for more details." >&5
7438 echo "$as_me: error: cannot run test program while cross compiling
7439 See \`config.log' for more details." >&2;}
7440 { (exit 1); exit 1; }; }
7442 cat >conftest.
$ac_ext <<_ACEOF
7445 cat confdefs.h
>>conftest.
$ac_ext
7446 cat >>conftest.
$ac_ext <<_ACEOF
7447 /* end confdefs.h. */
7448 $ac_includes_default
7449 long longval () { return (long) (sizeof (void *)); }
7450 unsigned long ulongval () { return (long) (sizeof (void *)); }
7457 FILE *f = fopen ("conftest.val", "w");
7460 if (((long) (sizeof (void *))) < 0)
7462 long i = longval ();
7463 if (i != ((long) (sizeof (void *))))
7465 fprintf (f, "%ld\n", i);
7469 unsigned long i = ulongval ();
7470 if (i != ((long) (sizeof (void *))))
7472 fprintf (f, "%lu\n", i);
7474 exit (ferror (f) || fclose (f) != 0);
7480 rm -f conftest
$ac_exeext
7481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7482 (eval $ac_link) 2>&5
7484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7485 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7490 (exit $ac_status); }; }; then
7491 ac_cv_sizeof_void_p
=`cat conftest.val`
7493 echo "$as_me: program exited with status $ac_status" >&5
7494 echo "$as_me: failed program was:" >&5
7495 sed 's/^/| /' conftest.
$ac_ext >&5
7498 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
7499 See \`config.log' for more details." >&5
7500 echo "$as_me: error: cannot compute sizeof (void *), 77
7501 See \`config.log' for more details." >&2;}
7502 { (exit 1); exit 1; }; }
7504 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7509 ac_cv_sizeof_void_p
=0
7512 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
7513 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
7514 cat >>confdefs.h
<<_ACEOF
7515 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
7519 echo "$as_me:$LINENO: checking for short" >&5
7520 echo $ECHO_N "checking for short... $ECHO_C" >&6
7521 if test "${ac_cv_type_short+set}" = set; then
7522 echo $ECHO_N "(cached) $ECHO_C" >&6
7524 cat >conftest.
$ac_ext <<_ACEOF
7527 cat confdefs.h
>>conftest.
$ac_ext
7528 cat >>conftest.
$ac_ext <<_ACEOF
7529 /* end confdefs.h. */
7530 $ac_includes_default
7542 rm -f conftest.
$ac_objext
7543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7544 (eval $ac_compile) 2>conftest.er1
7546 grep -v '^ *+' conftest.er1
>conftest.err
7548 cat conftest.err
>&5
7549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7550 (exit $ac_status); } &&
7551 { ac_try
='test -z "$ac_c_werror_flag"
7552 || test ! -s conftest.err'
7553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7557 (exit $ac_status); }; } &&
7558 { ac_try
='test -s conftest.$ac_objext'
7559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7563 (exit $ac_status); }; }; then
7564 ac_cv_type_short
=yes
7566 echo "$as_me: failed program was:" >&5
7567 sed 's/^/| /' conftest.
$ac_ext >&5
7571 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7573 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
7574 echo "${ECHO_T}$ac_cv_type_short" >&6
7576 echo "$as_me:$LINENO: checking size of short" >&5
7577 echo $ECHO_N "checking size of short... $ECHO_C" >&6
7578 if test "${ac_cv_sizeof_short+set}" = set; then
7579 echo $ECHO_N "(cached) $ECHO_C" >&6
7581 if test "$ac_cv_type_short" = yes; then
7582 # The cast to unsigned long works around a bug in the HP C Compiler
7583 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7584 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7585 # This bug is HP SR number 8606223364.
7586 if test "$cross_compiling" = yes; then
7587 # Depending upon the size, compute the lo and hi bounds.
7588 cat >conftest.
$ac_ext <<_ACEOF
7591 cat confdefs.h
>>conftest.
$ac_ext
7592 cat >>conftest.
$ac_ext <<_ACEOF
7593 /* end confdefs.h. */
7594 $ac_includes_default
7598 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
7605 rm -f conftest.
$ac_objext
7606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7607 (eval $ac_compile) 2>conftest.er1
7609 grep -v '^ *+' conftest.er1
>conftest.err
7611 cat conftest.err
>&5
7612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7613 (exit $ac_status); } &&
7614 { ac_try
='test -z "$ac_c_werror_flag"
7615 || test ! -s conftest.err'
7616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7620 (exit $ac_status); }; } &&
7621 { ac_try
='test -s conftest.$ac_objext'
7622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7626 (exit $ac_status); }; }; then
7629 cat >conftest.
$ac_ext <<_ACEOF
7632 cat confdefs.h
>>conftest.
$ac_ext
7633 cat >>conftest.
$ac_ext <<_ACEOF
7634 /* end confdefs.h. */
7635 $ac_includes_default
7639 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7646 rm -f conftest.
$ac_objext
7647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7648 (eval $ac_compile) 2>conftest.er1
7650 grep -v '^ *+' conftest.er1
>conftest.err
7652 cat conftest.err
>&5
7653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7654 (exit $ac_status); } &&
7655 { ac_try
='test -z "$ac_c_werror_flag"
7656 || test ! -s conftest.err'
7657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7661 (exit $ac_status); }; } &&
7662 { ac_try
='test -s conftest.$ac_objext'
7663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7667 (exit $ac_status); }; }; then
7668 ac_hi
=$ac_mid; break
7670 echo "$as_me: failed program was:" >&5
7671 sed 's/^/| /' conftest.
$ac_ext >&5
7673 ac_lo
=`expr $ac_mid + 1`
7674 if test $ac_lo -le $ac_mid; then
7678 ac_mid
=`expr 2 '*' $ac_mid + 1`
7680 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7683 echo "$as_me: failed program was:" >&5
7684 sed 's/^/| /' conftest.
$ac_ext >&5
7686 cat >conftest.
$ac_ext <<_ACEOF
7689 cat confdefs.h
>>conftest.
$ac_ext
7690 cat >>conftest.
$ac_ext <<_ACEOF
7691 /* end confdefs.h. */
7692 $ac_includes_default
7696 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
7703 rm -f conftest.
$ac_objext
7704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7705 (eval $ac_compile) 2>conftest.er1
7707 grep -v '^ *+' conftest.er1
>conftest.err
7709 cat conftest.err
>&5
7710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7711 (exit $ac_status); } &&
7712 { ac_try
='test -z "$ac_c_werror_flag"
7713 || test ! -s conftest.err'
7714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7718 (exit $ac_status); }; } &&
7719 { ac_try
='test -s conftest.$ac_objext'
7720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7724 (exit $ac_status); }; }; then
7727 cat >conftest.
$ac_ext <<_ACEOF
7730 cat confdefs.h
>>conftest.
$ac_ext
7731 cat >>conftest.
$ac_ext <<_ACEOF
7732 /* end confdefs.h. */
7733 $ac_includes_default
7737 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
7744 rm -f conftest.
$ac_objext
7745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7746 (eval $ac_compile) 2>conftest.er1
7748 grep -v '^ *+' conftest.er1
>conftest.err
7750 cat conftest.err
>&5
7751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7752 (exit $ac_status); } &&
7753 { ac_try
='test -z "$ac_c_werror_flag"
7754 || test ! -s conftest.err'
7755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7759 (exit $ac_status); }; } &&
7760 { ac_try
='test -s conftest.$ac_objext'
7761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7765 (exit $ac_status); }; }; then
7766 ac_lo
=$ac_mid; break
7768 echo "$as_me: failed program was:" >&5
7769 sed 's/^/| /' conftest.
$ac_ext >&5
7771 ac_hi
=`expr '(' $ac_mid ')' - 1`
7772 if test $ac_mid -le $ac_hi; then
7776 ac_mid
=`expr 2 '*' $ac_mid`
7778 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7781 echo "$as_me: failed program was:" >&5
7782 sed 's/^/| /' conftest.
$ac_ext >&5
7786 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7788 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7789 # Binary search between lo and hi bounds.
7790 while test "x$ac_lo" != "x$ac_hi"; do
7791 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7792 cat >conftest.
$ac_ext <<_ACEOF
7795 cat confdefs.h
>>conftest.
$ac_ext
7796 cat >>conftest.
$ac_ext <<_ACEOF
7797 /* end confdefs.h. */
7798 $ac_includes_default
7802 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7809 rm -f conftest.
$ac_objext
7810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7811 (eval $ac_compile) 2>conftest.er1
7813 grep -v '^ *+' conftest.er1
>conftest.err
7815 cat conftest.err
>&5
7816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7817 (exit $ac_status); } &&
7818 { ac_try
='test -z "$ac_c_werror_flag"
7819 || test ! -s conftest.err'
7820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7824 (exit $ac_status); }; } &&
7825 { ac_try
='test -s conftest.$ac_objext'
7826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7830 (exit $ac_status); }; }; then
7833 echo "$as_me: failed program was:" >&5
7834 sed 's/^/| /' conftest.
$ac_ext >&5
7836 ac_lo
=`expr '(' $ac_mid ')' + 1`
7838 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7841 ?
*) ac_cv_sizeof_short
=$ac_lo;;
7842 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7843 See \`config.log' for more details." >&5
7844 echo "$as_me: error: cannot compute sizeof (short), 77
7845 See \`config.log' for more details." >&2;}
7846 { (exit 1); exit 1; }; } ;;
7849 if test "$cross_compiling" = yes; then
7850 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7851 See \`config.log' for more details." >&5
7852 echo "$as_me: error: cannot run test program while cross compiling
7853 See \`config.log' for more details." >&2;}
7854 { (exit 1); exit 1; }; }
7856 cat >conftest.
$ac_ext <<_ACEOF
7859 cat confdefs.h
>>conftest.
$ac_ext
7860 cat >>conftest.
$ac_ext <<_ACEOF
7861 /* end confdefs.h. */
7862 $ac_includes_default
7863 long longval () { return (long) (sizeof (short)); }
7864 unsigned long ulongval () { return (long) (sizeof (short)); }
7871 FILE *f = fopen ("conftest.val", "w");
7874 if (((long) (sizeof (short))) < 0)
7876 long i = longval ();
7877 if (i != ((long) (sizeof (short))))
7879 fprintf (f, "%ld\n", i);
7883 unsigned long i = ulongval ();
7884 if (i != ((long) (sizeof (short))))
7886 fprintf (f, "%lu\n", i);
7888 exit (ferror (f) || fclose (f) != 0);
7894 rm -f conftest
$ac_exeext
7895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7896 (eval $ac_link) 2>&5
7898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7899 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7904 (exit $ac_status); }; }; then
7905 ac_cv_sizeof_short
=`cat conftest.val`
7907 echo "$as_me: program exited with status $ac_status" >&5
7908 echo "$as_me: failed program was:" >&5
7909 sed 's/^/| /' conftest.
$ac_ext >&5
7912 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7913 See \`config.log' for more details." >&5
7914 echo "$as_me: error: cannot compute sizeof (short), 77
7915 See \`config.log' for more details." >&2;}
7916 { (exit 1); exit 1; }; }
7918 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7923 ac_cv_sizeof_short
=0
7926 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
7927 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
7928 cat >>confdefs.h
<<_ACEOF
7929 #define SIZEOF_SHORT $ac_cv_sizeof_short
7933 echo "$as_me:$LINENO: checking for float" >&5
7934 echo $ECHO_N "checking for float... $ECHO_C" >&6
7935 if test "${ac_cv_type_float+set}" = set; then
7936 echo $ECHO_N "(cached) $ECHO_C" >&6
7938 cat >conftest.
$ac_ext <<_ACEOF
7941 cat confdefs.h
>>conftest.
$ac_ext
7942 cat >>conftest.
$ac_ext <<_ACEOF
7943 /* end confdefs.h. */
7944 $ac_includes_default
7956 rm -f conftest.
$ac_objext
7957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7958 (eval $ac_compile) 2>conftest.er1
7960 grep -v '^ *+' conftest.er1
>conftest.err
7962 cat conftest.err
>&5
7963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7964 (exit $ac_status); } &&
7965 { ac_try
='test -z "$ac_c_werror_flag"
7966 || test ! -s conftest.err'
7967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7971 (exit $ac_status); }; } &&
7972 { ac_try
='test -s conftest.$ac_objext'
7973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7977 (exit $ac_status); }; }; then
7978 ac_cv_type_float
=yes
7980 echo "$as_me: failed program was:" >&5
7981 sed 's/^/| /' conftest.
$ac_ext >&5
7985 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7987 echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
7988 echo "${ECHO_T}$ac_cv_type_float" >&6
7990 echo "$as_me:$LINENO: checking size of float" >&5
7991 echo $ECHO_N "checking size of float... $ECHO_C" >&6
7992 if test "${ac_cv_sizeof_float+set}" = set; then
7993 echo $ECHO_N "(cached) $ECHO_C" >&6
7995 if test "$ac_cv_type_float" = yes; then
7996 # The cast to unsigned long works around a bug in the HP C Compiler
7997 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7998 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7999 # This bug is HP SR number 8606223364.
8000 if test "$cross_compiling" = yes; then
8001 # Depending upon the size, compute the lo and hi bounds.
8002 cat >conftest.
$ac_ext <<_ACEOF
8005 cat confdefs.h
>>conftest.
$ac_ext
8006 cat >>conftest.
$ac_ext <<_ACEOF
8007 /* end confdefs.h. */
8008 $ac_includes_default
8012 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)];
8019 rm -f conftest.
$ac_objext
8020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8021 (eval $ac_compile) 2>conftest.er1
8023 grep -v '^ *+' conftest.er1
>conftest.err
8025 cat conftest.err
>&5
8026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8027 (exit $ac_status); } &&
8028 { ac_try
='test -z "$ac_c_werror_flag"
8029 || test ! -s conftest.err'
8030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8034 (exit $ac_status); }; } &&
8035 { ac_try
='test -s conftest.$ac_objext'
8036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8040 (exit $ac_status); }; }; then
8043 cat >conftest.
$ac_ext <<_ACEOF
8046 cat confdefs.h
>>conftest.
$ac_ext
8047 cat >>conftest.
$ac_ext <<_ACEOF
8048 /* end confdefs.h. */
8049 $ac_includes_default
8053 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
8060 rm -f conftest.
$ac_objext
8061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8062 (eval $ac_compile) 2>conftest.er1
8064 grep -v '^ *+' conftest.er1
>conftest.err
8066 cat conftest.err
>&5
8067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8068 (exit $ac_status); } &&
8069 { ac_try
='test -z "$ac_c_werror_flag"
8070 || test ! -s conftest.err'
8071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8075 (exit $ac_status); }; } &&
8076 { ac_try
='test -s conftest.$ac_objext'
8077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081 (exit $ac_status); }; }; then
8082 ac_hi
=$ac_mid; break
8084 echo "$as_me: failed program was:" >&5
8085 sed 's/^/| /' conftest.
$ac_ext >&5
8087 ac_lo
=`expr $ac_mid + 1`
8088 if test $ac_lo -le $ac_mid; then
8092 ac_mid
=`expr 2 '*' $ac_mid + 1`
8094 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8097 echo "$as_me: failed program was:" >&5
8098 sed 's/^/| /' conftest.
$ac_ext >&5
8100 cat >conftest.
$ac_ext <<_ACEOF
8103 cat confdefs.h
>>conftest.
$ac_ext
8104 cat >>conftest.
$ac_ext <<_ACEOF
8105 /* end confdefs.h. */
8106 $ac_includes_default
8110 static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)];
8117 rm -f conftest.
$ac_objext
8118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8119 (eval $ac_compile) 2>conftest.er1
8121 grep -v '^ *+' conftest.er1
>conftest.err
8123 cat conftest.err
>&5
8124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8125 (exit $ac_status); } &&
8126 { ac_try
='test -z "$ac_c_werror_flag"
8127 || test ! -s conftest.err'
8128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8132 (exit $ac_status); }; } &&
8133 { ac_try
='test -s conftest.$ac_objext'
8134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138 (exit $ac_status); }; }; then
8141 cat >conftest.
$ac_ext <<_ACEOF
8144 cat confdefs.h
>>conftest.
$ac_ext
8145 cat >>conftest.
$ac_ext <<_ACEOF
8146 /* end confdefs.h. */
8147 $ac_includes_default
8151 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)];
8158 rm -f conftest.
$ac_objext
8159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8160 (eval $ac_compile) 2>conftest.er1
8162 grep -v '^ *+' conftest.er1
>conftest.err
8164 cat conftest.err
>&5
8165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8166 (exit $ac_status); } &&
8167 { ac_try
='test -z "$ac_c_werror_flag"
8168 || test ! -s conftest.err'
8169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8173 (exit $ac_status); }; } &&
8174 { ac_try
='test -s conftest.$ac_objext'
8175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8179 (exit $ac_status); }; }; then
8180 ac_lo
=$ac_mid; break
8182 echo "$as_me: failed program was:" >&5
8183 sed 's/^/| /' conftest.
$ac_ext >&5
8185 ac_hi
=`expr '(' $ac_mid ')' - 1`
8186 if test $ac_mid -le $ac_hi; then
8190 ac_mid
=`expr 2 '*' $ac_mid`
8192 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8195 echo "$as_me: failed program was:" >&5
8196 sed 's/^/| /' conftest.
$ac_ext >&5
8200 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8202 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8203 # Binary search between lo and hi bounds.
8204 while test "x$ac_lo" != "x$ac_hi"; do
8205 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8206 cat >conftest.
$ac_ext <<_ACEOF
8209 cat confdefs.h
>>conftest.
$ac_ext
8210 cat >>conftest.
$ac_ext <<_ACEOF
8211 /* end confdefs.h. */
8212 $ac_includes_default
8216 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
8223 rm -f conftest.
$ac_objext
8224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8225 (eval $ac_compile) 2>conftest.er1
8227 grep -v '^ *+' conftest.er1
>conftest.err
8229 cat conftest.err
>&5
8230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8231 (exit $ac_status); } &&
8232 { ac_try
='test -z "$ac_c_werror_flag"
8233 || test ! -s conftest.err'
8234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8238 (exit $ac_status); }; } &&
8239 { ac_try
='test -s conftest.$ac_objext'
8240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8244 (exit $ac_status); }; }; then
8247 echo "$as_me: failed program was:" >&5
8248 sed 's/^/| /' conftest.
$ac_ext >&5
8250 ac_lo
=`expr '(' $ac_mid ')' + 1`
8252 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8255 ?
*) ac_cv_sizeof_float
=$ac_lo;;
8256 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
8257 See \`config.log' for more details." >&5
8258 echo "$as_me: error: cannot compute sizeof (float), 77
8259 See \`config.log' for more details." >&2;}
8260 { (exit 1); exit 1; }; } ;;
8263 if test "$cross_compiling" = yes; then
8264 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8265 See \`config.log' for more details." >&5
8266 echo "$as_me: error: cannot run test program while cross compiling
8267 See \`config.log' for more details." >&2;}
8268 { (exit 1); exit 1; }; }
8270 cat >conftest.
$ac_ext <<_ACEOF
8273 cat confdefs.h
>>conftest.
$ac_ext
8274 cat >>conftest.
$ac_ext <<_ACEOF
8275 /* end confdefs.h. */
8276 $ac_includes_default
8277 long longval () { return (long) (sizeof (float)); }
8278 unsigned long ulongval () { return (long) (sizeof (float)); }
8285 FILE *f = fopen ("conftest.val", "w");
8288 if (((long) (sizeof (float))) < 0)
8290 long i = longval ();
8291 if (i != ((long) (sizeof (float))))
8293 fprintf (f, "%ld\n", i);
8297 unsigned long i = ulongval ();
8298 if (i != ((long) (sizeof (float))))
8300 fprintf (f, "%lu\n", i);
8302 exit (ferror (f) || fclose (f) != 0);
8308 rm -f conftest
$ac_exeext
8309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8310 (eval $ac_link) 2>&5
8312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8313 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8318 (exit $ac_status); }; }; then
8319 ac_cv_sizeof_float
=`cat conftest.val`
8321 echo "$as_me: program exited with status $ac_status" >&5
8322 echo "$as_me: failed program was:" >&5
8323 sed 's/^/| /' conftest.
$ac_ext >&5
8326 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
8327 See \`config.log' for more details." >&5
8328 echo "$as_me: error: cannot compute sizeof (float), 77
8329 See \`config.log' for more details." >&2;}
8330 { (exit 1); exit 1; }; }
8332 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8337 ac_cv_sizeof_float
=0
8340 echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
8341 echo "${ECHO_T}$ac_cv_sizeof_float" >&6
8342 cat >>confdefs.h
<<_ACEOF
8343 #define SIZEOF_FLOAT $ac_cv_sizeof_float
8347 echo "$as_me:$LINENO: checking for double" >&5
8348 echo $ECHO_N "checking for double... $ECHO_C" >&6
8349 if test "${ac_cv_type_double+set}" = set; then
8350 echo $ECHO_N "(cached) $ECHO_C" >&6
8352 cat >conftest.
$ac_ext <<_ACEOF
8355 cat confdefs.h
>>conftest.
$ac_ext
8356 cat >>conftest.
$ac_ext <<_ACEOF
8357 /* end confdefs.h. */
8358 $ac_includes_default
8364 if (sizeof (double))
8370 rm -f conftest.
$ac_objext
8371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8372 (eval $ac_compile) 2>conftest.er1
8374 grep -v '^ *+' conftest.er1
>conftest.err
8376 cat conftest.err
>&5
8377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8378 (exit $ac_status); } &&
8379 { ac_try
='test -z "$ac_c_werror_flag"
8380 || test ! -s conftest.err'
8381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8385 (exit $ac_status); }; } &&
8386 { ac_try
='test -s conftest.$ac_objext'
8387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8391 (exit $ac_status); }; }; then
8392 ac_cv_type_double
=yes
8394 echo "$as_me: failed program was:" >&5
8395 sed 's/^/| /' conftest.
$ac_ext >&5
8397 ac_cv_type_double
=no
8399 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8401 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
8402 echo "${ECHO_T}$ac_cv_type_double" >&6
8404 echo "$as_me:$LINENO: checking size of double" >&5
8405 echo $ECHO_N "checking size of double... $ECHO_C" >&6
8406 if test "${ac_cv_sizeof_double+set}" = set; then
8407 echo $ECHO_N "(cached) $ECHO_C" >&6
8409 if test "$ac_cv_type_double" = yes; then
8410 # The cast to unsigned long works around a bug in the HP C Compiler
8411 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8412 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8413 # This bug is HP SR number 8606223364.
8414 if test "$cross_compiling" = yes; then
8415 # Depending upon the size, compute the lo and hi bounds.
8416 cat >conftest.
$ac_ext <<_ACEOF
8419 cat confdefs.h
>>conftest.
$ac_ext
8420 cat >>conftest.
$ac_ext <<_ACEOF
8421 /* end confdefs.h. */
8422 $ac_includes_default
8426 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
8433 rm -f conftest.
$ac_objext
8434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8435 (eval $ac_compile) 2>conftest.er1
8437 grep -v '^ *+' conftest.er1
>conftest.err
8439 cat conftest.err
>&5
8440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8441 (exit $ac_status); } &&
8442 { ac_try
='test -z "$ac_c_werror_flag"
8443 || test ! -s conftest.err'
8444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8448 (exit $ac_status); }; } &&
8449 { ac_try
='test -s conftest.$ac_objext'
8450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8454 (exit $ac_status); }; }; then
8457 cat >conftest.
$ac_ext <<_ACEOF
8460 cat confdefs.h
>>conftest.
$ac_ext
8461 cat >>conftest.
$ac_ext <<_ACEOF
8462 /* end confdefs.h. */
8463 $ac_includes_default
8467 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
8474 rm -f conftest.
$ac_objext
8475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8476 (eval $ac_compile) 2>conftest.er1
8478 grep -v '^ *+' conftest.er1
>conftest.err
8480 cat conftest.err
>&5
8481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8482 (exit $ac_status); } &&
8483 { ac_try
='test -z "$ac_c_werror_flag"
8484 || test ! -s conftest.err'
8485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8489 (exit $ac_status); }; } &&
8490 { ac_try
='test -s conftest.$ac_objext'
8491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8495 (exit $ac_status); }; }; then
8496 ac_hi
=$ac_mid; break
8498 echo "$as_me: failed program was:" >&5
8499 sed 's/^/| /' conftest.
$ac_ext >&5
8501 ac_lo
=`expr $ac_mid + 1`
8502 if test $ac_lo -le $ac_mid; then
8506 ac_mid
=`expr 2 '*' $ac_mid + 1`
8508 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8511 echo "$as_me: failed program was:" >&5
8512 sed 's/^/| /' conftest.
$ac_ext >&5
8514 cat >conftest.
$ac_ext <<_ACEOF
8517 cat confdefs.h
>>conftest.
$ac_ext
8518 cat >>conftest.
$ac_ext <<_ACEOF
8519 /* end confdefs.h. */
8520 $ac_includes_default
8524 static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
8531 rm -f conftest.
$ac_objext
8532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8533 (eval $ac_compile) 2>conftest.er1
8535 grep -v '^ *+' conftest.er1
>conftest.err
8537 cat conftest.err
>&5
8538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8539 (exit $ac_status); } &&
8540 { ac_try
='test -z "$ac_c_werror_flag"
8541 || test ! -s conftest.err'
8542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8546 (exit $ac_status); }; } &&
8547 { ac_try
='test -s conftest.$ac_objext'
8548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8552 (exit $ac_status); }; }; then
8555 cat >conftest.
$ac_ext <<_ACEOF
8558 cat confdefs.h
>>conftest.
$ac_ext
8559 cat >>conftest.
$ac_ext <<_ACEOF
8560 /* end confdefs.h. */
8561 $ac_includes_default
8565 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
8572 rm -f conftest.
$ac_objext
8573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8574 (eval $ac_compile) 2>conftest.er1
8576 grep -v '^ *+' conftest.er1
>conftest.err
8578 cat conftest.err
>&5
8579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8580 (exit $ac_status); } &&
8581 { ac_try
='test -z "$ac_c_werror_flag"
8582 || test ! -s conftest.err'
8583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587 (exit $ac_status); }; } &&
8588 { ac_try
='test -s conftest.$ac_objext'
8589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8593 (exit $ac_status); }; }; then
8594 ac_lo
=$ac_mid; break
8596 echo "$as_me: failed program was:" >&5
8597 sed 's/^/| /' conftest.
$ac_ext >&5
8599 ac_hi
=`expr '(' $ac_mid ')' - 1`
8600 if test $ac_mid -le $ac_hi; then
8604 ac_mid
=`expr 2 '*' $ac_mid`
8606 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8609 echo "$as_me: failed program was:" >&5
8610 sed 's/^/| /' conftest.
$ac_ext >&5
8614 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8616 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8617 # Binary search between lo and hi bounds.
8618 while test "x$ac_lo" != "x$ac_hi"; do
8619 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8620 cat >conftest.
$ac_ext <<_ACEOF
8623 cat confdefs.h
>>conftest.
$ac_ext
8624 cat >>conftest.
$ac_ext <<_ACEOF
8625 /* end confdefs.h. */
8626 $ac_includes_default
8630 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
8637 rm -f conftest.
$ac_objext
8638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8639 (eval $ac_compile) 2>conftest.er1
8641 grep -v '^ *+' conftest.er1
>conftest.err
8643 cat conftest.err
>&5
8644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8645 (exit $ac_status); } &&
8646 { ac_try
='test -z "$ac_c_werror_flag"
8647 || test ! -s conftest.err'
8648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8652 (exit $ac_status); }; } &&
8653 { ac_try
='test -s conftest.$ac_objext'
8654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8658 (exit $ac_status); }; }; then
8661 echo "$as_me: failed program was:" >&5
8662 sed 's/^/| /' conftest.
$ac_ext >&5
8664 ac_lo
=`expr '(' $ac_mid ')' + 1`
8666 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8669 ?
*) ac_cv_sizeof_double
=$ac_lo;;
8670 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
8671 See \`config.log' for more details." >&5
8672 echo "$as_me: error: cannot compute sizeof (double), 77
8673 See \`config.log' for more details." >&2;}
8674 { (exit 1); exit 1; }; } ;;
8677 if test "$cross_compiling" = yes; then
8678 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8679 See \`config.log' for more details." >&5
8680 echo "$as_me: error: cannot run test program while cross compiling
8681 See \`config.log' for more details." >&2;}
8682 { (exit 1); exit 1; }; }
8684 cat >conftest.
$ac_ext <<_ACEOF
8687 cat confdefs.h
>>conftest.
$ac_ext
8688 cat >>conftest.
$ac_ext <<_ACEOF
8689 /* end confdefs.h. */
8690 $ac_includes_default
8691 long longval () { return (long) (sizeof (double)); }
8692 unsigned long ulongval () { return (long) (sizeof (double)); }
8699 FILE *f = fopen ("conftest.val", "w");
8702 if (((long) (sizeof (double))) < 0)
8704 long i = longval ();
8705 if (i != ((long) (sizeof (double))))
8707 fprintf (f, "%ld\n", i);
8711 unsigned long i = ulongval ();
8712 if (i != ((long) (sizeof (double))))
8714 fprintf (f, "%lu\n", i);
8716 exit (ferror (f) || fclose (f) != 0);
8722 rm -f conftest
$ac_exeext
8723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8724 (eval $ac_link) 2>&5
8726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8727 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8732 (exit $ac_status); }; }; then
8733 ac_cv_sizeof_double
=`cat conftest.val`
8735 echo "$as_me: program exited with status $ac_status" >&5
8736 echo "$as_me: failed program was:" >&5
8737 sed 's/^/| /' conftest.
$ac_ext >&5
8740 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
8741 See \`config.log' for more details." >&5
8742 echo "$as_me: error: cannot compute sizeof (double), 77
8743 See \`config.log' for more details." >&2;}
8744 { (exit 1); exit 1; }; }
8746 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8751 ac_cv_sizeof_double
=0
8754 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
8755 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
8756 cat >>confdefs.h
<<_ACEOF
8757 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
8761 echo "$as_me:$LINENO: checking for fpos_t" >&5
8762 echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6
8763 if test "${ac_cv_type_fpos_t+set}" = set; then
8764 echo $ECHO_N "(cached) $ECHO_C" >&6
8766 cat >conftest.
$ac_ext <<_ACEOF
8769 cat confdefs.h
>>conftest.
$ac_ext
8770 cat >>conftest.
$ac_ext <<_ACEOF
8771 /* end confdefs.h. */
8772 $ac_includes_default
8778 if (sizeof (fpos_t))
8784 rm -f conftest.
$ac_objext
8785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8786 (eval $ac_compile) 2>conftest.er1
8788 grep -v '^ *+' conftest.er1
>conftest.err
8790 cat conftest.err
>&5
8791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8792 (exit $ac_status); } &&
8793 { ac_try
='test -z "$ac_c_werror_flag"
8794 || test ! -s conftest.err'
8795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8799 (exit $ac_status); }; } &&
8800 { ac_try
='test -s conftest.$ac_objext'
8801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8805 (exit $ac_status); }; }; then
8806 ac_cv_type_fpos_t
=yes
8808 echo "$as_me: failed program was:" >&5
8809 sed 's/^/| /' conftest.
$ac_ext >&5
8811 ac_cv_type_fpos_t
=no
8813 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8815 echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
8816 echo "${ECHO_T}$ac_cv_type_fpos_t" >&6
8818 echo "$as_me:$LINENO: checking size of fpos_t" >&5
8819 echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6
8820 if test "${ac_cv_sizeof_fpos_t+set}" = set; then
8821 echo $ECHO_N "(cached) $ECHO_C" >&6
8823 if test "$ac_cv_type_fpos_t" = yes; then
8824 # The cast to unsigned long works around a bug in the HP C Compiler
8825 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8826 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8827 # This bug is HP SR number 8606223364.
8828 if test "$cross_compiling" = yes; then
8829 # Depending upon the size, compute the lo and hi bounds.
8830 cat >conftest.
$ac_ext <<_ACEOF
8833 cat confdefs.h
>>conftest.
$ac_ext
8834 cat >>conftest.
$ac_ext <<_ACEOF
8835 /* end confdefs.h. */
8836 $ac_includes_default
8840 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= 0)];
8847 rm -f conftest.
$ac_objext
8848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8849 (eval $ac_compile) 2>conftest.er1
8851 grep -v '^ *+' conftest.er1
>conftest.err
8853 cat conftest.err
>&5
8854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8855 (exit $ac_status); } &&
8856 { ac_try
='test -z "$ac_c_werror_flag"
8857 || test ! -s conftest.err'
8858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8862 (exit $ac_status); }; } &&
8863 { ac_try
='test -s conftest.$ac_objext'
8864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8868 (exit $ac_status); }; }; then
8871 cat >conftest.
$ac_ext <<_ACEOF
8874 cat confdefs.h
>>conftest.
$ac_ext
8875 cat >>conftest.
$ac_ext <<_ACEOF
8876 /* end confdefs.h. */
8877 $ac_includes_default
8881 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)];
8888 rm -f conftest.
$ac_objext
8889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8890 (eval $ac_compile) 2>conftest.er1
8892 grep -v '^ *+' conftest.er1
>conftest.err
8894 cat conftest.err
>&5
8895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8896 (exit $ac_status); } &&
8897 { ac_try
='test -z "$ac_c_werror_flag"
8898 || test ! -s conftest.err'
8899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8903 (exit $ac_status); }; } &&
8904 { ac_try
='test -s conftest.$ac_objext'
8905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8909 (exit $ac_status); }; }; then
8910 ac_hi
=$ac_mid; break
8912 echo "$as_me: failed program was:" >&5
8913 sed 's/^/| /' conftest.
$ac_ext >&5
8915 ac_lo
=`expr $ac_mid + 1`
8916 if test $ac_lo -le $ac_mid; then
8920 ac_mid
=`expr 2 '*' $ac_mid + 1`
8922 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8925 echo "$as_me: failed program was:" >&5
8926 sed 's/^/| /' conftest.
$ac_ext >&5
8928 cat >conftest.
$ac_ext <<_ACEOF
8931 cat confdefs.h
>>conftest.
$ac_ext
8932 cat >>conftest.
$ac_ext <<_ACEOF
8933 /* end confdefs.h. */
8934 $ac_includes_default
8938 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) < 0)];
8945 rm -f conftest.
$ac_objext
8946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8947 (eval $ac_compile) 2>conftest.er1
8949 grep -v '^ *+' conftest.er1
>conftest.err
8951 cat conftest.err
>&5
8952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8953 (exit $ac_status); } &&
8954 { ac_try
='test -z "$ac_c_werror_flag"
8955 || test ! -s conftest.err'
8956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8960 (exit $ac_status); }; } &&
8961 { ac_try
='test -s conftest.$ac_objext'
8962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8966 (exit $ac_status); }; }; then
8969 cat >conftest.
$ac_ext <<_ACEOF
8972 cat confdefs.h
>>conftest.
$ac_ext
8973 cat >>conftest.
$ac_ext <<_ACEOF
8974 /* end confdefs.h. */
8975 $ac_includes_default
8979 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= $ac_mid)];
8986 rm -f conftest.
$ac_objext
8987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8988 (eval $ac_compile) 2>conftest.er1
8990 grep -v '^ *+' conftest.er1
>conftest.err
8992 cat conftest.err
>&5
8993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8994 (exit $ac_status); } &&
8995 { ac_try
='test -z "$ac_c_werror_flag"
8996 || test ! -s conftest.err'
8997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9001 (exit $ac_status); }; } &&
9002 { ac_try
='test -s conftest.$ac_objext'
9003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9007 (exit $ac_status); }; }; then
9008 ac_lo
=$ac_mid; break
9010 echo "$as_me: failed program was:" >&5
9011 sed 's/^/| /' conftest.
$ac_ext >&5
9013 ac_hi
=`expr '(' $ac_mid ')' - 1`
9014 if test $ac_mid -le $ac_hi; then
9018 ac_mid
=`expr 2 '*' $ac_mid`
9020 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9023 echo "$as_me: failed program was:" >&5
9024 sed 's/^/| /' conftest.
$ac_ext >&5
9028 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9030 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9031 # Binary search between lo and hi bounds.
9032 while test "x$ac_lo" != "x$ac_hi"; do
9033 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9034 cat >conftest.
$ac_ext <<_ACEOF
9037 cat confdefs.h
>>conftest.
$ac_ext
9038 cat >>conftest.
$ac_ext <<_ACEOF
9039 /* end confdefs.h. */
9040 $ac_includes_default
9044 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)];
9051 rm -f conftest.
$ac_objext
9052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9053 (eval $ac_compile) 2>conftest.er1
9055 grep -v '^ *+' conftest.er1
>conftest.err
9057 cat conftest.err
>&5
9058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9059 (exit $ac_status); } &&
9060 { ac_try
='test -z "$ac_c_werror_flag"
9061 || test ! -s conftest.err'
9062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9066 (exit $ac_status); }; } &&
9067 { ac_try
='test -s conftest.$ac_objext'
9068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9072 (exit $ac_status); }; }; then
9075 echo "$as_me: failed program was:" >&5
9076 sed 's/^/| /' conftest.
$ac_ext >&5
9078 ac_lo
=`expr '(' $ac_mid ')' + 1`
9080 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9083 ?
*) ac_cv_sizeof_fpos_t
=$ac_lo;;
9084 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77
9085 See \`config.log' for more details." >&5
9086 echo "$as_me: error: cannot compute sizeof (fpos_t), 77
9087 See \`config.log' for more details." >&2;}
9088 { (exit 1); exit 1; }; } ;;
9091 if test "$cross_compiling" = yes; then
9092 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9093 See \`config.log' for more details." >&5
9094 echo "$as_me: error: cannot run test program while cross compiling
9095 See \`config.log' for more details." >&2;}
9096 { (exit 1); exit 1; }; }
9098 cat >conftest.
$ac_ext <<_ACEOF
9101 cat confdefs.h
>>conftest.
$ac_ext
9102 cat >>conftest.
$ac_ext <<_ACEOF
9103 /* end confdefs.h. */
9104 $ac_includes_default
9105 long longval () { return (long) (sizeof (fpos_t)); }
9106 unsigned long ulongval () { return (long) (sizeof (fpos_t)); }
9113 FILE *f = fopen ("conftest.val", "w");
9116 if (((long) (sizeof (fpos_t))) < 0)
9118 long i = longval ();
9119 if (i != ((long) (sizeof (fpos_t))))
9121 fprintf (f, "%ld\n", i);
9125 unsigned long i = ulongval ();
9126 if (i != ((long) (sizeof (fpos_t))))
9128 fprintf (f, "%lu\n", i);
9130 exit (ferror (f) || fclose (f) != 0);
9136 rm -f conftest
$ac_exeext
9137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9138 (eval $ac_link) 2>&5
9140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9141 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9146 (exit $ac_status); }; }; then
9147 ac_cv_sizeof_fpos_t
=`cat conftest.val`
9149 echo "$as_me: program exited with status $ac_status" >&5
9150 echo "$as_me: failed program was:" >&5
9151 sed 's/^/| /' conftest.
$ac_ext >&5
9154 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77
9155 See \`config.log' for more details." >&5
9156 echo "$as_me: error: cannot compute sizeof (fpos_t), 77
9157 See \`config.log' for more details." >&2;}
9158 { (exit 1); exit 1; }; }
9160 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9165 ac_cv_sizeof_fpos_t
=0
9168 echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
9169 echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6
9170 cat >>confdefs.h
<<_ACEOF
9171 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
9175 echo "$as_me:$LINENO: checking for size_t" >&5
9176 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
9177 if test "${ac_cv_type_size_t+set}" = set; then
9178 echo $ECHO_N "(cached) $ECHO_C" >&6
9180 cat >conftest.
$ac_ext <<_ACEOF
9183 cat confdefs.h
>>conftest.
$ac_ext
9184 cat >>conftest.
$ac_ext <<_ACEOF
9185 /* end confdefs.h. */
9186 $ac_includes_default
9192 if (sizeof (size_t))
9198 rm -f conftest.
$ac_objext
9199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9200 (eval $ac_compile) 2>conftest.er1
9202 grep -v '^ *+' conftest.er1
>conftest.err
9204 cat conftest.err
>&5
9205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9206 (exit $ac_status); } &&
9207 { ac_try
='test -z "$ac_c_werror_flag"
9208 || test ! -s conftest.err'
9209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9213 (exit $ac_status); }; } &&
9214 { ac_try
='test -s conftest.$ac_objext'
9215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9219 (exit $ac_status); }; }; then
9220 ac_cv_type_size_t
=yes
9222 echo "$as_me: failed program was:" >&5
9223 sed 's/^/| /' conftest.
$ac_ext >&5
9225 ac_cv_type_size_t
=no
9227 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9229 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9230 echo "${ECHO_T}$ac_cv_type_size_t" >&6
9232 echo "$as_me:$LINENO: checking size of size_t" >&5
9233 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
9234 if test "${ac_cv_sizeof_size_t+set}" = set; then
9235 echo $ECHO_N "(cached) $ECHO_C" >&6
9237 if test "$ac_cv_type_size_t" = yes; then
9238 # The cast to unsigned long works around a bug in the HP C Compiler
9239 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9240 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9241 # This bug is HP SR number 8606223364.
9242 if test "$cross_compiling" = yes; then
9243 # Depending upon the size, compute the lo and hi bounds.
9244 cat >conftest.
$ac_ext <<_ACEOF
9247 cat confdefs.h
>>conftest.
$ac_ext
9248 cat >>conftest.
$ac_ext <<_ACEOF
9249 /* end confdefs.h. */
9250 $ac_includes_default
9254 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
9261 rm -f conftest.
$ac_objext
9262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9263 (eval $ac_compile) 2>conftest.er1
9265 grep -v '^ *+' conftest.er1
>conftest.err
9267 cat conftest.err
>&5
9268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9269 (exit $ac_status); } &&
9270 { ac_try
='test -z "$ac_c_werror_flag"
9271 || test ! -s conftest.err'
9272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9276 (exit $ac_status); }; } &&
9277 { ac_try
='test -s conftest.$ac_objext'
9278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9282 (exit $ac_status); }; }; then
9285 cat >conftest.
$ac_ext <<_ACEOF
9288 cat confdefs.h
>>conftest.
$ac_ext
9289 cat >>conftest.
$ac_ext <<_ACEOF
9290 /* end confdefs.h. */
9291 $ac_includes_default
9295 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
9302 rm -f conftest.
$ac_objext
9303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9304 (eval $ac_compile) 2>conftest.er1
9306 grep -v '^ *+' conftest.er1
>conftest.err
9308 cat conftest.err
>&5
9309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9310 (exit $ac_status); } &&
9311 { ac_try
='test -z "$ac_c_werror_flag"
9312 || test ! -s conftest.err'
9313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9317 (exit $ac_status); }; } &&
9318 { ac_try
='test -s conftest.$ac_objext'
9319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9323 (exit $ac_status); }; }; then
9324 ac_hi
=$ac_mid; break
9326 echo "$as_me: failed program was:" >&5
9327 sed 's/^/| /' conftest.
$ac_ext >&5
9329 ac_lo
=`expr $ac_mid + 1`
9330 if test $ac_lo -le $ac_mid; then
9334 ac_mid
=`expr 2 '*' $ac_mid + 1`
9336 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9339 echo "$as_me: failed program was:" >&5
9340 sed 's/^/| /' conftest.
$ac_ext >&5
9342 cat >conftest.
$ac_ext <<_ACEOF
9345 cat confdefs.h
>>conftest.
$ac_ext
9346 cat >>conftest.
$ac_ext <<_ACEOF
9347 /* end confdefs.h. */
9348 $ac_includes_default
9352 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
9359 rm -f conftest.
$ac_objext
9360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9361 (eval $ac_compile) 2>conftest.er1
9363 grep -v '^ *+' conftest.er1
>conftest.err
9365 cat conftest.err
>&5
9366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9367 (exit $ac_status); } &&
9368 { ac_try
='test -z "$ac_c_werror_flag"
9369 || test ! -s conftest.err'
9370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9374 (exit $ac_status); }; } &&
9375 { ac_try
='test -s conftest.$ac_objext'
9376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9380 (exit $ac_status); }; }; then
9383 cat >conftest.
$ac_ext <<_ACEOF
9386 cat confdefs.h
>>conftest.
$ac_ext
9387 cat >>conftest.
$ac_ext <<_ACEOF
9388 /* end confdefs.h. */
9389 $ac_includes_default
9393 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
9400 rm -f conftest.
$ac_objext
9401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9402 (eval $ac_compile) 2>conftest.er1
9404 grep -v '^ *+' conftest.er1
>conftest.err
9406 cat conftest.err
>&5
9407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9408 (exit $ac_status); } &&
9409 { ac_try
='test -z "$ac_c_werror_flag"
9410 || test ! -s conftest.err'
9411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9415 (exit $ac_status); }; } &&
9416 { ac_try
='test -s conftest.$ac_objext'
9417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9421 (exit $ac_status); }; }; then
9422 ac_lo
=$ac_mid; break
9424 echo "$as_me: failed program was:" >&5
9425 sed 's/^/| /' conftest.
$ac_ext >&5
9427 ac_hi
=`expr '(' $ac_mid ')' - 1`
9428 if test $ac_mid -le $ac_hi; then
9432 ac_mid
=`expr 2 '*' $ac_mid`
9434 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9437 echo "$as_me: failed program was:" >&5
9438 sed 's/^/| /' conftest.
$ac_ext >&5
9442 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9444 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9445 # Binary search between lo and hi bounds.
9446 while test "x$ac_lo" != "x$ac_hi"; do
9447 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9448 cat >conftest.
$ac_ext <<_ACEOF
9451 cat confdefs.h
>>conftest.
$ac_ext
9452 cat >>conftest.
$ac_ext <<_ACEOF
9453 /* end confdefs.h. */
9454 $ac_includes_default
9458 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
9465 rm -f conftest.
$ac_objext
9466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9467 (eval $ac_compile) 2>conftest.er1
9469 grep -v '^ *+' conftest.er1
>conftest.err
9471 cat conftest.err
>&5
9472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9473 (exit $ac_status); } &&
9474 { ac_try
='test -z "$ac_c_werror_flag"
9475 || test ! -s conftest.err'
9476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9480 (exit $ac_status); }; } &&
9481 { ac_try
='test -s conftest.$ac_objext'
9482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9486 (exit $ac_status); }; }; then
9489 echo "$as_me: failed program was:" >&5
9490 sed 's/^/| /' conftest.
$ac_ext >&5
9492 ac_lo
=`expr '(' $ac_mid ')' + 1`
9494 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9497 ?
*) ac_cv_sizeof_size_t
=$ac_lo;;
9498 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
9499 See \`config.log' for more details." >&5
9500 echo "$as_me: error: cannot compute sizeof (size_t), 77
9501 See \`config.log' for more details." >&2;}
9502 { (exit 1); exit 1; }; } ;;
9505 if test "$cross_compiling" = yes; then
9506 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9507 See \`config.log' for more details." >&5
9508 echo "$as_me: error: cannot run test program while cross compiling
9509 See \`config.log' for more details." >&2;}
9510 { (exit 1); exit 1; }; }
9512 cat >conftest.
$ac_ext <<_ACEOF
9515 cat confdefs.h
>>conftest.
$ac_ext
9516 cat >>conftest.
$ac_ext <<_ACEOF
9517 /* end confdefs.h. */
9518 $ac_includes_default
9519 long longval () { return (long) (sizeof (size_t)); }
9520 unsigned long ulongval () { return (long) (sizeof (size_t)); }
9527 FILE *f = fopen ("conftest.val", "w");
9530 if (((long) (sizeof (size_t))) < 0)
9532 long i = longval ();
9533 if (i != ((long) (sizeof (size_t))))
9535 fprintf (f, "%ld\n", i);
9539 unsigned long i = ulongval ();
9540 if (i != ((long) (sizeof (size_t))))
9542 fprintf (f, "%lu\n", i);
9544 exit (ferror (f) || fclose (f) != 0);
9550 rm -f conftest
$ac_exeext
9551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9552 (eval $ac_link) 2>&5
9554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9555 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9560 (exit $ac_status); }; }; then
9561 ac_cv_sizeof_size_t
=`cat conftest.val`
9563 echo "$as_me: program exited with status $ac_status" >&5
9564 echo "$as_me: failed program was:" >&5
9565 sed 's/^/| /' conftest.
$ac_ext >&5
9568 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
9569 See \`config.log' for more details." >&5
9570 echo "$as_me: error: cannot compute sizeof (size_t), 77
9571 See \`config.log' for more details." >&2;}
9572 { (exit 1); exit 1; }; }
9574 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9579 ac_cv_sizeof_size_t
=0
9582 echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
9583 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
9584 cat >>confdefs.h
<<_ACEOF
9585 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
9590 echo "$as_me:$LINENO: checking for long long support" >&5
9591 echo $ECHO_N "checking for long long support... $ECHO_C" >&6
9593 cat >conftest.
$ac_ext <<_ACEOF
9596 cat confdefs.h
>>conftest.
$ac_ext
9597 cat >>conftest.
$ac_ext <<_ACEOF
9598 /* end confdefs.h. */
9603 long long x; x = (long long)0;
9608 rm -f conftest.
$ac_objext
9609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9610 (eval $ac_compile) 2>conftest.er1
9612 grep -v '^ *+' conftest.er1
>conftest.err
9614 cat conftest.err
>&5
9615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9616 (exit $ac_status); } &&
9617 { ac_try
='test -z "$ac_c_werror_flag"
9618 || test ! -s conftest.err'
9619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9623 (exit $ac_status); }; } &&
9624 { ac_try
='test -s conftest.$ac_objext'
9625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9629 (exit $ac_status); }; }; then
9632 cat >>confdefs.h
<<\_ACEOF
9633 #define HAVE_LONG_LONG 1
9639 echo "$as_me: failed program was:" >&5
9640 sed 's/^/| /' conftest.
$ac_ext >&5
9643 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9644 echo "$as_me:$LINENO: result: $have_long_long" >&5
9645 echo "${ECHO_T}$have_long_long" >&6
9646 if test "$have_long_long" = yes ; then
9647 echo "$as_me:$LINENO: checking for long long" >&5
9648 echo $ECHO_N "checking for long long... $ECHO_C" >&6
9649 if test "${ac_cv_type_long_long+set}" = set; then
9650 echo $ECHO_N "(cached) $ECHO_C" >&6
9652 cat >conftest.
$ac_ext <<_ACEOF
9655 cat confdefs.h
>>conftest.
$ac_ext
9656 cat >>conftest.
$ac_ext <<_ACEOF
9657 /* end confdefs.h. */
9658 $ac_includes_default
9662 if ((long long *) 0)
9664 if (sizeof (long long))
9670 rm -f conftest.
$ac_objext
9671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9672 (eval $ac_compile) 2>conftest.er1
9674 grep -v '^ *+' conftest.er1
>conftest.err
9676 cat conftest.err
>&5
9677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9678 (exit $ac_status); } &&
9679 { ac_try
='test -z "$ac_c_werror_flag"
9680 || test ! -s conftest.err'
9681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9685 (exit $ac_status); }; } &&
9686 { ac_try
='test -s conftest.$ac_objext'
9687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9691 (exit $ac_status); }; }; then
9692 ac_cv_type_long_long
=yes
9694 echo "$as_me: failed program was:" >&5
9695 sed 's/^/| /' conftest.
$ac_ext >&5
9697 ac_cv_type_long_long
=no
9699 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9701 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
9702 echo "${ECHO_T}$ac_cv_type_long_long" >&6
9704 echo "$as_me:$LINENO: checking size of long long" >&5
9705 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
9706 if test "${ac_cv_sizeof_long_long+set}" = set; then
9707 echo $ECHO_N "(cached) $ECHO_C" >&6
9709 if test "$ac_cv_type_long_long" = yes; then
9710 # The cast to unsigned long works around a bug in the HP C Compiler
9711 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9712 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9713 # This bug is HP SR number 8606223364.
9714 if test "$cross_compiling" = yes; then
9715 # Depending upon the size, compute the lo and hi bounds.
9716 cat >conftest.
$ac_ext <<_ACEOF
9719 cat confdefs.h
>>conftest.
$ac_ext
9720 cat >>conftest.
$ac_ext <<_ACEOF
9721 /* end confdefs.h. */
9722 $ac_includes_default
9726 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
9733 rm -f conftest.
$ac_objext
9734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9735 (eval $ac_compile) 2>conftest.er1
9737 grep -v '^ *+' conftest.er1
>conftest.err
9739 cat conftest.err
>&5
9740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9741 (exit $ac_status); } &&
9742 { ac_try
='test -z "$ac_c_werror_flag"
9743 || test ! -s conftest.err'
9744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9748 (exit $ac_status); }; } &&
9749 { ac_try
='test -s conftest.$ac_objext'
9750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9754 (exit $ac_status); }; }; then
9757 cat >conftest.
$ac_ext <<_ACEOF
9760 cat confdefs.h
>>conftest.
$ac_ext
9761 cat >>conftest.
$ac_ext <<_ACEOF
9762 /* end confdefs.h. */
9763 $ac_includes_default
9767 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
9774 rm -f conftest.
$ac_objext
9775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9776 (eval $ac_compile) 2>conftest.er1
9778 grep -v '^ *+' conftest.er1
>conftest.err
9780 cat conftest.err
>&5
9781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9782 (exit $ac_status); } &&
9783 { ac_try
='test -z "$ac_c_werror_flag"
9784 || test ! -s conftest.err'
9785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9789 (exit $ac_status); }; } &&
9790 { ac_try
='test -s conftest.$ac_objext'
9791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795 (exit $ac_status); }; }; then
9796 ac_hi
=$ac_mid; break
9798 echo "$as_me: failed program was:" >&5
9799 sed 's/^/| /' conftest.
$ac_ext >&5
9801 ac_lo
=`expr $ac_mid + 1`
9802 if test $ac_lo -le $ac_mid; then
9806 ac_mid
=`expr 2 '*' $ac_mid + 1`
9808 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9811 echo "$as_me: failed program was:" >&5
9812 sed 's/^/| /' conftest.
$ac_ext >&5
9814 cat >conftest.
$ac_ext <<_ACEOF
9817 cat confdefs.h
>>conftest.
$ac_ext
9818 cat >>conftest.
$ac_ext <<_ACEOF
9819 /* end confdefs.h. */
9820 $ac_includes_default
9824 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
9831 rm -f conftest.
$ac_objext
9832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9833 (eval $ac_compile) 2>conftest.er1
9835 grep -v '^ *+' conftest.er1
>conftest.err
9837 cat conftest.err
>&5
9838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9839 (exit $ac_status); } &&
9840 { ac_try
='test -z "$ac_c_werror_flag"
9841 || test ! -s conftest.err'
9842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9846 (exit $ac_status); }; } &&
9847 { ac_try
='test -s conftest.$ac_objext'
9848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852 (exit $ac_status); }; }; then
9855 cat >conftest.
$ac_ext <<_ACEOF
9858 cat confdefs.h
>>conftest.
$ac_ext
9859 cat >>conftest.
$ac_ext <<_ACEOF
9860 /* end confdefs.h. */
9861 $ac_includes_default
9865 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
9872 rm -f conftest.
$ac_objext
9873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9874 (eval $ac_compile) 2>conftest.er1
9876 grep -v '^ *+' conftest.er1
>conftest.err
9878 cat conftest.err
>&5
9879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9880 (exit $ac_status); } &&
9881 { ac_try
='test -z "$ac_c_werror_flag"
9882 || test ! -s conftest.err'
9883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9887 (exit $ac_status); }; } &&
9888 { ac_try
='test -s conftest.$ac_objext'
9889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9893 (exit $ac_status); }; }; then
9894 ac_lo
=$ac_mid; break
9896 echo "$as_me: failed program was:" >&5
9897 sed 's/^/| /' conftest.
$ac_ext >&5
9899 ac_hi
=`expr '(' $ac_mid ')' - 1`
9900 if test $ac_mid -le $ac_hi; then
9904 ac_mid
=`expr 2 '*' $ac_mid`
9906 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9909 echo "$as_me: failed program was:" >&5
9910 sed 's/^/| /' conftest.
$ac_ext >&5
9914 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9916 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9917 # Binary search between lo and hi bounds.
9918 while test "x$ac_lo" != "x$ac_hi"; do
9919 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9920 cat >conftest.
$ac_ext <<_ACEOF
9923 cat confdefs.h
>>conftest.
$ac_ext
9924 cat >>conftest.
$ac_ext <<_ACEOF
9925 /* end confdefs.h. */
9926 $ac_includes_default
9930 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
9937 rm -f conftest.
$ac_objext
9938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9939 (eval $ac_compile) 2>conftest.er1
9941 grep -v '^ *+' conftest.er1
>conftest.err
9943 cat conftest.err
>&5
9944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9945 (exit $ac_status); } &&
9946 { ac_try
='test -z "$ac_c_werror_flag"
9947 || test ! -s conftest.err'
9948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9952 (exit $ac_status); }; } &&
9953 { ac_try
='test -s conftest.$ac_objext'
9954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9958 (exit $ac_status); }; }; then
9961 echo "$as_me: failed program was:" >&5
9962 sed 's/^/| /' conftest.
$ac_ext >&5
9964 ac_lo
=`expr '(' $ac_mid ')' + 1`
9966 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9969 ?
*) ac_cv_sizeof_long_long
=$ac_lo;;
9970 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
9971 See \`config.log' for more details." >&5
9972 echo "$as_me: error: cannot compute sizeof (long long), 77
9973 See \`config.log' for more details." >&2;}
9974 { (exit 1); exit 1; }; } ;;
9977 if test "$cross_compiling" = yes; then
9978 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9979 See \`config.log' for more details." >&5
9980 echo "$as_me: error: cannot run test program while cross compiling
9981 See \`config.log' for more details." >&2;}
9982 { (exit 1); exit 1; }; }
9984 cat >conftest.
$ac_ext <<_ACEOF
9987 cat confdefs.h
>>conftest.
$ac_ext
9988 cat >>conftest.
$ac_ext <<_ACEOF
9989 /* end confdefs.h. */
9990 $ac_includes_default
9991 long longval () { return (long) (sizeof (long long)); }
9992 unsigned long ulongval () { return (long) (sizeof (long long)); }
9999 FILE *f = fopen ("conftest.val", "w");
10002 if (((long) (sizeof (long long))) < 0)
10004 long i = longval ();
10005 if (i != ((long) (sizeof (long long))))
10007 fprintf (f, "%ld\n", i);
10011 unsigned long i = ulongval ();
10012 if (i != ((long) (sizeof (long long))))
10014 fprintf (f, "%lu\n", i);
10016 exit (ferror (f) || fclose (f) != 0);
10022 rm -f conftest
$ac_exeext
10023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10024 (eval $ac_link) 2>&5
10026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10027 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10029 (eval $ac_try) 2>&5
10031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10032 (exit $ac_status); }; }; then
10033 ac_cv_sizeof_long_long
=`cat conftest.val`
10035 echo "$as_me: program exited with status $ac_status" >&5
10036 echo "$as_me: failed program was:" >&5
10037 sed 's/^/| /' conftest.
$ac_ext >&5
10039 ( exit $ac_status )
10040 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
10041 See \`config.log' for more details." >&5
10042 echo "$as_me: error: cannot compute sizeof (long long), 77
10043 See \`config.log' for more details." >&2;}
10044 { (exit 1); exit 1; }; }
10046 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10051 ac_cv_sizeof_long_long
=0
10054 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
10055 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
10056 cat >>confdefs.h
<<_ACEOF
10057 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10063 echo "$as_me:$LINENO: checking for uintptr_t support" >&5
10064 echo $ECHO_N "checking for uintptr_t support... $ECHO_C" >&6
10066 cat >conftest.
$ac_ext <<_ACEOF
10069 cat confdefs.h
>>conftest.
$ac_ext
10070 cat >>conftest.
$ac_ext <<_ACEOF
10071 /* end confdefs.h. */
10076 uintptr_t x; x = (uintptr_t)0;
10081 rm -f conftest.
$ac_objext
10082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10083 (eval $ac_compile) 2>conftest.er1
10085 grep -v '^ *+' conftest.er1
>conftest.err
10087 cat conftest.err
>&5
10088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10089 (exit $ac_status); } &&
10090 { ac_try
='test -z "$ac_c_werror_flag"
10091 || test ! -s conftest.err'
10092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10093 (eval $ac_try) 2>&5
10095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10096 (exit $ac_status); }; } &&
10097 { ac_try
='test -s conftest.$ac_objext'
10098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10099 (eval $ac_try) 2>&5
10101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10102 (exit $ac_status); }; }; then
10105 cat >>confdefs.h
<<\_ACEOF
10106 #define HAVE_UINTPTR_T 1
10112 echo "$as_me: failed program was:" >&5
10113 sed 's/^/| /' conftest.
$ac_ext >&5
10116 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10117 echo "$as_me:$LINENO: result: $have_uintptr_t" >&5
10118 echo "${ECHO_T}$have_uintptr_t" >&6
10119 if test "$have_uintptr_t" = yes ; then
10120 echo "$as_me:$LINENO: checking for uintptr_t" >&5
10121 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
10122 if test "${ac_cv_type_uintptr_t+set}" = set; then
10123 echo $ECHO_N "(cached) $ECHO_C" >&6
10125 cat >conftest.
$ac_ext <<_ACEOF
10128 cat confdefs.h
>>conftest.
$ac_ext
10129 cat >>conftest.
$ac_ext <<_ACEOF
10130 /* end confdefs.h. */
10131 $ac_includes_default
10135 if ((uintptr_t *) 0)
10137 if (sizeof (uintptr_t))
10143 rm -f conftest.
$ac_objext
10144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10145 (eval $ac_compile) 2>conftest.er1
10147 grep -v '^ *+' conftest.er1
>conftest.err
10149 cat conftest.err
>&5
10150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10151 (exit $ac_status); } &&
10152 { ac_try
='test -z "$ac_c_werror_flag"
10153 || test ! -s conftest.err'
10154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10155 (eval $ac_try) 2>&5
10157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10158 (exit $ac_status); }; } &&
10159 { ac_try
='test -s conftest.$ac_objext'
10160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10161 (eval $ac_try) 2>&5
10163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10164 (exit $ac_status); }; }; then
10165 ac_cv_type_uintptr_t
=yes
10167 echo "$as_me: failed program was:" >&5
10168 sed 's/^/| /' conftest.
$ac_ext >&5
10170 ac_cv_type_uintptr_t
=no
10172 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10174 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
10175 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
10177 echo "$as_me:$LINENO: checking size of uintptr_t" >&5
10178 echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6
10179 if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
10180 echo $ECHO_N "(cached) $ECHO_C" >&6
10182 if test "$ac_cv_type_uintptr_t" = yes; then
10183 # The cast to unsigned long works around a bug in the HP C Compiler
10184 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10185 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10186 # This bug is HP SR number 8606223364.
10187 if test "$cross_compiling" = yes; then
10188 # Depending upon the size, compute the lo and hi bounds.
10189 cat >conftest.
$ac_ext <<_ACEOF
10192 cat confdefs.h
>>conftest.
$ac_ext
10193 cat >>conftest.
$ac_ext <<_ACEOF
10194 /* end confdefs.h. */
10195 $ac_includes_default
10199 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= 0)];
10206 rm -f conftest.
$ac_objext
10207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10208 (eval $ac_compile) 2>conftest.er1
10210 grep -v '^ *+' conftest.er1
>conftest.err
10212 cat conftest.err
>&5
10213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10214 (exit $ac_status); } &&
10215 { ac_try
='test -z "$ac_c_werror_flag"
10216 || test ! -s conftest.err'
10217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10218 (eval $ac_try) 2>&5
10220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10221 (exit $ac_status); }; } &&
10222 { ac_try
='test -s conftest.$ac_objext'
10223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10224 (eval $ac_try) 2>&5
10226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10227 (exit $ac_status); }; }; then
10230 cat >conftest.
$ac_ext <<_ACEOF
10233 cat confdefs.h
>>conftest.
$ac_ext
10234 cat >>conftest.
$ac_ext <<_ACEOF
10235 /* end confdefs.h. */
10236 $ac_includes_default
10240 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)];
10247 rm -f conftest.
$ac_objext
10248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10249 (eval $ac_compile) 2>conftest.er1
10251 grep -v '^ *+' conftest.er1
>conftest.err
10253 cat conftest.err
>&5
10254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10255 (exit $ac_status); } &&
10256 { ac_try
='test -z "$ac_c_werror_flag"
10257 || test ! -s conftest.err'
10258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10259 (eval $ac_try) 2>&5
10261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10262 (exit $ac_status); }; } &&
10263 { ac_try
='test -s conftest.$ac_objext'
10264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10265 (eval $ac_try) 2>&5
10267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10268 (exit $ac_status); }; }; then
10269 ac_hi
=$ac_mid; break
10271 echo "$as_me: failed program was:" >&5
10272 sed 's/^/| /' conftest.
$ac_ext >&5
10274 ac_lo
=`expr $ac_mid + 1`
10275 if test $ac_lo -le $ac_mid; then
10279 ac_mid
=`expr 2 '*' $ac_mid + 1`
10281 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10284 echo "$as_me: failed program was:" >&5
10285 sed 's/^/| /' conftest.
$ac_ext >&5
10287 cat >conftest.
$ac_ext <<_ACEOF
10290 cat confdefs.h
>>conftest.
$ac_ext
10291 cat >>conftest.
$ac_ext <<_ACEOF
10292 /* end confdefs.h. */
10293 $ac_includes_default
10297 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) < 0)];
10304 rm -f conftest.
$ac_objext
10305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10306 (eval $ac_compile) 2>conftest.er1
10308 grep -v '^ *+' conftest.er1
>conftest.err
10310 cat conftest.err
>&5
10311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10312 (exit $ac_status); } &&
10313 { ac_try
='test -z "$ac_c_werror_flag"
10314 || test ! -s conftest.err'
10315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10316 (eval $ac_try) 2>&5
10318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10319 (exit $ac_status); }; } &&
10320 { ac_try
='test -s conftest.$ac_objext'
10321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10322 (eval $ac_try) 2>&5
10324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10325 (exit $ac_status); }; }; then
10328 cat >conftest.
$ac_ext <<_ACEOF
10331 cat confdefs.h
>>conftest.
$ac_ext
10332 cat >>conftest.
$ac_ext <<_ACEOF
10333 /* end confdefs.h. */
10334 $ac_includes_default
10338 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= $ac_mid)];
10345 rm -f conftest.
$ac_objext
10346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10347 (eval $ac_compile) 2>conftest.er1
10349 grep -v '^ *+' conftest.er1
>conftest.err
10351 cat conftest.err
>&5
10352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10353 (exit $ac_status); } &&
10354 { ac_try
='test -z "$ac_c_werror_flag"
10355 || test ! -s conftest.err'
10356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10357 (eval $ac_try) 2>&5
10359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10360 (exit $ac_status); }; } &&
10361 { ac_try
='test -s conftest.$ac_objext'
10362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10363 (eval $ac_try) 2>&5
10365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10366 (exit $ac_status); }; }; then
10367 ac_lo
=$ac_mid; break
10369 echo "$as_me: failed program was:" >&5
10370 sed 's/^/| /' conftest.
$ac_ext >&5
10372 ac_hi
=`expr '(' $ac_mid ')' - 1`
10373 if test $ac_mid -le $ac_hi; then
10377 ac_mid
=`expr 2 '*' $ac_mid`
10379 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10382 echo "$as_me: failed program was:" >&5
10383 sed 's/^/| /' conftest.
$ac_ext >&5
10387 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10389 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10390 # Binary search between lo and hi bounds.
10391 while test "x$ac_lo" != "x$ac_hi"; do
10392 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10393 cat >conftest.
$ac_ext <<_ACEOF
10396 cat confdefs.h
>>conftest.
$ac_ext
10397 cat >>conftest.
$ac_ext <<_ACEOF
10398 /* end confdefs.h. */
10399 $ac_includes_default
10403 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)];
10410 rm -f conftest.
$ac_objext
10411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10412 (eval $ac_compile) 2>conftest.er1
10414 grep -v '^ *+' conftest.er1
>conftest.err
10416 cat conftest.err
>&5
10417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10418 (exit $ac_status); } &&
10419 { ac_try
='test -z "$ac_c_werror_flag"
10420 || test ! -s conftest.err'
10421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10422 (eval $ac_try) 2>&5
10424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10425 (exit $ac_status); }; } &&
10426 { ac_try
='test -s conftest.$ac_objext'
10427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10428 (eval $ac_try) 2>&5
10430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10431 (exit $ac_status); }; }; then
10434 echo "$as_me: failed program was:" >&5
10435 sed 's/^/| /' conftest.
$ac_ext >&5
10437 ac_lo
=`expr '(' $ac_mid ')' + 1`
10439 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10442 ?
*) ac_cv_sizeof_uintptr_t
=$ac_lo;;
10443 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77
10444 See \`config.log' for more details." >&5
10445 echo "$as_me: error: cannot compute sizeof (uintptr_t), 77
10446 See \`config.log' for more details." >&2;}
10447 { (exit 1); exit 1; }; } ;;
10450 if test "$cross_compiling" = yes; then
10451 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10452 See \`config.log' for more details." >&5
10453 echo "$as_me: error: cannot run test program while cross compiling
10454 See \`config.log' for more details." >&2;}
10455 { (exit 1); exit 1; }; }
10457 cat >conftest.
$ac_ext <<_ACEOF
10460 cat confdefs.h
>>conftest.
$ac_ext
10461 cat >>conftest.
$ac_ext <<_ACEOF
10462 /* end confdefs.h. */
10463 $ac_includes_default
10464 long longval () { return (long) (sizeof (uintptr_t)); }
10465 unsigned long ulongval () { return (long) (sizeof (uintptr_t)); }
10467 #include <stdlib.h>
10472 FILE *f = fopen ("conftest.val", "w");
10475 if (((long) (sizeof (uintptr_t))) < 0)
10477 long i = longval ();
10478 if (i != ((long) (sizeof (uintptr_t))))
10480 fprintf (f, "%ld\n", i);
10484 unsigned long i = ulongval ();
10485 if (i != ((long) (sizeof (uintptr_t))))
10487 fprintf (f, "%lu\n", i);
10489 exit (ferror (f) || fclose (f) != 0);
10495 rm -f conftest
$ac_exeext
10496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10497 (eval $ac_link) 2>&5
10499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10500 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10502 (eval $ac_try) 2>&5
10504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10505 (exit $ac_status); }; }; then
10506 ac_cv_sizeof_uintptr_t
=`cat conftest.val`
10508 echo "$as_me: program exited with status $ac_status" >&5
10509 echo "$as_me: failed program was:" >&5
10510 sed 's/^/| /' conftest.
$ac_ext >&5
10512 ( exit $ac_status )
10513 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77
10514 See \`config.log' for more details." >&5
10515 echo "$as_me: error: cannot compute sizeof (uintptr_t), 77
10516 See \`config.log' for more details." >&2;}
10517 { (exit 1); exit 1; }; }
10519 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10524 ac_cv_sizeof_uintptr_t
=0
10527 echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
10528 echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6
10529 cat >>confdefs.h
<<_ACEOF
10530 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
10536 # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>.
10537 echo "$as_me:$LINENO: checking size of off_t" >&5
10538 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
10539 if test "${ac_cv_sizeof_off_t+set}" = set; then
10540 echo $ECHO_N "(cached) $ECHO_C" >&6
10542 if test "$cross_compiling" = yes; then
10543 ac_cv_sizeof_off_t
=4
10545 cat >conftest.
$ac_ext <<_ACEOF
10548 cat confdefs.h
>>conftest.
$ac_ext
10549 cat >>conftest.
$ac_ext <<_ACEOF
10550 /* end confdefs.h. */
10552 #include <sys/types.h>
10555 FILE *f=fopen("conftestval", "w");
10557 fprintf(f, "%d\n", sizeof(off_t));
10561 rm -f conftest
$ac_exeext
10562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10563 (eval $ac_link) 2>&5
10565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10566 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10568 (eval $ac_try) 2>&5
10570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10571 (exit $ac_status); }; }; then
10572 ac_cv_sizeof_off_t
=`cat conftestval`
10574 echo "$as_me: program exited with status $ac_status" >&5
10575 echo "$as_me: failed program was:" >&5
10576 sed 's/^/| /' conftest.
$ac_ext >&5
10578 ( exit $ac_status )
10579 ac_cv_sizeof_off_t
=0
10581 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10586 echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
10587 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
10589 cat >>confdefs.h
<<_ACEOF
10590 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
10594 echo "$as_me:$LINENO: checking whether to enable large file support" >&5
10595 echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6
10596 if test "$have_long_long" = yes -a \
10597 "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
10598 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
10600 cat >>confdefs.h
<<\_ACEOF
10601 #define HAVE_LARGEFILE_SUPPORT 1
10604 echo "$as_me:$LINENO: result: yes" >&5
10605 echo "${ECHO_T}yes" >&6
10607 echo "$as_me:$LINENO: result: no" >&5
10608 echo "${ECHO_T}no" >&6
10611 # AC_CHECK_SIZEOF() doesn't include <time.h>.
10612 echo "$as_me:$LINENO: checking size of time_t" >&5
10613 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6
10614 if test "${ac_cv_sizeof_time_t+set}" = set; then
10615 echo $ECHO_N "(cached) $ECHO_C" >&6
10617 if test "$cross_compiling" = yes; then
10618 ac_cv_sizeof_time_t
=4
10620 cat >conftest.
$ac_ext <<_ACEOF
10623 cat confdefs.h
>>conftest.
$ac_ext
10624 cat >>conftest.
$ac_ext <<_ACEOF
10625 /* end confdefs.h. */
10630 FILE *f=fopen("conftestval", "w");
10632 fprintf(f, "%d\n", sizeof(time_t));
10636 rm -f conftest
$ac_exeext
10637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10638 (eval $ac_link) 2>&5
10640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10641 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10643 (eval $ac_try) 2>&5
10645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10646 (exit $ac_status); }; }; then
10647 ac_cv_sizeof_time_t
=`cat conftestval`
10649 echo "$as_me: program exited with status $ac_status" >&5
10650 echo "$as_me: failed program was:" >&5
10651 sed 's/^/| /' conftest.
$ac_ext >&5
10653 ( exit $ac_status )
10654 ac_cv_sizeof_time_t
=0
10656 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10661 echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
10662 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6
10664 cat >>confdefs.h
<<_ACEOF
10665 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
10670 # if have pthread_t then define SIZEOF_PTHREAD_T
10672 if test "$ac_cv_kpthread" = "yes"
10673 then CC
="$CC -Kpthread"
10674 elif test "$ac_cv_kthread" = "yes"
10675 then CC
="$CC -Kthread"
10676 elif test "$ac_cv_pthread" = "yes"
10677 then CC
="$CC -pthread"
10679 echo "$as_me:$LINENO: checking for pthread_t" >&5
10680 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6
10682 cat >conftest.
$ac_ext <<_ACEOF
10685 cat confdefs.h
>>conftest.
$ac_ext
10686 cat >>conftest.
$ac_ext <<_ACEOF
10687 /* end confdefs.h. */
10688 #include <pthread.h>
10692 pthread_t x; x = *(pthread_t*)0;
10697 rm -f conftest.
$ac_objext
10698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10699 (eval $ac_compile) 2>conftest.er1
10701 grep -v '^ *+' conftest.er1
>conftest.err
10703 cat conftest.err
>&5
10704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10705 (exit $ac_status); } &&
10706 { ac_try
='test -z "$ac_c_werror_flag"
10707 || test ! -s conftest.err'
10708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10709 (eval $ac_try) 2>&5
10711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10712 (exit $ac_status); }; } &&
10713 { ac_try
='test -s conftest.$ac_objext'
10714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10715 (eval $ac_try) 2>&5
10717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718 (exit $ac_status); }; }; then
10721 echo "$as_me: failed program was:" >&5
10722 sed 's/^/| /' conftest.
$ac_ext >&5
10725 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10726 echo "$as_me:$LINENO: result: $have_pthread_t" >&5
10727 echo "${ECHO_T}$have_pthread_t" >&6
10728 if test "$have_pthread_t" = yes ; then
10729 # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
10730 echo "$as_me:$LINENO: checking size of pthread_t" >&5
10731 echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6
10732 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
10733 echo $ECHO_N "(cached) $ECHO_C" >&6
10735 if test "$cross_compiling" = yes; then
10736 ac_cv_sizeof_pthread_t
=4
10738 cat >conftest.
$ac_ext <<_ACEOF
10741 cat confdefs.h
>>conftest.
$ac_ext
10742 cat >>conftest.
$ac_ext <<_ACEOF
10743 /* end confdefs.h. */
10745 #include <pthread.h>
10748 FILE *f=fopen("conftestval", "w");
10750 fprintf(f, "%d\n", sizeof(pthread_t));
10754 rm -f conftest
$ac_exeext
10755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10756 (eval $ac_link) 2>&5
10758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10759 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10761 (eval $ac_try) 2>&5
10763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10764 (exit $ac_status); }; }; then
10765 ac_cv_sizeof_pthread_t
=`cat conftestval`
10767 echo "$as_me: program exited with status $ac_status" >&5
10768 echo "$as_me: failed program was:" >&5
10769 sed 's/^/| /' conftest.
$ac_ext >&5
10771 ( exit $ac_status )
10772 ac_cv_sizeof_pthread_t
=0
10774 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10779 echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
10780 echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6
10782 cat >>confdefs.h
<<_ACEOF
10783 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
10789 echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5
10790 echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6
10791 # Check whether --enable-toolbox-glue or --disable-toolbox-glue was given.
10792 if test "${enable_toolbox_glue+set}" = set; then
10793 enableval
="$enable_toolbox_glue"
10797 if test -z "$enable_toolbox_glue"
10799 case $ac_sys_system/$ac_sys_release in
10801 enable_toolbox_glue
="yes";;
10803 enable_toolbox_glue
="no";;
10806 case "$enable_toolbox_glue" in
10808 extra_machdep_objs
="Python/mactoolboxglue.o"
10809 extra_undefs
="-u _PyMac_Error"
10811 cat >>confdefs.h
<<\_ACEOF
10812 #define USE_TOOLBOX_OBJECT_GLUE 1
10817 extra_machdep_objs
=""
10821 echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5
10822 echo "${ECHO_T}$enable_toolbox_glue" >&6
10825 case $ac_sys_system/$ac_sys_release in
10826 Darwin
/[01567]\..
*)
10827 OTHER_LIBTOOL_OPT
="-prebind -seg1addr 0x10000000"
10830 OTHER_LIBTOOL_OPT
=""
10835 case $ac_sys_system/$ac_sys_release in
10836 Darwin
/[01567]\..
*)
10837 LIBTOOL_CRUFT
="-framework System -lcc_dynamic -arch_only `arch`"
10838 LIBTOOL_CRUFT
=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10839 LIBTOOL_CRUFT
=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
10841 gcc_version
=`gcc -v 2>&1 | grep version | cut -d\ -f3`
10842 if test ${gcc_version} '<' 4.0
10844 LIBTOOL_CRUFT
="-lcc_dynamic"
10848 LIBTOOL_CRUFT
=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only `arch`"
10849 LIBTOOL_CRUFT
=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10850 LIBTOOL_CRUFT
=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
10853 echo "$as_me:$LINENO: checking for --enable-framework" >&5
10854 echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6
10855 if test "$enable_framework"
10857 BASECFLAGS
="$BASECFLAGS -fno-common -dynamic"
10858 # -F. is needed to allow linking to the framework while
10859 # in the build location.
10861 cat >>confdefs.h
<<\_ACEOF
10862 #define WITH_NEXT_FRAMEWORK 1
10865 echo "$as_me:$LINENO: result: yes" >&5
10866 echo "${ECHO_T}yes" >&6
10868 echo "$as_me:$LINENO: result: no" >&5
10869 echo "${ECHO_T}no" >&6
10872 echo "$as_me:$LINENO: checking for dyld" >&5
10873 echo $ECHO_N "checking for dyld... $ECHO_C" >&6
10874 case $ac_sys_system/$ac_sys_release in
10877 cat >>confdefs.h
<<\_ACEOF
10878 #define WITH_DYLD 1
10881 echo "$as_me:$LINENO: result: always on for Darwin" >&5
10882 echo "${ECHO_T}always on for Darwin" >&6
10885 echo "$as_me:$LINENO: result: no" >&5
10886 echo "${ECHO_T}no" >&6
10890 # Set info about shared libraries.
10896 # SO is the extension of shared libraries `(including the dot!)
10897 # -- usually .so, .sl on HP-UX, .dll on Cygwin
10898 echo "$as_me:$LINENO: checking SO" >&5
10899 echo $ECHO_N "checking SO... $ECHO_C" >&6
10902 case $ac_sys_system in
10908 # this might also be a termcap variable, see #610332
10910 echo '====================================================================='
10912 echo '+ WARNING: You have set SO in your environment. +'
10913 echo '+ Do you really mean to change the extension for shared libraries? +'
10914 echo '+ Continuing in 10 seconds to let you to ponder. +'
10916 echo '====================================================================='
10919 echo "$as_me:$LINENO: result: $SO" >&5
10920 echo "${ECHO_T}$SO" >&6
10921 # LDSHARED is the ld *command* used to create shared library
10922 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
10923 # (Shared libraries in this instance are shared modules to be loaded into
10924 # Python, as opposed to building Python itself as a shared library.)
10925 echo "$as_me:$LINENO: checking LDSHARED" >&5
10926 echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6
10927 if test -z "$LDSHARED"
10929 case $ac_sys_system/$ac_sys_release in
10931 BLDSHARED
="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
10932 LDSHARED
="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
10935 BLDSHARED
="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
10936 LDSHARED
="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
10938 IRIX
/5*) LDSHARED
="ld -shared";;
10939 IRIX
*/6*) LDSHARED
="ld ${SGI_ABI} -shared -all";;
10941 if test "$GCC" = "yes"
10942 then LDSHARED
='$(CC) -shared'
10943 else LDSHARED
='$(CC) -G';
10945 hp
*|HP
*) LDSHARED
="ld -b";;
10946 OSF
*) LDSHARED
="ld -shared -expect_unresolved \"*\"";;
10948 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
10949 if test "$enable_framework" ; then
10950 # Link against the framework. All externals should be defined.
10951 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10952 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10954 # No framework. Ignore undefined symbols, assuming they come from Python
10955 LDSHARED
="$LDSHARED -undefined suppress"
10957 Darwin
/1.4*|Darwin
/5.
*|Darwin
/6.
*)
10958 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
10959 if test "$enable_framework" ; then
10960 # Link against the framework. All externals should be defined.
10961 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10962 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10964 # No framework, use the Python app as bundle-loader
10965 BLDSHARED
="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
10966 LDSHARED
="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
10969 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
10970 # This allows an extension to be used in any Python
10971 cur_target
=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
10972 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
10973 if test ${MACOSX_DEPLOYMENT_TARGET-${cur_target}} '>' 10.2
10975 LDSHARED
='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
10976 BLDSHARED
="$LDSHARED"
10978 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
10979 if test "$enable_framework" ; then
10980 # Link against the framework. All externals should be defined.
10981 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10982 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10984 # No framework, use the Python app as bundle-loader
10985 BLDSHARED
="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
10986 LDSHARED
="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
10990 Linux
*|GNU
*) LDSHARED
='$(CC) -shared';;
10991 BSD
/OS
*/4*) LDSHARED
="gcc -shared";;
10993 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
10995 LDSHARED
="$CC -shared ${LDFLAGS}"
10997 LDSHARED
="ld -Bshareable ${LDFLAGS}"
10999 NetBSD
*|DragonFly
*) LDSHARED
="cc -shared ${LDFLAGS}";;
11000 OpenUNIX
*|UnixWare
*)
11001 if test "$GCC" = "yes"
11002 then LDSHARED
='$(CC) -shared'
11003 else LDSHARED
='$(CC) -G'
11005 SCO_SV
*) LDSHARED
='$(CC) -Wl,-G,-Bexport';;
11006 Monterey
*) LDSHARED
="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";;
11007 CYGWIN
*) LDSHARED
="gcc -shared -Wl,--enable-auto-image-base";;
11008 atheos
*) LDSHARED
="gcc -shared";;
11012 echo "$as_me:$LINENO: result: $LDSHARED" >&5
11013 echo "${ECHO_T}$LDSHARED" >&6
11014 BLDSHARED
=${BLDSHARED-$LDSHARED}
11015 # CCSHARED are the C *flags* used to create objects to go into a shared
11016 # library (module) -- this is only needed for a few systems
11017 echo "$as_me:$LINENO: checking CCSHARED" >&5
11018 echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6
11019 if test -z "$CCSHARED"
11021 case $ac_sys_system/$ac_sys_release in
11022 SunOS
*) if test "$GCC" = yes;
11023 then CCSHARED
="-fPIC";
11024 else CCSHARED
="-xcode=pic32";
11026 hp
*|HP
*) if test "$GCC" = yes;
11027 then CCSHARED
="-fPIC";
11028 else CCSHARED
="+z";
11030 Linux
*|GNU
*) CCSHARED
="-fPIC";;
11031 BSD
/OS
*/4*) CCSHARED
="-fpic";;
11032 FreeBSD
*|NetBSD
*|OpenBSD
*|DragonFly
*) CCSHARED
="-fPIC";;
11033 OpenUNIX
*|UnixWare
*)
11034 if test "$GCC" = "yes"
11035 then CCSHARED
="-fPIC"
11036 else CCSHARED
="-KPIC"
11039 if test "$GCC" = "yes"
11040 then CCSHARED
="-fPIC"
11041 else CCSHARED
="-Kpic -belf"
11043 Monterey
*) CCSHARED
="-G";;
11044 IRIX
*/6*) case $CC in
11045 *gcc
*) CCSHARED
="-shared";;
11048 atheos
*) CCSHARED
="-fPIC";;
11051 echo "$as_me:$LINENO: result: $CCSHARED" >&5
11052 echo "${ECHO_T}$CCSHARED" >&6
11053 # LINKFORSHARED are the flags passed to the $(CC) command that links
11054 # the python executable -- this is only needed for a few systems
11055 echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
11056 echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6
11057 if test -z "$LINKFORSHARED"
11059 case $ac_sys_system/$ac_sys_release in
11060 AIX
*) LINKFORSHARED
='-Wl,-bE:Modules/python.exp -lld';;
11062 LINKFORSHARED
="-Wl,-E -Wl,+s";;
11063 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
11064 BSD
/OS
/4*) LINKFORSHARED
="-Xlinker -export-dynamic";;
11065 Linux
*|GNU
*) LINKFORSHARED
="-Xlinker -export-dynamic";;
11066 # -u libsys_s pulls in all symbols in libsys
11068 # -u _PyMac_Error is needed to pull in the mac toolbox glue,
11070 # not used by the core itself but which needs to be in the core so
11071 # that dynamically loaded extension modules have access to it.
11072 # -prebind is no longer used, because it actually seems to give a
11073 # slowdown in stead of a speedup, maybe due to the large number of
11074 # dynamic loads Python does.
11076 LINKFORSHARED
="$extra_undefs"
11077 if test "$enable_framework"
11079 LINKFORSHARED
="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11081 LINKFORSHARED
="$LINKFORSHARED";;
11082 OpenUNIX
*|UnixWare
*) LINKFORSHARED
="-Wl,-Bexport";;
11083 SCO_SV
*) LINKFORSHARED
="-Wl,-Bexport";;
11084 ReliantUNIX
*) LINKFORSHARED
="-W1 -Blargedynsym";;
11085 FreeBSD
*|NetBSD
*|OpenBSD
*|DragonFly
*)
11086 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
11088 LINKFORSHARED
="-Wl,--export-dynamic"
11090 SunOS
/5*) case $CC in
11092 if $CC -Xlinker --help 2>&1 |
grep export-dynamic
>/dev
/null
11094 LINKFORSHARED
="-Xlinker --export-dynamic"
11098 if test $enable_shared = "no"
11100 LINKFORSHARED
='-Wl,--out-implib=$(LDLIBRARY)'
11104 echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
11105 echo "${ECHO_T}$LINKFORSHARED" >&6
11108 echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
11109 echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6
11110 if test ! "$LIBRARY" = "$LDLIBRARY"
11112 case $ac_sys_system in
11114 # Cygwin needs CCSHARED when building extension DLLs
11115 # but not when building the interpreter DLL.
11116 CFLAGSFORSHARED
='';;
11118 CFLAGSFORSHARED
='$(CCSHARED)'
11121 echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
11122 echo "${ECHO_T}$CFLAGSFORSHARED" >&6
11124 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
11125 # library (with --enable-shared).
11126 # For platforms on which shared libraries are not allowed to have unresolved
11127 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
11128 # if it is not required, since it creates a dependency of the shared library
11129 # to LIBS. This, in turn, means that applications linking the shared libpython
11130 # don't need to link LIBS explicitly. The default should be only changed
11131 # on systems where this approach causes problems.
11133 echo "$as_me:$LINENO: checking SHLIBS" >&5
11134 echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6
11135 case "$ac_sys_system" in
11139 echo "$as_me:$LINENO: result: $SHLIBS" >&5
11140 echo "${ECHO_T}$SHLIBS" >&6
11143 # checks for libraries
11145 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11146 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11147 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11148 echo $ECHO_N "(cached) $ECHO_C" >&6
11150 ac_check_lib_save_LIBS
=$LIBS
11152 cat >conftest.
$ac_ext <<_ACEOF
11155 cat confdefs.h
>>conftest.
$ac_ext
11156 cat >>conftest.
$ac_ext <<_ACEOF
11157 /* end confdefs.h. */
11159 /* Override any gcc2 internal prototype to avoid an error. */
11163 /* We use char because int might match the return type of a gcc2
11164 builtin and then its argument prototype would still apply. */
11174 rm -f conftest.
$ac_objext conftest
$ac_exeext
11175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11176 (eval $ac_link) 2>conftest.er1
11178 grep -v '^ *+' conftest.er1
>conftest.err
11180 cat conftest.err
>&5
11181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11182 (exit $ac_status); } &&
11183 { ac_try
='test -z "$ac_c_werror_flag"
11184 || test ! -s conftest.err'
11185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11186 (eval $ac_try) 2>&5
11188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11189 (exit $ac_status); }; } &&
11190 { ac_try
='test -s conftest$ac_exeext'
11191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11192 (eval $ac_try) 2>&5
11194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11195 (exit $ac_status); }; }; then
11196 ac_cv_lib_dl_dlopen
=yes
11198 echo "$as_me: failed program was:" >&5
11199 sed 's/^/| /' conftest.
$ac_ext >&5
11201 ac_cv_lib_dl_dlopen
=no
11203 rm -f conftest.err conftest.
$ac_objext \
11204 conftest
$ac_exeext conftest.
$ac_ext
11205 LIBS
=$ac_check_lib_save_LIBS
11207 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11208 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11209 if test $ac_cv_lib_dl_dlopen = yes; then
11210 cat >>confdefs.h
<<_ACEOF
11211 #define HAVE_LIBDL 1
11217 # Dynamic linking for SunOS/Solaris and SYSV
11219 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11220 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11221 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11222 echo $ECHO_N "(cached) $ECHO_C" >&6
11224 ac_check_lib_save_LIBS
=$LIBS
11226 cat >conftest.
$ac_ext <<_ACEOF
11229 cat confdefs.h
>>conftest.
$ac_ext
11230 cat >>conftest.
$ac_ext <<_ACEOF
11231 /* end confdefs.h. */
11233 /* Override any gcc2 internal prototype to avoid an error. */
11237 /* We use char because int might match the return type of a gcc2
11238 builtin and then its argument prototype would still apply. */
11248 rm -f conftest.
$ac_objext conftest
$ac_exeext
11249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11250 (eval $ac_link) 2>conftest.er1
11252 grep -v '^ *+' conftest.er1
>conftest.err
11254 cat conftest.err
>&5
11255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11256 (exit $ac_status); } &&
11257 { ac_try
='test -z "$ac_c_werror_flag"
11258 || test ! -s conftest.err'
11259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11260 (eval $ac_try) 2>&5
11262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11263 (exit $ac_status); }; } &&
11264 { ac_try
='test -s conftest$ac_exeext'
11265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11266 (eval $ac_try) 2>&5
11268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11269 (exit $ac_status); }; }; then
11270 ac_cv_lib_dld_shl_load
=yes
11272 echo "$as_me: failed program was:" >&5
11273 sed 's/^/| /' conftest.
$ac_ext >&5
11275 ac_cv_lib_dld_shl_load
=no
11277 rm -f conftest.err conftest.
$ac_objext \
11278 conftest
$ac_exeext conftest.
$ac_ext
11279 LIBS
=$ac_check_lib_save_LIBS
11281 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11282 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11283 if test $ac_cv_lib_dld_shl_load = yes; then
11284 cat >>confdefs.h
<<_ACEOF
11285 #define HAVE_LIBDLD 1
11291 # Dynamic linking for HP-UX
11293 # only check for sem_ini if thread support is requested
11294 if test "$with_threads" = "yes" -o -z "$with_threads"; then
11295 echo "$as_me:$LINENO: checking for library containing sem_init" >&5
11296 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6
11297 if test "${ac_cv_search_sem_init+set}" = set; then
11298 echo $ECHO_N "(cached) $ECHO_C" >&6
11300 ac_func_search_save_LIBS
=$LIBS
11301 ac_cv_search_sem_init
=no
11302 cat >conftest.
$ac_ext <<_ACEOF
11305 cat confdefs.h
>>conftest.
$ac_ext
11306 cat >>conftest.
$ac_ext <<_ACEOF
11307 /* end confdefs.h. */
11309 /* Override any gcc2 internal prototype to avoid an error. */
11313 /* We use char because int might match the return type of a gcc2
11314 builtin and then its argument prototype would still apply. */
11324 rm -f conftest.
$ac_objext conftest
$ac_exeext
11325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11326 (eval $ac_link) 2>conftest.er1
11328 grep -v '^ *+' conftest.er1
>conftest.err
11330 cat conftest.err
>&5
11331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11332 (exit $ac_status); } &&
11333 { ac_try
='test -z "$ac_c_werror_flag"
11334 || test ! -s conftest.err'
11335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11336 (eval $ac_try) 2>&5
11338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11339 (exit $ac_status); }; } &&
11340 { ac_try
='test -s conftest$ac_exeext'
11341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11342 (eval $ac_try) 2>&5
11344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11345 (exit $ac_status); }; }; then
11346 ac_cv_search_sem_init
="none required"
11348 echo "$as_me: failed program was:" >&5
11349 sed 's/^/| /' conftest.
$ac_ext >&5
11352 rm -f conftest.err conftest.
$ac_objext \
11353 conftest
$ac_exeext conftest.
$ac_ext
11354 if test "$ac_cv_search_sem_init" = no
; then
11355 for ac_lib
in pthread rt posix4
; do
11356 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11357 cat >conftest.
$ac_ext <<_ACEOF
11360 cat confdefs.h
>>conftest.
$ac_ext
11361 cat >>conftest.
$ac_ext <<_ACEOF
11362 /* end confdefs.h. */
11364 /* Override any gcc2 internal prototype to avoid an error. */
11368 /* We use char because int might match the return type of a gcc2
11369 builtin and then its argument prototype would still apply. */
11379 rm -f conftest.
$ac_objext conftest
$ac_exeext
11380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11381 (eval $ac_link) 2>conftest.er1
11383 grep -v '^ *+' conftest.er1
>conftest.err
11385 cat conftest.err
>&5
11386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11387 (exit $ac_status); } &&
11388 { ac_try
='test -z "$ac_c_werror_flag"
11389 || test ! -s conftest.err'
11390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11391 (eval $ac_try) 2>&5
11393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11394 (exit $ac_status); }; } &&
11395 { ac_try
='test -s conftest$ac_exeext'
11396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11397 (eval $ac_try) 2>&5
11399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11400 (exit $ac_status); }; }; then
11401 ac_cv_search_sem_init
="-l$ac_lib"
11404 echo "$as_me: failed program was:" >&5
11405 sed 's/^/| /' conftest.
$ac_ext >&5
11408 rm -f conftest.err conftest.
$ac_objext \
11409 conftest
$ac_exeext conftest.
$ac_ext
11412 LIBS
=$ac_func_search_save_LIBS
11414 echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
11415 echo "${ECHO_T}$ac_cv_search_sem_init" >&6
11416 if test "$ac_cv_search_sem_init" != no
; then
11417 test "$ac_cv_search_sem_init" = "none required" || LIBS
="$ac_cv_search_sem_init $LIBS"
11420 # 'Real Time' functions on Solaris
11421 # posix4 on Solaris 2.6
11422 # pthread (first!) on Linux
11425 # check if we need libintl for locale functions
11426 echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
11427 echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6
11428 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
11429 echo $ECHO_N "(cached) $ECHO_C" >&6
11431 ac_check_lib_save_LIBS
=$LIBS
11432 LIBS
="-lintl $LIBS"
11433 cat >conftest.
$ac_ext <<_ACEOF
11436 cat confdefs.h
>>conftest.
$ac_ext
11437 cat >>conftest.
$ac_ext <<_ACEOF
11438 /* end confdefs.h. */
11440 /* Override any gcc2 internal prototype to avoid an error. */
11444 /* We use char because int might match the return type of a gcc2
11445 builtin and then its argument prototype would still apply. */
11446 char textdomain ();
11455 rm -f conftest.
$ac_objext conftest
$ac_exeext
11456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11457 (eval $ac_link) 2>conftest.er1
11459 grep -v '^ *+' conftest.er1
>conftest.err
11461 cat conftest.err
>&5
11462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11463 (exit $ac_status); } &&
11464 { ac_try
='test -z "$ac_c_werror_flag"
11465 || test ! -s conftest.err'
11466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11467 (eval $ac_try) 2>&5
11469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11470 (exit $ac_status); }; } &&
11471 { ac_try
='test -s conftest$ac_exeext'
11472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11473 (eval $ac_try) 2>&5
11475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11476 (exit $ac_status); }; }; then
11477 ac_cv_lib_intl_textdomain
=yes
11479 echo "$as_me: failed program was:" >&5
11480 sed 's/^/| /' conftest.
$ac_ext >&5
11482 ac_cv_lib_intl_textdomain
=no
11484 rm -f conftest.err conftest.
$ac_objext \
11485 conftest
$ac_exeext conftest.
$ac_ext
11486 LIBS
=$ac_check_lib_save_LIBS
11488 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
11489 echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6
11490 if test $ac_cv_lib_intl_textdomain = yes; then
11492 cat >>confdefs.h
<<\_ACEOF
11493 #define WITH_LIBINTL 1
11499 # checks for system dependent C++ extensions support
11500 case "$ac_sys_system" in
11501 AIX
*) echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
11502 echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6
11503 cat >conftest.
$ac_ext <<_ACEOF
11506 cat confdefs.h
>>conftest.
$ac_ext
11507 cat >>conftest.
$ac_ext <<_ACEOF
11508 /* end confdefs.h. */
11509 #include "/usr/lpp/xlC/include/load.h"
11513 loadAndInit("", 0, "")
11518 rm -f conftest.
$ac_objext conftest
$ac_exeext
11519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11520 (eval $ac_link) 2>conftest.er1
11522 grep -v '^ *+' conftest.er1
>conftest.err
11524 cat conftest.err
>&5
11525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11526 (exit $ac_status); } &&
11527 { ac_try
='test -z "$ac_c_werror_flag"
11528 || test ! -s conftest.err'
11529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11530 (eval $ac_try) 2>&5
11532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11533 (exit $ac_status); }; } &&
11534 { ac_try
='test -s conftest$ac_exeext'
11535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11536 (eval $ac_try) 2>&5
11538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11539 (exit $ac_status); }; }; then
11541 cat >>confdefs.h
<<\_ACEOF
11542 #define AIX_GENUINE_CPLUSPLUS 1
11545 echo "$as_me:$LINENO: result: yes" >&5
11546 echo "${ECHO_T}yes" >&6
11548 echo "$as_me: failed program was:" >&5
11549 sed 's/^/| /' conftest.
$ac_ext >&5
11551 echo "$as_me:$LINENO: result: no" >&5
11552 echo "${ECHO_T}no" >&6
11554 rm -f conftest.err conftest.
$ac_objext \
11555 conftest
$ac_exeext conftest.
$ac_ext;;
11559 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
11560 # BeOS' sockets are stashed in libnet.
11561 echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
11562 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6
11563 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
11564 echo $ECHO_N "(cached) $ECHO_C" >&6
11566 ac_check_lib_save_LIBS
=$LIBS
11568 cat >conftest.
$ac_ext <<_ACEOF
11571 cat confdefs.h
>>conftest.
$ac_ext
11572 cat >>conftest.
$ac_ext <<_ACEOF
11573 /* end confdefs.h. */
11575 /* Override any gcc2 internal prototype to avoid an error. */
11579 /* We use char because int might match the return type of a gcc2
11580 builtin and then its argument prototype would still apply. */
11590 rm -f conftest.
$ac_objext conftest
$ac_exeext
11591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11592 (eval $ac_link) 2>conftest.er1
11594 grep -v '^ *+' conftest.er1
>conftest.err
11596 cat conftest.err
>&5
11597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11598 (exit $ac_status); } &&
11599 { ac_try
='test -z "$ac_c_werror_flag"
11600 || test ! -s conftest.err'
11601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11602 (eval $ac_try) 2>&5
11604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11605 (exit $ac_status); }; } &&
11606 { ac_try
='test -s conftest$ac_exeext'
11607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11608 (eval $ac_try) 2>&5
11610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11611 (exit $ac_status); }; }; then
11612 ac_cv_lib_nsl_t_open
=yes
11614 echo "$as_me: failed program was:" >&5
11615 sed 's/^/| /' conftest.
$ac_ext >&5
11617 ac_cv_lib_nsl_t_open
=no
11619 rm -f conftest.err conftest.
$ac_objext \
11620 conftest
$ac_exeext conftest.
$ac_ext
11621 LIBS
=$ac_check_lib_save_LIBS
11623 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
11624 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6
11625 if test $ac_cv_lib_nsl_t_open = yes; then
11629 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
11630 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
11631 if test "${ac_cv_lib_socket_socket+set}" = set; then
11632 echo $ECHO_N "(cached) $ECHO_C" >&6
11634 ac_check_lib_save_LIBS
=$LIBS
11635 LIBS
="-lsocket $LIBS $LIBS"
11636 cat >conftest.
$ac_ext <<_ACEOF
11639 cat confdefs.h
>>conftest.
$ac_ext
11640 cat >>conftest.
$ac_ext <<_ACEOF
11641 /* end confdefs.h. */
11643 /* Override any gcc2 internal prototype to avoid an error. */
11647 /* We use char because int might match the return type of a gcc2
11648 builtin and then its argument prototype would still apply. */
11658 rm -f conftest.
$ac_objext conftest
$ac_exeext
11659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11660 (eval $ac_link) 2>conftest.er1
11662 grep -v '^ *+' conftest.er1
>conftest.err
11664 cat conftest.err
>&5
11665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11666 (exit $ac_status); } &&
11667 { ac_try
='test -z "$ac_c_werror_flag"
11668 || test ! -s conftest.err'
11669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11670 (eval $ac_try) 2>&5
11672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11673 (exit $ac_status); }; } &&
11674 { ac_try
='test -s conftest$ac_exeext'
11675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11676 (eval $ac_try) 2>&5
11678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11679 (exit $ac_status); }; }; then
11680 ac_cv_lib_socket_socket
=yes
11682 echo "$as_me: failed program was:" >&5
11683 sed 's/^/| /' conftest.
$ac_ext >&5
11685 ac_cv_lib_socket_socket
=no
11687 rm -f conftest.err conftest.
$ac_objext \
11688 conftest
$ac_exeext conftest.
$ac_ext
11689 LIBS
=$ac_check_lib_save_LIBS
11691 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
11692 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
11693 if test $ac_cv_lib_socket_socket = yes; then
11694 LIBS
="-lsocket $LIBS"
11698 case "$ac_sys_system" in
11700 echo "$as_me:$LINENO: checking for socket in -lnet" >&5
11701 echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6
11702 if test "${ac_cv_lib_net_socket+set}" = set; then
11703 echo $ECHO_N "(cached) $ECHO_C" >&6
11705 ac_check_lib_save_LIBS
=$LIBS
11706 LIBS
="-lnet $LIBS $LIBS"
11707 cat >conftest.
$ac_ext <<_ACEOF
11710 cat confdefs.h
>>conftest.
$ac_ext
11711 cat >>conftest.
$ac_ext <<_ACEOF
11712 /* end confdefs.h. */
11714 /* Override any gcc2 internal prototype to avoid an error. */
11718 /* We use char because int might match the return type of a gcc2
11719 builtin and then its argument prototype would still apply. */
11729 rm -f conftest.
$ac_objext conftest
$ac_exeext
11730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11731 (eval $ac_link) 2>conftest.er1
11733 grep -v '^ *+' conftest.er1
>conftest.err
11735 cat conftest.err
>&5
11736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11737 (exit $ac_status); } &&
11738 { ac_try
='test -z "$ac_c_werror_flag"
11739 || test ! -s conftest.err'
11740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11741 (eval $ac_try) 2>&5
11743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11744 (exit $ac_status); }; } &&
11745 { ac_try
='test -s conftest$ac_exeext'
11746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11747 (eval $ac_try) 2>&5
11749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11750 (exit $ac_status); }; }; then
11751 ac_cv_lib_net_socket
=yes
11753 echo "$as_me: failed program was:" >&5
11754 sed 's/^/| /' conftest.
$ac_ext >&5
11756 ac_cv_lib_net_socket
=no
11758 rm -f conftest.err conftest.
$ac_objext \
11759 conftest
$ac_exeext conftest.
$ac_ext
11760 LIBS
=$ac_check_lib_save_LIBS
11762 echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5
11763 echo "${ECHO_T}$ac_cv_lib_net_socket" >&6
11764 if test $ac_cv_lib_net_socket = yes; then
11771 echo "$as_me:$LINENO: checking for --with-libs" >&5
11772 echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6
11774 # Check whether --with-libs or --without-libs was given.
11775 if test "${with_libs+set}" = set; then
11776 withval
="$with_libs"
11778 echo "$as_me:$LINENO: result: $withval" >&5
11779 echo "${ECHO_T}$withval" >&6
11780 LIBS
="$withval $LIBS"
11783 echo "$as_me:$LINENO: result: no" >&5
11784 echo "${ECHO_T}no" >&6
11787 # Check for use of the system libffi library
11788 echo "$as_me:$LINENO: checking for --with-system-ffi" >&5
11789 echo $ECHO_N "checking for --with-system-ffi... $ECHO_C" >&6
11791 # Check whether --with-system_ffi or --without-system_ffi was given.
11792 if test "${with_system_ffi+set}" = set; then
11793 withval
="$with_system_ffi"
11797 if test -z "$with_system_ffi"
11798 then with_system_ffi
="no"
11800 echo "$as_me:$LINENO: result: $with_system_ffi" >&5
11801 echo "${ECHO_T}$with_system_ffi" >&6
11803 # Determine if signalmodule should be used.
11806 echo "$as_me:$LINENO: checking for --with-signal-module" >&5
11807 echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6
11809 # Check whether --with-signal-module or --without-signal-module was given.
11810 if test "${with_signal_module+set}" = set; then
11811 withval
="$with_signal_module"
11815 if test -z "$with_signal_module"
11816 then with_signal_module
="yes"
11818 echo "$as_me:$LINENO: result: $with_signal_module" >&5
11819 echo "${ECHO_T}$with_signal_module" >&6
11821 if test "${with_signal_module}" = "yes"; then
11822 USE_SIGNAL_MODULE
=""
11825 USE_SIGNAL_MODULE
="#"
11826 SIGNAL_OBJS
="Parser/intrcheck.o Python/sigcheck.o"
11829 # This is used to generate Setup.config
11831 USE_THREAD_MODULE
=""
11833 echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
11834 echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6
11837 # Check whether --with-dec-threads or --without-dec-threads was given.
11838 if test "${with_dec_threads+set}" = set; then
11839 withval
="$with_dec_threads"
11841 echo "$as_me:$LINENO: result: $withval" >&5
11842 echo "${ECHO_T}$withval" >&6
11844 if test "${with_thread+set}" != set; then
11845 with_thread
="$withval";
11848 echo "$as_me:$LINENO: result: no" >&5
11849 echo "${ECHO_T}no" >&6
11852 # Templates for things AC_DEFINEd more than once.
11853 # For a single AC_DEFINE, no template is needed.
11861 echo "$as_me:$LINENO: checking for --with-threads" >&5
11862 echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6
11864 # Check whether --with-threads or --without-threads was given.
11865 if test "${with_threads+set}" = set; then
11866 withval
="$with_threads"
11870 # --with-thread is deprecated, but check for it anyway
11872 # Check whether --with-thread or --without-thread was given.
11873 if test "${with_thread+set}" = set; then
11874 withval
="$with_thread"
11875 with_threads
=$with_thread
11878 if test -z "$with_threads"
11879 then with_threads
="yes"
11881 echo "$as_me:$LINENO: result: $with_threads" >&5
11882 echo "${ECHO_T}$with_threads" >&6
11885 if test "$with_threads" = "no"
11887 USE_THREAD_MODULE
="#"
11888 elif test "$ac_cv_pthread_is_default" = yes
11890 cat >>confdefs.h
<<\_ACEOF
11891 #define WITH_THREAD 1
11894 # Defining _REENTRANT on system with POSIX threads should not hurt.
11895 cat >>confdefs.h
<<\_ACEOF
11896 #define _REENTRANT 1
11900 THREADOBJ
="Python/thread.o"
11901 elif test "$ac_cv_kpthread" = "yes"
11904 if test "$ac_cv_cxx_thread" = "yes"; then
11905 CXX
="$CXX -Kpthread"
11907 cat >>confdefs.h
<<\_ACEOF
11908 #define WITH_THREAD 1
11912 THREADOBJ
="Python/thread.o"
11913 elif test "$ac_cv_kthread" = "yes"
11916 if test "$ac_cv_cxx_thread" = "yes"; then
11917 CXX
="$CXX -Kthread"
11919 cat >>confdefs.h
<<\_ACEOF
11920 #define WITH_THREAD 1
11924 THREADOBJ
="Python/thread.o"
11925 elif test "$ac_cv_pthread" = "yes"
11928 if test "$ac_cv_cxx_thread" = "yes"; then
11929 CXX
="$CXX -pthread"
11931 cat >>confdefs.h
<<\_ACEOF
11932 #define WITH_THREAD 1
11936 THREADOBJ
="Python/thread.o"
11938 if test ! -z "$with_threads" -a -d "$with_threads"
11939 then LDFLAGS
="$LDFLAGS -L$with_threads"
11941 if test ! -z "$withval" -a -d "$withval"
11942 then LDFLAGS
="$LDFLAGS -L$withval"
11945 # According to the POSIX spec, a pthreads implementation must
11946 # define _POSIX_THREADS in unistd.h. Some apparently don't
11947 # (e.g. gnu pth with pthread emulation)
11948 echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
11949 echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6
11950 cat >conftest.
$ac_ext <<_ACEOF
11953 cat confdefs.h
>>conftest.
$ac_ext
11954 cat >>conftest.
$ac_ext <<_ACEOF
11955 /* end confdefs.h. */
11957 #include <unistd.h>
11958 #ifdef _POSIX_THREADS
11963 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11964 $EGREP "yes" >/dev
/null
2>&1; then
11965 unistd_defines_pthreads
=yes
11967 unistd_defines_pthreads
=no
11971 echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
11972 echo "${ECHO_T}$unistd_defines_pthreads" >&6
11974 cat >>confdefs.h
<<\_ACEOF
11975 #define _REENTRANT 1
11978 if test "${ac_cv_header_cthreads_h+set}" = set; then
11979 echo "$as_me:$LINENO: checking for cthreads.h" >&5
11980 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6
11981 if test "${ac_cv_header_cthreads_h+set}" = set; then
11982 echo $ECHO_N "(cached) $ECHO_C" >&6
11984 echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
11985 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6
11987 # Is the header compilable?
11988 echo "$as_me:$LINENO: checking cthreads.h usability" >&5
11989 echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6
11990 cat >conftest.
$ac_ext <<_ACEOF
11993 cat confdefs.h
>>conftest.
$ac_ext
11994 cat >>conftest.
$ac_ext <<_ACEOF
11995 /* end confdefs.h. */
11996 $ac_includes_default
11997 #include <cthreads.h>
11999 rm -f conftest.
$ac_objext
12000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12001 (eval $ac_compile) 2>conftest.er1
12003 grep -v '^ *+' conftest.er1
>conftest.err
12005 cat conftest.err
>&5
12006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12007 (exit $ac_status); } &&
12008 { ac_try
='test -z "$ac_c_werror_flag"
12009 || test ! -s conftest.err'
12010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12011 (eval $ac_try) 2>&5
12013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12014 (exit $ac_status); }; } &&
12015 { ac_try
='test -s conftest.$ac_objext'
12016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12017 (eval $ac_try) 2>&5
12019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12020 (exit $ac_status); }; }; then
12021 ac_header_compiler
=yes
12023 echo "$as_me: failed program was:" >&5
12024 sed 's/^/| /' conftest.
$ac_ext >&5
12026 ac_header_compiler
=no
12028 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12029 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12030 echo "${ECHO_T}$ac_header_compiler" >&6
12032 # Is the header present?
12033 echo "$as_me:$LINENO: checking cthreads.h presence" >&5
12034 echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6
12035 cat >conftest.
$ac_ext <<_ACEOF
12038 cat confdefs.h
>>conftest.
$ac_ext
12039 cat >>conftest.
$ac_ext <<_ACEOF
12040 /* end confdefs.h. */
12041 #include <cthreads.h>
12043 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12044 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12046 grep -v '^ *+' conftest.er1
>conftest.err
12048 cat conftest.err
>&5
12049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12050 (exit $ac_status); } >/dev
/null
; then
12051 if test -s conftest.err
; then
12052 ac_cpp_err
=$ac_c_preproc_warn_flag
12053 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12060 if test -z "$ac_cpp_err"; then
12061 ac_header_preproc
=yes
12063 echo "$as_me: failed program was:" >&5
12064 sed 's/^/| /' conftest.
$ac_ext >&5
12066 ac_header_preproc
=no
12068 rm -f conftest.err conftest.
$ac_ext
12069 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12070 echo "${ECHO_T}$ac_header_preproc" >&6
12072 # So? What about this header?
12073 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12075 { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
12076 echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12077 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5
12078 echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;}
12079 ac_header_preproc
=yes
12082 { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
12083 echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
12084 { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
12085 echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
12086 { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5
12087 echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;}
12088 { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
12089 echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
12090 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
12091 echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;}
12092 { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5
12093 echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;}
12096 ## ------------------------------------------------ ##
12097 ## Report this to http://www.python.org/python-bugs ##
12098 ## ------------------------------------------------ ##
12101 sed "s/^/$as_me: WARNING: /" >&2
12104 echo "$as_me:$LINENO: checking for cthreads.h" >&5
12105 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6
12106 if test "${ac_cv_header_cthreads_h+set}" = set; then
12107 echo $ECHO_N "(cached) $ECHO_C" >&6
12109 ac_cv_header_cthreads_h
=$ac_header_preproc
12111 echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
12112 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6
12115 if test $ac_cv_header_cthreads_h = yes; then
12116 cat >>confdefs.h
<<\_ACEOF
12117 #define WITH_THREAD 1
12120 cat >>confdefs.h
<<\_ACEOF
12121 #define C_THREADS 1
12125 cat >>confdefs.h
<<\_ACEOF
12126 #define HURD_C_THREADS 1
12129 LIBS
="$LIBS -lthreads"
12130 THREADOBJ
="Python/thread.o"
12133 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
12134 echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
12135 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6
12136 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
12137 echo $ECHO_N "(cached) $ECHO_C" >&6
12139 echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
12140 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6
12142 # Is the header compilable?
12143 echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
12144 echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6
12145 cat >conftest.
$ac_ext <<_ACEOF
12148 cat confdefs.h
>>conftest.
$ac_ext
12149 cat >>conftest.
$ac_ext <<_ACEOF
12150 /* end confdefs.h. */
12151 $ac_includes_default
12152 #include <mach/cthreads.h>
12154 rm -f conftest.
$ac_objext
12155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12156 (eval $ac_compile) 2>conftest.er1
12158 grep -v '^ *+' conftest.er1
>conftest.err
12160 cat conftest.err
>&5
12161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12162 (exit $ac_status); } &&
12163 { ac_try
='test -z "$ac_c_werror_flag"
12164 || test ! -s conftest.err'
12165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12166 (eval $ac_try) 2>&5
12168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12169 (exit $ac_status); }; } &&
12170 { ac_try
='test -s conftest.$ac_objext'
12171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12172 (eval $ac_try) 2>&5
12174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12175 (exit $ac_status); }; }; then
12176 ac_header_compiler
=yes
12178 echo "$as_me: failed program was:" >&5
12179 sed 's/^/| /' conftest.
$ac_ext >&5
12181 ac_header_compiler
=no
12183 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12184 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12185 echo "${ECHO_T}$ac_header_compiler" >&6
12187 # Is the header present?
12188 echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
12189 echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6
12190 cat >conftest.
$ac_ext <<_ACEOF
12193 cat confdefs.h
>>conftest.
$ac_ext
12194 cat >>conftest.
$ac_ext <<_ACEOF
12195 /* end confdefs.h. */
12196 #include <mach/cthreads.h>
12198 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12199 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12201 grep -v '^ *+' conftest.er1
>conftest.err
12203 cat conftest.err
>&5
12204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12205 (exit $ac_status); } >/dev
/null
; then
12206 if test -s conftest.err
; then
12207 ac_cpp_err
=$ac_c_preproc_warn_flag
12208 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12215 if test -z "$ac_cpp_err"; then
12216 ac_header_preproc
=yes
12218 echo "$as_me: failed program was:" >&5
12219 sed 's/^/| /' conftest.
$ac_ext >&5
12221 ac_header_preproc
=no
12223 rm -f conftest.err conftest.
$ac_ext
12224 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12225 echo "${ECHO_T}$ac_header_preproc" >&6
12227 # So? What about this header?
12228 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12230 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
12231 echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12232 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
12233 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
12234 ac_header_preproc
=yes
12237 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
12238 echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
12239 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
12240 echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
12241 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
12242 echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
12243 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
12244 echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
12245 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
12246 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
12247 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
12248 echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
12251 ## ------------------------------------------------ ##
12252 ## Report this to http://www.python.org/python-bugs ##
12253 ## ------------------------------------------------ ##
12256 sed "s/^/$as_me: WARNING: /" >&2
12259 echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
12260 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6
12261 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
12262 echo $ECHO_N "(cached) $ECHO_C" >&6
12264 ac_cv_header_mach_cthreads_h
=$ac_header_preproc
12266 echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
12267 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6
12270 if test $ac_cv_header_mach_cthreads_h = yes; then
12271 cat >>confdefs.h
<<\_ACEOF
12272 #define WITH_THREAD 1
12275 cat >>confdefs.h
<<\_ACEOF
12276 #define C_THREADS 1
12280 cat >>confdefs.h
<<\_ACEOF
12281 #define MACH_C_THREADS 1
12284 THREADOBJ
="Python/thread.o"
12287 echo "$as_me:$LINENO: checking for --with-pth" >&5
12288 echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6
12290 # Check whether --with-pth or --without-pth was given.
12291 if test "${with_pth+set}" = set; then
12292 withval
="$with_pth"
12293 echo "$as_me:$LINENO: result: $withval" >&5
12294 echo "${ECHO_T}$withval" >&6
12295 cat >>confdefs.h
<<\_ACEOF
12296 #define WITH_THREAD 1
12300 cat >>confdefs.h
<<\_ACEOF
12305 THREADOBJ
="Python/thread.o"
12307 echo "$as_me:$LINENO: result: no" >&5
12308 echo "${ECHO_T}no" >&6
12310 # Just looking for pthread_create in libpthread is not enough:
12311 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
12312 # So we really have to include pthread.h, and then link.
12314 LIBS
="$LIBS -lpthread"
12315 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
12316 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
12317 cat >conftest.
$ac_ext <<_ACEOF
12320 cat confdefs.h
>>conftest.
$ac_ext
12321 cat >>conftest.
$ac_ext <<_ACEOF
12322 /* end confdefs.h. */
12323 #include <pthread.h>
12325 void * start_routine (void *arg) { exit (0); }
12330 pthread_create (NULL, NULL, start_routine, NULL)
12335 rm -f conftest.
$ac_objext conftest
$ac_exeext
12336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12337 (eval $ac_link) 2>conftest.er1
12339 grep -v '^ *+' conftest.er1
>conftest.err
12341 cat conftest.err
>&5
12342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343 (exit $ac_status); } &&
12344 { ac_try
='test -z "$ac_c_werror_flag"
12345 || test ! -s conftest.err'
12346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12347 (eval $ac_try) 2>&5
12349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12350 (exit $ac_status); }; } &&
12351 { ac_try
='test -s conftest$ac_exeext'
12352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12353 (eval $ac_try) 2>&5
12355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12356 (exit $ac_status); }; }; then
12358 echo "$as_me:$LINENO: result: yes" >&5
12359 echo "${ECHO_T}yes" >&6
12360 cat >>confdefs.h
<<\_ACEOF
12361 #define WITH_THREAD 1
12365 THREADOBJ
="Python/thread.o"
12367 echo "$as_me: failed program was:" >&5
12368 sed 's/^/| /' conftest.
$ac_ext >&5
12372 echo "$as_me:$LINENO: checking for pthread_detach" >&5
12373 echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6
12374 if test "${ac_cv_func_pthread_detach+set}" = set; then
12375 echo $ECHO_N "(cached) $ECHO_C" >&6
12377 cat >conftest.
$ac_ext <<_ACEOF
12380 cat confdefs.h
>>conftest.
$ac_ext
12381 cat >>conftest.
$ac_ext <<_ACEOF
12382 /* end confdefs.h. */
12383 /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach.
12384 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12385 #define pthread_detach innocuous_pthread_detach
12387 /* System header to define __stub macros and hopefully few prototypes,
12388 which can conflict with char pthread_detach (); below.
12389 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12390 <limits.h> exists even on freestanding compilers. */
12393 # include <limits.h>
12395 # include <assert.h>
12398 #undef pthread_detach
12400 /* Override any gcc2 internal prototype to avoid an error. */
12405 /* We use char because int might match the return type of a gcc2
12406 builtin and then its argument prototype would still apply. */
12407 char pthread_detach ();
12408 /* The GNU C library defines this for functions which it implements
12409 to always fail with ENOSYS. Some functions are actually named
12410 something starting with __ and the normal name is an alias. */
12411 #if defined (__stub_pthread_detach) || defined (__stub___pthread_detach)
12414 char (*f) () = pthread_detach;
12423 return f != pthread_detach;
12428 rm -f conftest.
$ac_objext conftest
$ac_exeext
12429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12430 (eval $ac_link) 2>conftest.er1
12432 grep -v '^ *+' conftest.er1
>conftest.err
12434 cat conftest.err
>&5
12435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436 (exit $ac_status); } &&
12437 { ac_try
='test -z "$ac_c_werror_flag"
12438 || test ! -s conftest.err'
12439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12440 (eval $ac_try) 2>&5
12442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12443 (exit $ac_status); }; } &&
12444 { ac_try
='test -s conftest$ac_exeext'
12445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12446 (eval $ac_try) 2>&5
12448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12449 (exit $ac_status); }; }; then
12450 ac_cv_func_pthread_detach
=yes
12452 echo "$as_me: failed program was:" >&5
12453 sed 's/^/| /' conftest.
$ac_ext >&5
12455 ac_cv_func_pthread_detach
=no
12457 rm -f conftest.err conftest.
$ac_objext \
12458 conftest
$ac_exeext conftest.
$ac_ext
12460 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
12461 echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6
12462 if test $ac_cv_func_pthread_detach = yes; then
12463 cat >>confdefs.h
<<\_ACEOF
12464 #define WITH_THREAD 1
12468 THREADOBJ
="Python/thread.o"
12471 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
12472 echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
12473 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6
12474 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
12475 echo $ECHO_N "(cached) $ECHO_C" >&6
12477 echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
12478 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6
12480 # Is the header compilable?
12481 echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
12482 echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6
12483 cat >conftest.
$ac_ext <<_ACEOF
12486 cat confdefs.h
>>conftest.
$ac_ext
12487 cat >>conftest.
$ac_ext <<_ACEOF
12488 /* end confdefs.h. */
12489 $ac_includes_default
12490 #include <atheos/threads.h>
12492 rm -f conftest.
$ac_objext
12493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12494 (eval $ac_compile) 2>conftest.er1
12496 grep -v '^ *+' conftest.er1
>conftest.err
12498 cat conftest.err
>&5
12499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12500 (exit $ac_status); } &&
12501 { ac_try
='test -z "$ac_c_werror_flag"
12502 || test ! -s conftest.err'
12503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12504 (eval $ac_try) 2>&5
12506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12507 (exit $ac_status); }; } &&
12508 { ac_try
='test -s conftest.$ac_objext'
12509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12510 (eval $ac_try) 2>&5
12512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12513 (exit $ac_status); }; }; then
12514 ac_header_compiler
=yes
12516 echo "$as_me: failed program was:" >&5
12517 sed 's/^/| /' conftest.
$ac_ext >&5
12519 ac_header_compiler
=no
12521 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12522 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12523 echo "${ECHO_T}$ac_header_compiler" >&6
12525 # Is the header present?
12526 echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
12527 echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6
12528 cat >conftest.
$ac_ext <<_ACEOF
12531 cat confdefs.h
>>conftest.
$ac_ext
12532 cat >>conftest.
$ac_ext <<_ACEOF
12533 /* end confdefs.h. */
12534 #include <atheos/threads.h>
12536 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12537 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12539 grep -v '^ *+' conftest.er1
>conftest.err
12541 cat conftest.err
>&5
12542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12543 (exit $ac_status); } >/dev
/null
; then
12544 if test -s conftest.err
; then
12545 ac_cpp_err
=$ac_c_preproc_warn_flag
12546 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12553 if test -z "$ac_cpp_err"; then
12554 ac_header_preproc
=yes
12556 echo "$as_me: failed program was:" >&5
12557 sed 's/^/| /' conftest.
$ac_ext >&5
12559 ac_header_preproc
=no
12561 rm -f conftest.err conftest.
$ac_ext
12562 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12563 echo "${ECHO_T}$ac_header_preproc" >&6
12565 # So? What about this header?
12566 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12568 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
12569 echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12570 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5
12571 echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;}
12572 ac_header_preproc
=yes
12575 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
12576 echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
12577 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
12578 echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
12579 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5
12580 echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;}
12581 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5
12582 echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;}
12583 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
12584 echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;}
12585 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5
12586 echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;}
12589 ## ------------------------------------------------ ##
12590 ## Report this to http://www.python.org/python-bugs ##
12591 ## ------------------------------------------------ ##
12594 sed "s/^/$as_me: WARNING: /" >&2
12597 echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
12598 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6
12599 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
12600 echo $ECHO_N "(cached) $ECHO_C" >&6
12602 ac_cv_header_atheos_threads_h
=$ac_header_preproc
12604 echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
12605 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6
12608 if test $ac_cv_header_atheos_threads_h = yes; then
12609 cat >>confdefs.h
<<\_ACEOF
12610 #define WITH_THREAD 1
12614 cat >>confdefs.h
<<\_ACEOF
12615 #define ATHEOS_THREADS 1
12618 THREADOBJ
="Python/thread.o"
12621 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
12622 echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
12623 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6
12624 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
12625 echo $ECHO_N "(cached) $ECHO_C" >&6
12627 echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
12628 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6
12630 # Is the header compilable?
12631 echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5
12632 echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6
12633 cat >conftest.
$ac_ext <<_ACEOF
12636 cat confdefs.h
>>conftest.
$ac_ext
12637 cat >>conftest.
$ac_ext <<_ACEOF
12638 /* end confdefs.h. */
12639 $ac_includes_default
12640 #include <kernel/OS.h>
12642 rm -f conftest.
$ac_objext
12643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12644 (eval $ac_compile) 2>conftest.er1
12646 grep -v '^ *+' conftest.er1
>conftest.err
12648 cat conftest.err
>&5
12649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12650 (exit $ac_status); } &&
12651 { ac_try
='test -z "$ac_c_werror_flag"
12652 || test ! -s conftest.err'
12653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12654 (eval $ac_try) 2>&5
12656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12657 (exit $ac_status); }; } &&
12658 { ac_try
='test -s conftest.$ac_objext'
12659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12660 (eval $ac_try) 2>&5
12662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12663 (exit $ac_status); }; }; then
12664 ac_header_compiler
=yes
12666 echo "$as_me: failed program was:" >&5
12667 sed 's/^/| /' conftest.
$ac_ext >&5
12669 ac_header_compiler
=no
12671 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12672 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12673 echo "${ECHO_T}$ac_header_compiler" >&6
12675 # Is the header present?
12676 echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5
12677 echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6
12678 cat >conftest.
$ac_ext <<_ACEOF
12681 cat confdefs.h
>>conftest.
$ac_ext
12682 cat >>conftest.
$ac_ext <<_ACEOF
12683 /* end confdefs.h. */
12684 #include <kernel/OS.h>
12686 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12687 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12689 grep -v '^ *+' conftest.er1
>conftest.err
12691 cat conftest.err
>&5
12692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12693 (exit $ac_status); } >/dev
/null
; then
12694 if test -s conftest.err
; then
12695 ac_cpp_err
=$ac_c_preproc_warn_flag
12696 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12703 if test -z "$ac_cpp_err"; then
12704 ac_header_preproc
=yes
12706 echo "$as_me: failed program was:" >&5
12707 sed 's/^/| /' conftest.
$ac_ext >&5
12709 ac_header_preproc
=no
12711 rm -f conftest.err conftest.
$ac_ext
12712 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12713 echo "${ECHO_T}$ac_header_preproc" >&6
12715 # So? What about this header?
12716 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12718 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5
12719 echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12720 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5
12721 echo "$as_me: WARNING: kernel/OS.h: proceeding with the compiler's result" >&2;}
12722 ac_header_preproc
=yes
12725 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5
12726 echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;}
12727 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5
12728 echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;}
12729 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5
12730 echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;}
12731 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5
12732 echo "$as_me: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&2;}
12733 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5
12734 echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;}
12735 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5
12736 echo "$as_me: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&2;}
12739 ## ------------------------------------------------ ##
12740 ## Report this to http://www.python.org/python-bugs ##
12741 ## ------------------------------------------------ ##
12744 sed "s/^/$as_me: WARNING: /" >&2
12747 echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
12748 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6
12749 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
12750 echo $ECHO_N "(cached) $ECHO_C" >&6
12752 ac_cv_header_kernel_OS_h
=$ac_header_preproc
12754 echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
12755 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6
12758 if test $ac_cv_header_kernel_OS_h = yes; then
12759 cat >>confdefs.h
<<\_ACEOF
12760 #define WITH_THREAD 1
12764 cat >>confdefs.h
<<\_ACEOF
12765 #define BEOS_THREADS 1
12768 THREADOBJ
="Python/thread.o"
12771 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
12772 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
12773 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
12774 echo $ECHO_N "(cached) $ECHO_C" >&6
12776 ac_check_lib_save_LIBS
=$LIBS
12777 LIBS
="-lpthreads $LIBS"
12778 cat >conftest.
$ac_ext <<_ACEOF
12781 cat confdefs.h
>>conftest.
$ac_ext
12782 cat >>conftest.
$ac_ext <<_ACEOF
12783 /* end confdefs.h. */
12785 /* Override any gcc2 internal prototype to avoid an error. */
12789 /* We use char because int might match the return type of a gcc2
12790 builtin and then its argument prototype would still apply. */
12791 char pthread_create ();
12800 rm -f conftest.
$ac_objext conftest
$ac_exeext
12801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12802 (eval $ac_link) 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); } &&
12809 { ac_try
='test -z "$ac_c_werror_flag"
12810 || test ! -s conftest.err'
12811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12812 (eval $ac_try) 2>&5
12814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12815 (exit $ac_status); }; } &&
12816 { ac_try
='test -s conftest$ac_exeext'
12817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12818 (eval $ac_try) 2>&5
12820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12821 (exit $ac_status); }; }; then
12822 ac_cv_lib_pthreads_pthread_create
=yes
12824 echo "$as_me: failed program was:" >&5
12825 sed 's/^/| /' conftest.
$ac_ext >&5
12827 ac_cv_lib_pthreads_pthread_create
=no
12829 rm -f conftest.err conftest.
$ac_objext \
12830 conftest
$ac_exeext conftest.
$ac_ext
12831 LIBS
=$ac_check_lib_save_LIBS
12833 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
12834 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
12835 if test $ac_cv_lib_pthreads_pthread_create = yes; then
12836 cat >>confdefs.h
<<\_ACEOF
12837 #define WITH_THREAD 1
12841 LIBS
="$LIBS -lpthreads"
12842 THREADOBJ
="Python/thread.o"
12845 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
12846 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
12847 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
12848 echo $ECHO_N "(cached) $ECHO_C" >&6
12850 ac_check_lib_save_LIBS
=$LIBS
12852 cat >conftest.
$ac_ext <<_ACEOF
12855 cat confdefs.h
>>conftest.
$ac_ext
12856 cat >>conftest.
$ac_ext <<_ACEOF
12857 /* end confdefs.h. */
12859 /* Override any gcc2 internal prototype to avoid an error. */
12863 /* We use char because int might match the return type of a gcc2
12864 builtin and then its argument prototype would still apply. */
12865 char pthread_create ();
12874 rm -f conftest.
$ac_objext conftest
$ac_exeext
12875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12876 (eval $ac_link) 2>conftest.er1
12878 grep -v '^ *+' conftest.er1
>conftest.err
12880 cat conftest.err
>&5
12881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12882 (exit $ac_status); } &&
12883 { ac_try
='test -z "$ac_c_werror_flag"
12884 || test ! -s conftest.err'
12885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12886 (eval $ac_try) 2>&5
12888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12889 (exit $ac_status); }; } &&
12890 { ac_try
='test -s conftest$ac_exeext'
12891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12892 (eval $ac_try) 2>&5
12894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12895 (exit $ac_status); }; }; then
12896 ac_cv_lib_c_r_pthread_create
=yes
12898 echo "$as_me: failed program was:" >&5
12899 sed 's/^/| /' conftest.
$ac_ext >&5
12901 ac_cv_lib_c_r_pthread_create
=no
12903 rm -f conftest.err conftest.
$ac_objext \
12904 conftest
$ac_exeext conftest.
$ac_ext
12905 LIBS
=$ac_check_lib_save_LIBS
12907 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
12908 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
12909 if test $ac_cv_lib_c_r_pthread_create = yes; then
12910 cat >>confdefs.h
<<\_ACEOF
12911 #define WITH_THREAD 1
12916 THREADOBJ
="Python/thread.o"
12919 echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
12920 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6
12921 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
12922 echo $ECHO_N "(cached) $ECHO_C" >&6
12924 ac_check_lib_save_LIBS
=$LIBS
12925 LIBS
="-lpthread $LIBS"
12926 cat >conftest.
$ac_ext <<_ACEOF
12929 cat confdefs.h
>>conftest.
$ac_ext
12930 cat >>conftest.
$ac_ext <<_ACEOF
12931 /* end confdefs.h. */
12933 /* Override any gcc2 internal prototype to avoid an error. */
12937 /* We use char because int might match the return type of a gcc2
12938 builtin and then its argument prototype would still apply. */
12939 char __pthread_create_system ();
12943 __pthread_create_system ();
12948 rm -f conftest.
$ac_objext conftest
$ac_exeext
12949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12950 (eval $ac_link) 2>conftest.er1
12952 grep -v '^ *+' conftest.er1
>conftest.err
12954 cat conftest.err
>&5
12955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12956 (exit $ac_status); } &&
12957 { ac_try
='test -z "$ac_c_werror_flag"
12958 || test ! -s conftest.err'
12959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12960 (eval $ac_try) 2>&5
12962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12963 (exit $ac_status); }; } &&
12964 { ac_try
='test -s conftest$ac_exeext'
12965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12966 (eval $ac_try) 2>&5
12968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12969 (exit $ac_status); }; }; then
12970 ac_cv_lib_pthread___pthread_create_system
=yes
12972 echo "$as_me: failed program was:" >&5
12973 sed 's/^/| /' conftest.
$ac_ext >&5
12975 ac_cv_lib_pthread___pthread_create_system
=no
12977 rm -f conftest.err conftest.
$ac_objext \
12978 conftest
$ac_exeext conftest.
$ac_ext
12979 LIBS
=$ac_check_lib_save_LIBS
12981 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
12982 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6
12983 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
12984 cat >>confdefs.h
<<\_ACEOF
12985 #define WITH_THREAD 1
12989 LIBS
="$LIBS -lpthread"
12990 THREADOBJ
="Python/thread.o"
12993 echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
12994 echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6
12995 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
12996 echo $ECHO_N "(cached) $ECHO_C" >&6
12998 ac_check_lib_save_LIBS
=$LIBS
13000 cat >conftest.
$ac_ext <<_ACEOF
13003 cat confdefs.h
>>conftest.
$ac_ext
13004 cat >>conftest.
$ac_ext <<_ACEOF
13005 /* end confdefs.h. */
13007 /* Override any gcc2 internal prototype to avoid an error. */
13011 /* We use char because int might match the return type of a gcc2
13012 builtin and then its argument prototype would still apply. */
13013 char pthread_create ();
13022 rm -f conftest.
$ac_objext conftest
$ac_exeext
13023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13024 (eval $ac_link) 2>conftest.er1
13026 grep -v '^ *+' conftest.er1
>conftest.err
13028 cat conftest.err
>&5
13029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13030 (exit $ac_status); } &&
13031 { ac_try
='test -z "$ac_c_werror_flag"
13032 || test ! -s conftest.err'
13033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13034 (eval $ac_try) 2>&5
13036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13037 (exit $ac_status); }; } &&
13038 { ac_try
='test -s conftest$ac_exeext'
13039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13040 (eval $ac_try) 2>&5
13042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13043 (exit $ac_status); }; }; then
13044 ac_cv_lib_cma_pthread_create
=yes
13046 echo "$as_me: failed program was:" >&5
13047 sed 's/^/| /' conftest.
$ac_ext >&5
13049 ac_cv_lib_cma_pthread_create
=no
13051 rm -f conftest.err conftest.
$ac_objext \
13052 conftest
$ac_exeext conftest.
$ac_ext
13053 LIBS
=$ac_check_lib_save_LIBS
13055 echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
13056 echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6
13057 if test $ac_cv_lib_cma_pthread_create = yes; then
13058 cat >>confdefs.h
<<\_ACEOF
13059 #define WITH_THREAD 1
13064 THREADOBJ
="Python/thread.o"
13067 USE_THREAD_MODULE
="#"
13086 rm -f conftest.err conftest.
$ac_objext \
13087 conftest
$ac_exeext conftest.
$ac_ext
13096 echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
13097 echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6
13098 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
13099 echo $ECHO_N "(cached) $ECHO_C" >&6
13101 ac_check_lib_save_LIBS
=$LIBS
13103 cat >conftest.
$ac_ext <<_ACEOF
13106 cat confdefs.h
>>conftest.
$ac_ext
13107 cat >>conftest.
$ac_ext <<_ACEOF
13108 /* end confdefs.h. */
13110 /* Override any gcc2 internal prototype to avoid an error. */
13114 /* We use char because int might match the return type of a gcc2
13115 builtin and then its argument prototype would still apply. */
13125 rm -f conftest.
$ac_objext conftest
$ac_exeext
13126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13127 (eval $ac_link) 2>conftest.er1
13129 grep -v '^ *+' conftest.er1
>conftest.err
13131 cat conftest.err
>&5
13132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13133 (exit $ac_status); } &&
13134 { ac_try
='test -z "$ac_c_werror_flag"
13135 || test ! -s conftest.err'
13136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13137 (eval $ac_try) 2>&5
13139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13140 (exit $ac_status); }; } &&
13141 { ac_try
='test -s conftest$ac_exeext'
13142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13143 (eval $ac_try) 2>&5
13145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13146 (exit $ac_status); }; }; then
13147 ac_cv_lib_mpc_usconfig
=yes
13149 echo "$as_me: failed program was:" >&5
13150 sed 's/^/| /' conftest.
$ac_ext >&5
13152 ac_cv_lib_mpc_usconfig
=no
13154 rm -f conftest.err conftest.
$ac_objext \
13155 conftest
$ac_exeext conftest.
$ac_ext
13156 LIBS
=$ac_check_lib_save_LIBS
13158 echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
13159 echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6
13160 if test $ac_cv_lib_mpc_usconfig = yes; then
13161 cat >>confdefs.h
<<\_ACEOF
13162 #define WITH_THREAD 1
13166 THREADOBJ
="Python/thread.o"
13167 USE_THREAD_MODULE
=""
13171 if test "$posix_threads" != "yes"; then
13172 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
13173 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
13174 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
13175 echo $ECHO_N "(cached) $ECHO_C" >&6
13177 ac_check_lib_save_LIBS
=$LIBS
13178 LIBS
="-lthread $LIBS"
13179 cat >conftest.
$ac_ext <<_ACEOF
13182 cat confdefs.h
>>conftest.
$ac_ext
13183 cat >>conftest.
$ac_ext <<_ACEOF
13184 /* end confdefs.h. */
13186 /* Override any gcc2 internal prototype to avoid an error. */
13190 /* We use char because int might match the return type of a gcc2
13191 builtin and then its argument prototype would still apply. */
13192 char thr_create ();
13201 rm -f conftest.
$ac_objext conftest
$ac_exeext
13202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13203 (eval $ac_link) 2>conftest.er1
13205 grep -v '^ *+' conftest.er1
>conftest.err
13207 cat conftest.err
>&5
13208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13209 (exit $ac_status); } &&
13210 { ac_try
='test -z "$ac_c_werror_flag"
13211 || test ! -s conftest.err'
13212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13213 (eval $ac_try) 2>&5
13215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13216 (exit $ac_status); }; } &&
13217 { ac_try
='test -s conftest$ac_exeext'
13218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13219 (eval $ac_try) 2>&5
13221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13222 (exit $ac_status); }; }; then
13223 ac_cv_lib_thread_thr_create
=yes
13225 echo "$as_me: failed program was:" >&5
13226 sed 's/^/| /' conftest.
$ac_ext >&5
13228 ac_cv_lib_thread_thr_create
=no
13230 rm -f conftest.err conftest.
$ac_objext \
13231 conftest
$ac_exeext conftest.
$ac_ext
13232 LIBS
=$ac_check_lib_save_LIBS
13234 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
13235 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
13236 if test $ac_cv_lib_thread_thr_create = yes; then
13237 cat >>confdefs.h
<<\_ACEOF
13238 #define WITH_THREAD 1
13241 LIBS
="$LIBS -lthread"
13242 THREADOBJ
="Python/thread.o"
13243 USE_THREAD_MODULE
=""
13248 if test "$USE_THREAD_MODULE" != "#"
13250 # If the above checks didn't disable threads, (at least) OSF1
13251 # needs this '-threads' argument during linking.
13252 case $ac_sys_system in
13253 OSF1
) LDLAST
=-threads;;
13258 if test "$posix_threads" = "yes"; then
13259 if test "$unistd_defines_pthreads" = "no"; then
13261 cat >>confdefs.h
<<\_ACEOF
13262 #define _POSIX_THREADS 1
13267 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
13268 case $ac_sys_system/$ac_sys_release in
13270 cat >>confdefs.h
<<\_ACEOF
13271 #define HAVE_PTHREAD_DESTRUCTOR 1
13276 cat >>confdefs.h
<<\_ACEOF
13277 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
13283 echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
13284 echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6
13285 if test "${ac_cv_pthread_system_supported+set}" = set; then
13286 echo $ECHO_N "(cached) $ECHO_C" >&6
13288 if test "$cross_compiling" = yes; then
13289 ac_cv_pthread_system_supported
=no
13291 cat >conftest.
$ac_ext <<_ACEOF
13294 cat confdefs.h
>>conftest.
$ac_ext
13295 cat >>conftest.
$ac_ext <<_ACEOF
13296 /* end confdefs.h. */
13297 #include <pthread.h>
13298 void *foo(void *parm) {
13302 pthread_attr_t attr;
13304 if (pthread_attr_init(&attr)) exit(-1);
13305 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
13306 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
13310 rm -f conftest
$ac_exeext
13311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13312 (eval $ac_link) 2>&5
13314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13315 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13317 (eval $ac_try) 2>&5
13319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13320 (exit $ac_status); }; }; then
13321 ac_cv_pthread_system_supported
=yes
13323 echo "$as_me: program exited with status $ac_status" >&5
13324 echo "$as_me: failed program was:" >&5
13325 sed 's/^/| /' conftest.
$ac_ext >&5
13327 ( exit $ac_status )
13328 ac_cv_pthread_system_supported
=no
13330 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13335 echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
13336 echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6
13337 if test "$ac_cv_pthread_system_supported" = "yes"; then
13339 cat >>confdefs.h
<<\_ACEOF
13340 #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
13345 for ac_func
in pthread_sigmask
13347 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13348 echo "$as_me:$LINENO: checking for $ac_func" >&5
13349 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13350 if eval "test \"\${$as_ac_var+set}\" = set"; then
13351 echo $ECHO_N "(cached) $ECHO_C" >&6
13353 cat >conftest.
$ac_ext <<_ACEOF
13356 cat confdefs.h
>>conftest.
$ac_ext
13357 cat >>conftest.
$ac_ext <<_ACEOF
13358 /* end confdefs.h. */
13359 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13360 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13361 #define $ac_func innocuous_$ac_func
13363 /* System header to define __stub macros and hopefully few prototypes,
13364 which can conflict with char $ac_func (); below.
13365 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13366 <limits.h> exists even on freestanding compilers. */
13369 # include <limits.h>
13371 # include <assert.h>
13376 /* Override any gcc2 internal prototype to avoid an error. */
13381 /* We use char because int might match the return type of a gcc2
13382 builtin and then its argument prototype would still apply. */
13384 /* The GNU C library defines this for functions which it implements
13385 to always fail with ENOSYS. Some functions are actually named
13386 something starting with __ and the normal name is an alias. */
13387 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13390 char (*f) () = $ac_func;
13399 return f != $ac_func;
13404 rm -f conftest.
$ac_objext conftest
$ac_exeext
13405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13406 (eval $ac_link) 2>conftest.er1
13408 grep -v '^ *+' conftest.er1
>conftest.err
13410 cat conftest.err
>&5
13411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13412 (exit $ac_status); } &&
13413 { ac_try
='test -z "$ac_c_werror_flag"
13414 || test ! -s conftest.err'
13415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13416 (eval $ac_try) 2>&5
13418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13419 (exit $ac_status); }; } &&
13420 { ac_try
='test -s conftest$ac_exeext'
13421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13422 (eval $ac_try) 2>&5
13424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13425 (exit $ac_status); }; }; then
13426 eval "$as_ac_var=yes"
13428 echo "$as_me: failed program was:" >&5
13429 sed 's/^/| /' conftest.
$ac_ext >&5
13431 eval "$as_ac_var=no"
13433 rm -f conftest.err conftest.
$ac_objext \
13434 conftest
$ac_exeext conftest.
$ac_ext
13436 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13437 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13438 if test `eval echo '${'$as_ac_var'}'` = yes; then
13439 cat >>confdefs.h
<<_ACEOF
13440 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13442 case $ac_sys_system in
13445 cat >>confdefs.h
<<\_ACEOF
13446 #define HAVE_BROKEN_PTHREAD_SIGMASK 1
13457 # Check for enable-ipv6
13460 echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
13461 echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6
13462 # Check whether --enable-ipv6 or --disable-ipv6 was given.
13463 if test "${enable_ipv6+set}" = set; then
13464 enableval
="$enable_ipv6"
13465 case "$enableval" in
13467 echo "$as_me:$LINENO: result: no" >&5
13468 echo "${ECHO_T}no" >&6
13471 *) echo "$as_me:$LINENO: result: yes" >&5
13472 echo "${ECHO_T}yes" >&6
13473 cat >>confdefs.h
<<\_ACEOF
13474 #define ENABLE_IPV6 1
13482 if test "$cross_compiling" = yes; then
13483 echo "$as_me:$LINENO: result: no" >&5
13484 echo "${ECHO_T}no" >&6
13488 cat >conftest.
$ac_ext <<_ACEOF
13491 cat confdefs.h
>>conftest.
$ac_ext
13492 cat >>conftest.
$ac_ext <<_ACEOF
13493 /* end confdefs.h. */
13494 /* AF_INET6 available check */
13495 #include <sys/types.h>
13496 #include <sys/socket.h>
13499 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
13506 rm -f conftest
$ac_exeext
13507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13508 (eval $ac_link) 2>&5
13510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13511 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13513 (eval $ac_try) 2>&5
13515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13516 (exit $ac_status); }; }; then
13517 echo "$as_me:$LINENO: result: yes" >&5
13518 echo "${ECHO_T}yes" >&6
13521 echo "$as_me: program exited with status $ac_status" >&5
13522 echo "$as_me: failed program was:" >&5
13523 sed 's/^/| /' conftest.
$ac_ext >&5
13525 ( exit $ac_status )
13526 echo "$as_me:$LINENO: result: no" >&5
13527 echo "${ECHO_T}no" >&6
13530 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13533 if test "$ipv6" = "yes"; then
13534 echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
13535 echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6
13536 cat >conftest.
$ac_ext <<_ACEOF
13539 cat confdefs.h
>>conftest.
$ac_ext
13540 cat >>conftest.
$ac_ext <<_ACEOF
13541 /* end confdefs.h. */
13542 #include <sys/types.h>
13543 #include <netinet/in.h>
13547 struct sockaddr_in6 x;
13553 rm -f conftest.
$ac_objext
13554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13555 (eval $ac_compile) 2>conftest.er1
13557 grep -v '^ *+' conftest.er1
>conftest.err
13559 cat conftest.err
>&5
13560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13561 (exit $ac_status); } &&
13562 { ac_try
='test -z "$ac_c_werror_flag"
13563 || test ! -s conftest.err'
13564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13565 (eval $ac_try) 2>&5
13567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13568 (exit $ac_status); }; } &&
13569 { ac_try
='test -s conftest.$ac_objext'
13570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13571 (eval $ac_try) 2>&5
13573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13574 (exit $ac_status); }; }; then
13575 echo "$as_me:$LINENO: result: yes" >&5
13576 echo "${ECHO_T}yes" >&6
13579 echo "$as_me: failed program was:" >&5
13580 sed 's/^/| /' conftest.
$ac_ext >&5
13582 echo "$as_me:$LINENO: result: no" >&5
13583 echo "${ECHO_T}no" >&6
13586 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13589 if test "$ipv6" = "yes"; then
13590 cat >>confdefs.h
<<\_ACEOF
13591 #define ENABLE_IPV6 1
13602 if test "$ipv6" = "yes"; then
13603 echo "$as_me:$LINENO: checking ipv6 stack type" >&5
13604 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6
13605 for i
in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta
;
13609 cat >conftest.
$ac_ext <<_ACEOF
13612 cat confdefs.h
>>conftest.
$ac_ext
13613 cat >>conftest.
$ac_ext <<_ACEOF
13614 /* end confdefs.h. */
13616 #include <netinet/in.h>
13617 #ifdef IPV6_INRIA_VERSION
13621 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13622 $EGREP "yes" >/dev
/null
2>&1; then
13629 cat >conftest.
$ac_ext <<_ACEOF
13632 cat confdefs.h
>>conftest.
$ac_ext
13633 cat >>conftest.
$ac_ext <<_ACEOF
13634 /* end confdefs.h. */
13636 #include <netinet/in.h>
13641 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13642 $EGREP "yes" >/dev
/null
2>&1; then
13645 ipv6libdir
=/usr
/local
/v
6/lib
13652 cat >conftest.
$ac_ext <<_ACEOF
13655 cat confdefs.h
>>conftest.
$ac_ext
13656 cat >>conftest.
$ac_ext <<_ACEOF
13657 /* end confdefs.h. */
13659 #include <features.h>
13660 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
13664 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13665 $EGREP "yes" >/dev
/null
2>&1; then
13673 if test -d /usr
/inet6
; then
13676 ipv6libdir
=/usr
/inet
6/lib
13677 BASECFLAGS
="-I/usr/inet6/include $BASECFLAGS"
13681 if test -f /etc
/netconfig
; then
13682 if /usr
/xpg
4/bin
/grep -q tcp6
/etc
/netconfig
; then
13689 cat >conftest.
$ac_ext <<_ACEOF
13692 cat confdefs.h
>>conftest.
$ac_ext
13693 cat >>conftest.
$ac_ext <<_ACEOF
13694 /* end confdefs.h. */
13696 #include <sys/param.h>
13697 #ifdef _TOSHIBA_INET6
13701 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13702 $EGREP "yes" >/dev
/null
2>&1; then
13705 ipv6libdir
=/usr
/local
/v
6/lib
13711 cat >conftest.
$ac_ext <<_ACEOF
13714 cat confdefs.h
>>conftest.
$ac_ext
13715 cat >>conftest.
$ac_ext <<_ACEOF
13716 /* end confdefs.h. */
13718 #include </usr/local/v6/include/sys/v6config.h>
13723 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13724 $EGREP "yes" >/dev
/null
2>&1; then
13727 ipv6libdir
=/usr
/local
/v
6/lib
;
13728 BASECFLAGS
="-I/usr/local/v6/include $BASECFLAGS"
13734 cat >conftest.
$ac_ext <<_ACEOF
13737 cat confdefs.h
>>conftest.
$ac_ext
13738 cat >>conftest.
$ac_ext <<_ACEOF
13739 /* end confdefs.h. */
13741 #include <sys/param.h>
13742 #ifdef _ZETA_MINAMI_INET6
13746 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13747 $EGREP "yes" >/dev
/null
2>&1; then
13750 ipv6libdir
=/usr
/local
/v
6/lib
13756 if test "$ipv6type" != "unknown"; then
13760 echo "$as_me:$LINENO: result: $ipv6type" >&5
13761 echo "${ECHO_T}$ipv6type" >&6
13764 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
13765 if test -d $ipv6libdir -a -f $ipv6libdir/lib
$ipv6lib.a
; then
13766 LIBS
="-L$ipv6libdir -l$ipv6lib $LIBS"
13767 echo "using lib$ipv6lib"
13769 if test $ipv6trylibc = "yes"; then
13772 echo 'Fatal: no $ipv6lib library found. cannot continue.'
13773 echo "You need to fetch lib$ipv6lib.a from appropriate"
13774 echo 'ipv6 kit and compile beforehand.'
13780 # Check for --with-doc-strings
13781 echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
13782 echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6
13784 # Check whether --with-doc-strings or --without-doc-strings was given.
13785 if test "${with_doc_strings+set}" = set; then
13786 withval
="$with_doc_strings"
13790 if test -z "$with_doc_strings"
13791 then with_doc_strings
="yes"
13793 if test "$with_doc_strings" != "no"
13796 cat >>confdefs.h
<<\_ACEOF
13797 #define WITH_DOC_STRINGS 1
13801 echo "$as_me:$LINENO: result: $with_doc_strings" >&5
13802 echo "${ECHO_T}$with_doc_strings" >&6
13804 # Check for Python-specific malloc support
13805 echo "$as_me:$LINENO: checking for --with-tsc" >&5
13806 echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6
13808 # Check whether --with-tsc or --without-tsc was given.
13809 if test "${with_tsc+set}" = set; then
13810 withval
="$with_tsc"
13812 if test "$withval" != no
13815 cat >>confdefs.h
<<\_ACEOF
13819 echo "$as_me:$LINENO: result: yes" >&5
13820 echo "${ECHO_T}yes" >&6
13821 else echo "$as_me:$LINENO: result: no" >&5
13822 echo "${ECHO_T}no" >&6
13825 echo "$as_me:$LINENO: result: no" >&5
13826 echo "${ECHO_T}no" >&6
13829 # Check for Python-specific malloc support
13830 echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
13831 echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6
13833 # Check whether --with-pymalloc or --without-pymalloc was given.
13834 if test "${with_pymalloc+set}" = set; then
13835 withval
="$with_pymalloc"
13839 if test -z "$with_pymalloc"
13840 then with_pymalloc
="yes"
13842 if test "$with_pymalloc" != "no"
13845 cat >>confdefs.h
<<\_ACEOF
13846 #define WITH_PYMALLOC 1
13850 echo "$as_me:$LINENO: result: $with_pymalloc" >&5
13851 echo "${ECHO_T}$with_pymalloc" >&6
13853 # Check for --with-wctype-functions
13854 echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
13855 echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6
13857 # Check whether --with-wctype-functions or --without-wctype-functions was given.
13858 if test "${with_wctype_functions+set}" = set; then
13859 withval
="$with_wctype_functions"
13861 if test "$withval" != no
13864 cat >>confdefs.h
<<\_ACEOF
13865 #define WANT_WCTYPE_FUNCTIONS 1
13868 echo "$as_me:$LINENO: result: yes" >&5
13869 echo "${ECHO_T}yes" >&6
13870 else echo "$as_me:$LINENO: result: no" >&5
13871 echo "${ECHO_T}no" >&6
13874 echo "$as_me:$LINENO: result: no" >&5
13875 echo "${ECHO_T}no" >&6
13878 # -I${DLINCLDIR} is added to the compile rule for importdl.o
13882 # the dlopen() function means we might want to use dynload_shlib.o. some
13883 # platforms, such as AIX, have dlopen(), but don't want to use it.
13885 for ac_func
in dlopen
13887 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13888 echo "$as_me:$LINENO: checking for $ac_func" >&5
13889 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13890 if eval "test \"\${$as_ac_var+set}\" = set"; then
13891 echo $ECHO_N "(cached) $ECHO_C" >&6
13893 cat >conftest.
$ac_ext <<_ACEOF
13896 cat confdefs.h
>>conftest.
$ac_ext
13897 cat >>conftest.
$ac_ext <<_ACEOF
13898 /* end confdefs.h. */
13899 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13900 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13901 #define $ac_func innocuous_$ac_func
13903 /* System header to define __stub macros and hopefully few prototypes,
13904 which can conflict with char $ac_func (); below.
13905 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13906 <limits.h> exists even on freestanding compilers. */
13909 # include <limits.h>
13911 # include <assert.h>
13916 /* Override any gcc2 internal prototype to avoid an error. */
13921 /* We use char because int might match the return type of a gcc2
13922 builtin and then its argument prototype would still apply. */
13924 /* The GNU C library defines this for functions which it implements
13925 to always fail with ENOSYS. Some functions are actually named
13926 something starting with __ and the normal name is an alias. */
13927 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13930 char (*f) () = $ac_func;
13939 return f != $ac_func;
13944 rm -f conftest.
$ac_objext conftest
$ac_exeext
13945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13946 (eval $ac_link) 2>conftest.er1
13948 grep -v '^ *+' conftest.er1
>conftest.err
13950 cat conftest.err
>&5
13951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13952 (exit $ac_status); } &&
13953 { ac_try
='test -z "$ac_c_werror_flag"
13954 || test ! -s conftest.err'
13955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13956 (eval $ac_try) 2>&5
13958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13959 (exit $ac_status); }; } &&
13960 { ac_try
='test -s conftest$ac_exeext'
13961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13962 (eval $ac_try) 2>&5
13964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13965 (exit $ac_status); }; }; then
13966 eval "$as_ac_var=yes"
13968 echo "$as_me: failed program was:" >&5
13969 sed 's/^/| /' conftest.
$ac_ext >&5
13971 eval "$as_ac_var=no"
13973 rm -f conftest.err conftest.
$ac_objext \
13974 conftest
$ac_exeext conftest.
$ac_ext
13976 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13977 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13978 if test `eval echo '${'$as_ac_var'}'` = yes; then
13979 cat >>confdefs.h
<<_ACEOF
13980 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13987 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
13988 # loading of modules.
13990 echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
13991 echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6
13992 if test -z "$DYNLOADFILE"
13994 case $ac_sys_system/$ac_sys_release in
13995 AIX
*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
13996 if test "$ac_cv_func_dlopen" = yes
13997 then DYNLOADFILE
="dynload_shlib.o"
13998 else DYNLOADFILE
="dynload_aix.o"
14001 BeOS
*) DYNLOADFILE
="dynload_beos.o";;
14002 hp
*|HP
*) DYNLOADFILE
="dynload_hpux.o";;
14003 # Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
14004 Darwin
/[0156]\..
*) DYNLOADFILE
="dynload_next.o";;
14005 atheos
*) DYNLOADFILE
="dynload_atheos.o";;
14007 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
14008 # out any dynamic loading
14009 if test "$ac_cv_func_dlopen" = yes
14010 then DYNLOADFILE
="dynload_shlib.o"
14011 else DYNLOADFILE
="dynload_stub.o"
14016 echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
14017 echo "${ECHO_T}$DYNLOADFILE" >&6
14018 if test "$DYNLOADFILE" != "dynload_stub.o"
14021 cat >>confdefs.h
<<\_ACEOF
14022 #define HAVE_DYNAMIC_LOADING 1
14027 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
14030 echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
14031 echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6
14032 if test -z "$MACHDEP_OBJS"
14034 MACHDEP_OBJS
=$extra_machdep_objs
14036 MACHDEP_OBJS
="$MACHDEP_OBJS $extra_machdep_objs"
14038 echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
14039 echo "${ECHO_T}MACHDEP_OBJS" >&6
14041 # checks for library functions
14118 for ac_func
in alarm bind_textdomain_codeset chown
clock confstr ctermid \
14119 execv fork fpathconf ftime ftruncate \
14120 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
14121 getpriority getpwent getspnam getspent getsid getwd \
14122 kill killpg lchown lstat
mkfifo mknod mktime \
14123 mremap nice pathconf pause plock poll pthread_init \
14124 putenv readlink realpath \
14125 select setegid seteuid setgid \
14126 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
14127 sigaction siginterrupt sigrelse strftime \
14128 sysconf tcgetpgrp tcsetpgrp tempnam timegm
times tmpfile tmpnam tmpnam_r \
14129 truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty
14131 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14132 echo "$as_me:$LINENO: checking for $ac_func" >&5
14133 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14134 if eval "test \"\${$as_ac_var+set}\" = set"; then
14135 echo $ECHO_N "(cached) $ECHO_C" >&6
14137 cat >conftest.
$ac_ext <<_ACEOF
14140 cat confdefs.h
>>conftest.
$ac_ext
14141 cat >>conftest.
$ac_ext <<_ACEOF
14142 /* end confdefs.h. */
14143 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14144 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14145 #define $ac_func innocuous_$ac_func
14147 /* System header to define __stub macros and hopefully few prototypes,
14148 which can conflict with char $ac_func (); below.
14149 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14150 <limits.h> exists even on freestanding compilers. */
14153 # include <limits.h>
14155 # include <assert.h>
14160 /* Override any gcc2 internal prototype to avoid an error. */
14165 /* We use char because int might match the return type of a gcc2
14166 builtin and then its argument prototype would still apply. */
14168 /* The GNU C library defines this for functions which it implements
14169 to always fail with ENOSYS. Some functions are actually named
14170 something starting with __ and the normal name is an alias. */
14171 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14174 char (*f) () = $ac_func;
14183 return f != $ac_func;
14188 rm -f conftest.
$ac_objext conftest
$ac_exeext
14189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14190 (eval $ac_link) 2>conftest.er1
14192 grep -v '^ *+' conftest.er1
>conftest.err
14194 cat conftest.err
>&5
14195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14196 (exit $ac_status); } &&
14197 { ac_try
='test -z "$ac_c_werror_flag"
14198 || test ! -s conftest.err'
14199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14200 (eval $ac_try) 2>&5
14202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14203 (exit $ac_status); }; } &&
14204 { ac_try
='test -s conftest$ac_exeext'
14205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14206 (eval $ac_try) 2>&5
14208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14209 (exit $ac_status); }; }; then
14210 eval "$as_ac_var=yes"
14212 echo "$as_me: failed program was:" >&5
14213 sed 's/^/| /' conftest.
$ac_ext >&5
14215 eval "$as_ac_var=no"
14217 rm -f conftest.err conftest.
$ac_objext \
14218 conftest
$ac_exeext conftest.
$ac_ext
14220 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14221 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14222 if test `eval echo '${'$as_ac_var'}'` = yes; then
14223 cat >>confdefs.h
<<_ACEOF
14224 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14231 # For some functions, having a definition is not sufficient, since
14232 # we want to take their address.
14233 echo "$as_me:$LINENO: checking for chroot" >&5
14234 echo $ECHO_N "checking for chroot... $ECHO_C" >&6
14235 cat >conftest.
$ac_ext <<_ACEOF
14238 cat confdefs.h
>>conftest.
$ac_ext
14239 cat >>conftest.
$ac_ext <<_ACEOF
14240 /* end confdefs.h. */
14241 #include <unistd.h>
14250 rm -f conftest.
$ac_objext
14251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14252 (eval $ac_compile) 2>conftest.er1
14254 grep -v '^ *+' conftest.er1
>conftest.err
14256 cat conftest.err
>&5
14257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14258 (exit $ac_status); } &&
14259 { ac_try
='test -z "$ac_c_werror_flag"
14260 || test ! -s conftest.err'
14261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14262 (eval $ac_try) 2>&5
14264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14265 (exit $ac_status); }; } &&
14266 { ac_try
='test -s conftest.$ac_objext'
14267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14268 (eval $ac_try) 2>&5
14270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14271 (exit $ac_status); }; }; then
14273 cat >>confdefs.h
<<\_ACEOF
14274 #define HAVE_CHROOT 1
14277 echo "$as_me:$LINENO: result: yes" >&5
14278 echo "${ECHO_T}yes" >&6
14280 echo "$as_me: failed program was:" >&5
14281 sed 's/^/| /' conftest.
$ac_ext >&5
14283 echo "$as_me:$LINENO: result: no" >&5
14284 echo "${ECHO_T}no" >&6
14287 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14288 echo "$as_me:$LINENO: checking for link" >&5
14289 echo $ECHO_N "checking for link... $ECHO_C" >&6
14290 cat >conftest.
$ac_ext <<_ACEOF
14293 cat confdefs.h
>>conftest.
$ac_ext
14294 cat >>conftest.
$ac_ext <<_ACEOF
14295 /* end confdefs.h. */
14296 #include <unistd.h>
14305 rm -f conftest.
$ac_objext
14306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14307 (eval $ac_compile) 2>conftest.er1
14309 grep -v '^ *+' conftest.er1
>conftest.err
14311 cat conftest.err
>&5
14312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14313 (exit $ac_status); } &&
14314 { ac_try
='test -z "$ac_c_werror_flag"
14315 || test ! -s conftest.err'
14316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14317 (eval $ac_try) 2>&5
14319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14320 (exit $ac_status); }; } &&
14321 { ac_try
='test -s conftest.$ac_objext'
14322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14323 (eval $ac_try) 2>&5
14325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14326 (exit $ac_status); }; }; then
14328 cat >>confdefs.h
<<\_ACEOF
14329 #define HAVE_LINK 1
14332 echo "$as_me:$LINENO: result: yes" >&5
14333 echo "${ECHO_T}yes" >&6
14335 echo "$as_me: failed program was:" >&5
14336 sed 's/^/| /' conftest.
$ac_ext >&5
14338 echo "$as_me:$LINENO: result: no" >&5
14339 echo "${ECHO_T}no" >&6
14342 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14343 echo "$as_me:$LINENO: checking for symlink" >&5
14344 echo $ECHO_N "checking for symlink... $ECHO_C" >&6
14345 cat >conftest.
$ac_ext <<_ACEOF
14348 cat confdefs.h
>>conftest.
$ac_ext
14349 cat >>conftest.
$ac_ext <<_ACEOF
14350 /* end confdefs.h. */
14351 #include <unistd.h>
14360 rm -f conftest.
$ac_objext
14361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14362 (eval $ac_compile) 2>conftest.er1
14364 grep -v '^ *+' conftest.er1
>conftest.err
14366 cat conftest.err
>&5
14367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14368 (exit $ac_status); } &&
14369 { ac_try
='test -z "$ac_c_werror_flag"
14370 || test ! -s conftest.err'
14371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14372 (eval $ac_try) 2>&5
14374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14375 (exit $ac_status); }; } &&
14376 { ac_try
='test -s conftest.$ac_objext'
14377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14378 (eval $ac_try) 2>&5
14380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14381 (exit $ac_status); }; }; then
14383 cat >>confdefs.h
<<\_ACEOF
14384 #define HAVE_SYMLINK 1
14387 echo "$as_me:$LINENO: result: yes" >&5
14388 echo "${ECHO_T}yes" >&6
14390 echo "$as_me: failed program was:" >&5
14391 sed 's/^/| /' conftest.
$ac_ext >&5
14393 echo "$as_me:$LINENO: result: no" >&5
14394 echo "${ECHO_T}no" >&6
14397 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14398 echo "$as_me:$LINENO: checking for fchdir" >&5
14399 echo $ECHO_N "checking for fchdir... $ECHO_C" >&6
14400 cat >conftest.
$ac_ext <<_ACEOF
14403 cat confdefs.h
>>conftest.
$ac_ext
14404 cat >>conftest.
$ac_ext <<_ACEOF
14405 /* end confdefs.h. */
14406 #include <unistd.h>
14415 rm -f conftest.
$ac_objext
14416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14417 (eval $ac_compile) 2>conftest.er1
14419 grep -v '^ *+' conftest.er1
>conftest.err
14421 cat conftest.err
>&5
14422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14423 (exit $ac_status); } &&
14424 { ac_try
='test -z "$ac_c_werror_flag"
14425 || test ! -s conftest.err'
14426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14427 (eval $ac_try) 2>&5
14429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14430 (exit $ac_status); }; } &&
14431 { ac_try
='test -s conftest.$ac_objext'
14432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14433 (eval $ac_try) 2>&5
14435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14436 (exit $ac_status); }; }; then
14438 cat >>confdefs.h
<<\_ACEOF
14439 #define HAVE_FCHDIR 1
14442 echo "$as_me:$LINENO: result: yes" >&5
14443 echo "${ECHO_T}yes" >&6
14445 echo "$as_me: failed program was:" >&5
14446 sed 's/^/| /' conftest.
$ac_ext >&5
14448 echo "$as_me:$LINENO: result: no" >&5
14449 echo "${ECHO_T}no" >&6
14452 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14453 echo "$as_me:$LINENO: checking for fsync" >&5
14454 echo $ECHO_N "checking for fsync... $ECHO_C" >&6
14455 cat >conftest.
$ac_ext <<_ACEOF
14458 cat confdefs.h
>>conftest.
$ac_ext
14459 cat >>conftest.
$ac_ext <<_ACEOF
14460 /* end confdefs.h. */
14461 #include <unistd.h>
14470 rm -f conftest.
$ac_objext
14471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14472 (eval $ac_compile) 2>conftest.er1
14474 grep -v '^ *+' conftest.er1
>conftest.err
14476 cat conftest.err
>&5
14477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14478 (exit $ac_status); } &&
14479 { ac_try
='test -z "$ac_c_werror_flag"
14480 || test ! -s conftest.err'
14481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14482 (eval $ac_try) 2>&5
14484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14485 (exit $ac_status); }; } &&
14486 { ac_try
='test -s conftest.$ac_objext'
14487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14488 (eval $ac_try) 2>&5
14490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14491 (exit $ac_status); }; }; then
14493 cat >>confdefs.h
<<\_ACEOF
14494 #define HAVE_FSYNC 1
14497 echo "$as_me:$LINENO: result: yes" >&5
14498 echo "${ECHO_T}yes" >&6
14500 echo "$as_me: failed program was:" >&5
14501 sed 's/^/| /' conftest.
$ac_ext >&5
14503 echo "$as_me:$LINENO: result: no" >&5
14504 echo "${ECHO_T}no" >&6
14507 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14508 echo "$as_me:$LINENO: checking for fdatasync" >&5
14509 echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6
14510 cat >conftest.
$ac_ext <<_ACEOF
14513 cat confdefs.h
>>conftest.
$ac_ext
14514 cat >>conftest.
$ac_ext <<_ACEOF
14515 /* end confdefs.h. */
14516 #include <unistd.h>
14525 rm -f conftest.
$ac_objext
14526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14527 (eval $ac_compile) 2>conftest.er1
14529 grep -v '^ *+' conftest.er1
>conftest.err
14531 cat conftest.err
>&5
14532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14533 (exit $ac_status); } &&
14534 { ac_try
='test -z "$ac_c_werror_flag"
14535 || test ! -s conftest.err'
14536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14537 (eval $ac_try) 2>&5
14539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14540 (exit $ac_status); }; } &&
14541 { ac_try
='test -s conftest.$ac_objext'
14542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14543 (eval $ac_try) 2>&5
14545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14546 (exit $ac_status); }; }; then
14548 cat >>confdefs.h
<<\_ACEOF
14549 #define HAVE_FDATASYNC 1
14552 echo "$as_me:$LINENO: result: yes" >&5
14553 echo "${ECHO_T}yes" >&6
14555 echo "$as_me: failed program was:" >&5
14556 sed 's/^/| /' conftest.
$ac_ext >&5
14558 echo "$as_me:$LINENO: result: no" >&5
14559 echo "${ECHO_T}no" >&6
14562 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14564 # On some systems (eg. FreeBSD 5), we would find a definition of the
14565 # functions ctermid_r, setgroups in the library, but no prototype
14566 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
14567 # address to avoid compiler warnings and potential miscompilations
14568 # because of the missing prototypes.
14570 echo "$as_me:$LINENO: checking for ctermid_r" >&5
14571 echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6
14572 cat >conftest.
$ac_ext <<_ACEOF
14575 cat confdefs.h
>>conftest.
$ac_ext
14576 cat >>conftest.
$ac_ext <<_ACEOF
14577 /* end confdefs.h. */
14579 #include "confdefs.h"
14585 void* p = ctermid_r
14590 rm -f conftest.
$ac_objext
14591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14592 (eval $ac_compile) 2>conftest.er1
14594 grep -v '^ *+' conftest.er1
>conftest.err
14596 cat conftest.err
>&5
14597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14598 (exit $ac_status); } &&
14599 { ac_try
='test -z "$ac_c_werror_flag"
14600 || test ! -s conftest.err'
14601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14602 (eval $ac_try) 2>&5
14604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14605 (exit $ac_status); }; } &&
14606 { ac_try
='test -s conftest.$ac_objext'
14607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14608 (eval $ac_try) 2>&5
14610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14611 (exit $ac_status); }; }; then
14613 cat >>confdefs.h
<<\_ACEOF
14614 #define HAVE_CTERMID_R 1
14617 echo "$as_me:$LINENO: result: yes" >&5
14618 echo "${ECHO_T}yes" >&6
14620 echo "$as_me: failed program was:" >&5
14621 sed 's/^/| /' conftest.
$ac_ext >&5
14623 echo "$as_me:$LINENO: result: no" >&5
14624 echo "${ECHO_T}no" >&6
14627 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14629 echo "$as_me:$LINENO: checking for flock" >&5
14630 echo $ECHO_N "checking for flock... $ECHO_C" >&6
14631 cat >conftest.
$ac_ext <<_ACEOF
14634 cat confdefs.h
>>conftest.
$ac_ext
14635 cat >>conftest.
$ac_ext <<_ACEOF
14636 /* end confdefs.h. */
14638 #include "confdefs.h"
14639 #include <sys/file.h>
14649 rm -f conftest.
$ac_objext
14650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14651 (eval $ac_compile) 2>conftest.er1
14653 grep -v '^ *+' conftest.er1
>conftest.err
14655 cat conftest.err
>&5
14656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14657 (exit $ac_status); } &&
14658 { ac_try
='test -z "$ac_c_werror_flag"
14659 || test ! -s conftest.err'
14660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14661 (eval $ac_try) 2>&5
14663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14664 (exit $ac_status); }; } &&
14665 { ac_try
='test -s conftest.$ac_objext'
14666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14667 (eval $ac_try) 2>&5
14669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14670 (exit $ac_status); }; }; then
14672 cat >>confdefs.h
<<\_ACEOF
14673 #define HAVE_FLOCK 1
14676 echo "$as_me:$LINENO: result: yes" >&5
14677 echo "${ECHO_T}yes" >&6
14679 echo "$as_me: failed program was:" >&5
14680 sed 's/^/| /' conftest.
$ac_ext >&5
14682 echo "$as_me:$LINENO: result: no" >&5
14683 echo "${ECHO_T}no" >&6
14686 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14688 echo "$as_me:$LINENO: checking for getpagesize" >&5
14689 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6
14690 cat >conftest.
$ac_ext <<_ACEOF
14693 cat confdefs.h
>>conftest.
$ac_ext
14694 cat >>conftest.
$ac_ext <<_ACEOF
14695 /* end confdefs.h. */
14697 #include "confdefs.h"
14698 #include <unistd.h>
14703 void* p = getpagesize
14708 rm -f conftest.
$ac_objext
14709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14710 (eval $ac_compile) 2>conftest.er1
14712 grep -v '^ *+' conftest.er1
>conftest.err
14714 cat conftest.err
>&5
14715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14716 (exit $ac_status); } &&
14717 { ac_try
='test -z "$ac_c_werror_flag"
14718 || test ! -s conftest.err'
14719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14720 (eval $ac_try) 2>&5
14722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14723 (exit $ac_status); }; } &&
14724 { ac_try
='test -s conftest.$ac_objext'
14725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14726 (eval $ac_try) 2>&5
14728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14729 (exit $ac_status); }; }; then
14731 cat >>confdefs.h
<<\_ACEOF
14732 #define HAVE_GETPAGESIZE 1
14735 echo "$as_me:$LINENO: result: yes" >&5
14736 echo "${ECHO_T}yes" >&6
14738 echo "$as_me: failed program was:" >&5
14739 sed 's/^/| /' conftest.
$ac_ext >&5
14741 echo "$as_me:$LINENO: result: no" >&5
14742 echo "${ECHO_T}no" >&6
14745 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14747 for ac_prog
in true
14749 # Extract the first word of "$ac_prog", so it can be a program name with args.
14750 set dummy
$ac_prog; ac_word
=$2
14751 echo "$as_me:$LINENO: checking for $ac_word" >&5
14752 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14753 if test "${ac_cv_prog_TRUE+set}" = set; then
14754 echo $ECHO_N "(cached) $ECHO_C" >&6
14756 if test -n "$TRUE"; then
14757 ac_cv_prog_TRUE
="$TRUE" # Let the user override the test.
14759 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14760 for as_dir
in $PATH
14763 test -z "$as_dir" && as_dir
=.
14764 for ac_exec_ext
in '' $ac_executable_extensions; do
14765 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14766 ac_cv_prog_TRUE
="$ac_prog"
14767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14775 TRUE
=$ac_cv_prog_TRUE
14776 if test -n "$TRUE"; then
14777 echo "$as_me:$LINENO: result: $TRUE" >&5
14778 echo "${ECHO_T}$TRUE" >&6
14780 echo "$as_me:$LINENO: result: no" >&5
14781 echo "${ECHO_T}no" >&6
14784 test -n "$TRUE" && break
14786 test -n "$TRUE" || TRUE
="/bin/true"
14789 echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
14790 echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6
14791 if test "${ac_cv_lib_c_inet_aton+set}" = set; then
14792 echo $ECHO_N "(cached) $ECHO_C" >&6
14794 ac_check_lib_save_LIBS
=$LIBS
14796 cat >conftest.
$ac_ext <<_ACEOF
14799 cat confdefs.h
>>conftest.
$ac_ext
14800 cat >>conftest.
$ac_ext <<_ACEOF
14801 /* end confdefs.h. */
14803 /* Override any gcc2 internal prototype to avoid an error. */
14807 /* We use char because int might match the return type of a gcc2
14808 builtin and then its argument prototype would still apply. */
14818 rm -f conftest.
$ac_objext conftest
$ac_exeext
14819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14820 (eval $ac_link) 2>conftest.er1
14822 grep -v '^ *+' conftest.er1
>conftest.err
14824 cat conftest.err
>&5
14825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14826 (exit $ac_status); } &&
14827 { ac_try
='test -z "$ac_c_werror_flag"
14828 || test ! -s conftest.err'
14829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14830 (eval $ac_try) 2>&5
14832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14833 (exit $ac_status); }; } &&
14834 { ac_try
='test -s conftest$ac_exeext'
14835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14836 (eval $ac_try) 2>&5
14838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14839 (exit $ac_status); }; }; then
14840 ac_cv_lib_c_inet_aton
=yes
14842 echo "$as_me: failed program was:" >&5
14843 sed 's/^/| /' conftest.
$ac_ext >&5
14845 ac_cv_lib_c_inet_aton
=no
14847 rm -f conftest.err conftest.
$ac_objext \
14848 conftest
$ac_exeext conftest.
$ac_ext
14849 LIBS
=$ac_check_lib_save_LIBS
14851 echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
14852 echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6
14853 if test $ac_cv_lib_c_inet_aton = yes; then
14857 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
14858 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
14859 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
14860 echo $ECHO_N "(cached) $ECHO_C" >&6
14862 ac_check_lib_save_LIBS
=$LIBS
14863 LIBS
="-lresolv $LIBS"
14864 cat >conftest.
$ac_ext <<_ACEOF
14867 cat confdefs.h
>>conftest.
$ac_ext
14868 cat >>conftest.
$ac_ext <<_ACEOF
14869 /* end confdefs.h. */
14871 /* Override any gcc2 internal prototype to avoid an error. */
14875 /* We use char because int might match the return type of a gcc2
14876 builtin and then its argument prototype would still apply. */
14886 rm -f conftest.
$ac_objext conftest
$ac_exeext
14887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14888 (eval $ac_link) 2>conftest.er1
14890 grep -v '^ *+' conftest.er1
>conftest.err
14892 cat conftest.err
>&5
14893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14894 (exit $ac_status); } &&
14895 { ac_try
='test -z "$ac_c_werror_flag"
14896 || test ! -s conftest.err'
14897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14898 (eval $ac_try) 2>&5
14900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14901 (exit $ac_status); }; } &&
14902 { ac_try
='test -s conftest$ac_exeext'
14903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14904 (eval $ac_try) 2>&5
14906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14907 (exit $ac_status); }; }; then
14908 ac_cv_lib_resolv_inet_aton
=yes
14910 echo "$as_me: failed program was:" >&5
14911 sed 's/^/| /' conftest.
$ac_ext >&5
14913 ac_cv_lib_resolv_inet_aton
=no
14915 rm -f conftest.err conftest.
$ac_objext \
14916 conftest
$ac_exeext conftest.
$ac_ext
14917 LIBS
=$ac_check_lib_save_LIBS
14919 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
14920 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
14921 if test $ac_cv_lib_resolv_inet_aton = yes; then
14922 cat >>confdefs.h
<<_ACEOF
14923 #define HAVE_LIBRESOLV 1
14926 LIBS
="-lresolv $LIBS"
14934 echo "$as_me:$LINENO: checking for hstrerror" >&5
14935 echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6
14936 cat >conftest.
$ac_ext <<_ACEOF
14939 cat confdefs.h
>>conftest.
$ac_ext
14940 cat >>conftest.
$ac_ext <<_ACEOF
14941 /* end confdefs.h. */
14943 #include "confdefs.h"
14949 void* p = hstrerror; hstrerror(0)
14954 rm -f conftest.
$ac_objext conftest
$ac_exeext
14955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14956 (eval $ac_link) 2>conftest.er1
14958 grep -v '^ *+' conftest.er1
>conftest.err
14960 cat conftest.err
>&5
14961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14962 (exit $ac_status); } &&
14963 { ac_try
='test -z "$ac_c_werror_flag"
14964 || test ! -s conftest.err'
14965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14966 (eval $ac_try) 2>&5
14968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14969 (exit $ac_status); }; } &&
14970 { ac_try
='test -s conftest$ac_exeext'
14971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14972 (eval $ac_try) 2>&5
14974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14975 (exit $ac_status); }; }; then
14977 cat >>confdefs.h
<<\_ACEOF
14978 #define HAVE_HSTRERROR 1
14981 echo "$as_me:$LINENO: result: yes" >&5
14982 echo "${ECHO_T}yes" >&6
14984 echo "$as_me: failed program was:" >&5
14985 sed 's/^/| /' conftest.
$ac_ext >&5
14987 echo "$as_me:$LINENO: result: no" >&5
14988 echo "${ECHO_T}no" >&6
14991 rm -f conftest.err conftest.
$ac_objext \
14992 conftest
$ac_exeext conftest.
$ac_ext
14994 echo "$as_me:$LINENO: checking for inet_aton" >&5
14995 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
14996 cat >conftest.
$ac_ext <<_ACEOF
14999 cat confdefs.h
>>conftest.
$ac_ext
15000 cat >>conftest.
$ac_ext <<_ACEOF
15001 /* end confdefs.h. */
15003 #include "confdefs.h"
15004 #include <sys/types.h>
15005 #include <sys/socket.h>
15006 #include <netinet/in.h>
15007 #include <arpa/inet.h>
15012 void* p = inet_aton;inet_aton(0,0)
15017 rm -f conftest.
$ac_objext conftest
$ac_exeext
15018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15019 (eval $ac_link) 2>conftest.er1
15021 grep -v '^ *+' conftest.er1
>conftest.err
15023 cat conftest.err
>&5
15024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15025 (exit $ac_status); } &&
15026 { ac_try
='test -z "$ac_c_werror_flag"
15027 || test ! -s conftest.err'
15028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15029 (eval $ac_try) 2>&5
15031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15032 (exit $ac_status); }; } &&
15033 { ac_try
='test -s conftest$ac_exeext'
15034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15035 (eval $ac_try) 2>&5
15037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15038 (exit $ac_status); }; }; then
15040 cat >>confdefs.h
<<\_ACEOF
15041 #define HAVE_INET_ATON 1
15044 echo "$as_me:$LINENO: result: yes" >&5
15045 echo "${ECHO_T}yes" >&6
15047 echo "$as_me: failed program was:" >&5
15048 sed 's/^/| /' conftest.
$ac_ext >&5
15050 echo "$as_me:$LINENO: result: no" >&5
15051 echo "${ECHO_T}no" >&6
15054 rm -f conftest.err conftest.
$ac_objext \
15055 conftest
$ac_exeext conftest.
$ac_ext
15057 echo "$as_me:$LINENO: checking for inet_pton" >&5
15058 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6
15059 cat >conftest.
$ac_ext <<_ACEOF
15062 cat confdefs.h
>>conftest.
$ac_ext
15063 cat >>conftest.
$ac_ext <<_ACEOF
15064 /* end confdefs.h. */
15066 #include "confdefs.h"
15067 #include <sys/types.h>
15068 #include <sys/socket.h>
15069 #include <netinet/in.h>
15070 #include <arpa/inet.h>
15075 void* p = inet_pton
15080 rm -f conftest.
$ac_objext
15081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15082 (eval $ac_compile) 2>conftest.er1
15084 grep -v '^ *+' conftest.er1
>conftest.err
15086 cat conftest.err
>&5
15087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15088 (exit $ac_status); } &&
15089 { ac_try
='test -z "$ac_c_werror_flag"
15090 || test ! -s conftest.err'
15091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15092 (eval $ac_try) 2>&5
15094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15095 (exit $ac_status); }; } &&
15096 { ac_try
='test -s conftest.$ac_objext'
15097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15098 (eval $ac_try) 2>&5
15100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15101 (exit $ac_status); }; }; then
15103 cat >>confdefs.h
<<\_ACEOF
15104 #define HAVE_INET_PTON 1
15107 echo "$as_me:$LINENO: result: yes" >&5
15108 echo "${ECHO_T}yes" >&6
15110 echo "$as_me: failed program was:" >&5
15111 sed 's/^/| /' conftest.
$ac_ext >&5
15113 echo "$as_me:$LINENO: result: no" >&5
15114 echo "${ECHO_T}no" >&6
15117 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15119 # On some systems, setgroups is in unistd.h, on others, in grp.h
15120 echo "$as_me:$LINENO: checking for setgroups" >&5
15121 echo $ECHO_N "checking for setgroups... $ECHO_C" >&6
15122 cat >conftest.
$ac_ext <<_ACEOF
15125 cat confdefs.h
>>conftest.
$ac_ext
15126 cat >>conftest.
$ac_ext <<_ACEOF
15127 /* end confdefs.h. */
15129 #include "confdefs.h"
15130 #include <unistd.h>
15138 void* p = setgroups
15143 rm -f conftest.
$ac_objext
15144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15145 (eval $ac_compile) 2>conftest.er1
15147 grep -v '^ *+' conftest.er1
>conftest.err
15149 cat conftest.err
>&5
15150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15151 (exit $ac_status); } &&
15152 { ac_try
='test -z "$ac_c_werror_flag"
15153 || test ! -s conftest.err'
15154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15155 (eval $ac_try) 2>&5
15157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15158 (exit $ac_status); }; } &&
15159 { ac_try
='test -s conftest.$ac_objext'
15160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15161 (eval $ac_try) 2>&5
15163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15164 (exit $ac_status); }; }; then
15166 cat >>confdefs.h
<<\_ACEOF
15167 #define HAVE_SETGROUPS 1
15170 echo "$as_me:$LINENO: result: yes" >&5
15171 echo "${ECHO_T}yes" >&6
15173 echo "$as_me: failed program was:" >&5
15174 sed 's/^/| /' conftest.
$ac_ext >&5
15176 echo "$as_me:$LINENO: result: no" >&5
15177 echo "${ECHO_T}no" >&6
15180 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15182 # check for openpty and forkpty
15185 for ac_func
in openpty
15187 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15188 echo "$as_me:$LINENO: checking for $ac_func" >&5
15189 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15190 if eval "test \"\${$as_ac_var+set}\" = set"; then
15191 echo $ECHO_N "(cached) $ECHO_C" >&6
15193 cat >conftest.
$ac_ext <<_ACEOF
15196 cat confdefs.h
>>conftest.
$ac_ext
15197 cat >>conftest.
$ac_ext <<_ACEOF
15198 /* end confdefs.h. */
15199 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15200 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15201 #define $ac_func innocuous_$ac_func
15203 /* System header to define __stub macros and hopefully few prototypes,
15204 which can conflict with char $ac_func (); below.
15205 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15206 <limits.h> exists even on freestanding compilers. */
15209 # include <limits.h>
15211 # include <assert.h>
15216 /* Override any gcc2 internal prototype to avoid an error. */
15221 /* We use char because int might match the return type of a gcc2
15222 builtin and then its argument prototype would still apply. */
15224 /* The GNU C library defines this for functions which it implements
15225 to always fail with ENOSYS. Some functions are actually named
15226 something starting with __ and the normal name is an alias. */
15227 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15230 char (*f) () = $ac_func;
15239 return f != $ac_func;
15244 rm -f conftest.
$ac_objext conftest
$ac_exeext
15245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15246 (eval $ac_link) 2>conftest.er1
15248 grep -v '^ *+' conftest.er1
>conftest.err
15250 cat conftest.err
>&5
15251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15252 (exit $ac_status); } &&
15253 { ac_try
='test -z "$ac_c_werror_flag"
15254 || test ! -s conftest.err'
15255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15256 (eval $ac_try) 2>&5
15258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15259 (exit $ac_status); }; } &&
15260 { ac_try
='test -s conftest$ac_exeext'
15261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15262 (eval $ac_try) 2>&5
15264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15265 (exit $ac_status); }; }; then
15266 eval "$as_ac_var=yes"
15268 echo "$as_me: failed program was:" >&5
15269 sed 's/^/| /' conftest.
$ac_ext >&5
15271 eval "$as_ac_var=no"
15273 rm -f conftest.err conftest.
$ac_objext \
15274 conftest
$ac_exeext conftest.
$ac_ext
15276 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15277 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15278 if test `eval echo '${'$as_ac_var'}'` = yes; then
15279 cat >>confdefs.h
<<_ACEOF
15280 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15284 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
15285 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
15286 if test "${ac_cv_lib_util_openpty+set}" = set; then
15287 echo $ECHO_N "(cached) $ECHO_C" >&6
15289 ac_check_lib_save_LIBS
=$LIBS
15290 LIBS
="-lutil $LIBS"
15291 cat >conftest.
$ac_ext <<_ACEOF
15294 cat confdefs.h
>>conftest.
$ac_ext
15295 cat >>conftest.
$ac_ext <<_ACEOF
15296 /* end confdefs.h. */
15298 /* Override any gcc2 internal prototype to avoid an error. */
15302 /* We use char because int might match the return type of a gcc2
15303 builtin and then its argument prototype would still apply. */
15313 rm -f conftest.
$ac_objext conftest
$ac_exeext
15314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15315 (eval $ac_link) 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_exeext'
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
15335 ac_cv_lib_util_openpty
=yes
15337 echo "$as_me: failed program was:" >&5
15338 sed 's/^/| /' conftest.
$ac_ext >&5
15340 ac_cv_lib_util_openpty
=no
15342 rm -f conftest.err conftest.
$ac_objext \
15343 conftest
$ac_exeext conftest.
$ac_ext
15344 LIBS
=$ac_check_lib_save_LIBS
15346 echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
15347 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
15348 if test $ac_cv_lib_util_openpty = yes; then
15349 cat >>confdefs.h
<<\_ACEOF
15350 #define HAVE_OPENPTY 1
15352 LIBS
="$LIBS -lutil"
15354 echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
15355 echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6
15356 if test "${ac_cv_lib_bsd_openpty+set}" = set; then
15357 echo $ECHO_N "(cached) $ECHO_C" >&6
15359 ac_check_lib_save_LIBS
=$LIBS
15361 cat >conftest.
$ac_ext <<_ACEOF
15364 cat confdefs.h
>>conftest.
$ac_ext
15365 cat >>conftest.
$ac_ext <<_ACEOF
15366 /* end confdefs.h. */
15368 /* Override any gcc2 internal prototype to avoid an error. */
15372 /* We use char because int might match the return type of a gcc2
15373 builtin and then its argument prototype would still apply. */
15383 rm -f conftest.
$ac_objext conftest
$ac_exeext
15384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15385 (eval $ac_link) 2>conftest.er1
15387 grep -v '^ *+' conftest.er1
>conftest.err
15389 cat conftest.err
>&5
15390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15391 (exit $ac_status); } &&
15392 { ac_try
='test -z "$ac_c_werror_flag"
15393 || test ! -s conftest.err'
15394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15395 (eval $ac_try) 2>&5
15397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15398 (exit $ac_status); }; } &&
15399 { ac_try
='test -s conftest$ac_exeext'
15400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15401 (eval $ac_try) 2>&5
15403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15404 (exit $ac_status); }; }; then
15405 ac_cv_lib_bsd_openpty
=yes
15407 echo "$as_me: failed program was:" >&5
15408 sed 's/^/| /' conftest.
$ac_ext >&5
15410 ac_cv_lib_bsd_openpty
=no
15412 rm -f conftest.err conftest.
$ac_objext \
15413 conftest
$ac_exeext conftest.
$ac_ext
15414 LIBS
=$ac_check_lib_save_LIBS
15416 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
15417 echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6
15418 if test $ac_cv_lib_bsd_openpty = yes; then
15419 cat >>confdefs.h
<<\_ACEOF
15420 #define HAVE_OPENPTY 1
15433 for ac_func
in forkpty
15435 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15436 echo "$as_me:$LINENO: checking for $ac_func" >&5
15437 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15438 if eval "test \"\${$as_ac_var+set}\" = set"; then
15439 echo $ECHO_N "(cached) $ECHO_C" >&6
15441 cat >conftest.
$ac_ext <<_ACEOF
15444 cat confdefs.h
>>conftest.
$ac_ext
15445 cat >>conftest.
$ac_ext <<_ACEOF
15446 /* end confdefs.h. */
15447 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15448 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15449 #define $ac_func innocuous_$ac_func
15451 /* System header to define __stub macros and hopefully few prototypes,
15452 which can conflict with char $ac_func (); below.
15453 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15454 <limits.h> exists even on freestanding compilers. */
15457 # include <limits.h>
15459 # include <assert.h>
15464 /* Override any gcc2 internal prototype to avoid an error. */
15469 /* We use char because int might match the return type of a gcc2
15470 builtin and then its argument prototype would still apply. */
15472 /* The GNU C library defines this for functions which it implements
15473 to always fail with ENOSYS. Some functions are actually named
15474 something starting with __ and the normal name is an alias. */
15475 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15478 char (*f) () = $ac_func;
15487 return f != $ac_func;
15492 rm -f conftest.
$ac_objext conftest
$ac_exeext
15493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15494 (eval $ac_link) 2>conftest.er1
15496 grep -v '^ *+' conftest.er1
>conftest.err
15498 cat conftest.err
>&5
15499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15500 (exit $ac_status); } &&
15501 { ac_try
='test -z "$ac_c_werror_flag"
15502 || test ! -s conftest.err'
15503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15504 (eval $ac_try) 2>&5
15506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15507 (exit $ac_status); }; } &&
15508 { ac_try
='test -s conftest$ac_exeext'
15509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15510 (eval $ac_try) 2>&5
15512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15513 (exit $ac_status); }; }; then
15514 eval "$as_ac_var=yes"
15516 echo "$as_me: failed program was:" >&5
15517 sed 's/^/| /' conftest.
$ac_ext >&5
15519 eval "$as_ac_var=no"
15521 rm -f conftest.err conftest.
$ac_objext \
15522 conftest
$ac_exeext conftest.
$ac_ext
15524 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15525 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15526 if test `eval echo '${'$as_ac_var'}'` = yes; then
15527 cat >>confdefs.h
<<_ACEOF
15528 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15532 echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
15533 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6
15534 if test "${ac_cv_lib_util_forkpty+set}" = set; then
15535 echo $ECHO_N "(cached) $ECHO_C" >&6
15537 ac_check_lib_save_LIBS
=$LIBS
15538 LIBS
="-lutil $LIBS"
15539 cat >conftest.
$ac_ext <<_ACEOF
15542 cat confdefs.h
>>conftest.
$ac_ext
15543 cat >>conftest.
$ac_ext <<_ACEOF
15544 /* end confdefs.h. */
15546 /* Override any gcc2 internal prototype to avoid an error. */
15550 /* We use char because int might match the return type of a gcc2
15551 builtin and then its argument prototype would still apply. */
15561 rm -f conftest.
$ac_objext conftest
$ac_exeext
15562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15563 (eval $ac_link) 2>conftest.er1
15565 grep -v '^ *+' conftest.er1
>conftest.err
15567 cat conftest.err
>&5
15568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15569 (exit $ac_status); } &&
15570 { ac_try
='test -z "$ac_c_werror_flag"
15571 || test ! -s conftest.err'
15572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15573 (eval $ac_try) 2>&5
15575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15576 (exit $ac_status); }; } &&
15577 { ac_try
='test -s conftest$ac_exeext'
15578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15579 (eval $ac_try) 2>&5
15581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15582 (exit $ac_status); }; }; then
15583 ac_cv_lib_util_forkpty
=yes
15585 echo "$as_me: failed program was:" >&5
15586 sed 's/^/| /' conftest.
$ac_ext >&5
15588 ac_cv_lib_util_forkpty
=no
15590 rm -f conftest.err conftest.
$ac_objext \
15591 conftest
$ac_exeext conftest.
$ac_ext
15592 LIBS
=$ac_check_lib_save_LIBS
15594 echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
15595 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6
15596 if test $ac_cv_lib_util_forkpty = yes; then
15597 cat >>confdefs.h
<<\_ACEOF
15598 #define HAVE_FORKPTY 1
15600 LIBS
="$LIBS -lutil"
15602 echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
15603 echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6
15604 if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
15605 echo $ECHO_N "(cached) $ECHO_C" >&6
15607 ac_check_lib_save_LIBS
=$LIBS
15609 cat >conftest.
$ac_ext <<_ACEOF
15612 cat confdefs.h
>>conftest.
$ac_ext
15613 cat >>conftest.
$ac_ext <<_ACEOF
15614 /* end confdefs.h. */
15616 /* Override any gcc2 internal prototype to avoid an error. */
15620 /* We use char because int might match the return type of a gcc2
15621 builtin and then its argument prototype would still apply. */
15631 rm -f conftest.
$ac_objext conftest
$ac_exeext
15632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15633 (eval $ac_link) 2>conftest.er1
15635 grep -v '^ *+' conftest.er1
>conftest.err
15637 cat conftest.err
>&5
15638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15639 (exit $ac_status); } &&
15640 { ac_try
='test -z "$ac_c_werror_flag"
15641 || test ! -s conftest.err'
15642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15643 (eval $ac_try) 2>&5
15645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15646 (exit $ac_status); }; } &&
15647 { ac_try
='test -s conftest$ac_exeext'
15648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15649 (eval $ac_try) 2>&5
15651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15652 (exit $ac_status); }; }; then
15653 ac_cv_lib_bsd_forkpty
=yes
15655 echo "$as_me: failed program was:" >&5
15656 sed 's/^/| /' conftest.
$ac_ext >&5
15658 ac_cv_lib_bsd_forkpty
=no
15660 rm -f conftest.err conftest.
$ac_objext \
15661 conftest
$ac_exeext conftest.
$ac_ext
15662 LIBS
=$ac_check_lib_save_LIBS
15664 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
15665 echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6
15666 if test $ac_cv_lib_bsd_forkpty = yes; then
15667 cat >>confdefs.h
<<\_ACEOF
15668 #define HAVE_FORKPTY 1
15681 # check for long file support functions
15688 for ac_func
in fseek64 fseeko fstatvfs ftell64 ftello statvfs
15690 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15691 echo "$as_me:$LINENO: checking for $ac_func" >&5
15692 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15693 if eval "test \"\${$as_ac_var+set}\" = set"; then
15694 echo $ECHO_N "(cached) $ECHO_C" >&6
15696 cat >conftest.
$ac_ext <<_ACEOF
15699 cat confdefs.h
>>conftest.
$ac_ext
15700 cat >>conftest.
$ac_ext <<_ACEOF
15701 /* end confdefs.h. */
15702 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15703 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15704 #define $ac_func innocuous_$ac_func
15706 /* System header to define __stub macros and hopefully few prototypes,
15707 which can conflict with char $ac_func (); below.
15708 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15709 <limits.h> exists even on freestanding compilers. */
15712 # include <limits.h>
15714 # include <assert.h>
15719 /* Override any gcc2 internal prototype to avoid an error. */
15724 /* We use char because int might match the return type of a gcc2
15725 builtin and then its argument prototype would still apply. */
15727 /* The GNU C library defines this for functions which it implements
15728 to always fail with ENOSYS. Some functions are actually named
15729 something starting with __ and the normal name is an alias. */
15730 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15733 char (*f) () = $ac_func;
15742 return f != $ac_func;
15747 rm -f conftest.
$ac_objext conftest
$ac_exeext
15748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15749 (eval $ac_link) 2>conftest.er1
15751 grep -v '^ *+' conftest.er1
>conftest.err
15753 cat conftest.err
>&5
15754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15755 (exit $ac_status); } &&
15756 { ac_try
='test -z "$ac_c_werror_flag"
15757 || test ! -s conftest.err'
15758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15759 (eval $ac_try) 2>&5
15761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15762 (exit $ac_status); }; } &&
15763 { ac_try
='test -s conftest$ac_exeext'
15764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15765 (eval $ac_try) 2>&5
15767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15768 (exit $ac_status); }; }; then
15769 eval "$as_ac_var=yes"
15771 echo "$as_me: failed program was:" >&5
15772 sed 's/^/| /' conftest.
$ac_ext >&5
15774 eval "$as_ac_var=no"
15776 rm -f conftest.err conftest.
$ac_objext \
15777 conftest
$ac_exeext conftest.
$ac_ext
15779 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15780 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15781 if test `eval echo '${'$as_ac_var'}'` = yes; then
15782 cat >>confdefs.h
<<_ACEOF
15783 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15795 for ac_func
in dup2 getcwd strdup strerror memmove
15797 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15798 echo "$as_me:$LINENO: checking for $ac_func" >&5
15799 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15800 if eval "test \"\${$as_ac_var+set}\" = set"; then
15801 echo $ECHO_N "(cached) $ECHO_C" >&6
15803 cat >conftest.
$ac_ext <<_ACEOF
15806 cat confdefs.h
>>conftest.
$ac_ext
15807 cat >>conftest.
$ac_ext <<_ACEOF
15808 /* end confdefs.h. */
15809 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15810 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15811 #define $ac_func innocuous_$ac_func
15813 /* System header to define __stub macros and hopefully few prototypes,
15814 which can conflict with char $ac_func (); below.
15815 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15816 <limits.h> exists even on freestanding compilers. */
15819 # include <limits.h>
15821 # include <assert.h>
15826 /* Override any gcc2 internal prototype to avoid an error. */
15831 /* We use char because int might match the return type of a gcc2
15832 builtin and then its argument prototype would still apply. */
15834 /* The GNU C library defines this for functions which it implements
15835 to always fail with ENOSYS. Some functions are actually named
15836 something starting with __ and the normal name is an alias. */
15837 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15840 char (*f) () = $ac_func;
15849 return f != $ac_func;
15854 rm -f conftest.
$ac_objext conftest
$ac_exeext
15855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15856 (eval $ac_link) 2>conftest.er1
15858 grep -v '^ *+' conftest.er1
>conftest.err
15860 cat conftest.err
>&5
15861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15862 (exit $ac_status); } &&
15863 { ac_try
='test -z "$ac_c_werror_flag"
15864 || test ! -s conftest.err'
15865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15866 (eval $ac_try) 2>&5
15868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15869 (exit $ac_status); }; } &&
15870 { ac_try
='test -s conftest$ac_exeext'
15871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15872 (eval $ac_try) 2>&5
15874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15875 (exit $ac_status); }; }; then
15876 eval "$as_ac_var=yes"
15878 echo "$as_me: failed program was:" >&5
15879 sed 's/^/| /' conftest.
$ac_ext >&5
15881 eval "$as_ac_var=no"
15883 rm -f conftest.err conftest.
$ac_objext \
15884 conftest
$ac_exeext conftest.
$ac_ext
15886 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15887 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15888 if test `eval echo '${'$as_ac_var'}'` = yes; then
15889 cat >>confdefs.h
<<_ACEOF
15890 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15895 "$ac_func.$ac_objext" | \
15896 *" $ac_func.$ac_objext" | \
15897 "$ac_func.$ac_objext "* | \
15898 *" $ac_func.$ac_objext "* ) ;;
15899 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext" ;;
15907 for ac_func
in getpgrp
15909 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15910 echo "$as_me:$LINENO: checking for $ac_func" >&5
15911 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15912 if eval "test \"\${$as_ac_var+set}\" = set"; then
15913 echo $ECHO_N "(cached) $ECHO_C" >&6
15915 cat >conftest.
$ac_ext <<_ACEOF
15918 cat confdefs.h
>>conftest.
$ac_ext
15919 cat >>conftest.
$ac_ext <<_ACEOF
15920 /* end confdefs.h. */
15921 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15922 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15923 #define $ac_func innocuous_$ac_func
15925 /* System header to define __stub macros and hopefully few prototypes,
15926 which can conflict with char $ac_func (); below.
15927 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15928 <limits.h> exists even on freestanding compilers. */
15931 # include <limits.h>
15933 # include <assert.h>
15938 /* Override any gcc2 internal prototype to avoid an error. */
15943 /* We use char because int might match the return type of a gcc2
15944 builtin and then its argument prototype would still apply. */
15946 /* The GNU C library defines this for functions which it implements
15947 to always fail with ENOSYS. Some functions are actually named
15948 something starting with __ and the normal name is an alias. */
15949 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15952 char (*f) () = $ac_func;
15961 return f != $ac_func;
15966 rm -f conftest.
$ac_objext conftest
$ac_exeext
15967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15968 (eval $ac_link) 2>conftest.er1
15970 grep -v '^ *+' conftest.er1
>conftest.err
15972 cat conftest.err
>&5
15973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15974 (exit $ac_status); } &&
15975 { ac_try
='test -z "$ac_c_werror_flag"
15976 || test ! -s conftest.err'
15977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15978 (eval $ac_try) 2>&5
15980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15981 (exit $ac_status); }; } &&
15982 { ac_try
='test -s conftest$ac_exeext'
15983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15984 (eval $ac_try) 2>&5
15986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15987 (exit $ac_status); }; }; then
15988 eval "$as_ac_var=yes"
15990 echo "$as_me: failed program was:" >&5
15991 sed 's/^/| /' conftest.
$ac_ext >&5
15993 eval "$as_ac_var=no"
15995 rm -f conftest.err conftest.
$ac_objext \
15996 conftest
$ac_exeext conftest.
$ac_ext
15998 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15999 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16000 if test `eval echo '${'$as_ac_var'}'` = yes; then
16001 cat >>confdefs.h
<<_ACEOF
16002 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16004 cat >conftest.
$ac_ext <<_ACEOF
16007 cat confdefs.h
>>conftest.
$ac_ext
16008 cat >>conftest.
$ac_ext <<_ACEOF
16009 /* end confdefs.h. */
16010 #include <unistd.h>
16019 rm -f conftest.
$ac_objext
16020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16021 (eval $ac_compile) 2>conftest.er1
16023 grep -v '^ *+' conftest.er1
>conftest.err
16025 cat conftest.err
>&5
16026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16027 (exit $ac_status); } &&
16028 { ac_try
='test -z "$ac_c_werror_flag"
16029 || test ! -s conftest.err'
16030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16031 (eval $ac_try) 2>&5
16033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16034 (exit $ac_status); }; } &&
16035 { ac_try
='test -s conftest.$ac_objext'
16036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16037 (eval $ac_try) 2>&5
16039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16040 (exit $ac_status); }; }; then
16042 cat >>confdefs.h
<<\_ACEOF
16043 #define GETPGRP_HAVE_ARG 1
16048 echo "$as_me: failed program was:" >&5
16049 sed 's/^/| /' conftest.
$ac_ext >&5
16052 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16058 for ac_func
in setpgrp
16060 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16061 echo "$as_me:$LINENO: checking for $ac_func" >&5
16062 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16063 if eval "test \"\${$as_ac_var+set}\" = set"; then
16064 echo $ECHO_N "(cached) $ECHO_C" >&6
16066 cat >conftest.
$ac_ext <<_ACEOF
16069 cat confdefs.h
>>conftest.
$ac_ext
16070 cat >>conftest.
$ac_ext <<_ACEOF
16071 /* end confdefs.h. */
16072 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16073 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16074 #define $ac_func innocuous_$ac_func
16076 /* System header to define __stub macros and hopefully few prototypes,
16077 which can conflict with char $ac_func (); below.
16078 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16079 <limits.h> exists even on freestanding compilers. */
16082 # include <limits.h>
16084 # include <assert.h>
16089 /* Override any gcc2 internal prototype to avoid an error. */
16094 /* We use char because int might match the return type of a gcc2
16095 builtin and then its argument prototype would still apply. */
16097 /* The GNU C library defines this for functions which it implements
16098 to always fail with ENOSYS. Some functions are actually named
16099 something starting with __ and the normal name is an alias. */
16100 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16103 char (*f) () = $ac_func;
16112 return f != $ac_func;
16117 rm -f conftest.
$ac_objext conftest
$ac_exeext
16118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16119 (eval $ac_link) 2>conftest.er1
16121 grep -v '^ *+' conftest.er1
>conftest.err
16123 cat conftest.err
>&5
16124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16125 (exit $ac_status); } &&
16126 { ac_try
='test -z "$ac_c_werror_flag"
16127 || test ! -s conftest.err'
16128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16129 (eval $ac_try) 2>&5
16131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16132 (exit $ac_status); }; } &&
16133 { ac_try
='test -s conftest$ac_exeext'
16134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16135 (eval $ac_try) 2>&5
16137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16138 (exit $ac_status); }; }; then
16139 eval "$as_ac_var=yes"
16141 echo "$as_me: failed program was:" >&5
16142 sed 's/^/| /' conftest.
$ac_ext >&5
16144 eval "$as_ac_var=no"
16146 rm -f conftest.err conftest.
$ac_objext \
16147 conftest
$ac_exeext conftest.
$ac_ext
16149 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16150 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16151 if test `eval echo '${'$as_ac_var'}'` = yes; then
16152 cat >>confdefs.h
<<_ACEOF
16153 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16155 cat >conftest.
$ac_ext <<_ACEOF
16158 cat confdefs.h
>>conftest.
$ac_ext
16159 cat >>conftest.
$ac_ext <<_ACEOF
16160 /* end confdefs.h. */
16161 #include <unistd.h>
16170 rm -f conftest.
$ac_objext
16171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16172 (eval $ac_compile) 2>conftest.er1
16174 grep -v '^ *+' conftest.er1
>conftest.err
16176 cat conftest.err
>&5
16177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16178 (exit $ac_status); } &&
16179 { ac_try
='test -z "$ac_c_werror_flag"
16180 || test ! -s conftest.err'
16181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16182 (eval $ac_try) 2>&5
16184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16185 (exit $ac_status); }; } &&
16186 { ac_try
='test -s conftest.$ac_objext'
16187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16188 (eval $ac_try) 2>&5
16190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16191 (exit $ac_status); }; }; then
16193 cat >>confdefs.h
<<\_ACEOF
16194 #define SETPGRP_HAVE_ARG 1
16199 echo "$as_me: failed program was:" >&5
16200 sed 's/^/| /' conftest.
$ac_ext >&5
16203 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16209 for ac_func
in gettimeofday
16211 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16212 echo "$as_me:$LINENO: checking for $ac_func" >&5
16213 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16214 if eval "test \"\${$as_ac_var+set}\" = set"; then
16215 echo $ECHO_N "(cached) $ECHO_C" >&6
16217 cat >conftest.
$ac_ext <<_ACEOF
16220 cat confdefs.h
>>conftest.
$ac_ext
16221 cat >>conftest.
$ac_ext <<_ACEOF
16222 /* end confdefs.h. */
16223 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16224 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16225 #define $ac_func innocuous_$ac_func
16227 /* System header to define __stub macros and hopefully few prototypes,
16228 which can conflict with char $ac_func (); below.
16229 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16230 <limits.h> exists even on freestanding compilers. */
16233 # include <limits.h>
16235 # include <assert.h>
16240 /* Override any gcc2 internal prototype to avoid an error. */
16245 /* We use char because int might match the return type of a gcc2
16246 builtin and then its argument prototype would still apply. */
16248 /* The GNU C library defines this for functions which it implements
16249 to always fail with ENOSYS. Some functions are actually named
16250 something starting with __ and the normal name is an alias. */
16251 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16254 char (*f) () = $ac_func;
16263 return f != $ac_func;
16268 rm -f conftest.
$ac_objext conftest
$ac_exeext
16269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16270 (eval $ac_link) 2>conftest.er1
16272 grep -v '^ *+' conftest.er1
>conftest.err
16274 cat conftest.err
>&5
16275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16276 (exit $ac_status); } &&
16277 { ac_try
='test -z "$ac_c_werror_flag"
16278 || test ! -s conftest.err'
16279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16280 (eval $ac_try) 2>&5
16282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16283 (exit $ac_status); }; } &&
16284 { ac_try
='test -s conftest$ac_exeext'
16285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16286 (eval $ac_try) 2>&5
16288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16289 (exit $ac_status); }; }; then
16290 eval "$as_ac_var=yes"
16292 echo "$as_me: failed program was:" >&5
16293 sed 's/^/| /' conftest.
$ac_ext >&5
16295 eval "$as_ac_var=no"
16297 rm -f conftest.err conftest.
$ac_objext \
16298 conftest
$ac_exeext conftest.
$ac_ext
16300 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16301 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16302 if test `eval echo '${'$as_ac_var'}'` = yes; then
16303 cat >>confdefs.h
<<_ACEOF
16304 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16306 cat >conftest.
$ac_ext <<_ACEOF
16309 cat confdefs.h
>>conftest.
$ac_ext
16310 cat >>conftest.
$ac_ext <<_ACEOF
16311 /* end confdefs.h. */
16312 #include <sys/time.h>
16316 gettimeofday((struct timeval*)0,(struct timezone*)0);
16321 rm -f conftest.
$ac_objext
16322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16323 (eval $ac_compile) 2>conftest.er1
16325 grep -v '^ *+' conftest.er1
>conftest.err
16327 cat conftest.err
>&5
16328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16329 (exit $ac_status); } &&
16330 { ac_try
='test -z "$ac_c_werror_flag"
16331 || test ! -s conftest.err'
16332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16333 (eval $ac_try) 2>&5
16335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16336 (exit $ac_status); }; } &&
16337 { ac_try
='test -s conftest.$ac_objext'
16338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16339 (eval $ac_try) 2>&5
16341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16342 (exit $ac_status); }; }; then
16345 echo "$as_me: failed program was:" >&5
16346 sed 's/^/| /' conftest.
$ac_ext >&5
16349 cat >>confdefs.h
<<\_ACEOF
16350 #define GETTIMEOFDAY_NO_TZ 1
16355 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16361 echo "$as_me:$LINENO: checking for major" >&5
16362 echo $ECHO_N "checking for major... $ECHO_C" >&6
16363 cat >conftest.
$ac_ext <<_ACEOF
16366 cat confdefs.h
>>conftest.
$ac_ext
16367 cat >>conftest.
$ac_ext <<_ACEOF
16368 /* end confdefs.h. */
16370 #if defined(MAJOR_IN_MKDEV)
16371 #include <sys/mkdev.h>
16372 #elif defined(MAJOR_IN_SYSMACROS)
16373 #include <sys/sysmacros.h>
16375 #include <sys/types.h>
16382 makedev(major(0),minor(0));
16388 rm -f conftest.
$ac_objext conftest
$ac_exeext
16389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16390 (eval $ac_link) 2>conftest.er1
16392 grep -v '^ *+' conftest.er1
>conftest.err
16394 cat conftest.err
>&5
16395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16396 (exit $ac_status); } &&
16397 { ac_try
='test -z "$ac_c_werror_flag"
16398 || test ! -s conftest.err'
16399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16400 (eval $ac_try) 2>&5
16402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16403 (exit $ac_status); }; } &&
16404 { ac_try
='test -s conftest$ac_exeext'
16405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16406 (eval $ac_try) 2>&5
16408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16409 (exit $ac_status); }; }; then
16412 cat >>confdefs.h
<<\_ACEOF
16413 #define HAVE_DEVICE_MACROS 1
16416 echo "$as_me:$LINENO: result: yes" >&5
16417 echo "${ECHO_T}yes" >&6
16420 echo "$as_me: failed program was:" >&5
16421 sed 's/^/| /' conftest.
$ac_ext >&5
16424 echo "$as_me:$LINENO: result: no" >&5
16425 echo "${ECHO_T}no" >&6
16428 rm -f conftest.err conftest.
$ac_objext \
16429 conftest
$ac_exeext conftest.
$ac_ext
16431 # On OSF/1 V5.1, getaddrinfo is available, but a define
16432 # for [no]getaddrinfo in netdb.h.
16433 echo "$as_me:$LINENO: checking for getaddrinfo" >&5
16434 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6
16435 cat >conftest.
$ac_ext <<_ACEOF
16438 cat confdefs.h
>>conftest.
$ac_ext
16439 cat >>conftest.
$ac_ext <<_ACEOF
16440 /* end confdefs.h. */
16442 #include <sys/types.h>
16443 #include <sys/socket.h>
16451 getaddrinfo(NULL, NULL, NULL, NULL);
16457 rm -f conftest.
$ac_objext conftest
$ac_exeext
16458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16459 (eval $ac_link) 2>conftest.er1
16461 grep -v '^ *+' conftest.er1
>conftest.err
16463 cat conftest.err
>&5
16464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16465 (exit $ac_status); } &&
16466 { ac_try
='test -z "$ac_c_werror_flag"
16467 || test ! -s conftest.err'
16468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16469 (eval $ac_try) 2>&5
16471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16472 (exit $ac_status); }; } &&
16473 { ac_try
='test -s conftest$ac_exeext'
16474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16475 (eval $ac_try) 2>&5
16477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16478 (exit $ac_status); }; }; then
16480 echo "$as_me:$LINENO: result: yes" >&5
16481 echo "${ECHO_T}yes" >&6
16482 echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
16483 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6
16484 if test "$cross_compiling" = yes; then
16485 echo "$as_me:$LINENO: result: buggy" >&5
16486 echo "${ECHO_T}buggy" >&6
16487 buggygetaddrinfo
=yes
16489 cat >conftest.
$ac_ext <<_ACEOF
16492 cat confdefs.h
>>conftest.
$ac_ext
16493 cat >>conftest.
$ac_ext <<_ACEOF
16494 /* end confdefs.h. */
16496 #include <sys/types.h>
16498 #include <string.h>
16499 #include <sys/socket.h>
16500 #include <netinet/in.h>
16504 int passive, gaierr, inet4 = 0, inet6 = 0;
16505 struct addrinfo hints, *ai, *aitop;
16506 char straddr[INET6_ADDRSTRLEN], strport[16];
16508 for (passive = 0; passive <= 1; passive++) {
16509 memset(&hints, 0, sizeof(hints));
16510 hints.ai_family = AF_UNSPEC;
16511 hints.ai_flags = passive ? AI_PASSIVE : 0;
16512 hints.ai_socktype = SOCK_STREAM;
16513 hints.ai_protocol = IPPROTO_TCP;
16514 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
16515 (void)gai_strerror(gaierr);
16518 for (ai = aitop; ai; ai = ai->ai_next) {
16519 if (ai->ai_addr == NULL ||
16520 ai->ai_addrlen == 0 ||
16521 getnameinfo(ai->ai_addr, ai->ai_addrlen,
16522 straddr, sizeof(straddr), strport, sizeof(strport),
16523 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
16526 switch (ai->ai_family) {
16528 if (strcmp(strport, "54321") != 0) {
16532 if (strcmp(straddr, "0.0.0.0") != 0) {
16536 if (strcmp(straddr, "127.0.0.1") != 0) {
16543 if (strcmp(strport, "54321") != 0) {
16547 if (strcmp(straddr, "::") != 0) {
16551 if (strcmp(straddr, "::1") != 0) {
16561 /* another family support? */
16567 if (!(inet4 == 0 || inet4 == 2))
16569 if (!(inet6 == 0 || inet6 == 2))
16573 freeaddrinfo(aitop);
16578 freeaddrinfo(aitop);
16583 rm -f conftest
$ac_exeext
16584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16585 (eval $ac_link) 2>&5
16587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16588 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
16589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16590 (eval $ac_try) 2>&5
16592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16593 (exit $ac_status); }; }; then
16594 echo "$as_me:$LINENO: result: good" >&5
16595 echo "${ECHO_T}good" >&6
16596 buggygetaddrinfo
=no
16598 echo "$as_me: program exited with status $ac_status" >&5
16599 echo "$as_me: failed program was:" >&5
16600 sed 's/^/| /' conftest.
$ac_ext >&5
16602 ( exit $ac_status )
16603 echo "$as_me:$LINENO: result: buggy" >&5
16604 echo "${ECHO_T}buggy" >&6
16605 buggygetaddrinfo
=yes
16607 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
16610 echo "$as_me: failed program was:" >&5
16611 sed 's/^/| /' conftest.
$ac_ext >&5
16614 echo "$as_me:$LINENO: result: no" >&5
16615 echo "${ECHO_T}no" >&6
16616 buggygetaddrinfo
=yes
16619 rm -f conftest.err conftest.
$ac_objext \
16620 conftest
$ac_exeext conftest.
$ac_ext
16622 if test "$buggygetaddrinfo" = "yes"; then
16623 if test "$ipv6" = "yes"; then
16624 echo 'Fatal: You must get working getaddrinfo() function.'
16625 echo ' or you can specify "--disable-ipv6"'.
16630 cat >>confdefs.h
<<\_ACEOF
16631 #define HAVE_GETADDRINFO 1
16636 for ac_func
in getnameinfo
16638 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16639 echo "$as_me:$LINENO: checking for $ac_func" >&5
16640 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16641 if eval "test \"\${$as_ac_var+set}\" = set"; then
16642 echo $ECHO_N "(cached) $ECHO_C" >&6
16644 cat >conftest.
$ac_ext <<_ACEOF
16647 cat confdefs.h
>>conftest.
$ac_ext
16648 cat >>conftest.
$ac_ext <<_ACEOF
16649 /* end confdefs.h. */
16650 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16651 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16652 #define $ac_func innocuous_$ac_func
16654 /* System header to define __stub macros and hopefully few prototypes,
16655 which can conflict with char $ac_func (); below.
16656 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16657 <limits.h> exists even on freestanding compilers. */
16660 # include <limits.h>
16662 # include <assert.h>
16667 /* Override any gcc2 internal prototype to avoid an error. */
16672 /* We use char because int might match the return type of a gcc2
16673 builtin and then its argument prototype would still apply. */
16675 /* The GNU C library defines this for functions which it implements
16676 to always fail with ENOSYS. Some functions are actually named
16677 something starting with __ and the normal name is an alias. */
16678 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16681 char (*f) () = $ac_func;
16690 return f != $ac_func;
16695 rm -f conftest.
$ac_objext conftest
$ac_exeext
16696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16697 (eval $ac_link) 2>conftest.er1
16699 grep -v '^ *+' conftest.er1
>conftest.err
16701 cat conftest.err
>&5
16702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16703 (exit $ac_status); } &&
16704 { ac_try
='test -z "$ac_c_werror_flag"
16705 || test ! -s conftest.err'
16706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16707 (eval $ac_try) 2>&5
16709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16710 (exit $ac_status); }; } &&
16711 { ac_try
='test -s conftest$ac_exeext'
16712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16713 (eval $ac_try) 2>&5
16715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16716 (exit $ac_status); }; }; then
16717 eval "$as_ac_var=yes"
16719 echo "$as_me: failed program was:" >&5
16720 sed 's/^/| /' conftest.
$ac_ext >&5
16722 eval "$as_ac_var=no"
16724 rm -f conftest.err conftest.
$ac_objext \
16725 conftest
$ac_exeext conftest.
$ac_ext
16727 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16728 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16729 if test `eval echo '${'$as_ac_var'}'` = yes; then
16730 cat >>confdefs.h
<<_ACEOF
16731 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16738 # checks for structures
16739 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
16740 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
16741 if test "${ac_cv_header_time+set}" = set; then
16742 echo $ECHO_N "(cached) $ECHO_C" >&6
16744 cat >conftest.
$ac_ext <<_ACEOF
16747 cat confdefs.h
>>conftest.
$ac_ext
16748 cat >>conftest.
$ac_ext <<_ACEOF
16749 /* end confdefs.h. */
16750 #include <sys/types.h>
16751 #include <sys/time.h>
16757 if ((struct tm *) 0)
16763 rm -f conftest.
$ac_objext
16764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16765 (eval $ac_compile) 2>conftest.er1
16767 grep -v '^ *+' conftest.er1
>conftest.err
16769 cat conftest.err
>&5
16770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16771 (exit $ac_status); } &&
16772 { ac_try
='test -z "$ac_c_werror_flag"
16773 || test ! -s conftest.err'
16774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16775 (eval $ac_try) 2>&5
16777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16778 (exit $ac_status); }; } &&
16779 { ac_try
='test -s conftest.$ac_objext'
16780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16781 (eval $ac_try) 2>&5
16783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16784 (exit $ac_status); }; }; then
16785 ac_cv_header_time
=yes
16787 echo "$as_me: failed program was:" >&5
16788 sed 's/^/| /' conftest.
$ac_ext >&5
16790 ac_cv_header_time
=no
16792 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16794 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
16795 echo "${ECHO_T}$ac_cv_header_time" >&6
16796 if test $ac_cv_header_time = yes; then
16798 cat >>confdefs.h
<<\_ACEOF
16799 #define TIME_WITH_SYS_TIME 1
16804 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16805 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
16806 if test "${ac_cv_struct_tm+set}" = set; then
16807 echo $ECHO_N "(cached) $ECHO_C" >&6
16809 cat >conftest.
$ac_ext <<_ACEOF
16812 cat confdefs.h
>>conftest.
$ac_ext
16813 cat >>conftest.
$ac_ext <<_ACEOF
16814 /* end confdefs.h. */
16815 #include <sys/types.h>
16821 struct tm *tp; tp->tm_sec;
16826 rm -f conftest.
$ac_objext
16827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16828 (eval $ac_compile) 2>conftest.er1
16830 grep -v '^ *+' conftest.er1
>conftest.err
16832 cat conftest.err
>&5
16833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16834 (exit $ac_status); } &&
16835 { ac_try
='test -z "$ac_c_werror_flag"
16836 || test ! -s conftest.err'
16837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16838 (eval $ac_try) 2>&5
16840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16841 (exit $ac_status); }; } &&
16842 { ac_try
='test -s conftest.$ac_objext'
16843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16844 (eval $ac_try) 2>&5
16846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16847 (exit $ac_status); }; }; then
16848 ac_cv_struct_tm
=time.h
16850 echo "$as_me: failed program was:" >&5
16851 sed 's/^/| /' conftest.
$ac_ext >&5
16853 ac_cv_struct_tm
=sys
/time.h
16855 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16857 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16858 echo "${ECHO_T}$ac_cv_struct_tm" >&6
16859 if test $ac_cv_struct_tm = sys
/time.h
; then
16861 cat >>confdefs.h
<<\_ACEOF
16862 #define TM_IN_SYS_TIME 1
16867 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
16868 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
16869 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
16870 echo $ECHO_N "(cached) $ECHO_C" >&6
16872 cat >conftest.
$ac_ext <<_ACEOF
16875 cat confdefs.h
>>conftest.
$ac_ext
16876 cat >>conftest.
$ac_ext <<_ACEOF
16877 /* end confdefs.h. */
16878 #include <sys/types.h>
16879 #include <$ac_cv_struct_tm>
16885 static struct tm ac_aggr;
16886 if (ac_aggr.tm_zone)
16892 rm -f conftest.
$ac_objext
16893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16894 (eval $ac_compile) 2>conftest.er1
16896 grep -v '^ *+' conftest.er1
>conftest.err
16898 cat conftest.err
>&5
16899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16900 (exit $ac_status); } &&
16901 { ac_try
='test -z "$ac_c_werror_flag"
16902 || test ! -s conftest.err'
16903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16904 (eval $ac_try) 2>&5
16906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16907 (exit $ac_status); }; } &&
16908 { ac_try
='test -s conftest.$ac_objext'
16909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16910 (eval $ac_try) 2>&5
16912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16913 (exit $ac_status); }; }; then
16914 ac_cv_member_struct_tm_tm_zone
=yes
16916 echo "$as_me: failed program was:" >&5
16917 sed 's/^/| /' conftest.
$ac_ext >&5
16919 cat >conftest.
$ac_ext <<_ACEOF
16922 cat confdefs.h
>>conftest.
$ac_ext
16923 cat >>conftest.
$ac_ext <<_ACEOF
16924 /* end confdefs.h. */
16925 #include <sys/types.h>
16926 #include <$ac_cv_struct_tm>
16932 static struct tm ac_aggr;
16933 if (sizeof ac_aggr.tm_zone)
16939 rm -f conftest.
$ac_objext
16940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16941 (eval $ac_compile) 2>conftest.er1
16943 grep -v '^ *+' conftest.er1
>conftest.err
16945 cat conftest.err
>&5
16946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16947 (exit $ac_status); } &&
16948 { ac_try
='test -z "$ac_c_werror_flag"
16949 || test ! -s conftest.err'
16950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16951 (eval $ac_try) 2>&5
16953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16954 (exit $ac_status); }; } &&
16955 { ac_try
='test -s conftest.$ac_objext'
16956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16957 (eval $ac_try) 2>&5
16959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16960 (exit $ac_status); }; }; then
16961 ac_cv_member_struct_tm_tm_zone
=yes
16963 echo "$as_me: failed program was:" >&5
16964 sed 's/^/| /' conftest.
$ac_ext >&5
16966 ac_cv_member_struct_tm_tm_zone
=no
16968 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16970 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16972 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
16973 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
16974 if test $ac_cv_member_struct_tm_tm_zone = yes; then
16976 cat >>confdefs.h
<<_ACEOF
16977 #define HAVE_STRUCT_TM_TM_ZONE 1
16983 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
16985 cat >>confdefs.h
<<\_ACEOF
16986 #define HAVE_TM_ZONE 1
16990 echo "$as_me:$LINENO: checking for tzname" >&5
16991 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
16992 if test "${ac_cv_var_tzname+set}" = set; then
16993 echo $ECHO_N "(cached) $ECHO_C" >&6
16995 cat >conftest.
$ac_ext <<_ACEOF
16998 cat confdefs.h
>>conftest.
$ac_ext
16999 cat >>conftest.
$ac_ext <<_ACEOF
17000 /* end confdefs.h. */
17002 #ifndef tzname /* For SGI. */
17003 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
17014 rm -f conftest.
$ac_objext conftest
$ac_exeext
17015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17016 (eval $ac_link) 2>conftest.er1
17018 grep -v '^ *+' conftest.er1
>conftest.err
17020 cat conftest.err
>&5
17021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17022 (exit $ac_status); } &&
17023 { ac_try
='test -z "$ac_c_werror_flag"
17024 || test ! -s conftest.err'
17025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17026 (eval $ac_try) 2>&5
17028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17029 (exit $ac_status); }; } &&
17030 { ac_try
='test -s conftest$ac_exeext'
17031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17032 (eval $ac_try) 2>&5
17034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17035 (exit $ac_status); }; }; then
17036 ac_cv_var_tzname
=yes
17038 echo "$as_me: failed program was:" >&5
17039 sed 's/^/| /' conftest.
$ac_ext >&5
17041 ac_cv_var_tzname
=no
17043 rm -f conftest.err conftest.
$ac_objext \
17044 conftest
$ac_exeext conftest.
$ac_ext
17046 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
17047 echo "${ECHO_T}$ac_cv_var_tzname" >&6
17048 if test $ac_cv_var_tzname = yes; then
17050 cat >>confdefs.h
<<\_ACEOF
17051 #define HAVE_TZNAME 1
17057 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
17058 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
17059 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
17060 echo $ECHO_N "(cached) $ECHO_C" >&6
17062 cat >conftest.
$ac_ext <<_ACEOF
17065 cat confdefs.h
>>conftest.
$ac_ext
17066 cat >>conftest.
$ac_ext <<_ACEOF
17067 /* end confdefs.h. */
17068 $ac_includes_default
17072 static struct stat ac_aggr;
17073 if (ac_aggr.st_rdev)
17079 rm -f conftest.
$ac_objext
17080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17081 (eval $ac_compile) 2>conftest.er1
17083 grep -v '^ *+' conftest.er1
>conftest.err
17085 cat conftest.err
>&5
17086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17087 (exit $ac_status); } &&
17088 { ac_try
='test -z "$ac_c_werror_flag"
17089 || test ! -s conftest.err'
17090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17091 (eval $ac_try) 2>&5
17093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17094 (exit $ac_status); }; } &&
17095 { ac_try
='test -s conftest.$ac_objext'
17096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17097 (eval $ac_try) 2>&5
17099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17100 (exit $ac_status); }; }; then
17101 ac_cv_member_struct_stat_st_rdev
=yes
17103 echo "$as_me: failed program was:" >&5
17104 sed 's/^/| /' conftest.
$ac_ext >&5
17106 cat >conftest.
$ac_ext <<_ACEOF
17109 cat confdefs.h
>>conftest.
$ac_ext
17110 cat >>conftest.
$ac_ext <<_ACEOF
17111 /* end confdefs.h. */
17112 $ac_includes_default
17116 static struct stat ac_aggr;
17117 if (sizeof ac_aggr.st_rdev)
17123 rm -f conftest.
$ac_objext
17124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17125 (eval $ac_compile) 2>conftest.er1
17127 grep -v '^ *+' conftest.er1
>conftest.err
17129 cat conftest.err
>&5
17130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17131 (exit $ac_status); } &&
17132 { ac_try
='test -z "$ac_c_werror_flag"
17133 || test ! -s conftest.err'
17134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17135 (eval $ac_try) 2>&5
17137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17138 (exit $ac_status); }; } &&
17139 { ac_try
='test -s conftest.$ac_objext'
17140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17141 (eval $ac_try) 2>&5
17143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17144 (exit $ac_status); }; }; then
17145 ac_cv_member_struct_stat_st_rdev
=yes
17147 echo "$as_me: failed program was:" >&5
17148 sed 's/^/| /' conftest.
$ac_ext >&5
17150 ac_cv_member_struct_stat_st_rdev
=no
17152 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17154 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17156 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
17157 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
17158 if test $ac_cv_member_struct_stat_st_rdev = yes; then
17160 cat >>confdefs.h
<<_ACEOF
17161 #define HAVE_STRUCT_STAT_ST_RDEV 1
17167 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
17168 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
17169 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
17170 echo $ECHO_N "(cached) $ECHO_C" >&6
17172 cat >conftest.
$ac_ext <<_ACEOF
17175 cat confdefs.h
>>conftest.
$ac_ext
17176 cat >>conftest.
$ac_ext <<_ACEOF
17177 /* end confdefs.h. */
17178 $ac_includes_default
17182 static struct stat ac_aggr;
17183 if (ac_aggr.st_blksize)
17189 rm -f conftest.
$ac_objext
17190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17191 (eval $ac_compile) 2>conftest.er1
17193 grep -v '^ *+' conftest.er1
>conftest.err
17195 cat conftest.err
>&5
17196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17197 (exit $ac_status); } &&
17198 { ac_try
='test -z "$ac_c_werror_flag"
17199 || test ! -s conftest.err'
17200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17201 (eval $ac_try) 2>&5
17203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17204 (exit $ac_status); }; } &&
17205 { ac_try
='test -s conftest.$ac_objext'
17206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17207 (eval $ac_try) 2>&5
17209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17210 (exit $ac_status); }; }; then
17211 ac_cv_member_struct_stat_st_blksize
=yes
17213 echo "$as_me: failed program was:" >&5
17214 sed 's/^/| /' conftest.
$ac_ext >&5
17216 cat >conftest.
$ac_ext <<_ACEOF
17219 cat confdefs.h
>>conftest.
$ac_ext
17220 cat >>conftest.
$ac_ext <<_ACEOF
17221 /* end confdefs.h. */
17222 $ac_includes_default
17226 static struct stat ac_aggr;
17227 if (sizeof ac_aggr.st_blksize)
17233 rm -f conftest.
$ac_objext
17234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17235 (eval $ac_compile) 2>conftest.er1
17237 grep -v '^ *+' conftest.er1
>conftest.err
17239 cat conftest.err
>&5
17240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17241 (exit $ac_status); } &&
17242 { ac_try
='test -z "$ac_c_werror_flag"
17243 || test ! -s conftest.err'
17244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17245 (eval $ac_try) 2>&5
17247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17248 (exit $ac_status); }; } &&
17249 { ac_try
='test -s conftest.$ac_objext'
17250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17251 (eval $ac_try) 2>&5
17253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17254 (exit $ac_status); }; }; then
17255 ac_cv_member_struct_stat_st_blksize
=yes
17257 echo "$as_me: failed program was:" >&5
17258 sed 's/^/| /' conftest.
$ac_ext >&5
17260 ac_cv_member_struct_stat_st_blksize
=no
17262 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17264 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17266 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
17267 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
17268 if test $ac_cv_member_struct_stat_st_blksize = yes; then
17270 cat >>confdefs.h
<<_ACEOF
17271 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
17277 echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
17278 echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6
17279 if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
17280 echo $ECHO_N "(cached) $ECHO_C" >&6
17282 cat >conftest.
$ac_ext <<_ACEOF
17285 cat confdefs.h
>>conftest.
$ac_ext
17286 cat >>conftest.
$ac_ext <<_ACEOF
17287 /* end confdefs.h. */
17288 $ac_includes_default
17292 static struct stat ac_aggr;
17293 if (ac_aggr.st_flags)
17299 rm -f conftest.
$ac_objext
17300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17301 (eval $ac_compile) 2>conftest.er1
17303 grep -v '^ *+' conftest.er1
>conftest.err
17305 cat conftest.err
>&5
17306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17307 (exit $ac_status); } &&
17308 { ac_try
='test -z "$ac_c_werror_flag"
17309 || test ! -s conftest.err'
17310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17311 (eval $ac_try) 2>&5
17313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17314 (exit $ac_status); }; } &&
17315 { ac_try
='test -s conftest.$ac_objext'
17316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17317 (eval $ac_try) 2>&5
17319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17320 (exit $ac_status); }; }; then
17321 ac_cv_member_struct_stat_st_flags
=yes
17323 echo "$as_me: failed program was:" >&5
17324 sed 's/^/| /' conftest.
$ac_ext >&5
17326 cat >conftest.
$ac_ext <<_ACEOF
17329 cat confdefs.h
>>conftest.
$ac_ext
17330 cat >>conftest.
$ac_ext <<_ACEOF
17331 /* end confdefs.h. */
17332 $ac_includes_default
17336 static struct stat ac_aggr;
17337 if (sizeof ac_aggr.st_flags)
17343 rm -f conftest.
$ac_objext
17344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17345 (eval $ac_compile) 2>conftest.er1
17347 grep -v '^ *+' conftest.er1
>conftest.err
17349 cat conftest.err
>&5
17350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17351 (exit $ac_status); } &&
17352 { ac_try
='test -z "$ac_c_werror_flag"
17353 || test ! -s conftest.err'
17354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17355 (eval $ac_try) 2>&5
17357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17358 (exit $ac_status); }; } &&
17359 { ac_try
='test -s conftest.$ac_objext'
17360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17361 (eval $ac_try) 2>&5
17363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17364 (exit $ac_status); }; }; then
17365 ac_cv_member_struct_stat_st_flags
=yes
17367 echo "$as_me: failed program was:" >&5
17368 sed 's/^/| /' conftest.
$ac_ext >&5
17370 ac_cv_member_struct_stat_st_flags
=no
17372 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17374 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17376 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
17377 echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6
17378 if test $ac_cv_member_struct_stat_st_flags = yes; then
17380 cat >>confdefs.h
<<_ACEOF
17381 #define HAVE_STRUCT_STAT_ST_FLAGS 1
17387 echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
17388 echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6
17389 if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
17390 echo $ECHO_N "(cached) $ECHO_C" >&6
17392 cat >conftest.
$ac_ext <<_ACEOF
17395 cat confdefs.h
>>conftest.
$ac_ext
17396 cat >>conftest.
$ac_ext <<_ACEOF
17397 /* end confdefs.h. */
17398 $ac_includes_default
17402 static struct stat ac_aggr;
17403 if (ac_aggr.st_gen)
17409 rm -f conftest.
$ac_objext
17410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17411 (eval $ac_compile) 2>conftest.er1
17413 grep -v '^ *+' conftest.er1
>conftest.err
17415 cat conftest.err
>&5
17416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17417 (exit $ac_status); } &&
17418 { ac_try
='test -z "$ac_c_werror_flag"
17419 || test ! -s conftest.err'
17420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17421 (eval $ac_try) 2>&5
17423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17424 (exit $ac_status); }; } &&
17425 { ac_try
='test -s conftest.$ac_objext'
17426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17427 (eval $ac_try) 2>&5
17429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17430 (exit $ac_status); }; }; then
17431 ac_cv_member_struct_stat_st_gen
=yes
17433 echo "$as_me: failed program was:" >&5
17434 sed 's/^/| /' conftest.
$ac_ext >&5
17436 cat >conftest.
$ac_ext <<_ACEOF
17439 cat confdefs.h
>>conftest.
$ac_ext
17440 cat >>conftest.
$ac_ext <<_ACEOF
17441 /* end confdefs.h. */
17442 $ac_includes_default
17446 static struct stat ac_aggr;
17447 if (sizeof ac_aggr.st_gen)
17453 rm -f conftest.
$ac_objext
17454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17455 (eval $ac_compile) 2>conftest.er1
17457 grep -v '^ *+' conftest.er1
>conftest.err
17459 cat conftest.err
>&5
17460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17461 (exit $ac_status); } &&
17462 { ac_try
='test -z "$ac_c_werror_flag"
17463 || test ! -s conftest.err'
17464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17465 (eval $ac_try) 2>&5
17467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17468 (exit $ac_status); }; } &&
17469 { ac_try
='test -s conftest.$ac_objext'
17470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17471 (eval $ac_try) 2>&5
17473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17474 (exit $ac_status); }; }; then
17475 ac_cv_member_struct_stat_st_gen
=yes
17477 echo "$as_me: failed program was:" >&5
17478 sed 's/^/| /' conftest.
$ac_ext >&5
17480 ac_cv_member_struct_stat_st_gen
=no
17482 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17484 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17486 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
17487 echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6
17488 if test $ac_cv_member_struct_stat_st_gen = yes; then
17490 cat >>confdefs.h
<<_ACEOF
17491 #define HAVE_STRUCT_STAT_ST_GEN 1
17497 echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
17498 echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6
17499 if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
17500 echo $ECHO_N "(cached) $ECHO_C" >&6
17502 cat >conftest.
$ac_ext <<_ACEOF
17505 cat confdefs.h
>>conftest.
$ac_ext
17506 cat >>conftest.
$ac_ext <<_ACEOF
17507 /* end confdefs.h. */
17508 $ac_includes_default
17512 static struct stat ac_aggr;
17513 if (ac_aggr.st_birthtime)
17519 rm -f conftest.
$ac_objext
17520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17521 (eval $ac_compile) 2>conftest.er1
17523 grep -v '^ *+' conftest.er1
>conftest.err
17525 cat conftest.err
>&5
17526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17527 (exit $ac_status); } &&
17528 { ac_try
='test -z "$ac_c_werror_flag"
17529 || test ! -s conftest.err'
17530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17531 (eval $ac_try) 2>&5
17533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17534 (exit $ac_status); }; } &&
17535 { ac_try
='test -s conftest.$ac_objext'
17536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17537 (eval $ac_try) 2>&5
17539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17540 (exit $ac_status); }; }; then
17541 ac_cv_member_struct_stat_st_birthtime
=yes
17543 echo "$as_me: failed program was:" >&5
17544 sed 's/^/| /' conftest.
$ac_ext >&5
17546 cat >conftest.
$ac_ext <<_ACEOF
17549 cat confdefs.h
>>conftest.
$ac_ext
17550 cat >>conftest.
$ac_ext <<_ACEOF
17551 /* end confdefs.h. */
17552 $ac_includes_default
17556 static struct stat ac_aggr;
17557 if (sizeof ac_aggr.st_birthtime)
17563 rm -f conftest.
$ac_objext
17564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17565 (eval $ac_compile) 2>conftest.er1
17567 grep -v '^ *+' conftest.er1
>conftest.err
17569 cat conftest.err
>&5
17570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17571 (exit $ac_status); } &&
17572 { ac_try
='test -z "$ac_c_werror_flag"
17573 || test ! -s conftest.err'
17574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17575 (eval $ac_try) 2>&5
17577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17578 (exit $ac_status); }; } &&
17579 { ac_try
='test -s conftest.$ac_objext'
17580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17581 (eval $ac_try) 2>&5
17583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17584 (exit $ac_status); }; }; then
17585 ac_cv_member_struct_stat_st_birthtime
=yes
17587 echo "$as_me: failed program was:" >&5
17588 sed 's/^/| /' conftest.
$ac_ext >&5
17590 ac_cv_member_struct_stat_st_birthtime
=no
17592 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17594 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17596 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
17597 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6
17598 if test $ac_cv_member_struct_stat_st_birthtime = yes; then
17600 cat >>confdefs.h
<<_ACEOF
17601 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
17607 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
17608 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
17609 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
17610 echo $ECHO_N "(cached) $ECHO_C" >&6
17612 cat >conftest.
$ac_ext <<_ACEOF
17615 cat confdefs.h
>>conftest.
$ac_ext
17616 cat >>conftest.
$ac_ext <<_ACEOF
17617 /* end confdefs.h. */
17618 $ac_includes_default
17622 static struct stat ac_aggr;
17623 if (ac_aggr.st_blocks)
17629 rm -f conftest.
$ac_objext
17630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17631 (eval $ac_compile) 2>conftest.er1
17633 grep -v '^ *+' conftest.er1
>conftest.err
17635 cat conftest.err
>&5
17636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17637 (exit $ac_status); } &&
17638 { ac_try
='test -z "$ac_c_werror_flag"
17639 || test ! -s conftest.err'
17640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17641 (eval $ac_try) 2>&5
17643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17644 (exit $ac_status); }; } &&
17645 { ac_try
='test -s conftest.$ac_objext'
17646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17647 (eval $ac_try) 2>&5
17649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17650 (exit $ac_status); }; }; then
17651 ac_cv_member_struct_stat_st_blocks
=yes
17653 echo "$as_me: failed program was:" >&5
17654 sed 's/^/| /' conftest.
$ac_ext >&5
17656 cat >conftest.
$ac_ext <<_ACEOF
17659 cat confdefs.h
>>conftest.
$ac_ext
17660 cat >>conftest.
$ac_ext <<_ACEOF
17661 /* end confdefs.h. */
17662 $ac_includes_default
17666 static struct stat ac_aggr;
17667 if (sizeof ac_aggr.st_blocks)
17673 rm -f conftest.
$ac_objext
17674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17675 (eval $ac_compile) 2>conftest.er1
17677 grep -v '^ *+' conftest.er1
>conftest.err
17679 cat conftest.err
>&5
17680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17681 (exit $ac_status); } &&
17682 { ac_try
='test -z "$ac_c_werror_flag"
17683 || test ! -s conftest.err'
17684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17685 (eval $ac_try) 2>&5
17687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17688 (exit $ac_status); }; } &&
17689 { ac_try
='test -s conftest.$ac_objext'
17690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17691 (eval $ac_try) 2>&5
17693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17694 (exit $ac_status); }; }; then
17695 ac_cv_member_struct_stat_st_blocks
=yes
17697 echo "$as_me: failed program was:" >&5
17698 sed 's/^/| /' conftest.
$ac_ext >&5
17700 ac_cv_member_struct_stat_st_blocks
=no
17702 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17704 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17706 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
17707 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
17708 if test $ac_cv_member_struct_stat_st_blocks = yes; then
17710 cat >>confdefs.h
<<_ACEOF
17711 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
17715 cat >>confdefs.h
<<\_ACEOF
17716 #define HAVE_ST_BLOCKS 1
17721 "fileblocks.$ac_objext" | \
17722 *" fileblocks.$ac_objext" | \
17723 "fileblocks.$ac_objext "* | \
17724 *" fileblocks.$ac_objext "* ) ;;
17725 *) LIBOBJS
="$LIBOBJS fileblocks.$ac_objext" ;;
17732 echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
17733 echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6
17734 if test "${ac_cv_header_time_altzone+set}" = set; then
17735 echo $ECHO_N "(cached) $ECHO_C" >&6
17737 cat >conftest.
$ac_ext <<_ACEOF
17740 cat confdefs.h
>>conftest.
$ac_ext
17741 cat >>conftest.
$ac_ext <<_ACEOF
17742 /* end confdefs.h. */
17752 rm -f conftest.
$ac_objext
17753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17754 (eval $ac_compile) 2>conftest.er1
17756 grep -v '^ *+' conftest.er1
>conftest.err
17758 cat conftest.err
>&5
17759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17760 (exit $ac_status); } &&
17761 { ac_try
='test -z "$ac_c_werror_flag"
17762 || test ! -s conftest.err'
17763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17764 (eval $ac_try) 2>&5
17766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17767 (exit $ac_status); }; } &&
17768 { ac_try
='test -s conftest.$ac_objext'
17769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17770 (eval $ac_try) 2>&5
17772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17773 (exit $ac_status); }; }; then
17774 ac_cv_header_time_altzone
=yes
17776 echo "$as_me: failed program was:" >&5
17777 sed 's/^/| /' conftest.
$ac_ext >&5
17779 ac_cv_header_time_altzone
=no
17781 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17784 echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
17785 echo "${ECHO_T}$ac_cv_header_time_altzone" >&6
17786 if test $ac_cv_header_time_altzone = yes; then
17788 cat >>confdefs.h
<<\_ACEOF
17789 #define HAVE_ALTZONE 1
17795 echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
17796 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6
17797 cat >conftest.
$ac_ext <<_ACEOF
17800 cat confdefs.h
>>conftest.
$ac_ext
17801 cat >>conftest.
$ac_ext <<_ACEOF
17802 /* end confdefs.h. */
17804 #include <sys/types.h>
17805 #include <sys/select.h>
17806 #include <sys/time.h>
17816 rm -f conftest.
$ac_objext
17817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17818 (eval $ac_compile) 2>conftest.er1
17820 grep -v '^ *+' conftest.er1
>conftest.err
17822 cat conftest.err
>&5
17823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17824 (exit $ac_status); } &&
17825 { ac_try
='test -z "$ac_c_werror_flag"
17826 || test ! -s conftest.err'
17827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17828 (eval $ac_try) 2>&5
17830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17831 (exit $ac_status); }; } &&
17832 { ac_try
='test -s conftest.$ac_objext'
17833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17834 (eval $ac_try) 2>&5
17836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17837 (exit $ac_status); }; }; then
17840 cat >>confdefs.h
<<\_ACEOF
17841 #define SYS_SELECT_WITH_SYS_TIME 1
17847 echo "$as_me: failed program was:" >&5
17848 sed 's/^/| /' conftest.
$ac_ext >&5
17851 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17852 echo "$as_me:$LINENO: result: $was_it_defined" >&5
17853 echo "${ECHO_T}$was_it_defined" >&6
17855 echo "$as_me:$LINENO: checking for addrinfo" >&5
17856 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6
17857 if test "${ac_cv_struct_addrinfo+set}" = set; then
17858 echo $ECHO_N "(cached) $ECHO_C" >&6
17860 cat >conftest.
$ac_ext <<_ACEOF
17863 cat confdefs.h
>>conftest.
$ac_ext
17864 cat >>conftest.
$ac_ext <<_ACEOF
17865 /* end confdefs.h. */
17867 # include <netdb.h>
17876 rm -f conftest.
$ac_objext
17877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17878 (eval $ac_compile) 2>conftest.er1
17880 grep -v '^ *+' conftest.er1
>conftest.err
17882 cat conftest.err
>&5
17883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17884 (exit $ac_status); } &&
17885 { ac_try
='test -z "$ac_c_werror_flag"
17886 || test ! -s conftest.err'
17887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17888 (eval $ac_try) 2>&5
17890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17891 (exit $ac_status); }; } &&
17892 { ac_try
='test -s conftest.$ac_objext'
17893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17894 (eval $ac_try) 2>&5
17896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17897 (exit $ac_status); }; }; then
17898 ac_cv_struct_addrinfo
=yes
17900 echo "$as_me: failed program was:" >&5
17901 sed 's/^/| /' conftest.
$ac_ext >&5
17903 ac_cv_struct_addrinfo
=no
17905 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17908 echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
17909 echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6
17910 if test $ac_cv_struct_addrinfo = yes; then
17912 cat >>confdefs.h
<<\_ACEOF
17913 #define HAVE_ADDRINFO 1
17918 echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
17919 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6
17920 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
17921 echo $ECHO_N "(cached) $ECHO_C" >&6
17923 cat >conftest.
$ac_ext <<_ACEOF
17926 cat confdefs.h
>>conftest.
$ac_ext
17927 cat >>conftest.
$ac_ext <<_ACEOF
17928 /* end confdefs.h. */
17930 # include <sys/types.h>
17931 # include <sys/socket.h>
17935 struct sockaddr_storage s
17940 rm -f conftest.
$ac_objext
17941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17942 (eval $ac_compile) 2>conftest.er1
17944 grep -v '^ *+' conftest.er1
>conftest.err
17946 cat conftest.err
>&5
17947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17948 (exit $ac_status); } &&
17949 { ac_try
='test -z "$ac_c_werror_flag"
17950 || test ! -s conftest.err'
17951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17952 (eval $ac_try) 2>&5
17954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17955 (exit $ac_status); }; } &&
17956 { ac_try
='test -s conftest.$ac_objext'
17957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17958 (eval $ac_try) 2>&5
17960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17961 (exit $ac_status); }; }; then
17962 ac_cv_struct_sockaddr_storage
=yes
17964 echo "$as_me: failed program was:" >&5
17965 sed 's/^/| /' conftest.
$ac_ext >&5
17967 ac_cv_struct_sockaddr_storage
=no
17969 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17972 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
17973 echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6
17974 if test $ac_cv_struct_sockaddr_storage = yes; then
17976 cat >>confdefs.h
<<\_ACEOF
17977 #define HAVE_SOCKADDR_STORAGE 1
17982 # checks for compiler characteristics
17985 echo "$as_me:$LINENO: checking whether char is unsigned" >&5
17986 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
17987 if test "${ac_cv_c_char_unsigned+set}" = set; then
17988 echo $ECHO_N "(cached) $ECHO_C" >&6
17990 cat >conftest.
$ac_ext <<_ACEOF
17993 cat confdefs.h
>>conftest.
$ac_ext
17994 cat >>conftest.
$ac_ext <<_ACEOF
17995 /* end confdefs.h. */
17996 $ac_includes_default
18000 static int test_array [1 - 2 * !(((char) -1) < 0)];
18007 rm -f conftest.
$ac_objext
18008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18009 (eval $ac_compile) 2>conftest.er1
18011 grep -v '^ *+' conftest.er1
>conftest.err
18013 cat conftest.err
>&5
18014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18015 (exit $ac_status); } &&
18016 { ac_try
='test -z "$ac_c_werror_flag"
18017 || test ! -s conftest.err'
18018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18019 (eval $ac_try) 2>&5
18021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18022 (exit $ac_status); }; } &&
18023 { ac_try
='test -s conftest.$ac_objext'
18024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18025 (eval $ac_try) 2>&5
18027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18028 (exit $ac_status); }; }; then
18029 ac_cv_c_char_unsigned
=no
18031 echo "$as_me: failed program was:" >&5
18032 sed 's/^/| /' conftest.
$ac_ext >&5
18034 ac_cv_c_char_unsigned
=yes
18036 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18038 echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
18039 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
18040 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
18041 cat >>confdefs.h
<<\_ACEOF
18042 #define __CHAR_UNSIGNED__ 1
18047 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18048 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
18049 if test "${ac_cv_c_const+set}" = set; then
18050 echo $ECHO_N "(cached) $ECHO_C" >&6
18052 cat >conftest.
$ac_ext <<_ACEOF
18055 cat confdefs.h
>>conftest.
$ac_ext
18056 cat >>conftest.
$ac_ext <<_ACEOF
18057 /* end confdefs.h. */
18062 /* FIXME: Include the comments suggested by Paul. */
18063 #ifndef __cplusplus
18064 /* Ultrix mips cc rejects this. */
18065 typedef int charset[2];
18067 /* SunOS 4.1.1 cc rejects this. */
18068 char const *const *ccp;
18070 /* NEC SVR4.0.2 mips cc rejects this. */
18071 struct point {int x, y;};
18072 static struct point const zero = {0,0};
18073 /* AIX XL C 1.02.0.0 rejects this.
18074 It does not let you subtract one const X* pointer from another in
18075 an arm of an if-expression whose if-part is not a constant
18077 const char *g = "string";
18078 ccp = &g + (g ? g-g : 0);
18079 /* HPUX 7.0 cc rejects these. */
18082 ccp = (char const *const *) p;
18083 { /* SCO 3.2v4 cc rejects this. */
18085 char const *s = 0 ? (char *) 0 : (char const *) 0;
18089 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18090 int x[] = {25, 17};
18091 const int *foo = &x[0];
18094 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18095 typedef const int *iptr;
18099 { /* AIX XL C 1.02.0.0 rejects this saying
18100 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18101 struct s { int j; const int *ap[3]; };
18102 struct s *b; b->j = 5;
18104 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18105 const int foo = 10;
18113 rm -f conftest.
$ac_objext
18114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18115 (eval $ac_compile) 2>conftest.er1
18117 grep -v '^ *+' conftest.er1
>conftest.err
18119 cat conftest.err
>&5
18120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18121 (exit $ac_status); } &&
18122 { ac_try
='test -z "$ac_c_werror_flag"
18123 || test ! -s conftest.err'
18124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18125 (eval $ac_try) 2>&5
18127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18128 (exit $ac_status); }; } &&
18129 { ac_try
='test -s conftest.$ac_objext'
18130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18131 (eval $ac_try) 2>&5
18133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18134 (exit $ac_status); }; }; then
18137 echo "$as_me: failed program was:" >&5
18138 sed 's/^/| /' conftest.
$ac_ext >&5
18142 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18144 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18145 echo "${ECHO_T}$ac_cv_c_const" >&6
18146 if test $ac_cv_c_const = no
; then
18148 cat >>confdefs.h
<<\_ACEOF
18156 echo "$as_me:$LINENO: checking for working volatile" >&5
18157 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
18158 cat >conftest.
$ac_ext <<_ACEOF
18161 cat confdefs.h
>>conftest.
$ac_ext
18162 cat >>conftest.
$ac_ext <<_ACEOF
18163 /* end confdefs.h. */
18168 volatile int x; x = 0;
18173 rm -f conftest.
$ac_objext
18174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18175 (eval $ac_compile) 2>conftest.er1
18177 grep -v '^ *+' conftest.er1
>conftest.err
18179 cat conftest.err
>&5
18180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18181 (exit $ac_status); } &&
18182 { ac_try
='test -z "$ac_c_werror_flag"
18183 || test ! -s conftest.err'
18184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18185 (eval $ac_try) 2>&5
18187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18188 (exit $ac_status); }; } &&
18189 { ac_try
='test -s conftest.$ac_objext'
18190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18191 (eval $ac_try) 2>&5
18193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18194 (exit $ac_status); }; }; then
18197 echo "$as_me: failed program was:" >&5
18198 sed 's/^/| /' conftest.
$ac_ext >&5
18201 cat >>confdefs.h
<<\_ACEOF
18207 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18208 echo "$as_me:$LINENO: result: $works" >&5
18209 echo "${ECHO_T}$works" >&6
18212 echo "$as_me:$LINENO: checking for working signed char" >&5
18213 echo $ECHO_N "checking for working signed char... $ECHO_C" >&6
18214 cat >conftest.
$ac_ext <<_ACEOF
18217 cat confdefs.h
>>conftest.
$ac_ext
18218 cat >>conftest.
$ac_ext <<_ACEOF
18219 /* end confdefs.h. */
18229 rm -f conftest.
$ac_objext
18230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18231 (eval $ac_compile) 2>conftest.er1
18233 grep -v '^ *+' conftest.er1
>conftest.err
18235 cat conftest.err
>&5
18236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18237 (exit $ac_status); } &&
18238 { ac_try
='test -z "$ac_c_werror_flag"
18239 || test ! -s conftest.err'
18240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18241 (eval $ac_try) 2>&5
18243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18244 (exit $ac_status); }; } &&
18245 { ac_try
='test -s conftest.$ac_objext'
18246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18247 (eval $ac_try) 2>&5
18249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18250 (exit $ac_status); }; }; then
18253 echo "$as_me: failed program was:" >&5
18254 sed 's/^/| /' conftest.
$ac_ext >&5
18257 cat >>confdefs.h
<<\_ACEOF
18263 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18264 echo "$as_me:$LINENO: result: $works" >&5
18265 echo "${ECHO_T}$works" >&6
18268 echo "$as_me:$LINENO: checking for prototypes" >&5
18269 echo $ECHO_N "checking for prototypes... $ECHO_C" >&6
18270 cat >conftest.
$ac_ext <<_ACEOF
18273 cat confdefs.h
>>conftest.
$ac_ext
18274 cat >>conftest.
$ac_ext <<_ACEOF
18275 /* end confdefs.h. */
18276 int foo(int x) { return 0; }
18285 rm -f conftest.
$ac_objext
18286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18287 (eval $ac_compile) 2>conftest.er1
18289 grep -v '^ *+' conftest.er1
>conftest.err
18291 cat conftest.err
>&5
18292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18293 (exit $ac_status); } &&
18294 { ac_try
='test -z "$ac_c_werror_flag"
18295 || test ! -s conftest.err'
18296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18297 (eval $ac_try) 2>&5
18299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18300 (exit $ac_status); }; } &&
18301 { ac_try
='test -s conftest.$ac_objext'
18302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18303 (eval $ac_try) 2>&5
18305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18306 (exit $ac_status); }; }; then
18309 cat >>confdefs.h
<<\_ACEOF
18310 #define HAVE_PROTOTYPES 1
18313 have_prototypes
=yes
18316 echo "$as_me: failed program was:" >&5
18317 sed 's/^/| /' conftest.
$ac_ext >&5
18320 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18321 echo "$as_me:$LINENO: result: $have_prototypes" >&5
18322 echo "${ECHO_T}$have_prototypes" >&6
18325 echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
18326 echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6
18327 cat >conftest.
$ac_ext <<_ACEOF
18330 cat confdefs.h
>>conftest.
$ac_ext
18331 cat >>conftest.
$ac_ext <<_ACEOF
18332 /* end confdefs.h. */
18334 #include <stdarg.h>
18335 int foo(int x, ...) {
18339 va_arg(va, char *);
18340 va_arg(va, double);
18347 return foo(10, "", 3.14);
18352 rm -f conftest.
$ac_objext
18353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18354 (eval $ac_compile) 2>conftest.er1
18356 grep -v '^ *+' conftest.er1
>conftest.err
18358 cat conftest.err
>&5
18359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18360 (exit $ac_status); } &&
18361 { ac_try
='test -z "$ac_c_werror_flag"
18362 || test ! -s conftest.err'
18363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18364 (eval $ac_try) 2>&5
18366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18367 (exit $ac_status); }; } &&
18368 { ac_try
='test -s conftest.$ac_objext'
18369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18370 (eval $ac_try) 2>&5
18372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18373 (exit $ac_status); }; }; then
18376 cat >>confdefs.h
<<\_ACEOF
18377 #define HAVE_STDARG_PROTOTYPES 1
18383 echo "$as_me: failed program was:" >&5
18384 sed 's/^/| /' conftest.
$ac_ext >&5
18387 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18388 echo "$as_me:$LINENO: result: $works" >&5
18389 echo "${ECHO_T}$works" >&6
18391 # check for socketpair
18392 echo "$as_me:$LINENO: checking for socketpair" >&5
18393 echo $ECHO_N "checking for socketpair... $ECHO_C" >&6
18394 cat >conftest.
$ac_ext <<_ACEOF
18397 cat confdefs.h
>>conftest.
$ac_ext
18398 cat >>conftest.
$ac_ext <<_ACEOF
18399 /* end confdefs.h. */
18401 #include <sys/types.h>
18402 #include <sys/socket.h>
18412 rm -f conftest.
$ac_objext
18413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18414 (eval $ac_compile) 2>conftest.er1
18416 grep -v '^ *+' conftest.er1
>conftest.err
18418 cat conftest.err
>&5
18419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18420 (exit $ac_status); } &&
18421 { ac_try
='test -z "$ac_c_werror_flag"
18422 || test ! -s conftest.err'
18423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18424 (eval $ac_try) 2>&5
18426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18427 (exit $ac_status); }; } &&
18428 { ac_try
='test -s conftest.$ac_objext'
18429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18430 (eval $ac_try) 2>&5
18432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18433 (exit $ac_status); }; }; then
18435 cat >>confdefs.h
<<\_ACEOF
18436 #define HAVE_SOCKETPAIR 1
18439 echo "$as_me:$LINENO: result: yes" >&5
18440 echo "${ECHO_T}yes" >&6
18442 echo "$as_me: failed program was:" >&5
18443 sed 's/^/| /' conftest.
$ac_ext >&5
18445 echo "$as_me:$LINENO: result: no" >&5
18446 echo "${ECHO_T}no" >&6
18449 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18451 # check if sockaddr has sa_len member
18452 echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
18453 echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6
18454 cat >conftest.
$ac_ext <<_ACEOF
18457 cat confdefs.h
>>conftest.
$ac_ext
18458 cat >>conftest.
$ac_ext <<_ACEOF
18459 /* end confdefs.h. */
18460 #include <sys/types.h>
18461 #include <sys/socket.h>
18471 rm -f conftest.
$ac_objext
18472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18473 (eval $ac_compile) 2>conftest.er1
18475 grep -v '^ *+' conftest.er1
>conftest.err
18477 cat conftest.err
>&5
18478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18479 (exit $ac_status); } &&
18480 { ac_try
='test -z "$ac_c_werror_flag"
18481 || test ! -s conftest.err'
18482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18483 (eval $ac_try) 2>&5
18485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18486 (exit $ac_status); }; } &&
18487 { ac_try
='test -s conftest.$ac_objext'
18488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18489 (eval $ac_try) 2>&5
18491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18492 (exit $ac_status); }; }; then
18493 echo "$as_me:$LINENO: result: yes" >&5
18494 echo "${ECHO_T}yes" >&6
18496 cat >>confdefs.h
<<\_ACEOF
18497 #define HAVE_SOCKADDR_SA_LEN 1
18501 echo "$as_me: failed program was:" >&5
18502 sed 's/^/| /' conftest.
$ac_ext >&5
18504 echo "$as_me:$LINENO: result: no" >&5
18505 echo "${ECHO_T}no" >&6
18507 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18509 va_list_is_array
=no
18510 echo "$as_me:$LINENO: checking whether va_list is an array" >&5
18511 echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6
18512 cat >conftest.
$ac_ext <<_ACEOF
18515 cat confdefs.h
>>conftest.
$ac_ext
18516 cat >>conftest.
$ac_ext <<_ACEOF
18517 /* end confdefs.h. */
18519 #ifdef HAVE_STDARG_PROTOTYPES
18520 #include <stdarg.h>
18522 #include <varargs.h>
18528 va_list list1, list2; list1 = list2;
18533 rm -f conftest.
$ac_objext
18534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18535 (eval $ac_compile) 2>conftest.er1
18537 grep -v '^ *+' conftest.er1
>conftest.err
18539 cat conftest.err
>&5
18540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18541 (exit $ac_status); } &&
18542 { ac_try
='test -z "$ac_c_werror_flag"
18543 || test ! -s conftest.err'
18544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18545 (eval $ac_try) 2>&5
18547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18548 (exit $ac_status); }; } &&
18549 { ac_try
='test -s conftest.$ac_objext'
18550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18551 (eval $ac_try) 2>&5
18553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18554 (exit $ac_status); }; }; then
18557 echo "$as_me: failed program was:" >&5
18558 sed 's/^/| /' conftest.
$ac_ext >&5
18562 cat >>confdefs.h
<<\_ACEOF
18563 #define VA_LIST_IS_ARRAY 1
18566 va_list_is_array
=yes
18569 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18570 echo "$as_me:$LINENO: result: $va_list_is_array" >&5
18571 echo "${ECHO_T}$va_list_is_array" >&6
18573 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
18577 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
18578 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
18579 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
18580 echo $ECHO_N "(cached) $ECHO_C" >&6
18582 cat >conftest.
$ac_ext <<_ACEOF
18585 cat confdefs.h
>>conftest.
$ac_ext
18586 cat >>conftest.
$ac_ext <<_ACEOF
18587 /* end confdefs.h. */
18588 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
18589 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18590 #define gethostbyname_r innocuous_gethostbyname_r
18592 /* System header to define __stub macros and hopefully few prototypes,
18593 which can conflict with char gethostbyname_r (); below.
18594 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18595 <limits.h> exists even on freestanding compilers. */
18598 # include <limits.h>
18600 # include <assert.h>
18603 #undef gethostbyname_r
18605 /* Override any gcc2 internal prototype to avoid an error. */
18610 /* We use char because int might match the return type of a gcc2
18611 builtin and then its argument prototype would still apply. */
18612 char gethostbyname_r ();
18613 /* The GNU C library defines this for functions which it implements
18614 to always fail with ENOSYS. Some functions are actually named
18615 something starting with __ and the normal name is an alias. */
18616 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
18619 char (*f) () = gethostbyname_r;
18628 return f != gethostbyname_r;
18633 rm -f conftest.
$ac_objext conftest
$ac_exeext
18634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18635 (eval $ac_link) 2>conftest.er1
18637 grep -v '^ *+' conftest.er1
>conftest.err
18639 cat conftest.err
>&5
18640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18641 (exit $ac_status); } &&
18642 { ac_try
='test -z "$ac_c_werror_flag"
18643 || test ! -s conftest.err'
18644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18645 (eval $ac_try) 2>&5
18647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18648 (exit $ac_status); }; } &&
18649 { ac_try
='test -s conftest$ac_exeext'
18650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18651 (eval $ac_try) 2>&5
18653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18654 (exit $ac_status); }; }; then
18655 ac_cv_func_gethostbyname_r
=yes
18657 echo "$as_me: failed program was:" >&5
18658 sed 's/^/| /' conftest.
$ac_ext >&5
18660 ac_cv_func_gethostbyname_r
=no
18662 rm -f conftest.err conftest.
$ac_objext \
18663 conftest
$ac_exeext conftest.
$ac_ext
18665 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
18666 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
18667 if test $ac_cv_func_gethostbyname_r = yes; then
18669 cat >>confdefs.h
<<\_ACEOF
18670 #define HAVE_GETHOSTBYNAME_R 1
18673 echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
18674 echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6
18676 CFLAGS
="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
18677 cat >conftest.
$ac_ext <<_ACEOF
18680 cat confdefs.h
>>conftest.
$ac_ext
18681 cat >>conftest.
$ac_ext <<_ACEOF
18682 /* end confdefs.h. */
18684 # include <netdb.h>
18691 struct hostent *he, *res;
18696 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
18702 rm -f conftest.
$ac_objext
18703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18704 (eval $ac_compile) 2>conftest.er1
18706 grep -v '^ *+' conftest.er1
>conftest.err
18708 cat conftest.err
>&5
18709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18710 (exit $ac_status); } &&
18711 { ac_try
='test -z "$ac_c_werror_flag"
18712 || test ! -s conftest.err'
18713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18714 (eval $ac_try) 2>&5
18716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18717 (exit $ac_status); }; } &&
18718 { ac_try
='test -s conftest.$ac_objext'
18719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18720 (eval $ac_try) 2>&5
18722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18723 (exit $ac_status); }; }; then
18725 cat >>confdefs.h
<<\_ACEOF
18726 #define HAVE_GETHOSTBYNAME_R 1
18730 cat >>confdefs.h
<<\_ACEOF
18731 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
18734 echo "$as_me:$LINENO: result: yes" >&5
18735 echo "${ECHO_T}yes" >&6
18738 echo "$as_me: failed program was:" >&5
18739 sed 's/^/| /' conftest.
$ac_ext >&5
18742 echo "$as_me:$LINENO: result: no" >&5
18743 echo "${ECHO_T}no" >&6
18744 echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
18745 echo $ECHO_N "checking gethostbyname_r with 5 args... $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. */
18753 # include <netdb.h>
18760 struct hostent *he;
18765 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
18771 rm -f conftest.
$ac_objext
18772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18773 (eval $ac_compile) 2>conftest.er1
18775 grep -v '^ *+' conftest.er1
>conftest.err
18777 cat conftest.err
>&5
18778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18779 (exit $ac_status); } &&
18780 { ac_try
='test -z "$ac_c_werror_flag"
18781 || test ! -s conftest.err'
18782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18783 (eval $ac_try) 2>&5
18785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18786 (exit $ac_status); }; } &&
18787 { ac_try
='test -s conftest.$ac_objext'
18788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18789 (eval $ac_try) 2>&5
18791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18792 (exit $ac_status); }; }; then
18794 cat >>confdefs.h
<<\_ACEOF
18795 #define HAVE_GETHOSTBYNAME_R 1
18799 cat >>confdefs.h
<<\_ACEOF
18800 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
18803 echo "$as_me:$LINENO: result: yes" >&5
18804 echo "${ECHO_T}yes" >&6
18807 echo "$as_me: failed program was:" >&5
18808 sed 's/^/| /' conftest.
$ac_ext >&5
18811 echo "$as_me:$LINENO: result: no" >&5
18812 echo "${ECHO_T}no" >&6
18813 echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
18814 echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6
18815 cat >conftest.
$ac_ext <<_ACEOF
18818 cat confdefs.h
>>conftest.
$ac_ext
18819 cat >>conftest.
$ac_ext <<_ACEOF
18820 /* end confdefs.h. */
18822 # include <netdb.h>
18829 struct hostent *he;
18830 struct hostent_data data;
18832 (void) gethostbyname_r(name, he, &data);
18838 rm -f conftest.
$ac_objext
18839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18840 (eval $ac_compile) 2>conftest.er1
18842 grep -v '^ *+' conftest.er1
>conftest.err
18844 cat conftest.err
>&5
18845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18846 (exit $ac_status); } &&
18847 { ac_try
='test -z "$ac_c_werror_flag"
18848 || test ! -s conftest.err'
18849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18850 (eval $ac_try) 2>&5
18852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18853 (exit $ac_status); }; } &&
18854 { ac_try
='test -s conftest.$ac_objext'
18855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18856 (eval $ac_try) 2>&5
18858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18859 (exit $ac_status); }; }; then
18861 cat >>confdefs.h
<<\_ACEOF
18862 #define HAVE_GETHOSTBYNAME_R 1
18866 cat >>confdefs.h
<<\_ACEOF
18867 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
18870 echo "$as_me:$LINENO: result: yes" >&5
18871 echo "${ECHO_T}yes" >&6
18874 echo "$as_me: failed program was:" >&5
18875 sed 's/^/| /' conftest.
$ac_ext >&5
18878 echo "$as_me:$LINENO: result: no" >&5
18879 echo "${ECHO_T}no" >&6
18882 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18885 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18888 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18894 for ac_func
in gethostbyname
18896 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18897 echo "$as_me:$LINENO: checking for $ac_func" >&5
18898 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18899 if eval "test \"\${$as_ac_var+set}\" = set"; then
18900 echo $ECHO_N "(cached) $ECHO_C" >&6
18902 cat >conftest.
$ac_ext <<_ACEOF
18905 cat confdefs.h
>>conftest.
$ac_ext
18906 cat >>conftest.
$ac_ext <<_ACEOF
18907 /* end confdefs.h. */
18908 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18909 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18910 #define $ac_func innocuous_$ac_func
18912 /* System header to define __stub macros and hopefully few prototypes,
18913 which can conflict with char $ac_func (); below.
18914 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18915 <limits.h> exists even on freestanding compilers. */
18918 # include <limits.h>
18920 # include <assert.h>
18925 /* Override any gcc2 internal prototype to avoid an error. */
18930 /* We use char because int might match the return type of a gcc2
18931 builtin and then its argument prototype would still apply. */
18933 /* The GNU C library defines this for functions which it implements
18934 to always fail with ENOSYS. Some functions are actually named
18935 something starting with __ and the normal name is an alias. */
18936 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18939 char (*f) () = $ac_func;
18948 return f != $ac_func;
18953 rm -f conftest.
$ac_objext conftest
$ac_exeext
18954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18955 (eval $ac_link) 2>conftest.er1
18957 grep -v '^ *+' conftest.er1
>conftest.err
18959 cat conftest.err
>&5
18960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18961 (exit $ac_status); } &&
18962 { ac_try
='test -z "$ac_c_werror_flag"
18963 || test ! -s conftest.err'
18964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18965 (eval $ac_try) 2>&5
18967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18968 (exit $ac_status); }; } &&
18969 { ac_try
='test -s conftest$ac_exeext'
18970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18971 (eval $ac_try) 2>&5
18973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18974 (exit $ac_status); }; }; then
18975 eval "$as_ac_var=yes"
18977 echo "$as_me: failed program was:" >&5
18978 sed 's/^/| /' conftest.
$ac_ext >&5
18980 eval "$as_ac_var=no"
18982 rm -f conftest.err conftest.
$ac_objext \
18983 conftest
$ac_exeext conftest.
$ac_ext
18985 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18986 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18987 if test `eval echo '${'$as_ac_var'}'` = yes; then
18988 cat >>confdefs.h
<<_ACEOF
18989 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19004 # checks for system services
19007 # Linux requires this for correct f.p. operations
19008 echo "$as_me:$LINENO: checking for __fpu_control" >&5
19009 echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6
19010 if test "${ac_cv_func___fpu_control+set}" = set; then
19011 echo $ECHO_N "(cached) $ECHO_C" >&6
19013 cat >conftest.
$ac_ext <<_ACEOF
19016 cat confdefs.h
>>conftest.
$ac_ext
19017 cat >>conftest.
$ac_ext <<_ACEOF
19018 /* end confdefs.h. */
19019 /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control.
19020 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19021 #define __fpu_control innocuous___fpu_control
19023 /* System header to define __stub macros and hopefully few prototypes,
19024 which can conflict with char __fpu_control (); below.
19025 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19026 <limits.h> exists even on freestanding compilers. */
19029 # include <limits.h>
19031 # include <assert.h>
19034 #undef __fpu_control
19036 /* Override any gcc2 internal prototype to avoid an error. */
19041 /* We use char because int might match the return type of a gcc2
19042 builtin and then its argument prototype would still apply. */
19043 char __fpu_control ();
19044 /* The GNU C library defines this for functions which it implements
19045 to always fail with ENOSYS. Some functions are actually named
19046 something starting with __ and the normal name is an alias. */
19047 #if defined (__stub___fpu_control) || defined (__stub_____fpu_control)
19050 char (*f) () = __fpu_control;
19059 return f != __fpu_control;
19064 rm -f conftest.
$ac_objext conftest
$ac_exeext
19065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19066 (eval $ac_link) 2>conftest.er1
19068 grep -v '^ *+' conftest.er1
>conftest.err
19070 cat conftest.err
>&5
19071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19072 (exit $ac_status); } &&
19073 { ac_try
='test -z "$ac_c_werror_flag"
19074 || test ! -s conftest.err'
19075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19076 (eval $ac_try) 2>&5
19078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19079 (exit $ac_status); }; } &&
19080 { ac_try
='test -s conftest$ac_exeext'
19081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19082 (eval $ac_try) 2>&5
19084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19085 (exit $ac_status); }; }; then
19086 ac_cv_func___fpu_control
=yes
19088 echo "$as_me: failed program was:" >&5
19089 sed 's/^/| /' conftest.
$ac_ext >&5
19091 ac_cv_func___fpu_control
=no
19093 rm -f conftest.err conftest.
$ac_objext \
19094 conftest
$ac_exeext conftest.
$ac_ext
19096 echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
19097 echo "${ECHO_T}$ac_cv_func___fpu_control" >&6
19098 if test $ac_cv_func___fpu_control = yes; then
19102 echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
19103 echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6
19104 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
19105 echo $ECHO_N "(cached) $ECHO_C" >&6
19107 ac_check_lib_save_LIBS
=$LIBS
19108 LIBS
="-lieee $LIBS"
19109 cat >conftest.
$ac_ext <<_ACEOF
19112 cat confdefs.h
>>conftest.
$ac_ext
19113 cat >>conftest.
$ac_ext <<_ACEOF
19114 /* end confdefs.h. */
19116 /* Override any gcc2 internal prototype to avoid an error. */
19120 /* We use char because int might match the return type of a gcc2
19121 builtin and then its argument prototype would still apply. */
19122 char __fpu_control ();
19131 rm -f conftest.
$ac_objext conftest
$ac_exeext
19132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19133 (eval $ac_link) 2>conftest.er1
19135 grep -v '^ *+' conftest.er1
>conftest.err
19137 cat conftest.err
>&5
19138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19139 (exit $ac_status); } &&
19140 { ac_try
='test -z "$ac_c_werror_flag"
19141 || test ! -s conftest.err'
19142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19143 (eval $ac_try) 2>&5
19145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19146 (exit $ac_status); }; } &&
19147 { ac_try
='test -s conftest$ac_exeext'
19148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19149 (eval $ac_try) 2>&5
19151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19152 (exit $ac_status); }; }; then
19153 ac_cv_lib_ieee___fpu_control
=yes
19155 echo "$as_me: failed program was:" >&5
19156 sed 's/^/| /' conftest.
$ac_ext >&5
19158 ac_cv_lib_ieee___fpu_control
=no
19160 rm -f conftest.err conftest.
$ac_objext \
19161 conftest
$ac_exeext conftest.
$ac_ext
19162 LIBS
=$ac_check_lib_save_LIBS
19164 echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
19165 echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6
19166 if test $ac_cv_lib_ieee___fpu_control = yes; then
19167 cat >>confdefs.h
<<_ACEOF
19168 #define HAVE_LIBIEEE 1
19171 LIBS
="-lieee $LIBS"
19179 # Check for --with-fpectl
19180 echo "$as_me:$LINENO: checking for --with-fpectl" >&5
19181 echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6
19183 # Check whether --with-fpectl or --without-fpectl was given.
19184 if test "${with_fpectl+set}" = set; then
19185 withval
="$with_fpectl"
19187 if test "$withval" != no
19190 cat >>confdefs.h
<<\_ACEOF
19191 #define WANT_SIGFPE_HANDLER 1
19194 echo "$as_me:$LINENO: result: yes" >&5
19195 echo "${ECHO_T}yes" >&6
19196 else echo "$as_me:$LINENO: result: no" >&5
19197 echo "${ECHO_T}no" >&6
19200 echo "$as_me:$LINENO: result: no" >&5
19201 echo "${ECHO_T}no" >&6
19204 # check for --with-libm=...
19206 case $ac_sys_system in
19211 echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
19212 echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6
19214 # Check whether --with-libm or --without-libm was given.
19215 if test "${with_libm+set}" = set; then
19216 withval
="$with_libm"
19218 if test "$withval" = no
19220 echo "$as_me:$LINENO: result: force LIBM empty" >&5
19221 echo "${ECHO_T}force LIBM empty" >&6
19222 elif test "$withval" != yes
19224 echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
19225 echo "${ECHO_T}set LIBM=\"$withval\"" >&6
19226 else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
19227 echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
19228 { (exit 1); exit 1; }; }
19231 echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
19232 echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6
19235 # check for --with-libc=...
19237 echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
19238 echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6
19240 # Check whether --with-libc or --without-libc was given.
19241 if test "${with_libc+set}" = set; then
19242 withval
="$with_libc"
19244 if test "$withval" = no
19246 echo "$as_me:$LINENO: result: force LIBC empty" >&5
19247 echo "${ECHO_T}force LIBC empty" >&6
19248 elif test "$withval" != yes
19250 echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
19251 echo "${ECHO_T}set LIBC=\"$withval\"" >&6
19252 else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
19253 echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
19254 { (exit 1); exit 1; }; }
19257 echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
19258 echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6
19261 # check for hypot() in math library
19265 for ac_func
in hypot
19267 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19268 echo "$as_me:$LINENO: checking for $ac_func" >&5
19269 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19270 if eval "test \"\${$as_ac_var+set}\" = set"; then
19271 echo $ECHO_N "(cached) $ECHO_C" >&6
19273 cat >conftest.
$ac_ext <<_ACEOF
19276 cat confdefs.h
>>conftest.
$ac_ext
19277 cat >>conftest.
$ac_ext <<_ACEOF
19278 /* end confdefs.h. */
19279 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19280 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19281 #define $ac_func innocuous_$ac_func
19283 /* System header to define __stub macros and hopefully few prototypes,
19284 which can conflict with char $ac_func (); below.
19285 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19286 <limits.h> exists even on freestanding compilers. */
19289 # include <limits.h>
19291 # include <assert.h>
19296 /* Override any gcc2 internal prototype to avoid an error. */
19301 /* We use char because int might match the return type of a gcc2
19302 builtin and then its argument prototype would still apply. */
19304 /* The GNU C library defines this for functions which it implements
19305 to always fail with ENOSYS. Some functions are actually named
19306 something starting with __ and the normal name is an alias. */
19307 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19310 char (*f) () = $ac_func;
19319 return f != $ac_func;
19324 rm -f conftest.
$ac_objext conftest
$ac_exeext
19325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19326 (eval $ac_link) 2>conftest.er1
19328 grep -v '^ *+' conftest.er1
>conftest.err
19330 cat conftest.err
>&5
19331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19332 (exit $ac_status); } &&
19333 { ac_try
='test -z "$ac_c_werror_flag"
19334 || test ! -s conftest.err'
19335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19336 (eval $ac_try) 2>&5
19338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19339 (exit $ac_status); }; } &&
19340 { ac_try
='test -s conftest$ac_exeext'
19341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19342 (eval $ac_try) 2>&5
19344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19345 (exit $ac_status); }; }; then
19346 eval "$as_ac_var=yes"
19348 echo "$as_me: failed program was:" >&5
19349 sed 's/^/| /' conftest.
$ac_ext >&5
19351 eval "$as_ac_var=no"
19353 rm -f conftest.err conftest.
$ac_objext \
19354 conftest
$ac_exeext conftest.
$ac_ext
19356 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19357 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19358 if test `eval echo '${'$as_ac_var'}'` = yes; then
19359 cat >>confdefs.h
<<_ACEOF
19360 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19365 "$ac_func.$ac_objext" | \
19366 *" $ac_func.$ac_objext" | \
19367 "$ac_func.$ac_objext "* | \
19368 *" $ac_func.$ac_objext "* ) ;;
19369 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext" ;;
19378 # check for wchar.h
19379 if test "${ac_cv_header_wchar_h+set}" = set; then
19380 echo "$as_me:$LINENO: checking for wchar.h" >&5
19381 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
19382 if test "${ac_cv_header_wchar_h+set}" = set; then
19383 echo $ECHO_N "(cached) $ECHO_C" >&6
19385 echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
19386 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6
19388 # Is the header compilable?
19389 echo "$as_me:$LINENO: checking wchar.h usability" >&5
19390 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6
19391 cat >conftest.
$ac_ext <<_ACEOF
19394 cat confdefs.h
>>conftest.
$ac_ext
19395 cat >>conftest.
$ac_ext <<_ACEOF
19396 /* end confdefs.h. */
19397 $ac_includes_default
19400 rm -f conftest.
$ac_objext
19401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19402 (eval $ac_compile) 2>conftest.er1
19404 grep -v '^ *+' conftest.er1
>conftest.err
19406 cat conftest.err
>&5
19407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19408 (exit $ac_status); } &&
19409 { ac_try
='test -z "$ac_c_werror_flag"
19410 || test ! -s conftest.err'
19411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19412 (eval $ac_try) 2>&5
19414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19415 (exit $ac_status); }; } &&
19416 { ac_try
='test -s conftest.$ac_objext'
19417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19418 (eval $ac_try) 2>&5
19420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19421 (exit $ac_status); }; }; then
19422 ac_header_compiler
=yes
19424 echo "$as_me: failed program was:" >&5
19425 sed 's/^/| /' conftest.
$ac_ext >&5
19427 ac_header_compiler
=no
19429 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19430 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19431 echo "${ECHO_T}$ac_header_compiler" >&6
19433 # Is the header present?
19434 echo "$as_me:$LINENO: checking wchar.h presence" >&5
19435 echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6
19436 cat >conftest.
$ac_ext <<_ACEOF
19439 cat confdefs.h
>>conftest.
$ac_ext
19440 cat >>conftest.
$ac_ext <<_ACEOF
19441 /* end confdefs.h. */
19444 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19445 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19447 grep -v '^ *+' conftest.er1
>conftest.err
19449 cat conftest.err
>&5
19450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19451 (exit $ac_status); } >/dev
/null
; then
19452 if test -s conftest.err
; then
19453 ac_cpp_err
=$ac_c_preproc_warn_flag
19454 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19461 if test -z "$ac_cpp_err"; then
19462 ac_header_preproc
=yes
19464 echo "$as_me: failed program was:" >&5
19465 sed 's/^/| /' conftest.
$ac_ext >&5
19467 ac_header_preproc
=no
19469 rm -f conftest.err conftest.
$ac_ext
19470 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19471 echo "${ECHO_T}$ac_header_preproc" >&6
19473 # So? What about this header?
19474 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19476 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
19477 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19478 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
19479 echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
19480 ac_header_preproc
=yes
19483 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
19484 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
19485 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
19486 echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
19487 { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
19488 echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
19489 { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5
19490 echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;}
19491 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
19492 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
19493 { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
19494 echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
19497 ## ------------------------------------------------ ##
19498 ## Report this to http://www.python.org/python-bugs ##
19499 ## ------------------------------------------------ ##
19502 sed "s/^/$as_me: WARNING: /" >&2
19505 echo "$as_me:$LINENO: checking for wchar.h" >&5
19506 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
19507 if test "${ac_cv_header_wchar_h+set}" = set; then
19508 echo $ECHO_N "(cached) $ECHO_C" >&6
19510 ac_cv_header_wchar_h
=$ac_header_preproc
19512 echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
19513 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6
19516 if test $ac_cv_header_wchar_h = yes; then
19519 cat >>confdefs.h
<<\_ACEOF
19520 #define HAVE_WCHAR_H 1
19532 # determine wchar_t size
19533 if test "$wchar_h" = yes
19535 echo "$as_me:$LINENO: checking for wchar_t" >&5
19536 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
19537 if test "${ac_cv_type_wchar_t+set}" = set; then
19538 echo $ECHO_N "(cached) $ECHO_C" >&6
19540 cat >conftest.
$ac_ext <<_ACEOF
19543 cat confdefs.h
>>conftest.
$ac_ext
19544 cat >>conftest.
$ac_ext <<_ACEOF
19545 /* end confdefs.h. */
19553 if (sizeof (wchar_t))
19559 rm -f conftest.
$ac_objext
19560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19561 (eval $ac_compile) 2>conftest.er1
19563 grep -v '^ *+' conftest.er1
>conftest.err
19565 cat conftest.err
>&5
19566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19567 (exit $ac_status); } &&
19568 { ac_try
='test -z "$ac_c_werror_flag"
19569 || test ! -s conftest.err'
19570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19571 (eval $ac_try) 2>&5
19573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19574 (exit $ac_status); }; } &&
19575 { ac_try
='test -s conftest.$ac_objext'
19576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19577 (eval $ac_try) 2>&5
19579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19580 (exit $ac_status); }; }; then
19581 ac_cv_type_wchar_t
=yes
19583 echo "$as_me: failed program was:" >&5
19584 sed 's/^/| /' conftest.
$ac_ext >&5
19586 ac_cv_type_wchar_t
=no
19588 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19590 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
19591 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
19593 echo "$as_me:$LINENO: checking size of wchar_t" >&5
19594 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
19595 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
19596 echo $ECHO_N "(cached) $ECHO_C" >&6
19598 if test "$ac_cv_type_wchar_t" = yes; then
19599 # The cast to unsigned long works around a bug in the HP C Compiler
19600 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19601 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19602 # This bug is HP SR number 8606223364.
19603 if test "$cross_compiling" = yes; then
19604 # Depending upon the size, compute the lo and hi bounds.
19605 cat >conftest.
$ac_ext <<_ACEOF
19608 cat confdefs.h
>>conftest.
$ac_ext
19609 cat >>conftest.
$ac_ext <<_ACEOF
19610 /* end confdefs.h. */
19616 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
19623 rm -f conftest.
$ac_objext
19624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19625 (eval $ac_compile) 2>conftest.er1
19627 grep -v '^ *+' conftest.er1
>conftest.err
19629 cat conftest.err
>&5
19630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19631 (exit $ac_status); } &&
19632 { ac_try
='test -z "$ac_c_werror_flag"
19633 || test ! -s conftest.err'
19634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19635 (eval $ac_try) 2>&5
19637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19638 (exit $ac_status); }; } &&
19639 { ac_try
='test -s conftest.$ac_objext'
19640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19641 (eval $ac_try) 2>&5
19643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19644 (exit $ac_status); }; }; then
19647 cat >conftest.
$ac_ext <<_ACEOF
19650 cat confdefs.h
>>conftest.
$ac_ext
19651 cat >>conftest.
$ac_ext <<_ACEOF
19652 /* end confdefs.h. */
19658 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19665 rm -f conftest.
$ac_objext
19666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19667 (eval $ac_compile) 2>conftest.er1
19669 grep -v '^ *+' conftest.er1
>conftest.err
19671 cat conftest.err
>&5
19672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19673 (exit $ac_status); } &&
19674 { ac_try
='test -z "$ac_c_werror_flag"
19675 || test ! -s conftest.err'
19676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19677 (eval $ac_try) 2>&5
19679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19680 (exit $ac_status); }; } &&
19681 { ac_try
='test -s conftest.$ac_objext'
19682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19683 (eval $ac_try) 2>&5
19685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19686 (exit $ac_status); }; }; then
19687 ac_hi
=$ac_mid; break
19689 echo "$as_me: failed program was:" >&5
19690 sed 's/^/| /' conftest.
$ac_ext >&5
19692 ac_lo
=`expr $ac_mid + 1`
19693 if test $ac_lo -le $ac_mid; then
19697 ac_mid
=`expr 2 '*' $ac_mid + 1`
19699 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19702 echo "$as_me: failed program was:" >&5
19703 sed 's/^/| /' conftest.
$ac_ext >&5
19705 cat >conftest.
$ac_ext <<_ACEOF
19708 cat confdefs.h
>>conftest.
$ac_ext
19709 cat >>conftest.
$ac_ext <<_ACEOF
19710 /* end confdefs.h. */
19716 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
19723 rm -f conftest.
$ac_objext
19724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19725 (eval $ac_compile) 2>conftest.er1
19727 grep -v '^ *+' conftest.er1
>conftest.err
19729 cat conftest.err
>&5
19730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19731 (exit $ac_status); } &&
19732 { ac_try
='test -z "$ac_c_werror_flag"
19733 || test ! -s conftest.err'
19734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19735 (eval $ac_try) 2>&5
19737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19738 (exit $ac_status); }; } &&
19739 { ac_try
='test -s conftest.$ac_objext'
19740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19741 (eval $ac_try) 2>&5
19743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19744 (exit $ac_status); }; }; then
19747 cat >conftest.
$ac_ext <<_ACEOF
19750 cat confdefs.h
>>conftest.
$ac_ext
19751 cat >>conftest.
$ac_ext <<_ACEOF
19752 /* end confdefs.h. */
19758 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
19765 rm -f conftest.
$ac_objext
19766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19767 (eval $ac_compile) 2>conftest.er1
19769 grep -v '^ *+' conftest.er1
>conftest.err
19771 cat conftest.err
>&5
19772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19773 (exit $ac_status); } &&
19774 { ac_try
='test -z "$ac_c_werror_flag"
19775 || test ! -s conftest.err'
19776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19777 (eval $ac_try) 2>&5
19779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19780 (exit $ac_status); }; } &&
19781 { ac_try
='test -s conftest.$ac_objext'
19782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19783 (eval $ac_try) 2>&5
19785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19786 (exit $ac_status); }; }; then
19787 ac_lo
=$ac_mid; break
19789 echo "$as_me: failed program was:" >&5
19790 sed 's/^/| /' conftest.
$ac_ext >&5
19792 ac_hi
=`expr '(' $ac_mid ')' - 1`
19793 if test $ac_mid -le $ac_hi; then
19797 ac_mid
=`expr 2 '*' $ac_mid`
19799 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19802 echo "$as_me: failed program was:" >&5
19803 sed 's/^/| /' conftest.
$ac_ext >&5
19807 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19809 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19810 # Binary search between lo and hi bounds.
19811 while test "x$ac_lo" != "x$ac_hi"; do
19812 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19813 cat >conftest.
$ac_ext <<_ACEOF
19816 cat confdefs.h
>>conftest.
$ac_ext
19817 cat >>conftest.
$ac_ext <<_ACEOF
19818 /* end confdefs.h. */
19824 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19831 rm -f conftest.
$ac_objext
19832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19833 (eval $ac_compile) 2>conftest.er1
19835 grep -v '^ *+' conftest.er1
>conftest.err
19837 cat conftest.err
>&5
19838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19839 (exit $ac_status); } &&
19840 { ac_try
='test -z "$ac_c_werror_flag"
19841 || test ! -s conftest.err'
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); }; } &&
19847 { ac_try
='test -s conftest.$ac_objext'
19848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19849 (eval $ac_try) 2>&5
19851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19852 (exit $ac_status); }; }; then
19855 echo "$as_me: failed program was:" >&5
19856 sed 's/^/| /' conftest.
$ac_ext >&5
19858 ac_lo
=`expr '(' $ac_mid ')' + 1`
19860 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19863 ?
*) ac_cv_sizeof_wchar_t
=$ac_lo;;
19864 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
19865 See \`config.log' for more details." >&5
19866 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
19867 See \`config.log' for more details." >&2;}
19868 { (exit 1); exit 1; }; } ;;
19871 if test "$cross_compiling" = yes; then
19872 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19873 See \`config.log' for more details." >&5
19874 echo "$as_me: error: cannot run test program while cross compiling
19875 See \`config.log' for more details." >&2;}
19876 { (exit 1); exit 1; }; }
19878 cat >conftest.
$ac_ext <<_ACEOF
19881 cat confdefs.h
>>conftest.
$ac_ext
19882 cat >>conftest.
$ac_ext <<_ACEOF
19883 /* end confdefs.h. */
19886 long longval () { return (long) (sizeof (wchar_t)); }
19887 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
19889 #include <stdlib.h>
19894 FILE *f = fopen ("conftest.val", "w");
19897 if (((long) (sizeof (wchar_t))) < 0)
19899 long i = longval ();
19900 if (i != ((long) (sizeof (wchar_t))))
19902 fprintf (f, "%ld\n", i);
19906 unsigned long i = ulongval ();
19907 if (i != ((long) (sizeof (wchar_t))))
19909 fprintf (f, "%lu\n", i);
19911 exit (ferror (f) || fclose (f) != 0);
19917 rm -f conftest
$ac_exeext
19918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19919 (eval $ac_link) 2>&5
19921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19922 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19924 (eval $ac_try) 2>&5
19926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19927 (exit $ac_status); }; }; then
19928 ac_cv_sizeof_wchar_t
=`cat conftest.val`
19930 echo "$as_me: program exited with status $ac_status" >&5
19931 echo "$as_me: failed program was:" >&5
19932 sed 's/^/| /' conftest.
$ac_ext >&5
19934 ( exit $ac_status )
19935 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
19936 See \`config.log' for more details." >&5
19937 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
19938 See \`config.log' for more details." >&2;}
19939 { (exit 1); exit 1; }; }
19941 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
19946 ac_cv_sizeof_wchar_t
=0
19949 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
19950 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
19951 cat >>confdefs.h
<<_ACEOF
19952 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
19958 echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5
19959 echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6
19961 cat >conftest.
$ac_ext <<_ACEOF
19964 cat confdefs.h
>>conftest.
$ac_ext
19965 cat >>conftest.
$ac_ext <<_ACEOF
19966 /* end confdefs.h. */
19969 #if TCL_UTF_MAX != 6
19970 # error "NOT UCS4_TCL"
19980 rm -f conftest.
$ac_objext
19981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19982 (eval $ac_compile) 2>conftest.er1
19984 grep -v '^ *+' conftest.er1
>conftest.err
19986 cat conftest.err
>&5
19987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19988 (exit $ac_status); } &&
19989 { ac_try
='test -z "$ac_c_werror_flag"
19990 || test ! -s conftest.err'
19991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19992 (eval $ac_try) 2>&5
19994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19995 (exit $ac_status); }; } &&
19996 { ac_try
='test -s conftest.$ac_objext'
19997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19998 (eval $ac_try) 2>&5
20000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20001 (exit $ac_status); }; }; then
20004 cat >>confdefs.h
<<\_ACEOF
20005 #define HAVE_UCS4_TCL 1
20011 echo "$as_me: failed program was:" >&5
20012 sed 's/^/| /' conftest.
$ac_ext >&5
20015 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20016 echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5
20017 echo "${ECHO_T}$have_ucs4_tcl" >&6
20019 # check whether wchar_t is signed or not
20020 if test "$wchar_h" = yes
20022 # check whether wchar_t is signed or not
20023 echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5
20024 echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6
20025 if test "${ac_cv_wchar_t_signed+set}" = set; then
20026 echo $ECHO_N "(cached) $ECHO_C" >&6
20029 if test "$cross_compiling" = yes; then
20030 ac_cv_wchar_t_signed
=yes
20032 cat >conftest.
$ac_ext <<_ACEOF
20035 cat confdefs.h
>>conftest.
$ac_ext
20036 cat >>conftest.
$ac_ext <<_ACEOF
20037 /* end confdefs.h. */
20042 /* Success: exit code 0 */
20043 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
20047 rm -f conftest
$ac_exeext
20048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20049 (eval $ac_link) 2>&5
20051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20052 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20054 (eval $ac_try) 2>&5
20056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20057 (exit $ac_status); }; }; then
20058 ac_cv_wchar_t_signed
=yes
20060 echo "$as_me: program exited with status $ac_status" >&5
20061 echo "$as_me: failed program was:" >&5
20062 sed 's/^/| /' conftest.
$ac_ext >&5
20064 ( exit $ac_status )
20065 ac_cv_wchar_t_signed
=no
20067 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20071 echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5
20072 echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6
20075 echo "$as_me:$LINENO: checking what type to use for unicode" >&5
20076 echo $ECHO_N "checking what type to use for unicode... $ECHO_C" >&6
20077 # Check whether --enable-unicode or --disable-unicode was given.
20078 if test "${enable_unicode+set}" = set; then
20079 enableval
="$enable_unicode"
20085 if test $enable_unicode = yes
20087 # Without any arguments, Py_UNICODE defaults to two-byte mode
20088 case "$have_ucs4_tcl" in
20089 yes) enable_unicode
="ucs4"
20091 *) enable_unicode
="ucs2"
20098 case "$enable_unicode" in
20099 ucs2
) unicode_size
="2"
20100 cat >>confdefs.h
<<\_ACEOF
20101 #define Py_UNICODE_SIZE 2
20105 ucs4
) unicode_size
="4"
20106 cat >>confdefs.h
<<\_ACEOF
20107 #define Py_UNICODE_SIZE 4
20117 if test "$enable_unicode" = "no"
20120 echo "$as_me:$LINENO: result: not used" >&5
20121 echo "${ECHO_T}not used" >&6
20123 UNICODE_OBJS
="Objects/unicodeobject.o Objects/unicodectype.o"
20125 cat >>confdefs.h
<<\_ACEOF
20126 #define Py_USING_UNICODE 1
20130 # wchar_t is only usable if it maps to an unsigned type
20131 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
20132 -a "$ac_cv_wchar_t_signed" = "no"
20134 PY_UNICODE_TYPE
="wchar_t"
20136 cat >>confdefs.h
<<\_ACEOF
20137 #define HAVE_USABLE_WCHAR_T 1
20140 cat >>confdefs.h
<<\_ACEOF
20141 #define PY_UNICODE_TYPE wchar_t
20144 elif test "$ac_cv_sizeof_short" = "$unicode_size"
20146 PY_UNICODE_TYPE
="unsigned short"
20147 cat >>confdefs.h
<<\_ACEOF
20148 #define PY_UNICODE_TYPE unsigned short
20151 elif test "$ac_cv_sizeof_long" = "$unicode_size"
20153 PY_UNICODE_TYPE
="unsigned long"
20154 cat >>confdefs.h
<<\_ACEOF
20155 #define PY_UNICODE_TYPE unsigned long
20159 PY_UNICODE_TYPE
="no type found"
20161 echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
20162 echo "${ECHO_T}$PY_UNICODE_TYPE" >&6
20165 # check for endianness
20166 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20167 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20168 if test "${ac_cv_c_bigendian+set}" = set; then
20169 echo $ECHO_N "(cached) $ECHO_C" >&6
20171 # See if sys/param.h defines the BYTE_ORDER macro.
20172 cat >conftest.
$ac_ext <<_ACEOF
20175 cat confdefs.h
>>conftest.
$ac_ext
20176 cat >>conftest.
$ac_ext <<_ACEOF
20177 /* end confdefs.h. */
20178 #include <sys/types.h>
20179 #include <sys/param.h>
20184 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20185 bogus endian macros
20192 rm -f conftest.
$ac_objext
20193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20194 (eval $ac_compile) 2>conftest.er1
20196 grep -v '^ *+' conftest.er1
>conftest.err
20198 cat conftest.err
>&5
20199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20200 (exit $ac_status); } &&
20201 { ac_try
='test -z "$ac_c_werror_flag"
20202 || test ! -s conftest.err'
20203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20204 (eval $ac_try) 2>&5
20206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20207 (exit $ac_status); }; } &&
20208 { ac_try
='test -s conftest.$ac_objext'
20209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20210 (eval $ac_try) 2>&5
20212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20213 (exit $ac_status); }; }; then
20214 # It does; now see whether it defined to BIG_ENDIAN or not.
20215 cat >conftest.
$ac_ext <<_ACEOF
20218 cat confdefs.h
>>conftest.
$ac_ext
20219 cat >>conftest.
$ac_ext <<_ACEOF
20220 /* end confdefs.h. */
20221 #include <sys/types.h>
20222 #include <sys/param.h>
20227 #if BYTE_ORDER != BIG_ENDIAN
20235 rm -f conftest.
$ac_objext
20236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20237 (eval $ac_compile) 2>conftest.er1
20239 grep -v '^ *+' conftest.er1
>conftest.err
20241 cat conftest.err
>&5
20242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20243 (exit $ac_status); } &&
20244 { ac_try
='test -z "$ac_c_werror_flag"
20245 || test ! -s conftest.err'
20246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20247 (eval $ac_try) 2>&5
20249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20250 (exit $ac_status); }; } &&
20251 { ac_try
='test -s conftest.$ac_objext'
20252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20253 (eval $ac_try) 2>&5
20255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20256 (exit $ac_status); }; }; then
20257 ac_cv_c_bigendian
=yes
20259 echo "$as_me: failed program was:" >&5
20260 sed 's/^/| /' conftest.
$ac_ext >&5
20262 ac_cv_c_bigendian
=no
20264 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20266 echo "$as_me: failed program was:" >&5
20267 sed 's/^/| /' conftest.
$ac_ext >&5
20269 # It does not; compile a test program.
20270 if test "$cross_compiling" = yes; then
20271 # try to guess the endianness by grepping values into an object file
20272 ac_cv_c_bigendian
=unknown
20273 cat >conftest.
$ac_ext <<_ACEOF
20276 cat confdefs.h
>>conftest.
$ac_ext
20277 cat >>conftest.
$ac_ext <<_ACEOF
20278 /* end confdefs.h. */
20279 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20280 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20281 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20282 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20283 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20284 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20288 _ascii (); _ebcdic ();
20293 rm -f conftest.
$ac_objext
20294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20295 (eval $ac_compile) 2>conftest.er1
20297 grep -v '^ *+' conftest.er1
>conftest.err
20299 cat conftest.err
>&5
20300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20301 (exit $ac_status); } &&
20302 { ac_try
='test -z "$ac_c_werror_flag"
20303 || test ! -s conftest.err'
20304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20305 (eval $ac_try) 2>&5
20307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20308 (exit $ac_status); }; } &&
20309 { ac_try
='test -s conftest.$ac_objext'
20310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20311 (eval $ac_try) 2>&5
20313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20314 (exit $ac_status); }; }; then
20315 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
20316 ac_cv_c_bigendian
=yes
20318 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
20319 if test "$ac_cv_c_bigendian" = unknown
; then
20320 ac_cv_c_bigendian
=no
20322 # finding both strings is unlikely to happen, but who knows?
20323 ac_cv_c_bigendian
=unknown
20327 echo "$as_me: failed program was:" >&5
20328 sed 's/^/| /' conftest.
$ac_ext >&5
20331 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20333 cat >conftest.
$ac_ext <<_ACEOF
20336 cat confdefs.h
>>conftest.
$ac_ext
20337 cat >>conftest.
$ac_ext <<_ACEOF
20338 /* end confdefs.h. */
20342 /* Are we little or big endian? From Harbison&Steele. */
20346 char c[sizeof (long)];
20349 exit (u.c[sizeof (long) - 1] == 1);
20352 rm -f conftest
$ac_exeext
20353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20354 (eval $ac_link) 2>&5
20356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20357 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20359 (eval $ac_try) 2>&5
20361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20362 (exit $ac_status); }; }; then
20363 ac_cv_c_bigendian
=no
20365 echo "$as_me: program exited with status $ac_status" >&5
20366 echo "$as_me: failed program was:" >&5
20367 sed 's/^/| /' conftest.
$ac_ext >&5
20369 ( exit $ac_status )
20370 ac_cv_c_bigendian
=yes
20372 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20375 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20377 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20378 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20379 case $ac_cv_c_bigendian in
20382 cat >>confdefs.h
<<\_ACEOF
20383 #define WORDS_BIGENDIAN 1
20389 { { echo "$as_me:$LINENO: error: unknown endianness
20390 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20391 echo "$as_me: error: unknown endianness
20392 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20393 { (exit 1); exit 1; }; } ;;
20397 # Check whether right shifting a negative integer extends the sign bit
20398 # or fills with zeros (like the Cray J90, according to Tim Peters).
20399 echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
20400 echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6
20401 if test "${ac_cv_rshift_extends_sign+set}" = set; then
20402 echo $ECHO_N "(cached) $ECHO_C" >&6
20405 if test "$cross_compiling" = yes; then
20406 ac_cv_rshift_extends_sign
=yes
20408 cat >conftest.
$ac_ext <<_ACEOF
20411 cat confdefs.h
>>conftest.
$ac_ext
20412 cat >>conftest.
$ac_ext <<_ACEOF
20413 /* end confdefs.h. */
20417 exit(((-1)>>3 == -1) ? 0 : 1);
20421 rm -f conftest
$ac_exeext
20422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20423 (eval $ac_link) 2>&5
20425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20426 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20428 (eval $ac_try) 2>&5
20430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20431 (exit $ac_status); }; }; then
20432 ac_cv_rshift_extends_sign
=yes
20434 echo "$as_me: program exited with status $ac_status" >&5
20435 echo "$as_me: failed program was:" >&5
20436 sed 's/^/| /' conftest.
$ac_ext >&5
20438 ( exit $ac_status )
20439 ac_cv_rshift_extends_sign
=no
20441 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20445 echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
20446 echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6
20447 if test "$ac_cv_rshift_extends_sign" = no
20450 cat >>confdefs.h
<<\_ACEOF
20451 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
20456 # check for getc_unlocked and related locking functions
20457 echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
20458 echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6
20459 if test "${ac_cv_have_getc_unlocked+set}" = set; then
20460 echo $ECHO_N "(cached) $ECHO_C" >&6
20463 cat >conftest.
$ac_ext <<_ACEOF
20466 cat confdefs.h
>>conftest.
$ac_ext
20467 cat >>conftest.
$ac_ext <<_ACEOF
20468 /* end confdefs.h. */
20474 FILE *f = fopen("/dev/null", "r");
20483 rm -f conftest.
$ac_objext conftest
$ac_exeext
20484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20485 (eval $ac_link) 2>conftest.er1
20487 grep -v '^ *+' conftest.er1
>conftest.err
20489 cat conftest.err
>&5
20490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20491 (exit $ac_status); } &&
20492 { ac_try
='test -z "$ac_c_werror_flag"
20493 || test ! -s conftest.err'
20494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20495 (eval $ac_try) 2>&5
20497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20498 (exit $ac_status); }; } &&
20499 { ac_try
='test -s conftest$ac_exeext'
20500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20501 (eval $ac_try) 2>&5
20503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20504 (exit $ac_status); }; }; then
20505 ac_cv_have_getc_unlocked
=yes
20507 echo "$as_me: failed program was:" >&5
20508 sed 's/^/| /' conftest.
$ac_ext >&5
20510 ac_cv_have_getc_unlocked
=no
20512 rm -f conftest.err conftest.
$ac_objext \
20513 conftest
$ac_exeext conftest.
$ac_ext
20516 echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
20517 echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6
20518 if test "$ac_cv_have_getc_unlocked" = yes
20521 cat >>confdefs.h
<<\_ACEOF
20522 #define HAVE_GETC_UNLOCKED 1
20527 # check where readline lives
20528 # save the value of LIBS so we don't actually link Python with readline
20529 LIBS_no_readline
=$LIBS
20531 echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
20532 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
20533 if test "${ac_cv_lib_readline_readline+set}" = set; then
20534 echo $ECHO_N "(cached) $ECHO_C" >&6
20536 ac_check_lib_save_LIBS
=$LIBS
20537 LIBS
="-lreadline $LIBS"
20538 cat >conftest.
$ac_ext <<_ACEOF
20541 cat confdefs.h
>>conftest.
$ac_ext
20542 cat >>conftest.
$ac_ext <<_ACEOF
20543 /* end confdefs.h. */
20545 /* Override any gcc2 internal prototype to avoid an error. */
20549 /* We use char because int might match the return type of a gcc2
20550 builtin and then its argument prototype would still apply. */
20560 rm -f conftest.
$ac_objext conftest
$ac_exeext
20561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20562 (eval $ac_link) 2>conftest.er1
20564 grep -v '^ *+' conftest.er1
>conftest.err
20566 cat conftest.err
>&5
20567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20568 (exit $ac_status); } &&
20569 { ac_try
='test -z "$ac_c_werror_flag"
20570 || test ! -s conftest.err'
20571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20572 (eval $ac_try) 2>&5
20574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20575 (exit $ac_status); }; } &&
20576 { ac_try
='test -s conftest$ac_exeext'
20577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20578 (eval $ac_try) 2>&5
20580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20581 (exit $ac_status); }; }; then
20582 ac_cv_lib_readline_readline
=yes
20584 echo "$as_me: failed program was:" >&5
20585 sed 's/^/| /' conftest.
$ac_ext >&5
20587 ac_cv_lib_readline_readline
=no
20589 rm -f conftest.err conftest.
$ac_objext \
20590 conftest
$ac_exeext conftest.
$ac_ext
20591 LIBS
=$ac_check_lib_save_LIBS
20593 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
20594 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
20595 if test $ac_cv_lib_readline_readline = yes; then
20596 cat >>confdefs.h
<<_ACEOF
20597 #define HAVE_LIBREADLINE 1
20600 LIBS
="-lreadline $LIBS"
20604 if test "$ac_cv_have_readline_readline" = no
20607 echo "$as_me:$LINENO: checking for readline in -ltermcap" >&5
20608 echo $ECHO_N "checking for readline in -ltermcap... $ECHO_C" >&6
20609 if test "${ac_cv_lib_termcap_readline+set}" = set; then
20610 echo $ECHO_N "(cached) $ECHO_C" >&6
20612 ac_check_lib_save_LIBS
=$LIBS
20613 LIBS
="-ltermcap $LIBS"
20614 cat >conftest.
$ac_ext <<_ACEOF
20617 cat confdefs.h
>>conftest.
$ac_ext
20618 cat >>conftest.
$ac_ext <<_ACEOF
20619 /* end confdefs.h. */
20621 /* Override any gcc2 internal prototype to avoid an error. */
20625 /* We use char because int might match the return type of a gcc2
20626 builtin and then its argument prototype would still apply. */
20636 rm -f conftest.
$ac_objext conftest
$ac_exeext
20637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20638 (eval $ac_link) 2>conftest.er1
20640 grep -v '^ *+' conftest.er1
>conftest.err
20642 cat conftest.err
>&5
20643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20644 (exit $ac_status); } &&
20645 { ac_try
='test -z "$ac_c_werror_flag"
20646 || test ! -s conftest.err'
20647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20648 (eval $ac_try) 2>&5
20650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20651 (exit $ac_status); }; } &&
20652 { ac_try
='test -s conftest$ac_exeext'
20653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20654 (eval $ac_try) 2>&5
20656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20657 (exit $ac_status); }; }; then
20658 ac_cv_lib_termcap_readline
=yes
20660 echo "$as_me: failed program was:" >&5
20661 sed 's/^/| /' conftest.
$ac_ext >&5
20663 ac_cv_lib_termcap_readline
=no
20665 rm -f conftest.err conftest.
$ac_objext \
20666 conftest
$ac_exeext conftest.
$ac_ext
20667 LIBS
=$ac_check_lib_save_LIBS
20669 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_readline" >&5
20670 echo "${ECHO_T}$ac_cv_lib_termcap_readline" >&6
20671 if test $ac_cv_lib_termcap_readline = yes; then
20672 cat >>confdefs.h
<<_ACEOF
20673 #define HAVE_LIBTERMCAP 1
20676 LIBS
="-ltermcap $LIBS"
20682 # check for readline 2.1
20683 echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
20684 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6
20685 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
20686 echo $ECHO_N "(cached) $ECHO_C" >&6
20688 ac_check_lib_save_LIBS
=$LIBS
20689 LIBS
="-lreadline $LIBS"
20690 cat >conftest.
$ac_ext <<_ACEOF
20693 cat confdefs.h
>>conftest.
$ac_ext
20694 cat >>conftest.
$ac_ext <<_ACEOF
20695 /* end confdefs.h. */
20697 /* Override any gcc2 internal prototype to avoid an error. */
20701 /* We use char because int might match the return type of a gcc2
20702 builtin and then its argument prototype would still apply. */
20703 char rl_callback_handler_install ();
20707 rl_callback_handler_install ();
20712 rm -f conftest.
$ac_objext conftest
$ac_exeext
20713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20714 (eval $ac_link) 2>conftest.er1
20716 grep -v '^ *+' conftest.er1
>conftest.err
20718 cat conftest.err
>&5
20719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20720 (exit $ac_status); } &&
20721 { ac_try
='test -z "$ac_c_werror_flag"
20722 || test ! -s conftest.err'
20723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20724 (eval $ac_try) 2>&5
20726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20727 (exit $ac_status); }; } &&
20728 { ac_try
='test -s conftest$ac_exeext'
20729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20730 (eval $ac_try) 2>&5
20732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20733 (exit $ac_status); }; }; then
20734 ac_cv_lib_readline_rl_callback_handler_install
=yes
20736 echo "$as_me: failed program was:" >&5
20737 sed 's/^/| /' conftest.
$ac_ext >&5
20739 ac_cv_lib_readline_rl_callback_handler_install
=no
20741 rm -f conftest.err conftest.
$ac_objext \
20742 conftest
$ac_exeext conftest.
$ac_ext
20743 LIBS
=$ac_check_lib_save_LIBS
20745 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
20746 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6
20747 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
20749 cat >>confdefs.h
<<\_ACEOF
20750 #define HAVE_RL_CALLBACK 1
20756 # check for readline 2.2
20757 cat >conftest.
$ac_ext <<_ACEOF
20760 cat confdefs.h
>>conftest.
$ac_ext
20761 cat >>conftest.
$ac_ext <<_ACEOF
20762 /* end confdefs.h. */
20763 #include <readline/readline.h>
20765 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20766 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20768 grep -v '^ *+' conftest.er1
>conftest.err
20770 cat conftest.err
>&5
20771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20772 (exit $ac_status); } >/dev
/null
; then
20773 if test -s conftest.err
; then
20774 ac_cpp_err
=$ac_c_preproc_warn_flag
20775 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20782 if test -z "$ac_cpp_err"; then
20785 echo "$as_me: failed program was:" >&5
20786 sed 's/^/| /' conftest.
$ac_ext >&5
20790 rm -f conftest.err conftest.
$ac_ext
20791 if test $have_readline = yes
20793 cat >conftest.
$ac_ext <<_ACEOF
20796 cat confdefs.h
>>conftest.
$ac_ext
20797 cat >>conftest.
$ac_ext <<_ACEOF
20798 /* end confdefs.h. */
20799 #include <readline/readline.h>
20802 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20803 $EGREP "extern int rl_completion_append_character;" >/dev
/null
2>&1; then
20805 cat >>confdefs.h
<<\_ACEOF
20806 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
20814 # check for readline 4.0
20815 echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
20816 echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6
20817 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
20818 echo $ECHO_N "(cached) $ECHO_C" >&6
20820 ac_check_lib_save_LIBS
=$LIBS
20821 LIBS
="-lreadline $LIBS"
20822 cat >conftest.
$ac_ext <<_ACEOF
20825 cat confdefs.h
>>conftest.
$ac_ext
20826 cat >>conftest.
$ac_ext <<_ACEOF
20827 /* end confdefs.h. */
20829 /* Override any gcc2 internal prototype to avoid an error. */
20833 /* We use char because int might match the return type of a gcc2
20834 builtin and then its argument prototype would still apply. */
20835 char rl_pre_input_hook ();
20839 rl_pre_input_hook ();
20844 rm -f conftest.
$ac_objext conftest
$ac_exeext
20845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20846 (eval $ac_link) 2>conftest.er1
20848 grep -v '^ *+' conftest.er1
>conftest.err
20850 cat conftest.err
>&5
20851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20852 (exit $ac_status); } &&
20853 { ac_try
='test -z "$ac_c_werror_flag"
20854 || test ! -s conftest.err'
20855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20856 (eval $ac_try) 2>&5
20858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20859 (exit $ac_status); }; } &&
20860 { ac_try
='test -s conftest$ac_exeext'
20861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20862 (eval $ac_try) 2>&5
20864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20865 (exit $ac_status); }; }; then
20866 ac_cv_lib_readline_rl_pre_input_hook
=yes
20868 echo "$as_me: failed program was:" >&5
20869 sed 's/^/| /' conftest.
$ac_ext >&5
20871 ac_cv_lib_readline_rl_pre_input_hook
=no
20873 rm -f conftest.err conftest.
$ac_objext \
20874 conftest
$ac_exeext conftest.
$ac_ext
20875 LIBS
=$ac_check_lib_save_LIBS
20877 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
20878 echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6
20879 if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
20881 cat >>confdefs.h
<<\_ACEOF
20882 #define HAVE_RL_PRE_INPUT_HOOK 1
20888 # check for readline 4.2
20889 echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
20890 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6
20891 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
20892 echo $ECHO_N "(cached) $ECHO_C" >&6
20894 ac_check_lib_save_LIBS
=$LIBS
20895 LIBS
="-lreadline $LIBS"
20896 cat >conftest.
$ac_ext <<_ACEOF
20899 cat confdefs.h
>>conftest.
$ac_ext
20900 cat >>conftest.
$ac_ext <<_ACEOF
20901 /* end confdefs.h. */
20903 /* Override any gcc2 internal prototype to avoid an error. */
20907 /* We use char because int might match the return type of a gcc2
20908 builtin and then its argument prototype would still apply. */
20909 char rl_completion_matches ();
20913 rl_completion_matches ();
20918 rm -f conftest.
$ac_objext conftest
$ac_exeext
20919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20920 (eval $ac_link) 2>conftest.er1
20922 grep -v '^ *+' conftest.er1
>conftest.err
20924 cat conftest.err
>&5
20925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20926 (exit $ac_status); } &&
20927 { ac_try
='test -z "$ac_c_werror_flag"
20928 || test ! -s conftest.err'
20929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20930 (eval $ac_try) 2>&5
20932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20933 (exit $ac_status); }; } &&
20934 { ac_try
='test -s conftest$ac_exeext'
20935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20936 (eval $ac_try) 2>&5
20938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20939 (exit $ac_status); }; }; then
20940 ac_cv_lib_readline_rl_completion_matches
=yes
20942 echo "$as_me: failed program was:" >&5
20943 sed 's/^/| /' conftest.
$ac_ext >&5
20945 ac_cv_lib_readline_rl_completion_matches
=no
20947 rm -f conftest.err conftest.
$ac_objext \
20948 conftest
$ac_exeext conftest.
$ac_ext
20949 LIBS
=$ac_check_lib_save_LIBS
20951 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
20952 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6
20953 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
20955 cat >>confdefs.h
<<\_ACEOF
20956 #define HAVE_RL_COMPLETION_MATCHES 1
20962 # also in readline 4.2
20963 cat >conftest.
$ac_ext <<_ACEOF
20966 cat confdefs.h
>>conftest.
$ac_ext
20967 cat >>conftest.
$ac_ext <<_ACEOF
20968 /* end confdefs.h. */
20969 #include <readline/readline.h>
20971 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20972 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20974 grep -v '^ *+' conftest.er1
>conftest.err
20976 cat conftest.err
>&5
20977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20978 (exit $ac_status); } >/dev
/null
; then
20979 if test -s conftest.err
; then
20980 ac_cpp_err
=$ac_c_preproc_warn_flag
20981 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20988 if test -z "$ac_cpp_err"; then
20991 echo "$as_me: failed program was:" >&5
20992 sed 's/^/| /' conftest.
$ac_ext >&5
20996 rm -f conftest.err conftest.
$ac_ext
20997 if test $have_readline = yes
20999 cat >conftest.
$ac_ext <<_ACEOF
21002 cat confdefs.h
>>conftest.
$ac_ext
21003 cat >>conftest.
$ac_ext <<_ACEOF
21004 /* end confdefs.h. */
21005 #include <readline/readline.h>
21008 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21009 $EGREP "extern int rl_catch_signals;" >/dev
/null
2>&1; then
21011 cat >>confdefs.h
<<\_ACEOF
21012 #define HAVE_RL_CATCH_SIGNAL 1
21020 # End of readline checks: restore LIBS
21021 LIBS
=$LIBS_no_readline
21023 echo "$as_me:$LINENO: checking for broken nice()" >&5
21024 echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6
21025 if test "${ac_cv_broken_nice+set}" = set; then
21026 echo $ECHO_N "(cached) $ECHO_C" >&6
21029 if test "$cross_compiling" = yes; then
21030 ac_cv_broken_nice
=no
21032 cat >conftest.
$ac_ext <<_ACEOF
21035 cat confdefs.h
>>conftest.
$ac_ext
21036 cat >>conftest.
$ac_ext <<_ACEOF
21037 /* end confdefs.h. */
21041 int val1 = nice(1);
21042 if (val1 != -1 && val1 == nice(2))
21048 rm -f conftest
$ac_exeext
21049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21050 (eval $ac_link) 2>&5
21052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21053 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21055 (eval $ac_try) 2>&5
21057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21058 (exit $ac_status); }; }; then
21059 ac_cv_broken_nice
=yes
21061 echo "$as_me: program exited with status $ac_status" >&5
21062 echo "$as_me: failed program was:" >&5
21063 sed 's/^/| /' conftest.
$ac_ext >&5
21065 ( exit $ac_status )
21066 ac_cv_broken_nice
=no
21068 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21072 echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
21073 echo "${ECHO_T}$ac_cv_broken_nice" >&6
21074 if test "$ac_cv_broken_nice" = yes
21077 cat >>confdefs.h
<<\_ACEOF
21078 #define HAVE_BROKEN_NICE 1
21083 echo "$as_me:$LINENO: checking for broken poll()" >&5
21084 echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6
21085 if test "$cross_compiling" = yes; then
21086 ac_cv_broken_poll
=no
21088 cat >conftest.
$ac_ext <<_ACEOF
21091 cat confdefs.h
>>conftest.
$ac_ext
21092 cat >>conftest.
$ac_ext <<_ACEOF
21093 /* end confdefs.h. */
21099 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
21103 int poll_test = poll (&poll_struct, 1, 0);
21109 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
21120 rm -f conftest
$ac_exeext
21121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21122 (eval $ac_link) 2>&5
21124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21125 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21127 (eval $ac_try) 2>&5
21129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21130 (exit $ac_status); }; }; then
21131 ac_cv_broken_poll
=yes
21133 echo "$as_me: program exited with status $ac_status" >&5
21134 echo "$as_me: failed program was:" >&5
21135 sed 's/^/| /' conftest.
$ac_ext >&5
21137 ( exit $ac_status )
21138 ac_cv_broken_poll
=no
21140 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21142 echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5
21143 echo "${ECHO_T}$ac_cv_broken_poll" >&6
21144 if test "$ac_cv_broken_poll" = yes
21147 cat >>confdefs.h
<<\_ACEOF
21148 #define HAVE_BROKEN_POLL 1
21153 # Before we can test tzset, we need to check if struct tm has a tm_zone
21154 # (which is not required by ISO C or UNIX spec) and/or if we support
21156 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
21157 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
21158 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
21159 echo $ECHO_N "(cached) $ECHO_C" >&6
21161 cat >conftest.
$ac_ext <<_ACEOF
21164 cat confdefs.h
>>conftest.
$ac_ext
21165 cat >>conftest.
$ac_ext <<_ACEOF
21166 /* end confdefs.h. */
21167 #include <sys/types.h>
21168 #include <$ac_cv_struct_tm>
21174 static struct tm ac_aggr;
21175 if (ac_aggr.tm_zone)
21181 rm -f conftest.
$ac_objext
21182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21183 (eval $ac_compile) 2>conftest.er1
21185 grep -v '^ *+' conftest.er1
>conftest.err
21187 cat conftest.err
>&5
21188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21189 (exit $ac_status); } &&
21190 { ac_try
='test -z "$ac_c_werror_flag"
21191 || test ! -s conftest.err'
21192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21193 (eval $ac_try) 2>&5
21195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21196 (exit $ac_status); }; } &&
21197 { ac_try
='test -s conftest.$ac_objext'
21198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21199 (eval $ac_try) 2>&5
21201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21202 (exit $ac_status); }; }; then
21203 ac_cv_member_struct_tm_tm_zone
=yes
21205 echo "$as_me: failed program was:" >&5
21206 sed 's/^/| /' conftest.
$ac_ext >&5
21208 cat >conftest.
$ac_ext <<_ACEOF
21211 cat confdefs.h
>>conftest.
$ac_ext
21212 cat >>conftest.
$ac_ext <<_ACEOF
21213 /* end confdefs.h. */
21214 #include <sys/types.h>
21215 #include <$ac_cv_struct_tm>
21221 static struct tm ac_aggr;
21222 if (sizeof ac_aggr.tm_zone)
21228 rm -f conftest.
$ac_objext
21229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21230 (eval $ac_compile) 2>conftest.er1
21232 grep -v '^ *+' conftest.er1
>conftest.err
21234 cat conftest.err
>&5
21235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21236 (exit $ac_status); } &&
21237 { ac_try
='test -z "$ac_c_werror_flag"
21238 || test ! -s conftest.err'
21239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21240 (eval $ac_try) 2>&5
21242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21243 (exit $ac_status); }; } &&
21244 { ac_try
='test -s conftest.$ac_objext'
21245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21246 (eval $ac_try) 2>&5
21248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21249 (exit $ac_status); }; }; then
21250 ac_cv_member_struct_tm_tm_zone
=yes
21252 echo "$as_me: failed program was:" >&5
21253 sed 's/^/| /' conftest.
$ac_ext >&5
21255 ac_cv_member_struct_tm_tm_zone
=no
21257 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21259 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21261 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
21262 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
21263 if test $ac_cv_member_struct_tm_tm_zone = yes; then
21265 cat >>confdefs.h
<<_ACEOF
21266 #define HAVE_STRUCT_TM_TM_ZONE 1
21272 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21274 cat >>confdefs.h
<<\_ACEOF
21275 #define HAVE_TM_ZONE 1
21279 echo "$as_me:$LINENO: checking for tzname" >&5
21280 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
21281 if test "${ac_cv_var_tzname+set}" = set; then
21282 echo $ECHO_N "(cached) $ECHO_C" >&6
21284 cat >conftest.
$ac_ext <<_ACEOF
21287 cat confdefs.h
>>conftest.
$ac_ext
21288 cat >>conftest.
$ac_ext <<_ACEOF
21289 /* end confdefs.h. */
21291 #ifndef tzname /* For SGI. */
21292 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
21303 rm -f conftest.
$ac_objext conftest
$ac_exeext
21304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21305 (eval $ac_link) 2>conftest.er1
21307 grep -v '^ *+' conftest.er1
>conftest.err
21309 cat conftest.err
>&5
21310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21311 (exit $ac_status); } &&
21312 { ac_try
='test -z "$ac_c_werror_flag"
21313 || test ! -s conftest.err'
21314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21315 (eval $ac_try) 2>&5
21317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21318 (exit $ac_status); }; } &&
21319 { ac_try
='test -s conftest$ac_exeext'
21320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21321 (eval $ac_try) 2>&5
21323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21324 (exit $ac_status); }; }; then
21325 ac_cv_var_tzname
=yes
21327 echo "$as_me: failed program was:" >&5
21328 sed 's/^/| /' conftest.
$ac_ext >&5
21330 ac_cv_var_tzname
=no
21332 rm -f conftest.err conftest.
$ac_objext \
21333 conftest
$ac_exeext conftest.
$ac_ext
21335 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21336 echo "${ECHO_T}$ac_cv_var_tzname" >&6
21337 if test $ac_cv_var_tzname = yes; then
21339 cat >>confdefs.h
<<\_ACEOF
21340 #define HAVE_TZNAME 1
21347 # check tzset(3) exists and works like we expect it to
21348 echo "$as_me:$LINENO: checking for working tzset()" >&5
21349 echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6
21350 if test "${ac_cv_working_tzset+set}" = set; then
21351 echo $ECHO_N "(cached) $ECHO_C" >&6
21354 if test "$cross_compiling" = yes; then
21355 ac_cv_working_tzset
=no
21357 cat >conftest.
$ac_ext <<_ACEOF
21360 cat confdefs.h
>>conftest.
$ac_ext
21361 cat >>conftest.
$ac_ext <<_ACEOF
21362 /* end confdefs.h. */
21364 #include <stdlib.h>
21366 #include <string.h>
21369 extern char *tzname[];
21374 /* Note that we need to ensure that not only does tzset(3)
21375 do 'something' with localtime, but it works as documented
21376 in the library reference and as expected by the test suite.
21377 This includes making sure that tzname is set properly if
21378 tm->tm_zone does not exist since it is the alternative way
21379 of getting timezone info.
21381 Red Hat 6.2 doesn't understand the southern hemisphere
21382 after New Year's Day.
21385 time_t groundhogday = 1044144000; /* GMT-based */
21386 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
21388 putenv("TZ=UTC+0");
21390 if (localtime(&groundhogday)->tm_hour != 0)
21393 /* For UTC, tzname[1] is sometimes "", sometimes " " */
21394 if (strcmp(tzname[0], "UTC") ||
21395 (tzname[1][0] != 0 && tzname[1][0] != ' '))
21399 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
21401 if (localtime(&groundhogday)->tm_hour != 19)
21404 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
21408 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
21410 if (localtime(&groundhogday)->tm_hour != 11)
21413 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
21417 #if HAVE_STRUCT_TM_TM_ZONE
21418 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
21420 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
21428 rm -f conftest
$ac_exeext
21429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21430 (eval $ac_link) 2>&5
21432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21433 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21435 (eval $ac_try) 2>&5
21437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21438 (exit $ac_status); }; }; then
21439 ac_cv_working_tzset
=yes
21441 echo "$as_me: program exited with status $ac_status" >&5
21442 echo "$as_me: failed program was:" >&5
21443 sed 's/^/| /' conftest.
$ac_ext >&5
21445 ( exit $ac_status )
21446 ac_cv_working_tzset
=no
21448 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21452 echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5
21453 echo "${ECHO_T}$ac_cv_working_tzset" >&6
21454 if test "$ac_cv_working_tzset" = yes
21457 cat >>confdefs.h
<<\_ACEOF
21458 #define HAVE_WORKING_TZSET 1
21463 # Look for subsecond timestamps in struct stat
21464 echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
21465 echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6
21466 if test "${ac_cv_stat_tv_nsec+set}" = set; then
21467 echo $ECHO_N "(cached) $ECHO_C" >&6
21469 cat >conftest.
$ac_ext <<_ACEOF
21472 cat confdefs.h
>>conftest.
$ac_ext
21473 cat >>conftest.
$ac_ext <<_ACEOF
21474 /* end confdefs.h. */
21475 #include <sys/stat.h>
21481 st.st_mtim.tv_nsec = 1;
21487 rm -f conftest.
$ac_objext
21488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21489 (eval $ac_compile) 2>conftest.er1
21491 grep -v '^ *+' conftest.er1
>conftest.err
21493 cat conftest.err
>&5
21494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21495 (exit $ac_status); } &&
21496 { ac_try
='test -z "$ac_c_werror_flag"
21497 || test ! -s conftest.err'
21498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21499 (eval $ac_try) 2>&5
21501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21502 (exit $ac_status); }; } &&
21503 { ac_try
='test -s conftest.$ac_objext'
21504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21505 (eval $ac_try) 2>&5
21507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21508 (exit $ac_status); }; }; then
21509 ac_cv_stat_tv_nsec
=yes
21511 echo "$as_me: failed program was:" >&5
21512 sed 's/^/| /' conftest.
$ac_ext >&5
21514 ac_cv_stat_tv_nsec
=no
21516 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21519 echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
21520 echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6
21521 if test "$ac_cv_stat_tv_nsec" = yes
21524 cat >>confdefs.h
<<\_ACEOF
21525 #define HAVE_STAT_TV_NSEC 1
21530 # Look for BSD style subsecond timestamps in struct stat
21531 echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5
21532 echo $ECHO_N "checking for tv_nsec2 in struct stat... $ECHO_C" >&6
21533 if test "${ac_cv_stat_tv_nsec2+set}" = set; then
21534 echo $ECHO_N "(cached) $ECHO_C" >&6
21536 cat >conftest.
$ac_ext <<_ACEOF
21539 cat confdefs.h
>>conftest.
$ac_ext
21540 cat >>conftest.
$ac_ext <<_ACEOF
21541 /* end confdefs.h. */
21542 #include <sys/stat.h>
21548 st.st_mtimespec.tv_nsec = 1;
21554 rm -f conftest.
$ac_objext
21555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21556 (eval $ac_compile) 2>conftest.er1
21558 grep -v '^ *+' conftest.er1
>conftest.err
21560 cat conftest.err
>&5
21561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21562 (exit $ac_status); } &&
21563 { ac_try
='test -z "$ac_c_werror_flag"
21564 || test ! -s conftest.err'
21565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21566 (eval $ac_try) 2>&5
21568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21569 (exit $ac_status); }; } &&
21570 { ac_try
='test -s conftest.$ac_objext'
21571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21572 (eval $ac_try) 2>&5
21574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21575 (exit $ac_status); }; }; then
21576 ac_cv_stat_tv_nsec2
=yes
21578 echo "$as_me: failed program was:" >&5
21579 sed 's/^/| /' conftest.
$ac_ext >&5
21581 ac_cv_stat_tv_nsec2
=no
21583 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21586 echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5
21587 echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6
21588 if test "$ac_cv_stat_tv_nsec2" = yes
21591 cat >>confdefs.h
<<\_ACEOF
21592 #define HAVE_STAT_TV_NSEC2 1
21597 # On HP/UX 11.0, mvwdelch is a block with a return statement
21598 echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
21599 echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6
21600 if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
21601 echo $ECHO_N "(cached) $ECHO_C" >&6
21603 cat >conftest.
$ac_ext <<_ACEOF
21606 cat confdefs.h
>>conftest.
$ac_ext
21607 cat >>conftest.
$ac_ext <<_ACEOF
21608 /* end confdefs.h. */
21609 #include <curses.h>
21615 rtn = mvwdelch(0,0,0);
21621 rm -f conftest.
$ac_objext
21622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21623 (eval $ac_compile) 2>conftest.er1
21625 grep -v '^ *+' conftest.er1
>conftest.err
21627 cat conftest.err
>&5
21628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21629 (exit $ac_status); } &&
21630 { ac_try
='test -z "$ac_c_werror_flag"
21631 || test ! -s conftest.err'
21632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21633 (eval $ac_try) 2>&5
21635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21636 (exit $ac_status); }; } &&
21637 { ac_try
='test -s conftest.$ac_objext'
21638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21639 (eval $ac_try) 2>&5
21641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21642 (exit $ac_status); }; }; then
21643 ac_cv_mvwdelch_is_expression
=yes
21645 echo "$as_me: failed program was:" >&5
21646 sed 's/^/| /' conftest.
$ac_ext >&5
21648 ac_cv_mvwdelch_is_expression
=no
21650 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21653 echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
21654 echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6
21656 if test "$ac_cv_mvwdelch_is_expression" = yes
21659 cat >>confdefs.h
<<\_ACEOF
21660 #define MVWDELCH_IS_EXPRESSION 1
21665 echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
21666 echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6
21667 if test "${ac_cv_window_has_flags+set}" = set; then
21668 echo $ECHO_N "(cached) $ECHO_C" >&6
21670 cat >conftest.
$ac_ext <<_ACEOF
21673 cat confdefs.h
>>conftest.
$ac_ext
21674 cat >>conftest.
$ac_ext <<_ACEOF
21675 /* end confdefs.h. */
21676 #include <curses.h>
21688 rm -f conftest.
$ac_objext
21689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21690 (eval $ac_compile) 2>conftest.er1
21692 grep -v '^ *+' conftest.er1
>conftest.err
21694 cat conftest.err
>&5
21695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21696 (exit $ac_status); } &&
21697 { ac_try
='test -z "$ac_c_werror_flag"
21698 || test ! -s conftest.err'
21699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21700 (eval $ac_try) 2>&5
21702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21703 (exit $ac_status); }; } &&
21704 { ac_try
='test -s conftest.$ac_objext'
21705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21706 (eval $ac_try) 2>&5
21708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21709 (exit $ac_status); }; }; then
21710 ac_cv_window_has_flags
=yes
21712 echo "$as_me: failed program was:" >&5
21713 sed 's/^/| /' conftest.
$ac_ext >&5
21715 ac_cv_window_has_flags
=no
21717 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21720 echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
21721 echo "${ECHO_T}$ac_cv_window_has_flags" >&6
21724 if test "$ac_cv_window_has_flags" = yes
21727 cat >>confdefs.h
<<\_ACEOF
21728 #define WINDOW_HAS_FLAGS 1
21733 echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
21734 echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6
21736 if test -e /dev
/ptmx
21738 echo "$as_me:$LINENO: result: yes" >&5
21739 echo "${ECHO_T}yes" >&6
21741 cat >>confdefs.h
<<\_ACEOF
21742 #define HAVE_DEV_PTMX 1
21746 echo "$as_me:$LINENO: result: no" >&5
21747 echo "${ECHO_T}no" >&6
21750 echo "$as_me:$LINENO: checking for /dev/ptc" >&5
21751 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6
21753 if test -e /dev
/ptc
21755 echo "$as_me:$LINENO: result: yes" >&5
21756 echo "${ECHO_T}yes" >&6
21758 cat >>confdefs.h
<<\_ACEOF
21759 #define HAVE_DEV_PTC 1
21763 echo "$as_me:$LINENO: result: no" >&5
21764 echo "${ECHO_T}no" >&6
21767 echo "$as_me:$LINENO: checking for socklen_t" >&5
21768 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
21769 if test "${ac_cv_type_socklen_t+set}" = set; then
21770 echo $ECHO_N "(cached) $ECHO_C" >&6
21772 cat >conftest.
$ac_ext <<_ACEOF
21775 cat confdefs.h
>>conftest.
$ac_ext
21776 cat >>conftest.
$ac_ext <<_ACEOF
21777 /* end confdefs.h. */
21779 #ifdef HAVE_SYS_TYPES_H
21780 #include <sys/types.h>
21782 #ifdef HAVE_SYS_SOCKET_H
21783 #include <sys/socket.h>
21790 if ((socklen_t *) 0)
21792 if (sizeof (socklen_t))
21798 rm -f conftest.
$ac_objext
21799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21800 (eval $ac_compile) 2>conftest.er1
21802 grep -v '^ *+' conftest.er1
>conftest.err
21804 cat conftest.err
>&5
21805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21806 (exit $ac_status); } &&
21807 { ac_try
='test -z "$ac_c_werror_flag"
21808 || test ! -s conftest.err'
21809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21810 (eval $ac_try) 2>&5
21812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21813 (exit $ac_status); }; } &&
21814 { ac_try
='test -s conftest.$ac_objext'
21815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21816 (eval $ac_try) 2>&5
21818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21819 (exit $ac_status); }; }; then
21820 ac_cv_type_socklen_t
=yes
21822 echo "$as_me: failed program was:" >&5
21823 sed 's/^/| /' conftest.
$ac_ext >&5
21825 ac_cv_type_socklen_t
=no
21827 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21829 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
21830 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
21831 if test $ac_cv_type_socklen_t = yes; then
21835 cat >>confdefs.h
<<\_ACEOF
21836 #define socklen_t int
21844 for h
in `(cd $srcdir;echo Python/thread_*.h)`
21846 THREADHEADERS
="$THREADHEADERS \$(srcdir)/$h"
21850 SRCDIRS
="Parser Grammar Objects Python Modules Mac"
21851 echo "$as_me:$LINENO: checking for build directories" >&5
21852 echo $ECHO_N "checking for build directories... $ECHO_C" >&6
21853 for dir
in $SRCDIRS; do
21854 if test ! -d $dir; then
21858 echo "$as_me:$LINENO: result: done" >&5
21859 echo "${ECHO_T}done" >&6
21861 # generate output files
21862 ac_config_files
="$ac_config_files Makefile.pre Modules/Setup.config"
21864 cat >confcache
<<\_ACEOF
21865 # This file is a shell script that caches the results of configure
21866 # tests run on this system so they can be shared between configure
21867 # scripts and configure runs, see configure's option --config-cache.
21868 # It is not useful on other systems. If it contains results you don't
21869 # want to keep, you may remove or edit it.
21871 # config.status only pays attention to the cache file if you give it
21872 # the --recheck option to rerun configure.
21874 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21875 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21876 # following values.
21880 # The following way of writing the cache mishandles newlines in values,
21881 # but we know of no workaround that is simple, portable, and efficient.
21882 # So, don't put newlines in cache variables' values.
21883 # Ultrix sh set writes to stderr and can't be redirected directly,
21884 # and sets the high bit in the cache file unless we assign to the vars.
21887 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21889 # `set' does not quote correctly, so add quotes (double-quote
21890 # substitution turns \\\\ into \\, and sed turns \\ into \).
21893 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21896 # `set' quotes correctly as required by POSIX, so do not add quotes.
21898 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21905 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21907 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21909 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
21910 if test -w $cache_file; then
21911 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21912 cat confcache
>$cache_file
21914 echo "not updating unwritable cache $cache_file"
21919 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
21920 # Let make expand exec_prefix.
21921 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
21923 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21924 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21925 # trailing colons and then remove the whole line if VPATH becomes empty
21926 # (actually we leave an empty line to preserve line numbers).
21927 if test "x$srcdir" = x.
; then
21928 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
21929 s/:*\$(srcdir):*/:/;
21930 s/:*\${srcdir}:*/:/;
21932 s/^\([^=]*=[ ]*\):*/\1/;
21938 DEFS
=-DHAVE_CONFIG_H
21942 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
21943 # 1. Remove the extension, and $U if already installed.
21944 ac_i
=`echo "$ac_i" |
21945 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21947 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
21948 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
21950 LIBOBJS
=$ac_libobjs
21952 LTLIBOBJS
=$ac_ltlibobjs
21956 : ${CONFIG_STATUS=./config.status}
21957 ac_clean_files_save
=$ac_clean_files
21958 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
21959 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21960 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21961 cat >$CONFIG_STATUS <<_ACEOF
21963 # Generated by $as_me.
21964 # Run this file to recreate the current configuration.
21965 # Compiler output produced by configure, useful for debugging
21966 # configure, is in config.log if it exists.
21969 ac_cs_recheck=false
21971 SHELL=\${CONFIG_SHELL-$SHELL}
21974 cat >>$CONFIG_STATUS <<\_ACEOF
21975 ## --------------------- ##
21976 ## M4sh Initialization. ##
21977 ## --------------------- ##
21979 # Be Bourne compatible
21980 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
21983 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21984 # is contrary to our usage. Disable this feature.
21985 alias -g '${1+"$@"}'='"$@"'
21986 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
21989 DUALCASE
=1; export DUALCASE
# for MKS sh
21991 # Support unset when possible.
21992 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
21999 # Work around bugs in pre-3.0 UWIN ksh.
22000 $as_unset ENV MAIL MAILPATH
22007 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22008 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22009 LC_TELEPHONE LC_TIME
22011 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22012 eval $as_var=C
; export $as_var
22018 # Required to use basename.
22019 if expr a
: '\(a\)' >/dev
/null
2>&1; then
22025 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
22026 as_basename
=basename
22032 # Name of the executable.
22033 as_me
=`$as_basename "$0" ||
22034 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22035 X"$0" : 'X\(//\)$' \| \
22036 X"$0" : 'X\(/\)$' \| \
22037 . : '\(.\)' 2>/dev/null ||
22039 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22040 /^X\/\(\/\/\)$/{ s//\1/; q; }
22041 /^X\/\(\/\).*/{ s//\1/; q; }
22045 # PATH needs CR, and LINENO needs CR and PATH.
22046 # Avoid depending upon Character Ranges.
22047 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
22048 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22049 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
22050 as_cr_digits
='0123456789'
22051 as_cr_alnum
=$as_cr_Letters$as_cr_digits
22053 # The user is always right.
22054 if test "${PATH_SEPARATOR+set}" != set; then
22055 echo "#! /bin/sh" >conf$$.sh
22056 echo "exit 0" >>conf$$.sh
22058 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
22067 as_lineno_1
=$LINENO
22068 as_lineno_2
=$LINENO
22069 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
22070 test "x$as_lineno_1" != "x$as_lineno_2" &&
22071 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
22072 # Find who we are. Look in the path if we contain no path at all
22075 *[\\/]* ) as_myself
=$0 ;;
22076 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22077 for as_dir
in $PATH
22080 test -z "$as_dir" && as_dir
=.
22081 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
22086 # We did not find ourselves, most probably we were run as `sh COMMAND'
22087 # in which case we are not to be found in the path.
22088 if test "x$as_myself" = x
; then
22091 if test ! -f "$as_myself"; then
22092 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22093 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22094 { (exit 1); exit 1; }; }
22096 case $CONFIG_SHELL in
22098 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22099 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
22102 test -z "$as_dir" && as_dir
=.
22103 for as_base
in sh bash ksh sh5
; do
22106 if ("$as_dir/$as_base" -c '
22107 as_lineno_1=$LINENO
22108 as_lineno_2=$LINENO
22109 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22110 test "x$as_lineno_1" != "x$as_lineno_2" &&
22111 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
22112 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
22113 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
22114 CONFIG_SHELL
=$as_dir/$as_base
22115 export CONFIG_SHELL
22116 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22124 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22125 # uniformly replaced by the line number. The first 'sed' inserts a
22126 # line-number line before each line; the second 'sed' does the real
22127 # work. The second script uses 'N' to pair each line-number line
22128 # with the numbered line, and appends trailing '-' during
22129 # substitution so that $LINENO is not a special case at line end.
22130 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22131 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22132 sed '=' <$as_myself |
22137 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22140 s,^['$as_cr_digits']*\n,,
22141 ' >$as_me.lineno
&&
22142 chmod +x
$as_me.lineno ||
22143 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22144 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22145 { (exit 1); exit 1; }; }
22147 # Don't try to exec as it changes $[0], causing all sort of problems
22148 # (the dirname of $[0] is not the place where we might find the
22149 # original and so on. Autoconf is especially sensible to this).
22151 # Exit status is that of the last command.
22156 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22157 *c
*,-n*) ECHO_N
= ECHO_C
='
22159 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
22160 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
22163 if expr a
: '\(a\)' >/dev
/null
2>&1; then
22169 rm -f conf$$ conf$$.exe conf$$.
file
22171 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
22172 # We could just check for DJGPP; but this test a) works b) is more generic
22173 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22174 if test -f conf$$.exe
; then
22175 # Don't use ln at all; we don't have any links
22180 elif ln conf$$.
file conf$$
2>/dev
/null
; then
22185 rm -f conf$$ conf$$.exe conf$$.
file
22187 if mkdir
-p .
2>/dev
/null
; then
22190 test -d .
/-p && rmdir .
/-p
22194 as_executable_p
="test -f"
22196 # Sed expression to map a string onto a valid CPP name.
22197 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22199 # Sed expression to map a string onto a valid variable name.
22200 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22204 # We need space, tab and new line, in precisely that order.
22214 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22215 # report actual input values of CONFIG_FILES etc. instead of their
22216 # values after options handling. Logging --version etc. is OK.
22220 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22221 ## Running $as_me. ##
22226 This file was extended by python $as_me 2.5, which was
22227 generated by GNU Autoconf 2.59. Invocation command line was
22229 CONFIG_FILES = $CONFIG_FILES
22230 CONFIG_HEADERS = $CONFIG_HEADERS
22231 CONFIG_LINKS = $CONFIG_LINKS
22232 CONFIG_COMMANDS = $CONFIG_COMMANDS
22236 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22240 # Files that config.status was made for.
22241 if test -n "$ac_config_files"; then
22242 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22245 if test -n "$ac_config_headers"; then
22246 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22249 if test -n "$ac_config_links"; then
22250 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22253 if test -n "$ac_config_commands"; then
22254 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22257 cat >>$CONFIG_STATUS <<\_ACEOF
22260 \`$as_me' instantiates files from templates according to the
22261 current configuration.
22263 Usage: $0 [OPTIONS] [FILE]...
22265 -h, --help print this help, then exit
22266 -V, --version print version number, then exit
22267 -q, --quiet do not print progress messages
22268 -d, --debug don't remove temporary files
22269 --recheck update $as_me by reconfiguring in the same conditions
22270 --file=FILE[:TEMPLATE]
22271 instantiate the configuration file FILE
22272 --header=FILE[:TEMPLATE]
22273 instantiate the configuration header FILE
22275 Configuration files:
22278 Configuration headers:
22281 Report bugs to <bug-autoconf@gnu.org>."
22284 cat >>$CONFIG_STATUS <<_ACEOF
22286 python config.status 2.5
22287 configured by $0, generated by GNU Autoconf 2.59,
22288 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22290 Copyright (C) 2003 Free Software Foundation, Inc.
22291 This config.status script is free software; the Free Software Foundation
22292 gives unlimited permission to copy, distribute and modify it."
22297 cat >>$CONFIG_STATUS <<\_ACEOF
22298 # If no file are specified by the user, then we need to provide default
22299 # value. By we need to know if files were specified by the user.
22305 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
22306 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
22314 *) # This is not an option, so the user has probably given explicit
22317 ac_need_defaults
=false
;;
22321 # Handling of the options.
22323 cat >>$CONFIG_STATUS <<\_ACEOF
22324 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
22326 --version |
--vers* |
-V )
22327 echo "$ac_cs_version"; exit 0 ;;
22329 # Conflict between --help and --header
22330 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22331 Try \`$0 --help' for more information." >&5
22332 echo "$as_me: error: ambiguous option: $1
22333 Try \`$0 --help' for more information." >&2;}
22334 { (exit 1); exit 1; }; };;
22335 --help |
--hel |
-h )
22336 echo "$ac_cs_usage"; exit 0 ;;
22337 --debug |
--d* |
-d )
22339 --file |
--fil |
--fi |
--f )
22341 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
22342 ac_need_defaults
=false
;;
22343 --header |
--heade |
--head |
--hea )
22345 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
22346 ac_need_defaults
=false
;;
22347 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
22348 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
22351 # This is an error.
22352 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22353 Try \`$0 --help' for more information." >&5
22354 echo "$as_me: error: unrecognized option: $1
22355 Try \`$0 --help' for more information." >&2;}
22356 { (exit 1); exit 1; }; } ;;
22358 *) ac_config_targets
="$ac_config_targets $1" ;;
22364 ac_configure_extra_args
=
22366 if $ac_cs_silent; then
22368 ac_configure_extra_args
="$ac_configure_extra_args --silent"
22372 cat >>$CONFIG_STATUS <<_ACEOF
22373 if \$ac_cs_recheck; then
22374 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22375 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22384 cat >>$CONFIG_STATUS <<\_ACEOF
22385 for ac_config_target
in $ac_config_targets
22387 case "$ac_config_target" in
22388 # Handling of arguments.
22389 "Makefile.pre" ) CONFIG_FILES
="$CONFIG_FILES Makefile.pre" ;;
22390 "Modules/Setup.config" ) CONFIG_FILES
="$CONFIG_FILES Modules/Setup.config" ;;
22391 "pyconfig.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS pyconfig.h" ;;
22392 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22393 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22394 { (exit 1); exit 1; }; };;
22398 # If the user did not use the arguments to specify the items to instantiate,
22399 # then the envvar interface is used. Set only those that are not.
22400 # We use the long form for the default assignment because of an extremely
22401 # bizarre bug on SunOS 4.1.3.
22402 if $ac_need_defaults; then
22403 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
22404 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
22407 # Have a temporary directory for convenience. Make it in the build tree
22408 # simply because there is no reason to put it here, and in addition,
22409 # creating and moving files from /tmp can sometimes cause problems.
22410 # Create a temporary directory, and hook for its removal unless debugging.
22413 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22414 trap '{ (exit 1); exit 1; }' 1 2 13 15
22417 # Create a (secure) tmp directory for tmp files.
22420 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22421 test -n "$tmp" && test -d "$tmp"
22424 tmp
=.
/confstat$$
-$RANDOM
22425 (umask 077 && mkdir
$tmp)
22428 echo "$me: cannot create a temporary directory in ." >&2
22429 { (exit 1); exit 1; }
22434 cat >>$CONFIG_STATUS <<_ACEOF
22437 # CONFIG_FILES section.
22440 # No need to generate the scripts if there are no CONFIG_FILES.
22441 # This happens for instance when ./config.status config.h
22442 if test -n "\$CONFIG_FILES"; then
22443 # Protect against being on the right side of a sed subst in config.status.
22444 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22445 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22446 s,@SHELL@,$SHELL,;t t
22447 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22448 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22449 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22450 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22451 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22452 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22453 s,@exec_prefix@,$exec_prefix,;t t
22454 s,@prefix@,$prefix,;t t
22455 s,@program_transform_name@,$program_transform_name,;t t
22456 s,@bindir@,$bindir,;t t
22457 s,@sbindir@,$sbindir,;t t
22458 s,@libexecdir@,$libexecdir,;t t
22459 s,@datadir@,$datadir,;t t
22460 s,@sysconfdir@,$sysconfdir,;t t
22461 s,@sharedstatedir@,$sharedstatedir,;t t
22462 s,@localstatedir@,$localstatedir,;t t
22463 s,@libdir@,$libdir,;t t
22464 s,@includedir@,$includedir,;t t
22465 s,@oldincludedir@,$oldincludedir,;t t
22466 s,@infodir@,$infodir,;t t
22467 s,@mandir@,$mandir,;t t
22468 s,@build_alias@,$build_alias,;t t
22469 s,@host_alias@,$host_alias,;t t
22470 s,@target_alias@,$target_alias,;t t
22471 s,@DEFS@,$DEFS,;t t
22472 s,@ECHO_C@,$ECHO_C,;t t
22473 s,@ECHO_N@,$ECHO_N,;t t
22474 s,@ECHO_T@,$ECHO_T,;t t
22475 s,@LIBS@,$LIBS,;t t
22476 s,@VERSION@,$VERSION,;t t
22477 s,@SOVERSION@,$SOVERSION,;t t
22478 s,@CONFIG_ARGS@,$CONFIG_ARGS,;t t
22479 s,@PYTHONFRAMEWORK@,$PYTHONFRAMEWORK,;t t
22480 s,@PYTHONFRAMEWORKDIR@,$PYTHONFRAMEWORKDIR,;t t
22481 s,@PYTHONFRAMEWORKPREFIX@,$PYTHONFRAMEWORKPREFIX,;t t
22482 s,@PYTHONFRAMEWORKINSTALLDIR@,$PYTHONFRAMEWORKINSTALLDIR,;t t
22483 s,@MACHDEP@,$MACHDEP,;t t
22484 s,@SGI_ABI@,$SGI_ABI,;t t
22485 s,@EXTRAPLATDIR@,$EXTRAPLATDIR,;t t
22486 s,@EXTRAMACHDEPPATH@,$EXTRAMACHDEPPATH,;t t
22487 s,@CONFIGURE_MACOSX_DEPLOYMENT_TARGET@,$CONFIGURE_MACOSX_DEPLOYMENT_TARGET,;t t
22489 s,@MAINOBJ@,$MAINOBJ,;t t
22490 s,@EXEEXT@,$EXEEXT,;t t
22492 s,@CFLAGS@,$CFLAGS,;t t
22493 s,@LDFLAGS@,$LDFLAGS,;t t
22494 s,@CPPFLAGS@,$CPPFLAGS,;t t
22495 s,@ac_ct_CC@,$ac_ct_CC,;t t
22496 s,@OBJEXT@,$OBJEXT,;t t
22498 s,@EGREP@,$EGREP,;t t
22499 s,@BUILDEXEEXT@,$BUILDEXEEXT,;t t
22500 s,@LIBRARY@,$LIBRARY,;t t
22501 s,@LDLIBRARY@,$LDLIBRARY,;t t
22502 s,@DLLLIBRARY@,$DLLLIBRARY,;t t
22503 s,@BLDLIBRARY@,$BLDLIBRARY,;t t
22504 s,@LDLIBRARYDIR@,$LDLIBRARYDIR,;t t
22505 s,@INSTSONAME@,$INSTSONAME,;t t
22506 s,@RUNSHARED@,$RUNSHARED,;t t
22507 s,@LINKCC@,$LINKCC,;t t
22508 s,@RANLIB@,$RANLIB,;t t
22509 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22511 s,@SVNVERSION@,$SVNVERSION,;t t
22512 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22513 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22514 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22517 s,@BASECFLAGS@,$BASECFLAGS,;t t
22518 s,@OTHER_LIBTOOL_OPT@,$OTHER_LIBTOOL_OPT,;t t
22519 s,@LIBTOOL_CRUFT@,$LIBTOOL_CRUFT,;t t
22521 s,@LDSHARED@,$LDSHARED,;t t
22522 s,@BLDSHARED@,$BLDSHARED,;t t
22523 s,@CCSHARED@,$CCSHARED,;t t
22524 s,@LINKFORSHARED@,$LINKFORSHARED,;t t
22525 s,@CFLAGSFORSHARED@,$CFLAGSFORSHARED,;t t
22526 s,@SHLIBS@,$SHLIBS,;t t
22527 s,@USE_SIGNAL_MODULE@,$USE_SIGNAL_MODULE,;t t
22528 s,@SIGNAL_OBJS@,$SIGNAL_OBJS,;t t
22529 s,@USE_THREAD_MODULE@,$USE_THREAD_MODULE,;t t
22530 s,@LDLAST@,$LDLAST,;t t
22531 s,@THREADOBJ@,$THREADOBJ,;t t
22532 s,@DLINCLDIR@,$DLINCLDIR,;t t
22533 s,@DYNLOADFILE@,$DYNLOADFILE,;t t
22534 s,@MACHDEP_OBJS@,$MACHDEP_OBJS,;t t
22535 s,@TRUE@,$TRUE,;t t
22536 s,@LIBOBJS@,$LIBOBJS,;t t
22537 s,@HAVE_GETHOSTBYNAME_R_6_ARG@,$HAVE_GETHOSTBYNAME_R_6_ARG,;t t
22538 s,@HAVE_GETHOSTBYNAME_R_5_ARG@,$HAVE_GETHOSTBYNAME_R_5_ARG,;t t
22539 s,@HAVE_GETHOSTBYNAME_R_3_ARG@,$HAVE_GETHOSTBYNAME_R_3_ARG,;t t
22540 s,@HAVE_GETHOSTBYNAME_R@,$HAVE_GETHOSTBYNAME_R,;t t
22541 s,@HAVE_GETHOSTBYNAME@,$HAVE_GETHOSTBYNAME,;t t
22542 s,@LIBM@,$LIBM,;t t
22543 s,@LIBC@,$LIBC,;t t
22544 s,@UNICODE_OBJS@,$UNICODE_OBJS,;t t
22545 s,@THREADHEADERS@,$THREADHEADERS,;t t
22546 s,@SRCDIRS@,$SRCDIRS,;t t
22547 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22552 cat >>$CONFIG_STATUS <<\_ACEOF
22553 # Split the substitutions into bite-sized pieces for seds with
22554 # small command number limits, like on Digital OSF/1 and HP-UX.
22555 ac_max_sed_lines
=48
22556 ac_sed_frag
=1 # Number of current file.
22557 ac_beg
=1 # First line for current file.
22558 ac_end
=$ac_max_sed_lines # Line after last line for current file.
22561 while $ac_more_lines; do
22562 if test $ac_beg -gt 1; then
22563 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
22565 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
22567 if test ! -s $tmp/subs.frag
; then
22568 ac_more_lines
=false
22570 # The purpose of the label and of the branching condition is to
22571 # speed up the sed processing (if there are no `@' at all, there
22572 # is no need to browse any of the substitutions).
22573 # These are the two extra sed commands mentioned above.
22575 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
22576 if test -z "$ac_sed_cmds"; then
22577 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
22579 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22581 ac_sed_frag
=`expr $ac_sed_frag + 1`
22583 ac_end
=`expr $ac_end + $ac_max_sed_lines`
22586 if test -z "$ac_sed_cmds"; then
22589 fi # test -n "$CONFIG_FILES"
22592 cat >>$CONFIG_STATUS <<\_ACEOF
22593 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
22594 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22596 - |
*:- |
*:-:* ) # input from stdin
22598 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22599 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
22600 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22601 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
22602 * ) ac_file_in
=$ac_file.
in ;;
22605 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22606 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
22607 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22608 X"$ac_file" : 'X\(//\)[^/]' \| \
22609 X"$ac_file" : 'X\(//\)$' \| \
22610 X"$ac_file" : 'X\(/\)' \| \
22611 . : '\(.\)' 2>/dev/null ||
22613 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22614 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22615 /^X\(\/\/\)$/{ s//\1/; q; }
22616 /^X\(\/\).*/{ s//\1/; q; }
22618 { if $as_mkdir_p; then
22623 while test ! -d "$as_dir"; do
22624 as_dirs
="$as_dir $as_dirs"
22625 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
22626 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22627 X"$as_dir" : 'X\(//\)[^/]' \| \
22628 X"$as_dir" : 'X\(//\)$' \| \
22629 X"$as_dir" : 'X\(/\)' \| \
22630 . : '\(.\)' 2>/dev/null ||
22632 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22633 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22634 /^X\(\/\/\)$/{ s//\1/; q; }
22635 /^X\(\/\).*/{ s//\1/; q; }
22638 test ! -n "$as_dirs" || mkdir
$as_dirs
22639 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22640 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22641 { (exit 1); exit 1; }; }; }
22645 if test "$ac_dir" != .
; then
22646 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22647 # A "../" for each directory in $ac_dir_suffix.
22648 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22650 ac_dir_suffix
= ac_top_builddir
=
22654 .
) # No --srcdir option. We are building in place.
22656 if test -z "$ac_top_builddir"; then
22659 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
22661 [\\/]* | ?
:[\\/]* ) # Absolute path.
22662 ac_srcdir
=$srcdir$ac_dir_suffix;
22663 ac_top_srcdir
=$srcdir ;;
22664 *) # Relative path.
22665 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
22666 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
22669 # Do not use `cd foo && pwd` to compute absolute paths, because
22670 # the directories may not exist.
22672 .
) ac_abs_builddir
="$ac_dir";;
22675 .
) ac_abs_builddir
=`pwd`;;
22676 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
22677 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
22680 case $ac_abs_builddir in
22681 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
22683 case ${ac_top_builddir}.
in
22684 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
22685 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
22686 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
22689 case $ac_abs_builddir in
22690 .
) ac_abs_srcdir
=$ac_srcdir;;
22693 .
) ac_abs_srcdir
=$ac_abs_builddir;;
22694 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
22695 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
22698 case $ac_abs_builddir in
22699 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
22701 case $ac_top_srcdir in
22702 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
22703 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
22704 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
22710 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
22711 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
22714 if test x
"$ac_file" != x-
; then
22715 { echo "$as_me:$LINENO: creating $ac_file" >&5
22716 echo "$as_me: creating $ac_file" >&6;}
22719 # Let's still pretend it is `configure' which instantiates (i.e., don't
22720 # use $as_me), people would be surprised to read:
22721 # /* config.h. Generated by config.status. */
22722 if test x
"$ac_file" = x-
; then
22725 configure_input
="$ac_file. "
22727 configure_input
=$configure_input"Generated from `echo $ac_file_in |
22728 sed 's,.*/,,'` by configure."
22730 # First look for the input files in the build tree, otherwise in the
22732 ac_file_inputs
=`IFS=:
22733 for f in $ac_file_in; do
22735 -) echo $tmp/stdin ;;
22737 # Absolute (can't be DOS-style, as IFS=:)
22738 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22739 echo "$as_me: error: cannot find input file: $f" >&2;}
22740 { (exit 1); exit 1; }; }
22743 if test -f "$f"; then
22746 elif test -f "$srcdir/$f"; then
22751 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22752 echo "$as_me: error: cannot find input file: $f" >&2;}
22753 { (exit 1); exit 1; }; }
22756 done` ||
{ (exit 1); exit 1; }
22758 cat >>$CONFIG_STATUS <<_ACEOF
22762 cat >>$CONFIG_STATUS <<\_ACEOF
22764 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
22765 s
,@configure_input@
,$configure_input,;t t
22766 s
,@srcdir@
,$ac_srcdir,;t t
22767 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
22768 s
,@top_srcdir@
,$ac_top_srcdir,;t t
22769 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
22770 s
,@builddir@
,$ac_builddir,;t t
22771 s
,@abs_builddir@
,$ac_abs_builddir,;t t
22772 s
,@top_builddir@
,$ac_top_builddir,;t t
22773 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
22774 s
,@INSTALL@
,$ac_INSTALL,;t t
22775 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22777 if test x"$ac_file" != x-; then
22778 mv $tmp/out $ac_file
22786 cat >>$CONFIG_STATUS <<\_ACEOF
22789 # CONFIG_HEADER section.
22792 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
22793 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22795 # ac_d sets the value in "#define NAME VALUE" lines.
22796 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22797 ac_dB
='[ ].*$,\1#\2'
22800 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22801 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22802 ac_uB
='$,\1#\2define\3'
22806 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
22807 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22809 - |
*:- |
*:-:* ) # input from stdin
22811 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22812 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
22813 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22814 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
22815 * ) ac_file_in
=$ac_file.
in ;;
22818 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
22819 echo "$as_me: creating $ac_file" >&6;}
22821 # First look for the input files in the build tree, otherwise in the
22823 ac_file_inputs
=`IFS=:
22824 for f in $ac_file_in; do
22826 -) echo $tmp/stdin ;;
22828 # Absolute (can't be DOS-style, as IFS=:)
22829 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22830 echo "$as_me: error: cannot find input file: $f" >&2;}
22831 { (exit 1); exit 1; }; }
22832 # Do quote $f, to prevent DOS paths from being IFS'd.
22835 if test -f "$f"; then
22838 elif test -f "$srcdir/$f"; then
22843 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22844 echo "$as_me: error: cannot find input file: $f" >&2;}
22845 { (exit 1); exit 1; }; }
22848 done` ||
{ (exit 1); exit 1; }
22849 # Remove the trailing spaces.
22850 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22854 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22855 # `conftest.undefs', that substitutes the proper values into
22856 # config.h.in to produce config.h. The first handles `#define'
22857 # templates, and the second `#undef' templates.
22858 # And first: Protect against being on the right side of a sed subst in
22859 # config.status. Protect against being in an unquoted here document
22860 # in config.status.
22861 rm -f conftest.defines conftest.undefs
22862 # Using a here document instead of a string reduces the quoting nightmare.
22863 # Putting comments in sed scripts is not portable.
22865 # `end' is used to avoid that the second main sed command (meant for
22866 # 0-ary CPP macros) applies to n-ary macro definitions.
22867 # See the Autoconf documentation for `clear'.
22868 cat >confdef2sed.
sed <<\_ACEOF
22873 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22875 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22878 # If some macros were called several times there might be several times
22879 # the same #defines, which is useless. Nevertheless, we may not want to
22880 # sort them, since we want the *last* AC-DEFINE to be honored.
22881 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22882 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22883 rm -f confdef2sed.sed
22885 # This sed command replaces #undef with comments. This is necessary, for
22886 # example, in the case of _POSIX_SOURCE, which is predefined and required
22887 # on some systems where configure will not decide to define it.
22888 cat >>conftest.undefs <<\_ACEOF
22889 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22892 # Break up conftest.defines because some shells have a limit on the size
22893 # of here documents, and old seds have small limits too (100 cmds).
22894 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22895 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22896 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22897 echo ' :' >>$CONFIG_STATUS
22898 rm -f conftest.tail
22899 while grep . conftest.defines >/dev/null
22901 # Write a limited-size here document to $tmp/defines.sed.
22902 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22903 # Speed up: don't consider the non `#define' lines.
22904 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22905 # Work around the forget-to-reset-the-flag bug.
22906 echo 't clr' >>$CONFIG_STATUS
22907 echo ': clr' >>$CONFIG_STATUS
22908 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
22910 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22912 mv $tmp/out $tmp/in
22914 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
22915 rm -f conftest.defines
22916 mv conftest.
tail conftest.defines
22918 rm -f conftest.defines
22919 echo ' fi # grep' >>$CONFIG_STATUS
22920 echo >>$CONFIG_STATUS
22922 # Break up conftest.undefs because some shells have a limit on the size
22923 # of here documents, and old seds have small limits too (100 cmds).
22924 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22925 rm -f conftest.
tail
22926 while grep . conftest.undefs
>/dev
/null
22928 # Write a limited-size here document to $tmp/undefs.sed.
22929 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22930 # Speed up: don't consider the non
`#undef'
22931 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22932 # Work around the forget-to-reset-the-flag bug.
22933 echo 't clr' >>$CONFIG_STATUS
22934 echo ': clr' >>$CONFIG_STATUS
22935 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22937 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22939 mv $tmp/out $tmp/in
22941 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22942 rm -f conftest.undefs
22943 mv conftest.tail conftest.undefs
22945 rm -f conftest.undefs
22947 cat >>$CONFIG_STATUS <<\_ACEOF
22948 # Let's still pretend it is `configure
' which instantiates (i.e., don't
22949 # use $as_me), people would be surprised to read:
22950 # /* config.h. Generated by config.status. */
22951 if test x
"$ac_file" = x-
; then
22952 echo "/* Generated by configure. */" >$tmp/config.h
22954 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22956 cat $tmp/in >>$tmp/config.h
22958 if test x
"$ac_file" != x-
; then
22959 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
22960 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22961 echo "$as_me: $ac_file is unchanged" >&6;}
22963 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
22964 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22965 X"$ac_file" : 'X\(//\)[^/]' \| \
22966 X"$ac_file" : 'X\(//\)$' \| \
22967 X"$ac_file" : 'X\(/\)' \| \
22968 . : '\(.\)' 2>/dev/null ||
22970 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22971 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22972 /^X\(\/\/\)$/{ s//\1/; q; }
22973 /^X\(\/\).*/{ s//\1/; q; }
22975 { if $as_mkdir_p; then
22980 while test ! -d "$as_dir"; do
22981 as_dirs
="$as_dir $as_dirs"
22982 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
22983 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22984 X"$as_dir" : 'X\(//\)[^/]' \| \
22985 X"$as_dir" : 'X\(//\)$' \| \
22986 X"$as_dir" : 'X\(/\)' \| \
22987 . : '\(.\)' 2>/dev/null ||
22989 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22990 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22991 /^X\(\/\/\)$/{ s//\1/; q; }
22992 /^X\(\/\).*/{ s//\1/; q; }
22995 test ! -n "$as_dirs" || mkdir
$as_dirs
22996 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22997 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22998 { (exit 1); exit 1; }; }; }
23001 mv $tmp/config.h
$ac_file
23005 rm -f $tmp/config.h
23010 cat >>$CONFIG_STATUS <<\_ACEOF
23012 { (exit 0); exit 0; }
23014 chmod +x
$CONFIG_STATUS
23015 ac_clean_files
=$ac_clean_files_save
23018 # configure is writing to config.log, and then calls config.status.
23019 # config.status does its own redirection, appending to config.log.
23020 # Unfortunately, on DOS this fails, as config.log is still kept open
23021 # by configure, so config.status won't be able to write to it; its
23022 # output is simply discarded. So we exec the FD to /dev/null,
23023 # effectively closing config.log, so it can be properly (re)opened and
23024 # appended to by config.status. When coming back to configure, we
23025 # need to make the FD available again.
23026 if test "$no_create" != yes; then
23028 ac_config_status_args
=
23029 test "$silent" = yes &&
23030 ac_config_status_args
="$ac_config_status_args --quiet"
23032 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
23034 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23035 # would make configure fail if this is the last instruction.
23036 $ac_cs_success ||
{ (exit 1); exit 1; }
23040 echo "creating Setup"
23041 if test ! -f Modules
/Setup
23043 cp $srcdir/Modules
/Setup.dist Modules
/Setup
23046 echo "creating Setup.local"
23047 if test ! -f Modules
/Setup.
local
23049 echo "# Edit this file for local setup changes" >Modules
/Setup.
local
23052 echo "creating Makefile"
23053 $SHELL $srcdir/Modules
/makesetup
-c $srcdir/Modules
/config.c.
in \
23054 -s Modules Modules
/Setup.config \
23055 Modules
/Setup.
local Modules
/Setup
23056 mv config.c Modules