2 # From configure.in Revision: 1.486 .
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 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-signal-module disable
/enable signal module
867 --with-dec-threads use DEC Alpha
/OSF1 thread-safe libraries
868 --with(out
)-threads[=DIRECTORY
]
869 disable
/enable thread support
870 --with(out
)-thread[=DIRECTORY
]
871 deprecated
; use
--with(out
)-threads
872 --with-pth use GNU pth threading libraries
873 --with(out
)-doc-strings disable
/enable documentation
strings
874 --with(out
)-tsc enable
/disable timestamp counter profile
875 --with(out
)-pymalloc disable
/enable specialized mallocs
876 --with-wctype-functions use wctype.h functions
877 --with-fpectl enable SIGFPE catching
878 --with-libm=STRING math library
879 --with-libc=STRING C library
881 Some influential environment variables
:
882 CC C compiler
command
883 CFLAGS C compiler flags
884 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
885 nonstandard directory
<lib dir
>
886 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
887 headers
in a nonstandard directory
<include dir
>
890 Use these variables to override the choices made by
`configure' or to help
891 it to find libraries and programs with nonstandard names/locations.
893 Report bugs to <http://www.python.org/python-bugs>.
897 if test "$ac_init_help" = "recursive"; then
898 # If there are subdirs, report their specific --help.
900 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
901 test -d $ac_dir || continue
904 if test "$ac_dir" != .; then
905 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
906 # A "../" for each directory in $ac_dir_suffix.
907 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
909 ac_dir_suffix= ac_top_builddir=
913 .) # No --srcdir option. We are building in place.
915 if test -z "$ac_top_builddir"; then
918 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
920 [\\/]* | ?:[\\/]* ) # Absolute path.
921 ac_srcdir=$srcdir$ac_dir_suffix;
922 ac_top_srcdir=$srcdir ;;
924 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
925 ac_top_srcdir=$ac_top_builddir$srcdir ;;
928 # Do not use `cd foo
&& pwd` to compute absolute paths, because
929 # the directories may not exist.
931 .) ac_abs_builddir="$ac_dir";;
934 .) ac_abs_builddir=`pwd`;;
935 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
936 *) ac_abs_builddir=`pwd`/"$ac_dir";;
939 case $ac_abs_builddir in
940 .) ac_abs_top_builddir=${ac_top_builddir}.;;
942 case ${ac_top_builddir}. in
943 .) ac_abs_top_builddir=$ac_abs_builddir;;
944 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
945 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
948 case $ac_abs_builddir in
949 .) ac_abs_srcdir=$ac_srcdir;;
952 .) ac_abs_srcdir=$ac_abs_builddir;;
953 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
954 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
957 case $ac_abs_builddir in
958 .) ac_abs_top_srcdir=$ac_top_srcdir;;
960 case $ac_top_srcdir in
961 .) ac_abs_top_srcdir=$ac_abs_builddir;;
962 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
963 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
968 # Check for guested configure; otherwise get Cygnus style configure.
969 if test -f $ac_srcdir/configure.gnu; then
971 $SHELL $ac_srcdir/configure.gnu --help=recursive
972 elif test -f $ac_srcdir/configure; then
974 $SHELL $ac_srcdir/configure --help=recursive
975 elif test -f $ac_srcdir/configure.ac ||
976 test -f $ac_srcdir/configure.in; then
980 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
986 test -n "$ac_init_help" && exit 0
987 if $ac_init_version; then
990 generated by GNU Autoconf 2.59
992 Copyright (C) 2003 Free Software Foundation, Inc.
993 This configure script is free software; the Free Software Foundation
994 gives unlimited permission to copy, distribute and modify it.
1000 This file contains any messages produced by compilers while
1001 running configure, to aid debugging if configure makes a mistake.
1003 It was created by python $as_me 2.5, which was
1004 generated by GNU Autoconf 2.59. Invocation command line was
1015 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1016 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1017 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1018 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1019 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1021 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1022 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1024 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1025 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1026 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1027 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1028 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1029 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1030 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1038 test -z "$as_dir" && as_dir=.
1039 echo "PATH: $as_dir"
1054 # Keep a trace of the command line.
1055 # Strip out --no-create and --no-recursion so they do not pile up.
1056 # Strip out --silent because we don't want to record it for future runs.
1057 # Also quote any args containing shell meta-characters.
1058 # Make two passes to allow for proper duplicate-argument suppression.
1063 ac_must_keep_next=false
1069 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1070 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1071 | -silent | --silent | --silen | --sile | --sil)
1073 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1074 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1077 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1079 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1080 if test $ac_must_keep_next = true; then
1081 ac_must_keep_next=false # Got value, back to normal.
1084 *=* | --config-cache | -C | -disable-* | --disable-* \
1085 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1086 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1087 | -with-* | --with-* | -without-* | --without-* | --x)
1088 case "$ac_configure_args0 " in
1089 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1092 -* ) ac_must_keep_next=true ;;
1095 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1096 # Get rid of the leading space.
1102 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1103 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1105 # When interrupted or exit'd, cleanup temporary files, and complete
1106 # config.log. We remove comments because anyway the quotes in there
1107 # would cause problems or look ugly.
1108 # WARNING: Be sure not to use single quotes in there, as some shells,
1109 # such as our DU 5.0 friend, will then `close
' the trap.
1110 trap 'exit_status
=$?
1111 # Save into config.log some information that might help in debugging.
1116 ## ---------------- ##
1117 ## Cache variables. ##
1118 ## ---------------- ##
1121 # The following way of writing the cache mishandles newlines in values,
1124 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1127 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1128 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1132 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1139 ## ----------------- ##
1140 ## Output variables. ##
1141 ## ----------------- ##
1144 for ac_var
in $ac_subst_vars
1146 eval ac_val
=$
`echo $ac_var`
1147 echo "$ac_var='"'"'$ac_val'"'"'"
1151 if test -n "$ac_subst_files"; then
1158 for ac_var
in $ac_subst_files
1160 eval ac_val
=$
`echo $ac_var`
1161 echo "$ac_var='"'"'$ac_val'"'"'"
1166 if test -s confdefs.h
; then
1173 sed "/^$/d" confdefs.h |
sort
1176 test "$ac_signal" != 0 &&
1177 echo "$as_me: caught signal $ac_signal"
1178 echo "$as_me: exit $exit_status"
1180 rm -f core
*.core
&&
1181 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1184 for ac_signal in 1 2 13 15; do
1185 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1189 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1190 rm -rf conftest* confdefs.h
1191 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1194 # Predefined preprocessor variables.
1196 cat >>confdefs.h <<_ACEOF
1197 #define PACKAGE_NAME "$PACKAGE_NAME"
1201 cat >>confdefs.h <<_ACEOF
1202 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1206 cat >>confdefs.h <<_ACEOF
1207 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1211 cat >>confdefs.h <<_ACEOF
1212 #define PACKAGE_STRING "$PACKAGE_STRING"
1216 cat >>confdefs.h <<_ACEOF
1217 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1221 # Let the site file select an alternate cache file if it wants to.
1222 # Prefer explicitly selected file to automatically selected ones.
1223 if test -z "$CONFIG_SITE"; then
1224 if test "x$prefix" != xNONE; then
1225 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1227 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1230 for ac_site_file in $CONFIG_SITE; do
1231 if test -r "$ac_site_file"; then
1232 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1233 echo "$as_me: loading site script $ac_site_file" >&6;}
1234 sed 's
/^
/|
/' "$ac_site_file" >&5
1239 if test -r "$cache_file"; then
1240 # Some versions of bash will fail to source /dev/null (special
1241 # files actually), so we avoid doing that.
1242 if test -f "$cache_file"; then
1243 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1244 echo "$as_me: loading cache $cache_file" >&6;}
1246 [\\/]* | ?:[\\/]* ) . $cache_file;;
1247 *) . ./$cache_file;;
1251 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1252 echo "$as_me: creating cache $cache_file" >&6;}
1256 # Check that the precious variables saved in the cache have kept the same
1258 ac_cache_corrupted=false
1259 for ac_var in `(set) 2>&1 |
1260 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1261 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1262 eval ac_new_set=\$ac_env_${ac_var}_set
1263 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1264 eval ac_new_val="\$ac_env_${ac_var}_value"
1265 case $ac_old_set,$ac_new_set in
1267 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1268 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1269 ac_cache_corrupted=: ;;
1271 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1272 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1273 ac_cache_corrupted=: ;;
1276 if test "x$ac_old_val" != "x$ac_new_val"; then
1277 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1278 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1279 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1280 echo "$as_me: former value: $ac_old_val" >&2;}
1281 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1282 echo "$as_me: current value: $ac_new_val" >&2;}
1283 ac_cache_corrupted=:
1286 # Pass precious variables to config.status.
1287 if test "$ac_new_set" = set; then
1289 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1290 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1291 *) ac_arg=$ac_var=$ac_new_val ;;
1293 case " $ac_configure_args " in
1294 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1295 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1299 if $ac_cache_corrupted; then
1300 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1301 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1302 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1303 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1304 { (exit 1); exit 1; }; }
1308 ac_cpp='$CPP $CPPFLAGS'
1309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1310 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1340 ac_config_headers="$ac_config_headers pyconfig.h"
1348 # We don't use PACKAGE_ variables
, and they cause conflicts
1349 # with other autoconf-based packages that include Python.h
1350 grep -v 'define PACKAGE_' <confdefs.h
>confdefs.h.new
1352 mv confdefs.h.new confdefs.h
1360 # The later defininition of _XOPEN_SOURCE disables certain features
1361 # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
1363 cat >>confdefs.h
<<\_ACEOF
1364 #define _GNU_SOURCE 1
1368 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1369 # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
1372 cat >>confdefs.h
<<\_ACEOF
1373 #define _NETBSD_SOURCE 1
1377 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1378 # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
1381 cat >>confdefs.h
<<\_ACEOF
1382 #define __BSD_VISIBLE 1
1386 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1387 # u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
1389 cat >>confdefs.h
<<\_ACEOF
1390 #define _BSD_TYPES 1
1394 define_xopen_source
=yes
1396 # Arguments passed to configure.
1398 CONFIG_ARGS
="$ac_configure_args"
1400 # Check whether --enable-framework or --disable-framework was given.
1401 if test "${enable_framework+set}" = set; then
1402 enableval
="$enable_framework"
1406 enableval
=/Library
/Frameworks
1411 PYTHONFRAMEWORKDIR
=no-framework
1412 PYTHONFRAMEWORKPREFIX
=
1413 PYTHONFRAMEWORKINSTALLDIR
=
1417 PYTHONFRAMEWORK
=Python
1418 PYTHONFRAMEWORKDIR
=Python.framework
1419 PYTHONFRAMEWORKPREFIX
=$enableval
1420 PYTHONFRAMEWORKINSTALLDIR
=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
1421 prefix
=$PYTHONFRAMEWORKINSTALLDIR/Versions
/$VERSION
1427 PYTHONFRAMEWORKDIR
=no-framework
1428 PYTHONFRAMEWORKPREFIX
=
1429 PYTHONFRAMEWORKINSTALLDIR
=
1439 ## AC_HELP_STRING(--with-dyld,
1440 ## Use (OpenStep|Rhapsody) dynamic linker))
1442 # Set name for machine-dependent library files
1444 echo "$as_me:$LINENO: checking MACHDEP" >&5
1445 echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6
1446 if test -z "$MACHDEP"
1448 ac_sys_system
=`uname -s`
1449 if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \
1450 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
1451 ac_sys_release
=`uname -v`
1453 ac_sys_release
=`uname -r`
1455 ac_md_system
=`echo $ac_sys_system |
1456 tr -d '/ ' | tr '[A-Z]' '[a-z]'`
1457 ac_md_release
=`echo $ac_sys_release |
1458 tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'`
1459 MACHDEP
="$ac_md_system$ac_md_release"
1462 cygwin
*) MACHDEP
="cygwin";;
1463 darwin
*) MACHDEP
="darwin";;
1464 atheos
*) MACHDEP
="atheos";;
1465 irix646
) MACHDEP
="irix6";;
1466 '') MACHDEP
="unknown";;
1470 # Some systems cannot stand _XOPEN_SOURCE being defined at all; they
1471 # disable features if it is defined, without any means to access these
1472 # features as extensions. For these systems, we skip the definition of
1473 # _XOPEN_SOURCE. Before adding a system to the list to gain access to
1474 # some feature, make sure there is no alternative way to access this
1475 # feature. Also, when using wildcards, make sure you have verified the
1476 # need for not defining _XOPEN_SOURCE on all systems matching the
1477 # wildcard, and that the wildcard does not include future systems
1478 # (which may remove their limitations).
1479 case $ac_sys_system/$ac_sys_release in
1480 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
1481 # even though select is a POSIX function. Reported by J. Ribbens.
1482 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
1483 OpenBSD
/2.
* | OpenBSD
/3.
[0123456])
1484 define_xopen_source
=no
;;
1485 # On Solaris 2.6, sys/wait.h is inconsistent in the usage
1486 # of union __?sigval. Reported by Stuart Bishop.
1488 define_xopen_source
=no
;;
1489 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
1490 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
1491 # Reconfirmed for 7.1.4 by Martin v. Loewis.
1492 OpenUNIX
/8.0.0| UnixWare
/7.1.
[0-4])
1493 define_xopen_source
=no
;;
1494 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
1495 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
1497 define_xopen_source
=no
;;
1498 # On FreeBSD 4.8 and MacOS X 10.2, a bug in ncurses.h means that
1499 # it craps out if _XOPEN_EXTENDED_SOURCE is defined. Apparently,
1500 # this is fixed in 10.3, which identifies itself as Darwin/7.*
1501 # This should hopefully be fixed in FreeBSD 4.9
1502 FreeBSD
/4.8* | Darwin
/6* )
1503 define_xopen_source
=no
;;
1504 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
1505 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
1506 # or has another value. By not (re)defining it, the defaults come in place.
1508 define_xopen_source
=no
;;
1510 if test `uname -r` -eq 1; then
1511 define_xopen_source
=no
1514 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
1515 # disables platform specific features beyond repair.
1517 define_xopen_source
=no
1522 if test $define_xopen_source = yes
1524 # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be
1525 # defined precisely as g++ defines it
1526 case $ac_sys_system/$ac_sys_release in
1527 SunOS
/5.8|SunOS
/5.9)
1529 cat >>confdefs.h
<<\_ACEOF
1530 #define _XOPEN_SOURCE 500
1536 cat >>confdefs.h
<<\_ACEOF
1537 #define _XOPEN_SOURCE 600
1543 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
1544 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
1545 # several APIs are not declared. Since this is also needed in some
1546 # cases for HP-UX, we define it globally.
1549 cat >>confdefs.h
<<\_ACEOF
1550 #define _XOPEN_SOURCE_EXTENDED 1
1555 cat >>confdefs.h
<<\_ACEOF
1556 #define _POSIX_C_SOURCE 200112L
1563 # SGI compilers allow the specification of the both the ABI and the
1564 # ISA on the command line. Depending on the values of these switches,
1565 # different and often incompatable code will be generated.
1567 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
1568 # thus supply support for various ABI/ISA combinations. The MACHDEP
1569 # variable is also adjusted.
1572 if test ! -z "$SGI_ABI"
1575 LDFLAGS
="$SGI_ABI $LDFLAGS"
1576 MACHDEP
=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'`
1578 echo "$as_me:$LINENO: result: $MACHDEP" >&5
1579 echo "${ECHO_T}$MACHDEP" >&6
1581 # And add extra plat-mac for darwin
1584 echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5
1585 echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6
1586 if test -z "$EXTRAPLATDIR"
1590 EXTRAPLATDIR
="\$(PLATMACDIRS)"
1591 EXTRAMACHDEPPATH
="\$(PLATMACPATH)"
1599 echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5
1600 echo "${ECHO_T}$EXTRAPLATDIR" >&6
1602 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
1603 # it may influence the way we can build extensions, so distutils
1606 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
=
1608 # checks for alternative programs
1610 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
1611 # for debug/optimization stuff. BASECFLAGS is for flags that are required
1612 # just to get things to compile and link. Users are free to override OPT
1613 # when running configure or make. The build should not break if they do.
1614 # BASECFLAGS should generally not be messed with, however.
1616 # XXX shouldn't some/most/all of this code be merged with the stuff later
1617 # on that fiddles with OPT and BASECFLAGS?
1618 echo "$as_me:$LINENO: checking for --without-gcc" >&5
1619 echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6
1621 # Check whether --with-gcc or --without-gcc was given.
1622 if test "${with_gcc+set}" = set; then
1631 without_gcc
=$withval;;
1635 case $ac_sys_system in
1639 case $BE_HOST_CPU in
1643 BASECFLAGS
="$BASECFLAGS -export pragma"
1645 LDFLAGS
="$LDFLAGS -nodup"
1653 { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5
1654 echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;}
1655 { (exit 1); exit 1; }; }
1658 AR
="\$(srcdir)/Modules/ar_beos"
1667 echo "$as_me:$LINENO: result: $without_gcc" >&5
1668 echo "${ECHO_T}$without_gcc" >&6
1673 echo "$as_me:$LINENO: checking for --with-cxx=<compiler>" >&5
1674 echo $ECHO_N "checking for --with-cxx=<compiler>... $ECHO_C" >&6
1676 # Check whether --with-cxx or --without-cxx was given.
1677 if test "${with_cxx+set}" = set; then
1694 echo "$as_me:$LINENO: result: $with_cxx" >&5
1695 echo "${ECHO_T}$with_cxx" >&6
1697 if test "$with_cxx" = "yes"
1699 { { echo "$as_me:$LINENO: error: must supply a compiler when using --with-cxx" >&5
1700 echo "$as_me: error: must supply a compiler when using --with-cxx" >&2;}
1701 { (exit 1); exit 1; }; }
1707 if test "$check_cxx" = "yes"
1709 for ac_prog
in $CCC c
++ g
++ gcc CC cxx cc
++ cl
1711 # Extract the first word of "$ac_prog", so it can be a program name with args.
1712 set dummy
$ac_prog; ac_word
=$2
1713 echo "$as_me:$LINENO: checking for $ac_word" >&5
1714 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1715 if test "${ac_cv_prog_CXX+set}" = set; then
1716 echo $ECHO_N "(cached) $ECHO_C" >&6
1718 if test -n "$CXX"; then
1719 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
1721 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1725 test -z "$as_dir" && as_dir
=.
1726 for ac_exec_ext
in '' $ac_executable_extensions; do
1727 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1728 ac_cv_prog_CXX
="$ac_prog"
1729 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1738 if test -n "$CXX"; then
1739 echo "$as_me:$LINENO: result: $CXX" >&5
1740 echo "${ECHO_T}$CXX" >&6
1742 echo "$as_me:$LINENO: result: no" >&5
1743 echo "${ECHO_T}no" >&6
1746 test -n "$CXX" && break
1748 test -n "$CXX" || CXX
="notfound"
1750 if test "$CXX" = "notfound"
1755 ac_cpp
='$CXXCPP $CPPFLAGS'
1756 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1757 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1758 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
1759 cat >conftest.
$ac_ext <<_ACEOF
1762 cat confdefs.h
>>conftest.
$ac_ext
1763 cat >>conftest.
$ac_ext <<_ACEOF
1764 /* end confdefs.h. */
1774 ac_clean_files_save
=$ac_clean_files
1775 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
1776 # Try to create an executable without -o first, disregard a.out.
1777 # It will help us diagnose broken compilers, and finding out an intuition
1779 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
1780 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
1781 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1782 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1783 (eval $ac_link_default) 2>&5
1785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1786 (exit $ac_status); }; then
1787 # Find the output, starting from the most likely. This scheme is
1788 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1791 # Be careful to initialize this variable, since it used to be cached.
1792 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1794 # b.out is created by i960 compilers.
1795 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
1797 test -f "$ac_file" ||
continue
1799 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
1802 # This is the source file.
1805 # We found the default executable, but exeext='' is most
1809 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1810 # FIXME: I believe we export ac_cv_exeext for Libtool,
1811 # but it would be cool to find out if it's true. Does anybody
1812 # maintain Libtool? --akim.
1820 echo "$as_me: failed program was:" >&5
1821 sed 's/^/| /' conftest.
$ac_ext >&5
1823 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
1824 See \`config.log' for more details." >&5
1825 echo "$as_me: error: C++ compiler cannot create executables
1826 See \`config.log' for more details." >&2;}
1827 { (exit 77); exit 77; }; }
1830 ac_exeext
=$ac_cv_exeext
1831 echo "$as_me:$LINENO: result: $ac_file" >&5
1832 echo "${ECHO_T}$ac_file" >&6
1834 # Check the compiler produces executables we can run. If not, either
1835 # the compiler is broken, or we cross compile.
1836 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
1837 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
1838 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1839 # If not cross compiling, check that we can run a simple program.
1840 if test "$cross_compiling" != yes; then
1841 if { ac_try
='./$ac_file'
1842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1846 (exit $ac_status); }; }; then
1849 if test "$cross_compiling" = maybe
; then
1852 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
1853 If you meant to cross compile, use \`--host'.
1854 See \`config.log' for more details." >&5
1855 echo "$as_me: error: cannot run C++ compiled programs.
1856 If you meant to cross compile, use \`--host'.
1857 See \`config.log' for more details." >&2;}
1858 { (exit 1); exit 1; }; }
1862 echo "$as_me:$LINENO: result: yes" >&5
1863 echo "${ECHO_T}yes" >&6
1865 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
1866 ac_clean_files
=$ac_clean_files_save
1867 # Check the compiler produces executables we can run. If not, either
1868 # the compiler is broken, or we cross compile.
1869 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1870 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1871 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1872 echo "${ECHO_T}$cross_compiling" >&6
1874 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1875 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1877 (eval $ac_link) 2>&5
1879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1880 (exit $ac_status); }; then
1881 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1882 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1883 # work properly (i.e., refer to `conftest.exe'), while it won't with
1885 for ac_file
in conftest.exe conftest conftest.
*; do
1886 test -f "$ac_file" ||
continue
1888 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
1889 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1896 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1897 See \`config.log' for more details." >&5
1898 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1899 See \`config.log' for more details." >&2;}
1900 { (exit 1); exit 1; }; }
1903 rm -f conftest
$ac_cv_exeext
1904 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1905 echo "${ECHO_T}$ac_cv_exeext" >&6
1907 rm -f conftest.
$ac_ext
1908 EXEEXT
=$ac_cv_exeext
1912 ac_cpp
='$CPP $CPPFLAGS'
1913 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1914 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1915 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1922 # If the user switches compilers, we can't believe the cache
1923 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
1925 { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
1926 (it is also a good idea to do 'make clean' before compiling)" >&5
1927 echo "$as_me: error: cached CC is different -- throw away $cache_file
1928 (it is also a good idea to do 'make clean' before compiling)" >&2;}
1929 { (exit 1); exit 1; }; }
1933 ac_cpp
='$CPP $CPPFLAGS'
1934 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1935 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1936 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1937 if test -n "$ac_tool_prefix"; then
1938 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1939 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1940 echo "$as_me:$LINENO: checking for $ac_word" >&5
1941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1942 if test "${ac_cv_prog_CC+set}" = set; then
1943 echo $ECHO_N "(cached) $ECHO_C" >&6
1945 if test -n "$CC"; then
1946 ac_cv_prog_CC
="$CC" # Let the user override the test.
1948 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1952 test -z "$as_dir" && as_dir
=.
1953 for ac_exec_ext
in '' $ac_executable_extensions; do
1954 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1955 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1965 if test -n "$CC"; then
1966 echo "$as_me:$LINENO: result: $CC" >&5
1967 echo "${ECHO_T}$CC" >&6
1969 echo "$as_me:$LINENO: result: no" >&5
1970 echo "${ECHO_T}no" >&6
1974 if test -z "$ac_cv_prog_CC"; then
1976 # Extract the first word of "gcc", so it can be a program name with args.
1977 set dummy gcc
; ac_word
=$2
1978 echo "$as_me:$LINENO: checking for $ac_word" >&5
1979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1980 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1981 echo $ECHO_N "(cached) $ECHO_C" >&6
1983 if test -n "$ac_ct_CC"; then
1984 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1986 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1990 test -z "$as_dir" && as_dir
=.
1991 for ac_exec_ext
in '' $ac_executable_extensions; do
1992 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1993 ac_cv_prog_ac_ct_CC
="gcc"
1994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2002 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2003 if test -n "$ac_ct_CC"; then
2004 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2005 echo "${ECHO_T}$ac_ct_CC" >&6
2007 echo "$as_me:$LINENO: result: no" >&5
2008 echo "${ECHO_T}no" >&6
2016 if test -z "$CC"; then
2017 if test -n "$ac_tool_prefix"; then
2018 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2019 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2020 echo "$as_me:$LINENO: checking for $ac_word" >&5
2021 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2022 if test "${ac_cv_prog_CC+set}" = set; then
2023 echo $ECHO_N "(cached) $ECHO_C" >&6
2025 if test -n "$CC"; then
2026 ac_cv_prog_CC
="$CC" # Let the user override the test.
2028 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2032 test -z "$as_dir" && as_dir
=.
2033 for ac_exec_ext
in '' $ac_executable_extensions; do
2034 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2035 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2045 if test -n "$CC"; then
2046 echo "$as_me:$LINENO: result: $CC" >&5
2047 echo "${ECHO_T}$CC" >&6
2049 echo "$as_me:$LINENO: result: no" >&5
2050 echo "${ECHO_T}no" >&6
2054 if test -z "$ac_cv_prog_CC"; then
2056 # Extract the first word of "cc", so it can be a program name with args.
2057 set dummy cc
; ac_word
=$2
2058 echo "$as_me:$LINENO: checking for $ac_word" >&5
2059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2060 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2061 echo $ECHO_N "(cached) $ECHO_C" >&6
2063 if test -n "$ac_ct_CC"; then
2064 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2066 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2070 test -z "$as_dir" && as_dir
=.
2071 for ac_exec_ext
in '' $ac_executable_extensions; do
2072 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2073 ac_cv_prog_ac_ct_CC
="cc"
2074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2082 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2083 if test -n "$ac_ct_CC"; then
2084 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2085 echo "${ECHO_T}$ac_ct_CC" >&6
2087 echo "$as_me:$LINENO: result: no" >&5
2088 echo "${ECHO_T}no" >&6
2097 if test -z "$CC"; then
2098 # Extract the first word of "cc", so it can be a program name with args.
2099 set dummy cc
; ac_word
=$2
2100 echo "$as_me:$LINENO: checking for $ac_word" >&5
2101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2102 if test "${ac_cv_prog_CC+set}" = set; then
2103 echo $ECHO_N "(cached) $ECHO_C" >&6
2105 if test -n "$CC"; then
2106 ac_cv_prog_CC
="$CC" # Let the user override the test.
2109 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2113 test -z "$as_dir" && as_dir
=.
2114 for ac_exec_ext
in '' $ac_executable_extensions; do
2115 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2116 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2117 ac_prog_rejected
=yes
2121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2127 if test $ac_prog_rejected = yes; then
2128 # We found a bogon in the path, so make sure we never use it.
2129 set dummy
$ac_cv_prog_CC
2131 if test $# != 0; then
2132 # We chose a different compiler from the bogus one.
2133 # However, it has the same basename, so the bogon will be chosen
2134 # first if we set CC to just the basename; use the full file name.
2136 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2142 if test -n "$CC"; then
2143 echo "$as_me:$LINENO: result: $CC" >&5
2144 echo "${ECHO_T}$CC" >&6
2146 echo "$as_me:$LINENO: result: no" >&5
2147 echo "${ECHO_T}no" >&6
2151 if test -z "$CC"; then
2152 if test -n "$ac_tool_prefix"; then
2155 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2156 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2157 echo "$as_me:$LINENO: checking for $ac_word" >&5
2158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2159 if test "${ac_cv_prog_CC+set}" = set; then
2160 echo $ECHO_N "(cached) $ECHO_C" >&6
2162 if test -n "$CC"; then
2163 ac_cv_prog_CC
="$CC" # Let the user override the test.
2165 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2169 test -z "$as_dir" && as_dir
=.
2170 for ac_exec_ext
in '' $ac_executable_extensions; do
2171 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2172 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2182 if test -n "$CC"; then
2183 echo "$as_me:$LINENO: result: $CC" >&5
2184 echo "${ECHO_T}$CC" >&6
2186 echo "$as_me:$LINENO: result: no" >&5
2187 echo "${ECHO_T}no" >&6
2190 test -n "$CC" && break
2193 if test -z "$CC"; then
2197 # Extract the first word of "$ac_prog", so it can be a program name with args.
2198 set dummy
$ac_prog; ac_word
=$2
2199 echo "$as_me:$LINENO: checking for $ac_word" >&5
2200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2201 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2202 echo $ECHO_N "(cached) $ECHO_C" >&6
2204 if test -n "$ac_ct_CC"; then
2205 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2207 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2211 test -z "$as_dir" && as_dir
=.
2212 for ac_exec_ext
in '' $ac_executable_extensions; do
2213 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2214 ac_cv_prog_ac_ct_CC
="$ac_prog"
2215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2223 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2224 if test -n "$ac_ct_CC"; then
2225 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2226 echo "${ECHO_T}$ac_ct_CC" >&6
2228 echo "$as_me:$LINENO: result: no" >&5
2229 echo "${ECHO_T}no" >&6
2232 test -n "$ac_ct_CC" && break
2241 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2242 See \`config.log' for more details." >&5
2243 echo "$as_me: error: no acceptable C compiler found in \$PATH
2244 See \`config.log' for more details." >&2;}
2245 { (exit 1); exit 1; }; }
2247 # Provide some information about the compiler.
2248 echo "$as_me:$LINENO:" \
2249 "checking for C compiler version" >&5
2250 ac_compiler
=`set X $ac_compile; echo $2`
2251 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2252 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2255 (exit $ac_status); }
2256 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2257 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2260 (exit $ac_status); }
2261 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2262 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265 (exit $ac_status); }
2267 cat >conftest.
$ac_ext <<_ACEOF
2270 cat confdefs.h
>>conftest.
$ac_ext
2271 cat >>conftest.
$ac_ext <<_ACEOF
2272 /* end confdefs.h. */
2282 ac_clean_files_save
=$ac_clean_files
2283 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2284 # Try to create an executable without -o first, disregard a.out.
2285 # It will help us diagnose broken compilers, and finding out an intuition
2287 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2288 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2289 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2290 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2291 (eval $ac_link_default) 2>&5
2293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2294 (exit $ac_status); }; then
2295 # Find the output, starting from the most likely. This scheme is
2296 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2299 # Be careful to initialize this variable, since it used to be cached.
2300 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2302 # b.out is created by i960 compilers.
2303 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2305 test -f "$ac_file" ||
continue
2307 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2310 # This is the source file.
2313 # We found the default executable, but exeext='' is most
2317 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2318 # FIXME: I believe we export ac_cv_exeext for Libtool,
2319 # but it would be cool to find out if it's true. Does anybody
2320 # maintain Libtool? --akim.
2328 echo "$as_me: failed program was:" >&5
2329 sed 's/^/| /' conftest.
$ac_ext >&5
2331 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2332 See \`config.log' for more details." >&5
2333 echo "$as_me: error: C compiler cannot create executables
2334 See \`config.log' for more details." >&2;}
2335 { (exit 77); exit 77; }; }
2338 ac_exeext
=$ac_cv_exeext
2339 echo "$as_me:$LINENO: result: $ac_file" >&5
2340 echo "${ECHO_T}$ac_file" >&6
2342 # Check the compiler produces executables we can run. If not, either
2343 # the compiler is broken, or we cross compile.
2344 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2345 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2346 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2347 # If not cross compiling, check that we can run a simple program.
2348 if test "$cross_compiling" != yes; then
2349 if { ac_try
='./$ac_file'
2350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2354 (exit $ac_status); }; }; then
2357 if test "$cross_compiling" = maybe
; then
2360 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2361 If you meant to cross compile, use \`--host'.
2362 See \`config.log' for more details." >&5
2363 echo "$as_me: error: cannot run C compiled programs.
2364 If you meant to cross compile, use \`--host'.
2365 See \`config.log' for more details." >&2;}
2366 { (exit 1); exit 1; }; }
2370 echo "$as_me:$LINENO: result: yes" >&5
2371 echo "${ECHO_T}yes" >&6
2373 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2374 ac_clean_files
=$ac_clean_files_save
2375 # Check the compiler produces executables we can run. If not, either
2376 # the compiler is broken, or we cross compile.
2377 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2378 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2379 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2380 echo "${ECHO_T}$cross_compiling" >&6
2382 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2383 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2385 (eval $ac_link) 2>&5
2387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2388 (exit $ac_status); }; then
2389 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2390 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2391 # work properly (i.e., refer to `conftest.exe'), while it won't with
2393 for ac_file
in conftest.exe conftest conftest.
*; do
2394 test -f "$ac_file" ||
continue
2396 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2397 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2404 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2405 See \`config.log' for more details." >&5
2406 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2407 See \`config.log' for more details." >&2;}
2408 { (exit 1); exit 1; }; }
2411 rm -f conftest
$ac_cv_exeext
2412 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2413 echo "${ECHO_T}$ac_cv_exeext" >&6
2415 rm -f conftest.
$ac_ext
2416 EXEEXT
=$ac_cv_exeext
2418 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2419 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2420 if test "${ac_cv_objext+set}" = set; then
2421 echo $ECHO_N "(cached) $ECHO_C" >&6
2423 cat >conftest.
$ac_ext <<_ACEOF
2426 cat confdefs.h
>>conftest.
$ac_ext
2427 cat >>conftest.
$ac_ext <<_ACEOF
2428 /* end confdefs.h. */
2438 rm -f conftest.o conftest.obj
2439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2440 (eval $ac_compile) 2>&5
2442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2443 (exit $ac_status); }; then
2444 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2446 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2447 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2452 echo "$as_me: failed program was:" >&5
2453 sed 's/^/| /' conftest.
$ac_ext >&5
2455 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2456 See \`config.log' for more details." >&5
2457 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2458 See \`config.log' for more details." >&2;}
2459 { (exit 1); exit 1; }; }
2462 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2464 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2465 echo "${ECHO_T}$ac_cv_objext" >&6
2466 OBJEXT
=$ac_cv_objext
2468 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2469 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2470 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2471 echo $ECHO_N "(cached) $ECHO_C" >&6
2473 cat >conftest.
$ac_ext <<_ACEOF
2476 cat confdefs.h
>>conftest.
$ac_ext
2477 cat >>conftest.
$ac_ext <<_ACEOF
2478 /* end confdefs.h. */
2491 rm -f conftest.
$ac_objext
2492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2493 (eval $ac_compile) 2>conftest.er1
2495 grep -v '^ *+' conftest.er1
>conftest.err
2497 cat conftest.err
>&5
2498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2499 (exit $ac_status); } &&
2500 { ac_try
='test -z "$ac_c_werror_flag"
2501 || test ! -s conftest.err'
2502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506 (exit $ac_status); }; } &&
2507 { ac_try
='test -s conftest.$ac_objext'
2508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512 (exit $ac_status); }; }; then
2515 echo "$as_me: failed program was:" >&5
2516 sed 's/^/| /' conftest.
$ac_ext >&5
2520 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2521 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2524 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2525 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2526 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2527 ac_test_CFLAGS
=${CFLAGS+set}
2528 ac_save_CFLAGS
=$CFLAGS
2530 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2531 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2532 if test "${ac_cv_prog_cc_g+set}" = set; then
2533 echo $ECHO_N "(cached) $ECHO_C" >&6
2535 cat >conftest.
$ac_ext <<_ACEOF
2538 cat confdefs.h
>>conftest.
$ac_ext
2539 cat >>conftest.
$ac_ext <<_ACEOF
2540 /* end confdefs.h. */
2550 rm -f conftest.
$ac_objext
2551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2552 (eval $ac_compile) 2>conftest.er1
2554 grep -v '^ *+' conftest.er1
>conftest.err
2556 cat conftest.err
>&5
2557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558 (exit $ac_status); } &&
2559 { ac_try
='test -z "$ac_c_werror_flag"
2560 || test ! -s conftest.err'
2561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565 (exit $ac_status); }; } &&
2566 { ac_try
='test -s conftest.$ac_objext'
2567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571 (exit $ac_status); }; }; then
2574 echo "$as_me: failed program was:" >&5
2575 sed 's/^/| /' conftest.
$ac_ext >&5
2579 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2581 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2582 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2583 if test "$ac_test_CFLAGS" = set; then
2584 CFLAGS
=$ac_save_CFLAGS
2585 elif test $ac_cv_prog_cc_g = yes; then
2586 if test "$GCC" = yes; then
2592 if test "$GCC" = yes; then
2598 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2599 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2600 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2601 echo $ECHO_N "(cached) $ECHO_C" >&6
2603 ac_cv_prog_cc_stdc
=no
2605 cat >conftest.
$ac_ext <<_ACEOF
2608 cat confdefs.h
>>conftest.
$ac_ext
2609 cat >>conftest.
$ac_ext <<_ACEOF
2610 /* end confdefs.h. */
2613 #include <sys/types.h>
2614 #include <sys/stat.h>
2615 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2616 struct buf { int x; };
2617 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2618 static char *e (p, i)
2624 static char *f (char * (*g) (char **, int), char **p, ...)
2629 s = g (p, va_arg (v,int));
2634 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2635 function prototypes and stuff, but not '\xHH' hex character constants.
2636 These don't provoke an error unfortunately, instead are silently treated
2637 as 'x'. The following induces an error, until -std1 is added to get
2638 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2639 array size at least. It's necessary to write '\x00'==0 to get something
2640 that's true only with -std1. */
2641 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2643 int test (int i, double x);
2644 struct s1 {int (*f) (int a);};
2645 struct s2 {int (*f) (double a);};
2646 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2652 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2657 # Don't try gcc -ansi; that turns off useful extensions and
2658 # breaks some systems' header files.
2659 # AIX -qlanglvl=ansi
2660 # Ultrix and OSF/1 -std1
2661 # HP-UX 10.20 and later -Ae
2662 # HP-UX older versions -Aa -D_HPUX_SOURCE
2663 # SVR4 -Xc -D__EXTENSIONS__
2664 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2666 CC
="$ac_save_CC $ac_arg"
2667 rm -f conftest.
$ac_objext
2668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2669 (eval $ac_compile) 2>conftest.er1
2671 grep -v '^ *+' conftest.er1
>conftest.err
2673 cat conftest.err
>&5
2674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675 (exit $ac_status); } &&
2676 { ac_try
='test -z "$ac_c_werror_flag"
2677 || test ! -s conftest.err'
2678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2682 (exit $ac_status); }; } &&
2683 { ac_try
='test -s conftest.$ac_objext'
2684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2688 (exit $ac_status); }; }; then
2689 ac_cv_prog_cc_stdc
=$ac_arg
2692 echo "$as_me: failed program was:" >&5
2693 sed 's/^/| /' conftest.
$ac_ext >&5
2696 rm -f conftest.err conftest.
$ac_objext
2698 rm -f conftest.
$ac_ext conftest.
$ac_objext
2703 case "x$ac_cv_prog_cc_stdc" in
2705 echo "$as_me:$LINENO: result: none needed" >&5
2706 echo "${ECHO_T}none needed" >&6 ;;
2708 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2709 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2710 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2713 # Some people use a C++ compiler to compile C. Since we use `exit',
2714 # in C++ we need to declare it. In case someone uses the same compiler
2715 # for both compiling C and C++ we need to have the C++ compiler decide
2716 # the declaration of exit, since it's the most demanding environment.
2717 cat >conftest.
$ac_ext <<_ACEOF
2722 rm -f conftest.
$ac_objext
2723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2724 (eval $ac_compile) 2>conftest.er1
2726 grep -v '^ *+' conftest.er1
>conftest.err
2728 cat conftest.err
>&5
2729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730 (exit $ac_status); } &&
2731 { ac_try
='test -z "$ac_c_werror_flag"
2732 || test ! -s conftest.err'
2733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737 (exit $ac_status); }; } &&
2738 { ac_try
='test -s conftest.$ac_objext'
2739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743 (exit $ac_status); }; }; then
2744 for ac_declaration
in \
2746 'extern "C" void std::exit (int) throw (); using std::exit;' \
2747 'extern "C" void std::exit (int); using std::exit;' \
2748 'extern "C" void exit (int) throw ();' \
2749 'extern "C" void exit (int);' \
2752 cat >conftest.
$ac_ext <<_ACEOF
2755 cat confdefs.h
>>conftest.
$ac_ext
2756 cat >>conftest.
$ac_ext <<_ACEOF
2757 /* end confdefs.h. */
2768 rm -f conftest.
$ac_objext
2769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2770 (eval $ac_compile) 2>conftest.er1
2772 grep -v '^ *+' conftest.er1
>conftest.err
2774 cat conftest.err
>&5
2775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776 (exit $ac_status); } &&
2777 { ac_try
='test -z "$ac_c_werror_flag"
2778 || test ! -s conftest.err'
2779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783 (exit $ac_status); }; } &&
2784 { ac_try
='test -s conftest.$ac_objext'
2785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789 (exit $ac_status); }; }; then
2792 echo "$as_me: failed program was:" >&5
2793 sed 's/^/| /' conftest.
$ac_ext >&5
2797 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2798 cat >conftest.
$ac_ext <<_ACEOF
2801 cat confdefs.h
>>conftest.
$ac_ext
2802 cat >>conftest.
$ac_ext <<_ACEOF
2803 /* end confdefs.h. */
2813 rm -f conftest.
$ac_objext
2814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2815 (eval $ac_compile) 2>conftest.er1
2817 grep -v '^ *+' conftest.er1
>conftest.err
2819 cat conftest.err
>&5
2820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2821 (exit $ac_status); } &&
2822 { ac_try
='test -z "$ac_c_werror_flag"
2823 || test ! -s conftest.err'
2824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2828 (exit $ac_status); }; } &&
2829 { ac_try
='test -s conftest.$ac_objext'
2830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2834 (exit $ac_status); }; }; then
2837 echo "$as_me: failed program was:" >&5
2838 sed 's/^/| /' conftest.
$ac_ext >&5
2841 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2844 if test -n "$ac_declaration"; then
2845 echo '#ifdef __cplusplus' >>confdefs.h
2846 echo $ac_declaration >>confdefs.h
2847 echo '#endif' >>confdefs.h
2851 echo "$as_me: failed program was:" >&5
2852 sed 's/^/| /' conftest.
$ac_ext >&5
2855 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2857 ac_cpp
='$CPP $CPPFLAGS'
2858 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2859 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2860 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2863 # checks for UNIX variants that set C preprocessor variables
2866 ac_cpp
='$CPP $CPPFLAGS'
2867 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2868 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2869 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2870 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2871 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2872 # On Suns, sometimes $CPP names a directory.
2873 if test -n "$CPP" && test -d "$CPP"; then
2876 if test -z "$CPP"; then
2877 if test "${ac_cv_prog_CPP+set}" = set; then
2878 echo $ECHO_N "(cached) $ECHO_C" >&6
2880 # Double quotes because CPP needs to be expanded
2881 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2884 for ac_c_preproc_warn_flag
in '' yes
2886 # Use a header file that comes with gcc, so configuring glibc
2887 # with a fresh cross-compiler works.
2888 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2889 # <limits.h> exists even on freestanding compilers.
2890 # On the NeXT, cc -E runs the code through the compiler's parser,
2891 # not just through cpp. "Syntax error" is here to catch this case.
2892 cat >conftest.
$ac_ext <<_ACEOF
2895 cat confdefs.h
>>conftest.
$ac_ext
2896 cat >>conftest.
$ac_ext <<_ACEOF
2897 /* end confdefs.h. */
2899 # include <limits.h>
2901 # include <assert.h>
2905 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2906 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2908 grep -v '^ *+' conftest.er1
>conftest.err
2910 cat conftest.err
>&5
2911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2912 (exit $ac_status); } >/dev
/null
; then
2913 if test -s conftest.err
; then
2914 ac_cpp_err
=$ac_c_preproc_warn_flag
2915 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2922 if test -z "$ac_cpp_err"; then
2925 echo "$as_me: failed program was:" >&5
2926 sed 's/^/| /' conftest.
$ac_ext >&5
2928 # Broken: fails on valid input.
2931 rm -f conftest.err conftest.
$ac_ext
2933 # OK, works on sane cases. Now check whether non-existent headers
2934 # can be detected and how.
2935 cat >conftest.
$ac_ext <<_ACEOF
2938 cat confdefs.h
>>conftest.
$ac_ext
2939 cat >>conftest.
$ac_ext <<_ACEOF
2940 /* end confdefs.h. */
2941 #include <ac_nonexistent.h>
2943 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2944 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2946 grep -v '^ *+' conftest.er1
>conftest.err
2948 cat conftest.err
>&5
2949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950 (exit $ac_status); } >/dev
/null
; then
2951 if test -s conftest.err
; then
2952 ac_cpp_err
=$ac_c_preproc_warn_flag
2953 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2960 if test -z "$ac_cpp_err"; then
2961 # Broken: success on invalid input.
2964 echo "$as_me: failed program was:" >&5
2965 sed 's/^/| /' conftest.
$ac_ext >&5
2967 # Passes both tests.
2971 rm -f conftest.err conftest.
$ac_ext
2974 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2975 rm -f conftest.err conftest.
$ac_ext
2976 if $ac_preproc_ok; then
2988 echo "$as_me:$LINENO: result: $CPP" >&5
2989 echo "${ECHO_T}$CPP" >&6
2991 for ac_c_preproc_warn_flag
in '' yes
2993 # Use a header file that comes with gcc, so configuring glibc
2994 # with a fresh cross-compiler works.
2995 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2996 # <limits.h> exists even on freestanding compilers.
2997 # On the NeXT, cc -E runs the code through the compiler's parser,
2998 # not just through cpp. "Syntax error" is here to catch this case.
2999 cat >conftest.
$ac_ext <<_ACEOF
3002 cat confdefs.h
>>conftest.
$ac_ext
3003 cat >>conftest.
$ac_ext <<_ACEOF
3004 /* end confdefs.h. */
3006 # include <limits.h>
3008 # include <assert.h>
3012 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3013 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3015 grep -v '^ *+' conftest.er1
>conftest.err
3017 cat conftest.err
>&5
3018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3019 (exit $ac_status); } >/dev
/null
; then
3020 if test -s conftest.err
; then
3021 ac_cpp_err
=$ac_c_preproc_warn_flag
3022 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3029 if test -z "$ac_cpp_err"; then
3032 echo "$as_me: failed program was:" >&5
3033 sed 's/^/| /' conftest.
$ac_ext >&5
3035 # Broken: fails on valid input.
3038 rm -f conftest.err conftest.
$ac_ext
3040 # OK, works on sane cases. Now check whether non-existent headers
3041 # can be detected and how.
3042 cat >conftest.
$ac_ext <<_ACEOF
3045 cat confdefs.h
>>conftest.
$ac_ext
3046 cat >>conftest.
$ac_ext <<_ACEOF
3047 /* end confdefs.h. */
3048 #include <ac_nonexistent.h>
3050 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3051 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3053 grep -v '^ *+' conftest.er1
>conftest.err
3055 cat conftest.err
>&5
3056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057 (exit $ac_status); } >/dev
/null
; then
3058 if test -s conftest.err
; then
3059 ac_cpp_err
=$ac_c_preproc_warn_flag
3060 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3067 if test -z "$ac_cpp_err"; then
3068 # Broken: success on invalid input.
3071 echo "$as_me: failed program was:" >&5
3072 sed 's/^/| /' conftest.
$ac_ext >&5
3074 # Passes both tests.
3078 rm -f conftest.err conftest.
$ac_ext
3081 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3082 rm -f conftest.err conftest.
$ac_ext
3083 if $ac_preproc_ok; then
3086 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3087 See \`config.log' for more details." >&5
3088 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3089 See \`config.log' for more details." >&2;}
3090 { (exit 1); exit 1; }; }
3094 ac_cpp
='$CPP $CPPFLAGS'
3095 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3096 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3097 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3100 echo "$as_me:$LINENO: checking for egrep" >&5
3101 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3102 if test "${ac_cv_prog_egrep+set}" = set; then
3103 echo $ECHO_N "(cached) $ECHO_C" >&6
3105 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3106 then ac_cv_prog_egrep
='grep -E'
3107 else ac_cv_prog_egrep
='egrep'
3110 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3111 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3112 EGREP
=$ac_cv_prog_egrep
3116 echo "$as_me:$LINENO: checking for AIX" >&5
3117 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3118 cat >conftest.
$ac_ext <<_ACEOF
3121 cat confdefs.h
>>conftest.
$ac_ext
3122 cat >>conftest.
$ac_ext <<_ACEOF
3123 /* end confdefs.h. */
3129 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3130 $EGREP "yes" >/dev
/null
2>&1; then
3131 echo "$as_me:$LINENO: result: yes" >&5
3132 echo "${ECHO_T}yes" >&6
3133 cat >>confdefs.h
<<\_ACEOF
3134 #define _ALL_SOURCE 1
3138 echo "$as_me:$LINENO: result: no" >&5
3139 echo "${ECHO_T}no" >&6
3145 # Check for unsupported systems
3146 case $ac_sys_system/$ac_sys_release in
3148 echo This system \
($ac_sys_system/$ac_sys_release\
) is no longer supported.
3149 echo See README
for details.
3154 echo "$as_me:$LINENO: checking for --with-suffix" >&5
3155 echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6
3157 # Check whether --with-suffix or --without-suffix was given.
3158 if test "${with_suffix+set}" = set; then
3159 withval
="$with_suffix"
3164 *) EXEEXT
=$withval;;
3167 echo "$as_me:$LINENO: result: $EXEEXT" >&5
3168 echo "${ECHO_T}$EXEEXT" >&6
3170 # Test whether we're running on a non-case-sensitive system, in which
3171 # case we give a warning if no ext is given
3173 echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
3174 echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6
3175 if test ! -d CaseSensitiveTestDir
; then
3176 mkdir CaseSensitiveTestDir
3179 if test -d casesensitivetestdir
3181 echo "$as_me:$LINENO: result: yes" >&5
3182 echo "${ECHO_T}yes" >&6
3185 echo "$as_me:$LINENO: result: no" >&5
3186 echo "${ECHO_T}no" >&6
3189 rmdir CaseSensitiveTestDir
3194 gcc
) CC
="$CC -D_HAVE_BSDI";;
3198 case $ac_sys_system in
3201 cc|
*/cc
) CC
="$CC -Ae";;
3205 cc
) CC
="$CC -Wl,-Bexport";;
3208 # Some functions have a prototype only with that define, e.g. confstr
3210 cat >>confdefs.h
<<\_ACEOF
3211 #define __EXTENSIONS__ 1
3219 echo "$as_me:$LINENO: checking LIBRARY" >&5
3220 echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6
3221 if test -z "$LIBRARY"
3223 LIBRARY
='libpython$(VERSION).a'
3225 echo "$as_me:$LINENO: result: $LIBRARY" >&5
3226 echo "${ECHO_T}$LIBRARY" >&6
3228 # LDLIBRARY is the name of the library to link against (as opposed to the
3229 # name of the library into which to insert object files). BLDLIBRARY is also
3230 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
3231 # is blank as the main program is not linked directly against LDLIBRARY.
3232 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
3233 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
3234 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
3235 # DLLLIBRARY is the shared (i.e., DLL) library.
3237 # RUNSHARED is used to run shared python without installed libraries
3239 # INSTSONAME is the name of the shared library that will be use to install
3240 # on the system - some systems like version suffix, others don't
3247 LDLIBRARY
="$LIBRARY"
3248 BLDLIBRARY
='$(LDLIBRARY)'
3249 INSTSONAME
='$(LDLIBRARY)'
3254 # LINKCC is the command that links the python executable -- default is $(CC).
3255 # If CXX is set, and if it is needed to link a main function that was
3256 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
3257 # python might then depend on the C++ runtime
3258 # This is altered for AIX in order to build the export list before
3261 echo "$as_me:$LINENO: checking LINKCC" >&5
3262 echo $ECHO_N "checking LINKCC... $ECHO_C" >&6
3263 if test -z "$LINKCC"
3265 if test -z "$CXX"; then
3266 LINKCC
="\$(PURIFY) \$(CC)"
3268 echo 'extern "C" void foo();int main(){foo();}' > conftest_a.cc
3269 $CXX -c conftest_a.cc
# 2>&5
3270 echo 'void foo(){}' > conftest_b.
$ac_ext
3271 $CC -c conftest_b.
$ac_ext # 2>&5
3272 if $CC -o conftest
$ac_exeext conftest_a.
$ac_objext conftest_b.
$ac_objext 2>&5 \
3273 && test -s conftest
$ac_exeext && .
/conftest
$ac_exeext
3275 LINKCC
="\$(PURIFY) \$(CC)"
3277 LINKCC
="\$(PURIFY) \$(CXX)"
3281 case $ac_sys_system in
3284 if test $ac_sys_release -ge 5 -o \
3285 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
3288 LINKCC
="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
3290 LINKCC
="$LINKCC -L/usr/lib/ia64l64";;
3293 echo "$as_me:$LINENO: result: $LINKCC" >&5
3294 echo "${ECHO_T}$LINKCC" >&6
3296 echo "$as_me:$LINENO: checking for --enable-shared" >&5
3297 echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6
3298 # Check whether --enable-shared or --disable-shared was given.
3299 if test "${enable_shared+set}" = set; then
3300 enableval
="$enable_shared"
3304 if test -z "$enable_shared"
3306 case $ac_sys_system in
3308 enable_shared
="yes";;
3310 enable_shared
="no";;
3313 echo "$as_me:$LINENO: result: $enable_shared" >&5
3314 echo "${ECHO_T}$enable_shared" >&6
3316 echo "$as_me:$LINENO: checking for --enable-profiling" >&5
3317 echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6
3318 # Check whether --enable-profiling or --disable-profiling was given.
3319 if test "${enable_profiling+set}" = set; then
3320 enableval
="$enable_profiling"
3323 if test "$cross_compiling" = yes; then
3324 ac_enable_profiling
="no"
3326 cat >conftest.
$ac_ext <<_ACEOF
3329 cat confdefs.h
>>conftest.
$ac_ext
3330 cat >>conftest.
$ac_ext <<_ACEOF
3331 /* end confdefs.h. */
3332 int main() { return 0; }
3334 rm -f conftest
$ac_exeext
3335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3336 (eval $ac_link) 2>&5
3338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344 (exit $ac_status); }; }; then
3345 ac_enable_profiling
="yes"
3347 echo "$as_me: program exited with status $ac_status" >&5
3348 echo "$as_me: failed program was:" >&5
3349 sed 's/^/| /' conftest.
$ac_ext >&5
3352 ac_enable_profiling
="no"
3354 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3358 echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5
3359 echo "${ECHO_T}$ac_enable_profiling" >&6
3361 case "$ac_enable_profiling" in
3363 BASECFLAGS
="-pg $BASECFLAGS"
3364 LDFLAGS
="-pg $LDFLAGS"
3368 echo "$as_me:$LINENO: checking LDLIBRARY" >&5
3369 echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6
3371 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
3372 # library that we build, but we do not want to link against it (we
3373 # will find it with a -framework option). For this reason there is an
3374 # extra variable BLDLIBRARY against which Python and the extension
3375 # modules are linked, BLDLIBRARY. This is normally the same as
3376 # LDLIBRARY, but empty for MacOSX framework builds.
3377 if test "$enable_framework"
3379 LDLIBRARY
='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
3380 RUNSHARED
=DYLD_FRAMEWORK_PATH
="`pwd`:$DYLD_FRAMEWORK_PATH"
3383 BLDLIBRARY
='$(LDLIBRARY)'
3386 # Other platforms follow
3387 if test $enable_shared = "yes"; then
3389 cat >>confdefs.h
<<\_ACEOF
3390 #define Py_ENABLE_SHARED 1
3393 case $ac_sys_system in
3395 LDLIBRARY
='libpython$(VERSION).so'
3398 LDLIBRARY
='libpython$(VERSION).dll.a'
3399 DLLLIBRARY
='libpython$(VERSION).dll'
3402 LDLIBRARY
='libpython$(VERSION).so'
3403 BLDLIBRARY
='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
3404 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
3405 INSTSONAME
="$LDLIBRARY".
$SOVERSION
3407 Linux
*|GNU
*|NetBSD
*|FreeBSD
*)
3408 LDLIBRARY
='libpython$(VERSION).so'
3409 BLDLIBRARY
='-L. -lpython$(VERSION)'
3410 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
3411 case $ac_sys_system in
3413 SOVERSION
=`echo $SOVERSION|cut -d "." -f 1`
3416 INSTSONAME
="$LDLIBRARY".
$SOVERSION
3419 LDLIBRARY
='libpython$(VERSION).sl'
3420 BLDLIBRARY
='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
3421 RUNSHARED
=SHLIB_PATH
=`pwd`:${SHLIB_PATH}
3424 LDLIBRARY
='libpython$(VERSION).so'
3425 BLDLIBRARY
='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
3426 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
3429 LDLIBRARY
='libpython$(VERSION).so'
3430 BLDLIBRARY
='-L. -lpython$(VERSION)'
3431 RUNSHARED
=DLL_PATH
=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
3434 else # shared is disabled
3435 case $ac_sys_system in
3437 BLDLIBRARY
='$(LIBRARY)'
3438 LDLIBRARY
='libpython$(VERSION).dll.a'
3443 echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
3444 echo "${ECHO_T}$LDLIBRARY" >&6
3446 if test -n "$ac_tool_prefix"; then
3447 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3448 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3449 echo "$as_me:$LINENO: checking for $ac_word" >&5
3450 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3451 if test "${ac_cv_prog_RANLIB+set}" = set; then
3452 echo $ECHO_N "(cached) $ECHO_C" >&6
3454 if test -n "$RANLIB"; then
3455 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3457 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3461 test -z "$as_dir" && as_dir
=.
3462 for ac_exec_ext
in '' $ac_executable_extensions; do
3463 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3464 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3465 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3473 RANLIB
=$ac_cv_prog_RANLIB
3474 if test -n "$RANLIB"; then
3475 echo "$as_me:$LINENO: result: $RANLIB" >&5
3476 echo "${ECHO_T}$RANLIB" >&6
3478 echo "$as_me:$LINENO: result: no" >&5
3479 echo "${ECHO_T}no" >&6
3483 if test -z "$ac_cv_prog_RANLIB"; then
3484 ac_ct_RANLIB
=$RANLIB
3485 # Extract the first word of "ranlib", so it can be a program name with args.
3486 set dummy ranlib
; ac_word
=$2
3487 echo "$as_me:$LINENO: checking for $ac_word" >&5
3488 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3489 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3490 echo $ECHO_N "(cached) $ECHO_C" >&6
3492 if test -n "$ac_ct_RANLIB"; then
3493 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3495 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3499 test -z "$as_dir" && as_dir
=.
3500 for ac_exec_ext
in '' $ac_executable_extensions; do
3501 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3502 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3503 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3509 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
3512 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3513 if test -n "$ac_ct_RANLIB"; then
3514 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3515 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3517 echo "$as_me:$LINENO: result: no" >&5
3518 echo "${ECHO_T}no" >&6
3521 RANLIB
=$ac_ct_RANLIB
3523 RANLIB
="$ac_cv_prog_RANLIB"
3527 for ac_prog
in ar aal
3529 # Extract the first word of "$ac_prog", so it can be a program name with args.
3530 set dummy
$ac_prog; ac_word
=$2
3531 echo "$as_me:$LINENO: checking for $ac_word" >&5
3532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3533 if test "${ac_cv_prog_AR+set}" = set; then
3534 echo $ECHO_N "(cached) $ECHO_C" >&6
3536 if test -n "$AR"; then
3537 ac_cv_prog_AR
="$AR" # Let the user override the test.
3539 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3543 test -z "$as_dir" && as_dir
=.
3544 for ac_exec_ext
in '' $ac_executable_extensions; do
3545 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3546 ac_cv_prog_AR
="$ac_prog"
3547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3556 if test -n "$AR"; then
3557 echo "$as_me:$LINENO: result: $AR" >&5
3558 echo "${ECHO_T}$AR" >&6
3560 echo "$as_me:$LINENO: result: no" >&5
3561 echo "${ECHO_T}no" >&6
3564 test -n "$AR" && break
3566 test -n "$AR" || AR
="ar"
3571 # install -d does not work on BSDI or HP-UX
3572 if test -z "$INSTALL"
3574 INSTALL
="${srcdir}/install-sh -c"
3578 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
3579 if test -f $ac_dir/install-sh
; then
3581 ac_install_sh
="$ac_aux_dir/install-sh -c"
3583 elif test -f $ac_dir/install.sh
; then
3585 ac_install_sh
="$ac_aux_dir/install.sh -c"
3587 elif test -f $ac_dir/shtool
; then
3589 ac_install_sh
="$ac_aux_dir/shtool install -c"
3593 if test -z "$ac_aux_dir"; then
3594 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
3595 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
3596 { (exit 1); exit 1; }; }
3598 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
3599 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
3600 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3602 # Find a good install program. We prefer a C program (faster),
3603 # so one script is as good as another. But avoid the broken or
3604 # incompatible versions:
3605 # SysV /etc/install, /usr/sbin/install
3606 # SunOS /usr/etc/install
3607 # IRIX /sbin/install
3609 # AmigaOS /C/install, which installs bootblocks on floppy discs
3610 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3611 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3612 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3613 # OS/2's system install, which has a completely different semantic
3614 # ./install, which can be erroneously created by make from ./install.sh.
3615 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3616 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3617 if test -z "$INSTALL"; then
3618 if test "${ac_cv_path_install+set}" = set; then
3619 echo $ECHO_N "(cached) $ECHO_C" >&6
3621 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3625 test -z "$as_dir" && as_dir
=.
3626 # Account for people who put trailing slashes in PATH elements.
3628 .
/ | .
// |
/cC
/* | \
3629 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3630 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
3633 # OSF1 and SCO ODT 3.0 have their own names for install.
3634 # Don't use installbsd from OSF since it installs stuff as root
3636 for ac_prog
in ginstall scoinst
install; do
3637 for ac_exec_ext
in '' $ac_executable_extensions; do
3638 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3639 if test $ac_prog = install &&
3640 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3641 # AIX install. It has an incompatible calling convention.
3643 elif test $ac_prog = install &&
3644 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3645 # program-specific install script used by HP pwplus--don't use.
3648 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3660 if test "${ac_cv_path_install+set}" = set; then
3661 INSTALL
=$ac_cv_path_install
3663 # As a last resort, use the slow shell script. We don't cache a
3664 # path for INSTALL within a source directory, because that will
3665 # break other packages using the cache if that directory is
3666 # removed, or if the path is relative.
3667 INSTALL
=$ac_install_sh
3670 echo "$as_me:$LINENO: result: $INSTALL" >&5
3671 echo "${ECHO_T}$INSTALL" >&6
3673 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3674 # It thinks the first close brace ends the variable substitution.
3675 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3677 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3679 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3682 # Not every filesystem supports hard links
3684 if test -z "$LN" ; then
3685 case $ac_sys_system in
3687 CYGWIN
*) LN
="ln -s";;
3688 atheos
*) LN
="ln -s";;
3693 # Check for --with-pydebug
3694 echo "$as_me:$LINENO: checking for --with-pydebug" >&5
3695 echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6
3697 # Check whether --with-pydebug or --without-pydebug was given.
3698 if test "${with_pydebug+set}" = set; then
3699 withval
="$with_pydebug"
3701 if test "$withval" != no
3704 cat >>confdefs.h
<<\_ACEOF
3708 echo "$as_me:$LINENO: result: yes" >&5
3709 echo "${ECHO_T}yes" >&6;
3711 else echo "$as_me:$LINENO: result: no" >&5
3712 echo "${ECHO_T}no" >&6; Py_DEBUG
='false'
3715 echo "$as_me:$LINENO: result: no" >&5
3716 echo "${ECHO_T}no" >&6
3719 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
3720 # merged with this chunk of code?
3722 # Optimizer/debugger flags
3723 # ------------------------
3724 # (The following bit of code is complicated enough - please keep things
3725 # indented properly. Just pretend you're editing Python code. ;-)
3727 # There are two parallel sets of case statements below, one that checks to
3728 # see if OPT was set and one that does BASECFLAGS setting based upon
3729 # compiler and platform. BASECFLAGS tweaks need to be made even if the
3732 # tweak OPT based on compiler and platform, only if the user didn't set
3733 # it on the command line
3739 case $ac_cv_prog_cc_g in
3741 if test "$Py_DEBUG" = 'true' ; then
3742 # Optimization messes up debuggers, so turn it off for
3744 OPT
="-g -Wall -Wstrict-prototypes"
3746 OPT
="-g -O3 -Wall -Wstrict-prototypes"
3750 OPT
="-O3 -Wall -Wstrict-prototypes"
3753 case $ac_sys_system in
3754 SCO_SV
*) OPT
="$OPT -m486 -DSCO5"
3764 # The current (beta) Monterey compiler dies with optimizations
3765 # XXX what is Monterey? Does it still die w/ -O? Can we get rid of this?
3766 case $ac_sys_system in
3775 # tweak BASECFLAGS based on compiler and platform
3778 # Python violates C99 rules, by casting between incompatible
3779 # pointer types. GCC may generate bad code as a result of that,
3780 # so use -fno-strict-aliasing if supported.
3781 echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5
3782 echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6
3784 CC
="$CC -fno-strict-aliasing"
3785 if test "$cross_compiling" = yes; then
3786 ac_cv_no_strict_aliasing_ok
=no
3788 cat >conftest.
$ac_ext <<_ACEOF
3791 cat confdefs.h
>>conftest.
$ac_ext
3792 cat >>conftest.
$ac_ext <<_ACEOF
3793 /* end confdefs.h. */
3794 int main() { return 0; }
3796 rm -f conftest
$ac_exeext
3797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3798 (eval $ac_link) 2>&5
3800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3806 (exit $ac_status); }; }; then
3807 ac_cv_no_strict_aliasing_ok
=yes
3809 echo "$as_me: program exited with status $ac_status" >&5
3810 echo "$as_me: failed program was:" >&5
3811 sed 's/^/| /' conftest.
$ac_ext >&5
3814 ac_cv_no_strict_aliasing_ok
=no
3816 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3819 echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5
3820 echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6
3821 if test $ac_cv_no_strict_aliasing_ok = yes
3823 BASECFLAGS
="$BASECFLAGS -fno-strict-aliasing"
3825 case $ac_sys_system in
3827 BASECFLAGS
="$BASECFLAGS -m486 -DSCO5"
3829 # is there any other compiler on Darwin besides gcc?
3831 BASECFLAGS
="$BASECFLAGS -Wno-long-double -no-cpp-precomp -mno-fused-madd"
3837 case $ac_sys_system in
3838 OpenUNIX
*|UnixWare
*)
3839 BASECFLAGS
="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
3842 BASECFLAGS
="$BASECFLAGS -ieee -std"
3845 BASECFLAGS
="$BASECFLAGS -belf -Ki486 -DSCO5"
3851 if test "$Py_DEBUG" = 'true'; then
3857 if test "$ac_arch_flags"
3859 BASECFLAGS
="$BASECFLAGS $ac_arch_flags"
3862 echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
3863 echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6
3864 if test "${ac_cv_opt_olimit_ok+set}" = set; then
3865 echo $ECHO_N "(cached) $ECHO_C" >&6
3868 CC
="$CC -OPT:Olimit=0"
3869 if test "$cross_compiling" = yes; then
3870 ac_cv_opt_olimit_ok
=no
3872 cat >conftest.
$ac_ext <<_ACEOF
3875 cat confdefs.h
>>conftest.
$ac_ext
3876 cat >>conftest.
$ac_ext <<_ACEOF
3877 /* end confdefs.h. */
3878 int main() { return 0; }
3880 rm -f conftest
$ac_exeext
3881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3882 (eval $ac_link) 2>&5
3884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3885 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3890 (exit $ac_status); }; }; then
3891 ac_cv_opt_olimit_ok
=yes
3893 echo "$as_me: program exited with status $ac_status" >&5
3894 echo "$as_me: failed program was:" >&5
3895 sed 's/^/| /' conftest.
$ac_ext >&5
3898 ac_cv_opt_olimit_ok
=no
3900 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3905 echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
3906 echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6
3907 if test $ac_cv_opt_olimit_ok = yes; then
3908 case $ac_sys_system in
3909 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
3910 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
3915 BASECFLAGS
="$BASECFLAGS -OPT:Olimit=0"
3919 echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
3920 echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6
3921 if test "${ac_cv_olimit_ok+set}" = set; then
3922 echo $ECHO_N "(cached) $ECHO_C" >&6
3925 CC
="$CC -Olimit 1500"
3926 if test "$cross_compiling" = yes; then
3929 cat >conftest.
$ac_ext <<_ACEOF
3932 cat confdefs.h
>>conftest.
$ac_ext
3933 cat >>conftest.
$ac_ext <<_ACEOF
3934 /* end confdefs.h. */
3935 int main() { return 0; }
3937 rm -f conftest
$ac_exeext
3938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3939 (eval $ac_link) 2>&5
3941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3942 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3947 (exit $ac_status); }; }; then
3950 echo "$as_me: program exited with status $ac_status" >&5
3951 echo "$as_me: failed program was:" >&5
3952 sed 's/^/| /' conftest.
$ac_ext >&5
3957 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3962 echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
3963 echo "${ECHO_T}$ac_cv_olimit_ok" >&6
3964 if test $ac_cv_olimit_ok = yes; then
3965 BASECFLAGS
="$BASECFLAGS -Olimit 1500"
3969 # On some compilers, pthreads are available without further options
3970 # (e.g. MacOS X). On some of these systems, the compiler will not
3971 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
3972 # So we have to see first whether pthreads are available without
3973 # options before we can check whether -Kpthread improves anything.
3974 echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
3975 echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6
3976 if test "${ac_cv_pthread_is_default+set}" = set; then
3977 echo $ECHO_N "(cached) $ECHO_C" >&6
3979 if test "$cross_compiling" = yes; then
3980 ac_cv_pthread_is_default
=no
3982 cat >conftest.
$ac_ext <<_ACEOF
3985 cat confdefs.h
>>conftest.
$ac_ext
3986 cat >>conftest.
$ac_ext <<_ACEOF
3987 /* end confdefs.h. */
3989 #include <pthread.h>
3991 void* routine(void* p){return NULL;}
3995 if(pthread_create(&p,NULL,routine,NULL)!=0)
3997 (void)pthread_detach(p);
4002 rm -f conftest
$ac_exeext
4003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4004 (eval $ac_link) 2>&5
4006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4007 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012 (exit $ac_status); }; }; then
4014 ac_cv_pthread_is_default
=yes
4019 echo "$as_me: program exited with status $ac_status" >&5
4020 echo "$as_me: failed program was:" >&5
4021 sed 's/^/| /' conftest.
$ac_ext >&5
4024 ac_cv_pthread_is_default
=no
4026 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4031 echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
4032 echo "${ECHO_T}$ac_cv_pthread_is_default" >&6
4035 if test $ac_cv_pthread_is_default = yes
4039 # -Kpthread, if available, provides the right #defines
4040 # and linker options to make pthread_create available
4041 # Some compilers won't report that they do not support -Kpthread,
4042 # so we need to run a program to see whether it really made the
4043 # function available.
4044 echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
4045 echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6
4046 if test "${ac_cv_kpthread+set}" = set; then
4047 echo $ECHO_N "(cached) $ECHO_C" >&6
4051 if test "$cross_compiling" = yes; then
4054 cat >conftest.
$ac_ext <<_ACEOF
4057 cat confdefs.h
>>conftest.
$ac_ext
4058 cat >>conftest.
$ac_ext <<_ACEOF
4059 /* end confdefs.h. */
4061 #include <pthread.h>
4063 void* routine(void* p){return NULL;}
4067 if(pthread_create(&p,NULL,routine,NULL)!=0)
4069 (void)pthread_detach(p);
4074 rm -f conftest
$ac_exeext
4075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4076 (eval $ac_link) 2>&5
4078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4084 (exit $ac_status); }; }; then
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
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_kpthread" >&5
4100 echo "${ECHO_T}$ac_cv_kpthread" >&6
4103 if test $ac_cv_kpthread = no
-a $ac_cv_pthread_is_default = no
4105 # -Kthread, if available, provides the right #defines
4106 # and linker options to make pthread_create available
4107 # Some compilers won't report that they do not support -Kthread,
4108 # so we need to run a program to see whether it really made the
4109 # function available.
4110 echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
4111 echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6
4112 if test "${ac_cv_kthread+set}" = set; then
4113 echo $ECHO_N "(cached) $ECHO_C" >&6
4117 if test "$cross_compiling" = yes; then
4120 cat >conftest.
$ac_ext <<_ACEOF
4123 cat confdefs.h
>>conftest.
$ac_ext
4124 cat >>conftest.
$ac_ext <<_ACEOF
4125 /* end confdefs.h. */
4127 #include <pthread.h>
4129 void* routine(void* p){return NULL;}
4133 if(pthread_create(&p,NULL,routine,NULL)!=0)
4135 (void)pthread_detach(p);
4140 rm -f conftest
$ac_exeext
4141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4142 (eval $ac_link) 2>&5
4144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4145 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4150 (exit $ac_status); }; }; then
4153 echo "$as_me: program exited with status $ac_status" >&5
4154 echo "$as_me: failed program was:" >&5
4155 sed 's/^/| /' conftest.
$ac_ext >&5
4160 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4165 echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
4166 echo "${ECHO_T}$ac_cv_kthread" >&6
4169 if test $ac_cv_kthread = no
-a $ac_cv_pthread_is_default = no
4171 # -pthread, if available, provides the right #defines
4172 # and linker options to make pthread_create available
4173 # Some compilers won't report that they do not support -pthread,
4174 # so we need to run a program to see whether it really made the
4175 # function available.
4176 echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
4177 echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6
4178 if test "${ac_cv_thread+set}" = set; then
4179 echo $ECHO_N "(cached) $ECHO_C" >&6
4183 if test "$cross_compiling" = yes; then
4186 cat >conftest.
$ac_ext <<_ACEOF
4189 cat confdefs.h
>>conftest.
$ac_ext
4190 cat >>conftest.
$ac_ext <<_ACEOF
4191 /* end confdefs.h. */
4193 #include <pthread.h>
4195 void* routine(void* p){return NULL;}
4199 if(pthread_create(&p,NULL,routine,NULL)!=0)
4201 (void)pthread_detach(p);
4206 rm -f conftest
$ac_exeext
4207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4208 (eval $ac_link) 2>&5
4210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4211 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4216 (exit $ac_status); }; }; then
4219 echo "$as_me: program exited with status $ac_status" >&5
4220 echo "$as_me: failed program was:" >&5
4221 sed 's/^/| /' conftest.
$ac_ext >&5
4226 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4231 echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
4232 echo "${ECHO_T}$ac_cv_pthread" >&6
4235 # If we have set a CC compiler flag for thread support then
4236 # check if it works for CXX, too.
4240 echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5
4241 echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6
4244 if test "$ac_cv_kpthread" = "yes"
4246 CXX
="$CXX -Kpthread"
4247 ac_cv_cxx_thread
=yes
4248 elif test "$ac_cv_kthread" = "yes"
4251 ac_cv_cxx_thread
=yes
4252 elif test "$ac_cv_pthread" = "yes"
4255 ac_cv_cxx_thread
=yes
4258 if test $ac_cv_cxx_thread = yes
4260 echo 'void foo();int main(){foo();}void foo(){}' > conftest.
$ac_ext
4261 $CXX -c conftest.
$ac_ext 2>&5
4262 if $CXX -o conftest
$ac_exeext conftest.
$ac_objext 2>&5 \
4263 && test -s conftest
$ac_exeext && .
/conftest
$ac_exeext
4265 ac_cv_cxx_thread
=yes
4271 echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
4272 echo "${ECHO_T}$ac_cv_cxx_thread" >&6
4277 # checks for header files
4278 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4279 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4280 if test "${ac_cv_header_stdc+set}" = set; then
4281 echo $ECHO_N "(cached) $ECHO_C" >&6
4283 cat >conftest.
$ac_ext <<_ACEOF
4286 cat confdefs.h
>>conftest.
$ac_ext
4287 cat >>conftest.
$ac_ext <<_ACEOF
4288 /* end confdefs.h. */
4302 rm -f conftest.
$ac_objext
4303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4304 (eval $ac_compile) 2>conftest.er1
4306 grep -v '^ *+' conftest.er1
>conftest.err
4308 cat conftest.err
>&5
4309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4310 (exit $ac_status); } &&
4311 { ac_try
='test -z "$ac_c_werror_flag"
4312 || test ! -s conftest.err'
4313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4317 (exit $ac_status); }; } &&
4318 { ac_try
='test -s conftest.$ac_objext'
4319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323 (exit $ac_status); }; }; then
4324 ac_cv_header_stdc
=yes
4326 echo "$as_me: failed program was:" >&5
4327 sed 's/^/| /' conftest.
$ac_ext >&5
4329 ac_cv_header_stdc
=no
4331 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4333 if test $ac_cv_header_stdc = yes; then
4334 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4335 cat >conftest.
$ac_ext <<_ACEOF
4338 cat confdefs.h
>>conftest.
$ac_ext
4339 cat >>conftest.
$ac_ext <<_ACEOF
4340 /* end confdefs.h. */
4344 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4345 $EGREP "memchr" >/dev
/null
2>&1; then
4348 ac_cv_header_stdc
=no
4354 if test $ac_cv_header_stdc = yes; then
4355 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4356 cat >conftest.
$ac_ext <<_ACEOF
4359 cat confdefs.h
>>conftest.
$ac_ext
4360 cat >>conftest.
$ac_ext <<_ACEOF
4361 /* end confdefs.h. */
4365 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4366 $EGREP "free" >/dev
/null
2>&1; then
4369 ac_cv_header_stdc
=no
4375 if test $ac_cv_header_stdc = yes; then
4376 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4377 if test "$cross_compiling" = yes; then
4380 cat >conftest.
$ac_ext <<_ACEOF
4383 cat confdefs.h
>>conftest.
$ac_ext
4384 cat >>conftest.
$ac_ext <<_ACEOF
4385 /* end confdefs.h. */
4387 #if ((' ' & 0x0FF) == 0x020)
4388 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4389 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4391 # define ISLOWER(c) \
4392 (('a' <= (c) && (c) <= 'i') \
4393 || ('j' <= (c) && (c) <= 'r') \
4394 || ('s' <= (c) && (c) <= 'z'))
4395 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4398 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4403 for (i = 0; i < 256; i++)
4404 if (XOR (islower (i), ISLOWER (i))
4405 || toupper (i) != TOUPPER (i))
4410 rm -f conftest
$ac_exeext
4411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4412 (eval $ac_link) 2>&5
4414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4415 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4420 (exit $ac_status); }; }; then
4423 echo "$as_me: program exited with status $ac_status" >&5
4424 echo "$as_me: failed program was:" >&5
4425 sed 's/^/| /' conftest.
$ac_ext >&5
4428 ac_cv_header_stdc
=no
4430 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4434 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4435 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4436 if test $ac_cv_header_stdc = yes; then
4438 cat >>confdefs.h
<<\_ACEOF
4439 #define STDC_HEADERS 1
4444 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4454 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4455 inttypes.h stdint.h unistd.h
4457 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4458 echo "$as_me:$LINENO: checking for $ac_header" >&5
4459 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4460 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4461 echo $ECHO_N "(cached) $ECHO_C" >&6
4463 cat >conftest.
$ac_ext <<_ACEOF
4466 cat confdefs.h
>>conftest.
$ac_ext
4467 cat >>conftest.
$ac_ext <<_ACEOF
4468 /* end confdefs.h. */
4469 $ac_includes_default
4471 #include <$ac_header>
4473 rm -f conftest.
$ac_objext
4474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4475 (eval $ac_compile) 2>conftest.er1
4477 grep -v '^ *+' conftest.er1
>conftest.err
4479 cat conftest.err
>&5
4480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4481 (exit $ac_status); } &&
4482 { ac_try
='test -z "$ac_c_werror_flag"
4483 || test ! -s conftest.err'
4484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488 (exit $ac_status); }; } &&
4489 { ac_try
='test -s conftest.$ac_objext'
4490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494 (exit $ac_status); }; }; then
4495 eval "$as_ac_Header=yes"
4497 echo "$as_me: failed program was:" >&5
4498 sed 's/^/| /' conftest.
$ac_ext >&5
4500 eval "$as_ac_Header=no"
4502 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4504 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4505 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4506 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4507 cat >>confdefs.h
<<_ACEOF
4508 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4554 for ac_header
in curses.h dlfcn.h fcntl.h grp.h shadow.h langinfo.h \
4555 libintl.h ncurses.h poll.h pthread.h \
4556 stropts.h termios.h thread.h \
4558 sys
/audioio.h sys
/bsdtty.h sys
/file.h sys
/loadavg.h sys
/lock.h sys
/mkdev.h \
4560 sys
/param.h sys
/poll.h sys
/select.h sys
/socket.h sys
/time.h sys
/times.h \
4561 sys
/un.h sys
/utsname.h sys
/wait.h pty.h libutil.h \
4562 sys
/resource.h netpacket
/packet.h sysexits.h bluetooth.h \
4563 bluetooth
/bluetooth.h
4565 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4566 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4567 echo "$as_me:$LINENO: checking for $ac_header" >&5
4568 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4569 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4570 echo $ECHO_N "(cached) $ECHO_C" >&6
4572 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4573 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4575 # Is the header compilable?
4576 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4577 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4578 cat >conftest.
$ac_ext <<_ACEOF
4581 cat confdefs.h
>>conftest.
$ac_ext
4582 cat >>conftest.
$ac_ext <<_ACEOF
4583 /* end confdefs.h. */
4584 $ac_includes_default
4585 #include <$ac_header>
4587 rm -f conftest.
$ac_objext
4588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4589 (eval $ac_compile) 2>conftest.er1
4591 grep -v '^ *+' conftest.er1
>conftest.err
4593 cat conftest.err
>&5
4594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4595 (exit $ac_status); } &&
4596 { ac_try
='test -z "$ac_c_werror_flag"
4597 || test ! -s conftest.err'
4598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4602 (exit $ac_status); }; } &&
4603 { ac_try
='test -s conftest.$ac_objext'
4604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608 (exit $ac_status); }; }; then
4609 ac_header_compiler
=yes
4611 echo "$as_me: failed program was:" >&5
4612 sed 's/^/| /' conftest.
$ac_ext >&5
4614 ac_header_compiler
=no
4616 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4617 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4618 echo "${ECHO_T}$ac_header_compiler" >&6
4620 # Is the header present?
4621 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4622 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4623 cat >conftest.
$ac_ext <<_ACEOF
4626 cat confdefs.h
>>conftest.
$ac_ext
4627 cat >>conftest.
$ac_ext <<_ACEOF
4628 /* end confdefs.h. */
4629 #include <$ac_header>
4631 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4632 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4634 grep -v '^ *+' conftest.er1
>conftest.err
4636 cat conftest.err
>&5
4637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4638 (exit $ac_status); } >/dev
/null
; then
4639 if test -s conftest.err
; then
4640 ac_cpp_err
=$ac_c_preproc_warn_flag
4641 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4648 if test -z "$ac_cpp_err"; then
4649 ac_header_preproc
=yes
4651 echo "$as_me: failed program was:" >&5
4652 sed 's/^/| /' conftest.
$ac_ext >&5
4654 ac_header_preproc
=no
4656 rm -f conftest.err conftest.
$ac_ext
4657 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4658 echo "${ECHO_T}$ac_header_preproc" >&6
4660 # So? What about this header?
4661 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4663 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4664 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4665 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4666 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4667 ac_header_preproc
=yes
4670 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4671 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4672 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4673 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4674 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4675 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4676 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4677 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4678 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4679 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4680 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4681 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4684 ## ------------------------------------------------ ##
4685 ## Report this to http://www.python.org/python-bugs ##
4686 ## ------------------------------------------------ ##
4689 sed "s/^/$as_me: WARNING: /" >&2
4692 echo "$as_me:$LINENO: checking for $ac_header" >&5
4693 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4694 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4695 echo $ECHO_N "(cached) $ECHO_C" >&6
4697 eval "$as_ac_Header=\$ac_header_preproc"
4699 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4700 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4703 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4704 cat >>confdefs.h
<<_ACEOF
4705 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4718 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
4719 as_ac_Header
=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4720 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4721 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
4722 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4723 echo $ECHO_N "(cached) $ECHO_C" >&6
4725 cat >conftest.
$ac_ext <<_ACEOF
4728 cat confdefs.h
>>conftest.
$ac_ext
4729 cat >>conftest.
$ac_ext <<_ACEOF
4730 /* end confdefs.h. */
4731 #include <sys/types.h>
4743 rm -f conftest.
$ac_objext
4744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4745 (eval $ac_compile) 2>conftest.er1
4747 grep -v '^ *+' conftest.er1
>conftest.err
4749 cat conftest.err
>&5
4750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4751 (exit $ac_status); } &&
4752 { ac_try
='test -z "$ac_c_werror_flag"
4753 || test ! -s conftest.err'
4754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758 (exit $ac_status); }; } &&
4759 { ac_try
='test -s conftest.$ac_objext'
4760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4764 (exit $ac_status); }; }; then
4765 eval "$as_ac_Header=yes"
4767 echo "$as_me: failed program was:" >&5
4768 sed 's/^/| /' conftest.
$ac_ext >&5
4770 eval "$as_ac_Header=no"
4772 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4774 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4775 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4776 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4777 cat >>confdefs.h
<<_ACEOF
4778 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4781 ac_header_dirent
=$ac_hdr; break
4785 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4786 if test $ac_header_dirent = dirent.h
; then
4787 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4788 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4789 if test "${ac_cv_search_opendir+set}" = set; then
4790 echo $ECHO_N "(cached) $ECHO_C" >&6
4792 ac_func_search_save_LIBS
=$LIBS
4793 ac_cv_search_opendir
=no
4794 cat >conftest.
$ac_ext <<_ACEOF
4797 cat confdefs.h
>>conftest.
$ac_ext
4798 cat >>conftest.
$ac_ext <<_ACEOF
4799 /* end confdefs.h. */
4801 /* Override any gcc2 internal prototype to avoid an error. */
4805 /* We use char because int might match the return type of a gcc2
4806 builtin and then its argument prototype would still apply. */
4816 rm -f conftest.
$ac_objext conftest
$ac_exeext
4817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4818 (eval $ac_link) 2>conftest.er1
4820 grep -v '^ *+' conftest.er1
>conftest.err
4822 cat conftest.err
>&5
4823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4824 (exit $ac_status); } &&
4825 { ac_try
='test -z "$ac_c_werror_flag"
4826 || test ! -s conftest.err'
4827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4831 (exit $ac_status); }; } &&
4832 { ac_try
='test -s conftest$ac_exeext'
4833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4837 (exit $ac_status); }; }; then
4838 ac_cv_search_opendir
="none required"
4840 echo "$as_me: failed program was:" >&5
4841 sed 's/^/| /' conftest.
$ac_ext >&5
4844 rm -f conftest.err conftest.
$ac_objext \
4845 conftest
$ac_exeext conftest.
$ac_ext
4846 if test "$ac_cv_search_opendir" = no
; then
4847 for ac_lib
in dir
; do
4848 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4849 cat >conftest.
$ac_ext <<_ACEOF
4852 cat confdefs.h
>>conftest.
$ac_ext
4853 cat >>conftest.
$ac_ext <<_ACEOF
4854 /* end confdefs.h. */
4856 /* Override any gcc2 internal prototype to avoid an error. */
4860 /* We use char because int might match the return type of a gcc2
4861 builtin and then its argument prototype would still apply. */
4871 rm -f conftest.
$ac_objext conftest
$ac_exeext
4872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4873 (eval $ac_link) 2>conftest.er1
4875 grep -v '^ *+' conftest.er1
>conftest.err
4877 cat conftest.err
>&5
4878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4879 (exit $ac_status); } &&
4880 { ac_try
='test -z "$ac_c_werror_flag"
4881 || test ! -s conftest.err'
4882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4886 (exit $ac_status); }; } &&
4887 { ac_try
='test -s conftest$ac_exeext'
4888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892 (exit $ac_status); }; }; then
4893 ac_cv_search_opendir
="-l$ac_lib"
4896 echo "$as_me: failed program was:" >&5
4897 sed 's/^/| /' conftest.
$ac_ext >&5
4900 rm -f conftest.err conftest.
$ac_objext \
4901 conftest
$ac_exeext conftest.
$ac_ext
4904 LIBS
=$ac_func_search_save_LIBS
4906 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4907 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4908 if test "$ac_cv_search_opendir" != no
; then
4909 test "$ac_cv_search_opendir" = "none required" || LIBS
="$ac_cv_search_opendir $LIBS"
4914 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4915 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4916 if test "${ac_cv_search_opendir+set}" = set; then
4917 echo $ECHO_N "(cached) $ECHO_C" >&6
4919 ac_func_search_save_LIBS
=$LIBS
4920 ac_cv_search_opendir
=no
4921 cat >conftest.
$ac_ext <<_ACEOF
4924 cat confdefs.h
>>conftest.
$ac_ext
4925 cat >>conftest.
$ac_ext <<_ACEOF
4926 /* end confdefs.h. */
4928 /* Override any gcc2 internal prototype to avoid an error. */
4932 /* We use char because int might match the return type of a gcc2
4933 builtin and then its argument prototype would still apply. */
4943 rm -f conftest.
$ac_objext conftest
$ac_exeext
4944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4945 (eval $ac_link) 2>conftest.er1
4947 grep -v '^ *+' conftest.er1
>conftest.err
4949 cat conftest.err
>&5
4950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4951 (exit $ac_status); } &&
4952 { ac_try
='test -z "$ac_c_werror_flag"
4953 || test ! -s conftest.err'
4954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4958 (exit $ac_status); }; } &&
4959 { ac_try
='test -s conftest$ac_exeext'
4960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964 (exit $ac_status); }; }; then
4965 ac_cv_search_opendir
="none required"
4967 echo "$as_me: failed program was:" >&5
4968 sed 's/^/| /' conftest.
$ac_ext >&5
4971 rm -f conftest.err conftest.
$ac_objext \
4972 conftest
$ac_exeext conftest.
$ac_ext
4973 if test "$ac_cv_search_opendir" = no
; then
4975 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4976 cat >conftest.
$ac_ext <<_ACEOF
4979 cat confdefs.h
>>conftest.
$ac_ext
4980 cat >>conftest.
$ac_ext <<_ACEOF
4981 /* end confdefs.h. */
4983 /* Override any gcc2 internal prototype to avoid an error. */
4987 /* We use char because int might match the return type of a gcc2
4988 builtin and then its argument prototype would still apply. */
4998 rm -f conftest.
$ac_objext conftest
$ac_exeext
4999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5000 (eval $ac_link) 2>conftest.er1
5002 grep -v '^ *+' conftest.er1
>conftest.err
5004 cat conftest.err
>&5
5005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5006 (exit $ac_status); } &&
5007 { ac_try
='test -z "$ac_c_werror_flag"
5008 || test ! -s conftest.err'
5009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5013 (exit $ac_status); }; } &&
5014 { ac_try
='test -s conftest$ac_exeext'
5015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5019 (exit $ac_status); }; }; then
5020 ac_cv_search_opendir
="-l$ac_lib"
5023 echo "$as_me: failed program was:" >&5
5024 sed 's/^/| /' conftest.
$ac_ext >&5
5027 rm -f conftest.err conftest.
$ac_objext \
5028 conftest
$ac_exeext conftest.
$ac_ext
5031 LIBS
=$ac_func_search_save_LIBS
5033 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5034 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5035 if test "$ac_cv_search_opendir" != no
; then
5036 test "$ac_cv_search_opendir" = "none required" || LIBS
="$ac_cv_search_opendir $LIBS"
5042 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
5043 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
5044 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
5045 echo $ECHO_N "(cached) $ECHO_C" >&6
5047 cat >conftest.
$ac_ext <<_ACEOF
5050 cat confdefs.h
>>conftest.
$ac_ext
5051 cat >>conftest.
$ac_ext <<_ACEOF
5052 /* end confdefs.h. */
5053 #include <sys/types.h>
5057 return makedev(0, 0);
5062 rm -f conftest.
$ac_objext conftest
$ac_exeext
5063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5064 (eval $ac_link) 2>conftest.er1
5066 grep -v '^ *+' conftest.er1
>conftest.err
5068 cat conftest.err
>&5
5069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5070 (exit $ac_status); } &&
5071 { ac_try
='test -z "$ac_c_werror_flag"
5072 || test ! -s conftest.err'
5073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5077 (exit $ac_status); }; } &&
5078 { ac_try
='test -s conftest$ac_exeext'
5079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5083 (exit $ac_status); }; }; then
5084 ac_cv_header_sys_types_h_makedev
=yes
5086 echo "$as_me: failed program was:" >&5
5087 sed 's/^/| /' conftest.
$ac_ext >&5
5089 ac_cv_header_sys_types_h_makedev
=no
5091 rm -f conftest.err conftest.
$ac_objext \
5092 conftest
$ac_exeext conftest.
$ac_ext
5095 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
5096 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
5098 if test $ac_cv_header_sys_types_h_makedev = no
; then
5099 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5100 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
5101 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
5102 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5103 echo $ECHO_N "(cached) $ECHO_C" >&6
5105 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
5106 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
5108 # Is the header compilable?
5109 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
5110 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
5111 cat >conftest.
$ac_ext <<_ACEOF
5114 cat confdefs.h
>>conftest.
$ac_ext
5115 cat >>conftest.
$ac_ext <<_ACEOF
5116 /* end confdefs.h. */
5117 $ac_includes_default
5118 #include <sys/mkdev.h>
5120 rm -f conftest.
$ac_objext
5121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5122 (eval $ac_compile) 2>conftest.er1
5124 grep -v '^ *+' conftest.er1
>conftest.err
5126 cat conftest.err
>&5
5127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5128 (exit $ac_status); } &&
5129 { ac_try
='test -z "$ac_c_werror_flag"
5130 || test ! -s conftest.err'
5131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5135 (exit $ac_status); }; } &&
5136 { ac_try
='test -s conftest.$ac_objext'
5137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141 (exit $ac_status); }; }; then
5142 ac_header_compiler
=yes
5144 echo "$as_me: failed program was:" >&5
5145 sed 's/^/| /' conftest.
$ac_ext >&5
5147 ac_header_compiler
=no
5149 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5150 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5151 echo "${ECHO_T}$ac_header_compiler" >&6
5153 # Is the header present?
5154 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
5155 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
5156 cat >conftest.
$ac_ext <<_ACEOF
5159 cat confdefs.h
>>conftest.
$ac_ext
5160 cat >>conftest.
$ac_ext <<_ACEOF
5161 /* end confdefs.h. */
5162 #include <sys/mkdev.h>
5164 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5165 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5167 grep -v '^ *+' conftest.er1
>conftest.err
5169 cat conftest.err
>&5
5170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5171 (exit $ac_status); } >/dev
/null
; then
5172 if test -s conftest.err
; then
5173 ac_cpp_err
=$ac_c_preproc_warn_flag
5174 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5181 if test -z "$ac_cpp_err"; then
5182 ac_header_preproc
=yes
5184 echo "$as_me: failed program was:" >&5
5185 sed 's/^/| /' conftest.
$ac_ext >&5
5187 ac_header_preproc
=no
5189 rm -f conftest.err conftest.
$ac_ext
5190 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5191 echo "${ECHO_T}$ac_header_preproc" >&6
5193 # So? What about this header?
5194 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5196 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
5197 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5198 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
5199 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
5200 ac_header_preproc
=yes
5203 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
5204 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
5205 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
5206 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
5207 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
5208 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
5209 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
5210 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
5211 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
5212 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
5213 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
5214 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
5217 ## ------------------------------------------------ ##
5218 ## Report this to http://www.python.org/python-bugs ##
5219 ## ------------------------------------------------ ##
5222 sed "s/^/$as_me: WARNING: /" >&2
5225 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
5226 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
5227 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5228 echo $ECHO_N "(cached) $ECHO_C" >&6
5230 ac_cv_header_sys_mkdev_h
=$ac_header_preproc
5232 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
5233 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
5236 if test $ac_cv_header_sys_mkdev_h = yes; then
5238 cat >>confdefs.h
<<\_ACEOF
5239 #define MAJOR_IN_MKDEV 1
5246 if test $ac_cv_header_sys_mkdev_h = no
; then
5247 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5248 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
5249 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
5250 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5251 echo $ECHO_N "(cached) $ECHO_C" >&6
5253 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
5254 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
5256 # Is the header compilable?
5257 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
5258 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
5259 cat >conftest.
$ac_ext <<_ACEOF
5262 cat confdefs.h
>>conftest.
$ac_ext
5263 cat >>conftest.
$ac_ext <<_ACEOF
5264 /* end confdefs.h. */
5265 $ac_includes_default
5266 #include <sys/sysmacros.h>
5268 rm -f conftest.
$ac_objext
5269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5270 (eval $ac_compile) 2>conftest.er1
5272 grep -v '^ *+' conftest.er1
>conftest.err
5274 cat conftest.err
>&5
5275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5276 (exit $ac_status); } &&
5277 { ac_try
='test -z "$ac_c_werror_flag"
5278 || test ! -s conftest.err'
5279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5283 (exit $ac_status); }; } &&
5284 { ac_try
='test -s conftest.$ac_objext'
5285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5289 (exit $ac_status); }; }; then
5290 ac_header_compiler
=yes
5292 echo "$as_me: failed program was:" >&5
5293 sed 's/^/| /' conftest.
$ac_ext >&5
5295 ac_header_compiler
=no
5297 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5298 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5299 echo "${ECHO_T}$ac_header_compiler" >&6
5301 # Is the header present?
5302 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
5303 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
5304 cat >conftest.
$ac_ext <<_ACEOF
5307 cat confdefs.h
>>conftest.
$ac_ext
5308 cat >>conftest.
$ac_ext <<_ACEOF
5309 /* end confdefs.h. */
5310 #include <sys/sysmacros.h>
5312 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5313 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5315 grep -v '^ *+' conftest.er1
>conftest.err
5317 cat conftest.err
>&5
5318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319 (exit $ac_status); } >/dev
/null
; then
5320 if test -s conftest.err
; then
5321 ac_cpp_err
=$ac_c_preproc_warn_flag
5322 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5329 if test -z "$ac_cpp_err"; then
5330 ac_header_preproc
=yes
5332 echo "$as_me: failed program was:" >&5
5333 sed 's/^/| /' conftest.
$ac_ext >&5
5335 ac_header_preproc
=no
5337 rm -f conftest.err conftest.
$ac_ext
5338 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5339 echo "${ECHO_T}$ac_header_preproc" >&6
5341 # So? What about this header?
5342 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5344 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
5345 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5346 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
5347 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
5348 ac_header_preproc
=yes
5351 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
5352 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
5353 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
5354 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
5355 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
5356 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
5357 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
5358 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
5359 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
5360 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
5361 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
5362 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
5365 ## ------------------------------------------------ ##
5366 ## Report this to http://www.python.org/python-bugs ##
5367 ## ------------------------------------------------ ##
5370 sed "s/^/$as_me: WARNING: /" >&2
5373 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
5374 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
5375 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5376 echo $ECHO_N "(cached) $ECHO_C" >&6
5378 ac_cv_header_sys_sysmacros_h
=$ac_header_preproc
5380 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
5381 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
5384 if test $ac_cv_header_sys_sysmacros_h = yes; then
5386 cat >>confdefs.h
<<\_ACEOF
5387 #define MAJOR_IN_SYSMACROS 1
5397 # On Solaris, term.h requires curses.h
5399 for ac_header
in term.h
5401 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5402 echo "$as_me:$LINENO: checking for $ac_header" >&5
5403 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5404 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5405 echo $ECHO_N "(cached) $ECHO_C" >&6
5407 cat >conftest.
$ac_ext <<_ACEOF
5410 cat confdefs.h
>>conftest.
$ac_ext
5411 cat >>conftest.
$ac_ext <<_ACEOF
5412 /* end confdefs.h. */
5414 #ifdef HAVE_CURSES_H
5419 #include <$ac_header>
5421 rm -f conftest.
$ac_objext
5422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5423 (eval $ac_compile) 2>conftest.er1
5425 grep -v '^ *+' conftest.er1
>conftest.err
5427 cat conftest.err
>&5
5428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5429 (exit $ac_status); } &&
5430 { ac_try
='test -z "$ac_c_werror_flag"
5431 || test ! -s conftest.err'
5432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5436 (exit $ac_status); }; } &&
5437 { ac_try
='test -s conftest.$ac_objext'
5438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5442 (exit $ac_status); }; }; then
5443 eval "$as_ac_Header=yes"
5445 echo "$as_me: failed program was:" >&5
5446 sed 's/^/| /' conftest.
$ac_ext >&5
5448 eval "$as_ac_Header=no"
5450 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5452 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5453 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5454 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5455 cat >>confdefs.h
<<_ACEOF
5456 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5464 # checks for typedefs
5466 echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
5467 echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6
5468 cat >conftest.
$ac_ext <<_ACEOF
5471 cat confdefs.h
>>conftest.
$ac_ext
5472 cat >>conftest.
$ac_ext <<_ACEOF
5473 /* end confdefs.h. */
5477 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5478 $EGREP "clock_t" >/dev
/null
2>&1; then
5483 cat >>confdefs.h
<<\_ACEOF
5484 #define clock_t long
5491 echo "$as_me:$LINENO: result: $was_it_defined" >&5
5492 echo "${ECHO_T}$was_it_defined" >&6
5494 # Check whether using makedev requires defining _OSF_SOURCE
5495 echo "$as_me:$LINENO: checking for makedev" >&5
5496 echo $ECHO_N "checking for makedev... $ECHO_C" >&6
5497 cat >conftest.
$ac_ext <<_ACEOF
5500 cat confdefs.h
>>conftest.
$ac_ext
5501 cat >>conftest.
$ac_ext <<_ACEOF
5502 /* end confdefs.h. */
5503 #include <sys/types.h>
5512 rm -f conftest.
$ac_objext conftest
$ac_exeext
5513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5514 (eval $ac_link) 2>conftest.er1
5516 grep -v '^ *+' conftest.er1
>conftest.err
5518 cat conftest.err
>&5
5519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5520 (exit $ac_status); } &&
5521 { ac_try
='test -z "$ac_c_werror_flag"
5522 || test ! -s conftest.err'
5523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5527 (exit $ac_status); }; } &&
5528 { ac_try
='test -s conftest$ac_exeext'
5529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5533 (exit $ac_status); }; }; then
5534 ac_cv_has_makedev
=yes
5536 echo "$as_me: failed program was:" >&5
5537 sed 's/^/| /' conftest.
$ac_ext >&5
5539 ac_cv_has_makedev
=no
5541 rm -f conftest.err conftest.
$ac_objext \
5542 conftest
$ac_exeext conftest.
$ac_ext
5543 if test "$ac_cv_has_makedev" = "no"; then
5544 # we didn't link, try if _OSF_SOURCE will allow us to link
5545 cat >conftest.
$ac_ext <<_ACEOF
5548 cat confdefs.h
>>conftest.
$ac_ext
5549 cat >>conftest.
$ac_ext <<_ACEOF
5550 /* end confdefs.h. */
5552 #define _OSF_SOURCE 1
5553 #include <sys/types.h>
5563 rm -f conftest.
$ac_objext conftest
$ac_exeext
5564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5565 (eval $ac_link) 2>conftest.er1
5567 grep -v '^ *+' conftest.er1
>conftest.err
5569 cat conftest.err
>&5
5570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571 (exit $ac_status); } &&
5572 { ac_try
='test -z "$ac_c_werror_flag"
5573 || test ! -s conftest.err'
5574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5578 (exit $ac_status); }; } &&
5579 { ac_try
='test -s conftest$ac_exeext'
5580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5584 (exit $ac_status); }; }; then
5585 ac_cv_has_makedev
=yes
5587 echo "$as_me: failed program was:" >&5
5588 sed 's/^/| /' conftest.
$ac_ext >&5
5590 ac_cv_has_makedev
=no
5592 rm -f conftest.err conftest.
$ac_objext \
5593 conftest
$ac_exeext conftest.
$ac_ext
5594 if test "$ac_cv_has_makedev" = "yes"; then
5596 cat >>confdefs.h
<<\_ACEOF
5597 #define _OSF_SOURCE 1
5602 echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
5603 echo "${ECHO_T}$ac_cv_has_makedev" >&6
5604 if test "$ac_cv_has_makedev" = "yes"; then
5606 cat >>confdefs.h
<<\_ACEOF
5607 #define HAVE_MAKEDEV 1
5612 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
5613 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
5614 # defined, but the compiler does not support pragma redefine_extname,
5615 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
5616 # structures (such as rlimit64) without declaring them. As a
5617 # work-around, disable LFS on such configurations
5620 echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
5621 echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6
5622 cat >conftest.
$ac_ext <<_ACEOF
5625 cat confdefs.h
>>conftest.
$ac_ext
5626 cat >>conftest.
$ac_ext <<_ACEOF
5627 /* end confdefs.h. */
5629 #define _LARGEFILE_SOURCE 1
5630 #define _FILE_OFFSET_BITS 64
5631 #include <sys/resource.h>
5641 rm -f conftest.
$ac_objext
5642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5643 (eval $ac_compile) 2>conftest.er1
5645 grep -v '^ *+' conftest.er1
>conftest.err
5647 cat conftest.err
>&5
5648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5649 (exit $ac_status); } &&
5650 { ac_try
='test -z "$ac_c_werror_flag"
5651 || test ! -s conftest.err'
5652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5656 (exit $ac_status); }; } &&
5657 { ac_try
='test -s conftest.$ac_objext'
5658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5662 (exit $ac_status); }; }; then
5665 echo "$as_me: failed program was:" >&5
5666 sed 's/^/| /' conftest.
$ac_ext >&5
5670 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5671 echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
5672 echo "${ECHO_T}$sol_lfs_bug" >&6
5673 if test "$sol_lfs_bug" = "yes"; then
5677 if test "$use_lfs" = "yes"; then
5678 # Two defines needed to enable largefile support on various platforms
5679 # These may affect some typedefs
5681 cat >>confdefs.h
<<\_ACEOF
5682 #define _LARGEFILE_SOURCE 1
5686 cat >>confdefs.h
<<\_ACEOF
5687 #define _FILE_OFFSET_BITS 64
5692 # Add some code to confdefs.h so that the test for off_t works on SCO
5693 cat >> confdefs.h
<<\EOF
5699 # Type availability checks
5700 echo "$as_me:$LINENO: checking for mode_t" >&5
5701 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
5702 if test "${ac_cv_type_mode_t+set}" = set; then
5703 echo $ECHO_N "(cached) $ECHO_C" >&6
5705 cat >conftest.
$ac_ext <<_ACEOF
5708 cat confdefs.h
>>conftest.
$ac_ext
5709 cat >>conftest.
$ac_ext <<_ACEOF
5710 /* end confdefs.h. */
5711 $ac_includes_default
5717 if (sizeof (mode_t))
5723 rm -f conftest.
$ac_objext
5724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5725 (eval $ac_compile) 2>conftest.er1
5727 grep -v '^ *+' conftest.er1
>conftest.err
5729 cat conftest.err
>&5
5730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731 (exit $ac_status); } &&
5732 { ac_try
='test -z "$ac_c_werror_flag"
5733 || test ! -s conftest.err'
5734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5738 (exit $ac_status); }; } &&
5739 { ac_try
='test -s conftest.$ac_objext'
5740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744 (exit $ac_status); }; }; then
5745 ac_cv_type_mode_t
=yes
5747 echo "$as_me: failed program was:" >&5
5748 sed 's/^/| /' conftest.
$ac_ext >&5
5750 ac_cv_type_mode_t
=no
5752 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5754 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
5755 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
5756 if test $ac_cv_type_mode_t = yes; then
5760 cat >>confdefs.h
<<_ACEOF
5766 echo "$as_me:$LINENO: checking for off_t" >&5
5767 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5768 if test "${ac_cv_type_off_t+set}" = set; then
5769 echo $ECHO_N "(cached) $ECHO_C" >&6
5771 cat >conftest.
$ac_ext <<_ACEOF
5774 cat confdefs.h
>>conftest.
$ac_ext
5775 cat >>conftest.
$ac_ext <<_ACEOF
5776 /* end confdefs.h. */
5777 $ac_includes_default
5789 rm -f conftest.
$ac_objext
5790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5791 (eval $ac_compile) 2>conftest.er1
5793 grep -v '^ *+' conftest.er1
>conftest.err
5795 cat conftest.err
>&5
5796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5797 (exit $ac_status); } &&
5798 { ac_try
='test -z "$ac_c_werror_flag"
5799 || test ! -s conftest.err'
5800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5804 (exit $ac_status); }; } &&
5805 { ac_try
='test -s conftest.$ac_objext'
5806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810 (exit $ac_status); }; }; then
5811 ac_cv_type_off_t
=yes
5813 echo "$as_me: failed program was:" >&5
5814 sed 's/^/| /' conftest.
$ac_ext >&5
5818 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5820 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5821 echo "${ECHO_T}$ac_cv_type_off_t" >&6
5822 if test $ac_cv_type_off_t = yes; then
5826 cat >>confdefs.h
<<_ACEOF
5832 echo "$as_me:$LINENO: checking for pid_t" >&5
5833 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
5834 if test "${ac_cv_type_pid_t+set}" = set; then
5835 echo $ECHO_N "(cached) $ECHO_C" >&6
5837 cat >conftest.
$ac_ext <<_ACEOF
5840 cat confdefs.h
>>conftest.
$ac_ext
5841 cat >>conftest.
$ac_ext <<_ACEOF
5842 /* end confdefs.h. */
5843 $ac_includes_default
5855 rm -f conftest.
$ac_objext
5856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5857 (eval $ac_compile) 2>conftest.er1
5859 grep -v '^ *+' conftest.er1
>conftest.err
5861 cat conftest.err
>&5
5862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5863 (exit $ac_status); } &&
5864 { ac_try
='test -z "$ac_c_werror_flag"
5865 || test ! -s conftest.err'
5866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5870 (exit $ac_status); }; } &&
5871 { ac_try
='test -s conftest.$ac_objext'
5872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5876 (exit $ac_status); }; }; then
5877 ac_cv_type_pid_t
=yes
5879 echo "$as_me: failed program was:" >&5
5880 sed 's/^/| /' conftest.
$ac_ext >&5
5884 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5886 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
5887 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
5888 if test $ac_cv_type_pid_t = yes; then
5892 cat >>confdefs.h
<<_ACEOF
5898 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5899 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
5900 if test "${ac_cv_type_signal+set}" = set; then
5901 echo $ECHO_N "(cached) $ECHO_C" >&6
5903 cat >conftest.
$ac_ext <<_ACEOF
5906 cat confdefs.h
>>conftest.
$ac_ext
5907 cat >>conftest.
$ac_ext <<_ACEOF
5908 /* end confdefs.h. */
5909 #include <sys/types.h>
5915 extern "C" void (*signal (int, void (*)(int)))(int);
5917 void (*signal ()) ();
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_signal
=void
5952 echo "$as_me: failed program was:" >&5
5953 sed 's/^/| /' conftest.
$ac_ext >&5
5955 ac_cv_type_signal
=int
5957 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5959 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5960 echo "${ECHO_T}$ac_cv_type_signal" >&6
5962 cat >>confdefs.h
<<_ACEOF
5963 #define RETSIGTYPE $ac_cv_type_signal
5967 echo "$as_me:$LINENO: checking for size_t" >&5
5968 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
5969 if test "${ac_cv_type_size_t+set}" = set; then
5970 echo $ECHO_N "(cached) $ECHO_C" >&6
5972 cat >conftest.
$ac_ext <<_ACEOF
5975 cat confdefs.h
>>conftest.
$ac_ext
5976 cat >>conftest.
$ac_ext <<_ACEOF
5977 /* end confdefs.h. */
5978 $ac_includes_default
5984 if (sizeof (size_t))
5990 rm -f conftest.
$ac_objext
5991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5992 (eval $ac_compile) 2>conftest.er1
5994 grep -v '^ *+' conftest.er1
>conftest.err
5996 cat conftest.err
>&5
5997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998 (exit $ac_status); } &&
5999 { ac_try
='test -z "$ac_c_werror_flag"
6000 || test ! -s conftest.err'
6001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005 (exit $ac_status); }; } &&
6006 { ac_try
='test -s conftest.$ac_objext'
6007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6011 (exit $ac_status); }; }; then
6012 ac_cv_type_size_t
=yes
6014 echo "$as_me: failed program was:" >&5
6015 sed 's/^/| /' conftest.
$ac_ext >&5
6017 ac_cv_type_size_t
=no
6019 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6021 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6022 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6023 if test $ac_cv_type_size_t = yes; then
6027 cat >>confdefs.h
<<_ACEOF
6028 #define size_t unsigned
6033 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6034 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
6035 if test "${ac_cv_type_uid_t+set}" = set; then
6036 echo $ECHO_N "(cached) $ECHO_C" >&6
6038 cat >conftest.
$ac_ext <<_ACEOF
6041 cat confdefs.h
>>conftest.
$ac_ext
6042 cat >>conftest.
$ac_ext <<_ACEOF
6043 /* end confdefs.h. */
6044 #include <sys/types.h>
6047 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6048 $EGREP "uid_t" >/dev
/null
2>&1; then
6049 ac_cv_type_uid_t
=yes
6056 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
6057 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
6058 if test $ac_cv_type_uid_t = no
; then
6060 cat >>confdefs.h
<<\_ACEOF
6065 cat >>confdefs.h
<<\_ACEOF
6072 # Sizes of various common basic types
6073 # ANSI C requires sizeof(char) == 1, so no need to check it
6074 echo "$as_me:$LINENO: checking for int" >&5
6075 echo $ECHO_N "checking for int... $ECHO_C" >&6
6076 if test "${ac_cv_type_int+set}" = set; then
6077 echo $ECHO_N "(cached) $ECHO_C" >&6
6079 cat >conftest.
$ac_ext <<_ACEOF
6082 cat confdefs.h
>>conftest.
$ac_ext
6083 cat >>conftest.
$ac_ext <<_ACEOF
6084 /* end confdefs.h. */
6085 $ac_includes_default
6097 rm -f conftest.
$ac_objext
6098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6099 (eval $ac_compile) 2>conftest.er1
6101 grep -v '^ *+' conftest.er1
>conftest.err
6103 cat conftest.err
>&5
6104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6105 (exit $ac_status); } &&
6106 { ac_try
='test -z "$ac_c_werror_flag"
6107 || test ! -s conftest.err'
6108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6112 (exit $ac_status); }; } &&
6113 { ac_try
='test -s conftest.$ac_objext'
6114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6118 (exit $ac_status); }; }; then
6121 echo "$as_me: failed program was:" >&5
6122 sed 's/^/| /' conftest.
$ac_ext >&5
6126 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6128 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
6129 echo "${ECHO_T}$ac_cv_type_int" >&6
6131 echo "$as_me:$LINENO: checking size of int" >&5
6132 echo $ECHO_N "checking size of int... $ECHO_C" >&6
6133 if test "${ac_cv_sizeof_int+set}" = set; then
6134 echo $ECHO_N "(cached) $ECHO_C" >&6
6136 if test "$ac_cv_type_int" = yes; then
6137 # The cast to unsigned long works around a bug in the HP C Compiler
6138 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6139 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6140 # This bug is HP SR number 8606223364.
6141 if test "$cross_compiling" = yes; then
6142 # Depending upon the size, compute the lo and hi bounds.
6143 cat >conftest.
$ac_ext <<_ACEOF
6146 cat confdefs.h
>>conftest.
$ac_ext
6147 cat >>conftest.
$ac_ext <<_ACEOF
6148 /* end confdefs.h. */
6149 $ac_includes_default
6153 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
6160 rm -f conftest.
$ac_objext
6161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6162 (eval $ac_compile) 2>conftest.er1
6164 grep -v '^ *+' conftest.er1
>conftest.err
6166 cat conftest.err
>&5
6167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6168 (exit $ac_status); } &&
6169 { ac_try
='test -z "$ac_c_werror_flag"
6170 || test ! -s conftest.err'
6171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6175 (exit $ac_status); }; } &&
6176 { ac_try
='test -s conftest.$ac_objext'
6177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6181 (exit $ac_status); }; }; then
6184 cat >conftest.
$ac_ext <<_ACEOF
6187 cat confdefs.h
>>conftest.
$ac_ext
6188 cat >>conftest.
$ac_ext <<_ACEOF
6189 /* end confdefs.h. */
6190 $ac_includes_default
6194 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6201 rm -f conftest.
$ac_objext
6202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6203 (eval $ac_compile) 2>conftest.er1
6205 grep -v '^ *+' conftest.er1
>conftest.err
6207 cat conftest.err
>&5
6208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6209 (exit $ac_status); } &&
6210 { ac_try
='test -z "$ac_c_werror_flag"
6211 || test ! -s conftest.err'
6212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6216 (exit $ac_status); }; } &&
6217 { ac_try
='test -s conftest.$ac_objext'
6218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6222 (exit $ac_status); }; }; then
6223 ac_hi
=$ac_mid; break
6225 echo "$as_me: failed program was:" >&5
6226 sed 's/^/| /' conftest.
$ac_ext >&5
6228 ac_lo
=`expr $ac_mid + 1`
6229 if test $ac_lo -le $ac_mid; then
6233 ac_mid
=`expr 2 '*' $ac_mid + 1`
6235 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6238 echo "$as_me: failed program was:" >&5
6239 sed 's/^/| /' conftest.
$ac_ext >&5
6241 cat >conftest.
$ac_ext <<_ACEOF
6244 cat confdefs.h
>>conftest.
$ac_ext
6245 cat >>conftest.
$ac_ext <<_ACEOF
6246 /* end confdefs.h. */
6247 $ac_includes_default
6251 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
6258 rm -f conftest.
$ac_objext
6259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6260 (eval $ac_compile) 2>conftest.er1
6262 grep -v '^ *+' conftest.er1
>conftest.err
6264 cat conftest.err
>&5
6265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6266 (exit $ac_status); } &&
6267 { ac_try
='test -z "$ac_c_werror_flag"
6268 || test ! -s conftest.err'
6269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6273 (exit $ac_status); }; } &&
6274 { ac_try
='test -s conftest.$ac_objext'
6275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6279 (exit $ac_status); }; }; then
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
6292 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
6299 rm -f conftest.
$ac_objext
6300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6301 (eval $ac_compile) 2>conftest.er1
6303 grep -v '^ *+' conftest.er1
>conftest.err
6305 cat conftest.err
>&5
6306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6307 (exit $ac_status); } &&
6308 { ac_try
='test -z "$ac_c_werror_flag"
6309 || test ! -s conftest.err'
6310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314 (exit $ac_status); }; } &&
6315 { ac_try
='test -s conftest.$ac_objext'
6316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6320 (exit $ac_status); }; }; then
6321 ac_lo
=$ac_mid; break
6323 echo "$as_me: failed program was:" >&5
6324 sed 's/^/| /' conftest.
$ac_ext >&5
6326 ac_hi
=`expr '(' $ac_mid ')' - 1`
6327 if test $ac_mid -le $ac_hi; then
6331 ac_mid
=`expr 2 '*' $ac_mid`
6333 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6336 echo "$as_me: failed program was:" >&5
6337 sed 's/^/| /' conftest.
$ac_ext >&5
6341 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6343 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6344 # Binary search between lo and hi bounds.
6345 while test "x$ac_lo" != "x$ac_hi"; do
6346 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6347 cat >conftest.
$ac_ext <<_ACEOF
6350 cat confdefs.h
>>conftest.
$ac_ext
6351 cat >>conftest.
$ac_ext <<_ACEOF
6352 /* end confdefs.h. */
6353 $ac_includes_default
6357 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6364 rm -f conftest.
$ac_objext
6365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6366 (eval $ac_compile) 2>conftest.er1
6368 grep -v '^ *+' conftest.er1
>conftest.err
6370 cat conftest.err
>&5
6371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6372 (exit $ac_status); } &&
6373 { ac_try
='test -z "$ac_c_werror_flag"
6374 || test ! -s conftest.err'
6375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6379 (exit $ac_status); }; } &&
6380 { ac_try
='test -s conftest.$ac_objext'
6381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6385 (exit $ac_status); }; }; then
6388 echo "$as_me: failed program was:" >&5
6389 sed 's/^/| /' conftest.
$ac_ext >&5
6391 ac_lo
=`expr '(' $ac_mid ')' + 1`
6393 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6396 ?
*) ac_cv_sizeof_int
=$ac_lo;;
6397 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
6398 See \`config.log' for more details." >&5
6399 echo "$as_me: error: cannot compute sizeof (int), 77
6400 See \`config.log' for more details." >&2;}
6401 { (exit 1); exit 1; }; } ;;
6404 if test "$cross_compiling" = yes; then
6405 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6406 See \`config.log' for more details." >&5
6407 echo "$as_me: error: cannot run test program while cross compiling
6408 See \`config.log' for more details." >&2;}
6409 { (exit 1); exit 1; }; }
6411 cat >conftest.
$ac_ext <<_ACEOF
6414 cat confdefs.h
>>conftest.
$ac_ext
6415 cat >>conftest.
$ac_ext <<_ACEOF
6416 /* end confdefs.h. */
6417 $ac_includes_default
6418 long longval () { return (long) (sizeof (int)); }
6419 unsigned long ulongval () { return (long) (sizeof (int)); }
6426 FILE *f = fopen ("conftest.val", "w");
6429 if (((long) (sizeof (int))) < 0)
6431 long i = longval ();
6432 if (i != ((long) (sizeof (int))))
6434 fprintf (f, "%ld\n", i);
6438 unsigned long i = ulongval ();
6439 if (i != ((long) (sizeof (int))))
6441 fprintf (f, "%lu\n", i);
6443 exit (ferror (f) || fclose (f) != 0);
6449 rm -f conftest
$ac_exeext
6450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6451 (eval $ac_link) 2>&5
6453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6454 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6459 (exit $ac_status); }; }; then
6460 ac_cv_sizeof_int
=`cat conftest.val`
6462 echo "$as_me: program exited with status $ac_status" >&5
6463 echo "$as_me: failed program was:" >&5
6464 sed 's/^/| /' conftest.
$ac_ext >&5
6467 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
6468 See \`config.log' for more details." >&5
6469 echo "$as_me: error: cannot compute sizeof (int), 77
6470 See \`config.log' for more details." >&2;}
6471 { (exit 1); exit 1; }; }
6473 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6481 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6482 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
6483 cat >>confdefs.h
<<_ACEOF
6484 #define SIZEOF_INT $ac_cv_sizeof_int
6488 echo "$as_me:$LINENO: checking for long" >&5
6489 echo $ECHO_N "checking for long... $ECHO_C" >&6
6490 if test "${ac_cv_type_long+set}" = set; then
6491 echo $ECHO_N "(cached) $ECHO_C" >&6
6493 cat >conftest.
$ac_ext <<_ACEOF
6496 cat confdefs.h
>>conftest.
$ac_ext
6497 cat >>conftest.
$ac_ext <<_ACEOF
6498 /* end confdefs.h. */
6499 $ac_includes_default
6511 rm -f conftest.
$ac_objext
6512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6513 (eval $ac_compile) 2>conftest.er1
6515 grep -v '^ *+' conftest.er1
>conftest.err
6517 cat conftest.err
>&5
6518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6519 (exit $ac_status); } &&
6520 { ac_try
='test -z "$ac_c_werror_flag"
6521 || test ! -s conftest.err'
6522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6526 (exit $ac_status); }; } &&
6527 { ac_try
='test -s conftest.$ac_objext'
6528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6532 (exit $ac_status); }; }; then
6535 echo "$as_me: failed program was:" >&5
6536 sed 's/^/| /' conftest.
$ac_ext >&5
6540 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6542 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6543 echo "${ECHO_T}$ac_cv_type_long" >&6
6545 echo "$as_me:$LINENO: checking size of long" >&5
6546 echo $ECHO_N "checking size of long... $ECHO_C" >&6
6547 if test "${ac_cv_sizeof_long+set}" = set; then
6548 echo $ECHO_N "(cached) $ECHO_C" >&6
6550 if test "$ac_cv_type_long" = yes; then
6551 # The cast to unsigned long works around a bug in the HP C Compiler
6552 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6553 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6554 # This bug is HP SR number 8606223364.
6555 if test "$cross_compiling" = yes; then
6556 # Depending upon the size, compute the lo and hi bounds.
6557 cat >conftest.
$ac_ext <<_ACEOF
6560 cat confdefs.h
>>conftest.
$ac_ext
6561 cat >>conftest.
$ac_ext <<_ACEOF
6562 /* end confdefs.h. */
6563 $ac_includes_default
6567 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
6574 rm -f conftest.
$ac_objext
6575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6576 (eval $ac_compile) 2>conftest.er1
6578 grep -v '^ *+' conftest.er1
>conftest.err
6580 cat conftest.err
>&5
6581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6582 (exit $ac_status); } &&
6583 { ac_try
='test -z "$ac_c_werror_flag"
6584 || test ! -s conftest.err'
6585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6589 (exit $ac_status); }; } &&
6590 { ac_try
='test -s conftest.$ac_objext'
6591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6595 (exit $ac_status); }; }; then
6598 cat >conftest.
$ac_ext <<_ACEOF
6601 cat confdefs.h
>>conftest.
$ac_ext
6602 cat >>conftest.
$ac_ext <<_ACEOF
6603 /* end confdefs.h. */
6604 $ac_includes_default
6608 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6615 rm -f conftest.
$ac_objext
6616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6617 (eval $ac_compile) 2>conftest.er1
6619 grep -v '^ *+' conftest.er1
>conftest.err
6621 cat conftest.err
>&5
6622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6623 (exit $ac_status); } &&
6624 { ac_try
='test -z "$ac_c_werror_flag"
6625 || test ! -s conftest.err'
6626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6630 (exit $ac_status); }; } &&
6631 { ac_try
='test -s conftest.$ac_objext'
6632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6636 (exit $ac_status); }; }; then
6637 ac_hi
=$ac_mid; break
6639 echo "$as_me: failed program was:" >&5
6640 sed 's/^/| /' conftest.
$ac_ext >&5
6642 ac_lo
=`expr $ac_mid + 1`
6643 if test $ac_lo -le $ac_mid; then
6647 ac_mid
=`expr 2 '*' $ac_mid + 1`
6649 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6652 echo "$as_me: failed program was:" >&5
6653 sed 's/^/| /' conftest.
$ac_ext >&5
6655 cat >conftest.
$ac_ext <<_ACEOF
6658 cat confdefs.h
>>conftest.
$ac_ext
6659 cat >>conftest.
$ac_ext <<_ACEOF
6660 /* end confdefs.h. */
6661 $ac_includes_default
6665 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
6672 rm -f conftest.
$ac_objext
6673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6674 (eval $ac_compile) 2>conftest.er1
6676 grep -v '^ *+' conftest.er1
>conftest.err
6678 cat conftest.err
>&5
6679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6680 (exit $ac_status); } &&
6681 { ac_try
='test -z "$ac_c_werror_flag"
6682 || test ! -s conftest.err'
6683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6687 (exit $ac_status); }; } &&
6688 { ac_try
='test -s conftest.$ac_objext'
6689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6693 (exit $ac_status); }; }; then
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
6706 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
6713 rm -f conftest.
$ac_objext
6714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6715 (eval $ac_compile) 2>conftest.er1
6717 grep -v '^ *+' conftest.er1
>conftest.err
6719 cat conftest.err
>&5
6720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6721 (exit $ac_status); } &&
6722 { ac_try
='test -z "$ac_c_werror_flag"
6723 || test ! -s conftest.err'
6724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6728 (exit $ac_status); }; } &&
6729 { ac_try
='test -s conftest.$ac_objext'
6730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6734 (exit $ac_status); }; }; then
6735 ac_lo
=$ac_mid; break
6737 echo "$as_me: failed program was:" >&5
6738 sed 's/^/| /' conftest.
$ac_ext >&5
6740 ac_hi
=`expr '(' $ac_mid ')' - 1`
6741 if test $ac_mid -le $ac_hi; then
6745 ac_mid
=`expr 2 '*' $ac_mid`
6747 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6750 echo "$as_me: failed program was:" >&5
6751 sed 's/^/| /' conftest.
$ac_ext >&5
6755 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6757 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6758 # Binary search between lo and hi bounds.
6759 while test "x$ac_lo" != "x$ac_hi"; do
6760 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6761 cat >conftest.
$ac_ext <<_ACEOF
6764 cat confdefs.h
>>conftest.
$ac_ext
6765 cat >>conftest.
$ac_ext <<_ACEOF
6766 /* end confdefs.h. */
6767 $ac_includes_default
6771 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6778 rm -f conftest.
$ac_objext
6779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6780 (eval $ac_compile) 2>conftest.er1
6782 grep -v '^ *+' conftest.er1
>conftest.err
6784 cat conftest.err
>&5
6785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6786 (exit $ac_status); } &&
6787 { ac_try
='test -z "$ac_c_werror_flag"
6788 || test ! -s conftest.err'
6789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6793 (exit $ac_status); }; } &&
6794 { ac_try
='test -s conftest.$ac_objext'
6795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6799 (exit $ac_status); }; }; then
6802 echo "$as_me: failed program was:" >&5
6803 sed 's/^/| /' conftest.
$ac_ext >&5
6805 ac_lo
=`expr '(' $ac_mid ')' + 1`
6807 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6810 ?
*) ac_cv_sizeof_long
=$ac_lo;;
6811 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
6812 See \`config.log' for more details." >&5
6813 echo "$as_me: error: cannot compute sizeof (long), 77
6814 See \`config.log' for more details." >&2;}
6815 { (exit 1); exit 1; }; } ;;
6818 if test "$cross_compiling" = yes; then
6819 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6820 See \`config.log' for more details." >&5
6821 echo "$as_me: error: cannot run test program while cross compiling
6822 See \`config.log' for more details." >&2;}
6823 { (exit 1); exit 1; }; }
6825 cat >conftest.
$ac_ext <<_ACEOF
6828 cat confdefs.h
>>conftest.
$ac_ext
6829 cat >>conftest.
$ac_ext <<_ACEOF
6830 /* end confdefs.h. */
6831 $ac_includes_default
6832 long longval () { return (long) (sizeof (long)); }
6833 unsigned long ulongval () { return (long) (sizeof (long)); }
6840 FILE *f = fopen ("conftest.val", "w");
6843 if (((long) (sizeof (long))) < 0)
6845 long i = longval ();
6846 if (i != ((long) (sizeof (long))))
6848 fprintf (f, "%ld\n", i);
6852 unsigned long i = ulongval ();
6853 if (i != ((long) (sizeof (long))))
6855 fprintf (f, "%lu\n", i);
6857 exit (ferror (f) || fclose (f) != 0);
6863 rm -f conftest
$ac_exeext
6864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6865 (eval $ac_link) 2>&5
6867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6868 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6873 (exit $ac_status); }; }; then
6874 ac_cv_sizeof_long
=`cat conftest.val`
6876 echo "$as_me: program exited with status $ac_status" >&5
6877 echo "$as_me: failed program was:" >&5
6878 sed 's/^/| /' conftest.
$ac_ext >&5
6881 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
6882 See \`config.log' for more details." >&5
6883 echo "$as_me: error: cannot compute sizeof (long), 77
6884 See \`config.log' for more details." >&2;}
6885 { (exit 1); exit 1; }; }
6887 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6895 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
6896 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
6897 cat >>confdefs.h
<<_ACEOF
6898 #define SIZEOF_LONG $ac_cv_sizeof_long
6902 echo "$as_me:$LINENO: checking for void *" >&5
6903 echo $ECHO_N "checking for void *... $ECHO_C" >&6
6904 if test "${ac_cv_type_void_p+set}" = set; then
6905 echo $ECHO_N "(cached) $ECHO_C" >&6
6907 cat >conftest.
$ac_ext <<_ACEOF
6910 cat confdefs.h
>>conftest.
$ac_ext
6911 cat >>conftest.
$ac_ext <<_ACEOF
6912 /* end confdefs.h. */
6913 $ac_includes_default
6919 if (sizeof (void *))
6925 rm -f conftest.
$ac_objext
6926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6927 (eval $ac_compile) 2>conftest.er1
6929 grep -v '^ *+' conftest.er1
>conftest.err
6931 cat conftest.err
>&5
6932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6933 (exit $ac_status); } &&
6934 { ac_try
='test -z "$ac_c_werror_flag"
6935 || test ! -s conftest.err'
6936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6940 (exit $ac_status); }; } &&
6941 { ac_try
='test -s conftest.$ac_objext'
6942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6946 (exit $ac_status); }; }; then
6947 ac_cv_type_void_p
=yes
6949 echo "$as_me: failed program was:" >&5
6950 sed 's/^/| /' conftest.
$ac_ext >&5
6952 ac_cv_type_void_p
=no
6954 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6956 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
6957 echo "${ECHO_T}$ac_cv_type_void_p" >&6
6959 echo "$as_me:$LINENO: checking size of void *" >&5
6960 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
6961 if test "${ac_cv_sizeof_void_p+set}" = set; then
6962 echo $ECHO_N "(cached) $ECHO_C" >&6
6964 if test "$ac_cv_type_void_p" = yes; then
6965 # The cast to unsigned long works around a bug in the HP C Compiler
6966 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6967 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6968 # This bug is HP SR number 8606223364.
6969 if test "$cross_compiling" = yes; then
6970 # Depending upon the size, compute the lo and hi bounds.
6971 cat >conftest.
$ac_ext <<_ACEOF
6974 cat confdefs.h
>>conftest.
$ac_ext
6975 cat >>conftest.
$ac_ext <<_ACEOF
6976 /* end confdefs.h. */
6977 $ac_includes_default
6981 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
6988 rm -f conftest.
$ac_objext
6989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6990 (eval $ac_compile) 2>conftest.er1
6992 grep -v '^ *+' conftest.er1
>conftest.err
6994 cat conftest.err
>&5
6995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6996 (exit $ac_status); } &&
6997 { ac_try
='test -z "$ac_c_werror_flag"
6998 || test ! -s conftest.err'
6999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7003 (exit $ac_status); }; } &&
7004 { ac_try
='test -s conftest.$ac_objext'
7005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7009 (exit $ac_status); }; }; then
7012 cat >conftest.
$ac_ext <<_ACEOF
7015 cat confdefs.h
>>conftest.
$ac_ext
7016 cat >>conftest.
$ac_ext <<_ACEOF
7017 /* end confdefs.h. */
7018 $ac_includes_default
7022 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
7029 rm -f conftest.
$ac_objext
7030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7031 (eval $ac_compile) 2>conftest.er1
7033 grep -v '^ *+' conftest.er1
>conftest.err
7035 cat conftest.err
>&5
7036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7037 (exit $ac_status); } &&
7038 { ac_try
='test -z "$ac_c_werror_flag"
7039 || test ! -s conftest.err'
7040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7044 (exit $ac_status); }; } &&
7045 { ac_try
='test -s conftest.$ac_objext'
7046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7050 (exit $ac_status); }; }; then
7051 ac_hi
=$ac_mid; break
7053 echo "$as_me: failed program was:" >&5
7054 sed 's/^/| /' conftest.
$ac_ext >&5
7056 ac_lo
=`expr $ac_mid + 1`
7057 if test $ac_lo -le $ac_mid; then
7061 ac_mid
=`expr 2 '*' $ac_mid + 1`
7063 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7066 echo "$as_me: failed program was:" >&5
7067 sed 's/^/| /' conftest.
$ac_ext >&5
7069 cat >conftest.
$ac_ext <<_ACEOF
7072 cat confdefs.h
>>conftest.
$ac_ext
7073 cat >>conftest.
$ac_ext <<_ACEOF
7074 /* end confdefs.h. */
7075 $ac_includes_default
7079 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
7086 rm -f conftest.
$ac_objext
7087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7088 (eval $ac_compile) 2>conftest.er1
7090 grep -v '^ *+' conftest.er1
>conftest.err
7092 cat conftest.err
>&5
7093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7094 (exit $ac_status); } &&
7095 { ac_try
='test -z "$ac_c_werror_flag"
7096 || test ! -s conftest.err'
7097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7101 (exit $ac_status); }; } &&
7102 { ac_try
='test -s conftest.$ac_objext'
7103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7107 (exit $ac_status); }; }; then
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
7120 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
7127 rm -f conftest.
$ac_objext
7128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7129 (eval $ac_compile) 2>conftest.er1
7131 grep -v '^ *+' conftest.er1
>conftest.err
7133 cat conftest.err
>&5
7134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7135 (exit $ac_status); } &&
7136 { ac_try
='test -z "$ac_c_werror_flag"
7137 || test ! -s conftest.err'
7138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7142 (exit $ac_status); }; } &&
7143 { ac_try
='test -s conftest.$ac_objext'
7144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7148 (exit $ac_status); }; }; then
7149 ac_lo
=$ac_mid; break
7151 echo "$as_me: failed program was:" >&5
7152 sed 's/^/| /' conftest.
$ac_ext >&5
7154 ac_hi
=`expr '(' $ac_mid ')' - 1`
7155 if test $ac_mid -le $ac_hi; then
7159 ac_mid
=`expr 2 '*' $ac_mid`
7161 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7164 echo "$as_me: failed program was:" >&5
7165 sed 's/^/| /' conftest.
$ac_ext >&5
7169 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7171 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7172 # Binary search between lo and hi bounds.
7173 while test "x$ac_lo" != "x$ac_hi"; do
7174 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7175 cat >conftest.
$ac_ext <<_ACEOF
7178 cat confdefs.h
>>conftest.
$ac_ext
7179 cat >>conftest.
$ac_ext <<_ACEOF
7180 /* end confdefs.h. */
7181 $ac_includes_default
7185 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
7192 rm -f conftest.
$ac_objext
7193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7194 (eval $ac_compile) 2>conftest.er1
7196 grep -v '^ *+' conftest.er1
>conftest.err
7198 cat conftest.err
>&5
7199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7200 (exit $ac_status); } &&
7201 { ac_try
='test -z "$ac_c_werror_flag"
7202 || test ! -s conftest.err'
7203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7207 (exit $ac_status); }; } &&
7208 { ac_try
='test -s conftest.$ac_objext'
7209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7213 (exit $ac_status); }; }; then
7216 echo "$as_me: failed program was:" >&5
7217 sed 's/^/| /' conftest.
$ac_ext >&5
7219 ac_lo
=`expr '(' $ac_mid ')' + 1`
7221 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7224 ?
*) ac_cv_sizeof_void_p
=$ac_lo;;
7225 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
7226 See \`config.log' for more details." >&5
7227 echo "$as_me: error: cannot compute sizeof (void *), 77
7228 See \`config.log' for more details." >&2;}
7229 { (exit 1); exit 1; }; } ;;
7232 if test "$cross_compiling" = yes; then
7233 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7234 See \`config.log' for more details." >&5
7235 echo "$as_me: error: cannot run test program while cross compiling
7236 See \`config.log' for more details." >&2;}
7237 { (exit 1); exit 1; }; }
7239 cat >conftest.
$ac_ext <<_ACEOF
7242 cat confdefs.h
>>conftest.
$ac_ext
7243 cat >>conftest.
$ac_ext <<_ACEOF
7244 /* end confdefs.h. */
7245 $ac_includes_default
7246 long longval () { return (long) (sizeof (void *)); }
7247 unsigned long ulongval () { return (long) (sizeof (void *)); }
7254 FILE *f = fopen ("conftest.val", "w");
7257 if (((long) (sizeof (void *))) < 0)
7259 long i = longval ();
7260 if (i != ((long) (sizeof (void *))))
7262 fprintf (f, "%ld\n", i);
7266 unsigned long i = ulongval ();
7267 if (i != ((long) (sizeof (void *))))
7269 fprintf (f, "%lu\n", i);
7271 exit (ferror (f) || fclose (f) != 0);
7277 rm -f conftest
$ac_exeext
7278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7279 (eval $ac_link) 2>&5
7281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7282 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7287 (exit $ac_status); }; }; then
7288 ac_cv_sizeof_void_p
=`cat conftest.val`
7290 echo "$as_me: program exited with status $ac_status" >&5
7291 echo "$as_me: failed program was:" >&5
7292 sed 's/^/| /' conftest.
$ac_ext >&5
7295 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
7296 See \`config.log' for more details." >&5
7297 echo "$as_me: error: cannot compute sizeof (void *), 77
7298 See \`config.log' for more details." >&2;}
7299 { (exit 1); exit 1; }; }
7301 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7306 ac_cv_sizeof_void_p
=0
7309 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
7310 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
7311 cat >>confdefs.h
<<_ACEOF
7312 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
7316 echo "$as_me:$LINENO: checking for short" >&5
7317 echo $ECHO_N "checking for short... $ECHO_C" >&6
7318 if test "${ac_cv_type_short+set}" = set; then
7319 echo $ECHO_N "(cached) $ECHO_C" >&6
7321 cat >conftest.
$ac_ext <<_ACEOF
7324 cat confdefs.h
>>conftest.
$ac_ext
7325 cat >>conftest.
$ac_ext <<_ACEOF
7326 /* end confdefs.h. */
7327 $ac_includes_default
7339 rm -f conftest.
$ac_objext
7340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7341 (eval $ac_compile) 2>conftest.er1
7343 grep -v '^ *+' conftest.er1
>conftest.err
7345 cat conftest.err
>&5
7346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7347 (exit $ac_status); } &&
7348 { ac_try
='test -z "$ac_c_werror_flag"
7349 || test ! -s conftest.err'
7350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7354 (exit $ac_status); }; } &&
7355 { ac_try
='test -s conftest.$ac_objext'
7356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7360 (exit $ac_status); }; }; then
7361 ac_cv_type_short
=yes
7363 echo "$as_me: failed program was:" >&5
7364 sed 's/^/| /' conftest.
$ac_ext >&5
7368 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7370 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
7371 echo "${ECHO_T}$ac_cv_type_short" >&6
7373 echo "$as_me:$LINENO: checking size of short" >&5
7374 echo $ECHO_N "checking size of short... $ECHO_C" >&6
7375 if test "${ac_cv_sizeof_short+set}" = set; then
7376 echo $ECHO_N "(cached) $ECHO_C" >&6
7378 if test "$ac_cv_type_short" = yes; then
7379 # The cast to unsigned long works around a bug in the HP C Compiler
7380 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7381 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7382 # This bug is HP SR number 8606223364.
7383 if test "$cross_compiling" = yes; then
7384 # Depending upon the size, compute the lo and hi bounds.
7385 cat >conftest.
$ac_ext <<_ACEOF
7388 cat confdefs.h
>>conftest.
$ac_ext
7389 cat >>conftest.
$ac_ext <<_ACEOF
7390 /* end confdefs.h. */
7391 $ac_includes_default
7395 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
7402 rm -f conftest.
$ac_objext
7403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7404 (eval $ac_compile) 2>conftest.er1
7406 grep -v '^ *+' conftest.er1
>conftest.err
7408 cat conftest.err
>&5
7409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7410 (exit $ac_status); } &&
7411 { ac_try
='test -z "$ac_c_werror_flag"
7412 || test ! -s conftest.err'
7413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7417 (exit $ac_status); }; } &&
7418 { ac_try
='test -s conftest.$ac_objext'
7419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7423 (exit $ac_status); }; }; then
7426 cat >conftest.
$ac_ext <<_ACEOF
7429 cat confdefs.h
>>conftest.
$ac_ext
7430 cat >>conftest.
$ac_ext <<_ACEOF
7431 /* end confdefs.h. */
7432 $ac_includes_default
7436 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7443 rm -f conftest.
$ac_objext
7444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7445 (eval $ac_compile) 2>conftest.er1
7447 grep -v '^ *+' conftest.er1
>conftest.err
7449 cat conftest.err
>&5
7450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7451 (exit $ac_status); } &&
7452 { ac_try
='test -z "$ac_c_werror_flag"
7453 || test ! -s conftest.err'
7454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7458 (exit $ac_status); }; } &&
7459 { ac_try
='test -s conftest.$ac_objext'
7460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7464 (exit $ac_status); }; }; then
7465 ac_hi
=$ac_mid; break
7467 echo "$as_me: failed program was:" >&5
7468 sed 's/^/| /' conftest.
$ac_ext >&5
7470 ac_lo
=`expr $ac_mid + 1`
7471 if test $ac_lo -le $ac_mid; then
7475 ac_mid
=`expr 2 '*' $ac_mid + 1`
7477 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7480 echo "$as_me: failed program was:" >&5
7481 sed 's/^/| /' conftest.
$ac_ext >&5
7483 cat >conftest.
$ac_ext <<_ACEOF
7486 cat confdefs.h
>>conftest.
$ac_ext
7487 cat >>conftest.
$ac_ext <<_ACEOF
7488 /* end confdefs.h. */
7489 $ac_includes_default
7493 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
7500 rm -f conftest.
$ac_objext
7501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7502 (eval $ac_compile) 2>conftest.er1
7504 grep -v '^ *+' conftest.er1
>conftest.err
7506 cat conftest.err
>&5
7507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7508 (exit $ac_status); } &&
7509 { ac_try
='test -z "$ac_c_werror_flag"
7510 || test ! -s conftest.err'
7511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7515 (exit $ac_status); }; } &&
7516 { ac_try
='test -s conftest.$ac_objext'
7517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7521 (exit $ac_status); }; }; then
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
7534 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
7541 rm -f conftest.
$ac_objext
7542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7543 (eval $ac_compile) 2>conftest.er1
7545 grep -v '^ *+' conftest.er1
>conftest.err
7547 cat conftest.err
>&5
7548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7549 (exit $ac_status); } &&
7550 { ac_try
='test -z "$ac_c_werror_flag"
7551 || test ! -s conftest.err'
7552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7556 (exit $ac_status); }; } &&
7557 { ac_try
='test -s conftest.$ac_objext'
7558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7562 (exit $ac_status); }; }; then
7563 ac_lo
=$ac_mid; break
7565 echo "$as_me: failed program was:" >&5
7566 sed 's/^/| /' conftest.
$ac_ext >&5
7568 ac_hi
=`expr '(' $ac_mid ')' - 1`
7569 if test $ac_mid -le $ac_hi; then
7573 ac_mid
=`expr 2 '*' $ac_mid`
7575 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7578 echo "$as_me: failed program was:" >&5
7579 sed 's/^/| /' conftest.
$ac_ext >&5
7583 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7585 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7586 # Binary search between lo and hi bounds.
7587 while test "x$ac_lo" != "x$ac_hi"; do
7588 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7589 cat >conftest.
$ac_ext <<_ACEOF
7592 cat confdefs.h
>>conftest.
$ac_ext
7593 cat >>conftest.
$ac_ext <<_ACEOF
7594 /* end confdefs.h. */
7595 $ac_includes_default
7599 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7606 rm -f conftest.
$ac_objext
7607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7608 (eval $ac_compile) 2>conftest.er1
7610 grep -v '^ *+' conftest.er1
>conftest.err
7612 cat conftest.err
>&5
7613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7614 (exit $ac_status); } &&
7615 { ac_try
='test -z "$ac_c_werror_flag"
7616 || test ! -s conftest.err'
7617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7621 (exit $ac_status); }; } &&
7622 { ac_try
='test -s conftest.$ac_objext'
7623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7627 (exit $ac_status); }; }; then
7630 echo "$as_me: failed program was:" >&5
7631 sed 's/^/| /' conftest.
$ac_ext >&5
7633 ac_lo
=`expr '(' $ac_mid ')' + 1`
7635 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7638 ?
*) ac_cv_sizeof_short
=$ac_lo;;
7639 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7640 See \`config.log' for more details." >&5
7641 echo "$as_me: error: cannot compute sizeof (short), 77
7642 See \`config.log' for more details." >&2;}
7643 { (exit 1); exit 1; }; } ;;
7646 if test "$cross_compiling" = yes; then
7647 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7648 See \`config.log' for more details." >&5
7649 echo "$as_me: error: cannot run test program while cross compiling
7650 See \`config.log' for more details." >&2;}
7651 { (exit 1); exit 1; }; }
7653 cat >conftest.
$ac_ext <<_ACEOF
7656 cat confdefs.h
>>conftest.
$ac_ext
7657 cat >>conftest.
$ac_ext <<_ACEOF
7658 /* end confdefs.h. */
7659 $ac_includes_default
7660 long longval () { return (long) (sizeof (short)); }
7661 unsigned long ulongval () { return (long) (sizeof (short)); }
7668 FILE *f = fopen ("conftest.val", "w");
7671 if (((long) (sizeof (short))) < 0)
7673 long i = longval ();
7674 if (i != ((long) (sizeof (short))))
7676 fprintf (f, "%ld\n", i);
7680 unsigned long i = ulongval ();
7681 if (i != ((long) (sizeof (short))))
7683 fprintf (f, "%lu\n", i);
7685 exit (ferror (f) || fclose (f) != 0);
7691 rm -f conftest
$ac_exeext
7692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7693 (eval $ac_link) 2>&5
7695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7696 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7701 (exit $ac_status); }; }; then
7702 ac_cv_sizeof_short
=`cat conftest.val`
7704 echo "$as_me: program exited with status $ac_status" >&5
7705 echo "$as_me: failed program was:" >&5
7706 sed 's/^/| /' conftest.
$ac_ext >&5
7709 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7710 See \`config.log' for more details." >&5
7711 echo "$as_me: error: cannot compute sizeof (short), 77
7712 See \`config.log' for more details." >&2;}
7713 { (exit 1); exit 1; }; }
7715 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7720 ac_cv_sizeof_short
=0
7723 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
7724 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
7725 cat >>confdefs.h
<<_ACEOF
7726 #define SIZEOF_SHORT $ac_cv_sizeof_short
7730 echo "$as_me:$LINENO: checking for float" >&5
7731 echo $ECHO_N "checking for float... $ECHO_C" >&6
7732 if test "${ac_cv_type_float+set}" = set; then
7733 echo $ECHO_N "(cached) $ECHO_C" >&6
7735 cat >conftest.
$ac_ext <<_ACEOF
7738 cat confdefs.h
>>conftest.
$ac_ext
7739 cat >>conftest.
$ac_ext <<_ACEOF
7740 /* end confdefs.h. */
7741 $ac_includes_default
7753 rm -f conftest.
$ac_objext
7754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7755 (eval $ac_compile) 2>conftest.er1
7757 grep -v '^ *+' conftest.er1
>conftest.err
7759 cat conftest.err
>&5
7760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7761 (exit $ac_status); } &&
7762 { ac_try
='test -z "$ac_c_werror_flag"
7763 || test ! -s conftest.err'
7764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7768 (exit $ac_status); }; } &&
7769 { ac_try
='test -s conftest.$ac_objext'
7770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7774 (exit $ac_status); }; }; then
7775 ac_cv_type_float
=yes
7777 echo "$as_me: failed program was:" >&5
7778 sed 's/^/| /' conftest.
$ac_ext >&5
7782 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7784 echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
7785 echo "${ECHO_T}$ac_cv_type_float" >&6
7787 echo "$as_me:$LINENO: checking size of float" >&5
7788 echo $ECHO_N "checking size of float... $ECHO_C" >&6
7789 if test "${ac_cv_sizeof_float+set}" = set; then
7790 echo $ECHO_N "(cached) $ECHO_C" >&6
7792 if test "$ac_cv_type_float" = yes; then
7793 # The cast to unsigned long works around a bug in the HP C Compiler
7794 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7795 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7796 # This bug is HP SR number 8606223364.
7797 if test "$cross_compiling" = yes; then
7798 # Depending upon the size, compute the lo and hi bounds.
7799 cat >conftest.
$ac_ext <<_ACEOF
7802 cat confdefs.h
>>conftest.
$ac_ext
7803 cat >>conftest.
$ac_ext <<_ACEOF
7804 /* end confdefs.h. */
7805 $ac_includes_default
7809 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)];
7816 rm -f conftest.
$ac_objext
7817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7818 (eval $ac_compile) 2>conftest.er1
7820 grep -v '^ *+' conftest.er1
>conftest.err
7822 cat conftest.err
>&5
7823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7824 (exit $ac_status); } &&
7825 { ac_try
='test -z "$ac_c_werror_flag"
7826 || test ! -s conftest.err'
7827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7831 (exit $ac_status); }; } &&
7832 { ac_try
='test -s conftest.$ac_objext'
7833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7837 (exit $ac_status); }; }; then
7840 cat >conftest.
$ac_ext <<_ACEOF
7843 cat confdefs.h
>>conftest.
$ac_ext
7844 cat >>conftest.
$ac_ext <<_ACEOF
7845 /* end confdefs.h. */
7846 $ac_includes_default
7850 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
7857 rm -f conftest.
$ac_objext
7858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7859 (eval $ac_compile) 2>conftest.er1
7861 grep -v '^ *+' conftest.er1
>conftest.err
7863 cat conftest.err
>&5
7864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7865 (exit $ac_status); } &&
7866 { ac_try
='test -z "$ac_c_werror_flag"
7867 || test ! -s conftest.err'
7868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7872 (exit $ac_status); }; } &&
7873 { ac_try
='test -s conftest.$ac_objext'
7874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7878 (exit $ac_status); }; }; then
7879 ac_hi
=$ac_mid; break
7881 echo "$as_me: failed program was:" >&5
7882 sed 's/^/| /' conftest.
$ac_ext >&5
7884 ac_lo
=`expr $ac_mid + 1`
7885 if test $ac_lo -le $ac_mid; then
7889 ac_mid
=`expr 2 '*' $ac_mid + 1`
7891 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7894 echo "$as_me: failed program was:" >&5
7895 sed 's/^/| /' conftest.
$ac_ext >&5
7897 cat >conftest.
$ac_ext <<_ACEOF
7900 cat confdefs.h
>>conftest.
$ac_ext
7901 cat >>conftest.
$ac_ext <<_ACEOF
7902 /* end confdefs.h. */
7903 $ac_includes_default
7907 static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)];
7914 rm -f conftest.
$ac_objext
7915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7916 (eval $ac_compile) 2>conftest.er1
7918 grep -v '^ *+' conftest.er1
>conftest.err
7920 cat conftest.err
>&5
7921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7922 (exit $ac_status); } &&
7923 { ac_try
='test -z "$ac_c_werror_flag"
7924 || test ! -s conftest.err'
7925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7929 (exit $ac_status); }; } &&
7930 { ac_try
='test -s conftest.$ac_objext'
7931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7935 (exit $ac_status); }; }; then
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
7948 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)];
7955 rm -f conftest.
$ac_objext
7956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7957 (eval $ac_compile) 2>conftest.er1
7959 grep -v '^ *+' conftest.er1
>conftest.err
7961 cat conftest.err
>&5
7962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7963 (exit $ac_status); } &&
7964 { ac_try
='test -z "$ac_c_werror_flag"
7965 || test ! -s conftest.err'
7966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7970 (exit $ac_status); }; } &&
7971 { ac_try
='test -s conftest.$ac_objext'
7972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7976 (exit $ac_status); }; }; then
7977 ac_lo
=$ac_mid; break
7979 echo "$as_me: failed program was:" >&5
7980 sed 's/^/| /' conftest.
$ac_ext >&5
7982 ac_hi
=`expr '(' $ac_mid ')' - 1`
7983 if test $ac_mid -le $ac_hi; then
7987 ac_mid
=`expr 2 '*' $ac_mid`
7989 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7992 echo "$as_me: failed program was:" >&5
7993 sed 's/^/| /' conftest.
$ac_ext >&5
7997 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7999 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8000 # Binary search between lo and hi bounds.
8001 while test "x$ac_lo" != "x$ac_hi"; do
8002 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8003 cat >conftest.
$ac_ext <<_ACEOF
8006 cat confdefs.h
>>conftest.
$ac_ext
8007 cat >>conftest.
$ac_ext <<_ACEOF
8008 /* end confdefs.h. */
8009 $ac_includes_default
8013 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
8020 rm -f conftest.
$ac_objext
8021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8022 (eval $ac_compile) 2>conftest.er1
8024 grep -v '^ *+' conftest.er1
>conftest.err
8026 cat conftest.err
>&5
8027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8028 (exit $ac_status); } &&
8029 { ac_try
='test -z "$ac_c_werror_flag"
8030 || test ! -s conftest.err'
8031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8035 (exit $ac_status); }; } &&
8036 { ac_try
='test -s conftest.$ac_objext'
8037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8041 (exit $ac_status); }; }; then
8044 echo "$as_me: failed program was:" >&5
8045 sed 's/^/| /' conftest.
$ac_ext >&5
8047 ac_lo
=`expr '(' $ac_mid ')' + 1`
8049 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8052 ?
*) ac_cv_sizeof_float
=$ac_lo;;
8053 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
8054 See \`config.log' for more details." >&5
8055 echo "$as_me: error: cannot compute sizeof (float), 77
8056 See \`config.log' for more details." >&2;}
8057 { (exit 1); exit 1; }; } ;;
8060 if test "$cross_compiling" = yes; then
8061 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8062 See \`config.log' for more details." >&5
8063 echo "$as_me: error: cannot run test program while cross compiling
8064 See \`config.log' for more details." >&2;}
8065 { (exit 1); exit 1; }; }
8067 cat >conftest.
$ac_ext <<_ACEOF
8070 cat confdefs.h
>>conftest.
$ac_ext
8071 cat >>conftest.
$ac_ext <<_ACEOF
8072 /* end confdefs.h. */
8073 $ac_includes_default
8074 long longval () { return (long) (sizeof (float)); }
8075 unsigned long ulongval () { return (long) (sizeof (float)); }
8082 FILE *f = fopen ("conftest.val", "w");
8085 if (((long) (sizeof (float))) < 0)
8087 long i = longval ();
8088 if (i != ((long) (sizeof (float))))
8090 fprintf (f, "%ld\n", i);
8094 unsigned long i = ulongval ();
8095 if (i != ((long) (sizeof (float))))
8097 fprintf (f, "%lu\n", i);
8099 exit (ferror (f) || fclose (f) != 0);
8105 rm -f conftest
$ac_exeext
8106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8107 (eval $ac_link) 2>&5
8109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8110 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8115 (exit $ac_status); }; }; then
8116 ac_cv_sizeof_float
=`cat conftest.val`
8118 echo "$as_me: program exited with status $ac_status" >&5
8119 echo "$as_me: failed program was:" >&5
8120 sed 's/^/| /' conftest.
$ac_ext >&5
8123 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
8124 See \`config.log' for more details." >&5
8125 echo "$as_me: error: cannot compute sizeof (float), 77
8126 See \`config.log' for more details." >&2;}
8127 { (exit 1); exit 1; }; }
8129 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8134 ac_cv_sizeof_float
=0
8137 echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
8138 echo "${ECHO_T}$ac_cv_sizeof_float" >&6
8139 cat >>confdefs.h
<<_ACEOF
8140 #define SIZEOF_FLOAT $ac_cv_sizeof_float
8144 echo "$as_me:$LINENO: checking for double" >&5
8145 echo $ECHO_N "checking for double... $ECHO_C" >&6
8146 if test "${ac_cv_type_double+set}" = set; then
8147 echo $ECHO_N "(cached) $ECHO_C" >&6
8149 cat >conftest.
$ac_ext <<_ACEOF
8152 cat confdefs.h
>>conftest.
$ac_ext
8153 cat >>conftest.
$ac_ext <<_ACEOF
8154 /* end confdefs.h. */
8155 $ac_includes_default
8161 if (sizeof (double))
8167 rm -f conftest.
$ac_objext
8168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8169 (eval $ac_compile) 2>conftest.er1
8171 grep -v '^ *+' conftest.er1
>conftest.err
8173 cat conftest.err
>&5
8174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8175 (exit $ac_status); } &&
8176 { ac_try
='test -z "$ac_c_werror_flag"
8177 || test ! -s conftest.err'
8178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8182 (exit $ac_status); }; } &&
8183 { ac_try
='test -s conftest.$ac_objext'
8184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8188 (exit $ac_status); }; }; then
8189 ac_cv_type_double
=yes
8191 echo "$as_me: failed program was:" >&5
8192 sed 's/^/| /' conftest.
$ac_ext >&5
8194 ac_cv_type_double
=no
8196 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8198 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
8199 echo "${ECHO_T}$ac_cv_type_double" >&6
8201 echo "$as_me:$LINENO: checking size of double" >&5
8202 echo $ECHO_N "checking size of double... $ECHO_C" >&6
8203 if test "${ac_cv_sizeof_double+set}" = set; then
8204 echo $ECHO_N "(cached) $ECHO_C" >&6
8206 if test "$ac_cv_type_double" = yes; then
8207 # The cast to unsigned long works around a bug in the HP C Compiler
8208 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8209 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8210 # This bug is HP SR number 8606223364.
8211 if test "$cross_compiling" = yes; then
8212 # Depending upon the size, compute the lo and hi bounds.
8213 cat >conftest.
$ac_ext <<_ACEOF
8216 cat confdefs.h
>>conftest.
$ac_ext
8217 cat >>conftest.
$ac_ext <<_ACEOF
8218 /* end confdefs.h. */
8219 $ac_includes_default
8223 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
8230 rm -f conftest.
$ac_objext
8231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8232 (eval $ac_compile) 2>conftest.er1
8234 grep -v '^ *+' conftest.er1
>conftest.err
8236 cat conftest.err
>&5
8237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8238 (exit $ac_status); } &&
8239 { ac_try
='test -z "$ac_c_werror_flag"
8240 || test ! -s conftest.err'
8241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8245 (exit $ac_status); }; } &&
8246 { ac_try
='test -s conftest.$ac_objext'
8247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8251 (exit $ac_status); }; }; then
8254 cat >conftest.
$ac_ext <<_ACEOF
8257 cat confdefs.h
>>conftest.
$ac_ext
8258 cat >>conftest.
$ac_ext <<_ACEOF
8259 /* end confdefs.h. */
8260 $ac_includes_default
8264 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
8271 rm -f conftest.
$ac_objext
8272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8273 (eval $ac_compile) 2>conftest.er1
8275 grep -v '^ *+' conftest.er1
>conftest.err
8277 cat conftest.err
>&5
8278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8279 (exit $ac_status); } &&
8280 { ac_try
='test -z "$ac_c_werror_flag"
8281 || test ! -s conftest.err'
8282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8286 (exit $ac_status); }; } &&
8287 { ac_try
='test -s conftest.$ac_objext'
8288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8292 (exit $ac_status); }; }; then
8293 ac_hi
=$ac_mid; break
8295 echo "$as_me: failed program was:" >&5
8296 sed 's/^/| /' conftest.
$ac_ext >&5
8298 ac_lo
=`expr $ac_mid + 1`
8299 if test $ac_lo -le $ac_mid; then
8303 ac_mid
=`expr 2 '*' $ac_mid + 1`
8305 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8308 echo "$as_me: failed program was:" >&5
8309 sed 's/^/| /' conftest.
$ac_ext >&5
8311 cat >conftest.
$ac_ext <<_ACEOF
8314 cat confdefs.h
>>conftest.
$ac_ext
8315 cat >>conftest.
$ac_ext <<_ACEOF
8316 /* end confdefs.h. */
8317 $ac_includes_default
8321 static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
8328 rm -f conftest.
$ac_objext
8329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8330 (eval $ac_compile) 2>conftest.er1
8332 grep -v '^ *+' conftest.er1
>conftest.err
8334 cat conftest.err
>&5
8335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8336 (exit $ac_status); } &&
8337 { ac_try
='test -z "$ac_c_werror_flag"
8338 || test ! -s conftest.err'
8339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8343 (exit $ac_status); }; } &&
8344 { ac_try
='test -s conftest.$ac_objext'
8345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349 (exit $ac_status); }; }; then
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
8362 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
8369 rm -f conftest.
$ac_objext
8370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8371 (eval $ac_compile) 2>conftest.er1
8373 grep -v '^ *+' conftest.er1
>conftest.err
8375 cat conftest.err
>&5
8376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8377 (exit $ac_status); } &&
8378 { ac_try
='test -z "$ac_c_werror_flag"
8379 || test ! -s conftest.err'
8380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8384 (exit $ac_status); }; } &&
8385 { ac_try
='test -s conftest.$ac_objext'
8386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8390 (exit $ac_status); }; }; then
8391 ac_lo
=$ac_mid; break
8393 echo "$as_me: failed program was:" >&5
8394 sed 's/^/| /' conftest.
$ac_ext >&5
8396 ac_hi
=`expr '(' $ac_mid ')' - 1`
8397 if test $ac_mid -le $ac_hi; then
8401 ac_mid
=`expr 2 '*' $ac_mid`
8403 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8406 echo "$as_me: failed program was:" >&5
8407 sed 's/^/| /' conftest.
$ac_ext >&5
8411 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8413 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8414 # Binary search between lo and hi bounds.
8415 while test "x$ac_lo" != "x$ac_hi"; do
8416 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8417 cat >conftest.
$ac_ext <<_ACEOF
8420 cat confdefs.h
>>conftest.
$ac_ext
8421 cat >>conftest.
$ac_ext <<_ACEOF
8422 /* end confdefs.h. */
8423 $ac_includes_default
8427 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
8434 rm -f conftest.
$ac_objext
8435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8436 (eval $ac_compile) 2>conftest.er1
8438 grep -v '^ *+' conftest.er1
>conftest.err
8440 cat conftest.err
>&5
8441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8442 (exit $ac_status); } &&
8443 { ac_try
='test -z "$ac_c_werror_flag"
8444 || test ! -s conftest.err'
8445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8449 (exit $ac_status); }; } &&
8450 { ac_try
='test -s conftest.$ac_objext'
8451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8455 (exit $ac_status); }; }; then
8458 echo "$as_me: failed program was:" >&5
8459 sed 's/^/| /' conftest.
$ac_ext >&5
8461 ac_lo
=`expr '(' $ac_mid ')' + 1`
8463 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8466 ?
*) ac_cv_sizeof_double
=$ac_lo;;
8467 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
8468 See \`config.log' for more details." >&5
8469 echo "$as_me: error: cannot compute sizeof (double), 77
8470 See \`config.log' for more details." >&2;}
8471 { (exit 1); exit 1; }; } ;;
8474 if test "$cross_compiling" = yes; then
8475 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8476 See \`config.log' for more details." >&5
8477 echo "$as_me: error: cannot run test program while cross compiling
8478 See \`config.log' for more details." >&2;}
8479 { (exit 1); exit 1; }; }
8481 cat >conftest.
$ac_ext <<_ACEOF
8484 cat confdefs.h
>>conftest.
$ac_ext
8485 cat >>conftest.
$ac_ext <<_ACEOF
8486 /* end confdefs.h. */
8487 $ac_includes_default
8488 long longval () { return (long) (sizeof (double)); }
8489 unsigned long ulongval () { return (long) (sizeof (double)); }
8496 FILE *f = fopen ("conftest.val", "w");
8499 if (((long) (sizeof (double))) < 0)
8501 long i = longval ();
8502 if (i != ((long) (sizeof (double))))
8504 fprintf (f, "%ld\n", i);
8508 unsigned long i = ulongval ();
8509 if (i != ((long) (sizeof (double))))
8511 fprintf (f, "%lu\n", i);
8513 exit (ferror (f) || fclose (f) != 0);
8519 rm -f conftest
$ac_exeext
8520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8521 (eval $ac_link) 2>&5
8523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8524 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8529 (exit $ac_status); }; }; then
8530 ac_cv_sizeof_double
=`cat conftest.val`
8532 echo "$as_me: program exited with status $ac_status" >&5
8533 echo "$as_me: failed program was:" >&5
8534 sed 's/^/| /' conftest.
$ac_ext >&5
8537 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
8538 See \`config.log' for more details." >&5
8539 echo "$as_me: error: cannot compute sizeof (double), 77
8540 See \`config.log' for more details." >&2;}
8541 { (exit 1); exit 1; }; }
8543 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8548 ac_cv_sizeof_double
=0
8551 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
8552 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
8553 cat >>confdefs.h
<<_ACEOF
8554 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
8558 echo "$as_me:$LINENO: checking for fpos_t" >&5
8559 echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6
8560 if test "${ac_cv_type_fpos_t+set}" = set; then
8561 echo $ECHO_N "(cached) $ECHO_C" >&6
8563 cat >conftest.
$ac_ext <<_ACEOF
8566 cat confdefs.h
>>conftest.
$ac_ext
8567 cat >>conftest.
$ac_ext <<_ACEOF
8568 /* end confdefs.h. */
8569 $ac_includes_default
8575 if (sizeof (fpos_t))
8581 rm -f conftest.
$ac_objext
8582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8583 (eval $ac_compile) 2>conftest.er1
8585 grep -v '^ *+' conftest.er1
>conftest.err
8587 cat conftest.err
>&5
8588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8589 (exit $ac_status); } &&
8590 { ac_try
='test -z "$ac_c_werror_flag"
8591 || test ! -s conftest.err'
8592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8596 (exit $ac_status); }; } &&
8597 { ac_try
='test -s conftest.$ac_objext'
8598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8602 (exit $ac_status); }; }; then
8603 ac_cv_type_fpos_t
=yes
8605 echo "$as_me: failed program was:" >&5
8606 sed 's/^/| /' conftest.
$ac_ext >&5
8608 ac_cv_type_fpos_t
=no
8610 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8612 echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
8613 echo "${ECHO_T}$ac_cv_type_fpos_t" >&6
8615 echo "$as_me:$LINENO: checking size of fpos_t" >&5
8616 echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6
8617 if test "${ac_cv_sizeof_fpos_t+set}" = set; then
8618 echo $ECHO_N "(cached) $ECHO_C" >&6
8620 if test "$ac_cv_type_fpos_t" = yes; then
8621 # The cast to unsigned long works around a bug in the HP C Compiler
8622 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8623 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8624 # This bug is HP SR number 8606223364.
8625 if test "$cross_compiling" = yes; then
8626 # Depending upon the size, compute the lo and hi bounds.
8627 cat >conftest.
$ac_ext <<_ACEOF
8630 cat confdefs.h
>>conftest.
$ac_ext
8631 cat >>conftest.
$ac_ext <<_ACEOF
8632 /* end confdefs.h. */
8633 $ac_includes_default
8637 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= 0)];
8644 rm -f conftest.
$ac_objext
8645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8646 (eval $ac_compile) 2>conftest.er1
8648 grep -v '^ *+' conftest.er1
>conftest.err
8650 cat conftest.err
>&5
8651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8652 (exit $ac_status); } &&
8653 { ac_try
='test -z "$ac_c_werror_flag"
8654 || test ! -s conftest.err'
8655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8659 (exit $ac_status); }; } &&
8660 { ac_try
='test -s conftest.$ac_objext'
8661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8665 (exit $ac_status); }; }; then
8668 cat >conftest.
$ac_ext <<_ACEOF
8671 cat confdefs.h
>>conftest.
$ac_ext
8672 cat >>conftest.
$ac_ext <<_ACEOF
8673 /* end confdefs.h. */
8674 $ac_includes_default
8678 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)];
8685 rm -f conftest.
$ac_objext
8686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8687 (eval $ac_compile) 2>conftest.er1
8689 grep -v '^ *+' conftest.er1
>conftest.err
8691 cat conftest.err
>&5
8692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8693 (exit $ac_status); } &&
8694 { ac_try
='test -z "$ac_c_werror_flag"
8695 || test ! -s conftest.err'
8696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8700 (exit $ac_status); }; } &&
8701 { ac_try
='test -s conftest.$ac_objext'
8702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8706 (exit $ac_status); }; }; then
8707 ac_hi
=$ac_mid; break
8709 echo "$as_me: failed program was:" >&5
8710 sed 's/^/| /' conftest.
$ac_ext >&5
8712 ac_lo
=`expr $ac_mid + 1`
8713 if test $ac_lo -le $ac_mid; then
8717 ac_mid
=`expr 2 '*' $ac_mid + 1`
8719 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8722 echo "$as_me: failed program was:" >&5
8723 sed 's/^/| /' conftest.
$ac_ext >&5
8725 cat >conftest.
$ac_ext <<_ACEOF
8728 cat confdefs.h
>>conftest.
$ac_ext
8729 cat >>conftest.
$ac_ext <<_ACEOF
8730 /* end confdefs.h. */
8731 $ac_includes_default
8735 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) < 0)];
8742 rm -f conftest.
$ac_objext
8743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8744 (eval $ac_compile) 2>conftest.er1
8746 grep -v '^ *+' conftest.er1
>conftest.err
8748 cat conftest.err
>&5
8749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8750 (exit $ac_status); } &&
8751 { ac_try
='test -z "$ac_c_werror_flag"
8752 || test ! -s conftest.err'
8753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8757 (exit $ac_status); }; } &&
8758 { ac_try
='test -s conftest.$ac_objext'
8759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8763 (exit $ac_status); }; }; then
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
8776 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= $ac_mid)];
8783 rm -f conftest.
$ac_objext
8784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8785 (eval $ac_compile) 2>conftest.er1
8787 grep -v '^ *+' conftest.er1
>conftest.err
8789 cat conftest.err
>&5
8790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8791 (exit $ac_status); } &&
8792 { ac_try
='test -z "$ac_c_werror_flag"
8793 || test ! -s conftest.err'
8794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8798 (exit $ac_status); }; } &&
8799 { ac_try
='test -s conftest.$ac_objext'
8800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8804 (exit $ac_status); }; }; then
8805 ac_lo
=$ac_mid; break
8807 echo "$as_me: failed program was:" >&5
8808 sed 's/^/| /' conftest.
$ac_ext >&5
8810 ac_hi
=`expr '(' $ac_mid ')' - 1`
8811 if test $ac_mid -le $ac_hi; then
8815 ac_mid
=`expr 2 '*' $ac_mid`
8817 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8820 echo "$as_me: failed program was:" >&5
8821 sed 's/^/| /' conftest.
$ac_ext >&5
8825 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8827 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8828 # Binary search between lo and hi bounds.
8829 while test "x$ac_lo" != "x$ac_hi"; do
8830 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8831 cat >conftest.
$ac_ext <<_ACEOF
8834 cat confdefs.h
>>conftest.
$ac_ext
8835 cat >>conftest.
$ac_ext <<_ACEOF
8836 /* end confdefs.h. */
8837 $ac_includes_default
8841 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)];
8848 rm -f conftest.
$ac_objext
8849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8850 (eval $ac_compile) 2>conftest.er1
8852 grep -v '^ *+' conftest.er1
>conftest.err
8854 cat conftest.err
>&5
8855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8856 (exit $ac_status); } &&
8857 { ac_try
='test -z "$ac_c_werror_flag"
8858 || test ! -s conftest.err'
8859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8863 (exit $ac_status); }; } &&
8864 { ac_try
='test -s conftest.$ac_objext'
8865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8869 (exit $ac_status); }; }; then
8872 echo "$as_me: failed program was:" >&5
8873 sed 's/^/| /' conftest.
$ac_ext >&5
8875 ac_lo
=`expr '(' $ac_mid ')' + 1`
8877 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8880 ?
*) ac_cv_sizeof_fpos_t
=$ac_lo;;
8881 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77
8882 See \`config.log' for more details." >&5
8883 echo "$as_me: error: cannot compute sizeof (fpos_t), 77
8884 See \`config.log' for more details." >&2;}
8885 { (exit 1); exit 1; }; } ;;
8888 if test "$cross_compiling" = yes; then
8889 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8890 See \`config.log' for more details." >&5
8891 echo "$as_me: error: cannot run test program while cross compiling
8892 See \`config.log' for more details." >&2;}
8893 { (exit 1); exit 1; }; }
8895 cat >conftest.
$ac_ext <<_ACEOF
8898 cat confdefs.h
>>conftest.
$ac_ext
8899 cat >>conftest.
$ac_ext <<_ACEOF
8900 /* end confdefs.h. */
8901 $ac_includes_default
8902 long longval () { return (long) (sizeof (fpos_t)); }
8903 unsigned long ulongval () { return (long) (sizeof (fpos_t)); }
8910 FILE *f = fopen ("conftest.val", "w");
8913 if (((long) (sizeof (fpos_t))) < 0)
8915 long i = longval ();
8916 if (i != ((long) (sizeof (fpos_t))))
8918 fprintf (f, "%ld\n", i);
8922 unsigned long i = ulongval ();
8923 if (i != ((long) (sizeof (fpos_t))))
8925 fprintf (f, "%lu\n", i);
8927 exit (ferror (f) || fclose (f) != 0);
8933 rm -f conftest
$ac_exeext
8934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8935 (eval $ac_link) 2>&5
8937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8938 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8943 (exit $ac_status); }; }; then
8944 ac_cv_sizeof_fpos_t
=`cat conftest.val`
8946 echo "$as_me: program exited with status $ac_status" >&5
8947 echo "$as_me: failed program was:" >&5
8948 sed 's/^/| /' conftest.
$ac_ext >&5
8951 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77
8952 See \`config.log' for more details." >&5
8953 echo "$as_me: error: cannot compute sizeof (fpos_t), 77
8954 See \`config.log' for more details." >&2;}
8955 { (exit 1); exit 1; }; }
8957 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8962 ac_cv_sizeof_fpos_t
=0
8965 echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
8966 echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6
8967 cat >>confdefs.h
<<_ACEOF
8968 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
8973 echo "$as_me:$LINENO: checking for long long support" >&5
8974 echo $ECHO_N "checking for long long support... $ECHO_C" >&6
8976 cat >conftest.
$ac_ext <<_ACEOF
8979 cat confdefs.h
>>conftest.
$ac_ext
8980 cat >>conftest.
$ac_ext <<_ACEOF
8981 /* end confdefs.h. */
8986 long long x; x = (long long)0;
8991 rm -f conftest.
$ac_objext
8992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8993 (eval $ac_compile) 2>conftest.er1
8995 grep -v '^ *+' conftest.er1
>conftest.err
8997 cat conftest.err
>&5
8998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8999 (exit $ac_status); } &&
9000 { ac_try
='test -z "$ac_c_werror_flag"
9001 || test ! -s conftest.err'
9002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9006 (exit $ac_status); }; } &&
9007 { ac_try
='test -s conftest.$ac_objext'
9008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9012 (exit $ac_status); }; }; then
9015 cat >>confdefs.h
<<\_ACEOF
9016 #define HAVE_LONG_LONG 1
9022 echo "$as_me: failed program was:" >&5
9023 sed 's/^/| /' conftest.
$ac_ext >&5
9026 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9027 echo "$as_me:$LINENO: result: $have_long_long" >&5
9028 echo "${ECHO_T}$have_long_long" >&6
9029 if test "$have_long_long" = yes ; then
9030 echo "$as_me:$LINENO: checking for long long" >&5
9031 echo $ECHO_N "checking for long long... $ECHO_C" >&6
9032 if test "${ac_cv_type_long_long+set}" = set; then
9033 echo $ECHO_N "(cached) $ECHO_C" >&6
9035 cat >conftest.
$ac_ext <<_ACEOF
9038 cat confdefs.h
>>conftest.
$ac_ext
9039 cat >>conftest.
$ac_ext <<_ACEOF
9040 /* end confdefs.h. */
9041 $ac_includes_default
9045 if ((long long *) 0)
9047 if (sizeof (long long))
9053 rm -f conftest.
$ac_objext
9054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9055 (eval $ac_compile) 2>conftest.er1
9057 grep -v '^ *+' conftest.er1
>conftest.err
9059 cat conftest.err
>&5
9060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9061 (exit $ac_status); } &&
9062 { ac_try
='test -z "$ac_c_werror_flag"
9063 || test ! -s conftest.err'
9064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9068 (exit $ac_status); }; } &&
9069 { ac_try
='test -s conftest.$ac_objext'
9070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9074 (exit $ac_status); }; }; then
9075 ac_cv_type_long_long
=yes
9077 echo "$as_me: failed program was:" >&5
9078 sed 's/^/| /' conftest.
$ac_ext >&5
9080 ac_cv_type_long_long
=no
9082 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9084 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
9085 echo "${ECHO_T}$ac_cv_type_long_long" >&6
9087 echo "$as_me:$LINENO: checking size of long long" >&5
9088 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
9089 if test "${ac_cv_sizeof_long_long+set}" = set; then
9090 echo $ECHO_N "(cached) $ECHO_C" >&6
9092 if test "$ac_cv_type_long_long" = yes; then
9093 # The cast to unsigned long works around a bug in the HP C Compiler
9094 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9095 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9096 # This bug is HP SR number 8606223364.
9097 if test "$cross_compiling" = yes; then
9098 # Depending upon the size, compute the lo and hi bounds.
9099 cat >conftest.
$ac_ext <<_ACEOF
9102 cat confdefs.h
>>conftest.
$ac_ext
9103 cat >>conftest.
$ac_ext <<_ACEOF
9104 /* end confdefs.h. */
9105 $ac_includes_default
9109 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
9116 rm -f conftest.
$ac_objext
9117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9118 (eval $ac_compile) 2>conftest.er1
9120 grep -v '^ *+' conftest.er1
>conftest.err
9122 cat conftest.err
>&5
9123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9124 (exit $ac_status); } &&
9125 { ac_try
='test -z "$ac_c_werror_flag"
9126 || test ! -s conftest.err'
9127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9131 (exit $ac_status); }; } &&
9132 { ac_try
='test -s conftest.$ac_objext'
9133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9137 (exit $ac_status); }; }; then
9140 cat >conftest.
$ac_ext <<_ACEOF
9143 cat confdefs.h
>>conftest.
$ac_ext
9144 cat >>conftest.
$ac_ext <<_ACEOF
9145 /* end confdefs.h. */
9146 $ac_includes_default
9150 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
9157 rm -f conftest.
$ac_objext
9158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9159 (eval $ac_compile) 2>conftest.er1
9161 grep -v '^ *+' conftest.er1
>conftest.err
9163 cat conftest.err
>&5
9164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9165 (exit $ac_status); } &&
9166 { ac_try
='test -z "$ac_c_werror_flag"
9167 || test ! -s conftest.err'
9168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9172 (exit $ac_status); }; } &&
9173 { ac_try
='test -s conftest.$ac_objext'
9174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9178 (exit $ac_status); }; }; then
9179 ac_hi
=$ac_mid; break
9181 echo "$as_me: failed program was:" >&5
9182 sed 's/^/| /' conftest.
$ac_ext >&5
9184 ac_lo
=`expr $ac_mid + 1`
9185 if test $ac_lo -le $ac_mid; then
9189 ac_mid
=`expr 2 '*' $ac_mid + 1`
9191 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9194 echo "$as_me: failed program was:" >&5
9195 sed 's/^/| /' conftest.
$ac_ext >&5
9197 cat >conftest.
$ac_ext <<_ACEOF
9200 cat confdefs.h
>>conftest.
$ac_ext
9201 cat >>conftest.
$ac_ext <<_ACEOF
9202 /* end confdefs.h. */
9203 $ac_includes_default
9207 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
9214 rm -f conftest.
$ac_objext
9215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9216 (eval $ac_compile) 2>conftest.er1
9218 grep -v '^ *+' conftest.er1
>conftest.err
9220 cat conftest.err
>&5
9221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9222 (exit $ac_status); } &&
9223 { ac_try
='test -z "$ac_c_werror_flag"
9224 || test ! -s conftest.err'
9225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9229 (exit $ac_status); }; } &&
9230 { ac_try
='test -s conftest.$ac_objext'
9231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9235 (exit $ac_status); }; }; then
9238 cat >conftest.
$ac_ext <<_ACEOF
9241 cat confdefs.h
>>conftest.
$ac_ext
9242 cat >>conftest.
$ac_ext <<_ACEOF
9243 /* end confdefs.h. */
9244 $ac_includes_default
9248 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
9255 rm -f conftest.
$ac_objext
9256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9257 (eval $ac_compile) 2>conftest.er1
9259 grep -v '^ *+' conftest.er1
>conftest.err
9261 cat conftest.err
>&5
9262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9263 (exit $ac_status); } &&
9264 { ac_try
='test -z "$ac_c_werror_flag"
9265 || test ! -s conftest.err'
9266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9270 (exit $ac_status); }; } &&
9271 { ac_try
='test -s conftest.$ac_objext'
9272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9276 (exit $ac_status); }; }; then
9277 ac_lo
=$ac_mid; break
9279 echo "$as_me: failed program was:" >&5
9280 sed 's/^/| /' conftest.
$ac_ext >&5
9282 ac_hi
=`expr '(' $ac_mid ')' - 1`
9283 if test $ac_mid -le $ac_hi; then
9287 ac_mid
=`expr 2 '*' $ac_mid`
9289 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9292 echo "$as_me: failed program was:" >&5
9293 sed 's/^/| /' conftest.
$ac_ext >&5
9297 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9299 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9300 # Binary search between lo and hi bounds.
9301 while test "x$ac_lo" != "x$ac_hi"; do
9302 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9303 cat >conftest.
$ac_ext <<_ACEOF
9306 cat confdefs.h
>>conftest.
$ac_ext
9307 cat >>conftest.
$ac_ext <<_ACEOF
9308 /* end confdefs.h. */
9309 $ac_includes_default
9313 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
9320 rm -f conftest.
$ac_objext
9321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9322 (eval $ac_compile) 2>conftest.er1
9324 grep -v '^ *+' conftest.er1
>conftest.err
9326 cat conftest.err
>&5
9327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9328 (exit $ac_status); } &&
9329 { ac_try
='test -z "$ac_c_werror_flag"
9330 || test ! -s conftest.err'
9331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9335 (exit $ac_status); }; } &&
9336 { ac_try
='test -s conftest.$ac_objext'
9337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9341 (exit $ac_status); }; }; then
9344 echo "$as_me: failed program was:" >&5
9345 sed 's/^/| /' conftest.
$ac_ext >&5
9347 ac_lo
=`expr '(' $ac_mid ')' + 1`
9349 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9352 ?
*) ac_cv_sizeof_long_long
=$ac_lo;;
9353 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
9354 See \`config.log' for more details." >&5
9355 echo "$as_me: error: cannot compute sizeof (long long), 77
9356 See \`config.log' for more details." >&2;}
9357 { (exit 1); exit 1; }; } ;;
9360 if test "$cross_compiling" = yes; then
9361 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9362 See \`config.log' for more details." >&5
9363 echo "$as_me: error: cannot run test program while cross compiling
9364 See \`config.log' for more details." >&2;}
9365 { (exit 1); exit 1; }; }
9367 cat >conftest.
$ac_ext <<_ACEOF
9370 cat confdefs.h
>>conftest.
$ac_ext
9371 cat >>conftest.
$ac_ext <<_ACEOF
9372 /* end confdefs.h. */
9373 $ac_includes_default
9374 long longval () { return (long) (sizeof (long long)); }
9375 unsigned long ulongval () { return (long) (sizeof (long long)); }
9382 FILE *f = fopen ("conftest.val", "w");
9385 if (((long) (sizeof (long long))) < 0)
9387 long i = longval ();
9388 if (i != ((long) (sizeof (long long))))
9390 fprintf (f, "%ld\n", i);
9394 unsigned long i = ulongval ();
9395 if (i != ((long) (sizeof (long long))))
9397 fprintf (f, "%lu\n", i);
9399 exit (ferror (f) || fclose (f) != 0);
9405 rm -f conftest
$ac_exeext
9406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9407 (eval $ac_link) 2>&5
9409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9410 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9415 (exit $ac_status); }; }; then
9416 ac_cv_sizeof_long_long
=`cat conftest.val`
9418 echo "$as_me: program exited with status $ac_status" >&5
9419 echo "$as_me: failed program was:" >&5
9420 sed 's/^/| /' conftest.
$ac_ext >&5
9423 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
9424 See \`config.log' for more details." >&5
9425 echo "$as_me: error: cannot compute sizeof (long long), 77
9426 See \`config.log' for more details." >&2;}
9427 { (exit 1); exit 1; }; }
9429 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9434 ac_cv_sizeof_long_long
=0
9437 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
9438 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
9439 cat >>confdefs.h
<<_ACEOF
9440 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
9446 echo "$as_me:$LINENO: checking for uintptr_t support" >&5
9447 echo $ECHO_N "checking for uintptr_t support... $ECHO_C" >&6
9449 cat >conftest.
$ac_ext <<_ACEOF
9452 cat confdefs.h
>>conftest.
$ac_ext
9453 cat >>conftest.
$ac_ext <<_ACEOF
9454 /* end confdefs.h. */
9459 uintptr_t x; x = (uintptr_t)0;
9464 rm -f conftest.
$ac_objext
9465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9466 (eval $ac_compile) 2>conftest.er1
9468 grep -v '^ *+' conftest.er1
>conftest.err
9470 cat conftest.err
>&5
9471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9472 (exit $ac_status); } &&
9473 { ac_try
='test -z "$ac_c_werror_flag"
9474 || test ! -s conftest.err'
9475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9479 (exit $ac_status); }; } &&
9480 { ac_try
='test -s conftest.$ac_objext'
9481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9485 (exit $ac_status); }; }; then
9488 cat >>confdefs.h
<<\_ACEOF
9489 #define HAVE_UINTPTR_T 1
9495 echo "$as_me: failed program was:" >&5
9496 sed 's/^/| /' conftest.
$ac_ext >&5
9499 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9500 echo "$as_me:$LINENO: result: $have_uintptr_t" >&5
9501 echo "${ECHO_T}$have_uintptr_t" >&6
9502 if test "$have_uintptr_t" = yes ; then
9503 echo "$as_me:$LINENO: checking for uintptr_t" >&5
9504 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
9505 if test "${ac_cv_type_uintptr_t+set}" = set; then
9506 echo $ECHO_N "(cached) $ECHO_C" >&6
9508 cat >conftest.
$ac_ext <<_ACEOF
9511 cat confdefs.h
>>conftest.
$ac_ext
9512 cat >>conftest.
$ac_ext <<_ACEOF
9513 /* end confdefs.h. */
9514 $ac_includes_default
9518 if ((uintptr_t *) 0)
9520 if (sizeof (uintptr_t))
9526 rm -f conftest.
$ac_objext
9527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9528 (eval $ac_compile) 2>conftest.er1
9530 grep -v '^ *+' conftest.er1
>conftest.err
9532 cat conftest.err
>&5
9533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9534 (exit $ac_status); } &&
9535 { ac_try
='test -z "$ac_c_werror_flag"
9536 || test ! -s conftest.err'
9537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9541 (exit $ac_status); }; } &&
9542 { ac_try
='test -s conftest.$ac_objext'
9543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9547 (exit $ac_status); }; }; then
9548 ac_cv_type_uintptr_t
=yes
9550 echo "$as_me: failed program was:" >&5
9551 sed 's/^/| /' conftest.
$ac_ext >&5
9553 ac_cv_type_uintptr_t
=no
9555 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9557 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
9558 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
9560 echo "$as_me:$LINENO: checking size of uintptr_t" >&5
9561 echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6
9562 if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
9563 echo $ECHO_N "(cached) $ECHO_C" >&6
9565 if test "$ac_cv_type_uintptr_t" = yes; then
9566 # The cast to unsigned long works around a bug in the HP C Compiler
9567 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9568 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9569 # This bug is HP SR number 8606223364.
9570 if test "$cross_compiling" = yes; then
9571 # Depending upon the size, compute the lo and hi bounds.
9572 cat >conftest.
$ac_ext <<_ACEOF
9575 cat confdefs.h
>>conftest.
$ac_ext
9576 cat >>conftest.
$ac_ext <<_ACEOF
9577 /* end confdefs.h. */
9578 $ac_includes_default
9582 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= 0)];
9589 rm -f conftest.
$ac_objext
9590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9591 (eval $ac_compile) 2>conftest.er1
9593 grep -v '^ *+' conftest.er1
>conftest.err
9595 cat conftest.err
>&5
9596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9597 (exit $ac_status); } &&
9598 { ac_try
='test -z "$ac_c_werror_flag"
9599 || test ! -s conftest.err'
9600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9604 (exit $ac_status); }; } &&
9605 { ac_try
='test -s conftest.$ac_objext'
9606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9610 (exit $ac_status); }; }; then
9613 cat >conftest.
$ac_ext <<_ACEOF
9616 cat confdefs.h
>>conftest.
$ac_ext
9617 cat >>conftest.
$ac_ext <<_ACEOF
9618 /* end confdefs.h. */
9619 $ac_includes_default
9623 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)];
9630 rm -f conftest.
$ac_objext
9631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9632 (eval $ac_compile) 2>conftest.er1
9634 grep -v '^ *+' conftest.er1
>conftest.err
9636 cat conftest.err
>&5
9637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9638 (exit $ac_status); } &&
9639 { ac_try
='test -z "$ac_c_werror_flag"
9640 || test ! -s conftest.err'
9641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9645 (exit $ac_status); }; } &&
9646 { ac_try
='test -s conftest.$ac_objext'
9647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9651 (exit $ac_status); }; }; then
9652 ac_hi
=$ac_mid; break
9654 echo "$as_me: failed program was:" >&5
9655 sed 's/^/| /' conftest.
$ac_ext >&5
9657 ac_lo
=`expr $ac_mid + 1`
9658 if test $ac_lo -le $ac_mid; then
9662 ac_mid
=`expr 2 '*' $ac_mid + 1`
9664 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9667 echo "$as_me: failed program was:" >&5
9668 sed 's/^/| /' conftest.
$ac_ext >&5
9670 cat >conftest.
$ac_ext <<_ACEOF
9673 cat confdefs.h
>>conftest.
$ac_ext
9674 cat >>conftest.
$ac_ext <<_ACEOF
9675 /* end confdefs.h. */
9676 $ac_includes_default
9680 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) < 0)];
9687 rm -f conftest.
$ac_objext
9688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9689 (eval $ac_compile) 2>conftest.er1
9691 grep -v '^ *+' conftest.er1
>conftest.err
9693 cat conftest.err
>&5
9694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9695 (exit $ac_status); } &&
9696 { ac_try
='test -z "$ac_c_werror_flag"
9697 || test ! -s conftest.err'
9698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9702 (exit $ac_status); }; } &&
9703 { ac_try
='test -s conftest.$ac_objext'
9704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9708 (exit $ac_status); }; }; then
9711 cat >conftest.
$ac_ext <<_ACEOF
9714 cat confdefs.h
>>conftest.
$ac_ext
9715 cat >>conftest.
$ac_ext <<_ACEOF
9716 /* end confdefs.h. */
9717 $ac_includes_default
9721 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= $ac_mid)];
9728 rm -f conftest.
$ac_objext
9729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9730 (eval $ac_compile) 2>conftest.er1
9732 grep -v '^ *+' conftest.er1
>conftest.err
9734 cat conftest.err
>&5
9735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9736 (exit $ac_status); } &&
9737 { ac_try
='test -z "$ac_c_werror_flag"
9738 || test ! -s conftest.err'
9739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9743 (exit $ac_status); }; } &&
9744 { ac_try
='test -s conftest.$ac_objext'
9745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9749 (exit $ac_status); }; }; then
9750 ac_lo
=$ac_mid; break
9752 echo "$as_me: failed program was:" >&5
9753 sed 's/^/| /' conftest.
$ac_ext >&5
9755 ac_hi
=`expr '(' $ac_mid ')' - 1`
9756 if test $ac_mid -le $ac_hi; then
9760 ac_mid
=`expr 2 '*' $ac_mid`
9762 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9765 echo "$as_me: failed program was:" >&5
9766 sed 's/^/| /' conftest.
$ac_ext >&5
9770 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9772 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9773 # Binary search between lo and hi bounds.
9774 while test "x$ac_lo" != "x$ac_hi"; do
9775 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9776 cat >conftest.
$ac_ext <<_ACEOF
9779 cat confdefs.h
>>conftest.
$ac_ext
9780 cat >>conftest.
$ac_ext <<_ACEOF
9781 /* end confdefs.h. */
9782 $ac_includes_default
9786 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)];
9793 rm -f conftest.
$ac_objext
9794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9795 (eval $ac_compile) 2>conftest.er1
9797 grep -v '^ *+' conftest.er1
>conftest.err
9799 cat conftest.err
>&5
9800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9801 (exit $ac_status); } &&
9802 { ac_try
='test -z "$ac_c_werror_flag"
9803 || test ! -s conftest.err'
9804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9808 (exit $ac_status); }; } &&
9809 { ac_try
='test -s conftest.$ac_objext'
9810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9814 (exit $ac_status); }; }; then
9817 echo "$as_me: failed program was:" >&5
9818 sed 's/^/| /' conftest.
$ac_ext >&5
9820 ac_lo
=`expr '(' $ac_mid ')' + 1`
9822 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9825 ?
*) ac_cv_sizeof_uintptr_t
=$ac_lo;;
9826 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77
9827 See \`config.log' for more details." >&5
9828 echo "$as_me: error: cannot compute sizeof (uintptr_t), 77
9829 See \`config.log' for more details." >&2;}
9830 { (exit 1); exit 1; }; } ;;
9833 if test "$cross_compiling" = yes; then
9834 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9835 See \`config.log' for more details." >&5
9836 echo "$as_me: error: cannot run test program while cross compiling
9837 See \`config.log' for more details." >&2;}
9838 { (exit 1); exit 1; }; }
9840 cat >conftest.
$ac_ext <<_ACEOF
9843 cat confdefs.h
>>conftest.
$ac_ext
9844 cat >>conftest.
$ac_ext <<_ACEOF
9845 /* end confdefs.h. */
9846 $ac_includes_default
9847 long longval () { return (long) (sizeof (uintptr_t)); }
9848 unsigned long ulongval () { return (long) (sizeof (uintptr_t)); }
9855 FILE *f = fopen ("conftest.val", "w");
9858 if (((long) (sizeof (uintptr_t))) < 0)
9860 long i = longval ();
9861 if (i != ((long) (sizeof (uintptr_t))))
9863 fprintf (f, "%ld\n", i);
9867 unsigned long i = ulongval ();
9868 if (i != ((long) (sizeof (uintptr_t))))
9870 fprintf (f, "%lu\n", i);
9872 exit (ferror (f) || fclose (f) != 0);
9878 rm -f conftest
$ac_exeext
9879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9880 (eval $ac_link) 2>&5
9882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9883 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9888 (exit $ac_status); }; }; then
9889 ac_cv_sizeof_uintptr_t
=`cat conftest.val`
9891 echo "$as_me: program exited with status $ac_status" >&5
9892 echo "$as_me: failed program was:" >&5
9893 sed 's/^/| /' conftest.
$ac_ext >&5
9896 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77
9897 See \`config.log' for more details." >&5
9898 echo "$as_me: error: cannot compute sizeof (uintptr_t), 77
9899 See \`config.log' for more details." >&2;}
9900 { (exit 1); exit 1; }; }
9902 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9907 ac_cv_sizeof_uintptr_t
=0
9910 echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
9911 echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6
9912 cat >>confdefs.h
<<_ACEOF
9913 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
9919 # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>.
9920 echo "$as_me:$LINENO: checking size of off_t" >&5
9921 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
9922 if test "${ac_cv_sizeof_off_t+set}" = set; then
9923 echo $ECHO_N "(cached) $ECHO_C" >&6
9925 if test "$cross_compiling" = yes; then
9926 ac_cv_sizeof_off_t
=4
9928 cat >conftest.
$ac_ext <<_ACEOF
9931 cat confdefs.h
>>conftest.
$ac_ext
9932 cat >>conftest.
$ac_ext <<_ACEOF
9933 /* end confdefs.h. */
9935 #include <sys/types.h>
9938 FILE *f=fopen("conftestval", "w");
9940 fprintf(f, "%d\n", sizeof(off_t));
9944 rm -f conftest
$ac_exeext
9945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9946 (eval $ac_link) 2>&5
9948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9949 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9954 (exit $ac_status); }; }; then
9955 ac_cv_sizeof_off_t
=`cat conftestval`
9957 echo "$as_me: program exited with status $ac_status" >&5
9958 echo "$as_me: failed program was:" >&5
9959 sed 's/^/| /' conftest.
$ac_ext >&5
9962 ac_cv_sizeof_off_t
=0
9964 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9969 echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
9970 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
9972 cat >>confdefs.h
<<_ACEOF
9973 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
9977 echo "$as_me:$LINENO: checking whether to enable large file support" >&5
9978 echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6
9979 if test "$have_long_long" = yes -a \
9980 "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
9981 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
9983 cat >>confdefs.h
<<\_ACEOF
9984 #define HAVE_LARGEFILE_SUPPORT 1
9987 echo "$as_me:$LINENO: result: yes" >&5
9988 echo "${ECHO_T}yes" >&6
9990 echo "$as_me:$LINENO: result: no" >&5
9991 echo "${ECHO_T}no" >&6
9994 # AC_CHECK_SIZEOF() doesn't include <time.h>.
9995 echo "$as_me:$LINENO: checking size of time_t" >&5
9996 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6
9997 if test "${ac_cv_sizeof_time_t+set}" = set; then
9998 echo $ECHO_N "(cached) $ECHO_C" >&6
10000 if test "$cross_compiling" = yes; then
10001 ac_cv_sizeof_time_t
=4
10003 cat >conftest.
$ac_ext <<_ACEOF
10006 cat confdefs.h
>>conftest.
$ac_ext
10007 cat >>conftest.
$ac_ext <<_ACEOF
10008 /* end confdefs.h. */
10013 FILE *f=fopen("conftestval", "w");
10015 fprintf(f, "%d\n", sizeof(time_t));
10019 rm -f conftest
$ac_exeext
10020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10021 (eval $ac_link) 2>&5
10023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10024 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10026 (eval $ac_try) 2>&5
10028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10029 (exit $ac_status); }; }; then
10030 ac_cv_sizeof_time_t
=`cat conftestval`
10032 echo "$as_me: program exited with status $ac_status" >&5
10033 echo "$as_me: failed program was:" >&5
10034 sed 's/^/| /' conftest.
$ac_ext >&5
10036 ( exit $ac_status )
10037 ac_cv_sizeof_time_t
=0
10039 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10044 echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
10045 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6
10047 cat >>confdefs.h
<<_ACEOF
10048 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
10053 # if have pthread_t then define SIZEOF_PTHREAD_T
10055 if test "$ac_cv_kpthread" = "yes"
10056 then CC
="$CC -Kpthread"
10057 elif test "$ac_cv_kthread" = "yes"
10058 then CC
="$CC -Kthread"
10059 elif test "$ac_cv_pthread" = "yes"
10060 then CC
="$CC -pthread"
10062 echo "$as_me:$LINENO: checking for pthread_t" >&5
10063 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6
10065 cat >conftest.
$ac_ext <<_ACEOF
10068 cat confdefs.h
>>conftest.
$ac_ext
10069 cat >>conftest.
$ac_ext <<_ACEOF
10070 /* end confdefs.h. */
10071 #include <pthread.h>
10075 pthread_t x; x = *(pthread_t*)0;
10080 rm -f conftest.
$ac_objext
10081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10082 (eval $ac_compile) 2>conftest.er1
10084 grep -v '^ *+' conftest.er1
>conftest.err
10086 cat conftest.err
>&5
10087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10088 (exit $ac_status); } &&
10089 { ac_try
='test -z "$ac_c_werror_flag"
10090 || test ! -s conftest.err'
10091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10092 (eval $ac_try) 2>&5
10094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10095 (exit $ac_status); }; } &&
10096 { ac_try
='test -s conftest.$ac_objext'
10097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10098 (eval $ac_try) 2>&5
10100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10101 (exit $ac_status); }; }; then
10104 echo "$as_me: failed program was:" >&5
10105 sed 's/^/| /' conftest.
$ac_ext >&5
10108 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10109 echo "$as_me:$LINENO: result: $have_pthread_t" >&5
10110 echo "${ECHO_T}$have_pthread_t" >&6
10111 if test "$have_pthread_t" = yes ; then
10112 # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
10113 echo "$as_me:$LINENO: checking size of pthread_t" >&5
10114 echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6
10115 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
10116 echo $ECHO_N "(cached) $ECHO_C" >&6
10118 if test "$cross_compiling" = yes; then
10119 ac_cv_sizeof_pthread_t
=4
10121 cat >conftest.
$ac_ext <<_ACEOF
10124 cat confdefs.h
>>conftest.
$ac_ext
10125 cat >>conftest.
$ac_ext <<_ACEOF
10126 /* end confdefs.h. */
10128 #include <pthread.h>
10131 FILE *f=fopen("conftestval", "w");
10133 fprintf(f, "%d\n", sizeof(pthread_t));
10137 rm -f conftest
$ac_exeext
10138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10139 (eval $ac_link) 2>&5
10141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10142 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10144 (eval $ac_try) 2>&5
10146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10147 (exit $ac_status); }; }; then
10148 ac_cv_sizeof_pthread_t
=`cat conftestval`
10150 echo "$as_me: program exited with status $ac_status" >&5
10151 echo "$as_me: failed program was:" >&5
10152 sed 's/^/| /' conftest.
$ac_ext >&5
10154 ( exit $ac_status )
10155 ac_cv_sizeof_pthread_t
=0
10157 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10162 echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
10163 echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6
10165 cat >>confdefs.h
<<_ACEOF
10166 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
10172 echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5
10173 echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6
10174 # Check whether --enable-toolbox-glue or --disable-toolbox-glue was given.
10175 if test "${enable_toolbox_glue+set}" = set; then
10176 enableval
="$enable_toolbox_glue"
10180 if test -z "$enable_toolbox_glue"
10182 case $ac_sys_system/$ac_sys_release in
10184 enable_toolbox_glue
="yes";;
10186 enable_toolbox_glue
="no";;
10189 case "$enable_toolbox_glue" in
10191 extra_machdep_objs
="Python/mactoolboxglue.o"
10192 extra_undefs
="-u _PyMac_Error"
10194 cat >>confdefs.h
<<\_ACEOF
10195 #define USE_TOOLBOX_OBJECT_GLUE 1
10200 extra_machdep_objs
=""
10204 echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5
10205 echo "${ECHO_T}$enable_toolbox_glue" >&6
10208 case $ac_sys_system/$ac_sys_release in
10209 Darwin
/[01234567].
*)
10210 OTHER_LIBTOOL_OPT
="-prebind -seg1addr 0x10000000"
10213 OTHER_LIBTOOL_OPT
=""
10218 case $ac_sys_system/$ac_sys_release in
10219 Darwin
/[01234567].
*)
10220 LIBTOOL_CRUFT
="-framework System -lcc_dynamic -arch_only ppc"
10221 LIBTOOL_CRUFT
=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10222 LIBTOOL_CRUFT
=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
10224 gcc_version
=`gcc -v 2>&1 | grep version | cut -d\ -f3`
10225 if test ${gcc_version} '<' 4.0
10227 LIBTOOL_CRUFT
="-lcc_dynamic"
10231 LIBTOOL_CRUFT
=$LIBTOOL_CRUFT' -lSystem -lSystemStubs -arch_only ppc'
10232 LIBTOOL_CRUFT
=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10233 LIBTOOL_CRUFT
=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
10236 echo "$as_me:$LINENO: checking for --enable-framework" >&5
10237 echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6
10238 if test "$enable_framework"
10240 BASECFLAGS
="$BASECFLAGS -fno-common -dynamic"
10241 # -F. is needed to allow linking to the framework while
10242 # in the build location.
10244 cat >>confdefs.h
<<\_ACEOF
10245 #define WITH_NEXT_FRAMEWORK 1
10248 echo "$as_me:$LINENO: result: yes" >&5
10249 echo "${ECHO_T}yes" >&6
10251 echo "$as_me:$LINENO: result: no" >&5
10252 echo "${ECHO_T}no" >&6
10255 echo "$as_me:$LINENO: checking for dyld" >&5
10256 echo $ECHO_N "checking for dyld... $ECHO_C" >&6
10257 case $ac_sys_system/$ac_sys_release in
10260 cat >>confdefs.h
<<\_ACEOF
10261 #define WITH_DYLD 1
10264 echo "$as_me:$LINENO: result: always on for Darwin" >&5
10265 echo "${ECHO_T}always on for Darwin" >&6
10268 echo "$as_me:$LINENO: result: no" >&5
10269 echo "${ECHO_T}no" >&6
10273 # Set info about shared libraries.
10279 # SO is the extension of shared libraries `(including the dot!)
10280 # -- usually .so, .sl on HP-UX, .dll on Cygwin
10281 echo "$as_me:$LINENO: checking SO" >&5
10282 echo $ECHO_N "checking SO... $ECHO_C" >&6
10285 case $ac_sys_system in
10291 # this might also be a termcap variable, see #610332
10293 echo '====================================================================='
10295 echo '+ WARNING: You have set SO in your environment. +'
10296 echo '+ Do you really mean to change the extension for shared libraries? +'
10297 echo '+ Continuing in 10 seconds to let you to ponder. +'
10299 echo '====================================================================='
10302 echo "$as_me:$LINENO: result: $SO" >&5
10303 echo "${ECHO_T}$SO" >&6
10304 # LDSHARED is the ld *command* used to create shared library
10305 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
10306 # (Shared libraries in this instance are shared modules to be loaded into
10307 # Python, as opposed to building Python itself as a shared library.)
10308 echo "$as_me:$LINENO: checking LDSHARED" >&5
10309 echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6
10310 if test -z "$LDSHARED"
10312 case $ac_sys_system/$ac_sys_release in
10314 BLDSHARED
="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
10315 LDSHARED
="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
10318 BLDSHARED
="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
10319 LDSHARED
="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
10321 IRIX
/5*) LDSHARED
="ld -shared";;
10322 IRIX
*/6*) LDSHARED
="ld ${SGI_ABI} -shared -all";;
10324 if test "$GCC" = "yes"
10325 then LDSHARED
='$(CC) -shared'
10326 else LDSHARED
='$(CC) -G';
10328 hp
*|HP
*) LDSHARED
="ld -b";;
10329 OSF
*) LDSHARED
="ld -shared -expect_unresolved \"*\"";;
10331 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
10332 if test "$enable_framework" ; then
10333 # Link against the framework. All externals should be defined.
10334 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10335 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10337 # No framework. Ignore undefined symbols, assuming they come from Python
10338 LDSHARED
="$LDSHARED -undefined suppress"
10340 Darwin
/1.4*|Darwin
/5.
*|Darwin
/6.
*)
10341 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
10342 if test "$enable_framework" ; then
10343 # Link against the framework. All externals should be defined.
10344 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10345 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10347 # No framework, use the Python app as bundle-loader
10348 BLDSHARED
="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
10349 LDSHARED
="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
10352 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
10353 # This allows an extension to be used in any Python
10354 cur_target
=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
10355 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
10356 if test ${MACOSX_DEPLOYMENT_TARGET-${cur_target}} '>' 10.2
10358 LDSHARED
='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
10359 BLDSHARED
="$LDSHARED"
10361 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
10362 if test "$enable_framework" ; then
10363 # Link against the framework. All externals should be defined.
10364 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10365 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10367 # No framework, use the Python app as bundle-loader
10368 BLDSHARED
="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
10369 LDSHARED
="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
10373 Linux
*|GNU
*) LDSHARED
='$(CC) -shared';;
10374 BSD
/OS
*/4*) LDSHARED
="gcc -shared";;
10376 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
10378 LDSHARED
="$CC -shared ${LDFLAGS}"
10380 LDSHARED
="ld -Bshareable ${LDFLAGS}"
10382 NetBSD
*) LDSHARED
="cc -shared ${LDFLAGS}";;
10383 OpenUNIX
*|UnixWare
*)
10384 if test "$GCC" = "yes"
10385 then LDSHARED
='$(CC) -shared'
10386 else LDSHARED
='$(CC) -G'
10388 SCO_SV
*) LDSHARED
='$(CC) -Wl,-G,-Bexport';;
10389 Monterey
*) LDSHARED
="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";;
10390 CYGWIN
*) LDSHARED
="gcc -shared -Wl,--enable-auto-image-base";;
10391 atheos
*) LDSHARED
="gcc -shared";;
10395 echo "$as_me:$LINENO: result: $LDSHARED" >&5
10396 echo "${ECHO_T}$LDSHARED" >&6
10397 BLDSHARED
=${BLDSHARED-$LDSHARED}
10398 # CCSHARED are the C *flags* used to create objects to go into a shared
10399 # library (module) -- this is only needed for a few systems
10400 echo "$as_me:$LINENO: checking CCSHARED" >&5
10401 echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6
10402 if test -z "$CCSHARED"
10404 case $ac_sys_system/$ac_sys_release in
10405 SunOS
*) if test "$GCC" = yes;
10406 then CCSHARED
="-fPIC";
10408 hp
*|HP
*) if test "$GCC" = yes;
10409 then CCSHARED
="-fPIC";
10410 else CCSHARED
="+z";
10412 Linux
*|GNU
*) CCSHARED
="-fPIC";;
10413 BSD
/OS
*/4*) CCSHARED
="-fpic";;
10414 FreeBSD
*|NetBSD
*|OpenBSD
*) CCSHARED
="-fPIC";;
10415 OpenUNIX
*|UnixWare
*)
10416 if test "$GCC" = "yes"
10417 then CCSHARED
="-fPIC"
10418 else CCSHARED
="-KPIC"
10421 if test "$GCC" = "yes"
10422 then CCSHARED
="-fPIC"
10423 else CCSHARED
="-Kpic -belf"
10425 Monterey
*) CCSHARED
="-G";;
10426 IRIX
*/6*) case $CC in
10427 *gcc
*) CCSHARED
="-shared";;
10430 atheos
*) CCSHARED
="-fPIC";;
10433 echo "$as_me:$LINENO: result: $CCSHARED" >&5
10434 echo "${ECHO_T}$CCSHARED" >&6
10435 # LINKFORSHARED are the flags passed to the $(CC) command that links
10436 # the python executable -- this is only needed for a few systems
10437 echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
10438 echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6
10439 if test -z "$LINKFORSHARED"
10441 case $ac_sys_system/$ac_sys_release in
10442 AIX
*) LINKFORSHARED
='-Wl,-bE:Modules/python.exp -lld';;
10444 LINKFORSHARED
="-Wl,-E -Wl,+s";;
10445 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
10446 BSD
/OS
/4*) LINKFORSHARED
="-Xlinker -export-dynamic";;
10447 Linux
*|GNU
*) LINKFORSHARED
="-Xlinker -export-dynamic";;
10448 # -u libsys_s pulls in all symbols in libsys
10450 # -u _PyMac_Error is needed to pull in the mac toolbox glue,
10452 # not used by the core itself but which needs to be in the core so
10453 # that dynamically loaded extension modules have access to it.
10454 # -prebind is no longer used, because it actually seems to give a
10455 # slowdown in stead of a speedup, maybe due to the large number of
10456 # dynamic loads Python does.
10458 LINKFORSHARED
="$extra_undefs"
10459 if test "$enable_framework"
10461 LINKFORSHARED
="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10463 LINKFORSHARED
="$LINKFORSHARED";;
10464 OpenUNIX
*|UnixWare
*) LINKFORSHARED
="-Wl,-Bexport";;
10465 SCO_SV
*) LINKFORSHARED
="-Wl,-Bexport";;
10466 ReliantUNIX
*) LINKFORSHARED
="-W1 -Blargedynsym";;
10467 FreeBSD
*|NetBSD
*|OpenBSD
*)
10468 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
10470 LINKFORSHARED
="-Wl,--export-dynamic"
10472 SunOS
/5*) case $CC in
10474 if $CC -Xlinker --help 2>&1 |
grep export-dynamic
>/dev
/null
10476 LINKFORSHARED
="-Xlinker --export-dynamic"
10480 if test $enable_shared = "no"
10482 LINKFORSHARED
='-Wl,--out-implib=$(LDLIBRARY)'
10486 echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
10487 echo "${ECHO_T}$LINKFORSHARED" >&6
10490 echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
10491 echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6
10492 if test ! "$LIBRARY" = "$LDLIBRARY"
10494 case $ac_sys_system in
10496 # Cygwin needs CCSHARED when building extension DLLs
10497 # but not when building the interpreter DLL.
10498 CFLAGSFORSHARED
='';;
10500 CFLAGSFORSHARED
='$(CCSHARED)'
10503 echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
10504 echo "${ECHO_T}$CFLAGSFORSHARED" >&6
10506 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
10507 # library (with --enable-shared).
10508 # For platforms on which shared libraries are not allowed to have unresolved
10509 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
10510 # if it is not required, since it creates a dependency of the shared library
10511 # to LIBS. This, in turn, means that applications linking the shared libpython
10512 # don't need to link LIBS explicitly. The default should be only changed
10513 # on systems where this approach causes problems.
10515 echo "$as_me:$LINENO: checking SHLIBS" >&5
10516 echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6
10517 case "$ac_sys_system" in
10521 echo "$as_me:$LINENO: result: $SHLIBS" >&5
10522 echo "${ECHO_T}$SHLIBS" >&6
10525 # checks for libraries
10527 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10528 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10529 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10530 echo $ECHO_N "(cached) $ECHO_C" >&6
10532 ac_check_lib_save_LIBS
=$LIBS
10534 cat >conftest.
$ac_ext <<_ACEOF
10537 cat confdefs.h
>>conftest.
$ac_ext
10538 cat >>conftest.
$ac_ext <<_ACEOF
10539 /* end confdefs.h. */
10541 /* Override any gcc2 internal prototype to avoid an error. */
10545 /* We use char because int might match the return type of a gcc2
10546 builtin and then its argument prototype would still apply. */
10556 rm -f conftest.
$ac_objext conftest
$ac_exeext
10557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10558 (eval $ac_link) 2>conftest.er1
10560 grep -v '^ *+' conftest.er1
>conftest.err
10562 cat conftest.err
>&5
10563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10564 (exit $ac_status); } &&
10565 { ac_try
='test -z "$ac_c_werror_flag"
10566 || test ! -s conftest.err'
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); }; } &&
10572 { ac_try
='test -s conftest$ac_exeext'
10573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10574 (eval $ac_try) 2>&5
10576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10577 (exit $ac_status); }; }; then
10578 ac_cv_lib_dl_dlopen
=yes
10580 echo "$as_me: failed program was:" >&5
10581 sed 's/^/| /' conftest.
$ac_ext >&5
10583 ac_cv_lib_dl_dlopen
=no
10585 rm -f conftest.err conftest.
$ac_objext \
10586 conftest
$ac_exeext conftest.
$ac_ext
10587 LIBS
=$ac_check_lib_save_LIBS
10589 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10590 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10591 if test $ac_cv_lib_dl_dlopen = yes; then
10592 cat >>confdefs.h
<<_ACEOF
10593 #define HAVE_LIBDL 1
10599 # Dynamic linking for SunOS/Solaris and SYSV
10601 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10602 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10603 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10604 echo $ECHO_N "(cached) $ECHO_C" >&6
10606 ac_check_lib_save_LIBS
=$LIBS
10608 cat >conftest.
$ac_ext <<_ACEOF
10611 cat confdefs.h
>>conftest.
$ac_ext
10612 cat >>conftest.
$ac_ext <<_ACEOF
10613 /* end confdefs.h. */
10615 /* Override any gcc2 internal prototype to avoid an error. */
10619 /* We use char because int might match the return type of a gcc2
10620 builtin and then its argument prototype would still apply. */
10630 rm -f conftest.
$ac_objext conftest
$ac_exeext
10631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10632 (eval $ac_link) 2>conftest.er1
10634 grep -v '^ *+' conftest.er1
>conftest.err
10636 cat conftest.err
>&5
10637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10638 (exit $ac_status); } &&
10639 { ac_try
='test -z "$ac_c_werror_flag"
10640 || test ! -s conftest.err'
10641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10642 (eval $ac_try) 2>&5
10644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10645 (exit $ac_status); }; } &&
10646 { ac_try
='test -s conftest$ac_exeext'
10647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10648 (eval $ac_try) 2>&5
10650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10651 (exit $ac_status); }; }; then
10652 ac_cv_lib_dld_shl_load
=yes
10654 echo "$as_me: failed program was:" >&5
10655 sed 's/^/| /' conftest.
$ac_ext >&5
10657 ac_cv_lib_dld_shl_load
=no
10659 rm -f conftest.err conftest.
$ac_objext \
10660 conftest
$ac_exeext conftest.
$ac_ext
10661 LIBS
=$ac_check_lib_save_LIBS
10663 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10664 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10665 if test $ac_cv_lib_dld_shl_load = yes; then
10666 cat >>confdefs.h
<<_ACEOF
10667 #define HAVE_LIBDLD 1
10673 # Dynamic linking for HP-UX
10675 # only check for sem_ini if thread support is requested
10676 if test "$with_threads" = "yes" -o -z "$with_threads"; then
10677 echo "$as_me:$LINENO: checking for library containing sem_init" >&5
10678 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6
10679 if test "${ac_cv_search_sem_init+set}" = set; then
10680 echo $ECHO_N "(cached) $ECHO_C" >&6
10682 ac_func_search_save_LIBS
=$LIBS
10683 ac_cv_search_sem_init
=no
10684 cat >conftest.
$ac_ext <<_ACEOF
10687 cat confdefs.h
>>conftest.
$ac_ext
10688 cat >>conftest.
$ac_ext <<_ACEOF
10689 /* end confdefs.h. */
10691 /* Override any gcc2 internal prototype to avoid an error. */
10695 /* We use char because int might match the return type of a gcc2
10696 builtin and then its argument prototype would still apply. */
10706 rm -f conftest.
$ac_objext conftest
$ac_exeext
10707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10708 (eval $ac_link) 2>conftest.er1
10710 grep -v '^ *+' conftest.er1
>conftest.err
10712 cat conftest.err
>&5
10713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10714 (exit $ac_status); } &&
10715 { ac_try
='test -z "$ac_c_werror_flag"
10716 || test ! -s conftest.err'
10717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10718 (eval $ac_try) 2>&5
10720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10721 (exit $ac_status); }; } &&
10722 { ac_try
='test -s conftest$ac_exeext'
10723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10724 (eval $ac_try) 2>&5
10726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10727 (exit $ac_status); }; }; then
10728 ac_cv_search_sem_init
="none required"
10730 echo "$as_me: failed program was:" >&5
10731 sed 's/^/| /' conftest.
$ac_ext >&5
10734 rm -f conftest.err conftest.
$ac_objext \
10735 conftest
$ac_exeext conftest.
$ac_ext
10736 if test "$ac_cv_search_sem_init" = no
; then
10737 for ac_lib
in pthread rt posix4
; do
10738 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10739 cat >conftest.
$ac_ext <<_ACEOF
10742 cat confdefs.h
>>conftest.
$ac_ext
10743 cat >>conftest.
$ac_ext <<_ACEOF
10744 /* end confdefs.h. */
10746 /* Override any gcc2 internal prototype to avoid an error. */
10750 /* We use char because int might match the return type of a gcc2
10751 builtin and then its argument prototype would still apply. */
10761 rm -f conftest.
$ac_objext conftest
$ac_exeext
10762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10763 (eval $ac_link) 2>conftest.er1
10765 grep -v '^ *+' conftest.er1
>conftest.err
10767 cat conftest.err
>&5
10768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10769 (exit $ac_status); } &&
10770 { ac_try
='test -z "$ac_c_werror_flag"
10771 || test ! -s conftest.err'
10772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10773 (eval $ac_try) 2>&5
10775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10776 (exit $ac_status); }; } &&
10777 { ac_try
='test -s conftest$ac_exeext'
10778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10779 (eval $ac_try) 2>&5
10781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10782 (exit $ac_status); }; }; then
10783 ac_cv_search_sem_init
="-l$ac_lib"
10786 echo "$as_me: failed program was:" >&5
10787 sed 's/^/| /' conftest.
$ac_ext >&5
10790 rm -f conftest.err conftest.
$ac_objext \
10791 conftest
$ac_exeext conftest.
$ac_ext
10794 LIBS
=$ac_func_search_save_LIBS
10796 echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
10797 echo "${ECHO_T}$ac_cv_search_sem_init" >&6
10798 if test "$ac_cv_search_sem_init" != no
; then
10799 test "$ac_cv_search_sem_init" = "none required" || LIBS
="$ac_cv_search_sem_init $LIBS"
10802 # 'Real Time' functions on Solaris
10803 # posix4 on Solaris 2.6
10804 # pthread (first!) on Linux
10807 # check if we need libintl for locale functions
10808 echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
10809 echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6
10810 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
10811 echo $ECHO_N "(cached) $ECHO_C" >&6
10813 ac_check_lib_save_LIBS
=$LIBS
10814 LIBS
="-lintl $LIBS"
10815 cat >conftest.
$ac_ext <<_ACEOF
10818 cat confdefs.h
>>conftest.
$ac_ext
10819 cat >>conftest.
$ac_ext <<_ACEOF
10820 /* end confdefs.h. */
10822 /* Override any gcc2 internal prototype to avoid an error. */
10826 /* We use char because int might match the return type of a gcc2
10827 builtin and then its argument prototype would still apply. */
10828 char textdomain ();
10837 rm -f conftest.
$ac_objext conftest
$ac_exeext
10838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10839 (eval $ac_link) 2>conftest.er1
10841 grep -v '^ *+' conftest.er1
>conftest.err
10843 cat conftest.err
>&5
10844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10845 (exit $ac_status); } &&
10846 { ac_try
='test -z "$ac_c_werror_flag"
10847 || test ! -s conftest.err'
10848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10849 (eval $ac_try) 2>&5
10851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10852 (exit $ac_status); }; } &&
10853 { ac_try
='test -s conftest$ac_exeext'
10854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10855 (eval $ac_try) 2>&5
10857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10858 (exit $ac_status); }; }; then
10859 ac_cv_lib_intl_textdomain
=yes
10861 echo "$as_me: failed program was:" >&5
10862 sed 's/^/| /' conftest.
$ac_ext >&5
10864 ac_cv_lib_intl_textdomain
=no
10866 rm -f conftest.err conftest.
$ac_objext \
10867 conftest
$ac_exeext conftest.
$ac_ext
10868 LIBS
=$ac_check_lib_save_LIBS
10870 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
10871 echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6
10872 if test $ac_cv_lib_intl_textdomain = yes; then
10874 cat >>confdefs.h
<<\_ACEOF
10875 #define WITH_LIBINTL 1
10881 # checks for system dependent C++ extensions support
10882 case "$ac_sys_system" in
10883 AIX
*) echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
10884 echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6
10885 cat >conftest.
$ac_ext <<_ACEOF
10888 cat confdefs.h
>>conftest.
$ac_ext
10889 cat >>conftest.
$ac_ext <<_ACEOF
10890 /* end confdefs.h. */
10891 #include "/usr/lpp/xlC/include/load.h"
10895 loadAndInit("", 0, "")
10900 rm -f conftest.
$ac_objext conftest
$ac_exeext
10901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10902 (eval $ac_link) 2>conftest.er1
10904 grep -v '^ *+' conftest.er1
>conftest.err
10906 cat conftest.err
>&5
10907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10908 (exit $ac_status); } &&
10909 { ac_try
='test -z "$ac_c_werror_flag"
10910 || test ! -s conftest.err'
10911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10912 (eval $ac_try) 2>&5
10914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10915 (exit $ac_status); }; } &&
10916 { ac_try
='test -s conftest$ac_exeext'
10917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10918 (eval $ac_try) 2>&5
10920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10921 (exit $ac_status); }; }; then
10923 cat >>confdefs.h
<<\_ACEOF
10924 #define AIX_GENUINE_CPLUSPLUS 1
10927 echo "$as_me:$LINENO: result: yes" >&5
10928 echo "${ECHO_T}yes" >&6
10930 echo "$as_me: failed program was:" >&5
10931 sed 's/^/| /' conftest.
$ac_ext >&5
10933 echo "$as_me:$LINENO: result: no" >&5
10934 echo "${ECHO_T}no" >&6
10936 rm -f conftest.err conftest.
$ac_objext \
10937 conftest
$ac_exeext conftest.
$ac_ext;;
10941 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
10942 # BeOS' sockets are stashed in libnet.
10943 echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
10944 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6
10945 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
10946 echo $ECHO_N "(cached) $ECHO_C" >&6
10948 ac_check_lib_save_LIBS
=$LIBS
10950 cat >conftest.
$ac_ext <<_ACEOF
10953 cat confdefs.h
>>conftest.
$ac_ext
10954 cat >>conftest.
$ac_ext <<_ACEOF
10955 /* end confdefs.h. */
10957 /* Override any gcc2 internal prototype to avoid an error. */
10961 /* We use char because int might match the return type of a gcc2
10962 builtin and then its argument prototype would still apply. */
10972 rm -f conftest.
$ac_objext conftest
$ac_exeext
10973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10974 (eval $ac_link) 2>conftest.er1
10976 grep -v '^ *+' conftest.er1
>conftest.err
10978 cat conftest.err
>&5
10979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10980 (exit $ac_status); } &&
10981 { ac_try
='test -z "$ac_c_werror_flag"
10982 || test ! -s conftest.err'
10983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10984 (eval $ac_try) 2>&5
10986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10987 (exit $ac_status); }; } &&
10988 { ac_try
='test -s conftest$ac_exeext'
10989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10990 (eval $ac_try) 2>&5
10992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10993 (exit $ac_status); }; }; then
10994 ac_cv_lib_nsl_t_open
=yes
10996 echo "$as_me: failed program was:" >&5
10997 sed 's/^/| /' conftest.
$ac_ext >&5
10999 ac_cv_lib_nsl_t_open
=no
11001 rm -f conftest.err conftest.
$ac_objext \
11002 conftest
$ac_exeext conftest.
$ac_ext
11003 LIBS
=$ac_check_lib_save_LIBS
11005 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
11006 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6
11007 if test $ac_cv_lib_nsl_t_open = yes; then
11011 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
11012 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
11013 if test "${ac_cv_lib_socket_socket+set}" = set; then
11014 echo $ECHO_N "(cached) $ECHO_C" >&6
11016 ac_check_lib_save_LIBS
=$LIBS
11017 LIBS
="-lsocket $LIBS $LIBS"
11018 cat >conftest.
$ac_ext <<_ACEOF
11021 cat confdefs.h
>>conftest.
$ac_ext
11022 cat >>conftest.
$ac_ext <<_ACEOF
11023 /* end confdefs.h. */
11025 /* Override any gcc2 internal prototype to avoid an error. */
11029 /* We use char because int might match the return type of a gcc2
11030 builtin and then its argument prototype would still apply. */
11040 rm -f conftest.
$ac_objext conftest
$ac_exeext
11041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11042 (eval $ac_link) 2>conftest.er1
11044 grep -v '^ *+' conftest.er1
>conftest.err
11046 cat conftest.err
>&5
11047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11048 (exit $ac_status); } &&
11049 { ac_try
='test -z "$ac_c_werror_flag"
11050 || test ! -s conftest.err'
11051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11052 (eval $ac_try) 2>&5
11054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11055 (exit $ac_status); }; } &&
11056 { ac_try
='test -s conftest$ac_exeext'
11057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11058 (eval $ac_try) 2>&5
11060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11061 (exit $ac_status); }; }; then
11062 ac_cv_lib_socket_socket
=yes
11064 echo "$as_me: failed program was:" >&5
11065 sed 's/^/| /' conftest.
$ac_ext >&5
11067 ac_cv_lib_socket_socket
=no
11069 rm -f conftest.err conftest.
$ac_objext \
11070 conftest
$ac_exeext conftest.
$ac_ext
11071 LIBS
=$ac_check_lib_save_LIBS
11073 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
11074 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
11075 if test $ac_cv_lib_socket_socket = yes; then
11076 LIBS
="-lsocket $LIBS"
11080 case "$ac_sys_system" in
11082 echo "$as_me:$LINENO: checking for socket in -lnet" >&5
11083 echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6
11084 if test "${ac_cv_lib_net_socket+set}" = set; then
11085 echo $ECHO_N "(cached) $ECHO_C" >&6
11087 ac_check_lib_save_LIBS
=$LIBS
11088 LIBS
="-lnet $LIBS $LIBS"
11089 cat >conftest.
$ac_ext <<_ACEOF
11092 cat confdefs.h
>>conftest.
$ac_ext
11093 cat >>conftest.
$ac_ext <<_ACEOF
11094 /* end confdefs.h. */
11096 /* Override any gcc2 internal prototype to avoid an error. */
11100 /* We use char because int might match the return type of a gcc2
11101 builtin and then its argument prototype would still apply. */
11111 rm -f conftest.
$ac_objext conftest
$ac_exeext
11112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11113 (eval $ac_link) 2>conftest.er1
11115 grep -v '^ *+' conftest.er1
>conftest.err
11117 cat conftest.err
>&5
11118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11119 (exit $ac_status); } &&
11120 { ac_try
='test -z "$ac_c_werror_flag"
11121 || test ! -s conftest.err'
11122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11123 (eval $ac_try) 2>&5
11125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11126 (exit $ac_status); }; } &&
11127 { ac_try
='test -s conftest$ac_exeext'
11128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11129 (eval $ac_try) 2>&5
11131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11132 (exit $ac_status); }; }; then
11133 ac_cv_lib_net_socket
=yes
11135 echo "$as_me: failed program was:" >&5
11136 sed 's/^/| /' conftest.
$ac_ext >&5
11138 ac_cv_lib_net_socket
=no
11140 rm -f conftest.err conftest.
$ac_objext \
11141 conftest
$ac_exeext conftest.
$ac_ext
11142 LIBS
=$ac_check_lib_save_LIBS
11144 echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5
11145 echo "${ECHO_T}$ac_cv_lib_net_socket" >&6
11146 if test $ac_cv_lib_net_socket = yes; then
11153 echo "$as_me:$LINENO: checking for --with-libs" >&5
11154 echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6
11156 # Check whether --with-libs or --without-libs was given.
11157 if test "${with_libs+set}" = set; then
11158 withval
="$with_libs"
11160 echo "$as_me:$LINENO: result: $withval" >&5
11161 echo "${ECHO_T}$withval" >&6
11162 LIBS
="$withval $LIBS"
11165 echo "$as_me:$LINENO: result: no" >&5
11166 echo "${ECHO_T}no" >&6
11169 # Determine if signalmodule should be used.
11172 echo "$as_me:$LINENO: checking for --with-signal-module" >&5
11173 echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6
11175 # Check whether --with-signal-module or --without-signal-module was given.
11176 if test "${with_signal_module+set}" = set; then
11177 withval
="$with_signal_module"
11181 if test -z "$with_signal_module"
11182 then with_signal_module
="yes"
11184 echo "$as_me:$LINENO: result: $with_signal_module" >&5
11185 echo "${ECHO_T}$with_signal_module" >&6
11187 if test "${with_signal_module}" = "yes"; then
11188 USE_SIGNAL_MODULE
=""
11191 USE_SIGNAL_MODULE
="#"
11192 SIGNAL_OBJS
="Parser/intrcheck.o Python/sigcheck.o"
11195 # This is used to generate Setup.config
11197 USE_THREAD_MODULE
=""
11199 echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
11200 echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6
11203 # Check whether --with-dec-threads or --without-dec-threads was given.
11204 if test "${with_dec_threads+set}" = set; then
11205 withval
="$with_dec_threads"
11207 echo "$as_me:$LINENO: result: $withval" >&5
11208 echo "${ECHO_T}$withval" >&6
11210 if test "${with_thread+set}" != set; then
11211 with_thread
="$withval";
11214 echo "$as_me:$LINENO: result: no" >&5
11215 echo "${ECHO_T}no" >&6
11218 # Templates for things AC_DEFINEd more than once.
11219 # For a single AC_DEFINE, no template is needed.
11227 echo "$as_me:$LINENO: checking for --with-threads" >&5
11228 echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6
11230 # Check whether --with-threads or --without-threads was given.
11231 if test "${with_threads+set}" = set; then
11232 withval
="$with_threads"
11236 # --with-thread is deprecated, but check for it anyway
11238 # Check whether --with-thread or --without-thread was given.
11239 if test "${with_thread+set}" = set; then
11240 withval
="$with_thread"
11241 with_threads
=$with_thread
11244 if test -z "$with_threads"
11245 then with_threads
="yes"
11247 echo "$as_me:$LINENO: result: $with_threads" >&5
11248 echo "${ECHO_T}$with_threads" >&6
11251 if test "$with_threads" = "no"
11253 USE_THREAD_MODULE
="#"
11254 elif test "$ac_cv_pthread_is_default" = yes
11256 cat >>confdefs.h
<<\_ACEOF
11257 #define WITH_THREAD 1
11260 # Defining _REENTRANT on system with POSIX threads should not hurt.
11261 cat >>confdefs.h
<<\_ACEOF
11262 #define _REENTRANT 1
11266 THREADOBJ
="Python/thread.o"
11267 elif test "$ac_cv_kpthread" = "yes"
11270 if test "$ac_cv_cxx_thread" = "yes"; then
11271 CXX
="$CXX -Kpthread"
11273 cat >>confdefs.h
<<\_ACEOF
11274 #define WITH_THREAD 1
11278 THREADOBJ
="Python/thread.o"
11279 elif test "$ac_cv_kthread" = "yes"
11282 if test "$ac_cv_cxx_thread" = "yes"; then
11283 CXX
="$CXX -Kthread"
11285 cat >>confdefs.h
<<\_ACEOF
11286 #define WITH_THREAD 1
11290 THREADOBJ
="Python/thread.o"
11291 elif test "$ac_cv_pthread" = "yes"
11294 if test "$ac_cv_cxx_thread" = "yes"; then
11295 CXX
="$CXX -pthread"
11297 cat >>confdefs.h
<<\_ACEOF
11298 #define WITH_THREAD 1
11302 THREADOBJ
="Python/thread.o"
11304 if test ! -z "$with_threads" -a -d "$with_threads"
11305 then LDFLAGS
="$LDFLAGS -L$with_threads"
11307 if test ! -z "$withval" -a -d "$withval"
11308 then LDFLAGS
="$LDFLAGS -L$withval"
11311 # According to the POSIX spec, a pthreads implementation must
11312 # define _POSIX_THREADS in unistd.h. Some apparently don't
11313 # (e.g. gnu pth with pthread emulation)
11314 echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
11315 echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6
11316 cat >conftest.
$ac_ext <<_ACEOF
11319 cat confdefs.h
>>conftest.
$ac_ext
11320 cat >>conftest.
$ac_ext <<_ACEOF
11321 /* end confdefs.h. */
11323 #include <unistd.h>
11324 #ifdef _POSIX_THREADS
11329 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11330 $EGREP "yes" >/dev
/null
2>&1; then
11331 unistd_defines_pthreads
=yes
11333 unistd_defines_pthreads
=no
11337 echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
11338 echo "${ECHO_T}$unistd_defines_pthreads" >&6
11340 cat >>confdefs.h
<<\_ACEOF
11341 #define _REENTRANT 1
11344 if test "${ac_cv_header_cthreads_h+set}" = set; then
11345 echo "$as_me:$LINENO: checking for cthreads.h" >&5
11346 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6
11347 if test "${ac_cv_header_cthreads_h+set}" = set; then
11348 echo $ECHO_N "(cached) $ECHO_C" >&6
11350 echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
11351 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6
11353 # Is the header compilable?
11354 echo "$as_me:$LINENO: checking cthreads.h usability" >&5
11355 echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6
11356 cat >conftest.
$ac_ext <<_ACEOF
11359 cat confdefs.h
>>conftest.
$ac_ext
11360 cat >>conftest.
$ac_ext <<_ACEOF
11361 /* end confdefs.h. */
11362 $ac_includes_default
11363 #include <cthreads.h>
11365 rm -f conftest.
$ac_objext
11366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11367 (eval $ac_compile) 2>conftest.er1
11369 grep -v '^ *+' conftest.er1
>conftest.err
11371 cat conftest.err
>&5
11372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11373 (exit $ac_status); } &&
11374 { ac_try
='test -z "$ac_c_werror_flag"
11375 || test ! -s conftest.err'
11376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11377 (eval $ac_try) 2>&5
11379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11380 (exit $ac_status); }; } &&
11381 { ac_try
='test -s conftest.$ac_objext'
11382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11383 (eval $ac_try) 2>&5
11385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11386 (exit $ac_status); }; }; then
11387 ac_header_compiler
=yes
11389 echo "$as_me: failed program was:" >&5
11390 sed 's/^/| /' conftest.
$ac_ext >&5
11392 ac_header_compiler
=no
11394 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11395 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11396 echo "${ECHO_T}$ac_header_compiler" >&6
11398 # Is the header present?
11399 echo "$as_me:$LINENO: checking cthreads.h presence" >&5
11400 echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6
11401 cat >conftest.
$ac_ext <<_ACEOF
11404 cat confdefs.h
>>conftest.
$ac_ext
11405 cat >>conftest.
$ac_ext <<_ACEOF
11406 /* end confdefs.h. */
11407 #include <cthreads.h>
11409 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11410 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11412 grep -v '^ *+' conftest.er1
>conftest.err
11414 cat conftest.err
>&5
11415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11416 (exit $ac_status); } >/dev
/null
; then
11417 if test -s conftest.err
; then
11418 ac_cpp_err
=$ac_c_preproc_warn_flag
11419 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11426 if test -z "$ac_cpp_err"; then
11427 ac_header_preproc
=yes
11429 echo "$as_me: failed program was:" >&5
11430 sed 's/^/| /' conftest.
$ac_ext >&5
11432 ac_header_preproc
=no
11434 rm -f conftest.err conftest.
$ac_ext
11435 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11436 echo "${ECHO_T}$ac_header_preproc" >&6
11438 # So? What about this header?
11439 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11441 { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
11442 echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11443 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5
11444 echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;}
11445 ac_header_preproc
=yes
11448 { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
11449 echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
11450 { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
11451 echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
11452 { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5
11453 echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;}
11454 { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
11455 echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
11456 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
11457 echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;}
11458 { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5
11459 echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;}
11462 ## ------------------------------------------------ ##
11463 ## Report this to http://www.python.org/python-bugs ##
11464 ## ------------------------------------------------ ##
11467 sed "s/^/$as_me: WARNING: /" >&2
11470 echo "$as_me:$LINENO: checking for cthreads.h" >&5
11471 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6
11472 if test "${ac_cv_header_cthreads_h+set}" = set; then
11473 echo $ECHO_N "(cached) $ECHO_C" >&6
11475 ac_cv_header_cthreads_h
=$ac_header_preproc
11477 echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
11478 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6
11481 if test $ac_cv_header_cthreads_h = yes; then
11482 cat >>confdefs.h
<<\_ACEOF
11483 #define WITH_THREAD 1
11486 cat >>confdefs.h
<<\_ACEOF
11487 #define C_THREADS 1
11491 cat >>confdefs.h
<<\_ACEOF
11492 #define HURD_C_THREADS 1
11495 LIBS
="$LIBS -lthreads"
11496 THREADOBJ
="Python/thread.o"
11499 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
11500 echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
11501 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6
11502 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
11503 echo $ECHO_N "(cached) $ECHO_C" >&6
11505 echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
11506 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6
11508 # Is the header compilable?
11509 echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
11510 echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6
11511 cat >conftest.
$ac_ext <<_ACEOF
11514 cat confdefs.h
>>conftest.
$ac_ext
11515 cat >>conftest.
$ac_ext <<_ACEOF
11516 /* end confdefs.h. */
11517 $ac_includes_default
11518 #include <mach/cthreads.h>
11520 rm -f conftest.
$ac_objext
11521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11522 (eval $ac_compile) 2>conftest.er1
11524 grep -v '^ *+' conftest.er1
>conftest.err
11526 cat conftest.err
>&5
11527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11528 (exit $ac_status); } &&
11529 { ac_try
='test -z "$ac_c_werror_flag"
11530 || test ! -s conftest.err'
11531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11532 (eval $ac_try) 2>&5
11534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11535 (exit $ac_status); }; } &&
11536 { ac_try
='test -s conftest.$ac_objext'
11537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11538 (eval $ac_try) 2>&5
11540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11541 (exit $ac_status); }; }; then
11542 ac_header_compiler
=yes
11544 echo "$as_me: failed program was:" >&5
11545 sed 's/^/| /' conftest.
$ac_ext >&5
11547 ac_header_compiler
=no
11549 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11550 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11551 echo "${ECHO_T}$ac_header_compiler" >&6
11553 # Is the header present?
11554 echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
11555 echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6
11556 cat >conftest.
$ac_ext <<_ACEOF
11559 cat confdefs.h
>>conftest.
$ac_ext
11560 cat >>conftest.
$ac_ext <<_ACEOF
11561 /* end confdefs.h. */
11562 #include <mach/cthreads.h>
11564 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11565 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11567 grep -v '^ *+' conftest.er1
>conftest.err
11569 cat conftest.err
>&5
11570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11571 (exit $ac_status); } >/dev
/null
; then
11572 if test -s conftest.err
; then
11573 ac_cpp_err
=$ac_c_preproc_warn_flag
11574 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11581 if test -z "$ac_cpp_err"; then
11582 ac_header_preproc
=yes
11584 echo "$as_me: failed program was:" >&5
11585 sed 's/^/| /' conftest.
$ac_ext >&5
11587 ac_header_preproc
=no
11589 rm -f conftest.err conftest.
$ac_ext
11590 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11591 echo "${ECHO_T}$ac_header_preproc" >&6
11593 # So? What about this header?
11594 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11596 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
11597 echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11598 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
11599 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
11600 ac_header_preproc
=yes
11603 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
11604 echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
11605 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
11606 echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
11607 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
11608 echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
11609 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
11610 echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
11611 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
11612 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
11613 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
11614 echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
11617 ## ------------------------------------------------ ##
11618 ## Report this to http://www.python.org/python-bugs ##
11619 ## ------------------------------------------------ ##
11622 sed "s/^/$as_me: WARNING: /" >&2
11625 echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
11626 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6
11627 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
11628 echo $ECHO_N "(cached) $ECHO_C" >&6
11630 ac_cv_header_mach_cthreads_h
=$ac_header_preproc
11632 echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
11633 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6
11636 if test $ac_cv_header_mach_cthreads_h = yes; then
11637 cat >>confdefs.h
<<\_ACEOF
11638 #define WITH_THREAD 1
11641 cat >>confdefs.h
<<\_ACEOF
11642 #define C_THREADS 1
11646 cat >>confdefs.h
<<\_ACEOF
11647 #define MACH_C_THREADS 1
11650 THREADOBJ
="Python/thread.o"
11653 echo "$as_me:$LINENO: checking for --with-pth" >&5
11654 echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6
11656 # Check whether --with-pth or --without-pth was given.
11657 if test "${with_pth+set}" = set; then
11658 withval
="$with_pth"
11659 echo "$as_me:$LINENO: result: $withval" >&5
11660 echo "${ECHO_T}$withval" >&6
11661 cat >>confdefs.h
<<\_ACEOF
11662 #define WITH_THREAD 1
11666 cat >>confdefs.h
<<\_ACEOF
11671 THREADOBJ
="Python/thread.o"
11673 echo "$as_me:$LINENO: result: no" >&5
11674 echo "${ECHO_T}no" >&6
11676 # Just looking for pthread_create in libpthread is not enough:
11677 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
11678 # So we really have to include pthread.h, and then link.
11680 LIBS
="$LIBS -lpthread"
11681 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
11682 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
11683 cat >conftest.
$ac_ext <<_ACEOF
11686 cat confdefs.h
>>conftest.
$ac_ext
11687 cat >>conftest.
$ac_ext <<_ACEOF
11688 /* end confdefs.h. */
11689 #include <pthread.h>
11691 void * start_routine (void *arg) { exit (0); }
11696 pthread_create (NULL, NULL, start_routine, NULL)
11701 rm -f conftest.
$ac_objext conftest
$ac_exeext
11702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11703 (eval $ac_link) 2>conftest.er1
11705 grep -v '^ *+' conftest.er1
>conftest.err
11707 cat conftest.err
>&5
11708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11709 (exit $ac_status); } &&
11710 { ac_try
='test -z "$ac_c_werror_flag"
11711 || test ! -s conftest.err'
11712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11713 (eval $ac_try) 2>&5
11715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11716 (exit $ac_status); }; } &&
11717 { ac_try
='test -s conftest$ac_exeext'
11718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11719 (eval $ac_try) 2>&5
11721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11722 (exit $ac_status); }; }; then
11724 echo "$as_me:$LINENO: result: yes" >&5
11725 echo "${ECHO_T}yes" >&6
11726 cat >>confdefs.h
<<\_ACEOF
11727 #define WITH_THREAD 1
11731 THREADOBJ
="Python/thread.o"
11733 echo "$as_me: failed program was:" >&5
11734 sed 's/^/| /' conftest.
$ac_ext >&5
11738 echo "$as_me:$LINENO: checking for pthread_detach" >&5
11739 echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6
11740 if test "${ac_cv_func_pthread_detach+set}" = set; then
11741 echo $ECHO_N "(cached) $ECHO_C" >&6
11743 cat >conftest.
$ac_ext <<_ACEOF
11746 cat confdefs.h
>>conftest.
$ac_ext
11747 cat >>conftest.
$ac_ext <<_ACEOF
11748 /* end confdefs.h. */
11749 /* System header to define __stub macros and hopefully few prototypes,
11750 which can conflict with char pthread_detach (); below.
11751 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11752 <limits.h> exists even on freestanding compilers. Under hpux,
11753 including <limits.h> includes <sys/time.h> and causes problems
11754 checking for functions defined therein. */
11755 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
11756 # include <limits.h>
11758 # include <assert.h>
11760 /* Override any gcc2 internal prototype to avoid an error. */
11765 /* We use char because int might match the return type of a gcc2
11766 builtin and then its argument prototype would still apply. */
11767 char pthread_detach ();
11768 /* The GNU C library defines this for functions which it implements
11769 to always fail with ENOSYS. Some functions are actually named
11770 something starting with __ and the normal name is an alias. */
11771 #if defined (__stub_pthread_detach) || defined (__stub___pthread_detach)
11774 char (*f) () = pthread_detach;
11783 return f != pthread_detach;
11788 rm -f conftest.
$ac_objext conftest
$ac_exeext
11789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11790 (eval $ac_link) 2>conftest.er1
11792 grep -v '^ *+' conftest.er1
>conftest.err
11794 cat conftest.err
>&5
11795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11796 (exit $ac_status); } &&
11797 { ac_try
='test -z "$ac_c_werror_flag"
11798 || test ! -s conftest.err'
11799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11800 (eval $ac_try) 2>&5
11802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11803 (exit $ac_status); }; } &&
11804 { ac_try
='test -s conftest$ac_exeext'
11805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11806 (eval $ac_try) 2>&5
11808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11809 (exit $ac_status); }; }; then
11810 ac_cv_func_pthread_detach
=yes
11812 echo "$as_me: failed program was:" >&5
11813 sed 's/^/| /' conftest.
$ac_ext >&5
11815 ac_cv_func_pthread_detach
=no
11817 rm -f conftest.err conftest.
$ac_objext \
11818 conftest
$ac_exeext conftest.
$ac_ext
11820 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
11821 echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6
11822 if test $ac_cv_func_pthread_detach = yes; then
11823 cat >>confdefs.h
<<\_ACEOF
11824 #define WITH_THREAD 1
11828 THREADOBJ
="Python/thread.o"
11831 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
11832 echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
11833 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6
11834 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
11835 echo $ECHO_N "(cached) $ECHO_C" >&6
11837 echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
11838 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6
11840 # Is the header compilable?
11841 echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
11842 echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6
11843 cat >conftest.
$ac_ext <<_ACEOF
11846 cat confdefs.h
>>conftest.
$ac_ext
11847 cat >>conftest.
$ac_ext <<_ACEOF
11848 /* end confdefs.h. */
11849 $ac_includes_default
11850 #include <atheos/threads.h>
11852 rm -f conftest.
$ac_objext
11853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11854 (eval $ac_compile) 2>conftest.er1
11856 grep -v '^ *+' conftest.er1
>conftest.err
11858 cat conftest.err
>&5
11859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11860 (exit $ac_status); } &&
11861 { ac_try
='test -z "$ac_c_werror_flag"
11862 || test ! -s conftest.err'
11863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11864 (eval $ac_try) 2>&5
11866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11867 (exit $ac_status); }; } &&
11868 { ac_try
='test -s conftest.$ac_objext'
11869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11870 (eval $ac_try) 2>&5
11872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11873 (exit $ac_status); }; }; then
11874 ac_header_compiler
=yes
11876 echo "$as_me: failed program was:" >&5
11877 sed 's/^/| /' conftest.
$ac_ext >&5
11879 ac_header_compiler
=no
11881 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11882 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11883 echo "${ECHO_T}$ac_header_compiler" >&6
11885 # Is the header present?
11886 echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
11887 echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6
11888 cat >conftest.
$ac_ext <<_ACEOF
11891 cat confdefs.h
>>conftest.
$ac_ext
11892 cat >>conftest.
$ac_ext <<_ACEOF
11893 /* end confdefs.h. */
11894 #include <atheos/threads.h>
11896 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11897 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11899 grep -v '^ *+' conftest.er1
>conftest.err
11901 cat conftest.err
>&5
11902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11903 (exit $ac_status); } >/dev
/null
; then
11904 if test -s conftest.err
; then
11905 ac_cpp_err
=$ac_c_preproc_warn_flag
11906 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11913 if test -z "$ac_cpp_err"; then
11914 ac_header_preproc
=yes
11916 echo "$as_me: failed program was:" >&5
11917 sed 's/^/| /' conftest.
$ac_ext >&5
11919 ac_header_preproc
=no
11921 rm -f conftest.err conftest.
$ac_ext
11922 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11923 echo "${ECHO_T}$ac_header_preproc" >&6
11925 # So? What about this header?
11926 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11928 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
11929 echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11930 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5
11931 echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;}
11932 ac_header_preproc
=yes
11935 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
11936 echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
11937 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
11938 echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
11939 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5
11940 echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;}
11941 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5
11942 echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;}
11943 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
11944 echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;}
11945 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5
11946 echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;}
11949 ## ------------------------------------------------ ##
11950 ## Report this to http://www.python.org/python-bugs ##
11951 ## ------------------------------------------------ ##
11954 sed "s/^/$as_me: WARNING: /" >&2
11957 echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
11958 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6
11959 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
11960 echo $ECHO_N "(cached) $ECHO_C" >&6
11962 ac_cv_header_atheos_threads_h
=$ac_header_preproc
11964 echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
11965 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6
11968 if test $ac_cv_header_atheos_threads_h = yes; then
11969 cat >>confdefs.h
<<\_ACEOF
11970 #define WITH_THREAD 1
11974 cat >>confdefs.h
<<\_ACEOF
11975 #define ATHEOS_THREADS 1
11978 THREADOBJ
="Python/thread.o"
11981 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
11982 echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
11983 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6
11984 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
11985 echo $ECHO_N "(cached) $ECHO_C" >&6
11987 echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
11988 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6
11990 # Is the header compilable?
11991 echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5
11992 echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6
11993 cat >conftest.
$ac_ext <<_ACEOF
11996 cat confdefs.h
>>conftest.
$ac_ext
11997 cat >>conftest.
$ac_ext <<_ACEOF
11998 /* end confdefs.h. */
11999 $ac_includes_default
12000 #include <kernel/OS.h>
12002 rm -f conftest.
$ac_objext
12003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12004 (eval $ac_compile) 2>conftest.er1
12006 grep -v '^ *+' conftest.er1
>conftest.err
12008 cat conftest.err
>&5
12009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12010 (exit $ac_status); } &&
12011 { ac_try
='test -z "$ac_c_werror_flag"
12012 || test ! -s conftest.err'
12013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12014 (eval $ac_try) 2>&5
12016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12017 (exit $ac_status); }; } &&
12018 { ac_try
='test -s conftest.$ac_objext'
12019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12020 (eval $ac_try) 2>&5
12022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12023 (exit $ac_status); }; }; then
12024 ac_header_compiler
=yes
12026 echo "$as_me: failed program was:" >&5
12027 sed 's/^/| /' conftest.
$ac_ext >&5
12029 ac_header_compiler
=no
12031 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12032 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12033 echo "${ECHO_T}$ac_header_compiler" >&6
12035 # Is the header present?
12036 echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5
12037 echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6
12038 cat >conftest.
$ac_ext <<_ACEOF
12041 cat confdefs.h
>>conftest.
$ac_ext
12042 cat >>conftest.
$ac_ext <<_ACEOF
12043 /* end confdefs.h. */
12044 #include <kernel/OS.h>
12046 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12047 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12049 grep -v '^ *+' conftest.er1
>conftest.err
12051 cat conftest.err
>&5
12052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12053 (exit $ac_status); } >/dev
/null
; then
12054 if test -s conftest.err
; then
12055 ac_cpp_err
=$ac_c_preproc_warn_flag
12056 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12063 if test -z "$ac_cpp_err"; then
12064 ac_header_preproc
=yes
12066 echo "$as_me: failed program was:" >&5
12067 sed 's/^/| /' conftest.
$ac_ext >&5
12069 ac_header_preproc
=no
12071 rm -f conftest.err conftest.
$ac_ext
12072 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12073 echo "${ECHO_T}$ac_header_preproc" >&6
12075 # So? What about this header?
12076 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12078 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5
12079 echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12080 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5
12081 echo "$as_me: WARNING: kernel/OS.h: proceeding with the compiler's result" >&2;}
12082 ac_header_preproc
=yes
12085 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5
12086 echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;}
12087 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5
12088 echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;}
12089 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5
12090 echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;}
12091 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5
12092 echo "$as_me: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&2;}
12093 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5
12094 echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;}
12095 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5
12096 echo "$as_me: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&2;}
12099 ## ------------------------------------------------ ##
12100 ## Report this to http://www.python.org/python-bugs ##
12101 ## ------------------------------------------------ ##
12104 sed "s/^/$as_me: WARNING: /" >&2
12107 echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
12108 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6
12109 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
12110 echo $ECHO_N "(cached) $ECHO_C" >&6
12112 ac_cv_header_kernel_OS_h
=$ac_header_preproc
12114 echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
12115 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6
12118 if test $ac_cv_header_kernel_OS_h = yes; then
12119 cat >>confdefs.h
<<\_ACEOF
12120 #define WITH_THREAD 1
12124 cat >>confdefs.h
<<\_ACEOF
12125 #define BEOS_THREADS 1
12128 THREADOBJ
="Python/thread.o"
12131 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
12132 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
12133 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
12134 echo $ECHO_N "(cached) $ECHO_C" >&6
12136 ac_check_lib_save_LIBS
=$LIBS
12137 LIBS
="-lpthreads $LIBS"
12138 cat >conftest.
$ac_ext <<_ACEOF
12141 cat confdefs.h
>>conftest.
$ac_ext
12142 cat >>conftest.
$ac_ext <<_ACEOF
12143 /* end confdefs.h. */
12145 /* Override any gcc2 internal prototype to avoid an error. */
12149 /* We use char because int might match the return type of a gcc2
12150 builtin and then its argument prototype would still apply. */
12151 char pthread_create ();
12160 rm -f conftest.
$ac_objext conftest
$ac_exeext
12161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12162 (eval $ac_link) 2>conftest.er1
12164 grep -v '^ *+' conftest.er1
>conftest.err
12166 cat conftest.err
>&5
12167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12168 (exit $ac_status); } &&
12169 { ac_try
='test -z "$ac_c_werror_flag"
12170 || test ! -s conftest.err'
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); }; } &&
12176 { ac_try
='test -s conftest$ac_exeext'
12177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12178 (eval $ac_try) 2>&5
12180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12181 (exit $ac_status); }; }; then
12182 ac_cv_lib_pthreads_pthread_create
=yes
12184 echo "$as_me: failed program was:" >&5
12185 sed 's/^/| /' conftest.
$ac_ext >&5
12187 ac_cv_lib_pthreads_pthread_create
=no
12189 rm -f conftest.err conftest.
$ac_objext \
12190 conftest
$ac_exeext conftest.
$ac_ext
12191 LIBS
=$ac_check_lib_save_LIBS
12193 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
12194 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
12195 if test $ac_cv_lib_pthreads_pthread_create = yes; then
12196 cat >>confdefs.h
<<\_ACEOF
12197 #define WITH_THREAD 1
12201 LIBS
="$LIBS -lpthreads"
12202 THREADOBJ
="Python/thread.o"
12205 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
12206 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
12207 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
12208 echo $ECHO_N "(cached) $ECHO_C" >&6
12210 ac_check_lib_save_LIBS
=$LIBS
12212 cat >conftest.
$ac_ext <<_ACEOF
12215 cat confdefs.h
>>conftest.
$ac_ext
12216 cat >>conftest.
$ac_ext <<_ACEOF
12217 /* end confdefs.h. */
12219 /* Override any gcc2 internal prototype to avoid an error. */
12223 /* We use char because int might match the return type of a gcc2
12224 builtin and then its argument prototype would still apply. */
12225 char pthread_create ();
12234 rm -f conftest.
$ac_objext conftest
$ac_exeext
12235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12236 (eval $ac_link) 2>conftest.er1
12238 grep -v '^ *+' conftest.er1
>conftest.err
12240 cat conftest.err
>&5
12241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12242 (exit $ac_status); } &&
12243 { ac_try
='test -z "$ac_c_werror_flag"
12244 || test ! -s conftest.err'
12245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12246 (eval $ac_try) 2>&5
12248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12249 (exit $ac_status); }; } &&
12250 { ac_try
='test -s conftest$ac_exeext'
12251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12252 (eval $ac_try) 2>&5
12254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12255 (exit $ac_status); }; }; then
12256 ac_cv_lib_c_r_pthread_create
=yes
12258 echo "$as_me: failed program was:" >&5
12259 sed 's/^/| /' conftest.
$ac_ext >&5
12261 ac_cv_lib_c_r_pthread_create
=no
12263 rm -f conftest.err conftest.
$ac_objext \
12264 conftest
$ac_exeext conftest.
$ac_ext
12265 LIBS
=$ac_check_lib_save_LIBS
12267 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
12268 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
12269 if test $ac_cv_lib_c_r_pthread_create = yes; then
12270 cat >>confdefs.h
<<\_ACEOF
12271 #define WITH_THREAD 1
12276 THREADOBJ
="Python/thread.o"
12279 echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
12280 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6
12281 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
12282 echo $ECHO_N "(cached) $ECHO_C" >&6
12284 ac_check_lib_save_LIBS
=$LIBS
12285 LIBS
="-lpthread $LIBS"
12286 cat >conftest.
$ac_ext <<_ACEOF
12289 cat confdefs.h
>>conftest.
$ac_ext
12290 cat >>conftest.
$ac_ext <<_ACEOF
12291 /* end confdefs.h. */
12293 /* Override any gcc2 internal prototype to avoid an error. */
12297 /* We use char because int might match the return type of a gcc2
12298 builtin and then its argument prototype would still apply. */
12299 char __pthread_create_system ();
12303 __pthread_create_system ();
12308 rm -f conftest.
$ac_objext conftest
$ac_exeext
12309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12310 (eval $ac_link) 2>conftest.er1
12312 grep -v '^ *+' conftest.er1
>conftest.err
12314 cat conftest.err
>&5
12315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12316 (exit $ac_status); } &&
12317 { ac_try
='test -z "$ac_c_werror_flag"
12318 || test ! -s conftest.err'
12319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12320 (eval $ac_try) 2>&5
12322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12323 (exit $ac_status); }; } &&
12324 { ac_try
='test -s conftest$ac_exeext'
12325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12326 (eval $ac_try) 2>&5
12328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12329 (exit $ac_status); }; }; then
12330 ac_cv_lib_pthread___pthread_create_system
=yes
12332 echo "$as_me: failed program was:" >&5
12333 sed 's/^/| /' conftest.
$ac_ext >&5
12335 ac_cv_lib_pthread___pthread_create_system
=no
12337 rm -f conftest.err conftest.
$ac_objext \
12338 conftest
$ac_exeext conftest.
$ac_ext
12339 LIBS
=$ac_check_lib_save_LIBS
12341 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
12342 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6
12343 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
12344 cat >>confdefs.h
<<\_ACEOF
12345 #define WITH_THREAD 1
12349 LIBS
="$LIBS -lpthread"
12350 THREADOBJ
="Python/thread.o"
12353 echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
12354 echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6
12355 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
12356 echo $ECHO_N "(cached) $ECHO_C" >&6
12358 ac_check_lib_save_LIBS
=$LIBS
12360 cat >conftest.
$ac_ext <<_ACEOF
12363 cat confdefs.h
>>conftest.
$ac_ext
12364 cat >>conftest.
$ac_ext <<_ACEOF
12365 /* end confdefs.h. */
12367 /* Override any gcc2 internal prototype to avoid an error. */
12371 /* We use char because int might match the return type of a gcc2
12372 builtin and then its argument prototype would still apply. */
12373 char pthread_create ();
12382 rm -f conftest.
$ac_objext conftest
$ac_exeext
12383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12384 (eval $ac_link) 2>conftest.er1
12386 grep -v '^ *+' conftest.er1
>conftest.err
12388 cat conftest.err
>&5
12389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12390 (exit $ac_status); } &&
12391 { ac_try
='test -z "$ac_c_werror_flag"
12392 || test ! -s conftest.err'
12393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12394 (eval $ac_try) 2>&5
12396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12397 (exit $ac_status); }; } &&
12398 { ac_try
='test -s conftest$ac_exeext'
12399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12400 (eval $ac_try) 2>&5
12402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12403 (exit $ac_status); }; }; then
12404 ac_cv_lib_cma_pthread_create
=yes
12406 echo "$as_me: failed program was:" >&5
12407 sed 's/^/| /' conftest.
$ac_ext >&5
12409 ac_cv_lib_cma_pthread_create
=no
12411 rm -f conftest.err conftest.
$ac_objext \
12412 conftest
$ac_exeext conftest.
$ac_ext
12413 LIBS
=$ac_check_lib_save_LIBS
12415 echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
12416 echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6
12417 if test $ac_cv_lib_cma_pthread_create = yes; then
12418 cat >>confdefs.h
<<\_ACEOF
12419 #define WITH_THREAD 1
12424 THREADOBJ
="Python/thread.o"
12427 USE_THREAD_MODULE
="#"
12446 rm -f conftest.err conftest.
$ac_objext \
12447 conftest
$ac_exeext conftest.
$ac_ext
12456 echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
12457 echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6
12458 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
12459 echo $ECHO_N "(cached) $ECHO_C" >&6
12461 ac_check_lib_save_LIBS
=$LIBS
12463 cat >conftest.
$ac_ext <<_ACEOF
12466 cat confdefs.h
>>conftest.
$ac_ext
12467 cat >>conftest.
$ac_ext <<_ACEOF
12468 /* end confdefs.h. */
12470 /* Override any gcc2 internal prototype to avoid an error. */
12474 /* We use char because int might match the return type of a gcc2
12475 builtin and then its argument prototype would still apply. */
12485 rm -f conftest.
$ac_objext conftest
$ac_exeext
12486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12487 (eval $ac_link) 2>conftest.er1
12489 grep -v '^ *+' conftest.er1
>conftest.err
12491 cat conftest.err
>&5
12492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12493 (exit $ac_status); } &&
12494 { ac_try
='test -z "$ac_c_werror_flag"
12495 || test ! -s conftest.err'
12496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12497 (eval $ac_try) 2>&5
12499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12500 (exit $ac_status); }; } &&
12501 { ac_try
='test -s conftest$ac_exeext'
12502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12503 (eval $ac_try) 2>&5
12505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12506 (exit $ac_status); }; }; then
12507 ac_cv_lib_mpc_usconfig
=yes
12509 echo "$as_me: failed program was:" >&5
12510 sed 's/^/| /' conftest.
$ac_ext >&5
12512 ac_cv_lib_mpc_usconfig
=no
12514 rm -f conftest.err conftest.
$ac_objext \
12515 conftest
$ac_exeext conftest.
$ac_ext
12516 LIBS
=$ac_check_lib_save_LIBS
12518 echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
12519 echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6
12520 if test $ac_cv_lib_mpc_usconfig = yes; then
12521 cat >>confdefs.h
<<\_ACEOF
12522 #define WITH_THREAD 1
12526 THREADOBJ
="Python/thread.o"
12527 USE_THREAD_MODULE
=""
12531 if test "$posix_threads" != "yes"; then
12532 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
12533 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
12534 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
12535 echo $ECHO_N "(cached) $ECHO_C" >&6
12537 ac_check_lib_save_LIBS
=$LIBS
12538 LIBS
="-lthread $LIBS"
12539 cat >conftest.
$ac_ext <<_ACEOF
12542 cat confdefs.h
>>conftest.
$ac_ext
12543 cat >>conftest.
$ac_ext <<_ACEOF
12544 /* end confdefs.h. */
12546 /* Override any gcc2 internal prototype to avoid an error. */
12550 /* We use char because int might match the return type of a gcc2
12551 builtin and then its argument prototype would still apply. */
12552 char thr_create ();
12561 rm -f conftest.
$ac_objext conftest
$ac_exeext
12562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12563 (eval $ac_link) 2>conftest.er1
12565 grep -v '^ *+' conftest.er1
>conftest.err
12567 cat conftest.err
>&5
12568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12569 (exit $ac_status); } &&
12570 { ac_try
='test -z "$ac_c_werror_flag"
12571 || test ! -s conftest.err'
12572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12573 (eval $ac_try) 2>&5
12575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12576 (exit $ac_status); }; } &&
12577 { ac_try
='test -s conftest$ac_exeext'
12578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12579 (eval $ac_try) 2>&5
12581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12582 (exit $ac_status); }; }; then
12583 ac_cv_lib_thread_thr_create
=yes
12585 echo "$as_me: failed program was:" >&5
12586 sed 's/^/| /' conftest.
$ac_ext >&5
12588 ac_cv_lib_thread_thr_create
=no
12590 rm -f conftest.err conftest.
$ac_objext \
12591 conftest
$ac_exeext conftest.
$ac_ext
12592 LIBS
=$ac_check_lib_save_LIBS
12594 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
12595 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
12596 if test $ac_cv_lib_thread_thr_create = yes; then
12597 cat >>confdefs.h
<<\_ACEOF
12598 #define WITH_THREAD 1
12601 LIBS
="$LIBS -lthread"
12602 THREADOBJ
="Python/thread.o"
12603 USE_THREAD_MODULE
=""
12608 if test "$USE_THREAD_MODULE" != "#"
12610 # If the above checks didn't disable threads, (at least) OSF1
12611 # needs this '-threads' argument during linking.
12612 case $ac_sys_system in
12613 OSF1
) LDLAST
=-threads;;
12618 if test "$posix_threads" = "yes"; then
12619 if test "$unistd_defines_pthreads" = "no"; then
12621 cat >>confdefs.h
<<\_ACEOF
12622 #define _POSIX_THREADS 1
12627 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
12628 case $ac_sys_system/$ac_sys_release in
12630 cat >>confdefs.h
<<\_ACEOF
12631 #define HAVE_PTHREAD_DESTRUCTOR 1
12636 cat >>confdefs.h
<<\_ACEOF
12637 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
12643 echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
12644 echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6
12645 if test "${ac_cv_pthread_system_supported+set}" = set; then
12646 echo $ECHO_N "(cached) $ECHO_C" >&6
12648 if test "$cross_compiling" = yes; then
12649 ac_cv_pthread_system_supported
=no
12651 cat >conftest.
$ac_ext <<_ACEOF
12654 cat confdefs.h
>>conftest.
$ac_ext
12655 cat >>conftest.
$ac_ext <<_ACEOF
12656 /* end confdefs.h. */
12657 #include <pthread.h>
12658 void *foo(void *parm) {
12662 pthread_attr_t attr;
12664 if (pthread_attr_init(&attr)) exit(-1);
12665 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
12666 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
12670 rm -f conftest
$ac_exeext
12671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12672 (eval $ac_link) 2>&5
12674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12675 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12677 (eval $ac_try) 2>&5
12679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12680 (exit $ac_status); }; }; then
12681 ac_cv_pthread_system_supported
=yes
12683 echo "$as_me: program exited with status $ac_status" >&5
12684 echo "$as_me: failed program was:" >&5
12685 sed 's/^/| /' conftest.
$ac_ext >&5
12687 ( exit $ac_status )
12688 ac_cv_pthread_system_supported
=no
12690 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12695 echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
12696 echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6
12697 if test "$ac_cv_pthread_system_supported" = "yes"; then
12699 cat >>confdefs.h
<<\_ACEOF
12700 #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
12705 for ac_func
in pthread_sigmask
12707 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12708 echo "$as_me:$LINENO: checking for $ac_func" >&5
12709 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12710 if eval "test \"\${$as_ac_var+set}\" = set"; then
12711 echo $ECHO_N "(cached) $ECHO_C" >&6
12713 cat >conftest.
$ac_ext <<_ACEOF
12716 cat confdefs.h
>>conftest.
$ac_ext
12717 cat >>conftest.
$ac_ext <<_ACEOF
12718 /* end confdefs.h. */
12719 /* System header to define __stub macros and hopefully few prototypes,
12720 which can conflict with char $ac_func (); below.
12721 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12722 <limits.h> exists even on freestanding compilers. Under hpux,
12723 including <limits.h> includes <sys/time.h> and causes problems
12724 checking for functions defined therein. */
12725 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
12726 # include <limits.h>
12728 # include <assert.h>
12730 /* Override any gcc2 internal prototype to avoid an error. */
12735 /* We use char because int might match the return type of a gcc2
12736 builtin and then its argument prototype would still apply. */
12738 /* The GNU C library defines this for functions which it implements
12739 to always fail with ENOSYS. Some functions are actually named
12740 something starting with __ and the normal name is an alias. */
12741 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12744 char (*f) () = $ac_func;
12753 return f != $ac_func;
12758 rm -f conftest.
$ac_objext conftest
$ac_exeext
12759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12760 (eval $ac_link) 2>conftest.er1
12762 grep -v '^ *+' conftest.er1
>conftest.err
12764 cat conftest.err
>&5
12765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12766 (exit $ac_status); } &&
12767 { ac_try
='test -z "$ac_c_werror_flag"
12768 || test ! -s conftest.err'
12769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12770 (eval $ac_try) 2>&5
12772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12773 (exit $ac_status); }; } &&
12774 { ac_try
='test -s conftest$ac_exeext'
12775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12776 (eval $ac_try) 2>&5
12778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12779 (exit $ac_status); }; }; then
12780 eval "$as_ac_var=yes"
12782 echo "$as_me: failed program was:" >&5
12783 sed 's/^/| /' conftest.
$ac_ext >&5
12785 eval "$as_ac_var=no"
12787 rm -f conftest.err conftest.
$ac_objext \
12788 conftest
$ac_exeext conftest.
$ac_ext
12790 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12791 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12792 if test `eval echo '${'$as_ac_var'}'` = yes; then
12793 cat >>confdefs.h
<<_ACEOF
12794 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12796 case $ac_sys_system in
12799 cat >>confdefs.h
<<\_ACEOF
12800 #define HAVE_BROKEN_PTHREAD_SIGMASK 1
12811 # Check for enable-ipv6
12814 echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
12815 echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6
12816 # Check whether --enable-ipv6 or --disable-ipv6 was given.
12817 if test "${enable_ipv6+set}" = set; then
12818 enableval
="$enable_ipv6"
12819 case "$enableval" in
12821 echo "$as_me:$LINENO: result: no" >&5
12822 echo "${ECHO_T}no" >&6
12825 *) echo "$as_me:$LINENO: result: yes" >&5
12826 echo "${ECHO_T}yes" >&6
12827 cat >>confdefs.h
<<\_ACEOF
12828 #define ENABLE_IPV6 1
12836 if test "$cross_compiling" = yes; then
12837 echo "$as_me:$LINENO: result: no" >&5
12838 echo "${ECHO_T}no" >&6
12842 cat >conftest.
$ac_ext <<_ACEOF
12845 cat confdefs.h
>>conftest.
$ac_ext
12846 cat >>conftest.
$ac_ext <<_ACEOF
12847 /* end confdefs.h. */
12848 /* AF_INET6 available check */
12849 #include <sys/types.h>
12850 #include <sys/socket.h>
12853 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
12860 rm -f conftest
$ac_exeext
12861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12862 (eval $ac_link) 2>&5
12864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12865 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12867 (eval $ac_try) 2>&5
12869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12870 (exit $ac_status); }; }; then
12871 echo "$as_me:$LINENO: result: yes" >&5
12872 echo "${ECHO_T}yes" >&6
12875 echo "$as_me: program exited with status $ac_status" >&5
12876 echo "$as_me: failed program was:" >&5
12877 sed 's/^/| /' conftest.
$ac_ext >&5
12879 ( exit $ac_status )
12880 echo "$as_me:$LINENO: result: no" >&5
12881 echo "${ECHO_T}no" >&6
12884 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12887 if test "$ipv6" = "yes"; then
12888 echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
12889 echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6
12890 cat >conftest.
$ac_ext <<_ACEOF
12893 cat confdefs.h
>>conftest.
$ac_ext
12894 cat >>conftest.
$ac_ext <<_ACEOF
12895 /* end confdefs.h. */
12896 #include <sys/types.h>
12897 #include <netinet/in.h>
12901 struct sockaddr_in6 x;
12907 rm -f conftest.
$ac_objext
12908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12909 (eval $ac_compile) 2>conftest.er1
12911 grep -v '^ *+' conftest.er1
>conftest.err
12913 cat conftest.err
>&5
12914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12915 (exit $ac_status); } &&
12916 { ac_try
='test -z "$ac_c_werror_flag"
12917 || test ! -s conftest.err'
12918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12919 (eval $ac_try) 2>&5
12921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12922 (exit $ac_status); }; } &&
12923 { ac_try
='test -s conftest.$ac_objext'
12924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12925 (eval $ac_try) 2>&5
12927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12928 (exit $ac_status); }; }; then
12929 echo "$as_me:$LINENO: result: yes" >&5
12930 echo "${ECHO_T}yes" >&6
12933 echo "$as_me: failed program was:" >&5
12934 sed 's/^/| /' conftest.
$ac_ext >&5
12936 echo "$as_me:$LINENO: result: no" >&5
12937 echo "${ECHO_T}no" >&6
12940 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12943 if test "$ipv6" = "yes"; then
12944 cat >>confdefs.h
<<\_ACEOF
12945 #define ENABLE_IPV6 1
12956 if test "$ipv6" = "yes"; then
12957 echo "$as_me:$LINENO: checking ipv6 stack type" >&5
12958 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6
12959 for i
in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta
;
12963 cat >conftest.
$ac_ext <<_ACEOF
12966 cat confdefs.h
>>conftest.
$ac_ext
12967 cat >>conftest.
$ac_ext <<_ACEOF
12968 /* end confdefs.h. */
12970 #include <netinet/in.h>
12971 #ifdef IPV6_INRIA_VERSION
12975 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12976 $EGREP "yes" >/dev
/null
2>&1; then
12983 cat >conftest.
$ac_ext <<_ACEOF
12986 cat confdefs.h
>>conftest.
$ac_ext
12987 cat >>conftest.
$ac_ext <<_ACEOF
12988 /* end confdefs.h. */
12990 #include <netinet/in.h>
12995 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12996 $EGREP "yes" >/dev
/null
2>&1; then
12999 ipv6libdir
=/usr
/local
/v
6/lib
13006 cat >conftest.
$ac_ext <<_ACEOF
13009 cat confdefs.h
>>conftest.
$ac_ext
13010 cat >>conftest.
$ac_ext <<_ACEOF
13011 /* end confdefs.h. */
13013 #include <features.h>
13014 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
13018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13019 $EGREP "yes" >/dev
/null
2>&1; then
13027 if test -d /usr
/inet6
; then
13030 ipv6libdir
=/usr
/inet
6/lib
13031 BASECFLAGS
="-I/usr/inet6/include $BASECFLAGS"
13035 if test -f /etc
/netconfig
; then
13036 if /usr
/xpg
4/bin
/grep -q tcp6
/etc
/netconfig
; then
13043 cat >conftest.
$ac_ext <<_ACEOF
13046 cat confdefs.h
>>conftest.
$ac_ext
13047 cat >>conftest.
$ac_ext <<_ACEOF
13048 /* end confdefs.h. */
13050 #include <sys/param.h>
13051 #ifdef _TOSHIBA_INET6
13055 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13056 $EGREP "yes" >/dev
/null
2>&1; then
13059 ipv6libdir
=/usr
/local
/v
6/lib
13065 cat >conftest.
$ac_ext <<_ACEOF
13068 cat confdefs.h
>>conftest.
$ac_ext
13069 cat >>conftest.
$ac_ext <<_ACEOF
13070 /* end confdefs.h. */
13072 #include </usr/local/v6/include/sys/v6config.h>
13077 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13078 $EGREP "yes" >/dev
/null
2>&1; then
13081 ipv6libdir
=/usr
/local
/v
6/lib
;
13082 BASECFLAGS
="-I/usr/local/v6/include $BASECFLAGS"
13088 cat >conftest.
$ac_ext <<_ACEOF
13091 cat confdefs.h
>>conftest.
$ac_ext
13092 cat >>conftest.
$ac_ext <<_ACEOF
13093 /* end confdefs.h. */
13095 #include <sys/param.h>
13096 #ifdef _ZETA_MINAMI_INET6
13100 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13101 $EGREP "yes" >/dev
/null
2>&1; then
13104 ipv6libdir
=/usr
/local
/v
6/lib
13110 if test "$ipv6type" != "unknown"; then
13114 echo "$as_me:$LINENO: result: $ipv6type" >&5
13115 echo "${ECHO_T}$ipv6type" >&6
13118 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
13119 if test -d $ipv6libdir -a -f $ipv6libdir/lib
$ipv6lib.a
; then
13120 LIBS
="-L$ipv6libdir -l$ipv6lib $LIBS"
13121 echo "using lib$ipv6lib"
13123 if test $ipv6trylibc = "yes"; then
13126 echo 'Fatal: no $ipv6lib library found. cannot continue.'
13127 echo "You need to fetch lib$ipv6lib.a from appropriate"
13128 echo 'ipv6 kit and compile beforehand.'
13134 # Check for --with-doc-strings
13135 echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
13136 echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6
13138 # Check whether --with-doc-strings or --without-doc-strings was given.
13139 if test "${with_doc_strings+set}" = set; then
13140 withval
="$with_doc_strings"
13144 if test -z "$with_doc_strings"
13145 then with_doc_strings
="yes"
13147 if test "$with_doc_strings" != "no"
13150 cat >>confdefs.h
<<\_ACEOF
13151 #define WITH_DOC_STRINGS 1
13155 echo "$as_me:$LINENO: result: $with_doc_strings" >&5
13156 echo "${ECHO_T}$with_doc_strings" >&6
13158 # Check for Python-specific malloc support
13159 echo "$as_me:$LINENO: checking for --with-tsc" >&5
13160 echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6
13162 # Check whether --with-tsc or --without-tsc was given.
13163 if test "${with_tsc+set}" = set; then
13164 withval
="$with_tsc"
13166 if test "$withval" != no
13169 cat >>confdefs.h
<<\_ACEOF
13173 echo "$as_me:$LINENO: result: yes" >&5
13174 echo "${ECHO_T}yes" >&6
13175 else echo "$as_me:$LINENO: result: no" >&5
13176 echo "${ECHO_T}no" >&6
13179 echo "$as_me:$LINENO: result: no" >&5
13180 echo "${ECHO_T}no" >&6
13183 # Check for Python-specific malloc support
13184 echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
13185 echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6
13187 # Check whether --with-pymalloc or --without-pymalloc was given.
13188 if test "${with_pymalloc+set}" = set; then
13189 withval
="$with_pymalloc"
13193 if test -z "$with_pymalloc"
13194 then with_pymalloc
="yes"
13196 if test "$with_pymalloc" != "no"
13199 cat >>confdefs.h
<<\_ACEOF
13200 #define WITH_PYMALLOC 1
13204 echo "$as_me:$LINENO: result: $with_pymalloc" >&5
13205 echo "${ECHO_T}$with_pymalloc" >&6
13207 # Check for --with-wctype-functions
13208 echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
13209 echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6
13211 # Check whether --with-wctype-functions or --without-wctype-functions was given.
13212 if test "${with_wctype_functions+set}" = set; then
13213 withval
="$with_wctype_functions"
13215 if test "$withval" != no
13218 cat >>confdefs.h
<<\_ACEOF
13219 #define WANT_WCTYPE_FUNCTIONS 1
13222 echo "$as_me:$LINENO: result: yes" >&5
13223 echo "${ECHO_T}yes" >&6
13224 else echo "$as_me:$LINENO: result: no" >&5
13225 echo "${ECHO_T}no" >&6
13228 echo "$as_me:$LINENO: result: no" >&5
13229 echo "${ECHO_T}no" >&6
13232 # -I${DLINCLDIR} is added to the compile rule for importdl.o
13236 # the dlopen() function means we might want to use dynload_shlib.o. some
13237 # platforms, such as AIX, have dlopen(), but don't want to use it.
13239 for ac_func
in dlopen
13241 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13242 echo "$as_me:$LINENO: checking for $ac_func" >&5
13243 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13244 if eval "test \"\${$as_ac_var+set}\" = set"; then
13245 echo $ECHO_N "(cached) $ECHO_C" >&6
13247 cat >conftest.
$ac_ext <<_ACEOF
13250 cat confdefs.h
>>conftest.
$ac_ext
13251 cat >>conftest.
$ac_ext <<_ACEOF
13252 /* end confdefs.h. */
13253 /* System header to define __stub macros and hopefully few prototypes,
13254 which can conflict with char $ac_func (); below.
13255 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13256 <limits.h> exists even on freestanding compilers. Under hpux,
13257 including <limits.h> includes <sys/time.h> and causes problems
13258 checking for functions defined therein. */
13259 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
13260 # include <limits.h>
13262 # include <assert.h>
13264 /* Override any gcc2 internal prototype to avoid an error. */
13269 /* We use char because int might match the return type of a gcc2
13270 builtin and then its argument prototype would still apply. */
13272 /* The GNU C library defines this for functions which it implements
13273 to always fail with ENOSYS. Some functions are actually named
13274 something starting with __ and the normal name is an alias. */
13275 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13278 char (*f) () = $ac_func;
13287 return f != $ac_func;
13292 rm -f conftest.
$ac_objext conftest
$ac_exeext
13293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13294 (eval $ac_link) 2>conftest.er1
13296 grep -v '^ *+' conftest.er1
>conftest.err
13298 cat conftest.err
>&5
13299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13300 (exit $ac_status); } &&
13301 { ac_try
='test -z "$ac_c_werror_flag"
13302 || test ! -s conftest.err'
13303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13304 (eval $ac_try) 2>&5
13306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13307 (exit $ac_status); }; } &&
13308 { ac_try
='test -s conftest$ac_exeext'
13309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13310 (eval $ac_try) 2>&5
13312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13313 (exit $ac_status); }; }; then
13314 eval "$as_ac_var=yes"
13316 echo "$as_me: failed program was:" >&5
13317 sed 's/^/| /' conftest.
$ac_ext >&5
13319 eval "$as_ac_var=no"
13321 rm -f conftest.err conftest.
$ac_objext \
13322 conftest
$ac_exeext conftest.
$ac_ext
13324 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13325 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13326 if test `eval echo '${'$as_ac_var'}'` = yes; then
13327 cat >>confdefs.h
<<_ACEOF
13328 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13335 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
13336 # loading of modules.
13338 echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
13339 echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6
13340 if test -z "$DYNLOADFILE"
13342 case $ac_sys_system/$ac_sys_release in
13343 AIX
*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
13344 if test "$ac_cv_func_dlopen" = yes
13345 then DYNLOADFILE
="dynload_shlib.o"
13346 else DYNLOADFILE
="dynload_aix.o"
13349 BeOS
*) DYNLOADFILE
="dynload_beos.o";;
13350 hp
*|HP
*) DYNLOADFILE
="dynload_hpux.o";;
13351 Darwin
/*) DYNLOADFILE
="dynload_next.o";;
13352 atheos
*) DYNLOADFILE
="dynload_atheos.o";;
13354 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
13355 # out any dynamic loading
13356 if test "$ac_cv_func_dlopen" = yes
13357 then DYNLOADFILE
="dynload_shlib.o"
13358 else DYNLOADFILE
="dynload_stub.o"
13363 echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
13364 echo "${ECHO_T}$DYNLOADFILE" >&6
13365 if test "$DYNLOADFILE" != "dynload_stub.o"
13368 cat >>confdefs.h
<<\_ACEOF
13369 #define HAVE_DYNAMIC_LOADING 1
13374 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
13377 echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
13378 echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6
13379 if test -z "$MACHDEP_OBJS"
13381 MACHDEP_OBJS
=$extra_machdep_objs
13383 MACHDEP_OBJS
="$MACHDEP_OBJS $extra_machdep_objs"
13385 echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
13386 echo "${ECHO_T}MACHDEP_OBJS" >&6
13388 # checks for library functions
13463 for ac_func
in alarm bind_textdomain_codeset chown
clock confstr ctermid \
13464 execv fork fpathconf ftime ftruncate \
13465 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
13466 getpriority getpwent getspnam getspent getsid getwd \
13467 kill killpg lchown lstat
mkfifo mknod mktime \
13468 mremap nice pathconf pause plock poll pthread_init \
13469 putenv readlink realpath \
13470 select setegid seteuid setgid \
13471 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
13472 sigaction siginterrupt sigrelse strftime \
13473 sysconf tcgetpgrp tcsetpgrp tempnam timegm
times tmpfile tmpnam tmpnam_r \
13474 truncate uname unsetenv utimes waitpid wcscoll _getpty
13476 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13477 echo "$as_me:$LINENO: checking for $ac_func" >&5
13478 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13479 if eval "test \"\${$as_ac_var+set}\" = set"; then
13480 echo $ECHO_N "(cached) $ECHO_C" >&6
13482 cat >conftest.
$ac_ext <<_ACEOF
13485 cat confdefs.h
>>conftest.
$ac_ext
13486 cat >>conftest.
$ac_ext <<_ACEOF
13487 /* end confdefs.h. */
13488 /* System header to define __stub macros and hopefully few prototypes,
13489 which can conflict with char $ac_func (); below.
13490 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13491 <limits.h> exists even on freestanding compilers. Under hpux,
13492 including <limits.h> includes <sys/time.h> and causes problems
13493 checking for functions defined therein. */
13494 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
13495 # include <limits.h>
13497 # include <assert.h>
13499 /* Override any gcc2 internal prototype to avoid an error. */
13504 /* We use char because int might match the return type of a gcc2
13505 builtin and then its argument prototype would still apply. */
13507 /* The GNU C library defines this for functions which it implements
13508 to always fail with ENOSYS. Some functions are actually named
13509 something starting with __ and the normal name is an alias. */
13510 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13513 char (*f) () = $ac_func;
13522 return f != $ac_func;
13527 rm -f conftest.
$ac_objext conftest
$ac_exeext
13528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13529 (eval $ac_link) 2>conftest.er1
13531 grep -v '^ *+' conftest.er1
>conftest.err
13533 cat conftest.err
>&5
13534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13535 (exit $ac_status); } &&
13536 { ac_try
='test -z "$ac_c_werror_flag"
13537 || test ! -s conftest.err'
13538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13539 (eval $ac_try) 2>&5
13541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13542 (exit $ac_status); }; } &&
13543 { ac_try
='test -s conftest$ac_exeext'
13544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13545 (eval $ac_try) 2>&5
13547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13548 (exit $ac_status); }; }; then
13549 eval "$as_ac_var=yes"
13551 echo "$as_me: failed program was:" >&5
13552 sed 's/^/| /' conftest.
$ac_ext >&5
13554 eval "$as_ac_var=no"
13556 rm -f conftest.err conftest.
$ac_objext \
13557 conftest
$ac_exeext conftest.
$ac_ext
13559 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13560 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13561 if test `eval echo '${'$as_ac_var'}'` = yes; then
13562 cat >>confdefs.h
<<_ACEOF
13563 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13570 # For some functions, having a definition is not sufficient, since
13571 # we want to take their address.
13572 echo "$as_me:$LINENO: checking for chroot" >&5
13573 echo $ECHO_N "checking for chroot... $ECHO_C" >&6
13574 cat >conftest.
$ac_ext <<_ACEOF
13577 cat confdefs.h
>>conftest.
$ac_ext
13578 cat >>conftest.
$ac_ext <<_ACEOF
13579 /* end confdefs.h. */
13580 #include <unistd.h>
13589 rm -f conftest.
$ac_objext
13590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13591 (eval $ac_compile) 2>conftest.er1
13593 grep -v '^ *+' conftest.er1
>conftest.err
13595 cat conftest.err
>&5
13596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13597 (exit $ac_status); } &&
13598 { ac_try
='test -z "$ac_c_werror_flag"
13599 || test ! -s conftest.err'
13600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13601 (eval $ac_try) 2>&5
13603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13604 (exit $ac_status); }; } &&
13605 { ac_try
='test -s conftest.$ac_objext'
13606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13607 (eval $ac_try) 2>&5
13609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13610 (exit $ac_status); }; }; then
13612 cat >>confdefs.h
<<\_ACEOF
13613 #define HAVE_CHROOT 1
13616 echo "$as_me:$LINENO: result: yes" >&5
13617 echo "${ECHO_T}yes" >&6
13619 echo "$as_me: failed program was:" >&5
13620 sed 's/^/| /' conftest.
$ac_ext >&5
13622 echo "$as_me:$LINENO: result: no" >&5
13623 echo "${ECHO_T}no" >&6
13626 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13627 echo "$as_me:$LINENO: checking for link" >&5
13628 echo $ECHO_N "checking for link... $ECHO_C" >&6
13629 cat >conftest.
$ac_ext <<_ACEOF
13632 cat confdefs.h
>>conftest.
$ac_ext
13633 cat >>conftest.
$ac_ext <<_ACEOF
13634 /* end confdefs.h. */
13635 #include <unistd.h>
13644 rm -f conftest.
$ac_objext
13645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13646 (eval $ac_compile) 2>conftest.er1
13648 grep -v '^ *+' conftest.er1
>conftest.err
13650 cat conftest.err
>&5
13651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13652 (exit $ac_status); } &&
13653 { ac_try
='test -z "$ac_c_werror_flag"
13654 || test ! -s conftest.err'
13655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13656 (eval $ac_try) 2>&5
13658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13659 (exit $ac_status); }; } &&
13660 { ac_try
='test -s conftest.$ac_objext'
13661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13662 (eval $ac_try) 2>&5
13664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13665 (exit $ac_status); }; }; then
13667 cat >>confdefs.h
<<\_ACEOF
13668 #define HAVE_LINK 1
13671 echo "$as_me:$LINENO: result: yes" >&5
13672 echo "${ECHO_T}yes" >&6
13674 echo "$as_me: failed program was:" >&5
13675 sed 's/^/| /' conftest.
$ac_ext >&5
13677 echo "$as_me:$LINENO: result: no" >&5
13678 echo "${ECHO_T}no" >&6
13681 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13682 echo "$as_me:$LINENO: checking for symlink" >&5
13683 echo $ECHO_N "checking for symlink... $ECHO_C" >&6
13684 cat >conftest.
$ac_ext <<_ACEOF
13687 cat confdefs.h
>>conftest.
$ac_ext
13688 cat >>conftest.
$ac_ext <<_ACEOF
13689 /* end confdefs.h. */
13690 #include <unistd.h>
13699 rm -f conftest.
$ac_objext
13700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13701 (eval $ac_compile) 2>conftest.er1
13703 grep -v '^ *+' conftest.er1
>conftest.err
13705 cat conftest.err
>&5
13706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13707 (exit $ac_status); } &&
13708 { ac_try
='test -z "$ac_c_werror_flag"
13709 || test ! -s conftest.err'
13710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13711 (eval $ac_try) 2>&5
13713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13714 (exit $ac_status); }; } &&
13715 { ac_try
='test -s conftest.$ac_objext'
13716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13717 (eval $ac_try) 2>&5
13719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13720 (exit $ac_status); }; }; then
13722 cat >>confdefs.h
<<\_ACEOF
13723 #define HAVE_SYMLINK 1
13726 echo "$as_me:$LINENO: result: yes" >&5
13727 echo "${ECHO_T}yes" >&6
13729 echo "$as_me: failed program was:" >&5
13730 sed 's/^/| /' conftest.
$ac_ext >&5
13732 echo "$as_me:$LINENO: result: no" >&5
13733 echo "${ECHO_T}no" >&6
13736 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13737 echo "$as_me:$LINENO: checking for fchdir" >&5
13738 echo $ECHO_N "checking for fchdir... $ECHO_C" >&6
13739 cat >conftest.
$ac_ext <<_ACEOF
13742 cat confdefs.h
>>conftest.
$ac_ext
13743 cat >>conftest.
$ac_ext <<_ACEOF
13744 /* end confdefs.h. */
13745 #include <unistd.h>
13754 rm -f conftest.
$ac_objext
13755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13756 (eval $ac_compile) 2>conftest.er1
13758 grep -v '^ *+' conftest.er1
>conftest.err
13760 cat conftest.err
>&5
13761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13762 (exit $ac_status); } &&
13763 { ac_try
='test -z "$ac_c_werror_flag"
13764 || test ! -s conftest.err'
13765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13766 (eval $ac_try) 2>&5
13768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13769 (exit $ac_status); }; } &&
13770 { ac_try
='test -s conftest.$ac_objext'
13771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13772 (eval $ac_try) 2>&5
13774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13775 (exit $ac_status); }; }; then
13777 cat >>confdefs.h
<<\_ACEOF
13778 #define HAVE_FCHDIR 1
13781 echo "$as_me:$LINENO: result: yes" >&5
13782 echo "${ECHO_T}yes" >&6
13784 echo "$as_me: failed program was:" >&5
13785 sed 's/^/| /' conftest.
$ac_ext >&5
13787 echo "$as_me:$LINENO: result: no" >&5
13788 echo "${ECHO_T}no" >&6
13791 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13792 echo "$as_me:$LINENO: checking for fsync" >&5
13793 echo $ECHO_N "checking for fsync... $ECHO_C" >&6
13794 cat >conftest.
$ac_ext <<_ACEOF
13797 cat confdefs.h
>>conftest.
$ac_ext
13798 cat >>conftest.
$ac_ext <<_ACEOF
13799 /* end confdefs.h. */
13800 #include <unistd.h>
13809 rm -f conftest.
$ac_objext
13810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13811 (eval $ac_compile) 2>conftest.er1
13813 grep -v '^ *+' conftest.er1
>conftest.err
13815 cat conftest.err
>&5
13816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13817 (exit $ac_status); } &&
13818 { ac_try
='test -z "$ac_c_werror_flag"
13819 || test ! -s conftest.err'
13820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13821 (eval $ac_try) 2>&5
13823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13824 (exit $ac_status); }; } &&
13825 { ac_try
='test -s conftest.$ac_objext'
13826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13827 (eval $ac_try) 2>&5
13829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13830 (exit $ac_status); }; }; then
13832 cat >>confdefs.h
<<\_ACEOF
13833 #define HAVE_FSYNC 1
13836 echo "$as_me:$LINENO: result: yes" >&5
13837 echo "${ECHO_T}yes" >&6
13839 echo "$as_me: failed program was:" >&5
13840 sed 's/^/| /' conftest.
$ac_ext >&5
13842 echo "$as_me:$LINENO: result: no" >&5
13843 echo "${ECHO_T}no" >&6
13846 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13847 echo "$as_me:$LINENO: checking for fdatasync" >&5
13848 echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6
13849 cat >conftest.
$ac_ext <<_ACEOF
13852 cat confdefs.h
>>conftest.
$ac_ext
13853 cat >>conftest.
$ac_ext <<_ACEOF
13854 /* end confdefs.h. */
13855 #include <unistd.h>
13864 rm -f conftest.
$ac_objext
13865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13866 (eval $ac_compile) 2>conftest.er1
13868 grep -v '^ *+' conftest.er1
>conftest.err
13870 cat conftest.err
>&5
13871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13872 (exit $ac_status); } &&
13873 { ac_try
='test -z "$ac_c_werror_flag"
13874 || test ! -s conftest.err'
13875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13876 (eval $ac_try) 2>&5
13878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13879 (exit $ac_status); }; } &&
13880 { ac_try
='test -s conftest.$ac_objext'
13881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13882 (eval $ac_try) 2>&5
13884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13885 (exit $ac_status); }; }; then
13887 cat >>confdefs.h
<<\_ACEOF
13888 #define HAVE_FDATASYNC 1
13891 echo "$as_me:$LINENO: result: yes" >&5
13892 echo "${ECHO_T}yes" >&6
13894 echo "$as_me: failed program was:" >&5
13895 sed 's/^/| /' conftest.
$ac_ext >&5
13897 echo "$as_me:$LINENO: result: no" >&5
13898 echo "${ECHO_T}no" >&6
13901 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13903 # On some systems (eg. FreeBSD 5), we would find a definition of the
13904 # functions ctermid_r, setgroups in the library, but no prototype
13905 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
13906 # address to avoid compiler warnings and potential miscompilations
13907 # because of the missing prototypes.
13909 echo "$as_me:$LINENO: checking for ctermid_r" >&5
13910 echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6
13911 cat >conftest.
$ac_ext <<_ACEOF
13914 cat confdefs.h
>>conftest.
$ac_ext
13915 cat >>conftest.
$ac_ext <<_ACEOF
13916 /* end confdefs.h. */
13918 #include "confdefs.h"
13924 void* p = ctermid_r
13929 rm -f conftest.
$ac_objext
13930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13931 (eval $ac_compile) 2>conftest.er1
13933 grep -v '^ *+' conftest.er1
>conftest.err
13935 cat conftest.err
>&5
13936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13937 (exit $ac_status); } &&
13938 { ac_try
='test -z "$ac_c_werror_flag"
13939 || test ! -s conftest.err'
13940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13941 (eval $ac_try) 2>&5
13943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13944 (exit $ac_status); }; } &&
13945 { ac_try
='test -s conftest.$ac_objext'
13946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13947 (eval $ac_try) 2>&5
13949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13950 (exit $ac_status); }; }; then
13952 cat >>confdefs.h
<<\_ACEOF
13953 #define HAVE_CTERMID_R 1
13956 echo "$as_me:$LINENO: result: yes" >&5
13957 echo "${ECHO_T}yes" >&6
13959 echo "$as_me: failed program was:" >&5
13960 sed 's/^/| /' conftest.
$ac_ext >&5
13962 echo "$as_me:$LINENO: result: no" >&5
13963 echo "${ECHO_T}no" >&6
13966 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13968 echo "$as_me:$LINENO: checking for flock" >&5
13969 echo $ECHO_N "checking for flock... $ECHO_C" >&6
13970 cat >conftest.
$ac_ext <<_ACEOF
13973 cat confdefs.h
>>conftest.
$ac_ext
13974 cat >>conftest.
$ac_ext <<_ACEOF
13975 /* end confdefs.h. */
13977 #include "confdefs.h"
13978 #include <sys/file.h>
13988 rm -f conftest.
$ac_objext
13989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13990 (eval $ac_compile) 2>conftest.er1
13992 grep -v '^ *+' conftest.er1
>conftest.err
13994 cat conftest.err
>&5
13995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13996 (exit $ac_status); } &&
13997 { ac_try
='test -z "$ac_c_werror_flag"
13998 || test ! -s conftest.err'
13999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14000 (eval $ac_try) 2>&5
14002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14003 (exit $ac_status); }; } &&
14004 { ac_try
='test -s conftest.$ac_objext'
14005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14006 (eval $ac_try) 2>&5
14008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14009 (exit $ac_status); }; }; then
14011 cat >>confdefs.h
<<\_ACEOF
14012 #define HAVE_FLOCK 1
14015 echo "$as_me:$LINENO: result: yes" >&5
14016 echo "${ECHO_T}yes" >&6
14018 echo "$as_me: failed program was:" >&5
14019 sed 's/^/| /' conftest.
$ac_ext >&5
14021 echo "$as_me:$LINENO: result: no" >&5
14022 echo "${ECHO_T}no" >&6
14025 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14027 echo "$as_me:$LINENO: checking for getpagesize" >&5
14028 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6
14029 cat >conftest.
$ac_ext <<_ACEOF
14032 cat confdefs.h
>>conftest.
$ac_ext
14033 cat >>conftest.
$ac_ext <<_ACEOF
14034 /* end confdefs.h. */
14036 #include "confdefs.h"
14037 #include <unistd.h>
14042 void* p = getpagesize
14047 rm -f conftest.
$ac_objext
14048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14049 (eval $ac_compile) 2>conftest.er1
14051 grep -v '^ *+' conftest.er1
>conftest.err
14053 cat conftest.err
>&5
14054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14055 (exit $ac_status); } &&
14056 { ac_try
='test -z "$ac_c_werror_flag"
14057 || test ! -s conftest.err'
14058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14059 (eval $ac_try) 2>&5
14061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14062 (exit $ac_status); }; } &&
14063 { ac_try
='test -s conftest.$ac_objext'
14064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14065 (eval $ac_try) 2>&5
14067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14068 (exit $ac_status); }; }; then
14070 cat >>confdefs.h
<<\_ACEOF
14071 #define HAVE_GETPAGESIZE 1
14074 echo "$as_me:$LINENO: result: yes" >&5
14075 echo "${ECHO_T}yes" >&6
14077 echo "$as_me: failed program was:" >&5
14078 sed 's/^/| /' conftest.
$ac_ext >&5
14080 echo "$as_me:$LINENO: result: no" >&5
14081 echo "${ECHO_T}no" >&6
14084 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14086 for ac_prog
in true
14088 # Extract the first word of "$ac_prog", so it can be a program name with args.
14089 set dummy
$ac_prog; ac_word
=$2
14090 echo "$as_me:$LINENO: checking for $ac_word" >&5
14091 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14092 if test "${ac_cv_prog_TRUE+set}" = set; then
14093 echo $ECHO_N "(cached) $ECHO_C" >&6
14095 if test -n "$TRUE"; then
14096 ac_cv_prog_TRUE
="$TRUE" # Let the user override the test.
14098 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14099 for as_dir
in $PATH
14102 test -z "$as_dir" && as_dir
=.
14103 for ac_exec_ext
in '' $ac_executable_extensions; do
14104 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14105 ac_cv_prog_TRUE
="$ac_prog"
14106 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14114 TRUE
=$ac_cv_prog_TRUE
14115 if test -n "$TRUE"; then
14116 echo "$as_me:$LINENO: result: $TRUE" >&5
14117 echo "${ECHO_T}$TRUE" >&6
14119 echo "$as_me:$LINENO: result: no" >&5
14120 echo "${ECHO_T}no" >&6
14123 test -n "$TRUE" && break
14125 test -n "$TRUE" || TRUE
="/bin/true"
14128 echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
14129 echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6
14130 if test "${ac_cv_lib_c_inet_aton+set}" = set; then
14131 echo $ECHO_N "(cached) $ECHO_C" >&6
14133 ac_check_lib_save_LIBS
=$LIBS
14135 cat >conftest.
$ac_ext <<_ACEOF
14138 cat confdefs.h
>>conftest.
$ac_ext
14139 cat >>conftest.
$ac_ext <<_ACEOF
14140 /* end confdefs.h. */
14142 /* Override any gcc2 internal prototype to avoid an error. */
14146 /* We use char because int might match the return type of a gcc2
14147 builtin and then its argument prototype would still apply. */
14157 rm -f conftest.
$ac_objext conftest
$ac_exeext
14158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14159 (eval $ac_link) 2>conftest.er1
14161 grep -v '^ *+' conftest.er1
>conftest.err
14163 cat conftest.err
>&5
14164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14165 (exit $ac_status); } &&
14166 { ac_try
='test -z "$ac_c_werror_flag"
14167 || test ! -s conftest.err'
14168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14169 (eval $ac_try) 2>&5
14171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14172 (exit $ac_status); }; } &&
14173 { ac_try
='test -s conftest$ac_exeext'
14174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14175 (eval $ac_try) 2>&5
14177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14178 (exit $ac_status); }; }; then
14179 ac_cv_lib_c_inet_aton
=yes
14181 echo "$as_me: failed program was:" >&5
14182 sed 's/^/| /' conftest.
$ac_ext >&5
14184 ac_cv_lib_c_inet_aton
=no
14186 rm -f conftest.err conftest.
$ac_objext \
14187 conftest
$ac_exeext conftest.
$ac_ext
14188 LIBS
=$ac_check_lib_save_LIBS
14190 echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
14191 echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6
14192 if test $ac_cv_lib_c_inet_aton = yes; then
14196 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
14197 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
14198 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
14199 echo $ECHO_N "(cached) $ECHO_C" >&6
14201 ac_check_lib_save_LIBS
=$LIBS
14202 LIBS
="-lresolv $LIBS"
14203 cat >conftest.
$ac_ext <<_ACEOF
14206 cat confdefs.h
>>conftest.
$ac_ext
14207 cat >>conftest.
$ac_ext <<_ACEOF
14208 /* end confdefs.h. */
14210 /* Override any gcc2 internal prototype to avoid an error. */
14214 /* We use char because int might match the return type of a gcc2
14215 builtin and then its argument prototype would still apply. */
14225 rm -f conftest.
$ac_objext conftest
$ac_exeext
14226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14227 (eval $ac_link) 2>conftest.er1
14229 grep -v '^ *+' conftest.er1
>conftest.err
14231 cat conftest.err
>&5
14232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14233 (exit $ac_status); } &&
14234 { ac_try
='test -z "$ac_c_werror_flag"
14235 || test ! -s conftest.err'
14236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14237 (eval $ac_try) 2>&5
14239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14240 (exit $ac_status); }; } &&
14241 { ac_try
='test -s conftest$ac_exeext'
14242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14243 (eval $ac_try) 2>&5
14245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14246 (exit $ac_status); }; }; then
14247 ac_cv_lib_resolv_inet_aton
=yes
14249 echo "$as_me: failed program was:" >&5
14250 sed 's/^/| /' conftest.
$ac_ext >&5
14252 ac_cv_lib_resolv_inet_aton
=no
14254 rm -f conftest.err conftest.
$ac_objext \
14255 conftest
$ac_exeext conftest.
$ac_ext
14256 LIBS
=$ac_check_lib_save_LIBS
14258 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
14259 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
14260 if test $ac_cv_lib_resolv_inet_aton = yes; then
14261 cat >>confdefs.h
<<_ACEOF
14262 #define HAVE_LIBRESOLV 1
14265 LIBS
="-lresolv $LIBS"
14273 echo "$as_me:$LINENO: checking for hstrerror" >&5
14274 echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6
14275 cat >conftest.
$ac_ext <<_ACEOF
14278 cat confdefs.h
>>conftest.
$ac_ext
14279 cat >>conftest.
$ac_ext <<_ACEOF
14280 /* end confdefs.h. */
14282 #include "confdefs.h"
14288 void* p = hstrerror; hstrerror(0)
14293 rm -f conftest.
$ac_objext conftest
$ac_exeext
14294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14295 (eval $ac_link) 2>conftest.er1
14297 grep -v '^ *+' conftest.er1
>conftest.err
14299 cat conftest.err
>&5
14300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14301 (exit $ac_status); } &&
14302 { ac_try
='test -z "$ac_c_werror_flag"
14303 || test ! -s conftest.err'
14304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14305 (eval $ac_try) 2>&5
14307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14308 (exit $ac_status); }; } &&
14309 { ac_try
='test -s conftest$ac_exeext'
14310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14311 (eval $ac_try) 2>&5
14313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14314 (exit $ac_status); }; }; then
14316 cat >>confdefs.h
<<\_ACEOF
14317 #define HAVE_HSTRERROR 1
14320 echo "$as_me:$LINENO: result: yes" >&5
14321 echo "${ECHO_T}yes" >&6
14323 echo "$as_me: failed program was:" >&5
14324 sed 's/^/| /' conftest.
$ac_ext >&5
14326 echo "$as_me:$LINENO: result: no" >&5
14327 echo "${ECHO_T}no" >&6
14330 rm -f conftest.err conftest.
$ac_objext \
14331 conftest
$ac_exeext conftest.
$ac_ext
14333 echo "$as_me:$LINENO: checking for inet_aton" >&5
14334 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
14335 cat >conftest.
$ac_ext <<_ACEOF
14338 cat confdefs.h
>>conftest.
$ac_ext
14339 cat >>conftest.
$ac_ext <<_ACEOF
14340 /* end confdefs.h. */
14342 #include "confdefs.h"
14343 #include <sys/socket.h>
14344 #include <netinet/in.h>
14345 #include <arpa/inet.h>
14350 void* p = inet_aton;inet_aton(0,0)
14355 rm -f conftest.
$ac_objext conftest
$ac_exeext
14356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14357 (eval $ac_link) 2>conftest.er1
14359 grep -v '^ *+' conftest.er1
>conftest.err
14361 cat conftest.err
>&5
14362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14363 (exit $ac_status); } &&
14364 { ac_try
='test -z "$ac_c_werror_flag"
14365 || test ! -s conftest.err'
14366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14367 (eval $ac_try) 2>&5
14369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14370 (exit $ac_status); }; } &&
14371 { ac_try
='test -s conftest$ac_exeext'
14372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14373 (eval $ac_try) 2>&5
14375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14376 (exit $ac_status); }; }; then
14378 cat >>confdefs.h
<<\_ACEOF
14379 #define HAVE_INET_ATON 1
14382 echo "$as_me:$LINENO: result: yes" >&5
14383 echo "${ECHO_T}yes" >&6
14385 echo "$as_me: failed program was:" >&5
14386 sed 's/^/| /' conftest.
$ac_ext >&5
14388 echo "$as_me:$LINENO: result: no" >&5
14389 echo "${ECHO_T}no" >&6
14392 rm -f conftest.err conftest.
$ac_objext \
14393 conftest
$ac_exeext conftest.
$ac_ext
14395 echo "$as_me:$LINENO: checking for inet_pton" >&5
14396 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6
14397 cat >conftest.
$ac_ext <<_ACEOF
14400 cat confdefs.h
>>conftest.
$ac_ext
14401 cat >>conftest.
$ac_ext <<_ACEOF
14402 /* end confdefs.h. */
14404 #include "confdefs.h"
14405 #include <sys/types.h>
14406 #include <sys/socket.h>
14407 #include <netinet/in.h>
14408 #include <arpa/inet.h>
14413 void* p = inet_pton
14418 rm -f conftest.
$ac_objext
14419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14420 (eval $ac_compile) 2>conftest.er1
14422 grep -v '^ *+' conftest.er1
>conftest.err
14424 cat conftest.err
>&5
14425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14426 (exit $ac_status); } &&
14427 { ac_try
='test -z "$ac_c_werror_flag"
14428 || test ! -s conftest.err'
14429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14430 (eval $ac_try) 2>&5
14432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14433 (exit $ac_status); }; } &&
14434 { ac_try
='test -s conftest.$ac_objext'
14435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14436 (eval $ac_try) 2>&5
14438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14439 (exit $ac_status); }; }; then
14441 cat >>confdefs.h
<<\_ACEOF
14442 #define HAVE_INET_PTON 1
14445 echo "$as_me:$LINENO: result: yes" >&5
14446 echo "${ECHO_T}yes" >&6
14448 echo "$as_me: failed program was:" >&5
14449 sed 's/^/| /' conftest.
$ac_ext >&5
14451 echo "$as_me:$LINENO: result: no" >&5
14452 echo "${ECHO_T}no" >&6
14455 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14457 # On some systems, setgroups is in unistd.h, on others, in grp.h
14458 echo "$as_me:$LINENO: checking for setgroups" >&5
14459 echo $ECHO_N "checking for setgroups... $ECHO_C" >&6
14460 cat >conftest.
$ac_ext <<_ACEOF
14463 cat confdefs.h
>>conftest.
$ac_ext
14464 cat >>conftest.
$ac_ext <<_ACEOF
14465 /* end confdefs.h. */
14467 #include "confdefs.h"
14468 #include <unistd.h>
14476 void* p = setgroups
14481 rm -f conftest.
$ac_objext
14482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14483 (eval $ac_compile) 2>conftest.er1
14485 grep -v '^ *+' conftest.er1
>conftest.err
14487 cat conftest.err
>&5
14488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14489 (exit $ac_status); } &&
14490 { ac_try
='test -z "$ac_c_werror_flag"
14491 || test ! -s conftest.err'
14492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14493 (eval $ac_try) 2>&5
14495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14496 (exit $ac_status); }; } &&
14497 { ac_try
='test -s conftest.$ac_objext'
14498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14499 (eval $ac_try) 2>&5
14501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14502 (exit $ac_status); }; }; then
14504 cat >>confdefs.h
<<\_ACEOF
14505 #define HAVE_SETGROUPS 1
14508 echo "$as_me:$LINENO: result: yes" >&5
14509 echo "${ECHO_T}yes" >&6
14511 echo "$as_me: failed program was:" >&5
14512 sed 's/^/| /' conftest.
$ac_ext >&5
14514 echo "$as_me:$LINENO: result: no" >&5
14515 echo "${ECHO_T}no" >&6
14518 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14520 # check for openpty and forkpty
14523 for ac_func
in openpty
14525 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14526 echo "$as_me:$LINENO: checking for $ac_func" >&5
14527 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14528 if eval "test \"\${$as_ac_var+set}\" = set"; then
14529 echo $ECHO_N "(cached) $ECHO_C" >&6
14531 cat >conftest.
$ac_ext <<_ACEOF
14534 cat confdefs.h
>>conftest.
$ac_ext
14535 cat >>conftest.
$ac_ext <<_ACEOF
14536 /* end confdefs.h. */
14537 /* System header to define __stub macros and hopefully few prototypes,
14538 which can conflict with char $ac_func (); below.
14539 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14540 <limits.h> exists even on freestanding compilers. Under hpux,
14541 including <limits.h> includes <sys/time.h> and causes problems
14542 checking for functions defined therein. */
14543 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
14544 # include <limits.h>
14546 # include <assert.h>
14548 /* Override any gcc2 internal prototype to avoid an error. */
14553 /* We use char because int might match the return type of a gcc2
14554 builtin and then its argument prototype would still apply. */
14556 /* The GNU C library defines this for functions which it implements
14557 to always fail with ENOSYS. Some functions are actually named
14558 something starting with __ and the normal name is an alias. */
14559 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14562 char (*f) () = $ac_func;
14571 return f != $ac_func;
14576 rm -f conftest.
$ac_objext conftest
$ac_exeext
14577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14578 (eval $ac_link) 2>conftest.er1
14580 grep -v '^ *+' conftest.er1
>conftest.err
14582 cat conftest.err
>&5
14583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14584 (exit $ac_status); } &&
14585 { ac_try
='test -z "$ac_c_werror_flag"
14586 || test ! -s conftest.err'
14587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14588 (eval $ac_try) 2>&5
14590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14591 (exit $ac_status); }; } &&
14592 { ac_try
='test -s conftest$ac_exeext'
14593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14594 (eval $ac_try) 2>&5
14596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14597 (exit $ac_status); }; }; then
14598 eval "$as_ac_var=yes"
14600 echo "$as_me: failed program was:" >&5
14601 sed 's/^/| /' conftest.
$ac_ext >&5
14603 eval "$as_ac_var=no"
14605 rm -f conftest.err conftest.
$ac_objext \
14606 conftest
$ac_exeext conftest.
$ac_ext
14608 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14609 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14610 if test `eval echo '${'$as_ac_var'}'` = yes; then
14611 cat >>confdefs.h
<<_ACEOF
14612 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14616 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
14617 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
14618 if test "${ac_cv_lib_util_openpty+set}" = set; then
14619 echo $ECHO_N "(cached) $ECHO_C" >&6
14621 ac_check_lib_save_LIBS
=$LIBS
14622 LIBS
="-lutil $LIBS"
14623 cat >conftest.
$ac_ext <<_ACEOF
14626 cat confdefs.h
>>conftest.
$ac_ext
14627 cat >>conftest.
$ac_ext <<_ACEOF
14628 /* end confdefs.h. */
14630 /* Override any gcc2 internal prototype to avoid an error. */
14634 /* We use char because int might match the return type of a gcc2
14635 builtin and then its argument prototype would still apply. */
14645 rm -f conftest.
$ac_objext conftest
$ac_exeext
14646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14647 (eval $ac_link) 2>conftest.er1
14649 grep -v '^ *+' conftest.er1
>conftest.err
14651 cat conftest.err
>&5
14652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14653 (exit $ac_status); } &&
14654 { ac_try
='test -z "$ac_c_werror_flag"
14655 || test ! -s conftest.err'
14656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14657 (eval $ac_try) 2>&5
14659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14660 (exit $ac_status); }; } &&
14661 { ac_try
='test -s conftest$ac_exeext'
14662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14663 (eval $ac_try) 2>&5
14665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14666 (exit $ac_status); }; }; then
14667 ac_cv_lib_util_openpty
=yes
14669 echo "$as_me: failed program was:" >&5
14670 sed 's/^/| /' conftest.
$ac_ext >&5
14672 ac_cv_lib_util_openpty
=no
14674 rm -f conftest.err conftest.
$ac_objext \
14675 conftest
$ac_exeext conftest.
$ac_ext
14676 LIBS
=$ac_check_lib_save_LIBS
14678 echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
14679 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
14680 if test $ac_cv_lib_util_openpty = yes; then
14681 cat >>confdefs.h
<<\_ACEOF
14682 #define HAVE_OPENPTY 1
14684 LIBS
="$LIBS -lutil"
14691 for ac_func
in forkpty
14693 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14694 echo "$as_me:$LINENO: checking for $ac_func" >&5
14695 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14696 if eval "test \"\${$as_ac_var+set}\" = set"; then
14697 echo $ECHO_N "(cached) $ECHO_C" >&6
14699 cat >conftest.
$ac_ext <<_ACEOF
14702 cat confdefs.h
>>conftest.
$ac_ext
14703 cat >>conftest.
$ac_ext <<_ACEOF
14704 /* end confdefs.h. */
14705 /* System header to define __stub macros and hopefully few prototypes,
14706 which can conflict with char $ac_func (); below.
14707 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14708 <limits.h> exists even on freestanding compilers. Under hpux,
14709 including <limits.h> includes <sys/time.h> and causes problems
14710 checking for functions defined therein. */
14711 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
14712 # include <limits.h>
14714 # include <assert.h>
14716 /* Override any gcc2 internal prototype to avoid an error. */
14721 /* We use char because int might match the return type of a gcc2
14722 builtin and then its argument prototype would still apply. */
14724 /* The GNU C library defines this for functions which it implements
14725 to always fail with ENOSYS. Some functions are actually named
14726 something starting with __ and the normal name is an alias. */
14727 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14730 char (*f) () = $ac_func;
14739 return f != $ac_func;
14744 rm -f conftest.
$ac_objext conftest
$ac_exeext
14745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14746 (eval $ac_link) 2>conftest.er1
14748 grep -v '^ *+' conftest.er1
>conftest.err
14750 cat conftest.err
>&5
14751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14752 (exit $ac_status); } &&
14753 { ac_try
='test -z "$ac_c_werror_flag"
14754 || test ! -s conftest.err'
14755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14756 (eval $ac_try) 2>&5
14758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14759 (exit $ac_status); }; } &&
14760 { ac_try
='test -s conftest$ac_exeext'
14761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14762 (eval $ac_try) 2>&5
14764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14765 (exit $ac_status); }; }; then
14766 eval "$as_ac_var=yes"
14768 echo "$as_me: failed program was:" >&5
14769 sed 's/^/| /' conftest.
$ac_ext >&5
14771 eval "$as_ac_var=no"
14773 rm -f conftest.err conftest.
$ac_objext \
14774 conftest
$ac_exeext conftest.
$ac_ext
14776 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14777 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14778 if test `eval echo '${'$as_ac_var'}'` = yes; then
14779 cat >>confdefs.h
<<_ACEOF
14780 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14784 echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
14785 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6
14786 if test "${ac_cv_lib_util_forkpty+set}" = set; then
14787 echo $ECHO_N "(cached) $ECHO_C" >&6
14789 ac_check_lib_save_LIBS
=$LIBS
14790 LIBS
="-lutil $LIBS"
14791 cat >conftest.
$ac_ext <<_ACEOF
14794 cat confdefs.h
>>conftest.
$ac_ext
14795 cat >>conftest.
$ac_ext <<_ACEOF
14796 /* end confdefs.h. */
14798 /* Override any gcc2 internal prototype to avoid an error. */
14802 /* We use char because int might match the return type of a gcc2
14803 builtin and then its argument prototype would still apply. */
14813 rm -f conftest.
$ac_objext conftest
$ac_exeext
14814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14815 (eval $ac_link) 2>conftest.er1
14817 grep -v '^ *+' conftest.er1
>conftest.err
14819 cat conftest.err
>&5
14820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14821 (exit $ac_status); } &&
14822 { ac_try
='test -z "$ac_c_werror_flag"
14823 || test ! -s conftest.err'
14824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14825 (eval $ac_try) 2>&5
14827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14828 (exit $ac_status); }; } &&
14829 { ac_try
='test -s conftest$ac_exeext'
14830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14831 (eval $ac_try) 2>&5
14833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14834 (exit $ac_status); }; }; then
14835 ac_cv_lib_util_forkpty
=yes
14837 echo "$as_me: failed program was:" >&5
14838 sed 's/^/| /' conftest.
$ac_ext >&5
14840 ac_cv_lib_util_forkpty
=no
14842 rm -f conftest.err conftest.
$ac_objext \
14843 conftest
$ac_exeext conftest.
$ac_ext
14844 LIBS
=$ac_check_lib_save_LIBS
14846 echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
14847 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6
14848 if test $ac_cv_lib_util_forkpty = yes; then
14849 cat >>confdefs.h
<<\_ACEOF
14850 #define HAVE_FORKPTY 1
14852 LIBS
="$LIBS -lutil"
14859 # check for long file support functions
14866 for ac_func
in fseek64 fseeko fstatvfs ftell64 ftello statvfs
14868 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14869 echo "$as_me:$LINENO: checking for $ac_func" >&5
14870 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14871 if eval "test \"\${$as_ac_var+set}\" = set"; then
14872 echo $ECHO_N "(cached) $ECHO_C" >&6
14874 cat >conftest.
$ac_ext <<_ACEOF
14877 cat confdefs.h
>>conftest.
$ac_ext
14878 cat >>conftest.
$ac_ext <<_ACEOF
14879 /* end confdefs.h. */
14880 /* System header to define __stub macros and hopefully few prototypes,
14881 which can conflict with char $ac_func (); below.
14882 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14883 <limits.h> exists even on freestanding compilers. Under hpux,
14884 including <limits.h> includes <sys/time.h> and causes problems
14885 checking for functions defined therein. */
14886 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
14887 # include <limits.h>
14889 # include <assert.h>
14891 /* Override any gcc2 internal prototype to avoid an error. */
14896 /* We use char because int might match the return type of a gcc2
14897 builtin and then its argument prototype would still apply. */
14899 /* The GNU C library defines this for functions which it implements
14900 to always fail with ENOSYS. Some functions are actually named
14901 something starting with __ and the normal name is an alias. */
14902 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14905 char (*f) () = $ac_func;
14914 return f != $ac_func;
14919 rm -f conftest.
$ac_objext conftest
$ac_exeext
14920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14921 (eval $ac_link) 2>conftest.er1
14923 grep -v '^ *+' conftest.er1
>conftest.err
14925 cat conftest.err
>&5
14926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14927 (exit $ac_status); } &&
14928 { ac_try
='test -z "$ac_c_werror_flag"
14929 || test ! -s conftest.err'
14930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14931 (eval $ac_try) 2>&5
14933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14934 (exit $ac_status); }; } &&
14935 { ac_try
='test -s conftest$ac_exeext'
14936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14937 (eval $ac_try) 2>&5
14939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14940 (exit $ac_status); }; }; then
14941 eval "$as_ac_var=yes"
14943 echo "$as_me: failed program was:" >&5
14944 sed 's/^/| /' conftest.
$ac_ext >&5
14946 eval "$as_ac_var=no"
14948 rm -f conftest.err conftest.
$ac_objext \
14949 conftest
$ac_exeext conftest.
$ac_ext
14951 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14952 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14953 if test `eval echo '${'$as_ac_var'}'` = yes; then
14954 cat >>confdefs.h
<<_ACEOF
14955 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14967 for ac_func
in dup2 getcwd strdup strerror memmove
14969 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14970 echo "$as_me:$LINENO: checking for $ac_func" >&5
14971 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14972 if eval "test \"\${$as_ac_var+set}\" = set"; then
14973 echo $ECHO_N "(cached) $ECHO_C" >&6
14975 cat >conftest.
$ac_ext <<_ACEOF
14978 cat confdefs.h
>>conftest.
$ac_ext
14979 cat >>conftest.
$ac_ext <<_ACEOF
14980 /* end confdefs.h. */
14981 /* System header to define __stub macros and hopefully few prototypes,
14982 which can conflict with char $ac_func (); below.
14983 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14984 <limits.h> exists even on freestanding compilers. Under hpux,
14985 including <limits.h> includes <sys/time.h> and causes problems
14986 checking for functions defined therein. */
14987 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
14988 # include <limits.h>
14990 # include <assert.h>
14992 /* Override any gcc2 internal prototype to avoid an error. */
14997 /* We use char because int might match the return type of a gcc2
14998 builtin and then its argument prototype would still apply. */
15000 /* The GNU C library defines this for functions which it implements
15001 to always fail with ENOSYS. Some functions are actually named
15002 something starting with __ and the normal name is an alias. */
15003 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15006 char (*f) () = $ac_func;
15015 return f != $ac_func;
15020 rm -f conftest.
$ac_objext conftest
$ac_exeext
15021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15022 (eval $ac_link) 2>conftest.er1
15024 grep -v '^ *+' conftest.er1
>conftest.err
15026 cat conftest.err
>&5
15027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15028 (exit $ac_status); } &&
15029 { ac_try
='test -z "$ac_c_werror_flag"
15030 || test ! -s conftest.err'
15031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15032 (eval $ac_try) 2>&5
15034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15035 (exit $ac_status); }; } &&
15036 { ac_try
='test -s conftest$ac_exeext'
15037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15038 (eval $ac_try) 2>&5
15040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15041 (exit $ac_status); }; }; then
15042 eval "$as_ac_var=yes"
15044 echo "$as_me: failed program was:" >&5
15045 sed 's/^/| /' conftest.
$ac_ext >&5
15047 eval "$as_ac_var=no"
15049 rm -f conftest.err conftest.
$ac_objext \
15050 conftest
$ac_exeext conftest.
$ac_ext
15052 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15053 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15054 if test `eval echo '${'$as_ac_var'}'` = yes; then
15055 cat >>confdefs.h
<<_ACEOF
15056 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15061 "$ac_func.$ac_objext" | \
15062 *" $ac_func.$ac_objext" | \
15063 "$ac_func.$ac_objext "* | \
15064 *" $ac_func.$ac_objext "* ) ;;
15065 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext" ;;
15073 for ac_func
in getpgrp
15075 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15076 echo "$as_me:$LINENO: checking for $ac_func" >&5
15077 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15078 if eval "test \"\${$as_ac_var+set}\" = set"; then
15079 echo $ECHO_N "(cached) $ECHO_C" >&6
15081 cat >conftest.
$ac_ext <<_ACEOF
15084 cat confdefs.h
>>conftest.
$ac_ext
15085 cat >>conftest.
$ac_ext <<_ACEOF
15086 /* end confdefs.h. */
15087 /* System header to define __stub macros and hopefully few prototypes,
15088 which can conflict with char $ac_func (); below.
15089 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15090 <limits.h> exists even on freestanding compilers. Under hpux,
15091 including <limits.h> includes <sys/time.h> and causes problems
15092 checking for functions defined therein. */
15093 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
15094 # include <limits.h>
15096 # include <assert.h>
15098 /* Override any gcc2 internal prototype to avoid an error. */
15103 /* We use char because int might match the return type of a gcc2
15104 builtin and then its argument prototype would still apply. */
15106 /* The GNU C library defines this for functions which it implements
15107 to always fail with ENOSYS. Some functions are actually named
15108 something starting with __ and the normal name is an alias. */
15109 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15112 char (*f) () = $ac_func;
15121 return f != $ac_func;
15126 rm -f conftest.
$ac_objext conftest
$ac_exeext
15127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15128 (eval $ac_link) 2>conftest.er1
15130 grep -v '^ *+' conftest.er1
>conftest.err
15132 cat conftest.err
>&5
15133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15134 (exit $ac_status); } &&
15135 { ac_try
='test -z "$ac_c_werror_flag"
15136 || test ! -s conftest.err'
15137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15138 (eval $ac_try) 2>&5
15140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15141 (exit $ac_status); }; } &&
15142 { ac_try
='test -s conftest$ac_exeext'
15143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15144 (eval $ac_try) 2>&5
15146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15147 (exit $ac_status); }; }; then
15148 eval "$as_ac_var=yes"
15150 echo "$as_me: failed program was:" >&5
15151 sed 's/^/| /' conftest.
$ac_ext >&5
15153 eval "$as_ac_var=no"
15155 rm -f conftest.err conftest.
$ac_objext \
15156 conftest
$ac_exeext conftest.
$ac_ext
15158 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15159 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15160 if test `eval echo '${'$as_ac_var'}'` = yes; then
15161 cat >>confdefs.h
<<_ACEOF
15162 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15164 cat >conftest.
$ac_ext <<_ACEOF
15167 cat confdefs.h
>>conftest.
$ac_ext
15168 cat >>conftest.
$ac_ext <<_ACEOF
15169 /* end confdefs.h. */
15170 #include <unistd.h>
15179 rm -f conftest.
$ac_objext
15180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15181 (eval $ac_compile) 2>conftest.er1
15183 grep -v '^ *+' conftest.er1
>conftest.err
15185 cat conftest.err
>&5
15186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15187 (exit $ac_status); } &&
15188 { ac_try
='test -z "$ac_c_werror_flag"
15189 || test ! -s conftest.err'
15190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15191 (eval $ac_try) 2>&5
15193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15194 (exit $ac_status); }; } &&
15195 { ac_try
='test -s conftest.$ac_objext'
15196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15197 (eval $ac_try) 2>&5
15199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15200 (exit $ac_status); }; }; then
15202 cat >>confdefs.h
<<\_ACEOF
15203 #define GETPGRP_HAVE_ARG 1
15208 echo "$as_me: failed program was:" >&5
15209 sed 's/^/| /' conftest.
$ac_ext >&5
15212 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15218 for ac_func
in setpgrp
15220 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15221 echo "$as_me:$LINENO: checking for $ac_func" >&5
15222 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15223 if eval "test \"\${$as_ac_var+set}\" = set"; then
15224 echo $ECHO_N "(cached) $ECHO_C" >&6
15226 cat >conftest.
$ac_ext <<_ACEOF
15229 cat confdefs.h
>>conftest.
$ac_ext
15230 cat >>conftest.
$ac_ext <<_ACEOF
15231 /* end confdefs.h. */
15232 /* System header to define __stub macros and hopefully few prototypes,
15233 which can conflict with char $ac_func (); below.
15234 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15235 <limits.h> exists even on freestanding compilers. Under hpux,
15236 including <limits.h> includes <sys/time.h> and causes problems
15237 checking for functions defined therein. */
15238 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
15239 # include <limits.h>
15241 # include <assert.h>
15243 /* Override any gcc2 internal prototype to avoid an error. */
15248 /* We use char because int might match the return type of a gcc2
15249 builtin and then its argument prototype would still apply. */
15251 /* The GNU C library defines this for functions which it implements
15252 to always fail with ENOSYS. Some functions are actually named
15253 something starting with __ and the normal name is an alias. */
15254 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15257 char (*f) () = $ac_func;
15266 return f != $ac_func;
15271 rm -f conftest.
$ac_objext conftest
$ac_exeext
15272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15273 (eval $ac_link) 2>conftest.er1
15275 grep -v '^ *+' conftest.er1
>conftest.err
15277 cat conftest.err
>&5
15278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15279 (exit $ac_status); } &&
15280 { ac_try
='test -z "$ac_c_werror_flag"
15281 || test ! -s conftest.err'
15282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15283 (eval $ac_try) 2>&5
15285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15286 (exit $ac_status); }; } &&
15287 { ac_try
='test -s conftest$ac_exeext'
15288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15289 (eval $ac_try) 2>&5
15291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15292 (exit $ac_status); }; }; then
15293 eval "$as_ac_var=yes"
15295 echo "$as_me: failed program was:" >&5
15296 sed 's/^/| /' conftest.
$ac_ext >&5
15298 eval "$as_ac_var=no"
15300 rm -f conftest.err conftest.
$ac_objext \
15301 conftest
$ac_exeext conftest.
$ac_ext
15303 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15304 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15305 if test `eval echo '${'$as_ac_var'}'` = yes; then
15306 cat >>confdefs.h
<<_ACEOF
15307 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15309 cat >conftest.
$ac_ext <<_ACEOF
15312 cat confdefs.h
>>conftest.
$ac_ext
15313 cat >>conftest.
$ac_ext <<_ACEOF
15314 /* end confdefs.h. */
15315 #include <unistd.h>
15324 rm -f conftest.
$ac_objext
15325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15326 (eval $ac_compile) 2>conftest.er1
15328 grep -v '^ *+' conftest.er1
>conftest.err
15330 cat conftest.err
>&5
15331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15332 (exit $ac_status); } &&
15333 { ac_try
='test -z "$ac_c_werror_flag"
15334 || test ! -s conftest.err'
15335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15336 (eval $ac_try) 2>&5
15338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15339 (exit $ac_status); }; } &&
15340 { ac_try
='test -s conftest.$ac_objext'
15341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15342 (eval $ac_try) 2>&5
15344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15345 (exit $ac_status); }; }; then
15347 cat >>confdefs.h
<<\_ACEOF
15348 #define SETPGRP_HAVE_ARG 1
15353 echo "$as_me: failed program was:" >&5
15354 sed 's/^/| /' conftest.
$ac_ext >&5
15357 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15363 for ac_func
in gettimeofday
15365 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15366 echo "$as_me:$LINENO: checking for $ac_func" >&5
15367 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15368 if eval "test \"\${$as_ac_var+set}\" = set"; then
15369 echo $ECHO_N "(cached) $ECHO_C" >&6
15371 cat >conftest.
$ac_ext <<_ACEOF
15374 cat confdefs.h
>>conftest.
$ac_ext
15375 cat >>conftest.
$ac_ext <<_ACEOF
15376 /* end confdefs.h. */
15377 /* System header to define __stub macros and hopefully few prototypes,
15378 which can conflict with char $ac_func (); below.
15379 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15380 <limits.h> exists even on freestanding compilers. Under hpux,
15381 including <limits.h> includes <sys/time.h> and causes problems
15382 checking for functions defined therein. */
15383 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
15384 # include <limits.h>
15386 # include <assert.h>
15388 /* Override any gcc2 internal prototype to avoid an error. */
15393 /* We use char because int might match the return type of a gcc2
15394 builtin and then its argument prototype would still apply. */
15396 /* The GNU C library defines this for functions which it implements
15397 to always fail with ENOSYS. Some functions are actually named
15398 something starting with __ and the normal name is an alias. */
15399 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15402 char (*f) () = $ac_func;
15411 return f != $ac_func;
15416 rm -f conftest.
$ac_objext conftest
$ac_exeext
15417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15418 (eval $ac_link) 2>conftest.er1
15420 grep -v '^ *+' conftest.er1
>conftest.err
15422 cat conftest.err
>&5
15423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15424 (exit $ac_status); } &&
15425 { ac_try
='test -z "$ac_c_werror_flag"
15426 || test ! -s conftest.err'
15427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15428 (eval $ac_try) 2>&5
15430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15431 (exit $ac_status); }; } &&
15432 { ac_try
='test -s conftest$ac_exeext'
15433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15434 (eval $ac_try) 2>&5
15436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15437 (exit $ac_status); }; }; then
15438 eval "$as_ac_var=yes"
15440 echo "$as_me: failed program was:" >&5
15441 sed 's/^/| /' conftest.
$ac_ext >&5
15443 eval "$as_ac_var=no"
15445 rm -f conftest.err conftest.
$ac_objext \
15446 conftest
$ac_exeext conftest.
$ac_ext
15448 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15449 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15450 if test `eval echo '${'$as_ac_var'}'` = yes; then
15451 cat >>confdefs.h
<<_ACEOF
15452 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15454 cat >conftest.
$ac_ext <<_ACEOF
15457 cat confdefs.h
>>conftest.
$ac_ext
15458 cat >>conftest.
$ac_ext <<_ACEOF
15459 /* end confdefs.h. */
15460 #include <sys/time.h>
15464 gettimeofday((struct timeval*)0,(struct timezone*)0);
15469 rm -f conftest.
$ac_objext
15470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15471 (eval $ac_compile) 2>conftest.er1
15473 grep -v '^ *+' conftest.er1
>conftest.err
15475 cat conftest.err
>&5
15476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15477 (exit $ac_status); } &&
15478 { ac_try
='test -z "$ac_c_werror_flag"
15479 || test ! -s conftest.err'
15480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15481 (eval $ac_try) 2>&5
15483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15484 (exit $ac_status); }; } &&
15485 { ac_try
='test -s conftest.$ac_objext'
15486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15487 (eval $ac_try) 2>&5
15489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15490 (exit $ac_status); }; }; then
15493 echo "$as_me: failed program was:" >&5
15494 sed 's/^/| /' conftest.
$ac_ext >&5
15497 cat >>confdefs.h
<<\_ACEOF
15498 #define GETTIMEOFDAY_NO_TZ 1
15503 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15509 echo "$as_me:$LINENO: checking for major" >&5
15510 echo $ECHO_N "checking for major... $ECHO_C" >&6
15511 cat >conftest.
$ac_ext <<_ACEOF
15514 cat confdefs.h
>>conftest.
$ac_ext
15515 cat >>conftest.
$ac_ext <<_ACEOF
15516 /* end confdefs.h. */
15518 #if defined(MAJOR_IN_MKDEV)
15519 #include <sys/mkdev.h>
15520 #elif defined(MAJOR_IN_SYSMACROS)
15521 #include <sys/sysmacros.h>
15523 #include <sys/types.h>
15530 makedev(major(0),minor(0));
15536 rm -f conftest.
$ac_objext conftest
$ac_exeext
15537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15538 (eval $ac_link) 2>conftest.er1
15540 grep -v '^ *+' conftest.er1
>conftest.err
15542 cat conftest.err
>&5
15543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15544 (exit $ac_status); } &&
15545 { ac_try
='test -z "$ac_c_werror_flag"
15546 || test ! -s conftest.err'
15547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15548 (eval $ac_try) 2>&5
15550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15551 (exit $ac_status); }; } &&
15552 { ac_try
='test -s conftest$ac_exeext'
15553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15554 (eval $ac_try) 2>&5
15556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15557 (exit $ac_status); }; }; then
15560 cat >>confdefs.h
<<\_ACEOF
15561 #define HAVE_DEVICE_MACROS 1
15564 echo "$as_me:$LINENO: result: yes" >&5
15565 echo "${ECHO_T}yes" >&6
15568 echo "$as_me: failed program was:" >&5
15569 sed 's/^/| /' conftest.
$ac_ext >&5
15572 echo "$as_me:$LINENO: result: no" >&5
15573 echo "${ECHO_T}no" >&6
15576 rm -f conftest.err conftest.
$ac_objext \
15577 conftest
$ac_exeext conftest.
$ac_ext
15579 # On OSF/1 V5.1, getaddrinfo is available, but a define
15580 # for [no]getaddrinfo in netdb.h.
15581 echo "$as_me:$LINENO: checking for getaddrinfo" >&5
15582 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6
15583 cat >conftest.
$ac_ext <<_ACEOF
15586 cat confdefs.h
>>conftest.
$ac_ext
15587 cat >>conftest.
$ac_ext <<_ACEOF
15588 /* end confdefs.h. */
15590 #include <sys/types.h>
15591 #include <sys/socket.h>
15599 getaddrinfo(NULL, NULL, NULL, NULL);
15605 rm -f conftest.
$ac_objext conftest
$ac_exeext
15606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15607 (eval $ac_link) 2>conftest.er1
15609 grep -v '^ *+' conftest.er1
>conftest.err
15611 cat conftest.err
>&5
15612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15613 (exit $ac_status); } &&
15614 { ac_try
='test -z "$ac_c_werror_flag"
15615 || test ! -s conftest.err'
15616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15617 (eval $ac_try) 2>&5
15619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15620 (exit $ac_status); }; } &&
15621 { ac_try
='test -s conftest$ac_exeext'
15622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15623 (eval $ac_try) 2>&5
15625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15626 (exit $ac_status); }; }; then
15628 echo "$as_me:$LINENO: result: yes" >&5
15629 echo "${ECHO_T}yes" >&6
15630 echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
15631 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6
15632 if test "$cross_compiling" = yes; then
15633 echo "$as_me:$LINENO: result: buggy" >&5
15634 echo "${ECHO_T}buggy" >&6
15635 buggygetaddrinfo
=yes
15637 cat >conftest.
$ac_ext <<_ACEOF
15640 cat confdefs.h
>>conftest.
$ac_ext
15641 cat >>conftest.
$ac_ext <<_ACEOF
15642 /* end confdefs.h. */
15644 #include <sys/types.h>
15646 #include <string.h>
15647 #include <sys/socket.h>
15648 #include <netinet/in.h>
15652 int passive, gaierr, inet4 = 0, inet6 = 0;
15653 struct addrinfo hints, *ai, *aitop;
15654 char straddr[INET6_ADDRSTRLEN], strport[16];
15656 for (passive = 0; passive <= 1; passive++) {
15657 memset(&hints, 0, sizeof(hints));
15658 hints.ai_family = AF_UNSPEC;
15659 hints.ai_flags = passive ? AI_PASSIVE : 0;
15660 hints.ai_socktype = SOCK_STREAM;
15661 hints.ai_protocol = IPPROTO_TCP;
15662 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
15663 (void)gai_strerror(gaierr);
15666 for (ai = aitop; ai; ai = ai->ai_next) {
15667 if (ai->ai_addr == NULL ||
15668 ai->ai_addrlen == 0 ||
15669 getnameinfo(ai->ai_addr, ai->ai_addrlen,
15670 straddr, sizeof(straddr), strport, sizeof(strport),
15671 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
15674 switch (ai->ai_family) {
15676 if (strcmp(strport, "54321") != 0) {
15680 if (strcmp(straddr, "0.0.0.0") != 0) {
15684 if (strcmp(straddr, "127.0.0.1") != 0) {
15691 if (strcmp(strport, "54321") != 0) {
15695 if (strcmp(straddr, "::") != 0) {
15699 if (strcmp(straddr, "::1") != 0) {
15709 /* another family support? */
15715 if (!(inet4 == 0 || inet4 == 2))
15717 if (!(inet6 == 0 || inet6 == 2))
15721 freeaddrinfo(aitop);
15726 freeaddrinfo(aitop);
15731 rm -f conftest
$ac_exeext
15732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15733 (eval $ac_link) 2>&5
15735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15736 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15738 (eval $ac_try) 2>&5
15740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15741 (exit $ac_status); }; }; then
15742 echo "$as_me:$LINENO: result: good" >&5
15743 echo "${ECHO_T}good" >&6
15744 buggygetaddrinfo
=no
15746 echo "$as_me: program exited with status $ac_status" >&5
15747 echo "$as_me: failed program was:" >&5
15748 sed 's/^/| /' conftest.
$ac_ext >&5
15750 ( exit $ac_status )
15751 echo "$as_me:$LINENO: result: buggy" >&5
15752 echo "${ECHO_T}buggy" >&6
15753 buggygetaddrinfo
=yes
15755 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15758 echo "$as_me: failed program was:" >&5
15759 sed 's/^/| /' conftest.
$ac_ext >&5
15762 echo "$as_me:$LINENO: result: no" >&5
15763 echo "${ECHO_T}no" >&6
15764 buggygetaddrinfo
=yes
15767 rm -f conftest.err conftest.
$ac_objext \
15768 conftest
$ac_exeext conftest.
$ac_ext
15770 if test "$buggygetaddrinfo" = "yes"; then
15771 if test "$ipv6" = "yes"; then
15772 echo 'Fatal: You must get working getaddrinfo() function.'
15773 echo ' or you can specify "--disable-ipv6"'.
15778 cat >>confdefs.h
<<\_ACEOF
15779 #define HAVE_GETADDRINFO 1
15784 for ac_func
in getnameinfo
15786 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15787 echo "$as_me:$LINENO: checking for $ac_func" >&5
15788 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15789 if eval "test \"\${$as_ac_var+set}\" = set"; then
15790 echo $ECHO_N "(cached) $ECHO_C" >&6
15792 cat >conftest.
$ac_ext <<_ACEOF
15795 cat confdefs.h
>>conftest.
$ac_ext
15796 cat >>conftest.
$ac_ext <<_ACEOF
15797 /* end confdefs.h. */
15798 /* System header to define __stub macros and hopefully few prototypes,
15799 which can conflict with char $ac_func (); below.
15800 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15801 <limits.h> exists even on freestanding compilers. Under hpux,
15802 including <limits.h> includes <sys/time.h> and causes problems
15803 checking for functions defined therein. */
15804 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
15805 # include <limits.h>
15807 # include <assert.h>
15809 /* Override any gcc2 internal prototype to avoid an error. */
15814 /* We use char because int might match the return type of a gcc2
15815 builtin and then its argument prototype would still apply. */
15817 /* The GNU C library defines this for functions which it implements
15818 to always fail with ENOSYS. Some functions are actually named
15819 something starting with __ and the normal name is an alias. */
15820 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15823 char (*f) () = $ac_func;
15832 return f != $ac_func;
15837 rm -f conftest.
$ac_objext conftest
$ac_exeext
15838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15839 (eval $ac_link) 2>conftest.er1
15841 grep -v '^ *+' conftest.er1
>conftest.err
15843 cat conftest.err
>&5
15844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15845 (exit $ac_status); } &&
15846 { ac_try
='test -z "$ac_c_werror_flag"
15847 || test ! -s conftest.err'
15848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15849 (eval $ac_try) 2>&5
15851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15852 (exit $ac_status); }; } &&
15853 { ac_try
='test -s conftest$ac_exeext'
15854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15855 (eval $ac_try) 2>&5
15857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15858 (exit $ac_status); }; }; then
15859 eval "$as_ac_var=yes"
15861 echo "$as_me: failed program was:" >&5
15862 sed 's/^/| /' conftest.
$ac_ext >&5
15864 eval "$as_ac_var=no"
15866 rm -f conftest.err conftest.
$ac_objext \
15867 conftest
$ac_exeext conftest.
$ac_ext
15869 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15870 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15871 if test `eval echo '${'$as_ac_var'}'` = yes; then
15872 cat >>confdefs.h
<<_ACEOF
15873 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15880 # checks for structures
15881 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15882 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
15883 if test "${ac_cv_header_time+set}" = set; then
15884 echo $ECHO_N "(cached) $ECHO_C" >&6
15886 cat >conftest.
$ac_ext <<_ACEOF
15889 cat confdefs.h
>>conftest.
$ac_ext
15890 cat >>conftest.
$ac_ext <<_ACEOF
15891 /* end confdefs.h. */
15892 #include <sys/types.h>
15893 #include <sys/time.h>
15899 if ((struct tm *) 0)
15905 rm -f conftest.
$ac_objext
15906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15907 (eval $ac_compile) 2>conftest.er1
15909 grep -v '^ *+' conftest.er1
>conftest.err
15911 cat conftest.err
>&5
15912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15913 (exit $ac_status); } &&
15914 { ac_try
='test -z "$ac_c_werror_flag"
15915 || test ! -s conftest.err'
15916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15917 (eval $ac_try) 2>&5
15919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15920 (exit $ac_status); }; } &&
15921 { ac_try
='test -s conftest.$ac_objext'
15922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15923 (eval $ac_try) 2>&5
15925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15926 (exit $ac_status); }; }; then
15927 ac_cv_header_time
=yes
15929 echo "$as_me: failed program was:" >&5
15930 sed 's/^/| /' conftest.
$ac_ext >&5
15932 ac_cv_header_time
=no
15934 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15936 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15937 echo "${ECHO_T}$ac_cv_header_time" >&6
15938 if test $ac_cv_header_time = yes; then
15940 cat >>confdefs.h
<<\_ACEOF
15941 #define TIME_WITH_SYS_TIME 1
15946 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
15947 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
15948 if test "${ac_cv_struct_tm+set}" = set; then
15949 echo $ECHO_N "(cached) $ECHO_C" >&6
15951 cat >conftest.
$ac_ext <<_ACEOF
15954 cat confdefs.h
>>conftest.
$ac_ext
15955 cat >>conftest.
$ac_ext <<_ACEOF
15956 /* end confdefs.h. */
15957 #include <sys/types.h>
15963 struct tm *tp; tp->tm_sec;
15968 rm -f conftest.
$ac_objext
15969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15970 (eval $ac_compile) 2>conftest.er1
15972 grep -v '^ *+' conftest.er1
>conftest.err
15974 cat conftest.err
>&5
15975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15976 (exit $ac_status); } &&
15977 { ac_try
='test -z "$ac_c_werror_flag"
15978 || test ! -s conftest.err'
15979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15980 (eval $ac_try) 2>&5
15982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15983 (exit $ac_status); }; } &&
15984 { ac_try
='test -s conftest.$ac_objext'
15985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15986 (eval $ac_try) 2>&5
15988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15989 (exit $ac_status); }; }; then
15990 ac_cv_struct_tm
=time.h
15992 echo "$as_me: failed program was:" >&5
15993 sed 's/^/| /' conftest.
$ac_ext >&5
15995 ac_cv_struct_tm
=sys
/time.h
15997 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15999 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16000 echo "${ECHO_T}$ac_cv_struct_tm" >&6
16001 if test $ac_cv_struct_tm = sys
/time.h
; then
16003 cat >>confdefs.h
<<\_ACEOF
16004 #define TM_IN_SYS_TIME 1
16009 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
16010 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
16011 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
16012 echo $ECHO_N "(cached) $ECHO_C" >&6
16014 cat >conftest.
$ac_ext <<_ACEOF
16017 cat confdefs.h
>>conftest.
$ac_ext
16018 cat >>conftest.
$ac_ext <<_ACEOF
16019 /* end confdefs.h. */
16020 #include <sys/types.h>
16021 #include <$ac_cv_struct_tm>
16027 static struct tm ac_aggr;
16028 if (ac_aggr.tm_zone)
16034 rm -f conftest.
$ac_objext
16035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16036 (eval $ac_compile) 2>conftest.er1
16038 grep -v '^ *+' conftest.er1
>conftest.err
16040 cat conftest.err
>&5
16041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16042 (exit $ac_status); } &&
16043 { ac_try
='test -z "$ac_c_werror_flag"
16044 || test ! -s conftest.err'
16045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16046 (eval $ac_try) 2>&5
16048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16049 (exit $ac_status); }; } &&
16050 { ac_try
='test -s conftest.$ac_objext'
16051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16052 (eval $ac_try) 2>&5
16054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16055 (exit $ac_status); }; }; then
16056 ac_cv_member_struct_tm_tm_zone
=yes
16058 echo "$as_me: failed program was:" >&5
16059 sed 's/^/| /' conftest.
$ac_ext >&5
16061 cat >conftest.
$ac_ext <<_ACEOF
16064 cat confdefs.h
>>conftest.
$ac_ext
16065 cat >>conftest.
$ac_ext <<_ACEOF
16066 /* end confdefs.h. */
16067 #include <sys/types.h>
16068 #include <$ac_cv_struct_tm>
16074 static struct tm ac_aggr;
16075 if (sizeof ac_aggr.tm_zone)
16081 rm -f conftest.
$ac_objext
16082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16083 (eval $ac_compile) 2>conftest.er1
16085 grep -v '^ *+' conftest.er1
>conftest.err
16087 cat conftest.err
>&5
16088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16089 (exit $ac_status); } &&
16090 { ac_try
='test -z "$ac_c_werror_flag"
16091 || test ! -s conftest.err'
16092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16093 (eval $ac_try) 2>&5
16095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16096 (exit $ac_status); }; } &&
16097 { ac_try
='test -s conftest.$ac_objext'
16098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16099 (eval $ac_try) 2>&5
16101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16102 (exit $ac_status); }; }; then
16103 ac_cv_member_struct_tm_tm_zone
=yes
16105 echo "$as_me: failed program was:" >&5
16106 sed 's/^/| /' conftest.
$ac_ext >&5
16108 ac_cv_member_struct_tm_tm_zone
=no
16110 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16112 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16114 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
16115 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
16116 if test $ac_cv_member_struct_tm_tm_zone = yes; then
16118 cat >>confdefs.h
<<_ACEOF
16119 #define HAVE_STRUCT_TM_TM_ZONE 1
16125 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
16127 cat >>confdefs.h
<<\_ACEOF
16128 #define HAVE_TM_ZONE 1
16132 echo "$as_me:$LINENO: checking for tzname" >&5
16133 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
16134 if test "${ac_cv_var_tzname+set}" = set; then
16135 echo $ECHO_N "(cached) $ECHO_C" >&6
16137 cat >conftest.
$ac_ext <<_ACEOF
16140 cat confdefs.h
>>conftest.
$ac_ext
16141 cat >>conftest.
$ac_ext <<_ACEOF
16142 /* end confdefs.h. */
16144 #ifndef tzname /* For SGI. */
16145 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
16156 rm -f conftest.
$ac_objext conftest
$ac_exeext
16157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16158 (eval $ac_link) 2>conftest.er1
16160 grep -v '^ *+' conftest.er1
>conftest.err
16162 cat conftest.err
>&5
16163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16164 (exit $ac_status); } &&
16165 { ac_try
='test -z "$ac_c_werror_flag"
16166 || test ! -s conftest.err'
16167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16168 (eval $ac_try) 2>&5
16170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16171 (exit $ac_status); }; } &&
16172 { ac_try
='test -s conftest$ac_exeext'
16173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16174 (eval $ac_try) 2>&5
16176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16177 (exit $ac_status); }; }; then
16178 ac_cv_var_tzname
=yes
16180 echo "$as_me: failed program was:" >&5
16181 sed 's/^/| /' conftest.
$ac_ext >&5
16183 ac_cv_var_tzname
=no
16185 rm -f conftest.err conftest.
$ac_objext \
16186 conftest
$ac_exeext conftest.
$ac_ext
16188 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
16189 echo "${ECHO_T}$ac_cv_var_tzname" >&6
16190 if test $ac_cv_var_tzname = yes; then
16192 cat >>confdefs.h
<<\_ACEOF
16193 #define HAVE_TZNAME 1
16199 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
16200 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
16201 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
16202 echo $ECHO_N "(cached) $ECHO_C" >&6
16204 cat >conftest.
$ac_ext <<_ACEOF
16207 cat confdefs.h
>>conftest.
$ac_ext
16208 cat >>conftest.
$ac_ext <<_ACEOF
16209 /* end confdefs.h. */
16210 $ac_includes_default
16214 static struct stat ac_aggr;
16215 if (ac_aggr.st_rdev)
16221 rm -f conftest.
$ac_objext
16222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16223 (eval $ac_compile) 2>conftest.er1
16225 grep -v '^ *+' conftest.er1
>conftest.err
16227 cat conftest.err
>&5
16228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16229 (exit $ac_status); } &&
16230 { ac_try
='test -z "$ac_c_werror_flag"
16231 || test ! -s conftest.err'
16232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16233 (eval $ac_try) 2>&5
16235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16236 (exit $ac_status); }; } &&
16237 { ac_try
='test -s conftest.$ac_objext'
16238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16239 (eval $ac_try) 2>&5
16241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16242 (exit $ac_status); }; }; then
16243 ac_cv_member_struct_stat_st_rdev
=yes
16245 echo "$as_me: failed program was:" >&5
16246 sed 's/^/| /' conftest.
$ac_ext >&5
16248 cat >conftest.
$ac_ext <<_ACEOF
16251 cat confdefs.h
>>conftest.
$ac_ext
16252 cat >>conftest.
$ac_ext <<_ACEOF
16253 /* end confdefs.h. */
16254 $ac_includes_default
16258 static struct stat ac_aggr;
16259 if (sizeof ac_aggr.st_rdev)
16265 rm -f conftest.
$ac_objext
16266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16267 (eval $ac_compile) 2>conftest.er1
16269 grep -v '^ *+' conftest.er1
>conftest.err
16271 cat conftest.err
>&5
16272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16273 (exit $ac_status); } &&
16274 { ac_try
='test -z "$ac_c_werror_flag"
16275 || test ! -s conftest.err'
16276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16277 (eval $ac_try) 2>&5
16279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16280 (exit $ac_status); }; } &&
16281 { ac_try
='test -s conftest.$ac_objext'
16282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16283 (eval $ac_try) 2>&5
16285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16286 (exit $ac_status); }; }; then
16287 ac_cv_member_struct_stat_st_rdev
=yes
16289 echo "$as_me: failed program was:" >&5
16290 sed 's/^/| /' conftest.
$ac_ext >&5
16292 ac_cv_member_struct_stat_st_rdev
=no
16294 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16296 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16298 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
16299 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
16300 if test $ac_cv_member_struct_stat_st_rdev = yes; then
16302 cat >>confdefs.h
<<_ACEOF
16303 #define HAVE_STRUCT_STAT_ST_RDEV 1
16309 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
16310 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
16311 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
16312 echo $ECHO_N "(cached) $ECHO_C" >&6
16314 cat >conftest.
$ac_ext <<_ACEOF
16317 cat confdefs.h
>>conftest.
$ac_ext
16318 cat >>conftest.
$ac_ext <<_ACEOF
16319 /* end confdefs.h. */
16320 $ac_includes_default
16324 static struct stat ac_aggr;
16325 if (ac_aggr.st_blksize)
16331 rm -f conftest.
$ac_objext
16332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16333 (eval $ac_compile) 2>conftest.er1
16335 grep -v '^ *+' conftest.er1
>conftest.err
16337 cat conftest.err
>&5
16338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16339 (exit $ac_status); } &&
16340 { ac_try
='test -z "$ac_c_werror_flag"
16341 || test ! -s conftest.err'
16342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16343 (eval $ac_try) 2>&5
16345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16346 (exit $ac_status); }; } &&
16347 { ac_try
='test -s conftest.$ac_objext'
16348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16349 (eval $ac_try) 2>&5
16351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16352 (exit $ac_status); }; }; then
16353 ac_cv_member_struct_stat_st_blksize
=yes
16355 echo "$as_me: failed program was:" >&5
16356 sed 's/^/| /' conftest.
$ac_ext >&5
16358 cat >conftest.
$ac_ext <<_ACEOF
16361 cat confdefs.h
>>conftest.
$ac_ext
16362 cat >>conftest.
$ac_ext <<_ACEOF
16363 /* end confdefs.h. */
16364 $ac_includes_default
16368 static struct stat ac_aggr;
16369 if (sizeof ac_aggr.st_blksize)
16375 rm -f conftest.
$ac_objext
16376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16377 (eval $ac_compile) 2>conftest.er1
16379 grep -v '^ *+' conftest.er1
>conftest.err
16381 cat conftest.err
>&5
16382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16383 (exit $ac_status); } &&
16384 { ac_try
='test -z "$ac_c_werror_flag"
16385 || test ! -s conftest.err'
16386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16387 (eval $ac_try) 2>&5
16389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16390 (exit $ac_status); }; } &&
16391 { ac_try
='test -s conftest.$ac_objext'
16392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16393 (eval $ac_try) 2>&5
16395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16396 (exit $ac_status); }; }; then
16397 ac_cv_member_struct_stat_st_blksize
=yes
16399 echo "$as_me: failed program was:" >&5
16400 sed 's/^/| /' conftest.
$ac_ext >&5
16402 ac_cv_member_struct_stat_st_blksize
=no
16404 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16406 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16408 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
16409 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
16410 if test $ac_cv_member_struct_stat_st_blksize = yes; then
16412 cat >>confdefs.h
<<_ACEOF
16413 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
16419 echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
16420 echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6
16421 if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
16422 echo $ECHO_N "(cached) $ECHO_C" >&6
16424 cat >conftest.
$ac_ext <<_ACEOF
16427 cat confdefs.h
>>conftest.
$ac_ext
16428 cat >>conftest.
$ac_ext <<_ACEOF
16429 /* end confdefs.h. */
16430 $ac_includes_default
16434 static struct stat ac_aggr;
16435 if (ac_aggr.st_flags)
16441 rm -f conftest.
$ac_objext
16442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16443 (eval $ac_compile) 2>conftest.er1
16445 grep -v '^ *+' conftest.er1
>conftest.err
16447 cat conftest.err
>&5
16448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16449 (exit $ac_status); } &&
16450 { ac_try
='test -z "$ac_c_werror_flag"
16451 || test ! -s conftest.err'
16452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16453 (eval $ac_try) 2>&5
16455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16456 (exit $ac_status); }; } &&
16457 { ac_try
='test -s conftest.$ac_objext'
16458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16459 (eval $ac_try) 2>&5
16461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16462 (exit $ac_status); }; }; then
16463 ac_cv_member_struct_stat_st_flags
=yes
16465 echo "$as_me: failed program was:" >&5
16466 sed 's/^/| /' conftest.
$ac_ext >&5
16468 cat >conftest.
$ac_ext <<_ACEOF
16471 cat confdefs.h
>>conftest.
$ac_ext
16472 cat >>conftest.
$ac_ext <<_ACEOF
16473 /* end confdefs.h. */
16474 $ac_includes_default
16478 static struct stat ac_aggr;
16479 if (sizeof ac_aggr.st_flags)
16485 rm -f conftest.
$ac_objext
16486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16487 (eval $ac_compile) 2>conftest.er1
16489 grep -v '^ *+' conftest.er1
>conftest.err
16491 cat conftest.err
>&5
16492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16493 (exit $ac_status); } &&
16494 { ac_try
='test -z "$ac_c_werror_flag"
16495 || test ! -s conftest.err'
16496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16497 (eval $ac_try) 2>&5
16499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16500 (exit $ac_status); }; } &&
16501 { ac_try
='test -s conftest.$ac_objext'
16502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16503 (eval $ac_try) 2>&5
16505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16506 (exit $ac_status); }; }; then
16507 ac_cv_member_struct_stat_st_flags
=yes
16509 echo "$as_me: failed program was:" >&5
16510 sed 's/^/| /' conftest.
$ac_ext >&5
16512 ac_cv_member_struct_stat_st_flags
=no
16514 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16516 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16518 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
16519 echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6
16520 if test $ac_cv_member_struct_stat_st_flags = yes; then
16522 cat >>confdefs.h
<<_ACEOF
16523 #define HAVE_STRUCT_STAT_ST_FLAGS 1
16529 echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
16530 echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6
16531 if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
16532 echo $ECHO_N "(cached) $ECHO_C" >&6
16534 cat >conftest.
$ac_ext <<_ACEOF
16537 cat confdefs.h
>>conftest.
$ac_ext
16538 cat >>conftest.
$ac_ext <<_ACEOF
16539 /* end confdefs.h. */
16540 $ac_includes_default
16544 static struct stat ac_aggr;
16545 if (ac_aggr.st_gen)
16551 rm -f conftest.
$ac_objext
16552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16553 (eval $ac_compile) 2>conftest.er1
16555 grep -v '^ *+' conftest.er1
>conftest.err
16557 cat conftest.err
>&5
16558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16559 (exit $ac_status); } &&
16560 { ac_try
='test -z "$ac_c_werror_flag"
16561 || test ! -s conftest.err'
16562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16563 (eval $ac_try) 2>&5
16565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16566 (exit $ac_status); }; } &&
16567 { ac_try
='test -s conftest.$ac_objext'
16568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16569 (eval $ac_try) 2>&5
16571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16572 (exit $ac_status); }; }; then
16573 ac_cv_member_struct_stat_st_gen
=yes
16575 echo "$as_me: failed program was:" >&5
16576 sed 's/^/| /' conftest.
$ac_ext >&5
16578 cat >conftest.
$ac_ext <<_ACEOF
16581 cat confdefs.h
>>conftest.
$ac_ext
16582 cat >>conftest.
$ac_ext <<_ACEOF
16583 /* end confdefs.h. */
16584 $ac_includes_default
16588 static struct stat ac_aggr;
16589 if (sizeof ac_aggr.st_gen)
16595 rm -f conftest.
$ac_objext
16596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16597 (eval $ac_compile) 2>conftest.er1
16599 grep -v '^ *+' conftest.er1
>conftest.err
16601 cat conftest.err
>&5
16602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16603 (exit $ac_status); } &&
16604 { ac_try
='test -z "$ac_c_werror_flag"
16605 || test ! -s conftest.err'
16606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16607 (eval $ac_try) 2>&5
16609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16610 (exit $ac_status); }; } &&
16611 { ac_try
='test -s conftest.$ac_objext'
16612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16613 (eval $ac_try) 2>&5
16615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16616 (exit $ac_status); }; }; then
16617 ac_cv_member_struct_stat_st_gen
=yes
16619 echo "$as_me: failed program was:" >&5
16620 sed 's/^/| /' conftest.
$ac_ext >&5
16622 ac_cv_member_struct_stat_st_gen
=no
16624 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16626 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16628 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
16629 echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6
16630 if test $ac_cv_member_struct_stat_st_gen = yes; then
16632 cat >>confdefs.h
<<_ACEOF
16633 #define HAVE_STRUCT_STAT_ST_GEN 1
16639 echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
16640 echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6
16641 if test "${ac_cv_member_struct_stat_st_birthtime+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 $ac_includes_default
16654 static struct stat ac_aggr;
16655 if (ac_aggr.st_birthtime)
16661 rm -f conftest.
$ac_objext
16662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16663 (eval $ac_compile) 2>conftest.er1
16665 grep -v '^ *+' conftest.er1
>conftest.err
16667 cat conftest.err
>&5
16668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16669 (exit $ac_status); } &&
16670 { ac_try
='test -z "$ac_c_werror_flag"
16671 || test ! -s conftest.err'
16672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16673 (eval $ac_try) 2>&5
16675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16676 (exit $ac_status); }; } &&
16677 { ac_try
='test -s conftest.$ac_objext'
16678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16679 (eval $ac_try) 2>&5
16681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16682 (exit $ac_status); }; }; then
16683 ac_cv_member_struct_stat_st_birthtime
=yes
16685 echo "$as_me: failed program was:" >&5
16686 sed 's/^/| /' conftest.
$ac_ext >&5
16688 cat >conftest.
$ac_ext <<_ACEOF
16691 cat confdefs.h
>>conftest.
$ac_ext
16692 cat >>conftest.
$ac_ext <<_ACEOF
16693 /* end confdefs.h. */
16694 $ac_includes_default
16698 static struct stat ac_aggr;
16699 if (sizeof ac_aggr.st_birthtime)
16705 rm -f conftest.
$ac_objext
16706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16707 (eval $ac_compile) 2>conftest.er1
16709 grep -v '^ *+' conftest.er1
>conftest.err
16711 cat conftest.err
>&5
16712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16713 (exit $ac_status); } &&
16714 { ac_try
='test -z "$ac_c_werror_flag"
16715 || test ! -s conftest.err'
16716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16717 (eval $ac_try) 2>&5
16719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16720 (exit $ac_status); }; } &&
16721 { ac_try
='test -s conftest.$ac_objext'
16722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16723 (eval $ac_try) 2>&5
16725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16726 (exit $ac_status); }; }; then
16727 ac_cv_member_struct_stat_st_birthtime
=yes
16729 echo "$as_me: failed program was:" >&5
16730 sed 's/^/| /' conftest.
$ac_ext >&5
16732 ac_cv_member_struct_stat_st_birthtime
=no
16734 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16736 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16738 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
16739 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6
16740 if test $ac_cv_member_struct_stat_st_birthtime = yes; then
16742 cat >>confdefs.h
<<_ACEOF
16743 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
16749 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
16750 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
16751 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
16752 echo $ECHO_N "(cached) $ECHO_C" >&6
16754 cat >conftest.
$ac_ext <<_ACEOF
16757 cat confdefs.h
>>conftest.
$ac_ext
16758 cat >>conftest.
$ac_ext <<_ACEOF
16759 /* end confdefs.h. */
16760 $ac_includes_default
16764 static struct stat ac_aggr;
16765 if (ac_aggr.st_blocks)
16771 rm -f conftest.
$ac_objext
16772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16773 (eval $ac_compile) 2>conftest.er1
16775 grep -v '^ *+' conftest.er1
>conftest.err
16777 cat conftest.err
>&5
16778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16779 (exit $ac_status); } &&
16780 { ac_try
='test -z "$ac_c_werror_flag"
16781 || test ! -s conftest.err'
16782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16783 (eval $ac_try) 2>&5
16785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16786 (exit $ac_status); }; } &&
16787 { ac_try
='test -s conftest.$ac_objext'
16788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16789 (eval $ac_try) 2>&5
16791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16792 (exit $ac_status); }; }; then
16793 ac_cv_member_struct_stat_st_blocks
=yes
16795 echo "$as_me: failed program was:" >&5
16796 sed 's/^/| /' conftest.
$ac_ext >&5
16798 cat >conftest.
$ac_ext <<_ACEOF
16801 cat confdefs.h
>>conftest.
$ac_ext
16802 cat >>conftest.
$ac_ext <<_ACEOF
16803 /* end confdefs.h. */
16804 $ac_includes_default
16808 static struct stat ac_aggr;
16809 if (sizeof ac_aggr.st_blocks)
16815 rm -f conftest.
$ac_objext
16816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16817 (eval $ac_compile) 2>conftest.er1
16819 grep -v '^ *+' conftest.er1
>conftest.err
16821 cat conftest.err
>&5
16822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16823 (exit $ac_status); } &&
16824 { ac_try
='test -z "$ac_c_werror_flag"
16825 || test ! -s conftest.err'
16826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16827 (eval $ac_try) 2>&5
16829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16830 (exit $ac_status); }; } &&
16831 { ac_try
='test -s conftest.$ac_objext'
16832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16833 (eval $ac_try) 2>&5
16835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16836 (exit $ac_status); }; }; then
16837 ac_cv_member_struct_stat_st_blocks
=yes
16839 echo "$as_me: failed program was:" >&5
16840 sed 's/^/| /' conftest.
$ac_ext >&5
16842 ac_cv_member_struct_stat_st_blocks
=no
16844 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16846 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16848 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
16849 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
16850 if test $ac_cv_member_struct_stat_st_blocks = yes; then
16852 cat >>confdefs.h
<<_ACEOF
16853 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
16857 cat >>confdefs.h
<<\_ACEOF
16858 #define HAVE_ST_BLOCKS 1
16863 "fileblocks.$ac_objext" | \
16864 *" fileblocks.$ac_objext" | \
16865 "fileblocks.$ac_objext "* | \
16866 *" fileblocks.$ac_objext "* ) ;;
16867 *) LIBOBJS
="$LIBOBJS fileblocks.$ac_objext" ;;
16874 echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
16875 echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6
16876 if test "${ac_cv_header_time_altzone+set}" = set; then
16877 echo $ECHO_N "(cached) $ECHO_C" >&6
16879 cat >conftest.
$ac_ext <<_ACEOF
16882 cat confdefs.h
>>conftest.
$ac_ext
16883 cat >>conftest.
$ac_ext <<_ACEOF
16884 /* end confdefs.h. */
16894 rm -f conftest.
$ac_objext
16895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16896 (eval $ac_compile) 2>conftest.er1
16898 grep -v '^ *+' conftest.er1
>conftest.err
16900 cat conftest.err
>&5
16901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16902 (exit $ac_status); } &&
16903 { ac_try
='test -z "$ac_c_werror_flag"
16904 || test ! -s conftest.err'
16905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16906 (eval $ac_try) 2>&5
16908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16909 (exit $ac_status); }; } &&
16910 { ac_try
='test -s conftest.$ac_objext'
16911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16912 (eval $ac_try) 2>&5
16914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16915 (exit $ac_status); }; }; then
16916 ac_cv_header_time_altzone
=yes
16918 echo "$as_me: failed program was:" >&5
16919 sed 's/^/| /' conftest.
$ac_ext >&5
16921 ac_cv_header_time_altzone
=no
16923 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16926 echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
16927 echo "${ECHO_T}$ac_cv_header_time_altzone" >&6
16928 if test $ac_cv_header_time_altzone = yes; then
16930 cat >>confdefs.h
<<\_ACEOF
16931 #define HAVE_ALTZONE 1
16937 echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
16938 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6
16939 cat >conftest.
$ac_ext <<_ACEOF
16942 cat confdefs.h
>>conftest.
$ac_ext
16943 cat >>conftest.
$ac_ext <<_ACEOF
16944 /* end confdefs.h. */
16946 #include <sys/types.h>
16947 #include <sys/select.h>
16948 #include <sys/time.h>
16958 rm -f conftest.
$ac_objext
16959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16960 (eval $ac_compile) 2>conftest.er1
16962 grep -v '^ *+' conftest.er1
>conftest.err
16964 cat conftest.err
>&5
16965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16966 (exit $ac_status); } &&
16967 { ac_try
='test -z "$ac_c_werror_flag"
16968 || test ! -s conftest.err'
16969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16970 (eval $ac_try) 2>&5
16972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16973 (exit $ac_status); }; } &&
16974 { ac_try
='test -s conftest.$ac_objext'
16975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16976 (eval $ac_try) 2>&5
16978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16979 (exit $ac_status); }; }; then
16982 cat >>confdefs.h
<<\_ACEOF
16983 #define SYS_SELECT_WITH_SYS_TIME 1
16989 echo "$as_me: failed program was:" >&5
16990 sed 's/^/| /' conftest.
$ac_ext >&5
16993 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16994 echo "$as_me:$LINENO: result: $was_it_defined" >&5
16995 echo "${ECHO_T}$was_it_defined" >&6
16997 echo "$as_me:$LINENO: checking for addrinfo" >&5
16998 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6
16999 if test "${ac_cv_struct_addrinfo+set}" = set; then
17000 echo $ECHO_N "(cached) $ECHO_C" >&6
17002 cat >conftest.
$ac_ext <<_ACEOF
17005 cat confdefs.h
>>conftest.
$ac_ext
17006 cat >>conftest.
$ac_ext <<_ACEOF
17007 /* end confdefs.h. */
17009 # include <netdb.h>
17018 rm -f conftest.
$ac_objext
17019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17020 (eval $ac_compile) 2>conftest.er1
17022 grep -v '^ *+' conftest.er1
>conftest.err
17024 cat conftest.err
>&5
17025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17026 (exit $ac_status); } &&
17027 { ac_try
='test -z "$ac_c_werror_flag"
17028 || test ! -s conftest.err'
17029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17030 (eval $ac_try) 2>&5
17032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17033 (exit $ac_status); }; } &&
17034 { ac_try
='test -s conftest.$ac_objext'
17035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17036 (eval $ac_try) 2>&5
17038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17039 (exit $ac_status); }; }; then
17040 ac_cv_struct_addrinfo
=yes
17042 echo "$as_me: failed program was:" >&5
17043 sed 's/^/| /' conftest.
$ac_ext >&5
17045 ac_cv_struct_addrinfo
=no
17047 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17050 echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
17051 echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6
17052 if test $ac_cv_struct_addrinfo = yes; then
17054 cat >>confdefs.h
<<\_ACEOF
17055 #define HAVE_ADDRINFO 1
17060 echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
17061 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6
17062 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
17063 echo $ECHO_N "(cached) $ECHO_C" >&6
17065 cat >conftest.
$ac_ext <<_ACEOF
17068 cat confdefs.h
>>conftest.
$ac_ext
17069 cat >>conftest.
$ac_ext <<_ACEOF
17070 /* end confdefs.h. */
17072 # include <sys/types.h>
17073 # include <sys/socket.h>
17077 struct sockaddr_storage s
17082 rm -f conftest.
$ac_objext
17083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17084 (eval $ac_compile) 2>conftest.er1
17086 grep -v '^ *+' conftest.er1
>conftest.err
17088 cat conftest.err
>&5
17089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17090 (exit $ac_status); } &&
17091 { ac_try
='test -z "$ac_c_werror_flag"
17092 || test ! -s conftest.err'
17093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17094 (eval $ac_try) 2>&5
17096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17097 (exit $ac_status); }; } &&
17098 { ac_try
='test -s conftest.$ac_objext'
17099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17100 (eval $ac_try) 2>&5
17102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17103 (exit $ac_status); }; }; then
17104 ac_cv_struct_sockaddr_storage
=yes
17106 echo "$as_me: failed program was:" >&5
17107 sed 's/^/| /' conftest.
$ac_ext >&5
17109 ac_cv_struct_sockaddr_storage
=no
17111 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17114 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
17115 echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6
17116 if test $ac_cv_struct_sockaddr_storage = yes; then
17118 cat >>confdefs.h
<<\_ACEOF
17119 #define HAVE_SOCKADDR_STORAGE 1
17124 # checks for compiler characteristics
17127 echo "$as_me:$LINENO: checking whether char is unsigned" >&5
17128 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
17129 if test "${ac_cv_c_char_unsigned+set}" = set; then
17130 echo $ECHO_N "(cached) $ECHO_C" >&6
17132 cat >conftest.
$ac_ext <<_ACEOF
17135 cat confdefs.h
>>conftest.
$ac_ext
17136 cat >>conftest.
$ac_ext <<_ACEOF
17137 /* end confdefs.h. */
17138 $ac_includes_default
17142 static int test_array [1 - 2 * !(((char) -1) < 0)];
17149 rm -f conftest.
$ac_objext
17150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17151 (eval $ac_compile) 2>conftest.er1
17153 grep -v '^ *+' conftest.er1
>conftest.err
17155 cat conftest.err
>&5
17156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17157 (exit $ac_status); } &&
17158 { ac_try
='test -z "$ac_c_werror_flag"
17159 || test ! -s conftest.err'
17160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17161 (eval $ac_try) 2>&5
17163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17164 (exit $ac_status); }; } &&
17165 { ac_try
='test -s conftest.$ac_objext'
17166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17167 (eval $ac_try) 2>&5
17169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17170 (exit $ac_status); }; }; then
17171 ac_cv_c_char_unsigned
=no
17173 echo "$as_me: failed program was:" >&5
17174 sed 's/^/| /' conftest.
$ac_ext >&5
17176 ac_cv_c_char_unsigned
=yes
17178 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17180 echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
17181 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
17182 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
17183 cat >>confdefs.h
<<\_ACEOF
17184 #define __CHAR_UNSIGNED__ 1
17189 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
17190 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
17191 if test "${ac_cv_c_const+set}" = set; then
17192 echo $ECHO_N "(cached) $ECHO_C" >&6
17194 cat >conftest.
$ac_ext <<_ACEOF
17197 cat confdefs.h
>>conftest.
$ac_ext
17198 cat >>conftest.
$ac_ext <<_ACEOF
17199 /* end confdefs.h. */
17204 /* FIXME: Include the comments suggested by Paul. */
17205 #ifndef __cplusplus
17206 /* Ultrix mips cc rejects this. */
17207 typedef int charset[2];
17209 /* SunOS 4.1.1 cc rejects this. */
17210 char const *const *ccp;
17212 /* NEC SVR4.0.2 mips cc rejects this. */
17213 struct point {int x, y;};
17214 static struct point const zero = {0,0};
17215 /* AIX XL C 1.02.0.0 rejects this.
17216 It does not let you subtract one const X* pointer from another in
17217 an arm of an if-expression whose if-part is not a constant
17219 const char *g = "string";
17220 ccp = &g + (g ? g-g : 0);
17221 /* HPUX 7.0 cc rejects these. */
17224 ccp = (char const *const *) p;
17225 { /* SCO 3.2v4 cc rejects this. */
17227 char const *s = 0 ? (char *) 0 : (char const *) 0;
17231 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
17232 int x[] = {25, 17};
17233 const int *foo = &x[0];
17236 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17237 typedef const int *iptr;
17241 { /* AIX XL C 1.02.0.0 rejects this saying
17242 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17243 struct s { int j; const int *ap[3]; };
17244 struct s *b; b->j = 5;
17246 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17247 const int foo = 10;
17255 rm -f conftest.
$ac_objext
17256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17257 (eval $ac_compile) 2>conftest.er1
17259 grep -v '^ *+' conftest.er1
>conftest.err
17261 cat conftest.err
>&5
17262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17263 (exit $ac_status); } &&
17264 { ac_try
='test -z "$ac_c_werror_flag"
17265 || test ! -s conftest.err'
17266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17267 (eval $ac_try) 2>&5
17269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17270 (exit $ac_status); }; } &&
17271 { ac_try
='test -s conftest.$ac_objext'
17272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17273 (eval $ac_try) 2>&5
17275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17276 (exit $ac_status); }; }; then
17279 echo "$as_me: failed program was:" >&5
17280 sed 's/^/| /' conftest.
$ac_ext >&5
17284 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17286 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
17287 echo "${ECHO_T}$ac_cv_c_const" >&6
17288 if test $ac_cv_c_const = no
; then
17290 cat >>confdefs.h
<<\_ACEOF
17298 echo "$as_me:$LINENO: checking for working volatile" >&5
17299 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
17300 cat >conftest.
$ac_ext <<_ACEOF
17303 cat confdefs.h
>>conftest.
$ac_ext
17304 cat >>conftest.
$ac_ext <<_ACEOF
17305 /* end confdefs.h. */
17310 volatile int x; x = 0;
17315 rm -f conftest.
$ac_objext
17316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17317 (eval $ac_compile) 2>conftest.er1
17319 grep -v '^ *+' conftest.er1
>conftest.err
17321 cat conftest.err
>&5
17322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17323 (exit $ac_status); } &&
17324 { ac_try
='test -z "$ac_c_werror_flag"
17325 || test ! -s conftest.err'
17326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17327 (eval $ac_try) 2>&5
17329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17330 (exit $ac_status); }; } &&
17331 { ac_try
='test -s conftest.$ac_objext'
17332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17333 (eval $ac_try) 2>&5
17335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17336 (exit $ac_status); }; }; then
17339 echo "$as_me: failed program was:" >&5
17340 sed 's/^/| /' conftest.
$ac_ext >&5
17343 cat >>confdefs.h
<<\_ACEOF
17349 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17350 echo "$as_me:$LINENO: result: $works" >&5
17351 echo "${ECHO_T}$works" >&6
17354 echo "$as_me:$LINENO: checking for working signed char" >&5
17355 echo $ECHO_N "checking for working signed char... $ECHO_C" >&6
17356 cat >conftest.
$ac_ext <<_ACEOF
17359 cat confdefs.h
>>conftest.
$ac_ext
17360 cat >>conftest.
$ac_ext <<_ACEOF
17361 /* end confdefs.h. */
17371 rm -f conftest.
$ac_objext
17372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17373 (eval $ac_compile) 2>conftest.er1
17375 grep -v '^ *+' conftest.er1
>conftest.err
17377 cat conftest.err
>&5
17378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17379 (exit $ac_status); } &&
17380 { ac_try
='test -z "$ac_c_werror_flag"
17381 || test ! -s conftest.err'
17382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17383 (eval $ac_try) 2>&5
17385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17386 (exit $ac_status); }; } &&
17387 { ac_try
='test -s conftest.$ac_objext'
17388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17389 (eval $ac_try) 2>&5
17391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17392 (exit $ac_status); }; }; then
17395 echo "$as_me: failed program was:" >&5
17396 sed 's/^/| /' conftest.
$ac_ext >&5
17399 cat >>confdefs.h
<<\_ACEOF
17405 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17406 echo "$as_me:$LINENO: result: $works" >&5
17407 echo "${ECHO_T}$works" >&6
17410 echo "$as_me:$LINENO: checking for prototypes" >&5
17411 echo $ECHO_N "checking for prototypes... $ECHO_C" >&6
17412 cat >conftest.
$ac_ext <<_ACEOF
17415 cat confdefs.h
>>conftest.
$ac_ext
17416 cat >>conftest.
$ac_ext <<_ACEOF
17417 /* end confdefs.h. */
17418 int foo(int x) { return 0; }
17427 rm -f conftest.
$ac_objext
17428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17429 (eval $ac_compile) 2>conftest.er1
17431 grep -v '^ *+' conftest.er1
>conftest.err
17433 cat conftest.err
>&5
17434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17435 (exit $ac_status); } &&
17436 { ac_try
='test -z "$ac_c_werror_flag"
17437 || test ! -s conftest.err'
17438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17439 (eval $ac_try) 2>&5
17441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17442 (exit $ac_status); }; } &&
17443 { ac_try
='test -s conftest.$ac_objext'
17444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17445 (eval $ac_try) 2>&5
17447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17448 (exit $ac_status); }; }; then
17451 cat >>confdefs.h
<<\_ACEOF
17452 #define HAVE_PROTOTYPES 1
17455 have_prototypes
=yes
17458 echo "$as_me: failed program was:" >&5
17459 sed 's/^/| /' conftest.
$ac_ext >&5
17462 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17463 echo "$as_me:$LINENO: result: $have_prototypes" >&5
17464 echo "${ECHO_T}$have_prototypes" >&6
17467 echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
17468 echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6
17469 cat >conftest.
$ac_ext <<_ACEOF
17472 cat confdefs.h
>>conftest.
$ac_ext
17473 cat >>conftest.
$ac_ext <<_ACEOF
17474 /* end confdefs.h. */
17476 #include <stdarg.h>
17477 int foo(int x, ...) {
17481 va_arg(va, char *);
17482 va_arg(va, double);
17489 return foo(10, "", 3.14);
17494 rm -f conftest.
$ac_objext
17495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17496 (eval $ac_compile) 2>conftest.er1
17498 grep -v '^ *+' conftest.er1
>conftest.err
17500 cat conftest.err
>&5
17501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17502 (exit $ac_status); } &&
17503 { ac_try
='test -z "$ac_c_werror_flag"
17504 || test ! -s conftest.err'
17505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17506 (eval $ac_try) 2>&5
17508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17509 (exit $ac_status); }; } &&
17510 { ac_try
='test -s conftest.$ac_objext'
17511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17512 (eval $ac_try) 2>&5
17514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17515 (exit $ac_status); }; }; then
17518 cat >>confdefs.h
<<\_ACEOF
17519 #define HAVE_STDARG_PROTOTYPES 1
17525 echo "$as_me: failed program was:" >&5
17526 sed 's/^/| /' conftest.
$ac_ext >&5
17529 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17530 echo "$as_me:$LINENO: result: $works" >&5
17531 echo "${ECHO_T}$works" >&6
17533 # check for socketpair
17534 echo "$as_me:$LINENO: checking for socketpair" >&5
17535 echo $ECHO_N "checking for socketpair... $ECHO_C" >&6
17536 cat >conftest.
$ac_ext <<_ACEOF
17539 cat confdefs.h
>>conftest.
$ac_ext
17540 cat >>conftest.
$ac_ext <<_ACEOF
17541 /* end confdefs.h. */
17543 #include <sys/types.h>
17544 #include <sys/socket.h>
17554 rm -f conftest.
$ac_objext
17555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17556 (eval $ac_compile) 2>conftest.er1
17558 grep -v '^ *+' conftest.er1
>conftest.err
17560 cat conftest.err
>&5
17561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17562 (exit $ac_status); } &&
17563 { ac_try
='test -z "$ac_c_werror_flag"
17564 || test ! -s conftest.err'
17565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17566 (eval $ac_try) 2>&5
17568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17569 (exit $ac_status); }; } &&
17570 { ac_try
='test -s conftest.$ac_objext'
17571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17572 (eval $ac_try) 2>&5
17574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17575 (exit $ac_status); }; }; then
17577 cat >>confdefs.h
<<\_ACEOF
17578 #define HAVE_SOCKETPAIR 1
17581 echo "$as_me:$LINENO: result: yes" >&5
17582 echo "${ECHO_T}yes" >&6
17584 echo "$as_me: failed program was:" >&5
17585 sed 's/^/| /' conftest.
$ac_ext >&5
17587 echo "$as_me:$LINENO: result: no" >&5
17588 echo "${ECHO_T}no" >&6
17591 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17593 # check if sockaddr has sa_len member
17594 echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
17595 echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6
17596 cat >conftest.
$ac_ext <<_ACEOF
17599 cat confdefs.h
>>conftest.
$ac_ext
17600 cat >>conftest.
$ac_ext <<_ACEOF
17601 /* end confdefs.h. */
17602 #include <sys/types.h>
17603 #include <sys/socket.h>
17613 rm -f conftest.
$ac_objext
17614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17615 (eval $ac_compile) 2>conftest.er1
17617 grep -v '^ *+' conftest.er1
>conftest.err
17619 cat conftest.err
>&5
17620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17621 (exit $ac_status); } &&
17622 { ac_try
='test -z "$ac_c_werror_flag"
17623 || test ! -s conftest.err'
17624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17625 (eval $ac_try) 2>&5
17627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17628 (exit $ac_status); }; } &&
17629 { ac_try
='test -s conftest.$ac_objext'
17630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17631 (eval $ac_try) 2>&5
17633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17634 (exit $ac_status); }; }; then
17635 echo "$as_me:$LINENO: result: yes" >&5
17636 echo "${ECHO_T}yes" >&6
17638 cat >>confdefs.h
<<\_ACEOF
17639 #define HAVE_SOCKADDR_SA_LEN 1
17643 echo "$as_me: failed program was:" >&5
17644 sed 's/^/| /' conftest.
$ac_ext >&5
17646 echo "$as_me:$LINENO: result: no" >&5
17647 echo "${ECHO_T}no" >&6
17649 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17651 va_list_is_array
=no
17652 echo "$as_me:$LINENO: checking whether va_list is an array" >&5
17653 echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6
17654 cat >conftest.
$ac_ext <<_ACEOF
17657 cat confdefs.h
>>conftest.
$ac_ext
17658 cat >>conftest.
$ac_ext <<_ACEOF
17659 /* end confdefs.h. */
17661 #ifdef HAVE_STDARG_PROTOTYPES
17662 #include <stdarg.h>
17664 #include <varargs.h>
17670 va_list list1, list2; list1 = list2;
17675 rm -f conftest.
$ac_objext
17676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17677 (eval $ac_compile) 2>conftest.er1
17679 grep -v '^ *+' conftest.er1
>conftest.err
17681 cat conftest.err
>&5
17682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17683 (exit $ac_status); } &&
17684 { ac_try
='test -z "$ac_c_werror_flag"
17685 || test ! -s conftest.err'
17686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17687 (eval $ac_try) 2>&5
17689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17690 (exit $ac_status); }; } &&
17691 { ac_try
='test -s conftest.$ac_objext'
17692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17693 (eval $ac_try) 2>&5
17695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17696 (exit $ac_status); }; }; then
17699 echo "$as_me: failed program was:" >&5
17700 sed 's/^/| /' conftest.
$ac_ext >&5
17704 cat >>confdefs.h
<<\_ACEOF
17705 #define VA_LIST_IS_ARRAY 1
17708 va_list_is_array
=yes
17711 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17712 echo "$as_me:$LINENO: result: $va_list_is_array" >&5
17713 echo "${ECHO_T}$va_list_is_array" >&6
17715 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
17719 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
17720 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
17721 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
17722 echo $ECHO_N "(cached) $ECHO_C" >&6
17724 cat >conftest.
$ac_ext <<_ACEOF
17727 cat confdefs.h
>>conftest.
$ac_ext
17728 cat >>conftest.
$ac_ext <<_ACEOF
17729 /* end confdefs.h. */
17730 /* System header to define __stub macros and hopefully few prototypes,
17731 which can conflict with char gethostbyname_r (); below.
17732 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17733 <limits.h> exists even on freestanding compilers. Under hpux,
17734 including <limits.h> includes <sys/time.h> and causes problems
17735 checking for functions defined therein. */
17736 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
17737 # include <limits.h>
17739 # include <assert.h>
17741 /* Override any gcc2 internal prototype to avoid an error. */
17746 /* We use char because int might match the return type of a gcc2
17747 builtin and then its argument prototype would still apply. */
17748 char gethostbyname_r ();
17749 /* The GNU C library defines this for functions which it implements
17750 to always fail with ENOSYS. Some functions are actually named
17751 something starting with __ and the normal name is an alias. */
17752 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
17755 char (*f) () = gethostbyname_r;
17764 return f != gethostbyname_r;
17769 rm -f conftest.
$ac_objext conftest
$ac_exeext
17770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17771 (eval $ac_link) 2>conftest.er1
17773 grep -v '^ *+' conftest.er1
>conftest.err
17775 cat conftest.err
>&5
17776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17777 (exit $ac_status); } &&
17778 { ac_try
='test -z "$ac_c_werror_flag"
17779 || test ! -s conftest.err'
17780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17781 (eval $ac_try) 2>&5
17783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17784 (exit $ac_status); }; } &&
17785 { ac_try
='test -s conftest$ac_exeext'
17786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17787 (eval $ac_try) 2>&5
17789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17790 (exit $ac_status); }; }; then
17791 ac_cv_func_gethostbyname_r
=yes
17793 echo "$as_me: failed program was:" >&5
17794 sed 's/^/| /' conftest.
$ac_ext >&5
17796 ac_cv_func_gethostbyname_r
=no
17798 rm -f conftest.err conftest.
$ac_objext \
17799 conftest
$ac_exeext conftest.
$ac_ext
17801 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
17802 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
17803 if test $ac_cv_func_gethostbyname_r = yes; then
17805 cat >>confdefs.h
<<\_ACEOF
17806 #define HAVE_GETHOSTBYNAME_R 1
17809 echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
17810 echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6
17812 CFLAGS
="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
17813 cat >conftest.
$ac_ext <<_ACEOF
17816 cat confdefs.h
>>conftest.
$ac_ext
17817 cat >>conftest.
$ac_ext <<_ACEOF
17818 /* end confdefs.h. */
17820 # include <netdb.h>
17827 struct hostent *he, *res;
17832 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
17838 rm -f conftest.
$ac_objext
17839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17840 (eval $ac_compile) 2>conftest.er1
17842 grep -v '^ *+' conftest.er1
>conftest.err
17844 cat conftest.err
>&5
17845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17846 (exit $ac_status); } &&
17847 { ac_try
='test -z "$ac_c_werror_flag"
17848 || test ! -s conftest.err'
17849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17850 (eval $ac_try) 2>&5
17852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17853 (exit $ac_status); }; } &&
17854 { ac_try
='test -s conftest.$ac_objext'
17855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17856 (eval $ac_try) 2>&5
17858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17859 (exit $ac_status); }; }; then
17861 cat >>confdefs.h
<<\_ACEOF
17862 #define HAVE_GETHOSTBYNAME_R 1
17866 cat >>confdefs.h
<<\_ACEOF
17867 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
17870 echo "$as_me:$LINENO: result: yes" >&5
17871 echo "${ECHO_T}yes" >&6
17874 echo "$as_me: failed program was:" >&5
17875 sed 's/^/| /' conftest.
$ac_ext >&5
17878 echo "$as_me:$LINENO: result: no" >&5
17879 echo "${ECHO_T}no" >&6
17880 echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
17881 echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6
17882 cat >conftest.
$ac_ext <<_ACEOF
17885 cat confdefs.h
>>conftest.
$ac_ext
17886 cat >>conftest.
$ac_ext <<_ACEOF
17887 /* end confdefs.h. */
17889 # include <netdb.h>
17896 struct hostent *he;
17901 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
17907 rm -f conftest.
$ac_objext
17908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17909 (eval $ac_compile) 2>conftest.er1
17911 grep -v '^ *+' conftest.er1
>conftest.err
17913 cat conftest.err
>&5
17914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17915 (exit $ac_status); } &&
17916 { ac_try
='test -z "$ac_c_werror_flag"
17917 || test ! -s conftest.err'
17918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17919 (eval $ac_try) 2>&5
17921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17922 (exit $ac_status); }; } &&
17923 { ac_try
='test -s conftest.$ac_objext'
17924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17925 (eval $ac_try) 2>&5
17927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17928 (exit $ac_status); }; }; then
17930 cat >>confdefs.h
<<\_ACEOF
17931 #define HAVE_GETHOSTBYNAME_R 1
17935 cat >>confdefs.h
<<\_ACEOF
17936 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
17939 echo "$as_me:$LINENO: result: yes" >&5
17940 echo "${ECHO_T}yes" >&6
17943 echo "$as_me: failed program was:" >&5
17944 sed 's/^/| /' conftest.
$ac_ext >&5
17947 echo "$as_me:$LINENO: result: no" >&5
17948 echo "${ECHO_T}no" >&6
17949 echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
17950 echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6
17951 cat >conftest.
$ac_ext <<_ACEOF
17954 cat confdefs.h
>>conftest.
$ac_ext
17955 cat >>conftest.
$ac_ext <<_ACEOF
17956 /* end confdefs.h. */
17958 # include <netdb.h>
17965 struct hostent *he;
17966 struct hostent_data data;
17968 (void) gethostbyname_r(name, he, &data);
17974 rm -f conftest.
$ac_objext
17975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17976 (eval $ac_compile) 2>conftest.er1
17978 grep -v '^ *+' conftest.er1
>conftest.err
17980 cat conftest.err
>&5
17981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17982 (exit $ac_status); } &&
17983 { ac_try
='test -z "$ac_c_werror_flag"
17984 || test ! -s conftest.err'
17985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17986 (eval $ac_try) 2>&5
17988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17989 (exit $ac_status); }; } &&
17990 { ac_try
='test -s conftest.$ac_objext'
17991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17992 (eval $ac_try) 2>&5
17994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17995 (exit $ac_status); }; }; then
17997 cat >>confdefs.h
<<\_ACEOF
17998 #define HAVE_GETHOSTBYNAME_R 1
18002 cat >>confdefs.h
<<\_ACEOF
18003 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
18006 echo "$as_me:$LINENO: result: yes" >&5
18007 echo "${ECHO_T}yes" >&6
18010 echo "$as_me: failed program was:" >&5
18011 sed 's/^/| /' conftest.
$ac_ext >&5
18014 echo "$as_me:$LINENO: result: no" >&5
18015 echo "${ECHO_T}no" >&6
18018 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18021 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18024 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18030 for ac_func
in gethostbyname
18032 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18033 echo "$as_me:$LINENO: checking for $ac_func" >&5
18034 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18035 if eval "test \"\${$as_ac_var+set}\" = set"; then
18036 echo $ECHO_N "(cached) $ECHO_C" >&6
18038 cat >conftest.
$ac_ext <<_ACEOF
18041 cat confdefs.h
>>conftest.
$ac_ext
18042 cat >>conftest.
$ac_ext <<_ACEOF
18043 /* end confdefs.h. */
18044 /* System header to define __stub macros and hopefully few prototypes,
18045 which can conflict with char $ac_func (); below.
18046 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18047 <limits.h> exists even on freestanding compilers. Under hpux,
18048 including <limits.h> includes <sys/time.h> and causes problems
18049 checking for functions defined therein. */
18050 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
18051 # include <limits.h>
18053 # include <assert.h>
18055 /* Override any gcc2 internal prototype to avoid an error. */
18060 /* We use char because int might match the return type of a gcc2
18061 builtin and then its argument prototype would still apply. */
18063 /* The GNU C library defines this for functions which it implements
18064 to always fail with ENOSYS. Some functions are actually named
18065 something starting with __ and the normal name is an alias. */
18066 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18069 char (*f) () = $ac_func;
18078 return f != $ac_func;
18083 rm -f conftest.
$ac_objext conftest
$ac_exeext
18084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18085 (eval $ac_link) 2>conftest.er1
18087 grep -v '^ *+' conftest.er1
>conftest.err
18089 cat conftest.err
>&5
18090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18091 (exit $ac_status); } &&
18092 { ac_try
='test -z "$ac_c_werror_flag"
18093 || test ! -s conftest.err'
18094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18095 (eval $ac_try) 2>&5
18097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18098 (exit $ac_status); }; } &&
18099 { ac_try
='test -s conftest$ac_exeext'
18100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18101 (eval $ac_try) 2>&5
18103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18104 (exit $ac_status); }; }; then
18105 eval "$as_ac_var=yes"
18107 echo "$as_me: failed program was:" >&5
18108 sed 's/^/| /' conftest.
$ac_ext >&5
18110 eval "$as_ac_var=no"
18112 rm -f conftest.err conftest.
$ac_objext \
18113 conftest
$ac_exeext conftest.
$ac_ext
18115 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18116 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18117 if test `eval echo '${'$as_ac_var'}'` = yes; then
18118 cat >>confdefs.h
<<_ACEOF
18119 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18134 # checks for system services
18137 # Linux requires this for correct f.p. operations
18138 echo "$as_me:$LINENO: checking for __fpu_control" >&5
18139 echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6
18140 if test "${ac_cv_func___fpu_control+set}" = set; then
18141 echo $ECHO_N "(cached) $ECHO_C" >&6
18143 cat >conftest.
$ac_ext <<_ACEOF
18146 cat confdefs.h
>>conftest.
$ac_ext
18147 cat >>conftest.
$ac_ext <<_ACEOF
18148 /* end confdefs.h. */
18149 /* System header to define __stub macros and hopefully few prototypes,
18150 which can conflict with char __fpu_control (); below.
18151 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18152 <limits.h> exists even on freestanding compilers. Under hpux,
18153 including <limits.h> includes <sys/time.h> and causes problems
18154 checking for functions defined therein. */
18155 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
18156 # include <limits.h>
18158 # include <assert.h>
18160 /* Override any gcc2 internal prototype to avoid an error. */
18165 /* We use char because int might match the return type of a gcc2
18166 builtin and then its argument prototype would still apply. */
18167 char __fpu_control ();
18168 /* The GNU C library defines this for functions which it implements
18169 to always fail with ENOSYS. Some functions are actually named
18170 something starting with __ and the normal name is an alias. */
18171 #if defined (__stub___fpu_control) || defined (__stub_____fpu_control)
18174 char (*f) () = __fpu_control;
18183 return f != __fpu_control;
18188 rm -f conftest.
$ac_objext conftest
$ac_exeext
18189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18190 (eval $ac_link) 2>conftest.er1
18192 grep -v '^ *+' conftest.er1
>conftest.err
18194 cat conftest.err
>&5
18195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18196 (exit $ac_status); } &&
18197 { ac_try
='test -z "$ac_c_werror_flag"
18198 || test ! -s conftest.err'
18199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18200 (eval $ac_try) 2>&5
18202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18203 (exit $ac_status); }; } &&
18204 { ac_try
='test -s conftest$ac_exeext'
18205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18206 (eval $ac_try) 2>&5
18208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18209 (exit $ac_status); }; }; then
18210 ac_cv_func___fpu_control
=yes
18212 echo "$as_me: failed program was:" >&5
18213 sed 's/^/| /' conftest.
$ac_ext >&5
18215 ac_cv_func___fpu_control
=no
18217 rm -f conftest.err conftest.
$ac_objext \
18218 conftest
$ac_exeext conftest.
$ac_ext
18220 echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
18221 echo "${ECHO_T}$ac_cv_func___fpu_control" >&6
18222 if test $ac_cv_func___fpu_control = yes; then
18226 echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
18227 echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6
18228 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
18229 echo $ECHO_N "(cached) $ECHO_C" >&6
18231 ac_check_lib_save_LIBS
=$LIBS
18232 LIBS
="-lieee $LIBS"
18233 cat >conftest.
$ac_ext <<_ACEOF
18236 cat confdefs.h
>>conftest.
$ac_ext
18237 cat >>conftest.
$ac_ext <<_ACEOF
18238 /* end confdefs.h. */
18240 /* Override any gcc2 internal prototype to avoid an error. */
18244 /* We use char because int might match the return type of a gcc2
18245 builtin and then its argument prototype would still apply. */
18246 char __fpu_control ();
18255 rm -f conftest.
$ac_objext conftest
$ac_exeext
18256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18257 (eval $ac_link) 2>conftest.er1
18259 grep -v '^ *+' conftest.er1
>conftest.err
18261 cat conftest.err
>&5
18262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18263 (exit $ac_status); } &&
18264 { ac_try
='test -z "$ac_c_werror_flag"
18265 || test ! -s conftest.err'
18266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18267 (eval $ac_try) 2>&5
18269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18270 (exit $ac_status); }; } &&
18271 { ac_try
='test -s conftest$ac_exeext'
18272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18273 (eval $ac_try) 2>&5
18275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18276 (exit $ac_status); }; }; then
18277 ac_cv_lib_ieee___fpu_control
=yes
18279 echo "$as_me: failed program was:" >&5
18280 sed 's/^/| /' conftest.
$ac_ext >&5
18282 ac_cv_lib_ieee___fpu_control
=no
18284 rm -f conftest.err conftest.
$ac_objext \
18285 conftest
$ac_exeext conftest.
$ac_ext
18286 LIBS
=$ac_check_lib_save_LIBS
18288 echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
18289 echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6
18290 if test $ac_cv_lib_ieee___fpu_control = yes; then
18291 cat >>confdefs.h
<<_ACEOF
18292 #define HAVE_LIBIEEE 1
18295 LIBS
="-lieee $LIBS"
18303 # Check for --with-fpectl
18304 echo "$as_me:$LINENO: checking for --with-fpectl" >&5
18305 echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6
18307 # Check whether --with-fpectl or --without-fpectl was given.
18308 if test "${with_fpectl+set}" = set; then
18309 withval
="$with_fpectl"
18311 if test "$withval" != no
18314 cat >>confdefs.h
<<\_ACEOF
18315 #define WANT_SIGFPE_HANDLER 1
18318 echo "$as_me:$LINENO: result: yes" >&5
18319 echo "${ECHO_T}yes" >&6
18320 else echo "$as_me:$LINENO: result: no" >&5
18321 echo "${ECHO_T}no" >&6
18324 echo "$as_me:$LINENO: result: no" >&5
18325 echo "${ECHO_T}no" >&6
18328 # check for --with-libm=...
18330 case $ac_sys_system in
18335 echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
18336 echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6
18338 # Check whether --with-libm or --without-libm was given.
18339 if test "${with_libm+set}" = set; then
18340 withval
="$with_libm"
18342 if test "$withval" = no
18344 echo "$as_me:$LINENO: result: force LIBM empty" >&5
18345 echo "${ECHO_T}force LIBM empty" >&6
18346 elif test "$withval" != yes
18348 echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
18349 echo "${ECHO_T}set LIBM=\"$withval\"" >&6
18350 else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
18351 echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
18352 { (exit 1); exit 1; }; }
18355 echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
18356 echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6
18359 # check for --with-libc=...
18361 echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
18362 echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6
18364 # Check whether --with-libc or --without-libc was given.
18365 if test "${with_libc+set}" = set; then
18366 withval
="$with_libc"
18368 if test "$withval" = no
18370 echo "$as_me:$LINENO: result: force LIBC empty" >&5
18371 echo "${ECHO_T}force LIBC empty" >&6
18372 elif test "$withval" != yes
18374 echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
18375 echo "${ECHO_T}set LIBC=\"$withval\"" >&6
18376 else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
18377 echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
18378 { (exit 1); exit 1; }; }
18381 echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
18382 echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6
18385 # check for hypot() in math library
18389 for ac_func
in hypot
18391 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18392 echo "$as_me:$LINENO: checking for $ac_func" >&5
18393 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18394 if eval "test \"\${$as_ac_var+set}\" = set"; then
18395 echo $ECHO_N "(cached) $ECHO_C" >&6
18397 cat >conftest.
$ac_ext <<_ACEOF
18400 cat confdefs.h
>>conftest.
$ac_ext
18401 cat >>conftest.
$ac_ext <<_ACEOF
18402 /* end confdefs.h. */
18403 /* System header to define __stub macros and hopefully few prototypes,
18404 which can conflict with char $ac_func (); below.
18405 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18406 <limits.h> exists even on freestanding compilers. Under hpux,
18407 including <limits.h> includes <sys/time.h> and causes problems
18408 checking for functions defined therein. */
18409 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
18410 # include <limits.h>
18412 # include <assert.h>
18414 /* Override any gcc2 internal prototype to avoid an error. */
18419 /* We use char because int might match the return type of a gcc2
18420 builtin and then its argument prototype would still apply. */
18422 /* The GNU C library defines this for functions which it implements
18423 to always fail with ENOSYS. Some functions are actually named
18424 something starting with __ and the normal name is an alias. */
18425 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18428 char (*f) () = $ac_func;
18437 return f != $ac_func;
18442 rm -f conftest.
$ac_objext conftest
$ac_exeext
18443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18444 (eval $ac_link) 2>conftest.er1
18446 grep -v '^ *+' conftest.er1
>conftest.err
18448 cat conftest.err
>&5
18449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18450 (exit $ac_status); } &&
18451 { ac_try
='test -z "$ac_c_werror_flag"
18452 || test ! -s conftest.err'
18453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18454 (eval $ac_try) 2>&5
18456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18457 (exit $ac_status); }; } &&
18458 { ac_try
='test -s conftest$ac_exeext'
18459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18460 (eval $ac_try) 2>&5
18462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18463 (exit $ac_status); }; }; then
18464 eval "$as_ac_var=yes"
18466 echo "$as_me: failed program was:" >&5
18467 sed 's/^/| /' conftest.
$ac_ext >&5
18469 eval "$as_ac_var=no"
18471 rm -f conftest.err conftest.
$ac_objext \
18472 conftest
$ac_exeext conftest.
$ac_ext
18474 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18475 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18476 if test `eval echo '${'$as_ac_var'}'` = yes; then
18477 cat >>confdefs.h
<<_ACEOF
18478 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18483 "$ac_func.$ac_objext" | \
18484 *" $ac_func.$ac_objext" | \
18485 "$ac_func.$ac_objext "* | \
18486 *" $ac_func.$ac_objext "* ) ;;
18487 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext" ;;
18496 # check for wchar.h
18497 if test "${ac_cv_header_wchar_h+set}" = set; then
18498 echo "$as_me:$LINENO: checking for wchar.h" >&5
18499 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
18500 if test "${ac_cv_header_wchar_h+set}" = set; then
18501 echo $ECHO_N "(cached) $ECHO_C" >&6
18503 echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
18504 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6
18506 # Is the header compilable?
18507 echo "$as_me:$LINENO: checking wchar.h usability" >&5
18508 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6
18509 cat >conftest.
$ac_ext <<_ACEOF
18512 cat confdefs.h
>>conftest.
$ac_ext
18513 cat >>conftest.
$ac_ext <<_ACEOF
18514 /* end confdefs.h. */
18515 $ac_includes_default
18518 rm -f conftest.
$ac_objext
18519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18520 (eval $ac_compile) 2>conftest.er1
18522 grep -v '^ *+' conftest.er1
>conftest.err
18524 cat conftest.err
>&5
18525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18526 (exit $ac_status); } &&
18527 { ac_try
='test -z "$ac_c_werror_flag"
18528 || test ! -s conftest.err'
18529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18530 (eval $ac_try) 2>&5
18532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18533 (exit $ac_status); }; } &&
18534 { ac_try
='test -s conftest.$ac_objext'
18535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18536 (eval $ac_try) 2>&5
18538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18539 (exit $ac_status); }; }; then
18540 ac_header_compiler
=yes
18542 echo "$as_me: failed program was:" >&5
18543 sed 's/^/| /' conftest.
$ac_ext >&5
18545 ac_header_compiler
=no
18547 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18548 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18549 echo "${ECHO_T}$ac_header_compiler" >&6
18551 # Is the header present?
18552 echo "$as_me:$LINENO: checking wchar.h presence" >&5
18553 echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6
18554 cat >conftest.
$ac_ext <<_ACEOF
18557 cat confdefs.h
>>conftest.
$ac_ext
18558 cat >>conftest.
$ac_ext <<_ACEOF
18559 /* end confdefs.h. */
18562 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18563 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
18565 grep -v '^ *+' conftest.er1
>conftest.err
18567 cat conftest.err
>&5
18568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18569 (exit $ac_status); } >/dev
/null
; then
18570 if test -s conftest.err
; then
18571 ac_cpp_err
=$ac_c_preproc_warn_flag
18572 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
18579 if test -z "$ac_cpp_err"; then
18580 ac_header_preproc
=yes
18582 echo "$as_me: failed program was:" >&5
18583 sed 's/^/| /' conftest.
$ac_ext >&5
18585 ac_header_preproc
=no
18587 rm -f conftest.err conftest.
$ac_ext
18588 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18589 echo "${ECHO_T}$ac_header_preproc" >&6
18591 # So? What about this header?
18592 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18594 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
18595 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18596 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
18597 echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
18598 ac_header_preproc
=yes
18601 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
18602 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
18603 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
18604 echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
18605 { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
18606 echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
18607 { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5
18608 echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;}
18609 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
18610 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
18611 { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
18612 echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
18615 ## ------------------------------------------------ ##
18616 ## Report this to http://www.python.org/python-bugs ##
18617 ## ------------------------------------------------ ##
18620 sed "s/^/$as_me: WARNING: /" >&2
18623 echo "$as_me:$LINENO: checking for wchar.h" >&5
18624 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
18625 if test "${ac_cv_header_wchar_h+set}" = set; then
18626 echo $ECHO_N "(cached) $ECHO_C" >&6
18628 ac_cv_header_wchar_h
=$ac_header_preproc
18630 echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
18631 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6
18634 if test $ac_cv_header_wchar_h = yes; then
18637 cat >>confdefs.h
<<\_ACEOF
18638 #define HAVE_WCHAR_H 1
18650 # determine wchar_t size
18651 if test "$wchar_h" = yes
18653 echo "$as_me:$LINENO: checking for wchar_t" >&5
18654 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
18655 if test "${ac_cv_type_wchar_t+set}" = set; then
18656 echo $ECHO_N "(cached) $ECHO_C" >&6
18658 cat >conftest.
$ac_ext <<_ACEOF
18661 cat confdefs.h
>>conftest.
$ac_ext
18662 cat >>conftest.
$ac_ext <<_ACEOF
18663 /* end confdefs.h. */
18671 if (sizeof (wchar_t))
18677 rm -f conftest.
$ac_objext
18678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18679 (eval $ac_compile) 2>conftest.er1
18681 grep -v '^ *+' conftest.er1
>conftest.err
18683 cat conftest.err
>&5
18684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18685 (exit $ac_status); } &&
18686 { ac_try
='test -z "$ac_c_werror_flag"
18687 || test ! -s conftest.err'
18688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18689 (eval $ac_try) 2>&5
18691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18692 (exit $ac_status); }; } &&
18693 { ac_try
='test -s conftest.$ac_objext'
18694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18695 (eval $ac_try) 2>&5
18697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18698 (exit $ac_status); }; }; then
18699 ac_cv_type_wchar_t
=yes
18701 echo "$as_me: failed program was:" >&5
18702 sed 's/^/| /' conftest.
$ac_ext >&5
18704 ac_cv_type_wchar_t
=no
18706 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18708 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
18709 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
18711 echo "$as_me:$LINENO: checking size of wchar_t" >&5
18712 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
18713 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
18714 echo $ECHO_N "(cached) $ECHO_C" >&6
18716 if test "$ac_cv_type_wchar_t" = yes; then
18717 # The cast to unsigned long works around a bug in the HP C Compiler
18718 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18719 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18720 # This bug is HP SR number 8606223364.
18721 if test "$cross_compiling" = yes; then
18722 # Depending upon the size, compute the lo and hi bounds.
18723 cat >conftest.
$ac_ext <<_ACEOF
18726 cat confdefs.h
>>conftest.
$ac_ext
18727 cat >>conftest.
$ac_ext <<_ACEOF
18728 /* end confdefs.h. */
18734 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
18741 rm -f conftest.
$ac_objext
18742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18743 (eval $ac_compile) 2>conftest.er1
18745 grep -v '^ *+' conftest.er1
>conftest.err
18747 cat conftest.err
>&5
18748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18749 (exit $ac_status); } &&
18750 { ac_try
='test -z "$ac_c_werror_flag"
18751 || test ! -s conftest.err'
18752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18753 (eval $ac_try) 2>&5
18755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18756 (exit $ac_status); }; } &&
18757 { ac_try
='test -s conftest.$ac_objext'
18758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18759 (eval $ac_try) 2>&5
18761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18762 (exit $ac_status); }; }; then
18765 cat >conftest.
$ac_ext <<_ACEOF
18768 cat confdefs.h
>>conftest.
$ac_ext
18769 cat >>conftest.
$ac_ext <<_ACEOF
18770 /* end confdefs.h. */
18776 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
18783 rm -f conftest.
$ac_objext
18784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18785 (eval $ac_compile) 2>conftest.er1
18787 grep -v '^ *+' conftest.er1
>conftest.err
18789 cat conftest.err
>&5
18790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18791 (exit $ac_status); } &&
18792 { ac_try
='test -z "$ac_c_werror_flag"
18793 || test ! -s conftest.err'
18794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18795 (eval $ac_try) 2>&5
18797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18798 (exit $ac_status); }; } &&
18799 { ac_try
='test -s conftest.$ac_objext'
18800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18801 (eval $ac_try) 2>&5
18803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18804 (exit $ac_status); }; }; then
18805 ac_hi
=$ac_mid; break
18807 echo "$as_me: failed program was:" >&5
18808 sed 's/^/| /' conftest.
$ac_ext >&5
18810 ac_lo
=`expr $ac_mid + 1`
18811 if test $ac_lo -le $ac_mid; then
18815 ac_mid
=`expr 2 '*' $ac_mid + 1`
18817 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18820 echo "$as_me: failed program was:" >&5
18821 sed 's/^/| /' conftest.
$ac_ext >&5
18823 cat >conftest.
$ac_ext <<_ACEOF
18826 cat confdefs.h
>>conftest.
$ac_ext
18827 cat >>conftest.
$ac_ext <<_ACEOF
18828 /* end confdefs.h. */
18834 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
18841 rm -f conftest.
$ac_objext
18842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18843 (eval $ac_compile) 2>conftest.er1
18845 grep -v '^ *+' conftest.er1
>conftest.err
18847 cat conftest.err
>&5
18848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18849 (exit $ac_status); } &&
18850 { ac_try
='test -z "$ac_c_werror_flag"
18851 || test ! -s conftest.err'
18852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18853 (eval $ac_try) 2>&5
18855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18856 (exit $ac_status); }; } &&
18857 { ac_try
='test -s conftest.$ac_objext'
18858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18859 (eval $ac_try) 2>&5
18861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18862 (exit $ac_status); }; }; then
18865 cat >conftest.
$ac_ext <<_ACEOF
18868 cat confdefs.h
>>conftest.
$ac_ext
18869 cat >>conftest.
$ac_ext <<_ACEOF
18870 /* end confdefs.h. */
18876 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
18883 rm -f conftest.
$ac_objext
18884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18885 (eval $ac_compile) 2>conftest.er1
18887 grep -v '^ *+' conftest.er1
>conftest.err
18889 cat conftest.err
>&5
18890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18891 (exit $ac_status); } &&
18892 { ac_try
='test -z "$ac_c_werror_flag"
18893 || test ! -s conftest.err'
18894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18895 (eval $ac_try) 2>&5
18897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18898 (exit $ac_status); }; } &&
18899 { ac_try
='test -s conftest.$ac_objext'
18900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18901 (eval $ac_try) 2>&5
18903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18904 (exit $ac_status); }; }; then
18905 ac_lo
=$ac_mid; break
18907 echo "$as_me: failed program was:" >&5
18908 sed 's/^/| /' conftest.
$ac_ext >&5
18910 ac_hi
=`expr '(' $ac_mid ')' - 1`
18911 if test $ac_mid -le $ac_hi; then
18915 ac_mid
=`expr 2 '*' $ac_mid`
18917 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18920 echo "$as_me: failed program was:" >&5
18921 sed 's/^/| /' conftest.
$ac_ext >&5
18925 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18927 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18928 # Binary search between lo and hi bounds.
18929 while test "x$ac_lo" != "x$ac_hi"; do
18930 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18931 cat >conftest.
$ac_ext <<_ACEOF
18934 cat confdefs.h
>>conftest.
$ac_ext
18935 cat >>conftest.
$ac_ext <<_ACEOF
18936 /* end confdefs.h. */
18942 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
18949 rm -f conftest.
$ac_objext
18950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18951 (eval $ac_compile) 2>conftest.er1
18953 grep -v '^ *+' conftest.er1
>conftest.err
18955 cat conftest.err
>&5
18956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18957 (exit $ac_status); } &&
18958 { ac_try
='test -z "$ac_c_werror_flag"
18959 || test ! -s conftest.err'
18960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18961 (eval $ac_try) 2>&5
18963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18964 (exit $ac_status); }; } &&
18965 { ac_try
='test -s conftest.$ac_objext'
18966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18967 (eval $ac_try) 2>&5
18969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18970 (exit $ac_status); }; }; then
18973 echo "$as_me: failed program was:" >&5
18974 sed 's/^/| /' conftest.
$ac_ext >&5
18976 ac_lo
=`expr '(' $ac_mid ')' + 1`
18978 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18981 ?
*) ac_cv_sizeof_wchar_t
=$ac_lo;;
18982 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
18983 See \`config.log' for more details." >&5
18984 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
18985 See \`config.log' for more details." >&2;}
18986 { (exit 1); exit 1; }; } ;;
18989 if test "$cross_compiling" = yes; then
18990 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18991 See \`config.log' for more details." >&5
18992 echo "$as_me: error: cannot run test program while cross compiling
18993 See \`config.log' for more details." >&2;}
18994 { (exit 1); exit 1; }; }
18996 cat >conftest.
$ac_ext <<_ACEOF
18999 cat confdefs.h
>>conftest.
$ac_ext
19000 cat >>conftest.
$ac_ext <<_ACEOF
19001 /* end confdefs.h. */
19004 long longval () { return (long) (sizeof (wchar_t)); }
19005 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
19007 #include <stdlib.h>
19012 FILE *f = fopen ("conftest.val", "w");
19015 if (((long) (sizeof (wchar_t))) < 0)
19017 long i = longval ();
19018 if (i != ((long) (sizeof (wchar_t))))
19020 fprintf (f, "%ld\n", i);
19024 unsigned long i = ulongval ();
19025 if (i != ((long) (sizeof (wchar_t))))
19027 fprintf (f, "%lu\n", i);
19029 exit (ferror (f) || fclose (f) != 0);
19035 rm -f conftest
$ac_exeext
19036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19037 (eval $ac_link) 2>&5
19039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19040 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19042 (eval $ac_try) 2>&5
19044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19045 (exit $ac_status); }; }; then
19046 ac_cv_sizeof_wchar_t
=`cat conftest.val`
19048 echo "$as_me: program exited with status $ac_status" >&5
19049 echo "$as_me: failed program was:" >&5
19050 sed 's/^/| /' conftest.
$ac_ext >&5
19052 ( exit $ac_status )
19053 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
19054 See \`config.log' for more details." >&5
19055 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
19056 See \`config.log' for more details." >&2;}
19057 { (exit 1); exit 1; }; }
19059 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
19064 ac_cv_sizeof_wchar_t
=0
19067 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
19068 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
19069 cat >>confdefs.h
<<_ACEOF
19070 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
19076 echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5
19077 echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6
19079 cat >conftest.
$ac_ext <<_ACEOF
19082 cat confdefs.h
>>conftest.
$ac_ext
19083 cat >>conftest.
$ac_ext <<_ACEOF
19084 /* end confdefs.h. */
19087 #if TCL_UTF_MAX != 6
19088 # error "NOT UCS4_TCL"
19098 rm -f conftest.
$ac_objext
19099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19100 (eval $ac_compile) 2>conftest.er1
19102 grep -v '^ *+' conftest.er1
>conftest.err
19104 cat conftest.err
>&5
19105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19106 (exit $ac_status); } &&
19107 { ac_try
='test -z "$ac_c_werror_flag"
19108 || test ! -s conftest.err'
19109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19110 (eval $ac_try) 2>&5
19112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19113 (exit $ac_status); }; } &&
19114 { ac_try
='test -s conftest.$ac_objext'
19115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19116 (eval $ac_try) 2>&5
19118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19119 (exit $ac_status); }; }; then
19122 cat >>confdefs.h
<<\_ACEOF
19123 #define HAVE_UCS4_TCL 1
19129 echo "$as_me: failed program was:" >&5
19130 sed 's/^/| /' conftest.
$ac_ext >&5
19133 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19134 echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5
19135 echo "${ECHO_T}$have_ucs4_tcl" >&6
19137 # check whether wchar_t is signed or not
19138 if test "$wchar_h" = yes
19140 # check whether wchar_t is signed or not
19141 echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5
19142 echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6
19143 if test "${ac_cv_wchar_t_signed+set}" = set; then
19144 echo $ECHO_N "(cached) $ECHO_C" >&6
19147 if test "$cross_compiling" = yes; then
19148 ac_cv_wchar_t_signed
=yes
19150 cat >conftest.
$ac_ext <<_ACEOF
19153 cat confdefs.h
>>conftest.
$ac_ext
19154 cat >>conftest.
$ac_ext <<_ACEOF
19155 /* end confdefs.h. */
19160 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 1 : 0);
19164 rm -f conftest
$ac_exeext
19165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19166 (eval $ac_link) 2>&5
19168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19169 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19171 (eval $ac_try) 2>&5
19173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19174 (exit $ac_status); }; }; then
19175 ac_cv_wchar_t_signed
=yes
19177 echo "$as_me: program exited with status $ac_status" >&5
19178 echo "$as_me: failed program was:" >&5
19179 sed 's/^/| /' conftest.
$ac_ext >&5
19181 ( exit $ac_status )
19182 ac_cv_wchar_t_signed
=no
19184 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
19188 echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5
19189 echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6
19192 echo "$as_me:$LINENO: checking what type to use for unicode" >&5
19193 echo $ECHO_N "checking what type to use for unicode... $ECHO_C" >&6
19194 # Check whether --enable-unicode or --disable-unicode was given.
19195 if test "${enable_unicode+set}" = set; then
19196 enableval
="$enable_unicode"
19202 if test $enable_unicode = yes
19204 # Without any arguments, Py_UNICODE defaults to two-byte mode
19205 case "$have_ucs4_tcl" in
19206 yes) enable_unicode
="ucs4"
19208 *) enable_unicode
="ucs2"
19215 case "$enable_unicode" in
19216 ucs2
) unicode_size
="2"
19217 cat >>confdefs.h
<<\_ACEOF
19218 #define Py_UNICODE_SIZE 2
19222 ucs4
) unicode_size
="4"
19223 cat >>confdefs.h
<<\_ACEOF
19224 #define Py_UNICODE_SIZE 4
19234 if test "$enable_unicode" = "no"
19237 echo "$as_me:$LINENO: result: not used" >&5
19238 echo "${ECHO_T}not used" >&6
19240 UNICODE_OBJS
="Objects/unicodeobject.o Objects/unicodectype.o"
19242 cat >>confdefs.h
<<\_ACEOF
19243 #define Py_USING_UNICODE 1
19247 # wchar_t is only usable if it maps to an unsigned type
19248 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
19249 -a "$ac_cv_wchar_t_signed" = "no"
19251 PY_UNICODE_TYPE
="wchar_t"
19253 cat >>confdefs.h
<<\_ACEOF
19254 #define HAVE_USABLE_WCHAR_T 1
19257 cat >>confdefs.h
<<\_ACEOF
19258 #define PY_UNICODE_TYPE wchar_t
19261 elif test "$ac_cv_sizeof_short" = "$unicode_size"
19263 PY_UNICODE_TYPE
="unsigned short"
19264 cat >>confdefs.h
<<\_ACEOF
19265 #define PY_UNICODE_TYPE unsigned short
19268 elif test "$ac_cv_sizeof_long" = "$unicode_size"
19270 PY_UNICODE_TYPE
="unsigned long"
19271 cat >>confdefs.h
<<\_ACEOF
19272 #define PY_UNICODE_TYPE unsigned long
19276 PY_UNICODE_TYPE
="no type found"
19278 echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
19279 echo "${ECHO_T}$PY_UNICODE_TYPE" >&6
19282 # check for endianness
19283 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
19284 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
19285 if test "${ac_cv_c_bigendian+set}" = set; then
19286 echo $ECHO_N "(cached) $ECHO_C" >&6
19288 # See if sys/param.h defines the BYTE_ORDER macro.
19289 cat >conftest.
$ac_ext <<_ACEOF
19292 cat confdefs.h
>>conftest.
$ac_ext
19293 cat >>conftest.
$ac_ext <<_ACEOF
19294 /* end confdefs.h. */
19295 #include <sys/types.h>
19296 #include <sys/param.h>
19301 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
19302 bogus endian macros
19309 rm -f conftest.
$ac_objext
19310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19311 (eval $ac_compile) 2>conftest.er1
19313 grep -v '^ *+' conftest.er1
>conftest.err
19315 cat conftest.err
>&5
19316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19317 (exit $ac_status); } &&
19318 { ac_try
='test -z "$ac_c_werror_flag"
19319 || test ! -s conftest.err'
19320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19321 (eval $ac_try) 2>&5
19323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19324 (exit $ac_status); }; } &&
19325 { ac_try
='test -s conftest.$ac_objext'
19326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19327 (eval $ac_try) 2>&5
19329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19330 (exit $ac_status); }; }; then
19331 # It does; now see whether it defined to BIG_ENDIAN or not.
19332 cat >conftest.
$ac_ext <<_ACEOF
19335 cat confdefs.h
>>conftest.
$ac_ext
19336 cat >>conftest.
$ac_ext <<_ACEOF
19337 /* end confdefs.h. */
19338 #include <sys/types.h>
19339 #include <sys/param.h>
19344 #if BYTE_ORDER != BIG_ENDIAN
19352 rm -f conftest.
$ac_objext
19353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19354 (eval $ac_compile) 2>conftest.er1
19356 grep -v '^ *+' conftest.er1
>conftest.err
19358 cat conftest.err
>&5
19359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19360 (exit $ac_status); } &&
19361 { ac_try
='test -z "$ac_c_werror_flag"
19362 || test ! -s conftest.err'
19363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19364 (eval $ac_try) 2>&5
19366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19367 (exit $ac_status); }; } &&
19368 { ac_try
='test -s conftest.$ac_objext'
19369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19370 (eval $ac_try) 2>&5
19372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19373 (exit $ac_status); }; }; then
19374 ac_cv_c_bigendian
=yes
19376 echo "$as_me: failed program was:" >&5
19377 sed 's/^/| /' conftest.
$ac_ext >&5
19379 ac_cv_c_bigendian
=no
19381 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19383 echo "$as_me: failed program was:" >&5
19384 sed 's/^/| /' conftest.
$ac_ext >&5
19386 # It does not; compile a test program.
19387 if test "$cross_compiling" = yes; then
19388 # try to guess the endianness by grepping values into an object file
19389 ac_cv_c_bigendian
=unknown
19390 cat >conftest.
$ac_ext <<_ACEOF
19393 cat confdefs.h
>>conftest.
$ac_ext
19394 cat >>conftest.
$ac_ext <<_ACEOF
19395 /* end confdefs.h. */
19396 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
19397 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
19398 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
19399 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
19400 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
19401 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
19405 _ascii (); _ebcdic ();
19410 rm -f conftest.
$ac_objext
19411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19412 (eval $ac_compile) 2>conftest.er1
19414 grep -v '^ *+' conftest.er1
>conftest.err
19416 cat conftest.err
>&5
19417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19418 (exit $ac_status); } &&
19419 { ac_try
='test -z "$ac_c_werror_flag"
19420 || test ! -s conftest.err'
19421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19422 (eval $ac_try) 2>&5
19424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19425 (exit $ac_status); }; } &&
19426 { ac_try
='test -s conftest.$ac_objext'
19427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19428 (eval $ac_try) 2>&5
19430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19431 (exit $ac_status); }; }; then
19432 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
19433 ac_cv_c_bigendian
=yes
19435 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
19436 if test "$ac_cv_c_bigendian" = unknown
; then
19437 ac_cv_c_bigendian
=no
19439 # finding both strings is unlikely to happen, but who knows?
19440 ac_cv_c_bigendian
=unknown
19444 echo "$as_me: failed program was:" >&5
19445 sed 's/^/| /' conftest.
$ac_ext >&5
19448 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19450 cat >conftest.
$ac_ext <<_ACEOF
19453 cat confdefs.h
>>conftest.
$ac_ext
19454 cat >>conftest.
$ac_ext <<_ACEOF
19455 /* end confdefs.h. */
19459 /* Are we little or big endian? From Harbison&Steele. */
19463 char c[sizeof (long)];
19466 exit (u.c[sizeof (long) - 1] == 1);
19469 rm -f conftest
$ac_exeext
19470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19471 (eval $ac_link) 2>&5
19473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19474 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19476 (eval $ac_try) 2>&5
19478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19479 (exit $ac_status); }; }; then
19480 ac_cv_c_bigendian
=no
19482 echo "$as_me: program exited with status $ac_status" >&5
19483 echo "$as_me: failed program was:" >&5
19484 sed 's/^/| /' conftest.
$ac_ext >&5
19486 ( exit $ac_status )
19487 ac_cv_c_bigendian
=yes
19489 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
19492 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19494 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
19495 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
19496 case $ac_cv_c_bigendian in
19499 cat >>confdefs.h
<<\_ACEOF
19500 #define WORDS_BIGENDIAN 1
19506 { { echo "$as_me:$LINENO: error: unknown endianness
19507 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
19508 echo "$as_me: error: unknown endianness
19509 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
19510 { (exit 1); exit 1; }; } ;;
19514 # Check whether right shifting a negative integer extends the sign bit
19515 # or fills with zeros (like the Cray J90, according to Tim Peters).
19516 echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
19517 echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6
19518 if test "${ac_cv_rshift_extends_sign+set}" = set; then
19519 echo $ECHO_N "(cached) $ECHO_C" >&6
19522 if test "$cross_compiling" = yes; then
19523 ac_cv_rshift_extends_sign
=yes
19525 cat >conftest.
$ac_ext <<_ACEOF
19528 cat confdefs.h
>>conftest.
$ac_ext
19529 cat >>conftest.
$ac_ext <<_ACEOF
19530 /* end confdefs.h. */
19534 exit(((-1)>>3 == -1) ? 0 : 1);
19538 rm -f conftest
$ac_exeext
19539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19540 (eval $ac_link) 2>&5
19542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19543 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19545 (eval $ac_try) 2>&5
19547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19548 (exit $ac_status); }; }; then
19549 ac_cv_rshift_extends_sign
=yes
19551 echo "$as_me: program exited with status $ac_status" >&5
19552 echo "$as_me: failed program was:" >&5
19553 sed 's/^/| /' conftest.
$ac_ext >&5
19555 ( exit $ac_status )
19556 ac_cv_rshift_extends_sign
=no
19558 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
19562 echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
19563 echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6
19564 if test "$ac_cv_rshift_extends_sign" = no
19567 cat >>confdefs.h
<<\_ACEOF
19568 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
19573 # check for getc_unlocked and related locking functions
19574 echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
19575 echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6
19576 if test "${ac_cv_have_getc_unlocked+set}" = set; then
19577 echo $ECHO_N "(cached) $ECHO_C" >&6
19580 cat >conftest.
$ac_ext <<_ACEOF
19583 cat confdefs.h
>>conftest.
$ac_ext
19584 cat >>conftest.
$ac_ext <<_ACEOF
19585 /* end confdefs.h. */
19591 FILE *f = fopen("/dev/null", "r");
19600 rm -f conftest.
$ac_objext conftest
$ac_exeext
19601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19602 (eval $ac_link) 2>conftest.er1
19604 grep -v '^ *+' conftest.er1
>conftest.err
19606 cat conftest.err
>&5
19607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19608 (exit $ac_status); } &&
19609 { ac_try
='test -z "$ac_c_werror_flag"
19610 || test ! -s conftest.err'
19611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19612 (eval $ac_try) 2>&5
19614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19615 (exit $ac_status); }; } &&
19616 { ac_try
='test -s conftest$ac_exeext'
19617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19618 (eval $ac_try) 2>&5
19620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19621 (exit $ac_status); }; }; then
19622 ac_cv_have_getc_unlocked
=yes
19624 echo "$as_me: failed program was:" >&5
19625 sed 's/^/| /' conftest.
$ac_ext >&5
19627 ac_cv_have_getc_unlocked
=no
19629 rm -f conftest.err conftest.
$ac_objext \
19630 conftest
$ac_exeext conftest.
$ac_ext
19633 echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
19634 echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6
19635 if test "$ac_cv_have_getc_unlocked" = yes
19638 cat >>confdefs.h
<<\_ACEOF
19639 #define HAVE_GETC_UNLOCKED 1
19644 # check for readline 2.1
19645 echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
19646 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6
19647 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
19648 echo $ECHO_N "(cached) $ECHO_C" >&6
19650 ac_check_lib_save_LIBS
=$LIBS
19651 LIBS
="-lreadline -ltermcap $LIBS"
19652 cat >conftest.
$ac_ext <<_ACEOF
19655 cat confdefs.h
>>conftest.
$ac_ext
19656 cat >>conftest.
$ac_ext <<_ACEOF
19657 /* end confdefs.h. */
19659 /* Override any gcc2 internal prototype to avoid an error. */
19663 /* We use char because int might match the return type of a gcc2
19664 builtin and then its argument prototype would still apply. */
19665 char rl_callback_handler_install ();
19669 rl_callback_handler_install ();
19674 rm -f conftest.
$ac_objext conftest
$ac_exeext
19675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19676 (eval $ac_link) 2>conftest.er1
19678 grep -v '^ *+' conftest.er1
>conftest.err
19680 cat conftest.err
>&5
19681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19682 (exit $ac_status); } &&
19683 { ac_try
='test -z "$ac_c_werror_flag"
19684 || test ! -s conftest.err'
19685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19686 (eval $ac_try) 2>&5
19688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19689 (exit $ac_status); }; } &&
19690 { ac_try
='test -s conftest$ac_exeext'
19691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19692 (eval $ac_try) 2>&5
19694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19695 (exit $ac_status); }; }; then
19696 ac_cv_lib_readline_rl_callback_handler_install
=yes
19698 echo "$as_me: failed program was:" >&5
19699 sed 's/^/| /' conftest.
$ac_ext >&5
19701 ac_cv_lib_readline_rl_callback_handler_install
=no
19703 rm -f conftest.err conftest.
$ac_objext \
19704 conftest
$ac_exeext conftest.
$ac_ext
19705 LIBS
=$ac_check_lib_save_LIBS
19707 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
19708 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6
19709 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
19711 cat >>confdefs.h
<<\_ACEOF
19712 #define HAVE_RL_CALLBACK 1
19718 # check for readline 2.2
19719 cat >conftest.
$ac_ext <<_ACEOF
19722 cat confdefs.h
>>conftest.
$ac_ext
19723 cat >>conftest.
$ac_ext <<_ACEOF
19724 /* end confdefs.h. */
19725 #include <readline/readline.h>
19727 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19728 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19730 grep -v '^ *+' conftest.er1
>conftest.err
19732 cat conftest.err
>&5
19733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19734 (exit $ac_status); } >/dev
/null
; then
19735 if test -s conftest.err
; then
19736 ac_cpp_err
=$ac_c_preproc_warn_flag
19737 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19744 if test -z "$ac_cpp_err"; then
19747 echo "$as_me: failed program was:" >&5
19748 sed 's/^/| /' conftest.
$ac_ext >&5
19752 rm -f conftest.err conftest.
$ac_ext
19753 if test $have_readline = yes
19755 cat >conftest.
$ac_ext <<_ACEOF
19758 cat confdefs.h
>>conftest.
$ac_ext
19759 cat >>conftest.
$ac_ext <<_ACEOF
19760 /* end confdefs.h. */
19761 #include <readline/readline.h>
19764 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19765 $EGREP "extern int rl_completion_append_character;" >/dev
/null
2>&1; then
19767 cat >>confdefs.h
<<\_ACEOF
19768 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
19776 # check for readline 4.0
19777 echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
19778 echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6
19779 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
19780 echo $ECHO_N "(cached) $ECHO_C" >&6
19782 ac_check_lib_save_LIBS
=$LIBS
19783 LIBS
="-lreadline -ltermcap $LIBS"
19784 cat >conftest.
$ac_ext <<_ACEOF
19787 cat confdefs.h
>>conftest.
$ac_ext
19788 cat >>conftest.
$ac_ext <<_ACEOF
19789 /* end confdefs.h. */
19791 /* Override any gcc2 internal prototype to avoid an error. */
19795 /* We use char because int might match the return type of a gcc2
19796 builtin and then its argument prototype would still apply. */
19797 char rl_pre_input_hook ();
19801 rl_pre_input_hook ();
19806 rm -f conftest.
$ac_objext conftest
$ac_exeext
19807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19808 (eval $ac_link) 2>conftest.er1
19810 grep -v '^ *+' conftest.er1
>conftest.err
19812 cat conftest.err
>&5
19813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19814 (exit $ac_status); } &&
19815 { ac_try
='test -z "$ac_c_werror_flag"
19816 || test ! -s conftest.err'
19817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19818 (eval $ac_try) 2>&5
19820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19821 (exit $ac_status); }; } &&
19822 { ac_try
='test -s conftest$ac_exeext'
19823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19824 (eval $ac_try) 2>&5
19826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19827 (exit $ac_status); }; }; then
19828 ac_cv_lib_readline_rl_pre_input_hook
=yes
19830 echo "$as_me: failed program was:" >&5
19831 sed 's/^/| /' conftest.
$ac_ext >&5
19833 ac_cv_lib_readline_rl_pre_input_hook
=no
19835 rm -f conftest.err conftest.
$ac_objext \
19836 conftest
$ac_exeext conftest.
$ac_ext
19837 LIBS
=$ac_check_lib_save_LIBS
19839 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
19840 echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6
19841 if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
19843 cat >>confdefs.h
<<\_ACEOF
19844 #define HAVE_RL_PRE_INPUT_HOOK 1
19850 # check for readline 4.2
19851 echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
19852 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6
19853 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
19854 echo $ECHO_N "(cached) $ECHO_C" >&6
19856 ac_check_lib_save_LIBS
=$LIBS
19857 LIBS
="-lreadline -ltermcap $LIBS"
19858 cat >conftest.
$ac_ext <<_ACEOF
19861 cat confdefs.h
>>conftest.
$ac_ext
19862 cat >>conftest.
$ac_ext <<_ACEOF
19863 /* end confdefs.h. */
19865 /* Override any gcc2 internal prototype to avoid an error. */
19869 /* We use char because int might match the return type of a gcc2
19870 builtin and then its argument prototype would still apply. */
19871 char rl_completion_matches ();
19875 rl_completion_matches ();
19880 rm -f conftest.
$ac_objext conftest
$ac_exeext
19881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19882 (eval $ac_link) 2>conftest.er1
19884 grep -v '^ *+' conftest.er1
>conftest.err
19886 cat conftest.err
>&5
19887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19888 (exit $ac_status); } &&
19889 { ac_try
='test -z "$ac_c_werror_flag"
19890 || test ! -s conftest.err'
19891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19892 (eval $ac_try) 2>&5
19894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19895 (exit $ac_status); }; } &&
19896 { ac_try
='test -s conftest$ac_exeext'
19897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19898 (eval $ac_try) 2>&5
19900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19901 (exit $ac_status); }; }; then
19902 ac_cv_lib_readline_rl_completion_matches
=yes
19904 echo "$as_me: failed program was:" >&5
19905 sed 's/^/| /' conftest.
$ac_ext >&5
19907 ac_cv_lib_readline_rl_completion_matches
=no
19909 rm -f conftest.err conftest.
$ac_objext \
19910 conftest
$ac_exeext conftest.
$ac_ext
19911 LIBS
=$ac_check_lib_save_LIBS
19913 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
19914 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6
19915 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
19917 cat >>confdefs.h
<<\_ACEOF
19918 #define HAVE_RL_COMPLETION_MATCHES 1
19924 # also in readline 4.2
19925 cat >conftest.
$ac_ext <<_ACEOF
19928 cat confdefs.h
>>conftest.
$ac_ext
19929 cat >>conftest.
$ac_ext <<_ACEOF
19930 /* end confdefs.h. */
19931 #include <readline/readline.h>
19933 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19934 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19936 grep -v '^ *+' conftest.er1
>conftest.err
19938 cat conftest.err
>&5
19939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19940 (exit $ac_status); } >/dev
/null
; then
19941 if test -s conftest.err
; then
19942 ac_cpp_err
=$ac_c_preproc_warn_flag
19943 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19950 if test -z "$ac_cpp_err"; then
19953 echo "$as_me: failed program was:" >&5
19954 sed 's/^/| /' conftest.
$ac_ext >&5
19958 rm -f conftest.err conftest.
$ac_ext
19959 if test $have_readline = yes
19961 cat >conftest.
$ac_ext <<_ACEOF
19964 cat confdefs.h
>>conftest.
$ac_ext
19965 cat >>conftest.
$ac_ext <<_ACEOF
19966 /* end confdefs.h. */
19967 #include <readline/readline.h>
19970 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19971 $EGREP "extern int rl_catch_signals;" >/dev
/null
2>&1; then
19973 cat >>confdefs.h
<<\_ACEOF
19974 #define HAVE_RL_CATCH_SIGNAL 1
19982 echo "$as_me:$LINENO: checking for broken nice()" >&5
19983 echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6
19984 if test "${ac_cv_broken_nice+set}" = set; then
19985 echo $ECHO_N "(cached) $ECHO_C" >&6
19988 if test "$cross_compiling" = yes; then
19989 ac_cv_broken_nice
=no
19991 cat >conftest.
$ac_ext <<_ACEOF
19994 cat confdefs.h
>>conftest.
$ac_ext
19995 cat >>conftest.
$ac_ext <<_ACEOF
19996 /* end confdefs.h. */
20000 int val1 = nice(1);
20001 if (val1 != -1 && val1 == nice(2))
20007 rm -f conftest
$ac_exeext
20008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20009 (eval $ac_link) 2>&5
20011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20012 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20014 (eval $ac_try) 2>&5
20016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20017 (exit $ac_status); }; }; then
20018 ac_cv_broken_nice
=yes
20020 echo "$as_me: program exited with status $ac_status" >&5
20021 echo "$as_me: failed program was:" >&5
20022 sed 's/^/| /' conftest.
$ac_ext >&5
20024 ( exit $ac_status )
20025 ac_cv_broken_nice
=no
20027 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20031 echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
20032 echo "${ECHO_T}$ac_cv_broken_nice" >&6
20033 if test "$ac_cv_broken_nice" = yes
20036 cat >>confdefs.h
<<\_ACEOF
20037 #define HAVE_BROKEN_NICE 1
20042 echo "$as_me:$LINENO: checking for broken poll()" >&5
20043 echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6
20044 if test "$cross_compiling" = yes; then
20045 ac_cv_broken_poll
=no
20047 cat >conftest.
$ac_ext <<_ACEOF
20050 cat confdefs.h
>>conftest.
$ac_ext
20051 cat >>conftest.
$ac_ext <<_ACEOF
20052 /* end confdefs.h. */
20058 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
20062 int poll_test = poll (&poll_struct, 1, 0);
20068 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
20079 rm -f conftest
$ac_exeext
20080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20081 (eval $ac_link) 2>&5
20083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20084 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20086 (eval $ac_try) 2>&5
20088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20089 (exit $ac_status); }; }; then
20090 ac_cv_broken_poll
=yes
20092 echo "$as_me: program exited with status $ac_status" >&5
20093 echo "$as_me: failed program was:" >&5
20094 sed 's/^/| /' conftest.
$ac_ext >&5
20096 ( exit $ac_status )
20097 ac_cv_broken_poll
=no
20099 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20101 echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5
20102 echo "${ECHO_T}$ac_cv_broken_poll" >&6
20103 if test "$ac_cv_broken_poll" = yes
20106 cat >>confdefs.h
<<\_ACEOF
20107 #define HAVE_BROKEN_POLL 1
20112 # Before we can test tzset, we need to check if struct tm has a tm_zone
20113 # (which is not required by ISO C or UNIX spec) and/or if we support
20115 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
20116 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
20117 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
20118 echo $ECHO_N "(cached) $ECHO_C" >&6
20120 cat >conftest.
$ac_ext <<_ACEOF
20123 cat confdefs.h
>>conftest.
$ac_ext
20124 cat >>conftest.
$ac_ext <<_ACEOF
20125 /* end confdefs.h. */
20126 #include <sys/types.h>
20127 #include <$ac_cv_struct_tm>
20133 static struct tm ac_aggr;
20134 if (ac_aggr.tm_zone)
20140 rm -f conftest.
$ac_objext
20141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20142 (eval $ac_compile) 2>conftest.er1
20144 grep -v '^ *+' conftest.er1
>conftest.err
20146 cat conftest.err
>&5
20147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20148 (exit $ac_status); } &&
20149 { ac_try
='test -z "$ac_c_werror_flag"
20150 || test ! -s conftest.err'
20151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20152 (eval $ac_try) 2>&5
20154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20155 (exit $ac_status); }; } &&
20156 { ac_try
='test -s conftest.$ac_objext'
20157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20158 (eval $ac_try) 2>&5
20160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20161 (exit $ac_status); }; }; then
20162 ac_cv_member_struct_tm_tm_zone
=yes
20164 echo "$as_me: failed program was:" >&5
20165 sed 's/^/| /' conftest.
$ac_ext >&5
20167 cat >conftest.
$ac_ext <<_ACEOF
20170 cat confdefs.h
>>conftest.
$ac_ext
20171 cat >>conftest.
$ac_ext <<_ACEOF
20172 /* end confdefs.h. */
20173 #include <sys/types.h>
20174 #include <$ac_cv_struct_tm>
20180 static struct tm ac_aggr;
20181 if (sizeof ac_aggr.tm_zone)
20187 rm -f conftest.
$ac_objext
20188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20189 (eval $ac_compile) 2>conftest.er1
20191 grep -v '^ *+' conftest.er1
>conftest.err
20193 cat conftest.err
>&5
20194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20195 (exit $ac_status); } &&
20196 { ac_try
='test -z "$ac_c_werror_flag"
20197 || test ! -s conftest.err'
20198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20199 (eval $ac_try) 2>&5
20201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20202 (exit $ac_status); }; } &&
20203 { ac_try
='test -s conftest.$ac_objext'
20204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20205 (eval $ac_try) 2>&5
20207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20208 (exit $ac_status); }; }; then
20209 ac_cv_member_struct_tm_tm_zone
=yes
20211 echo "$as_me: failed program was:" >&5
20212 sed 's/^/| /' conftest.
$ac_ext >&5
20214 ac_cv_member_struct_tm_tm_zone
=no
20216 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20218 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20220 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
20221 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
20222 if test $ac_cv_member_struct_tm_tm_zone = yes; then
20224 cat >>confdefs.h
<<_ACEOF
20225 #define HAVE_STRUCT_TM_TM_ZONE 1
20231 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
20233 cat >>confdefs.h
<<\_ACEOF
20234 #define HAVE_TM_ZONE 1
20238 echo "$as_me:$LINENO: checking for tzname" >&5
20239 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
20240 if test "${ac_cv_var_tzname+set}" = set; then
20241 echo $ECHO_N "(cached) $ECHO_C" >&6
20243 cat >conftest.
$ac_ext <<_ACEOF
20246 cat confdefs.h
>>conftest.
$ac_ext
20247 cat >>conftest.
$ac_ext <<_ACEOF
20248 /* end confdefs.h. */
20250 #ifndef tzname /* For SGI. */
20251 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
20262 rm -f conftest.
$ac_objext conftest
$ac_exeext
20263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20264 (eval $ac_link) 2>conftest.er1
20266 grep -v '^ *+' conftest.er1
>conftest.err
20268 cat conftest.err
>&5
20269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20270 (exit $ac_status); } &&
20271 { ac_try
='test -z "$ac_c_werror_flag"
20272 || test ! -s conftest.err'
20273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20274 (eval $ac_try) 2>&5
20276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20277 (exit $ac_status); }; } &&
20278 { ac_try
='test -s conftest$ac_exeext'
20279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20280 (eval $ac_try) 2>&5
20282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20283 (exit $ac_status); }; }; then
20284 ac_cv_var_tzname
=yes
20286 echo "$as_me: failed program was:" >&5
20287 sed 's/^/| /' conftest.
$ac_ext >&5
20289 ac_cv_var_tzname
=no
20291 rm -f conftest.err conftest.
$ac_objext \
20292 conftest
$ac_exeext conftest.
$ac_ext
20294 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
20295 echo "${ECHO_T}$ac_cv_var_tzname" >&6
20296 if test $ac_cv_var_tzname = yes; then
20298 cat >>confdefs.h
<<\_ACEOF
20299 #define HAVE_TZNAME 1
20306 # check tzset(3) exists and works like we expect it to
20307 echo "$as_me:$LINENO: checking for working tzset()" >&5
20308 echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6
20309 if test "${ac_cv_working_tzset+set}" = set; then
20310 echo $ECHO_N "(cached) $ECHO_C" >&6
20313 if test "$cross_compiling" = yes; then
20314 ac_cv_working_tzset
=no
20316 cat >conftest.
$ac_ext <<_ACEOF
20319 cat confdefs.h
>>conftest.
$ac_ext
20320 cat >>conftest.
$ac_ext <<_ACEOF
20321 /* end confdefs.h. */
20323 #include <stdlib.h>
20325 #include <string.h>
20328 extern char *tzname[];
20333 /* Note that we need to ensure that not only does tzset(3)
20334 do 'something' with localtime, but it works as documented
20335 in the library reference and as expected by the test suite.
20336 This includes making sure that tzname is set properly if
20337 tm->tm_zone does not exist since it is the alternative way
20338 of getting timezone info.
20340 Red Hat 6.2 doesn't understand the southern hemisphere
20341 after New Year's Day.
20344 time_t groundhogday = 1044144000; /* GMT-based */
20345 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
20347 putenv("TZ=UTC+0");
20349 if (localtime(&groundhogday)->tm_hour != 0)
20352 /* For UTC, tzname[1] is sometimes "", sometimes " " */
20353 if (strcmp(tzname[0], "UTC") ||
20354 (tzname[1][0] != 0 && tzname[1][0] != ' '))
20358 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
20360 if (localtime(&groundhogday)->tm_hour != 19)
20363 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
20367 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
20369 if (localtime(&groundhogday)->tm_hour != 11)
20372 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
20376 #if HAVE_STRUCT_TM_TM_ZONE
20377 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
20379 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
20387 rm -f conftest
$ac_exeext
20388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20389 (eval $ac_link) 2>&5
20391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20392 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20394 (eval $ac_try) 2>&5
20396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20397 (exit $ac_status); }; }; then
20398 ac_cv_working_tzset
=yes
20400 echo "$as_me: program exited with status $ac_status" >&5
20401 echo "$as_me: failed program was:" >&5
20402 sed 's/^/| /' conftest.
$ac_ext >&5
20404 ( exit $ac_status )
20405 ac_cv_working_tzset
=no
20407 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20411 echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5
20412 echo "${ECHO_T}$ac_cv_working_tzset" >&6
20413 if test "$ac_cv_working_tzset" = yes
20416 cat >>confdefs.h
<<\_ACEOF
20417 #define HAVE_WORKING_TZSET 1
20422 # Look for subsecond timestamps in struct stat
20423 echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
20424 echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6
20425 if test "${ac_cv_stat_tv_nsec+set}" = set; then
20426 echo $ECHO_N "(cached) $ECHO_C" >&6
20428 cat >conftest.
$ac_ext <<_ACEOF
20431 cat confdefs.h
>>conftest.
$ac_ext
20432 cat >>conftest.
$ac_ext <<_ACEOF
20433 /* end confdefs.h. */
20434 #include <sys/stat.h>
20440 st.st_mtim.tv_nsec = 1;
20446 rm -f conftest.
$ac_objext
20447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20448 (eval $ac_compile) 2>conftest.er1
20450 grep -v '^ *+' conftest.er1
>conftest.err
20452 cat conftest.err
>&5
20453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20454 (exit $ac_status); } &&
20455 { ac_try
='test -z "$ac_c_werror_flag"
20456 || test ! -s conftest.err'
20457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20458 (eval $ac_try) 2>&5
20460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20461 (exit $ac_status); }; } &&
20462 { ac_try
='test -s conftest.$ac_objext'
20463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20464 (eval $ac_try) 2>&5
20466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20467 (exit $ac_status); }; }; then
20468 ac_cv_stat_tv_nsec
=yes
20470 echo "$as_me: failed program was:" >&5
20471 sed 's/^/| /' conftest.
$ac_ext >&5
20473 ac_cv_stat_tv_nsec
=no
20475 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20478 echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
20479 echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6
20480 if test "$ac_cv_stat_tv_nsec" = yes
20483 cat >>confdefs.h
<<\_ACEOF
20484 #define HAVE_STAT_TV_NSEC 1
20489 # Look for BSD style subsecond timestamps in struct stat
20490 echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5
20491 echo $ECHO_N "checking for tv_nsec2 in struct stat... $ECHO_C" >&6
20492 if test "${ac_cv_stat_tv_nsec2+set}" = set; then
20493 echo $ECHO_N "(cached) $ECHO_C" >&6
20495 cat >conftest.
$ac_ext <<_ACEOF
20498 cat confdefs.h
>>conftest.
$ac_ext
20499 cat >>conftest.
$ac_ext <<_ACEOF
20500 /* end confdefs.h. */
20501 #include <sys/stat.h>
20507 st.st_mtimespec.tv_nsec = 1;
20513 rm -f conftest.
$ac_objext
20514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20515 (eval $ac_compile) 2>conftest.er1
20517 grep -v '^ *+' conftest.er1
>conftest.err
20519 cat conftest.err
>&5
20520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20521 (exit $ac_status); } &&
20522 { ac_try
='test -z "$ac_c_werror_flag"
20523 || test ! -s conftest.err'
20524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20525 (eval $ac_try) 2>&5
20527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20528 (exit $ac_status); }; } &&
20529 { ac_try
='test -s conftest.$ac_objext'
20530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20531 (eval $ac_try) 2>&5
20533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20534 (exit $ac_status); }; }; then
20535 ac_cv_stat_tv_nsec2
=yes
20537 echo "$as_me: failed program was:" >&5
20538 sed 's/^/| /' conftest.
$ac_ext >&5
20540 ac_cv_stat_tv_nsec2
=no
20542 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20545 echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5
20546 echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6
20547 if test "$ac_cv_stat_tv_nsec2" = yes
20550 cat >>confdefs.h
<<\_ACEOF
20551 #define HAVE_STAT_TV_NSEC2 1
20556 # On HP/UX 11.0, mvwdelch is a block with a return statement
20557 echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
20558 echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6
20559 if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
20560 echo $ECHO_N "(cached) $ECHO_C" >&6
20562 cat >conftest.
$ac_ext <<_ACEOF
20565 cat confdefs.h
>>conftest.
$ac_ext
20566 cat >>conftest.
$ac_ext <<_ACEOF
20567 /* end confdefs.h. */
20568 #include <curses.h>
20574 rtn = mvwdelch(0,0,0);
20580 rm -f conftest.
$ac_objext
20581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20582 (eval $ac_compile) 2>conftest.er1
20584 grep -v '^ *+' conftest.er1
>conftest.err
20586 cat conftest.err
>&5
20587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20588 (exit $ac_status); } &&
20589 { ac_try
='test -z "$ac_c_werror_flag"
20590 || test ! -s conftest.err'
20591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20592 (eval $ac_try) 2>&5
20594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20595 (exit $ac_status); }; } &&
20596 { ac_try
='test -s conftest.$ac_objext'
20597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20598 (eval $ac_try) 2>&5
20600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20601 (exit $ac_status); }; }; then
20602 ac_cv_mvwdelch_is_expression
=yes
20604 echo "$as_me: failed program was:" >&5
20605 sed 's/^/| /' conftest.
$ac_ext >&5
20607 ac_cv_mvwdelch_is_expression
=no
20609 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20612 echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
20613 echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6
20615 if test "$ac_cv_mvwdelch_is_expression" = yes
20618 cat >>confdefs.h
<<\_ACEOF
20619 #define MVWDELCH_IS_EXPRESSION 1
20624 echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
20625 echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6
20626 if test "${ac_cv_window_has_flags+set}" = set; then
20627 echo $ECHO_N "(cached) $ECHO_C" >&6
20629 cat >conftest.
$ac_ext <<_ACEOF
20632 cat confdefs.h
>>conftest.
$ac_ext
20633 cat >>conftest.
$ac_ext <<_ACEOF
20634 /* end confdefs.h. */
20635 #include <curses.h>
20647 rm -f conftest.
$ac_objext
20648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20649 (eval $ac_compile) 2>conftest.er1
20651 grep -v '^ *+' conftest.er1
>conftest.err
20653 cat conftest.err
>&5
20654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20655 (exit $ac_status); } &&
20656 { ac_try
='test -z "$ac_c_werror_flag"
20657 || test ! -s conftest.err'
20658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20659 (eval $ac_try) 2>&5
20661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20662 (exit $ac_status); }; } &&
20663 { ac_try
='test -s conftest.$ac_objext'
20664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20665 (eval $ac_try) 2>&5
20667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20668 (exit $ac_status); }; }; then
20669 ac_cv_window_has_flags
=yes
20671 echo "$as_me: failed program was:" >&5
20672 sed 's/^/| /' conftest.
$ac_ext >&5
20674 ac_cv_window_has_flags
=no
20676 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20679 echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
20680 echo "${ECHO_T}$ac_cv_window_has_flags" >&6
20683 if test "$ac_cv_window_has_flags" = yes
20686 cat >>confdefs.h
<<\_ACEOF
20687 #define WINDOW_HAS_FLAGS 1
20692 echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
20693 echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6
20695 if test -e /dev
/ptmx
20697 echo "$as_me:$LINENO: result: yes" >&5
20698 echo "${ECHO_T}yes" >&6
20700 cat >>confdefs.h
<<\_ACEOF
20701 #define HAVE_DEV_PTMX 1
20705 echo "$as_me:$LINENO: result: no" >&5
20706 echo "${ECHO_T}no" >&6
20709 echo "$as_me:$LINENO: checking for /dev/ptc" >&5
20710 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6
20712 if test -e /dev
/ptc
20714 echo "$as_me:$LINENO: result: yes" >&5
20715 echo "${ECHO_T}yes" >&6
20717 cat >>confdefs.h
<<\_ACEOF
20718 #define HAVE_DEV_PTC 1
20722 echo "$as_me:$LINENO: result: no" >&5
20723 echo "${ECHO_T}no" >&6
20726 echo "$as_me:$LINENO: checking for socklen_t" >&5
20727 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
20728 if test "${ac_cv_type_socklen_t+set}" = set; then
20729 echo $ECHO_N "(cached) $ECHO_C" >&6
20731 cat >conftest.
$ac_ext <<_ACEOF
20734 cat confdefs.h
>>conftest.
$ac_ext
20735 cat >>conftest.
$ac_ext <<_ACEOF
20736 /* end confdefs.h. */
20738 #ifdef HAVE_SYS_TYPES_H
20739 #include <sys/types.h>
20741 #ifdef HAVE_SYS_SOCKET_H
20742 #include <sys/socket.h>
20749 if ((socklen_t *) 0)
20751 if (sizeof (socklen_t))
20757 rm -f conftest.
$ac_objext
20758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20759 (eval $ac_compile) 2>conftest.er1
20761 grep -v '^ *+' conftest.er1
>conftest.err
20763 cat conftest.err
>&5
20764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20765 (exit $ac_status); } &&
20766 { ac_try
='test -z "$ac_c_werror_flag"
20767 || test ! -s conftest.err'
20768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20769 (eval $ac_try) 2>&5
20771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20772 (exit $ac_status); }; } &&
20773 { ac_try
='test -s conftest.$ac_objext'
20774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20775 (eval $ac_try) 2>&5
20777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20778 (exit $ac_status); }; }; then
20779 ac_cv_type_socklen_t
=yes
20781 echo "$as_me: failed program was:" >&5
20782 sed 's/^/| /' conftest.
$ac_ext >&5
20784 ac_cv_type_socklen_t
=no
20786 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20788 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
20789 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
20790 if test $ac_cv_type_socklen_t = yes; then
20794 cat >>confdefs.h
<<\_ACEOF
20795 #define socklen_t int
20803 for h
in `(cd $srcdir;echo Python/thread_*.h)`
20805 THREADHEADERS
="$THREADHEADERS \$(srcdir)/$h"
20809 SRCDIRS
="Parser Grammar Objects Python Modules Mac Mac/Python"
20810 echo "$as_me:$LINENO: checking for build directories" >&5
20811 echo $ECHO_N "checking for build directories... $ECHO_C" >&6
20812 for dir
in $SRCDIRS; do
20813 if test ! -d $dir; then
20817 echo "$as_me:$LINENO: result: done" >&5
20818 echo "${ECHO_T}done" >&6
20820 # generate output files
20821 ac_config_files
="$ac_config_files Makefile.pre Modules/Setup.config"
20823 cat >confcache
<<\_ACEOF
20824 # This file is a shell script that caches the results of configure
20825 # tests run on this system so they can be shared between configure
20826 # scripts and configure runs, see configure's option --config-cache.
20827 # It is not useful on other systems. If it contains results you don't
20828 # want to keep, you may remove or edit it.
20830 # config.status only pays attention to the cache file if you give it
20831 # the --recheck option to rerun configure.
20833 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20834 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20835 # following values.
20839 # The following way of writing the cache mishandles newlines in values,
20840 # but we know of no workaround that is simple, portable, and efficient.
20841 # So, don't put newlines in cache variables' values.
20842 # Ultrix sh set writes to stderr and can't be redirected directly,
20843 # and sets the high bit in the cache file unless we assign to the vars.
20846 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20848 # `set' does not quote correctly, so add quotes (double-quote
20849 # substitution turns \\\\ into \\, and sed turns \\ into \).
20852 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20855 # `set' quotes correctly as required by POSIX, so do not add quotes.
20857 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20864 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20866 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20868 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
20869 if test -w $cache_file; then
20870 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20871 cat confcache
>$cache_file
20873 echo "not updating unwritable cache $cache_file"
20878 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
20879 # Let make expand exec_prefix.
20880 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
20882 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20883 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20884 # trailing colons and then remove the whole line if VPATH becomes empty
20885 # (actually we leave an empty line to preserve line numbers).
20886 if test "x$srcdir" = x.
; then
20887 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
20888 s/:*\$(srcdir):*/:/;
20889 s/:*\${srcdir}:*/:/;
20891 s/^\([^=]*=[ ]*\):*/\1/;
20897 DEFS
=-DHAVE_CONFIG_H
20901 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
20902 # 1. Remove the extension, and $U if already installed.
20903 ac_i
=`echo "$ac_i" |
20904 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20906 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
20907 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
20909 LIBOBJS
=$ac_libobjs
20911 LTLIBOBJS
=$ac_ltlibobjs
20915 : ${CONFIG_STATUS=./config.status}
20916 ac_clean_files_save
=$ac_clean_files
20917 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
20918 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20919 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20920 cat >$CONFIG_STATUS <<_ACEOF
20922 # Generated by $as_me.
20923 # Run this file to recreate the current configuration.
20924 # Compiler output produced by configure, useful for debugging
20925 # configure, is in config.log if it exists.
20928 ac_cs_recheck=false
20930 SHELL=\${CONFIG_SHELL-$SHELL}
20933 cat >>$CONFIG_STATUS <<\_ACEOF
20934 ## --------------------- ##
20935 ## M4sh Initialization. ##
20936 ## --------------------- ##
20938 # Be Bourne compatible
20939 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
20942 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20943 # is contrary to our usage. Disable this feature.
20944 alias -g '${1+"$@"}'='"$@"'
20945 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
20948 DUALCASE
=1; export DUALCASE
# for MKS sh
20950 # Support unset when possible.
20951 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
20958 # Work around bugs in pre-3.0 UWIN ksh.
20959 $as_unset ENV MAIL MAILPATH
20966 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20967 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20968 LC_TELEPHONE LC_TIME
20970 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20971 eval $as_var=C
; export $as_var
20977 # Required to use basename.
20978 if expr a
: '\(a\)' >/dev
/null
2>&1; then
20984 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
20985 as_basename
=basename
20991 # Name of the executable.
20992 as_me
=`$as_basename "$0" ||
20993 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20994 X"$0" : 'X\(//\)$' \| \
20995 X"$0" : 'X\(/\)$' \| \
20996 . : '\(.\)' 2>/dev/null ||
20998 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20999 /^X\/\(\/\/\)$/{ s//\1/; q; }
21000 /^X\/\(\/\).*/{ s//\1/; q; }
21004 # PATH needs CR, and LINENO needs CR and PATH.
21005 # Avoid depending upon Character Ranges.
21006 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
21007 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21008 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
21009 as_cr_digits
='0123456789'
21010 as_cr_alnum
=$as_cr_Letters$as_cr_digits
21012 # The user is always right.
21013 if test "${PATH_SEPARATOR+set}" != set; then
21014 echo "#! /bin/sh" >conf$$.sh
21015 echo "exit 0" >>conf$$.sh
21017 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
21026 as_lineno_1
=$LINENO
21027 as_lineno_2
=$LINENO
21028 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
21029 test "x$as_lineno_1" != "x$as_lineno_2" &&
21030 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
21031 # Find who we are. Look in the path if we contain no path at all
21034 *[\\/]* ) as_myself
=$0 ;;
21035 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21036 for as_dir
in $PATH
21039 test -z "$as_dir" && as_dir
=.
21040 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
21045 # We did not find ourselves, most probably we were run as `sh COMMAND'
21046 # in which case we are not to be found in the path.
21047 if test "x$as_myself" = x
; then
21050 if test ! -f "$as_myself"; then
21051 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21052 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21053 { (exit 1); exit 1; }; }
21055 case $CONFIG_SHELL in
21057 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21058 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
21061 test -z "$as_dir" && as_dir
=.
21062 for as_base
in sh bash ksh sh5
; do
21065 if ("$as_dir/$as_base" -c '
21066 as_lineno_1=$LINENO
21067 as_lineno_2=$LINENO
21068 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21069 test "x$as_lineno_1" != "x$as_lineno_2" &&
21070 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
21071 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
21072 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
21073 CONFIG_SHELL
=$as_dir/$as_base
21074 export CONFIG_SHELL
21075 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21083 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21084 # uniformly replaced by the line number. The first 'sed' inserts a
21085 # line-number line before each line; the second 'sed' does the real
21086 # work. The second script uses 'N' to pair each line-number line
21087 # with the numbered line, and appends trailing '-' during
21088 # substitution so that $LINENO is not a special case at line end.
21089 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21090 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
21091 sed '=' <$as_myself |
21096 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21099 s,^['$as_cr_digits']*\n,,
21100 ' >$as_me.lineno
&&
21101 chmod +x
$as_me.lineno ||
21102 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21103 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21104 { (exit 1); exit 1; }; }
21106 # Don't try to exec as it changes $[0], causing all sort of problems
21107 # (the dirname of $[0] is not the place where we might find the
21108 # original and so on. Autoconf is especially sensible to this).
21110 # Exit status is that of the last command.
21115 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21116 *c
*,-n*) ECHO_N
= ECHO_C
='
21118 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
21119 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
21122 if expr a
: '\(a\)' >/dev
/null
2>&1; then
21128 rm -f conf$$ conf$$.exe conf$$.
file
21130 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
21131 # We could just check for DJGPP; but this test a) works b) is more generic
21132 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21133 if test -f conf$$.exe
; then
21134 # Don't use ln at all; we don't have any links
21139 elif ln conf$$.
file conf$$
2>/dev
/null
; then
21144 rm -f conf$$ conf$$.exe conf$$.
file
21146 if mkdir
-p .
2>/dev
/null
; then
21149 test -d .
/-p && rmdir .
/-p
21153 as_executable_p
="test -f"
21155 # Sed expression to map a string onto a valid CPP name.
21156 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21158 # Sed expression to map a string onto a valid variable name.
21159 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21163 # We need space, tab and new line, in precisely that order.
21173 # Open the log real soon, to keep \$[0] and so on meaningful, and to
21174 # report actual input values of CONFIG_FILES etc. instead of their
21175 # values after options handling. Logging --version etc. is OK.
21179 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21180 ## Running $as_me. ##
21185 This file was extended by python $as_me 2.5, which was
21186 generated by GNU Autoconf 2.59. Invocation command line was
21188 CONFIG_FILES = $CONFIG_FILES
21189 CONFIG_HEADERS = $CONFIG_HEADERS
21190 CONFIG_LINKS = $CONFIG_LINKS
21191 CONFIG_COMMANDS = $CONFIG_COMMANDS
21195 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21199 # Files that config.status was made for.
21200 if test -n "$ac_config_files"; then
21201 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21204 if test -n "$ac_config_headers"; then
21205 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21208 if test -n "$ac_config_links"; then
21209 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21212 if test -n "$ac_config_commands"; then
21213 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21216 cat >>$CONFIG_STATUS <<\_ACEOF
21219 \`$as_me' instantiates files from templates according to the
21220 current configuration.
21222 Usage: $0 [OPTIONS] [FILE]...
21224 -h, --help print this help, then exit
21225 -V, --version print version number, then exit
21226 -q, --quiet do not print progress messages
21227 -d, --debug don't remove temporary files
21228 --recheck update $as_me by reconfiguring in the same conditions
21229 --file=FILE[:TEMPLATE]
21230 instantiate the configuration file FILE
21231 --header=FILE[:TEMPLATE]
21232 instantiate the configuration header FILE
21234 Configuration files:
21237 Configuration headers:
21240 Report bugs to <bug-autoconf@gnu.org>."
21243 cat >>$CONFIG_STATUS <<_ACEOF
21245 python config.status 2.5
21246 configured by $0, generated by GNU Autoconf 2.59,
21247 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21249 Copyright (C) 2003 Free Software Foundation, Inc.
21250 This config.status script is free software; the Free Software Foundation
21251 gives unlimited permission to copy, distribute and modify it."
21256 cat >>$CONFIG_STATUS <<\_ACEOF
21257 # If no file are specified by the user, then we need to provide default
21258 # value. By we need to know if files were specified by the user.
21264 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
21265 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
21273 *) # This is not an option, so the user has probably given explicit
21276 ac_need_defaults
=false
;;
21280 # Handling of the options.
21282 cat >>$CONFIG_STATUS <<\_ACEOF
21283 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
21285 --version |
--vers* |
-V )
21286 echo "$ac_cs_version"; exit 0 ;;
21288 # Conflict between --help and --header
21289 { { echo "$as_me:$LINENO: error: ambiguous option: $1
21290 Try \`$0 --help' for more information." >&5
21291 echo "$as_me: error: ambiguous option: $1
21292 Try \`$0 --help' for more information." >&2;}
21293 { (exit 1); exit 1; }; };;
21294 --help |
--hel |
-h )
21295 echo "$ac_cs_usage"; exit 0 ;;
21296 --debug |
--d* |
-d )
21298 --file |
--fil |
--fi |
--f )
21300 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
21301 ac_need_defaults
=false
;;
21302 --header |
--heade |
--head |
--hea )
21304 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
21305 ac_need_defaults
=false
;;
21306 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
21307 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
21310 # This is an error.
21311 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21312 Try \`$0 --help' for more information." >&5
21313 echo "$as_me: error: unrecognized option: $1
21314 Try \`$0 --help' for more information." >&2;}
21315 { (exit 1); exit 1; }; } ;;
21317 *) ac_config_targets
="$ac_config_targets $1" ;;
21323 ac_configure_extra_args
=
21325 if $ac_cs_silent; then
21327 ac_configure_extra_args
="$ac_configure_extra_args --silent"
21331 cat >>$CONFIG_STATUS <<_ACEOF
21332 if \$ac_cs_recheck; then
21333 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21334 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21343 cat >>$CONFIG_STATUS <<\_ACEOF
21344 for ac_config_target
in $ac_config_targets
21346 case "$ac_config_target" in
21347 # Handling of arguments.
21348 "Makefile.pre" ) CONFIG_FILES
="$CONFIG_FILES Makefile.pre" ;;
21349 "Modules/Setup.config" ) CONFIG_FILES
="$CONFIG_FILES Modules/Setup.config" ;;
21350 "pyconfig.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS pyconfig.h" ;;
21351 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21352 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21353 { (exit 1); exit 1; }; };;
21357 # If the user did not use the arguments to specify the items to instantiate,
21358 # then the envvar interface is used. Set only those that are not.
21359 # We use the long form for the default assignment because of an extremely
21360 # bizarre bug on SunOS 4.1.3.
21361 if $ac_need_defaults; then
21362 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
21363 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
21366 # Have a temporary directory for convenience. Make it in the build tree
21367 # simply because there is no reason to put it here, and in addition,
21368 # creating and moving files from /tmp can sometimes cause problems.
21369 # Create a temporary directory, and hook for its removal unless debugging.
21372 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21373 trap '{ (exit 1); exit 1; }' 1 2 13 15
21376 # Create a (secure) tmp directory for tmp files.
21379 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21380 test -n "$tmp" && test -d "$tmp"
21383 tmp
=.
/confstat$$
-$RANDOM
21384 (umask 077 && mkdir
$tmp)
21387 echo "$me: cannot create a temporary directory in ." >&2
21388 { (exit 1); exit 1; }
21393 cat >>$CONFIG_STATUS <<_ACEOF
21396 # CONFIG_FILES section.
21399 # No need to generate the scripts if there are no CONFIG_FILES.
21400 # This happens for instance when ./config.status config.h
21401 if test -n "\$CONFIG_FILES"; then
21402 # Protect against being on the right side of a sed subst in config.status.
21403 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21404 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21405 s,@SHELL@,$SHELL,;t t
21406 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21407 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21408 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21409 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21410 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21411 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21412 s,@exec_prefix@,$exec_prefix,;t t
21413 s,@prefix@,$prefix,;t t
21414 s,@program_transform_name@,$program_transform_name,;t t
21415 s,@bindir@,$bindir,;t t
21416 s,@sbindir@,$sbindir,;t t
21417 s,@libexecdir@,$libexecdir,;t t
21418 s,@datadir@,$datadir,;t t
21419 s,@sysconfdir@,$sysconfdir,;t t
21420 s,@sharedstatedir@,$sharedstatedir,;t t
21421 s,@localstatedir@,$localstatedir,;t t
21422 s,@libdir@,$libdir,;t t
21423 s,@includedir@,$includedir,;t t
21424 s,@oldincludedir@,$oldincludedir,;t t
21425 s,@infodir@,$infodir,;t t
21426 s,@mandir@,$mandir,;t t
21427 s,@build_alias@,$build_alias,;t t
21428 s,@host_alias@,$host_alias,;t t
21429 s,@target_alias@,$target_alias,;t t
21430 s,@DEFS@,$DEFS,;t t
21431 s,@ECHO_C@,$ECHO_C,;t t
21432 s,@ECHO_N@,$ECHO_N,;t t
21433 s,@ECHO_T@,$ECHO_T,;t t
21434 s,@LIBS@,$LIBS,;t t
21435 s,@VERSION@,$VERSION,;t t
21436 s,@SOVERSION@,$SOVERSION,;t t
21437 s,@CONFIG_ARGS@,$CONFIG_ARGS,;t t
21438 s,@PYTHONFRAMEWORK@,$PYTHONFRAMEWORK,;t t
21439 s,@PYTHONFRAMEWORKDIR@,$PYTHONFRAMEWORKDIR,;t t
21440 s,@PYTHONFRAMEWORKPREFIX@,$PYTHONFRAMEWORKPREFIX,;t t
21441 s,@PYTHONFRAMEWORKINSTALLDIR@,$PYTHONFRAMEWORKINSTALLDIR,;t t
21442 s,@MACHDEP@,$MACHDEP,;t t
21443 s,@SGI_ABI@,$SGI_ABI,;t t
21444 s,@EXTRAPLATDIR@,$EXTRAPLATDIR,;t t
21445 s,@EXTRAMACHDEPPATH@,$EXTRAMACHDEPPATH,;t t
21446 s,@CONFIGURE_MACOSX_DEPLOYMENT_TARGET@,$CONFIGURE_MACOSX_DEPLOYMENT_TARGET,;t t
21448 s,@MAINOBJ@,$MAINOBJ,;t t
21449 s,@EXEEXT@,$EXEEXT,;t t
21451 s,@CFLAGS@,$CFLAGS,;t t
21452 s,@LDFLAGS@,$LDFLAGS,;t t
21453 s,@CPPFLAGS@,$CPPFLAGS,;t t
21454 s,@ac_ct_CC@,$ac_ct_CC,;t t
21455 s,@OBJEXT@,$OBJEXT,;t t
21457 s,@EGREP@,$EGREP,;t t
21458 s,@BUILDEXEEXT@,$BUILDEXEEXT,;t t
21459 s,@LIBRARY@,$LIBRARY,;t t
21460 s,@LDLIBRARY@,$LDLIBRARY,;t t
21461 s,@DLLLIBRARY@,$DLLLIBRARY,;t t
21462 s,@BLDLIBRARY@,$BLDLIBRARY,;t t
21463 s,@LDLIBRARYDIR@,$LDLIBRARYDIR,;t t
21464 s,@INSTSONAME@,$INSTSONAME,;t t
21465 s,@RUNSHARED@,$RUNSHARED,;t t
21466 s,@LINKCC@,$LINKCC,;t t
21467 s,@RANLIB@,$RANLIB,;t t
21468 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21470 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21471 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21472 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21475 s,@BASECFLAGS@,$BASECFLAGS,;t t
21476 s,@OTHER_LIBTOOL_OPT@,$OTHER_LIBTOOL_OPT,;t t
21477 s,@LIBTOOL_CRUFT@,$LIBTOOL_CRUFT,;t t
21479 s,@LDSHARED@,$LDSHARED,;t t
21480 s,@BLDSHARED@,$BLDSHARED,;t t
21481 s,@CCSHARED@,$CCSHARED,;t t
21482 s,@LINKFORSHARED@,$LINKFORSHARED,;t t
21483 s,@CFLAGSFORSHARED@,$CFLAGSFORSHARED,;t t
21484 s,@SHLIBS@,$SHLIBS,;t t
21485 s,@USE_SIGNAL_MODULE@,$USE_SIGNAL_MODULE,;t t
21486 s,@SIGNAL_OBJS@,$SIGNAL_OBJS,;t t
21487 s,@USE_THREAD_MODULE@,$USE_THREAD_MODULE,;t t
21488 s,@LDLAST@,$LDLAST,;t t
21489 s,@THREADOBJ@,$THREADOBJ,;t t
21490 s,@DLINCLDIR@,$DLINCLDIR,;t t
21491 s,@DYNLOADFILE@,$DYNLOADFILE,;t t
21492 s,@MACHDEP_OBJS@,$MACHDEP_OBJS,;t t
21493 s,@TRUE@,$TRUE,;t t
21494 s,@LIBOBJS@,$LIBOBJS,;t t
21495 s,@HAVE_GETHOSTBYNAME_R_6_ARG@,$HAVE_GETHOSTBYNAME_R_6_ARG,;t t
21496 s,@HAVE_GETHOSTBYNAME_R_5_ARG@,$HAVE_GETHOSTBYNAME_R_5_ARG,;t t
21497 s,@HAVE_GETHOSTBYNAME_R_3_ARG@,$HAVE_GETHOSTBYNAME_R_3_ARG,;t t
21498 s,@HAVE_GETHOSTBYNAME_R@,$HAVE_GETHOSTBYNAME_R,;t t
21499 s,@HAVE_GETHOSTBYNAME@,$HAVE_GETHOSTBYNAME,;t t
21500 s,@LIBM@,$LIBM,;t t
21501 s,@LIBC@,$LIBC,;t t
21502 s,@UNICODE_OBJS@,$UNICODE_OBJS,;t t
21503 s,@THREADHEADERS@,$THREADHEADERS,;t t
21504 s,@SRCDIRS@,$SRCDIRS,;t t
21505 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21510 cat >>$CONFIG_STATUS <<\_ACEOF
21511 # Split the substitutions into bite-sized pieces for seds with
21512 # small command number limits, like on Digital OSF/1 and HP-UX.
21513 ac_max_sed_lines
=48
21514 ac_sed_frag
=1 # Number of current file.
21515 ac_beg
=1 # First line for current file.
21516 ac_end
=$ac_max_sed_lines # Line after last line for current file.
21519 while $ac_more_lines; do
21520 if test $ac_beg -gt 1; then
21521 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
21523 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
21525 if test ! -s $tmp/subs.frag
; then
21526 ac_more_lines
=false
21528 # The purpose of the label and of the branching condition is to
21529 # speed up the sed processing (if there are no `@' at all, there
21530 # is no need to browse any of the substitutions).
21531 # These are the two extra sed commands mentioned above.
21533 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
21534 if test -z "$ac_sed_cmds"; then
21535 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
21537 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21539 ac_sed_frag
=`expr $ac_sed_frag + 1`
21541 ac_end
=`expr $ac_end + $ac_max_sed_lines`
21544 if test -z "$ac_sed_cmds"; then
21547 fi # test -n "$CONFIG_FILES"
21550 cat >>$CONFIG_STATUS <<\_ACEOF
21551 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
21552 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21554 - |
*:- |
*:-:* ) # input from stdin
21556 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
21557 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
21558 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
21559 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
21560 * ) ac_file_in
=$ac_file.
in ;;
21563 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21564 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
21565 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21566 X"$ac_file" : 'X\(//\)[^/]' \| \
21567 X"$ac_file" : 'X\(//\)$' \| \
21568 X"$ac_file" : 'X\(/\)' \| \
21569 . : '\(.\)' 2>/dev/null ||
21571 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21572 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21573 /^X\(\/\/\)$/{ s//\1/; q; }
21574 /^X\(\/\).*/{ s//\1/; q; }
21576 { if $as_mkdir_p; then
21581 while test ! -d "$as_dir"; do
21582 as_dirs
="$as_dir $as_dirs"
21583 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
21584 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21585 X"$as_dir" : 'X\(//\)[^/]' \| \
21586 X"$as_dir" : 'X\(//\)$' \| \
21587 X"$as_dir" : 'X\(/\)' \| \
21588 . : '\(.\)' 2>/dev/null ||
21590 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21591 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21592 /^X\(\/\/\)$/{ s//\1/; q; }
21593 /^X\(\/\).*/{ s//\1/; q; }
21596 test ! -n "$as_dirs" || mkdir
$as_dirs
21597 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21598 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21599 { (exit 1); exit 1; }; }; }
21603 if test "$ac_dir" != .
; then
21604 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21605 # A "../" for each directory in $ac_dir_suffix.
21606 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21608 ac_dir_suffix
= ac_top_builddir
=
21612 .
) # No --srcdir option. We are building in place.
21614 if test -z "$ac_top_builddir"; then
21617 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
21619 [\\/]* | ?
:[\\/]* ) # Absolute path.
21620 ac_srcdir
=$srcdir$ac_dir_suffix;
21621 ac_top_srcdir
=$srcdir ;;
21622 *) # Relative path.
21623 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
21624 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
21627 # Do not use `cd foo && pwd` to compute absolute paths, because
21628 # the directories may not exist.
21630 .
) ac_abs_builddir
="$ac_dir";;
21633 .
) ac_abs_builddir
=`pwd`;;
21634 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
21635 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
21638 case $ac_abs_builddir in
21639 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
21641 case ${ac_top_builddir}.
in
21642 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
21643 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
21644 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
21647 case $ac_abs_builddir in
21648 .
) ac_abs_srcdir
=$ac_srcdir;;
21651 .
) ac_abs_srcdir
=$ac_abs_builddir;;
21652 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
21653 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
21656 case $ac_abs_builddir in
21657 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
21659 case $ac_top_srcdir in
21660 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
21661 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
21662 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
21668 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
21669 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
21672 if test x
"$ac_file" != x-
; then
21673 { echo "$as_me:$LINENO: creating $ac_file" >&5
21674 echo "$as_me: creating $ac_file" >&6;}
21677 # Let's still pretend it is `configure' which instantiates (i.e., don't
21678 # use $as_me), people would be surprised to read:
21679 # /* config.h. Generated by config.status. */
21680 if test x
"$ac_file" = x-
; then
21683 configure_input
="$ac_file. "
21685 configure_input
=$configure_input"Generated from `echo $ac_file_in |
21686 sed 's,.*/,,'` by configure."
21688 # First look for the input files in the build tree, otherwise in the
21690 ac_file_inputs
=`IFS=:
21691 for f in $ac_file_in; do
21693 -) echo $tmp/stdin ;;
21695 # Absolute (can't be DOS-style, as IFS=:)
21696 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21697 echo "$as_me: error: cannot find input file: $f" >&2;}
21698 { (exit 1); exit 1; }; }
21701 if test -f "$f"; then
21704 elif test -f "$srcdir/$f"; then
21709 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21710 echo "$as_me: error: cannot find input file: $f" >&2;}
21711 { (exit 1); exit 1; }; }
21714 done` ||
{ (exit 1); exit 1; }
21716 cat >>$CONFIG_STATUS <<_ACEOF
21720 cat >>$CONFIG_STATUS <<\_ACEOF
21722 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
21723 s
,@configure_input@
,$configure_input,;t t
21724 s
,@srcdir@
,$ac_srcdir,;t t
21725 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
21726 s
,@top_srcdir@
,$ac_top_srcdir,;t t
21727 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
21728 s
,@builddir@
,$ac_builddir,;t t
21729 s
,@abs_builddir@
,$ac_abs_builddir,;t t
21730 s
,@top_builddir@
,$ac_top_builddir,;t t
21731 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
21732 s
,@INSTALL@
,$ac_INSTALL,;t t
21733 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21735 if test x"$ac_file" != x-; then
21736 mv $tmp/out $ac_file
21744 cat >>$CONFIG_STATUS <<\_ACEOF
21747 # CONFIG_HEADER section.
21750 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
21751 # NAME is the cpp macro being defined and VALUE is the value it is being given.
21753 # ac_d sets the value in "#define NAME VALUE" lines.
21754 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
21755 ac_dB
='[ ].*$,\1#\2'
21758 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21759 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21760 ac_uB
='$,\1#\2define\3'
21764 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
21765 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21767 - |
*:- |
*:-:* ) # input from stdin
21769 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
21770 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
21771 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
21772 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
21773 * ) ac_file_in
=$ac_file.
in ;;
21776 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
21777 echo "$as_me: creating $ac_file" >&6;}
21779 # First look for the input files in the build tree, otherwise in the
21781 ac_file_inputs
=`IFS=:
21782 for f in $ac_file_in; do
21784 -) echo $tmp/stdin ;;
21786 # Absolute (can't be DOS-style, as IFS=:)
21787 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21788 echo "$as_me: error: cannot find input file: $f" >&2;}
21789 { (exit 1); exit 1; }; }
21790 # Do quote $f, to prevent DOS paths from being IFS'd.
21793 if test -f "$f"; then
21796 elif test -f "$srcdir/$f"; then
21801 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21802 echo "$as_me: error: cannot find input file: $f" >&2;}
21803 { (exit 1); exit 1; }; }
21806 done` ||
{ (exit 1); exit 1; }
21807 # Remove the trailing spaces.
21808 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
21812 # Transform confdefs.h into two sed scripts, `conftest.defines' and
21813 # `conftest.undefs', that substitutes the proper values into
21814 # config.h.in to produce config.h. The first handles `#define'
21815 # templates, and the second `#undef' templates.
21816 # And first: Protect against being on the right side of a sed subst in
21817 # config.status. Protect against being in an unquoted here document
21818 # in config.status.
21819 rm -f conftest.defines conftest.undefs
21820 # Using a here document instead of a string reduces the quoting nightmare.
21821 # Putting comments in sed scripts is not portable.
21823 # `end' is used to avoid that the second main sed command (meant for
21824 # 0-ary CPP macros) applies to n-ary macro definitions.
21825 # See the Autoconf documentation for `clear'.
21826 cat >confdef2sed.
sed <<\_ACEOF
21831 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
21833 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
21836 # If some macros were called several times there might be several times
21837 # the same #defines, which is useless. Nevertheless, we may not want to
21838 # sort them, since we want the *last* AC-DEFINE to be honored.
21839 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21840 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21841 rm -f confdef2sed.sed
21843 # This sed command replaces #undef with comments. This is necessary, for
21844 # example, in the case of _POSIX_SOURCE, which is predefined and required
21845 # on some systems where configure will not decide to define it.
21846 cat >>conftest.undefs <<\_ACEOF
21847 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
21850 # Break up conftest.defines because some shells have a limit on the size
21851 # of here documents, and old seds have small limits too (100 cmds).
21852 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
21853 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
21854 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21855 echo ' :' >>$CONFIG_STATUS
21856 rm -f conftest.tail
21857 while grep . conftest.defines >/dev/null
21859 # Write a limited-size here document to $tmp/defines.sed.
21860 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21861 # Speed up: don't consider the non `#define' lines.
21862 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
21863 # Work around the forget-to-reset-the-flag bug.
21864 echo 't clr' >>$CONFIG_STATUS
21865 echo ': clr' >>$CONFIG_STATUS
21866 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
21868 sed -f $tmp/defines.sed $tmp/in >$tmp/out
21870 mv $tmp/out $tmp/in
21872 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
21873 rm -f conftest.defines
21874 mv conftest.
tail conftest.defines
21876 rm -f conftest.defines
21877 echo ' fi # grep' >>$CONFIG_STATUS
21878 echo >>$CONFIG_STATUS
21880 # Break up conftest.undefs because some shells have a limit on the size
21881 # of here documents, and old seds have small limits too (100 cmds).
21882 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
21883 rm -f conftest.
tail
21884 while grep . conftest.undefs
>/dev
/null
21886 # Write a limited-size here document to $tmp/undefs.sed.
21887 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21888 # Speed up: don't consider the non
`#undef'
21889 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
21890 # Work around the forget-to-reset-the-flag bug.
21891 echo 't clr' >>$CONFIG_STATUS
21892 echo ': clr' >>$CONFIG_STATUS
21893 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21895 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21897 mv $tmp/out $tmp/in
21899 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21900 rm -f conftest.undefs
21901 mv conftest.tail conftest.undefs
21903 rm -f conftest.undefs
21905 cat >>$CONFIG_STATUS <<\_ACEOF
21906 # Let's still pretend it is `configure
' which instantiates (i.e., don't
21907 # use $as_me), people would be surprised to read:
21908 # /* config.h. Generated by config.status. */
21909 if test x
"$ac_file" = x-
; then
21910 echo "/* Generated by configure. */" >$tmp/config.h
21912 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
21914 cat $tmp/in >>$tmp/config.h
21916 if test x
"$ac_file" != x-
; then
21917 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
21918 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21919 echo "$as_me: $ac_file is unchanged" >&6;}
21921 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
21922 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21923 X"$ac_file" : 'X\(//\)[^/]' \| \
21924 X"$ac_file" : 'X\(//\)$' \| \
21925 X"$ac_file" : 'X\(/\)' \| \
21926 . : '\(.\)' 2>/dev/null ||
21928 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21929 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21930 /^X\(\/\/\)$/{ s//\1/; q; }
21931 /^X\(\/\).*/{ s//\1/; q; }
21933 { if $as_mkdir_p; then
21938 while test ! -d "$as_dir"; do
21939 as_dirs
="$as_dir $as_dirs"
21940 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
21941 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21942 X"$as_dir" : 'X\(//\)[^/]' \| \
21943 X"$as_dir" : 'X\(//\)$' \| \
21944 X"$as_dir" : 'X\(/\)' \| \
21945 . : '\(.\)' 2>/dev/null ||
21947 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21948 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21949 /^X\(\/\/\)$/{ s//\1/; q; }
21950 /^X\(\/\).*/{ s//\1/; q; }
21953 test ! -n "$as_dirs" || mkdir
$as_dirs
21954 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21955 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21956 { (exit 1); exit 1; }; }; }
21959 mv $tmp/config.h
$ac_file
21963 rm -f $tmp/config.h
21968 cat >>$CONFIG_STATUS <<\_ACEOF
21970 { (exit 0); exit 0; }
21972 chmod +x
$CONFIG_STATUS
21973 ac_clean_files
=$ac_clean_files_save
21976 # configure is writing to config.log, and then calls config.status.
21977 # config.status does its own redirection, appending to config.log.
21978 # Unfortunately, on DOS this fails, as config.log is still kept open
21979 # by configure, so config.status won't be able to write to it; its
21980 # output is simply discarded. So we exec the FD to /dev/null,
21981 # effectively closing config.log, so it can be properly (re)opened and
21982 # appended to by config.status. When coming back to configure, we
21983 # need to make the FD available again.
21984 if test "$no_create" != yes; then
21986 ac_config_status_args
=
21987 test "$silent" = yes &&
21988 ac_config_status_args
="$ac_config_status_args --quiet"
21990 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
21992 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21993 # would make configure fail if this is the last instruction.
21994 $ac_cs_success ||
{ (exit 1); exit 1; }
21998 echo "creating Setup"
21999 if test ! -f Modules
/Setup
22001 cp $srcdir/Modules
/Setup.dist Modules
/Setup
22004 echo "creating Setup.local"
22005 if test ! -f Modules
/Setup.
local
22007 echo "# Edit this file for local setup changes" >Modules
/Setup.
local
22010 echo "creating Makefile"
22011 $SHELL $srcdir/Modules
/makesetup
-c $srcdir/Modules
/config.c.
in \
22012 -s Modules Modules
/Setup.config \
22013 Modules
/Setup.
local Modules
/Setup
22014 mv config.c Modules