Issue #6236, #6348: Fix various failures in the io module under AIX
[python.git] / configure
blobaeae2e74c31910f4a209dbc494436d9844500d51
1 #! /bin/sh
2 # From configure.in Revision: 74715 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for python 2.7.
6 # Report bugs to <http://bugs.python.org/>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 emulate sh
20 NULLCMD=:
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
24 setopt NO_GLOB_SUBST
25 else
26 case `(set -o) 2>/dev/null` in
27 *posix*) set -o posix ;;
28 esac
35 # PATH needs CR
36 # Avoid depending upon Character Ranges.
37 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40 as_cr_digits='0123456789'
41 as_cr_alnum=$as_cr_Letters$as_cr_digits
43 # The user is always right.
44 if test "${PATH_SEPARATOR+set}" != set; then
45 echo "#! /bin/sh" >conf$$.sh
46 echo "exit 0" >>conf$$.sh
47 chmod +x conf$$.sh
48 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49 PATH_SEPARATOR=';'
50 else
51 PATH_SEPARATOR=:
53 rm -f conf$$.sh
56 # Support unset when possible.
57 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
58 as_unset=unset
59 else
60 as_unset=false
64 # IFS
65 # We need space, tab and new line, in precisely that order. Quoting is
66 # there to prevent editors from complaining about space-tab.
67 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
68 # splitting by setting IFS to empty value.)
69 as_nl='
71 IFS=" "" $as_nl"
73 # Find who we are. Look in the path if we contain no directory separator.
74 case $0 in
75 *[\\/]* ) as_myself=$0 ;;
76 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 for as_dir in $PATH
79 IFS=$as_save_IFS
80 test -z "$as_dir" && as_dir=.
81 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
82 done
83 IFS=$as_save_IFS
86 esac
87 # We did not find ourselves, most probably we were run as `sh COMMAND'
88 # in which case we are not to be found in the path.
89 if test "x$as_myself" = x; then
90 as_myself=$0
92 if test ! -f "$as_myself"; then
93 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 { (exit 1); exit 1; }
97 # Work around bugs in pre-3.0 UWIN ksh.
98 for as_var in ENV MAIL MAILPATH
99 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
100 done
101 PS1='$ '
102 PS2='> '
103 PS4='+ '
105 # NLS nuisances.
106 for as_var in \
107 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
108 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
109 LC_TELEPHONE LC_TIME
111 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
112 eval $as_var=C; export $as_var
113 else
114 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
116 done
118 # Required to use basename.
119 if expr a : '\(a\)' >/dev/null 2>&1 &&
120 test "X`expr 00001 : '.*\(...\)'`" = X001; then
121 as_expr=expr
122 else
123 as_expr=false
126 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
127 as_basename=basename
128 else
129 as_basename=false
133 # Name of the executable.
134 as_me=`$as_basename -- "$0" ||
135 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
136 X"$0" : 'X\(//\)$' \| \
137 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138 echo X/"$0" |
139 sed '/^.*\/\([^/][^/]*\)\/*$/{
140 s//\1/
143 /^X\/\(\/\/\)$/{
144 s//\1/
147 /^X\/\(\/\).*/{
148 s//\1/
151 s/.*/./; q'`
153 # CDPATH.
154 $as_unset CDPATH
157 if test "x$CONFIG_SHELL" = x; then
158 if (eval ":") 2>/dev/null; then
159 as_have_required=yes
160 else
161 as_have_required=no
164 if test $as_have_required = yes && (eval ":
165 (as_func_return () {
166 (exit \$1)
168 as_func_success () {
169 as_func_return 0
171 as_func_failure () {
172 as_func_return 1
174 as_func_ret_success () {
175 return 0
177 as_func_ret_failure () {
178 return 1
181 exitcode=0
182 if as_func_success; then
184 else
185 exitcode=1
186 echo as_func_success failed.
189 if as_func_failure; then
190 exitcode=1
191 echo as_func_failure succeeded.
194 if as_func_ret_success; then
196 else
197 exitcode=1
198 echo as_func_ret_success failed.
201 if as_func_ret_failure; then
202 exitcode=1
203 echo as_func_ret_failure succeeded.
206 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
208 else
209 exitcode=1
210 echo positional parameters were not saved.
213 test \$exitcode = 0) || { (exit 1); exit 1; }
216 as_lineno_1=\$LINENO
217 as_lineno_2=\$LINENO
218 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
219 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
220 ") 2> /dev/null; then
222 else
223 as_candidate_shells=
224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
225 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
227 IFS=$as_save_IFS
228 test -z "$as_dir" && as_dir=.
229 case $as_dir in
231 for as_base in sh bash ksh sh5; do
232 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
233 done;;
234 esac
235 done
236 IFS=$as_save_IFS
239 for as_shell in $as_candidate_shells $SHELL; do
240 # Try only shells that exist, to save several forks.
241 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
242 { ("$as_shell") 2> /dev/null <<\_ASEOF
243 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244 emulate sh
245 NULLCMD=:
246 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
247 # is contrary to our usage. Disable this feature.
248 alias -g '${1+"$@"}'='"$@"'
249 setopt NO_GLOB_SUBST
250 else
251 case `(set -o) 2>/dev/null` in
252 *posix*) set -o posix ;;
253 esac
259 _ASEOF
260 }; then
261 CONFIG_SHELL=$as_shell
262 as_have_required=yes
263 if { "$as_shell" 2> /dev/null <<\_ASEOF
264 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
265 emulate sh
266 NULLCMD=:
267 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
268 # is contrary to our usage. Disable this feature.
269 alias -g '${1+"$@"}'='"$@"'
270 setopt NO_GLOB_SUBST
271 else
272 case `(set -o) 2>/dev/null` in
273 *posix*) set -o posix ;;
274 esac
280 (as_func_return () {
281 (exit $1)
283 as_func_success () {
284 as_func_return 0
286 as_func_failure () {
287 as_func_return 1
289 as_func_ret_success () {
290 return 0
292 as_func_ret_failure () {
293 return 1
296 exitcode=0
297 if as_func_success; then
299 else
300 exitcode=1
301 echo as_func_success failed.
304 if as_func_failure; then
305 exitcode=1
306 echo as_func_failure succeeded.
309 if as_func_ret_success; then
311 else
312 exitcode=1
313 echo as_func_ret_success failed.
316 if as_func_ret_failure; then
317 exitcode=1
318 echo as_func_ret_failure succeeded.
321 if ( set x; as_func_ret_success y && test x = "$1" ); then
323 else
324 exitcode=1
325 echo positional parameters were not saved.
328 test $exitcode = 0) || { (exit 1); exit 1; }
331 as_lineno_1=$LINENO
332 as_lineno_2=$LINENO
333 test "x$as_lineno_1" != "x$as_lineno_2" &&
334 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
336 _ASEOF
337 }; then
338 break
343 done
345 if test "x$CONFIG_SHELL" != x; then
346 for as_var in BASH_ENV ENV
347 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
348 done
349 export CONFIG_SHELL
350 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
354 if test $as_have_required = no; then
355 echo This script requires a shell more modern than all the
356 echo shells that I found on your system. Please install a
357 echo modern shell, or manually run the script under such a
358 echo shell if you do have one.
359 { (exit 1); exit 1; }
369 (eval "as_func_return () {
370 (exit \$1)
372 as_func_success () {
373 as_func_return 0
375 as_func_failure () {
376 as_func_return 1
378 as_func_ret_success () {
379 return 0
381 as_func_ret_failure () {
382 return 1
385 exitcode=0
386 if as_func_success; then
388 else
389 exitcode=1
390 echo as_func_success failed.
393 if as_func_failure; then
394 exitcode=1
395 echo as_func_failure succeeded.
398 if as_func_ret_success; then
400 else
401 exitcode=1
402 echo as_func_ret_success failed.
405 if as_func_ret_failure; then
406 exitcode=1
407 echo as_func_ret_failure succeeded.
410 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
412 else
413 exitcode=1
414 echo positional parameters were not saved.
417 test \$exitcode = 0") || {
418 echo No shell found that supports shell functions.
419 echo Please tell autoconf@gnu.org about your system,
420 echo including any error possibly output before this
421 echo message
426 as_lineno_1=$LINENO
427 as_lineno_2=$LINENO
428 test "x$as_lineno_1" != "x$as_lineno_2" &&
429 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
431 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
432 # uniformly replaced by the line number. The first 'sed' inserts a
433 # line-number line after each line using $LINENO; the second 'sed'
434 # does the real work. The second script uses 'N' to pair each
435 # line-number line with the line containing $LINENO, and appends
436 # trailing '-' during substitution so that $LINENO is not a special
437 # case at line end.
438 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
439 # scripts with optimization help from Paolo Bonzini. Blame Lee
440 # E. McMahon (1931-1989) for sed's syntax. :-)
441 sed -n '
443 /[$]LINENO/=
444 ' <$as_myself |
445 sed '
446 s/[$]LINENO.*/&-/
447 t lineno
449 :lineno
451 :loop
452 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 t loop
454 s/-\n.*//
455 ' >$as_me.lineno &&
456 chmod +x "$as_me.lineno" ||
457 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
458 { (exit 1); exit 1; }; }
460 # Don't try to exec as it changes $[0], causing all sort of problems
461 # (the dirname of $[0] is not the place where we might find the
462 # original and so on. Autoconf is especially sensitive to this).
463 . "./$as_me.lineno"
464 # Exit status is that of the last command.
465 exit
469 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470 as_dirname=dirname
471 else
472 as_dirname=false
475 ECHO_C= ECHO_N= ECHO_T=
476 case `echo -n x` in
477 -n*)
478 case `echo 'x\c'` in
479 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
480 *) ECHO_C='\c';;
481 esac;;
483 ECHO_N='-n';;
484 esac
486 if expr a : '\(a\)' >/dev/null 2>&1 &&
487 test "X`expr 00001 : '.*\(...\)'`" = X001; then
488 as_expr=expr
489 else
490 as_expr=false
493 rm -f conf$$ conf$$.exe conf$$.file
494 if test -d conf$$.dir; then
495 rm -f conf$$.dir/conf$$.file
496 else
497 rm -f conf$$.dir
498 mkdir conf$$.dir
500 echo >conf$$.file
501 if ln -s conf$$.file conf$$ 2>/dev/null; then
502 as_ln_s='ln -s'
503 # ... but there are two gotchas:
504 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
505 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
506 # In both cases, we have to default to `cp -p'.
507 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508 as_ln_s='cp -p'
509 elif ln conf$$.file conf$$ 2>/dev/null; then
510 as_ln_s=ln
511 else
512 as_ln_s='cp -p'
514 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
515 rmdir conf$$.dir 2>/dev/null
517 if mkdir -p . 2>/dev/null; then
518 as_mkdir_p=:
519 else
520 test -d ./-p && rmdir ./-p
521 as_mkdir_p=false
524 if test -x / >/dev/null 2>&1; then
525 as_test_x='test -x'
526 else
527 if ls -dL / >/dev/null 2>&1; then
528 as_ls_L_option=L
529 else
530 as_ls_L_option=
532 as_test_x='
533 eval sh -c '\''
534 if test -d "$1"; then
535 test -d "$1/.";
536 else
537 case $1 in
538 -*)set "./$1";;
539 esac;
540 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
541 ???[sx]*):;;*)false;;esac;fi
542 '\'' sh
545 as_executable_p=$as_test_x
547 # Sed expression to map a string onto a valid CPP name.
548 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
550 # Sed expression to map a string onto a valid variable name.
551 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555 exec 7<&0 </dev/null 6>&1
557 # Name of the host.
558 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
559 # so uname gets run too.
560 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
563 # Initializations.
565 ac_default_prefix=/usr/local
566 ac_clean_files=
567 ac_config_libobj_dir=.
568 LIBOBJS=
569 cross_compiling=no
570 subdirs=
571 MFLAGS=
572 MAKEFLAGS=
573 SHELL=${CONFIG_SHELL-/bin/sh}
575 # Identity of this package.
576 PACKAGE_NAME='python'
577 PACKAGE_TARNAME='python'
578 PACKAGE_VERSION='2.7'
579 PACKAGE_STRING='python 2.7'
580 PACKAGE_BUGREPORT='http://bugs.python.org/'
582 ac_unique_file="Include/object.h"
583 # Factoring default headers for most tests.
584 ac_includes_default="\
585 #include <stdio.h>
586 #ifdef HAVE_SYS_TYPES_H
587 # include <sys/types.h>
588 #endif
589 #ifdef HAVE_SYS_STAT_H
590 # include <sys/stat.h>
591 #endif
592 #ifdef STDC_HEADERS
593 # include <stdlib.h>
594 # include <stddef.h>
595 #else
596 # ifdef HAVE_STDLIB_H
597 # include <stdlib.h>
598 # endif
599 #endif
600 #ifdef HAVE_STRING_H
601 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
602 # include <memory.h>
603 # endif
604 # include <string.h>
605 #endif
606 #ifdef HAVE_STRINGS_H
607 # include <strings.h>
608 #endif
609 #ifdef HAVE_INTTYPES_H
610 # include <inttypes.h>
611 #endif
612 #ifdef HAVE_STDINT_H
613 # include <stdint.h>
614 #endif
615 #ifdef HAVE_UNISTD_H
616 # include <unistd.h>
617 #endif"
619 ac_subst_vars='SHELL
620 PATH_SEPARATOR
621 PACKAGE_NAME
622 PACKAGE_TARNAME
623 PACKAGE_VERSION
624 PACKAGE_STRING
625 PACKAGE_BUGREPORT
626 exec_prefix
627 prefix
628 program_transform_name
629 bindir
630 sbindir
631 libexecdir
632 datarootdir
633 datadir
634 sysconfdir
635 sharedstatedir
636 localstatedir
637 includedir
638 oldincludedir
639 docdir
640 infodir
641 htmldir
642 dvidir
643 pdfdir
644 psdir
645 libdir
646 localedir
647 mandir
648 DEFS
649 ECHO_C
650 ECHO_N
651 ECHO_T
652 LIBS
653 build_alias
654 host_alias
655 target_alias
656 VERSION
657 SOVERSION
658 CONFIG_ARGS
659 UNIVERSALSDK
660 ARCH_RUN_32BIT
661 PYTHONFRAMEWORK
662 PYTHONFRAMEWORKIDENTIFIER
663 PYTHONFRAMEWORKDIR
664 PYTHONFRAMEWORKPREFIX
665 PYTHONFRAMEWORKINSTALLDIR
666 FRAMEWORKINSTALLFIRST
667 FRAMEWORKINSTALLLAST
668 FRAMEWORKALTINSTALLFIRST
669 FRAMEWORKALTINSTALLLAST
670 FRAMEWORKUNIXTOOLSPREFIX
671 MACHDEP
672 SGI_ABI
673 EXTRAPLATDIR
674 EXTRAMACHDEPPATH
675 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
676 EXPORT_MACOSX_DEPLOYMENT_TARGET
678 CFLAGS
679 LDFLAGS
680 CPPFLAGS
681 ac_ct_CC
682 EXEEXT
683 OBJEXT
685 MAINCC
687 GREP
688 EGREP
689 BUILDEXEEXT
690 LIBRARY
691 LDLIBRARY
692 DLLLIBRARY
693 BLDLIBRARY
694 LDLIBRARYDIR
695 INSTSONAME
696 RUNSHARED
697 LINKCC
698 GNULD
699 RANLIB
701 ARFLAGS
702 SVNVERSION
703 INSTALL_PROGRAM
704 INSTALL_SCRIPT
705 INSTALL_DATA
708 BASECFLAGS
709 UNIVERSAL_ARCH_FLAGS
710 OTHER_LIBTOOL_OPT
711 LIBTOOL_CRUFT
713 LDSHARED
714 BLDSHARED
715 CCSHARED
716 LINKFORSHARED
717 CFLAGSFORSHARED
718 SHLIBS
719 USE_SIGNAL_MODULE
720 SIGNAL_OBJS
721 USE_THREAD_MODULE
722 LDLAST
723 THREADOBJ
724 DLINCLDIR
725 DYNLOADFILE
726 MACHDEP_OBJS
727 TRUE
728 LIBOBJS
729 HAVE_GETHOSTBYNAME_R_6_ARG
730 HAVE_GETHOSTBYNAME_R_5_ARG
731 HAVE_GETHOSTBYNAME_R_3_ARG
732 HAVE_GETHOSTBYNAME_R
733 HAVE_GETHOSTBYNAME
734 LIBM
735 LIBC
736 UNICODE_OBJS
737 THREADHEADERS
738 SRCDIRS
739 LTLIBOBJS'
740 ac_subst_files=''
741 ac_precious_vars='build_alias
742 host_alias
743 target_alias
745 CFLAGS
746 LDFLAGS
747 LIBS
748 CPPFLAGS
749 CPP'
752 # Initialize some variables set by options.
753 ac_init_help=
754 ac_init_version=false
755 # The variables have the same names as the options, with
756 # dashes changed to underlines.
757 cache_file=/dev/null
758 exec_prefix=NONE
759 no_create=
760 no_recursion=
761 prefix=NONE
762 program_prefix=NONE
763 program_suffix=NONE
764 program_transform_name=s,x,x,
765 silent=
766 site=
767 srcdir=
768 verbose=
769 x_includes=NONE
770 x_libraries=NONE
772 # Installation directory options.
773 # These are left unexpanded so users can "make install exec_prefix=/foo"
774 # and all the variables that are supposed to be based on exec_prefix
775 # by default will actually change.
776 # Use braces instead of parens because sh, perl, etc. also accept them.
777 # (The list follows the same order as the GNU Coding Standards.)
778 bindir='${exec_prefix}/bin'
779 sbindir='${exec_prefix}/sbin'
780 libexecdir='${exec_prefix}/libexec'
781 datarootdir='${prefix}/share'
782 datadir='${datarootdir}'
783 sysconfdir='${prefix}/etc'
784 sharedstatedir='${prefix}/com'
785 localstatedir='${prefix}/var'
786 includedir='${prefix}/include'
787 oldincludedir='/usr/include'
788 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
789 infodir='${datarootdir}/info'
790 htmldir='${docdir}'
791 dvidir='${docdir}'
792 pdfdir='${docdir}'
793 psdir='${docdir}'
794 libdir='${exec_prefix}/lib'
795 localedir='${datarootdir}/locale'
796 mandir='${datarootdir}/man'
798 ac_prev=
799 ac_dashdash=
800 for ac_option
802 # If the previous option needs an argument, assign it.
803 if test -n "$ac_prev"; then
804 eval $ac_prev=\$ac_option
805 ac_prev=
806 continue
809 case $ac_option in
810 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
811 *) ac_optarg=yes ;;
812 esac
814 # Accept the important Cygnus configure options, so we can diagnose typos.
816 case $ac_dashdash$ac_option in
818 ac_dashdash=yes ;;
820 -bindir | --bindir | --bindi | --bind | --bin | --bi)
821 ac_prev=bindir ;;
822 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
823 bindir=$ac_optarg ;;
825 -build | --build | --buil | --bui | --bu)
826 ac_prev=build_alias ;;
827 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
828 build_alias=$ac_optarg ;;
830 -cache-file | --cache-file | --cache-fil | --cache-fi \
831 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
832 ac_prev=cache_file ;;
833 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
834 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
835 cache_file=$ac_optarg ;;
837 --config-cache | -C)
838 cache_file=config.cache ;;
840 -datadir | --datadir | --datadi | --datad)
841 ac_prev=datadir ;;
842 -datadir=* | --datadir=* | --datadi=* | --datad=*)
843 datadir=$ac_optarg ;;
845 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
846 | --dataroo | --dataro | --datar)
847 ac_prev=datarootdir ;;
848 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
849 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
850 datarootdir=$ac_optarg ;;
852 -disable-* | --disable-*)
853 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
854 # Reject names that are not valid shell variable names.
855 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
856 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
857 { (exit 1); exit 1; }; }
858 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
859 eval enable_$ac_feature=no ;;
861 -docdir | --docdir | --docdi | --doc | --do)
862 ac_prev=docdir ;;
863 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
864 docdir=$ac_optarg ;;
866 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
867 ac_prev=dvidir ;;
868 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
869 dvidir=$ac_optarg ;;
871 -enable-* | --enable-*)
872 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
873 # Reject names that are not valid shell variable names.
874 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
875 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
876 { (exit 1); exit 1; }; }
877 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
878 eval enable_$ac_feature=\$ac_optarg ;;
880 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
881 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
882 | --exec | --exe | --ex)
883 ac_prev=exec_prefix ;;
884 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
885 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
886 | --exec=* | --exe=* | --ex=*)
887 exec_prefix=$ac_optarg ;;
889 -gas | --gas | --ga | --g)
890 # Obsolete; use --with-gas.
891 with_gas=yes ;;
893 -help | --help | --hel | --he | -h)
894 ac_init_help=long ;;
895 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
896 ac_init_help=recursive ;;
897 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
898 ac_init_help=short ;;
900 -host | --host | --hos | --ho)
901 ac_prev=host_alias ;;
902 -host=* | --host=* | --hos=* | --ho=*)
903 host_alias=$ac_optarg ;;
905 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
906 ac_prev=htmldir ;;
907 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
908 | --ht=*)
909 htmldir=$ac_optarg ;;
911 -includedir | --includedir | --includedi | --included | --include \
912 | --includ | --inclu | --incl | --inc)
913 ac_prev=includedir ;;
914 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
915 | --includ=* | --inclu=* | --incl=* | --inc=*)
916 includedir=$ac_optarg ;;
918 -infodir | --infodir | --infodi | --infod | --info | --inf)
919 ac_prev=infodir ;;
920 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
921 infodir=$ac_optarg ;;
923 -libdir | --libdir | --libdi | --libd)
924 ac_prev=libdir ;;
925 -libdir=* | --libdir=* | --libdi=* | --libd=*)
926 libdir=$ac_optarg ;;
928 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
929 | --libexe | --libex | --libe)
930 ac_prev=libexecdir ;;
931 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
932 | --libexe=* | --libex=* | --libe=*)
933 libexecdir=$ac_optarg ;;
935 -localedir | --localedir | --localedi | --localed | --locale)
936 ac_prev=localedir ;;
937 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
938 localedir=$ac_optarg ;;
940 -localstatedir | --localstatedir | --localstatedi | --localstated \
941 | --localstate | --localstat | --localsta | --localst | --locals)
942 ac_prev=localstatedir ;;
943 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
944 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
945 localstatedir=$ac_optarg ;;
947 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
948 ac_prev=mandir ;;
949 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
950 mandir=$ac_optarg ;;
952 -nfp | --nfp | --nf)
953 # Obsolete; use --without-fp.
954 with_fp=no ;;
956 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
957 | --no-cr | --no-c | -n)
958 no_create=yes ;;
960 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
961 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
962 no_recursion=yes ;;
964 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
965 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
966 | --oldin | --oldi | --old | --ol | --o)
967 ac_prev=oldincludedir ;;
968 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
969 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
970 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
971 oldincludedir=$ac_optarg ;;
973 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
974 ac_prev=prefix ;;
975 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
976 prefix=$ac_optarg ;;
978 -program-prefix | --program-prefix | --program-prefi | --program-pref \
979 | --program-pre | --program-pr | --program-p)
980 ac_prev=program_prefix ;;
981 -program-prefix=* | --program-prefix=* | --program-prefi=* \
982 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
983 program_prefix=$ac_optarg ;;
985 -program-suffix | --program-suffix | --program-suffi | --program-suff \
986 | --program-suf | --program-su | --program-s)
987 ac_prev=program_suffix ;;
988 -program-suffix=* | --program-suffix=* | --program-suffi=* \
989 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
990 program_suffix=$ac_optarg ;;
992 -program-transform-name | --program-transform-name \
993 | --program-transform-nam | --program-transform-na \
994 | --program-transform-n | --program-transform- \
995 | --program-transform | --program-transfor \
996 | --program-transfo | --program-transf \
997 | --program-trans | --program-tran \
998 | --progr-tra | --program-tr | --program-t)
999 ac_prev=program_transform_name ;;
1000 -program-transform-name=* | --program-transform-name=* \
1001 | --program-transform-nam=* | --program-transform-na=* \
1002 | --program-transform-n=* | --program-transform-=* \
1003 | --program-transform=* | --program-transfor=* \
1004 | --program-transfo=* | --program-transf=* \
1005 | --program-trans=* | --program-tran=* \
1006 | --progr-tra=* | --program-tr=* | --program-t=*)
1007 program_transform_name=$ac_optarg ;;
1009 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1010 ac_prev=pdfdir ;;
1011 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1012 pdfdir=$ac_optarg ;;
1014 -psdir | --psdir | --psdi | --psd | --ps)
1015 ac_prev=psdir ;;
1016 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1017 psdir=$ac_optarg ;;
1019 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1020 | -silent | --silent | --silen | --sile | --sil)
1021 silent=yes ;;
1023 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1024 ac_prev=sbindir ;;
1025 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1026 | --sbi=* | --sb=*)
1027 sbindir=$ac_optarg ;;
1029 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1030 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1031 | --sharedst | --shareds | --shared | --share | --shar \
1032 | --sha | --sh)
1033 ac_prev=sharedstatedir ;;
1034 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1035 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1036 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1037 | --sha=* | --sh=*)
1038 sharedstatedir=$ac_optarg ;;
1040 -site | --site | --sit)
1041 ac_prev=site ;;
1042 -site=* | --site=* | --sit=*)
1043 site=$ac_optarg ;;
1045 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1046 ac_prev=srcdir ;;
1047 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1048 srcdir=$ac_optarg ;;
1050 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1051 | --syscon | --sysco | --sysc | --sys | --sy)
1052 ac_prev=sysconfdir ;;
1053 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1054 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1055 sysconfdir=$ac_optarg ;;
1057 -target | --target | --targe | --targ | --tar | --ta | --t)
1058 ac_prev=target_alias ;;
1059 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1060 target_alias=$ac_optarg ;;
1062 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1063 verbose=yes ;;
1065 -version | --version | --versio | --versi | --vers | -V)
1066 ac_init_version=: ;;
1068 -with-* | --with-*)
1069 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1070 # Reject names that are not valid shell variable names.
1071 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1072 { echo "$as_me: error: invalid package name: $ac_package" >&2
1073 { (exit 1); exit 1; }; }
1074 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1075 eval with_$ac_package=\$ac_optarg ;;
1077 -without-* | --without-*)
1078 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1079 # Reject names that are not valid shell variable names.
1080 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1081 { echo "$as_me: error: invalid package name: $ac_package" >&2
1082 { (exit 1); exit 1; }; }
1083 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1084 eval with_$ac_package=no ;;
1086 --x)
1087 # Obsolete; use --with-x.
1088 with_x=yes ;;
1090 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1091 | --x-incl | --x-inc | --x-in | --x-i)
1092 ac_prev=x_includes ;;
1093 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1094 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1095 x_includes=$ac_optarg ;;
1097 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1098 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1099 ac_prev=x_libraries ;;
1100 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1101 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1102 x_libraries=$ac_optarg ;;
1104 -*) { echo "$as_me: error: unrecognized option: $ac_option
1105 Try \`$0 --help' for more information." >&2
1106 { (exit 1); exit 1; }; }
1109 *=*)
1110 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1111 # Reject names that are not valid shell variable names.
1112 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1113 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1114 { (exit 1); exit 1; }; }
1115 eval $ac_envvar=\$ac_optarg
1116 export $ac_envvar ;;
1119 # FIXME: should be removed in autoconf 3.0.
1120 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1121 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1122 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1123 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1126 esac
1127 done
1129 if test -n "$ac_prev"; then
1130 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1131 { echo "$as_me: error: missing argument to $ac_option" >&2
1132 { (exit 1); exit 1; }; }
1135 # Be sure to have absolute directory names.
1136 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1137 datadir sysconfdir sharedstatedir localstatedir includedir \
1138 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1139 libdir localedir mandir
1141 eval ac_val=\$$ac_var
1142 case $ac_val in
1143 [\\/$]* | ?:[\\/]* ) continue;;
1144 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1145 esac
1146 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1147 { (exit 1); exit 1; }; }
1148 done
1150 # There might be people who depend on the old broken behavior: `$host'
1151 # used to hold the argument of --host etc.
1152 # FIXME: To remove some day.
1153 build=$build_alias
1154 host=$host_alias
1155 target=$target_alias
1157 # FIXME: To remove some day.
1158 if test "x$host_alias" != x; then
1159 if test "x$build_alias" = x; then
1160 cross_compiling=maybe
1161 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1162 If a cross compiler is detected then cross compile mode will be used." >&2
1163 elif test "x$build_alias" != "x$host_alias"; then
1164 cross_compiling=yes
1168 ac_tool_prefix=
1169 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1171 test "$silent" = yes && exec 6>/dev/null
1174 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1175 ac_ls_di=`ls -di .` &&
1176 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1177 { echo "$as_me: error: Working directory cannot be determined" >&2
1178 { (exit 1); exit 1; }; }
1179 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1180 { echo "$as_me: error: pwd does not report name of working directory" >&2
1181 { (exit 1); exit 1; }; }
1184 # Find the source files, if location was not specified.
1185 if test -z "$srcdir"; then
1186 ac_srcdir_defaulted=yes
1187 # Try the directory containing this script, then the parent directory.
1188 ac_confdir=`$as_dirname -- "$0" ||
1189 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1190 X"$0" : 'X\(//\)[^/]' \| \
1191 X"$0" : 'X\(//\)$' \| \
1192 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1193 echo X"$0" |
1194 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1195 s//\1/
1198 /^X\(\/\/\)[^/].*/{
1199 s//\1/
1202 /^X\(\/\/\)$/{
1203 s//\1/
1206 /^X\(\/\).*/{
1207 s//\1/
1210 s/.*/./; q'`
1211 srcdir=$ac_confdir
1212 if test ! -r "$srcdir/$ac_unique_file"; then
1213 srcdir=..
1215 else
1216 ac_srcdir_defaulted=no
1218 if test ! -r "$srcdir/$ac_unique_file"; then
1219 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1220 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1221 { (exit 1); exit 1; }; }
1223 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1224 ac_abs_confdir=`(
1225 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1226 { (exit 1); exit 1; }; }
1227 pwd)`
1228 # When building in place, set srcdir=.
1229 if test "$ac_abs_confdir" = "$ac_pwd"; then
1230 srcdir=.
1232 # Remove unnecessary trailing slashes from srcdir.
1233 # Double slashes in file names in object file debugging info
1234 # mess up M-x gdb in Emacs.
1235 case $srcdir in
1236 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1237 esac
1238 for ac_var in $ac_precious_vars; do
1239 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1240 eval ac_env_${ac_var}_value=\$${ac_var}
1241 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1242 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1243 done
1246 # Report the --help message.
1248 if test "$ac_init_help" = "long"; then
1249 # Omit some internal or obsolete options to make the list less imposing.
1250 # This message is too long to be a string in the A/UX 3.1 sh.
1251 cat <<_ACEOF
1252 \`configure' configures python 2.7 to adapt to many kinds of systems.
1254 Usage: $0 [OPTION]... [VAR=VALUE]...
1256 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1257 VAR=VALUE. See below for descriptions of some of the useful variables.
1259 Defaults for the options are specified in brackets.
1261 Configuration:
1262 -h, --help display this help and exit
1263 --help=short display options specific to this package
1264 --help=recursive display the short help of all the included packages
1265 -V, --version display version information and exit
1266 -q, --quiet, --silent do not print \`checking...' messages
1267 --cache-file=FILE cache test results in FILE [disabled]
1268 -C, --config-cache alias for \`--cache-file=config.cache'
1269 -n, --no-create do not create output files
1270 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1272 Installation directories:
1273 --prefix=PREFIX install architecture-independent files in PREFIX
1274 [$ac_default_prefix]
1275 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1276 [PREFIX]
1278 By default, \`make install' will install all the files in
1279 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1280 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1281 for instance \`--prefix=\$HOME'.
1283 For better control, use the options below.
1285 Fine tuning of the installation directories:
1286 --bindir=DIR user executables [EPREFIX/bin]
1287 --sbindir=DIR system admin executables [EPREFIX/sbin]
1288 --libexecdir=DIR program executables [EPREFIX/libexec]
1289 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1290 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1291 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1292 --libdir=DIR object code libraries [EPREFIX/lib]
1293 --includedir=DIR C header files [PREFIX/include]
1294 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1295 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1296 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1297 --infodir=DIR info documentation [DATAROOTDIR/info]
1298 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1299 --mandir=DIR man documentation [DATAROOTDIR/man]
1300 --docdir=DIR documentation root [DATAROOTDIR/doc/python]
1301 --htmldir=DIR html documentation [DOCDIR]
1302 --dvidir=DIR dvi documentation [DOCDIR]
1303 --pdfdir=DIR pdf documentation [DOCDIR]
1304 --psdir=DIR ps documentation [DOCDIR]
1305 _ACEOF
1307 cat <<\_ACEOF
1308 _ACEOF
1311 if test -n "$ac_init_help"; then
1312 case $ac_init_help in
1313 short | recursive ) echo "Configuration of python 2.7:";;
1314 esac
1315 cat <<\_ACEOF
1317 Optional Features:
1318 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1319 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1320 --enable-universalsdk[=SDKDIR]
1321 Build against Mac OS X 10.4u SDK (ppc/i386)
1322 --enable-framework[=INSTALLDIR]
1323 Build (MacOSX|Darwin) framework
1324 --enable-shared disable/enable building shared python library
1325 --enable-profiling enable C-level code profiling
1326 --enable-toolbox-glue disable/enable MacOSX glue code for extensions
1327 --enable-ipv6 Enable ipv6 (with ipv4) support
1328 --disable-ipv6 Disable ipv6 support
1329 --enable-big-digits[=BITS]
1330 use big digits for Python longs [BITS=30]
1331 --enable-unicode[=ucs[24]]
1332 Enable Unicode strings (default is yes)
1334 Optional Packages:
1335 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1336 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1337 --with-universal-archs=ARCH
1338 select architectures for universal build ("32-bit",
1339 "64-bit", "3-way", "intel" or "all")
1340 --with-framework-name=FRAMEWORK
1341 specify an alternate name of the framework built
1342 with --enable-framework
1343 --without-gcc never use gcc
1344 --with-cxx-main=<compiler>
1345 compile main() and link python executable with C++
1346 compiler
1347 --with-suffix=.exe set executable suffix
1348 --with-pydebug build with Py_DEBUG defined
1349 --with-libs='lib1 ...' link against additional libs
1350 --with-system-ffi build _ctypes module using an installed ffi library
1351 --with-dbmliborder=db1:db2:...
1352 order to check db backends for dbm. Valid value is a
1353 colon separated string with the backend names
1354 `ndbm', `gdbm' and `bdb'.
1355 --with-signal-module disable/enable signal module
1356 --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries
1357 --with(out)-threads[=DIRECTORY]
1358 disable/enable thread support
1359 --with(out)-thread[=DIRECTORY]
1360 deprecated; use --with(out)-threads
1361 --with-pth use GNU pth threading libraries
1362 --with(out)-doc-strings disable/enable documentation strings
1363 --with(out)-tsc enable/disable timestamp counter profile
1364 --with(out)-pymalloc disable/enable specialized mallocs
1365 --with-wctype-functions use wctype.h functions
1366 --with-fpectl enable SIGFPE catching
1367 --with-libm=STRING math library
1368 --with-libc=STRING C library
1370 Some influential environment variables:
1371 CC C compiler command
1372 CFLAGS C compiler flags
1373 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1374 nonstandard directory <lib dir>
1375 LIBS libraries to pass to the linker, e.g. -l<library>
1376 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1377 you have headers in a nonstandard directory <include dir>
1378 CPP C preprocessor
1380 Use these variables to override the choices made by `configure' or to help
1381 it to find libraries and programs with nonstandard names/locations.
1383 Report bugs to <http://bugs.python.org/>.
1384 _ACEOF
1385 ac_status=$?
1388 if test "$ac_init_help" = "recursive"; then
1389 # If there are subdirs, report their specific --help.
1390 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1391 test -d "$ac_dir" || continue
1392 ac_builddir=.
1394 case "$ac_dir" in
1395 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1397 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1398 # A ".." for each directory in $ac_dir_suffix.
1399 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1400 case $ac_top_builddir_sub in
1401 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1402 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1403 esac ;;
1404 esac
1405 ac_abs_top_builddir=$ac_pwd
1406 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1407 # for backward compatibility:
1408 ac_top_builddir=$ac_top_build_prefix
1410 case $srcdir in
1411 .) # We are building in place.
1412 ac_srcdir=.
1413 ac_top_srcdir=$ac_top_builddir_sub
1414 ac_abs_top_srcdir=$ac_pwd ;;
1415 [\\/]* | ?:[\\/]* ) # Absolute name.
1416 ac_srcdir=$srcdir$ac_dir_suffix;
1417 ac_top_srcdir=$srcdir
1418 ac_abs_top_srcdir=$srcdir ;;
1419 *) # Relative name.
1420 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1421 ac_top_srcdir=$ac_top_build_prefix$srcdir
1422 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1423 esac
1424 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1426 cd "$ac_dir" || { ac_status=$?; continue; }
1427 # Check for guested configure.
1428 if test -f "$ac_srcdir/configure.gnu"; then
1429 echo &&
1430 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1431 elif test -f "$ac_srcdir/configure"; then
1432 echo &&
1433 $SHELL "$ac_srcdir/configure" --help=recursive
1434 else
1435 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1436 fi || ac_status=$?
1437 cd "$ac_pwd" || { ac_status=$?; break; }
1438 done
1441 test -n "$ac_init_help" && exit $ac_status
1442 if $ac_init_version; then
1443 cat <<\_ACEOF
1444 python configure 2.7
1445 generated by GNU Autoconf 2.61
1447 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1448 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1449 This configure script is free software; the Free Software Foundation
1450 gives unlimited permission to copy, distribute and modify it.
1451 _ACEOF
1452 exit
1454 cat >config.log <<_ACEOF
1455 This file contains any messages produced by compilers while
1456 running configure, to aid debugging if configure makes a mistake.
1458 It was created by python $as_me 2.7, which was
1459 generated by GNU Autoconf 2.61. Invocation command line was
1461 $ $0 $@
1463 _ACEOF
1464 exec 5>>config.log
1466 cat <<_ASUNAME
1467 ## --------- ##
1468 ## Platform. ##
1469 ## --------- ##
1471 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1472 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1473 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1474 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1475 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1477 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1478 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1480 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1481 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1482 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1483 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1484 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1485 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1486 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1488 _ASUNAME
1490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1491 for as_dir in $PATH
1493 IFS=$as_save_IFS
1494 test -z "$as_dir" && as_dir=.
1495 echo "PATH: $as_dir"
1496 done
1497 IFS=$as_save_IFS
1499 } >&5
1501 cat >&5 <<_ACEOF
1504 ## ----------- ##
1505 ## Core tests. ##
1506 ## ----------- ##
1508 _ACEOF
1511 # Keep a trace of the command line.
1512 # Strip out --no-create and --no-recursion so they do not pile up.
1513 # Strip out --silent because we don't want to record it for future runs.
1514 # Also quote any args containing shell meta-characters.
1515 # Make two passes to allow for proper duplicate-argument suppression.
1516 ac_configure_args=
1517 ac_configure_args0=
1518 ac_configure_args1=
1519 ac_must_keep_next=false
1520 for ac_pass in 1 2
1522 for ac_arg
1524 case $ac_arg in
1525 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1526 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1527 | -silent | --silent | --silen | --sile | --sil)
1528 continue ;;
1529 *\'*)
1530 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1531 esac
1532 case $ac_pass in
1533 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1535 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1536 if test $ac_must_keep_next = true; then
1537 ac_must_keep_next=false # Got value, back to normal.
1538 else
1539 case $ac_arg in
1540 *=* | --config-cache | -C | -disable-* | --disable-* \
1541 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1542 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1543 | -with-* | --with-* | -without-* | --without-* | --x)
1544 case "$ac_configure_args0 " in
1545 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1546 esac
1548 -* ) ac_must_keep_next=true ;;
1549 esac
1551 ac_configure_args="$ac_configure_args '$ac_arg'"
1553 esac
1554 done
1555 done
1556 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1557 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1559 # When interrupted or exit'd, cleanup temporary files, and complete
1560 # config.log. We remove comments because anyway the quotes in there
1561 # would cause problems or look ugly.
1562 # WARNING: Use '\'' to represent an apostrophe within the trap.
1563 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1564 trap 'exit_status=$?
1565 # Save into config.log some information that might help in debugging.
1567 echo
1569 cat <<\_ASBOX
1570 ## ---------------- ##
1571 ## Cache variables. ##
1572 ## ---------------- ##
1573 _ASBOX
1574 echo
1575 # The following way of writing the cache mishandles newlines in values,
1577 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1578 eval ac_val=\$$ac_var
1579 case $ac_val in #(
1580 *${as_nl}*)
1581 case $ac_var in #(
1582 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1583 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1584 esac
1585 case $ac_var in #(
1586 _ | IFS | as_nl) ;; #(
1587 *) $as_unset $ac_var ;;
1588 esac ;;
1589 esac
1590 done
1591 (set) 2>&1 |
1592 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1593 *${as_nl}ac_space=\ *)
1594 sed -n \
1595 "s/'\''/'\''\\\\'\'''\''/g;
1596 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1597 ;; #(
1599 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1601 esac |
1602 sort
1604 echo
1606 cat <<\_ASBOX
1607 ## ----------------- ##
1608 ## Output variables. ##
1609 ## ----------------- ##
1610 _ASBOX
1611 echo
1612 for ac_var in $ac_subst_vars
1614 eval ac_val=\$$ac_var
1615 case $ac_val in
1616 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1617 esac
1618 echo "$ac_var='\''$ac_val'\''"
1619 done | sort
1620 echo
1622 if test -n "$ac_subst_files"; then
1623 cat <<\_ASBOX
1624 ## ------------------- ##
1625 ## File substitutions. ##
1626 ## ------------------- ##
1627 _ASBOX
1628 echo
1629 for ac_var in $ac_subst_files
1631 eval ac_val=\$$ac_var
1632 case $ac_val in
1633 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1634 esac
1635 echo "$ac_var='\''$ac_val'\''"
1636 done | sort
1637 echo
1640 if test -s confdefs.h; then
1641 cat <<\_ASBOX
1642 ## ----------- ##
1643 ## confdefs.h. ##
1644 ## ----------- ##
1645 _ASBOX
1646 echo
1647 cat confdefs.h
1648 echo
1650 test "$ac_signal" != 0 &&
1651 echo "$as_me: caught signal $ac_signal"
1652 echo "$as_me: exit $exit_status"
1653 } >&5
1654 rm -f core *.core core.conftest.* &&
1655 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1656 exit $exit_status
1658 for ac_signal in 1 2 13 15; do
1659 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1660 done
1661 ac_signal=0
1663 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1664 rm -f -r conftest* confdefs.h
1666 # Predefined preprocessor variables.
1668 cat >>confdefs.h <<_ACEOF
1669 #define PACKAGE_NAME "$PACKAGE_NAME"
1670 _ACEOF
1673 cat >>confdefs.h <<_ACEOF
1674 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1675 _ACEOF
1678 cat >>confdefs.h <<_ACEOF
1679 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1680 _ACEOF
1683 cat >>confdefs.h <<_ACEOF
1684 #define PACKAGE_STRING "$PACKAGE_STRING"
1685 _ACEOF
1688 cat >>confdefs.h <<_ACEOF
1689 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1690 _ACEOF
1693 # Let the site file select an alternate cache file if it wants to.
1694 # Prefer explicitly selected file to automatically selected ones.
1695 if test -n "$CONFIG_SITE"; then
1696 set x "$CONFIG_SITE"
1697 elif test "x$prefix" != xNONE; then
1698 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1699 else
1700 set x "$ac_default_prefix/share/config.site" \
1701 "$ac_default_prefix/etc/config.site"
1703 shift
1704 for ac_site_file
1706 if test -r "$ac_site_file"; then
1707 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1708 echo "$as_me: loading site script $ac_site_file" >&6;}
1709 sed 's/^/| /' "$ac_site_file" >&5
1710 . "$ac_site_file"
1712 done
1714 if test -r "$cache_file"; then
1715 # Some versions of bash will fail to source /dev/null (special
1716 # files actually), so we avoid doing that.
1717 if test -f "$cache_file"; then
1718 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1719 echo "$as_me: loading cache $cache_file" >&6;}
1720 case $cache_file in
1721 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1722 *) . "./$cache_file";;
1723 esac
1725 else
1726 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1727 echo "$as_me: creating cache $cache_file" >&6;}
1728 >$cache_file
1731 # Check that the precious variables saved in the cache have kept the same
1732 # value.
1733 ac_cache_corrupted=false
1734 for ac_var in $ac_precious_vars; do
1735 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1736 eval ac_new_set=\$ac_env_${ac_var}_set
1737 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1738 eval ac_new_val=\$ac_env_${ac_var}_value
1739 case $ac_old_set,$ac_new_set in
1740 set,)
1741 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1742 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1743 ac_cache_corrupted=: ;;
1744 ,set)
1745 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1746 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1747 ac_cache_corrupted=: ;;
1748 ,);;
1750 if test "x$ac_old_val" != "x$ac_new_val"; then
1751 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1752 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1753 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1754 echo "$as_me: former value: $ac_old_val" >&2;}
1755 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1756 echo "$as_me: current value: $ac_new_val" >&2;}
1757 ac_cache_corrupted=:
1758 fi;;
1759 esac
1760 # Pass precious variables to config.status.
1761 if test "$ac_new_set" = set; then
1762 case $ac_new_val in
1763 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1764 *) ac_arg=$ac_var=$ac_new_val ;;
1765 esac
1766 case " $ac_configure_args " in
1767 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1768 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1769 esac
1771 done
1772 if $ac_cache_corrupted; then
1773 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1774 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1775 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1776 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1777 { (exit 1); exit 1; }; }
1804 ac_ext=c
1805 ac_cpp='$CPP $CPPFLAGS'
1806 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1807 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1808 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1812 ac_config_headers="$ac_config_headers pyconfig.h"
1816 if test "$prefix" != "/"; then
1817 prefix=`echo "$prefix" | sed -e 's/\/$//g'`
1825 # We don't use PACKAGE_ variables, and they cause conflicts
1826 # with other autoconf-based packages that include Python.h
1827 grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new
1828 rm confdefs.h
1829 mv confdefs.h.new confdefs.h
1832 VERSION=2.7
1835 SOVERSION=1.0
1837 # The later defininition of _XOPEN_SOURCE disables certain features
1838 # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
1840 cat >>confdefs.h <<\_ACEOF
1841 #define _GNU_SOURCE 1
1842 _ACEOF
1845 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1846 # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
1847 # them.
1849 cat >>confdefs.h <<\_ACEOF
1850 #define _NETBSD_SOURCE 1
1851 _ACEOF
1854 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1855 # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
1856 # them.
1858 cat >>confdefs.h <<\_ACEOF
1859 #define __BSD_VISIBLE 1
1860 _ACEOF
1863 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1864 # u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
1866 cat >>confdefs.h <<\_ACEOF
1867 #define _BSD_TYPES 1
1868 _ACEOF
1871 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1872 # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable
1873 # them.
1875 cat >>confdefs.h <<\_ACEOF
1876 #define _DARWIN_C_SOURCE 1
1877 _ACEOF
1881 define_xopen_source=yes
1883 # Arguments passed to configure.
1885 CONFIG_ARGS="$ac_configure_args"
1887 # Check whether --enable-universalsdk was given.
1888 if test "${enable_universalsdk+set}" = set; then
1889 enableval=$enable_universalsdk;
1890 case $enableval in
1891 yes)
1892 enableval=/Developer/SDKs/MacOSX10.4u.sdk
1894 esac
1895 case $enableval in
1897 UNIVERSALSDK=
1898 enable_universalsdk=
1901 UNIVERSALSDK=$enableval
1903 esac
1905 else
1907 UNIVERSALSDK=
1908 enable_universalsdk=
1916 UNIVERSAL_ARCHS="32-bit"
1917 { echo "$as_me:$LINENO: checking for --with-universal-archs" >&5
1918 echo $ECHO_N "checking for --with-universal-archs... $ECHO_C" >&6; }
1920 # Check whether --with-universal-archs was given.
1921 if test "${with_universal_archs+set}" = set; then
1922 withval=$with_universal_archs;
1923 { echo "$as_me:$LINENO: result: $withval" >&5
1924 echo "${ECHO_T}$withval" >&6; }
1925 UNIVERSAL_ARCHS="$withval"
1927 else
1929 { echo "$as_me:$LINENO: result: 32-bit" >&5
1930 echo "${ECHO_T}32-bit" >&6; }
1938 # Check whether --with-framework-name was given.
1939 if test "${with_framework_name+set}" = set; then
1940 withval=$with_framework_name;
1941 PYTHONFRAMEWORK=${withval}
1942 PYTHONFRAMEWORKDIR=${withval}.framework
1943 PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'`
1945 else
1947 PYTHONFRAMEWORK=Python
1948 PYTHONFRAMEWORKDIR=Python.framework
1949 PYTHONFRAMEWORKIDENTIFIER=org.python.python
1953 # Check whether --enable-framework was given.
1954 if test "${enable_framework+set}" = set; then
1955 enableval=$enable_framework;
1956 case $enableval in
1957 yes)
1958 enableval=/Library/Frameworks
1959 esac
1960 case $enableval in
1962 PYTHONFRAMEWORK=
1963 PYTHONFRAMEWORKDIR=no-framework
1964 PYTHONFRAMEWORKPREFIX=
1965 PYTHONFRAMEWORKINSTALLDIR=
1966 FRAMEWORKINSTALLFIRST=
1967 FRAMEWORKINSTALLLAST=
1968 FRAMEWORKALTINSTALLFIRST=
1969 FRAMEWORKALTINSTALLLAST=
1970 if test "x${prefix}" = "xNONE"; then
1971 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1972 else
1973 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1975 enable_framework=
1978 PYTHONFRAMEWORKPREFIX=$enableval
1979 PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
1980 FRAMEWORKINSTALLFIRST="frameworkinstallstructure"
1981 FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure bininstall maninstall"
1982 if test "$UNIVERSAL_ARCHS" = "all"
1983 then
1984 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkinstallunixtools4way"
1985 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkaltinstallunixtools4way"
1986 else
1987 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools"
1988 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools"
1991 if test "x${prefix}" = "xNONE" ; then
1992 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1993 else
1994 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1996 prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
1998 # Add files for Mac specific code to the list of output
1999 # files:
2000 ac_config_files="$ac_config_files Mac/Makefile"
2002 ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile"
2004 ac_config_files="$ac_config_files Mac/IDLE/Makefile"
2006 ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist"
2008 ac_config_files="$ac_config_files Mac/Resources/app/Info.plist"
2010 esac
2012 else
2014 PYTHONFRAMEWORK=
2015 PYTHONFRAMEWORKDIR=no-framework
2016 PYTHONFRAMEWORKPREFIX=
2017 PYTHONFRAMEWORKINSTALLDIR=
2018 FRAMEWORKINSTALLFIRST=
2019 FRAMEWORKINSTALLLAST=
2020 FRAMEWORKALTINSTALLFIRST=
2021 FRAMEWORKALTINSTALLLAST=
2022 if test "x${prefix}" = "xNONE" ; then
2023 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
2024 else
2025 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
2027 enable_framework=
2029 if test "$UNIVERSAL_ARCHS" = "all"
2030 then
2031 FRAMEWORKINSTALLLAST=update4wayuniversal
2032 FRAMEWORKALTINSTALLLAST=update4wayuniversal
2048 ##AC_ARG_WITH(dyld,
2049 ## AC_HELP_STRING(--with-dyld,
2050 ## Use (OpenStep|Rhapsody) dynamic linker))
2052 # Set name for machine-dependent library files
2054 { echo "$as_me:$LINENO: checking MACHDEP" >&5
2055 echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6; }
2056 if test -z "$MACHDEP"
2057 then
2058 ac_sys_system=`uname -s`
2059 if test "$ac_sys_system" = "AIX" \
2060 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
2061 ac_sys_release=`uname -v`
2062 else
2063 ac_sys_release=`uname -r`
2065 ac_md_system=`echo $ac_sys_system |
2066 tr -d '/ ' | tr '[A-Z]' '[a-z]'`
2067 ac_md_release=`echo $ac_sys_release |
2068 tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'`
2069 MACHDEP="$ac_md_system$ac_md_release"
2071 case $MACHDEP in
2072 cygwin*) MACHDEP="cygwin";;
2073 darwin*) MACHDEP="darwin";;
2074 atheos*) MACHDEP="atheos";;
2075 irix646) MACHDEP="irix6";;
2076 '') MACHDEP="unknown";;
2077 esac
2080 # Some systems cannot stand _XOPEN_SOURCE being defined at all; they
2081 # disable features if it is defined, without any means to access these
2082 # features as extensions. For these systems, we skip the definition of
2083 # _XOPEN_SOURCE. Before adding a system to the list to gain access to
2084 # some feature, make sure there is no alternative way to access this
2085 # feature. Also, when using wildcards, make sure you have verified the
2086 # need for not defining _XOPEN_SOURCE on all systems matching the
2087 # wildcard, and that the wildcard does not include future systems
2088 # (which may remove their limitations).
2089 case $ac_sys_system/$ac_sys_release in
2090 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
2091 # even though select is a POSIX function. Reported by J. Ribbens.
2092 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
2093 OpenBSD/2.* | OpenBSD/3.[0123456789] | OpenBSD/4.[0123])
2094 define_xopen_source=no
2095 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
2096 # also defined. This can be overridden by defining _BSD_SOURCE
2097 # As this has a different meaning on Linux, only define it on OpenBSD
2099 cat >>confdefs.h <<\_ACEOF
2100 #define _BSD_SOURCE 1
2101 _ACEOF
2104 # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of
2105 # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by
2106 # Marc Recht
2107 NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6[A-S])
2108 define_xopen_source=no;;
2109 # On Solaris 2.6, sys/wait.h is inconsistent in the usage
2110 # of union __?sigval. Reported by Stuart Bishop.
2111 SunOS/5.6)
2112 define_xopen_source=no;;
2113 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
2114 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
2115 # Reconfirmed for 7.1.4 by Martin v. Loewis.
2116 OpenUNIX/8.0.0| UnixWare/7.1.[0-4])
2117 define_xopen_source=no;;
2118 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
2119 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
2120 SCO_SV/3.2)
2121 define_xopen_source=no;;
2122 # On FreeBSD 4, the math functions C89 does not cover are never defined
2123 # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them.
2124 FreeBSD/4.*)
2125 define_xopen_source=no;;
2126 # On MacOS X 10.2, a bug in ncurses.h means that it craps out if
2127 # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which
2128 # identifies itself as Darwin/7.*
2129 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2130 # disables platform specific features beyond repair.
2131 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2132 # has no effect, don't bother defining them
2133 Darwin/[6789].*)
2134 define_xopen_source=no;;
2135 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
2136 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
2137 # or has another value. By not (re)defining it, the defaults come in place.
2138 AIX/4)
2139 define_xopen_source=no;;
2140 AIX/5)
2141 if test `uname -r` -eq 1; then
2142 define_xopen_source=no
2145 # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from
2146 # defining NI_NUMERICHOST.
2147 QNX/6.3.2)
2148 define_xopen_source=no
2151 esac
2153 if test $define_xopen_source = yes
2154 then
2155 # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be
2156 # defined precisely as g++ defines it
2157 # Furthermore, on Solaris 10, XPG6 requires the use of a C99
2158 # compiler
2159 case $ac_sys_system/$ac_sys_release in
2160 SunOS/5.8|SunOS/5.9|SunOS/5.10)
2162 cat >>confdefs.h <<\_ACEOF
2163 #define _XOPEN_SOURCE 500
2164 _ACEOF
2169 cat >>confdefs.h <<\_ACEOF
2170 #define _XOPEN_SOURCE 600
2171 _ACEOF
2174 esac
2176 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
2177 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
2178 # several APIs are not declared. Since this is also needed in some
2179 # cases for HP-UX, we define it globally.
2180 # except for Solaris 10, where it must not be defined,
2181 # as it implies XPG4.2
2182 case $ac_sys_system/$ac_sys_release in
2183 SunOS/5.10)
2187 cat >>confdefs.h <<\_ACEOF
2188 #define _XOPEN_SOURCE_EXTENDED 1
2189 _ACEOF
2192 esac
2195 cat >>confdefs.h <<\_ACEOF
2196 #define _POSIX_C_SOURCE 200112L
2197 _ACEOF
2203 # SGI compilers allow the specification of the both the ABI and the
2204 # ISA on the command line. Depending on the values of these switches,
2205 # different and often incompatable code will be generated.
2207 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
2208 # thus supply support for various ABI/ISA combinations. The MACHDEP
2209 # variable is also adjusted.
2212 if test ! -z "$SGI_ABI"
2213 then
2214 CC="cc $SGI_ABI"
2215 LDFLAGS="$SGI_ABI $LDFLAGS"
2216 MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'`
2218 { echo "$as_me:$LINENO: result: $MACHDEP" >&5
2219 echo "${ECHO_T}$MACHDEP" >&6; }
2221 # And add extra plat-mac for darwin
2224 { echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5
2225 echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6; }
2226 if test -z "$EXTRAPLATDIR"
2227 then
2228 case $MACHDEP in
2229 darwin)
2230 EXTRAPLATDIR="\$(PLATMACDIRS)"
2231 EXTRAMACHDEPPATH="\$(PLATMACPATH)"
2234 EXTRAPLATDIR=""
2235 EXTRAMACHDEPPATH=""
2237 esac
2239 { echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5
2240 echo "${ECHO_T}$EXTRAPLATDIR" >&6; }
2242 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
2243 # it may influence the way we can build extensions, so distutils
2244 # needs to check it
2247 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=
2248 EXPORT_MACOSX_DEPLOYMENT_TARGET='#'
2250 { echo "$as_me:$LINENO: checking machine type as reported by uname -m" >&5
2251 echo $ECHO_N "checking machine type as reported by uname -m... $ECHO_C" >&6; }
2252 ac_sys_machine=`uname -m`
2253 { echo "$as_me:$LINENO: result: $ac_sys_machine" >&5
2254 echo "${ECHO_T}$ac_sys_machine" >&6; }
2256 # checks for alternative programs
2258 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
2259 # for debug/optimization stuff. BASECFLAGS is for flags that are required
2260 # just to get things to compile and link. Users are free to override OPT
2261 # when running configure or make. The build should not break if they do.
2262 # BASECFLAGS should generally not be messed with, however.
2264 # XXX shouldn't some/most/all of this code be merged with the stuff later
2265 # on that fiddles with OPT and BASECFLAGS?
2266 { echo "$as_me:$LINENO: checking for --without-gcc" >&5
2267 echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6; }
2269 # Check whether --with-gcc was given.
2270 if test "${with_gcc+set}" = set; then
2271 withval=$with_gcc;
2272 case $withval in
2273 no) CC=${CC:-cc}
2274 without_gcc=yes;;
2275 yes) CC=gcc
2276 without_gcc=no;;
2277 *) CC=$withval
2278 without_gcc=$withval;;
2279 esac
2280 else
2282 case $ac_sys_system in
2283 AIX*) CC=cc_r
2284 without_gcc=;;
2285 BeOS*)
2286 case $BE_HOST_CPU in
2287 ppc)
2288 CC=mwcc
2289 without_gcc=yes
2290 BASECFLAGS="$BASECFLAGS -export pragma"
2291 OPT="$OPT -O"
2292 LDFLAGS="$LDFLAGS -nodup"
2294 x86)
2295 CC=gcc
2296 without_gcc=no
2297 OPT="$OPT -O"
2300 { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5
2301 echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;}
2302 { (exit 1); exit 1; }; }
2304 esac
2305 AR="\$(srcdir)/Modules/ar_beos"
2306 RANLIB=:
2308 *) without_gcc=no;;
2309 esac
2312 { echo "$as_me:$LINENO: result: $without_gcc" >&5
2313 echo "${ECHO_T}$without_gcc" >&6; }
2315 # If the user switches compilers, we can't believe the cache
2316 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
2317 then
2318 { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
2319 (it is also a good idea to do 'make clean' before compiling)" >&5
2320 echo "$as_me: error: cached CC is different -- throw away $cache_file
2321 (it is also a good idea to do 'make clean' before compiling)" >&2;}
2322 { (exit 1); exit 1; }; }
2325 ac_ext=c
2326 ac_cpp='$CPP $CPPFLAGS'
2327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2330 if test -n "$ac_tool_prefix"; then
2331 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2332 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2333 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2334 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2335 if test "${ac_cv_prog_CC+set}" = set; then
2336 echo $ECHO_N "(cached) $ECHO_C" >&6
2337 else
2338 if test -n "$CC"; then
2339 ac_cv_prog_CC="$CC" # Let the user override the test.
2340 else
2341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2342 for as_dir in $PATH
2344 IFS=$as_save_IFS
2345 test -z "$as_dir" && as_dir=.
2346 for ac_exec_ext in '' $ac_executable_extensions; do
2347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2348 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2349 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2350 break 2
2352 done
2353 done
2354 IFS=$as_save_IFS
2358 CC=$ac_cv_prog_CC
2359 if test -n "$CC"; then
2360 { echo "$as_me:$LINENO: result: $CC" >&5
2361 echo "${ECHO_T}$CC" >&6; }
2362 else
2363 { echo "$as_me:$LINENO: result: no" >&5
2364 echo "${ECHO_T}no" >&6; }
2369 if test -z "$ac_cv_prog_CC"; then
2370 ac_ct_CC=$CC
2371 # Extract the first word of "gcc", so it can be a program name with args.
2372 set dummy gcc; ac_word=$2
2373 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2374 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2375 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2376 echo $ECHO_N "(cached) $ECHO_C" >&6
2377 else
2378 if test -n "$ac_ct_CC"; then
2379 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2380 else
2381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2382 for as_dir in $PATH
2384 IFS=$as_save_IFS
2385 test -z "$as_dir" && as_dir=.
2386 for ac_exec_ext in '' $ac_executable_extensions; do
2387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2388 ac_cv_prog_ac_ct_CC="gcc"
2389 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2390 break 2
2392 done
2393 done
2394 IFS=$as_save_IFS
2398 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2399 if test -n "$ac_ct_CC"; then
2400 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2401 echo "${ECHO_T}$ac_ct_CC" >&6; }
2402 else
2403 { echo "$as_me:$LINENO: result: no" >&5
2404 echo "${ECHO_T}no" >&6; }
2407 if test "x$ac_ct_CC" = x; then
2408 CC=""
2409 else
2410 case $cross_compiling:$ac_tool_warned in
2411 yes:)
2412 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2413 whose name does not start with the host triplet. If you think this
2414 configuration is useful to you, please write to autoconf@gnu.org." >&5
2415 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2416 whose name does not start with the host triplet. If you think this
2417 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2418 ac_tool_warned=yes ;;
2419 esac
2420 CC=$ac_ct_CC
2422 else
2423 CC="$ac_cv_prog_CC"
2426 if test -z "$CC"; then
2427 if test -n "$ac_tool_prefix"; then
2428 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2429 set dummy ${ac_tool_prefix}cc; ac_word=$2
2430 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2432 if test "${ac_cv_prog_CC+set}" = set; then
2433 echo $ECHO_N "(cached) $ECHO_C" >&6
2434 else
2435 if test -n "$CC"; then
2436 ac_cv_prog_CC="$CC" # Let the user override the test.
2437 else
2438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2439 for as_dir in $PATH
2441 IFS=$as_save_IFS
2442 test -z "$as_dir" && as_dir=.
2443 for ac_exec_ext in '' $ac_executable_extensions; do
2444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2445 ac_cv_prog_CC="${ac_tool_prefix}cc"
2446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2447 break 2
2449 done
2450 done
2451 IFS=$as_save_IFS
2455 CC=$ac_cv_prog_CC
2456 if test -n "$CC"; then
2457 { echo "$as_me:$LINENO: result: $CC" >&5
2458 echo "${ECHO_T}$CC" >&6; }
2459 else
2460 { echo "$as_me:$LINENO: result: no" >&5
2461 echo "${ECHO_T}no" >&6; }
2467 if test -z "$CC"; then
2468 # Extract the first word of "cc", so it can be a program name with args.
2469 set dummy cc; ac_word=$2
2470 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2472 if test "${ac_cv_prog_CC+set}" = set; then
2473 echo $ECHO_N "(cached) $ECHO_C" >&6
2474 else
2475 if test -n "$CC"; then
2476 ac_cv_prog_CC="$CC" # Let the user override the test.
2477 else
2478 ac_prog_rejected=no
2479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2480 for as_dir in $PATH
2482 IFS=$as_save_IFS
2483 test -z "$as_dir" && as_dir=.
2484 for ac_exec_ext in '' $ac_executable_extensions; do
2485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2486 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2487 ac_prog_rejected=yes
2488 continue
2490 ac_cv_prog_CC="cc"
2491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2492 break 2
2494 done
2495 done
2496 IFS=$as_save_IFS
2498 if test $ac_prog_rejected = yes; then
2499 # We found a bogon in the path, so make sure we never use it.
2500 set dummy $ac_cv_prog_CC
2501 shift
2502 if test $# != 0; then
2503 # We chose a different compiler from the bogus one.
2504 # However, it has the same basename, so the bogon will be chosen
2505 # first if we set CC to just the basename; use the full file name.
2506 shift
2507 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2512 CC=$ac_cv_prog_CC
2513 if test -n "$CC"; then
2514 { echo "$as_me:$LINENO: result: $CC" >&5
2515 echo "${ECHO_T}$CC" >&6; }
2516 else
2517 { echo "$as_me:$LINENO: result: no" >&5
2518 echo "${ECHO_T}no" >&6; }
2523 if test -z "$CC"; then
2524 if test -n "$ac_tool_prefix"; then
2525 for ac_prog in cl.exe
2527 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2528 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2529 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2531 if test "${ac_cv_prog_CC+set}" = set; then
2532 echo $ECHO_N "(cached) $ECHO_C" >&6
2533 else
2534 if test -n "$CC"; then
2535 ac_cv_prog_CC="$CC" # Let the user override the test.
2536 else
2537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2538 for as_dir in $PATH
2540 IFS=$as_save_IFS
2541 test -z "$as_dir" && as_dir=.
2542 for ac_exec_ext in '' $ac_executable_extensions; do
2543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2544 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2545 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2546 break 2
2548 done
2549 done
2550 IFS=$as_save_IFS
2554 CC=$ac_cv_prog_CC
2555 if test -n "$CC"; then
2556 { echo "$as_me:$LINENO: result: $CC" >&5
2557 echo "${ECHO_T}$CC" >&6; }
2558 else
2559 { echo "$as_me:$LINENO: result: no" >&5
2560 echo "${ECHO_T}no" >&6; }
2564 test -n "$CC" && break
2565 done
2567 if test -z "$CC"; then
2568 ac_ct_CC=$CC
2569 for ac_prog in cl.exe
2571 # Extract the first word of "$ac_prog", so it can be a program name with args.
2572 set dummy $ac_prog; ac_word=$2
2573 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2575 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2576 echo $ECHO_N "(cached) $ECHO_C" >&6
2577 else
2578 if test -n "$ac_ct_CC"; then
2579 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2580 else
2581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2582 for as_dir in $PATH
2584 IFS=$as_save_IFS
2585 test -z "$as_dir" && as_dir=.
2586 for ac_exec_ext in '' $ac_executable_extensions; do
2587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2588 ac_cv_prog_ac_ct_CC="$ac_prog"
2589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2590 break 2
2592 done
2593 done
2594 IFS=$as_save_IFS
2598 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2599 if test -n "$ac_ct_CC"; then
2600 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2601 echo "${ECHO_T}$ac_ct_CC" >&6; }
2602 else
2603 { echo "$as_me:$LINENO: result: no" >&5
2604 echo "${ECHO_T}no" >&6; }
2608 test -n "$ac_ct_CC" && break
2609 done
2611 if test "x$ac_ct_CC" = x; then
2612 CC=""
2613 else
2614 case $cross_compiling:$ac_tool_warned in
2615 yes:)
2616 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2617 whose name does not start with the host triplet. If you think this
2618 configuration is useful to you, please write to autoconf@gnu.org." >&5
2619 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2620 whose name does not start with the host triplet. If you think this
2621 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2622 ac_tool_warned=yes ;;
2623 esac
2624 CC=$ac_ct_CC
2631 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2632 See \`config.log' for more details." >&5
2633 echo "$as_me: error: no acceptable C compiler found in \$PATH
2634 See \`config.log' for more details." >&2;}
2635 { (exit 1); exit 1; }; }
2637 # Provide some information about the compiler.
2638 echo "$as_me:$LINENO: checking for C compiler version" >&5
2639 ac_compiler=`set X $ac_compile; echo $2`
2640 { (ac_try="$ac_compiler --version >&5"
2641 case "(($ac_try" in
2642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2643 *) ac_try_echo=$ac_try;;
2644 esac
2645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2646 (eval "$ac_compiler --version >&5") 2>&5
2647 ac_status=$?
2648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649 (exit $ac_status); }
2650 { (ac_try="$ac_compiler -v >&5"
2651 case "(($ac_try" in
2652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2653 *) ac_try_echo=$ac_try;;
2654 esac
2655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2656 (eval "$ac_compiler -v >&5") 2>&5
2657 ac_status=$?
2658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2659 (exit $ac_status); }
2660 { (ac_try="$ac_compiler -V >&5"
2661 case "(($ac_try" in
2662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2663 *) ac_try_echo=$ac_try;;
2664 esac
2665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2666 (eval "$ac_compiler -V >&5") 2>&5
2667 ac_status=$?
2668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2669 (exit $ac_status); }
2671 cat >conftest.$ac_ext <<_ACEOF
2672 /* confdefs.h. */
2673 _ACEOF
2674 cat confdefs.h >>conftest.$ac_ext
2675 cat >>conftest.$ac_ext <<_ACEOF
2676 /* end confdefs.h. */
2679 main ()
2683 return 0;
2685 _ACEOF
2686 ac_clean_files_save=$ac_clean_files
2687 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2688 # Try to create an executable without -o first, disregard a.out.
2689 # It will help us diagnose broken compilers, and finding out an intuition
2690 # of exeext.
2691 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2692 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2693 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2695 # List of possible output files, starting from the most likely.
2696 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2697 # only as a last resort. b.out is created by i960 compilers.
2698 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2700 # The IRIX 6 linker writes into existing files which may not be
2701 # executable, retaining their permissions. Remove them first so a
2702 # subsequent execution test works.
2703 ac_rmfiles=
2704 for ac_file in $ac_files
2706 case $ac_file in
2707 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2708 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2709 esac
2710 done
2711 rm -f $ac_rmfiles
2713 if { (ac_try="$ac_link_default"
2714 case "(($ac_try" in
2715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2716 *) ac_try_echo=$ac_try;;
2717 esac
2718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2719 (eval "$ac_link_default") 2>&5
2720 ac_status=$?
2721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2722 (exit $ac_status); }; then
2723 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2724 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2725 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2726 # so that the user can short-circuit this test for compilers unknown to
2727 # Autoconf.
2728 for ac_file in $ac_files ''
2730 test -f "$ac_file" || continue
2731 case $ac_file in
2732 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2734 [ab].out )
2735 # We found the default executable, but exeext='' is most
2736 # certainly right.
2737 break;;
2738 *.* )
2739 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2740 then :; else
2741 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2743 # We set ac_cv_exeext here because the later test for it is not
2744 # safe: cross compilers may not add the suffix if given an `-o'
2745 # argument, so we may need to know it at that point already.
2746 # Even if this section looks crufty: it has the advantage of
2747 # actually working.
2748 break;;
2750 break;;
2751 esac
2752 done
2753 test "$ac_cv_exeext" = no && ac_cv_exeext=
2755 else
2756 ac_file=''
2759 { echo "$as_me:$LINENO: result: $ac_file" >&5
2760 echo "${ECHO_T}$ac_file" >&6; }
2761 if test -z "$ac_file"; then
2762 echo "$as_me: failed program was:" >&5
2763 sed 's/^/| /' conftest.$ac_ext >&5
2765 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2766 See \`config.log' for more details." >&5
2767 echo "$as_me: error: C compiler cannot create executables
2768 See \`config.log' for more details." >&2;}
2769 { (exit 77); exit 77; }; }
2772 ac_exeext=$ac_cv_exeext
2774 # Check that the compiler produces executables we can run. If not, either
2775 # the compiler is broken, or we cross compile.
2776 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2777 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2778 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2779 # If not cross compiling, check that we can run a simple program.
2780 if test "$cross_compiling" != yes; then
2781 if { ac_try='./$ac_file'
2782 { (case "(($ac_try" in
2783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2784 *) ac_try_echo=$ac_try;;
2785 esac
2786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2787 (eval "$ac_try") 2>&5
2788 ac_status=$?
2789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2790 (exit $ac_status); }; }; then
2791 cross_compiling=no
2792 else
2793 if test "$cross_compiling" = maybe; then
2794 cross_compiling=yes
2795 else
2796 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2797 If you meant to cross compile, use \`--host'.
2798 See \`config.log' for more details." >&5
2799 echo "$as_me: error: cannot run C compiled programs.
2800 If you meant to cross compile, use \`--host'.
2801 See \`config.log' for more details." >&2;}
2802 { (exit 1); exit 1; }; }
2806 { echo "$as_me:$LINENO: result: yes" >&5
2807 echo "${ECHO_T}yes" >&6; }
2809 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2810 ac_clean_files=$ac_clean_files_save
2811 # Check that the compiler produces executables we can run. If not, either
2812 # the compiler is broken, or we cross compile.
2813 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2814 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2815 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2816 echo "${ECHO_T}$cross_compiling" >&6; }
2818 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2819 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2820 if { (ac_try="$ac_link"
2821 case "(($ac_try" in
2822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2823 *) ac_try_echo=$ac_try;;
2824 esac
2825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2826 (eval "$ac_link") 2>&5
2827 ac_status=$?
2828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829 (exit $ac_status); }; then
2830 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2831 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2832 # work properly (i.e., refer to `conftest.exe'), while it won't with
2833 # `rm'.
2834 for ac_file in conftest.exe conftest conftest.*; do
2835 test -f "$ac_file" || continue
2836 case $ac_file in
2837 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2838 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2839 break;;
2840 * ) break;;
2841 esac
2842 done
2843 else
2844 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2845 See \`config.log' for more details." >&5
2846 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2847 See \`config.log' for more details." >&2;}
2848 { (exit 1); exit 1; }; }
2851 rm -f conftest$ac_cv_exeext
2852 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2853 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2855 rm -f conftest.$ac_ext
2856 EXEEXT=$ac_cv_exeext
2857 ac_exeext=$EXEEXT
2858 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2859 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2860 if test "${ac_cv_objext+set}" = set; then
2861 echo $ECHO_N "(cached) $ECHO_C" >&6
2862 else
2863 cat >conftest.$ac_ext <<_ACEOF
2864 /* confdefs.h. */
2865 _ACEOF
2866 cat confdefs.h >>conftest.$ac_ext
2867 cat >>conftest.$ac_ext <<_ACEOF
2868 /* end confdefs.h. */
2871 main ()
2875 return 0;
2877 _ACEOF
2878 rm -f conftest.o conftest.obj
2879 if { (ac_try="$ac_compile"
2880 case "(($ac_try" in
2881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2882 *) ac_try_echo=$ac_try;;
2883 esac
2884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2885 (eval "$ac_compile") 2>&5
2886 ac_status=$?
2887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888 (exit $ac_status); }; then
2889 for ac_file in conftest.o conftest.obj conftest.*; do
2890 test -f "$ac_file" || continue;
2891 case $ac_file in
2892 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2893 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2894 break;;
2895 esac
2896 done
2897 else
2898 echo "$as_me: failed program was:" >&5
2899 sed 's/^/| /' conftest.$ac_ext >&5
2901 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2902 See \`config.log' for more details." >&5
2903 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2904 See \`config.log' for more details." >&2;}
2905 { (exit 1); exit 1; }; }
2908 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2910 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2911 echo "${ECHO_T}$ac_cv_objext" >&6; }
2912 OBJEXT=$ac_cv_objext
2913 ac_objext=$OBJEXT
2914 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2915 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2916 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2917 echo $ECHO_N "(cached) $ECHO_C" >&6
2918 else
2919 cat >conftest.$ac_ext <<_ACEOF
2920 /* confdefs.h. */
2921 _ACEOF
2922 cat confdefs.h >>conftest.$ac_ext
2923 cat >>conftest.$ac_ext <<_ACEOF
2924 /* end confdefs.h. */
2927 main ()
2929 #ifndef __GNUC__
2930 choke me
2931 #endif
2934 return 0;
2936 _ACEOF
2937 rm -f conftest.$ac_objext
2938 if { (ac_try="$ac_compile"
2939 case "(($ac_try" in
2940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2941 *) ac_try_echo=$ac_try;;
2942 esac
2943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2944 (eval "$ac_compile") 2>conftest.er1
2945 ac_status=$?
2946 grep -v '^ *+' conftest.er1 >conftest.err
2947 rm -f conftest.er1
2948 cat conftest.err >&5
2949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950 (exit $ac_status); } && {
2951 test -z "$ac_c_werror_flag" ||
2952 test ! -s conftest.err
2953 } && test -s conftest.$ac_objext; then
2954 ac_compiler_gnu=yes
2955 else
2956 echo "$as_me: failed program was:" >&5
2957 sed 's/^/| /' conftest.$ac_ext >&5
2959 ac_compiler_gnu=no
2962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2963 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2966 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2967 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2968 GCC=`test $ac_compiler_gnu = yes && echo yes`
2969 ac_test_CFLAGS=${CFLAGS+set}
2970 ac_save_CFLAGS=$CFLAGS
2971 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2972 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2973 if test "${ac_cv_prog_cc_g+set}" = set; then
2974 echo $ECHO_N "(cached) $ECHO_C" >&6
2975 else
2976 ac_save_c_werror_flag=$ac_c_werror_flag
2977 ac_c_werror_flag=yes
2978 ac_cv_prog_cc_g=no
2979 CFLAGS="-g"
2980 cat >conftest.$ac_ext <<_ACEOF
2981 /* confdefs.h. */
2982 _ACEOF
2983 cat confdefs.h >>conftest.$ac_ext
2984 cat >>conftest.$ac_ext <<_ACEOF
2985 /* end confdefs.h. */
2988 main ()
2992 return 0;
2994 _ACEOF
2995 rm -f conftest.$ac_objext
2996 if { (ac_try="$ac_compile"
2997 case "(($ac_try" in
2998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2999 *) ac_try_echo=$ac_try;;
3000 esac
3001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3002 (eval "$ac_compile") 2>conftest.er1
3003 ac_status=$?
3004 grep -v '^ *+' conftest.er1 >conftest.err
3005 rm -f conftest.er1
3006 cat conftest.err >&5
3007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008 (exit $ac_status); } && {
3009 test -z "$ac_c_werror_flag" ||
3010 test ! -s conftest.err
3011 } && test -s conftest.$ac_objext; then
3012 ac_cv_prog_cc_g=yes
3013 else
3014 echo "$as_me: failed program was:" >&5
3015 sed 's/^/| /' conftest.$ac_ext >&5
3017 CFLAGS=""
3018 cat >conftest.$ac_ext <<_ACEOF
3019 /* confdefs.h. */
3020 _ACEOF
3021 cat confdefs.h >>conftest.$ac_ext
3022 cat >>conftest.$ac_ext <<_ACEOF
3023 /* end confdefs.h. */
3026 main ()
3030 return 0;
3032 _ACEOF
3033 rm -f conftest.$ac_objext
3034 if { (ac_try="$ac_compile"
3035 case "(($ac_try" in
3036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3037 *) ac_try_echo=$ac_try;;
3038 esac
3039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3040 (eval "$ac_compile") 2>conftest.er1
3041 ac_status=$?
3042 grep -v '^ *+' conftest.er1 >conftest.err
3043 rm -f conftest.er1
3044 cat conftest.err >&5
3045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046 (exit $ac_status); } && {
3047 test -z "$ac_c_werror_flag" ||
3048 test ! -s conftest.err
3049 } && test -s conftest.$ac_objext; then
3051 else
3052 echo "$as_me: failed program was:" >&5
3053 sed 's/^/| /' conftest.$ac_ext >&5
3055 ac_c_werror_flag=$ac_save_c_werror_flag
3056 CFLAGS="-g"
3057 cat >conftest.$ac_ext <<_ACEOF
3058 /* confdefs.h. */
3059 _ACEOF
3060 cat confdefs.h >>conftest.$ac_ext
3061 cat >>conftest.$ac_ext <<_ACEOF
3062 /* end confdefs.h. */
3065 main ()
3069 return 0;
3071 _ACEOF
3072 rm -f conftest.$ac_objext
3073 if { (ac_try="$ac_compile"
3074 case "(($ac_try" in
3075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3076 *) ac_try_echo=$ac_try;;
3077 esac
3078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3079 (eval "$ac_compile") 2>conftest.er1
3080 ac_status=$?
3081 grep -v '^ *+' conftest.er1 >conftest.err
3082 rm -f conftest.er1
3083 cat conftest.err >&5
3084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3085 (exit $ac_status); } && {
3086 test -z "$ac_c_werror_flag" ||
3087 test ! -s conftest.err
3088 } && test -s conftest.$ac_objext; then
3089 ac_cv_prog_cc_g=yes
3090 else
3091 echo "$as_me: failed program was:" >&5
3092 sed 's/^/| /' conftest.$ac_ext >&5
3097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3104 ac_c_werror_flag=$ac_save_c_werror_flag
3106 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3107 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3108 if test "$ac_test_CFLAGS" = set; then
3109 CFLAGS=$ac_save_CFLAGS
3110 elif test $ac_cv_prog_cc_g = yes; then
3111 if test "$GCC" = yes; then
3112 CFLAGS="-g -O2"
3113 else
3114 CFLAGS="-g"
3116 else
3117 if test "$GCC" = yes; then
3118 CFLAGS="-O2"
3119 else
3120 CFLAGS=
3123 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3124 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3125 if test "${ac_cv_prog_cc_c89+set}" = set; then
3126 echo $ECHO_N "(cached) $ECHO_C" >&6
3127 else
3128 ac_cv_prog_cc_c89=no
3129 ac_save_CC=$CC
3130 cat >conftest.$ac_ext <<_ACEOF
3131 /* confdefs.h. */
3132 _ACEOF
3133 cat confdefs.h >>conftest.$ac_ext
3134 cat >>conftest.$ac_ext <<_ACEOF
3135 /* end confdefs.h. */
3136 #include <stdarg.h>
3137 #include <stdio.h>
3138 #include <sys/types.h>
3139 #include <sys/stat.h>
3140 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3141 struct buf { int x; };
3142 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3143 static char *e (p, i)
3144 char **p;
3145 int i;
3147 return p[i];
3149 static char *f (char * (*g) (char **, int), char **p, ...)
3151 char *s;
3152 va_list v;
3153 va_start (v,p);
3154 s = g (p, va_arg (v,int));
3155 va_end (v);
3156 return s;
3159 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3160 function prototypes and stuff, but not '\xHH' hex character constants.
3161 These don't provoke an error unfortunately, instead are silently treated
3162 as 'x'. The following induces an error, until -std is added to get
3163 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3164 array size at least. It's necessary to write '\x00'==0 to get something
3165 that's true only with -std. */
3166 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3168 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3169 inside strings and character constants. */
3170 #define FOO(x) 'x'
3171 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3173 int test (int i, double x);
3174 struct s1 {int (*f) (int a);};
3175 struct s2 {int (*f) (double a);};
3176 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3177 int argc;
3178 char **argv;
3180 main ()
3182 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3184 return 0;
3186 _ACEOF
3187 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3188 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3190 CC="$ac_save_CC $ac_arg"
3191 rm -f conftest.$ac_objext
3192 if { (ac_try="$ac_compile"
3193 case "(($ac_try" in
3194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3195 *) ac_try_echo=$ac_try;;
3196 esac
3197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3198 (eval "$ac_compile") 2>conftest.er1
3199 ac_status=$?
3200 grep -v '^ *+' conftest.er1 >conftest.err
3201 rm -f conftest.er1
3202 cat conftest.err >&5
3203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204 (exit $ac_status); } && {
3205 test -z "$ac_c_werror_flag" ||
3206 test ! -s conftest.err
3207 } && test -s conftest.$ac_objext; then
3208 ac_cv_prog_cc_c89=$ac_arg
3209 else
3210 echo "$as_me: failed program was:" >&5
3211 sed 's/^/| /' conftest.$ac_ext >&5
3216 rm -f core conftest.err conftest.$ac_objext
3217 test "x$ac_cv_prog_cc_c89" != "xno" && break
3218 done
3219 rm -f conftest.$ac_ext
3220 CC=$ac_save_CC
3223 # AC_CACHE_VAL
3224 case "x$ac_cv_prog_cc_c89" in
3226 { echo "$as_me:$LINENO: result: none needed" >&5
3227 echo "${ECHO_T}none needed" >&6; } ;;
3228 xno)
3229 { echo "$as_me:$LINENO: result: unsupported" >&5
3230 echo "${ECHO_T}unsupported" >&6; } ;;
3232 CC="$CC $ac_cv_prog_cc_c89"
3233 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3234 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3235 esac
3238 ac_ext=c
3239 ac_cpp='$CPP $CPPFLAGS'
3240 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3241 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3242 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3247 { echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5
3248 echo $ECHO_N "checking for --with-cxx-main=<compiler>... $ECHO_C" >&6; }
3250 # Check whether --with-cxx_main was given.
3251 if test "${with_cxx_main+set}" = set; then
3252 withval=$with_cxx_main;
3254 case $withval in
3255 no) with_cxx_main=no
3256 MAINCC='$(CC)';;
3257 yes) with_cxx_main=yes
3258 MAINCC='$(CXX)';;
3259 *) with_cxx_main=yes
3260 MAINCC=$withval
3261 if test -z "$CXX"
3262 then
3263 CXX=$withval
3264 fi;;
3265 esac
3266 else
3268 with_cxx_main=no
3269 MAINCC='$(CC)'
3273 { echo "$as_me:$LINENO: result: $with_cxx_main" >&5
3274 echo "${ECHO_T}$with_cxx_main" >&6; }
3276 preset_cxx="$CXX"
3277 if test -z "$CXX"
3278 then
3279 case "$CC" in
3280 gcc) # Extract the first word of "g++", so it can be a program name with args.
3281 set dummy g++; ac_word=$2
3282 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3283 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3284 if test "${ac_cv_path_CXX+set}" = set; then
3285 echo $ECHO_N "(cached) $ECHO_C" >&6
3286 else
3287 case $CXX in
3288 [\\/]* | ?:[\\/]*)
3289 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3293 for as_dir in notfound
3295 IFS=$as_save_IFS
3296 test -z "$as_dir" && as_dir=.
3297 for ac_exec_ext in '' $ac_executable_extensions; do
3298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3299 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3301 break 2
3303 done
3304 done
3305 IFS=$as_save_IFS
3307 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="g++"
3309 esac
3311 CXX=$ac_cv_path_CXX
3312 if test -n "$CXX"; then
3313 { echo "$as_me:$LINENO: result: $CXX" >&5
3314 echo "${ECHO_T}$CXX" >&6; }
3315 else
3316 { echo "$as_me:$LINENO: result: no" >&5
3317 echo "${ECHO_T}no" >&6; }
3321 cc) # Extract the first word of "c++", so it can be a program name with args.
3322 set dummy c++; ac_word=$2
3323 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3325 if test "${ac_cv_path_CXX+set}" = set; then
3326 echo $ECHO_N "(cached) $ECHO_C" >&6
3327 else
3328 case $CXX in
3329 [\\/]* | ?:[\\/]*)
3330 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3334 for as_dir in notfound
3336 IFS=$as_save_IFS
3337 test -z "$as_dir" && as_dir=.
3338 for ac_exec_ext in '' $ac_executable_extensions; do
3339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3340 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3342 break 2
3344 done
3345 done
3346 IFS=$as_save_IFS
3348 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="c++"
3350 esac
3352 CXX=$ac_cv_path_CXX
3353 if test -n "$CXX"; then
3354 { echo "$as_me:$LINENO: result: $CXX" >&5
3355 echo "${ECHO_T}$CXX" >&6; }
3356 else
3357 { echo "$as_me:$LINENO: result: no" >&5
3358 echo "${ECHO_T}no" >&6; }
3362 esac
3363 if test "$CXX" = "notfound"
3364 then
3365 CXX=""
3368 if test -z "$CXX"
3369 then
3370 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
3372 # Extract the first word of "$ac_prog", so it can be a program name with args.
3373 set dummy $ac_prog; ac_word=$2
3374 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3376 if test "${ac_cv_prog_CXX+set}" = set; then
3377 echo $ECHO_N "(cached) $ECHO_C" >&6
3378 else
3379 if test -n "$CXX"; then
3380 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3381 else
3382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3383 for as_dir in $PATH
3385 IFS=$as_save_IFS
3386 test -z "$as_dir" && as_dir=.
3387 for ac_exec_ext in '' $ac_executable_extensions; do
3388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3389 ac_cv_prog_CXX="$ac_prog"
3390 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3391 break 2
3393 done
3394 done
3395 IFS=$as_save_IFS
3399 CXX=$ac_cv_prog_CXX
3400 if test -n "$CXX"; then
3401 { echo "$as_me:$LINENO: result: $CXX" >&5
3402 echo "${ECHO_T}$CXX" >&6; }
3403 else
3404 { echo "$as_me:$LINENO: result: no" >&5
3405 echo "${ECHO_T}no" >&6; }
3409 test -n "$CXX" && break
3410 done
3411 test -n "$CXX" || CXX="notfound"
3413 if test "$CXX" = "notfound"
3414 then
3415 CXX=""
3418 if test "$preset_cxx" != "$CXX"
3419 then
3420 { echo "$as_me:$LINENO: WARNING:
3422 By default, distutils will build C++ extension modules with \"$CXX\".
3423 If this is not intended, then set CXX on the configure command line.
3424 " >&5
3425 echo "$as_me: WARNING:
3427 By default, distutils will build C++ extension modules with \"$CXX\".
3428 If this is not intended, then set CXX on the configure command line.
3429 " >&2;}
3433 # checks for UNIX variants that set C preprocessor variables
3435 ac_ext=c
3436 ac_cpp='$CPP $CPPFLAGS'
3437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3440 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3441 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3442 # On Suns, sometimes $CPP names a directory.
3443 if test -n "$CPP" && test -d "$CPP"; then
3444 CPP=
3446 if test -z "$CPP"; then
3447 if test "${ac_cv_prog_CPP+set}" = set; then
3448 echo $ECHO_N "(cached) $ECHO_C" >&6
3449 else
3450 # Double quotes because CPP needs to be expanded
3451 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3453 ac_preproc_ok=false
3454 for ac_c_preproc_warn_flag in '' yes
3456 # Use a header file that comes with gcc, so configuring glibc
3457 # with a fresh cross-compiler works.
3458 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3459 # <limits.h> exists even on freestanding compilers.
3460 # On the NeXT, cc -E runs the code through the compiler's parser,
3461 # not just through cpp. "Syntax error" is here to catch this case.
3462 cat >conftest.$ac_ext <<_ACEOF
3463 /* confdefs.h. */
3464 _ACEOF
3465 cat confdefs.h >>conftest.$ac_ext
3466 cat >>conftest.$ac_ext <<_ACEOF
3467 /* end confdefs.h. */
3468 #ifdef __STDC__
3469 # include <limits.h>
3470 #else
3471 # include <assert.h>
3472 #endif
3473 Syntax error
3474 _ACEOF
3475 if { (ac_try="$ac_cpp conftest.$ac_ext"
3476 case "(($ac_try" in
3477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3478 *) ac_try_echo=$ac_try;;
3479 esac
3480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3481 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3482 ac_status=$?
3483 grep -v '^ *+' conftest.er1 >conftest.err
3484 rm -f conftest.er1
3485 cat conftest.err >&5
3486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3487 (exit $ac_status); } >/dev/null && {
3488 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3489 test ! -s conftest.err
3490 }; then
3492 else
3493 echo "$as_me: failed program was:" >&5
3494 sed 's/^/| /' conftest.$ac_ext >&5
3496 # Broken: fails on valid input.
3497 continue
3500 rm -f conftest.err conftest.$ac_ext
3502 # OK, works on sane cases. Now check whether nonexistent headers
3503 # can be detected and how.
3504 cat >conftest.$ac_ext <<_ACEOF
3505 /* confdefs.h. */
3506 _ACEOF
3507 cat confdefs.h >>conftest.$ac_ext
3508 cat >>conftest.$ac_ext <<_ACEOF
3509 /* end confdefs.h. */
3510 #include <ac_nonexistent.h>
3511 _ACEOF
3512 if { (ac_try="$ac_cpp conftest.$ac_ext"
3513 case "(($ac_try" in
3514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3515 *) ac_try_echo=$ac_try;;
3516 esac
3517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3518 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3519 ac_status=$?
3520 grep -v '^ *+' conftest.er1 >conftest.err
3521 rm -f conftest.er1
3522 cat conftest.err >&5
3523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3524 (exit $ac_status); } >/dev/null && {
3525 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3526 test ! -s conftest.err
3527 }; then
3528 # Broken: success on invalid input.
3529 continue
3530 else
3531 echo "$as_me: failed program was:" >&5
3532 sed 's/^/| /' conftest.$ac_ext >&5
3534 # Passes both tests.
3535 ac_preproc_ok=:
3536 break
3539 rm -f conftest.err conftest.$ac_ext
3541 done
3542 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3543 rm -f conftest.err conftest.$ac_ext
3544 if $ac_preproc_ok; then
3545 break
3548 done
3549 ac_cv_prog_CPP=$CPP
3552 CPP=$ac_cv_prog_CPP
3553 else
3554 ac_cv_prog_CPP=$CPP
3556 { echo "$as_me:$LINENO: result: $CPP" >&5
3557 echo "${ECHO_T}$CPP" >&6; }
3558 ac_preproc_ok=false
3559 for ac_c_preproc_warn_flag in '' yes
3561 # Use a header file that comes with gcc, so configuring glibc
3562 # with a fresh cross-compiler works.
3563 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3564 # <limits.h> exists even on freestanding compilers.
3565 # On the NeXT, cc -E runs the code through the compiler's parser,
3566 # not just through cpp. "Syntax error" is here to catch this case.
3567 cat >conftest.$ac_ext <<_ACEOF
3568 /* confdefs.h. */
3569 _ACEOF
3570 cat confdefs.h >>conftest.$ac_ext
3571 cat >>conftest.$ac_ext <<_ACEOF
3572 /* end confdefs.h. */
3573 #ifdef __STDC__
3574 # include <limits.h>
3575 #else
3576 # include <assert.h>
3577 #endif
3578 Syntax error
3579 _ACEOF
3580 if { (ac_try="$ac_cpp conftest.$ac_ext"
3581 case "(($ac_try" in
3582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3583 *) ac_try_echo=$ac_try;;
3584 esac
3585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3586 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3587 ac_status=$?
3588 grep -v '^ *+' conftest.er1 >conftest.err
3589 rm -f conftest.er1
3590 cat conftest.err >&5
3591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592 (exit $ac_status); } >/dev/null && {
3593 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3594 test ! -s conftest.err
3595 }; then
3597 else
3598 echo "$as_me: failed program was:" >&5
3599 sed 's/^/| /' conftest.$ac_ext >&5
3601 # Broken: fails on valid input.
3602 continue
3605 rm -f conftest.err conftest.$ac_ext
3607 # OK, works on sane cases. Now check whether nonexistent headers
3608 # can be detected and how.
3609 cat >conftest.$ac_ext <<_ACEOF
3610 /* confdefs.h. */
3611 _ACEOF
3612 cat confdefs.h >>conftest.$ac_ext
3613 cat >>conftest.$ac_ext <<_ACEOF
3614 /* end confdefs.h. */
3615 #include <ac_nonexistent.h>
3616 _ACEOF
3617 if { (ac_try="$ac_cpp conftest.$ac_ext"
3618 case "(($ac_try" in
3619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3620 *) ac_try_echo=$ac_try;;
3621 esac
3622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3623 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3624 ac_status=$?
3625 grep -v '^ *+' conftest.er1 >conftest.err
3626 rm -f conftest.er1
3627 cat conftest.err >&5
3628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3629 (exit $ac_status); } >/dev/null && {
3630 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3631 test ! -s conftest.err
3632 }; then
3633 # Broken: success on invalid input.
3634 continue
3635 else
3636 echo "$as_me: failed program was:" >&5
3637 sed 's/^/| /' conftest.$ac_ext >&5
3639 # Passes both tests.
3640 ac_preproc_ok=:
3641 break
3644 rm -f conftest.err conftest.$ac_ext
3646 done
3647 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3648 rm -f conftest.err conftest.$ac_ext
3649 if $ac_preproc_ok; then
3651 else
3652 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3653 See \`config.log' for more details." >&5
3654 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3655 See \`config.log' for more details." >&2;}
3656 { (exit 1); exit 1; }; }
3659 ac_ext=c
3660 ac_cpp='$CPP $CPPFLAGS'
3661 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3662 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3663 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3666 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3667 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3668 if test "${ac_cv_path_GREP+set}" = set; then
3669 echo $ECHO_N "(cached) $ECHO_C" >&6
3670 else
3671 # Extract the first word of "grep ggrep" to use in msg output
3672 if test -z "$GREP"; then
3673 set dummy grep ggrep; ac_prog_name=$2
3674 if test "${ac_cv_path_GREP+set}" = set; then
3675 echo $ECHO_N "(cached) $ECHO_C" >&6
3676 else
3677 ac_path_GREP_found=false
3678 # Loop through the user's path and test for each of PROGNAME-LIST
3679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3680 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3682 IFS=$as_save_IFS
3683 test -z "$as_dir" && as_dir=.
3684 for ac_prog in grep ggrep; do
3685 for ac_exec_ext in '' $ac_executable_extensions; do
3686 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3687 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3688 # Check for GNU ac_path_GREP and select it if it is found.
3689 # Check for GNU $ac_path_GREP
3690 case `"$ac_path_GREP" --version 2>&1` in
3691 *GNU*)
3692 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3694 ac_count=0
3695 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3696 while :
3698 cat "conftest.in" "conftest.in" >"conftest.tmp"
3699 mv "conftest.tmp" "conftest.in"
3700 cp "conftest.in" "conftest.nl"
3701 echo 'GREP' >> "conftest.nl"
3702 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3703 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3704 ac_count=`expr $ac_count + 1`
3705 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3706 # Best one so far, save it but keep looking for a better one
3707 ac_cv_path_GREP="$ac_path_GREP"
3708 ac_path_GREP_max=$ac_count
3710 # 10*(2^10) chars as input seems more than enough
3711 test $ac_count -gt 10 && break
3712 done
3713 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3714 esac
3717 $ac_path_GREP_found && break 3
3718 done
3719 done
3721 done
3722 IFS=$as_save_IFS
3727 GREP="$ac_cv_path_GREP"
3728 if test -z "$GREP"; then
3729 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3730 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3731 { (exit 1); exit 1; }; }
3734 else
3735 ac_cv_path_GREP=$GREP
3740 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3741 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3742 GREP="$ac_cv_path_GREP"
3745 { echo "$as_me:$LINENO: checking for egrep" >&5
3746 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3747 if test "${ac_cv_path_EGREP+set}" = set; then
3748 echo $ECHO_N "(cached) $ECHO_C" >&6
3749 else
3750 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3751 then ac_cv_path_EGREP="$GREP -E"
3752 else
3753 # Extract the first word of "egrep" to use in msg output
3754 if test -z "$EGREP"; then
3755 set dummy egrep; ac_prog_name=$2
3756 if test "${ac_cv_path_EGREP+set}" = set; then
3757 echo $ECHO_N "(cached) $ECHO_C" >&6
3758 else
3759 ac_path_EGREP_found=false
3760 # Loop through the user's path and test for each of PROGNAME-LIST
3761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3762 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3764 IFS=$as_save_IFS
3765 test -z "$as_dir" && as_dir=.
3766 for ac_prog in egrep; do
3767 for ac_exec_ext in '' $ac_executable_extensions; do
3768 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3769 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3770 # Check for GNU ac_path_EGREP and select it if it is found.
3771 # Check for GNU $ac_path_EGREP
3772 case `"$ac_path_EGREP" --version 2>&1` in
3773 *GNU*)
3774 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3776 ac_count=0
3777 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3778 while :
3780 cat "conftest.in" "conftest.in" >"conftest.tmp"
3781 mv "conftest.tmp" "conftest.in"
3782 cp "conftest.in" "conftest.nl"
3783 echo 'EGREP' >> "conftest.nl"
3784 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3785 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3786 ac_count=`expr $ac_count + 1`
3787 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3788 # Best one so far, save it but keep looking for a better one
3789 ac_cv_path_EGREP="$ac_path_EGREP"
3790 ac_path_EGREP_max=$ac_count
3792 # 10*(2^10) chars as input seems more than enough
3793 test $ac_count -gt 10 && break
3794 done
3795 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3796 esac
3799 $ac_path_EGREP_found && break 3
3800 done
3801 done
3803 done
3804 IFS=$as_save_IFS
3809 EGREP="$ac_cv_path_EGREP"
3810 if test -z "$EGREP"; then
3811 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3812 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3813 { (exit 1); exit 1; }; }
3816 else
3817 ac_cv_path_EGREP=$EGREP
3823 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3824 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3825 EGREP="$ac_cv_path_EGREP"
3829 { echo "$as_me:$LINENO: checking for AIX" >&5
3830 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3831 cat >conftest.$ac_ext <<_ACEOF
3832 /* confdefs.h. */
3833 _ACEOF
3834 cat confdefs.h >>conftest.$ac_ext
3835 cat >>conftest.$ac_ext <<_ACEOF
3836 /* end confdefs.h. */
3837 #ifdef _AIX
3839 #endif
3841 _ACEOF
3842 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3843 $EGREP "yes" >/dev/null 2>&1; then
3844 { echo "$as_me:$LINENO: result: yes" >&5
3845 echo "${ECHO_T}yes" >&6; }
3846 cat >>confdefs.h <<\_ACEOF
3847 #define _ALL_SOURCE 1
3848 _ACEOF
3850 else
3851 { echo "$as_me:$LINENO: result: no" >&5
3852 echo "${ECHO_T}no" >&6; }
3854 rm -f -r conftest*
3858 # Check for unsupported systems
3859 case $ac_sys_system/$ac_sys_release in
3860 atheos*|Linux*/1*)
3861 echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported.
3862 echo See README for details.
3863 exit 1;;
3864 esac
3867 { echo "$as_me:$LINENO: checking for --with-suffix" >&5
3868 echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6; }
3870 # Check whether --with-suffix was given.
3871 if test "${with_suffix+set}" = set; then
3872 withval=$with_suffix;
3873 case $withval in
3874 no) EXEEXT=;;
3875 yes) EXEEXT=.exe;;
3876 *) EXEEXT=$withval;;
3877 esac
3880 { echo "$as_me:$LINENO: result: $EXEEXT" >&5
3881 echo "${ECHO_T}$EXEEXT" >&6; }
3883 # Test whether we're running on a non-case-sensitive system, in which
3884 # case we give a warning if no ext is given
3886 { echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
3887 echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6; }
3888 if test ! -d CaseSensitiveTestDir; then
3889 mkdir CaseSensitiveTestDir
3892 if test -d casesensitivetestdir
3893 then
3894 { echo "$as_me:$LINENO: result: yes" >&5
3895 echo "${ECHO_T}yes" >&6; }
3896 BUILDEXEEXT=.exe
3897 else
3898 { echo "$as_me:$LINENO: result: no" >&5
3899 echo "${ECHO_T}no" >&6; }
3900 BUILDEXEEXT=$EXEEXT
3902 rmdir CaseSensitiveTestDir
3904 case $MACHDEP in
3905 bsdos*)
3906 case $CC in
3907 gcc) CC="$CC -D_HAVE_BSDI";;
3908 esac;;
3909 esac
3911 case $ac_sys_system in
3912 hp*|HP*)
3913 case $CC in
3914 cc|*/cc) CC="$CC -Ae";;
3915 esac;;
3916 SunOS*)
3917 # Some functions have a prototype only with that define, e.g. confstr
3919 cat >>confdefs.h <<\_ACEOF
3920 #define __EXTENSIONS__ 1
3921 _ACEOF
3924 esac
3928 { echo "$as_me:$LINENO: checking LIBRARY" >&5
3929 echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6; }
3930 if test -z "$LIBRARY"
3931 then
3932 LIBRARY='libpython$(VERSION).a'
3934 { echo "$as_me:$LINENO: result: $LIBRARY" >&5
3935 echo "${ECHO_T}$LIBRARY" >&6; }
3937 # LDLIBRARY is the name of the library to link against (as opposed to the
3938 # name of the library into which to insert object files). BLDLIBRARY is also
3939 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
3940 # is blank as the main program is not linked directly against LDLIBRARY.
3941 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
3942 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
3943 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
3944 # DLLLIBRARY is the shared (i.e., DLL) library.
3946 # RUNSHARED is used to run shared python without installed libraries
3948 # INSTSONAME is the name of the shared library that will be use to install
3949 # on the system - some systems like version suffix, others don't
3956 LDLIBRARY="$LIBRARY"
3957 BLDLIBRARY='$(LDLIBRARY)'
3958 INSTSONAME='$(LDLIBRARY)'
3959 DLLLIBRARY=''
3960 LDLIBRARYDIR=''
3961 RUNSHARED=''
3963 # LINKCC is the command that links the python executable -- default is $(CC).
3964 # If CXX is set, and if it is needed to link a main function that was
3965 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
3966 # python might then depend on the C++ runtime
3967 # This is altered for AIX in order to build the export list before
3968 # linking.
3970 { echo "$as_me:$LINENO: checking LINKCC" >&5
3971 echo $ECHO_N "checking LINKCC... $ECHO_C" >&6; }
3972 if test -z "$LINKCC"
3973 then
3974 LINKCC='$(PURIFY) $(MAINCC)'
3975 case $ac_sys_system in
3976 AIX*)
3977 exp_extra="\"\""
3978 if test $ac_sys_release -ge 5 -o \
3979 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
3980 exp_extra="."
3982 LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
3983 QNX*)
3984 # qcc must be used because the other compilers do not
3985 # support -N.
3986 LINKCC=qcc;;
3987 esac
3989 { echo "$as_me:$LINENO: result: $LINKCC" >&5
3990 echo "${ECHO_T}$LINKCC" >&6; }
3992 # GNULD is set to "yes" if the GNU linker is used. If this goes wrong
3993 # make sure we default having it set to "no": this is used by
3994 # distutils.unixccompiler to know if it should add --enable-new-dtags
3995 # to linker command lines, and failing to detect GNU ld simply results
3996 # in the same bahaviour as before.
3998 { echo "$as_me:$LINENO: checking for GNU ld" >&5
3999 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4000 ac_prog=ld
4001 if test "$GCC" = yes; then
4002 ac_prog=`$CC -print-prog-name=ld`
4004 case `"$ac_prog" -V 2>&1 < /dev/null` in
4005 *GNU*)
4006 GNULD=yes;;
4008 GNULD=no;;
4009 esac
4010 { echo "$as_me:$LINENO: result: $GNULD" >&5
4011 echo "${ECHO_T}$GNULD" >&6; }
4013 { echo "$as_me:$LINENO: checking for --enable-shared" >&5
4014 echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6; }
4015 # Check whether --enable-shared was given.
4016 if test "${enable_shared+set}" = set; then
4017 enableval=$enable_shared;
4021 if test -z "$enable_shared"
4022 then
4023 case $ac_sys_system in
4024 CYGWIN* | atheos*)
4025 enable_shared="yes";;
4027 enable_shared="no";;
4028 esac
4030 { echo "$as_me:$LINENO: result: $enable_shared" >&5
4031 echo "${ECHO_T}$enable_shared" >&6; }
4033 { echo "$as_me:$LINENO: checking for --enable-profiling" >&5
4034 echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6; }
4035 # Check whether --enable-profiling was given.
4036 if test "${enable_profiling+set}" = set; then
4037 enableval=$enable_profiling; ac_save_cc="$CC"
4038 CC="$CC -pg"
4039 if test "$cross_compiling" = yes; then
4040 ac_enable_profiling="no"
4041 else
4042 cat >conftest.$ac_ext <<_ACEOF
4043 /* confdefs.h. */
4044 _ACEOF
4045 cat confdefs.h >>conftest.$ac_ext
4046 cat >>conftest.$ac_ext <<_ACEOF
4047 /* end confdefs.h. */
4048 int main() { return 0; }
4049 _ACEOF
4050 rm -f conftest$ac_exeext
4051 if { (ac_try="$ac_link"
4052 case "(($ac_try" in
4053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4054 *) ac_try_echo=$ac_try;;
4055 esac
4056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4057 (eval "$ac_link") 2>&5
4058 ac_status=$?
4059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4060 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4061 { (case "(($ac_try" in
4062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4063 *) ac_try_echo=$ac_try;;
4064 esac
4065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4066 (eval "$ac_try") 2>&5
4067 ac_status=$?
4068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4069 (exit $ac_status); }; }; then
4070 ac_enable_profiling="yes"
4071 else
4072 echo "$as_me: program exited with status $ac_status" >&5
4073 echo "$as_me: failed program was:" >&5
4074 sed 's/^/| /' conftest.$ac_ext >&5
4076 ( exit $ac_status )
4077 ac_enable_profiling="no"
4079 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4083 CC="$ac_save_cc"
4086 { echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5
4087 echo "${ECHO_T}$ac_enable_profiling" >&6; }
4089 case "$ac_enable_profiling" in
4090 "yes")
4091 BASECFLAGS="-pg $BASECFLAGS"
4092 LDFLAGS="-pg $LDFLAGS"
4094 esac
4096 { echo "$as_me:$LINENO: checking LDLIBRARY" >&5
4097 echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6; }
4099 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
4100 # library that we build, but we do not want to link against it (we
4101 # will find it with a -framework option). For this reason there is an
4102 # extra variable BLDLIBRARY against which Python and the extension
4103 # modules are linked, BLDLIBRARY. This is normally the same as
4104 # LDLIBRARY, but empty for MacOSX framework builds.
4105 if test "$enable_framework"
4106 then
4107 LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
4108 RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH"
4109 BLDLIBRARY=''
4110 else
4111 BLDLIBRARY='$(LDLIBRARY)'
4114 # Other platforms follow
4115 if test $enable_shared = "yes"; then
4117 cat >>confdefs.h <<\_ACEOF
4118 #define Py_ENABLE_SHARED 1
4119 _ACEOF
4121 case $ac_sys_system in
4122 BeOS*)
4123 LDLIBRARY='libpython$(VERSION).so'
4125 CYGWIN*)
4126 LDLIBRARY='libpython$(VERSION).dll.a'
4127 DLLLIBRARY='libpython$(VERSION).dll'
4129 SunOS*)
4130 LDLIBRARY='libpython$(VERSION).so'
4131 BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
4132 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4133 INSTSONAME="$LDLIBRARY".$SOVERSION
4135 Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*)
4136 LDLIBRARY='libpython$(VERSION).so'
4137 BLDLIBRARY='-L. -lpython$(VERSION)'
4138 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4139 case $ac_sys_system in
4140 FreeBSD*)
4141 SOVERSION=`echo $SOVERSION|cut -d "." -f 1`
4143 esac
4144 INSTSONAME="$LDLIBRARY".$SOVERSION
4146 hp*|HP*)
4147 case `uname -m` in
4148 ia64)
4149 LDLIBRARY='libpython$(VERSION).so'
4152 LDLIBRARY='libpython$(VERSION).sl'
4154 esac
4155 BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
4156 RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH}
4158 OSF*)
4159 LDLIBRARY='libpython$(VERSION).so'
4160 BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
4161 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4163 atheos*)
4164 LDLIBRARY='libpython$(VERSION).so'
4165 BLDLIBRARY='-L. -lpython$(VERSION)'
4166 RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
4168 Darwin*)
4169 LDLIBRARY='libpython$(VERSION).dylib'
4170 BLDLIBRARY='-L. -lpython$(VERSION)'
4171 RUNSHARED='DYLD_LIBRARY_PATH=`pwd`:${DYLD_LIBRARY_PATH}'
4174 esac
4175 else # shared is disabled
4176 case $ac_sys_system in
4177 CYGWIN*)
4178 BLDLIBRARY='$(LIBRARY)'
4179 LDLIBRARY='libpython$(VERSION).dll.a'
4181 esac
4184 { echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
4185 echo "${ECHO_T}$LDLIBRARY" >&6; }
4187 if test -n "$ac_tool_prefix"; then
4188 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4189 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4190 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4192 if test "${ac_cv_prog_RANLIB+set}" = set; then
4193 echo $ECHO_N "(cached) $ECHO_C" >&6
4194 else
4195 if test -n "$RANLIB"; then
4196 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4197 else
4198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4199 for as_dir in $PATH
4201 IFS=$as_save_IFS
4202 test -z "$as_dir" && as_dir=.
4203 for ac_exec_ext in '' $ac_executable_extensions; do
4204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4205 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4206 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4207 break 2
4209 done
4210 done
4211 IFS=$as_save_IFS
4215 RANLIB=$ac_cv_prog_RANLIB
4216 if test -n "$RANLIB"; then
4217 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4218 echo "${ECHO_T}$RANLIB" >&6; }
4219 else
4220 { echo "$as_me:$LINENO: result: no" >&5
4221 echo "${ECHO_T}no" >&6; }
4226 if test -z "$ac_cv_prog_RANLIB"; then
4227 ac_ct_RANLIB=$RANLIB
4228 # Extract the first word of "ranlib", so it can be a program name with args.
4229 set dummy ranlib; ac_word=$2
4230 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4232 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4233 echo $ECHO_N "(cached) $ECHO_C" >&6
4234 else
4235 if test -n "$ac_ct_RANLIB"; then
4236 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4237 else
4238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4239 for as_dir in $PATH
4241 IFS=$as_save_IFS
4242 test -z "$as_dir" && as_dir=.
4243 for ac_exec_ext in '' $ac_executable_extensions; do
4244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4245 ac_cv_prog_ac_ct_RANLIB="ranlib"
4246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4247 break 2
4249 done
4250 done
4251 IFS=$as_save_IFS
4255 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4256 if test -n "$ac_ct_RANLIB"; then
4257 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4258 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4259 else
4260 { echo "$as_me:$LINENO: result: no" >&5
4261 echo "${ECHO_T}no" >&6; }
4264 if test "x$ac_ct_RANLIB" = x; then
4265 RANLIB=":"
4266 else
4267 case $cross_compiling:$ac_tool_warned in
4268 yes:)
4269 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4270 whose name does not start with the host triplet. If you think this
4271 configuration is useful to you, please write to autoconf@gnu.org." >&5
4272 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4273 whose name does not start with the host triplet. If you think this
4274 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4275 ac_tool_warned=yes ;;
4276 esac
4277 RANLIB=$ac_ct_RANLIB
4279 else
4280 RANLIB="$ac_cv_prog_RANLIB"
4284 for ac_prog in ar aal
4286 # Extract the first word of "$ac_prog", so it can be a program name with args.
4287 set dummy $ac_prog; ac_word=$2
4288 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4290 if test "${ac_cv_prog_AR+set}" = set; then
4291 echo $ECHO_N "(cached) $ECHO_C" >&6
4292 else
4293 if test -n "$AR"; then
4294 ac_cv_prog_AR="$AR" # Let the user override the test.
4295 else
4296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4297 for as_dir in $PATH
4299 IFS=$as_save_IFS
4300 test -z "$as_dir" && as_dir=.
4301 for ac_exec_ext in '' $ac_executable_extensions; do
4302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4303 ac_cv_prog_AR="$ac_prog"
4304 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4305 break 2
4307 done
4308 done
4309 IFS=$as_save_IFS
4313 AR=$ac_cv_prog_AR
4314 if test -n "$AR"; then
4315 { echo "$as_me:$LINENO: result: $AR" >&5
4316 echo "${ECHO_T}$AR" >&6; }
4317 else
4318 { echo "$as_me:$LINENO: result: no" >&5
4319 echo "${ECHO_T}no" >&6; }
4323 test -n "$AR" && break
4324 done
4325 test -n "$AR" || AR="ar"
4328 # tweak ARFLAGS only if the user didn't set it on the command line
4330 if test -z "$ARFLAGS"
4331 then
4332 ARFLAGS="rc"
4336 # Extract the first word of "svnversion", so it can be a program name with args.
4337 set dummy svnversion; ac_word=$2
4338 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4340 if test "${ac_cv_prog_SVNVERSION+set}" = set; then
4341 echo $ECHO_N "(cached) $ECHO_C" >&6
4342 else
4343 if test -n "$SVNVERSION"; then
4344 ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test.
4345 else
4346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4347 for as_dir in $PATH
4349 IFS=$as_save_IFS
4350 test -z "$as_dir" && as_dir=.
4351 for ac_exec_ext in '' $ac_executable_extensions; do
4352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4353 ac_cv_prog_SVNVERSION="found"
4354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4355 break 2
4357 done
4358 done
4359 IFS=$as_save_IFS
4361 test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION="not-found"
4364 SVNVERSION=$ac_cv_prog_SVNVERSION
4365 if test -n "$SVNVERSION"; then
4366 { echo "$as_me:$LINENO: result: $SVNVERSION" >&5
4367 echo "${ECHO_T}$SVNVERSION" >&6; }
4368 else
4369 { echo "$as_me:$LINENO: result: no" >&5
4370 echo "${ECHO_T}no" >&6; }
4374 if test $SVNVERSION = found
4375 then
4376 SVNVERSION="svnversion \$(srcdir)"
4377 else
4378 SVNVERSION="echo Unversioned directory"
4381 case $MACHDEP in
4382 bsdos*|hp*|HP*)
4383 # install -d does not work on BSDI or HP-UX
4384 if test -z "$INSTALL"
4385 then
4386 INSTALL="${srcdir}/install-sh -c"
4388 esac
4389 ac_aux_dir=
4390 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4391 if test -f "$ac_dir/install-sh"; then
4392 ac_aux_dir=$ac_dir
4393 ac_install_sh="$ac_aux_dir/install-sh -c"
4394 break
4395 elif test -f "$ac_dir/install.sh"; then
4396 ac_aux_dir=$ac_dir
4397 ac_install_sh="$ac_aux_dir/install.sh -c"
4398 break
4399 elif test -f "$ac_dir/shtool"; then
4400 ac_aux_dir=$ac_dir
4401 ac_install_sh="$ac_aux_dir/shtool install -c"
4402 break
4404 done
4405 if test -z "$ac_aux_dir"; then
4406 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
4407 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
4408 { (exit 1); exit 1; }; }
4411 # These three variables are undocumented and unsupported,
4412 # and are intended to be withdrawn in a future Autoconf release.
4413 # They can cause serious problems if a builder's source tree is in a directory
4414 # whose full name contains unusual characters.
4415 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4416 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4417 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4420 # Find a good install program. We prefer a C program (faster),
4421 # so one script is as good as another. But avoid the broken or
4422 # incompatible versions:
4423 # SysV /etc/install, /usr/sbin/install
4424 # SunOS /usr/etc/install
4425 # IRIX /sbin/install
4426 # AIX /bin/install
4427 # AmigaOS /C/install, which installs bootblocks on floppy discs
4428 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4429 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4430 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4431 # OS/2's system install, which has a completely different semantic
4432 # ./install, which can be erroneously created by make from ./install.sh.
4433 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4434 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4435 if test -z "$INSTALL"; then
4436 if test "${ac_cv_path_install+set}" = set; then
4437 echo $ECHO_N "(cached) $ECHO_C" >&6
4438 else
4439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4440 for as_dir in $PATH
4442 IFS=$as_save_IFS
4443 test -z "$as_dir" && as_dir=.
4444 # Account for people who put trailing slashes in PATH elements.
4445 case $as_dir/ in
4446 ./ | .// | /cC/* | \
4447 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4448 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4449 /usr/ucb/* ) ;;
4451 # OSF1 and SCO ODT 3.0 have their own names for install.
4452 # Don't use installbsd from OSF since it installs stuff as root
4453 # by default.
4454 for ac_prog in ginstall scoinst install; do
4455 for ac_exec_ext in '' $ac_executable_extensions; do
4456 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4457 if test $ac_prog = install &&
4458 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4459 # AIX install. It has an incompatible calling convention.
4461 elif test $ac_prog = install &&
4462 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4463 # program-specific install script used by HP pwplus--don't use.
4465 else
4466 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4467 break 3
4470 done
4471 done
4473 esac
4474 done
4475 IFS=$as_save_IFS
4479 if test "${ac_cv_path_install+set}" = set; then
4480 INSTALL=$ac_cv_path_install
4481 else
4482 # As a last resort, use the slow shell script. Don't cache a
4483 # value for INSTALL within a source directory, because that will
4484 # break other packages using the cache if that directory is
4485 # removed, or if the value is a relative name.
4486 INSTALL=$ac_install_sh
4489 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4490 echo "${ECHO_T}$INSTALL" >&6; }
4492 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4493 # It thinks the first close brace ends the variable substitution.
4494 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4496 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4498 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4501 # Not every filesystem supports hard links
4503 if test -z "$LN" ; then
4504 case $ac_sys_system in
4505 BeOS*) LN="ln -s";;
4506 CYGWIN*) LN="ln -s";;
4507 atheos*) LN="ln -s";;
4508 *) LN=ln;;
4509 esac
4512 # Check for --with-pydebug
4513 { echo "$as_me:$LINENO: checking for --with-pydebug" >&5
4514 echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6; }
4516 # Check whether --with-pydebug was given.
4517 if test "${with_pydebug+set}" = set; then
4518 withval=$with_pydebug;
4519 if test "$withval" != no
4520 then
4522 cat >>confdefs.h <<\_ACEOF
4523 #define Py_DEBUG 1
4524 _ACEOF
4526 { echo "$as_me:$LINENO: result: yes" >&5
4527 echo "${ECHO_T}yes" >&6; };
4528 Py_DEBUG='true'
4529 else { echo "$as_me:$LINENO: result: no" >&5
4530 echo "${ECHO_T}no" >&6; }; Py_DEBUG='false'
4532 else
4533 { echo "$as_me:$LINENO: result: no" >&5
4534 echo "${ECHO_T}no" >&6; }
4538 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
4539 # merged with this chunk of code?
4541 # Optimizer/debugger flags
4542 # ------------------------
4543 # (The following bit of code is complicated enough - please keep things
4544 # indented properly. Just pretend you're editing Python code. ;-)
4546 # There are two parallel sets of case statements below, one that checks to
4547 # see if OPT was set and one that does BASECFLAGS setting based upon
4548 # compiler and platform. BASECFLAGS tweaks need to be made even if the
4549 # user set OPT.
4551 # tweak OPT based on compiler and platform, only if the user didn't set
4552 # it on the command line
4554 if test -z "$OPT"
4555 then
4556 case $GCC in
4557 yes)
4558 if test "$CC" != 'g++' ; then
4559 STRICT_PROTO="-Wstrict-prototypes"
4561 # For gcc 4.x we need to use -fwrapv so lets check if its supported
4562 if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then
4563 WRAP="-fwrapv"
4565 case $ac_cv_prog_cc_g in
4566 yes)
4567 if test "$Py_DEBUG" = 'true' ; then
4568 # Optimization messes up debuggers, so turn it off for
4569 # debug builds.
4570 OPT="-g -Wall $STRICT_PROTO"
4571 else
4572 OPT="-g $WRAP -O3 -Wall $STRICT_PROTO"
4576 OPT="-O3 -Wall $STRICT_PROTO"
4578 esac
4579 case $ac_sys_system in
4580 SCO_SV*) OPT="$OPT -m486 -DSCO5"
4582 esac
4586 OPT="-O"
4588 esac
4593 # The -arch flags for universal builds on OSX
4594 UNIVERSAL_ARCH_FLAGS=
4597 # tweak BASECFLAGS based on compiler and platform
4598 case $GCC in
4599 yes)
4600 # Python violates C99 rules, by casting between incompatible
4601 # pointer types. GCC may generate bad code as a result of that,
4602 # so use -fno-strict-aliasing if supported.
4603 { echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5
4604 echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6; }
4605 ac_save_cc="$CC"
4606 CC="$CC -fno-strict-aliasing"
4607 if test "${ac_cv_no_strict_aliasing_ok+set}" = set; then
4608 echo $ECHO_N "(cached) $ECHO_C" >&6
4609 else
4610 if test "$cross_compiling" = yes; then
4611 ac_cv_no_strict_aliasing_ok=no
4612 else
4613 cat >conftest.$ac_ext <<_ACEOF
4614 /* confdefs.h. */
4615 _ACEOF
4616 cat confdefs.h >>conftest.$ac_ext
4617 cat >>conftest.$ac_ext <<_ACEOF
4618 /* end confdefs.h. */
4619 int main() { return 0; }
4620 _ACEOF
4621 rm -f conftest$ac_exeext
4622 if { (ac_try="$ac_link"
4623 case "(($ac_try" in
4624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4625 *) ac_try_echo=$ac_try;;
4626 esac
4627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4628 (eval "$ac_link") 2>&5
4629 ac_status=$?
4630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4631 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4632 { (case "(($ac_try" in
4633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4634 *) ac_try_echo=$ac_try;;
4635 esac
4636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4637 (eval "$ac_try") 2>&5
4638 ac_status=$?
4639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4640 (exit $ac_status); }; }; then
4641 ac_cv_no_strict_aliasing_ok=yes
4642 else
4643 echo "$as_me: program exited with status $ac_status" >&5
4644 echo "$as_me: failed program was:" >&5
4645 sed 's/^/| /' conftest.$ac_ext >&5
4647 ( exit $ac_status )
4648 ac_cv_no_strict_aliasing_ok=no
4650 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4656 CC="$ac_save_cc"
4657 { echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5
4658 echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6; }
4659 if test $ac_cv_no_strict_aliasing_ok = yes
4660 then
4661 BASECFLAGS="$BASECFLAGS -fno-strict-aliasing"
4664 # if using gcc on alpha, use -mieee to get (near) full IEEE 754
4665 # support. Without this, treatment of subnormals doesn't follow
4666 # the standard.
4667 case $ac_sys_machine in
4668 alpha*)
4669 BASECFLAGS="$BASECFLAGS -mieee"
4671 esac
4673 case $ac_sys_system in
4674 SCO_SV*)
4675 BASECFLAGS="$BASECFLAGS -m486 -DSCO5"
4677 # is there any other compiler on Darwin besides gcc?
4678 Darwin*)
4679 # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd
4680 # used to be here, but non-Apple gcc doesn't accept them.
4683 if test "${enable_universalsdk}"; then
4684 UNIVERSAL_ARCH_FLAGS=""
4685 if test "$UNIVERSAL_ARCHS" = "32-bit" ; then
4686 UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386"
4687 ARCH_RUN_32BIT=""
4689 elif test "$UNIVERSAL_ARCHS" = "64-bit" ; then
4690 UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64"
4691 ARCH_RUN_32BIT="true"
4693 elif test "$UNIVERSAL_ARCHS" = "all" ; then
4694 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64"
4695 ARCH_RUN_32BIT="arch -i386 -ppc"
4697 elif test "$UNIVERSAL_ARCHS" = "intel" ; then
4698 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch x86_64"
4699 ARCH_RUN_32BIT="arch -i386"
4701 elif test "$UNIVERSAL_ARCHS" = "3-way" ; then
4702 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch x86_64"
4703 ARCH_RUN_32BIT="arch -i386 -ppc"
4705 else
4706 { { echo "$as_me:$LINENO: error: proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" >&5
4707 echo "$as_me: error: proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" >&2;}
4708 { (exit 1); exit 1; }; }
4713 BASECFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${BASECFLAGS}"
4714 tgt=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
4715 if test "${UNIVERSALSDK}" != "/" -a "${tgt}" '>' '10.4' ; then
4716 CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}"
4720 # Calculate the right deployment target for this build.
4722 cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
4723 if test ${cur_target} '>' 10.2; then
4724 cur_target=10.3
4725 if test ${enable_universalsdk}; then
4726 if test "${UNIVERSAL_ARCHS}" = "all"; then
4727 # Ensure that the default platform for a
4728 # 4-way universal build is OSX 10.5,
4729 # that's the first OS release where
4730 # 4-way builds make sense.
4731 cur_target='10.5'
4733 elif test "${UNIVERSAL_ARCHS}" = "3-way"; then
4734 cur_target='10.5'
4736 elif test "${UNIVERSAL_ARCHS}" = "intel"; then
4737 cur_target='10.5'
4739 elif test "${UNIVERSAL_ARCHS}" = "64-bit"; then
4740 cur_target='10.5'
4742 else
4743 if test `arch` = "i386"; then
4744 # On Intel macs default to a deployment
4745 # target of 10.4, that's the first OSX
4746 # release with Intel support.
4747 cur_target="10.4"
4751 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
4753 # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the
4754 # environment with a value that is the same as what we'll use
4755 # in the Makefile to ensure that we'll get the same compiler
4756 # environment during configure and build time.
4757 MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET"
4758 export MACOSX_DEPLOYMENT_TARGET
4759 EXPORT_MACOSX_DEPLOYMENT_TARGET=''
4762 OSF*)
4763 BASECFLAGS="$BASECFLAGS -mieee"
4765 esac
4769 case $ac_sys_system in
4770 OpenUNIX*|UnixWare*)
4771 BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
4773 OSF*)
4774 BASECFLAGS="$BASECFLAGS -ieee -std"
4776 SCO_SV*)
4777 BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5"
4779 esac
4781 esac
4783 if test "$Py_DEBUG" = 'true'; then
4785 else
4786 OPT="-DNDEBUG $OPT"
4789 if test "$ac_arch_flags"
4790 then
4791 BASECFLAGS="$BASECFLAGS $ac_arch_flags"
4794 # disable check for icc since it seems to pass, but generates a warning
4795 if test "$CC" = icc
4796 then
4797 ac_cv_opt_olimit_ok=no
4800 { echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
4801 echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6; }
4802 if test "${ac_cv_opt_olimit_ok+set}" = set; then
4803 echo $ECHO_N "(cached) $ECHO_C" >&6
4804 else
4805 ac_save_cc="$CC"
4806 CC="$CC -OPT:Olimit=0"
4807 if test "$cross_compiling" = yes; then
4808 ac_cv_opt_olimit_ok=no
4809 else
4810 cat >conftest.$ac_ext <<_ACEOF
4811 /* confdefs.h. */
4812 _ACEOF
4813 cat confdefs.h >>conftest.$ac_ext
4814 cat >>conftest.$ac_ext <<_ACEOF
4815 /* end confdefs.h. */
4816 int main() { return 0; }
4817 _ACEOF
4818 rm -f conftest$ac_exeext
4819 if { (ac_try="$ac_link"
4820 case "(($ac_try" in
4821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4822 *) ac_try_echo=$ac_try;;
4823 esac
4824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4825 (eval "$ac_link") 2>&5
4826 ac_status=$?
4827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4829 { (case "(($ac_try" in
4830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4831 *) ac_try_echo=$ac_try;;
4832 esac
4833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4834 (eval "$ac_try") 2>&5
4835 ac_status=$?
4836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4837 (exit $ac_status); }; }; then
4838 ac_cv_opt_olimit_ok=yes
4839 else
4840 echo "$as_me: program exited with status $ac_status" >&5
4841 echo "$as_me: failed program was:" >&5
4842 sed 's/^/| /' conftest.$ac_ext >&5
4844 ( exit $ac_status )
4845 ac_cv_opt_olimit_ok=no
4847 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4851 CC="$ac_save_cc"
4854 { echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
4855 echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6; }
4856 if test $ac_cv_opt_olimit_ok = yes; then
4857 case $ac_sys_system in
4858 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
4859 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
4860 # environment?
4861 Darwin*)
4864 BASECFLAGS="$BASECFLAGS -OPT:Olimit=0"
4866 esac
4867 else
4868 { echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
4869 echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6; }
4870 if test "${ac_cv_olimit_ok+set}" = set; then
4871 echo $ECHO_N "(cached) $ECHO_C" >&6
4872 else
4873 ac_save_cc="$CC"
4874 CC="$CC -Olimit 1500"
4875 if test "$cross_compiling" = yes; then
4876 ac_cv_olimit_ok=no
4877 else
4878 cat >conftest.$ac_ext <<_ACEOF
4879 /* confdefs.h. */
4880 _ACEOF
4881 cat confdefs.h >>conftest.$ac_ext
4882 cat >>conftest.$ac_ext <<_ACEOF
4883 /* end confdefs.h. */
4884 int main() { return 0; }
4885 _ACEOF
4886 rm -f conftest$ac_exeext
4887 if { (ac_try="$ac_link"
4888 case "(($ac_try" in
4889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4890 *) ac_try_echo=$ac_try;;
4891 esac
4892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4893 (eval "$ac_link") 2>&5
4894 ac_status=$?
4895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4897 { (case "(($ac_try" in
4898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4899 *) ac_try_echo=$ac_try;;
4900 esac
4901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4902 (eval "$ac_try") 2>&5
4903 ac_status=$?
4904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905 (exit $ac_status); }; }; then
4906 ac_cv_olimit_ok=yes
4907 else
4908 echo "$as_me: program exited with status $ac_status" >&5
4909 echo "$as_me: failed program was:" >&5
4910 sed 's/^/| /' conftest.$ac_ext >&5
4912 ( exit $ac_status )
4913 ac_cv_olimit_ok=no
4915 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4919 CC="$ac_save_cc"
4922 { echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
4923 echo "${ECHO_T}$ac_cv_olimit_ok" >&6; }
4924 if test $ac_cv_olimit_ok = yes; then
4925 BASECFLAGS="$BASECFLAGS -Olimit 1500"
4929 # Check whether GCC supports PyArg_ParseTuple format
4930 if test "$GCC" = "yes"
4931 then
4932 { echo "$as_me:$LINENO: checking whether gcc supports ParseTuple __format__" >&5
4933 echo $ECHO_N "checking whether gcc supports ParseTuple __format__... $ECHO_C" >&6; }
4934 save_CFLAGS=$CFLAGS
4935 CFLAGS="$CFLAGS -Werror"
4936 cat >conftest.$ac_ext <<_ACEOF
4937 /* confdefs.h. */
4938 _ACEOF
4939 cat confdefs.h >>conftest.$ac_ext
4940 cat >>conftest.$ac_ext <<_ACEOF
4941 /* end confdefs.h. */
4943 void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2)));
4946 main ()
4950 return 0;
4952 _ACEOF
4953 rm -f conftest.$ac_objext
4954 if { (ac_try="$ac_compile"
4955 case "(($ac_try" in
4956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4957 *) ac_try_echo=$ac_try;;
4958 esac
4959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4960 (eval "$ac_compile") 2>conftest.er1
4961 ac_status=$?
4962 grep -v '^ *+' conftest.er1 >conftest.err
4963 rm -f conftest.er1
4964 cat conftest.err >&5
4965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966 (exit $ac_status); } && {
4967 test -z "$ac_c_werror_flag" ||
4968 test ! -s conftest.err
4969 } && test -s conftest.$ac_objext; then
4971 cat >>confdefs.h <<\_ACEOF
4972 #define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1
4973 _ACEOF
4975 { echo "$as_me:$LINENO: result: yes" >&5
4976 echo "${ECHO_T}yes" >&6; }
4977 else
4978 echo "$as_me: failed program was:" >&5
4979 sed 's/^/| /' conftest.$ac_ext >&5
4981 { echo "$as_me:$LINENO: result: no" >&5
4982 echo "${ECHO_T}no" >&6; }
4986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4987 CFLAGS=$save_CFLAGS
4990 # On some compilers, pthreads are available without further options
4991 # (e.g. MacOS X). On some of these systems, the compiler will not
4992 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
4993 # So we have to see first whether pthreads are available without
4994 # options before we can check whether -Kpthread improves anything.
4995 { echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
4996 echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6; }
4997 if test "${ac_cv_pthread_is_default+set}" = set; then
4998 echo $ECHO_N "(cached) $ECHO_C" >&6
4999 else
5000 if test "$cross_compiling" = yes; then
5001 ac_cv_pthread_is_default=no
5002 else
5003 cat >conftest.$ac_ext <<_ACEOF
5004 /* confdefs.h. */
5005 _ACEOF
5006 cat confdefs.h >>conftest.$ac_ext
5007 cat >>conftest.$ac_ext <<_ACEOF
5008 /* end confdefs.h. */
5010 #include <pthread.h>
5012 void* routine(void* p){return NULL;}
5014 int main(){
5015 pthread_t p;
5016 if(pthread_create(&p,NULL,routine,NULL)!=0)
5017 return 1;
5018 (void)pthread_detach(p);
5019 return 0;
5022 _ACEOF
5023 rm -f conftest$ac_exeext
5024 if { (ac_try="$ac_link"
5025 case "(($ac_try" in
5026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5027 *) ac_try_echo=$ac_try;;
5028 esac
5029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5030 (eval "$ac_link") 2>&5
5031 ac_status=$?
5032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5033 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5034 { (case "(($ac_try" in
5035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5036 *) ac_try_echo=$ac_try;;
5037 esac
5038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5039 (eval "$ac_try") 2>&5
5040 ac_status=$?
5041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042 (exit $ac_status); }; }; then
5044 ac_cv_pthread_is_default=yes
5045 ac_cv_kthread=no
5046 ac_cv_pthread=no
5048 else
5049 echo "$as_me: program exited with status $ac_status" >&5
5050 echo "$as_me: failed program was:" >&5
5051 sed 's/^/| /' conftest.$ac_ext >&5
5053 ( exit $ac_status )
5054 ac_cv_pthread_is_default=no
5056 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5063 { echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
5064 echo "${ECHO_T}$ac_cv_pthread_is_default" >&6; }
5067 if test $ac_cv_pthread_is_default = yes
5068 then
5069 ac_cv_kpthread=no
5070 else
5071 # -Kpthread, if available, provides the right #defines
5072 # and linker options to make pthread_create available
5073 # Some compilers won't report that they do not support -Kpthread,
5074 # so we need to run a program to see whether it really made the
5075 # function available.
5076 { echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
5077 echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6; }
5078 if test "${ac_cv_kpthread+set}" = set; then
5079 echo $ECHO_N "(cached) $ECHO_C" >&6
5080 else
5081 ac_save_cc="$CC"
5082 CC="$CC -Kpthread"
5083 if test "$cross_compiling" = yes; then
5084 ac_cv_kpthread=no
5085 else
5086 cat >conftest.$ac_ext <<_ACEOF
5087 /* confdefs.h. */
5088 _ACEOF
5089 cat confdefs.h >>conftest.$ac_ext
5090 cat >>conftest.$ac_ext <<_ACEOF
5091 /* end confdefs.h. */
5093 #include <pthread.h>
5095 void* routine(void* p){return NULL;}
5097 int main(){
5098 pthread_t p;
5099 if(pthread_create(&p,NULL,routine,NULL)!=0)
5100 return 1;
5101 (void)pthread_detach(p);
5102 return 0;
5105 _ACEOF
5106 rm -f conftest$ac_exeext
5107 if { (ac_try="$ac_link"
5108 case "(($ac_try" in
5109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5110 *) ac_try_echo=$ac_try;;
5111 esac
5112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5113 (eval "$ac_link") 2>&5
5114 ac_status=$?
5115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5116 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5117 { (case "(($ac_try" in
5118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5119 *) ac_try_echo=$ac_try;;
5120 esac
5121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5122 (eval "$ac_try") 2>&5
5123 ac_status=$?
5124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5125 (exit $ac_status); }; }; then
5126 ac_cv_kpthread=yes
5127 else
5128 echo "$as_me: program exited with status $ac_status" >&5
5129 echo "$as_me: failed program was:" >&5
5130 sed 's/^/| /' conftest.$ac_ext >&5
5132 ( exit $ac_status )
5133 ac_cv_kpthread=no
5135 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5139 CC="$ac_save_cc"
5142 { echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
5143 echo "${ECHO_T}$ac_cv_kpthread" >&6; }
5146 if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no
5147 then
5148 # -Kthread, if available, provides the right #defines
5149 # and linker options to make pthread_create available
5150 # Some compilers won't report that they do not support -Kthread,
5151 # so we need to run a program to see whether it really made the
5152 # function available.
5153 { echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
5154 echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6; }
5155 if test "${ac_cv_kthread+set}" = set; then
5156 echo $ECHO_N "(cached) $ECHO_C" >&6
5157 else
5158 ac_save_cc="$CC"
5159 CC="$CC -Kthread"
5160 if test "$cross_compiling" = yes; then
5161 ac_cv_kthread=no
5162 else
5163 cat >conftest.$ac_ext <<_ACEOF
5164 /* confdefs.h. */
5165 _ACEOF
5166 cat confdefs.h >>conftest.$ac_ext
5167 cat >>conftest.$ac_ext <<_ACEOF
5168 /* end confdefs.h. */
5170 #include <pthread.h>
5172 void* routine(void* p){return NULL;}
5174 int main(){
5175 pthread_t p;
5176 if(pthread_create(&p,NULL,routine,NULL)!=0)
5177 return 1;
5178 (void)pthread_detach(p);
5179 return 0;
5182 _ACEOF
5183 rm -f conftest$ac_exeext
5184 if { (ac_try="$ac_link"
5185 case "(($ac_try" in
5186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5187 *) ac_try_echo=$ac_try;;
5188 esac
5189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5190 (eval "$ac_link") 2>&5
5191 ac_status=$?
5192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5193 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5194 { (case "(($ac_try" in
5195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5196 *) ac_try_echo=$ac_try;;
5197 esac
5198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5199 (eval "$ac_try") 2>&5
5200 ac_status=$?
5201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5202 (exit $ac_status); }; }; then
5203 ac_cv_kthread=yes
5204 else
5205 echo "$as_me: program exited with status $ac_status" >&5
5206 echo "$as_me: failed program was:" >&5
5207 sed 's/^/| /' conftest.$ac_ext >&5
5209 ( exit $ac_status )
5210 ac_cv_kthread=no
5212 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5216 CC="$ac_save_cc"
5219 { echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
5220 echo "${ECHO_T}$ac_cv_kthread" >&6; }
5223 if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no
5224 then
5225 # -pthread, if available, provides the right #defines
5226 # and linker options to make pthread_create available
5227 # Some compilers won't report that they do not support -pthread,
5228 # so we need to run a program to see whether it really made the
5229 # function available.
5230 { echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
5231 echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6; }
5232 if test "${ac_cv_thread+set}" = set; then
5233 echo $ECHO_N "(cached) $ECHO_C" >&6
5234 else
5235 ac_save_cc="$CC"
5236 CC="$CC -pthread"
5237 if test "$cross_compiling" = yes; then
5238 ac_cv_pthread=no
5239 else
5240 cat >conftest.$ac_ext <<_ACEOF
5241 /* confdefs.h. */
5242 _ACEOF
5243 cat confdefs.h >>conftest.$ac_ext
5244 cat >>conftest.$ac_ext <<_ACEOF
5245 /* end confdefs.h. */
5247 #include <pthread.h>
5249 void* routine(void* p){return NULL;}
5251 int main(){
5252 pthread_t p;
5253 if(pthread_create(&p,NULL,routine,NULL)!=0)
5254 return 1;
5255 (void)pthread_detach(p);
5256 return 0;
5259 _ACEOF
5260 rm -f conftest$ac_exeext
5261 if { (ac_try="$ac_link"
5262 case "(($ac_try" in
5263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5264 *) ac_try_echo=$ac_try;;
5265 esac
5266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5267 (eval "$ac_link") 2>&5
5268 ac_status=$?
5269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5270 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5271 { (case "(($ac_try" in
5272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5273 *) ac_try_echo=$ac_try;;
5274 esac
5275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5276 (eval "$ac_try") 2>&5
5277 ac_status=$?
5278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5279 (exit $ac_status); }; }; then
5280 ac_cv_pthread=yes
5281 else
5282 echo "$as_me: program exited with status $ac_status" >&5
5283 echo "$as_me: failed program was:" >&5
5284 sed 's/^/| /' conftest.$ac_ext >&5
5286 ( exit $ac_status )
5287 ac_cv_pthread=no
5289 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5293 CC="$ac_save_cc"
5296 { echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
5297 echo "${ECHO_T}$ac_cv_pthread" >&6; }
5300 # If we have set a CC compiler flag for thread support then
5301 # check if it works for CXX, too.
5302 ac_cv_cxx_thread=no
5303 if test ! -z "$CXX"
5304 then
5305 { echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5
5306 echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6; }
5307 ac_save_cxx="$CXX"
5309 if test "$ac_cv_kpthread" = "yes"
5310 then
5311 CXX="$CXX -Kpthread"
5312 ac_cv_cxx_thread=yes
5313 elif test "$ac_cv_kthread" = "yes"
5314 then
5315 CXX="$CXX -Kthread"
5316 ac_cv_cxx_thread=yes
5317 elif test "$ac_cv_pthread" = "yes"
5318 then
5319 CXX="$CXX -pthread"
5320 ac_cv_cxx_thread=yes
5323 if test $ac_cv_cxx_thread = yes
5324 then
5325 echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext
5326 $CXX -c conftest.$ac_ext 2>&5
5327 if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \
5328 && test -s conftest$ac_exeext && ./conftest$ac_exeext
5329 then
5330 ac_cv_cxx_thread=yes
5331 else
5332 ac_cv_cxx_thread=no
5334 rm -fr conftest*
5336 { echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
5337 echo "${ECHO_T}$ac_cv_cxx_thread" >&6; }
5339 CXX="$ac_save_cxx"
5342 # checks for header files
5343 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5344 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5345 if test "${ac_cv_header_stdc+set}" = set; then
5346 echo $ECHO_N "(cached) $ECHO_C" >&6
5347 else
5348 cat >conftest.$ac_ext <<_ACEOF
5349 /* confdefs.h. */
5350 _ACEOF
5351 cat confdefs.h >>conftest.$ac_ext
5352 cat >>conftest.$ac_ext <<_ACEOF
5353 /* end confdefs.h. */
5354 #include <stdlib.h>
5355 #include <stdarg.h>
5356 #include <string.h>
5357 #include <float.h>
5360 main ()
5364 return 0;
5366 _ACEOF
5367 rm -f conftest.$ac_objext
5368 if { (ac_try="$ac_compile"
5369 case "(($ac_try" in
5370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5371 *) ac_try_echo=$ac_try;;
5372 esac
5373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5374 (eval "$ac_compile") 2>conftest.er1
5375 ac_status=$?
5376 grep -v '^ *+' conftest.er1 >conftest.err
5377 rm -f conftest.er1
5378 cat conftest.err >&5
5379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5380 (exit $ac_status); } && {
5381 test -z "$ac_c_werror_flag" ||
5382 test ! -s conftest.err
5383 } && test -s conftest.$ac_objext; then
5384 ac_cv_header_stdc=yes
5385 else
5386 echo "$as_me: failed program was:" >&5
5387 sed 's/^/| /' conftest.$ac_ext >&5
5389 ac_cv_header_stdc=no
5392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5394 if test $ac_cv_header_stdc = yes; then
5395 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5396 cat >conftest.$ac_ext <<_ACEOF
5397 /* confdefs.h. */
5398 _ACEOF
5399 cat confdefs.h >>conftest.$ac_ext
5400 cat >>conftest.$ac_ext <<_ACEOF
5401 /* end confdefs.h. */
5402 #include <string.h>
5404 _ACEOF
5405 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5406 $EGREP "memchr" >/dev/null 2>&1; then
5408 else
5409 ac_cv_header_stdc=no
5411 rm -f -r conftest*
5415 if test $ac_cv_header_stdc = yes; then
5416 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5417 cat >conftest.$ac_ext <<_ACEOF
5418 /* confdefs.h. */
5419 _ACEOF
5420 cat confdefs.h >>conftest.$ac_ext
5421 cat >>conftest.$ac_ext <<_ACEOF
5422 /* end confdefs.h. */
5423 #include <stdlib.h>
5425 _ACEOF
5426 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5427 $EGREP "free" >/dev/null 2>&1; then
5429 else
5430 ac_cv_header_stdc=no
5432 rm -f -r conftest*
5436 if test $ac_cv_header_stdc = yes; then
5437 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5438 if test "$cross_compiling" = yes; then
5440 else
5441 cat >conftest.$ac_ext <<_ACEOF
5442 /* confdefs.h. */
5443 _ACEOF
5444 cat confdefs.h >>conftest.$ac_ext
5445 cat >>conftest.$ac_ext <<_ACEOF
5446 /* end confdefs.h. */
5447 #include <ctype.h>
5448 #include <stdlib.h>
5449 #if ((' ' & 0x0FF) == 0x020)
5450 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5451 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5452 #else
5453 # define ISLOWER(c) \
5454 (('a' <= (c) && (c) <= 'i') \
5455 || ('j' <= (c) && (c) <= 'r') \
5456 || ('s' <= (c) && (c) <= 'z'))
5457 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5458 #endif
5460 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5462 main ()
5464 int i;
5465 for (i = 0; i < 256; i++)
5466 if (XOR (islower (i), ISLOWER (i))
5467 || toupper (i) != TOUPPER (i))
5468 return 2;
5469 return 0;
5471 _ACEOF
5472 rm -f conftest$ac_exeext
5473 if { (ac_try="$ac_link"
5474 case "(($ac_try" in
5475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5476 *) ac_try_echo=$ac_try;;
5477 esac
5478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5479 (eval "$ac_link") 2>&5
5480 ac_status=$?
5481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5482 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5483 { (case "(($ac_try" in
5484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5485 *) ac_try_echo=$ac_try;;
5486 esac
5487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5488 (eval "$ac_try") 2>&5
5489 ac_status=$?
5490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5491 (exit $ac_status); }; }; then
5493 else
5494 echo "$as_me: program exited with status $ac_status" >&5
5495 echo "$as_me: failed program was:" >&5
5496 sed 's/^/| /' conftest.$ac_ext >&5
5498 ( exit $ac_status )
5499 ac_cv_header_stdc=no
5501 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5507 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5508 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5509 if test $ac_cv_header_stdc = yes; then
5511 cat >>confdefs.h <<\_ACEOF
5512 #define STDC_HEADERS 1
5513 _ACEOF
5517 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5527 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5528 inttypes.h stdint.h unistd.h
5530 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5531 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5532 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5533 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5534 echo $ECHO_N "(cached) $ECHO_C" >&6
5535 else
5536 cat >conftest.$ac_ext <<_ACEOF
5537 /* confdefs.h. */
5538 _ACEOF
5539 cat confdefs.h >>conftest.$ac_ext
5540 cat >>conftest.$ac_ext <<_ACEOF
5541 /* end confdefs.h. */
5542 $ac_includes_default
5544 #include <$ac_header>
5545 _ACEOF
5546 rm -f conftest.$ac_objext
5547 if { (ac_try="$ac_compile"
5548 case "(($ac_try" in
5549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5550 *) ac_try_echo=$ac_try;;
5551 esac
5552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5553 (eval "$ac_compile") 2>conftest.er1
5554 ac_status=$?
5555 grep -v '^ *+' conftest.er1 >conftest.err
5556 rm -f conftest.er1
5557 cat conftest.err >&5
5558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5559 (exit $ac_status); } && {
5560 test -z "$ac_c_werror_flag" ||
5561 test ! -s conftest.err
5562 } && test -s conftest.$ac_objext; then
5563 eval "$as_ac_Header=yes"
5564 else
5565 echo "$as_me: failed program was:" >&5
5566 sed 's/^/| /' conftest.$ac_ext >&5
5568 eval "$as_ac_Header=no"
5571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5573 ac_res=`eval echo '${'$as_ac_Header'}'`
5574 { echo "$as_me:$LINENO: result: $ac_res" >&5
5575 echo "${ECHO_T}$ac_res" >&6; }
5576 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5577 cat >>confdefs.h <<_ACEOF
5578 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5579 _ACEOF
5583 done
5640 for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \
5641 fcntl.h grp.h \
5642 ieeefp.h io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \
5643 shadow.h signal.h stdint.h stropts.h termios.h thread.h \
5644 unistd.h utime.h \
5645 sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \
5646 sys/lock.h sys/mkdev.h sys/modem.h \
5647 sys/param.h sys/poll.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \
5648 sys/termio.h sys/time.h \
5649 sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \
5650 sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
5651 bluetooth/bluetooth.h linux/tipc.h
5653 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5654 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5655 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5656 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5657 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5658 echo $ECHO_N "(cached) $ECHO_C" >&6
5660 ac_res=`eval echo '${'$as_ac_Header'}'`
5661 { echo "$as_me:$LINENO: result: $ac_res" >&5
5662 echo "${ECHO_T}$ac_res" >&6; }
5663 else
5664 # Is the header compilable?
5665 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5666 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5667 cat >conftest.$ac_ext <<_ACEOF
5668 /* confdefs.h. */
5669 _ACEOF
5670 cat confdefs.h >>conftest.$ac_ext
5671 cat >>conftest.$ac_ext <<_ACEOF
5672 /* end confdefs.h. */
5673 $ac_includes_default
5674 #include <$ac_header>
5675 _ACEOF
5676 rm -f conftest.$ac_objext
5677 if { (ac_try="$ac_compile"
5678 case "(($ac_try" in
5679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5680 *) ac_try_echo=$ac_try;;
5681 esac
5682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5683 (eval "$ac_compile") 2>conftest.er1
5684 ac_status=$?
5685 grep -v '^ *+' conftest.er1 >conftest.err
5686 rm -f conftest.er1
5687 cat conftest.err >&5
5688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5689 (exit $ac_status); } && {
5690 test -z "$ac_c_werror_flag" ||
5691 test ! -s conftest.err
5692 } && test -s conftest.$ac_objext; then
5693 ac_header_compiler=yes
5694 else
5695 echo "$as_me: failed program was:" >&5
5696 sed 's/^/| /' conftest.$ac_ext >&5
5698 ac_header_compiler=no
5701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5702 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5703 echo "${ECHO_T}$ac_header_compiler" >&6; }
5705 # Is the header present?
5706 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5707 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5708 cat >conftest.$ac_ext <<_ACEOF
5709 /* confdefs.h. */
5710 _ACEOF
5711 cat confdefs.h >>conftest.$ac_ext
5712 cat >>conftest.$ac_ext <<_ACEOF
5713 /* end confdefs.h. */
5714 #include <$ac_header>
5715 _ACEOF
5716 if { (ac_try="$ac_cpp conftest.$ac_ext"
5717 case "(($ac_try" in
5718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5719 *) ac_try_echo=$ac_try;;
5720 esac
5721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5722 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5723 ac_status=$?
5724 grep -v '^ *+' conftest.er1 >conftest.err
5725 rm -f conftest.er1
5726 cat conftest.err >&5
5727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5728 (exit $ac_status); } >/dev/null && {
5729 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5730 test ! -s conftest.err
5731 }; then
5732 ac_header_preproc=yes
5733 else
5734 echo "$as_me: failed program was:" >&5
5735 sed 's/^/| /' conftest.$ac_ext >&5
5737 ac_header_preproc=no
5740 rm -f conftest.err conftest.$ac_ext
5741 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5742 echo "${ECHO_T}$ac_header_preproc" >&6; }
5744 # So? What about this header?
5745 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5746 yes:no: )
5747 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5748 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5749 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5750 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5751 ac_header_preproc=yes
5753 no:yes:* )
5754 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5755 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5756 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5757 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5758 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5759 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5760 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5761 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5762 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5763 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5764 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5765 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5766 ( cat <<\_ASBOX
5767 ## -------------------------------------- ##
5768 ## Report this to http://bugs.python.org/ ##
5769 ## -------------------------------------- ##
5770 _ASBOX
5771 ) | sed "s/^/$as_me: WARNING: /" >&2
5773 esac
5774 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5775 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5776 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5777 echo $ECHO_N "(cached) $ECHO_C" >&6
5778 else
5779 eval "$as_ac_Header=\$ac_header_preproc"
5781 ac_res=`eval echo '${'$as_ac_Header'}'`
5782 { echo "$as_me:$LINENO: result: $ac_res" >&5
5783 echo "${ECHO_T}$ac_res" >&6; }
5786 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5787 cat >>confdefs.h <<_ACEOF
5788 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5789 _ACEOF
5793 done
5800 ac_header_dirent=no
5801 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5802 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5803 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5804 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
5805 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5806 echo $ECHO_N "(cached) $ECHO_C" >&6
5807 else
5808 cat >conftest.$ac_ext <<_ACEOF
5809 /* confdefs.h. */
5810 _ACEOF
5811 cat confdefs.h >>conftest.$ac_ext
5812 cat >>conftest.$ac_ext <<_ACEOF
5813 /* end confdefs.h. */
5814 #include <sys/types.h>
5815 #include <$ac_hdr>
5818 main ()
5820 if ((DIR *) 0)
5821 return 0;
5823 return 0;
5825 _ACEOF
5826 rm -f conftest.$ac_objext
5827 if { (ac_try="$ac_compile"
5828 case "(($ac_try" in
5829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5830 *) ac_try_echo=$ac_try;;
5831 esac
5832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5833 (eval "$ac_compile") 2>conftest.er1
5834 ac_status=$?
5835 grep -v '^ *+' conftest.er1 >conftest.err
5836 rm -f conftest.er1
5837 cat conftest.err >&5
5838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5839 (exit $ac_status); } && {
5840 test -z "$ac_c_werror_flag" ||
5841 test ! -s conftest.err
5842 } && test -s conftest.$ac_objext; then
5843 eval "$as_ac_Header=yes"
5844 else
5845 echo "$as_me: failed program was:" >&5
5846 sed 's/^/| /' conftest.$ac_ext >&5
5848 eval "$as_ac_Header=no"
5851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5853 ac_res=`eval echo '${'$as_ac_Header'}'`
5854 { echo "$as_me:$LINENO: result: $ac_res" >&5
5855 echo "${ECHO_T}$ac_res" >&6; }
5856 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5857 cat >>confdefs.h <<_ACEOF
5858 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5859 _ACEOF
5861 ac_header_dirent=$ac_hdr; break
5864 done
5865 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5866 if test $ac_header_dirent = dirent.h; then
5867 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5868 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5869 if test "${ac_cv_search_opendir+set}" = set; then
5870 echo $ECHO_N "(cached) $ECHO_C" >&6
5871 else
5872 ac_func_search_save_LIBS=$LIBS
5873 cat >conftest.$ac_ext <<_ACEOF
5874 /* confdefs.h. */
5875 _ACEOF
5876 cat confdefs.h >>conftest.$ac_ext
5877 cat >>conftest.$ac_ext <<_ACEOF
5878 /* end confdefs.h. */
5880 /* Override any GCC internal prototype to avoid an error.
5881 Use char because int might match the return type of a GCC
5882 builtin and then its argument prototype would still apply. */
5883 #ifdef __cplusplus
5884 extern "C"
5885 #endif
5886 char opendir ();
5888 main ()
5890 return opendir ();
5892 return 0;
5894 _ACEOF
5895 for ac_lib in '' dir; do
5896 if test -z "$ac_lib"; then
5897 ac_res="none required"
5898 else
5899 ac_res=-l$ac_lib
5900 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5902 rm -f conftest.$ac_objext conftest$ac_exeext
5903 if { (ac_try="$ac_link"
5904 case "(($ac_try" in
5905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5906 *) ac_try_echo=$ac_try;;
5907 esac
5908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5909 (eval "$ac_link") 2>conftest.er1
5910 ac_status=$?
5911 grep -v '^ *+' conftest.er1 >conftest.err
5912 rm -f conftest.er1
5913 cat conftest.err >&5
5914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5915 (exit $ac_status); } && {
5916 test -z "$ac_c_werror_flag" ||
5917 test ! -s conftest.err
5918 } && test -s conftest$ac_exeext &&
5919 $as_test_x conftest$ac_exeext; then
5920 ac_cv_search_opendir=$ac_res
5921 else
5922 echo "$as_me: failed program was:" >&5
5923 sed 's/^/| /' conftest.$ac_ext >&5
5928 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5929 conftest$ac_exeext
5930 if test "${ac_cv_search_opendir+set}" = set; then
5931 break
5933 done
5934 if test "${ac_cv_search_opendir+set}" = set; then
5936 else
5937 ac_cv_search_opendir=no
5939 rm conftest.$ac_ext
5940 LIBS=$ac_func_search_save_LIBS
5942 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5943 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5944 ac_res=$ac_cv_search_opendir
5945 if test "$ac_res" != no; then
5946 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5950 else
5951 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5952 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5953 if test "${ac_cv_search_opendir+set}" = set; then
5954 echo $ECHO_N "(cached) $ECHO_C" >&6
5955 else
5956 ac_func_search_save_LIBS=$LIBS
5957 cat >conftest.$ac_ext <<_ACEOF
5958 /* confdefs.h. */
5959 _ACEOF
5960 cat confdefs.h >>conftest.$ac_ext
5961 cat >>conftest.$ac_ext <<_ACEOF
5962 /* end confdefs.h. */
5964 /* Override any GCC internal prototype to avoid an error.
5965 Use char because int might match the return type of a GCC
5966 builtin and then its argument prototype would still apply. */
5967 #ifdef __cplusplus
5968 extern "C"
5969 #endif
5970 char opendir ();
5972 main ()
5974 return opendir ();
5976 return 0;
5978 _ACEOF
5979 for ac_lib in '' x; do
5980 if test -z "$ac_lib"; then
5981 ac_res="none required"
5982 else
5983 ac_res=-l$ac_lib
5984 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5986 rm -f conftest.$ac_objext conftest$ac_exeext
5987 if { (ac_try="$ac_link"
5988 case "(($ac_try" in
5989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5990 *) ac_try_echo=$ac_try;;
5991 esac
5992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5993 (eval "$ac_link") 2>conftest.er1
5994 ac_status=$?
5995 grep -v '^ *+' conftest.er1 >conftest.err
5996 rm -f conftest.er1
5997 cat conftest.err >&5
5998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5999 (exit $ac_status); } && {
6000 test -z "$ac_c_werror_flag" ||
6001 test ! -s conftest.err
6002 } && test -s conftest$ac_exeext &&
6003 $as_test_x conftest$ac_exeext; then
6004 ac_cv_search_opendir=$ac_res
6005 else
6006 echo "$as_me: failed program was:" >&5
6007 sed 's/^/| /' conftest.$ac_ext >&5
6012 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6013 conftest$ac_exeext
6014 if test "${ac_cv_search_opendir+set}" = set; then
6015 break
6017 done
6018 if test "${ac_cv_search_opendir+set}" = set; then
6020 else
6021 ac_cv_search_opendir=no
6023 rm conftest.$ac_ext
6024 LIBS=$ac_func_search_save_LIBS
6026 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6027 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
6028 ac_res=$ac_cv_search_opendir
6029 if test "$ac_res" != no; then
6030 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6036 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
6037 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
6038 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
6039 echo $ECHO_N "(cached) $ECHO_C" >&6
6040 else
6041 cat >conftest.$ac_ext <<_ACEOF
6042 /* confdefs.h. */
6043 _ACEOF
6044 cat confdefs.h >>conftest.$ac_ext
6045 cat >>conftest.$ac_ext <<_ACEOF
6046 /* end confdefs.h. */
6047 #include <sys/types.h>
6049 main ()
6051 return makedev(0, 0);
6053 return 0;
6055 _ACEOF
6056 rm -f conftest.$ac_objext conftest$ac_exeext
6057 if { (ac_try="$ac_link"
6058 case "(($ac_try" in
6059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6060 *) ac_try_echo=$ac_try;;
6061 esac
6062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6063 (eval "$ac_link") 2>conftest.er1
6064 ac_status=$?
6065 grep -v '^ *+' conftest.er1 >conftest.err
6066 rm -f conftest.er1
6067 cat conftest.err >&5
6068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6069 (exit $ac_status); } && {
6070 test -z "$ac_c_werror_flag" ||
6071 test ! -s conftest.err
6072 } && test -s conftest$ac_exeext &&
6073 $as_test_x conftest$ac_exeext; then
6074 ac_cv_header_sys_types_h_makedev=yes
6075 else
6076 echo "$as_me: failed program was:" >&5
6077 sed 's/^/| /' conftest.$ac_ext >&5
6079 ac_cv_header_sys_types_h_makedev=no
6082 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6083 conftest$ac_exeext conftest.$ac_ext
6086 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
6087 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
6089 if test $ac_cv_header_sys_types_h_makedev = no; then
6090 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6091 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6092 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
6093 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6094 echo $ECHO_N "(cached) $ECHO_C" >&6
6096 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6097 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
6098 else
6099 # Is the header compilable?
6100 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
6101 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
6102 cat >conftest.$ac_ext <<_ACEOF
6103 /* confdefs.h. */
6104 _ACEOF
6105 cat confdefs.h >>conftest.$ac_ext
6106 cat >>conftest.$ac_ext <<_ACEOF
6107 /* end confdefs.h. */
6108 $ac_includes_default
6109 #include <sys/mkdev.h>
6110 _ACEOF
6111 rm -f conftest.$ac_objext
6112 if { (ac_try="$ac_compile"
6113 case "(($ac_try" in
6114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6115 *) ac_try_echo=$ac_try;;
6116 esac
6117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6118 (eval "$ac_compile") 2>conftest.er1
6119 ac_status=$?
6120 grep -v '^ *+' conftest.er1 >conftest.err
6121 rm -f conftest.er1
6122 cat conftest.err >&5
6123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6124 (exit $ac_status); } && {
6125 test -z "$ac_c_werror_flag" ||
6126 test ! -s conftest.err
6127 } && test -s conftest.$ac_objext; then
6128 ac_header_compiler=yes
6129 else
6130 echo "$as_me: failed program was:" >&5
6131 sed 's/^/| /' conftest.$ac_ext >&5
6133 ac_header_compiler=no
6136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6137 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6138 echo "${ECHO_T}$ac_header_compiler" >&6; }
6140 # Is the header present?
6141 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
6142 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
6143 cat >conftest.$ac_ext <<_ACEOF
6144 /* confdefs.h. */
6145 _ACEOF
6146 cat confdefs.h >>conftest.$ac_ext
6147 cat >>conftest.$ac_ext <<_ACEOF
6148 /* end confdefs.h. */
6149 #include <sys/mkdev.h>
6150 _ACEOF
6151 if { (ac_try="$ac_cpp conftest.$ac_ext"
6152 case "(($ac_try" in
6153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6154 *) ac_try_echo=$ac_try;;
6155 esac
6156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6157 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6158 ac_status=$?
6159 grep -v '^ *+' conftest.er1 >conftest.err
6160 rm -f conftest.er1
6161 cat conftest.err >&5
6162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163 (exit $ac_status); } >/dev/null && {
6164 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6165 test ! -s conftest.err
6166 }; then
6167 ac_header_preproc=yes
6168 else
6169 echo "$as_me: failed program was:" >&5
6170 sed 's/^/| /' conftest.$ac_ext >&5
6172 ac_header_preproc=no
6175 rm -f conftest.err conftest.$ac_ext
6176 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6177 echo "${ECHO_T}$ac_header_preproc" >&6; }
6179 # So? What about this header?
6180 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6181 yes:no: )
6182 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
6183 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6184 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
6185 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
6186 ac_header_preproc=yes
6188 no:yes:* )
6189 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
6190 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
6191 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
6192 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
6193 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
6194 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
6195 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
6196 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
6197 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
6198 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
6199 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
6200 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
6201 ( cat <<\_ASBOX
6202 ## -------------------------------------- ##
6203 ## Report this to http://bugs.python.org/ ##
6204 ## -------------------------------------- ##
6205 _ASBOX
6206 ) | sed "s/^/$as_me: WARNING: /" >&2
6208 esac
6209 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6210 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
6211 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6212 echo $ECHO_N "(cached) $ECHO_C" >&6
6213 else
6214 ac_cv_header_sys_mkdev_h=$ac_header_preproc
6216 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6217 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
6220 if test $ac_cv_header_sys_mkdev_h = yes; then
6222 cat >>confdefs.h <<\_ACEOF
6223 #define MAJOR_IN_MKDEV 1
6224 _ACEOF
6230 if test $ac_cv_header_sys_mkdev_h = no; then
6231 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6232 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6233 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6234 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6235 echo $ECHO_N "(cached) $ECHO_C" >&6
6237 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6238 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6239 else
6240 # Is the header compilable?
6241 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
6242 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
6243 cat >conftest.$ac_ext <<_ACEOF
6244 /* confdefs.h. */
6245 _ACEOF
6246 cat confdefs.h >>conftest.$ac_ext
6247 cat >>conftest.$ac_ext <<_ACEOF
6248 /* end confdefs.h. */
6249 $ac_includes_default
6250 #include <sys/sysmacros.h>
6251 _ACEOF
6252 rm -f conftest.$ac_objext
6253 if { (ac_try="$ac_compile"
6254 case "(($ac_try" in
6255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6256 *) ac_try_echo=$ac_try;;
6257 esac
6258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6259 (eval "$ac_compile") 2>conftest.er1
6260 ac_status=$?
6261 grep -v '^ *+' conftest.er1 >conftest.err
6262 rm -f conftest.er1
6263 cat conftest.err >&5
6264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6265 (exit $ac_status); } && {
6266 test -z "$ac_c_werror_flag" ||
6267 test ! -s conftest.err
6268 } && test -s conftest.$ac_objext; then
6269 ac_header_compiler=yes
6270 else
6271 echo "$as_me: failed program was:" >&5
6272 sed 's/^/| /' conftest.$ac_ext >&5
6274 ac_header_compiler=no
6277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6278 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6279 echo "${ECHO_T}$ac_header_compiler" >&6; }
6281 # Is the header present?
6282 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
6283 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
6284 cat >conftest.$ac_ext <<_ACEOF
6285 /* confdefs.h. */
6286 _ACEOF
6287 cat confdefs.h >>conftest.$ac_ext
6288 cat >>conftest.$ac_ext <<_ACEOF
6289 /* end confdefs.h. */
6290 #include <sys/sysmacros.h>
6291 _ACEOF
6292 if { (ac_try="$ac_cpp conftest.$ac_ext"
6293 case "(($ac_try" in
6294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6295 *) ac_try_echo=$ac_try;;
6296 esac
6297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6298 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6299 ac_status=$?
6300 grep -v '^ *+' conftest.er1 >conftest.err
6301 rm -f conftest.er1
6302 cat conftest.err >&5
6303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6304 (exit $ac_status); } >/dev/null && {
6305 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6306 test ! -s conftest.err
6307 }; then
6308 ac_header_preproc=yes
6309 else
6310 echo "$as_me: failed program was:" >&5
6311 sed 's/^/| /' conftest.$ac_ext >&5
6313 ac_header_preproc=no
6316 rm -f conftest.err conftest.$ac_ext
6317 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6318 echo "${ECHO_T}$ac_header_preproc" >&6; }
6320 # So? What about this header?
6321 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6322 yes:no: )
6323 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
6324 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6325 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
6326 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
6327 ac_header_preproc=yes
6329 no:yes:* )
6330 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
6331 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
6332 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
6333 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
6334 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
6335 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
6336 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
6337 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
6338 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
6339 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
6340 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
6341 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
6342 ( cat <<\_ASBOX
6343 ## -------------------------------------- ##
6344 ## Report this to http://bugs.python.org/ ##
6345 ## -------------------------------------- ##
6346 _ASBOX
6347 ) | sed "s/^/$as_me: WARNING: /" >&2
6349 esac
6350 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6351 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6352 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6353 echo $ECHO_N "(cached) $ECHO_C" >&6
6354 else
6355 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
6357 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6358 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6361 if test $ac_cv_header_sys_sysmacros_h = yes; then
6363 cat >>confdefs.h <<\_ACEOF
6364 #define MAJOR_IN_SYSMACROS 1
6365 _ACEOF
6374 # On Solaris, term.h requires curses.h
6376 for ac_header in term.h
6378 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6379 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6380 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6381 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6382 echo $ECHO_N "(cached) $ECHO_C" >&6
6383 else
6384 cat >conftest.$ac_ext <<_ACEOF
6385 /* confdefs.h. */
6386 _ACEOF
6387 cat confdefs.h >>conftest.$ac_ext
6388 cat >>conftest.$ac_ext <<_ACEOF
6389 /* end confdefs.h. */
6391 #ifdef HAVE_CURSES_H
6392 #include <curses.h>
6393 #endif
6396 #include <$ac_header>
6397 _ACEOF
6398 rm -f conftest.$ac_objext
6399 if { (ac_try="$ac_compile"
6400 case "(($ac_try" in
6401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6402 *) ac_try_echo=$ac_try;;
6403 esac
6404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6405 (eval "$ac_compile") 2>conftest.er1
6406 ac_status=$?
6407 grep -v '^ *+' conftest.er1 >conftest.err
6408 rm -f conftest.er1
6409 cat conftest.err >&5
6410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6411 (exit $ac_status); } && {
6412 test -z "$ac_c_werror_flag" ||
6413 test ! -s conftest.err
6414 } && test -s conftest.$ac_objext; then
6415 eval "$as_ac_Header=yes"
6416 else
6417 echo "$as_me: failed program was:" >&5
6418 sed 's/^/| /' conftest.$ac_ext >&5
6420 eval "$as_ac_Header=no"
6423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6425 ac_res=`eval echo '${'$as_ac_Header'}'`
6426 { echo "$as_me:$LINENO: result: $ac_res" >&5
6427 echo "${ECHO_T}$ac_res" >&6; }
6428 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6429 cat >>confdefs.h <<_ACEOF
6430 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6431 _ACEOF
6435 done
6438 # On Linux, netlink.h requires asm/types.h
6440 for ac_header in linux/netlink.h
6442 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6443 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6444 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6445 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6446 echo $ECHO_N "(cached) $ECHO_C" >&6
6447 else
6448 cat >conftest.$ac_ext <<_ACEOF
6449 /* confdefs.h. */
6450 _ACEOF
6451 cat confdefs.h >>conftest.$ac_ext
6452 cat >>conftest.$ac_ext <<_ACEOF
6453 /* end confdefs.h. */
6455 #ifdef HAVE_ASM_TYPES_H
6456 #include <asm/types.h>
6457 #endif
6458 #ifdef HAVE_SYS_SOCKET_H
6459 #include <sys/socket.h>
6460 #endif
6463 #include <$ac_header>
6464 _ACEOF
6465 rm -f conftest.$ac_objext
6466 if { (ac_try="$ac_compile"
6467 case "(($ac_try" in
6468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6469 *) ac_try_echo=$ac_try;;
6470 esac
6471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6472 (eval "$ac_compile") 2>conftest.er1
6473 ac_status=$?
6474 grep -v '^ *+' conftest.er1 >conftest.err
6475 rm -f conftest.er1
6476 cat conftest.err >&5
6477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6478 (exit $ac_status); } && {
6479 test -z "$ac_c_werror_flag" ||
6480 test ! -s conftest.err
6481 } && test -s conftest.$ac_objext; then
6482 eval "$as_ac_Header=yes"
6483 else
6484 echo "$as_me: failed program was:" >&5
6485 sed 's/^/| /' conftest.$ac_ext >&5
6487 eval "$as_ac_Header=no"
6490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6492 ac_res=`eval echo '${'$as_ac_Header'}'`
6493 { echo "$as_me:$LINENO: result: $ac_res" >&5
6494 echo "${ECHO_T}$ac_res" >&6; }
6495 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6496 cat >>confdefs.h <<_ACEOF
6497 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6498 _ACEOF
6502 done
6505 # checks for typedefs
6506 was_it_defined=no
6507 { echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
6508 echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6; }
6509 cat >conftest.$ac_ext <<_ACEOF
6510 /* confdefs.h. */
6511 _ACEOF
6512 cat confdefs.h >>conftest.$ac_ext
6513 cat >>conftest.$ac_ext <<_ACEOF
6514 /* end confdefs.h. */
6515 #include <time.h>
6517 _ACEOF
6518 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6519 $EGREP "clock_t" >/dev/null 2>&1; then
6520 was_it_defined=yes
6521 else
6524 cat >>confdefs.h <<\_ACEOF
6525 #define clock_t long
6526 _ACEOF
6530 rm -f -r conftest*
6532 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
6533 echo "${ECHO_T}$was_it_defined" >&6; }
6535 # Check whether using makedev requires defining _OSF_SOURCE
6536 { echo "$as_me:$LINENO: checking for makedev" >&5
6537 echo $ECHO_N "checking for makedev... $ECHO_C" >&6; }
6538 cat >conftest.$ac_ext <<_ACEOF
6539 /* confdefs.h. */
6540 _ACEOF
6541 cat confdefs.h >>conftest.$ac_ext
6542 cat >>conftest.$ac_ext <<_ACEOF
6543 /* end confdefs.h. */
6544 #include <sys/types.h>
6546 main ()
6548 makedev(0, 0)
6550 return 0;
6552 _ACEOF
6553 rm -f conftest.$ac_objext conftest$ac_exeext
6554 if { (ac_try="$ac_link"
6555 case "(($ac_try" in
6556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6557 *) ac_try_echo=$ac_try;;
6558 esac
6559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6560 (eval "$ac_link") 2>conftest.er1
6561 ac_status=$?
6562 grep -v '^ *+' conftest.er1 >conftest.err
6563 rm -f conftest.er1
6564 cat conftest.err >&5
6565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6566 (exit $ac_status); } && {
6567 test -z "$ac_c_werror_flag" ||
6568 test ! -s conftest.err
6569 } && test -s conftest$ac_exeext &&
6570 $as_test_x conftest$ac_exeext; then
6571 ac_cv_has_makedev=yes
6572 else
6573 echo "$as_me: failed program was:" >&5
6574 sed 's/^/| /' conftest.$ac_ext >&5
6576 ac_cv_has_makedev=no
6579 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6580 conftest$ac_exeext conftest.$ac_ext
6581 if test "$ac_cv_has_makedev" = "no"; then
6582 # we didn't link, try if _OSF_SOURCE will allow us to link
6583 cat >conftest.$ac_ext <<_ACEOF
6584 /* confdefs.h. */
6585 _ACEOF
6586 cat confdefs.h >>conftest.$ac_ext
6587 cat >>conftest.$ac_ext <<_ACEOF
6588 /* end confdefs.h. */
6590 #define _OSF_SOURCE 1
6591 #include <sys/types.h>
6594 main ()
6596 makedev(0, 0)
6598 return 0;
6600 _ACEOF
6601 rm -f conftest.$ac_objext conftest$ac_exeext
6602 if { (ac_try="$ac_link"
6603 case "(($ac_try" in
6604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6605 *) ac_try_echo=$ac_try;;
6606 esac
6607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6608 (eval "$ac_link") 2>conftest.er1
6609 ac_status=$?
6610 grep -v '^ *+' conftest.er1 >conftest.err
6611 rm -f conftest.er1
6612 cat conftest.err >&5
6613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6614 (exit $ac_status); } && {
6615 test -z "$ac_c_werror_flag" ||
6616 test ! -s conftest.err
6617 } && test -s conftest$ac_exeext &&
6618 $as_test_x conftest$ac_exeext; then
6619 ac_cv_has_makedev=yes
6620 else
6621 echo "$as_me: failed program was:" >&5
6622 sed 's/^/| /' conftest.$ac_ext >&5
6624 ac_cv_has_makedev=no
6627 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6628 conftest$ac_exeext conftest.$ac_ext
6629 if test "$ac_cv_has_makedev" = "yes"; then
6631 cat >>confdefs.h <<\_ACEOF
6632 #define _OSF_SOURCE 1
6633 _ACEOF
6637 { echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
6638 echo "${ECHO_T}$ac_cv_has_makedev" >&6; }
6639 if test "$ac_cv_has_makedev" = "yes"; then
6641 cat >>confdefs.h <<\_ACEOF
6642 #define HAVE_MAKEDEV 1
6643 _ACEOF
6647 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
6648 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
6649 # defined, but the compiler does not support pragma redefine_extname,
6650 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
6651 # structures (such as rlimit64) without declaring them. As a
6652 # work-around, disable LFS on such configurations
6654 use_lfs=yes
6655 { echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
6656 echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6; }
6657 cat >conftest.$ac_ext <<_ACEOF
6658 /* confdefs.h. */
6659 _ACEOF
6660 cat confdefs.h >>conftest.$ac_ext
6661 cat >>conftest.$ac_ext <<_ACEOF
6662 /* end confdefs.h. */
6664 #define _LARGEFILE_SOURCE 1
6665 #define _FILE_OFFSET_BITS 64
6666 #include <sys/resource.h>
6669 main ()
6671 struct rlimit foo;
6673 return 0;
6675 _ACEOF
6676 rm -f conftest.$ac_objext
6677 if { (ac_try="$ac_compile"
6678 case "(($ac_try" in
6679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6680 *) ac_try_echo=$ac_try;;
6681 esac
6682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6683 (eval "$ac_compile") 2>conftest.er1
6684 ac_status=$?
6685 grep -v '^ *+' conftest.er1 >conftest.err
6686 rm -f conftest.er1
6687 cat conftest.err >&5
6688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6689 (exit $ac_status); } && {
6690 test -z "$ac_c_werror_flag" ||
6691 test ! -s conftest.err
6692 } && test -s conftest.$ac_objext; then
6693 sol_lfs_bug=no
6694 else
6695 echo "$as_me: failed program was:" >&5
6696 sed 's/^/| /' conftest.$ac_ext >&5
6698 sol_lfs_bug=yes
6701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6702 { echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
6703 echo "${ECHO_T}$sol_lfs_bug" >&6; }
6704 if test "$sol_lfs_bug" = "yes"; then
6705 use_lfs=no
6708 if test "$use_lfs" = "yes"; then
6709 # Two defines needed to enable largefile support on various platforms
6710 # These may affect some typedefs
6712 cat >>confdefs.h <<\_ACEOF
6713 #define _LARGEFILE_SOURCE 1
6714 _ACEOF
6717 cat >>confdefs.h <<\_ACEOF
6718 #define _FILE_OFFSET_BITS 64
6719 _ACEOF
6723 # Add some code to confdefs.h so that the test for off_t works on SCO
6724 cat >> confdefs.h <<\EOF
6725 #if defined(SCO_DS)
6726 #undef _OFF_T
6727 #endif
6730 # Type availability checks
6731 { echo "$as_me:$LINENO: checking for mode_t" >&5
6732 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
6733 if test "${ac_cv_type_mode_t+set}" = set; then
6734 echo $ECHO_N "(cached) $ECHO_C" >&6
6735 else
6736 cat >conftest.$ac_ext <<_ACEOF
6737 /* confdefs.h. */
6738 _ACEOF
6739 cat confdefs.h >>conftest.$ac_ext
6740 cat >>conftest.$ac_ext <<_ACEOF
6741 /* end confdefs.h. */
6742 $ac_includes_default
6743 typedef mode_t ac__type_new_;
6745 main ()
6747 if ((ac__type_new_ *) 0)
6748 return 0;
6749 if (sizeof (ac__type_new_))
6750 return 0;
6752 return 0;
6754 _ACEOF
6755 rm -f conftest.$ac_objext
6756 if { (ac_try="$ac_compile"
6757 case "(($ac_try" in
6758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6759 *) ac_try_echo=$ac_try;;
6760 esac
6761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6762 (eval "$ac_compile") 2>conftest.er1
6763 ac_status=$?
6764 grep -v '^ *+' conftest.er1 >conftest.err
6765 rm -f conftest.er1
6766 cat conftest.err >&5
6767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6768 (exit $ac_status); } && {
6769 test -z "$ac_c_werror_flag" ||
6770 test ! -s conftest.err
6771 } && test -s conftest.$ac_objext; then
6772 ac_cv_type_mode_t=yes
6773 else
6774 echo "$as_me: failed program was:" >&5
6775 sed 's/^/| /' conftest.$ac_ext >&5
6777 ac_cv_type_mode_t=no
6780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6782 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6783 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
6784 if test $ac_cv_type_mode_t = yes; then
6786 else
6788 cat >>confdefs.h <<_ACEOF
6789 #define mode_t int
6790 _ACEOF
6794 { echo "$as_me:$LINENO: checking for off_t" >&5
6795 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
6796 if test "${ac_cv_type_off_t+set}" = set; then
6797 echo $ECHO_N "(cached) $ECHO_C" >&6
6798 else
6799 cat >conftest.$ac_ext <<_ACEOF
6800 /* confdefs.h. */
6801 _ACEOF
6802 cat confdefs.h >>conftest.$ac_ext
6803 cat >>conftest.$ac_ext <<_ACEOF
6804 /* end confdefs.h. */
6805 $ac_includes_default
6806 typedef off_t ac__type_new_;
6808 main ()
6810 if ((ac__type_new_ *) 0)
6811 return 0;
6812 if (sizeof (ac__type_new_))
6813 return 0;
6815 return 0;
6817 _ACEOF
6818 rm -f conftest.$ac_objext
6819 if { (ac_try="$ac_compile"
6820 case "(($ac_try" in
6821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6822 *) ac_try_echo=$ac_try;;
6823 esac
6824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6825 (eval "$ac_compile") 2>conftest.er1
6826 ac_status=$?
6827 grep -v '^ *+' conftest.er1 >conftest.err
6828 rm -f conftest.er1
6829 cat conftest.err >&5
6830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6831 (exit $ac_status); } && {
6832 test -z "$ac_c_werror_flag" ||
6833 test ! -s conftest.err
6834 } && test -s conftest.$ac_objext; then
6835 ac_cv_type_off_t=yes
6836 else
6837 echo "$as_me: failed program was:" >&5
6838 sed 's/^/| /' conftest.$ac_ext >&5
6840 ac_cv_type_off_t=no
6843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6845 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6846 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
6847 if test $ac_cv_type_off_t = yes; then
6849 else
6851 cat >>confdefs.h <<_ACEOF
6852 #define off_t long int
6853 _ACEOF
6857 { echo "$as_me:$LINENO: checking for pid_t" >&5
6858 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
6859 if test "${ac_cv_type_pid_t+set}" = set; then
6860 echo $ECHO_N "(cached) $ECHO_C" >&6
6861 else
6862 cat >conftest.$ac_ext <<_ACEOF
6863 /* confdefs.h. */
6864 _ACEOF
6865 cat confdefs.h >>conftest.$ac_ext
6866 cat >>conftest.$ac_ext <<_ACEOF
6867 /* end confdefs.h. */
6868 $ac_includes_default
6869 typedef pid_t ac__type_new_;
6871 main ()
6873 if ((ac__type_new_ *) 0)
6874 return 0;
6875 if (sizeof (ac__type_new_))
6876 return 0;
6878 return 0;
6880 _ACEOF
6881 rm -f conftest.$ac_objext
6882 if { (ac_try="$ac_compile"
6883 case "(($ac_try" in
6884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6885 *) ac_try_echo=$ac_try;;
6886 esac
6887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6888 (eval "$ac_compile") 2>conftest.er1
6889 ac_status=$?
6890 grep -v '^ *+' conftest.er1 >conftest.err
6891 rm -f conftest.er1
6892 cat conftest.err >&5
6893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6894 (exit $ac_status); } && {
6895 test -z "$ac_c_werror_flag" ||
6896 test ! -s conftest.err
6897 } && test -s conftest.$ac_objext; then
6898 ac_cv_type_pid_t=yes
6899 else
6900 echo "$as_me: failed program was:" >&5
6901 sed 's/^/| /' conftest.$ac_ext >&5
6903 ac_cv_type_pid_t=no
6906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6908 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6909 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
6910 if test $ac_cv_type_pid_t = yes; then
6912 else
6914 cat >>confdefs.h <<_ACEOF
6915 #define pid_t int
6916 _ACEOF
6920 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6921 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
6922 if test "${ac_cv_type_signal+set}" = set; then
6923 echo $ECHO_N "(cached) $ECHO_C" >&6
6924 else
6925 cat >conftest.$ac_ext <<_ACEOF
6926 /* confdefs.h. */
6927 _ACEOF
6928 cat confdefs.h >>conftest.$ac_ext
6929 cat >>conftest.$ac_ext <<_ACEOF
6930 /* end confdefs.h. */
6931 #include <sys/types.h>
6932 #include <signal.h>
6935 main ()
6937 return *(signal (0, 0)) (0) == 1;
6939 return 0;
6941 _ACEOF
6942 rm -f conftest.$ac_objext
6943 if { (ac_try="$ac_compile"
6944 case "(($ac_try" in
6945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6946 *) ac_try_echo=$ac_try;;
6947 esac
6948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6949 (eval "$ac_compile") 2>conftest.er1
6950 ac_status=$?
6951 grep -v '^ *+' conftest.er1 >conftest.err
6952 rm -f conftest.er1
6953 cat conftest.err >&5
6954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6955 (exit $ac_status); } && {
6956 test -z "$ac_c_werror_flag" ||
6957 test ! -s conftest.err
6958 } && test -s conftest.$ac_objext; then
6959 ac_cv_type_signal=int
6960 else
6961 echo "$as_me: failed program was:" >&5
6962 sed 's/^/| /' conftest.$ac_ext >&5
6964 ac_cv_type_signal=void
6967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6969 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6970 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
6972 cat >>confdefs.h <<_ACEOF
6973 #define RETSIGTYPE $ac_cv_type_signal
6974 _ACEOF
6977 { echo "$as_me:$LINENO: checking for size_t" >&5
6978 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
6979 if test "${ac_cv_type_size_t+set}" = set; then
6980 echo $ECHO_N "(cached) $ECHO_C" >&6
6981 else
6982 cat >conftest.$ac_ext <<_ACEOF
6983 /* confdefs.h. */
6984 _ACEOF
6985 cat confdefs.h >>conftest.$ac_ext
6986 cat >>conftest.$ac_ext <<_ACEOF
6987 /* end confdefs.h. */
6988 $ac_includes_default
6989 typedef size_t ac__type_new_;
6991 main ()
6993 if ((ac__type_new_ *) 0)
6994 return 0;
6995 if (sizeof (ac__type_new_))
6996 return 0;
6998 return 0;
7000 _ACEOF
7001 rm -f conftest.$ac_objext
7002 if { (ac_try="$ac_compile"
7003 case "(($ac_try" in
7004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7005 *) ac_try_echo=$ac_try;;
7006 esac
7007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7008 (eval "$ac_compile") 2>conftest.er1
7009 ac_status=$?
7010 grep -v '^ *+' conftest.er1 >conftest.err
7011 rm -f conftest.er1
7012 cat conftest.err >&5
7013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7014 (exit $ac_status); } && {
7015 test -z "$ac_c_werror_flag" ||
7016 test ! -s conftest.err
7017 } && test -s conftest.$ac_objext; then
7018 ac_cv_type_size_t=yes
7019 else
7020 echo "$as_me: failed program was:" >&5
7021 sed 's/^/| /' conftest.$ac_ext >&5
7023 ac_cv_type_size_t=no
7026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7028 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7029 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
7030 if test $ac_cv_type_size_t = yes; then
7032 else
7034 cat >>confdefs.h <<_ACEOF
7035 #define size_t unsigned int
7036 _ACEOF
7040 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7041 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
7042 if test "${ac_cv_type_uid_t+set}" = set; then
7043 echo $ECHO_N "(cached) $ECHO_C" >&6
7044 else
7045 cat >conftest.$ac_ext <<_ACEOF
7046 /* confdefs.h. */
7047 _ACEOF
7048 cat confdefs.h >>conftest.$ac_ext
7049 cat >>conftest.$ac_ext <<_ACEOF
7050 /* end confdefs.h. */
7051 #include <sys/types.h>
7053 _ACEOF
7054 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7055 $EGREP "uid_t" >/dev/null 2>&1; then
7056 ac_cv_type_uid_t=yes
7057 else
7058 ac_cv_type_uid_t=no
7060 rm -f -r conftest*
7063 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7064 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
7065 if test $ac_cv_type_uid_t = no; then
7067 cat >>confdefs.h <<\_ACEOF
7068 #define uid_t int
7069 _ACEOF
7072 cat >>confdefs.h <<\_ACEOF
7073 #define gid_t int
7074 _ACEOF
7079 { echo "$as_me:$LINENO: checking for uint32_t" >&5
7080 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
7081 if test "${ac_cv_c_uint32_t+set}" = set; then
7082 echo $ECHO_N "(cached) $ECHO_C" >&6
7083 else
7084 ac_cv_c_uint32_t=no
7085 for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
7086 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7087 cat >conftest.$ac_ext <<_ACEOF
7088 /* confdefs.h. */
7089 _ACEOF
7090 cat confdefs.h >>conftest.$ac_ext
7091 cat >>conftest.$ac_ext <<_ACEOF
7092 /* end confdefs.h. */
7093 $ac_includes_default
7095 main ()
7097 static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
7098 test_array [0] = 0
7101 return 0;
7103 _ACEOF
7104 rm -f conftest.$ac_objext
7105 if { (ac_try="$ac_compile"
7106 case "(($ac_try" in
7107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7108 *) ac_try_echo=$ac_try;;
7109 esac
7110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7111 (eval "$ac_compile") 2>conftest.er1
7112 ac_status=$?
7113 grep -v '^ *+' conftest.er1 >conftest.err
7114 rm -f conftest.er1
7115 cat conftest.err >&5
7116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117 (exit $ac_status); } && {
7118 test -z "$ac_c_werror_flag" ||
7119 test ! -s conftest.err
7120 } && test -s conftest.$ac_objext; then
7121 case $ac_type in
7122 uint32_t) ac_cv_c_uint32_t=yes ;;
7123 *) ac_cv_c_uint32_t=$ac_type ;;
7124 esac
7126 else
7127 echo "$as_me: failed program was:" >&5
7128 sed 's/^/| /' conftest.$ac_ext >&5
7133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7134 test "$ac_cv_c_uint32_t" != no && break
7135 done
7137 { echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
7138 echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; }
7139 case $ac_cv_c_uint32_t in #(
7140 no|yes) ;; #(
7143 cat >>confdefs.h <<\_ACEOF
7144 #define _UINT32_T 1
7145 _ACEOF
7148 cat >>confdefs.h <<_ACEOF
7149 #define uint32_t $ac_cv_c_uint32_t
7150 _ACEOF
7152 esac
7155 { echo "$as_me:$LINENO: checking for uint64_t" >&5
7156 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
7157 if test "${ac_cv_c_uint64_t+set}" = set; then
7158 echo $ECHO_N "(cached) $ECHO_C" >&6
7159 else
7160 ac_cv_c_uint64_t=no
7161 for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \
7162 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7163 cat >conftest.$ac_ext <<_ACEOF
7164 /* confdefs.h. */
7165 _ACEOF
7166 cat confdefs.h >>conftest.$ac_ext
7167 cat >>conftest.$ac_ext <<_ACEOF
7168 /* end confdefs.h. */
7169 $ac_includes_default
7171 main ()
7173 static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)];
7174 test_array [0] = 0
7177 return 0;
7179 _ACEOF
7180 rm -f conftest.$ac_objext
7181 if { (ac_try="$ac_compile"
7182 case "(($ac_try" in
7183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7184 *) ac_try_echo=$ac_try;;
7185 esac
7186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7187 (eval "$ac_compile") 2>conftest.er1
7188 ac_status=$?
7189 grep -v '^ *+' conftest.er1 >conftest.err
7190 rm -f conftest.er1
7191 cat conftest.err >&5
7192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7193 (exit $ac_status); } && {
7194 test -z "$ac_c_werror_flag" ||
7195 test ! -s conftest.err
7196 } && test -s conftest.$ac_objext; then
7197 case $ac_type in
7198 uint64_t) ac_cv_c_uint64_t=yes ;;
7199 *) ac_cv_c_uint64_t=$ac_type ;;
7200 esac
7202 else
7203 echo "$as_me: failed program was:" >&5
7204 sed 's/^/| /' conftest.$ac_ext >&5
7209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7210 test "$ac_cv_c_uint64_t" != no && break
7211 done
7213 { echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5
7214 echo "${ECHO_T}$ac_cv_c_uint64_t" >&6; }
7215 case $ac_cv_c_uint64_t in #(
7216 no|yes) ;; #(
7219 cat >>confdefs.h <<\_ACEOF
7220 #define _UINT64_T 1
7221 _ACEOF
7224 cat >>confdefs.h <<_ACEOF
7225 #define uint64_t $ac_cv_c_uint64_t
7226 _ACEOF
7228 esac
7231 { echo "$as_me:$LINENO: checking for int32_t" >&5
7232 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
7233 if test "${ac_cv_c_int32_t+set}" = set; then
7234 echo $ECHO_N "(cached) $ECHO_C" >&6
7235 else
7236 ac_cv_c_int32_t=no
7237 for ac_type in 'int32_t' 'int' 'long int' \
7238 'long long int' 'short int' 'signed char'; do
7239 cat >conftest.$ac_ext <<_ACEOF
7240 /* confdefs.h. */
7241 _ACEOF
7242 cat confdefs.h >>conftest.$ac_ext
7243 cat >>conftest.$ac_ext <<_ACEOF
7244 /* end confdefs.h. */
7245 $ac_includes_default
7247 main ()
7249 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
7250 test_array [0] = 0
7253 return 0;
7255 _ACEOF
7256 rm -f conftest.$ac_objext
7257 if { (ac_try="$ac_compile"
7258 case "(($ac_try" in
7259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7260 *) ac_try_echo=$ac_try;;
7261 esac
7262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7263 (eval "$ac_compile") 2>conftest.er1
7264 ac_status=$?
7265 grep -v '^ *+' conftest.er1 >conftest.err
7266 rm -f conftest.er1
7267 cat conftest.err >&5
7268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7269 (exit $ac_status); } && {
7270 test -z "$ac_c_werror_flag" ||
7271 test ! -s conftest.err
7272 } && test -s conftest.$ac_objext; then
7273 cat >conftest.$ac_ext <<_ACEOF
7274 /* confdefs.h. */
7275 _ACEOF
7276 cat confdefs.h >>conftest.$ac_ext
7277 cat >>conftest.$ac_ext <<_ACEOF
7278 /* end confdefs.h. */
7279 $ac_includes_default
7281 main ()
7283 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1)
7284 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))];
7285 test_array [0] = 0
7288 return 0;
7290 _ACEOF
7291 rm -f conftest.$ac_objext
7292 if { (ac_try="$ac_compile"
7293 case "(($ac_try" in
7294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7295 *) ac_try_echo=$ac_try;;
7296 esac
7297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7298 (eval "$ac_compile") 2>conftest.er1
7299 ac_status=$?
7300 grep -v '^ *+' conftest.er1 >conftest.err
7301 rm -f conftest.er1
7302 cat conftest.err >&5
7303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7304 (exit $ac_status); } && {
7305 test -z "$ac_c_werror_flag" ||
7306 test ! -s conftest.err
7307 } && test -s conftest.$ac_objext; then
7309 else
7310 echo "$as_me: failed program was:" >&5
7311 sed 's/^/| /' conftest.$ac_ext >&5
7313 case $ac_type in
7314 int32_t) ac_cv_c_int32_t=yes ;;
7315 *) ac_cv_c_int32_t=$ac_type ;;
7316 esac
7320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7321 else
7322 echo "$as_me: failed program was:" >&5
7323 sed 's/^/| /' conftest.$ac_ext >&5
7328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7329 test "$ac_cv_c_int32_t" != no && break
7330 done
7332 { echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
7333 echo "${ECHO_T}$ac_cv_c_int32_t" >&6; }
7334 case $ac_cv_c_int32_t in #(
7335 no|yes) ;; #(
7338 cat >>confdefs.h <<_ACEOF
7339 #define int32_t $ac_cv_c_int32_t
7340 _ACEOF
7342 esac
7345 { echo "$as_me:$LINENO: checking for int64_t" >&5
7346 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
7347 if test "${ac_cv_c_int64_t+set}" = set; then
7348 echo $ECHO_N "(cached) $ECHO_C" >&6
7349 else
7350 ac_cv_c_int64_t=no
7351 for ac_type in 'int64_t' 'int' 'long int' \
7352 'long long int' 'short int' 'signed char'; do
7353 cat >conftest.$ac_ext <<_ACEOF
7354 /* confdefs.h. */
7355 _ACEOF
7356 cat confdefs.h >>conftest.$ac_ext
7357 cat >>conftest.$ac_ext <<_ACEOF
7358 /* end confdefs.h. */
7359 $ac_includes_default
7361 main ()
7363 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))];
7364 test_array [0] = 0
7367 return 0;
7369 _ACEOF
7370 rm -f conftest.$ac_objext
7371 if { (ac_try="$ac_compile"
7372 case "(($ac_try" in
7373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7374 *) ac_try_echo=$ac_try;;
7375 esac
7376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7377 (eval "$ac_compile") 2>conftest.er1
7378 ac_status=$?
7379 grep -v '^ *+' conftest.er1 >conftest.err
7380 rm -f conftest.er1
7381 cat conftest.err >&5
7382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7383 (exit $ac_status); } && {
7384 test -z "$ac_c_werror_flag" ||
7385 test ! -s conftest.err
7386 } && test -s conftest.$ac_objext; then
7387 cat >conftest.$ac_ext <<_ACEOF
7388 /* confdefs.h. */
7389 _ACEOF
7390 cat confdefs.h >>conftest.$ac_ext
7391 cat >>conftest.$ac_ext <<_ACEOF
7392 /* end confdefs.h. */
7393 $ac_includes_default
7395 main ()
7397 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1)
7398 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))];
7399 test_array [0] = 0
7402 return 0;
7404 _ACEOF
7405 rm -f conftest.$ac_objext
7406 if { (ac_try="$ac_compile"
7407 case "(($ac_try" in
7408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7409 *) ac_try_echo=$ac_try;;
7410 esac
7411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7412 (eval "$ac_compile") 2>conftest.er1
7413 ac_status=$?
7414 grep -v '^ *+' conftest.er1 >conftest.err
7415 rm -f conftest.er1
7416 cat conftest.err >&5
7417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7418 (exit $ac_status); } && {
7419 test -z "$ac_c_werror_flag" ||
7420 test ! -s conftest.err
7421 } && test -s conftest.$ac_objext; then
7423 else
7424 echo "$as_me: failed program was:" >&5
7425 sed 's/^/| /' conftest.$ac_ext >&5
7427 case $ac_type in
7428 int64_t) ac_cv_c_int64_t=yes ;;
7429 *) ac_cv_c_int64_t=$ac_type ;;
7430 esac
7434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7435 else
7436 echo "$as_me: failed program was:" >&5
7437 sed 's/^/| /' conftest.$ac_ext >&5
7442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7443 test "$ac_cv_c_int64_t" != no && break
7444 done
7446 { echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5
7447 echo "${ECHO_T}$ac_cv_c_int64_t" >&6; }
7448 case $ac_cv_c_int64_t in #(
7449 no|yes) ;; #(
7452 cat >>confdefs.h <<_ACEOF
7453 #define int64_t $ac_cv_c_int64_t
7454 _ACEOF
7456 esac
7458 { echo "$as_me:$LINENO: checking for ssize_t" >&5
7459 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
7460 if test "${ac_cv_type_ssize_t+set}" = set; then
7461 echo $ECHO_N "(cached) $ECHO_C" >&6
7462 else
7463 cat >conftest.$ac_ext <<_ACEOF
7464 /* confdefs.h. */
7465 _ACEOF
7466 cat confdefs.h >>conftest.$ac_ext
7467 cat >>conftest.$ac_ext <<_ACEOF
7468 /* end confdefs.h. */
7469 $ac_includes_default
7470 typedef ssize_t ac__type_new_;
7472 main ()
7474 if ((ac__type_new_ *) 0)
7475 return 0;
7476 if (sizeof (ac__type_new_))
7477 return 0;
7479 return 0;
7481 _ACEOF
7482 rm -f conftest.$ac_objext
7483 if { (ac_try="$ac_compile"
7484 case "(($ac_try" in
7485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7486 *) ac_try_echo=$ac_try;;
7487 esac
7488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7489 (eval "$ac_compile") 2>conftest.er1
7490 ac_status=$?
7491 grep -v '^ *+' conftest.er1 >conftest.err
7492 rm -f conftest.er1
7493 cat conftest.err >&5
7494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7495 (exit $ac_status); } && {
7496 test -z "$ac_c_werror_flag" ||
7497 test ! -s conftest.err
7498 } && test -s conftest.$ac_objext; then
7499 ac_cv_type_ssize_t=yes
7500 else
7501 echo "$as_me: failed program was:" >&5
7502 sed 's/^/| /' conftest.$ac_ext >&5
7504 ac_cv_type_ssize_t=no
7507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7509 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
7510 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
7511 if test $ac_cv_type_ssize_t = yes; then
7513 cat >>confdefs.h <<\_ACEOF
7514 #define HAVE_SSIZE_T 1
7515 _ACEOF
7520 # Sizes of various common basic types
7521 # ANSI C requires sizeof(char) == 1, so no need to check it
7522 { echo "$as_me:$LINENO: checking for int" >&5
7523 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
7524 if test "${ac_cv_type_int+set}" = set; then
7525 echo $ECHO_N "(cached) $ECHO_C" >&6
7526 else
7527 cat >conftest.$ac_ext <<_ACEOF
7528 /* confdefs.h. */
7529 _ACEOF
7530 cat confdefs.h >>conftest.$ac_ext
7531 cat >>conftest.$ac_ext <<_ACEOF
7532 /* end confdefs.h. */
7533 $ac_includes_default
7534 typedef int ac__type_new_;
7536 main ()
7538 if ((ac__type_new_ *) 0)
7539 return 0;
7540 if (sizeof (ac__type_new_))
7541 return 0;
7543 return 0;
7545 _ACEOF
7546 rm -f conftest.$ac_objext
7547 if { (ac_try="$ac_compile"
7548 case "(($ac_try" in
7549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7550 *) ac_try_echo=$ac_try;;
7551 esac
7552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7553 (eval "$ac_compile") 2>conftest.er1
7554 ac_status=$?
7555 grep -v '^ *+' conftest.er1 >conftest.err
7556 rm -f conftest.er1
7557 cat conftest.err >&5
7558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7559 (exit $ac_status); } && {
7560 test -z "$ac_c_werror_flag" ||
7561 test ! -s conftest.err
7562 } && test -s conftest.$ac_objext; then
7563 ac_cv_type_int=yes
7564 else
7565 echo "$as_me: failed program was:" >&5
7566 sed 's/^/| /' conftest.$ac_ext >&5
7568 ac_cv_type_int=no
7571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7573 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
7574 echo "${ECHO_T}$ac_cv_type_int" >&6; }
7576 # The cast to long int works around a bug in the HP C Compiler
7577 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7578 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7579 # This bug is HP SR number 8606223364.
7580 { echo "$as_me:$LINENO: checking size of int" >&5
7581 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
7582 if test "${ac_cv_sizeof_int+set}" = set; then
7583 echo $ECHO_N "(cached) $ECHO_C" >&6
7584 else
7585 if test "$cross_compiling" = yes; then
7586 # Depending upon the size, compute the lo and hi bounds.
7587 cat >conftest.$ac_ext <<_ACEOF
7588 /* confdefs.h. */
7589 _ACEOF
7590 cat confdefs.h >>conftest.$ac_ext
7591 cat >>conftest.$ac_ext <<_ACEOF
7592 /* end confdefs.h. */
7593 $ac_includes_default
7594 typedef int ac__type_sizeof_;
7596 main ()
7598 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7599 test_array [0] = 0
7602 return 0;
7604 _ACEOF
7605 rm -f conftest.$ac_objext
7606 if { (ac_try="$ac_compile"
7607 case "(($ac_try" in
7608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7609 *) ac_try_echo=$ac_try;;
7610 esac
7611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7612 (eval "$ac_compile") 2>conftest.er1
7613 ac_status=$?
7614 grep -v '^ *+' conftest.er1 >conftest.err
7615 rm -f conftest.er1
7616 cat conftest.err >&5
7617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7618 (exit $ac_status); } && {
7619 test -z "$ac_c_werror_flag" ||
7620 test ! -s conftest.err
7621 } && test -s conftest.$ac_objext; then
7622 ac_lo=0 ac_mid=0
7623 while :; do
7624 cat >conftest.$ac_ext <<_ACEOF
7625 /* confdefs.h. */
7626 _ACEOF
7627 cat confdefs.h >>conftest.$ac_ext
7628 cat >>conftest.$ac_ext <<_ACEOF
7629 /* end confdefs.h. */
7630 $ac_includes_default
7631 typedef int ac__type_sizeof_;
7633 main ()
7635 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7636 test_array [0] = 0
7639 return 0;
7641 _ACEOF
7642 rm -f conftest.$ac_objext
7643 if { (ac_try="$ac_compile"
7644 case "(($ac_try" in
7645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7646 *) ac_try_echo=$ac_try;;
7647 esac
7648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7649 (eval "$ac_compile") 2>conftest.er1
7650 ac_status=$?
7651 grep -v '^ *+' conftest.er1 >conftest.err
7652 rm -f conftest.er1
7653 cat conftest.err >&5
7654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7655 (exit $ac_status); } && {
7656 test -z "$ac_c_werror_flag" ||
7657 test ! -s conftest.err
7658 } && test -s conftest.$ac_objext; then
7659 ac_hi=$ac_mid; break
7660 else
7661 echo "$as_me: failed program was:" >&5
7662 sed 's/^/| /' conftest.$ac_ext >&5
7664 ac_lo=`expr $ac_mid + 1`
7665 if test $ac_lo -le $ac_mid; then
7666 ac_lo= ac_hi=
7667 break
7669 ac_mid=`expr 2 '*' $ac_mid + 1`
7672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7673 done
7674 else
7675 echo "$as_me: failed program was:" >&5
7676 sed 's/^/| /' conftest.$ac_ext >&5
7678 cat >conftest.$ac_ext <<_ACEOF
7679 /* confdefs.h. */
7680 _ACEOF
7681 cat confdefs.h >>conftest.$ac_ext
7682 cat >>conftest.$ac_ext <<_ACEOF
7683 /* end confdefs.h. */
7684 $ac_includes_default
7685 typedef int ac__type_sizeof_;
7687 main ()
7689 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7690 test_array [0] = 0
7693 return 0;
7695 _ACEOF
7696 rm -f conftest.$ac_objext
7697 if { (ac_try="$ac_compile"
7698 case "(($ac_try" in
7699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7700 *) ac_try_echo=$ac_try;;
7701 esac
7702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7703 (eval "$ac_compile") 2>conftest.er1
7704 ac_status=$?
7705 grep -v '^ *+' conftest.er1 >conftest.err
7706 rm -f conftest.er1
7707 cat conftest.err >&5
7708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7709 (exit $ac_status); } && {
7710 test -z "$ac_c_werror_flag" ||
7711 test ! -s conftest.err
7712 } && test -s conftest.$ac_objext; then
7713 ac_hi=-1 ac_mid=-1
7714 while :; do
7715 cat >conftest.$ac_ext <<_ACEOF
7716 /* confdefs.h. */
7717 _ACEOF
7718 cat confdefs.h >>conftest.$ac_ext
7719 cat >>conftest.$ac_ext <<_ACEOF
7720 /* end confdefs.h. */
7721 $ac_includes_default
7722 typedef int ac__type_sizeof_;
7724 main ()
7726 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7727 test_array [0] = 0
7730 return 0;
7732 _ACEOF
7733 rm -f conftest.$ac_objext
7734 if { (ac_try="$ac_compile"
7735 case "(($ac_try" in
7736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7737 *) ac_try_echo=$ac_try;;
7738 esac
7739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7740 (eval "$ac_compile") 2>conftest.er1
7741 ac_status=$?
7742 grep -v '^ *+' conftest.er1 >conftest.err
7743 rm -f conftest.er1
7744 cat conftest.err >&5
7745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7746 (exit $ac_status); } && {
7747 test -z "$ac_c_werror_flag" ||
7748 test ! -s conftest.err
7749 } && test -s conftest.$ac_objext; then
7750 ac_lo=$ac_mid; break
7751 else
7752 echo "$as_me: failed program was:" >&5
7753 sed 's/^/| /' conftest.$ac_ext >&5
7755 ac_hi=`expr '(' $ac_mid ')' - 1`
7756 if test $ac_mid -le $ac_hi; then
7757 ac_lo= ac_hi=
7758 break
7760 ac_mid=`expr 2 '*' $ac_mid`
7763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7764 done
7765 else
7766 echo "$as_me: failed program was:" >&5
7767 sed 's/^/| /' conftest.$ac_ext >&5
7769 ac_lo= ac_hi=
7772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7776 # Binary search between lo and hi bounds.
7777 while test "x$ac_lo" != "x$ac_hi"; do
7778 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7779 cat >conftest.$ac_ext <<_ACEOF
7780 /* confdefs.h. */
7781 _ACEOF
7782 cat confdefs.h >>conftest.$ac_ext
7783 cat >>conftest.$ac_ext <<_ACEOF
7784 /* end confdefs.h. */
7785 $ac_includes_default
7786 typedef int ac__type_sizeof_;
7788 main ()
7790 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7791 test_array [0] = 0
7794 return 0;
7796 _ACEOF
7797 rm -f conftest.$ac_objext
7798 if { (ac_try="$ac_compile"
7799 case "(($ac_try" in
7800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7801 *) ac_try_echo=$ac_try;;
7802 esac
7803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7804 (eval "$ac_compile") 2>conftest.er1
7805 ac_status=$?
7806 grep -v '^ *+' conftest.er1 >conftest.err
7807 rm -f conftest.er1
7808 cat conftest.err >&5
7809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7810 (exit $ac_status); } && {
7811 test -z "$ac_c_werror_flag" ||
7812 test ! -s conftest.err
7813 } && test -s conftest.$ac_objext; then
7814 ac_hi=$ac_mid
7815 else
7816 echo "$as_me: failed program was:" >&5
7817 sed 's/^/| /' conftest.$ac_ext >&5
7819 ac_lo=`expr '(' $ac_mid ')' + 1`
7822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7823 done
7824 case $ac_lo in
7825 ?*) ac_cv_sizeof_int=$ac_lo;;
7826 '') if test "$ac_cv_type_int" = yes; then
7827 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7828 See \`config.log' for more details." >&5
7829 echo "$as_me: error: cannot compute sizeof (int)
7830 See \`config.log' for more details." >&2;}
7831 { (exit 77); exit 77; }; }
7832 else
7833 ac_cv_sizeof_int=0
7834 fi ;;
7835 esac
7836 else
7837 cat >conftest.$ac_ext <<_ACEOF
7838 /* confdefs.h. */
7839 _ACEOF
7840 cat confdefs.h >>conftest.$ac_ext
7841 cat >>conftest.$ac_ext <<_ACEOF
7842 /* end confdefs.h. */
7843 $ac_includes_default
7844 typedef int ac__type_sizeof_;
7845 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7846 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7847 #include <stdio.h>
7848 #include <stdlib.h>
7850 main ()
7853 FILE *f = fopen ("conftest.val", "w");
7854 if (! f)
7855 return 1;
7856 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7858 long int i = longval ();
7859 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7860 return 1;
7861 fprintf (f, "%ld\n", i);
7863 else
7865 unsigned long int i = ulongval ();
7866 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7867 return 1;
7868 fprintf (f, "%lu\n", i);
7870 return ferror (f) || fclose (f) != 0;
7873 return 0;
7875 _ACEOF
7876 rm -f conftest$ac_exeext
7877 if { (ac_try="$ac_link"
7878 case "(($ac_try" in
7879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7880 *) ac_try_echo=$ac_try;;
7881 esac
7882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7883 (eval "$ac_link") 2>&5
7884 ac_status=$?
7885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7886 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7887 { (case "(($ac_try" in
7888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7889 *) ac_try_echo=$ac_try;;
7890 esac
7891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7892 (eval "$ac_try") 2>&5
7893 ac_status=$?
7894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7895 (exit $ac_status); }; }; then
7896 ac_cv_sizeof_int=`cat conftest.val`
7897 else
7898 echo "$as_me: program exited with status $ac_status" >&5
7899 echo "$as_me: failed program was:" >&5
7900 sed 's/^/| /' conftest.$ac_ext >&5
7902 ( exit $ac_status )
7903 if test "$ac_cv_type_int" = yes; then
7904 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7905 See \`config.log' for more details." >&5
7906 echo "$as_me: error: cannot compute sizeof (int)
7907 See \`config.log' for more details." >&2;}
7908 { (exit 77); exit 77; }; }
7909 else
7910 ac_cv_sizeof_int=0
7913 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7915 rm -f conftest.val
7917 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
7918 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
7922 cat >>confdefs.h <<_ACEOF
7923 #define SIZEOF_INT $ac_cv_sizeof_int
7924 _ACEOF
7927 { echo "$as_me:$LINENO: checking for long" >&5
7928 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
7929 if test "${ac_cv_type_long+set}" = set; then
7930 echo $ECHO_N "(cached) $ECHO_C" >&6
7931 else
7932 cat >conftest.$ac_ext <<_ACEOF
7933 /* confdefs.h. */
7934 _ACEOF
7935 cat confdefs.h >>conftest.$ac_ext
7936 cat >>conftest.$ac_ext <<_ACEOF
7937 /* end confdefs.h. */
7938 $ac_includes_default
7939 typedef long ac__type_new_;
7941 main ()
7943 if ((ac__type_new_ *) 0)
7944 return 0;
7945 if (sizeof (ac__type_new_))
7946 return 0;
7948 return 0;
7950 _ACEOF
7951 rm -f conftest.$ac_objext
7952 if { (ac_try="$ac_compile"
7953 case "(($ac_try" in
7954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7955 *) ac_try_echo=$ac_try;;
7956 esac
7957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7958 (eval "$ac_compile") 2>conftest.er1
7959 ac_status=$?
7960 grep -v '^ *+' conftest.er1 >conftest.err
7961 rm -f conftest.er1
7962 cat conftest.err >&5
7963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7964 (exit $ac_status); } && {
7965 test -z "$ac_c_werror_flag" ||
7966 test ! -s conftest.err
7967 } && test -s conftest.$ac_objext; then
7968 ac_cv_type_long=yes
7969 else
7970 echo "$as_me: failed program was:" >&5
7971 sed 's/^/| /' conftest.$ac_ext >&5
7973 ac_cv_type_long=no
7976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7978 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
7979 echo "${ECHO_T}$ac_cv_type_long" >&6; }
7981 # The cast to long int works around a bug in the HP C Compiler
7982 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7983 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7984 # This bug is HP SR number 8606223364.
7985 { echo "$as_me:$LINENO: checking size of long" >&5
7986 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
7987 if test "${ac_cv_sizeof_long+set}" = set; then
7988 echo $ECHO_N "(cached) $ECHO_C" >&6
7989 else
7990 if test "$cross_compiling" = yes; then
7991 # Depending upon the size, compute the lo and hi bounds.
7992 cat >conftest.$ac_ext <<_ACEOF
7993 /* confdefs.h. */
7994 _ACEOF
7995 cat confdefs.h >>conftest.$ac_ext
7996 cat >>conftest.$ac_ext <<_ACEOF
7997 /* end confdefs.h. */
7998 $ac_includes_default
7999 typedef long ac__type_sizeof_;
8001 main ()
8003 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8004 test_array [0] = 0
8007 return 0;
8009 _ACEOF
8010 rm -f conftest.$ac_objext
8011 if { (ac_try="$ac_compile"
8012 case "(($ac_try" in
8013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8014 *) ac_try_echo=$ac_try;;
8015 esac
8016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8017 (eval "$ac_compile") 2>conftest.er1
8018 ac_status=$?
8019 grep -v '^ *+' conftest.er1 >conftest.err
8020 rm -f conftest.er1
8021 cat conftest.err >&5
8022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8023 (exit $ac_status); } && {
8024 test -z "$ac_c_werror_flag" ||
8025 test ! -s conftest.err
8026 } && test -s conftest.$ac_objext; then
8027 ac_lo=0 ac_mid=0
8028 while :; do
8029 cat >conftest.$ac_ext <<_ACEOF
8030 /* confdefs.h. */
8031 _ACEOF
8032 cat confdefs.h >>conftest.$ac_ext
8033 cat >>conftest.$ac_ext <<_ACEOF
8034 /* end confdefs.h. */
8035 $ac_includes_default
8036 typedef long ac__type_sizeof_;
8038 main ()
8040 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8041 test_array [0] = 0
8044 return 0;
8046 _ACEOF
8047 rm -f conftest.$ac_objext
8048 if { (ac_try="$ac_compile"
8049 case "(($ac_try" in
8050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8051 *) ac_try_echo=$ac_try;;
8052 esac
8053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8054 (eval "$ac_compile") 2>conftest.er1
8055 ac_status=$?
8056 grep -v '^ *+' conftest.er1 >conftest.err
8057 rm -f conftest.er1
8058 cat conftest.err >&5
8059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8060 (exit $ac_status); } && {
8061 test -z "$ac_c_werror_flag" ||
8062 test ! -s conftest.err
8063 } && test -s conftest.$ac_objext; then
8064 ac_hi=$ac_mid; break
8065 else
8066 echo "$as_me: failed program was:" >&5
8067 sed 's/^/| /' conftest.$ac_ext >&5
8069 ac_lo=`expr $ac_mid + 1`
8070 if test $ac_lo -le $ac_mid; then
8071 ac_lo= ac_hi=
8072 break
8074 ac_mid=`expr 2 '*' $ac_mid + 1`
8077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8078 done
8079 else
8080 echo "$as_me: failed program was:" >&5
8081 sed 's/^/| /' conftest.$ac_ext >&5
8083 cat >conftest.$ac_ext <<_ACEOF
8084 /* confdefs.h. */
8085 _ACEOF
8086 cat confdefs.h >>conftest.$ac_ext
8087 cat >>conftest.$ac_ext <<_ACEOF
8088 /* end confdefs.h. */
8089 $ac_includes_default
8090 typedef long ac__type_sizeof_;
8092 main ()
8094 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8095 test_array [0] = 0
8098 return 0;
8100 _ACEOF
8101 rm -f conftest.$ac_objext
8102 if { (ac_try="$ac_compile"
8103 case "(($ac_try" in
8104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8105 *) ac_try_echo=$ac_try;;
8106 esac
8107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8108 (eval "$ac_compile") 2>conftest.er1
8109 ac_status=$?
8110 grep -v '^ *+' conftest.er1 >conftest.err
8111 rm -f conftest.er1
8112 cat conftest.err >&5
8113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8114 (exit $ac_status); } && {
8115 test -z "$ac_c_werror_flag" ||
8116 test ! -s conftest.err
8117 } && test -s conftest.$ac_objext; then
8118 ac_hi=-1 ac_mid=-1
8119 while :; do
8120 cat >conftest.$ac_ext <<_ACEOF
8121 /* confdefs.h. */
8122 _ACEOF
8123 cat confdefs.h >>conftest.$ac_ext
8124 cat >>conftest.$ac_ext <<_ACEOF
8125 /* end confdefs.h. */
8126 $ac_includes_default
8127 typedef long ac__type_sizeof_;
8129 main ()
8131 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8132 test_array [0] = 0
8135 return 0;
8137 _ACEOF
8138 rm -f conftest.$ac_objext
8139 if { (ac_try="$ac_compile"
8140 case "(($ac_try" in
8141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8142 *) ac_try_echo=$ac_try;;
8143 esac
8144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8145 (eval "$ac_compile") 2>conftest.er1
8146 ac_status=$?
8147 grep -v '^ *+' conftest.er1 >conftest.err
8148 rm -f conftest.er1
8149 cat conftest.err >&5
8150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8151 (exit $ac_status); } && {
8152 test -z "$ac_c_werror_flag" ||
8153 test ! -s conftest.err
8154 } && test -s conftest.$ac_objext; then
8155 ac_lo=$ac_mid; break
8156 else
8157 echo "$as_me: failed program was:" >&5
8158 sed 's/^/| /' conftest.$ac_ext >&5
8160 ac_hi=`expr '(' $ac_mid ')' - 1`
8161 if test $ac_mid -le $ac_hi; then
8162 ac_lo= ac_hi=
8163 break
8165 ac_mid=`expr 2 '*' $ac_mid`
8168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8169 done
8170 else
8171 echo "$as_me: failed program was:" >&5
8172 sed 's/^/| /' conftest.$ac_ext >&5
8174 ac_lo= ac_hi=
8177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8181 # Binary search between lo and hi bounds.
8182 while test "x$ac_lo" != "x$ac_hi"; do
8183 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8184 cat >conftest.$ac_ext <<_ACEOF
8185 /* confdefs.h. */
8186 _ACEOF
8187 cat confdefs.h >>conftest.$ac_ext
8188 cat >>conftest.$ac_ext <<_ACEOF
8189 /* end confdefs.h. */
8190 $ac_includes_default
8191 typedef long ac__type_sizeof_;
8193 main ()
8195 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8196 test_array [0] = 0
8199 return 0;
8201 _ACEOF
8202 rm -f conftest.$ac_objext
8203 if { (ac_try="$ac_compile"
8204 case "(($ac_try" in
8205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8206 *) ac_try_echo=$ac_try;;
8207 esac
8208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8209 (eval "$ac_compile") 2>conftest.er1
8210 ac_status=$?
8211 grep -v '^ *+' conftest.er1 >conftest.err
8212 rm -f conftest.er1
8213 cat conftest.err >&5
8214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8215 (exit $ac_status); } && {
8216 test -z "$ac_c_werror_flag" ||
8217 test ! -s conftest.err
8218 } && test -s conftest.$ac_objext; then
8219 ac_hi=$ac_mid
8220 else
8221 echo "$as_me: failed program was:" >&5
8222 sed 's/^/| /' conftest.$ac_ext >&5
8224 ac_lo=`expr '(' $ac_mid ')' + 1`
8227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8228 done
8229 case $ac_lo in
8230 ?*) ac_cv_sizeof_long=$ac_lo;;
8231 '') if test "$ac_cv_type_long" = yes; then
8232 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
8233 See \`config.log' for more details." >&5
8234 echo "$as_me: error: cannot compute sizeof (long)
8235 See \`config.log' for more details." >&2;}
8236 { (exit 77); exit 77; }; }
8237 else
8238 ac_cv_sizeof_long=0
8239 fi ;;
8240 esac
8241 else
8242 cat >conftest.$ac_ext <<_ACEOF
8243 /* confdefs.h. */
8244 _ACEOF
8245 cat confdefs.h >>conftest.$ac_ext
8246 cat >>conftest.$ac_ext <<_ACEOF
8247 /* end confdefs.h. */
8248 $ac_includes_default
8249 typedef long ac__type_sizeof_;
8250 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8251 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8252 #include <stdio.h>
8253 #include <stdlib.h>
8255 main ()
8258 FILE *f = fopen ("conftest.val", "w");
8259 if (! f)
8260 return 1;
8261 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8263 long int i = longval ();
8264 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8265 return 1;
8266 fprintf (f, "%ld\n", i);
8268 else
8270 unsigned long int i = ulongval ();
8271 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8272 return 1;
8273 fprintf (f, "%lu\n", i);
8275 return ferror (f) || fclose (f) != 0;
8278 return 0;
8280 _ACEOF
8281 rm -f conftest$ac_exeext
8282 if { (ac_try="$ac_link"
8283 case "(($ac_try" in
8284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8285 *) ac_try_echo=$ac_try;;
8286 esac
8287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8288 (eval "$ac_link") 2>&5
8289 ac_status=$?
8290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8291 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8292 { (case "(($ac_try" in
8293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8294 *) ac_try_echo=$ac_try;;
8295 esac
8296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8297 (eval "$ac_try") 2>&5
8298 ac_status=$?
8299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8300 (exit $ac_status); }; }; then
8301 ac_cv_sizeof_long=`cat conftest.val`
8302 else
8303 echo "$as_me: program exited with status $ac_status" >&5
8304 echo "$as_me: failed program was:" >&5
8305 sed 's/^/| /' conftest.$ac_ext >&5
8307 ( exit $ac_status )
8308 if test "$ac_cv_type_long" = yes; then
8309 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
8310 See \`config.log' for more details." >&5
8311 echo "$as_me: error: cannot compute sizeof (long)
8312 See \`config.log' for more details." >&2;}
8313 { (exit 77); exit 77; }; }
8314 else
8315 ac_cv_sizeof_long=0
8318 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8320 rm -f conftest.val
8322 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
8323 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
8327 cat >>confdefs.h <<_ACEOF
8328 #define SIZEOF_LONG $ac_cv_sizeof_long
8329 _ACEOF
8332 { echo "$as_me:$LINENO: checking for void *" >&5
8333 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
8334 if test "${ac_cv_type_void_p+set}" = set; then
8335 echo $ECHO_N "(cached) $ECHO_C" >&6
8336 else
8337 cat >conftest.$ac_ext <<_ACEOF
8338 /* confdefs.h. */
8339 _ACEOF
8340 cat confdefs.h >>conftest.$ac_ext
8341 cat >>conftest.$ac_ext <<_ACEOF
8342 /* end confdefs.h. */
8343 $ac_includes_default
8344 typedef void * ac__type_new_;
8346 main ()
8348 if ((ac__type_new_ *) 0)
8349 return 0;
8350 if (sizeof (ac__type_new_))
8351 return 0;
8353 return 0;
8355 _ACEOF
8356 rm -f conftest.$ac_objext
8357 if { (ac_try="$ac_compile"
8358 case "(($ac_try" in
8359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8360 *) ac_try_echo=$ac_try;;
8361 esac
8362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8363 (eval "$ac_compile") 2>conftest.er1
8364 ac_status=$?
8365 grep -v '^ *+' conftest.er1 >conftest.err
8366 rm -f conftest.er1
8367 cat conftest.err >&5
8368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8369 (exit $ac_status); } && {
8370 test -z "$ac_c_werror_flag" ||
8371 test ! -s conftest.err
8372 } && test -s conftest.$ac_objext; then
8373 ac_cv_type_void_p=yes
8374 else
8375 echo "$as_me: failed program was:" >&5
8376 sed 's/^/| /' conftest.$ac_ext >&5
8378 ac_cv_type_void_p=no
8381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8383 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
8384 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
8386 # The cast to long int works around a bug in the HP C Compiler
8387 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8388 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8389 # This bug is HP SR number 8606223364.
8390 { echo "$as_me:$LINENO: checking size of void *" >&5
8391 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
8392 if test "${ac_cv_sizeof_void_p+set}" = set; then
8393 echo $ECHO_N "(cached) $ECHO_C" >&6
8394 else
8395 if test "$cross_compiling" = yes; then
8396 # Depending upon the size, compute the lo and hi bounds.
8397 cat >conftest.$ac_ext <<_ACEOF
8398 /* confdefs.h. */
8399 _ACEOF
8400 cat confdefs.h >>conftest.$ac_ext
8401 cat >>conftest.$ac_ext <<_ACEOF
8402 /* end confdefs.h. */
8403 $ac_includes_default
8404 typedef void * ac__type_sizeof_;
8406 main ()
8408 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8409 test_array [0] = 0
8412 return 0;
8414 _ACEOF
8415 rm -f conftest.$ac_objext
8416 if { (ac_try="$ac_compile"
8417 case "(($ac_try" in
8418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8419 *) ac_try_echo=$ac_try;;
8420 esac
8421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8422 (eval "$ac_compile") 2>conftest.er1
8423 ac_status=$?
8424 grep -v '^ *+' conftest.er1 >conftest.err
8425 rm -f conftest.er1
8426 cat conftest.err >&5
8427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8428 (exit $ac_status); } && {
8429 test -z "$ac_c_werror_flag" ||
8430 test ! -s conftest.err
8431 } && test -s conftest.$ac_objext; then
8432 ac_lo=0 ac_mid=0
8433 while :; do
8434 cat >conftest.$ac_ext <<_ACEOF
8435 /* confdefs.h. */
8436 _ACEOF
8437 cat confdefs.h >>conftest.$ac_ext
8438 cat >>conftest.$ac_ext <<_ACEOF
8439 /* end confdefs.h. */
8440 $ac_includes_default
8441 typedef void * ac__type_sizeof_;
8443 main ()
8445 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8446 test_array [0] = 0
8449 return 0;
8451 _ACEOF
8452 rm -f conftest.$ac_objext
8453 if { (ac_try="$ac_compile"
8454 case "(($ac_try" in
8455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8456 *) ac_try_echo=$ac_try;;
8457 esac
8458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8459 (eval "$ac_compile") 2>conftest.er1
8460 ac_status=$?
8461 grep -v '^ *+' conftest.er1 >conftest.err
8462 rm -f conftest.er1
8463 cat conftest.err >&5
8464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8465 (exit $ac_status); } && {
8466 test -z "$ac_c_werror_flag" ||
8467 test ! -s conftest.err
8468 } && test -s conftest.$ac_objext; then
8469 ac_hi=$ac_mid; break
8470 else
8471 echo "$as_me: failed program was:" >&5
8472 sed 's/^/| /' conftest.$ac_ext >&5
8474 ac_lo=`expr $ac_mid + 1`
8475 if test $ac_lo -le $ac_mid; then
8476 ac_lo= ac_hi=
8477 break
8479 ac_mid=`expr 2 '*' $ac_mid + 1`
8482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8483 done
8484 else
8485 echo "$as_me: failed program was:" >&5
8486 sed 's/^/| /' conftest.$ac_ext >&5
8488 cat >conftest.$ac_ext <<_ACEOF
8489 /* confdefs.h. */
8490 _ACEOF
8491 cat confdefs.h >>conftest.$ac_ext
8492 cat >>conftest.$ac_ext <<_ACEOF
8493 /* end confdefs.h. */
8494 $ac_includes_default
8495 typedef void * ac__type_sizeof_;
8497 main ()
8499 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8500 test_array [0] = 0
8503 return 0;
8505 _ACEOF
8506 rm -f conftest.$ac_objext
8507 if { (ac_try="$ac_compile"
8508 case "(($ac_try" in
8509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8510 *) ac_try_echo=$ac_try;;
8511 esac
8512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8513 (eval "$ac_compile") 2>conftest.er1
8514 ac_status=$?
8515 grep -v '^ *+' conftest.er1 >conftest.err
8516 rm -f conftest.er1
8517 cat conftest.err >&5
8518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8519 (exit $ac_status); } && {
8520 test -z "$ac_c_werror_flag" ||
8521 test ! -s conftest.err
8522 } && test -s conftest.$ac_objext; then
8523 ac_hi=-1 ac_mid=-1
8524 while :; do
8525 cat >conftest.$ac_ext <<_ACEOF
8526 /* confdefs.h. */
8527 _ACEOF
8528 cat confdefs.h >>conftest.$ac_ext
8529 cat >>conftest.$ac_ext <<_ACEOF
8530 /* end confdefs.h. */
8531 $ac_includes_default
8532 typedef void * ac__type_sizeof_;
8534 main ()
8536 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8537 test_array [0] = 0
8540 return 0;
8542 _ACEOF
8543 rm -f conftest.$ac_objext
8544 if { (ac_try="$ac_compile"
8545 case "(($ac_try" in
8546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8547 *) ac_try_echo=$ac_try;;
8548 esac
8549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8550 (eval "$ac_compile") 2>conftest.er1
8551 ac_status=$?
8552 grep -v '^ *+' conftest.er1 >conftest.err
8553 rm -f conftest.er1
8554 cat conftest.err >&5
8555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8556 (exit $ac_status); } && {
8557 test -z "$ac_c_werror_flag" ||
8558 test ! -s conftest.err
8559 } && test -s conftest.$ac_objext; then
8560 ac_lo=$ac_mid; break
8561 else
8562 echo "$as_me: failed program was:" >&5
8563 sed 's/^/| /' conftest.$ac_ext >&5
8565 ac_hi=`expr '(' $ac_mid ')' - 1`
8566 if test $ac_mid -le $ac_hi; then
8567 ac_lo= ac_hi=
8568 break
8570 ac_mid=`expr 2 '*' $ac_mid`
8573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8574 done
8575 else
8576 echo "$as_me: failed program was:" >&5
8577 sed 's/^/| /' conftest.$ac_ext >&5
8579 ac_lo= ac_hi=
8582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8586 # Binary search between lo and hi bounds.
8587 while test "x$ac_lo" != "x$ac_hi"; do
8588 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8589 cat >conftest.$ac_ext <<_ACEOF
8590 /* confdefs.h. */
8591 _ACEOF
8592 cat confdefs.h >>conftest.$ac_ext
8593 cat >>conftest.$ac_ext <<_ACEOF
8594 /* end confdefs.h. */
8595 $ac_includes_default
8596 typedef void * ac__type_sizeof_;
8598 main ()
8600 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8601 test_array [0] = 0
8604 return 0;
8606 _ACEOF
8607 rm -f conftest.$ac_objext
8608 if { (ac_try="$ac_compile"
8609 case "(($ac_try" in
8610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8611 *) ac_try_echo=$ac_try;;
8612 esac
8613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8614 (eval "$ac_compile") 2>conftest.er1
8615 ac_status=$?
8616 grep -v '^ *+' conftest.er1 >conftest.err
8617 rm -f conftest.er1
8618 cat conftest.err >&5
8619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620 (exit $ac_status); } && {
8621 test -z "$ac_c_werror_flag" ||
8622 test ! -s conftest.err
8623 } && test -s conftest.$ac_objext; then
8624 ac_hi=$ac_mid
8625 else
8626 echo "$as_me: failed program was:" >&5
8627 sed 's/^/| /' conftest.$ac_ext >&5
8629 ac_lo=`expr '(' $ac_mid ')' + 1`
8632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8633 done
8634 case $ac_lo in
8635 ?*) ac_cv_sizeof_void_p=$ac_lo;;
8636 '') if test "$ac_cv_type_void_p" = yes; then
8637 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8638 See \`config.log' for more details." >&5
8639 echo "$as_me: error: cannot compute sizeof (void *)
8640 See \`config.log' for more details." >&2;}
8641 { (exit 77); exit 77; }; }
8642 else
8643 ac_cv_sizeof_void_p=0
8644 fi ;;
8645 esac
8646 else
8647 cat >conftest.$ac_ext <<_ACEOF
8648 /* confdefs.h. */
8649 _ACEOF
8650 cat confdefs.h >>conftest.$ac_ext
8651 cat >>conftest.$ac_ext <<_ACEOF
8652 /* end confdefs.h. */
8653 $ac_includes_default
8654 typedef void * ac__type_sizeof_;
8655 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8656 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8657 #include <stdio.h>
8658 #include <stdlib.h>
8660 main ()
8663 FILE *f = fopen ("conftest.val", "w");
8664 if (! f)
8665 return 1;
8666 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8668 long int i = longval ();
8669 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8670 return 1;
8671 fprintf (f, "%ld\n", i);
8673 else
8675 unsigned long int i = ulongval ();
8676 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8677 return 1;
8678 fprintf (f, "%lu\n", i);
8680 return ferror (f) || fclose (f) != 0;
8683 return 0;
8685 _ACEOF
8686 rm -f conftest$ac_exeext
8687 if { (ac_try="$ac_link"
8688 case "(($ac_try" in
8689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8690 *) ac_try_echo=$ac_try;;
8691 esac
8692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8693 (eval "$ac_link") 2>&5
8694 ac_status=$?
8695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8696 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8697 { (case "(($ac_try" in
8698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8699 *) ac_try_echo=$ac_try;;
8700 esac
8701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8702 (eval "$ac_try") 2>&5
8703 ac_status=$?
8704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8705 (exit $ac_status); }; }; then
8706 ac_cv_sizeof_void_p=`cat conftest.val`
8707 else
8708 echo "$as_me: program exited with status $ac_status" >&5
8709 echo "$as_me: failed program was:" >&5
8710 sed 's/^/| /' conftest.$ac_ext >&5
8712 ( exit $ac_status )
8713 if test "$ac_cv_type_void_p" = yes; then
8714 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8715 See \`config.log' for more details." >&5
8716 echo "$as_me: error: cannot compute sizeof (void *)
8717 See \`config.log' for more details." >&2;}
8718 { (exit 77); exit 77; }; }
8719 else
8720 ac_cv_sizeof_void_p=0
8723 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8725 rm -f conftest.val
8727 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
8728 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
8732 cat >>confdefs.h <<_ACEOF
8733 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
8734 _ACEOF
8737 { echo "$as_me:$LINENO: checking for short" >&5
8738 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
8739 if test "${ac_cv_type_short+set}" = set; then
8740 echo $ECHO_N "(cached) $ECHO_C" >&6
8741 else
8742 cat >conftest.$ac_ext <<_ACEOF
8743 /* confdefs.h. */
8744 _ACEOF
8745 cat confdefs.h >>conftest.$ac_ext
8746 cat >>conftest.$ac_ext <<_ACEOF
8747 /* end confdefs.h. */
8748 $ac_includes_default
8749 typedef short ac__type_new_;
8751 main ()
8753 if ((ac__type_new_ *) 0)
8754 return 0;
8755 if (sizeof (ac__type_new_))
8756 return 0;
8758 return 0;
8760 _ACEOF
8761 rm -f conftest.$ac_objext
8762 if { (ac_try="$ac_compile"
8763 case "(($ac_try" in
8764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8765 *) ac_try_echo=$ac_try;;
8766 esac
8767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8768 (eval "$ac_compile") 2>conftest.er1
8769 ac_status=$?
8770 grep -v '^ *+' conftest.er1 >conftest.err
8771 rm -f conftest.er1
8772 cat conftest.err >&5
8773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8774 (exit $ac_status); } && {
8775 test -z "$ac_c_werror_flag" ||
8776 test ! -s conftest.err
8777 } && test -s conftest.$ac_objext; then
8778 ac_cv_type_short=yes
8779 else
8780 echo "$as_me: failed program was:" >&5
8781 sed 's/^/| /' conftest.$ac_ext >&5
8783 ac_cv_type_short=no
8786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8788 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
8789 echo "${ECHO_T}$ac_cv_type_short" >&6; }
8791 # The cast to long int works around a bug in the HP C Compiler
8792 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8793 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8794 # This bug is HP SR number 8606223364.
8795 { echo "$as_me:$LINENO: checking size of short" >&5
8796 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
8797 if test "${ac_cv_sizeof_short+set}" = set; then
8798 echo $ECHO_N "(cached) $ECHO_C" >&6
8799 else
8800 if test "$cross_compiling" = yes; then
8801 # Depending upon the size, compute the lo and hi bounds.
8802 cat >conftest.$ac_ext <<_ACEOF
8803 /* confdefs.h. */
8804 _ACEOF
8805 cat confdefs.h >>conftest.$ac_ext
8806 cat >>conftest.$ac_ext <<_ACEOF
8807 /* end confdefs.h. */
8808 $ac_includes_default
8809 typedef short ac__type_sizeof_;
8811 main ()
8813 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8814 test_array [0] = 0
8817 return 0;
8819 _ACEOF
8820 rm -f conftest.$ac_objext
8821 if { (ac_try="$ac_compile"
8822 case "(($ac_try" in
8823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8824 *) ac_try_echo=$ac_try;;
8825 esac
8826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8827 (eval "$ac_compile") 2>conftest.er1
8828 ac_status=$?
8829 grep -v '^ *+' conftest.er1 >conftest.err
8830 rm -f conftest.er1
8831 cat conftest.err >&5
8832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8833 (exit $ac_status); } && {
8834 test -z "$ac_c_werror_flag" ||
8835 test ! -s conftest.err
8836 } && test -s conftest.$ac_objext; then
8837 ac_lo=0 ac_mid=0
8838 while :; do
8839 cat >conftest.$ac_ext <<_ACEOF
8840 /* confdefs.h. */
8841 _ACEOF
8842 cat confdefs.h >>conftest.$ac_ext
8843 cat >>conftest.$ac_ext <<_ACEOF
8844 /* end confdefs.h. */
8845 $ac_includes_default
8846 typedef short ac__type_sizeof_;
8848 main ()
8850 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8851 test_array [0] = 0
8854 return 0;
8856 _ACEOF
8857 rm -f conftest.$ac_objext
8858 if { (ac_try="$ac_compile"
8859 case "(($ac_try" in
8860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8861 *) ac_try_echo=$ac_try;;
8862 esac
8863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8864 (eval "$ac_compile") 2>conftest.er1
8865 ac_status=$?
8866 grep -v '^ *+' conftest.er1 >conftest.err
8867 rm -f conftest.er1
8868 cat conftest.err >&5
8869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8870 (exit $ac_status); } && {
8871 test -z "$ac_c_werror_flag" ||
8872 test ! -s conftest.err
8873 } && test -s conftest.$ac_objext; then
8874 ac_hi=$ac_mid; break
8875 else
8876 echo "$as_me: failed program was:" >&5
8877 sed 's/^/| /' conftest.$ac_ext >&5
8879 ac_lo=`expr $ac_mid + 1`
8880 if test $ac_lo -le $ac_mid; then
8881 ac_lo= ac_hi=
8882 break
8884 ac_mid=`expr 2 '*' $ac_mid + 1`
8887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8888 done
8889 else
8890 echo "$as_me: failed program was:" >&5
8891 sed 's/^/| /' conftest.$ac_ext >&5
8893 cat >conftest.$ac_ext <<_ACEOF
8894 /* confdefs.h. */
8895 _ACEOF
8896 cat confdefs.h >>conftest.$ac_ext
8897 cat >>conftest.$ac_ext <<_ACEOF
8898 /* end confdefs.h. */
8899 $ac_includes_default
8900 typedef short ac__type_sizeof_;
8902 main ()
8904 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8905 test_array [0] = 0
8908 return 0;
8910 _ACEOF
8911 rm -f conftest.$ac_objext
8912 if { (ac_try="$ac_compile"
8913 case "(($ac_try" in
8914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8915 *) ac_try_echo=$ac_try;;
8916 esac
8917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8918 (eval "$ac_compile") 2>conftest.er1
8919 ac_status=$?
8920 grep -v '^ *+' conftest.er1 >conftest.err
8921 rm -f conftest.er1
8922 cat conftest.err >&5
8923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8924 (exit $ac_status); } && {
8925 test -z "$ac_c_werror_flag" ||
8926 test ! -s conftest.err
8927 } && test -s conftest.$ac_objext; then
8928 ac_hi=-1 ac_mid=-1
8929 while :; do
8930 cat >conftest.$ac_ext <<_ACEOF
8931 /* confdefs.h. */
8932 _ACEOF
8933 cat confdefs.h >>conftest.$ac_ext
8934 cat >>conftest.$ac_ext <<_ACEOF
8935 /* end confdefs.h. */
8936 $ac_includes_default
8937 typedef short ac__type_sizeof_;
8939 main ()
8941 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8942 test_array [0] = 0
8945 return 0;
8947 _ACEOF
8948 rm -f conftest.$ac_objext
8949 if { (ac_try="$ac_compile"
8950 case "(($ac_try" in
8951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8952 *) ac_try_echo=$ac_try;;
8953 esac
8954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8955 (eval "$ac_compile") 2>conftest.er1
8956 ac_status=$?
8957 grep -v '^ *+' conftest.er1 >conftest.err
8958 rm -f conftest.er1
8959 cat conftest.err >&5
8960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8961 (exit $ac_status); } && {
8962 test -z "$ac_c_werror_flag" ||
8963 test ! -s conftest.err
8964 } && test -s conftest.$ac_objext; then
8965 ac_lo=$ac_mid; break
8966 else
8967 echo "$as_me: failed program was:" >&5
8968 sed 's/^/| /' conftest.$ac_ext >&5
8970 ac_hi=`expr '(' $ac_mid ')' - 1`
8971 if test $ac_mid -le $ac_hi; then
8972 ac_lo= ac_hi=
8973 break
8975 ac_mid=`expr 2 '*' $ac_mid`
8978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8979 done
8980 else
8981 echo "$as_me: failed program was:" >&5
8982 sed 's/^/| /' conftest.$ac_ext >&5
8984 ac_lo= ac_hi=
8987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8991 # Binary search between lo and hi bounds.
8992 while test "x$ac_lo" != "x$ac_hi"; do
8993 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8994 cat >conftest.$ac_ext <<_ACEOF
8995 /* confdefs.h. */
8996 _ACEOF
8997 cat confdefs.h >>conftest.$ac_ext
8998 cat >>conftest.$ac_ext <<_ACEOF
8999 /* end confdefs.h. */
9000 $ac_includes_default
9001 typedef short ac__type_sizeof_;
9003 main ()
9005 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9006 test_array [0] = 0
9009 return 0;
9011 _ACEOF
9012 rm -f conftest.$ac_objext
9013 if { (ac_try="$ac_compile"
9014 case "(($ac_try" in
9015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9016 *) ac_try_echo=$ac_try;;
9017 esac
9018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9019 (eval "$ac_compile") 2>conftest.er1
9020 ac_status=$?
9021 grep -v '^ *+' conftest.er1 >conftest.err
9022 rm -f conftest.er1
9023 cat conftest.err >&5
9024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9025 (exit $ac_status); } && {
9026 test -z "$ac_c_werror_flag" ||
9027 test ! -s conftest.err
9028 } && test -s conftest.$ac_objext; then
9029 ac_hi=$ac_mid
9030 else
9031 echo "$as_me: failed program was:" >&5
9032 sed 's/^/| /' conftest.$ac_ext >&5
9034 ac_lo=`expr '(' $ac_mid ')' + 1`
9037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9038 done
9039 case $ac_lo in
9040 ?*) ac_cv_sizeof_short=$ac_lo;;
9041 '') if test "$ac_cv_type_short" = yes; then
9042 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
9043 See \`config.log' for more details." >&5
9044 echo "$as_me: error: cannot compute sizeof (short)
9045 See \`config.log' for more details." >&2;}
9046 { (exit 77); exit 77; }; }
9047 else
9048 ac_cv_sizeof_short=0
9049 fi ;;
9050 esac
9051 else
9052 cat >conftest.$ac_ext <<_ACEOF
9053 /* confdefs.h. */
9054 _ACEOF
9055 cat confdefs.h >>conftest.$ac_ext
9056 cat >>conftest.$ac_ext <<_ACEOF
9057 /* end confdefs.h. */
9058 $ac_includes_default
9059 typedef short ac__type_sizeof_;
9060 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9061 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9062 #include <stdio.h>
9063 #include <stdlib.h>
9065 main ()
9068 FILE *f = fopen ("conftest.val", "w");
9069 if (! f)
9070 return 1;
9071 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9073 long int i = longval ();
9074 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9075 return 1;
9076 fprintf (f, "%ld\n", i);
9078 else
9080 unsigned long int i = ulongval ();
9081 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9082 return 1;
9083 fprintf (f, "%lu\n", i);
9085 return ferror (f) || fclose (f) != 0;
9088 return 0;
9090 _ACEOF
9091 rm -f conftest$ac_exeext
9092 if { (ac_try="$ac_link"
9093 case "(($ac_try" in
9094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9095 *) ac_try_echo=$ac_try;;
9096 esac
9097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9098 (eval "$ac_link") 2>&5
9099 ac_status=$?
9100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9101 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9102 { (case "(($ac_try" in
9103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9104 *) ac_try_echo=$ac_try;;
9105 esac
9106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9107 (eval "$ac_try") 2>&5
9108 ac_status=$?
9109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9110 (exit $ac_status); }; }; then
9111 ac_cv_sizeof_short=`cat conftest.val`
9112 else
9113 echo "$as_me: program exited with status $ac_status" >&5
9114 echo "$as_me: failed program was:" >&5
9115 sed 's/^/| /' conftest.$ac_ext >&5
9117 ( exit $ac_status )
9118 if test "$ac_cv_type_short" = yes; then
9119 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
9120 See \`config.log' for more details." >&5
9121 echo "$as_me: error: cannot compute sizeof (short)
9122 See \`config.log' for more details." >&2;}
9123 { (exit 77); exit 77; }; }
9124 else
9125 ac_cv_sizeof_short=0
9128 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9130 rm -f conftest.val
9132 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
9133 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
9137 cat >>confdefs.h <<_ACEOF
9138 #define SIZEOF_SHORT $ac_cv_sizeof_short
9139 _ACEOF
9142 { echo "$as_me:$LINENO: checking for float" >&5
9143 echo $ECHO_N "checking for float... $ECHO_C" >&6; }
9144 if test "${ac_cv_type_float+set}" = set; then
9145 echo $ECHO_N "(cached) $ECHO_C" >&6
9146 else
9147 cat >conftest.$ac_ext <<_ACEOF
9148 /* confdefs.h. */
9149 _ACEOF
9150 cat confdefs.h >>conftest.$ac_ext
9151 cat >>conftest.$ac_ext <<_ACEOF
9152 /* end confdefs.h. */
9153 $ac_includes_default
9154 typedef float ac__type_new_;
9156 main ()
9158 if ((ac__type_new_ *) 0)
9159 return 0;
9160 if (sizeof (ac__type_new_))
9161 return 0;
9163 return 0;
9165 _ACEOF
9166 rm -f conftest.$ac_objext
9167 if { (ac_try="$ac_compile"
9168 case "(($ac_try" in
9169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9170 *) ac_try_echo=$ac_try;;
9171 esac
9172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9173 (eval "$ac_compile") 2>conftest.er1
9174 ac_status=$?
9175 grep -v '^ *+' conftest.er1 >conftest.err
9176 rm -f conftest.er1
9177 cat conftest.err >&5
9178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9179 (exit $ac_status); } && {
9180 test -z "$ac_c_werror_flag" ||
9181 test ! -s conftest.err
9182 } && test -s conftest.$ac_objext; then
9183 ac_cv_type_float=yes
9184 else
9185 echo "$as_me: failed program was:" >&5
9186 sed 's/^/| /' conftest.$ac_ext >&5
9188 ac_cv_type_float=no
9191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9193 { echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
9194 echo "${ECHO_T}$ac_cv_type_float" >&6; }
9196 # The cast to long int works around a bug in the HP C Compiler
9197 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9198 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9199 # This bug is HP SR number 8606223364.
9200 { echo "$as_me:$LINENO: checking size of float" >&5
9201 echo $ECHO_N "checking size of float... $ECHO_C" >&6; }
9202 if test "${ac_cv_sizeof_float+set}" = set; then
9203 echo $ECHO_N "(cached) $ECHO_C" >&6
9204 else
9205 if test "$cross_compiling" = yes; then
9206 # Depending upon the size, compute the lo and hi bounds.
9207 cat >conftest.$ac_ext <<_ACEOF
9208 /* confdefs.h. */
9209 _ACEOF
9210 cat confdefs.h >>conftest.$ac_ext
9211 cat >>conftest.$ac_ext <<_ACEOF
9212 /* end confdefs.h. */
9213 $ac_includes_default
9214 typedef float ac__type_sizeof_;
9216 main ()
9218 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9219 test_array [0] = 0
9222 return 0;
9224 _ACEOF
9225 rm -f conftest.$ac_objext
9226 if { (ac_try="$ac_compile"
9227 case "(($ac_try" in
9228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9229 *) ac_try_echo=$ac_try;;
9230 esac
9231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9232 (eval "$ac_compile") 2>conftest.er1
9233 ac_status=$?
9234 grep -v '^ *+' conftest.er1 >conftest.err
9235 rm -f conftest.er1
9236 cat conftest.err >&5
9237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9238 (exit $ac_status); } && {
9239 test -z "$ac_c_werror_flag" ||
9240 test ! -s conftest.err
9241 } && test -s conftest.$ac_objext; then
9242 ac_lo=0 ac_mid=0
9243 while :; do
9244 cat >conftest.$ac_ext <<_ACEOF
9245 /* confdefs.h. */
9246 _ACEOF
9247 cat confdefs.h >>conftest.$ac_ext
9248 cat >>conftest.$ac_ext <<_ACEOF
9249 /* end confdefs.h. */
9250 $ac_includes_default
9251 typedef float ac__type_sizeof_;
9253 main ()
9255 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9256 test_array [0] = 0
9259 return 0;
9261 _ACEOF
9262 rm -f conftest.$ac_objext
9263 if { (ac_try="$ac_compile"
9264 case "(($ac_try" in
9265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9266 *) ac_try_echo=$ac_try;;
9267 esac
9268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9269 (eval "$ac_compile") 2>conftest.er1
9270 ac_status=$?
9271 grep -v '^ *+' conftest.er1 >conftest.err
9272 rm -f conftest.er1
9273 cat conftest.err >&5
9274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9275 (exit $ac_status); } && {
9276 test -z "$ac_c_werror_flag" ||
9277 test ! -s conftest.err
9278 } && test -s conftest.$ac_objext; then
9279 ac_hi=$ac_mid; break
9280 else
9281 echo "$as_me: failed program was:" >&5
9282 sed 's/^/| /' conftest.$ac_ext >&5
9284 ac_lo=`expr $ac_mid + 1`
9285 if test $ac_lo -le $ac_mid; then
9286 ac_lo= ac_hi=
9287 break
9289 ac_mid=`expr 2 '*' $ac_mid + 1`
9292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9293 done
9294 else
9295 echo "$as_me: failed program was:" >&5
9296 sed 's/^/| /' conftest.$ac_ext >&5
9298 cat >conftest.$ac_ext <<_ACEOF
9299 /* confdefs.h. */
9300 _ACEOF
9301 cat confdefs.h >>conftest.$ac_ext
9302 cat >>conftest.$ac_ext <<_ACEOF
9303 /* end confdefs.h. */
9304 $ac_includes_default
9305 typedef float ac__type_sizeof_;
9307 main ()
9309 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9310 test_array [0] = 0
9313 return 0;
9315 _ACEOF
9316 rm -f conftest.$ac_objext
9317 if { (ac_try="$ac_compile"
9318 case "(($ac_try" in
9319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9320 *) ac_try_echo=$ac_try;;
9321 esac
9322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9323 (eval "$ac_compile") 2>conftest.er1
9324 ac_status=$?
9325 grep -v '^ *+' conftest.er1 >conftest.err
9326 rm -f conftest.er1
9327 cat conftest.err >&5
9328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9329 (exit $ac_status); } && {
9330 test -z "$ac_c_werror_flag" ||
9331 test ! -s conftest.err
9332 } && test -s conftest.$ac_objext; then
9333 ac_hi=-1 ac_mid=-1
9334 while :; do
9335 cat >conftest.$ac_ext <<_ACEOF
9336 /* confdefs.h. */
9337 _ACEOF
9338 cat confdefs.h >>conftest.$ac_ext
9339 cat >>conftest.$ac_ext <<_ACEOF
9340 /* end confdefs.h. */
9341 $ac_includes_default
9342 typedef float ac__type_sizeof_;
9344 main ()
9346 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9347 test_array [0] = 0
9350 return 0;
9352 _ACEOF
9353 rm -f conftest.$ac_objext
9354 if { (ac_try="$ac_compile"
9355 case "(($ac_try" in
9356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9357 *) ac_try_echo=$ac_try;;
9358 esac
9359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9360 (eval "$ac_compile") 2>conftest.er1
9361 ac_status=$?
9362 grep -v '^ *+' conftest.er1 >conftest.err
9363 rm -f conftest.er1
9364 cat conftest.err >&5
9365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9366 (exit $ac_status); } && {
9367 test -z "$ac_c_werror_flag" ||
9368 test ! -s conftest.err
9369 } && test -s conftest.$ac_objext; then
9370 ac_lo=$ac_mid; break
9371 else
9372 echo "$as_me: failed program was:" >&5
9373 sed 's/^/| /' conftest.$ac_ext >&5
9375 ac_hi=`expr '(' $ac_mid ')' - 1`
9376 if test $ac_mid -le $ac_hi; then
9377 ac_lo= ac_hi=
9378 break
9380 ac_mid=`expr 2 '*' $ac_mid`
9383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9384 done
9385 else
9386 echo "$as_me: failed program was:" >&5
9387 sed 's/^/| /' conftest.$ac_ext >&5
9389 ac_lo= ac_hi=
9392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9396 # Binary search between lo and hi bounds.
9397 while test "x$ac_lo" != "x$ac_hi"; do
9398 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9399 cat >conftest.$ac_ext <<_ACEOF
9400 /* confdefs.h. */
9401 _ACEOF
9402 cat confdefs.h >>conftest.$ac_ext
9403 cat >>conftest.$ac_ext <<_ACEOF
9404 /* end confdefs.h. */
9405 $ac_includes_default
9406 typedef float ac__type_sizeof_;
9408 main ()
9410 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9411 test_array [0] = 0
9414 return 0;
9416 _ACEOF
9417 rm -f conftest.$ac_objext
9418 if { (ac_try="$ac_compile"
9419 case "(($ac_try" in
9420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9421 *) ac_try_echo=$ac_try;;
9422 esac
9423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9424 (eval "$ac_compile") 2>conftest.er1
9425 ac_status=$?
9426 grep -v '^ *+' conftest.er1 >conftest.err
9427 rm -f conftest.er1
9428 cat conftest.err >&5
9429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9430 (exit $ac_status); } && {
9431 test -z "$ac_c_werror_flag" ||
9432 test ! -s conftest.err
9433 } && test -s conftest.$ac_objext; then
9434 ac_hi=$ac_mid
9435 else
9436 echo "$as_me: failed program was:" >&5
9437 sed 's/^/| /' conftest.$ac_ext >&5
9439 ac_lo=`expr '(' $ac_mid ')' + 1`
9442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9443 done
9444 case $ac_lo in
9445 ?*) ac_cv_sizeof_float=$ac_lo;;
9446 '') if test "$ac_cv_type_float" = yes; then
9447 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
9448 See \`config.log' for more details." >&5
9449 echo "$as_me: error: cannot compute sizeof (float)
9450 See \`config.log' for more details." >&2;}
9451 { (exit 77); exit 77; }; }
9452 else
9453 ac_cv_sizeof_float=0
9454 fi ;;
9455 esac
9456 else
9457 cat >conftest.$ac_ext <<_ACEOF
9458 /* confdefs.h. */
9459 _ACEOF
9460 cat confdefs.h >>conftest.$ac_ext
9461 cat >>conftest.$ac_ext <<_ACEOF
9462 /* end confdefs.h. */
9463 $ac_includes_default
9464 typedef float ac__type_sizeof_;
9465 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9466 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9467 #include <stdio.h>
9468 #include <stdlib.h>
9470 main ()
9473 FILE *f = fopen ("conftest.val", "w");
9474 if (! f)
9475 return 1;
9476 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9478 long int i = longval ();
9479 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9480 return 1;
9481 fprintf (f, "%ld\n", i);
9483 else
9485 unsigned long int i = ulongval ();
9486 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9487 return 1;
9488 fprintf (f, "%lu\n", i);
9490 return ferror (f) || fclose (f) != 0;
9493 return 0;
9495 _ACEOF
9496 rm -f conftest$ac_exeext
9497 if { (ac_try="$ac_link"
9498 case "(($ac_try" in
9499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9500 *) ac_try_echo=$ac_try;;
9501 esac
9502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9503 (eval "$ac_link") 2>&5
9504 ac_status=$?
9505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9506 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9507 { (case "(($ac_try" in
9508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9509 *) ac_try_echo=$ac_try;;
9510 esac
9511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9512 (eval "$ac_try") 2>&5
9513 ac_status=$?
9514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9515 (exit $ac_status); }; }; then
9516 ac_cv_sizeof_float=`cat conftest.val`
9517 else
9518 echo "$as_me: program exited with status $ac_status" >&5
9519 echo "$as_me: failed program was:" >&5
9520 sed 's/^/| /' conftest.$ac_ext >&5
9522 ( exit $ac_status )
9523 if test "$ac_cv_type_float" = yes; then
9524 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
9525 See \`config.log' for more details." >&5
9526 echo "$as_me: error: cannot compute sizeof (float)
9527 See \`config.log' for more details." >&2;}
9528 { (exit 77); exit 77; }; }
9529 else
9530 ac_cv_sizeof_float=0
9533 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9535 rm -f conftest.val
9537 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
9538 echo "${ECHO_T}$ac_cv_sizeof_float" >&6; }
9542 cat >>confdefs.h <<_ACEOF
9543 #define SIZEOF_FLOAT $ac_cv_sizeof_float
9544 _ACEOF
9547 { echo "$as_me:$LINENO: checking for double" >&5
9548 echo $ECHO_N "checking for double... $ECHO_C" >&6; }
9549 if test "${ac_cv_type_double+set}" = set; then
9550 echo $ECHO_N "(cached) $ECHO_C" >&6
9551 else
9552 cat >conftest.$ac_ext <<_ACEOF
9553 /* confdefs.h. */
9554 _ACEOF
9555 cat confdefs.h >>conftest.$ac_ext
9556 cat >>conftest.$ac_ext <<_ACEOF
9557 /* end confdefs.h. */
9558 $ac_includes_default
9559 typedef double ac__type_new_;
9561 main ()
9563 if ((ac__type_new_ *) 0)
9564 return 0;
9565 if (sizeof (ac__type_new_))
9566 return 0;
9568 return 0;
9570 _ACEOF
9571 rm -f conftest.$ac_objext
9572 if { (ac_try="$ac_compile"
9573 case "(($ac_try" in
9574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9575 *) ac_try_echo=$ac_try;;
9576 esac
9577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9578 (eval "$ac_compile") 2>conftest.er1
9579 ac_status=$?
9580 grep -v '^ *+' conftest.er1 >conftest.err
9581 rm -f conftest.er1
9582 cat conftest.err >&5
9583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9584 (exit $ac_status); } && {
9585 test -z "$ac_c_werror_flag" ||
9586 test ! -s conftest.err
9587 } && test -s conftest.$ac_objext; then
9588 ac_cv_type_double=yes
9589 else
9590 echo "$as_me: failed program was:" >&5
9591 sed 's/^/| /' conftest.$ac_ext >&5
9593 ac_cv_type_double=no
9596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9598 { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
9599 echo "${ECHO_T}$ac_cv_type_double" >&6; }
9601 # The cast to long int works around a bug in the HP C Compiler
9602 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9603 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9604 # This bug is HP SR number 8606223364.
9605 { echo "$as_me:$LINENO: checking size of double" >&5
9606 echo $ECHO_N "checking size of double... $ECHO_C" >&6; }
9607 if test "${ac_cv_sizeof_double+set}" = set; then
9608 echo $ECHO_N "(cached) $ECHO_C" >&6
9609 else
9610 if test "$cross_compiling" = yes; then
9611 # Depending upon the size, compute the lo and hi bounds.
9612 cat >conftest.$ac_ext <<_ACEOF
9613 /* confdefs.h. */
9614 _ACEOF
9615 cat confdefs.h >>conftest.$ac_ext
9616 cat >>conftest.$ac_ext <<_ACEOF
9617 /* end confdefs.h. */
9618 $ac_includes_default
9619 typedef double ac__type_sizeof_;
9621 main ()
9623 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9624 test_array [0] = 0
9627 return 0;
9629 _ACEOF
9630 rm -f conftest.$ac_objext
9631 if { (ac_try="$ac_compile"
9632 case "(($ac_try" in
9633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9634 *) ac_try_echo=$ac_try;;
9635 esac
9636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9637 (eval "$ac_compile") 2>conftest.er1
9638 ac_status=$?
9639 grep -v '^ *+' conftest.er1 >conftest.err
9640 rm -f conftest.er1
9641 cat conftest.err >&5
9642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9643 (exit $ac_status); } && {
9644 test -z "$ac_c_werror_flag" ||
9645 test ! -s conftest.err
9646 } && test -s conftest.$ac_objext; then
9647 ac_lo=0 ac_mid=0
9648 while :; do
9649 cat >conftest.$ac_ext <<_ACEOF
9650 /* confdefs.h. */
9651 _ACEOF
9652 cat confdefs.h >>conftest.$ac_ext
9653 cat >>conftest.$ac_ext <<_ACEOF
9654 /* end confdefs.h. */
9655 $ac_includes_default
9656 typedef double ac__type_sizeof_;
9658 main ()
9660 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9661 test_array [0] = 0
9664 return 0;
9666 _ACEOF
9667 rm -f conftest.$ac_objext
9668 if { (ac_try="$ac_compile"
9669 case "(($ac_try" in
9670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9671 *) ac_try_echo=$ac_try;;
9672 esac
9673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9674 (eval "$ac_compile") 2>conftest.er1
9675 ac_status=$?
9676 grep -v '^ *+' conftest.er1 >conftest.err
9677 rm -f conftest.er1
9678 cat conftest.err >&5
9679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9680 (exit $ac_status); } && {
9681 test -z "$ac_c_werror_flag" ||
9682 test ! -s conftest.err
9683 } && test -s conftest.$ac_objext; then
9684 ac_hi=$ac_mid; break
9685 else
9686 echo "$as_me: failed program was:" >&5
9687 sed 's/^/| /' conftest.$ac_ext >&5
9689 ac_lo=`expr $ac_mid + 1`
9690 if test $ac_lo -le $ac_mid; then
9691 ac_lo= ac_hi=
9692 break
9694 ac_mid=`expr 2 '*' $ac_mid + 1`
9697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9698 done
9699 else
9700 echo "$as_me: failed program was:" >&5
9701 sed 's/^/| /' conftest.$ac_ext >&5
9703 cat >conftest.$ac_ext <<_ACEOF
9704 /* confdefs.h. */
9705 _ACEOF
9706 cat confdefs.h >>conftest.$ac_ext
9707 cat >>conftest.$ac_ext <<_ACEOF
9708 /* end confdefs.h. */
9709 $ac_includes_default
9710 typedef double ac__type_sizeof_;
9712 main ()
9714 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9715 test_array [0] = 0
9718 return 0;
9720 _ACEOF
9721 rm -f conftest.$ac_objext
9722 if { (ac_try="$ac_compile"
9723 case "(($ac_try" in
9724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9725 *) ac_try_echo=$ac_try;;
9726 esac
9727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9728 (eval "$ac_compile") 2>conftest.er1
9729 ac_status=$?
9730 grep -v '^ *+' conftest.er1 >conftest.err
9731 rm -f conftest.er1
9732 cat conftest.err >&5
9733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9734 (exit $ac_status); } && {
9735 test -z "$ac_c_werror_flag" ||
9736 test ! -s conftest.err
9737 } && test -s conftest.$ac_objext; then
9738 ac_hi=-1 ac_mid=-1
9739 while :; do
9740 cat >conftest.$ac_ext <<_ACEOF
9741 /* confdefs.h. */
9742 _ACEOF
9743 cat confdefs.h >>conftest.$ac_ext
9744 cat >>conftest.$ac_ext <<_ACEOF
9745 /* end confdefs.h. */
9746 $ac_includes_default
9747 typedef double ac__type_sizeof_;
9749 main ()
9751 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9752 test_array [0] = 0
9755 return 0;
9757 _ACEOF
9758 rm -f conftest.$ac_objext
9759 if { (ac_try="$ac_compile"
9760 case "(($ac_try" in
9761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9762 *) ac_try_echo=$ac_try;;
9763 esac
9764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9765 (eval "$ac_compile") 2>conftest.er1
9766 ac_status=$?
9767 grep -v '^ *+' conftest.er1 >conftest.err
9768 rm -f conftest.er1
9769 cat conftest.err >&5
9770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9771 (exit $ac_status); } && {
9772 test -z "$ac_c_werror_flag" ||
9773 test ! -s conftest.err
9774 } && test -s conftest.$ac_objext; then
9775 ac_lo=$ac_mid; break
9776 else
9777 echo "$as_me: failed program was:" >&5
9778 sed 's/^/| /' conftest.$ac_ext >&5
9780 ac_hi=`expr '(' $ac_mid ')' - 1`
9781 if test $ac_mid -le $ac_hi; then
9782 ac_lo= ac_hi=
9783 break
9785 ac_mid=`expr 2 '*' $ac_mid`
9788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9789 done
9790 else
9791 echo "$as_me: failed program was:" >&5
9792 sed 's/^/| /' conftest.$ac_ext >&5
9794 ac_lo= ac_hi=
9797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9801 # Binary search between lo and hi bounds.
9802 while test "x$ac_lo" != "x$ac_hi"; do
9803 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9804 cat >conftest.$ac_ext <<_ACEOF
9805 /* confdefs.h. */
9806 _ACEOF
9807 cat confdefs.h >>conftest.$ac_ext
9808 cat >>conftest.$ac_ext <<_ACEOF
9809 /* end confdefs.h. */
9810 $ac_includes_default
9811 typedef double ac__type_sizeof_;
9813 main ()
9815 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9816 test_array [0] = 0
9819 return 0;
9821 _ACEOF
9822 rm -f conftest.$ac_objext
9823 if { (ac_try="$ac_compile"
9824 case "(($ac_try" in
9825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9826 *) ac_try_echo=$ac_try;;
9827 esac
9828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9829 (eval "$ac_compile") 2>conftest.er1
9830 ac_status=$?
9831 grep -v '^ *+' conftest.er1 >conftest.err
9832 rm -f conftest.er1
9833 cat conftest.err >&5
9834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9835 (exit $ac_status); } && {
9836 test -z "$ac_c_werror_flag" ||
9837 test ! -s conftest.err
9838 } && test -s conftest.$ac_objext; then
9839 ac_hi=$ac_mid
9840 else
9841 echo "$as_me: failed program was:" >&5
9842 sed 's/^/| /' conftest.$ac_ext >&5
9844 ac_lo=`expr '(' $ac_mid ')' + 1`
9847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9848 done
9849 case $ac_lo in
9850 ?*) ac_cv_sizeof_double=$ac_lo;;
9851 '') if test "$ac_cv_type_double" = yes; then
9852 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
9853 See \`config.log' for more details." >&5
9854 echo "$as_me: error: cannot compute sizeof (double)
9855 See \`config.log' for more details." >&2;}
9856 { (exit 77); exit 77; }; }
9857 else
9858 ac_cv_sizeof_double=0
9859 fi ;;
9860 esac
9861 else
9862 cat >conftest.$ac_ext <<_ACEOF
9863 /* confdefs.h. */
9864 _ACEOF
9865 cat confdefs.h >>conftest.$ac_ext
9866 cat >>conftest.$ac_ext <<_ACEOF
9867 /* end confdefs.h. */
9868 $ac_includes_default
9869 typedef double ac__type_sizeof_;
9870 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9871 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9872 #include <stdio.h>
9873 #include <stdlib.h>
9875 main ()
9878 FILE *f = fopen ("conftest.val", "w");
9879 if (! f)
9880 return 1;
9881 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9883 long int i = longval ();
9884 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9885 return 1;
9886 fprintf (f, "%ld\n", i);
9888 else
9890 unsigned long int i = ulongval ();
9891 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9892 return 1;
9893 fprintf (f, "%lu\n", i);
9895 return ferror (f) || fclose (f) != 0;
9898 return 0;
9900 _ACEOF
9901 rm -f conftest$ac_exeext
9902 if { (ac_try="$ac_link"
9903 case "(($ac_try" in
9904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9905 *) ac_try_echo=$ac_try;;
9906 esac
9907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9908 (eval "$ac_link") 2>&5
9909 ac_status=$?
9910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9911 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9912 { (case "(($ac_try" in
9913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9914 *) ac_try_echo=$ac_try;;
9915 esac
9916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9917 (eval "$ac_try") 2>&5
9918 ac_status=$?
9919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9920 (exit $ac_status); }; }; then
9921 ac_cv_sizeof_double=`cat conftest.val`
9922 else
9923 echo "$as_me: program exited with status $ac_status" >&5
9924 echo "$as_me: failed program was:" >&5
9925 sed 's/^/| /' conftest.$ac_ext >&5
9927 ( exit $ac_status )
9928 if test "$ac_cv_type_double" = yes; then
9929 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
9930 See \`config.log' for more details." >&5
9931 echo "$as_me: error: cannot compute sizeof (double)
9932 See \`config.log' for more details." >&2;}
9933 { (exit 77); exit 77; }; }
9934 else
9935 ac_cv_sizeof_double=0
9938 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9940 rm -f conftest.val
9942 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
9943 echo "${ECHO_T}$ac_cv_sizeof_double" >&6; }
9947 cat >>confdefs.h <<_ACEOF
9948 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
9949 _ACEOF
9952 { echo "$as_me:$LINENO: checking for fpos_t" >&5
9953 echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6; }
9954 if test "${ac_cv_type_fpos_t+set}" = set; then
9955 echo $ECHO_N "(cached) $ECHO_C" >&6
9956 else
9957 cat >conftest.$ac_ext <<_ACEOF
9958 /* confdefs.h. */
9959 _ACEOF
9960 cat confdefs.h >>conftest.$ac_ext
9961 cat >>conftest.$ac_ext <<_ACEOF
9962 /* end confdefs.h. */
9963 $ac_includes_default
9964 typedef fpos_t ac__type_new_;
9966 main ()
9968 if ((ac__type_new_ *) 0)
9969 return 0;
9970 if (sizeof (ac__type_new_))
9971 return 0;
9973 return 0;
9975 _ACEOF
9976 rm -f conftest.$ac_objext
9977 if { (ac_try="$ac_compile"
9978 case "(($ac_try" in
9979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9980 *) ac_try_echo=$ac_try;;
9981 esac
9982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9983 (eval "$ac_compile") 2>conftest.er1
9984 ac_status=$?
9985 grep -v '^ *+' conftest.er1 >conftest.err
9986 rm -f conftest.er1
9987 cat conftest.err >&5
9988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9989 (exit $ac_status); } && {
9990 test -z "$ac_c_werror_flag" ||
9991 test ! -s conftest.err
9992 } && test -s conftest.$ac_objext; then
9993 ac_cv_type_fpos_t=yes
9994 else
9995 echo "$as_me: failed program was:" >&5
9996 sed 's/^/| /' conftest.$ac_ext >&5
9998 ac_cv_type_fpos_t=no
10001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10003 { echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
10004 echo "${ECHO_T}$ac_cv_type_fpos_t" >&6; }
10006 # The cast to long int works around a bug in the HP C Compiler
10007 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10008 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10009 # This bug is HP SR number 8606223364.
10010 { echo "$as_me:$LINENO: checking size of fpos_t" >&5
10011 echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6; }
10012 if test "${ac_cv_sizeof_fpos_t+set}" = set; then
10013 echo $ECHO_N "(cached) $ECHO_C" >&6
10014 else
10015 if test "$cross_compiling" = yes; then
10016 # Depending upon the size, compute the lo and hi bounds.
10017 cat >conftest.$ac_ext <<_ACEOF
10018 /* confdefs.h. */
10019 _ACEOF
10020 cat confdefs.h >>conftest.$ac_ext
10021 cat >>conftest.$ac_ext <<_ACEOF
10022 /* end confdefs.h. */
10023 $ac_includes_default
10024 typedef fpos_t ac__type_sizeof_;
10026 main ()
10028 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10029 test_array [0] = 0
10032 return 0;
10034 _ACEOF
10035 rm -f conftest.$ac_objext
10036 if { (ac_try="$ac_compile"
10037 case "(($ac_try" in
10038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10039 *) ac_try_echo=$ac_try;;
10040 esac
10041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10042 (eval "$ac_compile") 2>conftest.er1
10043 ac_status=$?
10044 grep -v '^ *+' conftest.er1 >conftest.err
10045 rm -f conftest.er1
10046 cat conftest.err >&5
10047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10048 (exit $ac_status); } && {
10049 test -z "$ac_c_werror_flag" ||
10050 test ! -s conftest.err
10051 } && test -s conftest.$ac_objext; then
10052 ac_lo=0 ac_mid=0
10053 while :; do
10054 cat >conftest.$ac_ext <<_ACEOF
10055 /* confdefs.h. */
10056 _ACEOF
10057 cat confdefs.h >>conftest.$ac_ext
10058 cat >>conftest.$ac_ext <<_ACEOF
10059 /* end confdefs.h. */
10060 $ac_includes_default
10061 typedef fpos_t ac__type_sizeof_;
10063 main ()
10065 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10066 test_array [0] = 0
10069 return 0;
10071 _ACEOF
10072 rm -f conftest.$ac_objext
10073 if { (ac_try="$ac_compile"
10074 case "(($ac_try" in
10075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10076 *) ac_try_echo=$ac_try;;
10077 esac
10078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10079 (eval "$ac_compile") 2>conftest.er1
10080 ac_status=$?
10081 grep -v '^ *+' conftest.er1 >conftest.err
10082 rm -f conftest.er1
10083 cat conftest.err >&5
10084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10085 (exit $ac_status); } && {
10086 test -z "$ac_c_werror_flag" ||
10087 test ! -s conftest.err
10088 } && test -s conftest.$ac_objext; then
10089 ac_hi=$ac_mid; break
10090 else
10091 echo "$as_me: failed program was:" >&5
10092 sed 's/^/| /' conftest.$ac_ext >&5
10094 ac_lo=`expr $ac_mid + 1`
10095 if test $ac_lo -le $ac_mid; then
10096 ac_lo= ac_hi=
10097 break
10099 ac_mid=`expr 2 '*' $ac_mid + 1`
10102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10103 done
10104 else
10105 echo "$as_me: failed program was:" >&5
10106 sed 's/^/| /' conftest.$ac_ext >&5
10108 cat >conftest.$ac_ext <<_ACEOF
10109 /* confdefs.h. */
10110 _ACEOF
10111 cat confdefs.h >>conftest.$ac_ext
10112 cat >>conftest.$ac_ext <<_ACEOF
10113 /* end confdefs.h. */
10114 $ac_includes_default
10115 typedef fpos_t ac__type_sizeof_;
10117 main ()
10119 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10120 test_array [0] = 0
10123 return 0;
10125 _ACEOF
10126 rm -f conftest.$ac_objext
10127 if { (ac_try="$ac_compile"
10128 case "(($ac_try" in
10129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10130 *) ac_try_echo=$ac_try;;
10131 esac
10132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10133 (eval "$ac_compile") 2>conftest.er1
10134 ac_status=$?
10135 grep -v '^ *+' conftest.er1 >conftest.err
10136 rm -f conftest.er1
10137 cat conftest.err >&5
10138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10139 (exit $ac_status); } && {
10140 test -z "$ac_c_werror_flag" ||
10141 test ! -s conftest.err
10142 } && test -s conftest.$ac_objext; then
10143 ac_hi=-1 ac_mid=-1
10144 while :; do
10145 cat >conftest.$ac_ext <<_ACEOF
10146 /* confdefs.h. */
10147 _ACEOF
10148 cat confdefs.h >>conftest.$ac_ext
10149 cat >>conftest.$ac_ext <<_ACEOF
10150 /* end confdefs.h. */
10151 $ac_includes_default
10152 typedef fpos_t ac__type_sizeof_;
10154 main ()
10156 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10157 test_array [0] = 0
10160 return 0;
10162 _ACEOF
10163 rm -f conftest.$ac_objext
10164 if { (ac_try="$ac_compile"
10165 case "(($ac_try" in
10166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10167 *) ac_try_echo=$ac_try;;
10168 esac
10169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10170 (eval "$ac_compile") 2>conftest.er1
10171 ac_status=$?
10172 grep -v '^ *+' conftest.er1 >conftest.err
10173 rm -f conftest.er1
10174 cat conftest.err >&5
10175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10176 (exit $ac_status); } && {
10177 test -z "$ac_c_werror_flag" ||
10178 test ! -s conftest.err
10179 } && test -s conftest.$ac_objext; then
10180 ac_lo=$ac_mid; break
10181 else
10182 echo "$as_me: failed program was:" >&5
10183 sed 's/^/| /' conftest.$ac_ext >&5
10185 ac_hi=`expr '(' $ac_mid ')' - 1`
10186 if test $ac_mid -le $ac_hi; then
10187 ac_lo= ac_hi=
10188 break
10190 ac_mid=`expr 2 '*' $ac_mid`
10193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10194 done
10195 else
10196 echo "$as_me: failed program was:" >&5
10197 sed 's/^/| /' conftest.$ac_ext >&5
10199 ac_lo= ac_hi=
10202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10206 # Binary search between lo and hi bounds.
10207 while test "x$ac_lo" != "x$ac_hi"; do
10208 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10209 cat >conftest.$ac_ext <<_ACEOF
10210 /* confdefs.h. */
10211 _ACEOF
10212 cat confdefs.h >>conftest.$ac_ext
10213 cat >>conftest.$ac_ext <<_ACEOF
10214 /* end confdefs.h. */
10215 $ac_includes_default
10216 typedef fpos_t ac__type_sizeof_;
10218 main ()
10220 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10221 test_array [0] = 0
10224 return 0;
10226 _ACEOF
10227 rm -f conftest.$ac_objext
10228 if { (ac_try="$ac_compile"
10229 case "(($ac_try" in
10230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10231 *) ac_try_echo=$ac_try;;
10232 esac
10233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10234 (eval "$ac_compile") 2>conftest.er1
10235 ac_status=$?
10236 grep -v '^ *+' conftest.er1 >conftest.err
10237 rm -f conftest.er1
10238 cat conftest.err >&5
10239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10240 (exit $ac_status); } && {
10241 test -z "$ac_c_werror_flag" ||
10242 test ! -s conftest.err
10243 } && test -s conftest.$ac_objext; then
10244 ac_hi=$ac_mid
10245 else
10246 echo "$as_me: failed program was:" >&5
10247 sed 's/^/| /' conftest.$ac_ext >&5
10249 ac_lo=`expr '(' $ac_mid ')' + 1`
10252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10253 done
10254 case $ac_lo in
10255 ?*) ac_cv_sizeof_fpos_t=$ac_lo;;
10256 '') if test "$ac_cv_type_fpos_t" = yes; then
10257 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
10258 See \`config.log' for more details." >&5
10259 echo "$as_me: error: cannot compute sizeof (fpos_t)
10260 See \`config.log' for more details." >&2;}
10261 { (exit 77); exit 77; }; }
10262 else
10263 ac_cv_sizeof_fpos_t=0
10264 fi ;;
10265 esac
10266 else
10267 cat >conftest.$ac_ext <<_ACEOF
10268 /* confdefs.h. */
10269 _ACEOF
10270 cat confdefs.h >>conftest.$ac_ext
10271 cat >>conftest.$ac_ext <<_ACEOF
10272 /* end confdefs.h. */
10273 $ac_includes_default
10274 typedef fpos_t ac__type_sizeof_;
10275 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10276 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10277 #include <stdio.h>
10278 #include <stdlib.h>
10280 main ()
10283 FILE *f = fopen ("conftest.val", "w");
10284 if (! f)
10285 return 1;
10286 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10288 long int i = longval ();
10289 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10290 return 1;
10291 fprintf (f, "%ld\n", i);
10293 else
10295 unsigned long int i = ulongval ();
10296 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10297 return 1;
10298 fprintf (f, "%lu\n", i);
10300 return ferror (f) || fclose (f) != 0;
10303 return 0;
10305 _ACEOF
10306 rm -f conftest$ac_exeext
10307 if { (ac_try="$ac_link"
10308 case "(($ac_try" in
10309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10310 *) ac_try_echo=$ac_try;;
10311 esac
10312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10313 (eval "$ac_link") 2>&5
10314 ac_status=$?
10315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10316 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10317 { (case "(($ac_try" in
10318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10319 *) ac_try_echo=$ac_try;;
10320 esac
10321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10322 (eval "$ac_try") 2>&5
10323 ac_status=$?
10324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10325 (exit $ac_status); }; }; then
10326 ac_cv_sizeof_fpos_t=`cat conftest.val`
10327 else
10328 echo "$as_me: program exited with status $ac_status" >&5
10329 echo "$as_me: failed program was:" >&5
10330 sed 's/^/| /' conftest.$ac_ext >&5
10332 ( exit $ac_status )
10333 if test "$ac_cv_type_fpos_t" = yes; then
10334 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
10335 See \`config.log' for more details." >&5
10336 echo "$as_me: error: cannot compute sizeof (fpos_t)
10337 See \`config.log' for more details." >&2;}
10338 { (exit 77); exit 77; }; }
10339 else
10340 ac_cv_sizeof_fpos_t=0
10343 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10345 rm -f conftest.val
10347 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
10348 echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6; }
10352 cat >>confdefs.h <<_ACEOF
10353 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
10354 _ACEOF
10357 { echo "$as_me:$LINENO: checking for size_t" >&5
10358 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
10359 if test "${ac_cv_type_size_t+set}" = set; then
10360 echo $ECHO_N "(cached) $ECHO_C" >&6
10361 else
10362 cat >conftest.$ac_ext <<_ACEOF
10363 /* confdefs.h. */
10364 _ACEOF
10365 cat confdefs.h >>conftest.$ac_ext
10366 cat >>conftest.$ac_ext <<_ACEOF
10367 /* end confdefs.h. */
10368 $ac_includes_default
10369 typedef size_t ac__type_new_;
10371 main ()
10373 if ((ac__type_new_ *) 0)
10374 return 0;
10375 if (sizeof (ac__type_new_))
10376 return 0;
10378 return 0;
10380 _ACEOF
10381 rm -f conftest.$ac_objext
10382 if { (ac_try="$ac_compile"
10383 case "(($ac_try" in
10384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10385 *) ac_try_echo=$ac_try;;
10386 esac
10387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10388 (eval "$ac_compile") 2>conftest.er1
10389 ac_status=$?
10390 grep -v '^ *+' conftest.er1 >conftest.err
10391 rm -f conftest.er1
10392 cat conftest.err >&5
10393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10394 (exit $ac_status); } && {
10395 test -z "$ac_c_werror_flag" ||
10396 test ! -s conftest.err
10397 } && test -s conftest.$ac_objext; then
10398 ac_cv_type_size_t=yes
10399 else
10400 echo "$as_me: failed program was:" >&5
10401 sed 's/^/| /' conftest.$ac_ext >&5
10403 ac_cv_type_size_t=no
10406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10408 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10409 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
10411 # The cast to long int works around a bug in the HP C Compiler
10412 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10413 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10414 # This bug is HP SR number 8606223364.
10415 { echo "$as_me:$LINENO: checking size of size_t" >&5
10416 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
10417 if test "${ac_cv_sizeof_size_t+set}" = set; then
10418 echo $ECHO_N "(cached) $ECHO_C" >&6
10419 else
10420 if test "$cross_compiling" = yes; then
10421 # Depending upon the size, compute the lo and hi bounds.
10422 cat >conftest.$ac_ext <<_ACEOF
10423 /* confdefs.h. */
10424 _ACEOF
10425 cat confdefs.h >>conftest.$ac_ext
10426 cat >>conftest.$ac_ext <<_ACEOF
10427 /* end confdefs.h. */
10428 $ac_includes_default
10429 typedef size_t ac__type_sizeof_;
10431 main ()
10433 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10434 test_array [0] = 0
10437 return 0;
10439 _ACEOF
10440 rm -f conftest.$ac_objext
10441 if { (ac_try="$ac_compile"
10442 case "(($ac_try" in
10443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10444 *) ac_try_echo=$ac_try;;
10445 esac
10446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10447 (eval "$ac_compile") 2>conftest.er1
10448 ac_status=$?
10449 grep -v '^ *+' conftest.er1 >conftest.err
10450 rm -f conftest.er1
10451 cat conftest.err >&5
10452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10453 (exit $ac_status); } && {
10454 test -z "$ac_c_werror_flag" ||
10455 test ! -s conftest.err
10456 } && test -s conftest.$ac_objext; then
10457 ac_lo=0 ac_mid=0
10458 while :; do
10459 cat >conftest.$ac_ext <<_ACEOF
10460 /* confdefs.h. */
10461 _ACEOF
10462 cat confdefs.h >>conftest.$ac_ext
10463 cat >>conftest.$ac_ext <<_ACEOF
10464 /* end confdefs.h. */
10465 $ac_includes_default
10466 typedef size_t ac__type_sizeof_;
10468 main ()
10470 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10471 test_array [0] = 0
10474 return 0;
10476 _ACEOF
10477 rm -f conftest.$ac_objext
10478 if { (ac_try="$ac_compile"
10479 case "(($ac_try" in
10480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10481 *) ac_try_echo=$ac_try;;
10482 esac
10483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10484 (eval "$ac_compile") 2>conftest.er1
10485 ac_status=$?
10486 grep -v '^ *+' conftest.er1 >conftest.err
10487 rm -f conftest.er1
10488 cat conftest.err >&5
10489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10490 (exit $ac_status); } && {
10491 test -z "$ac_c_werror_flag" ||
10492 test ! -s conftest.err
10493 } && test -s conftest.$ac_objext; then
10494 ac_hi=$ac_mid; break
10495 else
10496 echo "$as_me: failed program was:" >&5
10497 sed 's/^/| /' conftest.$ac_ext >&5
10499 ac_lo=`expr $ac_mid + 1`
10500 if test $ac_lo -le $ac_mid; then
10501 ac_lo= ac_hi=
10502 break
10504 ac_mid=`expr 2 '*' $ac_mid + 1`
10507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10508 done
10509 else
10510 echo "$as_me: failed program was:" >&5
10511 sed 's/^/| /' conftest.$ac_ext >&5
10513 cat >conftest.$ac_ext <<_ACEOF
10514 /* confdefs.h. */
10515 _ACEOF
10516 cat confdefs.h >>conftest.$ac_ext
10517 cat >>conftest.$ac_ext <<_ACEOF
10518 /* end confdefs.h. */
10519 $ac_includes_default
10520 typedef size_t ac__type_sizeof_;
10522 main ()
10524 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10525 test_array [0] = 0
10528 return 0;
10530 _ACEOF
10531 rm -f conftest.$ac_objext
10532 if { (ac_try="$ac_compile"
10533 case "(($ac_try" in
10534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10535 *) ac_try_echo=$ac_try;;
10536 esac
10537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10538 (eval "$ac_compile") 2>conftest.er1
10539 ac_status=$?
10540 grep -v '^ *+' conftest.er1 >conftest.err
10541 rm -f conftest.er1
10542 cat conftest.err >&5
10543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10544 (exit $ac_status); } && {
10545 test -z "$ac_c_werror_flag" ||
10546 test ! -s conftest.err
10547 } && test -s conftest.$ac_objext; then
10548 ac_hi=-1 ac_mid=-1
10549 while :; do
10550 cat >conftest.$ac_ext <<_ACEOF
10551 /* confdefs.h. */
10552 _ACEOF
10553 cat confdefs.h >>conftest.$ac_ext
10554 cat >>conftest.$ac_ext <<_ACEOF
10555 /* end confdefs.h. */
10556 $ac_includes_default
10557 typedef size_t ac__type_sizeof_;
10559 main ()
10561 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10562 test_array [0] = 0
10565 return 0;
10567 _ACEOF
10568 rm -f conftest.$ac_objext
10569 if { (ac_try="$ac_compile"
10570 case "(($ac_try" in
10571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10572 *) ac_try_echo=$ac_try;;
10573 esac
10574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10575 (eval "$ac_compile") 2>conftest.er1
10576 ac_status=$?
10577 grep -v '^ *+' conftest.er1 >conftest.err
10578 rm -f conftest.er1
10579 cat conftest.err >&5
10580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10581 (exit $ac_status); } && {
10582 test -z "$ac_c_werror_flag" ||
10583 test ! -s conftest.err
10584 } && test -s conftest.$ac_objext; then
10585 ac_lo=$ac_mid; break
10586 else
10587 echo "$as_me: failed program was:" >&5
10588 sed 's/^/| /' conftest.$ac_ext >&5
10590 ac_hi=`expr '(' $ac_mid ')' - 1`
10591 if test $ac_mid -le $ac_hi; then
10592 ac_lo= ac_hi=
10593 break
10595 ac_mid=`expr 2 '*' $ac_mid`
10598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10599 done
10600 else
10601 echo "$as_me: failed program was:" >&5
10602 sed 's/^/| /' conftest.$ac_ext >&5
10604 ac_lo= ac_hi=
10607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10611 # Binary search between lo and hi bounds.
10612 while test "x$ac_lo" != "x$ac_hi"; do
10613 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10614 cat >conftest.$ac_ext <<_ACEOF
10615 /* confdefs.h. */
10616 _ACEOF
10617 cat confdefs.h >>conftest.$ac_ext
10618 cat >>conftest.$ac_ext <<_ACEOF
10619 /* end confdefs.h. */
10620 $ac_includes_default
10621 typedef size_t ac__type_sizeof_;
10623 main ()
10625 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10626 test_array [0] = 0
10629 return 0;
10631 _ACEOF
10632 rm -f conftest.$ac_objext
10633 if { (ac_try="$ac_compile"
10634 case "(($ac_try" in
10635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10636 *) ac_try_echo=$ac_try;;
10637 esac
10638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10639 (eval "$ac_compile") 2>conftest.er1
10640 ac_status=$?
10641 grep -v '^ *+' conftest.er1 >conftest.err
10642 rm -f conftest.er1
10643 cat conftest.err >&5
10644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10645 (exit $ac_status); } && {
10646 test -z "$ac_c_werror_flag" ||
10647 test ! -s conftest.err
10648 } && test -s conftest.$ac_objext; then
10649 ac_hi=$ac_mid
10650 else
10651 echo "$as_me: failed program was:" >&5
10652 sed 's/^/| /' conftest.$ac_ext >&5
10654 ac_lo=`expr '(' $ac_mid ')' + 1`
10657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10658 done
10659 case $ac_lo in
10660 ?*) ac_cv_sizeof_size_t=$ac_lo;;
10661 '') if test "$ac_cv_type_size_t" = yes; then
10662 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
10663 See \`config.log' for more details." >&5
10664 echo "$as_me: error: cannot compute sizeof (size_t)
10665 See \`config.log' for more details." >&2;}
10666 { (exit 77); exit 77; }; }
10667 else
10668 ac_cv_sizeof_size_t=0
10669 fi ;;
10670 esac
10671 else
10672 cat >conftest.$ac_ext <<_ACEOF
10673 /* confdefs.h. */
10674 _ACEOF
10675 cat confdefs.h >>conftest.$ac_ext
10676 cat >>conftest.$ac_ext <<_ACEOF
10677 /* end confdefs.h. */
10678 $ac_includes_default
10679 typedef size_t ac__type_sizeof_;
10680 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10681 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10682 #include <stdio.h>
10683 #include <stdlib.h>
10685 main ()
10688 FILE *f = fopen ("conftest.val", "w");
10689 if (! f)
10690 return 1;
10691 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10693 long int i = longval ();
10694 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10695 return 1;
10696 fprintf (f, "%ld\n", i);
10698 else
10700 unsigned long int i = ulongval ();
10701 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10702 return 1;
10703 fprintf (f, "%lu\n", i);
10705 return ferror (f) || fclose (f) != 0;
10708 return 0;
10710 _ACEOF
10711 rm -f conftest$ac_exeext
10712 if { (ac_try="$ac_link"
10713 case "(($ac_try" in
10714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10715 *) ac_try_echo=$ac_try;;
10716 esac
10717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10718 (eval "$ac_link") 2>&5
10719 ac_status=$?
10720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10721 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10722 { (case "(($ac_try" in
10723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10724 *) ac_try_echo=$ac_try;;
10725 esac
10726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10727 (eval "$ac_try") 2>&5
10728 ac_status=$?
10729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10730 (exit $ac_status); }; }; then
10731 ac_cv_sizeof_size_t=`cat conftest.val`
10732 else
10733 echo "$as_me: program exited with status $ac_status" >&5
10734 echo "$as_me: failed program was:" >&5
10735 sed 's/^/| /' conftest.$ac_ext >&5
10737 ( exit $ac_status )
10738 if test "$ac_cv_type_size_t" = yes; then
10739 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
10740 See \`config.log' for more details." >&5
10741 echo "$as_me: error: cannot compute sizeof (size_t)
10742 See \`config.log' for more details." >&2;}
10743 { (exit 77); exit 77; }; }
10744 else
10745 ac_cv_sizeof_size_t=0
10748 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10750 rm -f conftest.val
10752 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
10753 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
10757 cat >>confdefs.h <<_ACEOF
10758 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
10759 _ACEOF
10762 { echo "$as_me:$LINENO: checking for pid_t" >&5
10763 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
10764 if test "${ac_cv_type_pid_t+set}" = set; then
10765 echo $ECHO_N "(cached) $ECHO_C" >&6
10766 else
10767 cat >conftest.$ac_ext <<_ACEOF
10768 /* confdefs.h. */
10769 _ACEOF
10770 cat confdefs.h >>conftest.$ac_ext
10771 cat >>conftest.$ac_ext <<_ACEOF
10772 /* end confdefs.h. */
10773 $ac_includes_default
10774 typedef pid_t ac__type_new_;
10776 main ()
10778 if ((ac__type_new_ *) 0)
10779 return 0;
10780 if (sizeof (ac__type_new_))
10781 return 0;
10783 return 0;
10785 _ACEOF
10786 rm -f conftest.$ac_objext
10787 if { (ac_try="$ac_compile"
10788 case "(($ac_try" in
10789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10790 *) ac_try_echo=$ac_try;;
10791 esac
10792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10793 (eval "$ac_compile") 2>conftest.er1
10794 ac_status=$?
10795 grep -v '^ *+' conftest.er1 >conftest.err
10796 rm -f conftest.er1
10797 cat conftest.err >&5
10798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10799 (exit $ac_status); } && {
10800 test -z "$ac_c_werror_flag" ||
10801 test ! -s conftest.err
10802 } && test -s conftest.$ac_objext; then
10803 ac_cv_type_pid_t=yes
10804 else
10805 echo "$as_me: failed program was:" >&5
10806 sed 's/^/| /' conftest.$ac_ext >&5
10808 ac_cv_type_pid_t=no
10811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10813 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10814 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
10816 # The cast to long int works around a bug in the HP C Compiler
10817 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10818 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10819 # This bug is HP SR number 8606223364.
10820 { echo "$as_me:$LINENO: checking size of pid_t" >&5
10821 echo $ECHO_N "checking size of pid_t... $ECHO_C" >&6; }
10822 if test "${ac_cv_sizeof_pid_t+set}" = set; then
10823 echo $ECHO_N "(cached) $ECHO_C" >&6
10824 else
10825 if test "$cross_compiling" = yes; then
10826 # Depending upon the size, compute the lo and hi bounds.
10827 cat >conftest.$ac_ext <<_ACEOF
10828 /* confdefs.h. */
10829 _ACEOF
10830 cat confdefs.h >>conftest.$ac_ext
10831 cat >>conftest.$ac_ext <<_ACEOF
10832 /* end confdefs.h. */
10833 $ac_includes_default
10834 typedef pid_t ac__type_sizeof_;
10836 main ()
10838 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10839 test_array [0] = 0
10842 return 0;
10844 _ACEOF
10845 rm -f conftest.$ac_objext
10846 if { (ac_try="$ac_compile"
10847 case "(($ac_try" in
10848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10849 *) ac_try_echo=$ac_try;;
10850 esac
10851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10852 (eval "$ac_compile") 2>conftest.er1
10853 ac_status=$?
10854 grep -v '^ *+' conftest.er1 >conftest.err
10855 rm -f conftest.er1
10856 cat conftest.err >&5
10857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10858 (exit $ac_status); } && {
10859 test -z "$ac_c_werror_flag" ||
10860 test ! -s conftest.err
10861 } && test -s conftest.$ac_objext; then
10862 ac_lo=0 ac_mid=0
10863 while :; do
10864 cat >conftest.$ac_ext <<_ACEOF
10865 /* confdefs.h. */
10866 _ACEOF
10867 cat confdefs.h >>conftest.$ac_ext
10868 cat >>conftest.$ac_ext <<_ACEOF
10869 /* end confdefs.h. */
10870 $ac_includes_default
10871 typedef pid_t ac__type_sizeof_;
10873 main ()
10875 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10876 test_array [0] = 0
10879 return 0;
10881 _ACEOF
10882 rm -f conftest.$ac_objext
10883 if { (ac_try="$ac_compile"
10884 case "(($ac_try" in
10885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10886 *) ac_try_echo=$ac_try;;
10887 esac
10888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10889 (eval "$ac_compile") 2>conftest.er1
10890 ac_status=$?
10891 grep -v '^ *+' conftest.er1 >conftest.err
10892 rm -f conftest.er1
10893 cat conftest.err >&5
10894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10895 (exit $ac_status); } && {
10896 test -z "$ac_c_werror_flag" ||
10897 test ! -s conftest.err
10898 } && test -s conftest.$ac_objext; then
10899 ac_hi=$ac_mid; break
10900 else
10901 echo "$as_me: failed program was:" >&5
10902 sed 's/^/| /' conftest.$ac_ext >&5
10904 ac_lo=`expr $ac_mid + 1`
10905 if test $ac_lo -le $ac_mid; then
10906 ac_lo= ac_hi=
10907 break
10909 ac_mid=`expr 2 '*' $ac_mid + 1`
10912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10913 done
10914 else
10915 echo "$as_me: failed program was:" >&5
10916 sed 's/^/| /' conftest.$ac_ext >&5
10918 cat >conftest.$ac_ext <<_ACEOF
10919 /* confdefs.h. */
10920 _ACEOF
10921 cat confdefs.h >>conftest.$ac_ext
10922 cat >>conftest.$ac_ext <<_ACEOF
10923 /* end confdefs.h. */
10924 $ac_includes_default
10925 typedef pid_t ac__type_sizeof_;
10927 main ()
10929 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10930 test_array [0] = 0
10933 return 0;
10935 _ACEOF
10936 rm -f conftest.$ac_objext
10937 if { (ac_try="$ac_compile"
10938 case "(($ac_try" in
10939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10940 *) ac_try_echo=$ac_try;;
10941 esac
10942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10943 (eval "$ac_compile") 2>conftest.er1
10944 ac_status=$?
10945 grep -v '^ *+' conftest.er1 >conftest.err
10946 rm -f conftest.er1
10947 cat conftest.err >&5
10948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10949 (exit $ac_status); } && {
10950 test -z "$ac_c_werror_flag" ||
10951 test ! -s conftest.err
10952 } && test -s conftest.$ac_objext; then
10953 ac_hi=-1 ac_mid=-1
10954 while :; do
10955 cat >conftest.$ac_ext <<_ACEOF
10956 /* confdefs.h. */
10957 _ACEOF
10958 cat confdefs.h >>conftest.$ac_ext
10959 cat >>conftest.$ac_ext <<_ACEOF
10960 /* end confdefs.h. */
10961 $ac_includes_default
10962 typedef pid_t ac__type_sizeof_;
10964 main ()
10966 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10967 test_array [0] = 0
10970 return 0;
10972 _ACEOF
10973 rm -f conftest.$ac_objext
10974 if { (ac_try="$ac_compile"
10975 case "(($ac_try" in
10976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10977 *) ac_try_echo=$ac_try;;
10978 esac
10979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10980 (eval "$ac_compile") 2>conftest.er1
10981 ac_status=$?
10982 grep -v '^ *+' conftest.er1 >conftest.err
10983 rm -f conftest.er1
10984 cat conftest.err >&5
10985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10986 (exit $ac_status); } && {
10987 test -z "$ac_c_werror_flag" ||
10988 test ! -s conftest.err
10989 } && test -s conftest.$ac_objext; then
10990 ac_lo=$ac_mid; break
10991 else
10992 echo "$as_me: failed program was:" >&5
10993 sed 's/^/| /' conftest.$ac_ext >&5
10995 ac_hi=`expr '(' $ac_mid ')' - 1`
10996 if test $ac_mid -le $ac_hi; then
10997 ac_lo= ac_hi=
10998 break
11000 ac_mid=`expr 2 '*' $ac_mid`
11003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11004 done
11005 else
11006 echo "$as_me: failed program was:" >&5
11007 sed 's/^/| /' conftest.$ac_ext >&5
11009 ac_lo= ac_hi=
11012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11016 # Binary search between lo and hi bounds.
11017 while test "x$ac_lo" != "x$ac_hi"; do
11018 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11019 cat >conftest.$ac_ext <<_ACEOF
11020 /* confdefs.h. */
11021 _ACEOF
11022 cat confdefs.h >>conftest.$ac_ext
11023 cat >>conftest.$ac_ext <<_ACEOF
11024 /* end confdefs.h. */
11025 $ac_includes_default
11026 typedef pid_t ac__type_sizeof_;
11028 main ()
11030 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11031 test_array [0] = 0
11034 return 0;
11036 _ACEOF
11037 rm -f conftest.$ac_objext
11038 if { (ac_try="$ac_compile"
11039 case "(($ac_try" in
11040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11041 *) ac_try_echo=$ac_try;;
11042 esac
11043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11044 (eval "$ac_compile") 2>conftest.er1
11045 ac_status=$?
11046 grep -v '^ *+' conftest.er1 >conftest.err
11047 rm -f conftest.er1
11048 cat conftest.err >&5
11049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11050 (exit $ac_status); } && {
11051 test -z "$ac_c_werror_flag" ||
11052 test ! -s conftest.err
11053 } && test -s conftest.$ac_objext; then
11054 ac_hi=$ac_mid
11055 else
11056 echo "$as_me: failed program was:" >&5
11057 sed 's/^/| /' conftest.$ac_ext >&5
11059 ac_lo=`expr '(' $ac_mid ')' + 1`
11062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11063 done
11064 case $ac_lo in
11065 ?*) ac_cv_sizeof_pid_t=$ac_lo;;
11066 '') if test "$ac_cv_type_pid_t" = yes; then
11067 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t)
11068 See \`config.log' for more details." >&5
11069 echo "$as_me: error: cannot compute sizeof (pid_t)
11070 See \`config.log' for more details." >&2;}
11071 { (exit 77); exit 77; }; }
11072 else
11073 ac_cv_sizeof_pid_t=0
11074 fi ;;
11075 esac
11076 else
11077 cat >conftest.$ac_ext <<_ACEOF
11078 /* confdefs.h. */
11079 _ACEOF
11080 cat confdefs.h >>conftest.$ac_ext
11081 cat >>conftest.$ac_ext <<_ACEOF
11082 /* end confdefs.h. */
11083 $ac_includes_default
11084 typedef pid_t ac__type_sizeof_;
11085 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11086 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11087 #include <stdio.h>
11088 #include <stdlib.h>
11090 main ()
11093 FILE *f = fopen ("conftest.val", "w");
11094 if (! f)
11095 return 1;
11096 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11098 long int i = longval ();
11099 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11100 return 1;
11101 fprintf (f, "%ld\n", i);
11103 else
11105 unsigned long int i = ulongval ();
11106 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11107 return 1;
11108 fprintf (f, "%lu\n", i);
11110 return ferror (f) || fclose (f) != 0;
11113 return 0;
11115 _ACEOF
11116 rm -f conftest$ac_exeext
11117 if { (ac_try="$ac_link"
11118 case "(($ac_try" in
11119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11120 *) ac_try_echo=$ac_try;;
11121 esac
11122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11123 (eval "$ac_link") 2>&5
11124 ac_status=$?
11125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11126 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11127 { (case "(($ac_try" in
11128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11129 *) ac_try_echo=$ac_try;;
11130 esac
11131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11132 (eval "$ac_try") 2>&5
11133 ac_status=$?
11134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11135 (exit $ac_status); }; }; then
11136 ac_cv_sizeof_pid_t=`cat conftest.val`
11137 else
11138 echo "$as_me: program exited with status $ac_status" >&5
11139 echo "$as_me: failed program was:" >&5
11140 sed 's/^/| /' conftest.$ac_ext >&5
11142 ( exit $ac_status )
11143 if test "$ac_cv_type_pid_t" = yes; then
11144 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t)
11145 See \`config.log' for more details." >&5
11146 echo "$as_me: error: cannot compute sizeof (pid_t)
11147 See \`config.log' for more details." >&2;}
11148 { (exit 77); exit 77; }; }
11149 else
11150 ac_cv_sizeof_pid_t=0
11153 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11155 rm -f conftest.val
11157 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pid_t" >&5
11158 echo "${ECHO_T}$ac_cv_sizeof_pid_t" >&6; }
11162 cat >>confdefs.h <<_ACEOF
11163 #define SIZEOF_PID_T $ac_cv_sizeof_pid_t
11164 _ACEOF
11168 { echo "$as_me:$LINENO: checking for long long support" >&5
11169 echo $ECHO_N "checking for long long support... $ECHO_C" >&6; }
11170 have_long_long=no
11171 cat >conftest.$ac_ext <<_ACEOF
11172 /* confdefs.h. */
11173 _ACEOF
11174 cat confdefs.h >>conftest.$ac_ext
11175 cat >>conftest.$ac_ext <<_ACEOF
11176 /* end confdefs.h. */
11179 main ()
11181 long long x; x = (long long)0;
11183 return 0;
11185 _ACEOF
11186 rm -f conftest.$ac_objext
11187 if { (ac_try="$ac_compile"
11188 case "(($ac_try" in
11189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11190 *) ac_try_echo=$ac_try;;
11191 esac
11192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11193 (eval "$ac_compile") 2>conftest.er1
11194 ac_status=$?
11195 grep -v '^ *+' conftest.er1 >conftest.err
11196 rm -f conftest.er1
11197 cat conftest.err >&5
11198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11199 (exit $ac_status); } && {
11200 test -z "$ac_c_werror_flag" ||
11201 test ! -s conftest.err
11202 } && test -s conftest.$ac_objext; then
11205 cat >>confdefs.h <<\_ACEOF
11206 #define HAVE_LONG_LONG 1
11207 _ACEOF
11209 have_long_long=yes
11211 else
11212 echo "$as_me: failed program was:" >&5
11213 sed 's/^/| /' conftest.$ac_ext >&5
11218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11219 { echo "$as_me:$LINENO: result: $have_long_long" >&5
11220 echo "${ECHO_T}$have_long_long" >&6; }
11221 if test "$have_long_long" = yes ; then
11222 { echo "$as_me:$LINENO: checking for long long" >&5
11223 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
11224 if test "${ac_cv_type_long_long+set}" = set; then
11225 echo $ECHO_N "(cached) $ECHO_C" >&6
11226 else
11227 cat >conftest.$ac_ext <<_ACEOF
11228 /* confdefs.h. */
11229 _ACEOF
11230 cat confdefs.h >>conftest.$ac_ext
11231 cat >>conftest.$ac_ext <<_ACEOF
11232 /* end confdefs.h. */
11233 $ac_includes_default
11234 typedef long long ac__type_new_;
11236 main ()
11238 if ((ac__type_new_ *) 0)
11239 return 0;
11240 if (sizeof (ac__type_new_))
11241 return 0;
11243 return 0;
11245 _ACEOF
11246 rm -f conftest.$ac_objext
11247 if { (ac_try="$ac_compile"
11248 case "(($ac_try" in
11249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11250 *) ac_try_echo=$ac_try;;
11251 esac
11252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11253 (eval "$ac_compile") 2>conftest.er1
11254 ac_status=$?
11255 grep -v '^ *+' conftest.er1 >conftest.err
11256 rm -f conftest.er1
11257 cat conftest.err >&5
11258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11259 (exit $ac_status); } && {
11260 test -z "$ac_c_werror_flag" ||
11261 test ! -s conftest.err
11262 } && test -s conftest.$ac_objext; then
11263 ac_cv_type_long_long=yes
11264 else
11265 echo "$as_me: failed program was:" >&5
11266 sed 's/^/| /' conftest.$ac_ext >&5
11268 ac_cv_type_long_long=no
11271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11273 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
11274 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
11276 # The cast to long int works around a bug in the HP C Compiler
11277 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11278 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11279 # This bug is HP SR number 8606223364.
11280 { echo "$as_me:$LINENO: checking size of long long" >&5
11281 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
11282 if test "${ac_cv_sizeof_long_long+set}" = set; then
11283 echo $ECHO_N "(cached) $ECHO_C" >&6
11284 else
11285 if test "$cross_compiling" = yes; then
11286 # Depending upon the size, compute the lo and hi bounds.
11287 cat >conftest.$ac_ext <<_ACEOF
11288 /* confdefs.h. */
11289 _ACEOF
11290 cat confdefs.h >>conftest.$ac_ext
11291 cat >>conftest.$ac_ext <<_ACEOF
11292 /* end confdefs.h. */
11293 $ac_includes_default
11294 typedef long long ac__type_sizeof_;
11296 main ()
11298 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11299 test_array [0] = 0
11302 return 0;
11304 _ACEOF
11305 rm -f conftest.$ac_objext
11306 if { (ac_try="$ac_compile"
11307 case "(($ac_try" in
11308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11309 *) ac_try_echo=$ac_try;;
11310 esac
11311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11312 (eval "$ac_compile") 2>conftest.er1
11313 ac_status=$?
11314 grep -v '^ *+' conftest.er1 >conftest.err
11315 rm -f conftest.er1
11316 cat conftest.err >&5
11317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11318 (exit $ac_status); } && {
11319 test -z "$ac_c_werror_flag" ||
11320 test ! -s conftest.err
11321 } && test -s conftest.$ac_objext; then
11322 ac_lo=0 ac_mid=0
11323 while :; do
11324 cat >conftest.$ac_ext <<_ACEOF
11325 /* confdefs.h. */
11326 _ACEOF
11327 cat confdefs.h >>conftest.$ac_ext
11328 cat >>conftest.$ac_ext <<_ACEOF
11329 /* end confdefs.h. */
11330 $ac_includes_default
11331 typedef long long ac__type_sizeof_;
11333 main ()
11335 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11336 test_array [0] = 0
11339 return 0;
11341 _ACEOF
11342 rm -f conftest.$ac_objext
11343 if { (ac_try="$ac_compile"
11344 case "(($ac_try" in
11345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11346 *) ac_try_echo=$ac_try;;
11347 esac
11348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11349 (eval "$ac_compile") 2>conftest.er1
11350 ac_status=$?
11351 grep -v '^ *+' conftest.er1 >conftest.err
11352 rm -f conftest.er1
11353 cat conftest.err >&5
11354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11355 (exit $ac_status); } && {
11356 test -z "$ac_c_werror_flag" ||
11357 test ! -s conftest.err
11358 } && test -s conftest.$ac_objext; then
11359 ac_hi=$ac_mid; break
11360 else
11361 echo "$as_me: failed program was:" >&5
11362 sed 's/^/| /' conftest.$ac_ext >&5
11364 ac_lo=`expr $ac_mid + 1`
11365 if test $ac_lo -le $ac_mid; then
11366 ac_lo= ac_hi=
11367 break
11369 ac_mid=`expr 2 '*' $ac_mid + 1`
11372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11373 done
11374 else
11375 echo "$as_me: failed program was:" >&5
11376 sed 's/^/| /' conftest.$ac_ext >&5
11378 cat >conftest.$ac_ext <<_ACEOF
11379 /* confdefs.h. */
11380 _ACEOF
11381 cat confdefs.h >>conftest.$ac_ext
11382 cat >>conftest.$ac_ext <<_ACEOF
11383 /* end confdefs.h. */
11384 $ac_includes_default
11385 typedef long long ac__type_sizeof_;
11387 main ()
11389 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11390 test_array [0] = 0
11393 return 0;
11395 _ACEOF
11396 rm -f conftest.$ac_objext
11397 if { (ac_try="$ac_compile"
11398 case "(($ac_try" in
11399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11400 *) ac_try_echo=$ac_try;;
11401 esac
11402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11403 (eval "$ac_compile") 2>conftest.er1
11404 ac_status=$?
11405 grep -v '^ *+' conftest.er1 >conftest.err
11406 rm -f conftest.er1
11407 cat conftest.err >&5
11408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11409 (exit $ac_status); } && {
11410 test -z "$ac_c_werror_flag" ||
11411 test ! -s conftest.err
11412 } && test -s conftest.$ac_objext; then
11413 ac_hi=-1 ac_mid=-1
11414 while :; do
11415 cat >conftest.$ac_ext <<_ACEOF
11416 /* confdefs.h. */
11417 _ACEOF
11418 cat confdefs.h >>conftest.$ac_ext
11419 cat >>conftest.$ac_ext <<_ACEOF
11420 /* end confdefs.h. */
11421 $ac_includes_default
11422 typedef long long ac__type_sizeof_;
11424 main ()
11426 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11427 test_array [0] = 0
11430 return 0;
11432 _ACEOF
11433 rm -f conftest.$ac_objext
11434 if { (ac_try="$ac_compile"
11435 case "(($ac_try" in
11436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11437 *) ac_try_echo=$ac_try;;
11438 esac
11439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11440 (eval "$ac_compile") 2>conftest.er1
11441 ac_status=$?
11442 grep -v '^ *+' conftest.er1 >conftest.err
11443 rm -f conftest.er1
11444 cat conftest.err >&5
11445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11446 (exit $ac_status); } && {
11447 test -z "$ac_c_werror_flag" ||
11448 test ! -s conftest.err
11449 } && test -s conftest.$ac_objext; then
11450 ac_lo=$ac_mid; break
11451 else
11452 echo "$as_me: failed program was:" >&5
11453 sed 's/^/| /' conftest.$ac_ext >&5
11455 ac_hi=`expr '(' $ac_mid ')' - 1`
11456 if test $ac_mid -le $ac_hi; then
11457 ac_lo= ac_hi=
11458 break
11460 ac_mid=`expr 2 '*' $ac_mid`
11463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11464 done
11465 else
11466 echo "$as_me: failed program was:" >&5
11467 sed 's/^/| /' conftest.$ac_ext >&5
11469 ac_lo= ac_hi=
11472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11476 # Binary search between lo and hi bounds.
11477 while test "x$ac_lo" != "x$ac_hi"; do
11478 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11479 cat >conftest.$ac_ext <<_ACEOF
11480 /* confdefs.h. */
11481 _ACEOF
11482 cat confdefs.h >>conftest.$ac_ext
11483 cat >>conftest.$ac_ext <<_ACEOF
11484 /* end confdefs.h. */
11485 $ac_includes_default
11486 typedef long long ac__type_sizeof_;
11488 main ()
11490 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11491 test_array [0] = 0
11494 return 0;
11496 _ACEOF
11497 rm -f conftest.$ac_objext
11498 if { (ac_try="$ac_compile"
11499 case "(($ac_try" in
11500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11501 *) ac_try_echo=$ac_try;;
11502 esac
11503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11504 (eval "$ac_compile") 2>conftest.er1
11505 ac_status=$?
11506 grep -v '^ *+' conftest.er1 >conftest.err
11507 rm -f conftest.er1
11508 cat conftest.err >&5
11509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11510 (exit $ac_status); } && {
11511 test -z "$ac_c_werror_flag" ||
11512 test ! -s conftest.err
11513 } && test -s conftest.$ac_objext; then
11514 ac_hi=$ac_mid
11515 else
11516 echo "$as_me: failed program was:" >&5
11517 sed 's/^/| /' conftest.$ac_ext >&5
11519 ac_lo=`expr '(' $ac_mid ')' + 1`
11522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11523 done
11524 case $ac_lo in
11525 ?*) ac_cv_sizeof_long_long=$ac_lo;;
11526 '') if test "$ac_cv_type_long_long" = yes; then
11527 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
11528 See \`config.log' for more details." >&5
11529 echo "$as_me: error: cannot compute sizeof (long long)
11530 See \`config.log' for more details." >&2;}
11531 { (exit 77); exit 77; }; }
11532 else
11533 ac_cv_sizeof_long_long=0
11534 fi ;;
11535 esac
11536 else
11537 cat >conftest.$ac_ext <<_ACEOF
11538 /* confdefs.h. */
11539 _ACEOF
11540 cat confdefs.h >>conftest.$ac_ext
11541 cat >>conftest.$ac_ext <<_ACEOF
11542 /* end confdefs.h. */
11543 $ac_includes_default
11544 typedef long long ac__type_sizeof_;
11545 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11546 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11547 #include <stdio.h>
11548 #include <stdlib.h>
11550 main ()
11553 FILE *f = fopen ("conftest.val", "w");
11554 if (! f)
11555 return 1;
11556 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11558 long int i = longval ();
11559 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11560 return 1;
11561 fprintf (f, "%ld\n", i);
11563 else
11565 unsigned long int i = ulongval ();
11566 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11567 return 1;
11568 fprintf (f, "%lu\n", i);
11570 return ferror (f) || fclose (f) != 0;
11573 return 0;
11575 _ACEOF
11576 rm -f conftest$ac_exeext
11577 if { (ac_try="$ac_link"
11578 case "(($ac_try" in
11579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11580 *) ac_try_echo=$ac_try;;
11581 esac
11582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11583 (eval "$ac_link") 2>&5
11584 ac_status=$?
11585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11586 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11587 { (case "(($ac_try" in
11588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11589 *) ac_try_echo=$ac_try;;
11590 esac
11591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11592 (eval "$ac_try") 2>&5
11593 ac_status=$?
11594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11595 (exit $ac_status); }; }; then
11596 ac_cv_sizeof_long_long=`cat conftest.val`
11597 else
11598 echo "$as_me: program exited with status $ac_status" >&5
11599 echo "$as_me: failed program was:" >&5
11600 sed 's/^/| /' conftest.$ac_ext >&5
11602 ( exit $ac_status )
11603 if test "$ac_cv_type_long_long" = yes; then
11604 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
11605 See \`config.log' for more details." >&5
11606 echo "$as_me: error: cannot compute sizeof (long long)
11607 See \`config.log' for more details." >&2;}
11608 { (exit 77); exit 77; }; }
11609 else
11610 ac_cv_sizeof_long_long=0
11613 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11615 rm -f conftest.val
11617 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
11618 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
11622 cat >>confdefs.h <<_ACEOF
11623 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
11624 _ACEOF
11629 { echo "$as_me:$LINENO: checking for long double support" >&5
11630 echo $ECHO_N "checking for long double support... $ECHO_C" >&6; }
11631 have_long_double=no
11632 cat >conftest.$ac_ext <<_ACEOF
11633 /* confdefs.h. */
11634 _ACEOF
11635 cat confdefs.h >>conftest.$ac_ext
11636 cat >>conftest.$ac_ext <<_ACEOF
11637 /* end confdefs.h. */
11640 main ()
11642 long double x; x = (long double)0.;
11644 return 0;
11646 _ACEOF
11647 rm -f conftest.$ac_objext
11648 if { (ac_try="$ac_compile"
11649 case "(($ac_try" in
11650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11651 *) ac_try_echo=$ac_try;;
11652 esac
11653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11654 (eval "$ac_compile") 2>conftest.er1
11655 ac_status=$?
11656 grep -v '^ *+' conftest.er1 >conftest.err
11657 rm -f conftest.er1
11658 cat conftest.err >&5
11659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11660 (exit $ac_status); } && {
11661 test -z "$ac_c_werror_flag" ||
11662 test ! -s conftest.err
11663 } && test -s conftest.$ac_objext; then
11666 cat >>confdefs.h <<\_ACEOF
11667 #define HAVE_LONG_DOUBLE 1
11668 _ACEOF
11670 have_long_double=yes
11672 else
11673 echo "$as_me: failed program was:" >&5
11674 sed 's/^/| /' conftest.$ac_ext >&5
11679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11680 { echo "$as_me:$LINENO: result: $have_long_double" >&5
11681 echo "${ECHO_T}$have_long_double" >&6; }
11682 if test "$have_long_double" = yes ; then
11683 { echo "$as_me:$LINENO: checking for long double" >&5
11684 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
11685 if test "${ac_cv_type_long_double+set}" = set; then
11686 echo $ECHO_N "(cached) $ECHO_C" >&6
11687 else
11688 cat >conftest.$ac_ext <<_ACEOF
11689 /* confdefs.h. */
11690 _ACEOF
11691 cat confdefs.h >>conftest.$ac_ext
11692 cat >>conftest.$ac_ext <<_ACEOF
11693 /* end confdefs.h. */
11694 $ac_includes_default
11695 typedef long double ac__type_new_;
11697 main ()
11699 if ((ac__type_new_ *) 0)
11700 return 0;
11701 if (sizeof (ac__type_new_))
11702 return 0;
11704 return 0;
11706 _ACEOF
11707 rm -f conftest.$ac_objext
11708 if { (ac_try="$ac_compile"
11709 case "(($ac_try" in
11710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11711 *) ac_try_echo=$ac_try;;
11712 esac
11713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11714 (eval "$ac_compile") 2>conftest.er1
11715 ac_status=$?
11716 grep -v '^ *+' conftest.er1 >conftest.err
11717 rm -f conftest.er1
11718 cat conftest.err >&5
11719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11720 (exit $ac_status); } && {
11721 test -z "$ac_c_werror_flag" ||
11722 test ! -s conftest.err
11723 } && test -s conftest.$ac_objext; then
11724 ac_cv_type_long_double=yes
11725 else
11726 echo "$as_me: failed program was:" >&5
11727 sed 's/^/| /' conftest.$ac_ext >&5
11729 ac_cv_type_long_double=no
11732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11734 { echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
11735 echo "${ECHO_T}$ac_cv_type_long_double" >&6; }
11737 # The cast to long int works around a bug in the HP C Compiler
11738 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11739 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11740 # This bug is HP SR number 8606223364.
11741 { echo "$as_me:$LINENO: checking size of long double" >&5
11742 echo $ECHO_N "checking size of long double... $ECHO_C" >&6; }
11743 if test "${ac_cv_sizeof_long_double+set}" = set; then
11744 echo $ECHO_N "(cached) $ECHO_C" >&6
11745 else
11746 if test "$cross_compiling" = yes; then
11747 # Depending upon the size, compute the lo and hi bounds.
11748 cat >conftest.$ac_ext <<_ACEOF
11749 /* confdefs.h. */
11750 _ACEOF
11751 cat confdefs.h >>conftest.$ac_ext
11752 cat >>conftest.$ac_ext <<_ACEOF
11753 /* end confdefs.h. */
11754 $ac_includes_default
11755 typedef long double ac__type_sizeof_;
11757 main ()
11759 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11760 test_array [0] = 0
11763 return 0;
11765 _ACEOF
11766 rm -f conftest.$ac_objext
11767 if { (ac_try="$ac_compile"
11768 case "(($ac_try" in
11769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11770 *) ac_try_echo=$ac_try;;
11771 esac
11772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11773 (eval "$ac_compile") 2>conftest.er1
11774 ac_status=$?
11775 grep -v '^ *+' conftest.er1 >conftest.err
11776 rm -f conftest.er1
11777 cat conftest.err >&5
11778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11779 (exit $ac_status); } && {
11780 test -z "$ac_c_werror_flag" ||
11781 test ! -s conftest.err
11782 } && test -s conftest.$ac_objext; then
11783 ac_lo=0 ac_mid=0
11784 while :; do
11785 cat >conftest.$ac_ext <<_ACEOF
11786 /* confdefs.h. */
11787 _ACEOF
11788 cat confdefs.h >>conftest.$ac_ext
11789 cat >>conftest.$ac_ext <<_ACEOF
11790 /* end confdefs.h. */
11791 $ac_includes_default
11792 typedef long double ac__type_sizeof_;
11794 main ()
11796 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11797 test_array [0] = 0
11800 return 0;
11802 _ACEOF
11803 rm -f conftest.$ac_objext
11804 if { (ac_try="$ac_compile"
11805 case "(($ac_try" in
11806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11807 *) ac_try_echo=$ac_try;;
11808 esac
11809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11810 (eval "$ac_compile") 2>conftest.er1
11811 ac_status=$?
11812 grep -v '^ *+' conftest.er1 >conftest.err
11813 rm -f conftest.er1
11814 cat conftest.err >&5
11815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11816 (exit $ac_status); } && {
11817 test -z "$ac_c_werror_flag" ||
11818 test ! -s conftest.err
11819 } && test -s conftest.$ac_objext; then
11820 ac_hi=$ac_mid; break
11821 else
11822 echo "$as_me: failed program was:" >&5
11823 sed 's/^/| /' conftest.$ac_ext >&5
11825 ac_lo=`expr $ac_mid + 1`
11826 if test $ac_lo -le $ac_mid; then
11827 ac_lo= ac_hi=
11828 break
11830 ac_mid=`expr 2 '*' $ac_mid + 1`
11833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11834 done
11835 else
11836 echo "$as_me: failed program was:" >&5
11837 sed 's/^/| /' conftest.$ac_ext >&5
11839 cat >conftest.$ac_ext <<_ACEOF
11840 /* confdefs.h. */
11841 _ACEOF
11842 cat confdefs.h >>conftest.$ac_ext
11843 cat >>conftest.$ac_ext <<_ACEOF
11844 /* end confdefs.h. */
11845 $ac_includes_default
11846 typedef long double ac__type_sizeof_;
11848 main ()
11850 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11851 test_array [0] = 0
11854 return 0;
11856 _ACEOF
11857 rm -f conftest.$ac_objext
11858 if { (ac_try="$ac_compile"
11859 case "(($ac_try" in
11860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11861 *) ac_try_echo=$ac_try;;
11862 esac
11863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11864 (eval "$ac_compile") 2>conftest.er1
11865 ac_status=$?
11866 grep -v '^ *+' conftest.er1 >conftest.err
11867 rm -f conftest.er1
11868 cat conftest.err >&5
11869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11870 (exit $ac_status); } && {
11871 test -z "$ac_c_werror_flag" ||
11872 test ! -s conftest.err
11873 } && test -s conftest.$ac_objext; then
11874 ac_hi=-1 ac_mid=-1
11875 while :; do
11876 cat >conftest.$ac_ext <<_ACEOF
11877 /* confdefs.h. */
11878 _ACEOF
11879 cat confdefs.h >>conftest.$ac_ext
11880 cat >>conftest.$ac_ext <<_ACEOF
11881 /* end confdefs.h. */
11882 $ac_includes_default
11883 typedef long double ac__type_sizeof_;
11885 main ()
11887 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11888 test_array [0] = 0
11891 return 0;
11893 _ACEOF
11894 rm -f conftest.$ac_objext
11895 if { (ac_try="$ac_compile"
11896 case "(($ac_try" in
11897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11898 *) ac_try_echo=$ac_try;;
11899 esac
11900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11901 (eval "$ac_compile") 2>conftest.er1
11902 ac_status=$?
11903 grep -v '^ *+' conftest.er1 >conftest.err
11904 rm -f conftest.er1
11905 cat conftest.err >&5
11906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11907 (exit $ac_status); } && {
11908 test -z "$ac_c_werror_flag" ||
11909 test ! -s conftest.err
11910 } && test -s conftest.$ac_objext; then
11911 ac_lo=$ac_mid; break
11912 else
11913 echo "$as_me: failed program was:" >&5
11914 sed 's/^/| /' conftest.$ac_ext >&5
11916 ac_hi=`expr '(' $ac_mid ')' - 1`
11917 if test $ac_mid -le $ac_hi; then
11918 ac_lo= ac_hi=
11919 break
11921 ac_mid=`expr 2 '*' $ac_mid`
11924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11925 done
11926 else
11927 echo "$as_me: failed program was:" >&5
11928 sed 's/^/| /' conftest.$ac_ext >&5
11930 ac_lo= ac_hi=
11933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11937 # Binary search between lo and hi bounds.
11938 while test "x$ac_lo" != "x$ac_hi"; do
11939 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11940 cat >conftest.$ac_ext <<_ACEOF
11941 /* confdefs.h. */
11942 _ACEOF
11943 cat confdefs.h >>conftest.$ac_ext
11944 cat >>conftest.$ac_ext <<_ACEOF
11945 /* end confdefs.h. */
11946 $ac_includes_default
11947 typedef long double ac__type_sizeof_;
11949 main ()
11951 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11952 test_array [0] = 0
11955 return 0;
11957 _ACEOF
11958 rm -f conftest.$ac_objext
11959 if { (ac_try="$ac_compile"
11960 case "(($ac_try" in
11961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11962 *) ac_try_echo=$ac_try;;
11963 esac
11964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11965 (eval "$ac_compile") 2>conftest.er1
11966 ac_status=$?
11967 grep -v '^ *+' conftest.er1 >conftest.err
11968 rm -f conftest.er1
11969 cat conftest.err >&5
11970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11971 (exit $ac_status); } && {
11972 test -z "$ac_c_werror_flag" ||
11973 test ! -s conftest.err
11974 } && test -s conftest.$ac_objext; then
11975 ac_hi=$ac_mid
11976 else
11977 echo "$as_me: failed program was:" >&5
11978 sed 's/^/| /' conftest.$ac_ext >&5
11980 ac_lo=`expr '(' $ac_mid ')' + 1`
11983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11984 done
11985 case $ac_lo in
11986 ?*) ac_cv_sizeof_long_double=$ac_lo;;
11987 '') if test "$ac_cv_type_long_double" = yes; then
11988 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
11989 See \`config.log' for more details." >&5
11990 echo "$as_me: error: cannot compute sizeof (long double)
11991 See \`config.log' for more details." >&2;}
11992 { (exit 77); exit 77; }; }
11993 else
11994 ac_cv_sizeof_long_double=0
11995 fi ;;
11996 esac
11997 else
11998 cat >conftest.$ac_ext <<_ACEOF
11999 /* confdefs.h. */
12000 _ACEOF
12001 cat confdefs.h >>conftest.$ac_ext
12002 cat >>conftest.$ac_ext <<_ACEOF
12003 /* end confdefs.h. */
12004 $ac_includes_default
12005 typedef long double ac__type_sizeof_;
12006 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12007 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12008 #include <stdio.h>
12009 #include <stdlib.h>
12011 main ()
12014 FILE *f = fopen ("conftest.val", "w");
12015 if (! f)
12016 return 1;
12017 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12019 long int i = longval ();
12020 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12021 return 1;
12022 fprintf (f, "%ld\n", i);
12024 else
12026 unsigned long int i = ulongval ();
12027 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12028 return 1;
12029 fprintf (f, "%lu\n", i);
12031 return ferror (f) || fclose (f) != 0;
12034 return 0;
12036 _ACEOF
12037 rm -f conftest$ac_exeext
12038 if { (ac_try="$ac_link"
12039 case "(($ac_try" in
12040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12041 *) ac_try_echo=$ac_try;;
12042 esac
12043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12044 (eval "$ac_link") 2>&5
12045 ac_status=$?
12046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12047 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12048 { (case "(($ac_try" in
12049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12050 *) ac_try_echo=$ac_try;;
12051 esac
12052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12053 (eval "$ac_try") 2>&5
12054 ac_status=$?
12055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12056 (exit $ac_status); }; }; then
12057 ac_cv_sizeof_long_double=`cat conftest.val`
12058 else
12059 echo "$as_me: program exited with status $ac_status" >&5
12060 echo "$as_me: failed program was:" >&5
12061 sed 's/^/| /' conftest.$ac_ext >&5
12063 ( exit $ac_status )
12064 if test "$ac_cv_type_long_double" = yes; then
12065 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
12066 See \`config.log' for more details." >&5
12067 echo "$as_me: error: cannot compute sizeof (long double)
12068 See \`config.log' for more details." >&2;}
12069 { (exit 77); exit 77; }; }
12070 else
12071 ac_cv_sizeof_long_double=0
12074 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12076 rm -f conftest.val
12078 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
12079 echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6; }
12083 cat >>confdefs.h <<_ACEOF
12084 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
12085 _ACEOF
12090 { echo "$as_me:$LINENO: checking for _Bool support" >&5
12091 echo $ECHO_N "checking for _Bool support... $ECHO_C" >&6; }
12092 have_c99_bool=no
12093 cat >conftest.$ac_ext <<_ACEOF
12094 /* confdefs.h. */
12095 _ACEOF
12096 cat confdefs.h >>conftest.$ac_ext
12097 cat >>conftest.$ac_ext <<_ACEOF
12098 /* end confdefs.h. */
12101 main ()
12103 _Bool x; x = (_Bool)0;
12105 return 0;
12107 _ACEOF
12108 rm -f conftest.$ac_objext
12109 if { (ac_try="$ac_compile"
12110 case "(($ac_try" in
12111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12112 *) ac_try_echo=$ac_try;;
12113 esac
12114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12115 (eval "$ac_compile") 2>conftest.er1
12116 ac_status=$?
12117 grep -v '^ *+' conftest.er1 >conftest.err
12118 rm -f conftest.er1
12119 cat conftest.err >&5
12120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12121 (exit $ac_status); } && {
12122 test -z "$ac_c_werror_flag" ||
12123 test ! -s conftest.err
12124 } && test -s conftest.$ac_objext; then
12127 cat >>confdefs.h <<\_ACEOF
12128 #define HAVE_C99_BOOL 1
12129 _ACEOF
12131 have_c99_bool=yes
12133 else
12134 echo "$as_me: failed program was:" >&5
12135 sed 's/^/| /' conftest.$ac_ext >&5
12140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12141 { echo "$as_me:$LINENO: result: $have_c99_bool" >&5
12142 echo "${ECHO_T}$have_c99_bool" >&6; }
12143 if test "$have_c99_bool" = yes ; then
12144 { echo "$as_me:$LINENO: checking for _Bool" >&5
12145 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
12146 if test "${ac_cv_type__Bool+set}" = set; then
12147 echo $ECHO_N "(cached) $ECHO_C" >&6
12148 else
12149 cat >conftest.$ac_ext <<_ACEOF
12150 /* confdefs.h. */
12151 _ACEOF
12152 cat confdefs.h >>conftest.$ac_ext
12153 cat >>conftest.$ac_ext <<_ACEOF
12154 /* end confdefs.h. */
12155 $ac_includes_default
12156 typedef _Bool ac__type_new_;
12158 main ()
12160 if ((ac__type_new_ *) 0)
12161 return 0;
12162 if (sizeof (ac__type_new_))
12163 return 0;
12165 return 0;
12167 _ACEOF
12168 rm -f conftest.$ac_objext
12169 if { (ac_try="$ac_compile"
12170 case "(($ac_try" in
12171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12172 *) ac_try_echo=$ac_try;;
12173 esac
12174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12175 (eval "$ac_compile") 2>conftest.er1
12176 ac_status=$?
12177 grep -v '^ *+' conftest.er1 >conftest.err
12178 rm -f conftest.er1
12179 cat conftest.err >&5
12180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12181 (exit $ac_status); } && {
12182 test -z "$ac_c_werror_flag" ||
12183 test ! -s conftest.err
12184 } && test -s conftest.$ac_objext; then
12185 ac_cv_type__Bool=yes
12186 else
12187 echo "$as_me: failed program was:" >&5
12188 sed 's/^/| /' conftest.$ac_ext >&5
12190 ac_cv_type__Bool=no
12193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12195 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
12196 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
12198 # The cast to long int works around a bug in the HP C Compiler
12199 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12200 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12201 # This bug is HP SR number 8606223364.
12202 { echo "$as_me:$LINENO: checking size of _Bool" >&5
12203 echo $ECHO_N "checking size of _Bool... $ECHO_C" >&6; }
12204 if test "${ac_cv_sizeof__Bool+set}" = set; then
12205 echo $ECHO_N "(cached) $ECHO_C" >&6
12206 else
12207 if test "$cross_compiling" = yes; then
12208 # Depending upon the size, compute the lo and hi bounds.
12209 cat >conftest.$ac_ext <<_ACEOF
12210 /* confdefs.h. */
12211 _ACEOF
12212 cat confdefs.h >>conftest.$ac_ext
12213 cat >>conftest.$ac_ext <<_ACEOF
12214 /* end confdefs.h. */
12215 $ac_includes_default
12216 typedef _Bool ac__type_sizeof_;
12218 main ()
12220 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12221 test_array [0] = 0
12224 return 0;
12226 _ACEOF
12227 rm -f conftest.$ac_objext
12228 if { (ac_try="$ac_compile"
12229 case "(($ac_try" in
12230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12231 *) ac_try_echo=$ac_try;;
12232 esac
12233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12234 (eval "$ac_compile") 2>conftest.er1
12235 ac_status=$?
12236 grep -v '^ *+' conftest.er1 >conftest.err
12237 rm -f conftest.er1
12238 cat conftest.err >&5
12239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12240 (exit $ac_status); } && {
12241 test -z "$ac_c_werror_flag" ||
12242 test ! -s conftest.err
12243 } && test -s conftest.$ac_objext; then
12244 ac_lo=0 ac_mid=0
12245 while :; do
12246 cat >conftest.$ac_ext <<_ACEOF
12247 /* confdefs.h. */
12248 _ACEOF
12249 cat confdefs.h >>conftest.$ac_ext
12250 cat >>conftest.$ac_ext <<_ACEOF
12251 /* end confdefs.h. */
12252 $ac_includes_default
12253 typedef _Bool ac__type_sizeof_;
12255 main ()
12257 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12258 test_array [0] = 0
12261 return 0;
12263 _ACEOF
12264 rm -f conftest.$ac_objext
12265 if { (ac_try="$ac_compile"
12266 case "(($ac_try" in
12267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12268 *) ac_try_echo=$ac_try;;
12269 esac
12270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12271 (eval "$ac_compile") 2>conftest.er1
12272 ac_status=$?
12273 grep -v '^ *+' conftest.er1 >conftest.err
12274 rm -f conftest.er1
12275 cat conftest.err >&5
12276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12277 (exit $ac_status); } && {
12278 test -z "$ac_c_werror_flag" ||
12279 test ! -s conftest.err
12280 } && test -s conftest.$ac_objext; then
12281 ac_hi=$ac_mid; break
12282 else
12283 echo "$as_me: failed program was:" >&5
12284 sed 's/^/| /' conftest.$ac_ext >&5
12286 ac_lo=`expr $ac_mid + 1`
12287 if test $ac_lo -le $ac_mid; then
12288 ac_lo= ac_hi=
12289 break
12291 ac_mid=`expr 2 '*' $ac_mid + 1`
12294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12295 done
12296 else
12297 echo "$as_me: failed program was:" >&5
12298 sed 's/^/| /' conftest.$ac_ext >&5
12300 cat >conftest.$ac_ext <<_ACEOF
12301 /* confdefs.h. */
12302 _ACEOF
12303 cat confdefs.h >>conftest.$ac_ext
12304 cat >>conftest.$ac_ext <<_ACEOF
12305 /* end confdefs.h. */
12306 $ac_includes_default
12307 typedef _Bool ac__type_sizeof_;
12309 main ()
12311 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12312 test_array [0] = 0
12315 return 0;
12317 _ACEOF
12318 rm -f conftest.$ac_objext
12319 if { (ac_try="$ac_compile"
12320 case "(($ac_try" in
12321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12322 *) ac_try_echo=$ac_try;;
12323 esac
12324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12325 (eval "$ac_compile") 2>conftest.er1
12326 ac_status=$?
12327 grep -v '^ *+' conftest.er1 >conftest.err
12328 rm -f conftest.er1
12329 cat conftest.err >&5
12330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12331 (exit $ac_status); } && {
12332 test -z "$ac_c_werror_flag" ||
12333 test ! -s conftest.err
12334 } && test -s conftest.$ac_objext; then
12335 ac_hi=-1 ac_mid=-1
12336 while :; do
12337 cat >conftest.$ac_ext <<_ACEOF
12338 /* confdefs.h. */
12339 _ACEOF
12340 cat confdefs.h >>conftest.$ac_ext
12341 cat >>conftest.$ac_ext <<_ACEOF
12342 /* end confdefs.h. */
12343 $ac_includes_default
12344 typedef _Bool ac__type_sizeof_;
12346 main ()
12348 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12349 test_array [0] = 0
12352 return 0;
12354 _ACEOF
12355 rm -f conftest.$ac_objext
12356 if { (ac_try="$ac_compile"
12357 case "(($ac_try" in
12358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12359 *) ac_try_echo=$ac_try;;
12360 esac
12361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12362 (eval "$ac_compile") 2>conftest.er1
12363 ac_status=$?
12364 grep -v '^ *+' conftest.er1 >conftest.err
12365 rm -f conftest.er1
12366 cat conftest.err >&5
12367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12368 (exit $ac_status); } && {
12369 test -z "$ac_c_werror_flag" ||
12370 test ! -s conftest.err
12371 } && test -s conftest.$ac_objext; then
12372 ac_lo=$ac_mid; break
12373 else
12374 echo "$as_me: failed program was:" >&5
12375 sed 's/^/| /' conftest.$ac_ext >&5
12377 ac_hi=`expr '(' $ac_mid ')' - 1`
12378 if test $ac_mid -le $ac_hi; then
12379 ac_lo= ac_hi=
12380 break
12382 ac_mid=`expr 2 '*' $ac_mid`
12385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12386 done
12387 else
12388 echo "$as_me: failed program was:" >&5
12389 sed 's/^/| /' conftest.$ac_ext >&5
12391 ac_lo= ac_hi=
12394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12398 # Binary search between lo and hi bounds.
12399 while test "x$ac_lo" != "x$ac_hi"; do
12400 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12401 cat >conftest.$ac_ext <<_ACEOF
12402 /* confdefs.h. */
12403 _ACEOF
12404 cat confdefs.h >>conftest.$ac_ext
12405 cat >>conftest.$ac_ext <<_ACEOF
12406 /* end confdefs.h. */
12407 $ac_includes_default
12408 typedef _Bool ac__type_sizeof_;
12410 main ()
12412 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12413 test_array [0] = 0
12416 return 0;
12418 _ACEOF
12419 rm -f conftest.$ac_objext
12420 if { (ac_try="$ac_compile"
12421 case "(($ac_try" in
12422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12423 *) ac_try_echo=$ac_try;;
12424 esac
12425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12426 (eval "$ac_compile") 2>conftest.er1
12427 ac_status=$?
12428 grep -v '^ *+' conftest.er1 >conftest.err
12429 rm -f conftest.er1
12430 cat conftest.err >&5
12431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12432 (exit $ac_status); } && {
12433 test -z "$ac_c_werror_flag" ||
12434 test ! -s conftest.err
12435 } && test -s conftest.$ac_objext; then
12436 ac_hi=$ac_mid
12437 else
12438 echo "$as_me: failed program was:" >&5
12439 sed 's/^/| /' conftest.$ac_ext >&5
12441 ac_lo=`expr '(' $ac_mid ')' + 1`
12444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12445 done
12446 case $ac_lo in
12447 ?*) ac_cv_sizeof__Bool=$ac_lo;;
12448 '') if test "$ac_cv_type__Bool" = yes; then
12449 { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool)
12450 See \`config.log' for more details." >&5
12451 echo "$as_me: error: cannot compute sizeof (_Bool)
12452 See \`config.log' for more details." >&2;}
12453 { (exit 77); exit 77; }; }
12454 else
12455 ac_cv_sizeof__Bool=0
12456 fi ;;
12457 esac
12458 else
12459 cat >conftest.$ac_ext <<_ACEOF
12460 /* confdefs.h. */
12461 _ACEOF
12462 cat confdefs.h >>conftest.$ac_ext
12463 cat >>conftest.$ac_ext <<_ACEOF
12464 /* end confdefs.h. */
12465 $ac_includes_default
12466 typedef _Bool ac__type_sizeof_;
12467 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12468 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12469 #include <stdio.h>
12470 #include <stdlib.h>
12472 main ()
12475 FILE *f = fopen ("conftest.val", "w");
12476 if (! f)
12477 return 1;
12478 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12480 long int i = longval ();
12481 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12482 return 1;
12483 fprintf (f, "%ld\n", i);
12485 else
12487 unsigned long int i = ulongval ();
12488 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12489 return 1;
12490 fprintf (f, "%lu\n", i);
12492 return ferror (f) || fclose (f) != 0;
12495 return 0;
12497 _ACEOF
12498 rm -f conftest$ac_exeext
12499 if { (ac_try="$ac_link"
12500 case "(($ac_try" in
12501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12502 *) ac_try_echo=$ac_try;;
12503 esac
12504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12505 (eval "$ac_link") 2>&5
12506 ac_status=$?
12507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12508 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12509 { (case "(($ac_try" in
12510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12511 *) ac_try_echo=$ac_try;;
12512 esac
12513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12514 (eval "$ac_try") 2>&5
12515 ac_status=$?
12516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12517 (exit $ac_status); }; }; then
12518 ac_cv_sizeof__Bool=`cat conftest.val`
12519 else
12520 echo "$as_me: program exited with status $ac_status" >&5
12521 echo "$as_me: failed program was:" >&5
12522 sed 's/^/| /' conftest.$ac_ext >&5
12524 ( exit $ac_status )
12525 if test "$ac_cv_type__Bool" = yes; then
12526 { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool)
12527 See \`config.log' for more details." >&5
12528 echo "$as_me: error: cannot compute sizeof (_Bool)
12529 See \`config.log' for more details." >&2;}
12530 { (exit 77); exit 77; }; }
12531 else
12532 ac_cv_sizeof__Bool=0
12535 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12537 rm -f conftest.val
12539 { echo "$as_me:$LINENO: result: $ac_cv_sizeof__Bool" >&5
12540 echo "${ECHO_T}$ac_cv_sizeof__Bool" >&6; }
12544 cat >>confdefs.h <<_ACEOF
12545 #define SIZEOF__BOOL $ac_cv_sizeof__Bool
12546 _ACEOF
12551 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
12552 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
12553 if test "${ac_cv_type_uintptr_t+set}" = set; then
12554 echo $ECHO_N "(cached) $ECHO_C" >&6
12555 else
12556 cat >conftest.$ac_ext <<_ACEOF
12557 /* confdefs.h. */
12558 _ACEOF
12559 cat confdefs.h >>conftest.$ac_ext
12560 cat >>conftest.$ac_ext <<_ACEOF
12561 /* end confdefs.h. */
12562 #ifdef HAVE_STDINT_H
12563 #include <stdint.h>
12564 #endif
12566 typedef uintptr_t ac__type_new_;
12568 main ()
12570 if ((ac__type_new_ *) 0)
12571 return 0;
12572 if (sizeof (ac__type_new_))
12573 return 0;
12575 return 0;
12577 _ACEOF
12578 rm -f conftest.$ac_objext
12579 if { (ac_try="$ac_compile"
12580 case "(($ac_try" in
12581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12582 *) ac_try_echo=$ac_try;;
12583 esac
12584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12585 (eval "$ac_compile") 2>conftest.er1
12586 ac_status=$?
12587 grep -v '^ *+' conftest.er1 >conftest.err
12588 rm -f conftest.er1
12589 cat conftest.err >&5
12590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12591 (exit $ac_status); } && {
12592 test -z "$ac_c_werror_flag" ||
12593 test ! -s conftest.err
12594 } && test -s conftest.$ac_objext; then
12595 ac_cv_type_uintptr_t=yes
12596 else
12597 echo "$as_me: failed program was:" >&5
12598 sed 's/^/| /' conftest.$ac_ext >&5
12600 ac_cv_type_uintptr_t=no
12603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12605 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12606 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
12607 if test $ac_cv_type_uintptr_t = yes; then
12609 cat >>confdefs.h <<_ACEOF
12610 #define HAVE_UINTPTR_T 1
12611 _ACEOF
12613 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
12614 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
12615 if test "${ac_cv_type_uintptr_t+set}" = set; then
12616 echo $ECHO_N "(cached) $ECHO_C" >&6
12617 else
12618 cat >conftest.$ac_ext <<_ACEOF
12619 /* confdefs.h. */
12620 _ACEOF
12621 cat confdefs.h >>conftest.$ac_ext
12622 cat >>conftest.$ac_ext <<_ACEOF
12623 /* end confdefs.h. */
12624 $ac_includes_default
12625 typedef uintptr_t ac__type_new_;
12627 main ()
12629 if ((ac__type_new_ *) 0)
12630 return 0;
12631 if (sizeof (ac__type_new_))
12632 return 0;
12634 return 0;
12636 _ACEOF
12637 rm -f conftest.$ac_objext
12638 if { (ac_try="$ac_compile"
12639 case "(($ac_try" in
12640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12641 *) ac_try_echo=$ac_try;;
12642 esac
12643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12644 (eval "$ac_compile") 2>conftest.er1
12645 ac_status=$?
12646 grep -v '^ *+' conftest.er1 >conftest.err
12647 rm -f conftest.er1
12648 cat conftest.err >&5
12649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12650 (exit $ac_status); } && {
12651 test -z "$ac_c_werror_flag" ||
12652 test ! -s conftest.err
12653 } && test -s conftest.$ac_objext; then
12654 ac_cv_type_uintptr_t=yes
12655 else
12656 echo "$as_me: failed program was:" >&5
12657 sed 's/^/| /' conftest.$ac_ext >&5
12659 ac_cv_type_uintptr_t=no
12662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12664 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12665 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
12667 # The cast to long int works around a bug in the HP C Compiler
12668 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12669 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12670 # This bug is HP SR number 8606223364.
12671 { echo "$as_me:$LINENO: checking size of uintptr_t" >&5
12672 echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6; }
12673 if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
12674 echo $ECHO_N "(cached) $ECHO_C" >&6
12675 else
12676 if test "$cross_compiling" = yes; then
12677 # Depending upon the size, compute the lo and hi bounds.
12678 cat >conftest.$ac_ext <<_ACEOF
12679 /* confdefs.h. */
12680 _ACEOF
12681 cat confdefs.h >>conftest.$ac_ext
12682 cat >>conftest.$ac_ext <<_ACEOF
12683 /* end confdefs.h. */
12684 $ac_includes_default
12685 typedef uintptr_t ac__type_sizeof_;
12687 main ()
12689 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12690 test_array [0] = 0
12693 return 0;
12695 _ACEOF
12696 rm -f conftest.$ac_objext
12697 if { (ac_try="$ac_compile"
12698 case "(($ac_try" in
12699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12700 *) ac_try_echo=$ac_try;;
12701 esac
12702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12703 (eval "$ac_compile") 2>conftest.er1
12704 ac_status=$?
12705 grep -v '^ *+' conftest.er1 >conftest.err
12706 rm -f conftest.er1
12707 cat conftest.err >&5
12708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12709 (exit $ac_status); } && {
12710 test -z "$ac_c_werror_flag" ||
12711 test ! -s conftest.err
12712 } && test -s conftest.$ac_objext; then
12713 ac_lo=0 ac_mid=0
12714 while :; do
12715 cat >conftest.$ac_ext <<_ACEOF
12716 /* confdefs.h. */
12717 _ACEOF
12718 cat confdefs.h >>conftest.$ac_ext
12719 cat >>conftest.$ac_ext <<_ACEOF
12720 /* end confdefs.h. */
12721 $ac_includes_default
12722 typedef uintptr_t ac__type_sizeof_;
12724 main ()
12726 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12727 test_array [0] = 0
12730 return 0;
12732 _ACEOF
12733 rm -f conftest.$ac_objext
12734 if { (ac_try="$ac_compile"
12735 case "(($ac_try" in
12736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12737 *) ac_try_echo=$ac_try;;
12738 esac
12739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12740 (eval "$ac_compile") 2>conftest.er1
12741 ac_status=$?
12742 grep -v '^ *+' conftest.er1 >conftest.err
12743 rm -f conftest.er1
12744 cat conftest.err >&5
12745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12746 (exit $ac_status); } && {
12747 test -z "$ac_c_werror_flag" ||
12748 test ! -s conftest.err
12749 } && test -s conftest.$ac_objext; then
12750 ac_hi=$ac_mid; break
12751 else
12752 echo "$as_me: failed program was:" >&5
12753 sed 's/^/| /' conftest.$ac_ext >&5
12755 ac_lo=`expr $ac_mid + 1`
12756 if test $ac_lo -le $ac_mid; then
12757 ac_lo= ac_hi=
12758 break
12760 ac_mid=`expr 2 '*' $ac_mid + 1`
12763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12764 done
12765 else
12766 echo "$as_me: failed program was:" >&5
12767 sed 's/^/| /' conftest.$ac_ext >&5
12769 cat >conftest.$ac_ext <<_ACEOF
12770 /* confdefs.h. */
12771 _ACEOF
12772 cat confdefs.h >>conftest.$ac_ext
12773 cat >>conftest.$ac_ext <<_ACEOF
12774 /* end confdefs.h. */
12775 $ac_includes_default
12776 typedef uintptr_t ac__type_sizeof_;
12778 main ()
12780 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12781 test_array [0] = 0
12784 return 0;
12786 _ACEOF
12787 rm -f conftest.$ac_objext
12788 if { (ac_try="$ac_compile"
12789 case "(($ac_try" in
12790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12791 *) ac_try_echo=$ac_try;;
12792 esac
12793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12794 (eval "$ac_compile") 2>conftest.er1
12795 ac_status=$?
12796 grep -v '^ *+' conftest.er1 >conftest.err
12797 rm -f conftest.er1
12798 cat conftest.err >&5
12799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12800 (exit $ac_status); } && {
12801 test -z "$ac_c_werror_flag" ||
12802 test ! -s conftest.err
12803 } && test -s conftest.$ac_objext; then
12804 ac_hi=-1 ac_mid=-1
12805 while :; do
12806 cat >conftest.$ac_ext <<_ACEOF
12807 /* confdefs.h. */
12808 _ACEOF
12809 cat confdefs.h >>conftest.$ac_ext
12810 cat >>conftest.$ac_ext <<_ACEOF
12811 /* end confdefs.h. */
12812 $ac_includes_default
12813 typedef uintptr_t ac__type_sizeof_;
12815 main ()
12817 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12818 test_array [0] = 0
12821 return 0;
12823 _ACEOF
12824 rm -f conftest.$ac_objext
12825 if { (ac_try="$ac_compile"
12826 case "(($ac_try" in
12827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12828 *) ac_try_echo=$ac_try;;
12829 esac
12830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12831 (eval "$ac_compile") 2>conftest.er1
12832 ac_status=$?
12833 grep -v '^ *+' conftest.er1 >conftest.err
12834 rm -f conftest.er1
12835 cat conftest.err >&5
12836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12837 (exit $ac_status); } && {
12838 test -z "$ac_c_werror_flag" ||
12839 test ! -s conftest.err
12840 } && test -s conftest.$ac_objext; then
12841 ac_lo=$ac_mid; break
12842 else
12843 echo "$as_me: failed program was:" >&5
12844 sed 's/^/| /' conftest.$ac_ext >&5
12846 ac_hi=`expr '(' $ac_mid ')' - 1`
12847 if test $ac_mid -le $ac_hi; then
12848 ac_lo= ac_hi=
12849 break
12851 ac_mid=`expr 2 '*' $ac_mid`
12854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12855 done
12856 else
12857 echo "$as_me: failed program was:" >&5
12858 sed 's/^/| /' conftest.$ac_ext >&5
12860 ac_lo= ac_hi=
12863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12867 # Binary search between lo and hi bounds.
12868 while test "x$ac_lo" != "x$ac_hi"; do
12869 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12870 cat >conftest.$ac_ext <<_ACEOF
12871 /* confdefs.h. */
12872 _ACEOF
12873 cat confdefs.h >>conftest.$ac_ext
12874 cat >>conftest.$ac_ext <<_ACEOF
12875 /* end confdefs.h. */
12876 $ac_includes_default
12877 typedef uintptr_t ac__type_sizeof_;
12879 main ()
12881 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12882 test_array [0] = 0
12885 return 0;
12887 _ACEOF
12888 rm -f conftest.$ac_objext
12889 if { (ac_try="$ac_compile"
12890 case "(($ac_try" in
12891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12892 *) ac_try_echo=$ac_try;;
12893 esac
12894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12895 (eval "$ac_compile") 2>conftest.er1
12896 ac_status=$?
12897 grep -v '^ *+' conftest.er1 >conftest.err
12898 rm -f conftest.er1
12899 cat conftest.err >&5
12900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12901 (exit $ac_status); } && {
12902 test -z "$ac_c_werror_flag" ||
12903 test ! -s conftest.err
12904 } && test -s conftest.$ac_objext; then
12905 ac_hi=$ac_mid
12906 else
12907 echo "$as_me: failed program was:" >&5
12908 sed 's/^/| /' conftest.$ac_ext >&5
12910 ac_lo=`expr '(' $ac_mid ')' + 1`
12913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12914 done
12915 case $ac_lo in
12916 ?*) ac_cv_sizeof_uintptr_t=$ac_lo;;
12917 '') if test "$ac_cv_type_uintptr_t" = yes; then
12918 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
12919 See \`config.log' for more details." >&5
12920 echo "$as_me: error: cannot compute sizeof (uintptr_t)
12921 See \`config.log' for more details." >&2;}
12922 { (exit 77); exit 77; }; }
12923 else
12924 ac_cv_sizeof_uintptr_t=0
12925 fi ;;
12926 esac
12927 else
12928 cat >conftest.$ac_ext <<_ACEOF
12929 /* confdefs.h. */
12930 _ACEOF
12931 cat confdefs.h >>conftest.$ac_ext
12932 cat >>conftest.$ac_ext <<_ACEOF
12933 /* end confdefs.h. */
12934 $ac_includes_default
12935 typedef uintptr_t ac__type_sizeof_;
12936 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12937 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12938 #include <stdio.h>
12939 #include <stdlib.h>
12941 main ()
12944 FILE *f = fopen ("conftest.val", "w");
12945 if (! f)
12946 return 1;
12947 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12949 long int i = longval ();
12950 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12951 return 1;
12952 fprintf (f, "%ld\n", i);
12954 else
12956 unsigned long int i = ulongval ();
12957 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12958 return 1;
12959 fprintf (f, "%lu\n", i);
12961 return ferror (f) || fclose (f) != 0;
12964 return 0;
12966 _ACEOF
12967 rm -f conftest$ac_exeext
12968 if { (ac_try="$ac_link"
12969 case "(($ac_try" in
12970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12971 *) ac_try_echo=$ac_try;;
12972 esac
12973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12974 (eval "$ac_link") 2>&5
12975 ac_status=$?
12976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12977 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12978 { (case "(($ac_try" in
12979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12980 *) ac_try_echo=$ac_try;;
12981 esac
12982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12983 (eval "$ac_try") 2>&5
12984 ac_status=$?
12985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12986 (exit $ac_status); }; }; then
12987 ac_cv_sizeof_uintptr_t=`cat conftest.val`
12988 else
12989 echo "$as_me: program exited with status $ac_status" >&5
12990 echo "$as_me: failed program was:" >&5
12991 sed 's/^/| /' conftest.$ac_ext >&5
12993 ( exit $ac_status )
12994 if test "$ac_cv_type_uintptr_t" = yes; then
12995 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
12996 See \`config.log' for more details." >&5
12997 echo "$as_me: error: cannot compute sizeof (uintptr_t)
12998 See \`config.log' for more details." >&2;}
12999 { (exit 77); exit 77; }; }
13000 else
13001 ac_cv_sizeof_uintptr_t=0
13004 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13006 rm -f conftest.val
13008 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
13009 echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6; }
13013 cat >>confdefs.h <<_ACEOF
13014 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
13015 _ACEOF
13021 { echo "$as_me:$LINENO: checking for off_t" >&5
13022 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
13023 if test "${ac_cv_type_off_t+set}" = set; then
13024 echo $ECHO_N "(cached) $ECHO_C" >&6
13025 else
13026 cat >conftest.$ac_ext <<_ACEOF
13027 /* confdefs.h. */
13028 _ACEOF
13029 cat confdefs.h >>conftest.$ac_ext
13030 cat >>conftest.$ac_ext <<_ACEOF
13031 /* end confdefs.h. */
13033 #ifdef HAVE_SYS_TYPES_H
13034 #include <sys/types.h>
13035 #endif
13038 typedef off_t ac__type_new_;
13040 main ()
13042 if ((ac__type_new_ *) 0)
13043 return 0;
13044 if (sizeof (ac__type_new_))
13045 return 0;
13047 return 0;
13049 _ACEOF
13050 rm -f conftest.$ac_objext
13051 if { (ac_try="$ac_compile"
13052 case "(($ac_try" in
13053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13054 *) ac_try_echo=$ac_try;;
13055 esac
13056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13057 (eval "$ac_compile") 2>conftest.er1
13058 ac_status=$?
13059 grep -v '^ *+' conftest.er1 >conftest.err
13060 rm -f conftest.er1
13061 cat conftest.err >&5
13062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13063 (exit $ac_status); } && {
13064 test -z "$ac_c_werror_flag" ||
13065 test ! -s conftest.err
13066 } && test -s conftest.$ac_objext; then
13067 ac_cv_type_off_t=yes
13068 else
13069 echo "$as_me: failed program was:" >&5
13070 sed 's/^/| /' conftest.$ac_ext >&5
13072 ac_cv_type_off_t=no
13075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13077 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
13078 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
13080 # The cast to long int works around a bug in the HP C Compiler
13081 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13082 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13083 # This bug is HP SR number 8606223364.
13084 { echo "$as_me:$LINENO: checking size of off_t" >&5
13085 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
13086 if test "${ac_cv_sizeof_off_t+set}" = set; then
13087 echo $ECHO_N "(cached) $ECHO_C" >&6
13088 else
13089 if test "$cross_compiling" = yes; then
13090 # Depending upon the size, compute the lo and hi bounds.
13091 cat >conftest.$ac_ext <<_ACEOF
13092 /* confdefs.h. */
13093 _ACEOF
13094 cat confdefs.h >>conftest.$ac_ext
13095 cat >>conftest.$ac_ext <<_ACEOF
13096 /* end confdefs.h. */
13098 #ifdef HAVE_SYS_TYPES_H
13099 #include <sys/types.h>
13100 #endif
13103 typedef off_t ac__type_sizeof_;
13105 main ()
13107 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13108 test_array [0] = 0
13111 return 0;
13113 _ACEOF
13114 rm -f conftest.$ac_objext
13115 if { (ac_try="$ac_compile"
13116 case "(($ac_try" in
13117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13118 *) ac_try_echo=$ac_try;;
13119 esac
13120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13121 (eval "$ac_compile") 2>conftest.er1
13122 ac_status=$?
13123 grep -v '^ *+' conftest.er1 >conftest.err
13124 rm -f conftest.er1
13125 cat conftest.err >&5
13126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13127 (exit $ac_status); } && {
13128 test -z "$ac_c_werror_flag" ||
13129 test ! -s conftest.err
13130 } && test -s conftest.$ac_objext; then
13131 ac_lo=0 ac_mid=0
13132 while :; do
13133 cat >conftest.$ac_ext <<_ACEOF
13134 /* confdefs.h. */
13135 _ACEOF
13136 cat confdefs.h >>conftest.$ac_ext
13137 cat >>conftest.$ac_ext <<_ACEOF
13138 /* end confdefs.h. */
13140 #ifdef HAVE_SYS_TYPES_H
13141 #include <sys/types.h>
13142 #endif
13145 typedef off_t ac__type_sizeof_;
13147 main ()
13149 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13150 test_array [0] = 0
13153 return 0;
13155 _ACEOF
13156 rm -f conftest.$ac_objext
13157 if { (ac_try="$ac_compile"
13158 case "(($ac_try" in
13159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13160 *) ac_try_echo=$ac_try;;
13161 esac
13162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13163 (eval "$ac_compile") 2>conftest.er1
13164 ac_status=$?
13165 grep -v '^ *+' conftest.er1 >conftest.err
13166 rm -f conftest.er1
13167 cat conftest.err >&5
13168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13169 (exit $ac_status); } && {
13170 test -z "$ac_c_werror_flag" ||
13171 test ! -s conftest.err
13172 } && test -s conftest.$ac_objext; then
13173 ac_hi=$ac_mid; break
13174 else
13175 echo "$as_me: failed program was:" >&5
13176 sed 's/^/| /' conftest.$ac_ext >&5
13178 ac_lo=`expr $ac_mid + 1`
13179 if test $ac_lo -le $ac_mid; then
13180 ac_lo= ac_hi=
13181 break
13183 ac_mid=`expr 2 '*' $ac_mid + 1`
13186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13187 done
13188 else
13189 echo "$as_me: failed program was:" >&5
13190 sed 's/^/| /' conftest.$ac_ext >&5
13192 cat >conftest.$ac_ext <<_ACEOF
13193 /* confdefs.h. */
13194 _ACEOF
13195 cat confdefs.h >>conftest.$ac_ext
13196 cat >>conftest.$ac_ext <<_ACEOF
13197 /* end confdefs.h. */
13199 #ifdef HAVE_SYS_TYPES_H
13200 #include <sys/types.h>
13201 #endif
13204 typedef off_t ac__type_sizeof_;
13206 main ()
13208 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13209 test_array [0] = 0
13212 return 0;
13214 _ACEOF
13215 rm -f conftest.$ac_objext
13216 if { (ac_try="$ac_compile"
13217 case "(($ac_try" in
13218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13219 *) ac_try_echo=$ac_try;;
13220 esac
13221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13222 (eval "$ac_compile") 2>conftest.er1
13223 ac_status=$?
13224 grep -v '^ *+' conftest.er1 >conftest.err
13225 rm -f conftest.er1
13226 cat conftest.err >&5
13227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13228 (exit $ac_status); } && {
13229 test -z "$ac_c_werror_flag" ||
13230 test ! -s conftest.err
13231 } && test -s conftest.$ac_objext; then
13232 ac_hi=-1 ac_mid=-1
13233 while :; do
13234 cat >conftest.$ac_ext <<_ACEOF
13235 /* confdefs.h. */
13236 _ACEOF
13237 cat confdefs.h >>conftest.$ac_ext
13238 cat >>conftest.$ac_ext <<_ACEOF
13239 /* end confdefs.h. */
13241 #ifdef HAVE_SYS_TYPES_H
13242 #include <sys/types.h>
13243 #endif
13246 typedef off_t ac__type_sizeof_;
13248 main ()
13250 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13251 test_array [0] = 0
13254 return 0;
13256 _ACEOF
13257 rm -f conftest.$ac_objext
13258 if { (ac_try="$ac_compile"
13259 case "(($ac_try" in
13260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13261 *) ac_try_echo=$ac_try;;
13262 esac
13263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13264 (eval "$ac_compile") 2>conftest.er1
13265 ac_status=$?
13266 grep -v '^ *+' conftest.er1 >conftest.err
13267 rm -f conftest.er1
13268 cat conftest.err >&5
13269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13270 (exit $ac_status); } && {
13271 test -z "$ac_c_werror_flag" ||
13272 test ! -s conftest.err
13273 } && test -s conftest.$ac_objext; then
13274 ac_lo=$ac_mid; break
13275 else
13276 echo "$as_me: failed program was:" >&5
13277 sed 's/^/| /' conftest.$ac_ext >&5
13279 ac_hi=`expr '(' $ac_mid ')' - 1`
13280 if test $ac_mid -le $ac_hi; then
13281 ac_lo= ac_hi=
13282 break
13284 ac_mid=`expr 2 '*' $ac_mid`
13287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13288 done
13289 else
13290 echo "$as_me: failed program was:" >&5
13291 sed 's/^/| /' conftest.$ac_ext >&5
13293 ac_lo= ac_hi=
13296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13300 # Binary search between lo and hi bounds.
13301 while test "x$ac_lo" != "x$ac_hi"; do
13302 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13303 cat >conftest.$ac_ext <<_ACEOF
13304 /* confdefs.h. */
13305 _ACEOF
13306 cat confdefs.h >>conftest.$ac_ext
13307 cat >>conftest.$ac_ext <<_ACEOF
13308 /* end confdefs.h. */
13310 #ifdef HAVE_SYS_TYPES_H
13311 #include <sys/types.h>
13312 #endif
13315 typedef off_t ac__type_sizeof_;
13317 main ()
13319 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13320 test_array [0] = 0
13323 return 0;
13325 _ACEOF
13326 rm -f conftest.$ac_objext
13327 if { (ac_try="$ac_compile"
13328 case "(($ac_try" in
13329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13330 *) ac_try_echo=$ac_try;;
13331 esac
13332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13333 (eval "$ac_compile") 2>conftest.er1
13334 ac_status=$?
13335 grep -v '^ *+' conftest.er1 >conftest.err
13336 rm -f conftest.er1
13337 cat conftest.err >&5
13338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13339 (exit $ac_status); } && {
13340 test -z "$ac_c_werror_flag" ||
13341 test ! -s conftest.err
13342 } && test -s conftest.$ac_objext; then
13343 ac_hi=$ac_mid
13344 else
13345 echo "$as_me: failed program was:" >&5
13346 sed 's/^/| /' conftest.$ac_ext >&5
13348 ac_lo=`expr '(' $ac_mid ')' + 1`
13351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13352 done
13353 case $ac_lo in
13354 ?*) ac_cv_sizeof_off_t=$ac_lo;;
13355 '') if test "$ac_cv_type_off_t" = yes; then
13356 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
13357 See \`config.log' for more details." >&5
13358 echo "$as_me: error: cannot compute sizeof (off_t)
13359 See \`config.log' for more details." >&2;}
13360 { (exit 77); exit 77; }; }
13361 else
13362 ac_cv_sizeof_off_t=0
13363 fi ;;
13364 esac
13365 else
13366 cat >conftest.$ac_ext <<_ACEOF
13367 /* confdefs.h. */
13368 _ACEOF
13369 cat confdefs.h >>conftest.$ac_ext
13370 cat >>conftest.$ac_ext <<_ACEOF
13371 /* end confdefs.h. */
13373 #ifdef HAVE_SYS_TYPES_H
13374 #include <sys/types.h>
13375 #endif
13378 typedef off_t ac__type_sizeof_;
13379 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13380 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
13381 #include <stdio.h>
13382 #include <stdlib.h>
13384 main ()
13387 FILE *f = fopen ("conftest.val", "w");
13388 if (! f)
13389 return 1;
13390 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
13392 long int i = longval ();
13393 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13394 return 1;
13395 fprintf (f, "%ld\n", i);
13397 else
13399 unsigned long int i = ulongval ();
13400 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13401 return 1;
13402 fprintf (f, "%lu\n", i);
13404 return ferror (f) || fclose (f) != 0;
13407 return 0;
13409 _ACEOF
13410 rm -f conftest$ac_exeext
13411 if { (ac_try="$ac_link"
13412 case "(($ac_try" in
13413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13414 *) ac_try_echo=$ac_try;;
13415 esac
13416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13417 (eval "$ac_link") 2>&5
13418 ac_status=$?
13419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13420 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13421 { (case "(($ac_try" in
13422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13423 *) ac_try_echo=$ac_try;;
13424 esac
13425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13426 (eval "$ac_try") 2>&5
13427 ac_status=$?
13428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13429 (exit $ac_status); }; }; then
13430 ac_cv_sizeof_off_t=`cat conftest.val`
13431 else
13432 echo "$as_me: program exited with status $ac_status" >&5
13433 echo "$as_me: failed program was:" >&5
13434 sed 's/^/| /' conftest.$ac_ext >&5
13436 ( exit $ac_status )
13437 if test "$ac_cv_type_off_t" = yes; then
13438 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
13439 See \`config.log' for more details." >&5
13440 echo "$as_me: error: cannot compute sizeof (off_t)
13441 See \`config.log' for more details." >&2;}
13442 { (exit 77); exit 77; }; }
13443 else
13444 ac_cv_sizeof_off_t=0
13447 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13449 rm -f conftest.val
13451 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
13452 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
13456 cat >>confdefs.h <<_ACEOF
13457 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
13458 _ACEOF
13462 { echo "$as_me:$LINENO: checking whether to enable large file support" >&5
13463 echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6; }
13464 if test "$have_long_long" = yes -a \
13465 "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
13466 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
13468 cat >>confdefs.h <<\_ACEOF
13469 #define HAVE_LARGEFILE_SUPPORT 1
13470 _ACEOF
13472 { echo "$as_me:$LINENO: result: yes" >&5
13473 echo "${ECHO_T}yes" >&6; }
13474 else
13475 { echo "$as_me:$LINENO: result: no" >&5
13476 echo "${ECHO_T}no" >&6; }
13479 { echo "$as_me:$LINENO: checking for time_t" >&5
13480 echo $ECHO_N "checking for time_t... $ECHO_C" >&6; }
13481 if test "${ac_cv_type_time_t+set}" = set; then
13482 echo $ECHO_N "(cached) $ECHO_C" >&6
13483 else
13484 cat >conftest.$ac_ext <<_ACEOF
13485 /* confdefs.h. */
13486 _ACEOF
13487 cat confdefs.h >>conftest.$ac_ext
13488 cat >>conftest.$ac_ext <<_ACEOF
13489 /* end confdefs.h. */
13491 #ifdef HAVE_SYS_TYPES_H
13492 #include <sys/types.h>
13493 #endif
13494 #ifdef HAVE_TIME_H
13495 #include <time.h>
13496 #endif
13499 typedef time_t ac__type_new_;
13501 main ()
13503 if ((ac__type_new_ *) 0)
13504 return 0;
13505 if (sizeof (ac__type_new_))
13506 return 0;
13508 return 0;
13510 _ACEOF
13511 rm -f conftest.$ac_objext
13512 if { (ac_try="$ac_compile"
13513 case "(($ac_try" in
13514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13515 *) ac_try_echo=$ac_try;;
13516 esac
13517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13518 (eval "$ac_compile") 2>conftest.er1
13519 ac_status=$?
13520 grep -v '^ *+' conftest.er1 >conftest.err
13521 rm -f conftest.er1
13522 cat conftest.err >&5
13523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13524 (exit $ac_status); } && {
13525 test -z "$ac_c_werror_flag" ||
13526 test ! -s conftest.err
13527 } && test -s conftest.$ac_objext; then
13528 ac_cv_type_time_t=yes
13529 else
13530 echo "$as_me: failed program was:" >&5
13531 sed 's/^/| /' conftest.$ac_ext >&5
13533 ac_cv_type_time_t=no
13536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13538 { echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5
13539 echo "${ECHO_T}$ac_cv_type_time_t" >&6; }
13541 # The cast to long int works around a bug in the HP C Compiler
13542 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13543 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13544 # This bug is HP SR number 8606223364.
13545 { echo "$as_me:$LINENO: checking size of time_t" >&5
13546 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6; }
13547 if test "${ac_cv_sizeof_time_t+set}" = set; then
13548 echo $ECHO_N "(cached) $ECHO_C" >&6
13549 else
13550 if test "$cross_compiling" = yes; then
13551 # Depending upon the size, compute the lo and hi bounds.
13552 cat >conftest.$ac_ext <<_ACEOF
13553 /* confdefs.h. */
13554 _ACEOF
13555 cat confdefs.h >>conftest.$ac_ext
13556 cat >>conftest.$ac_ext <<_ACEOF
13557 /* end confdefs.h. */
13559 #ifdef HAVE_SYS_TYPES_H
13560 #include <sys/types.h>
13561 #endif
13562 #ifdef HAVE_TIME_H
13563 #include <time.h>
13564 #endif
13567 typedef time_t ac__type_sizeof_;
13569 main ()
13571 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13572 test_array [0] = 0
13575 return 0;
13577 _ACEOF
13578 rm -f conftest.$ac_objext
13579 if { (ac_try="$ac_compile"
13580 case "(($ac_try" in
13581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13582 *) ac_try_echo=$ac_try;;
13583 esac
13584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13585 (eval "$ac_compile") 2>conftest.er1
13586 ac_status=$?
13587 grep -v '^ *+' conftest.er1 >conftest.err
13588 rm -f conftest.er1
13589 cat conftest.err >&5
13590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13591 (exit $ac_status); } && {
13592 test -z "$ac_c_werror_flag" ||
13593 test ! -s conftest.err
13594 } && test -s conftest.$ac_objext; then
13595 ac_lo=0 ac_mid=0
13596 while :; do
13597 cat >conftest.$ac_ext <<_ACEOF
13598 /* confdefs.h. */
13599 _ACEOF
13600 cat confdefs.h >>conftest.$ac_ext
13601 cat >>conftest.$ac_ext <<_ACEOF
13602 /* end confdefs.h. */
13604 #ifdef HAVE_SYS_TYPES_H
13605 #include <sys/types.h>
13606 #endif
13607 #ifdef HAVE_TIME_H
13608 #include <time.h>
13609 #endif
13612 typedef time_t ac__type_sizeof_;
13614 main ()
13616 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13617 test_array [0] = 0
13620 return 0;
13622 _ACEOF
13623 rm -f conftest.$ac_objext
13624 if { (ac_try="$ac_compile"
13625 case "(($ac_try" in
13626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13627 *) ac_try_echo=$ac_try;;
13628 esac
13629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13630 (eval "$ac_compile") 2>conftest.er1
13631 ac_status=$?
13632 grep -v '^ *+' conftest.er1 >conftest.err
13633 rm -f conftest.er1
13634 cat conftest.err >&5
13635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13636 (exit $ac_status); } && {
13637 test -z "$ac_c_werror_flag" ||
13638 test ! -s conftest.err
13639 } && test -s conftest.$ac_objext; then
13640 ac_hi=$ac_mid; break
13641 else
13642 echo "$as_me: failed program was:" >&5
13643 sed 's/^/| /' conftest.$ac_ext >&5
13645 ac_lo=`expr $ac_mid + 1`
13646 if test $ac_lo -le $ac_mid; then
13647 ac_lo= ac_hi=
13648 break
13650 ac_mid=`expr 2 '*' $ac_mid + 1`
13653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13654 done
13655 else
13656 echo "$as_me: failed program was:" >&5
13657 sed 's/^/| /' conftest.$ac_ext >&5
13659 cat >conftest.$ac_ext <<_ACEOF
13660 /* confdefs.h. */
13661 _ACEOF
13662 cat confdefs.h >>conftest.$ac_ext
13663 cat >>conftest.$ac_ext <<_ACEOF
13664 /* end confdefs.h. */
13666 #ifdef HAVE_SYS_TYPES_H
13667 #include <sys/types.h>
13668 #endif
13669 #ifdef HAVE_TIME_H
13670 #include <time.h>
13671 #endif
13674 typedef time_t ac__type_sizeof_;
13676 main ()
13678 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13679 test_array [0] = 0
13682 return 0;
13684 _ACEOF
13685 rm -f conftest.$ac_objext
13686 if { (ac_try="$ac_compile"
13687 case "(($ac_try" in
13688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13689 *) ac_try_echo=$ac_try;;
13690 esac
13691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13692 (eval "$ac_compile") 2>conftest.er1
13693 ac_status=$?
13694 grep -v '^ *+' conftest.er1 >conftest.err
13695 rm -f conftest.er1
13696 cat conftest.err >&5
13697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13698 (exit $ac_status); } && {
13699 test -z "$ac_c_werror_flag" ||
13700 test ! -s conftest.err
13701 } && test -s conftest.$ac_objext; then
13702 ac_hi=-1 ac_mid=-1
13703 while :; do
13704 cat >conftest.$ac_ext <<_ACEOF
13705 /* confdefs.h. */
13706 _ACEOF
13707 cat confdefs.h >>conftest.$ac_ext
13708 cat >>conftest.$ac_ext <<_ACEOF
13709 /* end confdefs.h. */
13711 #ifdef HAVE_SYS_TYPES_H
13712 #include <sys/types.h>
13713 #endif
13714 #ifdef HAVE_TIME_H
13715 #include <time.h>
13716 #endif
13719 typedef time_t ac__type_sizeof_;
13721 main ()
13723 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13724 test_array [0] = 0
13727 return 0;
13729 _ACEOF
13730 rm -f conftest.$ac_objext
13731 if { (ac_try="$ac_compile"
13732 case "(($ac_try" in
13733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13734 *) ac_try_echo=$ac_try;;
13735 esac
13736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13737 (eval "$ac_compile") 2>conftest.er1
13738 ac_status=$?
13739 grep -v '^ *+' conftest.er1 >conftest.err
13740 rm -f conftest.er1
13741 cat conftest.err >&5
13742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13743 (exit $ac_status); } && {
13744 test -z "$ac_c_werror_flag" ||
13745 test ! -s conftest.err
13746 } && test -s conftest.$ac_objext; then
13747 ac_lo=$ac_mid; break
13748 else
13749 echo "$as_me: failed program was:" >&5
13750 sed 's/^/| /' conftest.$ac_ext >&5
13752 ac_hi=`expr '(' $ac_mid ')' - 1`
13753 if test $ac_mid -le $ac_hi; then
13754 ac_lo= ac_hi=
13755 break
13757 ac_mid=`expr 2 '*' $ac_mid`
13760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13761 done
13762 else
13763 echo "$as_me: failed program was:" >&5
13764 sed 's/^/| /' conftest.$ac_ext >&5
13766 ac_lo= ac_hi=
13769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13773 # Binary search between lo and hi bounds.
13774 while test "x$ac_lo" != "x$ac_hi"; do
13775 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13776 cat >conftest.$ac_ext <<_ACEOF
13777 /* confdefs.h. */
13778 _ACEOF
13779 cat confdefs.h >>conftest.$ac_ext
13780 cat >>conftest.$ac_ext <<_ACEOF
13781 /* end confdefs.h. */
13783 #ifdef HAVE_SYS_TYPES_H
13784 #include <sys/types.h>
13785 #endif
13786 #ifdef HAVE_TIME_H
13787 #include <time.h>
13788 #endif
13791 typedef time_t ac__type_sizeof_;
13793 main ()
13795 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13796 test_array [0] = 0
13799 return 0;
13801 _ACEOF
13802 rm -f conftest.$ac_objext
13803 if { (ac_try="$ac_compile"
13804 case "(($ac_try" in
13805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13806 *) ac_try_echo=$ac_try;;
13807 esac
13808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13809 (eval "$ac_compile") 2>conftest.er1
13810 ac_status=$?
13811 grep -v '^ *+' conftest.er1 >conftest.err
13812 rm -f conftest.er1
13813 cat conftest.err >&5
13814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13815 (exit $ac_status); } && {
13816 test -z "$ac_c_werror_flag" ||
13817 test ! -s conftest.err
13818 } && test -s conftest.$ac_objext; then
13819 ac_hi=$ac_mid
13820 else
13821 echo "$as_me: failed program was:" >&5
13822 sed 's/^/| /' conftest.$ac_ext >&5
13824 ac_lo=`expr '(' $ac_mid ')' + 1`
13827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13828 done
13829 case $ac_lo in
13830 ?*) ac_cv_sizeof_time_t=$ac_lo;;
13831 '') if test "$ac_cv_type_time_t" = yes; then
13832 { { echo "$as_me:$LINENO: error: cannot compute sizeof (time_t)
13833 See \`config.log' for more details." >&5
13834 echo "$as_me: error: cannot compute sizeof (time_t)
13835 See \`config.log' for more details." >&2;}
13836 { (exit 77); exit 77; }; }
13837 else
13838 ac_cv_sizeof_time_t=0
13839 fi ;;
13840 esac
13841 else
13842 cat >conftest.$ac_ext <<_ACEOF
13843 /* confdefs.h. */
13844 _ACEOF
13845 cat confdefs.h >>conftest.$ac_ext
13846 cat >>conftest.$ac_ext <<_ACEOF
13847 /* end confdefs.h. */
13849 #ifdef HAVE_SYS_TYPES_H
13850 #include <sys/types.h>
13851 #endif
13852 #ifdef HAVE_TIME_H
13853 #include <time.h>
13854 #endif
13857 typedef time_t ac__type_sizeof_;
13858 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13859 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
13860 #include <stdio.h>
13861 #include <stdlib.h>
13863 main ()
13866 FILE *f = fopen ("conftest.val", "w");
13867 if (! f)
13868 return 1;
13869 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
13871 long int i = longval ();
13872 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13873 return 1;
13874 fprintf (f, "%ld\n", i);
13876 else
13878 unsigned long int i = ulongval ();
13879 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13880 return 1;
13881 fprintf (f, "%lu\n", i);
13883 return ferror (f) || fclose (f) != 0;
13886 return 0;
13888 _ACEOF
13889 rm -f conftest$ac_exeext
13890 if { (ac_try="$ac_link"
13891 case "(($ac_try" in
13892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13893 *) ac_try_echo=$ac_try;;
13894 esac
13895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13896 (eval "$ac_link") 2>&5
13897 ac_status=$?
13898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13899 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13900 { (case "(($ac_try" in
13901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13902 *) ac_try_echo=$ac_try;;
13903 esac
13904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13905 (eval "$ac_try") 2>&5
13906 ac_status=$?
13907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13908 (exit $ac_status); }; }; then
13909 ac_cv_sizeof_time_t=`cat conftest.val`
13910 else
13911 echo "$as_me: program exited with status $ac_status" >&5
13912 echo "$as_me: failed program was:" >&5
13913 sed 's/^/| /' conftest.$ac_ext >&5
13915 ( exit $ac_status )
13916 if test "$ac_cv_type_time_t" = yes; then
13917 { { echo "$as_me:$LINENO: error: cannot compute sizeof (time_t)
13918 See \`config.log' for more details." >&5
13919 echo "$as_me: error: cannot compute sizeof (time_t)
13920 See \`config.log' for more details." >&2;}
13921 { (exit 77); exit 77; }; }
13922 else
13923 ac_cv_sizeof_time_t=0
13926 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13928 rm -f conftest.val
13930 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
13931 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6; }
13935 cat >>confdefs.h <<_ACEOF
13936 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
13937 _ACEOF
13941 # if have pthread_t then define SIZEOF_PTHREAD_T
13942 ac_save_cc="$CC"
13943 if test "$ac_cv_kpthread" = "yes"
13944 then CC="$CC -Kpthread"
13945 elif test "$ac_cv_kthread" = "yes"
13946 then CC="$CC -Kthread"
13947 elif test "$ac_cv_pthread" = "yes"
13948 then CC="$CC -pthread"
13950 { echo "$as_me:$LINENO: checking for pthread_t" >&5
13951 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; }
13952 have_pthread_t=no
13953 cat >conftest.$ac_ext <<_ACEOF
13954 /* confdefs.h. */
13955 _ACEOF
13956 cat confdefs.h >>conftest.$ac_ext
13957 cat >>conftest.$ac_ext <<_ACEOF
13958 /* end confdefs.h. */
13959 #include <pthread.h>
13961 main ()
13963 pthread_t x; x = *(pthread_t*)0;
13965 return 0;
13967 _ACEOF
13968 rm -f conftest.$ac_objext
13969 if { (ac_try="$ac_compile"
13970 case "(($ac_try" in
13971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13972 *) ac_try_echo=$ac_try;;
13973 esac
13974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13975 (eval "$ac_compile") 2>conftest.er1
13976 ac_status=$?
13977 grep -v '^ *+' conftest.er1 >conftest.err
13978 rm -f conftest.er1
13979 cat conftest.err >&5
13980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13981 (exit $ac_status); } && {
13982 test -z "$ac_c_werror_flag" ||
13983 test ! -s conftest.err
13984 } && test -s conftest.$ac_objext; then
13985 have_pthread_t=yes
13986 else
13987 echo "$as_me: failed program was:" >&5
13988 sed 's/^/| /' conftest.$ac_ext >&5
13993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13994 { echo "$as_me:$LINENO: result: $have_pthread_t" >&5
13995 echo "${ECHO_T}$have_pthread_t" >&6; }
13996 if test "$have_pthread_t" = yes ; then
13997 { echo "$as_me:$LINENO: checking for pthread_t" >&5
13998 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; }
13999 if test "${ac_cv_type_pthread_t+set}" = set; then
14000 echo $ECHO_N "(cached) $ECHO_C" >&6
14001 else
14002 cat >conftest.$ac_ext <<_ACEOF
14003 /* confdefs.h. */
14004 _ACEOF
14005 cat confdefs.h >>conftest.$ac_ext
14006 cat >>conftest.$ac_ext <<_ACEOF
14007 /* end confdefs.h. */
14009 #ifdef HAVE_PTHREAD_H
14010 #include <pthread.h>
14011 #endif
14014 typedef pthread_t ac__type_new_;
14016 main ()
14018 if ((ac__type_new_ *) 0)
14019 return 0;
14020 if (sizeof (ac__type_new_))
14021 return 0;
14023 return 0;
14025 _ACEOF
14026 rm -f conftest.$ac_objext
14027 if { (ac_try="$ac_compile"
14028 case "(($ac_try" in
14029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14030 *) ac_try_echo=$ac_try;;
14031 esac
14032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14033 (eval "$ac_compile") 2>conftest.er1
14034 ac_status=$?
14035 grep -v '^ *+' conftest.er1 >conftest.err
14036 rm -f conftest.er1
14037 cat conftest.err >&5
14038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14039 (exit $ac_status); } && {
14040 test -z "$ac_c_werror_flag" ||
14041 test ! -s conftest.err
14042 } && test -s conftest.$ac_objext; then
14043 ac_cv_type_pthread_t=yes
14044 else
14045 echo "$as_me: failed program was:" >&5
14046 sed 's/^/| /' conftest.$ac_ext >&5
14048 ac_cv_type_pthread_t=no
14051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14053 { echo "$as_me:$LINENO: result: $ac_cv_type_pthread_t" >&5
14054 echo "${ECHO_T}$ac_cv_type_pthread_t" >&6; }
14056 # The cast to long int works around a bug in the HP C Compiler
14057 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14058 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14059 # This bug is HP SR number 8606223364.
14060 { echo "$as_me:$LINENO: checking size of pthread_t" >&5
14061 echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6; }
14062 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
14063 echo $ECHO_N "(cached) $ECHO_C" >&6
14064 else
14065 if test "$cross_compiling" = yes; then
14066 # Depending upon the size, compute the lo and hi bounds.
14067 cat >conftest.$ac_ext <<_ACEOF
14068 /* confdefs.h. */
14069 _ACEOF
14070 cat confdefs.h >>conftest.$ac_ext
14071 cat >>conftest.$ac_ext <<_ACEOF
14072 /* end confdefs.h. */
14074 #ifdef HAVE_PTHREAD_H
14075 #include <pthread.h>
14076 #endif
14079 typedef pthread_t ac__type_sizeof_;
14081 main ()
14083 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
14084 test_array [0] = 0
14087 return 0;
14089 _ACEOF
14090 rm -f conftest.$ac_objext
14091 if { (ac_try="$ac_compile"
14092 case "(($ac_try" in
14093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14094 *) ac_try_echo=$ac_try;;
14095 esac
14096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14097 (eval "$ac_compile") 2>conftest.er1
14098 ac_status=$?
14099 grep -v '^ *+' conftest.er1 >conftest.err
14100 rm -f conftest.er1
14101 cat conftest.err >&5
14102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14103 (exit $ac_status); } && {
14104 test -z "$ac_c_werror_flag" ||
14105 test ! -s conftest.err
14106 } && test -s conftest.$ac_objext; then
14107 ac_lo=0 ac_mid=0
14108 while :; do
14109 cat >conftest.$ac_ext <<_ACEOF
14110 /* confdefs.h. */
14111 _ACEOF
14112 cat confdefs.h >>conftest.$ac_ext
14113 cat >>conftest.$ac_ext <<_ACEOF
14114 /* end confdefs.h. */
14116 #ifdef HAVE_PTHREAD_H
14117 #include <pthread.h>
14118 #endif
14121 typedef pthread_t ac__type_sizeof_;
14123 main ()
14125 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
14126 test_array [0] = 0
14129 return 0;
14131 _ACEOF
14132 rm -f conftest.$ac_objext
14133 if { (ac_try="$ac_compile"
14134 case "(($ac_try" in
14135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14136 *) ac_try_echo=$ac_try;;
14137 esac
14138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14139 (eval "$ac_compile") 2>conftest.er1
14140 ac_status=$?
14141 grep -v '^ *+' conftest.er1 >conftest.err
14142 rm -f conftest.er1
14143 cat conftest.err >&5
14144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14145 (exit $ac_status); } && {
14146 test -z "$ac_c_werror_flag" ||
14147 test ! -s conftest.err
14148 } && test -s conftest.$ac_objext; then
14149 ac_hi=$ac_mid; break
14150 else
14151 echo "$as_me: failed program was:" >&5
14152 sed 's/^/| /' conftest.$ac_ext >&5
14154 ac_lo=`expr $ac_mid + 1`
14155 if test $ac_lo -le $ac_mid; then
14156 ac_lo= ac_hi=
14157 break
14159 ac_mid=`expr 2 '*' $ac_mid + 1`
14162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14163 done
14164 else
14165 echo "$as_me: failed program was:" >&5
14166 sed 's/^/| /' conftest.$ac_ext >&5
14168 cat >conftest.$ac_ext <<_ACEOF
14169 /* confdefs.h. */
14170 _ACEOF
14171 cat confdefs.h >>conftest.$ac_ext
14172 cat >>conftest.$ac_ext <<_ACEOF
14173 /* end confdefs.h. */
14175 #ifdef HAVE_PTHREAD_H
14176 #include <pthread.h>
14177 #endif
14180 typedef pthread_t ac__type_sizeof_;
14182 main ()
14184 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
14185 test_array [0] = 0
14188 return 0;
14190 _ACEOF
14191 rm -f conftest.$ac_objext
14192 if { (ac_try="$ac_compile"
14193 case "(($ac_try" in
14194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14195 *) ac_try_echo=$ac_try;;
14196 esac
14197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14198 (eval "$ac_compile") 2>conftest.er1
14199 ac_status=$?
14200 grep -v '^ *+' conftest.er1 >conftest.err
14201 rm -f conftest.er1
14202 cat conftest.err >&5
14203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14204 (exit $ac_status); } && {
14205 test -z "$ac_c_werror_flag" ||
14206 test ! -s conftest.err
14207 } && test -s conftest.$ac_objext; then
14208 ac_hi=-1 ac_mid=-1
14209 while :; do
14210 cat >conftest.$ac_ext <<_ACEOF
14211 /* confdefs.h. */
14212 _ACEOF
14213 cat confdefs.h >>conftest.$ac_ext
14214 cat >>conftest.$ac_ext <<_ACEOF
14215 /* end confdefs.h. */
14217 #ifdef HAVE_PTHREAD_H
14218 #include <pthread.h>
14219 #endif
14222 typedef pthread_t ac__type_sizeof_;
14224 main ()
14226 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
14227 test_array [0] = 0
14230 return 0;
14232 _ACEOF
14233 rm -f conftest.$ac_objext
14234 if { (ac_try="$ac_compile"
14235 case "(($ac_try" in
14236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14237 *) ac_try_echo=$ac_try;;
14238 esac
14239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14240 (eval "$ac_compile") 2>conftest.er1
14241 ac_status=$?
14242 grep -v '^ *+' conftest.er1 >conftest.err
14243 rm -f conftest.er1
14244 cat conftest.err >&5
14245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14246 (exit $ac_status); } && {
14247 test -z "$ac_c_werror_flag" ||
14248 test ! -s conftest.err
14249 } && test -s conftest.$ac_objext; then
14250 ac_lo=$ac_mid; break
14251 else
14252 echo "$as_me: failed program was:" >&5
14253 sed 's/^/| /' conftest.$ac_ext >&5
14255 ac_hi=`expr '(' $ac_mid ')' - 1`
14256 if test $ac_mid -le $ac_hi; then
14257 ac_lo= ac_hi=
14258 break
14260 ac_mid=`expr 2 '*' $ac_mid`
14263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14264 done
14265 else
14266 echo "$as_me: failed program was:" >&5
14267 sed 's/^/| /' conftest.$ac_ext >&5
14269 ac_lo= ac_hi=
14272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14276 # Binary search between lo and hi bounds.
14277 while test "x$ac_lo" != "x$ac_hi"; do
14278 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14279 cat >conftest.$ac_ext <<_ACEOF
14280 /* confdefs.h. */
14281 _ACEOF
14282 cat confdefs.h >>conftest.$ac_ext
14283 cat >>conftest.$ac_ext <<_ACEOF
14284 /* end confdefs.h. */
14286 #ifdef HAVE_PTHREAD_H
14287 #include <pthread.h>
14288 #endif
14291 typedef pthread_t ac__type_sizeof_;
14293 main ()
14295 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
14296 test_array [0] = 0
14299 return 0;
14301 _ACEOF
14302 rm -f conftest.$ac_objext
14303 if { (ac_try="$ac_compile"
14304 case "(($ac_try" in
14305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14306 *) ac_try_echo=$ac_try;;
14307 esac
14308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14309 (eval "$ac_compile") 2>conftest.er1
14310 ac_status=$?
14311 grep -v '^ *+' conftest.er1 >conftest.err
14312 rm -f conftest.er1
14313 cat conftest.err >&5
14314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14315 (exit $ac_status); } && {
14316 test -z "$ac_c_werror_flag" ||
14317 test ! -s conftest.err
14318 } && test -s conftest.$ac_objext; then
14319 ac_hi=$ac_mid
14320 else
14321 echo "$as_me: failed program was:" >&5
14322 sed 's/^/| /' conftest.$ac_ext >&5
14324 ac_lo=`expr '(' $ac_mid ')' + 1`
14327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14328 done
14329 case $ac_lo in
14330 ?*) ac_cv_sizeof_pthread_t=$ac_lo;;
14331 '') if test "$ac_cv_type_pthread_t" = yes; then
14332 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pthread_t)
14333 See \`config.log' for more details." >&5
14334 echo "$as_me: error: cannot compute sizeof (pthread_t)
14335 See \`config.log' for more details." >&2;}
14336 { (exit 77); exit 77; }; }
14337 else
14338 ac_cv_sizeof_pthread_t=0
14339 fi ;;
14340 esac
14341 else
14342 cat >conftest.$ac_ext <<_ACEOF
14343 /* confdefs.h. */
14344 _ACEOF
14345 cat confdefs.h >>conftest.$ac_ext
14346 cat >>conftest.$ac_ext <<_ACEOF
14347 /* end confdefs.h. */
14349 #ifdef HAVE_PTHREAD_H
14350 #include <pthread.h>
14351 #endif
14354 typedef pthread_t ac__type_sizeof_;
14355 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
14356 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
14357 #include <stdio.h>
14358 #include <stdlib.h>
14360 main ()
14363 FILE *f = fopen ("conftest.val", "w");
14364 if (! f)
14365 return 1;
14366 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
14368 long int i = longval ();
14369 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14370 return 1;
14371 fprintf (f, "%ld\n", i);
14373 else
14375 unsigned long int i = ulongval ();
14376 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14377 return 1;
14378 fprintf (f, "%lu\n", i);
14380 return ferror (f) || fclose (f) != 0;
14383 return 0;
14385 _ACEOF
14386 rm -f conftest$ac_exeext
14387 if { (ac_try="$ac_link"
14388 case "(($ac_try" in
14389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14390 *) ac_try_echo=$ac_try;;
14391 esac
14392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14393 (eval "$ac_link") 2>&5
14394 ac_status=$?
14395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14396 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14397 { (case "(($ac_try" in
14398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14399 *) ac_try_echo=$ac_try;;
14400 esac
14401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14402 (eval "$ac_try") 2>&5
14403 ac_status=$?
14404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14405 (exit $ac_status); }; }; then
14406 ac_cv_sizeof_pthread_t=`cat conftest.val`
14407 else
14408 echo "$as_me: program exited with status $ac_status" >&5
14409 echo "$as_me: failed program was:" >&5
14410 sed 's/^/| /' conftest.$ac_ext >&5
14412 ( exit $ac_status )
14413 if test "$ac_cv_type_pthread_t" = yes; then
14414 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pthread_t)
14415 See \`config.log' for more details." >&5
14416 echo "$as_me: error: cannot compute sizeof (pthread_t)
14417 See \`config.log' for more details." >&2;}
14418 { (exit 77); exit 77; }; }
14419 else
14420 ac_cv_sizeof_pthread_t=0
14423 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14425 rm -f conftest.val
14427 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
14428 echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6; }
14432 cat >>confdefs.h <<_ACEOF
14433 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
14434 _ACEOF
14438 CC="$ac_save_cc"
14440 { echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5
14441 echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6; }
14442 # Check whether --enable-toolbox-glue was given.
14443 if test "${enable_toolbox_glue+set}" = set; then
14444 enableval=$enable_toolbox_glue;
14448 if test -z "$enable_toolbox_glue"
14449 then
14450 case $ac_sys_system/$ac_sys_release in
14451 Darwin/*)
14452 enable_toolbox_glue="yes";;
14454 enable_toolbox_glue="no";;
14455 esac
14457 case "$enable_toolbox_glue" in
14458 yes)
14459 extra_machdep_objs="Python/mactoolboxglue.o"
14460 extra_undefs="-u _PyMac_Error"
14462 cat >>confdefs.h <<\_ACEOF
14463 #define USE_TOOLBOX_OBJECT_GLUE 1
14464 _ACEOF
14468 extra_machdep_objs=""
14469 extra_undefs=""
14471 esac
14472 { echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5
14473 echo "${ECHO_T}$enable_toolbox_glue" >&6; }
14477 case $ac_sys_system/$ac_sys_release in
14478 Darwin/[01567]\..*)
14479 OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
14481 Darwin/*)
14482 OTHER_LIBTOOL_OPT=""
14484 esac
14487 ARCH_RUN_32BIT=""
14489 case $ac_sys_system/$ac_sys_release in
14490 Darwin/[01567]\..*)
14491 LIBTOOL_CRUFT="-framework System -lcc_dynamic"
14492 if test "${enable_universalsdk}"; then
14494 else
14495 LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `arch`"
14497 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
14498 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
14499 Darwin/*)
14500 gcc_version=`gcc -v 2>&1 | grep version | cut -d\ -f3`
14501 if test ${gcc_version} '<' 4.0
14502 then
14503 LIBTOOL_CRUFT="-lcc_dynamic"
14504 else
14505 LIBTOOL_CRUFT=""
14507 if test "$cross_compiling" = yes; then
14508 ac_osx_32bit=yes
14509 else
14510 cat >conftest.$ac_ext <<_ACEOF
14511 /* confdefs.h. */
14512 _ACEOF
14513 cat confdefs.h >>conftest.$ac_ext
14514 cat >>conftest.$ac_ext <<_ACEOF
14515 /* end confdefs.h. */
14517 #include <unistd.h>
14518 int main(int argc, char*argv[])
14520 if (sizeof(long) == 4) {
14521 return 0;
14522 } else {
14523 return 1;
14527 _ACEOF
14528 rm -f conftest$ac_exeext
14529 if { (ac_try="$ac_link"
14530 case "(($ac_try" in
14531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14532 *) ac_try_echo=$ac_try;;
14533 esac
14534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14535 (eval "$ac_link") 2>&5
14536 ac_status=$?
14537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14538 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14539 { (case "(($ac_try" in
14540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14541 *) ac_try_echo=$ac_try;;
14542 esac
14543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14544 (eval "$ac_try") 2>&5
14545 ac_status=$?
14546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14547 (exit $ac_status); }; }; then
14548 ac_osx_32bit=yes
14549 else
14550 echo "$as_me: program exited with status $ac_status" >&5
14551 echo "$as_me: failed program was:" >&5
14552 sed 's/^/| /' conftest.$ac_ext >&5
14554 ( exit $ac_status )
14555 ac_osx_32bit=no
14557 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14562 if test "${ac_osx_32bit}" = "yes"; then
14563 case `arch` in
14564 i386)
14565 MACOSX_DEFAULT_ARCH="i386"
14567 ppc)
14568 MACOSX_DEFAULT_ARCH="ppc"
14571 { { echo "$as_me:$LINENO: error: Unexpected output of 'arch' on OSX" >&5
14572 echo "$as_me: error: Unexpected output of 'arch' on OSX" >&2;}
14573 { (exit 1); exit 1; }; }
14575 esac
14576 else
14577 case `arch` in
14578 i386)
14579 MACOSX_DEFAULT_ARCH="x86_64"
14581 ppc)
14582 MACOSX_DEFAULT_ARCH="ppc64"
14585 { { echo "$as_me:$LINENO: error: Unexpected output of 'arch' on OSX" >&5
14586 echo "$as_me: error: Unexpected output of 'arch' on OSX" >&2;}
14587 { (exit 1); exit 1; }; }
14589 esac
14591 #ARCH_RUN_32BIT="true"
14594 LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only ${MACOSX_DEFAULT_ARCH}"
14595 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
14596 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
14597 esac
14599 { echo "$as_me:$LINENO: checking for --enable-framework" >&5
14600 echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6; }
14601 if test "$enable_framework"
14602 then
14603 BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
14604 # -F. is needed to allow linking to the framework while
14605 # in the build location.
14607 cat >>confdefs.h <<\_ACEOF
14608 #define WITH_NEXT_FRAMEWORK 1
14609 _ACEOF
14611 { echo "$as_me:$LINENO: result: yes" >&5
14612 echo "${ECHO_T}yes" >&6; }
14613 if test $enable_shared = "yes"
14614 then
14615 { { echo "$as_me:$LINENO: error: Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead" >&5
14616 echo "$as_me: error: Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead" >&2;}
14617 { (exit 1); exit 1; }; }
14619 else
14620 { echo "$as_me:$LINENO: result: no" >&5
14621 echo "${ECHO_T}no" >&6; }
14624 { echo "$as_me:$LINENO: checking for dyld" >&5
14625 echo $ECHO_N "checking for dyld... $ECHO_C" >&6; }
14626 case $ac_sys_system/$ac_sys_release in
14627 Darwin/*)
14629 cat >>confdefs.h <<\_ACEOF
14630 #define WITH_DYLD 1
14631 _ACEOF
14633 { echo "$as_me:$LINENO: result: always on for Darwin" >&5
14634 echo "${ECHO_T}always on for Darwin" >&6; }
14637 { echo "$as_me:$LINENO: result: no" >&5
14638 echo "${ECHO_T}no" >&6; }
14640 esac
14642 # Set info about shared libraries.
14648 # SO is the extension of shared libraries `(including the dot!)
14649 # -- usually .so, .sl on HP-UX, .dll on Cygwin
14650 { echo "$as_me:$LINENO: checking SO" >&5
14651 echo $ECHO_N "checking SO... $ECHO_C" >&6; }
14652 if test -z "$SO"
14653 then
14654 case $ac_sys_system in
14655 hp*|HP*)
14656 case `uname -m` in
14657 ia64) SO=.so;;
14658 *) SO=.sl;;
14659 esac
14661 CYGWIN*) SO=.dll;;
14662 *) SO=.so;;
14663 esac
14664 else
14665 # this might also be a termcap variable, see #610332
14666 echo
14667 echo '====================================================================='
14668 echo '+ +'
14669 echo '+ WARNING: You have set SO in your environment. +'
14670 echo '+ Do you really mean to change the extension for shared libraries? +'
14671 echo '+ Continuing in 10 seconds to let you to ponder. +'
14672 echo '+ +'
14673 echo '====================================================================='
14674 sleep 10
14676 { echo "$as_me:$LINENO: result: $SO" >&5
14677 echo "${ECHO_T}$SO" >&6; }
14680 cat >>confdefs.h <<_ACEOF
14681 #define SHLIB_EXT "$SO"
14682 _ACEOF
14684 # LDSHARED is the ld *command* used to create shared library
14685 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
14686 # (Shared libraries in this instance are shared modules to be loaded into
14687 # Python, as opposed to building Python itself as a shared library.)
14688 { echo "$as_me:$LINENO: checking LDSHARED" >&5
14689 echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6; }
14690 if test -z "$LDSHARED"
14691 then
14692 case $ac_sys_system/$ac_sys_release in
14693 AIX*)
14694 BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
14695 LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
14697 BeOS*)
14698 BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
14699 LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
14701 IRIX/5*) LDSHARED="ld -shared";;
14702 IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";;
14703 SunOS/5*)
14704 if test "$GCC" = "yes"
14705 then LDSHARED='$(CC) -shared'
14706 else LDSHARED='$(CC) -G';
14707 fi ;;
14708 hp*|HP*)
14709 if test "$GCC" = "yes"
14710 then LDSHARED='$(CC) -shared'
14711 else LDSHARED='ld -b';
14712 fi ;;
14713 OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";;
14714 Darwin/1.3*)
14715 LDSHARED='$(CC) $(LDFLAGS) -bundle'
14716 if test "$enable_framework" ; then
14717 # Link against the framework. All externals should be defined.
14718 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
14719 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
14720 else
14721 # No framework. Ignore undefined symbols, assuming they come from Python
14722 LDSHARED="$LDSHARED -undefined suppress"
14723 fi ;;
14724 Darwin/1.4*|Darwin/5.*|Darwin/6.*)
14725 LDSHARED='$(CC) $(LDFLAGS) -bundle'
14726 if test "$enable_framework" ; then
14727 # Link against the framework. All externals should be defined.
14728 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
14729 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
14730 else
14731 # No framework, use the Python app as bundle-loader
14732 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
14733 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
14734 fi ;;
14735 Darwin/*)
14736 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
14737 # This allows an extension to be used in any Python
14739 if test ${MACOSX_DEPLOYMENT_TARGET} '>' 10.2
14740 then
14741 if test "${enable_universalsdk}"; then
14742 LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
14744 LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
14745 BLDSHARED="$LDSHARED"
14746 else
14747 LDSHARED='$(CC) $(LDFLAGS) -bundle'
14748 if test "$enable_framework" ; then
14749 # Link against the framework. All externals should be defined.
14750 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
14751 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
14752 else
14753 # No framework, use the Python app as bundle-loader
14754 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
14755 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
14759 Linux*|GNU*|QNX*) LDSHARED='$(CC) -shared';;
14760 BSD/OS*/4*) LDSHARED="gcc -shared";;
14761 FreeBSD*)
14762 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
14763 then
14764 LDSHARED="$CC -shared ${LDFLAGS}"
14765 else
14766 LDSHARED="ld -Bshareable ${LDFLAGS}"
14767 fi;;
14768 OpenBSD*)
14769 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
14770 then
14771 LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
14772 else
14773 case `uname -r` in
14774 [01].* | 2.[0-7] | 2.[0-7].*)
14775 LDSHARED="ld -Bshareable ${LDFLAGS}"
14778 LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
14780 esac
14781 fi;;
14782 NetBSD*|DragonFly*) LDSHARED="cc -shared ${LDFLAGS}";;
14783 OpenUNIX*|UnixWare*)
14784 if test "$GCC" = "yes"
14785 then LDSHARED='$(CC) -shared'
14786 else LDSHARED='$(CC) -G'
14787 fi;;
14788 SCO_SV*) LDSHARED='$(CC) -Wl,-G,-Bexport';;
14789 CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";;
14790 atheos*) LDSHARED="gcc -shared";;
14791 *) LDSHARED="ld";;
14792 esac
14794 { echo "$as_me:$LINENO: result: $LDSHARED" >&5
14795 echo "${ECHO_T}$LDSHARED" >&6; }
14796 BLDSHARED=${BLDSHARED-$LDSHARED}
14797 # CCSHARED are the C *flags* used to create objects to go into a shared
14798 # library (module) -- this is only needed for a few systems
14799 { echo "$as_me:$LINENO: checking CCSHARED" >&5
14800 echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6; }
14801 if test -z "$CCSHARED"
14802 then
14803 case $ac_sys_system/$ac_sys_release in
14804 SunOS*) if test "$GCC" = yes;
14805 then CCSHARED="-fPIC";
14806 elif test `uname -p` = sparc;
14807 then CCSHARED="-xcode=pic32";
14808 else CCSHARED="-Kpic";
14809 fi;;
14810 hp*|HP*) if test "$GCC" = yes;
14811 then CCSHARED="-fPIC";
14812 else CCSHARED="+z";
14813 fi;;
14814 Linux*|GNU*) CCSHARED="-fPIC";;
14815 BSD/OS*/4*) CCSHARED="-fpic";;
14816 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";;
14817 OpenUNIX*|UnixWare*)
14818 if test "$GCC" = "yes"
14819 then CCSHARED="-fPIC"
14820 else CCSHARED="-KPIC"
14821 fi;;
14822 SCO_SV*)
14823 if test "$GCC" = "yes"
14824 then CCSHARED="-fPIC"
14825 else CCSHARED="-Kpic -belf"
14826 fi;;
14827 IRIX*/6*) case $CC in
14828 *gcc*) CCSHARED="-shared";;
14829 *) CCSHARED="";;
14830 esac;;
14831 atheos*) CCSHARED="-fPIC";;
14832 esac
14834 { echo "$as_me:$LINENO: result: $CCSHARED" >&5
14835 echo "${ECHO_T}$CCSHARED" >&6; }
14836 # LINKFORSHARED are the flags passed to the $(CC) command that links
14837 # the python executable -- this is only needed for a few systems
14838 { echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
14839 echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6; }
14840 if test -z "$LINKFORSHARED"
14841 then
14842 case $ac_sys_system/$ac_sys_release in
14843 AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';;
14844 hp*|HP*)
14845 LINKFORSHARED="-Wl,-E -Wl,+s";;
14846 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
14847 BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";;
14848 Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";;
14849 # -u libsys_s pulls in all symbols in libsys
14850 Darwin/*)
14851 # -u _PyMac_Error is needed to pull in the mac toolbox glue,
14852 # which is
14853 # not used by the core itself but which needs to be in the core so
14854 # that dynamically loaded extension modules have access to it.
14855 # -prebind is no longer used, because it actually seems to give a
14856 # slowdown in stead of a speedup, maybe due to the large number of
14857 # dynamic loads Python does.
14859 LINKFORSHARED="$extra_undefs"
14860 if test "$enable_framework"
14861 then
14862 LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
14864 LINKFORSHARED="$LINKFORSHARED";;
14865 OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";;
14866 SCO_SV*) LINKFORSHARED="-Wl,-Bexport";;
14867 ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
14868 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*)
14869 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
14870 then
14871 LINKFORSHARED="-Wl,--export-dynamic"
14872 fi;;
14873 SunOS/5*) case $CC in
14874 *gcc*)
14875 if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null
14876 then
14877 LINKFORSHARED="-Xlinker --export-dynamic"
14878 fi;;
14879 esac;;
14880 CYGWIN*)
14881 if test $enable_shared = "no"
14882 then
14883 LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)'
14884 fi;;
14885 QNX*)
14886 # -Wl,-E causes the symbols to be added to the dynamic
14887 # symbol table so that they can be found when a module
14888 # is loaded. -N 2048K causes the stack size to be set
14889 # to 2048 kilobytes so that the stack doesn't overflow
14890 # when running test_compile.py.
14891 LINKFORSHARED='-Wl,-E -N 2048K';;
14892 esac
14894 { echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
14895 echo "${ECHO_T}$LINKFORSHARED" >&6; }
14899 { echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
14900 echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6; }
14901 if test ! "$LIBRARY" = "$LDLIBRARY"
14902 then
14903 case $ac_sys_system in
14904 CYGWIN*)
14905 # Cygwin needs CCSHARED when building extension DLLs
14906 # but not when building the interpreter DLL.
14907 CFLAGSFORSHARED='';;
14909 CFLAGSFORSHARED='$(CCSHARED)'
14910 esac
14912 { echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
14913 echo "${ECHO_T}$CFLAGSFORSHARED" >&6; }
14915 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
14916 # library (with --enable-shared).
14917 # For platforms on which shared libraries are not allowed to have unresolved
14918 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
14919 # if it is not required, since it creates a dependency of the shared library
14920 # to LIBS. This, in turn, means that applications linking the shared libpython
14921 # don't need to link LIBS explicitly. The default should be only changed
14922 # on systems where this approach causes problems.
14924 { echo "$as_me:$LINENO: checking SHLIBS" >&5
14925 echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6; }
14926 case "$ac_sys_system" in
14928 SHLIBS='$(LIBS)';;
14929 esac
14930 { echo "$as_me:$LINENO: result: $SHLIBS" >&5
14931 echo "${ECHO_T}$SHLIBS" >&6; }
14934 # checks for libraries
14936 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14937 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
14938 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14939 echo $ECHO_N "(cached) $ECHO_C" >&6
14940 else
14941 ac_check_lib_save_LIBS=$LIBS
14942 LIBS="-ldl $LIBS"
14943 cat >conftest.$ac_ext <<_ACEOF
14944 /* confdefs.h. */
14945 _ACEOF
14946 cat confdefs.h >>conftest.$ac_ext
14947 cat >>conftest.$ac_ext <<_ACEOF
14948 /* end confdefs.h. */
14950 /* Override any GCC internal prototype to avoid an error.
14951 Use char because int might match the return type of a GCC
14952 builtin and then its argument prototype would still apply. */
14953 #ifdef __cplusplus
14954 extern "C"
14955 #endif
14956 char dlopen ();
14958 main ()
14960 return dlopen ();
14962 return 0;
14964 _ACEOF
14965 rm -f conftest.$ac_objext conftest$ac_exeext
14966 if { (ac_try="$ac_link"
14967 case "(($ac_try" in
14968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14969 *) ac_try_echo=$ac_try;;
14970 esac
14971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14972 (eval "$ac_link") 2>conftest.er1
14973 ac_status=$?
14974 grep -v '^ *+' conftest.er1 >conftest.err
14975 rm -f conftest.er1
14976 cat conftest.err >&5
14977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14978 (exit $ac_status); } && {
14979 test -z "$ac_c_werror_flag" ||
14980 test ! -s conftest.err
14981 } && test -s conftest$ac_exeext &&
14982 $as_test_x conftest$ac_exeext; then
14983 ac_cv_lib_dl_dlopen=yes
14984 else
14985 echo "$as_me: failed program was:" >&5
14986 sed 's/^/| /' conftest.$ac_ext >&5
14988 ac_cv_lib_dl_dlopen=no
14991 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14992 conftest$ac_exeext conftest.$ac_ext
14993 LIBS=$ac_check_lib_save_LIBS
14995 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14996 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
14997 if test $ac_cv_lib_dl_dlopen = yes; then
14998 cat >>confdefs.h <<_ACEOF
14999 #define HAVE_LIBDL 1
15000 _ACEOF
15002 LIBS="-ldl $LIBS"
15005 # Dynamic linking for SunOS/Solaris and SYSV
15007 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
15008 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
15009 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
15010 echo $ECHO_N "(cached) $ECHO_C" >&6
15011 else
15012 ac_check_lib_save_LIBS=$LIBS
15013 LIBS="-ldld $LIBS"
15014 cat >conftest.$ac_ext <<_ACEOF
15015 /* confdefs.h. */
15016 _ACEOF
15017 cat confdefs.h >>conftest.$ac_ext
15018 cat >>conftest.$ac_ext <<_ACEOF
15019 /* end confdefs.h. */
15021 /* Override any GCC internal prototype to avoid an error.
15022 Use char because int might match the return type of a GCC
15023 builtin and then its argument prototype would still apply. */
15024 #ifdef __cplusplus
15025 extern "C"
15026 #endif
15027 char shl_load ();
15029 main ()
15031 return shl_load ();
15033 return 0;
15035 _ACEOF
15036 rm -f conftest.$ac_objext conftest$ac_exeext
15037 if { (ac_try="$ac_link"
15038 case "(($ac_try" in
15039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15040 *) ac_try_echo=$ac_try;;
15041 esac
15042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15043 (eval "$ac_link") 2>conftest.er1
15044 ac_status=$?
15045 grep -v '^ *+' conftest.er1 >conftest.err
15046 rm -f conftest.er1
15047 cat conftest.err >&5
15048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15049 (exit $ac_status); } && {
15050 test -z "$ac_c_werror_flag" ||
15051 test ! -s conftest.err
15052 } && test -s conftest$ac_exeext &&
15053 $as_test_x conftest$ac_exeext; then
15054 ac_cv_lib_dld_shl_load=yes
15055 else
15056 echo "$as_me: failed program was:" >&5
15057 sed 's/^/| /' conftest.$ac_ext >&5
15059 ac_cv_lib_dld_shl_load=no
15062 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15063 conftest$ac_exeext conftest.$ac_ext
15064 LIBS=$ac_check_lib_save_LIBS
15066 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
15067 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
15068 if test $ac_cv_lib_dld_shl_load = yes; then
15069 cat >>confdefs.h <<_ACEOF
15070 #define HAVE_LIBDLD 1
15071 _ACEOF
15073 LIBS="-ldld $LIBS"
15076 # Dynamic linking for HP-UX
15078 # only check for sem_init if thread support is requested
15079 if test "$with_threads" = "yes" -o -z "$with_threads"; then
15080 { echo "$as_me:$LINENO: checking for library containing sem_init" >&5
15081 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; }
15082 if test "${ac_cv_search_sem_init+set}" = set; then
15083 echo $ECHO_N "(cached) $ECHO_C" >&6
15084 else
15085 ac_func_search_save_LIBS=$LIBS
15086 cat >conftest.$ac_ext <<_ACEOF
15087 /* confdefs.h. */
15088 _ACEOF
15089 cat confdefs.h >>conftest.$ac_ext
15090 cat >>conftest.$ac_ext <<_ACEOF
15091 /* end confdefs.h. */
15093 /* Override any GCC internal prototype to avoid an error.
15094 Use char because int might match the return type of a GCC
15095 builtin and then its argument prototype would still apply. */
15096 #ifdef __cplusplus
15097 extern "C"
15098 #endif
15099 char sem_init ();
15101 main ()
15103 return sem_init ();
15105 return 0;
15107 _ACEOF
15108 for ac_lib in '' pthread rt posix4; do
15109 if test -z "$ac_lib"; then
15110 ac_res="none required"
15111 else
15112 ac_res=-l$ac_lib
15113 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15115 rm -f conftest.$ac_objext conftest$ac_exeext
15116 if { (ac_try="$ac_link"
15117 case "(($ac_try" in
15118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15119 *) ac_try_echo=$ac_try;;
15120 esac
15121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15122 (eval "$ac_link") 2>conftest.er1
15123 ac_status=$?
15124 grep -v '^ *+' conftest.er1 >conftest.err
15125 rm -f conftest.er1
15126 cat conftest.err >&5
15127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15128 (exit $ac_status); } && {
15129 test -z "$ac_c_werror_flag" ||
15130 test ! -s conftest.err
15131 } && test -s conftest$ac_exeext &&
15132 $as_test_x conftest$ac_exeext; then
15133 ac_cv_search_sem_init=$ac_res
15134 else
15135 echo "$as_me: failed program was:" >&5
15136 sed 's/^/| /' conftest.$ac_ext >&5
15141 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15142 conftest$ac_exeext
15143 if test "${ac_cv_search_sem_init+set}" = set; then
15144 break
15146 done
15147 if test "${ac_cv_search_sem_init+set}" = set; then
15149 else
15150 ac_cv_search_sem_init=no
15152 rm conftest.$ac_ext
15153 LIBS=$ac_func_search_save_LIBS
15155 { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
15156 echo "${ECHO_T}$ac_cv_search_sem_init" >&6; }
15157 ac_res=$ac_cv_search_sem_init
15158 if test "$ac_res" != no; then
15159 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15162 # 'Real Time' functions on Solaris
15163 # posix4 on Solaris 2.6
15164 # pthread (first!) on Linux
15167 # check if we need libintl for locale functions
15168 { echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
15169 echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6; }
15170 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
15171 echo $ECHO_N "(cached) $ECHO_C" >&6
15172 else
15173 ac_check_lib_save_LIBS=$LIBS
15174 LIBS="-lintl $LIBS"
15175 cat >conftest.$ac_ext <<_ACEOF
15176 /* confdefs.h. */
15177 _ACEOF
15178 cat confdefs.h >>conftest.$ac_ext
15179 cat >>conftest.$ac_ext <<_ACEOF
15180 /* end confdefs.h. */
15182 /* Override any GCC internal prototype to avoid an error.
15183 Use char because int might match the return type of a GCC
15184 builtin and then its argument prototype would still apply. */
15185 #ifdef __cplusplus
15186 extern "C"
15187 #endif
15188 char textdomain ();
15190 main ()
15192 return textdomain ();
15194 return 0;
15196 _ACEOF
15197 rm -f conftest.$ac_objext conftest$ac_exeext
15198 if { (ac_try="$ac_link"
15199 case "(($ac_try" in
15200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15201 *) ac_try_echo=$ac_try;;
15202 esac
15203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15204 (eval "$ac_link") 2>conftest.er1
15205 ac_status=$?
15206 grep -v '^ *+' conftest.er1 >conftest.err
15207 rm -f conftest.er1
15208 cat conftest.err >&5
15209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15210 (exit $ac_status); } && {
15211 test -z "$ac_c_werror_flag" ||
15212 test ! -s conftest.err
15213 } && test -s conftest$ac_exeext &&
15214 $as_test_x conftest$ac_exeext; then
15215 ac_cv_lib_intl_textdomain=yes
15216 else
15217 echo "$as_me: failed program was:" >&5
15218 sed 's/^/| /' conftest.$ac_ext >&5
15220 ac_cv_lib_intl_textdomain=no
15223 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15224 conftest$ac_exeext conftest.$ac_ext
15225 LIBS=$ac_check_lib_save_LIBS
15227 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
15228 echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6; }
15229 if test $ac_cv_lib_intl_textdomain = yes; then
15231 cat >>confdefs.h <<\_ACEOF
15232 #define WITH_LIBINTL 1
15233 _ACEOF
15238 # checks for system dependent C++ extensions support
15239 case "$ac_sys_system" in
15240 AIX*) { echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
15241 echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6; }
15242 cat >conftest.$ac_ext <<_ACEOF
15243 /* confdefs.h. */
15244 _ACEOF
15245 cat confdefs.h >>conftest.$ac_ext
15246 cat >>conftest.$ac_ext <<_ACEOF
15247 /* end confdefs.h. */
15248 #include "/usr/lpp/xlC/include/load.h"
15250 main ()
15252 loadAndInit("", 0, "")
15254 return 0;
15256 _ACEOF
15257 rm -f conftest.$ac_objext conftest$ac_exeext
15258 if { (ac_try="$ac_link"
15259 case "(($ac_try" in
15260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15261 *) ac_try_echo=$ac_try;;
15262 esac
15263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15264 (eval "$ac_link") 2>conftest.er1
15265 ac_status=$?
15266 grep -v '^ *+' conftest.er1 >conftest.err
15267 rm -f conftest.er1
15268 cat conftest.err >&5
15269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15270 (exit $ac_status); } && {
15271 test -z "$ac_c_werror_flag" ||
15272 test ! -s conftest.err
15273 } && test -s conftest$ac_exeext &&
15274 $as_test_x conftest$ac_exeext; then
15276 cat >>confdefs.h <<\_ACEOF
15277 #define AIX_GENUINE_CPLUSPLUS 1
15278 _ACEOF
15280 { echo "$as_me:$LINENO: result: yes" >&5
15281 echo "${ECHO_T}yes" >&6; }
15282 else
15283 echo "$as_me: failed program was:" >&5
15284 sed 's/^/| /' conftest.$ac_ext >&5
15286 { echo "$as_me:$LINENO: result: no" >&5
15287 echo "${ECHO_T}no" >&6; }
15290 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15291 conftest$ac_exeext conftest.$ac_ext;;
15292 *) ;;
15293 esac
15295 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
15296 # BeOS' sockets are stashed in libnet.
15297 { echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
15298 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6; }
15299 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
15300 echo $ECHO_N "(cached) $ECHO_C" >&6
15301 else
15302 ac_check_lib_save_LIBS=$LIBS
15303 LIBS="-lnsl $LIBS"
15304 cat >conftest.$ac_ext <<_ACEOF
15305 /* confdefs.h. */
15306 _ACEOF
15307 cat confdefs.h >>conftest.$ac_ext
15308 cat >>conftest.$ac_ext <<_ACEOF
15309 /* end confdefs.h. */
15311 /* Override any GCC internal prototype to avoid an error.
15312 Use char because int might match the return type of a GCC
15313 builtin and then its argument prototype would still apply. */
15314 #ifdef __cplusplus
15315 extern "C"
15316 #endif
15317 char t_open ();
15319 main ()
15321 return t_open ();
15323 return 0;
15325 _ACEOF
15326 rm -f conftest.$ac_objext conftest$ac_exeext
15327 if { (ac_try="$ac_link"
15328 case "(($ac_try" in
15329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15330 *) ac_try_echo=$ac_try;;
15331 esac
15332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15333 (eval "$ac_link") 2>conftest.er1
15334 ac_status=$?
15335 grep -v '^ *+' conftest.er1 >conftest.err
15336 rm -f conftest.er1
15337 cat conftest.err >&5
15338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15339 (exit $ac_status); } && {
15340 test -z "$ac_c_werror_flag" ||
15341 test ! -s conftest.err
15342 } && test -s conftest$ac_exeext &&
15343 $as_test_x conftest$ac_exeext; then
15344 ac_cv_lib_nsl_t_open=yes
15345 else
15346 echo "$as_me: failed program was:" >&5
15347 sed 's/^/| /' conftest.$ac_ext >&5
15349 ac_cv_lib_nsl_t_open=no
15352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15353 conftest$ac_exeext conftest.$ac_ext
15354 LIBS=$ac_check_lib_save_LIBS
15356 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
15357 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6; }
15358 if test $ac_cv_lib_nsl_t_open = yes; then
15359 LIBS="-lnsl $LIBS"
15361 # SVR4
15362 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
15363 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
15364 if test "${ac_cv_lib_socket_socket+set}" = set; then
15365 echo $ECHO_N "(cached) $ECHO_C" >&6
15366 else
15367 ac_check_lib_save_LIBS=$LIBS
15368 LIBS="-lsocket $LIBS $LIBS"
15369 cat >conftest.$ac_ext <<_ACEOF
15370 /* confdefs.h. */
15371 _ACEOF
15372 cat confdefs.h >>conftest.$ac_ext
15373 cat >>conftest.$ac_ext <<_ACEOF
15374 /* end confdefs.h. */
15376 /* Override any GCC internal prototype to avoid an error.
15377 Use char because int might match the return type of a GCC
15378 builtin and then its argument prototype would still apply. */
15379 #ifdef __cplusplus
15380 extern "C"
15381 #endif
15382 char socket ();
15384 main ()
15386 return socket ();
15388 return 0;
15390 _ACEOF
15391 rm -f conftest.$ac_objext conftest$ac_exeext
15392 if { (ac_try="$ac_link"
15393 case "(($ac_try" in
15394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15395 *) ac_try_echo=$ac_try;;
15396 esac
15397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15398 (eval "$ac_link") 2>conftest.er1
15399 ac_status=$?
15400 grep -v '^ *+' conftest.er1 >conftest.err
15401 rm -f conftest.er1
15402 cat conftest.err >&5
15403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15404 (exit $ac_status); } && {
15405 test -z "$ac_c_werror_flag" ||
15406 test ! -s conftest.err
15407 } && test -s conftest$ac_exeext &&
15408 $as_test_x conftest$ac_exeext; then
15409 ac_cv_lib_socket_socket=yes
15410 else
15411 echo "$as_me: failed program was:" >&5
15412 sed 's/^/| /' conftest.$ac_ext >&5
15414 ac_cv_lib_socket_socket=no
15417 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15418 conftest$ac_exeext conftest.$ac_ext
15419 LIBS=$ac_check_lib_save_LIBS
15421 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
15422 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
15423 if test $ac_cv_lib_socket_socket = yes; then
15424 LIBS="-lsocket $LIBS"
15426 # SVR4 sockets
15428 case "$ac_sys_system" in
15429 BeOS*)
15430 { echo "$as_me:$LINENO: checking for socket in -lnet" >&5
15431 echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6; }
15432 if test "${ac_cv_lib_net_socket+set}" = set; then
15433 echo $ECHO_N "(cached) $ECHO_C" >&6
15434 else
15435 ac_check_lib_save_LIBS=$LIBS
15436 LIBS="-lnet $LIBS $LIBS"
15437 cat >conftest.$ac_ext <<_ACEOF
15438 /* confdefs.h. */
15439 _ACEOF
15440 cat confdefs.h >>conftest.$ac_ext
15441 cat >>conftest.$ac_ext <<_ACEOF
15442 /* end confdefs.h. */
15444 /* Override any GCC internal prototype to avoid an error.
15445 Use char because int might match the return type of a GCC
15446 builtin and then its argument prototype would still apply. */
15447 #ifdef __cplusplus
15448 extern "C"
15449 #endif
15450 char socket ();
15452 main ()
15454 return socket ();
15456 return 0;
15458 _ACEOF
15459 rm -f conftest.$ac_objext conftest$ac_exeext
15460 if { (ac_try="$ac_link"
15461 case "(($ac_try" in
15462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15463 *) ac_try_echo=$ac_try;;
15464 esac
15465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15466 (eval "$ac_link") 2>conftest.er1
15467 ac_status=$?
15468 grep -v '^ *+' conftest.er1 >conftest.err
15469 rm -f conftest.er1
15470 cat conftest.err >&5
15471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15472 (exit $ac_status); } && {
15473 test -z "$ac_c_werror_flag" ||
15474 test ! -s conftest.err
15475 } && test -s conftest$ac_exeext &&
15476 $as_test_x conftest$ac_exeext; then
15477 ac_cv_lib_net_socket=yes
15478 else
15479 echo "$as_me: failed program was:" >&5
15480 sed 's/^/| /' conftest.$ac_ext >&5
15482 ac_cv_lib_net_socket=no
15485 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15486 conftest$ac_exeext conftest.$ac_ext
15487 LIBS=$ac_check_lib_save_LIBS
15489 { echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5
15490 echo "${ECHO_T}$ac_cv_lib_net_socket" >&6; }
15491 if test $ac_cv_lib_net_socket = yes; then
15492 LIBS="-lnet $LIBS"
15494 # BeOS
15496 esac
15498 { echo "$as_me:$LINENO: checking for --with-libs" >&5
15499 echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6; }
15501 # Check whether --with-libs was given.
15502 if test "${with_libs+set}" = set; then
15503 withval=$with_libs;
15504 { echo "$as_me:$LINENO: result: $withval" >&5
15505 echo "${ECHO_T}$withval" >&6; }
15506 LIBS="$withval $LIBS"
15508 else
15509 { echo "$as_me:$LINENO: result: no" >&5
15510 echo "${ECHO_T}no" >&6; }
15514 # Check for use of the system libffi library
15515 { echo "$as_me:$LINENO: checking for --with-system-ffi" >&5
15516 echo $ECHO_N "checking for --with-system-ffi... $ECHO_C" >&6; }
15518 # Check whether --with-system_ffi was given.
15519 if test "${with_system_ffi+set}" = set; then
15520 withval=$with_system_ffi;
15524 { echo "$as_me:$LINENO: result: $with_system_ffi" >&5
15525 echo "${ECHO_T}$with_system_ffi" >&6; }
15527 # Check for --with-dbmliborder
15528 { echo "$as_me:$LINENO: checking for --with-dbmliborder" >&5
15529 echo $ECHO_N "checking for --with-dbmliborder... $ECHO_C" >&6; }
15531 # Check whether --with-dbmliborder was given.
15532 if test "${with_dbmliborder+set}" = set; then
15533 withval=$with_dbmliborder;
15534 if test x$with_dbmliborder = xyes
15535 then
15536 { { echo "$as_me:$LINENO: error: proper usage is --with-dbmliborder=db1:db2:..." >&5
15537 echo "$as_me: error: proper usage is --with-dbmliborder=db1:db2:..." >&2;}
15538 { (exit 1); exit 1; }; }
15539 else
15540 for db in `echo $with_dbmliborder | sed 's/:/ /g'`; do
15541 if test x$db != xndbm && test x$db != xgdbm && test x$db != xbdb
15542 then
15543 { { echo "$as_me:$LINENO: error: proper usage is --with-dbmliborder=db1:db2:..." >&5
15544 echo "$as_me: error: proper usage is --with-dbmliborder=db1:db2:..." >&2;}
15545 { (exit 1); exit 1; }; }
15547 done
15551 { echo "$as_me:$LINENO: result: $with_dbmliborder" >&5
15552 echo "${ECHO_T}$with_dbmliborder" >&6; }
15554 # Determine if signalmodule should be used.
15557 { echo "$as_me:$LINENO: checking for --with-signal-module" >&5
15558 echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6; }
15560 # Check whether --with-signal-module was given.
15561 if test "${with_signal_module+set}" = set; then
15562 withval=$with_signal_module;
15566 if test -z "$with_signal_module"
15567 then with_signal_module="yes"
15569 { echo "$as_me:$LINENO: result: $with_signal_module" >&5
15570 echo "${ECHO_T}$with_signal_module" >&6; }
15572 if test "${with_signal_module}" = "yes"; then
15573 USE_SIGNAL_MODULE=""
15574 SIGNAL_OBJS=""
15575 else
15576 USE_SIGNAL_MODULE="#"
15577 SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o"
15580 # This is used to generate Setup.config
15582 USE_THREAD_MODULE=""
15584 { echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
15585 echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6; }
15588 # Check whether --with-dec-threads was given.
15589 if test "${with_dec_threads+set}" = set; then
15590 withval=$with_dec_threads;
15591 { echo "$as_me:$LINENO: result: $withval" >&5
15592 echo "${ECHO_T}$withval" >&6; }
15593 LDLAST=-threads
15594 if test "${with_thread+set}" != set; then
15595 with_thread="$withval";
15597 else
15598 { echo "$as_me:$LINENO: result: no" >&5
15599 echo "${ECHO_T}no" >&6; }
15603 # Templates for things AC_DEFINEd more than once.
15604 # For a single AC_DEFINE, no template is needed.
15612 { echo "$as_me:$LINENO: checking for --with-threads" >&5
15613 echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6; }
15615 # Check whether --with-threads was given.
15616 if test "${with_threads+set}" = set; then
15617 withval=$with_threads;
15621 # --with-thread is deprecated, but check for it anyway
15623 # Check whether --with-thread was given.
15624 if test "${with_thread+set}" = set; then
15625 withval=$with_thread; with_threads=$with_thread
15629 if test -z "$with_threads"
15630 then with_threads="yes"
15632 { echo "$as_me:$LINENO: result: $with_threads" >&5
15633 echo "${ECHO_T}$with_threads" >&6; }
15636 if test "$with_threads" = "no"
15637 then
15638 USE_THREAD_MODULE="#"
15639 elif test "$ac_cv_pthread_is_default" = yes
15640 then
15641 cat >>confdefs.h <<\_ACEOF
15642 #define WITH_THREAD 1
15643 _ACEOF
15645 # Defining _REENTRANT on system with POSIX threads should not hurt.
15646 cat >>confdefs.h <<\_ACEOF
15647 #define _REENTRANT 1
15648 _ACEOF
15650 posix_threads=yes
15651 THREADOBJ="Python/thread.o"
15652 elif test "$ac_cv_kpthread" = "yes"
15653 then
15654 CC="$CC -Kpthread"
15655 if test "$ac_cv_cxx_thread" = "yes"; then
15656 CXX="$CXX -Kpthread"
15658 cat >>confdefs.h <<\_ACEOF
15659 #define WITH_THREAD 1
15660 _ACEOF
15662 posix_threads=yes
15663 THREADOBJ="Python/thread.o"
15664 elif test "$ac_cv_kthread" = "yes"
15665 then
15666 CC="$CC -Kthread"
15667 if test "$ac_cv_cxx_thread" = "yes"; then
15668 CXX="$CXX -Kthread"
15670 cat >>confdefs.h <<\_ACEOF
15671 #define WITH_THREAD 1
15672 _ACEOF
15674 posix_threads=yes
15675 THREADOBJ="Python/thread.o"
15676 elif test "$ac_cv_pthread" = "yes"
15677 then
15678 CC="$CC -pthread"
15679 if test "$ac_cv_cxx_thread" = "yes"; then
15680 CXX="$CXX -pthread"
15682 cat >>confdefs.h <<\_ACEOF
15683 #define WITH_THREAD 1
15684 _ACEOF
15686 posix_threads=yes
15687 THREADOBJ="Python/thread.o"
15688 else
15689 if test ! -z "$with_threads" -a -d "$with_threads"
15690 then LDFLAGS="$LDFLAGS -L$with_threads"
15692 if test ! -z "$withval" -a -d "$withval"
15693 then LDFLAGS="$LDFLAGS -L$withval"
15696 # According to the POSIX spec, a pthreads implementation must
15697 # define _POSIX_THREADS in unistd.h. Some apparently don't
15698 # (e.g. gnu pth with pthread emulation)
15699 { echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
15700 echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6; }
15701 cat >conftest.$ac_ext <<_ACEOF
15702 /* confdefs.h. */
15703 _ACEOF
15704 cat confdefs.h >>conftest.$ac_ext
15705 cat >>conftest.$ac_ext <<_ACEOF
15706 /* end confdefs.h. */
15708 #include <unistd.h>
15709 #ifdef _POSIX_THREADS
15711 #endif
15713 _ACEOF
15714 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15715 $EGREP "yes" >/dev/null 2>&1; then
15716 unistd_defines_pthreads=yes
15717 else
15718 unistd_defines_pthreads=no
15720 rm -f -r conftest*
15722 { echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
15723 echo "${ECHO_T}$unistd_defines_pthreads" >&6; }
15725 cat >>confdefs.h <<\_ACEOF
15726 #define _REENTRANT 1
15727 _ACEOF
15729 if test "${ac_cv_header_cthreads_h+set}" = set; then
15730 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
15731 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
15732 if test "${ac_cv_header_cthreads_h+set}" = set; then
15733 echo $ECHO_N "(cached) $ECHO_C" >&6
15735 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
15736 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
15737 else
15738 # Is the header compilable?
15739 { echo "$as_me:$LINENO: checking cthreads.h usability" >&5
15740 echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6; }
15741 cat >conftest.$ac_ext <<_ACEOF
15742 /* confdefs.h. */
15743 _ACEOF
15744 cat confdefs.h >>conftest.$ac_ext
15745 cat >>conftest.$ac_ext <<_ACEOF
15746 /* end confdefs.h. */
15747 $ac_includes_default
15748 #include <cthreads.h>
15749 _ACEOF
15750 rm -f conftest.$ac_objext
15751 if { (ac_try="$ac_compile"
15752 case "(($ac_try" in
15753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15754 *) ac_try_echo=$ac_try;;
15755 esac
15756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15757 (eval "$ac_compile") 2>conftest.er1
15758 ac_status=$?
15759 grep -v '^ *+' conftest.er1 >conftest.err
15760 rm -f conftest.er1
15761 cat conftest.err >&5
15762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15763 (exit $ac_status); } && {
15764 test -z "$ac_c_werror_flag" ||
15765 test ! -s conftest.err
15766 } && test -s conftest.$ac_objext; then
15767 ac_header_compiler=yes
15768 else
15769 echo "$as_me: failed program was:" >&5
15770 sed 's/^/| /' conftest.$ac_ext >&5
15772 ac_header_compiler=no
15775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15776 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15777 echo "${ECHO_T}$ac_header_compiler" >&6; }
15779 # Is the header present?
15780 { echo "$as_me:$LINENO: checking cthreads.h presence" >&5
15781 echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6; }
15782 cat >conftest.$ac_ext <<_ACEOF
15783 /* confdefs.h. */
15784 _ACEOF
15785 cat confdefs.h >>conftest.$ac_ext
15786 cat >>conftest.$ac_ext <<_ACEOF
15787 /* end confdefs.h. */
15788 #include <cthreads.h>
15789 _ACEOF
15790 if { (ac_try="$ac_cpp conftest.$ac_ext"
15791 case "(($ac_try" in
15792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15793 *) ac_try_echo=$ac_try;;
15794 esac
15795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15796 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15797 ac_status=$?
15798 grep -v '^ *+' conftest.er1 >conftest.err
15799 rm -f conftest.er1
15800 cat conftest.err >&5
15801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15802 (exit $ac_status); } >/dev/null && {
15803 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15804 test ! -s conftest.err
15805 }; then
15806 ac_header_preproc=yes
15807 else
15808 echo "$as_me: failed program was:" >&5
15809 sed 's/^/| /' conftest.$ac_ext >&5
15811 ac_header_preproc=no
15814 rm -f conftest.err conftest.$ac_ext
15815 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15816 echo "${ECHO_T}$ac_header_preproc" >&6; }
15818 # So? What about this header?
15819 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15820 yes:no: )
15821 { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
15822 echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15823 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5
15824 echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;}
15825 ac_header_preproc=yes
15827 no:yes:* )
15828 { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
15829 echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
15830 { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
15831 echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
15832 { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5
15833 echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;}
15834 { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
15835 echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
15836 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
15837 echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;}
15838 { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5
15839 echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;}
15840 ( cat <<\_ASBOX
15841 ## -------------------------------------- ##
15842 ## Report this to http://bugs.python.org/ ##
15843 ## -------------------------------------- ##
15844 _ASBOX
15845 ) | sed "s/^/$as_me: WARNING: /" >&2
15847 esac
15848 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
15849 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
15850 if test "${ac_cv_header_cthreads_h+set}" = set; then
15851 echo $ECHO_N "(cached) $ECHO_C" >&6
15852 else
15853 ac_cv_header_cthreads_h=$ac_header_preproc
15855 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
15856 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
15859 if test $ac_cv_header_cthreads_h = yes; then
15860 cat >>confdefs.h <<\_ACEOF
15861 #define WITH_THREAD 1
15862 _ACEOF
15864 cat >>confdefs.h <<\_ACEOF
15865 #define C_THREADS 1
15866 _ACEOF
15869 cat >>confdefs.h <<\_ACEOF
15870 #define HURD_C_THREADS 1
15871 _ACEOF
15873 LIBS="$LIBS -lthreads"
15874 THREADOBJ="Python/thread.o"
15875 else
15877 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
15878 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
15879 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
15880 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
15881 echo $ECHO_N "(cached) $ECHO_C" >&6
15883 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
15884 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
15885 else
15886 # Is the header compilable?
15887 { echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
15888 echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6; }
15889 cat >conftest.$ac_ext <<_ACEOF
15890 /* confdefs.h. */
15891 _ACEOF
15892 cat confdefs.h >>conftest.$ac_ext
15893 cat >>conftest.$ac_ext <<_ACEOF
15894 /* end confdefs.h. */
15895 $ac_includes_default
15896 #include <mach/cthreads.h>
15897 _ACEOF
15898 rm -f conftest.$ac_objext
15899 if { (ac_try="$ac_compile"
15900 case "(($ac_try" in
15901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15902 *) ac_try_echo=$ac_try;;
15903 esac
15904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15905 (eval "$ac_compile") 2>conftest.er1
15906 ac_status=$?
15907 grep -v '^ *+' conftest.er1 >conftest.err
15908 rm -f conftest.er1
15909 cat conftest.err >&5
15910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15911 (exit $ac_status); } && {
15912 test -z "$ac_c_werror_flag" ||
15913 test ! -s conftest.err
15914 } && test -s conftest.$ac_objext; then
15915 ac_header_compiler=yes
15916 else
15917 echo "$as_me: failed program was:" >&5
15918 sed 's/^/| /' conftest.$ac_ext >&5
15920 ac_header_compiler=no
15923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15924 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15925 echo "${ECHO_T}$ac_header_compiler" >&6; }
15927 # Is the header present?
15928 { echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
15929 echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6; }
15930 cat >conftest.$ac_ext <<_ACEOF
15931 /* confdefs.h. */
15932 _ACEOF
15933 cat confdefs.h >>conftest.$ac_ext
15934 cat >>conftest.$ac_ext <<_ACEOF
15935 /* end confdefs.h. */
15936 #include <mach/cthreads.h>
15937 _ACEOF
15938 if { (ac_try="$ac_cpp conftest.$ac_ext"
15939 case "(($ac_try" in
15940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15941 *) ac_try_echo=$ac_try;;
15942 esac
15943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15944 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15945 ac_status=$?
15946 grep -v '^ *+' conftest.er1 >conftest.err
15947 rm -f conftest.er1
15948 cat conftest.err >&5
15949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15950 (exit $ac_status); } >/dev/null && {
15951 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15952 test ! -s conftest.err
15953 }; then
15954 ac_header_preproc=yes
15955 else
15956 echo "$as_me: failed program was:" >&5
15957 sed 's/^/| /' conftest.$ac_ext >&5
15959 ac_header_preproc=no
15962 rm -f conftest.err conftest.$ac_ext
15963 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15964 echo "${ECHO_T}$ac_header_preproc" >&6; }
15966 # So? What about this header?
15967 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15968 yes:no: )
15969 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
15970 echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15971 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
15972 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
15973 ac_header_preproc=yes
15975 no:yes:* )
15976 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
15977 echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
15978 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
15979 echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
15980 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
15981 echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
15982 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
15983 echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
15984 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
15985 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
15986 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
15987 echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
15988 ( cat <<\_ASBOX
15989 ## -------------------------------------- ##
15990 ## Report this to http://bugs.python.org/ ##
15991 ## -------------------------------------- ##
15992 _ASBOX
15993 ) | sed "s/^/$as_me: WARNING: /" >&2
15995 esac
15996 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
15997 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
15998 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
15999 echo $ECHO_N "(cached) $ECHO_C" >&6
16000 else
16001 ac_cv_header_mach_cthreads_h=$ac_header_preproc
16003 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
16004 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
16007 if test $ac_cv_header_mach_cthreads_h = yes; then
16008 cat >>confdefs.h <<\_ACEOF
16009 #define WITH_THREAD 1
16010 _ACEOF
16012 cat >>confdefs.h <<\_ACEOF
16013 #define C_THREADS 1
16014 _ACEOF
16017 cat >>confdefs.h <<\_ACEOF
16018 #define MACH_C_THREADS 1
16019 _ACEOF
16021 THREADOBJ="Python/thread.o"
16022 else
16024 { echo "$as_me:$LINENO: checking for --with-pth" >&5
16025 echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6; }
16027 # Check whether --with-pth was given.
16028 if test "${with_pth+set}" = set; then
16029 withval=$with_pth; { echo "$as_me:$LINENO: result: $withval" >&5
16030 echo "${ECHO_T}$withval" >&6; }
16031 cat >>confdefs.h <<\_ACEOF
16032 #define WITH_THREAD 1
16033 _ACEOF
16036 cat >>confdefs.h <<\_ACEOF
16037 #define HAVE_PTH 1
16038 _ACEOF
16040 LIBS="-lpth $LIBS"
16041 THREADOBJ="Python/thread.o"
16042 else
16043 { echo "$as_me:$LINENO: result: no" >&5
16044 echo "${ECHO_T}no" >&6; }
16046 # Just looking for pthread_create in libpthread is not enough:
16047 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
16048 # So we really have to include pthread.h, and then link.
16049 _libs=$LIBS
16050 LIBS="$LIBS -lpthread"
16051 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
16052 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
16053 cat >conftest.$ac_ext <<_ACEOF
16054 /* confdefs.h. */
16055 _ACEOF
16056 cat confdefs.h >>conftest.$ac_ext
16057 cat >>conftest.$ac_ext <<_ACEOF
16058 /* end confdefs.h. */
16059 #include <pthread.h>
16061 void * start_routine (void *arg) { exit (0); }
16063 main ()
16066 pthread_create (NULL, NULL, start_routine, NULL)
16068 return 0;
16070 _ACEOF
16071 rm -f conftest.$ac_objext conftest$ac_exeext
16072 if { (ac_try="$ac_link"
16073 case "(($ac_try" in
16074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16075 *) ac_try_echo=$ac_try;;
16076 esac
16077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16078 (eval "$ac_link") 2>conftest.er1
16079 ac_status=$?
16080 grep -v '^ *+' conftest.er1 >conftest.err
16081 rm -f conftest.er1
16082 cat conftest.err >&5
16083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16084 (exit $ac_status); } && {
16085 test -z "$ac_c_werror_flag" ||
16086 test ! -s conftest.err
16087 } && test -s conftest$ac_exeext &&
16088 $as_test_x conftest$ac_exeext; then
16090 { echo "$as_me:$LINENO: result: yes" >&5
16091 echo "${ECHO_T}yes" >&6; }
16092 cat >>confdefs.h <<\_ACEOF
16093 #define WITH_THREAD 1
16094 _ACEOF
16096 posix_threads=yes
16097 THREADOBJ="Python/thread.o"
16098 else
16099 echo "$as_me: failed program was:" >&5
16100 sed 's/^/| /' conftest.$ac_ext >&5
16103 LIBS=$_libs
16104 { echo "$as_me:$LINENO: checking for pthread_detach" >&5
16105 echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6; }
16106 if test "${ac_cv_func_pthread_detach+set}" = set; then
16107 echo $ECHO_N "(cached) $ECHO_C" >&6
16108 else
16109 cat >conftest.$ac_ext <<_ACEOF
16110 /* confdefs.h. */
16111 _ACEOF
16112 cat confdefs.h >>conftest.$ac_ext
16113 cat >>conftest.$ac_ext <<_ACEOF
16114 /* end confdefs.h. */
16115 /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach.
16116 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16117 #define pthread_detach innocuous_pthread_detach
16119 /* System header to define __stub macros and hopefully few prototypes,
16120 which can conflict with char pthread_detach (); below.
16121 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16122 <limits.h> exists even on freestanding compilers. */
16124 #ifdef __STDC__
16125 # include <limits.h>
16126 #else
16127 # include <assert.h>
16128 #endif
16130 #undef pthread_detach
16132 /* Override any GCC internal prototype to avoid an error.
16133 Use char because int might match the return type of a GCC
16134 builtin and then its argument prototype would still apply. */
16135 #ifdef __cplusplus
16136 extern "C"
16137 #endif
16138 char pthread_detach ();
16139 /* The GNU C library defines this for functions which it implements
16140 to always fail with ENOSYS. Some functions are actually named
16141 something starting with __ and the normal name is an alias. */
16142 #if defined __stub_pthread_detach || defined __stub___pthread_detach
16143 choke me
16144 #endif
16147 main ()
16149 return pthread_detach ();
16151 return 0;
16153 _ACEOF
16154 rm -f conftest.$ac_objext conftest$ac_exeext
16155 if { (ac_try="$ac_link"
16156 case "(($ac_try" in
16157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16158 *) ac_try_echo=$ac_try;;
16159 esac
16160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16161 (eval "$ac_link") 2>conftest.er1
16162 ac_status=$?
16163 grep -v '^ *+' conftest.er1 >conftest.err
16164 rm -f conftest.er1
16165 cat conftest.err >&5
16166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16167 (exit $ac_status); } && {
16168 test -z "$ac_c_werror_flag" ||
16169 test ! -s conftest.err
16170 } && test -s conftest$ac_exeext &&
16171 $as_test_x conftest$ac_exeext; then
16172 ac_cv_func_pthread_detach=yes
16173 else
16174 echo "$as_me: failed program was:" >&5
16175 sed 's/^/| /' conftest.$ac_ext >&5
16177 ac_cv_func_pthread_detach=no
16180 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16181 conftest$ac_exeext conftest.$ac_ext
16183 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
16184 echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6; }
16185 if test $ac_cv_func_pthread_detach = yes; then
16186 cat >>confdefs.h <<\_ACEOF
16187 #define WITH_THREAD 1
16188 _ACEOF
16190 posix_threads=yes
16191 THREADOBJ="Python/thread.o"
16192 else
16194 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
16195 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
16196 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
16197 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
16198 echo $ECHO_N "(cached) $ECHO_C" >&6
16200 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
16201 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
16202 else
16203 # Is the header compilable?
16204 { echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
16205 echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6; }
16206 cat >conftest.$ac_ext <<_ACEOF
16207 /* confdefs.h. */
16208 _ACEOF
16209 cat confdefs.h >>conftest.$ac_ext
16210 cat >>conftest.$ac_ext <<_ACEOF
16211 /* end confdefs.h. */
16212 $ac_includes_default
16213 #include <atheos/threads.h>
16214 _ACEOF
16215 rm -f conftest.$ac_objext
16216 if { (ac_try="$ac_compile"
16217 case "(($ac_try" in
16218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16219 *) ac_try_echo=$ac_try;;
16220 esac
16221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16222 (eval "$ac_compile") 2>conftest.er1
16223 ac_status=$?
16224 grep -v '^ *+' conftest.er1 >conftest.err
16225 rm -f conftest.er1
16226 cat conftest.err >&5
16227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16228 (exit $ac_status); } && {
16229 test -z "$ac_c_werror_flag" ||
16230 test ! -s conftest.err
16231 } && test -s conftest.$ac_objext; then
16232 ac_header_compiler=yes
16233 else
16234 echo "$as_me: failed program was:" >&5
16235 sed 's/^/| /' conftest.$ac_ext >&5
16237 ac_header_compiler=no
16240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16241 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16242 echo "${ECHO_T}$ac_header_compiler" >&6; }
16244 # Is the header present?
16245 { echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
16246 echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6; }
16247 cat >conftest.$ac_ext <<_ACEOF
16248 /* confdefs.h. */
16249 _ACEOF
16250 cat confdefs.h >>conftest.$ac_ext
16251 cat >>conftest.$ac_ext <<_ACEOF
16252 /* end confdefs.h. */
16253 #include <atheos/threads.h>
16254 _ACEOF
16255 if { (ac_try="$ac_cpp conftest.$ac_ext"
16256 case "(($ac_try" in
16257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16258 *) ac_try_echo=$ac_try;;
16259 esac
16260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16261 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16262 ac_status=$?
16263 grep -v '^ *+' conftest.er1 >conftest.err
16264 rm -f conftest.er1
16265 cat conftest.err >&5
16266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16267 (exit $ac_status); } >/dev/null && {
16268 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16269 test ! -s conftest.err
16270 }; then
16271 ac_header_preproc=yes
16272 else
16273 echo "$as_me: failed program was:" >&5
16274 sed 's/^/| /' conftest.$ac_ext >&5
16276 ac_header_preproc=no
16279 rm -f conftest.err conftest.$ac_ext
16280 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16281 echo "${ECHO_T}$ac_header_preproc" >&6; }
16283 # So? What about this header?
16284 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16285 yes:no: )
16286 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
16287 echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16288 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5
16289 echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;}
16290 ac_header_preproc=yes
16292 no:yes:* )
16293 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
16294 echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
16295 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
16296 echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
16297 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5
16298 echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;}
16299 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5
16300 echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;}
16301 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
16302 echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;}
16303 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5
16304 echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;}
16305 ( cat <<\_ASBOX
16306 ## -------------------------------------- ##
16307 ## Report this to http://bugs.python.org/ ##
16308 ## -------------------------------------- ##
16309 _ASBOX
16310 ) | sed "s/^/$as_me: WARNING: /" >&2
16312 esac
16313 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
16314 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
16315 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
16316 echo $ECHO_N "(cached) $ECHO_C" >&6
16317 else
16318 ac_cv_header_atheos_threads_h=$ac_header_preproc
16320 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
16321 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
16324 if test $ac_cv_header_atheos_threads_h = yes; then
16325 cat >>confdefs.h <<\_ACEOF
16326 #define WITH_THREAD 1
16327 _ACEOF
16330 cat >>confdefs.h <<\_ACEOF
16331 #define ATHEOS_THREADS 1
16332 _ACEOF
16334 THREADOBJ="Python/thread.o"
16335 else
16337 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
16338 { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
16339 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; }
16340 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
16341 echo $ECHO_N "(cached) $ECHO_C" >&6
16343 { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
16344 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; }
16345 else
16346 # Is the header compilable?
16347 { echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5
16348 echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6; }
16349 cat >conftest.$ac_ext <<_ACEOF
16350 /* confdefs.h. */
16351 _ACEOF
16352 cat confdefs.h >>conftest.$ac_ext
16353 cat >>conftest.$ac_ext <<_ACEOF
16354 /* end confdefs.h. */
16355 $ac_includes_default
16356 #include <kernel/OS.h>
16357 _ACEOF
16358 rm -f conftest.$ac_objext
16359 if { (ac_try="$ac_compile"
16360 case "(($ac_try" in
16361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16362 *) ac_try_echo=$ac_try;;
16363 esac
16364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16365 (eval "$ac_compile") 2>conftest.er1
16366 ac_status=$?
16367 grep -v '^ *+' conftest.er1 >conftest.err
16368 rm -f conftest.er1
16369 cat conftest.err >&5
16370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16371 (exit $ac_status); } && {
16372 test -z "$ac_c_werror_flag" ||
16373 test ! -s conftest.err
16374 } && test -s conftest.$ac_objext; then
16375 ac_header_compiler=yes
16376 else
16377 echo "$as_me: failed program was:" >&5
16378 sed 's/^/| /' conftest.$ac_ext >&5
16380 ac_header_compiler=no
16383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16384 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16385 echo "${ECHO_T}$ac_header_compiler" >&6; }
16387 # Is the header present?
16388 { echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5
16389 echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6; }
16390 cat >conftest.$ac_ext <<_ACEOF
16391 /* confdefs.h. */
16392 _ACEOF
16393 cat confdefs.h >>conftest.$ac_ext
16394 cat >>conftest.$ac_ext <<_ACEOF
16395 /* end confdefs.h. */
16396 #include <kernel/OS.h>
16397 _ACEOF
16398 if { (ac_try="$ac_cpp conftest.$ac_ext"
16399 case "(($ac_try" in
16400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16401 *) ac_try_echo=$ac_try;;
16402 esac
16403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16404 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16405 ac_status=$?
16406 grep -v '^ *+' conftest.er1 >conftest.err
16407 rm -f conftest.er1
16408 cat conftest.err >&5
16409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16410 (exit $ac_status); } >/dev/null && {
16411 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16412 test ! -s conftest.err
16413 }; then
16414 ac_header_preproc=yes
16415 else
16416 echo "$as_me: failed program was:" >&5
16417 sed 's/^/| /' conftest.$ac_ext >&5
16419 ac_header_preproc=no
16422 rm -f conftest.err conftest.$ac_ext
16423 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16424 echo "${ECHO_T}$ac_header_preproc" >&6; }
16426 # So? What about this header?
16427 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16428 yes:no: )
16429 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5
16430 echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16431 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5
16432 echo "$as_me: WARNING: kernel/OS.h: proceeding with the compiler's result" >&2;}
16433 ac_header_preproc=yes
16435 no:yes:* )
16436 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5
16437 echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;}
16438 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5
16439 echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;}
16440 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5
16441 echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;}
16442 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5
16443 echo "$as_me: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&2;}
16444 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5
16445 echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;}
16446 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5
16447 echo "$as_me: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&2;}
16448 ( cat <<\_ASBOX
16449 ## -------------------------------------- ##
16450 ## Report this to http://bugs.python.org/ ##
16451 ## -------------------------------------- ##
16452 _ASBOX
16453 ) | sed "s/^/$as_me: WARNING: /" >&2
16455 esac
16456 { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
16457 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; }
16458 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
16459 echo $ECHO_N "(cached) $ECHO_C" >&6
16460 else
16461 ac_cv_header_kernel_OS_h=$ac_header_preproc
16463 { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
16464 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; }
16467 if test $ac_cv_header_kernel_OS_h = yes; then
16468 cat >>confdefs.h <<\_ACEOF
16469 #define WITH_THREAD 1
16470 _ACEOF
16473 cat >>confdefs.h <<\_ACEOF
16474 #define BEOS_THREADS 1
16475 _ACEOF
16477 THREADOBJ="Python/thread.o"
16478 else
16480 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
16481 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
16482 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
16483 echo $ECHO_N "(cached) $ECHO_C" >&6
16484 else
16485 ac_check_lib_save_LIBS=$LIBS
16486 LIBS="-lpthreads $LIBS"
16487 cat >conftest.$ac_ext <<_ACEOF
16488 /* confdefs.h. */
16489 _ACEOF
16490 cat confdefs.h >>conftest.$ac_ext
16491 cat >>conftest.$ac_ext <<_ACEOF
16492 /* end confdefs.h. */
16494 /* Override any GCC internal prototype to avoid an error.
16495 Use char because int might match the return type of a GCC
16496 builtin and then its argument prototype would still apply. */
16497 #ifdef __cplusplus
16498 extern "C"
16499 #endif
16500 char pthread_create ();
16502 main ()
16504 return pthread_create ();
16506 return 0;
16508 _ACEOF
16509 rm -f conftest.$ac_objext conftest$ac_exeext
16510 if { (ac_try="$ac_link"
16511 case "(($ac_try" in
16512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16513 *) ac_try_echo=$ac_try;;
16514 esac
16515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16516 (eval "$ac_link") 2>conftest.er1
16517 ac_status=$?
16518 grep -v '^ *+' conftest.er1 >conftest.err
16519 rm -f conftest.er1
16520 cat conftest.err >&5
16521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16522 (exit $ac_status); } && {
16523 test -z "$ac_c_werror_flag" ||
16524 test ! -s conftest.err
16525 } && test -s conftest$ac_exeext &&
16526 $as_test_x conftest$ac_exeext; then
16527 ac_cv_lib_pthreads_pthread_create=yes
16528 else
16529 echo "$as_me: failed program was:" >&5
16530 sed 's/^/| /' conftest.$ac_ext >&5
16532 ac_cv_lib_pthreads_pthread_create=no
16535 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16536 conftest$ac_exeext conftest.$ac_ext
16537 LIBS=$ac_check_lib_save_LIBS
16539 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
16540 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
16541 if test $ac_cv_lib_pthreads_pthread_create = yes; then
16542 cat >>confdefs.h <<\_ACEOF
16543 #define WITH_THREAD 1
16544 _ACEOF
16546 posix_threads=yes
16547 LIBS="$LIBS -lpthreads"
16548 THREADOBJ="Python/thread.o"
16549 else
16551 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
16552 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
16553 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
16554 echo $ECHO_N "(cached) $ECHO_C" >&6
16555 else
16556 ac_check_lib_save_LIBS=$LIBS
16557 LIBS="-lc_r $LIBS"
16558 cat >conftest.$ac_ext <<_ACEOF
16559 /* confdefs.h. */
16560 _ACEOF
16561 cat confdefs.h >>conftest.$ac_ext
16562 cat >>conftest.$ac_ext <<_ACEOF
16563 /* end confdefs.h. */
16565 /* Override any GCC internal prototype to avoid an error.
16566 Use char because int might match the return type of a GCC
16567 builtin and then its argument prototype would still apply. */
16568 #ifdef __cplusplus
16569 extern "C"
16570 #endif
16571 char pthread_create ();
16573 main ()
16575 return pthread_create ();
16577 return 0;
16579 _ACEOF
16580 rm -f conftest.$ac_objext conftest$ac_exeext
16581 if { (ac_try="$ac_link"
16582 case "(($ac_try" in
16583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16584 *) ac_try_echo=$ac_try;;
16585 esac
16586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16587 (eval "$ac_link") 2>conftest.er1
16588 ac_status=$?
16589 grep -v '^ *+' conftest.er1 >conftest.err
16590 rm -f conftest.er1
16591 cat conftest.err >&5
16592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16593 (exit $ac_status); } && {
16594 test -z "$ac_c_werror_flag" ||
16595 test ! -s conftest.err
16596 } && test -s conftest$ac_exeext &&
16597 $as_test_x conftest$ac_exeext; then
16598 ac_cv_lib_c_r_pthread_create=yes
16599 else
16600 echo "$as_me: failed program was:" >&5
16601 sed 's/^/| /' conftest.$ac_ext >&5
16603 ac_cv_lib_c_r_pthread_create=no
16606 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16607 conftest$ac_exeext conftest.$ac_ext
16608 LIBS=$ac_check_lib_save_LIBS
16610 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
16611 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
16612 if test $ac_cv_lib_c_r_pthread_create = yes; then
16613 cat >>confdefs.h <<\_ACEOF
16614 #define WITH_THREAD 1
16615 _ACEOF
16617 posix_threads=yes
16618 LIBS="$LIBS -lc_r"
16619 THREADOBJ="Python/thread.o"
16620 else
16622 { echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
16623 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6; }
16624 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
16625 echo $ECHO_N "(cached) $ECHO_C" >&6
16626 else
16627 ac_check_lib_save_LIBS=$LIBS
16628 LIBS="-lpthread $LIBS"
16629 cat >conftest.$ac_ext <<_ACEOF
16630 /* confdefs.h. */
16631 _ACEOF
16632 cat confdefs.h >>conftest.$ac_ext
16633 cat >>conftest.$ac_ext <<_ACEOF
16634 /* end confdefs.h. */
16636 /* Override any GCC internal prototype to avoid an error.
16637 Use char because int might match the return type of a GCC
16638 builtin and then its argument prototype would still apply. */
16639 #ifdef __cplusplus
16640 extern "C"
16641 #endif
16642 char __pthread_create_system ();
16644 main ()
16646 return __pthread_create_system ();
16648 return 0;
16650 _ACEOF
16651 rm -f conftest.$ac_objext conftest$ac_exeext
16652 if { (ac_try="$ac_link"
16653 case "(($ac_try" in
16654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16655 *) ac_try_echo=$ac_try;;
16656 esac
16657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16658 (eval "$ac_link") 2>conftest.er1
16659 ac_status=$?
16660 grep -v '^ *+' conftest.er1 >conftest.err
16661 rm -f conftest.er1
16662 cat conftest.err >&5
16663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16664 (exit $ac_status); } && {
16665 test -z "$ac_c_werror_flag" ||
16666 test ! -s conftest.err
16667 } && test -s conftest$ac_exeext &&
16668 $as_test_x conftest$ac_exeext; then
16669 ac_cv_lib_pthread___pthread_create_system=yes
16670 else
16671 echo "$as_me: failed program was:" >&5
16672 sed 's/^/| /' conftest.$ac_ext >&5
16674 ac_cv_lib_pthread___pthread_create_system=no
16677 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16678 conftest$ac_exeext conftest.$ac_ext
16679 LIBS=$ac_check_lib_save_LIBS
16681 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
16682 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6; }
16683 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
16684 cat >>confdefs.h <<\_ACEOF
16685 #define WITH_THREAD 1
16686 _ACEOF
16688 posix_threads=yes
16689 LIBS="$LIBS -lpthread"
16690 THREADOBJ="Python/thread.o"
16691 else
16693 { echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
16694 echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6; }
16695 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
16696 echo $ECHO_N "(cached) $ECHO_C" >&6
16697 else
16698 ac_check_lib_save_LIBS=$LIBS
16699 LIBS="-lcma $LIBS"
16700 cat >conftest.$ac_ext <<_ACEOF
16701 /* confdefs.h. */
16702 _ACEOF
16703 cat confdefs.h >>conftest.$ac_ext
16704 cat >>conftest.$ac_ext <<_ACEOF
16705 /* end confdefs.h. */
16707 /* Override any GCC internal prototype to avoid an error.
16708 Use char because int might match the return type of a GCC
16709 builtin and then its argument prototype would still apply. */
16710 #ifdef __cplusplus
16711 extern "C"
16712 #endif
16713 char pthread_create ();
16715 main ()
16717 return pthread_create ();
16719 return 0;
16721 _ACEOF
16722 rm -f conftest.$ac_objext conftest$ac_exeext
16723 if { (ac_try="$ac_link"
16724 case "(($ac_try" in
16725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16726 *) ac_try_echo=$ac_try;;
16727 esac
16728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16729 (eval "$ac_link") 2>conftest.er1
16730 ac_status=$?
16731 grep -v '^ *+' conftest.er1 >conftest.err
16732 rm -f conftest.er1
16733 cat conftest.err >&5
16734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16735 (exit $ac_status); } && {
16736 test -z "$ac_c_werror_flag" ||
16737 test ! -s conftest.err
16738 } && test -s conftest$ac_exeext &&
16739 $as_test_x conftest$ac_exeext; then
16740 ac_cv_lib_cma_pthread_create=yes
16741 else
16742 echo "$as_me: failed program was:" >&5
16743 sed 's/^/| /' conftest.$ac_ext >&5
16745 ac_cv_lib_cma_pthread_create=no
16748 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16749 conftest$ac_exeext conftest.$ac_ext
16750 LIBS=$ac_check_lib_save_LIBS
16752 { echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
16753 echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6; }
16754 if test $ac_cv_lib_cma_pthread_create = yes; then
16755 cat >>confdefs.h <<\_ACEOF
16756 #define WITH_THREAD 1
16757 _ACEOF
16759 posix_threads=yes
16760 LIBS="$LIBS -lcma"
16761 THREADOBJ="Python/thread.o"
16762 else
16764 USE_THREAD_MODULE="#"
16784 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16785 conftest$ac_exeext conftest.$ac_ext
16795 { echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
16796 echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6; }
16797 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
16798 echo $ECHO_N "(cached) $ECHO_C" >&6
16799 else
16800 ac_check_lib_save_LIBS=$LIBS
16801 LIBS="-lmpc $LIBS"
16802 cat >conftest.$ac_ext <<_ACEOF
16803 /* confdefs.h. */
16804 _ACEOF
16805 cat confdefs.h >>conftest.$ac_ext
16806 cat >>conftest.$ac_ext <<_ACEOF
16807 /* end confdefs.h. */
16809 /* Override any GCC internal prototype to avoid an error.
16810 Use char because int might match the return type of a GCC
16811 builtin and then its argument prototype would still apply. */
16812 #ifdef __cplusplus
16813 extern "C"
16814 #endif
16815 char usconfig ();
16817 main ()
16819 return usconfig ();
16821 return 0;
16823 _ACEOF
16824 rm -f conftest.$ac_objext conftest$ac_exeext
16825 if { (ac_try="$ac_link"
16826 case "(($ac_try" in
16827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16828 *) ac_try_echo=$ac_try;;
16829 esac
16830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16831 (eval "$ac_link") 2>conftest.er1
16832 ac_status=$?
16833 grep -v '^ *+' conftest.er1 >conftest.err
16834 rm -f conftest.er1
16835 cat conftest.err >&5
16836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16837 (exit $ac_status); } && {
16838 test -z "$ac_c_werror_flag" ||
16839 test ! -s conftest.err
16840 } && test -s conftest$ac_exeext &&
16841 $as_test_x conftest$ac_exeext; then
16842 ac_cv_lib_mpc_usconfig=yes
16843 else
16844 echo "$as_me: failed program was:" >&5
16845 sed 's/^/| /' conftest.$ac_ext >&5
16847 ac_cv_lib_mpc_usconfig=no
16850 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16851 conftest$ac_exeext conftest.$ac_ext
16852 LIBS=$ac_check_lib_save_LIBS
16854 { echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
16855 echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6; }
16856 if test $ac_cv_lib_mpc_usconfig = yes; then
16857 cat >>confdefs.h <<\_ACEOF
16858 #define WITH_THREAD 1
16859 _ACEOF
16861 LIBS="$LIBS -lmpc"
16862 THREADOBJ="Python/thread.o"
16863 USE_THREAD_MODULE=""
16867 if test "$posix_threads" != "yes"; then
16868 { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
16869 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6; }
16870 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
16871 echo $ECHO_N "(cached) $ECHO_C" >&6
16872 else
16873 ac_check_lib_save_LIBS=$LIBS
16874 LIBS="-lthread $LIBS"
16875 cat >conftest.$ac_ext <<_ACEOF
16876 /* confdefs.h. */
16877 _ACEOF
16878 cat confdefs.h >>conftest.$ac_ext
16879 cat >>conftest.$ac_ext <<_ACEOF
16880 /* end confdefs.h. */
16882 /* Override any GCC internal prototype to avoid an error.
16883 Use char because int might match the return type of a GCC
16884 builtin and then its argument prototype would still apply. */
16885 #ifdef __cplusplus
16886 extern "C"
16887 #endif
16888 char thr_create ();
16890 main ()
16892 return thr_create ();
16894 return 0;
16896 _ACEOF
16897 rm -f conftest.$ac_objext conftest$ac_exeext
16898 if { (ac_try="$ac_link"
16899 case "(($ac_try" in
16900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16901 *) ac_try_echo=$ac_try;;
16902 esac
16903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16904 (eval "$ac_link") 2>conftest.er1
16905 ac_status=$?
16906 grep -v '^ *+' conftest.er1 >conftest.err
16907 rm -f conftest.er1
16908 cat conftest.err >&5
16909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16910 (exit $ac_status); } && {
16911 test -z "$ac_c_werror_flag" ||
16912 test ! -s conftest.err
16913 } && test -s conftest$ac_exeext &&
16914 $as_test_x conftest$ac_exeext; then
16915 ac_cv_lib_thread_thr_create=yes
16916 else
16917 echo "$as_me: failed program was:" >&5
16918 sed 's/^/| /' conftest.$ac_ext >&5
16920 ac_cv_lib_thread_thr_create=no
16923 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16924 conftest$ac_exeext conftest.$ac_ext
16925 LIBS=$ac_check_lib_save_LIBS
16927 { echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
16928 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; }
16929 if test $ac_cv_lib_thread_thr_create = yes; then
16930 cat >>confdefs.h <<\_ACEOF
16931 #define WITH_THREAD 1
16932 _ACEOF
16934 LIBS="$LIBS -lthread"
16935 THREADOBJ="Python/thread.o"
16936 USE_THREAD_MODULE=""
16941 if test "$USE_THREAD_MODULE" != "#"
16942 then
16943 # If the above checks didn't disable threads, (at least) OSF1
16944 # needs this '-threads' argument during linking.
16945 case $ac_sys_system in
16946 OSF1) LDLAST=-threads;;
16947 esac
16951 if test "$posix_threads" = "yes"; then
16952 if test "$unistd_defines_pthreads" = "no"; then
16954 cat >>confdefs.h <<\_ACEOF
16955 #define _POSIX_THREADS 1
16956 _ACEOF
16960 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
16961 case $ac_sys_system/$ac_sys_release in
16962 SunOS/5.6)
16963 cat >>confdefs.h <<\_ACEOF
16964 #define HAVE_PTHREAD_DESTRUCTOR 1
16965 _ACEOF
16968 SunOS/5.8)
16969 cat >>confdefs.h <<\_ACEOF
16970 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
16971 _ACEOF
16974 AIX/5)
16975 cat >>confdefs.h <<\_ACEOF
16976 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
16977 _ACEOF
16980 esac
16982 { echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
16983 echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6; }
16984 if test "${ac_cv_pthread_system_supported+set}" = set; then
16985 echo $ECHO_N "(cached) $ECHO_C" >&6
16986 else
16987 if test "$cross_compiling" = yes; then
16988 ac_cv_pthread_system_supported=no
16989 else
16990 cat >conftest.$ac_ext <<_ACEOF
16991 /* confdefs.h. */
16992 _ACEOF
16993 cat confdefs.h >>conftest.$ac_ext
16994 cat >>conftest.$ac_ext <<_ACEOF
16995 /* end confdefs.h. */
16996 #include <pthread.h>
16997 void *foo(void *parm) {
16998 return NULL;
17000 main() {
17001 pthread_attr_t attr;
17002 pthread_t id;
17003 if (pthread_attr_init(&attr)) exit(-1);
17004 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
17005 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
17006 exit(0);
17008 _ACEOF
17009 rm -f conftest$ac_exeext
17010 if { (ac_try="$ac_link"
17011 case "(($ac_try" in
17012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17013 *) ac_try_echo=$ac_try;;
17014 esac
17015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17016 (eval "$ac_link") 2>&5
17017 ac_status=$?
17018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17019 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17020 { (case "(($ac_try" in
17021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17022 *) ac_try_echo=$ac_try;;
17023 esac
17024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17025 (eval "$ac_try") 2>&5
17026 ac_status=$?
17027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17028 (exit $ac_status); }; }; then
17029 ac_cv_pthread_system_supported=yes
17030 else
17031 echo "$as_me: program exited with status $ac_status" >&5
17032 echo "$as_me: failed program was:" >&5
17033 sed 's/^/| /' conftest.$ac_ext >&5
17035 ( exit $ac_status )
17036 ac_cv_pthread_system_supported=no
17038 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17045 { echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
17046 echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6; }
17047 if test "$ac_cv_pthread_system_supported" = "yes"; then
17049 cat >>confdefs.h <<\_ACEOF
17050 #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
17051 _ACEOF
17055 for ac_func in pthread_sigmask
17057 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17058 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17059 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17060 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17061 echo $ECHO_N "(cached) $ECHO_C" >&6
17062 else
17063 cat >conftest.$ac_ext <<_ACEOF
17064 /* confdefs.h. */
17065 _ACEOF
17066 cat confdefs.h >>conftest.$ac_ext
17067 cat >>conftest.$ac_ext <<_ACEOF
17068 /* end confdefs.h. */
17069 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17070 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17071 #define $ac_func innocuous_$ac_func
17073 /* System header to define __stub macros and hopefully few prototypes,
17074 which can conflict with char $ac_func (); below.
17075 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17076 <limits.h> exists even on freestanding compilers. */
17078 #ifdef __STDC__
17079 # include <limits.h>
17080 #else
17081 # include <assert.h>
17082 #endif
17084 #undef $ac_func
17086 /* Override any GCC internal prototype to avoid an error.
17087 Use char because int might match the return type of a GCC
17088 builtin and then its argument prototype would still apply. */
17089 #ifdef __cplusplus
17090 extern "C"
17091 #endif
17092 char $ac_func ();
17093 /* The GNU C library defines this for functions which it implements
17094 to always fail with ENOSYS. Some functions are actually named
17095 something starting with __ and the normal name is an alias. */
17096 #if defined __stub_$ac_func || defined __stub___$ac_func
17097 choke me
17098 #endif
17101 main ()
17103 return $ac_func ();
17105 return 0;
17107 _ACEOF
17108 rm -f conftest.$ac_objext conftest$ac_exeext
17109 if { (ac_try="$ac_link"
17110 case "(($ac_try" in
17111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17112 *) ac_try_echo=$ac_try;;
17113 esac
17114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17115 (eval "$ac_link") 2>conftest.er1
17116 ac_status=$?
17117 grep -v '^ *+' conftest.er1 >conftest.err
17118 rm -f conftest.er1
17119 cat conftest.err >&5
17120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17121 (exit $ac_status); } && {
17122 test -z "$ac_c_werror_flag" ||
17123 test ! -s conftest.err
17124 } && test -s conftest$ac_exeext &&
17125 $as_test_x conftest$ac_exeext; then
17126 eval "$as_ac_var=yes"
17127 else
17128 echo "$as_me: failed program was:" >&5
17129 sed 's/^/| /' conftest.$ac_ext >&5
17131 eval "$as_ac_var=no"
17134 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17135 conftest$ac_exeext conftest.$ac_ext
17137 ac_res=`eval echo '${'$as_ac_var'}'`
17138 { echo "$as_me:$LINENO: result: $ac_res" >&5
17139 echo "${ECHO_T}$ac_res" >&6; }
17140 if test `eval echo '${'$as_ac_var'}'` = yes; then
17141 cat >>confdefs.h <<_ACEOF
17142 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17143 _ACEOF
17144 case $ac_sys_system in
17145 CYGWIN*)
17147 cat >>confdefs.h <<\_ACEOF
17148 #define HAVE_BROKEN_PTHREAD_SIGMASK 1
17149 _ACEOF
17152 esac
17154 done
17159 # Check for enable-ipv6
17162 { echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
17163 echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6; }
17164 # Check whether --enable-ipv6 was given.
17165 if test "${enable_ipv6+set}" = set; then
17166 enableval=$enable_ipv6; case "$enableval" in
17168 { echo "$as_me:$LINENO: result: no" >&5
17169 echo "${ECHO_T}no" >&6; }
17170 ipv6=no
17172 *) { echo "$as_me:$LINENO: result: yes" >&5
17173 echo "${ECHO_T}yes" >&6; }
17174 cat >>confdefs.h <<\_ACEOF
17175 #define ENABLE_IPV6 1
17176 _ACEOF
17178 ipv6=yes
17180 esac
17181 else
17183 if test "$cross_compiling" = yes; then
17184 { echo "$as_me:$LINENO: result: no" >&5
17185 echo "${ECHO_T}no" >&6; }
17186 ipv6=no
17188 else
17189 cat >conftest.$ac_ext <<_ACEOF
17190 /* confdefs.h. */
17191 _ACEOF
17192 cat confdefs.h >>conftest.$ac_ext
17193 cat >>conftest.$ac_ext <<_ACEOF
17194 /* end confdefs.h. */
17195 /* AF_INET6 available check */
17196 #include <sys/types.h>
17197 #include <sys/socket.h>
17198 main()
17200 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
17201 exit(1);
17202 else
17203 exit(0);
17206 _ACEOF
17207 rm -f conftest$ac_exeext
17208 if { (ac_try="$ac_link"
17209 case "(($ac_try" in
17210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17211 *) ac_try_echo=$ac_try;;
17212 esac
17213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17214 (eval "$ac_link") 2>&5
17215 ac_status=$?
17216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17217 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17218 { (case "(($ac_try" in
17219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17220 *) ac_try_echo=$ac_try;;
17221 esac
17222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17223 (eval "$ac_try") 2>&5
17224 ac_status=$?
17225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17226 (exit $ac_status); }; }; then
17227 { echo "$as_me:$LINENO: result: yes" >&5
17228 echo "${ECHO_T}yes" >&6; }
17229 ipv6=yes
17230 else
17231 echo "$as_me: program exited with status $ac_status" >&5
17232 echo "$as_me: failed program was:" >&5
17233 sed 's/^/| /' conftest.$ac_ext >&5
17235 ( exit $ac_status )
17236 { echo "$as_me:$LINENO: result: no" >&5
17237 echo "${ECHO_T}no" >&6; }
17238 ipv6=no
17240 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17245 if test "$ipv6" = "yes"; then
17246 { echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
17247 echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6; }
17248 cat >conftest.$ac_ext <<_ACEOF
17249 /* confdefs.h. */
17250 _ACEOF
17251 cat confdefs.h >>conftest.$ac_ext
17252 cat >>conftest.$ac_ext <<_ACEOF
17253 /* end confdefs.h. */
17254 #include <sys/types.h>
17255 #include <netinet/in.h>
17257 main ()
17259 struct sockaddr_in6 x;
17260 x.sin6_scope_id;
17262 return 0;
17264 _ACEOF
17265 rm -f conftest.$ac_objext
17266 if { (ac_try="$ac_compile"
17267 case "(($ac_try" in
17268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17269 *) ac_try_echo=$ac_try;;
17270 esac
17271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17272 (eval "$ac_compile") 2>conftest.er1
17273 ac_status=$?
17274 grep -v '^ *+' conftest.er1 >conftest.err
17275 rm -f conftest.er1
17276 cat conftest.err >&5
17277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17278 (exit $ac_status); } && {
17279 test -z "$ac_c_werror_flag" ||
17280 test ! -s conftest.err
17281 } && test -s conftest.$ac_objext; then
17282 { echo "$as_me:$LINENO: result: yes" >&5
17283 echo "${ECHO_T}yes" >&6; }
17284 ipv6=yes
17285 else
17286 echo "$as_me: failed program was:" >&5
17287 sed 's/^/| /' conftest.$ac_ext >&5
17289 { echo "$as_me:$LINENO: result: no" >&5
17290 echo "${ECHO_T}no" >&6; }
17291 ipv6=no
17294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17297 if test "$ipv6" = "yes"; then
17298 cat >>confdefs.h <<\_ACEOF
17299 #define ENABLE_IPV6 1
17300 _ACEOF
17307 ipv6type=unknown
17308 ipv6lib=none
17309 ipv6trylibc=no
17311 if test "$ipv6" = "yes"; then
17312 { echo "$as_me:$LINENO: checking ipv6 stack type" >&5
17313 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; }
17314 for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta;
17316 case $i in
17317 inria)
17318 cat >conftest.$ac_ext <<_ACEOF
17319 /* confdefs.h. */
17320 _ACEOF
17321 cat confdefs.h >>conftest.$ac_ext
17322 cat >>conftest.$ac_ext <<_ACEOF
17323 /* end confdefs.h. */
17325 #include <netinet/in.h>
17326 #ifdef IPV6_INRIA_VERSION
17328 #endif
17329 _ACEOF
17330 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17331 $EGREP "yes" >/dev/null 2>&1; then
17332 ipv6type=$i
17334 rm -f -r conftest*
17337 kame)
17338 cat >conftest.$ac_ext <<_ACEOF
17339 /* confdefs.h. */
17340 _ACEOF
17341 cat confdefs.h >>conftest.$ac_ext
17342 cat >>conftest.$ac_ext <<_ACEOF
17343 /* end confdefs.h. */
17345 #include <netinet/in.h>
17346 #ifdef __KAME__
17348 #endif
17349 _ACEOF
17350 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17351 $EGREP "yes" >/dev/null 2>&1; then
17352 ipv6type=$i;
17353 ipv6lib=inet6
17354 ipv6libdir=/usr/local/v6/lib
17355 ipv6trylibc=yes
17357 rm -f -r conftest*
17360 linux-glibc)
17361 cat >conftest.$ac_ext <<_ACEOF
17362 /* confdefs.h. */
17363 _ACEOF
17364 cat confdefs.h >>conftest.$ac_ext
17365 cat >>conftest.$ac_ext <<_ACEOF
17366 /* end confdefs.h. */
17368 #include <features.h>
17369 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
17371 #endif
17372 _ACEOF
17373 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17374 $EGREP "yes" >/dev/null 2>&1; then
17375 ipv6type=$i;
17376 ipv6trylibc=yes
17378 rm -f -r conftest*
17381 linux-inet6)
17382 if test -d /usr/inet6; then
17383 ipv6type=$i
17384 ipv6lib=inet6
17385 ipv6libdir=/usr/inet6/lib
17386 BASECFLAGS="-I/usr/inet6/include $BASECFLAGS"
17389 solaris)
17390 if test -f /etc/netconfig; then
17391 if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then
17392 ipv6type=$i
17393 ipv6trylibc=yes
17397 toshiba)
17398 cat >conftest.$ac_ext <<_ACEOF
17399 /* confdefs.h. */
17400 _ACEOF
17401 cat confdefs.h >>conftest.$ac_ext
17402 cat >>conftest.$ac_ext <<_ACEOF
17403 /* end confdefs.h. */
17405 #include <sys/param.h>
17406 #ifdef _TOSHIBA_INET6
17408 #endif
17409 _ACEOF
17410 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17411 $EGREP "yes" >/dev/null 2>&1; then
17412 ipv6type=$i;
17413 ipv6lib=inet6;
17414 ipv6libdir=/usr/local/v6/lib
17416 rm -f -r conftest*
17419 v6d)
17420 cat >conftest.$ac_ext <<_ACEOF
17421 /* confdefs.h. */
17422 _ACEOF
17423 cat confdefs.h >>conftest.$ac_ext
17424 cat >>conftest.$ac_ext <<_ACEOF
17425 /* end confdefs.h. */
17427 #include </usr/local/v6/include/sys/v6config.h>
17428 #ifdef __V6D__
17430 #endif
17431 _ACEOF
17432 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17433 $EGREP "yes" >/dev/null 2>&1; then
17434 ipv6type=$i;
17435 ipv6lib=v6;
17436 ipv6libdir=/usr/local/v6/lib;
17437 BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS"
17439 rm -f -r conftest*
17442 zeta)
17443 cat >conftest.$ac_ext <<_ACEOF
17444 /* confdefs.h. */
17445 _ACEOF
17446 cat confdefs.h >>conftest.$ac_ext
17447 cat >>conftest.$ac_ext <<_ACEOF
17448 /* end confdefs.h. */
17450 #include <sys/param.h>
17451 #ifdef _ZETA_MINAMI_INET6
17453 #endif
17454 _ACEOF
17455 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17456 $EGREP "yes" >/dev/null 2>&1; then
17457 ipv6type=$i;
17458 ipv6lib=inet6;
17459 ipv6libdir=/usr/local/v6/lib
17461 rm -f -r conftest*
17464 esac
17465 if test "$ipv6type" != "unknown"; then
17466 break
17468 done
17469 { echo "$as_me:$LINENO: result: $ipv6type" >&5
17470 echo "${ECHO_T}$ipv6type" >&6; }
17473 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
17474 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
17475 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
17476 echo "using lib$ipv6lib"
17477 else
17478 if test $ipv6trylibc = "yes"; then
17479 echo "using libc"
17480 else
17481 echo 'Fatal: no $ipv6lib library found. cannot continue.'
17482 echo "You need to fetch lib$ipv6lib.a from appropriate"
17483 echo 'ipv6 kit and compile beforehand.'
17484 exit 1
17489 { echo "$as_me:$LINENO: checking for OSX 10.5 SDK or later" >&5
17490 echo $ECHO_N "checking for OSX 10.5 SDK or later... $ECHO_C" >&6; }
17491 cat >conftest.$ac_ext <<_ACEOF
17492 /* confdefs.h. */
17493 _ACEOF
17494 cat confdefs.h >>conftest.$ac_ext
17495 cat >>conftest.$ac_ext <<_ACEOF
17496 /* end confdefs.h. */
17497 #include <Carbon/Carbon.h>
17499 main ()
17501 FSIORefNum fRef = 0
17503 return 0;
17505 _ACEOF
17506 rm -f conftest.$ac_objext
17507 if { (ac_try="$ac_compile"
17508 case "(($ac_try" in
17509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17510 *) ac_try_echo=$ac_try;;
17511 esac
17512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17513 (eval "$ac_compile") 2>conftest.er1
17514 ac_status=$?
17515 grep -v '^ *+' conftest.er1 >conftest.err
17516 rm -f conftest.er1
17517 cat conftest.err >&5
17518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17519 (exit $ac_status); } && {
17520 test -z "$ac_c_werror_flag" ||
17521 test ! -s conftest.err
17522 } && test -s conftest.$ac_objext; then
17524 cat >>confdefs.h <<\_ACEOF
17525 #define HAVE_OSX105_SDK 1
17526 _ACEOF
17528 { echo "$as_me:$LINENO: result: yes" >&5
17529 echo "${ECHO_T}yes" >&6; }
17530 else
17531 echo "$as_me: failed program was:" >&5
17532 sed 's/^/| /' conftest.$ac_ext >&5
17534 { echo "$as_me:$LINENO: result: no" >&5
17535 echo "${ECHO_T}no" >&6; }
17539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17541 # Check for --with-doc-strings
17542 { echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
17543 echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6; }
17545 # Check whether --with-doc-strings was given.
17546 if test "${with_doc_strings+set}" = set; then
17547 withval=$with_doc_strings;
17551 if test -z "$with_doc_strings"
17552 then with_doc_strings="yes"
17554 if test "$with_doc_strings" != "no"
17555 then
17557 cat >>confdefs.h <<\_ACEOF
17558 #define WITH_DOC_STRINGS 1
17559 _ACEOF
17562 { echo "$as_me:$LINENO: result: $with_doc_strings" >&5
17563 echo "${ECHO_T}$with_doc_strings" >&6; }
17565 # Check for Python-specific malloc support
17566 { echo "$as_me:$LINENO: checking for --with-tsc" >&5
17567 echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6; }
17569 # Check whether --with-tsc was given.
17570 if test "${with_tsc+set}" = set; then
17571 withval=$with_tsc;
17572 if test "$withval" != no
17573 then
17575 cat >>confdefs.h <<\_ACEOF
17576 #define WITH_TSC 1
17577 _ACEOF
17579 { echo "$as_me:$LINENO: result: yes" >&5
17580 echo "${ECHO_T}yes" >&6; }
17581 else { echo "$as_me:$LINENO: result: no" >&5
17582 echo "${ECHO_T}no" >&6; }
17584 else
17585 { echo "$as_me:$LINENO: result: no" >&5
17586 echo "${ECHO_T}no" >&6; }
17590 # Check for Python-specific malloc support
17591 { echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
17592 echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6; }
17594 # Check whether --with-pymalloc was given.
17595 if test "${with_pymalloc+set}" = set; then
17596 withval=$with_pymalloc;
17600 if test -z "$with_pymalloc"
17601 then with_pymalloc="yes"
17603 if test "$with_pymalloc" != "no"
17604 then
17606 cat >>confdefs.h <<\_ACEOF
17607 #define WITH_PYMALLOC 1
17608 _ACEOF
17611 { echo "$as_me:$LINENO: result: $with_pymalloc" >&5
17612 echo "${ECHO_T}$with_pymalloc" >&6; }
17614 # Check for --with-wctype-functions
17615 { echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
17616 echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6; }
17618 # Check whether --with-wctype-functions was given.
17619 if test "${with_wctype_functions+set}" = set; then
17620 withval=$with_wctype_functions;
17621 if test "$withval" != no
17622 then
17624 cat >>confdefs.h <<\_ACEOF
17625 #define WANT_WCTYPE_FUNCTIONS 1
17626 _ACEOF
17628 { echo "$as_me:$LINENO: result: yes" >&5
17629 echo "${ECHO_T}yes" >&6; }
17630 else { echo "$as_me:$LINENO: result: no" >&5
17631 echo "${ECHO_T}no" >&6; }
17633 else
17634 { echo "$as_me:$LINENO: result: no" >&5
17635 echo "${ECHO_T}no" >&6; }
17639 # -I${DLINCLDIR} is added to the compile rule for importdl.o
17641 DLINCLDIR=.
17643 # the dlopen() function means we might want to use dynload_shlib.o. some
17644 # platforms, such as AIX, have dlopen(), but don't want to use it.
17646 for ac_func in dlopen
17648 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17649 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17650 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17651 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17652 echo $ECHO_N "(cached) $ECHO_C" >&6
17653 else
17654 cat >conftest.$ac_ext <<_ACEOF
17655 /* confdefs.h. */
17656 _ACEOF
17657 cat confdefs.h >>conftest.$ac_ext
17658 cat >>conftest.$ac_ext <<_ACEOF
17659 /* end confdefs.h. */
17660 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17661 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17662 #define $ac_func innocuous_$ac_func
17664 /* System header to define __stub macros and hopefully few prototypes,
17665 which can conflict with char $ac_func (); below.
17666 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17667 <limits.h> exists even on freestanding compilers. */
17669 #ifdef __STDC__
17670 # include <limits.h>
17671 #else
17672 # include <assert.h>
17673 #endif
17675 #undef $ac_func
17677 /* Override any GCC internal prototype to avoid an error.
17678 Use char because int might match the return type of a GCC
17679 builtin and then its argument prototype would still apply. */
17680 #ifdef __cplusplus
17681 extern "C"
17682 #endif
17683 char $ac_func ();
17684 /* The GNU C library defines this for functions which it implements
17685 to always fail with ENOSYS. Some functions are actually named
17686 something starting with __ and the normal name is an alias. */
17687 #if defined __stub_$ac_func || defined __stub___$ac_func
17688 choke me
17689 #endif
17692 main ()
17694 return $ac_func ();
17696 return 0;
17698 _ACEOF
17699 rm -f conftest.$ac_objext conftest$ac_exeext
17700 if { (ac_try="$ac_link"
17701 case "(($ac_try" in
17702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17703 *) ac_try_echo=$ac_try;;
17704 esac
17705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17706 (eval "$ac_link") 2>conftest.er1
17707 ac_status=$?
17708 grep -v '^ *+' conftest.er1 >conftest.err
17709 rm -f conftest.er1
17710 cat conftest.err >&5
17711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17712 (exit $ac_status); } && {
17713 test -z "$ac_c_werror_flag" ||
17714 test ! -s conftest.err
17715 } && test -s conftest$ac_exeext &&
17716 $as_test_x conftest$ac_exeext; then
17717 eval "$as_ac_var=yes"
17718 else
17719 echo "$as_me: failed program was:" >&5
17720 sed 's/^/| /' conftest.$ac_ext >&5
17722 eval "$as_ac_var=no"
17725 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17726 conftest$ac_exeext conftest.$ac_ext
17728 ac_res=`eval echo '${'$as_ac_var'}'`
17729 { echo "$as_me:$LINENO: result: $ac_res" >&5
17730 echo "${ECHO_T}$ac_res" >&6; }
17731 if test `eval echo '${'$as_ac_var'}'` = yes; then
17732 cat >>confdefs.h <<_ACEOF
17733 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17734 _ACEOF
17737 done
17740 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
17741 # loading of modules.
17743 { echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
17744 echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6; }
17745 if test -z "$DYNLOADFILE"
17746 then
17747 case $ac_sys_system/$ac_sys_release in
17748 AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
17749 if test "$ac_cv_func_dlopen" = yes
17750 then DYNLOADFILE="dynload_shlib.o"
17751 else DYNLOADFILE="dynload_aix.o"
17754 BeOS*) DYNLOADFILE="dynload_beos.o";;
17755 hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
17756 # Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
17757 Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";;
17758 atheos*) DYNLOADFILE="dynload_atheos.o";;
17760 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
17761 # out any dynamic loading
17762 if test "$ac_cv_func_dlopen" = yes
17763 then DYNLOADFILE="dynload_shlib.o"
17764 else DYNLOADFILE="dynload_stub.o"
17767 esac
17769 { echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
17770 echo "${ECHO_T}$DYNLOADFILE" >&6; }
17771 if test "$DYNLOADFILE" != "dynload_stub.o"
17772 then
17774 cat >>confdefs.h <<\_ACEOF
17775 #define HAVE_DYNAMIC_LOADING 1
17776 _ACEOF
17780 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
17783 { echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
17784 echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6; }
17785 if test -z "$MACHDEP_OBJS"
17786 then
17787 MACHDEP_OBJS=$extra_machdep_objs
17788 else
17789 MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs"
17791 { echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
17792 echo "${ECHO_T}MACHDEP_OBJS" >&6; }
17794 # checks for library functions
17880 for ac_func in alarm setitimer getitimer bind_textdomain_codeset chown \
17881 clock confstr ctermid execv fchmod fchown fork fpathconf ftime ftruncate \
17882 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
17883 getpriority getpwent getspnam getspent getsid getwd \
17884 kill killpg lchmod lchown lstat mkfifo mknod mktime \
17885 mremap nice pathconf pause plock poll pthread_init \
17886 putenv readlink realpath \
17887 select sem_open sem_timedwait sem_getvalue sem_unlink setegid seteuid \
17888 setgid \
17889 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
17890 sigaction siginterrupt sigrelse strftime \
17891 sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \
17892 truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty
17894 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17895 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17896 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17897 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17898 echo $ECHO_N "(cached) $ECHO_C" >&6
17899 else
17900 cat >conftest.$ac_ext <<_ACEOF
17901 /* confdefs.h. */
17902 _ACEOF
17903 cat confdefs.h >>conftest.$ac_ext
17904 cat >>conftest.$ac_ext <<_ACEOF
17905 /* end confdefs.h. */
17906 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17907 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17908 #define $ac_func innocuous_$ac_func
17910 /* System header to define __stub macros and hopefully few prototypes,
17911 which can conflict with char $ac_func (); below.
17912 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17913 <limits.h> exists even on freestanding compilers. */
17915 #ifdef __STDC__
17916 # include <limits.h>
17917 #else
17918 # include <assert.h>
17919 #endif
17921 #undef $ac_func
17923 /* Override any GCC internal prototype to avoid an error.
17924 Use char because int might match the return type of a GCC
17925 builtin and then its argument prototype would still apply. */
17926 #ifdef __cplusplus
17927 extern "C"
17928 #endif
17929 char $ac_func ();
17930 /* The GNU C library defines this for functions which it implements
17931 to always fail with ENOSYS. Some functions are actually named
17932 something starting with __ and the normal name is an alias. */
17933 #if defined __stub_$ac_func || defined __stub___$ac_func
17934 choke me
17935 #endif
17938 main ()
17940 return $ac_func ();
17942 return 0;
17944 _ACEOF
17945 rm -f conftest.$ac_objext conftest$ac_exeext
17946 if { (ac_try="$ac_link"
17947 case "(($ac_try" in
17948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17949 *) ac_try_echo=$ac_try;;
17950 esac
17951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17952 (eval "$ac_link") 2>conftest.er1
17953 ac_status=$?
17954 grep -v '^ *+' conftest.er1 >conftest.err
17955 rm -f conftest.er1
17956 cat conftest.err >&5
17957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17958 (exit $ac_status); } && {
17959 test -z "$ac_c_werror_flag" ||
17960 test ! -s conftest.err
17961 } && test -s conftest$ac_exeext &&
17962 $as_test_x conftest$ac_exeext; then
17963 eval "$as_ac_var=yes"
17964 else
17965 echo "$as_me: failed program was:" >&5
17966 sed 's/^/| /' conftest.$ac_ext >&5
17968 eval "$as_ac_var=no"
17971 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17972 conftest$ac_exeext conftest.$ac_ext
17974 ac_res=`eval echo '${'$as_ac_var'}'`
17975 { echo "$as_me:$LINENO: result: $ac_res" >&5
17976 echo "${ECHO_T}$ac_res" >&6; }
17977 if test `eval echo '${'$as_ac_var'}'` = yes; then
17978 cat >>confdefs.h <<_ACEOF
17979 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17980 _ACEOF
17983 done
17986 # For some functions, having a definition is not sufficient, since
17987 # we want to take their address.
17988 { echo "$as_me:$LINENO: checking for chroot" >&5
17989 echo $ECHO_N "checking for chroot... $ECHO_C" >&6; }
17990 cat >conftest.$ac_ext <<_ACEOF
17991 /* confdefs.h. */
17992 _ACEOF
17993 cat confdefs.h >>conftest.$ac_ext
17994 cat >>conftest.$ac_ext <<_ACEOF
17995 /* end confdefs.h. */
17996 #include <unistd.h>
17998 main ()
18000 void *x=chroot
18002 return 0;
18004 _ACEOF
18005 rm -f conftest.$ac_objext
18006 if { (ac_try="$ac_compile"
18007 case "(($ac_try" in
18008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18009 *) ac_try_echo=$ac_try;;
18010 esac
18011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18012 (eval "$ac_compile") 2>conftest.er1
18013 ac_status=$?
18014 grep -v '^ *+' conftest.er1 >conftest.err
18015 rm -f conftest.er1
18016 cat conftest.err >&5
18017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18018 (exit $ac_status); } && {
18019 test -z "$ac_c_werror_flag" ||
18020 test ! -s conftest.err
18021 } && test -s conftest.$ac_objext; then
18023 cat >>confdefs.h <<\_ACEOF
18024 #define HAVE_CHROOT 1
18025 _ACEOF
18027 { echo "$as_me:$LINENO: result: yes" >&5
18028 echo "${ECHO_T}yes" >&6; }
18029 else
18030 echo "$as_me: failed program was:" >&5
18031 sed 's/^/| /' conftest.$ac_ext >&5
18033 { echo "$as_me:$LINENO: result: no" >&5
18034 echo "${ECHO_T}no" >&6; }
18038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18039 { echo "$as_me:$LINENO: checking for link" >&5
18040 echo $ECHO_N "checking for link... $ECHO_C" >&6; }
18041 cat >conftest.$ac_ext <<_ACEOF
18042 /* confdefs.h. */
18043 _ACEOF
18044 cat confdefs.h >>conftest.$ac_ext
18045 cat >>conftest.$ac_ext <<_ACEOF
18046 /* end confdefs.h. */
18047 #include <unistd.h>
18049 main ()
18051 void *x=link
18053 return 0;
18055 _ACEOF
18056 rm -f conftest.$ac_objext
18057 if { (ac_try="$ac_compile"
18058 case "(($ac_try" in
18059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18060 *) ac_try_echo=$ac_try;;
18061 esac
18062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18063 (eval "$ac_compile") 2>conftest.er1
18064 ac_status=$?
18065 grep -v '^ *+' conftest.er1 >conftest.err
18066 rm -f conftest.er1
18067 cat conftest.err >&5
18068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18069 (exit $ac_status); } && {
18070 test -z "$ac_c_werror_flag" ||
18071 test ! -s conftest.err
18072 } && test -s conftest.$ac_objext; then
18074 cat >>confdefs.h <<\_ACEOF
18075 #define HAVE_LINK 1
18076 _ACEOF
18078 { echo "$as_me:$LINENO: result: yes" >&5
18079 echo "${ECHO_T}yes" >&6; }
18080 else
18081 echo "$as_me: failed program was:" >&5
18082 sed 's/^/| /' conftest.$ac_ext >&5
18084 { echo "$as_me:$LINENO: result: no" >&5
18085 echo "${ECHO_T}no" >&6; }
18089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18090 { echo "$as_me:$LINENO: checking for symlink" >&5
18091 echo $ECHO_N "checking for symlink... $ECHO_C" >&6; }
18092 cat >conftest.$ac_ext <<_ACEOF
18093 /* confdefs.h. */
18094 _ACEOF
18095 cat confdefs.h >>conftest.$ac_ext
18096 cat >>conftest.$ac_ext <<_ACEOF
18097 /* end confdefs.h. */
18098 #include <unistd.h>
18100 main ()
18102 void *x=symlink
18104 return 0;
18106 _ACEOF
18107 rm -f conftest.$ac_objext
18108 if { (ac_try="$ac_compile"
18109 case "(($ac_try" in
18110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18111 *) ac_try_echo=$ac_try;;
18112 esac
18113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18114 (eval "$ac_compile") 2>conftest.er1
18115 ac_status=$?
18116 grep -v '^ *+' conftest.er1 >conftest.err
18117 rm -f conftest.er1
18118 cat conftest.err >&5
18119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18120 (exit $ac_status); } && {
18121 test -z "$ac_c_werror_flag" ||
18122 test ! -s conftest.err
18123 } && test -s conftest.$ac_objext; then
18125 cat >>confdefs.h <<\_ACEOF
18126 #define HAVE_SYMLINK 1
18127 _ACEOF
18129 { echo "$as_me:$LINENO: result: yes" >&5
18130 echo "${ECHO_T}yes" >&6; }
18131 else
18132 echo "$as_me: failed program was:" >&5
18133 sed 's/^/| /' conftest.$ac_ext >&5
18135 { echo "$as_me:$LINENO: result: no" >&5
18136 echo "${ECHO_T}no" >&6; }
18140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18141 { echo "$as_me:$LINENO: checking for fchdir" >&5
18142 echo $ECHO_N "checking for fchdir... $ECHO_C" >&6; }
18143 cat >conftest.$ac_ext <<_ACEOF
18144 /* confdefs.h. */
18145 _ACEOF
18146 cat confdefs.h >>conftest.$ac_ext
18147 cat >>conftest.$ac_ext <<_ACEOF
18148 /* end confdefs.h. */
18149 #include <unistd.h>
18151 main ()
18153 void *x=fchdir
18155 return 0;
18157 _ACEOF
18158 rm -f conftest.$ac_objext
18159 if { (ac_try="$ac_compile"
18160 case "(($ac_try" in
18161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18162 *) ac_try_echo=$ac_try;;
18163 esac
18164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18165 (eval "$ac_compile") 2>conftest.er1
18166 ac_status=$?
18167 grep -v '^ *+' conftest.er1 >conftest.err
18168 rm -f conftest.er1
18169 cat conftest.err >&5
18170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18171 (exit $ac_status); } && {
18172 test -z "$ac_c_werror_flag" ||
18173 test ! -s conftest.err
18174 } && test -s conftest.$ac_objext; then
18176 cat >>confdefs.h <<\_ACEOF
18177 #define HAVE_FCHDIR 1
18178 _ACEOF
18180 { echo "$as_me:$LINENO: result: yes" >&5
18181 echo "${ECHO_T}yes" >&6; }
18182 else
18183 echo "$as_me: failed program was:" >&5
18184 sed 's/^/| /' conftest.$ac_ext >&5
18186 { echo "$as_me:$LINENO: result: no" >&5
18187 echo "${ECHO_T}no" >&6; }
18191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18192 { echo "$as_me:$LINENO: checking for fsync" >&5
18193 echo $ECHO_N "checking for fsync... $ECHO_C" >&6; }
18194 cat >conftest.$ac_ext <<_ACEOF
18195 /* confdefs.h. */
18196 _ACEOF
18197 cat confdefs.h >>conftest.$ac_ext
18198 cat >>conftest.$ac_ext <<_ACEOF
18199 /* end confdefs.h. */
18200 #include <unistd.h>
18202 main ()
18204 void *x=fsync
18206 return 0;
18208 _ACEOF
18209 rm -f conftest.$ac_objext
18210 if { (ac_try="$ac_compile"
18211 case "(($ac_try" in
18212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18213 *) ac_try_echo=$ac_try;;
18214 esac
18215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18216 (eval "$ac_compile") 2>conftest.er1
18217 ac_status=$?
18218 grep -v '^ *+' conftest.er1 >conftest.err
18219 rm -f conftest.er1
18220 cat conftest.err >&5
18221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18222 (exit $ac_status); } && {
18223 test -z "$ac_c_werror_flag" ||
18224 test ! -s conftest.err
18225 } && test -s conftest.$ac_objext; then
18227 cat >>confdefs.h <<\_ACEOF
18228 #define HAVE_FSYNC 1
18229 _ACEOF
18231 { echo "$as_me:$LINENO: result: yes" >&5
18232 echo "${ECHO_T}yes" >&6; }
18233 else
18234 echo "$as_me: failed program was:" >&5
18235 sed 's/^/| /' conftest.$ac_ext >&5
18237 { echo "$as_me:$LINENO: result: no" >&5
18238 echo "${ECHO_T}no" >&6; }
18242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18243 { echo "$as_me:$LINENO: checking for fdatasync" >&5
18244 echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6; }
18245 cat >conftest.$ac_ext <<_ACEOF
18246 /* confdefs.h. */
18247 _ACEOF
18248 cat confdefs.h >>conftest.$ac_ext
18249 cat >>conftest.$ac_ext <<_ACEOF
18250 /* end confdefs.h. */
18251 #include <unistd.h>
18253 main ()
18255 void *x=fdatasync
18257 return 0;
18259 _ACEOF
18260 rm -f conftest.$ac_objext
18261 if { (ac_try="$ac_compile"
18262 case "(($ac_try" in
18263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18264 *) ac_try_echo=$ac_try;;
18265 esac
18266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18267 (eval "$ac_compile") 2>conftest.er1
18268 ac_status=$?
18269 grep -v '^ *+' conftest.er1 >conftest.err
18270 rm -f conftest.er1
18271 cat conftest.err >&5
18272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18273 (exit $ac_status); } && {
18274 test -z "$ac_c_werror_flag" ||
18275 test ! -s conftest.err
18276 } && test -s conftest.$ac_objext; then
18278 cat >>confdefs.h <<\_ACEOF
18279 #define HAVE_FDATASYNC 1
18280 _ACEOF
18282 { echo "$as_me:$LINENO: result: yes" >&5
18283 echo "${ECHO_T}yes" >&6; }
18284 else
18285 echo "$as_me: failed program was:" >&5
18286 sed 's/^/| /' conftest.$ac_ext >&5
18288 { echo "$as_me:$LINENO: result: no" >&5
18289 echo "${ECHO_T}no" >&6; }
18293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18294 { echo "$as_me:$LINENO: checking for epoll" >&5
18295 echo $ECHO_N "checking for epoll... $ECHO_C" >&6; }
18296 cat >conftest.$ac_ext <<_ACEOF
18297 /* confdefs.h. */
18298 _ACEOF
18299 cat confdefs.h >>conftest.$ac_ext
18300 cat >>conftest.$ac_ext <<_ACEOF
18301 /* end confdefs.h. */
18302 #include <sys/epoll.h>
18304 main ()
18306 void *x=epoll_create
18308 return 0;
18310 _ACEOF
18311 rm -f conftest.$ac_objext
18312 if { (ac_try="$ac_compile"
18313 case "(($ac_try" in
18314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18315 *) ac_try_echo=$ac_try;;
18316 esac
18317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18318 (eval "$ac_compile") 2>conftest.er1
18319 ac_status=$?
18320 grep -v '^ *+' conftest.er1 >conftest.err
18321 rm -f conftest.er1
18322 cat conftest.err >&5
18323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18324 (exit $ac_status); } && {
18325 test -z "$ac_c_werror_flag" ||
18326 test ! -s conftest.err
18327 } && test -s conftest.$ac_objext; then
18329 cat >>confdefs.h <<\_ACEOF
18330 #define HAVE_EPOLL 1
18331 _ACEOF
18333 { echo "$as_me:$LINENO: result: yes" >&5
18334 echo "${ECHO_T}yes" >&6; }
18335 else
18336 echo "$as_me: failed program was:" >&5
18337 sed 's/^/| /' conftest.$ac_ext >&5
18339 { echo "$as_me:$LINENO: result: no" >&5
18340 echo "${ECHO_T}no" >&6; }
18344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18345 { echo "$as_me:$LINENO: checking for kqueue" >&5
18346 echo $ECHO_N "checking for kqueue... $ECHO_C" >&6; }
18347 cat >conftest.$ac_ext <<_ACEOF
18348 /* confdefs.h. */
18349 _ACEOF
18350 cat confdefs.h >>conftest.$ac_ext
18351 cat >>conftest.$ac_ext <<_ACEOF
18352 /* end confdefs.h. */
18354 #include <sys/types.h>
18355 #include <sys/event.h>
18358 main ()
18360 int x=kqueue()
18362 return 0;
18364 _ACEOF
18365 rm -f conftest.$ac_objext
18366 if { (ac_try="$ac_compile"
18367 case "(($ac_try" in
18368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18369 *) ac_try_echo=$ac_try;;
18370 esac
18371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18372 (eval "$ac_compile") 2>conftest.er1
18373 ac_status=$?
18374 grep -v '^ *+' conftest.er1 >conftest.err
18375 rm -f conftest.er1
18376 cat conftest.err >&5
18377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18378 (exit $ac_status); } && {
18379 test -z "$ac_c_werror_flag" ||
18380 test ! -s conftest.err
18381 } && test -s conftest.$ac_objext; then
18383 cat >>confdefs.h <<\_ACEOF
18384 #define HAVE_KQUEUE 1
18385 _ACEOF
18387 { echo "$as_me:$LINENO: result: yes" >&5
18388 echo "${ECHO_T}yes" >&6; }
18389 else
18390 echo "$as_me: failed program was:" >&5
18391 sed 's/^/| /' conftest.$ac_ext >&5
18393 { echo "$as_me:$LINENO: result: no" >&5
18394 echo "${ECHO_T}no" >&6; }
18398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18399 # On some systems (eg. FreeBSD 5), we would find a definition of the
18400 # functions ctermid_r, setgroups in the library, but no prototype
18401 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
18402 # address to avoid compiler warnings and potential miscompilations
18403 # because of the missing prototypes.
18405 { echo "$as_me:$LINENO: checking for ctermid_r" >&5
18406 echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6; }
18407 cat >conftest.$ac_ext <<_ACEOF
18408 /* confdefs.h. */
18409 _ACEOF
18410 cat confdefs.h >>conftest.$ac_ext
18411 cat >>conftest.$ac_ext <<_ACEOF
18412 /* end confdefs.h. */
18414 #include "confdefs.h"
18415 #include <stdio.h>
18418 main ()
18420 void* p = ctermid_r
18422 return 0;
18424 _ACEOF
18425 rm -f conftest.$ac_objext
18426 if { (ac_try="$ac_compile"
18427 case "(($ac_try" in
18428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18429 *) ac_try_echo=$ac_try;;
18430 esac
18431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18432 (eval "$ac_compile") 2>conftest.er1
18433 ac_status=$?
18434 grep -v '^ *+' conftest.er1 >conftest.err
18435 rm -f conftest.er1
18436 cat conftest.err >&5
18437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18438 (exit $ac_status); } && {
18439 test -z "$ac_c_werror_flag" ||
18440 test ! -s conftest.err
18441 } && test -s conftest.$ac_objext; then
18443 cat >>confdefs.h <<\_ACEOF
18444 #define HAVE_CTERMID_R 1
18445 _ACEOF
18447 { echo "$as_me:$LINENO: result: yes" >&5
18448 echo "${ECHO_T}yes" >&6; }
18449 else
18450 echo "$as_me: failed program was:" >&5
18451 sed 's/^/| /' conftest.$ac_ext >&5
18453 { echo "$as_me:$LINENO: result: no" >&5
18454 echo "${ECHO_T}no" >&6; }
18458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18460 { echo "$as_me:$LINENO: checking for flock" >&5
18461 echo $ECHO_N "checking for flock... $ECHO_C" >&6; }
18462 cat >conftest.$ac_ext <<_ACEOF
18463 /* confdefs.h. */
18464 _ACEOF
18465 cat confdefs.h >>conftest.$ac_ext
18466 cat >>conftest.$ac_ext <<_ACEOF
18467 /* end confdefs.h. */
18469 #include "confdefs.h"
18470 #include <sys/file.h>
18473 main ()
18475 void* p = flock
18477 return 0;
18479 _ACEOF
18480 rm -f conftest.$ac_objext
18481 if { (ac_try="$ac_compile"
18482 case "(($ac_try" in
18483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18484 *) ac_try_echo=$ac_try;;
18485 esac
18486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18487 (eval "$ac_compile") 2>conftest.er1
18488 ac_status=$?
18489 grep -v '^ *+' conftest.er1 >conftest.err
18490 rm -f conftest.er1
18491 cat conftest.err >&5
18492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18493 (exit $ac_status); } && {
18494 test -z "$ac_c_werror_flag" ||
18495 test ! -s conftest.err
18496 } && test -s conftest.$ac_objext; then
18498 cat >>confdefs.h <<\_ACEOF
18499 #define HAVE_FLOCK 1
18500 _ACEOF
18502 { echo "$as_me:$LINENO: result: yes" >&5
18503 echo "${ECHO_T}yes" >&6; }
18504 else
18505 echo "$as_me: failed program was:" >&5
18506 sed 's/^/| /' conftest.$ac_ext >&5
18508 { echo "$as_me:$LINENO: result: no" >&5
18509 echo "${ECHO_T}no" >&6; }
18513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18515 { echo "$as_me:$LINENO: checking for getpagesize" >&5
18516 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; }
18517 cat >conftest.$ac_ext <<_ACEOF
18518 /* confdefs.h. */
18519 _ACEOF
18520 cat confdefs.h >>conftest.$ac_ext
18521 cat >>conftest.$ac_ext <<_ACEOF
18522 /* end confdefs.h. */
18524 #include "confdefs.h"
18525 #include <unistd.h>
18528 main ()
18530 void* p = getpagesize
18532 return 0;
18534 _ACEOF
18535 rm -f conftest.$ac_objext
18536 if { (ac_try="$ac_compile"
18537 case "(($ac_try" in
18538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18539 *) ac_try_echo=$ac_try;;
18540 esac
18541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18542 (eval "$ac_compile") 2>conftest.er1
18543 ac_status=$?
18544 grep -v '^ *+' conftest.er1 >conftest.err
18545 rm -f conftest.er1
18546 cat conftest.err >&5
18547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18548 (exit $ac_status); } && {
18549 test -z "$ac_c_werror_flag" ||
18550 test ! -s conftest.err
18551 } && test -s conftest.$ac_objext; then
18553 cat >>confdefs.h <<\_ACEOF
18554 #define HAVE_GETPAGESIZE 1
18555 _ACEOF
18557 { echo "$as_me:$LINENO: result: yes" >&5
18558 echo "${ECHO_T}yes" >&6; }
18559 else
18560 echo "$as_me: failed program was:" >&5
18561 sed 's/^/| /' conftest.$ac_ext >&5
18563 { echo "$as_me:$LINENO: result: no" >&5
18564 echo "${ECHO_T}no" >&6; }
18568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18570 for ac_prog in true
18572 # Extract the first word of "$ac_prog", so it can be a program name with args.
18573 set dummy $ac_prog; ac_word=$2
18574 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18576 if test "${ac_cv_prog_TRUE+set}" = set; then
18577 echo $ECHO_N "(cached) $ECHO_C" >&6
18578 else
18579 if test -n "$TRUE"; then
18580 ac_cv_prog_TRUE="$TRUE" # Let the user override the test.
18581 else
18582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18583 for as_dir in $PATH
18585 IFS=$as_save_IFS
18586 test -z "$as_dir" && as_dir=.
18587 for ac_exec_ext in '' $ac_executable_extensions; do
18588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18589 ac_cv_prog_TRUE="$ac_prog"
18590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18591 break 2
18593 done
18594 done
18595 IFS=$as_save_IFS
18599 TRUE=$ac_cv_prog_TRUE
18600 if test -n "$TRUE"; then
18601 { echo "$as_me:$LINENO: result: $TRUE" >&5
18602 echo "${ECHO_T}$TRUE" >&6; }
18603 else
18604 { echo "$as_me:$LINENO: result: no" >&5
18605 echo "${ECHO_T}no" >&6; }
18609 test -n "$TRUE" && break
18610 done
18611 test -n "$TRUE" || TRUE="/bin/true"
18614 { echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
18615 echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6; }
18616 if test "${ac_cv_lib_c_inet_aton+set}" = set; then
18617 echo $ECHO_N "(cached) $ECHO_C" >&6
18618 else
18619 ac_check_lib_save_LIBS=$LIBS
18620 LIBS="-lc $LIBS"
18621 cat >conftest.$ac_ext <<_ACEOF
18622 /* confdefs.h. */
18623 _ACEOF
18624 cat confdefs.h >>conftest.$ac_ext
18625 cat >>conftest.$ac_ext <<_ACEOF
18626 /* end confdefs.h. */
18628 /* Override any GCC internal prototype to avoid an error.
18629 Use char because int might match the return type of a GCC
18630 builtin and then its argument prototype would still apply. */
18631 #ifdef __cplusplus
18632 extern "C"
18633 #endif
18634 char inet_aton ();
18636 main ()
18638 return inet_aton ();
18640 return 0;
18642 _ACEOF
18643 rm -f conftest.$ac_objext conftest$ac_exeext
18644 if { (ac_try="$ac_link"
18645 case "(($ac_try" in
18646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18647 *) ac_try_echo=$ac_try;;
18648 esac
18649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18650 (eval "$ac_link") 2>conftest.er1
18651 ac_status=$?
18652 grep -v '^ *+' conftest.er1 >conftest.err
18653 rm -f conftest.er1
18654 cat conftest.err >&5
18655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18656 (exit $ac_status); } && {
18657 test -z "$ac_c_werror_flag" ||
18658 test ! -s conftest.err
18659 } && test -s conftest$ac_exeext &&
18660 $as_test_x conftest$ac_exeext; then
18661 ac_cv_lib_c_inet_aton=yes
18662 else
18663 echo "$as_me: failed program was:" >&5
18664 sed 's/^/| /' conftest.$ac_ext >&5
18666 ac_cv_lib_c_inet_aton=no
18669 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18670 conftest$ac_exeext conftest.$ac_ext
18671 LIBS=$ac_check_lib_save_LIBS
18673 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
18674 echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6; }
18675 if test $ac_cv_lib_c_inet_aton = yes; then
18676 $ac_cv_prog_TRUE
18677 else
18679 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
18680 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
18681 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
18682 echo $ECHO_N "(cached) $ECHO_C" >&6
18683 else
18684 ac_check_lib_save_LIBS=$LIBS
18685 LIBS="-lresolv $LIBS"
18686 cat >conftest.$ac_ext <<_ACEOF
18687 /* confdefs.h. */
18688 _ACEOF
18689 cat confdefs.h >>conftest.$ac_ext
18690 cat >>conftest.$ac_ext <<_ACEOF
18691 /* end confdefs.h. */
18693 /* Override any GCC internal prototype to avoid an error.
18694 Use char because int might match the return type of a GCC
18695 builtin and then its argument prototype would still apply. */
18696 #ifdef __cplusplus
18697 extern "C"
18698 #endif
18699 char inet_aton ();
18701 main ()
18703 return inet_aton ();
18705 return 0;
18707 _ACEOF
18708 rm -f conftest.$ac_objext conftest$ac_exeext
18709 if { (ac_try="$ac_link"
18710 case "(($ac_try" in
18711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18712 *) ac_try_echo=$ac_try;;
18713 esac
18714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18715 (eval "$ac_link") 2>conftest.er1
18716 ac_status=$?
18717 grep -v '^ *+' conftest.er1 >conftest.err
18718 rm -f conftest.er1
18719 cat conftest.err >&5
18720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18721 (exit $ac_status); } && {
18722 test -z "$ac_c_werror_flag" ||
18723 test ! -s conftest.err
18724 } && test -s conftest$ac_exeext &&
18725 $as_test_x conftest$ac_exeext; then
18726 ac_cv_lib_resolv_inet_aton=yes
18727 else
18728 echo "$as_me: failed program was:" >&5
18729 sed 's/^/| /' conftest.$ac_ext >&5
18731 ac_cv_lib_resolv_inet_aton=no
18734 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18735 conftest$ac_exeext conftest.$ac_ext
18736 LIBS=$ac_check_lib_save_LIBS
18738 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
18739 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
18740 if test $ac_cv_lib_resolv_inet_aton = yes; then
18741 cat >>confdefs.h <<_ACEOF
18742 #define HAVE_LIBRESOLV 1
18743 _ACEOF
18745 LIBS="-lresolv $LIBS"
18753 # On Tru64, chflags seems to be present, but calling it will
18754 # exit Python
18755 { echo "$as_me:$LINENO: checking for chflags" >&5
18756 echo $ECHO_N "checking for chflags... $ECHO_C" >&6; }
18757 if test "${ac_cv_have_chflags+set}" = set; then
18758 echo $ECHO_N "(cached) $ECHO_C" >&6
18759 else
18760 if test "$cross_compiling" = yes; then
18761 ac_cv_have_chflags=no
18762 else
18763 cat >conftest.$ac_ext <<_ACEOF
18764 /* confdefs.h. */
18765 _ACEOF
18766 cat confdefs.h >>conftest.$ac_ext
18767 cat >>conftest.$ac_ext <<_ACEOF
18768 /* end confdefs.h. */
18770 #include <sys/stat.h>
18771 #include <unistd.h>
18772 int main(int argc, char*argv[])
18774 if(chflags(argv[0], 0) != 0)
18775 return 1;
18776 return 0;
18779 _ACEOF
18780 rm -f conftest$ac_exeext
18781 if { (ac_try="$ac_link"
18782 case "(($ac_try" in
18783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18784 *) ac_try_echo=$ac_try;;
18785 esac
18786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18787 (eval "$ac_link") 2>&5
18788 ac_status=$?
18789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18790 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18791 { (case "(($ac_try" in
18792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18793 *) ac_try_echo=$ac_try;;
18794 esac
18795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18796 (eval "$ac_try") 2>&5
18797 ac_status=$?
18798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18799 (exit $ac_status); }; }; then
18800 ac_cv_have_chflags=yes
18801 else
18802 echo "$as_me: program exited with status $ac_status" >&5
18803 echo "$as_me: failed program was:" >&5
18804 sed 's/^/| /' conftest.$ac_ext >&5
18806 ( exit $ac_status )
18807 ac_cv_have_chflags=no
18809 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18816 { echo "$as_me:$LINENO: result: $ac_cv_have_chflags" >&5
18817 echo "${ECHO_T}$ac_cv_have_chflags" >&6; }
18818 if test $ac_cv_have_chflags = yes
18819 then
18821 cat >>confdefs.h <<\_ACEOF
18822 #define HAVE_CHFLAGS 1
18823 _ACEOF
18827 { echo "$as_me:$LINENO: checking for lchflags" >&5
18828 echo $ECHO_N "checking for lchflags... $ECHO_C" >&6; }
18829 if test "${ac_cv_have_lchflags+set}" = set; then
18830 echo $ECHO_N "(cached) $ECHO_C" >&6
18831 else
18832 if test "$cross_compiling" = yes; then
18833 ac_cv_have_lchflags=no
18834 else
18835 cat >conftest.$ac_ext <<_ACEOF
18836 /* confdefs.h. */
18837 _ACEOF
18838 cat confdefs.h >>conftest.$ac_ext
18839 cat >>conftest.$ac_ext <<_ACEOF
18840 /* end confdefs.h. */
18842 #include <sys/stat.h>
18843 #include <unistd.h>
18844 int main(int argc, char*argv[])
18846 if(lchflags(argv[0], 0) != 0)
18847 return 1;
18848 return 0;
18851 _ACEOF
18852 rm -f conftest$ac_exeext
18853 if { (ac_try="$ac_link"
18854 case "(($ac_try" in
18855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18856 *) ac_try_echo=$ac_try;;
18857 esac
18858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18859 (eval "$ac_link") 2>&5
18860 ac_status=$?
18861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18862 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18863 { (case "(($ac_try" in
18864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18865 *) ac_try_echo=$ac_try;;
18866 esac
18867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18868 (eval "$ac_try") 2>&5
18869 ac_status=$?
18870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18871 (exit $ac_status); }; }; then
18872 ac_cv_have_lchflags=yes
18873 else
18874 echo "$as_me: program exited with status $ac_status" >&5
18875 echo "$as_me: failed program was:" >&5
18876 sed 's/^/| /' conftest.$ac_ext >&5
18878 ( exit $ac_status )
18879 ac_cv_have_lchflags=no
18881 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18888 { echo "$as_me:$LINENO: result: $ac_cv_have_lchflags" >&5
18889 echo "${ECHO_T}$ac_cv_have_lchflags" >&6; }
18890 if test $ac_cv_have_lchflags = yes
18891 then
18893 cat >>confdefs.h <<\_ACEOF
18894 #define HAVE_LCHFLAGS 1
18895 _ACEOF
18899 case $ac_sys_system/$ac_sys_release in
18900 Darwin/*)
18901 _CUR_CFLAGS="${CFLAGS}"
18902 _CUR_LDFLAGS="${LDFLAGS}"
18903 CFLAGS="${CFLAGS} -Wl,-search_paths_first"
18904 LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib"
18906 esac
18908 { echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5
18909 echo $ECHO_N "checking for inflateCopy in -lz... $ECHO_C" >&6; }
18910 if test "${ac_cv_lib_z_inflateCopy+set}" = set; then
18911 echo $ECHO_N "(cached) $ECHO_C" >&6
18912 else
18913 ac_check_lib_save_LIBS=$LIBS
18914 LIBS="-lz $LIBS"
18915 cat >conftest.$ac_ext <<_ACEOF
18916 /* confdefs.h. */
18917 _ACEOF
18918 cat confdefs.h >>conftest.$ac_ext
18919 cat >>conftest.$ac_ext <<_ACEOF
18920 /* end confdefs.h. */
18922 /* Override any GCC internal prototype to avoid an error.
18923 Use char because int might match the return type of a GCC
18924 builtin and then its argument prototype would still apply. */
18925 #ifdef __cplusplus
18926 extern "C"
18927 #endif
18928 char inflateCopy ();
18930 main ()
18932 return inflateCopy ();
18934 return 0;
18936 _ACEOF
18937 rm -f conftest.$ac_objext conftest$ac_exeext
18938 if { (ac_try="$ac_link"
18939 case "(($ac_try" in
18940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18941 *) ac_try_echo=$ac_try;;
18942 esac
18943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18944 (eval "$ac_link") 2>conftest.er1
18945 ac_status=$?
18946 grep -v '^ *+' conftest.er1 >conftest.err
18947 rm -f conftest.er1
18948 cat conftest.err >&5
18949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18950 (exit $ac_status); } && {
18951 test -z "$ac_c_werror_flag" ||
18952 test ! -s conftest.err
18953 } && test -s conftest$ac_exeext &&
18954 $as_test_x conftest$ac_exeext; then
18955 ac_cv_lib_z_inflateCopy=yes
18956 else
18957 echo "$as_me: failed program was:" >&5
18958 sed 's/^/| /' conftest.$ac_ext >&5
18960 ac_cv_lib_z_inflateCopy=no
18963 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18964 conftest$ac_exeext conftest.$ac_ext
18965 LIBS=$ac_check_lib_save_LIBS
18967 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5
18968 echo "${ECHO_T}$ac_cv_lib_z_inflateCopy" >&6; }
18969 if test $ac_cv_lib_z_inflateCopy = yes; then
18971 cat >>confdefs.h <<\_ACEOF
18972 #define HAVE_ZLIB_COPY 1
18973 _ACEOF
18978 case $ac_sys_system/$ac_sys_release in
18979 Darwin/*)
18980 CFLAGS="${_CUR_CFLAGS}"
18981 LDFLAGS="${_CUR_LDFLAGS}"
18983 esac
18985 { echo "$as_me:$LINENO: checking for hstrerror" >&5
18986 echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6; }
18987 cat >conftest.$ac_ext <<_ACEOF
18988 /* confdefs.h. */
18989 _ACEOF
18990 cat confdefs.h >>conftest.$ac_ext
18991 cat >>conftest.$ac_ext <<_ACEOF
18992 /* end confdefs.h. */
18994 #include "confdefs.h"
18995 #include <netdb.h>
18998 main ()
19000 void* p = hstrerror; hstrerror(0)
19002 return 0;
19004 _ACEOF
19005 rm -f conftest.$ac_objext conftest$ac_exeext
19006 if { (ac_try="$ac_link"
19007 case "(($ac_try" in
19008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19009 *) ac_try_echo=$ac_try;;
19010 esac
19011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19012 (eval "$ac_link") 2>conftest.er1
19013 ac_status=$?
19014 grep -v '^ *+' conftest.er1 >conftest.err
19015 rm -f conftest.er1
19016 cat conftest.err >&5
19017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19018 (exit $ac_status); } && {
19019 test -z "$ac_c_werror_flag" ||
19020 test ! -s conftest.err
19021 } && test -s conftest$ac_exeext &&
19022 $as_test_x conftest$ac_exeext; then
19024 cat >>confdefs.h <<\_ACEOF
19025 #define HAVE_HSTRERROR 1
19026 _ACEOF
19028 { echo "$as_me:$LINENO: result: yes" >&5
19029 echo "${ECHO_T}yes" >&6; }
19030 else
19031 echo "$as_me: failed program was:" >&5
19032 sed 's/^/| /' conftest.$ac_ext >&5
19034 { echo "$as_me:$LINENO: result: no" >&5
19035 echo "${ECHO_T}no" >&6; }
19039 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19040 conftest$ac_exeext conftest.$ac_ext
19042 { echo "$as_me:$LINENO: checking for inet_aton" >&5
19043 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
19044 cat >conftest.$ac_ext <<_ACEOF
19045 /* confdefs.h. */
19046 _ACEOF
19047 cat confdefs.h >>conftest.$ac_ext
19048 cat >>conftest.$ac_ext <<_ACEOF
19049 /* end confdefs.h. */
19051 #include "confdefs.h"
19052 #include <sys/types.h>
19053 #include <sys/socket.h>
19054 #include <netinet/in.h>
19055 #include <arpa/inet.h>
19058 main ()
19060 void* p = inet_aton;inet_aton(0,0)
19062 return 0;
19064 _ACEOF
19065 rm -f conftest.$ac_objext conftest$ac_exeext
19066 if { (ac_try="$ac_link"
19067 case "(($ac_try" in
19068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19069 *) ac_try_echo=$ac_try;;
19070 esac
19071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19072 (eval "$ac_link") 2>conftest.er1
19073 ac_status=$?
19074 grep -v '^ *+' conftest.er1 >conftest.err
19075 rm -f conftest.er1
19076 cat conftest.err >&5
19077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19078 (exit $ac_status); } && {
19079 test -z "$ac_c_werror_flag" ||
19080 test ! -s conftest.err
19081 } && test -s conftest$ac_exeext &&
19082 $as_test_x conftest$ac_exeext; then
19084 cat >>confdefs.h <<\_ACEOF
19085 #define HAVE_INET_ATON 1
19086 _ACEOF
19088 { echo "$as_me:$LINENO: result: yes" >&5
19089 echo "${ECHO_T}yes" >&6; }
19090 else
19091 echo "$as_me: failed program was:" >&5
19092 sed 's/^/| /' conftest.$ac_ext >&5
19094 { echo "$as_me:$LINENO: result: no" >&5
19095 echo "${ECHO_T}no" >&6; }
19099 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19100 conftest$ac_exeext conftest.$ac_ext
19102 { echo "$as_me:$LINENO: checking for inet_pton" >&5
19103 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
19104 cat >conftest.$ac_ext <<_ACEOF
19105 /* confdefs.h. */
19106 _ACEOF
19107 cat confdefs.h >>conftest.$ac_ext
19108 cat >>conftest.$ac_ext <<_ACEOF
19109 /* end confdefs.h. */
19111 #include "confdefs.h"
19112 #include <sys/types.h>
19113 #include <sys/socket.h>
19114 #include <netinet/in.h>
19115 #include <arpa/inet.h>
19118 main ()
19120 void* p = inet_pton
19122 return 0;
19124 _ACEOF
19125 rm -f conftest.$ac_objext
19126 if { (ac_try="$ac_compile"
19127 case "(($ac_try" in
19128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19129 *) ac_try_echo=$ac_try;;
19130 esac
19131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19132 (eval "$ac_compile") 2>conftest.er1
19133 ac_status=$?
19134 grep -v '^ *+' conftest.er1 >conftest.err
19135 rm -f conftest.er1
19136 cat conftest.err >&5
19137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19138 (exit $ac_status); } && {
19139 test -z "$ac_c_werror_flag" ||
19140 test ! -s conftest.err
19141 } && test -s conftest.$ac_objext; then
19143 cat >>confdefs.h <<\_ACEOF
19144 #define HAVE_INET_PTON 1
19145 _ACEOF
19147 { echo "$as_me:$LINENO: result: yes" >&5
19148 echo "${ECHO_T}yes" >&6; }
19149 else
19150 echo "$as_me: failed program was:" >&5
19151 sed 's/^/| /' conftest.$ac_ext >&5
19153 { echo "$as_me:$LINENO: result: no" >&5
19154 echo "${ECHO_T}no" >&6; }
19158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19160 # On some systems, setgroups is in unistd.h, on others, in grp.h
19161 { echo "$as_me:$LINENO: checking for setgroups" >&5
19162 echo $ECHO_N "checking for setgroups... $ECHO_C" >&6; }
19163 cat >conftest.$ac_ext <<_ACEOF
19164 /* confdefs.h. */
19165 _ACEOF
19166 cat confdefs.h >>conftest.$ac_ext
19167 cat >>conftest.$ac_ext <<_ACEOF
19168 /* end confdefs.h. */
19170 #include "confdefs.h"
19171 #include <unistd.h>
19172 #ifdef HAVE_GRP_H
19173 #include <grp.h>
19174 #endif
19177 main ()
19179 void* p = setgroups
19181 return 0;
19183 _ACEOF
19184 rm -f conftest.$ac_objext
19185 if { (ac_try="$ac_compile"
19186 case "(($ac_try" in
19187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19188 *) ac_try_echo=$ac_try;;
19189 esac
19190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19191 (eval "$ac_compile") 2>conftest.er1
19192 ac_status=$?
19193 grep -v '^ *+' conftest.er1 >conftest.err
19194 rm -f conftest.er1
19195 cat conftest.err >&5
19196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19197 (exit $ac_status); } && {
19198 test -z "$ac_c_werror_flag" ||
19199 test ! -s conftest.err
19200 } && test -s conftest.$ac_objext; then
19202 cat >>confdefs.h <<\_ACEOF
19203 #define HAVE_SETGROUPS 1
19204 _ACEOF
19206 { echo "$as_me:$LINENO: result: yes" >&5
19207 echo "${ECHO_T}yes" >&6; }
19208 else
19209 echo "$as_me: failed program was:" >&5
19210 sed 's/^/| /' conftest.$ac_ext >&5
19212 { echo "$as_me:$LINENO: result: no" >&5
19213 echo "${ECHO_T}no" >&6; }
19217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19219 # check for openpty and forkpty
19222 for ac_func in openpty
19224 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19225 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19226 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19227 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19228 echo $ECHO_N "(cached) $ECHO_C" >&6
19229 else
19230 cat >conftest.$ac_ext <<_ACEOF
19231 /* confdefs.h. */
19232 _ACEOF
19233 cat confdefs.h >>conftest.$ac_ext
19234 cat >>conftest.$ac_ext <<_ACEOF
19235 /* end confdefs.h. */
19236 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19237 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19238 #define $ac_func innocuous_$ac_func
19240 /* System header to define __stub macros and hopefully few prototypes,
19241 which can conflict with char $ac_func (); below.
19242 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19243 <limits.h> exists even on freestanding compilers. */
19245 #ifdef __STDC__
19246 # include <limits.h>
19247 #else
19248 # include <assert.h>
19249 #endif
19251 #undef $ac_func
19253 /* Override any GCC internal prototype to avoid an error.
19254 Use char because int might match the return type of a GCC
19255 builtin and then its argument prototype would still apply. */
19256 #ifdef __cplusplus
19257 extern "C"
19258 #endif
19259 char $ac_func ();
19260 /* The GNU C library defines this for functions which it implements
19261 to always fail with ENOSYS. Some functions are actually named
19262 something starting with __ and the normal name is an alias. */
19263 #if defined __stub_$ac_func || defined __stub___$ac_func
19264 choke me
19265 #endif
19268 main ()
19270 return $ac_func ();
19272 return 0;
19274 _ACEOF
19275 rm -f conftest.$ac_objext conftest$ac_exeext
19276 if { (ac_try="$ac_link"
19277 case "(($ac_try" in
19278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19279 *) ac_try_echo=$ac_try;;
19280 esac
19281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19282 (eval "$ac_link") 2>conftest.er1
19283 ac_status=$?
19284 grep -v '^ *+' conftest.er1 >conftest.err
19285 rm -f conftest.er1
19286 cat conftest.err >&5
19287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19288 (exit $ac_status); } && {
19289 test -z "$ac_c_werror_flag" ||
19290 test ! -s conftest.err
19291 } && test -s conftest$ac_exeext &&
19292 $as_test_x conftest$ac_exeext; then
19293 eval "$as_ac_var=yes"
19294 else
19295 echo "$as_me: failed program was:" >&5
19296 sed 's/^/| /' conftest.$ac_ext >&5
19298 eval "$as_ac_var=no"
19301 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19302 conftest$ac_exeext conftest.$ac_ext
19304 ac_res=`eval echo '${'$as_ac_var'}'`
19305 { echo "$as_me:$LINENO: result: $ac_res" >&5
19306 echo "${ECHO_T}$ac_res" >&6; }
19307 if test `eval echo '${'$as_ac_var'}'` = yes; then
19308 cat >>confdefs.h <<_ACEOF
19309 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19310 _ACEOF
19312 else
19313 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
19314 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
19315 if test "${ac_cv_lib_util_openpty+set}" = set; then
19316 echo $ECHO_N "(cached) $ECHO_C" >&6
19317 else
19318 ac_check_lib_save_LIBS=$LIBS
19319 LIBS="-lutil $LIBS"
19320 cat >conftest.$ac_ext <<_ACEOF
19321 /* confdefs.h. */
19322 _ACEOF
19323 cat confdefs.h >>conftest.$ac_ext
19324 cat >>conftest.$ac_ext <<_ACEOF
19325 /* end confdefs.h. */
19327 /* Override any GCC internal prototype to avoid an error.
19328 Use char because int might match the return type of a GCC
19329 builtin and then its argument prototype would still apply. */
19330 #ifdef __cplusplus
19331 extern "C"
19332 #endif
19333 char openpty ();
19335 main ()
19337 return openpty ();
19339 return 0;
19341 _ACEOF
19342 rm -f conftest.$ac_objext conftest$ac_exeext
19343 if { (ac_try="$ac_link"
19344 case "(($ac_try" in
19345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19346 *) ac_try_echo=$ac_try;;
19347 esac
19348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19349 (eval "$ac_link") 2>conftest.er1
19350 ac_status=$?
19351 grep -v '^ *+' conftest.er1 >conftest.err
19352 rm -f conftest.er1
19353 cat conftest.err >&5
19354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19355 (exit $ac_status); } && {
19356 test -z "$ac_c_werror_flag" ||
19357 test ! -s conftest.err
19358 } && test -s conftest$ac_exeext &&
19359 $as_test_x conftest$ac_exeext; then
19360 ac_cv_lib_util_openpty=yes
19361 else
19362 echo "$as_me: failed program was:" >&5
19363 sed 's/^/| /' conftest.$ac_ext >&5
19365 ac_cv_lib_util_openpty=no
19368 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19369 conftest$ac_exeext conftest.$ac_ext
19370 LIBS=$ac_check_lib_save_LIBS
19372 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
19373 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
19374 if test $ac_cv_lib_util_openpty = yes; then
19375 cat >>confdefs.h <<\_ACEOF
19376 #define HAVE_OPENPTY 1
19377 _ACEOF
19378 LIBS="$LIBS -lutil"
19379 else
19380 { echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
19381 echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6; }
19382 if test "${ac_cv_lib_bsd_openpty+set}" = set; then
19383 echo $ECHO_N "(cached) $ECHO_C" >&6
19384 else
19385 ac_check_lib_save_LIBS=$LIBS
19386 LIBS="-lbsd $LIBS"
19387 cat >conftest.$ac_ext <<_ACEOF
19388 /* confdefs.h. */
19389 _ACEOF
19390 cat confdefs.h >>conftest.$ac_ext
19391 cat >>conftest.$ac_ext <<_ACEOF
19392 /* end confdefs.h. */
19394 /* Override any GCC internal prototype to avoid an error.
19395 Use char because int might match the return type of a GCC
19396 builtin and then its argument prototype would still apply. */
19397 #ifdef __cplusplus
19398 extern "C"
19399 #endif
19400 char openpty ();
19402 main ()
19404 return openpty ();
19406 return 0;
19408 _ACEOF
19409 rm -f conftest.$ac_objext conftest$ac_exeext
19410 if { (ac_try="$ac_link"
19411 case "(($ac_try" in
19412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19413 *) ac_try_echo=$ac_try;;
19414 esac
19415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19416 (eval "$ac_link") 2>conftest.er1
19417 ac_status=$?
19418 grep -v '^ *+' conftest.er1 >conftest.err
19419 rm -f conftest.er1
19420 cat conftest.err >&5
19421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19422 (exit $ac_status); } && {
19423 test -z "$ac_c_werror_flag" ||
19424 test ! -s conftest.err
19425 } && test -s conftest$ac_exeext &&
19426 $as_test_x conftest$ac_exeext; then
19427 ac_cv_lib_bsd_openpty=yes
19428 else
19429 echo "$as_me: failed program was:" >&5
19430 sed 's/^/| /' conftest.$ac_ext >&5
19432 ac_cv_lib_bsd_openpty=no
19435 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19436 conftest$ac_exeext conftest.$ac_ext
19437 LIBS=$ac_check_lib_save_LIBS
19439 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
19440 echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6; }
19441 if test $ac_cv_lib_bsd_openpty = yes; then
19442 cat >>confdefs.h <<\_ACEOF
19443 #define HAVE_OPENPTY 1
19444 _ACEOF
19445 LIBS="$LIBS -lbsd"
19453 done
19456 for ac_func in forkpty
19458 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19459 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19460 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19461 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19462 echo $ECHO_N "(cached) $ECHO_C" >&6
19463 else
19464 cat >conftest.$ac_ext <<_ACEOF
19465 /* confdefs.h. */
19466 _ACEOF
19467 cat confdefs.h >>conftest.$ac_ext
19468 cat >>conftest.$ac_ext <<_ACEOF
19469 /* end confdefs.h. */
19470 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19471 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19472 #define $ac_func innocuous_$ac_func
19474 /* System header to define __stub macros and hopefully few prototypes,
19475 which can conflict with char $ac_func (); below.
19476 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19477 <limits.h> exists even on freestanding compilers. */
19479 #ifdef __STDC__
19480 # include <limits.h>
19481 #else
19482 # include <assert.h>
19483 #endif
19485 #undef $ac_func
19487 /* Override any GCC internal prototype to avoid an error.
19488 Use char because int might match the return type of a GCC
19489 builtin and then its argument prototype would still apply. */
19490 #ifdef __cplusplus
19491 extern "C"
19492 #endif
19493 char $ac_func ();
19494 /* The GNU C library defines this for functions which it implements
19495 to always fail with ENOSYS. Some functions are actually named
19496 something starting with __ and the normal name is an alias. */
19497 #if defined __stub_$ac_func || defined __stub___$ac_func
19498 choke me
19499 #endif
19502 main ()
19504 return $ac_func ();
19506 return 0;
19508 _ACEOF
19509 rm -f conftest.$ac_objext conftest$ac_exeext
19510 if { (ac_try="$ac_link"
19511 case "(($ac_try" in
19512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19513 *) ac_try_echo=$ac_try;;
19514 esac
19515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19516 (eval "$ac_link") 2>conftest.er1
19517 ac_status=$?
19518 grep -v '^ *+' conftest.er1 >conftest.err
19519 rm -f conftest.er1
19520 cat conftest.err >&5
19521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19522 (exit $ac_status); } && {
19523 test -z "$ac_c_werror_flag" ||
19524 test ! -s conftest.err
19525 } && test -s conftest$ac_exeext &&
19526 $as_test_x conftest$ac_exeext; then
19527 eval "$as_ac_var=yes"
19528 else
19529 echo "$as_me: failed program was:" >&5
19530 sed 's/^/| /' conftest.$ac_ext >&5
19532 eval "$as_ac_var=no"
19535 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19536 conftest$ac_exeext conftest.$ac_ext
19538 ac_res=`eval echo '${'$as_ac_var'}'`
19539 { echo "$as_me:$LINENO: result: $ac_res" >&5
19540 echo "${ECHO_T}$ac_res" >&6; }
19541 if test `eval echo '${'$as_ac_var'}'` = yes; then
19542 cat >>confdefs.h <<_ACEOF
19543 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19544 _ACEOF
19546 else
19547 { echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
19548 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6; }
19549 if test "${ac_cv_lib_util_forkpty+set}" = set; then
19550 echo $ECHO_N "(cached) $ECHO_C" >&6
19551 else
19552 ac_check_lib_save_LIBS=$LIBS
19553 LIBS="-lutil $LIBS"
19554 cat >conftest.$ac_ext <<_ACEOF
19555 /* confdefs.h. */
19556 _ACEOF
19557 cat confdefs.h >>conftest.$ac_ext
19558 cat >>conftest.$ac_ext <<_ACEOF
19559 /* end confdefs.h. */
19561 /* Override any GCC internal prototype to avoid an error.
19562 Use char because int might match the return type of a GCC
19563 builtin and then its argument prototype would still apply. */
19564 #ifdef __cplusplus
19565 extern "C"
19566 #endif
19567 char forkpty ();
19569 main ()
19571 return forkpty ();
19573 return 0;
19575 _ACEOF
19576 rm -f conftest.$ac_objext conftest$ac_exeext
19577 if { (ac_try="$ac_link"
19578 case "(($ac_try" in
19579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19580 *) ac_try_echo=$ac_try;;
19581 esac
19582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19583 (eval "$ac_link") 2>conftest.er1
19584 ac_status=$?
19585 grep -v '^ *+' conftest.er1 >conftest.err
19586 rm -f conftest.er1
19587 cat conftest.err >&5
19588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19589 (exit $ac_status); } && {
19590 test -z "$ac_c_werror_flag" ||
19591 test ! -s conftest.err
19592 } && test -s conftest$ac_exeext &&
19593 $as_test_x conftest$ac_exeext; then
19594 ac_cv_lib_util_forkpty=yes
19595 else
19596 echo "$as_me: failed program was:" >&5
19597 sed 's/^/| /' conftest.$ac_ext >&5
19599 ac_cv_lib_util_forkpty=no
19602 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19603 conftest$ac_exeext conftest.$ac_ext
19604 LIBS=$ac_check_lib_save_LIBS
19606 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
19607 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6; }
19608 if test $ac_cv_lib_util_forkpty = yes; then
19609 cat >>confdefs.h <<\_ACEOF
19610 #define HAVE_FORKPTY 1
19611 _ACEOF
19612 LIBS="$LIBS -lutil"
19613 else
19614 { echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
19615 echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6; }
19616 if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
19617 echo $ECHO_N "(cached) $ECHO_C" >&6
19618 else
19619 ac_check_lib_save_LIBS=$LIBS
19620 LIBS="-lbsd $LIBS"
19621 cat >conftest.$ac_ext <<_ACEOF
19622 /* confdefs.h. */
19623 _ACEOF
19624 cat confdefs.h >>conftest.$ac_ext
19625 cat >>conftest.$ac_ext <<_ACEOF
19626 /* end confdefs.h. */
19628 /* Override any GCC internal prototype to avoid an error.
19629 Use char because int might match the return type of a GCC
19630 builtin and then its argument prototype would still apply. */
19631 #ifdef __cplusplus
19632 extern "C"
19633 #endif
19634 char forkpty ();
19636 main ()
19638 return forkpty ();
19640 return 0;
19642 _ACEOF
19643 rm -f conftest.$ac_objext conftest$ac_exeext
19644 if { (ac_try="$ac_link"
19645 case "(($ac_try" in
19646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19647 *) ac_try_echo=$ac_try;;
19648 esac
19649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19650 (eval "$ac_link") 2>conftest.er1
19651 ac_status=$?
19652 grep -v '^ *+' conftest.er1 >conftest.err
19653 rm -f conftest.er1
19654 cat conftest.err >&5
19655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19656 (exit $ac_status); } && {
19657 test -z "$ac_c_werror_flag" ||
19658 test ! -s conftest.err
19659 } && test -s conftest$ac_exeext &&
19660 $as_test_x conftest$ac_exeext; then
19661 ac_cv_lib_bsd_forkpty=yes
19662 else
19663 echo "$as_me: failed program was:" >&5
19664 sed 's/^/| /' conftest.$ac_ext >&5
19666 ac_cv_lib_bsd_forkpty=no
19669 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19670 conftest$ac_exeext conftest.$ac_ext
19671 LIBS=$ac_check_lib_save_LIBS
19673 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
19674 echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6; }
19675 if test $ac_cv_lib_bsd_forkpty = yes; then
19676 cat >>confdefs.h <<\_ACEOF
19677 #define HAVE_FORKPTY 1
19678 _ACEOF
19679 LIBS="$LIBS -lbsd"
19687 done
19690 # Stuff for expat.
19692 for ac_func in memmove
19694 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19695 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19696 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19697 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19698 echo $ECHO_N "(cached) $ECHO_C" >&6
19699 else
19700 cat >conftest.$ac_ext <<_ACEOF
19701 /* confdefs.h. */
19702 _ACEOF
19703 cat confdefs.h >>conftest.$ac_ext
19704 cat >>conftest.$ac_ext <<_ACEOF
19705 /* end confdefs.h. */
19706 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19707 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19708 #define $ac_func innocuous_$ac_func
19710 /* System header to define __stub macros and hopefully few prototypes,
19711 which can conflict with char $ac_func (); below.
19712 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19713 <limits.h> exists even on freestanding compilers. */
19715 #ifdef __STDC__
19716 # include <limits.h>
19717 #else
19718 # include <assert.h>
19719 #endif
19721 #undef $ac_func
19723 /* Override any GCC internal prototype to avoid an error.
19724 Use char because int might match the return type of a GCC
19725 builtin and then its argument prototype would still apply. */
19726 #ifdef __cplusplus
19727 extern "C"
19728 #endif
19729 char $ac_func ();
19730 /* The GNU C library defines this for functions which it implements
19731 to always fail with ENOSYS. Some functions are actually named
19732 something starting with __ and the normal name is an alias. */
19733 #if defined __stub_$ac_func || defined __stub___$ac_func
19734 choke me
19735 #endif
19738 main ()
19740 return $ac_func ();
19742 return 0;
19744 _ACEOF
19745 rm -f conftest.$ac_objext conftest$ac_exeext
19746 if { (ac_try="$ac_link"
19747 case "(($ac_try" in
19748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19749 *) ac_try_echo=$ac_try;;
19750 esac
19751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19752 (eval "$ac_link") 2>conftest.er1
19753 ac_status=$?
19754 grep -v '^ *+' conftest.er1 >conftest.err
19755 rm -f conftest.er1
19756 cat conftest.err >&5
19757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19758 (exit $ac_status); } && {
19759 test -z "$ac_c_werror_flag" ||
19760 test ! -s conftest.err
19761 } && test -s conftest$ac_exeext &&
19762 $as_test_x conftest$ac_exeext; then
19763 eval "$as_ac_var=yes"
19764 else
19765 echo "$as_me: failed program was:" >&5
19766 sed 's/^/| /' conftest.$ac_ext >&5
19768 eval "$as_ac_var=no"
19771 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19772 conftest$ac_exeext conftest.$ac_ext
19774 ac_res=`eval echo '${'$as_ac_var'}'`
19775 { echo "$as_me:$LINENO: result: $ac_res" >&5
19776 echo "${ECHO_T}$ac_res" >&6; }
19777 if test `eval echo '${'$as_ac_var'}'` = yes; then
19778 cat >>confdefs.h <<_ACEOF
19779 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19780 _ACEOF
19783 done
19786 # check for long file support functions
19793 for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs
19795 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19796 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19797 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19798 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19799 echo $ECHO_N "(cached) $ECHO_C" >&6
19800 else
19801 cat >conftest.$ac_ext <<_ACEOF
19802 /* confdefs.h. */
19803 _ACEOF
19804 cat confdefs.h >>conftest.$ac_ext
19805 cat >>conftest.$ac_ext <<_ACEOF
19806 /* end confdefs.h. */
19807 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19808 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19809 #define $ac_func innocuous_$ac_func
19811 /* System header to define __stub macros and hopefully few prototypes,
19812 which can conflict with char $ac_func (); below.
19813 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19814 <limits.h> exists even on freestanding compilers. */
19816 #ifdef __STDC__
19817 # include <limits.h>
19818 #else
19819 # include <assert.h>
19820 #endif
19822 #undef $ac_func
19824 /* Override any GCC internal prototype to avoid an error.
19825 Use char because int might match the return type of a GCC
19826 builtin and then its argument prototype would still apply. */
19827 #ifdef __cplusplus
19828 extern "C"
19829 #endif
19830 char $ac_func ();
19831 /* The GNU C library defines this for functions which it implements
19832 to always fail with ENOSYS. Some functions are actually named
19833 something starting with __ and the normal name is an alias. */
19834 #if defined __stub_$ac_func || defined __stub___$ac_func
19835 choke me
19836 #endif
19839 main ()
19841 return $ac_func ();
19843 return 0;
19845 _ACEOF
19846 rm -f conftest.$ac_objext conftest$ac_exeext
19847 if { (ac_try="$ac_link"
19848 case "(($ac_try" in
19849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19850 *) ac_try_echo=$ac_try;;
19851 esac
19852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19853 (eval "$ac_link") 2>conftest.er1
19854 ac_status=$?
19855 grep -v '^ *+' conftest.er1 >conftest.err
19856 rm -f conftest.er1
19857 cat conftest.err >&5
19858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19859 (exit $ac_status); } && {
19860 test -z "$ac_c_werror_flag" ||
19861 test ! -s conftest.err
19862 } && test -s conftest$ac_exeext &&
19863 $as_test_x conftest$ac_exeext; then
19864 eval "$as_ac_var=yes"
19865 else
19866 echo "$as_me: failed program was:" >&5
19867 sed 's/^/| /' conftest.$ac_ext >&5
19869 eval "$as_ac_var=no"
19872 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19873 conftest$ac_exeext conftest.$ac_ext
19875 ac_res=`eval echo '${'$as_ac_var'}'`
19876 { echo "$as_me:$LINENO: result: $ac_res" >&5
19877 echo "${ECHO_T}$ac_res" >&6; }
19878 if test `eval echo '${'$as_ac_var'}'` = yes; then
19879 cat >>confdefs.h <<_ACEOF
19880 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19881 _ACEOF
19884 done
19890 for ac_func in dup2 getcwd strdup
19892 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19893 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19894 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19895 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19896 echo $ECHO_N "(cached) $ECHO_C" >&6
19897 else
19898 cat >conftest.$ac_ext <<_ACEOF
19899 /* confdefs.h. */
19900 _ACEOF
19901 cat confdefs.h >>conftest.$ac_ext
19902 cat >>conftest.$ac_ext <<_ACEOF
19903 /* end confdefs.h. */
19904 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19905 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19906 #define $ac_func innocuous_$ac_func
19908 /* System header to define __stub macros and hopefully few prototypes,
19909 which can conflict with char $ac_func (); below.
19910 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19911 <limits.h> exists even on freestanding compilers. */
19913 #ifdef __STDC__
19914 # include <limits.h>
19915 #else
19916 # include <assert.h>
19917 #endif
19919 #undef $ac_func
19921 /* Override any GCC internal prototype to avoid an error.
19922 Use char because int might match the return type of a GCC
19923 builtin and then its argument prototype would still apply. */
19924 #ifdef __cplusplus
19925 extern "C"
19926 #endif
19927 char $ac_func ();
19928 /* The GNU C library defines this for functions which it implements
19929 to always fail with ENOSYS. Some functions are actually named
19930 something starting with __ and the normal name is an alias. */
19931 #if defined __stub_$ac_func || defined __stub___$ac_func
19932 choke me
19933 #endif
19936 main ()
19938 return $ac_func ();
19940 return 0;
19942 _ACEOF
19943 rm -f conftest.$ac_objext conftest$ac_exeext
19944 if { (ac_try="$ac_link"
19945 case "(($ac_try" in
19946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19947 *) ac_try_echo=$ac_try;;
19948 esac
19949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19950 (eval "$ac_link") 2>conftest.er1
19951 ac_status=$?
19952 grep -v '^ *+' conftest.er1 >conftest.err
19953 rm -f conftest.er1
19954 cat conftest.err >&5
19955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19956 (exit $ac_status); } && {
19957 test -z "$ac_c_werror_flag" ||
19958 test ! -s conftest.err
19959 } && test -s conftest$ac_exeext &&
19960 $as_test_x conftest$ac_exeext; then
19961 eval "$as_ac_var=yes"
19962 else
19963 echo "$as_me: failed program was:" >&5
19964 sed 's/^/| /' conftest.$ac_ext >&5
19966 eval "$as_ac_var=no"
19969 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19970 conftest$ac_exeext conftest.$ac_ext
19972 ac_res=`eval echo '${'$as_ac_var'}'`
19973 { echo "$as_me:$LINENO: result: $ac_res" >&5
19974 echo "${ECHO_T}$ac_res" >&6; }
19975 if test `eval echo '${'$as_ac_var'}'` = yes; then
19976 cat >>confdefs.h <<_ACEOF
19977 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19978 _ACEOF
19980 else
19981 case " $LIBOBJS " in
19982 *" $ac_func.$ac_objext "* ) ;;
19983 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
19985 esac
19988 done
19992 for ac_func in getpgrp
19994 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19995 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19996 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19997 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19998 echo $ECHO_N "(cached) $ECHO_C" >&6
19999 else
20000 cat >conftest.$ac_ext <<_ACEOF
20001 /* confdefs.h. */
20002 _ACEOF
20003 cat confdefs.h >>conftest.$ac_ext
20004 cat >>conftest.$ac_ext <<_ACEOF
20005 /* end confdefs.h. */
20006 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20007 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20008 #define $ac_func innocuous_$ac_func
20010 /* System header to define __stub macros and hopefully few prototypes,
20011 which can conflict with char $ac_func (); below.
20012 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20013 <limits.h> exists even on freestanding compilers. */
20015 #ifdef __STDC__
20016 # include <limits.h>
20017 #else
20018 # include <assert.h>
20019 #endif
20021 #undef $ac_func
20023 /* Override any GCC internal prototype to avoid an error.
20024 Use char because int might match the return type of a GCC
20025 builtin and then its argument prototype would still apply. */
20026 #ifdef __cplusplus
20027 extern "C"
20028 #endif
20029 char $ac_func ();
20030 /* The GNU C library defines this for functions which it implements
20031 to always fail with ENOSYS. Some functions are actually named
20032 something starting with __ and the normal name is an alias. */
20033 #if defined __stub_$ac_func || defined __stub___$ac_func
20034 choke me
20035 #endif
20038 main ()
20040 return $ac_func ();
20042 return 0;
20044 _ACEOF
20045 rm -f conftest.$ac_objext conftest$ac_exeext
20046 if { (ac_try="$ac_link"
20047 case "(($ac_try" in
20048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20049 *) ac_try_echo=$ac_try;;
20050 esac
20051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20052 (eval "$ac_link") 2>conftest.er1
20053 ac_status=$?
20054 grep -v '^ *+' conftest.er1 >conftest.err
20055 rm -f conftest.er1
20056 cat conftest.err >&5
20057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20058 (exit $ac_status); } && {
20059 test -z "$ac_c_werror_flag" ||
20060 test ! -s conftest.err
20061 } && test -s conftest$ac_exeext &&
20062 $as_test_x conftest$ac_exeext; then
20063 eval "$as_ac_var=yes"
20064 else
20065 echo "$as_me: failed program was:" >&5
20066 sed 's/^/| /' conftest.$ac_ext >&5
20068 eval "$as_ac_var=no"
20071 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20072 conftest$ac_exeext conftest.$ac_ext
20074 ac_res=`eval echo '${'$as_ac_var'}'`
20075 { echo "$as_me:$LINENO: result: $ac_res" >&5
20076 echo "${ECHO_T}$ac_res" >&6; }
20077 if test `eval echo '${'$as_ac_var'}'` = yes; then
20078 cat >>confdefs.h <<_ACEOF
20079 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20080 _ACEOF
20081 cat >conftest.$ac_ext <<_ACEOF
20082 /* confdefs.h. */
20083 _ACEOF
20084 cat confdefs.h >>conftest.$ac_ext
20085 cat >>conftest.$ac_ext <<_ACEOF
20086 /* end confdefs.h. */
20087 #include <unistd.h>
20089 main ()
20091 getpgrp(0);
20093 return 0;
20095 _ACEOF
20096 rm -f conftest.$ac_objext
20097 if { (ac_try="$ac_compile"
20098 case "(($ac_try" in
20099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20100 *) ac_try_echo=$ac_try;;
20101 esac
20102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20103 (eval "$ac_compile") 2>conftest.er1
20104 ac_status=$?
20105 grep -v '^ *+' conftest.er1 >conftest.err
20106 rm -f conftest.er1
20107 cat conftest.err >&5
20108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20109 (exit $ac_status); } && {
20110 test -z "$ac_c_werror_flag" ||
20111 test ! -s conftest.err
20112 } && test -s conftest.$ac_objext; then
20114 cat >>confdefs.h <<\_ACEOF
20115 #define GETPGRP_HAVE_ARG 1
20116 _ACEOF
20119 else
20120 echo "$as_me: failed program was:" >&5
20121 sed 's/^/| /' conftest.$ac_ext >&5
20126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20129 done
20132 for ac_func in setpgrp
20134 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20135 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20136 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20137 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20138 echo $ECHO_N "(cached) $ECHO_C" >&6
20139 else
20140 cat >conftest.$ac_ext <<_ACEOF
20141 /* confdefs.h. */
20142 _ACEOF
20143 cat confdefs.h >>conftest.$ac_ext
20144 cat >>conftest.$ac_ext <<_ACEOF
20145 /* end confdefs.h. */
20146 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20147 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20148 #define $ac_func innocuous_$ac_func
20150 /* System header to define __stub macros and hopefully few prototypes,
20151 which can conflict with char $ac_func (); below.
20152 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20153 <limits.h> exists even on freestanding compilers. */
20155 #ifdef __STDC__
20156 # include <limits.h>
20157 #else
20158 # include <assert.h>
20159 #endif
20161 #undef $ac_func
20163 /* Override any GCC internal prototype to avoid an error.
20164 Use char because int might match the return type of a GCC
20165 builtin and then its argument prototype would still apply. */
20166 #ifdef __cplusplus
20167 extern "C"
20168 #endif
20169 char $ac_func ();
20170 /* The GNU C library defines this for functions which it implements
20171 to always fail with ENOSYS. Some functions are actually named
20172 something starting with __ and the normal name is an alias. */
20173 #if defined __stub_$ac_func || defined __stub___$ac_func
20174 choke me
20175 #endif
20178 main ()
20180 return $ac_func ();
20182 return 0;
20184 _ACEOF
20185 rm -f conftest.$ac_objext conftest$ac_exeext
20186 if { (ac_try="$ac_link"
20187 case "(($ac_try" in
20188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20189 *) ac_try_echo=$ac_try;;
20190 esac
20191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20192 (eval "$ac_link") 2>conftest.er1
20193 ac_status=$?
20194 grep -v '^ *+' conftest.er1 >conftest.err
20195 rm -f conftest.er1
20196 cat conftest.err >&5
20197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20198 (exit $ac_status); } && {
20199 test -z "$ac_c_werror_flag" ||
20200 test ! -s conftest.err
20201 } && test -s conftest$ac_exeext &&
20202 $as_test_x conftest$ac_exeext; then
20203 eval "$as_ac_var=yes"
20204 else
20205 echo "$as_me: failed program was:" >&5
20206 sed 's/^/| /' conftest.$ac_ext >&5
20208 eval "$as_ac_var=no"
20211 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20212 conftest$ac_exeext conftest.$ac_ext
20214 ac_res=`eval echo '${'$as_ac_var'}'`
20215 { echo "$as_me:$LINENO: result: $ac_res" >&5
20216 echo "${ECHO_T}$ac_res" >&6; }
20217 if test `eval echo '${'$as_ac_var'}'` = yes; then
20218 cat >>confdefs.h <<_ACEOF
20219 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20220 _ACEOF
20221 cat >conftest.$ac_ext <<_ACEOF
20222 /* confdefs.h. */
20223 _ACEOF
20224 cat confdefs.h >>conftest.$ac_ext
20225 cat >>conftest.$ac_ext <<_ACEOF
20226 /* end confdefs.h. */
20227 #include <unistd.h>
20229 main ()
20231 setpgrp(0,0);
20233 return 0;
20235 _ACEOF
20236 rm -f conftest.$ac_objext
20237 if { (ac_try="$ac_compile"
20238 case "(($ac_try" in
20239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20240 *) ac_try_echo=$ac_try;;
20241 esac
20242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20243 (eval "$ac_compile") 2>conftest.er1
20244 ac_status=$?
20245 grep -v '^ *+' conftest.er1 >conftest.err
20246 rm -f conftest.er1
20247 cat conftest.err >&5
20248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20249 (exit $ac_status); } && {
20250 test -z "$ac_c_werror_flag" ||
20251 test ! -s conftest.err
20252 } && test -s conftest.$ac_objext; then
20254 cat >>confdefs.h <<\_ACEOF
20255 #define SETPGRP_HAVE_ARG 1
20256 _ACEOF
20259 else
20260 echo "$as_me: failed program was:" >&5
20261 sed 's/^/| /' conftest.$ac_ext >&5
20266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20269 done
20272 for ac_func in gettimeofday
20274 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20275 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20276 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20277 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20278 echo $ECHO_N "(cached) $ECHO_C" >&6
20279 else
20280 cat >conftest.$ac_ext <<_ACEOF
20281 /* confdefs.h. */
20282 _ACEOF
20283 cat confdefs.h >>conftest.$ac_ext
20284 cat >>conftest.$ac_ext <<_ACEOF
20285 /* end confdefs.h. */
20286 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20287 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20288 #define $ac_func innocuous_$ac_func
20290 /* System header to define __stub macros and hopefully few prototypes,
20291 which can conflict with char $ac_func (); below.
20292 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20293 <limits.h> exists even on freestanding compilers. */
20295 #ifdef __STDC__
20296 # include <limits.h>
20297 #else
20298 # include <assert.h>
20299 #endif
20301 #undef $ac_func
20303 /* Override any GCC internal prototype to avoid an error.
20304 Use char because int might match the return type of a GCC
20305 builtin and then its argument prototype would still apply. */
20306 #ifdef __cplusplus
20307 extern "C"
20308 #endif
20309 char $ac_func ();
20310 /* The GNU C library defines this for functions which it implements
20311 to always fail with ENOSYS. Some functions are actually named
20312 something starting with __ and the normal name is an alias. */
20313 #if defined __stub_$ac_func || defined __stub___$ac_func
20314 choke me
20315 #endif
20318 main ()
20320 return $ac_func ();
20322 return 0;
20324 _ACEOF
20325 rm -f conftest.$ac_objext conftest$ac_exeext
20326 if { (ac_try="$ac_link"
20327 case "(($ac_try" in
20328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20329 *) ac_try_echo=$ac_try;;
20330 esac
20331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20332 (eval "$ac_link") 2>conftest.er1
20333 ac_status=$?
20334 grep -v '^ *+' conftest.er1 >conftest.err
20335 rm -f conftest.er1
20336 cat conftest.err >&5
20337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20338 (exit $ac_status); } && {
20339 test -z "$ac_c_werror_flag" ||
20340 test ! -s conftest.err
20341 } && test -s conftest$ac_exeext &&
20342 $as_test_x conftest$ac_exeext; then
20343 eval "$as_ac_var=yes"
20344 else
20345 echo "$as_me: failed program was:" >&5
20346 sed 's/^/| /' conftest.$ac_ext >&5
20348 eval "$as_ac_var=no"
20351 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20352 conftest$ac_exeext conftest.$ac_ext
20354 ac_res=`eval echo '${'$as_ac_var'}'`
20355 { echo "$as_me:$LINENO: result: $ac_res" >&5
20356 echo "${ECHO_T}$ac_res" >&6; }
20357 if test `eval echo '${'$as_ac_var'}'` = yes; then
20358 cat >>confdefs.h <<_ACEOF
20359 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20360 _ACEOF
20361 cat >conftest.$ac_ext <<_ACEOF
20362 /* confdefs.h. */
20363 _ACEOF
20364 cat confdefs.h >>conftest.$ac_ext
20365 cat >>conftest.$ac_ext <<_ACEOF
20366 /* end confdefs.h. */
20367 #include <sys/time.h>
20369 main ()
20371 gettimeofday((struct timeval*)0,(struct timezone*)0);
20373 return 0;
20375 _ACEOF
20376 rm -f conftest.$ac_objext
20377 if { (ac_try="$ac_compile"
20378 case "(($ac_try" in
20379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20380 *) ac_try_echo=$ac_try;;
20381 esac
20382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20383 (eval "$ac_compile") 2>conftest.er1
20384 ac_status=$?
20385 grep -v '^ *+' conftest.er1 >conftest.err
20386 rm -f conftest.er1
20387 cat conftest.err >&5
20388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20389 (exit $ac_status); } && {
20390 test -z "$ac_c_werror_flag" ||
20391 test ! -s conftest.err
20392 } && test -s conftest.$ac_objext; then
20394 else
20395 echo "$as_me: failed program was:" >&5
20396 sed 's/^/| /' conftest.$ac_ext >&5
20399 cat >>confdefs.h <<\_ACEOF
20400 #define GETTIMEOFDAY_NO_TZ 1
20401 _ACEOF
20406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20409 done
20412 { echo "$as_me:$LINENO: checking for major" >&5
20413 echo $ECHO_N "checking for major... $ECHO_C" >&6; }
20414 cat >conftest.$ac_ext <<_ACEOF
20415 /* confdefs.h. */
20416 _ACEOF
20417 cat confdefs.h >>conftest.$ac_ext
20418 cat >>conftest.$ac_ext <<_ACEOF
20419 /* end confdefs.h. */
20421 #if defined(MAJOR_IN_MKDEV)
20422 #include <sys/mkdev.h>
20423 #elif defined(MAJOR_IN_SYSMACROS)
20424 #include <sys/sysmacros.h>
20425 #else
20426 #include <sys/types.h>
20427 #endif
20430 main ()
20433 makedev(major(0),minor(0));
20436 return 0;
20438 _ACEOF
20439 rm -f conftest.$ac_objext conftest$ac_exeext
20440 if { (ac_try="$ac_link"
20441 case "(($ac_try" in
20442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20443 *) ac_try_echo=$ac_try;;
20444 esac
20445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20446 (eval "$ac_link") 2>conftest.er1
20447 ac_status=$?
20448 grep -v '^ *+' conftest.er1 >conftest.err
20449 rm -f conftest.er1
20450 cat conftest.err >&5
20451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20452 (exit $ac_status); } && {
20453 test -z "$ac_c_werror_flag" ||
20454 test ! -s conftest.err
20455 } && test -s conftest$ac_exeext &&
20456 $as_test_x conftest$ac_exeext; then
20459 cat >>confdefs.h <<\_ACEOF
20460 #define HAVE_DEVICE_MACROS 1
20461 _ACEOF
20463 { echo "$as_me:$LINENO: result: yes" >&5
20464 echo "${ECHO_T}yes" >&6; }
20466 else
20467 echo "$as_me: failed program was:" >&5
20468 sed 's/^/| /' conftest.$ac_ext >&5
20471 { echo "$as_me:$LINENO: result: no" >&5
20472 echo "${ECHO_T}no" >&6; }
20476 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20477 conftest$ac_exeext conftest.$ac_ext
20479 # On OSF/1 V5.1, getaddrinfo is available, but a define
20480 # for [no]getaddrinfo in netdb.h.
20481 { echo "$as_me:$LINENO: checking for getaddrinfo" >&5
20482 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
20483 cat >conftest.$ac_ext <<_ACEOF
20484 /* confdefs.h. */
20485 _ACEOF
20486 cat confdefs.h >>conftest.$ac_ext
20487 cat >>conftest.$ac_ext <<_ACEOF
20488 /* end confdefs.h. */
20490 #include <sys/types.h>
20491 #include <sys/socket.h>
20492 #include <netdb.h>
20493 #include <stdio.h>
20496 main ()
20498 getaddrinfo(NULL, NULL, NULL, NULL);
20500 return 0;
20502 _ACEOF
20503 rm -f conftest.$ac_objext conftest$ac_exeext
20504 if { (ac_try="$ac_link"
20505 case "(($ac_try" in
20506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20507 *) ac_try_echo=$ac_try;;
20508 esac
20509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20510 (eval "$ac_link") 2>conftest.er1
20511 ac_status=$?
20512 grep -v '^ *+' conftest.er1 >conftest.err
20513 rm -f conftest.er1
20514 cat conftest.err >&5
20515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20516 (exit $ac_status); } && {
20517 test -z "$ac_c_werror_flag" ||
20518 test ! -s conftest.err
20519 } && test -s conftest$ac_exeext &&
20520 $as_test_x conftest$ac_exeext; then
20521 have_getaddrinfo=yes
20522 else
20523 echo "$as_me: failed program was:" >&5
20524 sed 's/^/| /' conftest.$ac_ext >&5
20526 have_getaddrinfo=no
20529 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20530 conftest$ac_exeext conftest.$ac_ext
20531 { echo "$as_me:$LINENO: result: $have_getaddrinfo" >&5
20532 echo "${ECHO_T}$have_getaddrinfo" >&6; }
20533 if test $have_getaddrinfo = yes
20534 then
20535 { echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
20536 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; }
20537 if test "${ac_cv_buggy_getaddrinfo+set}" = set; then
20538 echo $ECHO_N "(cached) $ECHO_C" >&6
20539 else
20540 if test "$cross_compiling" = yes; then
20541 ac_cv_buggy_getaddrinfo=yes
20542 else
20543 cat >conftest.$ac_ext <<_ACEOF
20544 /* confdefs.h. */
20545 _ACEOF
20546 cat confdefs.h >>conftest.$ac_ext
20547 cat >>conftest.$ac_ext <<_ACEOF
20548 /* end confdefs.h. */
20550 #include <sys/types.h>
20551 #include <netdb.h>
20552 #include <string.h>
20553 #include <sys/socket.h>
20554 #include <netinet/in.h>
20556 int main()
20558 int passive, gaierr, inet4 = 0, inet6 = 0;
20559 struct addrinfo hints, *ai, *aitop;
20560 char straddr[INET6_ADDRSTRLEN], strport[16];
20562 for (passive = 0; passive <= 1; passive++) {
20563 memset(&hints, 0, sizeof(hints));
20564 hints.ai_family = AF_UNSPEC;
20565 hints.ai_flags = passive ? AI_PASSIVE : 0;
20566 hints.ai_socktype = SOCK_STREAM;
20567 hints.ai_protocol = IPPROTO_TCP;
20568 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
20569 (void)gai_strerror(gaierr);
20570 goto bad;
20572 for (ai = aitop; ai; ai = ai->ai_next) {
20573 if (ai->ai_addr == NULL ||
20574 ai->ai_addrlen == 0 ||
20575 getnameinfo(ai->ai_addr, ai->ai_addrlen,
20576 straddr, sizeof(straddr), strport, sizeof(strport),
20577 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
20578 goto bad;
20580 switch (ai->ai_family) {
20581 case AF_INET:
20582 if (strcmp(strport, "54321") != 0) {
20583 goto bad;
20585 if (passive) {
20586 if (strcmp(straddr, "0.0.0.0") != 0) {
20587 goto bad;
20589 } else {
20590 if (strcmp(straddr, "127.0.0.1") != 0) {
20591 goto bad;
20594 inet4++;
20595 break;
20596 case AF_INET6:
20597 if (strcmp(strport, "54321") != 0) {
20598 goto bad;
20600 if (passive) {
20601 if (strcmp(straddr, "::") != 0) {
20602 goto bad;
20604 } else {
20605 if (strcmp(straddr, "::1") != 0) {
20606 goto bad;
20609 inet6++;
20610 break;
20611 case AF_UNSPEC:
20612 goto bad;
20613 break;
20614 default:
20615 /* another family support? */
20616 break;
20621 if (!(inet4 == 0 || inet4 == 2))
20622 goto bad;
20623 if (!(inet6 == 0 || inet6 == 2))
20624 goto bad;
20626 if (aitop)
20627 freeaddrinfo(aitop);
20628 return 0;
20630 bad:
20631 if (aitop)
20632 freeaddrinfo(aitop);
20633 return 1;
20636 _ACEOF
20637 rm -f conftest$ac_exeext
20638 if { (ac_try="$ac_link"
20639 case "(($ac_try" in
20640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20641 *) ac_try_echo=$ac_try;;
20642 esac
20643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20644 (eval "$ac_link") 2>&5
20645 ac_status=$?
20646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20647 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20648 { (case "(($ac_try" in
20649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20650 *) ac_try_echo=$ac_try;;
20651 esac
20652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20653 (eval "$ac_try") 2>&5
20654 ac_status=$?
20655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20656 (exit $ac_status); }; }; then
20657 ac_cv_buggy_getaddrinfo=no
20658 else
20659 echo "$as_me: program exited with status $ac_status" >&5
20660 echo "$as_me: failed program was:" >&5
20661 sed 's/^/| /' conftest.$ac_ext >&5
20663 ( exit $ac_status )
20664 ac_cv_buggy_getaddrinfo=yes
20666 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20674 if test $have_getaddrinfo = no -o $ac_cv_buggy_getaddrinfo = yes
20675 then
20676 if test $ipv6 = yes
20677 then
20678 echo 'Fatal: You must get working getaddrinfo() function.'
20679 echo ' or you can specify "--disable-ipv6"'.
20680 exit 1
20682 else
20684 cat >>confdefs.h <<\_ACEOF
20685 #define HAVE_GETADDRINFO 1
20686 _ACEOF
20690 for ac_func in getnameinfo
20692 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20693 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20694 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20695 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20696 echo $ECHO_N "(cached) $ECHO_C" >&6
20697 else
20698 cat >conftest.$ac_ext <<_ACEOF
20699 /* confdefs.h. */
20700 _ACEOF
20701 cat confdefs.h >>conftest.$ac_ext
20702 cat >>conftest.$ac_ext <<_ACEOF
20703 /* end confdefs.h. */
20704 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20705 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20706 #define $ac_func innocuous_$ac_func
20708 /* System header to define __stub macros and hopefully few prototypes,
20709 which can conflict with char $ac_func (); below.
20710 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20711 <limits.h> exists even on freestanding compilers. */
20713 #ifdef __STDC__
20714 # include <limits.h>
20715 #else
20716 # include <assert.h>
20717 #endif
20719 #undef $ac_func
20721 /* Override any GCC internal prototype to avoid an error.
20722 Use char because int might match the return type of a GCC
20723 builtin and then its argument prototype would still apply. */
20724 #ifdef __cplusplus
20725 extern "C"
20726 #endif
20727 char $ac_func ();
20728 /* The GNU C library defines this for functions which it implements
20729 to always fail with ENOSYS. Some functions are actually named
20730 something starting with __ and the normal name is an alias. */
20731 #if defined __stub_$ac_func || defined __stub___$ac_func
20732 choke me
20733 #endif
20736 main ()
20738 return $ac_func ();
20740 return 0;
20742 _ACEOF
20743 rm -f conftest.$ac_objext conftest$ac_exeext
20744 if { (ac_try="$ac_link"
20745 case "(($ac_try" in
20746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20747 *) ac_try_echo=$ac_try;;
20748 esac
20749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20750 (eval "$ac_link") 2>conftest.er1
20751 ac_status=$?
20752 grep -v '^ *+' conftest.er1 >conftest.err
20753 rm -f conftest.er1
20754 cat conftest.err >&5
20755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20756 (exit $ac_status); } && {
20757 test -z "$ac_c_werror_flag" ||
20758 test ! -s conftest.err
20759 } && test -s conftest$ac_exeext &&
20760 $as_test_x conftest$ac_exeext; then
20761 eval "$as_ac_var=yes"
20762 else
20763 echo "$as_me: failed program was:" >&5
20764 sed 's/^/| /' conftest.$ac_ext >&5
20766 eval "$as_ac_var=no"
20769 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20770 conftest$ac_exeext conftest.$ac_ext
20772 ac_res=`eval echo '${'$as_ac_var'}'`
20773 { echo "$as_me:$LINENO: result: $ac_res" >&5
20774 echo "${ECHO_T}$ac_res" >&6; }
20775 if test `eval echo '${'$as_ac_var'}'` = yes; then
20776 cat >>confdefs.h <<_ACEOF
20777 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20778 _ACEOF
20781 done
20784 # checks for structures
20785 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20786 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
20787 if test "${ac_cv_header_time+set}" = set; then
20788 echo $ECHO_N "(cached) $ECHO_C" >&6
20789 else
20790 cat >conftest.$ac_ext <<_ACEOF
20791 /* confdefs.h. */
20792 _ACEOF
20793 cat confdefs.h >>conftest.$ac_ext
20794 cat >>conftest.$ac_ext <<_ACEOF
20795 /* end confdefs.h. */
20796 #include <sys/types.h>
20797 #include <sys/time.h>
20798 #include <time.h>
20801 main ()
20803 if ((struct tm *) 0)
20804 return 0;
20806 return 0;
20808 _ACEOF
20809 rm -f conftest.$ac_objext
20810 if { (ac_try="$ac_compile"
20811 case "(($ac_try" in
20812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20813 *) ac_try_echo=$ac_try;;
20814 esac
20815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20816 (eval "$ac_compile") 2>conftest.er1
20817 ac_status=$?
20818 grep -v '^ *+' conftest.er1 >conftest.err
20819 rm -f conftest.er1
20820 cat conftest.err >&5
20821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20822 (exit $ac_status); } && {
20823 test -z "$ac_c_werror_flag" ||
20824 test ! -s conftest.err
20825 } && test -s conftest.$ac_objext; then
20826 ac_cv_header_time=yes
20827 else
20828 echo "$as_me: failed program was:" >&5
20829 sed 's/^/| /' conftest.$ac_ext >&5
20831 ac_cv_header_time=no
20834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20836 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20837 echo "${ECHO_T}$ac_cv_header_time" >&6; }
20838 if test $ac_cv_header_time = yes; then
20840 cat >>confdefs.h <<\_ACEOF
20841 #define TIME_WITH_SYS_TIME 1
20842 _ACEOF
20846 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20847 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
20848 if test "${ac_cv_struct_tm+set}" = set; then
20849 echo $ECHO_N "(cached) $ECHO_C" >&6
20850 else
20851 cat >conftest.$ac_ext <<_ACEOF
20852 /* confdefs.h. */
20853 _ACEOF
20854 cat confdefs.h >>conftest.$ac_ext
20855 cat >>conftest.$ac_ext <<_ACEOF
20856 /* end confdefs.h. */
20857 #include <sys/types.h>
20858 #include <time.h>
20861 main ()
20863 struct tm tm;
20864 int *p = &tm.tm_sec;
20865 return !p;
20867 return 0;
20869 _ACEOF
20870 rm -f conftest.$ac_objext
20871 if { (ac_try="$ac_compile"
20872 case "(($ac_try" in
20873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20874 *) ac_try_echo=$ac_try;;
20875 esac
20876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20877 (eval "$ac_compile") 2>conftest.er1
20878 ac_status=$?
20879 grep -v '^ *+' conftest.er1 >conftest.err
20880 rm -f conftest.er1
20881 cat conftest.err >&5
20882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20883 (exit $ac_status); } && {
20884 test -z "$ac_c_werror_flag" ||
20885 test ! -s conftest.err
20886 } && test -s conftest.$ac_objext; then
20887 ac_cv_struct_tm=time.h
20888 else
20889 echo "$as_me: failed program was:" >&5
20890 sed 's/^/| /' conftest.$ac_ext >&5
20892 ac_cv_struct_tm=sys/time.h
20895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20897 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20898 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
20899 if test $ac_cv_struct_tm = sys/time.h; then
20901 cat >>confdefs.h <<\_ACEOF
20902 #define TM_IN_SYS_TIME 1
20903 _ACEOF
20907 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
20908 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
20909 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
20910 echo $ECHO_N "(cached) $ECHO_C" >&6
20911 else
20912 cat >conftest.$ac_ext <<_ACEOF
20913 /* confdefs.h. */
20914 _ACEOF
20915 cat confdefs.h >>conftest.$ac_ext
20916 cat >>conftest.$ac_ext <<_ACEOF
20917 /* end confdefs.h. */
20918 #include <sys/types.h>
20919 #include <$ac_cv_struct_tm>
20923 main ()
20925 static struct tm ac_aggr;
20926 if (ac_aggr.tm_zone)
20927 return 0;
20929 return 0;
20931 _ACEOF
20932 rm -f conftest.$ac_objext
20933 if { (ac_try="$ac_compile"
20934 case "(($ac_try" in
20935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20936 *) ac_try_echo=$ac_try;;
20937 esac
20938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20939 (eval "$ac_compile") 2>conftest.er1
20940 ac_status=$?
20941 grep -v '^ *+' conftest.er1 >conftest.err
20942 rm -f conftest.er1
20943 cat conftest.err >&5
20944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20945 (exit $ac_status); } && {
20946 test -z "$ac_c_werror_flag" ||
20947 test ! -s conftest.err
20948 } && test -s conftest.$ac_objext; then
20949 ac_cv_member_struct_tm_tm_zone=yes
20950 else
20951 echo "$as_me: failed program was:" >&5
20952 sed 's/^/| /' conftest.$ac_ext >&5
20954 cat >conftest.$ac_ext <<_ACEOF
20955 /* confdefs.h. */
20956 _ACEOF
20957 cat confdefs.h >>conftest.$ac_ext
20958 cat >>conftest.$ac_ext <<_ACEOF
20959 /* end confdefs.h. */
20960 #include <sys/types.h>
20961 #include <$ac_cv_struct_tm>
20965 main ()
20967 static struct tm ac_aggr;
20968 if (sizeof ac_aggr.tm_zone)
20969 return 0;
20971 return 0;
20973 _ACEOF
20974 rm -f conftest.$ac_objext
20975 if { (ac_try="$ac_compile"
20976 case "(($ac_try" in
20977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20978 *) ac_try_echo=$ac_try;;
20979 esac
20980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20981 (eval "$ac_compile") 2>conftest.er1
20982 ac_status=$?
20983 grep -v '^ *+' conftest.er1 >conftest.err
20984 rm -f conftest.er1
20985 cat conftest.err >&5
20986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20987 (exit $ac_status); } && {
20988 test -z "$ac_c_werror_flag" ||
20989 test ! -s conftest.err
20990 } && test -s conftest.$ac_objext; then
20991 ac_cv_member_struct_tm_tm_zone=yes
20992 else
20993 echo "$as_me: failed program was:" >&5
20994 sed 's/^/| /' conftest.$ac_ext >&5
20996 ac_cv_member_struct_tm_tm_zone=no
20999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21004 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
21005 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
21006 if test $ac_cv_member_struct_tm_tm_zone = yes; then
21008 cat >>confdefs.h <<_ACEOF
21009 #define HAVE_STRUCT_TM_TM_ZONE 1
21010 _ACEOF
21015 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21017 cat >>confdefs.h <<\_ACEOF
21018 #define HAVE_TM_ZONE 1
21019 _ACEOF
21021 else
21022 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
21023 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
21024 if test "${ac_cv_have_decl_tzname+set}" = set; then
21025 echo $ECHO_N "(cached) $ECHO_C" >&6
21026 else
21027 cat >conftest.$ac_ext <<_ACEOF
21028 /* confdefs.h. */
21029 _ACEOF
21030 cat confdefs.h >>conftest.$ac_ext
21031 cat >>conftest.$ac_ext <<_ACEOF
21032 /* end confdefs.h. */
21033 #include <time.h>
21036 main ()
21038 #ifndef tzname
21039 (void) tzname;
21040 #endif
21043 return 0;
21045 _ACEOF
21046 rm -f conftest.$ac_objext
21047 if { (ac_try="$ac_compile"
21048 case "(($ac_try" in
21049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21050 *) ac_try_echo=$ac_try;;
21051 esac
21052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21053 (eval "$ac_compile") 2>conftest.er1
21054 ac_status=$?
21055 grep -v '^ *+' conftest.er1 >conftest.err
21056 rm -f conftest.er1
21057 cat conftest.err >&5
21058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21059 (exit $ac_status); } && {
21060 test -z "$ac_c_werror_flag" ||
21061 test ! -s conftest.err
21062 } && test -s conftest.$ac_objext; then
21063 ac_cv_have_decl_tzname=yes
21064 else
21065 echo "$as_me: failed program was:" >&5
21066 sed 's/^/| /' conftest.$ac_ext >&5
21068 ac_cv_have_decl_tzname=no
21071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21073 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
21074 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
21075 if test $ac_cv_have_decl_tzname = yes; then
21077 cat >>confdefs.h <<_ACEOF
21078 #define HAVE_DECL_TZNAME 1
21079 _ACEOF
21082 else
21083 cat >>confdefs.h <<_ACEOF
21084 #define HAVE_DECL_TZNAME 0
21085 _ACEOF
21091 { echo "$as_me:$LINENO: checking for tzname" >&5
21092 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
21093 if test "${ac_cv_var_tzname+set}" = set; then
21094 echo $ECHO_N "(cached) $ECHO_C" >&6
21095 else
21096 cat >conftest.$ac_ext <<_ACEOF
21097 /* confdefs.h. */
21098 _ACEOF
21099 cat confdefs.h >>conftest.$ac_ext
21100 cat >>conftest.$ac_ext <<_ACEOF
21101 /* end confdefs.h. */
21102 #include <time.h>
21103 #if !HAVE_DECL_TZNAME
21104 extern char *tzname[];
21105 #endif
21108 main ()
21110 return tzname[0][0];
21112 return 0;
21114 _ACEOF
21115 rm -f conftest.$ac_objext conftest$ac_exeext
21116 if { (ac_try="$ac_link"
21117 case "(($ac_try" in
21118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21119 *) ac_try_echo=$ac_try;;
21120 esac
21121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21122 (eval "$ac_link") 2>conftest.er1
21123 ac_status=$?
21124 grep -v '^ *+' conftest.er1 >conftest.err
21125 rm -f conftest.er1
21126 cat conftest.err >&5
21127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21128 (exit $ac_status); } && {
21129 test -z "$ac_c_werror_flag" ||
21130 test ! -s conftest.err
21131 } && test -s conftest$ac_exeext &&
21132 $as_test_x conftest$ac_exeext; then
21133 ac_cv_var_tzname=yes
21134 else
21135 echo "$as_me: failed program was:" >&5
21136 sed 's/^/| /' conftest.$ac_ext >&5
21138 ac_cv_var_tzname=no
21141 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21142 conftest$ac_exeext conftest.$ac_ext
21144 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21145 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
21146 if test $ac_cv_var_tzname = yes; then
21148 cat >>confdefs.h <<\_ACEOF
21149 #define HAVE_TZNAME 1
21150 _ACEOF
21155 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
21156 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
21157 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
21158 echo $ECHO_N "(cached) $ECHO_C" >&6
21159 else
21160 cat >conftest.$ac_ext <<_ACEOF
21161 /* confdefs.h. */
21162 _ACEOF
21163 cat confdefs.h >>conftest.$ac_ext
21164 cat >>conftest.$ac_ext <<_ACEOF
21165 /* end confdefs.h. */
21166 $ac_includes_default
21168 main ()
21170 static struct stat ac_aggr;
21171 if (ac_aggr.st_rdev)
21172 return 0;
21174 return 0;
21176 _ACEOF
21177 rm -f conftest.$ac_objext
21178 if { (ac_try="$ac_compile"
21179 case "(($ac_try" in
21180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21181 *) ac_try_echo=$ac_try;;
21182 esac
21183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21184 (eval "$ac_compile") 2>conftest.er1
21185 ac_status=$?
21186 grep -v '^ *+' conftest.er1 >conftest.err
21187 rm -f conftest.er1
21188 cat conftest.err >&5
21189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21190 (exit $ac_status); } && {
21191 test -z "$ac_c_werror_flag" ||
21192 test ! -s conftest.err
21193 } && test -s conftest.$ac_objext; then
21194 ac_cv_member_struct_stat_st_rdev=yes
21195 else
21196 echo "$as_me: failed program was:" >&5
21197 sed 's/^/| /' conftest.$ac_ext >&5
21199 cat >conftest.$ac_ext <<_ACEOF
21200 /* confdefs.h. */
21201 _ACEOF
21202 cat confdefs.h >>conftest.$ac_ext
21203 cat >>conftest.$ac_ext <<_ACEOF
21204 /* end confdefs.h. */
21205 $ac_includes_default
21207 main ()
21209 static struct stat ac_aggr;
21210 if (sizeof ac_aggr.st_rdev)
21211 return 0;
21213 return 0;
21215 _ACEOF
21216 rm -f conftest.$ac_objext
21217 if { (ac_try="$ac_compile"
21218 case "(($ac_try" in
21219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21220 *) ac_try_echo=$ac_try;;
21221 esac
21222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21223 (eval "$ac_compile") 2>conftest.er1
21224 ac_status=$?
21225 grep -v '^ *+' conftest.er1 >conftest.err
21226 rm -f conftest.er1
21227 cat conftest.err >&5
21228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21229 (exit $ac_status); } && {
21230 test -z "$ac_c_werror_flag" ||
21231 test ! -s conftest.err
21232 } && test -s conftest.$ac_objext; then
21233 ac_cv_member_struct_stat_st_rdev=yes
21234 else
21235 echo "$as_me: failed program was:" >&5
21236 sed 's/^/| /' conftest.$ac_ext >&5
21238 ac_cv_member_struct_stat_st_rdev=no
21241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21246 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
21247 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
21248 if test $ac_cv_member_struct_stat_st_rdev = yes; then
21250 cat >>confdefs.h <<_ACEOF
21251 #define HAVE_STRUCT_STAT_ST_RDEV 1
21252 _ACEOF
21257 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
21258 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
21259 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
21260 echo $ECHO_N "(cached) $ECHO_C" >&6
21261 else
21262 cat >conftest.$ac_ext <<_ACEOF
21263 /* confdefs.h. */
21264 _ACEOF
21265 cat confdefs.h >>conftest.$ac_ext
21266 cat >>conftest.$ac_ext <<_ACEOF
21267 /* end confdefs.h. */
21268 $ac_includes_default
21270 main ()
21272 static struct stat ac_aggr;
21273 if (ac_aggr.st_blksize)
21274 return 0;
21276 return 0;
21278 _ACEOF
21279 rm -f conftest.$ac_objext
21280 if { (ac_try="$ac_compile"
21281 case "(($ac_try" in
21282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21283 *) ac_try_echo=$ac_try;;
21284 esac
21285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21286 (eval "$ac_compile") 2>conftest.er1
21287 ac_status=$?
21288 grep -v '^ *+' conftest.er1 >conftest.err
21289 rm -f conftest.er1
21290 cat conftest.err >&5
21291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21292 (exit $ac_status); } && {
21293 test -z "$ac_c_werror_flag" ||
21294 test ! -s conftest.err
21295 } && test -s conftest.$ac_objext; then
21296 ac_cv_member_struct_stat_st_blksize=yes
21297 else
21298 echo "$as_me: failed program was:" >&5
21299 sed 's/^/| /' conftest.$ac_ext >&5
21301 cat >conftest.$ac_ext <<_ACEOF
21302 /* confdefs.h. */
21303 _ACEOF
21304 cat confdefs.h >>conftest.$ac_ext
21305 cat >>conftest.$ac_ext <<_ACEOF
21306 /* end confdefs.h. */
21307 $ac_includes_default
21309 main ()
21311 static struct stat ac_aggr;
21312 if (sizeof ac_aggr.st_blksize)
21313 return 0;
21315 return 0;
21317 _ACEOF
21318 rm -f conftest.$ac_objext
21319 if { (ac_try="$ac_compile"
21320 case "(($ac_try" in
21321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21322 *) ac_try_echo=$ac_try;;
21323 esac
21324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21325 (eval "$ac_compile") 2>conftest.er1
21326 ac_status=$?
21327 grep -v '^ *+' conftest.er1 >conftest.err
21328 rm -f conftest.er1
21329 cat conftest.err >&5
21330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21331 (exit $ac_status); } && {
21332 test -z "$ac_c_werror_flag" ||
21333 test ! -s conftest.err
21334 } && test -s conftest.$ac_objext; then
21335 ac_cv_member_struct_stat_st_blksize=yes
21336 else
21337 echo "$as_me: failed program was:" >&5
21338 sed 's/^/| /' conftest.$ac_ext >&5
21340 ac_cv_member_struct_stat_st_blksize=no
21343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21348 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
21349 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
21350 if test $ac_cv_member_struct_stat_st_blksize = yes; then
21352 cat >>confdefs.h <<_ACEOF
21353 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
21354 _ACEOF
21359 { echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
21360 echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6; }
21361 if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
21362 echo $ECHO_N "(cached) $ECHO_C" >&6
21363 else
21364 cat >conftest.$ac_ext <<_ACEOF
21365 /* confdefs.h. */
21366 _ACEOF
21367 cat confdefs.h >>conftest.$ac_ext
21368 cat >>conftest.$ac_ext <<_ACEOF
21369 /* end confdefs.h. */
21370 $ac_includes_default
21372 main ()
21374 static struct stat ac_aggr;
21375 if (ac_aggr.st_flags)
21376 return 0;
21378 return 0;
21380 _ACEOF
21381 rm -f conftest.$ac_objext
21382 if { (ac_try="$ac_compile"
21383 case "(($ac_try" in
21384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21385 *) ac_try_echo=$ac_try;;
21386 esac
21387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21388 (eval "$ac_compile") 2>conftest.er1
21389 ac_status=$?
21390 grep -v '^ *+' conftest.er1 >conftest.err
21391 rm -f conftest.er1
21392 cat conftest.err >&5
21393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21394 (exit $ac_status); } && {
21395 test -z "$ac_c_werror_flag" ||
21396 test ! -s conftest.err
21397 } && test -s conftest.$ac_objext; then
21398 ac_cv_member_struct_stat_st_flags=yes
21399 else
21400 echo "$as_me: failed program was:" >&5
21401 sed 's/^/| /' conftest.$ac_ext >&5
21403 cat >conftest.$ac_ext <<_ACEOF
21404 /* confdefs.h. */
21405 _ACEOF
21406 cat confdefs.h >>conftest.$ac_ext
21407 cat >>conftest.$ac_ext <<_ACEOF
21408 /* end confdefs.h. */
21409 $ac_includes_default
21411 main ()
21413 static struct stat ac_aggr;
21414 if (sizeof ac_aggr.st_flags)
21415 return 0;
21417 return 0;
21419 _ACEOF
21420 rm -f conftest.$ac_objext
21421 if { (ac_try="$ac_compile"
21422 case "(($ac_try" in
21423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21424 *) ac_try_echo=$ac_try;;
21425 esac
21426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21427 (eval "$ac_compile") 2>conftest.er1
21428 ac_status=$?
21429 grep -v '^ *+' conftest.er1 >conftest.err
21430 rm -f conftest.er1
21431 cat conftest.err >&5
21432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21433 (exit $ac_status); } && {
21434 test -z "$ac_c_werror_flag" ||
21435 test ! -s conftest.err
21436 } && test -s conftest.$ac_objext; then
21437 ac_cv_member_struct_stat_st_flags=yes
21438 else
21439 echo "$as_me: failed program was:" >&5
21440 sed 's/^/| /' conftest.$ac_ext >&5
21442 ac_cv_member_struct_stat_st_flags=no
21445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21450 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
21451 echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6; }
21452 if test $ac_cv_member_struct_stat_st_flags = yes; then
21454 cat >>confdefs.h <<_ACEOF
21455 #define HAVE_STRUCT_STAT_ST_FLAGS 1
21456 _ACEOF
21461 { echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
21462 echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6; }
21463 if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
21464 echo $ECHO_N "(cached) $ECHO_C" >&6
21465 else
21466 cat >conftest.$ac_ext <<_ACEOF
21467 /* confdefs.h. */
21468 _ACEOF
21469 cat confdefs.h >>conftest.$ac_ext
21470 cat >>conftest.$ac_ext <<_ACEOF
21471 /* end confdefs.h. */
21472 $ac_includes_default
21474 main ()
21476 static struct stat ac_aggr;
21477 if (ac_aggr.st_gen)
21478 return 0;
21480 return 0;
21482 _ACEOF
21483 rm -f conftest.$ac_objext
21484 if { (ac_try="$ac_compile"
21485 case "(($ac_try" in
21486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21487 *) ac_try_echo=$ac_try;;
21488 esac
21489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21490 (eval "$ac_compile") 2>conftest.er1
21491 ac_status=$?
21492 grep -v '^ *+' conftest.er1 >conftest.err
21493 rm -f conftest.er1
21494 cat conftest.err >&5
21495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21496 (exit $ac_status); } && {
21497 test -z "$ac_c_werror_flag" ||
21498 test ! -s conftest.err
21499 } && test -s conftest.$ac_objext; then
21500 ac_cv_member_struct_stat_st_gen=yes
21501 else
21502 echo "$as_me: failed program was:" >&5
21503 sed 's/^/| /' conftest.$ac_ext >&5
21505 cat >conftest.$ac_ext <<_ACEOF
21506 /* confdefs.h. */
21507 _ACEOF
21508 cat confdefs.h >>conftest.$ac_ext
21509 cat >>conftest.$ac_ext <<_ACEOF
21510 /* end confdefs.h. */
21511 $ac_includes_default
21513 main ()
21515 static struct stat ac_aggr;
21516 if (sizeof ac_aggr.st_gen)
21517 return 0;
21519 return 0;
21521 _ACEOF
21522 rm -f conftest.$ac_objext
21523 if { (ac_try="$ac_compile"
21524 case "(($ac_try" in
21525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21526 *) ac_try_echo=$ac_try;;
21527 esac
21528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21529 (eval "$ac_compile") 2>conftest.er1
21530 ac_status=$?
21531 grep -v '^ *+' conftest.er1 >conftest.err
21532 rm -f conftest.er1
21533 cat conftest.err >&5
21534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21535 (exit $ac_status); } && {
21536 test -z "$ac_c_werror_flag" ||
21537 test ! -s conftest.err
21538 } && test -s conftest.$ac_objext; then
21539 ac_cv_member_struct_stat_st_gen=yes
21540 else
21541 echo "$as_me: failed program was:" >&5
21542 sed 's/^/| /' conftest.$ac_ext >&5
21544 ac_cv_member_struct_stat_st_gen=no
21547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21552 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
21553 echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6; }
21554 if test $ac_cv_member_struct_stat_st_gen = yes; then
21556 cat >>confdefs.h <<_ACEOF
21557 #define HAVE_STRUCT_STAT_ST_GEN 1
21558 _ACEOF
21563 { echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
21564 echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6; }
21565 if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
21566 echo $ECHO_N "(cached) $ECHO_C" >&6
21567 else
21568 cat >conftest.$ac_ext <<_ACEOF
21569 /* confdefs.h. */
21570 _ACEOF
21571 cat confdefs.h >>conftest.$ac_ext
21572 cat >>conftest.$ac_ext <<_ACEOF
21573 /* end confdefs.h. */
21574 $ac_includes_default
21576 main ()
21578 static struct stat ac_aggr;
21579 if (ac_aggr.st_birthtime)
21580 return 0;
21582 return 0;
21584 _ACEOF
21585 rm -f conftest.$ac_objext
21586 if { (ac_try="$ac_compile"
21587 case "(($ac_try" in
21588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21589 *) ac_try_echo=$ac_try;;
21590 esac
21591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21592 (eval "$ac_compile") 2>conftest.er1
21593 ac_status=$?
21594 grep -v '^ *+' conftest.er1 >conftest.err
21595 rm -f conftest.er1
21596 cat conftest.err >&5
21597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21598 (exit $ac_status); } && {
21599 test -z "$ac_c_werror_flag" ||
21600 test ! -s conftest.err
21601 } && test -s conftest.$ac_objext; then
21602 ac_cv_member_struct_stat_st_birthtime=yes
21603 else
21604 echo "$as_me: failed program was:" >&5
21605 sed 's/^/| /' conftest.$ac_ext >&5
21607 cat >conftest.$ac_ext <<_ACEOF
21608 /* confdefs.h. */
21609 _ACEOF
21610 cat confdefs.h >>conftest.$ac_ext
21611 cat >>conftest.$ac_ext <<_ACEOF
21612 /* end confdefs.h. */
21613 $ac_includes_default
21615 main ()
21617 static struct stat ac_aggr;
21618 if (sizeof ac_aggr.st_birthtime)
21619 return 0;
21621 return 0;
21623 _ACEOF
21624 rm -f conftest.$ac_objext
21625 if { (ac_try="$ac_compile"
21626 case "(($ac_try" in
21627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21628 *) ac_try_echo=$ac_try;;
21629 esac
21630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21631 (eval "$ac_compile") 2>conftest.er1
21632 ac_status=$?
21633 grep -v '^ *+' conftest.er1 >conftest.err
21634 rm -f conftest.er1
21635 cat conftest.err >&5
21636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21637 (exit $ac_status); } && {
21638 test -z "$ac_c_werror_flag" ||
21639 test ! -s conftest.err
21640 } && test -s conftest.$ac_objext; then
21641 ac_cv_member_struct_stat_st_birthtime=yes
21642 else
21643 echo "$as_me: failed program was:" >&5
21644 sed 's/^/| /' conftest.$ac_ext >&5
21646 ac_cv_member_struct_stat_st_birthtime=no
21649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21654 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
21655 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6; }
21656 if test $ac_cv_member_struct_stat_st_birthtime = yes; then
21658 cat >>confdefs.h <<_ACEOF
21659 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
21660 _ACEOF
21665 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
21666 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
21667 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
21668 echo $ECHO_N "(cached) $ECHO_C" >&6
21669 else
21670 cat >conftest.$ac_ext <<_ACEOF
21671 /* confdefs.h. */
21672 _ACEOF
21673 cat confdefs.h >>conftest.$ac_ext
21674 cat >>conftest.$ac_ext <<_ACEOF
21675 /* end confdefs.h. */
21676 $ac_includes_default
21678 main ()
21680 static struct stat ac_aggr;
21681 if (ac_aggr.st_blocks)
21682 return 0;
21684 return 0;
21686 _ACEOF
21687 rm -f conftest.$ac_objext
21688 if { (ac_try="$ac_compile"
21689 case "(($ac_try" in
21690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21691 *) ac_try_echo=$ac_try;;
21692 esac
21693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21694 (eval "$ac_compile") 2>conftest.er1
21695 ac_status=$?
21696 grep -v '^ *+' conftest.er1 >conftest.err
21697 rm -f conftest.er1
21698 cat conftest.err >&5
21699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21700 (exit $ac_status); } && {
21701 test -z "$ac_c_werror_flag" ||
21702 test ! -s conftest.err
21703 } && test -s conftest.$ac_objext; then
21704 ac_cv_member_struct_stat_st_blocks=yes
21705 else
21706 echo "$as_me: failed program was:" >&5
21707 sed 's/^/| /' conftest.$ac_ext >&5
21709 cat >conftest.$ac_ext <<_ACEOF
21710 /* confdefs.h. */
21711 _ACEOF
21712 cat confdefs.h >>conftest.$ac_ext
21713 cat >>conftest.$ac_ext <<_ACEOF
21714 /* end confdefs.h. */
21715 $ac_includes_default
21717 main ()
21719 static struct stat ac_aggr;
21720 if (sizeof ac_aggr.st_blocks)
21721 return 0;
21723 return 0;
21725 _ACEOF
21726 rm -f conftest.$ac_objext
21727 if { (ac_try="$ac_compile"
21728 case "(($ac_try" in
21729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21730 *) ac_try_echo=$ac_try;;
21731 esac
21732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21733 (eval "$ac_compile") 2>conftest.er1
21734 ac_status=$?
21735 grep -v '^ *+' conftest.er1 >conftest.err
21736 rm -f conftest.er1
21737 cat conftest.err >&5
21738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21739 (exit $ac_status); } && {
21740 test -z "$ac_c_werror_flag" ||
21741 test ! -s conftest.err
21742 } && test -s conftest.$ac_objext; then
21743 ac_cv_member_struct_stat_st_blocks=yes
21744 else
21745 echo "$as_me: failed program was:" >&5
21746 sed 's/^/| /' conftest.$ac_ext >&5
21748 ac_cv_member_struct_stat_st_blocks=no
21751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21756 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
21757 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
21758 if test $ac_cv_member_struct_stat_st_blocks = yes; then
21760 cat >>confdefs.h <<_ACEOF
21761 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
21762 _ACEOF
21765 cat >>confdefs.h <<\_ACEOF
21766 #define HAVE_ST_BLOCKS 1
21767 _ACEOF
21769 else
21770 case " $LIBOBJS " in
21771 *" fileblocks.$ac_objext "* ) ;;
21772 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
21774 esac
21780 { echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
21781 echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6; }
21782 if test "${ac_cv_header_time_altzone+set}" = set; then
21783 echo $ECHO_N "(cached) $ECHO_C" >&6
21784 else
21785 cat >conftest.$ac_ext <<_ACEOF
21786 /* confdefs.h. */
21787 _ACEOF
21788 cat confdefs.h >>conftest.$ac_ext
21789 cat >>conftest.$ac_ext <<_ACEOF
21790 /* end confdefs.h. */
21791 #include <time.h>
21793 main ()
21795 return altzone;
21797 return 0;
21799 _ACEOF
21800 rm -f conftest.$ac_objext
21801 if { (ac_try="$ac_compile"
21802 case "(($ac_try" in
21803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21804 *) ac_try_echo=$ac_try;;
21805 esac
21806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21807 (eval "$ac_compile") 2>conftest.er1
21808 ac_status=$?
21809 grep -v '^ *+' conftest.er1 >conftest.err
21810 rm -f conftest.er1
21811 cat conftest.err >&5
21812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21813 (exit $ac_status); } && {
21814 test -z "$ac_c_werror_flag" ||
21815 test ! -s conftest.err
21816 } && test -s conftest.$ac_objext; then
21817 ac_cv_header_time_altzone=yes
21818 else
21819 echo "$as_me: failed program was:" >&5
21820 sed 's/^/| /' conftest.$ac_ext >&5
21822 ac_cv_header_time_altzone=no
21825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21828 { echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
21829 echo "${ECHO_T}$ac_cv_header_time_altzone" >&6; }
21830 if test $ac_cv_header_time_altzone = yes; then
21832 cat >>confdefs.h <<\_ACEOF
21833 #define HAVE_ALTZONE 1
21834 _ACEOF
21838 was_it_defined=no
21839 { echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
21840 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6; }
21841 cat >conftest.$ac_ext <<_ACEOF
21842 /* confdefs.h. */
21843 _ACEOF
21844 cat confdefs.h >>conftest.$ac_ext
21845 cat >>conftest.$ac_ext <<_ACEOF
21846 /* end confdefs.h. */
21848 #include <sys/types.h>
21849 #include <sys/select.h>
21850 #include <sys/time.h>
21853 main ()
21857 return 0;
21859 _ACEOF
21860 rm -f conftest.$ac_objext
21861 if { (ac_try="$ac_compile"
21862 case "(($ac_try" in
21863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21864 *) ac_try_echo=$ac_try;;
21865 esac
21866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21867 (eval "$ac_compile") 2>conftest.er1
21868 ac_status=$?
21869 grep -v '^ *+' conftest.er1 >conftest.err
21870 rm -f conftest.er1
21871 cat conftest.err >&5
21872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21873 (exit $ac_status); } && {
21874 test -z "$ac_c_werror_flag" ||
21875 test ! -s conftest.err
21876 } && test -s conftest.$ac_objext; then
21879 cat >>confdefs.h <<\_ACEOF
21880 #define SYS_SELECT_WITH_SYS_TIME 1
21881 _ACEOF
21883 was_it_defined=yes
21885 else
21886 echo "$as_me: failed program was:" >&5
21887 sed 's/^/| /' conftest.$ac_ext >&5
21892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21893 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
21894 echo "${ECHO_T}$was_it_defined" >&6; }
21896 { echo "$as_me:$LINENO: checking for addrinfo" >&5
21897 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; }
21898 if test "${ac_cv_struct_addrinfo+set}" = set; then
21899 echo $ECHO_N "(cached) $ECHO_C" >&6
21900 else
21901 cat >conftest.$ac_ext <<_ACEOF
21902 /* confdefs.h. */
21903 _ACEOF
21904 cat confdefs.h >>conftest.$ac_ext
21905 cat >>conftest.$ac_ext <<_ACEOF
21906 /* end confdefs.h. */
21908 # include <netdb.h>
21910 main ()
21912 struct addrinfo a
21914 return 0;
21916 _ACEOF
21917 rm -f conftest.$ac_objext
21918 if { (ac_try="$ac_compile"
21919 case "(($ac_try" in
21920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21921 *) ac_try_echo=$ac_try;;
21922 esac
21923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21924 (eval "$ac_compile") 2>conftest.er1
21925 ac_status=$?
21926 grep -v '^ *+' conftest.er1 >conftest.err
21927 rm -f conftest.er1
21928 cat conftest.err >&5
21929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21930 (exit $ac_status); } && {
21931 test -z "$ac_c_werror_flag" ||
21932 test ! -s conftest.err
21933 } && test -s conftest.$ac_objext; then
21934 ac_cv_struct_addrinfo=yes
21935 else
21936 echo "$as_me: failed program was:" >&5
21937 sed 's/^/| /' conftest.$ac_ext >&5
21939 ac_cv_struct_addrinfo=no
21942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21945 { echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
21946 echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6; }
21947 if test $ac_cv_struct_addrinfo = yes; then
21949 cat >>confdefs.h <<\_ACEOF
21950 #define HAVE_ADDRINFO 1
21951 _ACEOF
21955 { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
21956 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; }
21957 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
21958 echo $ECHO_N "(cached) $ECHO_C" >&6
21959 else
21960 cat >conftest.$ac_ext <<_ACEOF
21961 /* confdefs.h. */
21962 _ACEOF
21963 cat confdefs.h >>conftest.$ac_ext
21964 cat >>conftest.$ac_ext <<_ACEOF
21965 /* end confdefs.h. */
21967 # include <sys/types.h>
21968 # include <sys/socket.h>
21970 main ()
21972 struct sockaddr_storage s
21974 return 0;
21976 _ACEOF
21977 rm -f conftest.$ac_objext
21978 if { (ac_try="$ac_compile"
21979 case "(($ac_try" in
21980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21981 *) ac_try_echo=$ac_try;;
21982 esac
21983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21984 (eval "$ac_compile") 2>conftest.er1
21985 ac_status=$?
21986 grep -v '^ *+' conftest.er1 >conftest.err
21987 rm -f conftest.er1
21988 cat conftest.err >&5
21989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21990 (exit $ac_status); } && {
21991 test -z "$ac_c_werror_flag" ||
21992 test ! -s conftest.err
21993 } && test -s conftest.$ac_objext; then
21994 ac_cv_struct_sockaddr_storage=yes
21995 else
21996 echo "$as_me: failed program was:" >&5
21997 sed 's/^/| /' conftest.$ac_ext >&5
21999 ac_cv_struct_sockaddr_storage=no
22002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22005 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
22006 echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6; }
22007 if test $ac_cv_struct_sockaddr_storage = yes; then
22009 cat >>confdefs.h <<\_ACEOF
22010 #define HAVE_SOCKADDR_STORAGE 1
22011 _ACEOF
22015 # checks for compiler characteristics
22018 { echo "$as_me:$LINENO: checking whether char is unsigned" >&5
22019 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6; }
22020 if test "${ac_cv_c_char_unsigned+set}" = set; then
22021 echo $ECHO_N "(cached) $ECHO_C" >&6
22022 else
22023 cat >conftest.$ac_ext <<_ACEOF
22024 /* confdefs.h. */
22025 _ACEOF
22026 cat confdefs.h >>conftest.$ac_ext
22027 cat >>conftest.$ac_ext <<_ACEOF
22028 /* end confdefs.h. */
22029 $ac_includes_default
22031 main ()
22033 static int test_array [1 - 2 * !(((char) -1) < 0)];
22034 test_array [0] = 0
22037 return 0;
22039 _ACEOF
22040 rm -f conftest.$ac_objext
22041 if { (ac_try="$ac_compile"
22042 case "(($ac_try" in
22043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22044 *) ac_try_echo=$ac_try;;
22045 esac
22046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22047 (eval "$ac_compile") 2>conftest.er1
22048 ac_status=$?
22049 grep -v '^ *+' conftest.er1 >conftest.err
22050 rm -f conftest.er1
22051 cat conftest.err >&5
22052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22053 (exit $ac_status); } && {
22054 test -z "$ac_c_werror_flag" ||
22055 test ! -s conftest.err
22056 } && test -s conftest.$ac_objext; then
22057 ac_cv_c_char_unsigned=no
22058 else
22059 echo "$as_me: failed program was:" >&5
22060 sed 's/^/| /' conftest.$ac_ext >&5
22062 ac_cv_c_char_unsigned=yes
22065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22067 { echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
22068 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; }
22069 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
22070 cat >>confdefs.h <<\_ACEOF
22071 #define __CHAR_UNSIGNED__ 1
22072 _ACEOF
22076 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
22077 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
22078 if test "${ac_cv_c_const+set}" = set; then
22079 echo $ECHO_N "(cached) $ECHO_C" >&6
22080 else
22081 cat >conftest.$ac_ext <<_ACEOF
22082 /* confdefs.h. */
22083 _ACEOF
22084 cat confdefs.h >>conftest.$ac_ext
22085 cat >>conftest.$ac_ext <<_ACEOF
22086 /* end confdefs.h. */
22089 main ()
22091 /* FIXME: Include the comments suggested by Paul. */
22092 #ifndef __cplusplus
22093 /* Ultrix mips cc rejects this. */
22094 typedef int charset[2];
22095 const charset cs;
22096 /* SunOS 4.1.1 cc rejects this. */
22097 char const *const *pcpcc;
22098 char **ppc;
22099 /* NEC SVR4.0.2 mips cc rejects this. */
22100 struct point {int x, y;};
22101 static struct point const zero = {0,0};
22102 /* AIX XL C 1.02.0.0 rejects this.
22103 It does not let you subtract one const X* pointer from another in
22104 an arm of an if-expression whose if-part is not a constant
22105 expression */
22106 const char *g = "string";
22107 pcpcc = &g + (g ? g-g : 0);
22108 /* HPUX 7.0 cc rejects these. */
22109 ++pcpcc;
22110 ppc = (char**) pcpcc;
22111 pcpcc = (char const *const *) ppc;
22112 { /* SCO 3.2v4 cc rejects this. */
22113 char *t;
22114 char const *s = 0 ? (char *) 0 : (char const *) 0;
22116 *t++ = 0;
22117 if (s) return 0;
22119 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22120 int x[] = {25, 17};
22121 const int *foo = &x[0];
22122 ++foo;
22124 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22125 typedef const int *iptr;
22126 iptr p = 0;
22127 ++p;
22129 { /* AIX XL C 1.02.0.0 rejects this saying
22130 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22131 struct s { int j; const int *ap[3]; };
22132 struct s *b; b->j = 5;
22134 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22135 const int foo = 10;
22136 if (!foo) return 0;
22138 return !cs[0] && !zero.x;
22139 #endif
22142 return 0;
22144 _ACEOF
22145 rm -f conftest.$ac_objext
22146 if { (ac_try="$ac_compile"
22147 case "(($ac_try" in
22148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22149 *) ac_try_echo=$ac_try;;
22150 esac
22151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22152 (eval "$ac_compile") 2>conftest.er1
22153 ac_status=$?
22154 grep -v '^ *+' conftest.er1 >conftest.err
22155 rm -f conftest.er1
22156 cat conftest.err >&5
22157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22158 (exit $ac_status); } && {
22159 test -z "$ac_c_werror_flag" ||
22160 test ! -s conftest.err
22161 } && test -s conftest.$ac_objext; then
22162 ac_cv_c_const=yes
22163 else
22164 echo "$as_me: failed program was:" >&5
22165 sed 's/^/| /' conftest.$ac_ext >&5
22167 ac_cv_c_const=no
22170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22172 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
22173 echo "${ECHO_T}$ac_cv_c_const" >&6; }
22174 if test $ac_cv_c_const = no; then
22176 cat >>confdefs.h <<\_ACEOF
22177 #define const
22178 _ACEOF
22183 works=no
22184 { echo "$as_me:$LINENO: checking for working volatile" >&5
22185 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
22186 cat >conftest.$ac_ext <<_ACEOF
22187 /* confdefs.h. */
22188 _ACEOF
22189 cat confdefs.h >>conftest.$ac_ext
22190 cat >>conftest.$ac_ext <<_ACEOF
22191 /* end confdefs.h. */
22194 main ()
22196 volatile int x; x = 0;
22198 return 0;
22200 _ACEOF
22201 rm -f conftest.$ac_objext
22202 if { (ac_try="$ac_compile"
22203 case "(($ac_try" in
22204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22205 *) ac_try_echo=$ac_try;;
22206 esac
22207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22208 (eval "$ac_compile") 2>conftest.er1
22209 ac_status=$?
22210 grep -v '^ *+' conftest.er1 >conftest.err
22211 rm -f conftest.er1
22212 cat conftest.err >&5
22213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22214 (exit $ac_status); } && {
22215 test -z "$ac_c_werror_flag" ||
22216 test ! -s conftest.err
22217 } && test -s conftest.$ac_objext; then
22218 works=yes
22219 else
22220 echo "$as_me: failed program was:" >&5
22221 sed 's/^/| /' conftest.$ac_ext >&5
22224 cat >>confdefs.h <<\_ACEOF
22225 #define volatile
22226 _ACEOF
22231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22232 { echo "$as_me:$LINENO: result: $works" >&5
22233 echo "${ECHO_T}$works" >&6; }
22235 works=no
22236 { echo "$as_me:$LINENO: checking for working signed char" >&5
22237 echo $ECHO_N "checking for working signed char... $ECHO_C" >&6; }
22238 cat >conftest.$ac_ext <<_ACEOF
22239 /* confdefs.h. */
22240 _ACEOF
22241 cat confdefs.h >>conftest.$ac_ext
22242 cat >>conftest.$ac_ext <<_ACEOF
22243 /* end confdefs.h. */
22246 main ()
22248 signed char c;
22250 return 0;
22252 _ACEOF
22253 rm -f conftest.$ac_objext
22254 if { (ac_try="$ac_compile"
22255 case "(($ac_try" in
22256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22257 *) ac_try_echo=$ac_try;;
22258 esac
22259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22260 (eval "$ac_compile") 2>conftest.er1
22261 ac_status=$?
22262 grep -v '^ *+' conftest.er1 >conftest.err
22263 rm -f conftest.er1
22264 cat conftest.err >&5
22265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22266 (exit $ac_status); } && {
22267 test -z "$ac_c_werror_flag" ||
22268 test ! -s conftest.err
22269 } && test -s conftest.$ac_objext; then
22270 works=yes
22271 else
22272 echo "$as_me: failed program was:" >&5
22273 sed 's/^/| /' conftest.$ac_ext >&5
22276 cat >>confdefs.h <<\_ACEOF
22277 #define signed
22278 _ACEOF
22283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22284 { echo "$as_me:$LINENO: result: $works" >&5
22285 echo "${ECHO_T}$works" >&6; }
22287 have_prototypes=no
22288 { echo "$as_me:$LINENO: checking for prototypes" >&5
22289 echo $ECHO_N "checking for prototypes... $ECHO_C" >&6; }
22290 cat >conftest.$ac_ext <<_ACEOF
22291 /* confdefs.h. */
22292 _ACEOF
22293 cat confdefs.h >>conftest.$ac_ext
22294 cat >>conftest.$ac_ext <<_ACEOF
22295 /* end confdefs.h. */
22296 int foo(int x) { return 0; }
22298 main ()
22300 return foo(10);
22302 return 0;
22304 _ACEOF
22305 rm -f conftest.$ac_objext
22306 if { (ac_try="$ac_compile"
22307 case "(($ac_try" in
22308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22309 *) ac_try_echo=$ac_try;;
22310 esac
22311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22312 (eval "$ac_compile") 2>conftest.er1
22313 ac_status=$?
22314 grep -v '^ *+' conftest.er1 >conftest.err
22315 rm -f conftest.er1
22316 cat conftest.err >&5
22317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22318 (exit $ac_status); } && {
22319 test -z "$ac_c_werror_flag" ||
22320 test ! -s conftest.err
22321 } && test -s conftest.$ac_objext; then
22324 cat >>confdefs.h <<\_ACEOF
22325 #define HAVE_PROTOTYPES 1
22326 _ACEOF
22328 have_prototypes=yes
22330 else
22331 echo "$as_me: failed program was:" >&5
22332 sed 's/^/| /' conftest.$ac_ext >&5
22337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22338 { echo "$as_me:$LINENO: result: $have_prototypes" >&5
22339 echo "${ECHO_T}$have_prototypes" >&6; }
22341 works=no
22342 { echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
22343 echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6; }
22344 cat >conftest.$ac_ext <<_ACEOF
22345 /* confdefs.h. */
22346 _ACEOF
22347 cat confdefs.h >>conftest.$ac_ext
22348 cat >>conftest.$ac_ext <<_ACEOF
22349 /* end confdefs.h. */
22351 #include <stdarg.h>
22352 int foo(int x, ...) {
22353 va_list va;
22354 va_start(va, x);
22355 va_arg(va, int);
22356 va_arg(va, char *);
22357 va_arg(va, double);
22358 return 0;
22362 main ()
22364 return foo(10, "", 3.14);
22366 return 0;
22368 _ACEOF
22369 rm -f conftest.$ac_objext
22370 if { (ac_try="$ac_compile"
22371 case "(($ac_try" in
22372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22373 *) ac_try_echo=$ac_try;;
22374 esac
22375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22376 (eval "$ac_compile") 2>conftest.er1
22377 ac_status=$?
22378 grep -v '^ *+' conftest.er1 >conftest.err
22379 rm -f conftest.er1
22380 cat conftest.err >&5
22381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22382 (exit $ac_status); } && {
22383 test -z "$ac_c_werror_flag" ||
22384 test ! -s conftest.err
22385 } && test -s conftest.$ac_objext; then
22388 cat >>confdefs.h <<\_ACEOF
22389 #define HAVE_STDARG_PROTOTYPES 1
22390 _ACEOF
22392 works=yes
22394 else
22395 echo "$as_me: failed program was:" >&5
22396 sed 's/^/| /' conftest.$ac_ext >&5
22401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22402 { echo "$as_me:$LINENO: result: $works" >&5
22403 echo "${ECHO_T}$works" >&6; }
22405 # check for socketpair
22406 { echo "$as_me:$LINENO: checking for socketpair" >&5
22407 echo $ECHO_N "checking for socketpair... $ECHO_C" >&6; }
22408 cat >conftest.$ac_ext <<_ACEOF
22409 /* confdefs.h. */
22410 _ACEOF
22411 cat confdefs.h >>conftest.$ac_ext
22412 cat >>conftest.$ac_ext <<_ACEOF
22413 /* end confdefs.h. */
22415 #include <sys/types.h>
22416 #include <sys/socket.h>
22419 main ()
22421 void *x=socketpair
22423 return 0;
22425 _ACEOF
22426 rm -f conftest.$ac_objext
22427 if { (ac_try="$ac_compile"
22428 case "(($ac_try" in
22429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22430 *) ac_try_echo=$ac_try;;
22431 esac
22432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22433 (eval "$ac_compile") 2>conftest.er1
22434 ac_status=$?
22435 grep -v '^ *+' conftest.er1 >conftest.err
22436 rm -f conftest.er1
22437 cat conftest.err >&5
22438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22439 (exit $ac_status); } && {
22440 test -z "$ac_c_werror_flag" ||
22441 test ! -s conftest.err
22442 } && test -s conftest.$ac_objext; then
22444 cat >>confdefs.h <<\_ACEOF
22445 #define HAVE_SOCKETPAIR 1
22446 _ACEOF
22448 { echo "$as_me:$LINENO: result: yes" >&5
22449 echo "${ECHO_T}yes" >&6; }
22450 else
22451 echo "$as_me: failed program was:" >&5
22452 sed 's/^/| /' conftest.$ac_ext >&5
22454 { echo "$as_me:$LINENO: result: no" >&5
22455 echo "${ECHO_T}no" >&6; }
22459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22461 # check if sockaddr has sa_len member
22462 { echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
22463 echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6; }
22464 cat >conftest.$ac_ext <<_ACEOF
22465 /* confdefs.h. */
22466 _ACEOF
22467 cat confdefs.h >>conftest.$ac_ext
22468 cat >>conftest.$ac_ext <<_ACEOF
22469 /* end confdefs.h. */
22470 #include <sys/types.h>
22471 #include <sys/socket.h>
22473 main ()
22475 struct sockaddr x;
22476 x.sa_len = 0;
22478 return 0;
22480 _ACEOF
22481 rm -f conftest.$ac_objext
22482 if { (ac_try="$ac_compile"
22483 case "(($ac_try" in
22484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22485 *) ac_try_echo=$ac_try;;
22486 esac
22487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22488 (eval "$ac_compile") 2>conftest.er1
22489 ac_status=$?
22490 grep -v '^ *+' conftest.er1 >conftest.err
22491 rm -f conftest.er1
22492 cat conftest.err >&5
22493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22494 (exit $ac_status); } && {
22495 test -z "$ac_c_werror_flag" ||
22496 test ! -s conftest.err
22497 } && test -s conftest.$ac_objext; then
22498 { echo "$as_me:$LINENO: result: yes" >&5
22499 echo "${ECHO_T}yes" >&6; }
22501 cat >>confdefs.h <<\_ACEOF
22502 #define HAVE_SOCKADDR_SA_LEN 1
22503 _ACEOF
22505 else
22506 echo "$as_me: failed program was:" >&5
22507 sed 's/^/| /' conftest.$ac_ext >&5
22509 { echo "$as_me:$LINENO: result: no" >&5
22510 echo "${ECHO_T}no" >&6; }
22513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22515 va_list_is_array=no
22516 { echo "$as_me:$LINENO: checking whether va_list is an array" >&5
22517 echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6; }
22518 cat >conftest.$ac_ext <<_ACEOF
22519 /* confdefs.h. */
22520 _ACEOF
22521 cat confdefs.h >>conftest.$ac_ext
22522 cat >>conftest.$ac_ext <<_ACEOF
22523 /* end confdefs.h. */
22525 #ifdef HAVE_STDARG_PROTOTYPES
22526 #include <stdarg.h>
22527 #else
22528 #include <varargs.h>
22529 #endif
22532 main ()
22534 va_list list1, list2; list1 = list2;
22536 return 0;
22538 _ACEOF
22539 rm -f conftest.$ac_objext
22540 if { (ac_try="$ac_compile"
22541 case "(($ac_try" in
22542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22543 *) ac_try_echo=$ac_try;;
22544 esac
22545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22546 (eval "$ac_compile") 2>conftest.er1
22547 ac_status=$?
22548 grep -v '^ *+' conftest.er1 >conftest.err
22549 rm -f conftest.er1
22550 cat conftest.err >&5
22551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22552 (exit $ac_status); } && {
22553 test -z "$ac_c_werror_flag" ||
22554 test ! -s conftest.err
22555 } && test -s conftest.$ac_objext; then
22557 else
22558 echo "$as_me: failed program was:" >&5
22559 sed 's/^/| /' conftest.$ac_ext >&5
22563 cat >>confdefs.h <<\_ACEOF
22564 #define VA_LIST_IS_ARRAY 1
22565 _ACEOF
22567 va_list_is_array=yes
22571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22572 { echo "$as_me:$LINENO: result: $va_list_is_array" >&5
22573 echo "${ECHO_T}$va_list_is_array" >&6; }
22575 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
22579 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
22580 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
22581 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
22582 echo $ECHO_N "(cached) $ECHO_C" >&6
22583 else
22584 cat >conftest.$ac_ext <<_ACEOF
22585 /* confdefs.h. */
22586 _ACEOF
22587 cat confdefs.h >>conftest.$ac_ext
22588 cat >>conftest.$ac_ext <<_ACEOF
22589 /* end confdefs.h. */
22590 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
22591 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22592 #define gethostbyname_r innocuous_gethostbyname_r
22594 /* System header to define __stub macros and hopefully few prototypes,
22595 which can conflict with char gethostbyname_r (); below.
22596 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22597 <limits.h> exists even on freestanding compilers. */
22599 #ifdef __STDC__
22600 # include <limits.h>
22601 #else
22602 # include <assert.h>
22603 #endif
22605 #undef gethostbyname_r
22607 /* Override any GCC internal prototype to avoid an error.
22608 Use char because int might match the return type of a GCC
22609 builtin and then its argument prototype would still apply. */
22610 #ifdef __cplusplus
22611 extern "C"
22612 #endif
22613 char gethostbyname_r ();
22614 /* The GNU C library defines this for functions which it implements
22615 to always fail with ENOSYS. Some functions are actually named
22616 something starting with __ and the normal name is an alias. */
22617 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
22618 choke me
22619 #endif
22622 main ()
22624 return gethostbyname_r ();
22626 return 0;
22628 _ACEOF
22629 rm -f conftest.$ac_objext conftest$ac_exeext
22630 if { (ac_try="$ac_link"
22631 case "(($ac_try" in
22632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22633 *) ac_try_echo=$ac_try;;
22634 esac
22635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22636 (eval "$ac_link") 2>conftest.er1
22637 ac_status=$?
22638 grep -v '^ *+' conftest.er1 >conftest.err
22639 rm -f conftest.er1
22640 cat conftest.err >&5
22641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22642 (exit $ac_status); } && {
22643 test -z "$ac_c_werror_flag" ||
22644 test ! -s conftest.err
22645 } && test -s conftest$ac_exeext &&
22646 $as_test_x conftest$ac_exeext; then
22647 ac_cv_func_gethostbyname_r=yes
22648 else
22649 echo "$as_me: failed program was:" >&5
22650 sed 's/^/| /' conftest.$ac_ext >&5
22652 ac_cv_func_gethostbyname_r=no
22655 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22656 conftest$ac_exeext conftest.$ac_ext
22658 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
22659 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
22660 if test $ac_cv_func_gethostbyname_r = yes; then
22662 cat >>confdefs.h <<\_ACEOF
22663 #define HAVE_GETHOSTBYNAME_R 1
22664 _ACEOF
22666 { echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
22667 echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6; }
22668 OLD_CFLAGS=$CFLAGS
22669 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
22670 cat >conftest.$ac_ext <<_ACEOF
22671 /* confdefs.h. */
22672 _ACEOF
22673 cat confdefs.h >>conftest.$ac_ext
22674 cat >>conftest.$ac_ext <<_ACEOF
22675 /* end confdefs.h. */
22677 # include <netdb.h>
22680 main ()
22683 char *name;
22684 struct hostent *he, *res;
22685 char buffer[2048];
22686 int buflen = 2048;
22687 int h_errnop;
22689 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
22692 return 0;
22694 _ACEOF
22695 rm -f conftest.$ac_objext
22696 if { (ac_try="$ac_compile"
22697 case "(($ac_try" in
22698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22699 *) ac_try_echo=$ac_try;;
22700 esac
22701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22702 (eval "$ac_compile") 2>conftest.er1
22703 ac_status=$?
22704 grep -v '^ *+' conftest.er1 >conftest.err
22705 rm -f conftest.er1
22706 cat conftest.err >&5
22707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22708 (exit $ac_status); } && {
22709 test -z "$ac_c_werror_flag" ||
22710 test ! -s conftest.err
22711 } && test -s conftest.$ac_objext; then
22713 cat >>confdefs.h <<\_ACEOF
22714 #define HAVE_GETHOSTBYNAME_R 1
22715 _ACEOF
22718 cat >>confdefs.h <<\_ACEOF
22719 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
22720 _ACEOF
22722 { echo "$as_me:$LINENO: result: yes" >&5
22723 echo "${ECHO_T}yes" >&6; }
22725 else
22726 echo "$as_me: failed program was:" >&5
22727 sed 's/^/| /' conftest.$ac_ext >&5
22730 { echo "$as_me:$LINENO: result: no" >&5
22731 echo "${ECHO_T}no" >&6; }
22732 { echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
22733 echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6; }
22734 cat >conftest.$ac_ext <<_ACEOF
22735 /* confdefs.h. */
22736 _ACEOF
22737 cat confdefs.h >>conftest.$ac_ext
22738 cat >>conftest.$ac_ext <<_ACEOF
22739 /* end confdefs.h. */
22741 # include <netdb.h>
22744 main ()
22747 char *name;
22748 struct hostent *he;
22749 char buffer[2048];
22750 int buflen = 2048;
22751 int h_errnop;
22753 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
22756 return 0;
22758 _ACEOF
22759 rm -f conftest.$ac_objext
22760 if { (ac_try="$ac_compile"
22761 case "(($ac_try" in
22762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22763 *) ac_try_echo=$ac_try;;
22764 esac
22765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22766 (eval "$ac_compile") 2>conftest.er1
22767 ac_status=$?
22768 grep -v '^ *+' conftest.er1 >conftest.err
22769 rm -f conftest.er1
22770 cat conftest.err >&5
22771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22772 (exit $ac_status); } && {
22773 test -z "$ac_c_werror_flag" ||
22774 test ! -s conftest.err
22775 } && test -s conftest.$ac_objext; then
22777 cat >>confdefs.h <<\_ACEOF
22778 #define HAVE_GETHOSTBYNAME_R 1
22779 _ACEOF
22782 cat >>confdefs.h <<\_ACEOF
22783 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
22784 _ACEOF
22786 { echo "$as_me:$LINENO: result: yes" >&5
22787 echo "${ECHO_T}yes" >&6; }
22789 else
22790 echo "$as_me: failed program was:" >&5
22791 sed 's/^/| /' conftest.$ac_ext >&5
22794 { echo "$as_me:$LINENO: result: no" >&5
22795 echo "${ECHO_T}no" >&6; }
22796 { echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
22797 echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6; }
22798 cat >conftest.$ac_ext <<_ACEOF
22799 /* confdefs.h. */
22800 _ACEOF
22801 cat confdefs.h >>conftest.$ac_ext
22802 cat >>conftest.$ac_ext <<_ACEOF
22803 /* end confdefs.h. */
22805 # include <netdb.h>
22808 main ()
22811 char *name;
22812 struct hostent *he;
22813 struct hostent_data data;
22815 (void) gethostbyname_r(name, he, &data);
22818 return 0;
22820 _ACEOF
22821 rm -f conftest.$ac_objext
22822 if { (ac_try="$ac_compile"
22823 case "(($ac_try" in
22824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22825 *) ac_try_echo=$ac_try;;
22826 esac
22827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22828 (eval "$ac_compile") 2>conftest.er1
22829 ac_status=$?
22830 grep -v '^ *+' conftest.er1 >conftest.err
22831 rm -f conftest.er1
22832 cat conftest.err >&5
22833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22834 (exit $ac_status); } && {
22835 test -z "$ac_c_werror_flag" ||
22836 test ! -s conftest.err
22837 } && test -s conftest.$ac_objext; then
22839 cat >>confdefs.h <<\_ACEOF
22840 #define HAVE_GETHOSTBYNAME_R 1
22841 _ACEOF
22844 cat >>confdefs.h <<\_ACEOF
22845 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
22846 _ACEOF
22848 { echo "$as_me:$LINENO: result: yes" >&5
22849 echo "${ECHO_T}yes" >&6; }
22851 else
22852 echo "$as_me: failed program was:" >&5
22853 sed 's/^/| /' conftest.$ac_ext >&5
22856 { echo "$as_me:$LINENO: result: no" >&5
22857 echo "${ECHO_T}no" >&6; }
22861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22870 CFLAGS=$OLD_CFLAGS
22872 else
22875 for ac_func in gethostbyname
22877 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22878 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22879 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22880 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22881 echo $ECHO_N "(cached) $ECHO_C" >&6
22882 else
22883 cat >conftest.$ac_ext <<_ACEOF
22884 /* confdefs.h. */
22885 _ACEOF
22886 cat confdefs.h >>conftest.$ac_ext
22887 cat >>conftest.$ac_ext <<_ACEOF
22888 /* end confdefs.h. */
22889 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22890 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22891 #define $ac_func innocuous_$ac_func
22893 /* System header to define __stub macros and hopefully few prototypes,
22894 which can conflict with char $ac_func (); below.
22895 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22896 <limits.h> exists even on freestanding compilers. */
22898 #ifdef __STDC__
22899 # include <limits.h>
22900 #else
22901 # include <assert.h>
22902 #endif
22904 #undef $ac_func
22906 /* Override any GCC internal prototype to avoid an error.
22907 Use char because int might match the return type of a GCC
22908 builtin and then its argument prototype would still apply. */
22909 #ifdef __cplusplus
22910 extern "C"
22911 #endif
22912 char $ac_func ();
22913 /* The GNU C library defines this for functions which it implements
22914 to always fail with ENOSYS. Some functions are actually named
22915 something starting with __ and the normal name is an alias. */
22916 #if defined __stub_$ac_func || defined __stub___$ac_func
22917 choke me
22918 #endif
22921 main ()
22923 return $ac_func ();
22925 return 0;
22927 _ACEOF
22928 rm -f conftest.$ac_objext conftest$ac_exeext
22929 if { (ac_try="$ac_link"
22930 case "(($ac_try" in
22931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22932 *) ac_try_echo=$ac_try;;
22933 esac
22934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22935 (eval "$ac_link") 2>conftest.er1
22936 ac_status=$?
22937 grep -v '^ *+' conftest.er1 >conftest.err
22938 rm -f conftest.er1
22939 cat conftest.err >&5
22940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22941 (exit $ac_status); } && {
22942 test -z "$ac_c_werror_flag" ||
22943 test ! -s conftest.err
22944 } && test -s conftest$ac_exeext &&
22945 $as_test_x conftest$ac_exeext; then
22946 eval "$as_ac_var=yes"
22947 else
22948 echo "$as_me: failed program was:" >&5
22949 sed 's/^/| /' conftest.$ac_ext >&5
22951 eval "$as_ac_var=no"
22954 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22955 conftest$ac_exeext conftest.$ac_ext
22957 ac_res=`eval echo '${'$as_ac_var'}'`
22958 { echo "$as_me:$LINENO: result: $ac_res" >&5
22959 echo "${ECHO_T}$ac_res" >&6; }
22960 if test `eval echo '${'$as_ac_var'}'` = yes; then
22961 cat >>confdefs.h <<_ACEOF
22962 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22963 _ACEOF
22966 done
22977 # checks for system services
22978 # (none yet)
22980 # Linux requires this for correct f.p. operations
22981 { echo "$as_me:$LINENO: checking for __fpu_control" >&5
22982 echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6; }
22983 if test "${ac_cv_func___fpu_control+set}" = set; then
22984 echo $ECHO_N "(cached) $ECHO_C" >&6
22985 else
22986 cat >conftest.$ac_ext <<_ACEOF
22987 /* confdefs.h. */
22988 _ACEOF
22989 cat confdefs.h >>conftest.$ac_ext
22990 cat >>conftest.$ac_ext <<_ACEOF
22991 /* end confdefs.h. */
22992 /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control.
22993 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22994 #define __fpu_control innocuous___fpu_control
22996 /* System header to define __stub macros and hopefully few prototypes,
22997 which can conflict with char __fpu_control (); below.
22998 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22999 <limits.h> exists even on freestanding compilers. */
23001 #ifdef __STDC__
23002 # include <limits.h>
23003 #else
23004 # include <assert.h>
23005 #endif
23007 #undef __fpu_control
23009 /* Override any GCC internal prototype to avoid an error.
23010 Use char because int might match the return type of a GCC
23011 builtin and then its argument prototype would still apply. */
23012 #ifdef __cplusplus
23013 extern "C"
23014 #endif
23015 char __fpu_control ();
23016 /* The GNU C library defines this for functions which it implements
23017 to always fail with ENOSYS. Some functions are actually named
23018 something starting with __ and the normal name is an alias. */
23019 #if defined __stub___fpu_control || defined __stub_____fpu_control
23020 choke me
23021 #endif
23024 main ()
23026 return __fpu_control ();
23028 return 0;
23030 _ACEOF
23031 rm -f conftest.$ac_objext conftest$ac_exeext
23032 if { (ac_try="$ac_link"
23033 case "(($ac_try" in
23034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23035 *) ac_try_echo=$ac_try;;
23036 esac
23037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23038 (eval "$ac_link") 2>conftest.er1
23039 ac_status=$?
23040 grep -v '^ *+' conftest.er1 >conftest.err
23041 rm -f conftest.er1
23042 cat conftest.err >&5
23043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23044 (exit $ac_status); } && {
23045 test -z "$ac_c_werror_flag" ||
23046 test ! -s conftest.err
23047 } && test -s conftest$ac_exeext &&
23048 $as_test_x conftest$ac_exeext; then
23049 ac_cv_func___fpu_control=yes
23050 else
23051 echo "$as_me: failed program was:" >&5
23052 sed 's/^/| /' conftest.$ac_ext >&5
23054 ac_cv_func___fpu_control=no
23057 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23058 conftest$ac_exeext conftest.$ac_ext
23060 { echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
23061 echo "${ECHO_T}$ac_cv_func___fpu_control" >&6; }
23062 if test $ac_cv_func___fpu_control = yes; then
23064 else
23066 { echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
23067 echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6; }
23068 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
23069 echo $ECHO_N "(cached) $ECHO_C" >&6
23070 else
23071 ac_check_lib_save_LIBS=$LIBS
23072 LIBS="-lieee $LIBS"
23073 cat >conftest.$ac_ext <<_ACEOF
23074 /* confdefs.h. */
23075 _ACEOF
23076 cat confdefs.h >>conftest.$ac_ext
23077 cat >>conftest.$ac_ext <<_ACEOF
23078 /* end confdefs.h. */
23080 /* Override any GCC internal prototype to avoid an error.
23081 Use char because int might match the return type of a GCC
23082 builtin and then its argument prototype would still apply. */
23083 #ifdef __cplusplus
23084 extern "C"
23085 #endif
23086 char __fpu_control ();
23088 main ()
23090 return __fpu_control ();
23092 return 0;
23094 _ACEOF
23095 rm -f conftest.$ac_objext conftest$ac_exeext
23096 if { (ac_try="$ac_link"
23097 case "(($ac_try" in
23098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23099 *) ac_try_echo=$ac_try;;
23100 esac
23101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23102 (eval "$ac_link") 2>conftest.er1
23103 ac_status=$?
23104 grep -v '^ *+' conftest.er1 >conftest.err
23105 rm -f conftest.er1
23106 cat conftest.err >&5
23107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23108 (exit $ac_status); } && {
23109 test -z "$ac_c_werror_flag" ||
23110 test ! -s conftest.err
23111 } && test -s conftest$ac_exeext &&
23112 $as_test_x conftest$ac_exeext; then
23113 ac_cv_lib_ieee___fpu_control=yes
23114 else
23115 echo "$as_me: failed program was:" >&5
23116 sed 's/^/| /' conftest.$ac_ext >&5
23118 ac_cv_lib_ieee___fpu_control=no
23121 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23122 conftest$ac_exeext conftest.$ac_ext
23123 LIBS=$ac_check_lib_save_LIBS
23125 { echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
23126 echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6; }
23127 if test $ac_cv_lib_ieee___fpu_control = yes; then
23128 cat >>confdefs.h <<_ACEOF
23129 #define HAVE_LIBIEEE 1
23130 _ACEOF
23132 LIBS="-lieee $LIBS"
23140 # Check for --with-fpectl
23141 { echo "$as_me:$LINENO: checking for --with-fpectl" >&5
23142 echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6; }
23144 # Check whether --with-fpectl was given.
23145 if test "${with_fpectl+set}" = set; then
23146 withval=$with_fpectl;
23147 if test "$withval" != no
23148 then
23150 cat >>confdefs.h <<\_ACEOF
23151 #define WANT_SIGFPE_HANDLER 1
23152 _ACEOF
23154 { echo "$as_me:$LINENO: result: yes" >&5
23155 echo "${ECHO_T}yes" >&6; }
23156 else { echo "$as_me:$LINENO: result: no" >&5
23157 echo "${ECHO_T}no" >&6; }
23159 else
23160 { echo "$as_me:$LINENO: result: no" >&5
23161 echo "${ECHO_T}no" >&6; }
23165 # check for --with-libm=...
23167 case $ac_sys_system in
23168 Darwin) ;;
23169 BeOS) ;;
23170 *) LIBM=-lm
23171 esac
23172 { echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
23173 echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6; }
23175 # Check whether --with-libm was given.
23176 if test "${with_libm+set}" = set; then
23177 withval=$with_libm;
23178 if test "$withval" = no
23179 then LIBM=
23180 { echo "$as_me:$LINENO: result: force LIBM empty" >&5
23181 echo "${ECHO_T}force LIBM empty" >&6; }
23182 elif test "$withval" != yes
23183 then LIBM=$withval
23184 { echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
23185 echo "${ECHO_T}set LIBM=\"$withval\"" >&6; }
23186 else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
23187 echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
23188 { (exit 1); exit 1; }; }
23190 else
23191 { echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
23192 echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6; }
23196 # check for --with-libc=...
23198 { echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
23199 echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6; }
23201 # Check whether --with-libc was given.
23202 if test "${with_libc+set}" = set; then
23203 withval=$with_libc;
23204 if test "$withval" = no
23205 then LIBC=
23206 { echo "$as_me:$LINENO: result: force LIBC empty" >&5
23207 echo "${ECHO_T}force LIBC empty" >&6; }
23208 elif test "$withval" != yes
23209 then LIBC=$withval
23210 { echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
23211 echo "${ECHO_T}set LIBC=\"$withval\"" >&6; }
23212 else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
23213 echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
23214 { (exit 1); exit 1; }; }
23216 else
23217 { echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
23218 echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6; }
23222 # ************************************
23223 # * Check for mathematical functions *
23224 # ************************************
23226 LIBS_SAVE=$LIBS
23227 LIBS="$LIBS $LIBM"
23229 # Detect whether system arithmetic is subject to x87-style double
23230 # rounding issues. The result of this test has little meaning on non
23231 # IEEE 754 platforms. On IEEE 754, test should return 1 if rounding
23232 # mode is round-to-nearest and double rounding issues are present, and
23233 # 0 otherwise. See http://bugs.python.org/issue2937 for more info.
23234 { echo "$as_me:$LINENO: checking for x87-style double rounding" >&5
23235 echo $ECHO_N "checking for x87-style double rounding... $ECHO_C" >&6; }
23236 if test "${ac_cv_x87_double_rounding+set}" = set; then
23237 echo $ECHO_N "(cached) $ECHO_C" >&6
23238 else
23240 if test "$cross_compiling" = yes; then
23241 ac_cv_x87_double_rounding=no
23242 else
23243 cat >conftest.$ac_ext <<_ACEOF
23244 /* confdefs.h. */
23245 _ACEOF
23246 cat confdefs.h >>conftest.$ac_ext
23247 cat >>conftest.$ac_ext <<_ACEOF
23248 /* end confdefs.h. */
23250 #include <stdlib.h>
23251 #include <math.h>
23252 int main() {
23253 volatile double x, y, z;
23254 /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */
23255 x = 0.99999999999999989; /* 1-2**-53 */
23256 y = 1./x;
23257 if (y != 1.)
23258 exit(0);
23259 /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */
23260 x = 1e16;
23261 y = 2.99999;
23262 z = x + y;
23263 if (z != 1e16+4.)
23264 exit(0);
23265 /* both tests show evidence of double rounding */
23266 exit(1);
23269 _ACEOF
23270 rm -f conftest$ac_exeext
23271 if { (ac_try="$ac_link"
23272 case "(($ac_try" in
23273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23274 *) ac_try_echo=$ac_try;;
23275 esac
23276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23277 (eval "$ac_link") 2>&5
23278 ac_status=$?
23279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23280 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23281 { (case "(($ac_try" in
23282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23283 *) ac_try_echo=$ac_try;;
23284 esac
23285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23286 (eval "$ac_try") 2>&5
23287 ac_status=$?
23288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23289 (exit $ac_status); }; }; then
23290 ac_cv_x87_double_rounding=no
23291 else
23292 echo "$as_me: program exited with status $ac_status" >&5
23293 echo "$as_me: failed program was:" >&5
23294 sed 's/^/| /' conftest.$ac_ext >&5
23296 ( exit $ac_status )
23297 ac_cv_x87_double_rounding=yes
23299 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23305 { echo "$as_me:$LINENO: result: $ac_cv_x87_double_rounding" >&5
23306 echo "${ECHO_T}$ac_cv_x87_double_rounding" >&6; }
23307 if test "$ac_cv_x87_double_rounding" = yes
23308 then
23310 cat >>confdefs.h <<\_ACEOF
23311 #define X87_DOUBLE_ROUNDING 1
23312 _ACEOF
23316 # Multiprocessing check for broken sem_getvalue
23317 { echo "$as_me:$LINENO: checking for broken sem_getvalue" >&5
23318 echo $ECHO_N "checking for broken sem_getvalue... $ECHO_C" >&6; }
23319 if test "${ac_cv_broken_sem_getvalue+set}" = set; then
23320 echo $ECHO_N "(cached) $ECHO_C" >&6
23321 else
23322 if test "$cross_compiling" = yes; then
23323 ac_cv_broken_sem_getvalue=yes
23324 else
23325 cat >conftest.$ac_ext <<_ACEOF
23326 /* confdefs.h. */
23327 _ACEOF
23328 cat confdefs.h >>conftest.$ac_ext
23329 cat >>conftest.$ac_ext <<_ACEOF
23330 /* end confdefs.h. */
23332 #include <unistd.h>
23333 #include <fcntl.h>
23334 #include <stdio.h>
23335 #include <semaphore.h>
23336 #include <sys/stat.h>
23338 int main(void){
23339 sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0);
23340 int count;
23341 int res;
23342 if(a==SEM_FAILED){
23343 perror("sem_open");
23344 return 1;
23347 res = sem_getvalue(a, &count);
23348 sem_close(a);
23349 return res==-1 ? 1 : 0;
23352 _ACEOF
23353 rm -f conftest$ac_exeext
23354 if { (ac_try="$ac_link"
23355 case "(($ac_try" in
23356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23357 *) ac_try_echo=$ac_try;;
23358 esac
23359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23360 (eval "$ac_link") 2>&5
23361 ac_status=$?
23362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23363 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23364 { (case "(($ac_try" in
23365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23366 *) ac_try_echo=$ac_try;;
23367 esac
23368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23369 (eval "$ac_try") 2>&5
23370 ac_status=$?
23371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23372 (exit $ac_status); }; }; then
23373 ac_cv_broken_sem_getvalue=no
23374 else
23375 echo "$as_me: program exited with status $ac_status" >&5
23376 echo "$as_me: failed program was:" >&5
23377 sed 's/^/| /' conftest.$ac_ext >&5
23379 ( exit $ac_status )
23380 ac_cv_broken_sem_getvalue=yes
23382 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23389 { echo "$as_me:$LINENO: result: $ac_cv_broken_sem_getvalue" >&5
23390 echo "${ECHO_T}$ac_cv_broken_sem_getvalue" >&6; }
23391 if test $ac_cv_broken_sem_getvalue = yes
23392 then
23394 cat >>confdefs.h <<\_ACEOF
23395 #define HAVE_BROKEN_SEM_GETVALUE 1
23396 _ACEOF
23400 # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of
23401 # -0. on some architectures.
23402 { echo "$as_me:$LINENO: checking whether tanh preserves the sign of zero" >&5
23403 echo $ECHO_N "checking whether tanh preserves the sign of zero... $ECHO_C" >&6; }
23404 if test "${ac_cv_tanh_preserves_zero_sign+set}" = set; then
23405 echo $ECHO_N "(cached) $ECHO_C" >&6
23406 else
23408 if test "$cross_compiling" = yes; then
23409 ac_cv_tanh_preserves_zero_sign=no
23410 else
23411 cat >conftest.$ac_ext <<_ACEOF
23412 /* confdefs.h. */
23413 _ACEOF
23414 cat confdefs.h >>conftest.$ac_ext
23415 cat >>conftest.$ac_ext <<_ACEOF
23416 /* end confdefs.h. */
23418 #include <math.h>
23419 #include <stdlib.h>
23420 int main() {
23421 /* return 0 if either negative zeros don't exist
23422 on this platform or if negative zeros exist
23423 and tanh(-0.) == -0. */
23424 if (atan2(0., -1.) == atan2(-0., -1.) ||
23425 atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0);
23426 else exit(1);
23429 _ACEOF
23430 rm -f conftest$ac_exeext
23431 if { (ac_try="$ac_link"
23432 case "(($ac_try" in
23433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23434 *) ac_try_echo=$ac_try;;
23435 esac
23436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23437 (eval "$ac_link") 2>&5
23438 ac_status=$?
23439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23440 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23441 { (case "(($ac_try" in
23442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23443 *) ac_try_echo=$ac_try;;
23444 esac
23445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23446 (eval "$ac_try") 2>&5
23447 ac_status=$?
23448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23449 (exit $ac_status); }; }; then
23450 ac_cv_tanh_preserves_zero_sign=yes
23451 else
23452 echo "$as_me: program exited with status $ac_status" >&5
23453 echo "$as_me: failed program was:" >&5
23454 sed 's/^/| /' conftest.$ac_ext >&5
23456 ( exit $ac_status )
23457 ac_cv_tanh_preserves_zero_sign=no
23459 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23465 { echo "$as_me:$LINENO: result: $ac_cv_tanh_preserves_zero_sign" >&5
23466 echo "${ECHO_T}$ac_cv_tanh_preserves_zero_sign" >&6; }
23467 if test "$ac_cv_tanh_preserves_zero_sign" = yes
23468 then
23470 cat >>confdefs.h <<\_ACEOF
23471 #define TANH_PRESERVES_ZERO_SIGN 1
23472 _ACEOF
23485 for ac_func in acosh asinh atanh copysign erf erfc expm1 finite gamma
23487 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23488 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23489 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23490 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23491 echo $ECHO_N "(cached) $ECHO_C" >&6
23492 else
23493 cat >conftest.$ac_ext <<_ACEOF
23494 /* confdefs.h. */
23495 _ACEOF
23496 cat confdefs.h >>conftest.$ac_ext
23497 cat >>conftest.$ac_ext <<_ACEOF
23498 /* end confdefs.h. */
23499 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23500 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23501 #define $ac_func innocuous_$ac_func
23503 /* System header to define __stub macros and hopefully few prototypes,
23504 which can conflict with char $ac_func (); below.
23505 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23506 <limits.h> exists even on freestanding compilers. */
23508 #ifdef __STDC__
23509 # include <limits.h>
23510 #else
23511 # include <assert.h>
23512 #endif
23514 #undef $ac_func
23516 /* Override any GCC internal prototype to avoid an error.
23517 Use char because int might match the return type of a GCC
23518 builtin and then its argument prototype would still apply. */
23519 #ifdef __cplusplus
23520 extern "C"
23521 #endif
23522 char $ac_func ();
23523 /* The GNU C library defines this for functions which it implements
23524 to always fail with ENOSYS. Some functions are actually named
23525 something starting with __ and the normal name is an alias. */
23526 #if defined __stub_$ac_func || defined __stub___$ac_func
23527 choke me
23528 #endif
23531 main ()
23533 return $ac_func ();
23535 return 0;
23537 _ACEOF
23538 rm -f conftest.$ac_objext conftest$ac_exeext
23539 if { (ac_try="$ac_link"
23540 case "(($ac_try" in
23541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23542 *) ac_try_echo=$ac_try;;
23543 esac
23544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23545 (eval "$ac_link") 2>conftest.er1
23546 ac_status=$?
23547 grep -v '^ *+' conftest.er1 >conftest.err
23548 rm -f conftest.er1
23549 cat conftest.err >&5
23550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23551 (exit $ac_status); } && {
23552 test -z "$ac_c_werror_flag" ||
23553 test ! -s conftest.err
23554 } && test -s conftest$ac_exeext &&
23555 $as_test_x conftest$ac_exeext; then
23556 eval "$as_ac_var=yes"
23557 else
23558 echo "$as_me: failed program was:" >&5
23559 sed 's/^/| /' conftest.$ac_ext >&5
23561 eval "$as_ac_var=no"
23564 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23565 conftest$ac_exeext conftest.$ac_ext
23567 ac_res=`eval echo '${'$as_ac_var'}'`
23568 { echo "$as_me:$LINENO: result: $ac_res" >&5
23569 echo "${ECHO_T}$ac_res" >&6; }
23570 if test `eval echo '${'$as_ac_var'}'` = yes; then
23571 cat >>confdefs.h <<_ACEOF
23572 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23573 _ACEOF
23576 done
23583 for ac_func in hypot lgamma log1p round tgamma
23585 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23586 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23587 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23588 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23589 echo $ECHO_N "(cached) $ECHO_C" >&6
23590 else
23591 cat >conftest.$ac_ext <<_ACEOF
23592 /* confdefs.h. */
23593 _ACEOF
23594 cat confdefs.h >>conftest.$ac_ext
23595 cat >>conftest.$ac_ext <<_ACEOF
23596 /* end confdefs.h. */
23597 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23598 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23599 #define $ac_func innocuous_$ac_func
23601 /* System header to define __stub macros and hopefully few prototypes,
23602 which can conflict with char $ac_func (); below.
23603 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23604 <limits.h> exists even on freestanding compilers. */
23606 #ifdef __STDC__
23607 # include <limits.h>
23608 #else
23609 # include <assert.h>
23610 #endif
23612 #undef $ac_func
23614 /* Override any GCC internal prototype to avoid an error.
23615 Use char because int might match the return type of a GCC
23616 builtin and then its argument prototype would still apply. */
23617 #ifdef __cplusplus
23618 extern "C"
23619 #endif
23620 char $ac_func ();
23621 /* The GNU C library defines this for functions which it implements
23622 to always fail with ENOSYS. Some functions are actually named
23623 something starting with __ and the normal name is an alias. */
23624 #if defined __stub_$ac_func || defined __stub___$ac_func
23625 choke me
23626 #endif
23629 main ()
23631 return $ac_func ();
23633 return 0;
23635 _ACEOF
23636 rm -f conftest.$ac_objext conftest$ac_exeext
23637 if { (ac_try="$ac_link"
23638 case "(($ac_try" in
23639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23640 *) ac_try_echo=$ac_try;;
23641 esac
23642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23643 (eval "$ac_link") 2>conftest.er1
23644 ac_status=$?
23645 grep -v '^ *+' conftest.er1 >conftest.err
23646 rm -f conftest.er1
23647 cat conftest.err >&5
23648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23649 (exit $ac_status); } && {
23650 test -z "$ac_c_werror_flag" ||
23651 test ! -s conftest.err
23652 } && test -s conftest$ac_exeext &&
23653 $as_test_x conftest$ac_exeext; then
23654 eval "$as_ac_var=yes"
23655 else
23656 echo "$as_me: failed program was:" >&5
23657 sed 's/^/| /' conftest.$ac_ext >&5
23659 eval "$as_ac_var=no"
23662 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23663 conftest$ac_exeext conftest.$ac_ext
23665 ac_res=`eval echo '${'$as_ac_var'}'`
23666 { echo "$as_me:$LINENO: result: $ac_res" >&5
23667 echo "${ECHO_T}$ac_res" >&6; }
23668 if test `eval echo '${'$as_ac_var'}'` = yes; then
23669 cat >>confdefs.h <<_ACEOF
23670 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23671 _ACEOF
23674 done
23676 { echo "$as_me:$LINENO: checking whether isinf is declared" >&5
23677 echo $ECHO_N "checking whether isinf is declared... $ECHO_C" >&6; }
23678 if test "${ac_cv_have_decl_isinf+set}" = set; then
23679 echo $ECHO_N "(cached) $ECHO_C" >&6
23680 else
23681 cat >conftest.$ac_ext <<_ACEOF
23682 /* confdefs.h. */
23683 _ACEOF
23684 cat confdefs.h >>conftest.$ac_ext
23685 cat >>conftest.$ac_ext <<_ACEOF
23686 /* end confdefs.h. */
23687 #include <math.h>
23690 main ()
23692 #ifndef isinf
23693 (void) isinf;
23694 #endif
23697 return 0;
23699 _ACEOF
23700 rm -f conftest.$ac_objext
23701 if { (ac_try="$ac_compile"
23702 case "(($ac_try" in
23703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23704 *) ac_try_echo=$ac_try;;
23705 esac
23706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23707 (eval "$ac_compile") 2>conftest.er1
23708 ac_status=$?
23709 grep -v '^ *+' conftest.er1 >conftest.err
23710 rm -f conftest.er1
23711 cat conftest.err >&5
23712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23713 (exit $ac_status); } && {
23714 test -z "$ac_c_werror_flag" ||
23715 test ! -s conftest.err
23716 } && test -s conftest.$ac_objext; then
23717 ac_cv_have_decl_isinf=yes
23718 else
23719 echo "$as_me: failed program was:" >&5
23720 sed 's/^/| /' conftest.$ac_ext >&5
23722 ac_cv_have_decl_isinf=no
23725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23727 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isinf" >&5
23728 echo "${ECHO_T}$ac_cv_have_decl_isinf" >&6; }
23729 if test $ac_cv_have_decl_isinf = yes; then
23731 cat >>confdefs.h <<_ACEOF
23732 #define HAVE_DECL_ISINF 1
23733 _ACEOF
23736 else
23737 cat >>confdefs.h <<_ACEOF
23738 #define HAVE_DECL_ISINF 0
23739 _ACEOF
23743 { echo "$as_me:$LINENO: checking whether isnan is declared" >&5
23744 echo $ECHO_N "checking whether isnan is declared... $ECHO_C" >&6; }
23745 if test "${ac_cv_have_decl_isnan+set}" = set; then
23746 echo $ECHO_N "(cached) $ECHO_C" >&6
23747 else
23748 cat >conftest.$ac_ext <<_ACEOF
23749 /* confdefs.h. */
23750 _ACEOF
23751 cat confdefs.h >>conftest.$ac_ext
23752 cat >>conftest.$ac_ext <<_ACEOF
23753 /* end confdefs.h. */
23754 #include <math.h>
23757 main ()
23759 #ifndef isnan
23760 (void) isnan;
23761 #endif
23764 return 0;
23766 _ACEOF
23767 rm -f conftest.$ac_objext
23768 if { (ac_try="$ac_compile"
23769 case "(($ac_try" in
23770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23771 *) ac_try_echo=$ac_try;;
23772 esac
23773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23774 (eval "$ac_compile") 2>conftest.er1
23775 ac_status=$?
23776 grep -v '^ *+' conftest.er1 >conftest.err
23777 rm -f conftest.er1
23778 cat conftest.err >&5
23779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23780 (exit $ac_status); } && {
23781 test -z "$ac_c_werror_flag" ||
23782 test ! -s conftest.err
23783 } && test -s conftest.$ac_objext; then
23784 ac_cv_have_decl_isnan=yes
23785 else
23786 echo "$as_me: failed program was:" >&5
23787 sed 's/^/| /' conftest.$ac_ext >&5
23789 ac_cv_have_decl_isnan=no
23792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23794 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isnan" >&5
23795 echo "${ECHO_T}$ac_cv_have_decl_isnan" >&6; }
23796 if test $ac_cv_have_decl_isnan = yes; then
23798 cat >>confdefs.h <<_ACEOF
23799 #define HAVE_DECL_ISNAN 1
23800 _ACEOF
23803 else
23804 cat >>confdefs.h <<_ACEOF
23805 #define HAVE_DECL_ISNAN 0
23806 _ACEOF
23810 { echo "$as_me:$LINENO: checking whether isfinite is declared" >&5
23811 echo $ECHO_N "checking whether isfinite is declared... $ECHO_C" >&6; }
23812 if test "${ac_cv_have_decl_isfinite+set}" = set; then
23813 echo $ECHO_N "(cached) $ECHO_C" >&6
23814 else
23815 cat >conftest.$ac_ext <<_ACEOF
23816 /* confdefs.h. */
23817 _ACEOF
23818 cat confdefs.h >>conftest.$ac_ext
23819 cat >>conftest.$ac_ext <<_ACEOF
23820 /* end confdefs.h. */
23821 #include <math.h>
23824 main ()
23826 #ifndef isfinite
23827 (void) isfinite;
23828 #endif
23831 return 0;
23833 _ACEOF
23834 rm -f conftest.$ac_objext
23835 if { (ac_try="$ac_compile"
23836 case "(($ac_try" in
23837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23838 *) ac_try_echo=$ac_try;;
23839 esac
23840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23841 (eval "$ac_compile") 2>conftest.er1
23842 ac_status=$?
23843 grep -v '^ *+' conftest.er1 >conftest.err
23844 rm -f conftest.er1
23845 cat conftest.err >&5
23846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23847 (exit $ac_status); } && {
23848 test -z "$ac_c_werror_flag" ||
23849 test ! -s conftest.err
23850 } && test -s conftest.$ac_objext; then
23851 ac_cv_have_decl_isfinite=yes
23852 else
23853 echo "$as_me: failed program was:" >&5
23854 sed 's/^/| /' conftest.$ac_ext >&5
23856 ac_cv_have_decl_isfinite=no
23859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23861 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isfinite" >&5
23862 echo "${ECHO_T}$ac_cv_have_decl_isfinite" >&6; }
23863 if test $ac_cv_have_decl_isfinite = yes; then
23865 cat >>confdefs.h <<_ACEOF
23866 #define HAVE_DECL_ISFINITE 1
23867 _ACEOF
23870 else
23871 cat >>confdefs.h <<_ACEOF
23872 #define HAVE_DECL_ISFINITE 0
23873 _ACEOF
23880 LIBS=$LIBS_SAVE
23882 # determine what size digit to use for Python's longs
23883 { echo "$as_me:$LINENO: checking digit size for Python's longs" >&5
23884 echo $ECHO_N "checking digit size for Python's longs... $ECHO_C" >&6; }
23885 # Check whether --enable-big-digits was given.
23886 if test "${enable_big_digits+set}" = set; then
23887 enableval=$enable_big_digits; case $enable_big_digits in
23888 yes)
23889 enable_big_digits=30 ;;
23891 enable_big_digits=15 ;;
23892 15|30)
23895 { { echo "$as_me:$LINENO: error: bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" >&5
23896 echo "$as_me: error: bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" >&2;}
23897 { (exit 1); exit 1; }; } ;;
23898 esac
23899 { echo "$as_me:$LINENO: result: $enable_big_digits" >&5
23900 echo "${ECHO_T}$enable_big_digits" >&6; }
23902 cat >>confdefs.h <<_ACEOF
23903 #define PYLONG_BITS_IN_DIGIT $enable_big_digits
23904 _ACEOF
23907 else
23908 { echo "$as_me:$LINENO: result: no value specified" >&5
23909 echo "${ECHO_T}no value specified" >&6; }
23913 # check for wchar.h
23914 if test "${ac_cv_header_wchar_h+set}" = set; then
23915 { echo "$as_me:$LINENO: checking for wchar.h" >&5
23916 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
23917 if test "${ac_cv_header_wchar_h+set}" = set; then
23918 echo $ECHO_N "(cached) $ECHO_C" >&6
23920 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
23921 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
23922 else
23923 # Is the header compilable?
23924 { echo "$as_me:$LINENO: checking wchar.h usability" >&5
23925 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6; }
23926 cat >conftest.$ac_ext <<_ACEOF
23927 /* confdefs.h. */
23928 _ACEOF
23929 cat confdefs.h >>conftest.$ac_ext
23930 cat >>conftest.$ac_ext <<_ACEOF
23931 /* end confdefs.h. */
23932 $ac_includes_default
23933 #include <wchar.h>
23934 _ACEOF
23935 rm -f conftest.$ac_objext
23936 if { (ac_try="$ac_compile"
23937 case "(($ac_try" in
23938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23939 *) ac_try_echo=$ac_try;;
23940 esac
23941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23942 (eval "$ac_compile") 2>conftest.er1
23943 ac_status=$?
23944 grep -v '^ *+' conftest.er1 >conftest.err
23945 rm -f conftest.er1
23946 cat conftest.err >&5
23947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23948 (exit $ac_status); } && {
23949 test -z "$ac_c_werror_flag" ||
23950 test ! -s conftest.err
23951 } && test -s conftest.$ac_objext; then
23952 ac_header_compiler=yes
23953 else
23954 echo "$as_me: failed program was:" >&5
23955 sed 's/^/| /' conftest.$ac_ext >&5
23957 ac_header_compiler=no
23960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23961 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23962 echo "${ECHO_T}$ac_header_compiler" >&6; }
23964 # Is the header present?
23965 { echo "$as_me:$LINENO: checking wchar.h presence" >&5
23966 echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6; }
23967 cat >conftest.$ac_ext <<_ACEOF
23968 /* confdefs.h. */
23969 _ACEOF
23970 cat confdefs.h >>conftest.$ac_ext
23971 cat >>conftest.$ac_ext <<_ACEOF
23972 /* end confdefs.h. */
23973 #include <wchar.h>
23974 _ACEOF
23975 if { (ac_try="$ac_cpp conftest.$ac_ext"
23976 case "(($ac_try" in
23977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23978 *) ac_try_echo=$ac_try;;
23979 esac
23980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23981 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23982 ac_status=$?
23983 grep -v '^ *+' conftest.er1 >conftest.err
23984 rm -f conftest.er1
23985 cat conftest.err >&5
23986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23987 (exit $ac_status); } >/dev/null && {
23988 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23989 test ! -s conftest.err
23990 }; then
23991 ac_header_preproc=yes
23992 else
23993 echo "$as_me: failed program was:" >&5
23994 sed 's/^/| /' conftest.$ac_ext >&5
23996 ac_header_preproc=no
23999 rm -f conftest.err conftest.$ac_ext
24000 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24001 echo "${ECHO_T}$ac_header_preproc" >&6; }
24003 # So? What about this header?
24004 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24005 yes:no: )
24006 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
24007 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24008 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
24009 echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
24010 ac_header_preproc=yes
24012 no:yes:* )
24013 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
24014 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
24015 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
24016 echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
24017 { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
24018 echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
24019 { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5
24020 echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;}
24021 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
24022 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
24023 { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
24024 echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
24025 ( cat <<\_ASBOX
24026 ## -------------------------------------- ##
24027 ## Report this to http://bugs.python.org/ ##
24028 ## -------------------------------------- ##
24029 _ASBOX
24030 ) | sed "s/^/$as_me: WARNING: /" >&2
24032 esac
24033 { echo "$as_me:$LINENO: checking for wchar.h" >&5
24034 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
24035 if test "${ac_cv_header_wchar_h+set}" = set; then
24036 echo $ECHO_N "(cached) $ECHO_C" >&6
24037 else
24038 ac_cv_header_wchar_h=$ac_header_preproc
24040 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
24041 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
24044 if test $ac_cv_header_wchar_h = yes; then
24047 cat >>confdefs.h <<\_ACEOF
24048 #define HAVE_WCHAR_H 1
24049 _ACEOF
24051 wchar_h="yes"
24053 else
24054 wchar_h="no"
24060 # determine wchar_t size
24061 if test "$wchar_h" = yes
24062 then
24063 { echo "$as_me:$LINENO: checking for wchar_t" >&5
24064 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
24065 if test "${ac_cv_type_wchar_t+set}" = set; then
24066 echo $ECHO_N "(cached) $ECHO_C" >&6
24067 else
24068 cat >conftest.$ac_ext <<_ACEOF
24069 /* confdefs.h. */
24070 _ACEOF
24071 cat confdefs.h >>conftest.$ac_ext
24072 cat >>conftest.$ac_ext <<_ACEOF
24073 /* end confdefs.h. */
24074 #include <wchar.h>
24076 typedef wchar_t ac__type_new_;
24078 main ()
24080 if ((ac__type_new_ *) 0)
24081 return 0;
24082 if (sizeof (ac__type_new_))
24083 return 0;
24085 return 0;
24087 _ACEOF
24088 rm -f conftest.$ac_objext
24089 if { (ac_try="$ac_compile"
24090 case "(($ac_try" in
24091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24092 *) ac_try_echo=$ac_try;;
24093 esac
24094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24095 (eval "$ac_compile") 2>conftest.er1
24096 ac_status=$?
24097 grep -v '^ *+' conftest.er1 >conftest.err
24098 rm -f conftest.er1
24099 cat conftest.err >&5
24100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24101 (exit $ac_status); } && {
24102 test -z "$ac_c_werror_flag" ||
24103 test ! -s conftest.err
24104 } && test -s conftest.$ac_objext; then
24105 ac_cv_type_wchar_t=yes
24106 else
24107 echo "$as_me: failed program was:" >&5
24108 sed 's/^/| /' conftest.$ac_ext >&5
24110 ac_cv_type_wchar_t=no
24113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24115 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
24116 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
24118 # The cast to long int works around a bug in the HP C Compiler
24119 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24120 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24121 # This bug is HP SR number 8606223364.
24122 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
24123 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
24124 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
24125 echo $ECHO_N "(cached) $ECHO_C" >&6
24126 else
24127 if test "$cross_compiling" = yes; then
24128 # Depending upon the size, compute the lo and hi bounds.
24129 cat >conftest.$ac_ext <<_ACEOF
24130 /* confdefs.h. */
24131 _ACEOF
24132 cat confdefs.h >>conftest.$ac_ext
24133 cat >>conftest.$ac_ext <<_ACEOF
24134 /* end confdefs.h. */
24135 #include <wchar.h>
24137 typedef wchar_t ac__type_sizeof_;
24139 main ()
24141 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24142 test_array [0] = 0
24145 return 0;
24147 _ACEOF
24148 rm -f conftest.$ac_objext
24149 if { (ac_try="$ac_compile"
24150 case "(($ac_try" in
24151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24152 *) ac_try_echo=$ac_try;;
24153 esac
24154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24155 (eval "$ac_compile") 2>conftest.er1
24156 ac_status=$?
24157 grep -v '^ *+' conftest.er1 >conftest.err
24158 rm -f conftest.er1
24159 cat conftest.err >&5
24160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24161 (exit $ac_status); } && {
24162 test -z "$ac_c_werror_flag" ||
24163 test ! -s conftest.err
24164 } && test -s conftest.$ac_objext; then
24165 ac_lo=0 ac_mid=0
24166 while :; do
24167 cat >conftest.$ac_ext <<_ACEOF
24168 /* confdefs.h. */
24169 _ACEOF
24170 cat confdefs.h >>conftest.$ac_ext
24171 cat >>conftest.$ac_ext <<_ACEOF
24172 /* end confdefs.h. */
24173 #include <wchar.h>
24175 typedef wchar_t ac__type_sizeof_;
24177 main ()
24179 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24180 test_array [0] = 0
24183 return 0;
24185 _ACEOF
24186 rm -f conftest.$ac_objext
24187 if { (ac_try="$ac_compile"
24188 case "(($ac_try" in
24189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24190 *) ac_try_echo=$ac_try;;
24191 esac
24192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24193 (eval "$ac_compile") 2>conftest.er1
24194 ac_status=$?
24195 grep -v '^ *+' conftest.er1 >conftest.err
24196 rm -f conftest.er1
24197 cat conftest.err >&5
24198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24199 (exit $ac_status); } && {
24200 test -z "$ac_c_werror_flag" ||
24201 test ! -s conftest.err
24202 } && test -s conftest.$ac_objext; then
24203 ac_hi=$ac_mid; break
24204 else
24205 echo "$as_me: failed program was:" >&5
24206 sed 's/^/| /' conftest.$ac_ext >&5
24208 ac_lo=`expr $ac_mid + 1`
24209 if test $ac_lo -le $ac_mid; then
24210 ac_lo= ac_hi=
24211 break
24213 ac_mid=`expr 2 '*' $ac_mid + 1`
24216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24217 done
24218 else
24219 echo "$as_me: failed program was:" >&5
24220 sed 's/^/| /' conftest.$ac_ext >&5
24222 cat >conftest.$ac_ext <<_ACEOF
24223 /* confdefs.h. */
24224 _ACEOF
24225 cat confdefs.h >>conftest.$ac_ext
24226 cat >>conftest.$ac_ext <<_ACEOF
24227 /* end confdefs.h. */
24228 #include <wchar.h>
24230 typedef wchar_t ac__type_sizeof_;
24232 main ()
24234 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24235 test_array [0] = 0
24238 return 0;
24240 _ACEOF
24241 rm -f conftest.$ac_objext
24242 if { (ac_try="$ac_compile"
24243 case "(($ac_try" in
24244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24245 *) ac_try_echo=$ac_try;;
24246 esac
24247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24248 (eval "$ac_compile") 2>conftest.er1
24249 ac_status=$?
24250 grep -v '^ *+' conftest.er1 >conftest.err
24251 rm -f conftest.er1
24252 cat conftest.err >&5
24253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24254 (exit $ac_status); } && {
24255 test -z "$ac_c_werror_flag" ||
24256 test ! -s conftest.err
24257 } && test -s conftest.$ac_objext; then
24258 ac_hi=-1 ac_mid=-1
24259 while :; do
24260 cat >conftest.$ac_ext <<_ACEOF
24261 /* confdefs.h. */
24262 _ACEOF
24263 cat confdefs.h >>conftest.$ac_ext
24264 cat >>conftest.$ac_ext <<_ACEOF
24265 /* end confdefs.h. */
24266 #include <wchar.h>
24268 typedef wchar_t ac__type_sizeof_;
24270 main ()
24272 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24273 test_array [0] = 0
24276 return 0;
24278 _ACEOF
24279 rm -f conftest.$ac_objext
24280 if { (ac_try="$ac_compile"
24281 case "(($ac_try" in
24282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24283 *) ac_try_echo=$ac_try;;
24284 esac
24285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24286 (eval "$ac_compile") 2>conftest.er1
24287 ac_status=$?
24288 grep -v '^ *+' conftest.er1 >conftest.err
24289 rm -f conftest.er1
24290 cat conftest.err >&5
24291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24292 (exit $ac_status); } && {
24293 test -z "$ac_c_werror_flag" ||
24294 test ! -s conftest.err
24295 } && test -s conftest.$ac_objext; then
24296 ac_lo=$ac_mid; break
24297 else
24298 echo "$as_me: failed program was:" >&5
24299 sed 's/^/| /' conftest.$ac_ext >&5
24301 ac_hi=`expr '(' $ac_mid ')' - 1`
24302 if test $ac_mid -le $ac_hi; then
24303 ac_lo= ac_hi=
24304 break
24306 ac_mid=`expr 2 '*' $ac_mid`
24309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24310 done
24311 else
24312 echo "$as_me: failed program was:" >&5
24313 sed 's/^/| /' conftest.$ac_ext >&5
24315 ac_lo= ac_hi=
24318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24322 # Binary search between lo and hi bounds.
24323 while test "x$ac_lo" != "x$ac_hi"; do
24324 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24325 cat >conftest.$ac_ext <<_ACEOF
24326 /* confdefs.h. */
24327 _ACEOF
24328 cat confdefs.h >>conftest.$ac_ext
24329 cat >>conftest.$ac_ext <<_ACEOF
24330 /* end confdefs.h. */
24331 #include <wchar.h>
24333 typedef wchar_t ac__type_sizeof_;
24335 main ()
24337 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24338 test_array [0] = 0
24341 return 0;
24343 _ACEOF
24344 rm -f conftest.$ac_objext
24345 if { (ac_try="$ac_compile"
24346 case "(($ac_try" in
24347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24348 *) ac_try_echo=$ac_try;;
24349 esac
24350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24351 (eval "$ac_compile") 2>conftest.er1
24352 ac_status=$?
24353 grep -v '^ *+' conftest.er1 >conftest.err
24354 rm -f conftest.er1
24355 cat conftest.err >&5
24356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24357 (exit $ac_status); } && {
24358 test -z "$ac_c_werror_flag" ||
24359 test ! -s conftest.err
24360 } && test -s conftest.$ac_objext; then
24361 ac_hi=$ac_mid
24362 else
24363 echo "$as_me: failed program was:" >&5
24364 sed 's/^/| /' conftest.$ac_ext >&5
24366 ac_lo=`expr '(' $ac_mid ')' + 1`
24369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24370 done
24371 case $ac_lo in
24372 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
24373 '') if test "$ac_cv_type_wchar_t" = yes; then
24374 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
24375 See \`config.log' for more details." >&5
24376 echo "$as_me: error: cannot compute sizeof (wchar_t)
24377 See \`config.log' for more details." >&2;}
24378 { (exit 77); exit 77; }; }
24379 else
24380 ac_cv_sizeof_wchar_t=0
24381 fi ;;
24382 esac
24383 else
24384 cat >conftest.$ac_ext <<_ACEOF
24385 /* confdefs.h. */
24386 _ACEOF
24387 cat confdefs.h >>conftest.$ac_ext
24388 cat >>conftest.$ac_ext <<_ACEOF
24389 /* end confdefs.h. */
24390 #include <wchar.h>
24392 typedef wchar_t ac__type_sizeof_;
24393 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24394 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24395 #include <stdio.h>
24396 #include <stdlib.h>
24398 main ()
24401 FILE *f = fopen ("conftest.val", "w");
24402 if (! f)
24403 return 1;
24404 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24406 long int i = longval ();
24407 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24408 return 1;
24409 fprintf (f, "%ld\n", i);
24411 else
24413 unsigned long int i = ulongval ();
24414 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24415 return 1;
24416 fprintf (f, "%lu\n", i);
24418 return ferror (f) || fclose (f) != 0;
24421 return 0;
24423 _ACEOF
24424 rm -f conftest$ac_exeext
24425 if { (ac_try="$ac_link"
24426 case "(($ac_try" in
24427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24428 *) ac_try_echo=$ac_try;;
24429 esac
24430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24431 (eval "$ac_link") 2>&5
24432 ac_status=$?
24433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24434 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24435 { (case "(($ac_try" in
24436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24437 *) ac_try_echo=$ac_try;;
24438 esac
24439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24440 (eval "$ac_try") 2>&5
24441 ac_status=$?
24442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24443 (exit $ac_status); }; }; then
24444 ac_cv_sizeof_wchar_t=`cat conftest.val`
24445 else
24446 echo "$as_me: program exited with status $ac_status" >&5
24447 echo "$as_me: failed program was:" >&5
24448 sed 's/^/| /' conftest.$ac_ext >&5
24450 ( exit $ac_status )
24451 if test "$ac_cv_type_wchar_t" = yes; then
24452 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
24453 See \`config.log' for more details." >&5
24454 echo "$as_me: error: cannot compute sizeof (wchar_t)
24455 See \`config.log' for more details." >&2;}
24456 { (exit 77); exit 77; }; }
24457 else
24458 ac_cv_sizeof_wchar_t=0
24461 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24463 rm -f conftest.val
24465 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
24466 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
24470 cat >>confdefs.h <<_ACEOF
24471 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
24472 _ACEOF
24477 { echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5
24478 echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6; }
24479 have_ucs4_tcl=no
24480 cat >conftest.$ac_ext <<_ACEOF
24481 /* confdefs.h. */
24482 _ACEOF
24483 cat confdefs.h >>conftest.$ac_ext
24484 cat >>conftest.$ac_ext <<_ACEOF
24485 /* end confdefs.h. */
24487 #include <tcl.h>
24488 #if TCL_UTF_MAX != 6
24489 # error "NOT UCS4_TCL"
24490 #endif
24492 main ()
24496 return 0;
24498 _ACEOF
24499 rm -f conftest.$ac_objext
24500 if { (ac_try="$ac_compile"
24501 case "(($ac_try" in
24502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24503 *) ac_try_echo=$ac_try;;
24504 esac
24505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24506 (eval "$ac_compile") 2>conftest.er1
24507 ac_status=$?
24508 grep -v '^ *+' conftest.er1 >conftest.err
24509 rm -f conftest.er1
24510 cat conftest.err >&5
24511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24512 (exit $ac_status); } && {
24513 test -z "$ac_c_werror_flag" ||
24514 test ! -s conftest.err
24515 } && test -s conftest.$ac_objext; then
24518 cat >>confdefs.h <<\_ACEOF
24519 #define HAVE_UCS4_TCL 1
24520 _ACEOF
24522 have_ucs4_tcl=yes
24524 else
24525 echo "$as_me: failed program was:" >&5
24526 sed 's/^/| /' conftest.$ac_ext >&5
24531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24532 { echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5
24533 echo "${ECHO_T}$have_ucs4_tcl" >&6; }
24535 # check whether wchar_t is signed or not
24536 if test "$wchar_h" = yes
24537 then
24538 # check whether wchar_t is signed or not
24539 { echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5
24540 echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6; }
24541 if test "${ac_cv_wchar_t_signed+set}" = set; then
24542 echo $ECHO_N "(cached) $ECHO_C" >&6
24543 else
24545 if test "$cross_compiling" = yes; then
24546 ac_cv_wchar_t_signed=yes
24547 else
24548 cat >conftest.$ac_ext <<_ACEOF
24549 /* confdefs.h. */
24550 _ACEOF
24551 cat confdefs.h >>conftest.$ac_ext
24552 cat >>conftest.$ac_ext <<_ACEOF
24553 /* end confdefs.h. */
24555 #include <wchar.h>
24556 int main()
24558 /* Success: exit code 0 */
24559 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
24562 _ACEOF
24563 rm -f conftest$ac_exeext
24564 if { (ac_try="$ac_link"
24565 case "(($ac_try" in
24566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24567 *) ac_try_echo=$ac_try;;
24568 esac
24569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24570 (eval "$ac_link") 2>&5
24571 ac_status=$?
24572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24573 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24574 { (case "(($ac_try" in
24575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24576 *) ac_try_echo=$ac_try;;
24577 esac
24578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24579 (eval "$ac_try") 2>&5
24580 ac_status=$?
24581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24582 (exit $ac_status); }; }; then
24583 ac_cv_wchar_t_signed=yes
24584 else
24585 echo "$as_me: program exited with status $ac_status" >&5
24586 echo "$as_me: failed program was:" >&5
24587 sed 's/^/| /' conftest.$ac_ext >&5
24589 ( exit $ac_status )
24590 ac_cv_wchar_t_signed=no
24592 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24598 { echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5
24599 echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6; }
24602 { echo "$as_me:$LINENO: checking what type to use for unicode" >&5
24603 echo $ECHO_N "checking what type to use for unicode... $ECHO_C" >&6; }
24604 # Check whether --enable-unicode was given.
24605 if test "${enable_unicode+set}" = set; then
24606 enableval=$enable_unicode;
24607 else
24608 enable_unicode=yes
24612 if test $enable_unicode = yes
24613 then
24614 # Without any arguments, Py_UNICODE defaults to two-byte mode
24615 case "$have_ucs4_tcl" in
24616 yes) enable_unicode="ucs4"
24618 *) enable_unicode="ucs2"
24620 esac
24625 case "$enable_unicode" in
24626 ucs2) unicode_size="2"
24627 cat >>confdefs.h <<\_ACEOF
24628 #define Py_UNICODE_SIZE 2
24629 _ACEOF
24632 ucs4) unicode_size="4"
24633 cat >>confdefs.h <<\_ACEOF
24634 #define Py_UNICODE_SIZE 4
24635 _ACEOF
24638 esac
24644 if test "$enable_unicode" = "no"
24645 then
24646 UNICODE_OBJS=""
24647 { echo "$as_me:$LINENO: result: not used" >&5
24648 echo "${ECHO_T}not used" >&6; }
24649 else
24650 UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o"
24652 cat >>confdefs.h <<\_ACEOF
24653 #define Py_USING_UNICODE 1
24654 _ACEOF
24657 # wchar_t is only usable if it maps to an unsigned type
24658 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
24659 -a "$ac_cv_wchar_t_signed" = "no"
24660 then
24661 PY_UNICODE_TYPE="wchar_t"
24663 cat >>confdefs.h <<\_ACEOF
24664 #define HAVE_USABLE_WCHAR_T 1
24665 _ACEOF
24667 cat >>confdefs.h <<\_ACEOF
24668 #define PY_UNICODE_TYPE wchar_t
24669 _ACEOF
24671 elif test "$ac_cv_sizeof_short" = "$unicode_size"
24672 then
24673 PY_UNICODE_TYPE="unsigned short"
24674 cat >>confdefs.h <<\_ACEOF
24675 #define PY_UNICODE_TYPE unsigned short
24676 _ACEOF
24678 elif test "$ac_cv_sizeof_long" = "$unicode_size"
24679 then
24680 PY_UNICODE_TYPE="unsigned long"
24681 cat >>confdefs.h <<\_ACEOF
24682 #define PY_UNICODE_TYPE unsigned long
24683 _ACEOF
24685 else
24686 PY_UNICODE_TYPE="no type found"
24688 { echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
24689 echo "${ECHO_T}$PY_UNICODE_TYPE" >&6; }
24692 # check for endianness
24693 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
24694 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
24695 if test "${ac_cv_c_bigendian+set}" = set; then
24696 echo $ECHO_N "(cached) $ECHO_C" >&6
24697 else
24698 # See if sys/param.h defines the BYTE_ORDER macro.
24699 cat >conftest.$ac_ext <<_ACEOF
24700 /* confdefs.h. */
24701 _ACEOF
24702 cat confdefs.h >>conftest.$ac_ext
24703 cat >>conftest.$ac_ext <<_ACEOF
24704 /* end confdefs.h. */
24705 #include <sys/types.h>
24706 #include <sys/param.h>
24709 main ()
24711 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
24712 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
24713 bogus endian macros
24714 #endif
24717 return 0;
24719 _ACEOF
24720 rm -f conftest.$ac_objext
24721 if { (ac_try="$ac_compile"
24722 case "(($ac_try" in
24723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24724 *) ac_try_echo=$ac_try;;
24725 esac
24726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24727 (eval "$ac_compile") 2>conftest.er1
24728 ac_status=$?
24729 grep -v '^ *+' conftest.er1 >conftest.err
24730 rm -f conftest.er1
24731 cat conftest.err >&5
24732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24733 (exit $ac_status); } && {
24734 test -z "$ac_c_werror_flag" ||
24735 test ! -s conftest.err
24736 } && test -s conftest.$ac_objext; then
24737 # It does; now see whether it defined to BIG_ENDIAN or not.
24738 cat >conftest.$ac_ext <<_ACEOF
24739 /* confdefs.h. */
24740 _ACEOF
24741 cat confdefs.h >>conftest.$ac_ext
24742 cat >>conftest.$ac_ext <<_ACEOF
24743 /* end confdefs.h. */
24744 #include <sys/types.h>
24745 #include <sys/param.h>
24748 main ()
24750 #if BYTE_ORDER != BIG_ENDIAN
24751 not big endian
24752 #endif
24755 return 0;
24757 _ACEOF
24758 rm -f conftest.$ac_objext
24759 if { (ac_try="$ac_compile"
24760 case "(($ac_try" in
24761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24762 *) ac_try_echo=$ac_try;;
24763 esac
24764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24765 (eval "$ac_compile") 2>conftest.er1
24766 ac_status=$?
24767 grep -v '^ *+' conftest.er1 >conftest.err
24768 rm -f conftest.er1
24769 cat conftest.err >&5
24770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24771 (exit $ac_status); } && {
24772 test -z "$ac_c_werror_flag" ||
24773 test ! -s conftest.err
24774 } && test -s conftest.$ac_objext; then
24775 ac_cv_c_bigendian=yes
24776 else
24777 echo "$as_me: failed program was:" >&5
24778 sed 's/^/| /' conftest.$ac_ext >&5
24780 ac_cv_c_bigendian=no
24783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24784 else
24785 echo "$as_me: failed program was:" >&5
24786 sed 's/^/| /' conftest.$ac_ext >&5
24788 # It does not; compile a test program.
24789 if test "$cross_compiling" = yes; then
24790 # try to guess the endianness by grepping values into an object file
24791 ac_cv_c_bigendian=unknown
24792 cat >conftest.$ac_ext <<_ACEOF
24793 /* confdefs.h. */
24794 _ACEOF
24795 cat confdefs.h >>conftest.$ac_ext
24796 cat >>conftest.$ac_ext <<_ACEOF
24797 /* end confdefs.h. */
24798 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
24799 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
24800 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
24801 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
24802 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
24803 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
24805 main ()
24807 _ascii (); _ebcdic ();
24809 return 0;
24811 _ACEOF
24812 rm -f conftest.$ac_objext
24813 if { (ac_try="$ac_compile"
24814 case "(($ac_try" in
24815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24816 *) ac_try_echo=$ac_try;;
24817 esac
24818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24819 (eval "$ac_compile") 2>conftest.er1
24820 ac_status=$?
24821 grep -v '^ *+' conftest.er1 >conftest.err
24822 rm -f conftest.er1
24823 cat conftest.err >&5
24824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24825 (exit $ac_status); } && {
24826 test -z "$ac_c_werror_flag" ||
24827 test ! -s conftest.err
24828 } && test -s conftest.$ac_objext; then
24829 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
24830 ac_cv_c_bigendian=yes
24832 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
24833 if test "$ac_cv_c_bigendian" = unknown; then
24834 ac_cv_c_bigendian=no
24835 else
24836 # finding both strings is unlikely to happen, but who knows?
24837 ac_cv_c_bigendian=unknown
24840 else
24841 echo "$as_me: failed program was:" >&5
24842 sed 's/^/| /' conftest.$ac_ext >&5
24847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24848 else
24849 cat >conftest.$ac_ext <<_ACEOF
24850 /* confdefs.h. */
24851 _ACEOF
24852 cat confdefs.h >>conftest.$ac_ext
24853 cat >>conftest.$ac_ext <<_ACEOF
24854 /* end confdefs.h. */
24855 $ac_includes_default
24857 main ()
24860 /* Are we little or big endian? From Harbison&Steele. */
24861 union
24863 long int l;
24864 char c[sizeof (long int)];
24865 } u;
24866 u.l = 1;
24867 return u.c[sizeof (long int) - 1] == 1;
24870 return 0;
24872 _ACEOF
24873 rm -f conftest$ac_exeext
24874 if { (ac_try="$ac_link"
24875 case "(($ac_try" in
24876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24877 *) ac_try_echo=$ac_try;;
24878 esac
24879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24880 (eval "$ac_link") 2>&5
24881 ac_status=$?
24882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24883 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24884 { (case "(($ac_try" in
24885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24886 *) ac_try_echo=$ac_try;;
24887 esac
24888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24889 (eval "$ac_try") 2>&5
24890 ac_status=$?
24891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24892 (exit $ac_status); }; }; then
24893 ac_cv_c_bigendian=no
24894 else
24895 echo "$as_me: program exited with status $ac_status" >&5
24896 echo "$as_me: failed program was:" >&5
24897 sed 's/^/| /' conftest.$ac_ext >&5
24899 ( exit $ac_status )
24900 ac_cv_c_bigendian=yes
24902 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24910 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
24911 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
24912 case $ac_cv_c_bigendian in
24913 yes)
24915 cat >>confdefs.h <<\_ACEOF
24916 #define WORDS_BIGENDIAN 1
24917 _ACEOF
24922 { { echo "$as_me:$LINENO: error: unknown endianness
24923 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
24924 echo "$as_me: error: unknown endianness
24925 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
24926 { (exit 1); exit 1; }; } ;;
24927 esac
24930 # Check whether right shifting a negative integer extends the sign bit
24931 # or fills with zeros (like the Cray J90, according to Tim Peters).
24932 { echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
24933 echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6; }
24934 if test "${ac_cv_rshift_extends_sign+set}" = set; then
24935 echo $ECHO_N "(cached) $ECHO_C" >&6
24936 else
24938 if test "$cross_compiling" = yes; then
24939 ac_cv_rshift_extends_sign=yes
24940 else
24941 cat >conftest.$ac_ext <<_ACEOF
24942 /* confdefs.h. */
24943 _ACEOF
24944 cat confdefs.h >>conftest.$ac_ext
24945 cat >>conftest.$ac_ext <<_ACEOF
24946 /* end confdefs.h. */
24948 int main()
24950 exit(((-1)>>3 == -1) ? 0 : 1);
24953 _ACEOF
24954 rm -f conftest$ac_exeext
24955 if { (ac_try="$ac_link"
24956 case "(($ac_try" in
24957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24958 *) ac_try_echo=$ac_try;;
24959 esac
24960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24961 (eval "$ac_link") 2>&5
24962 ac_status=$?
24963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24964 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24965 { (case "(($ac_try" in
24966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24967 *) ac_try_echo=$ac_try;;
24968 esac
24969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24970 (eval "$ac_try") 2>&5
24971 ac_status=$?
24972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24973 (exit $ac_status); }; }; then
24974 ac_cv_rshift_extends_sign=yes
24975 else
24976 echo "$as_me: program exited with status $ac_status" >&5
24977 echo "$as_me: failed program was:" >&5
24978 sed 's/^/| /' conftest.$ac_ext >&5
24980 ( exit $ac_status )
24981 ac_cv_rshift_extends_sign=no
24983 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24989 { echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
24990 echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6; }
24991 if test "$ac_cv_rshift_extends_sign" = no
24992 then
24994 cat >>confdefs.h <<\_ACEOF
24995 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
24996 _ACEOF
25000 # check for getc_unlocked and related locking functions
25001 { echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
25002 echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6; }
25003 if test "${ac_cv_have_getc_unlocked+set}" = set; then
25004 echo $ECHO_N "(cached) $ECHO_C" >&6
25005 else
25007 cat >conftest.$ac_ext <<_ACEOF
25008 /* confdefs.h. */
25009 _ACEOF
25010 cat confdefs.h >>conftest.$ac_ext
25011 cat >>conftest.$ac_ext <<_ACEOF
25012 /* end confdefs.h. */
25013 #include <stdio.h>
25015 main ()
25018 FILE *f = fopen("/dev/null", "r");
25019 flockfile(f);
25020 getc_unlocked(f);
25021 funlockfile(f);
25024 return 0;
25026 _ACEOF
25027 rm -f conftest.$ac_objext conftest$ac_exeext
25028 if { (ac_try="$ac_link"
25029 case "(($ac_try" in
25030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25031 *) ac_try_echo=$ac_try;;
25032 esac
25033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25034 (eval "$ac_link") 2>conftest.er1
25035 ac_status=$?
25036 grep -v '^ *+' conftest.er1 >conftest.err
25037 rm -f conftest.er1
25038 cat conftest.err >&5
25039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25040 (exit $ac_status); } && {
25041 test -z "$ac_c_werror_flag" ||
25042 test ! -s conftest.err
25043 } && test -s conftest$ac_exeext &&
25044 $as_test_x conftest$ac_exeext; then
25045 ac_cv_have_getc_unlocked=yes
25046 else
25047 echo "$as_me: failed program was:" >&5
25048 sed 's/^/| /' conftest.$ac_ext >&5
25050 ac_cv_have_getc_unlocked=no
25053 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25054 conftest$ac_exeext conftest.$ac_ext
25057 { echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
25058 echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6; }
25059 if test "$ac_cv_have_getc_unlocked" = yes
25060 then
25062 cat >>confdefs.h <<\_ACEOF
25063 #define HAVE_GETC_UNLOCKED 1
25064 _ACEOF
25068 # check where readline lives
25069 # save the value of LIBS so we don't actually link Python with readline
25070 LIBS_no_readline=$LIBS
25072 # On some systems we need to link readline to a termcap compatible
25073 # library. NOTE: Keep the precedence of listed libraries synchronised
25074 # with setup.py.
25075 py_cv_lib_readline=no
25076 { echo "$as_me:$LINENO: checking how to link readline libs" >&5
25077 echo $ECHO_N "checking how to link readline libs... $ECHO_C" >&6; }
25078 for py_libtermcap in "" ncursesw ncurses curses termcap; do
25079 if test -z "$py_libtermcap"; then
25080 READLINE_LIBS="-lreadline"
25081 else
25082 READLINE_LIBS="-lreadline -l$py_libtermcap"
25084 LIBS="$READLINE_LIBS $LIBS_no_readline"
25085 cat >conftest.$ac_ext <<_ACEOF
25086 /* confdefs.h. */
25087 _ACEOF
25088 cat confdefs.h >>conftest.$ac_ext
25089 cat >>conftest.$ac_ext <<_ACEOF
25090 /* end confdefs.h. */
25092 /* Override any GCC internal prototype to avoid an error.
25093 Use char because int might match the return type of a GCC
25094 builtin and then its argument prototype would still apply. */
25095 #ifdef __cplusplus
25096 extern "C"
25097 #endif
25098 char readline ();
25100 main ()
25102 return readline ();
25104 return 0;
25106 _ACEOF
25107 rm -f conftest.$ac_objext conftest$ac_exeext
25108 if { (ac_try="$ac_link"
25109 case "(($ac_try" in
25110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25111 *) ac_try_echo=$ac_try;;
25112 esac
25113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25114 (eval "$ac_link") 2>conftest.er1
25115 ac_status=$?
25116 grep -v '^ *+' conftest.er1 >conftest.err
25117 rm -f conftest.er1
25118 cat conftest.err >&5
25119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25120 (exit $ac_status); } && {
25121 test -z "$ac_c_werror_flag" ||
25122 test ! -s conftest.err
25123 } && test -s conftest$ac_exeext &&
25124 $as_test_x conftest$ac_exeext; then
25125 py_cv_lib_readline=yes
25126 else
25127 echo "$as_me: failed program was:" >&5
25128 sed 's/^/| /' conftest.$ac_ext >&5
25133 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25134 conftest$ac_exeext conftest.$ac_ext
25135 if test $py_cv_lib_readline = yes; then
25136 break
25138 done
25139 # Uncomment this line if you want to use READINE_LIBS in Makefile or scripts
25140 #AC_SUBST([READLINE_LIBS])
25141 if test $py_cv_lib_readline = no; then
25142 { echo "$as_me:$LINENO: result: none" >&5
25143 echo "${ECHO_T}none" >&6; }
25144 else
25145 { echo "$as_me:$LINENO: result: $READLINE_LIBS" >&5
25146 echo "${ECHO_T}$READLINE_LIBS" >&6; }
25148 cat >>confdefs.h <<\_ACEOF
25149 #define HAVE_LIBREADLINE 1
25150 _ACEOF
25154 # check for readline 2.1
25155 { echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
25156 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6; }
25157 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
25158 echo $ECHO_N "(cached) $ECHO_C" >&6
25159 else
25160 ac_check_lib_save_LIBS=$LIBS
25161 LIBS="-lreadline $READLINE_LIBS $LIBS"
25162 cat >conftest.$ac_ext <<_ACEOF
25163 /* confdefs.h. */
25164 _ACEOF
25165 cat confdefs.h >>conftest.$ac_ext
25166 cat >>conftest.$ac_ext <<_ACEOF
25167 /* end confdefs.h. */
25169 /* Override any GCC internal prototype to avoid an error.
25170 Use char because int might match the return type of a GCC
25171 builtin and then its argument prototype would still apply. */
25172 #ifdef __cplusplus
25173 extern "C"
25174 #endif
25175 char rl_callback_handler_install ();
25177 main ()
25179 return rl_callback_handler_install ();
25181 return 0;
25183 _ACEOF
25184 rm -f conftest.$ac_objext conftest$ac_exeext
25185 if { (ac_try="$ac_link"
25186 case "(($ac_try" in
25187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25188 *) ac_try_echo=$ac_try;;
25189 esac
25190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25191 (eval "$ac_link") 2>conftest.er1
25192 ac_status=$?
25193 grep -v '^ *+' conftest.er1 >conftest.err
25194 rm -f conftest.er1
25195 cat conftest.err >&5
25196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25197 (exit $ac_status); } && {
25198 test -z "$ac_c_werror_flag" ||
25199 test ! -s conftest.err
25200 } && test -s conftest$ac_exeext &&
25201 $as_test_x conftest$ac_exeext; then
25202 ac_cv_lib_readline_rl_callback_handler_install=yes
25203 else
25204 echo "$as_me: failed program was:" >&5
25205 sed 's/^/| /' conftest.$ac_ext >&5
25207 ac_cv_lib_readline_rl_callback_handler_install=no
25210 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25211 conftest$ac_exeext conftest.$ac_ext
25212 LIBS=$ac_check_lib_save_LIBS
25214 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
25215 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6; }
25216 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
25218 cat >>confdefs.h <<\_ACEOF
25219 #define HAVE_RL_CALLBACK 1
25220 _ACEOF
25225 # check for readline 2.2
25226 cat >conftest.$ac_ext <<_ACEOF
25227 /* confdefs.h. */
25228 _ACEOF
25229 cat confdefs.h >>conftest.$ac_ext
25230 cat >>conftest.$ac_ext <<_ACEOF
25231 /* end confdefs.h. */
25232 #include <readline/readline.h>
25233 _ACEOF
25234 if { (ac_try="$ac_cpp conftest.$ac_ext"
25235 case "(($ac_try" in
25236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25237 *) ac_try_echo=$ac_try;;
25238 esac
25239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25240 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25241 ac_status=$?
25242 grep -v '^ *+' conftest.er1 >conftest.err
25243 rm -f conftest.er1
25244 cat conftest.err >&5
25245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25246 (exit $ac_status); } >/dev/null && {
25247 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25248 test ! -s conftest.err
25249 }; then
25250 have_readline=yes
25251 else
25252 echo "$as_me: failed program was:" >&5
25253 sed 's/^/| /' conftest.$ac_ext >&5
25255 have_readline=no
25258 rm -f conftest.err conftest.$ac_ext
25259 if test $have_readline = yes
25260 then
25261 cat >conftest.$ac_ext <<_ACEOF
25262 /* confdefs.h. */
25263 _ACEOF
25264 cat confdefs.h >>conftest.$ac_ext
25265 cat >>conftest.$ac_ext <<_ACEOF
25266 /* end confdefs.h. */
25267 #include <readline/readline.h>
25269 _ACEOF
25270 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25271 $EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then
25273 cat >>confdefs.h <<\_ACEOF
25274 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
25275 _ACEOF
25278 rm -f -r conftest*
25282 # check for readline 4.0
25283 { echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
25284 echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6; }
25285 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
25286 echo $ECHO_N "(cached) $ECHO_C" >&6
25287 else
25288 ac_check_lib_save_LIBS=$LIBS
25289 LIBS="-lreadline $READLINE_LIBS $LIBS"
25290 cat >conftest.$ac_ext <<_ACEOF
25291 /* confdefs.h. */
25292 _ACEOF
25293 cat confdefs.h >>conftest.$ac_ext
25294 cat >>conftest.$ac_ext <<_ACEOF
25295 /* end confdefs.h. */
25297 /* Override any GCC internal prototype to avoid an error.
25298 Use char because int might match the return type of a GCC
25299 builtin and then its argument prototype would still apply. */
25300 #ifdef __cplusplus
25301 extern "C"
25302 #endif
25303 char rl_pre_input_hook ();
25305 main ()
25307 return rl_pre_input_hook ();
25309 return 0;
25311 _ACEOF
25312 rm -f conftest.$ac_objext conftest$ac_exeext
25313 if { (ac_try="$ac_link"
25314 case "(($ac_try" in
25315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25316 *) ac_try_echo=$ac_try;;
25317 esac
25318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25319 (eval "$ac_link") 2>conftest.er1
25320 ac_status=$?
25321 grep -v '^ *+' conftest.er1 >conftest.err
25322 rm -f conftest.er1
25323 cat conftest.err >&5
25324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25325 (exit $ac_status); } && {
25326 test -z "$ac_c_werror_flag" ||
25327 test ! -s conftest.err
25328 } && test -s conftest$ac_exeext &&
25329 $as_test_x conftest$ac_exeext; then
25330 ac_cv_lib_readline_rl_pre_input_hook=yes
25331 else
25332 echo "$as_me: failed program was:" >&5
25333 sed 's/^/| /' conftest.$ac_ext >&5
25335 ac_cv_lib_readline_rl_pre_input_hook=no
25338 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25339 conftest$ac_exeext conftest.$ac_ext
25340 LIBS=$ac_check_lib_save_LIBS
25342 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
25343 echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6; }
25344 if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
25346 cat >>confdefs.h <<\_ACEOF
25347 #define HAVE_RL_PRE_INPUT_HOOK 1
25348 _ACEOF
25353 # also in 4.0
25354 { echo "$as_me:$LINENO: checking for rl_completion_display_matches_hook in -lreadline" >&5
25355 echo $ECHO_N "checking for rl_completion_display_matches_hook in -lreadline... $ECHO_C" >&6; }
25356 if test "${ac_cv_lib_readline_rl_completion_display_matches_hook+set}" = set; then
25357 echo $ECHO_N "(cached) $ECHO_C" >&6
25358 else
25359 ac_check_lib_save_LIBS=$LIBS
25360 LIBS="-lreadline $READLINE_LIBS $LIBS"
25361 cat >conftest.$ac_ext <<_ACEOF
25362 /* confdefs.h. */
25363 _ACEOF
25364 cat confdefs.h >>conftest.$ac_ext
25365 cat >>conftest.$ac_ext <<_ACEOF
25366 /* end confdefs.h. */
25368 /* Override any GCC internal prototype to avoid an error.
25369 Use char because int might match the return type of a GCC
25370 builtin and then its argument prototype would still apply. */
25371 #ifdef __cplusplus
25372 extern "C"
25373 #endif
25374 char rl_completion_display_matches_hook ();
25376 main ()
25378 return rl_completion_display_matches_hook ();
25380 return 0;
25382 _ACEOF
25383 rm -f conftest.$ac_objext conftest$ac_exeext
25384 if { (ac_try="$ac_link"
25385 case "(($ac_try" in
25386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25387 *) ac_try_echo=$ac_try;;
25388 esac
25389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25390 (eval "$ac_link") 2>conftest.er1
25391 ac_status=$?
25392 grep -v '^ *+' conftest.er1 >conftest.err
25393 rm -f conftest.er1
25394 cat conftest.err >&5
25395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25396 (exit $ac_status); } && {
25397 test -z "$ac_c_werror_flag" ||
25398 test ! -s conftest.err
25399 } && test -s conftest$ac_exeext &&
25400 $as_test_x conftest$ac_exeext; then
25401 ac_cv_lib_readline_rl_completion_display_matches_hook=yes
25402 else
25403 echo "$as_me: failed program was:" >&5
25404 sed 's/^/| /' conftest.$ac_ext >&5
25406 ac_cv_lib_readline_rl_completion_display_matches_hook=no
25409 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25410 conftest$ac_exeext conftest.$ac_ext
25411 LIBS=$ac_check_lib_save_LIBS
25413 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5
25414 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; }
25415 if test $ac_cv_lib_readline_rl_completion_display_matches_hook = yes; then
25417 cat >>confdefs.h <<\_ACEOF
25418 #define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1
25419 _ACEOF
25424 # check for readline 4.2
25425 { echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
25426 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6; }
25427 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
25428 echo $ECHO_N "(cached) $ECHO_C" >&6
25429 else
25430 ac_check_lib_save_LIBS=$LIBS
25431 LIBS="-lreadline $READLINE_LIBS $LIBS"
25432 cat >conftest.$ac_ext <<_ACEOF
25433 /* confdefs.h. */
25434 _ACEOF
25435 cat confdefs.h >>conftest.$ac_ext
25436 cat >>conftest.$ac_ext <<_ACEOF
25437 /* end confdefs.h. */
25439 /* Override any GCC internal prototype to avoid an error.
25440 Use char because int might match the return type of a GCC
25441 builtin and then its argument prototype would still apply. */
25442 #ifdef __cplusplus
25443 extern "C"
25444 #endif
25445 char rl_completion_matches ();
25447 main ()
25449 return rl_completion_matches ();
25451 return 0;
25453 _ACEOF
25454 rm -f conftest.$ac_objext conftest$ac_exeext
25455 if { (ac_try="$ac_link"
25456 case "(($ac_try" in
25457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25458 *) ac_try_echo=$ac_try;;
25459 esac
25460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25461 (eval "$ac_link") 2>conftest.er1
25462 ac_status=$?
25463 grep -v '^ *+' conftest.er1 >conftest.err
25464 rm -f conftest.er1
25465 cat conftest.err >&5
25466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25467 (exit $ac_status); } && {
25468 test -z "$ac_c_werror_flag" ||
25469 test ! -s conftest.err
25470 } && test -s conftest$ac_exeext &&
25471 $as_test_x conftest$ac_exeext; then
25472 ac_cv_lib_readline_rl_completion_matches=yes
25473 else
25474 echo "$as_me: failed program was:" >&5
25475 sed 's/^/| /' conftest.$ac_ext >&5
25477 ac_cv_lib_readline_rl_completion_matches=no
25480 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25481 conftest$ac_exeext conftest.$ac_ext
25482 LIBS=$ac_check_lib_save_LIBS
25484 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
25485 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6; }
25486 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
25488 cat >>confdefs.h <<\_ACEOF
25489 #define HAVE_RL_COMPLETION_MATCHES 1
25490 _ACEOF
25495 # also in readline 4.2
25496 cat >conftest.$ac_ext <<_ACEOF
25497 /* confdefs.h. */
25498 _ACEOF
25499 cat confdefs.h >>conftest.$ac_ext
25500 cat >>conftest.$ac_ext <<_ACEOF
25501 /* end confdefs.h. */
25502 #include <readline/readline.h>
25503 _ACEOF
25504 if { (ac_try="$ac_cpp conftest.$ac_ext"
25505 case "(($ac_try" in
25506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25507 *) ac_try_echo=$ac_try;;
25508 esac
25509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25510 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25511 ac_status=$?
25512 grep -v '^ *+' conftest.er1 >conftest.err
25513 rm -f conftest.er1
25514 cat conftest.err >&5
25515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25516 (exit $ac_status); } >/dev/null && {
25517 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25518 test ! -s conftest.err
25519 }; then
25520 have_readline=yes
25521 else
25522 echo "$as_me: failed program was:" >&5
25523 sed 's/^/| /' conftest.$ac_ext >&5
25525 have_readline=no
25528 rm -f conftest.err conftest.$ac_ext
25529 if test $have_readline = yes
25530 then
25531 cat >conftest.$ac_ext <<_ACEOF
25532 /* confdefs.h. */
25533 _ACEOF
25534 cat confdefs.h >>conftest.$ac_ext
25535 cat >>conftest.$ac_ext <<_ACEOF
25536 /* end confdefs.h. */
25537 #include <readline/readline.h>
25539 _ACEOF
25540 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25541 $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then
25543 cat >>confdefs.h <<\_ACEOF
25544 #define HAVE_RL_CATCH_SIGNAL 1
25545 _ACEOF
25548 rm -f -r conftest*
25552 # End of readline checks: restore LIBS
25553 LIBS=$LIBS_no_readline
25555 { echo "$as_me:$LINENO: checking for broken nice()" >&5
25556 echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6; }
25557 if test "${ac_cv_broken_nice+set}" = set; then
25558 echo $ECHO_N "(cached) $ECHO_C" >&6
25559 else
25561 if test "$cross_compiling" = yes; then
25562 ac_cv_broken_nice=no
25563 else
25564 cat >conftest.$ac_ext <<_ACEOF
25565 /* confdefs.h. */
25566 _ACEOF
25567 cat confdefs.h >>conftest.$ac_ext
25568 cat >>conftest.$ac_ext <<_ACEOF
25569 /* end confdefs.h. */
25571 int main()
25573 int val1 = nice(1);
25574 if (val1 != -1 && val1 == nice(2))
25575 exit(0);
25576 exit(1);
25579 _ACEOF
25580 rm -f conftest$ac_exeext
25581 if { (ac_try="$ac_link"
25582 case "(($ac_try" in
25583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25584 *) ac_try_echo=$ac_try;;
25585 esac
25586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25587 (eval "$ac_link") 2>&5
25588 ac_status=$?
25589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25590 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25591 { (case "(($ac_try" in
25592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25593 *) ac_try_echo=$ac_try;;
25594 esac
25595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25596 (eval "$ac_try") 2>&5
25597 ac_status=$?
25598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25599 (exit $ac_status); }; }; then
25600 ac_cv_broken_nice=yes
25601 else
25602 echo "$as_me: program exited with status $ac_status" >&5
25603 echo "$as_me: failed program was:" >&5
25604 sed 's/^/| /' conftest.$ac_ext >&5
25606 ( exit $ac_status )
25607 ac_cv_broken_nice=no
25609 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25615 { echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
25616 echo "${ECHO_T}$ac_cv_broken_nice" >&6; }
25617 if test "$ac_cv_broken_nice" = yes
25618 then
25620 cat >>confdefs.h <<\_ACEOF
25621 #define HAVE_BROKEN_NICE 1
25622 _ACEOF
25626 { echo "$as_me:$LINENO: checking for broken poll()" >&5
25627 echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6; }
25628 if test "${ac_cv_broken_poll+set}" = set; then
25629 echo $ECHO_N "(cached) $ECHO_C" >&6
25630 else
25631 if test "$cross_compiling" = yes; then
25632 ac_cv_broken_poll=no
25633 else
25634 cat >conftest.$ac_ext <<_ACEOF
25635 /* confdefs.h. */
25636 _ACEOF
25637 cat confdefs.h >>conftest.$ac_ext
25638 cat >>conftest.$ac_ext <<_ACEOF
25639 /* end confdefs.h. */
25641 #include <poll.h>
25643 int main()
25645 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
25646 int poll_test;
25648 close (42);
25650 poll_test = poll(&poll_struct, 1, 0);
25651 if (poll_test < 0)
25652 return 0;
25653 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
25654 return 0;
25655 else
25656 return 1;
25659 _ACEOF
25660 rm -f conftest$ac_exeext
25661 if { (ac_try="$ac_link"
25662 case "(($ac_try" in
25663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25664 *) ac_try_echo=$ac_try;;
25665 esac
25666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25667 (eval "$ac_link") 2>&5
25668 ac_status=$?
25669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25670 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25671 { (case "(($ac_try" in
25672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25673 *) ac_try_echo=$ac_try;;
25674 esac
25675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25676 (eval "$ac_try") 2>&5
25677 ac_status=$?
25678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25679 (exit $ac_status); }; }; then
25680 ac_cv_broken_poll=yes
25681 else
25682 echo "$as_me: program exited with status $ac_status" >&5
25683 echo "$as_me: failed program was:" >&5
25684 sed 's/^/| /' conftest.$ac_ext >&5
25686 ( exit $ac_status )
25687 ac_cv_broken_poll=no
25689 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25695 { echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5
25696 echo "${ECHO_T}$ac_cv_broken_poll" >&6; }
25697 if test "$ac_cv_broken_poll" = yes
25698 then
25700 cat >>confdefs.h <<\_ACEOF
25701 #define HAVE_BROKEN_POLL 1
25702 _ACEOF
25706 # Before we can test tzset, we need to check if struct tm has a tm_zone
25707 # (which is not required by ISO C or UNIX spec) and/or if we support
25708 # tzname[]
25709 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
25710 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
25711 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
25712 echo $ECHO_N "(cached) $ECHO_C" >&6
25713 else
25714 cat >conftest.$ac_ext <<_ACEOF
25715 /* confdefs.h. */
25716 _ACEOF
25717 cat confdefs.h >>conftest.$ac_ext
25718 cat >>conftest.$ac_ext <<_ACEOF
25719 /* end confdefs.h. */
25720 #include <sys/types.h>
25721 #include <$ac_cv_struct_tm>
25725 main ()
25727 static struct tm ac_aggr;
25728 if (ac_aggr.tm_zone)
25729 return 0;
25731 return 0;
25733 _ACEOF
25734 rm -f conftest.$ac_objext
25735 if { (ac_try="$ac_compile"
25736 case "(($ac_try" in
25737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25738 *) ac_try_echo=$ac_try;;
25739 esac
25740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25741 (eval "$ac_compile") 2>conftest.er1
25742 ac_status=$?
25743 grep -v '^ *+' conftest.er1 >conftest.err
25744 rm -f conftest.er1
25745 cat conftest.err >&5
25746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25747 (exit $ac_status); } && {
25748 test -z "$ac_c_werror_flag" ||
25749 test ! -s conftest.err
25750 } && test -s conftest.$ac_objext; then
25751 ac_cv_member_struct_tm_tm_zone=yes
25752 else
25753 echo "$as_me: failed program was:" >&5
25754 sed 's/^/| /' conftest.$ac_ext >&5
25756 cat >conftest.$ac_ext <<_ACEOF
25757 /* confdefs.h. */
25758 _ACEOF
25759 cat confdefs.h >>conftest.$ac_ext
25760 cat >>conftest.$ac_ext <<_ACEOF
25761 /* end confdefs.h. */
25762 #include <sys/types.h>
25763 #include <$ac_cv_struct_tm>
25767 main ()
25769 static struct tm ac_aggr;
25770 if (sizeof ac_aggr.tm_zone)
25771 return 0;
25773 return 0;
25775 _ACEOF
25776 rm -f conftest.$ac_objext
25777 if { (ac_try="$ac_compile"
25778 case "(($ac_try" in
25779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25780 *) ac_try_echo=$ac_try;;
25781 esac
25782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25783 (eval "$ac_compile") 2>conftest.er1
25784 ac_status=$?
25785 grep -v '^ *+' conftest.er1 >conftest.err
25786 rm -f conftest.er1
25787 cat conftest.err >&5
25788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25789 (exit $ac_status); } && {
25790 test -z "$ac_c_werror_flag" ||
25791 test ! -s conftest.err
25792 } && test -s conftest.$ac_objext; then
25793 ac_cv_member_struct_tm_tm_zone=yes
25794 else
25795 echo "$as_me: failed program was:" >&5
25796 sed 's/^/| /' conftest.$ac_ext >&5
25798 ac_cv_member_struct_tm_tm_zone=no
25801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25806 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
25807 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
25808 if test $ac_cv_member_struct_tm_tm_zone = yes; then
25810 cat >>confdefs.h <<_ACEOF
25811 #define HAVE_STRUCT_TM_TM_ZONE 1
25812 _ACEOF
25817 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
25819 cat >>confdefs.h <<\_ACEOF
25820 #define HAVE_TM_ZONE 1
25821 _ACEOF
25823 else
25824 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
25825 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
25826 if test "${ac_cv_have_decl_tzname+set}" = set; then
25827 echo $ECHO_N "(cached) $ECHO_C" >&6
25828 else
25829 cat >conftest.$ac_ext <<_ACEOF
25830 /* confdefs.h. */
25831 _ACEOF
25832 cat confdefs.h >>conftest.$ac_ext
25833 cat >>conftest.$ac_ext <<_ACEOF
25834 /* end confdefs.h. */
25835 #include <time.h>
25838 main ()
25840 #ifndef tzname
25841 (void) tzname;
25842 #endif
25845 return 0;
25847 _ACEOF
25848 rm -f conftest.$ac_objext
25849 if { (ac_try="$ac_compile"
25850 case "(($ac_try" in
25851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25852 *) ac_try_echo=$ac_try;;
25853 esac
25854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25855 (eval "$ac_compile") 2>conftest.er1
25856 ac_status=$?
25857 grep -v '^ *+' conftest.er1 >conftest.err
25858 rm -f conftest.er1
25859 cat conftest.err >&5
25860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25861 (exit $ac_status); } && {
25862 test -z "$ac_c_werror_flag" ||
25863 test ! -s conftest.err
25864 } && test -s conftest.$ac_objext; then
25865 ac_cv_have_decl_tzname=yes
25866 else
25867 echo "$as_me: failed program was:" >&5
25868 sed 's/^/| /' conftest.$ac_ext >&5
25870 ac_cv_have_decl_tzname=no
25873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25875 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
25876 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
25877 if test $ac_cv_have_decl_tzname = yes; then
25879 cat >>confdefs.h <<_ACEOF
25880 #define HAVE_DECL_TZNAME 1
25881 _ACEOF
25884 else
25885 cat >>confdefs.h <<_ACEOF
25886 #define HAVE_DECL_TZNAME 0
25887 _ACEOF
25893 { echo "$as_me:$LINENO: checking for tzname" >&5
25894 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
25895 if test "${ac_cv_var_tzname+set}" = set; then
25896 echo $ECHO_N "(cached) $ECHO_C" >&6
25897 else
25898 cat >conftest.$ac_ext <<_ACEOF
25899 /* confdefs.h. */
25900 _ACEOF
25901 cat confdefs.h >>conftest.$ac_ext
25902 cat >>conftest.$ac_ext <<_ACEOF
25903 /* end confdefs.h. */
25904 #include <time.h>
25905 #if !HAVE_DECL_TZNAME
25906 extern char *tzname[];
25907 #endif
25910 main ()
25912 return tzname[0][0];
25914 return 0;
25916 _ACEOF
25917 rm -f conftest.$ac_objext conftest$ac_exeext
25918 if { (ac_try="$ac_link"
25919 case "(($ac_try" in
25920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25921 *) ac_try_echo=$ac_try;;
25922 esac
25923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25924 (eval "$ac_link") 2>conftest.er1
25925 ac_status=$?
25926 grep -v '^ *+' conftest.er1 >conftest.err
25927 rm -f conftest.er1
25928 cat conftest.err >&5
25929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25930 (exit $ac_status); } && {
25931 test -z "$ac_c_werror_flag" ||
25932 test ! -s conftest.err
25933 } && test -s conftest$ac_exeext &&
25934 $as_test_x conftest$ac_exeext; then
25935 ac_cv_var_tzname=yes
25936 else
25937 echo "$as_me: failed program was:" >&5
25938 sed 's/^/| /' conftest.$ac_ext >&5
25940 ac_cv_var_tzname=no
25943 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25944 conftest$ac_exeext conftest.$ac_ext
25946 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
25947 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
25948 if test $ac_cv_var_tzname = yes; then
25950 cat >>confdefs.h <<\_ACEOF
25951 #define HAVE_TZNAME 1
25952 _ACEOF
25958 # check tzset(3) exists and works like we expect it to
25959 { echo "$as_me:$LINENO: checking for working tzset()" >&5
25960 echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6; }
25961 if test "${ac_cv_working_tzset+set}" = set; then
25962 echo $ECHO_N "(cached) $ECHO_C" >&6
25963 else
25965 if test "$cross_compiling" = yes; then
25966 ac_cv_working_tzset=no
25967 else
25968 cat >conftest.$ac_ext <<_ACEOF
25969 /* confdefs.h. */
25970 _ACEOF
25971 cat confdefs.h >>conftest.$ac_ext
25972 cat >>conftest.$ac_ext <<_ACEOF
25973 /* end confdefs.h. */
25975 #include <stdlib.h>
25976 #include <time.h>
25977 #include <string.h>
25979 #if HAVE_TZNAME
25980 extern char *tzname[];
25981 #endif
25983 int main()
25985 /* Note that we need to ensure that not only does tzset(3)
25986 do 'something' with localtime, but it works as documented
25987 in the library reference and as expected by the test suite.
25988 This includes making sure that tzname is set properly if
25989 tm->tm_zone does not exist since it is the alternative way
25990 of getting timezone info.
25992 Red Hat 6.2 doesn't understand the southern hemisphere
25993 after New Year's Day.
25996 time_t groundhogday = 1044144000; /* GMT-based */
25997 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
25999 putenv("TZ=UTC+0");
26000 tzset();
26001 if (localtime(&groundhogday)->tm_hour != 0)
26002 exit(1);
26003 #if HAVE_TZNAME
26004 /* For UTC, tzname[1] is sometimes "", sometimes " " */
26005 if (strcmp(tzname[0], "UTC") ||
26006 (tzname[1][0] != 0 && tzname[1][0] != ' '))
26007 exit(1);
26008 #endif
26010 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
26011 tzset();
26012 if (localtime(&groundhogday)->tm_hour != 19)
26013 exit(1);
26014 #if HAVE_TZNAME
26015 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
26016 exit(1);
26017 #endif
26019 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
26020 tzset();
26021 if (localtime(&groundhogday)->tm_hour != 11)
26022 exit(1);
26023 #if HAVE_TZNAME
26024 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
26025 exit(1);
26026 #endif
26028 #if HAVE_STRUCT_TM_TM_ZONE
26029 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
26030 exit(1);
26031 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
26032 exit(1);
26033 #endif
26035 exit(0);
26038 _ACEOF
26039 rm -f conftest$ac_exeext
26040 if { (ac_try="$ac_link"
26041 case "(($ac_try" in
26042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26043 *) ac_try_echo=$ac_try;;
26044 esac
26045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26046 (eval "$ac_link") 2>&5
26047 ac_status=$?
26048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26049 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26050 { (case "(($ac_try" in
26051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26052 *) ac_try_echo=$ac_try;;
26053 esac
26054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26055 (eval "$ac_try") 2>&5
26056 ac_status=$?
26057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26058 (exit $ac_status); }; }; then
26059 ac_cv_working_tzset=yes
26060 else
26061 echo "$as_me: program exited with status $ac_status" >&5
26062 echo "$as_me: failed program was:" >&5
26063 sed 's/^/| /' conftest.$ac_ext >&5
26065 ( exit $ac_status )
26066 ac_cv_working_tzset=no
26068 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26074 { echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5
26075 echo "${ECHO_T}$ac_cv_working_tzset" >&6; }
26076 if test "$ac_cv_working_tzset" = yes
26077 then
26079 cat >>confdefs.h <<\_ACEOF
26080 #define HAVE_WORKING_TZSET 1
26081 _ACEOF
26085 # Look for subsecond timestamps in struct stat
26086 { echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
26087 echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6; }
26088 if test "${ac_cv_stat_tv_nsec+set}" = set; then
26089 echo $ECHO_N "(cached) $ECHO_C" >&6
26090 else
26091 cat >conftest.$ac_ext <<_ACEOF
26092 /* confdefs.h. */
26093 _ACEOF
26094 cat confdefs.h >>conftest.$ac_ext
26095 cat >>conftest.$ac_ext <<_ACEOF
26096 /* end confdefs.h. */
26097 #include <sys/stat.h>
26099 main ()
26102 struct stat st;
26103 st.st_mtim.tv_nsec = 1;
26106 return 0;
26108 _ACEOF
26109 rm -f conftest.$ac_objext
26110 if { (ac_try="$ac_compile"
26111 case "(($ac_try" in
26112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26113 *) ac_try_echo=$ac_try;;
26114 esac
26115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26116 (eval "$ac_compile") 2>conftest.er1
26117 ac_status=$?
26118 grep -v '^ *+' conftest.er1 >conftest.err
26119 rm -f conftest.er1
26120 cat conftest.err >&5
26121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26122 (exit $ac_status); } && {
26123 test -z "$ac_c_werror_flag" ||
26124 test ! -s conftest.err
26125 } && test -s conftest.$ac_objext; then
26126 ac_cv_stat_tv_nsec=yes
26127 else
26128 echo "$as_me: failed program was:" >&5
26129 sed 's/^/| /' conftest.$ac_ext >&5
26131 ac_cv_stat_tv_nsec=no
26134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26137 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
26138 echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6; }
26139 if test "$ac_cv_stat_tv_nsec" = yes
26140 then
26142 cat >>confdefs.h <<\_ACEOF
26143 #define HAVE_STAT_TV_NSEC 1
26144 _ACEOF
26148 # Look for BSD style subsecond timestamps in struct stat
26149 { echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5
26150 echo $ECHO_N "checking for tv_nsec2 in struct stat... $ECHO_C" >&6; }
26151 if test "${ac_cv_stat_tv_nsec2+set}" = set; then
26152 echo $ECHO_N "(cached) $ECHO_C" >&6
26153 else
26154 cat >conftest.$ac_ext <<_ACEOF
26155 /* confdefs.h. */
26156 _ACEOF
26157 cat confdefs.h >>conftest.$ac_ext
26158 cat >>conftest.$ac_ext <<_ACEOF
26159 /* end confdefs.h. */
26160 #include <sys/stat.h>
26162 main ()
26165 struct stat st;
26166 st.st_mtimespec.tv_nsec = 1;
26169 return 0;
26171 _ACEOF
26172 rm -f conftest.$ac_objext
26173 if { (ac_try="$ac_compile"
26174 case "(($ac_try" in
26175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26176 *) ac_try_echo=$ac_try;;
26177 esac
26178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26179 (eval "$ac_compile") 2>conftest.er1
26180 ac_status=$?
26181 grep -v '^ *+' conftest.er1 >conftest.err
26182 rm -f conftest.er1
26183 cat conftest.err >&5
26184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26185 (exit $ac_status); } && {
26186 test -z "$ac_c_werror_flag" ||
26187 test ! -s conftest.err
26188 } && test -s conftest.$ac_objext; then
26189 ac_cv_stat_tv_nsec2=yes
26190 else
26191 echo "$as_me: failed program was:" >&5
26192 sed 's/^/| /' conftest.$ac_ext >&5
26194 ac_cv_stat_tv_nsec2=no
26197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26200 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5
26201 echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6; }
26202 if test "$ac_cv_stat_tv_nsec2" = yes
26203 then
26205 cat >>confdefs.h <<\_ACEOF
26206 #define HAVE_STAT_TV_NSEC2 1
26207 _ACEOF
26211 # On HP/UX 11.0, mvwdelch is a block with a return statement
26212 { echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
26213 echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6; }
26214 if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
26215 echo $ECHO_N "(cached) $ECHO_C" >&6
26216 else
26217 cat >conftest.$ac_ext <<_ACEOF
26218 /* confdefs.h. */
26219 _ACEOF
26220 cat confdefs.h >>conftest.$ac_ext
26221 cat >>conftest.$ac_ext <<_ACEOF
26222 /* end confdefs.h. */
26223 #include <curses.h>
26225 main ()
26228 int rtn;
26229 rtn = mvwdelch(0,0,0);
26232 return 0;
26234 _ACEOF
26235 rm -f conftest.$ac_objext
26236 if { (ac_try="$ac_compile"
26237 case "(($ac_try" in
26238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26239 *) ac_try_echo=$ac_try;;
26240 esac
26241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26242 (eval "$ac_compile") 2>conftest.er1
26243 ac_status=$?
26244 grep -v '^ *+' conftest.er1 >conftest.err
26245 rm -f conftest.er1
26246 cat conftest.err >&5
26247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26248 (exit $ac_status); } && {
26249 test -z "$ac_c_werror_flag" ||
26250 test ! -s conftest.err
26251 } && test -s conftest.$ac_objext; then
26252 ac_cv_mvwdelch_is_expression=yes
26253 else
26254 echo "$as_me: failed program was:" >&5
26255 sed 's/^/| /' conftest.$ac_ext >&5
26257 ac_cv_mvwdelch_is_expression=no
26260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26263 { echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
26264 echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6; }
26266 if test "$ac_cv_mvwdelch_is_expression" = yes
26267 then
26269 cat >>confdefs.h <<\_ACEOF
26270 #define MVWDELCH_IS_EXPRESSION 1
26271 _ACEOF
26275 { echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
26276 echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6; }
26277 if test "${ac_cv_window_has_flags+set}" = set; then
26278 echo $ECHO_N "(cached) $ECHO_C" >&6
26279 else
26280 cat >conftest.$ac_ext <<_ACEOF
26281 /* confdefs.h. */
26282 _ACEOF
26283 cat confdefs.h >>conftest.$ac_ext
26284 cat >>conftest.$ac_ext <<_ACEOF
26285 /* end confdefs.h. */
26286 #include <curses.h>
26288 main ()
26291 WINDOW *w;
26292 w->_flags = 0;
26295 return 0;
26297 _ACEOF
26298 rm -f conftest.$ac_objext
26299 if { (ac_try="$ac_compile"
26300 case "(($ac_try" in
26301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26302 *) ac_try_echo=$ac_try;;
26303 esac
26304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26305 (eval "$ac_compile") 2>conftest.er1
26306 ac_status=$?
26307 grep -v '^ *+' conftest.er1 >conftest.err
26308 rm -f conftest.er1
26309 cat conftest.err >&5
26310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26311 (exit $ac_status); } && {
26312 test -z "$ac_c_werror_flag" ||
26313 test ! -s conftest.err
26314 } && test -s conftest.$ac_objext; then
26315 ac_cv_window_has_flags=yes
26316 else
26317 echo "$as_me: failed program was:" >&5
26318 sed 's/^/| /' conftest.$ac_ext >&5
26320 ac_cv_window_has_flags=no
26323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26326 { echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
26327 echo "${ECHO_T}$ac_cv_window_has_flags" >&6; }
26330 if test "$ac_cv_window_has_flags" = yes
26331 then
26333 cat >>confdefs.h <<\_ACEOF
26334 #define WINDOW_HAS_FLAGS 1
26335 _ACEOF
26339 { echo "$as_me:$LINENO: checking for is_term_resized" >&5
26340 echo $ECHO_N "checking for is_term_resized... $ECHO_C" >&6; }
26341 cat >conftest.$ac_ext <<_ACEOF
26342 /* confdefs.h. */
26343 _ACEOF
26344 cat confdefs.h >>conftest.$ac_ext
26345 cat >>conftest.$ac_ext <<_ACEOF
26346 /* end confdefs.h. */
26347 #include <curses.h>
26349 main ()
26351 void *x=is_term_resized
26353 return 0;
26355 _ACEOF
26356 rm -f conftest.$ac_objext
26357 if { (ac_try="$ac_compile"
26358 case "(($ac_try" in
26359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26360 *) ac_try_echo=$ac_try;;
26361 esac
26362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26363 (eval "$ac_compile") 2>conftest.er1
26364 ac_status=$?
26365 grep -v '^ *+' conftest.er1 >conftest.err
26366 rm -f conftest.er1
26367 cat conftest.err >&5
26368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26369 (exit $ac_status); } && {
26370 test -z "$ac_c_werror_flag" ||
26371 test ! -s conftest.err
26372 } && test -s conftest.$ac_objext; then
26374 cat >>confdefs.h <<\_ACEOF
26375 #define HAVE_CURSES_IS_TERM_RESIZED 1
26376 _ACEOF
26378 { echo "$as_me:$LINENO: result: yes" >&5
26379 echo "${ECHO_T}yes" >&6; }
26380 else
26381 echo "$as_me: failed program was:" >&5
26382 sed 's/^/| /' conftest.$ac_ext >&5
26384 { echo "$as_me:$LINENO: result: no" >&5
26385 echo "${ECHO_T}no" >&6; }
26389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26391 { echo "$as_me:$LINENO: checking for resize_term" >&5
26392 echo $ECHO_N "checking for resize_term... $ECHO_C" >&6; }
26393 cat >conftest.$ac_ext <<_ACEOF
26394 /* confdefs.h. */
26395 _ACEOF
26396 cat confdefs.h >>conftest.$ac_ext
26397 cat >>conftest.$ac_ext <<_ACEOF
26398 /* end confdefs.h. */
26399 #include <curses.h>
26401 main ()
26403 void *x=resize_term
26405 return 0;
26407 _ACEOF
26408 rm -f conftest.$ac_objext
26409 if { (ac_try="$ac_compile"
26410 case "(($ac_try" in
26411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26412 *) ac_try_echo=$ac_try;;
26413 esac
26414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26415 (eval "$ac_compile") 2>conftest.er1
26416 ac_status=$?
26417 grep -v '^ *+' conftest.er1 >conftest.err
26418 rm -f conftest.er1
26419 cat conftest.err >&5
26420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26421 (exit $ac_status); } && {
26422 test -z "$ac_c_werror_flag" ||
26423 test ! -s conftest.err
26424 } && test -s conftest.$ac_objext; then
26426 cat >>confdefs.h <<\_ACEOF
26427 #define HAVE_CURSES_RESIZE_TERM 1
26428 _ACEOF
26430 { echo "$as_me:$LINENO: result: yes" >&5
26431 echo "${ECHO_T}yes" >&6; }
26432 else
26433 echo "$as_me: failed program was:" >&5
26434 sed 's/^/| /' conftest.$ac_ext >&5
26436 { echo "$as_me:$LINENO: result: no" >&5
26437 echo "${ECHO_T}no" >&6; }
26441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26443 { echo "$as_me:$LINENO: checking for resizeterm" >&5
26444 echo $ECHO_N "checking for resizeterm... $ECHO_C" >&6; }
26445 cat >conftest.$ac_ext <<_ACEOF
26446 /* confdefs.h. */
26447 _ACEOF
26448 cat confdefs.h >>conftest.$ac_ext
26449 cat >>conftest.$ac_ext <<_ACEOF
26450 /* end confdefs.h. */
26451 #include <curses.h>
26453 main ()
26455 void *x=resizeterm
26457 return 0;
26459 _ACEOF
26460 rm -f conftest.$ac_objext
26461 if { (ac_try="$ac_compile"
26462 case "(($ac_try" in
26463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26464 *) ac_try_echo=$ac_try;;
26465 esac
26466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26467 (eval "$ac_compile") 2>conftest.er1
26468 ac_status=$?
26469 grep -v '^ *+' conftest.er1 >conftest.err
26470 rm -f conftest.er1
26471 cat conftest.err >&5
26472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26473 (exit $ac_status); } && {
26474 test -z "$ac_c_werror_flag" ||
26475 test ! -s conftest.err
26476 } && test -s conftest.$ac_objext; then
26478 cat >>confdefs.h <<\_ACEOF
26479 #define HAVE_CURSES_RESIZETERM 1
26480 _ACEOF
26482 { echo "$as_me:$LINENO: result: yes" >&5
26483 echo "${ECHO_T}yes" >&6; }
26484 else
26485 echo "$as_me: failed program was:" >&5
26486 sed 's/^/| /' conftest.$ac_ext >&5
26488 { echo "$as_me:$LINENO: result: no" >&5
26489 echo "${ECHO_T}no" >&6; }
26493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26495 { echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
26496 echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6; }
26498 if test -r /dev/ptmx
26499 then
26500 { echo "$as_me:$LINENO: result: yes" >&5
26501 echo "${ECHO_T}yes" >&6; }
26503 cat >>confdefs.h <<\_ACEOF
26504 #define HAVE_DEV_PTMX 1
26505 _ACEOF
26507 else
26508 { echo "$as_me:$LINENO: result: no" >&5
26509 echo "${ECHO_T}no" >&6; }
26512 { echo "$as_me:$LINENO: checking for /dev/ptc" >&5
26513 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6; }
26515 if test -r /dev/ptc
26516 then
26517 { echo "$as_me:$LINENO: result: yes" >&5
26518 echo "${ECHO_T}yes" >&6; }
26520 cat >>confdefs.h <<\_ACEOF
26521 #define HAVE_DEV_PTC 1
26522 _ACEOF
26524 else
26525 { echo "$as_me:$LINENO: result: no" >&5
26526 echo "${ECHO_T}no" >&6; }
26529 { echo "$as_me:$LINENO: checking for %zd printf() format support" >&5
26530 echo $ECHO_N "checking for %zd printf() format support... $ECHO_C" >&6; }
26531 if test "${ac_cv_have_size_t_format+set}" = set; then
26532 echo $ECHO_N "(cached) $ECHO_C" >&6
26533 else
26534 if test "$cross_compiling" = yes; then
26535 ac_cv_have_size_t_format=no
26536 else
26537 cat >conftest.$ac_ext <<_ACEOF
26538 /* confdefs.h. */
26539 _ACEOF
26540 cat confdefs.h >>conftest.$ac_ext
26541 cat >>conftest.$ac_ext <<_ACEOF
26542 /* end confdefs.h. */
26544 #include <stdio.h>
26545 #include <stddef.h>
26546 #include <string.h>
26548 #ifdef HAVE_SYS_TYPES_H
26549 #include <sys/types.h>
26550 #endif
26552 #ifdef HAVE_SSIZE_T
26553 typedef ssize_t Py_ssize_t;
26554 #elif SIZEOF_VOID_P == SIZEOF_LONG
26555 typedef long Py_ssize_t;
26556 #else
26557 typedef int Py_ssize_t;
26558 #endif
26560 int main()
26562 char buffer[256];
26564 if(sprintf(buffer, "%zd", (size_t)123) < 0)
26565 return 1;
26567 if (strcmp(buffer, "123"))
26568 return 1;
26570 if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0)
26571 return 1;
26573 if (strcmp(buffer, "-123"))
26574 return 1;
26576 return 0;
26579 _ACEOF
26580 rm -f conftest$ac_exeext
26581 if { (ac_try="$ac_link"
26582 case "(($ac_try" in
26583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26584 *) ac_try_echo=$ac_try;;
26585 esac
26586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26587 (eval "$ac_link") 2>&5
26588 ac_status=$?
26589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26590 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26591 { (case "(($ac_try" in
26592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26593 *) ac_try_echo=$ac_try;;
26594 esac
26595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26596 (eval "$ac_try") 2>&5
26597 ac_status=$?
26598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26599 (exit $ac_status); }; }; then
26600 ac_cv_have_size_t_format=yes
26601 else
26602 echo "$as_me: program exited with status $ac_status" >&5
26603 echo "$as_me: failed program was:" >&5
26604 sed 's/^/| /' conftest.$ac_ext >&5
26606 ( exit $ac_status )
26607 ac_cv_have_size_t_format=no
26609 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26616 { echo "$as_me:$LINENO: result: $ac_cv_have_size_t_format" >&5
26617 echo "${ECHO_T}$ac_cv_have_size_t_format" >&6; }
26618 if test $ac_cv_have_size_t_format = yes
26619 then
26621 cat >>confdefs.h <<\_ACEOF
26622 #define PY_FORMAT_SIZE_T "z"
26623 _ACEOF
26627 { echo "$as_me:$LINENO: checking for socklen_t" >&5
26628 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
26629 if test "${ac_cv_type_socklen_t+set}" = set; then
26630 echo $ECHO_N "(cached) $ECHO_C" >&6
26631 else
26632 cat >conftest.$ac_ext <<_ACEOF
26633 /* confdefs.h. */
26634 _ACEOF
26635 cat confdefs.h >>conftest.$ac_ext
26636 cat >>conftest.$ac_ext <<_ACEOF
26637 /* end confdefs.h. */
26639 #ifdef HAVE_SYS_TYPES_H
26640 #include <sys/types.h>
26641 #endif
26642 #ifdef HAVE_SYS_SOCKET_H
26643 #include <sys/socket.h>
26644 #endif
26647 typedef socklen_t ac__type_new_;
26649 main ()
26651 if ((ac__type_new_ *) 0)
26652 return 0;
26653 if (sizeof (ac__type_new_))
26654 return 0;
26656 return 0;
26658 _ACEOF
26659 rm -f conftest.$ac_objext
26660 if { (ac_try="$ac_compile"
26661 case "(($ac_try" in
26662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26663 *) ac_try_echo=$ac_try;;
26664 esac
26665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26666 (eval "$ac_compile") 2>conftest.er1
26667 ac_status=$?
26668 grep -v '^ *+' conftest.er1 >conftest.err
26669 rm -f conftest.er1
26670 cat conftest.err >&5
26671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26672 (exit $ac_status); } && {
26673 test -z "$ac_c_werror_flag" ||
26674 test ! -s conftest.err
26675 } && test -s conftest.$ac_objext; then
26676 ac_cv_type_socklen_t=yes
26677 else
26678 echo "$as_me: failed program was:" >&5
26679 sed 's/^/| /' conftest.$ac_ext >&5
26681 ac_cv_type_socklen_t=no
26684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26686 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
26687 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
26688 if test $ac_cv_type_socklen_t = yes; then
26690 else
26692 cat >>confdefs.h <<\_ACEOF
26693 #define socklen_t int
26694 _ACEOF
26701 for h in `(cd $srcdir;echo Python/thread_*.h)`
26703 THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
26704 done
26707 SRCDIRS="Parser Grammar Objects Python Modules Mac"
26708 { echo "$as_me:$LINENO: checking for build directories" >&5
26709 echo $ECHO_N "checking for build directories... $ECHO_C" >&6; }
26710 for dir in $SRCDIRS; do
26711 if test ! -d $dir; then
26712 mkdir $dir
26714 done
26715 { echo "$as_me:$LINENO: result: done" >&5
26716 echo "${ECHO_T}done" >&6; }
26718 # generate output files
26719 ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config Misc/python.pc"
26721 cat >confcache <<\_ACEOF
26722 # This file is a shell script that caches the results of configure
26723 # tests run on this system so they can be shared between configure
26724 # scripts and configure runs, see configure's option --config-cache.
26725 # It is not useful on other systems. If it contains results you don't
26726 # want to keep, you may remove or edit it.
26728 # config.status only pays attention to the cache file if you give it
26729 # the --recheck option to rerun configure.
26731 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26732 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26733 # following values.
26735 _ACEOF
26737 # The following way of writing the cache mishandles newlines in values,
26738 # but we know of no workaround that is simple, portable, and efficient.
26739 # So, we kill variables containing newlines.
26740 # Ultrix sh set writes to stderr and can't be redirected directly,
26741 # and sets the high bit in the cache file unless we assign to the vars.
26743 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26744 eval ac_val=\$$ac_var
26745 case $ac_val in #(
26746 *${as_nl}*)
26747 case $ac_var in #(
26748 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
26749 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
26750 esac
26751 case $ac_var in #(
26752 _ | IFS | as_nl) ;; #(
26753 *) $as_unset $ac_var ;;
26754 esac ;;
26755 esac
26756 done
26758 (set) 2>&1 |
26759 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26760 *${as_nl}ac_space=\ *)
26761 # `set' does not quote correctly, so add quotes (double-quote
26762 # substitution turns \\\\ into \\, and sed turns \\ into \).
26763 sed -n \
26764 "s/'/'\\\\''/g;
26765 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26766 ;; #(
26768 # `set' quotes correctly as required by POSIX, so do not add quotes.
26769 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26771 esac |
26772 sort
26774 sed '
26775 /^ac_cv_env_/b end
26776 t clear
26777 :clear
26778 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26779 t end
26780 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26781 :end' >>confcache
26782 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26783 if test -w "$cache_file"; then
26784 test "x$cache_file" != "x/dev/null" &&
26785 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
26786 echo "$as_me: updating cache $cache_file" >&6;}
26787 cat confcache >$cache_file
26788 else
26789 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26790 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26793 rm -f confcache
26795 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26796 # Let make expand exec_prefix.
26797 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26799 DEFS=-DHAVE_CONFIG_H
26801 ac_libobjs=
26802 ac_ltlibobjs=
26803 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26804 # 1. Remove the extension, and $U if already installed.
26805 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26806 ac_i=`echo "$ac_i" | sed "$ac_script"`
26807 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26808 # will be set to the directory where LIBOBJS objects are built.
26809 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26810 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26811 done
26812 LIBOBJS=$ac_libobjs
26814 LTLIBOBJS=$ac_ltlibobjs
26818 : ${CONFIG_STATUS=./config.status}
26819 ac_clean_files_save=$ac_clean_files
26820 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26821 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26822 echo "$as_me: creating $CONFIG_STATUS" >&6;}
26823 cat >$CONFIG_STATUS <<_ACEOF
26824 #! $SHELL
26825 # Generated by $as_me.
26826 # Run this file to recreate the current configuration.
26827 # Compiler output produced by configure, useful for debugging
26828 # configure, is in config.log if it exists.
26830 debug=false
26831 ac_cs_recheck=false
26832 ac_cs_silent=false
26833 SHELL=\${CONFIG_SHELL-$SHELL}
26834 _ACEOF
26836 cat >>$CONFIG_STATUS <<\_ACEOF
26837 ## --------------------- ##
26838 ## M4sh Initialization. ##
26839 ## --------------------- ##
26841 # Be more Bourne compatible
26842 DUALCASE=1; export DUALCASE # for MKS sh
26843 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26844 emulate sh
26845 NULLCMD=:
26846 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26847 # is contrary to our usage. Disable this feature.
26848 alias -g '${1+"$@"}'='"$@"'
26849 setopt NO_GLOB_SUBST
26850 else
26851 case `(set -o) 2>/dev/null` in
26852 *posix*) set -o posix ;;
26853 esac
26860 # PATH needs CR
26861 # Avoid depending upon Character Ranges.
26862 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26863 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26864 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26865 as_cr_digits='0123456789'
26866 as_cr_alnum=$as_cr_Letters$as_cr_digits
26868 # The user is always right.
26869 if test "${PATH_SEPARATOR+set}" != set; then
26870 echo "#! /bin/sh" >conf$$.sh
26871 echo "exit 0" >>conf$$.sh
26872 chmod +x conf$$.sh
26873 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26874 PATH_SEPARATOR=';'
26875 else
26876 PATH_SEPARATOR=:
26878 rm -f conf$$.sh
26881 # Support unset when possible.
26882 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26883 as_unset=unset
26884 else
26885 as_unset=false
26889 # IFS
26890 # We need space, tab and new line, in precisely that order. Quoting is
26891 # there to prevent editors from complaining about space-tab.
26892 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26893 # splitting by setting IFS to empty value.)
26894 as_nl='
26896 IFS=" "" $as_nl"
26898 # Find who we are. Look in the path if we contain no directory separator.
26899 case $0 in
26900 *[\\/]* ) as_myself=$0 ;;
26901 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26902 for as_dir in $PATH
26904 IFS=$as_save_IFS
26905 test -z "$as_dir" && as_dir=.
26906 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26907 done
26908 IFS=$as_save_IFS
26911 esac
26912 # We did not find ourselves, most probably we were run as `sh COMMAND'
26913 # in which case we are not to be found in the path.
26914 if test "x$as_myself" = x; then
26915 as_myself=$0
26917 if test ! -f "$as_myself"; then
26918 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26919 { (exit 1); exit 1; }
26922 # Work around bugs in pre-3.0 UWIN ksh.
26923 for as_var in ENV MAIL MAILPATH
26924 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26925 done
26926 PS1='$ '
26927 PS2='> '
26928 PS4='+ '
26930 # NLS nuisances.
26931 for as_var in \
26932 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26933 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26934 LC_TELEPHONE LC_TIME
26936 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26937 eval $as_var=C; export $as_var
26938 else
26939 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26941 done
26943 # Required to use basename.
26944 if expr a : '\(a\)' >/dev/null 2>&1 &&
26945 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26946 as_expr=expr
26947 else
26948 as_expr=false
26951 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26952 as_basename=basename
26953 else
26954 as_basename=false
26958 # Name of the executable.
26959 as_me=`$as_basename -- "$0" ||
26960 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26961 X"$0" : 'X\(//\)$' \| \
26962 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26963 echo X/"$0" |
26964 sed '/^.*\/\([^/][^/]*\)\/*$/{
26965 s//\1/
26968 /^X\/\(\/\/\)$/{
26969 s//\1/
26972 /^X\/\(\/\).*/{
26973 s//\1/
26976 s/.*/./; q'`
26978 # CDPATH.
26979 $as_unset CDPATH
26983 as_lineno_1=$LINENO
26984 as_lineno_2=$LINENO
26985 test "x$as_lineno_1" != "x$as_lineno_2" &&
26986 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
26988 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26989 # uniformly replaced by the line number. The first 'sed' inserts a
26990 # line-number line after each line using $LINENO; the second 'sed'
26991 # does the real work. The second script uses 'N' to pair each
26992 # line-number line with the line containing $LINENO, and appends
26993 # trailing '-' during substitution so that $LINENO is not a special
26994 # case at line end.
26995 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26996 # scripts with optimization help from Paolo Bonzini. Blame Lee
26997 # E. McMahon (1931-1989) for sed's syntax. :-)
26998 sed -n '
27000 /[$]LINENO/=
27001 ' <$as_myself |
27002 sed '
27003 s/[$]LINENO.*/&-/
27004 t lineno
27006 :lineno
27008 :loop
27009 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
27010 t loop
27011 s/-\n.*//
27012 ' >$as_me.lineno &&
27013 chmod +x "$as_me.lineno" ||
27014 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
27015 { (exit 1); exit 1; }; }
27017 # Don't try to exec as it changes $[0], causing all sort of problems
27018 # (the dirname of $[0] is not the place where we might find the
27019 # original and so on. Autoconf is especially sensitive to this).
27020 . "./$as_me.lineno"
27021 # Exit status is that of the last command.
27022 exit
27026 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27027 as_dirname=dirname
27028 else
27029 as_dirname=false
27032 ECHO_C= ECHO_N= ECHO_T=
27033 case `echo -n x` in
27034 -n*)
27035 case `echo 'x\c'` in
27036 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27037 *) ECHO_C='\c';;
27038 esac;;
27040 ECHO_N='-n';;
27041 esac
27043 if expr a : '\(a\)' >/dev/null 2>&1 &&
27044 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27045 as_expr=expr
27046 else
27047 as_expr=false
27050 rm -f conf$$ conf$$.exe conf$$.file
27051 if test -d conf$$.dir; then
27052 rm -f conf$$.dir/conf$$.file
27053 else
27054 rm -f conf$$.dir
27055 mkdir conf$$.dir
27057 echo >conf$$.file
27058 if ln -s conf$$.file conf$$ 2>/dev/null; then
27059 as_ln_s='ln -s'
27060 # ... but there are two gotchas:
27061 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27062 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27063 # In both cases, we have to default to `cp -p'.
27064 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27065 as_ln_s='cp -p'
27066 elif ln conf$$.file conf$$ 2>/dev/null; then
27067 as_ln_s=ln
27068 else
27069 as_ln_s='cp -p'
27071 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27072 rmdir conf$$.dir 2>/dev/null
27074 if mkdir -p . 2>/dev/null; then
27075 as_mkdir_p=:
27076 else
27077 test -d ./-p && rmdir ./-p
27078 as_mkdir_p=false
27081 if test -x / >/dev/null 2>&1; then
27082 as_test_x='test -x'
27083 else
27084 if ls -dL / >/dev/null 2>&1; then
27085 as_ls_L_option=L
27086 else
27087 as_ls_L_option=
27089 as_test_x='
27090 eval sh -c '\''
27091 if test -d "$1"; then
27092 test -d "$1/.";
27093 else
27094 case $1 in
27095 -*)set "./$1";;
27096 esac;
27097 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
27098 ???[sx]*):;;*)false;;esac;fi
27099 '\'' sh
27102 as_executable_p=$as_test_x
27104 # Sed expression to map a string onto a valid CPP name.
27105 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27107 # Sed expression to map a string onto a valid variable name.
27108 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27111 exec 6>&1
27113 # Save the log message, to keep $[0] and so on meaningful, and to
27114 # report actual input values of CONFIG_FILES etc. instead of their
27115 # values after options handling.
27116 ac_log="
27117 This file was extended by python $as_me 2.7, which was
27118 generated by GNU Autoconf 2.61. Invocation command line was
27120 CONFIG_FILES = $CONFIG_FILES
27121 CONFIG_HEADERS = $CONFIG_HEADERS
27122 CONFIG_LINKS = $CONFIG_LINKS
27123 CONFIG_COMMANDS = $CONFIG_COMMANDS
27124 $ $0 $@
27126 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27129 _ACEOF
27131 cat >>$CONFIG_STATUS <<_ACEOF
27132 # Files that config.status was made for.
27133 config_files="$ac_config_files"
27134 config_headers="$ac_config_headers"
27136 _ACEOF
27138 cat >>$CONFIG_STATUS <<\_ACEOF
27139 ac_cs_usage="\
27140 \`$as_me' instantiates files from templates according to the
27141 current configuration.
27143 Usage: $0 [OPTIONS] [FILE]...
27145 -h, --help print this help, then exit
27146 -V, --version print version number and configuration settings, then exit
27147 -q, --quiet do not print progress messages
27148 -d, --debug don't remove temporary files
27149 --recheck update $as_me by reconfiguring in the same conditions
27150 --file=FILE[:TEMPLATE]
27151 instantiate the configuration file FILE
27152 --header=FILE[:TEMPLATE]
27153 instantiate the configuration header FILE
27155 Configuration files:
27156 $config_files
27158 Configuration headers:
27159 $config_headers
27161 Report bugs to <bug-autoconf@gnu.org>."
27163 _ACEOF
27164 cat >>$CONFIG_STATUS <<_ACEOF
27165 ac_cs_version="\\
27166 python config.status 2.7
27167 configured by $0, generated by GNU Autoconf 2.61,
27168 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27170 Copyright (C) 2006 Free Software Foundation, Inc.
27171 This config.status script is free software; the Free Software Foundation
27172 gives unlimited permission to copy, distribute and modify it."
27174 ac_pwd='$ac_pwd'
27175 srcdir='$srcdir'
27176 INSTALL='$INSTALL'
27177 _ACEOF
27179 cat >>$CONFIG_STATUS <<\_ACEOF
27180 # If no file are specified by the user, then we need to provide default
27181 # value. By we need to know if files were specified by the user.
27182 ac_need_defaults=:
27183 while test $# != 0
27185 case $1 in
27186 --*=*)
27187 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27188 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27189 ac_shift=:
27192 ac_option=$1
27193 ac_optarg=$2
27194 ac_shift=shift
27196 esac
27198 case $ac_option in
27199 # Handling of the options.
27200 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27201 ac_cs_recheck=: ;;
27202 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27203 echo "$ac_cs_version"; exit ;;
27204 --debug | --debu | --deb | --de | --d | -d )
27205 debug=: ;;
27206 --file | --fil | --fi | --f )
27207 $ac_shift
27208 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
27209 ac_need_defaults=false;;
27210 --header | --heade | --head | --hea )
27211 $ac_shift
27212 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
27213 ac_need_defaults=false;;
27214 --he | --h)
27215 # Conflict between --help and --header
27216 { echo "$as_me: error: ambiguous option: $1
27217 Try \`$0 --help' for more information." >&2
27218 { (exit 1); exit 1; }; };;
27219 --help | --hel | -h )
27220 echo "$ac_cs_usage"; exit ;;
27221 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27222 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27223 ac_cs_silent=: ;;
27225 # This is an error.
27226 -*) { echo "$as_me: error: unrecognized option: $1
27227 Try \`$0 --help' for more information." >&2
27228 { (exit 1); exit 1; }; } ;;
27230 *) ac_config_targets="$ac_config_targets $1"
27231 ac_need_defaults=false ;;
27233 esac
27234 shift
27235 done
27237 ac_configure_extra_args=
27239 if $ac_cs_silent; then
27240 exec 6>/dev/null
27241 ac_configure_extra_args="$ac_configure_extra_args --silent"
27244 _ACEOF
27245 cat >>$CONFIG_STATUS <<_ACEOF
27246 if \$ac_cs_recheck; then
27247 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
27248 CONFIG_SHELL=$SHELL
27249 export CONFIG_SHELL
27250 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27253 _ACEOF
27254 cat >>$CONFIG_STATUS <<\_ACEOF
27255 exec 5>>config.log
27257 echo
27258 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27259 ## Running $as_me. ##
27260 _ASBOX
27261 echo "$ac_log"
27262 } >&5
27264 _ACEOF
27265 cat >>$CONFIG_STATUS <<_ACEOF
27266 _ACEOF
27268 cat >>$CONFIG_STATUS <<\_ACEOF
27270 # Handling of arguments.
27271 for ac_config_target in $ac_config_targets
27273 case $ac_config_target in
27274 "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;;
27275 "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;;
27276 "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;;
27277 "Mac/IDLE/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/IDLE/Makefile" ;;
27278 "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;;
27279 "Mac/Resources/app/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/app/Info.plist" ;;
27280 "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;;
27281 "Modules/Setup.config") CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;;
27282 "Misc/python.pc") CONFIG_FILES="$CONFIG_FILES Misc/python.pc" ;;
27284 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
27285 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27286 { (exit 1); exit 1; }; };;
27287 esac
27288 done
27291 # If the user did not use the arguments to specify the items to instantiate,
27292 # then the envvar interface is used. Set only those that are not.
27293 # We use the long form for the default assignment because of an extremely
27294 # bizarre bug on SunOS 4.1.3.
27295 if $ac_need_defaults; then
27296 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27297 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27300 # Have a temporary directory for convenience. Make it in the build tree
27301 # simply because there is no reason against having it here, and in addition,
27302 # creating and moving files from /tmp can sometimes cause problems.
27303 # Hook for its removal unless debugging.
27304 # Note that there is a small window in which the directory will not be cleaned:
27305 # after its creation but before its name has been assigned to `$tmp'.
27306 $debug ||
27308 tmp=
27309 trap 'exit_status=$?
27310 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27312 trap '{ (exit 1); exit 1; }' 1 2 13 15
27314 # Create a (secure) tmp directory for tmp files.
27317 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27318 test -n "$tmp" && test -d "$tmp"
27319 } ||
27321 tmp=./conf$$-$RANDOM
27322 (umask 077 && mkdir "$tmp")
27323 } ||
27325 echo "$me: cannot create a temporary directory in ." >&2
27326 { (exit 1); exit 1; }
27330 # Set up the sed scripts for CONFIG_FILES section.
27333 # No need to generate the scripts if there are no CONFIG_FILES.
27334 # This happens for instance when ./config.status config.h
27335 if test -n "$CONFIG_FILES"; then
27337 _ACEOF
27341 ac_delim='%!_!# '
27342 for ac_last_try in false false false false false :; do
27343 cat >conf$$subs.sed <<_ACEOF
27344 SHELL!$SHELL$ac_delim
27345 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
27346 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
27347 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
27348 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
27349 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
27350 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
27351 exec_prefix!$exec_prefix$ac_delim
27352 prefix!$prefix$ac_delim
27353 program_transform_name!$program_transform_name$ac_delim
27354 bindir!$bindir$ac_delim
27355 sbindir!$sbindir$ac_delim
27356 libexecdir!$libexecdir$ac_delim
27357 datarootdir!$datarootdir$ac_delim
27358 datadir!$datadir$ac_delim
27359 sysconfdir!$sysconfdir$ac_delim
27360 sharedstatedir!$sharedstatedir$ac_delim
27361 localstatedir!$localstatedir$ac_delim
27362 includedir!$includedir$ac_delim
27363 oldincludedir!$oldincludedir$ac_delim
27364 docdir!$docdir$ac_delim
27365 infodir!$infodir$ac_delim
27366 htmldir!$htmldir$ac_delim
27367 dvidir!$dvidir$ac_delim
27368 pdfdir!$pdfdir$ac_delim
27369 psdir!$psdir$ac_delim
27370 libdir!$libdir$ac_delim
27371 localedir!$localedir$ac_delim
27372 mandir!$mandir$ac_delim
27373 DEFS!$DEFS$ac_delim
27374 ECHO_C!$ECHO_C$ac_delim
27375 ECHO_N!$ECHO_N$ac_delim
27376 ECHO_T!$ECHO_T$ac_delim
27377 LIBS!$LIBS$ac_delim
27378 build_alias!$build_alias$ac_delim
27379 host_alias!$host_alias$ac_delim
27380 target_alias!$target_alias$ac_delim
27381 VERSION!$VERSION$ac_delim
27382 SOVERSION!$SOVERSION$ac_delim
27383 CONFIG_ARGS!$CONFIG_ARGS$ac_delim
27384 UNIVERSALSDK!$UNIVERSALSDK$ac_delim
27385 ARCH_RUN_32BIT!$ARCH_RUN_32BIT$ac_delim
27386 PYTHONFRAMEWORK!$PYTHONFRAMEWORK$ac_delim
27387 PYTHONFRAMEWORKIDENTIFIER!$PYTHONFRAMEWORKIDENTIFIER$ac_delim
27388 PYTHONFRAMEWORKDIR!$PYTHONFRAMEWORKDIR$ac_delim
27389 PYTHONFRAMEWORKPREFIX!$PYTHONFRAMEWORKPREFIX$ac_delim
27390 PYTHONFRAMEWORKINSTALLDIR!$PYTHONFRAMEWORKINSTALLDIR$ac_delim
27391 FRAMEWORKINSTALLFIRST!$FRAMEWORKINSTALLFIRST$ac_delim
27392 FRAMEWORKINSTALLLAST!$FRAMEWORKINSTALLLAST$ac_delim
27393 FRAMEWORKALTINSTALLFIRST!$FRAMEWORKALTINSTALLFIRST$ac_delim
27394 FRAMEWORKALTINSTALLLAST!$FRAMEWORKALTINSTALLLAST$ac_delim
27395 FRAMEWORKUNIXTOOLSPREFIX!$FRAMEWORKUNIXTOOLSPREFIX$ac_delim
27396 MACHDEP!$MACHDEP$ac_delim
27397 SGI_ABI!$SGI_ABI$ac_delim
27398 EXTRAPLATDIR!$EXTRAPLATDIR$ac_delim
27399 EXTRAMACHDEPPATH!$EXTRAMACHDEPPATH$ac_delim
27400 CONFIGURE_MACOSX_DEPLOYMENT_TARGET!$CONFIGURE_MACOSX_DEPLOYMENT_TARGET$ac_delim
27401 EXPORT_MACOSX_DEPLOYMENT_TARGET!$EXPORT_MACOSX_DEPLOYMENT_TARGET$ac_delim
27402 CC!$CC$ac_delim
27403 CFLAGS!$CFLAGS$ac_delim
27404 LDFLAGS!$LDFLAGS$ac_delim
27405 CPPFLAGS!$CPPFLAGS$ac_delim
27406 ac_ct_CC!$ac_ct_CC$ac_delim
27407 EXEEXT!$EXEEXT$ac_delim
27408 OBJEXT!$OBJEXT$ac_delim
27409 CXX!$CXX$ac_delim
27410 MAINCC!$MAINCC$ac_delim
27411 CPP!$CPP$ac_delim
27412 GREP!$GREP$ac_delim
27413 EGREP!$EGREP$ac_delim
27414 BUILDEXEEXT!$BUILDEXEEXT$ac_delim
27415 LIBRARY!$LIBRARY$ac_delim
27416 LDLIBRARY!$LDLIBRARY$ac_delim
27417 DLLLIBRARY!$DLLLIBRARY$ac_delim
27418 BLDLIBRARY!$BLDLIBRARY$ac_delim
27419 LDLIBRARYDIR!$LDLIBRARYDIR$ac_delim
27420 INSTSONAME!$INSTSONAME$ac_delim
27421 RUNSHARED!$RUNSHARED$ac_delim
27422 LINKCC!$LINKCC$ac_delim
27423 GNULD!$GNULD$ac_delim
27424 RANLIB!$RANLIB$ac_delim
27425 AR!$AR$ac_delim
27426 ARFLAGS!$ARFLAGS$ac_delim
27427 SVNVERSION!$SVNVERSION$ac_delim
27428 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
27429 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
27430 INSTALL_DATA!$INSTALL_DATA$ac_delim
27431 LN!$LN$ac_delim
27432 OPT!$OPT$ac_delim
27433 BASECFLAGS!$BASECFLAGS$ac_delim
27434 UNIVERSAL_ARCH_FLAGS!$UNIVERSAL_ARCH_FLAGS$ac_delim
27435 OTHER_LIBTOOL_OPT!$OTHER_LIBTOOL_OPT$ac_delim
27436 LIBTOOL_CRUFT!$LIBTOOL_CRUFT$ac_delim
27437 SO!$SO$ac_delim
27438 LDSHARED!$LDSHARED$ac_delim
27439 BLDSHARED!$BLDSHARED$ac_delim
27440 CCSHARED!$CCSHARED$ac_delim
27441 _ACEOF
27443 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
27444 break
27445 elif $ac_last_try; then
27446 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27447 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27448 { (exit 1); exit 1; }; }
27449 else
27450 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27452 done
27454 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27455 if test -n "$ac_eof"; then
27456 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27457 ac_eof=`expr $ac_eof + 1`
27460 cat >>$CONFIG_STATUS <<_ACEOF
27461 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
27462 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27463 _ACEOF
27464 sed '
27465 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27466 s/^/s,@/; s/!/@,|#_!!_#|/
27469 s/'"$ac_delim"'$/,g/; t
27470 s/$/\\/; p
27471 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27472 ' >>$CONFIG_STATUS <conf$$subs.sed
27473 rm -f conf$$subs.sed
27474 cat >>$CONFIG_STATUS <<_ACEOF
27475 CEOF$ac_eof
27476 _ACEOF
27479 ac_delim='%!_!# '
27480 for ac_last_try in false false false false false :; do
27481 cat >conf$$subs.sed <<_ACEOF
27482 LINKFORSHARED!$LINKFORSHARED$ac_delim
27483 CFLAGSFORSHARED!$CFLAGSFORSHARED$ac_delim
27484 SHLIBS!$SHLIBS$ac_delim
27485 USE_SIGNAL_MODULE!$USE_SIGNAL_MODULE$ac_delim
27486 SIGNAL_OBJS!$SIGNAL_OBJS$ac_delim
27487 USE_THREAD_MODULE!$USE_THREAD_MODULE$ac_delim
27488 LDLAST!$LDLAST$ac_delim
27489 THREADOBJ!$THREADOBJ$ac_delim
27490 DLINCLDIR!$DLINCLDIR$ac_delim
27491 DYNLOADFILE!$DYNLOADFILE$ac_delim
27492 MACHDEP_OBJS!$MACHDEP_OBJS$ac_delim
27493 TRUE!$TRUE$ac_delim
27494 LIBOBJS!$LIBOBJS$ac_delim
27495 HAVE_GETHOSTBYNAME_R_6_ARG!$HAVE_GETHOSTBYNAME_R_6_ARG$ac_delim
27496 HAVE_GETHOSTBYNAME_R_5_ARG!$HAVE_GETHOSTBYNAME_R_5_ARG$ac_delim
27497 HAVE_GETHOSTBYNAME_R_3_ARG!$HAVE_GETHOSTBYNAME_R_3_ARG$ac_delim
27498 HAVE_GETHOSTBYNAME_R!$HAVE_GETHOSTBYNAME_R$ac_delim
27499 HAVE_GETHOSTBYNAME!$HAVE_GETHOSTBYNAME$ac_delim
27500 LIBM!$LIBM$ac_delim
27501 LIBC!$LIBC$ac_delim
27502 UNICODE_OBJS!$UNICODE_OBJS$ac_delim
27503 THREADHEADERS!$THREADHEADERS$ac_delim
27504 SRCDIRS!$SRCDIRS$ac_delim
27505 LTLIBOBJS!$LTLIBOBJS$ac_delim
27506 _ACEOF
27508 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 24; then
27509 break
27510 elif $ac_last_try; then
27511 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27512 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27513 { (exit 1); exit 1; }; }
27514 else
27515 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27517 done
27519 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27520 if test -n "$ac_eof"; then
27521 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27522 ac_eof=`expr $ac_eof + 1`
27525 cat >>$CONFIG_STATUS <<_ACEOF
27526 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
27527 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
27528 _ACEOF
27529 sed '
27530 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27531 s/^/s,@/; s/!/@,|#_!!_#|/
27534 s/'"$ac_delim"'$/,g/; t
27535 s/$/\\/; p
27536 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27537 ' >>$CONFIG_STATUS <conf$$subs.sed
27538 rm -f conf$$subs.sed
27539 cat >>$CONFIG_STATUS <<_ACEOF
27540 :end
27541 s/|#_!!_#|//g
27542 CEOF$ac_eof
27543 _ACEOF
27546 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27547 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27548 # trailing colons and then remove the whole line if VPATH becomes empty
27549 # (actually we leave an empty line to preserve line numbers).
27550 if test "x$srcdir" = x.; then
27551 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27552 s/:*\$(srcdir):*/:/
27553 s/:*\${srcdir}:*/:/
27554 s/:*@srcdir@:*/:/
27555 s/^\([^=]*=[ ]*\):*/\1/
27556 s/:*$//
27557 s/^[^=]*=[ ]*$//
27561 cat >>$CONFIG_STATUS <<\_ACEOF
27562 fi # test -n "$CONFIG_FILES"
27565 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
27567 case $ac_tag in
27568 :[FHLC]) ac_mode=$ac_tag; continue;;
27569 esac
27570 case $ac_mode$ac_tag in
27571 :[FHL]*:*);;
27572 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
27573 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
27574 { (exit 1); exit 1; }; };;
27575 :[FH]-) ac_tag=-:-;;
27576 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27577 esac
27578 ac_save_IFS=$IFS
27579 IFS=:
27580 set x $ac_tag
27581 IFS=$ac_save_IFS
27582 shift
27583 ac_file=$1
27584 shift
27586 case $ac_mode in
27587 :L) ac_source=$1;;
27588 :[FH])
27589 ac_file_inputs=
27590 for ac_f
27592 case $ac_f in
27593 -) ac_f="$tmp/stdin";;
27594 *) # Look for the file first in the build tree, then in the source tree
27595 # (if the path is not absolute). The absolute path cannot be DOS-style,
27596 # because $ac_f cannot contain `:'.
27597 test -f "$ac_f" ||
27598 case $ac_f in
27599 [\\/$]*) false;;
27600 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27601 esac ||
27602 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27603 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27604 { (exit 1); exit 1; }; };;
27605 esac
27606 ac_file_inputs="$ac_file_inputs $ac_f"
27607 done
27609 # Let's still pretend it is `configure' which instantiates (i.e., don't
27610 # use $as_me), people would be surprised to read:
27611 # /* config.h. Generated by config.status. */
27612 configure_input="Generated from "`IFS=:
27613 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
27614 if test x"$ac_file" != x-; then
27615 configure_input="$ac_file. $configure_input"
27616 { echo "$as_me:$LINENO: creating $ac_file" >&5
27617 echo "$as_me: creating $ac_file" >&6;}
27620 case $ac_tag in
27621 *:-:* | *:-) cat >"$tmp/stdin";;
27622 esac
27624 esac
27626 ac_dir=`$as_dirname -- "$ac_file" ||
27627 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27628 X"$ac_file" : 'X\(//\)[^/]' \| \
27629 X"$ac_file" : 'X\(//\)$' \| \
27630 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27631 echo X"$ac_file" |
27632 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27633 s//\1/
27636 /^X\(\/\/\)[^/].*/{
27637 s//\1/
27640 /^X\(\/\/\)$/{
27641 s//\1/
27644 /^X\(\/\).*/{
27645 s//\1/
27648 s/.*/./; q'`
27649 { as_dir="$ac_dir"
27650 case $as_dir in #(
27651 -*) as_dir=./$as_dir;;
27652 esac
27653 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27654 as_dirs=
27655 while :; do
27656 case $as_dir in #(
27657 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27658 *) as_qdir=$as_dir;;
27659 esac
27660 as_dirs="'$as_qdir' $as_dirs"
27661 as_dir=`$as_dirname -- "$as_dir" ||
27662 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27663 X"$as_dir" : 'X\(//\)[^/]' \| \
27664 X"$as_dir" : 'X\(//\)$' \| \
27665 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27666 echo X"$as_dir" |
27667 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27668 s//\1/
27671 /^X\(\/\/\)[^/].*/{
27672 s//\1/
27675 /^X\(\/\/\)$/{
27676 s//\1/
27679 /^X\(\/\).*/{
27680 s//\1/
27683 s/.*/./; q'`
27684 test -d "$as_dir" && break
27685 done
27686 test -z "$as_dirs" || eval "mkdir $as_dirs"
27687 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27688 echo "$as_me: error: cannot create directory $as_dir" >&2;}
27689 { (exit 1); exit 1; }; }; }
27690 ac_builddir=.
27692 case "$ac_dir" in
27693 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27695 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27696 # A ".." for each directory in $ac_dir_suffix.
27697 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
27698 case $ac_top_builddir_sub in
27699 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27700 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27701 esac ;;
27702 esac
27703 ac_abs_top_builddir=$ac_pwd
27704 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27705 # for backward compatibility:
27706 ac_top_builddir=$ac_top_build_prefix
27708 case $srcdir in
27709 .) # We are building in place.
27710 ac_srcdir=.
27711 ac_top_srcdir=$ac_top_builddir_sub
27712 ac_abs_top_srcdir=$ac_pwd ;;
27713 [\\/]* | ?:[\\/]* ) # Absolute name.
27714 ac_srcdir=$srcdir$ac_dir_suffix;
27715 ac_top_srcdir=$srcdir
27716 ac_abs_top_srcdir=$srcdir ;;
27717 *) # Relative name.
27718 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27719 ac_top_srcdir=$ac_top_build_prefix$srcdir
27720 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27721 esac
27722 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27725 case $ac_mode in
27728 # CONFIG_FILE
27731 case $INSTALL in
27732 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27733 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27734 esac
27735 _ACEOF
27737 cat >>$CONFIG_STATUS <<\_ACEOF
27738 # If the template does not know about datarootdir, expand it.
27739 # FIXME: This hack should be removed a few years after 2.60.
27740 ac_datarootdir_hack=; ac_datarootdir_seen=
27742 case `sed -n '/datarootdir/ {
27746 /@datadir@/p
27747 /@docdir@/p
27748 /@infodir@/p
27749 /@localedir@/p
27750 /@mandir@/p
27751 ' $ac_file_inputs` in
27752 *datarootdir*) ac_datarootdir_seen=yes;;
27753 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27754 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27755 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27756 _ACEOF
27757 cat >>$CONFIG_STATUS <<_ACEOF
27758 ac_datarootdir_hack='
27759 s&@datadir@&$datadir&g
27760 s&@docdir@&$docdir&g
27761 s&@infodir@&$infodir&g
27762 s&@localedir@&$localedir&g
27763 s&@mandir@&$mandir&g
27764 s&\\\${datarootdir}&$datarootdir&g' ;;
27765 esac
27766 _ACEOF
27768 # Neutralize VPATH when `$srcdir' = `.'.
27769 # Shell code in configure.ac might set extrasub.
27770 # FIXME: do we really want to maintain this feature?
27771 cat >>$CONFIG_STATUS <<_ACEOF
27772 sed "$ac_vpsub
27773 $extrasub
27774 _ACEOF
27775 cat >>$CONFIG_STATUS <<\_ACEOF
27777 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27778 s&@configure_input@&$configure_input&;t t
27779 s&@top_builddir@&$ac_top_builddir_sub&;t t
27780 s&@srcdir@&$ac_srcdir&;t t
27781 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27782 s&@top_srcdir@&$ac_top_srcdir&;t t
27783 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27784 s&@builddir@&$ac_builddir&;t t
27785 s&@abs_builddir@&$ac_abs_builddir&;t t
27786 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27787 s&@INSTALL@&$ac_INSTALL&;t t
27788 $ac_datarootdir_hack
27789 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
27791 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27792 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27793 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27794 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27795 which seems to be undefined. Please make sure it is defined." >&5
27796 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27797 which seems to be undefined. Please make sure it is defined." >&2;}
27799 rm -f "$tmp/stdin"
27800 case $ac_file in
27801 -) cat "$tmp/out"; rm -f "$tmp/out";;
27802 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
27803 esac
27807 # CONFIG_HEADER
27809 _ACEOF
27811 # Transform confdefs.h into a sed script `conftest.defines', that
27812 # substitutes the proper values into config.h.in to produce config.h.
27813 rm -f conftest.defines conftest.tail
27814 # First, append a space to every undef/define line, to ease matching.
27815 echo 's/$/ /' >conftest.defines
27816 # Then, protect against being on the right side of a sed subst, or in
27817 # an unquoted here document, in config.status. If some macros were
27818 # called several times there might be several #defines for the same
27819 # symbol, which is useless. But do not sort them, since the last
27820 # AC_DEFINE must be honored.
27821 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27822 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
27823 # NAME is the cpp macro being defined, VALUE is the value it is being given.
27824 # PARAMS is the parameter list in the macro definition--in most cases, it's
27825 # just an empty string.
27826 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
27827 ac_dB='\\)[ (].*,\\1define\\2'
27828 ac_dC=' '
27829 ac_dD=' ,'
27831 uniq confdefs.h |
27832 sed -n '
27833 t rset
27834 :rset
27835 s/^[ ]*#[ ]*define[ ][ ]*//
27836 t ok
27839 s/[\\&,]/\\&/g
27840 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
27841 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
27842 ' >>conftest.defines
27844 # Remove the space that was appended to ease matching.
27845 # Then replace #undef with comments. This is necessary, for
27846 # example, in the case of _POSIX_SOURCE, which is predefined and required
27847 # on some systems where configure will not decide to define it.
27848 # (The regexp can be short, since the line contains either #define or #undef.)
27849 echo 's/ $//
27850 s,^[ #]*u.*,/* & */,' >>conftest.defines
27852 # Break up conftest.defines:
27853 ac_max_sed_lines=50
27855 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
27856 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
27857 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
27858 # et cetera.
27859 ac_in='$ac_file_inputs'
27860 ac_out='"$tmp/out1"'
27861 ac_nxt='"$tmp/out2"'
27863 while :
27865 # Write a here document:
27866 cat >>$CONFIG_STATUS <<_ACEOF
27867 # First, check the format of the line:
27868 cat >"\$tmp/defines.sed" <<\\CEOF
27869 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
27870 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
27872 :def
27873 _ACEOF
27874 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
27875 echo 'CEOF
27876 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
27877 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
27878 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
27879 grep . conftest.tail >/dev/null || break
27880 rm -f conftest.defines
27881 mv conftest.tail conftest.defines
27882 done
27883 rm -f conftest.defines conftest.tail
27885 echo "ac_result=$ac_in" >>$CONFIG_STATUS
27886 cat >>$CONFIG_STATUS <<\_ACEOF
27887 if test x"$ac_file" != x-; then
27888 echo "/* $configure_input */" >"$tmp/config.h"
27889 cat "$ac_result" >>"$tmp/config.h"
27890 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
27891 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27892 echo "$as_me: $ac_file is unchanged" >&6;}
27893 else
27894 rm -f $ac_file
27895 mv "$tmp/config.h" $ac_file
27897 else
27898 echo "/* $configure_input */"
27899 cat "$ac_result"
27901 rm -f "$tmp/out12"
27905 esac
27907 done # for ac_tag
27910 { (exit 0); exit 0; }
27911 _ACEOF
27912 chmod +x $CONFIG_STATUS
27913 ac_clean_files=$ac_clean_files_save
27916 # configure is writing to config.log, and then calls config.status.
27917 # config.status does its own redirection, appending to config.log.
27918 # Unfortunately, on DOS this fails, as config.log is still kept open
27919 # by configure, so config.status won't be able to write to it; its
27920 # output is simply discarded. So we exec the FD to /dev/null,
27921 # effectively closing config.log, so it can be properly (re)opened and
27922 # appended to by config.status. When coming back to configure, we
27923 # need to make the FD available again.
27924 if test "$no_create" != yes; then
27925 ac_cs_success=:
27926 ac_config_status_args=
27927 test "$silent" = yes &&
27928 ac_config_status_args="$ac_config_status_args --quiet"
27929 exec 5>/dev/null
27930 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27931 exec 5>>config.log
27932 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27933 # would make configure fail if this is the last instruction.
27934 $ac_cs_success || { (exit 1); exit 1; }
27938 echo "creating Modules/Setup"
27939 if test ! -f Modules/Setup
27940 then
27941 cp $srcdir/Modules/Setup.dist Modules/Setup
27944 echo "creating Modules/Setup.local"
27945 if test ! -f Modules/Setup.local
27946 then
27947 echo "# Edit this file for local setup changes" >Modules/Setup.local
27950 echo "creating Makefile"
27951 $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \
27952 -s Modules Modules/Setup.config \
27953 Modules/Setup.local Modules/Setup
27955 case $ac_sys_system in
27956 BeOS)
27957 { echo "$as_me:$LINENO: WARNING:
27959 Support for BeOS is deprecated as of Python 2.6.
27960 See PEP 11 for the gory details.
27961 " >&5
27962 echo "$as_me: WARNING:
27964 Support for BeOS is deprecated as of Python 2.6.
27965 See PEP 11 for the gory details.
27966 " >&2;}
27968 *) ;;
27969 esac
27971 mv config.c Modules