Acknowledge Ned Deily (extensive bug hunting and testing on OS X)
[python.git] / configure
blob82f60bec2f0483eeafc12ec652b4626f1a187521
1 #! /bin/sh
2 # From configure.in Revision: 74978 .
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"
1926 if test "${enable_universalsdk}" ; then
1928 else
1929 { { echo "$as_me:$LINENO: error: --with-universal-archs without --enable-universalsdk. See Mac/README" >&5
1930 echo "$as_me: error: --with-universal-archs without --enable-universalsdk. See Mac/README" >&2;}
1931 { (exit 1); exit 1; }; }
1934 else
1936 { echo "$as_me:$LINENO: result: 32-bit" >&5
1937 echo "${ECHO_T}32-bit" >&6; }
1945 # Check whether --with-framework-name was given.
1946 if test "${with_framework_name+set}" = set; then
1947 withval=$with_framework_name;
1948 if test "${enable_framework}"; then
1950 else
1951 { { echo "$as_me:$LINENO: error: --with-framework-name without --enable-framework. See Mac/README" >&5
1952 echo "$as_me: error: --with-framework-name without --enable-framework. See Mac/README" >&2;}
1953 { (exit 1); exit 1; }; }
1955 PYTHONFRAMEWORK=${withval}
1956 PYTHONFRAMEWORKDIR=${withval}.framework
1957 PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'`
1959 else
1961 PYTHONFRAMEWORK=Python
1962 PYTHONFRAMEWORKDIR=Python.framework
1963 PYTHONFRAMEWORKIDENTIFIER=org.python.python
1967 # Check whether --enable-framework was given.
1968 if test "${enable_framework+set}" = set; then
1969 enableval=$enable_framework;
1970 case $enableval in
1971 yes)
1972 enableval=/Library/Frameworks
1973 esac
1974 case $enableval in
1976 PYTHONFRAMEWORK=
1977 PYTHONFRAMEWORKDIR=no-framework
1978 PYTHONFRAMEWORKPREFIX=
1979 PYTHONFRAMEWORKINSTALLDIR=
1980 FRAMEWORKINSTALLFIRST=
1981 FRAMEWORKINSTALLLAST=
1982 FRAMEWORKALTINSTALLFIRST=
1983 FRAMEWORKALTINSTALLLAST=
1984 if test "x${prefix}" = "xNONE"; then
1985 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1986 else
1987 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1989 enable_framework=
1992 PYTHONFRAMEWORKPREFIX=$enableval
1993 PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
1994 FRAMEWORKINSTALLFIRST="frameworkinstallstructure"
1995 FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure bininstall maninstall"
1996 if test "$UNIVERSAL_ARCHS" = "all"
1997 then
1998 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkinstallunixtools4way"
1999 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkaltinstallunixtools4way"
2000 else
2001 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools"
2002 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools"
2005 if test "x${prefix}" = "xNONE" ; then
2006 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
2007 else
2008 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
2010 prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
2012 # Add files for Mac specific code to the list of output
2013 # files:
2014 ac_config_files="$ac_config_files Mac/Makefile"
2016 ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile"
2018 ac_config_files="$ac_config_files Mac/IDLE/Makefile"
2020 ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist"
2022 ac_config_files="$ac_config_files Mac/Resources/app/Info.plist"
2024 esac
2026 else
2028 PYTHONFRAMEWORK=
2029 PYTHONFRAMEWORKDIR=no-framework
2030 PYTHONFRAMEWORKPREFIX=
2031 PYTHONFRAMEWORKINSTALLDIR=
2032 FRAMEWORKINSTALLFIRST=
2033 FRAMEWORKINSTALLLAST=
2034 FRAMEWORKALTINSTALLFIRST=
2035 FRAMEWORKALTINSTALLLAST=
2036 if test "x${prefix}" = "xNONE" ; then
2037 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
2038 else
2039 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
2041 enable_framework=
2043 if test "$UNIVERSAL_ARCHS" = "all"
2044 then
2045 FRAMEWORKINSTALLLAST=update4wayuniversal
2046 FRAMEWORKALTINSTALLLAST=update4wayuniversal
2062 ##AC_ARG_WITH(dyld,
2063 ## AC_HELP_STRING(--with-dyld,
2064 ## Use (OpenStep|Rhapsody) dynamic linker))
2066 # Set name for machine-dependent library files
2068 { echo "$as_me:$LINENO: checking MACHDEP" >&5
2069 echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6; }
2070 if test -z "$MACHDEP"
2071 then
2072 ac_sys_system=`uname -s`
2073 if test "$ac_sys_system" = "AIX" \
2074 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
2075 ac_sys_release=`uname -v`
2076 else
2077 ac_sys_release=`uname -r`
2079 ac_md_system=`echo $ac_sys_system |
2080 tr -d '/ ' | tr '[A-Z]' '[a-z]'`
2081 ac_md_release=`echo $ac_sys_release |
2082 tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'`
2083 MACHDEP="$ac_md_system$ac_md_release"
2085 case $MACHDEP in
2086 cygwin*) MACHDEP="cygwin";;
2087 darwin*) MACHDEP="darwin";;
2088 atheos*) MACHDEP="atheos";;
2089 irix646) MACHDEP="irix6";;
2090 '') MACHDEP="unknown";;
2091 esac
2094 # Some systems cannot stand _XOPEN_SOURCE being defined at all; they
2095 # disable features if it is defined, without any means to access these
2096 # features as extensions. For these systems, we skip the definition of
2097 # _XOPEN_SOURCE. Before adding a system to the list to gain access to
2098 # some feature, make sure there is no alternative way to access this
2099 # feature. Also, when using wildcards, make sure you have verified the
2100 # need for not defining _XOPEN_SOURCE on all systems matching the
2101 # wildcard, and that the wildcard does not include future systems
2102 # (which may remove their limitations).
2103 case $ac_sys_system/$ac_sys_release in
2104 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
2105 # even though select is a POSIX function. Reported by J. Ribbens.
2106 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
2107 OpenBSD/2.* | OpenBSD/3.[0123456789] | OpenBSD/4.[0123])
2108 define_xopen_source=no
2109 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
2110 # also defined. This can be overridden by defining _BSD_SOURCE
2111 # As this has a different meaning on Linux, only define it on OpenBSD
2113 cat >>confdefs.h <<\_ACEOF
2114 #define _BSD_SOURCE 1
2115 _ACEOF
2118 # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of
2119 # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by
2120 # Marc Recht
2121 NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6[A-S])
2122 define_xopen_source=no;;
2123 # On Solaris 2.6, sys/wait.h is inconsistent in the usage
2124 # of union __?sigval. Reported by Stuart Bishop.
2125 SunOS/5.6)
2126 define_xopen_source=no;;
2127 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
2128 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
2129 # Reconfirmed for 7.1.4 by Martin v. Loewis.
2130 OpenUNIX/8.0.0| UnixWare/7.1.[0-4])
2131 define_xopen_source=no;;
2132 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
2133 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
2134 SCO_SV/3.2)
2135 define_xopen_source=no;;
2136 # On FreeBSD 4, the math functions C89 does not cover are never defined
2137 # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them.
2138 FreeBSD/4.*)
2139 define_xopen_source=no;;
2140 # On MacOS X 10.2, a bug in ncurses.h means that it craps out if
2141 # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which
2142 # identifies itself as Darwin/7.*
2143 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2144 # disables platform specific features beyond repair.
2145 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2146 # has no effect, don't bother defining them
2147 Darwin/[6789].*)
2148 define_xopen_source=no;;
2149 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
2150 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
2151 # or has another value. By not (re)defining it, the defaults come in place.
2152 AIX/4)
2153 define_xopen_source=no;;
2154 AIX/5)
2155 if test `uname -r` -eq 1; then
2156 define_xopen_source=no
2159 # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from
2160 # defining NI_NUMERICHOST.
2161 QNX/6.3.2)
2162 define_xopen_source=no
2165 esac
2167 if test $define_xopen_source = yes
2168 then
2169 # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be
2170 # defined precisely as g++ defines it
2171 # Furthermore, on Solaris 10, XPG6 requires the use of a C99
2172 # compiler
2173 case $ac_sys_system/$ac_sys_release in
2174 SunOS/5.8|SunOS/5.9|SunOS/5.10)
2176 cat >>confdefs.h <<\_ACEOF
2177 #define _XOPEN_SOURCE 500
2178 _ACEOF
2183 cat >>confdefs.h <<\_ACEOF
2184 #define _XOPEN_SOURCE 600
2185 _ACEOF
2188 esac
2190 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
2191 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
2192 # several APIs are not declared. Since this is also needed in some
2193 # cases for HP-UX, we define it globally.
2194 # except for Solaris 10, where it must not be defined,
2195 # as it implies XPG4.2
2196 case $ac_sys_system/$ac_sys_release in
2197 SunOS/5.10)
2201 cat >>confdefs.h <<\_ACEOF
2202 #define _XOPEN_SOURCE_EXTENDED 1
2203 _ACEOF
2206 esac
2209 cat >>confdefs.h <<\_ACEOF
2210 #define _POSIX_C_SOURCE 200112L
2211 _ACEOF
2217 # SGI compilers allow the specification of the both the ABI and the
2218 # ISA on the command line. Depending on the values of these switches,
2219 # different and often incompatable code will be generated.
2221 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
2222 # thus supply support for various ABI/ISA combinations. The MACHDEP
2223 # variable is also adjusted.
2226 if test ! -z "$SGI_ABI"
2227 then
2228 CC="cc $SGI_ABI"
2229 LDFLAGS="$SGI_ABI $LDFLAGS"
2230 MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'`
2232 { echo "$as_me:$LINENO: result: $MACHDEP" >&5
2233 echo "${ECHO_T}$MACHDEP" >&6; }
2235 # And add extra plat-mac for darwin
2238 { echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5
2239 echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6; }
2240 if test -z "$EXTRAPLATDIR"
2241 then
2242 case $MACHDEP in
2243 darwin)
2244 EXTRAPLATDIR="\$(PLATMACDIRS)"
2245 EXTRAMACHDEPPATH="\$(PLATMACPATH)"
2248 EXTRAPLATDIR=""
2249 EXTRAMACHDEPPATH=""
2251 esac
2253 { echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5
2254 echo "${ECHO_T}$EXTRAPLATDIR" >&6; }
2256 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
2257 # it may influence the way we can build extensions, so distutils
2258 # needs to check it
2261 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=
2262 EXPORT_MACOSX_DEPLOYMENT_TARGET='#'
2264 { echo "$as_me:$LINENO: checking machine type as reported by uname -m" >&5
2265 echo $ECHO_N "checking machine type as reported by uname -m... $ECHO_C" >&6; }
2266 ac_sys_machine=`uname -m`
2267 { echo "$as_me:$LINENO: result: $ac_sys_machine" >&5
2268 echo "${ECHO_T}$ac_sys_machine" >&6; }
2270 # checks for alternative programs
2272 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
2273 # for debug/optimization stuff. BASECFLAGS is for flags that are required
2274 # just to get things to compile and link. Users are free to override OPT
2275 # when running configure or make. The build should not break if they do.
2276 # BASECFLAGS should generally not be messed with, however.
2278 # XXX shouldn't some/most/all of this code be merged with the stuff later
2279 # on that fiddles with OPT and BASECFLAGS?
2280 { echo "$as_me:$LINENO: checking for --without-gcc" >&5
2281 echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6; }
2283 # Check whether --with-gcc was given.
2284 if test "${with_gcc+set}" = set; then
2285 withval=$with_gcc;
2286 case $withval in
2287 no) CC=${CC:-cc}
2288 without_gcc=yes;;
2289 yes) CC=gcc
2290 without_gcc=no;;
2291 *) CC=$withval
2292 without_gcc=$withval;;
2293 esac
2294 else
2296 case $ac_sys_system in
2297 AIX*) CC=cc_r
2298 without_gcc=;;
2299 BeOS*)
2300 case $BE_HOST_CPU in
2301 ppc)
2302 CC=mwcc
2303 without_gcc=yes
2304 BASECFLAGS="$BASECFLAGS -export pragma"
2305 OPT="$OPT -O"
2306 LDFLAGS="$LDFLAGS -nodup"
2308 x86)
2309 CC=gcc
2310 without_gcc=no
2311 OPT="$OPT -O"
2314 { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5
2315 echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;}
2316 { (exit 1); exit 1; }; }
2318 esac
2319 AR="\$(srcdir)/Modules/ar_beos"
2320 RANLIB=:
2322 *) without_gcc=no;;
2323 esac
2326 { echo "$as_me:$LINENO: result: $without_gcc" >&5
2327 echo "${ECHO_T}$without_gcc" >&6; }
2329 # If the user switches compilers, we can't believe the cache
2330 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
2331 then
2332 { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
2333 (it is also a good idea to do 'make clean' before compiling)" >&5
2334 echo "$as_me: error: cached CC is different -- throw away $cache_file
2335 (it is also a good idea to do 'make clean' before compiling)" >&2;}
2336 { (exit 1); exit 1; }; }
2339 ac_ext=c
2340 ac_cpp='$CPP $CPPFLAGS'
2341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2344 if test -n "$ac_tool_prefix"; then
2345 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2346 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2347 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2349 if test "${ac_cv_prog_CC+set}" = set; then
2350 echo $ECHO_N "(cached) $ECHO_C" >&6
2351 else
2352 if test -n "$CC"; then
2353 ac_cv_prog_CC="$CC" # Let the user override the test.
2354 else
2355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2356 for as_dir in $PATH
2358 IFS=$as_save_IFS
2359 test -z "$as_dir" && as_dir=.
2360 for ac_exec_ext in '' $ac_executable_extensions; do
2361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2362 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2364 break 2
2366 done
2367 done
2368 IFS=$as_save_IFS
2372 CC=$ac_cv_prog_CC
2373 if test -n "$CC"; then
2374 { echo "$as_me:$LINENO: result: $CC" >&5
2375 echo "${ECHO_T}$CC" >&6; }
2376 else
2377 { echo "$as_me:$LINENO: result: no" >&5
2378 echo "${ECHO_T}no" >&6; }
2383 if test -z "$ac_cv_prog_CC"; then
2384 ac_ct_CC=$CC
2385 # Extract the first word of "gcc", so it can be a program name with args.
2386 set dummy gcc; ac_word=$2
2387 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2389 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2390 echo $ECHO_N "(cached) $ECHO_C" >&6
2391 else
2392 if test -n "$ac_ct_CC"; then
2393 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2394 else
2395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2396 for as_dir in $PATH
2398 IFS=$as_save_IFS
2399 test -z "$as_dir" && as_dir=.
2400 for ac_exec_ext in '' $ac_executable_extensions; do
2401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2402 ac_cv_prog_ac_ct_CC="gcc"
2403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2404 break 2
2406 done
2407 done
2408 IFS=$as_save_IFS
2412 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2413 if test -n "$ac_ct_CC"; then
2414 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2415 echo "${ECHO_T}$ac_ct_CC" >&6; }
2416 else
2417 { echo "$as_me:$LINENO: result: no" >&5
2418 echo "${ECHO_T}no" >&6; }
2421 if test "x$ac_ct_CC" = x; then
2422 CC=""
2423 else
2424 case $cross_compiling:$ac_tool_warned in
2425 yes:)
2426 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2427 whose name does not start with the host triplet. If you think this
2428 configuration is useful to you, please write to autoconf@gnu.org." >&5
2429 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2430 whose name does not start with the host triplet. If you think this
2431 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2432 ac_tool_warned=yes ;;
2433 esac
2434 CC=$ac_ct_CC
2436 else
2437 CC="$ac_cv_prog_CC"
2440 if test -z "$CC"; then
2441 if test -n "$ac_tool_prefix"; then
2442 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2443 set dummy ${ac_tool_prefix}cc; ac_word=$2
2444 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2446 if test "${ac_cv_prog_CC+set}" = set; then
2447 echo $ECHO_N "(cached) $ECHO_C" >&6
2448 else
2449 if test -n "$CC"; then
2450 ac_cv_prog_CC="$CC" # Let the user override the test.
2451 else
2452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2453 for as_dir in $PATH
2455 IFS=$as_save_IFS
2456 test -z "$as_dir" && as_dir=.
2457 for ac_exec_ext in '' $ac_executable_extensions; do
2458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2459 ac_cv_prog_CC="${ac_tool_prefix}cc"
2460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2461 break 2
2463 done
2464 done
2465 IFS=$as_save_IFS
2469 CC=$ac_cv_prog_CC
2470 if test -n "$CC"; then
2471 { echo "$as_me:$LINENO: result: $CC" >&5
2472 echo "${ECHO_T}$CC" >&6; }
2473 else
2474 { echo "$as_me:$LINENO: result: no" >&5
2475 echo "${ECHO_T}no" >&6; }
2481 if test -z "$CC"; then
2482 # Extract the first word of "cc", so it can be a program name with args.
2483 set dummy cc; ac_word=$2
2484 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2486 if test "${ac_cv_prog_CC+set}" = set; then
2487 echo $ECHO_N "(cached) $ECHO_C" >&6
2488 else
2489 if test -n "$CC"; then
2490 ac_cv_prog_CC="$CC" # Let the user override the test.
2491 else
2492 ac_prog_rejected=no
2493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2494 for as_dir in $PATH
2496 IFS=$as_save_IFS
2497 test -z "$as_dir" && as_dir=.
2498 for ac_exec_ext in '' $ac_executable_extensions; do
2499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2500 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2501 ac_prog_rejected=yes
2502 continue
2504 ac_cv_prog_CC="cc"
2505 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2506 break 2
2508 done
2509 done
2510 IFS=$as_save_IFS
2512 if test $ac_prog_rejected = yes; then
2513 # We found a bogon in the path, so make sure we never use it.
2514 set dummy $ac_cv_prog_CC
2515 shift
2516 if test $# != 0; then
2517 # We chose a different compiler from the bogus one.
2518 # However, it has the same basename, so the bogon will be chosen
2519 # first if we set CC to just the basename; use the full file name.
2520 shift
2521 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2526 CC=$ac_cv_prog_CC
2527 if test -n "$CC"; then
2528 { echo "$as_me:$LINENO: result: $CC" >&5
2529 echo "${ECHO_T}$CC" >&6; }
2530 else
2531 { echo "$as_me:$LINENO: result: no" >&5
2532 echo "${ECHO_T}no" >&6; }
2537 if test -z "$CC"; then
2538 if test -n "$ac_tool_prefix"; then
2539 for ac_prog in cl.exe
2541 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2542 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2543 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2544 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2545 if test "${ac_cv_prog_CC+set}" = set; then
2546 echo $ECHO_N "(cached) $ECHO_C" >&6
2547 else
2548 if test -n "$CC"; then
2549 ac_cv_prog_CC="$CC" # Let the user override the test.
2550 else
2551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2552 for as_dir in $PATH
2554 IFS=$as_save_IFS
2555 test -z "$as_dir" && as_dir=.
2556 for ac_exec_ext in '' $ac_executable_extensions; do
2557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2558 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2560 break 2
2562 done
2563 done
2564 IFS=$as_save_IFS
2568 CC=$ac_cv_prog_CC
2569 if test -n "$CC"; then
2570 { echo "$as_me:$LINENO: result: $CC" >&5
2571 echo "${ECHO_T}$CC" >&6; }
2572 else
2573 { echo "$as_me:$LINENO: result: no" >&5
2574 echo "${ECHO_T}no" >&6; }
2578 test -n "$CC" && break
2579 done
2581 if test -z "$CC"; then
2582 ac_ct_CC=$CC
2583 for ac_prog in cl.exe
2585 # Extract the first word of "$ac_prog", so it can be a program name with args.
2586 set dummy $ac_prog; ac_word=$2
2587 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2589 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2590 echo $ECHO_N "(cached) $ECHO_C" >&6
2591 else
2592 if test -n "$ac_ct_CC"; then
2593 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2594 else
2595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2596 for as_dir in $PATH
2598 IFS=$as_save_IFS
2599 test -z "$as_dir" && as_dir=.
2600 for ac_exec_ext in '' $ac_executable_extensions; do
2601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2602 ac_cv_prog_ac_ct_CC="$ac_prog"
2603 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2604 break 2
2606 done
2607 done
2608 IFS=$as_save_IFS
2612 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2613 if test -n "$ac_ct_CC"; then
2614 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2615 echo "${ECHO_T}$ac_ct_CC" >&6; }
2616 else
2617 { echo "$as_me:$LINENO: result: no" >&5
2618 echo "${ECHO_T}no" >&6; }
2622 test -n "$ac_ct_CC" && break
2623 done
2625 if test "x$ac_ct_CC" = x; then
2626 CC=""
2627 else
2628 case $cross_compiling:$ac_tool_warned in
2629 yes:)
2630 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2631 whose name does not start with the host triplet. If you think this
2632 configuration is useful to you, please write to autoconf@gnu.org." >&5
2633 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2634 whose name does not start with the host triplet. If you think this
2635 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2636 ac_tool_warned=yes ;;
2637 esac
2638 CC=$ac_ct_CC
2645 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2646 See \`config.log' for more details." >&5
2647 echo "$as_me: error: no acceptable C compiler found in \$PATH
2648 See \`config.log' for more details." >&2;}
2649 { (exit 1); exit 1; }; }
2651 # Provide some information about the compiler.
2652 echo "$as_me:$LINENO: checking for C compiler version" >&5
2653 ac_compiler=`set X $ac_compile; echo $2`
2654 { (ac_try="$ac_compiler --version >&5"
2655 case "(($ac_try" in
2656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2657 *) ac_try_echo=$ac_try;;
2658 esac
2659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2660 (eval "$ac_compiler --version >&5") 2>&5
2661 ac_status=$?
2662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2663 (exit $ac_status); }
2664 { (ac_try="$ac_compiler -v >&5"
2665 case "(($ac_try" in
2666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2667 *) ac_try_echo=$ac_try;;
2668 esac
2669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2670 (eval "$ac_compiler -v >&5") 2>&5
2671 ac_status=$?
2672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673 (exit $ac_status); }
2674 { (ac_try="$ac_compiler -V >&5"
2675 case "(($ac_try" in
2676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2677 *) ac_try_echo=$ac_try;;
2678 esac
2679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2680 (eval "$ac_compiler -V >&5") 2>&5
2681 ac_status=$?
2682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2683 (exit $ac_status); }
2685 cat >conftest.$ac_ext <<_ACEOF
2686 /* confdefs.h. */
2687 _ACEOF
2688 cat confdefs.h >>conftest.$ac_ext
2689 cat >>conftest.$ac_ext <<_ACEOF
2690 /* end confdefs.h. */
2693 main ()
2697 return 0;
2699 _ACEOF
2700 ac_clean_files_save=$ac_clean_files
2701 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2702 # Try to create an executable without -o first, disregard a.out.
2703 # It will help us diagnose broken compilers, and finding out an intuition
2704 # of exeext.
2705 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2706 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2707 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2709 # List of possible output files, starting from the most likely.
2710 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2711 # only as a last resort. b.out is created by i960 compilers.
2712 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2714 # The IRIX 6 linker writes into existing files which may not be
2715 # executable, retaining their permissions. Remove them first so a
2716 # subsequent execution test works.
2717 ac_rmfiles=
2718 for ac_file in $ac_files
2720 case $ac_file in
2721 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2722 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2723 esac
2724 done
2725 rm -f $ac_rmfiles
2727 if { (ac_try="$ac_link_default"
2728 case "(($ac_try" in
2729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2730 *) ac_try_echo=$ac_try;;
2731 esac
2732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2733 (eval "$ac_link_default") 2>&5
2734 ac_status=$?
2735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2736 (exit $ac_status); }; then
2737 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2738 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2739 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2740 # so that the user can short-circuit this test for compilers unknown to
2741 # Autoconf.
2742 for ac_file in $ac_files ''
2744 test -f "$ac_file" || continue
2745 case $ac_file in
2746 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2748 [ab].out )
2749 # We found the default executable, but exeext='' is most
2750 # certainly right.
2751 break;;
2752 *.* )
2753 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2754 then :; else
2755 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2757 # We set ac_cv_exeext here because the later test for it is not
2758 # safe: cross compilers may not add the suffix if given an `-o'
2759 # argument, so we may need to know it at that point already.
2760 # Even if this section looks crufty: it has the advantage of
2761 # actually working.
2762 break;;
2764 break;;
2765 esac
2766 done
2767 test "$ac_cv_exeext" = no && ac_cv_exeext=
2769 else
2770 ac_file=''
2773 { echo "$as_me:$LINENO: result: $ac_file" >&5
2774 echo "${ECHO_T}$ac_file" >&6; }
2775 if test -z "$ac_file"; then
2776 echo "$as_me: failed program was:" >&5
2777 sed 's/^/| /' conftest.$ac_ext >&5
2779 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2780 See \`config.log' for more details." >&5
2781 echo "$as_me: error: C compiler cannot create executables
2782 See \`config.log' for more details." >&2;}
2783 { (exit 77); exit 77; }; }
2786 ac_exeext=$ac_cv_exeext
2788 # Check that the compiler produces executables we can run. If not, either
2789 # the compiler is broken, or we cross compile.
2790 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2791 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2792 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2793 # If not cross compiling, check that we can run a simple program.
2794 if test "$cross_compiling" != yes; then
2795 if { ac_try='./$ac_file'
2796 { (case "(($ac_try" in
2797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2798 *) ac_try_echo=$ac_try;;
2799 esac
2800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2801 (eval "$ac_try") 2>&5
2802 ac_status=$?
2803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804 (exit $ac_status); }; }; then
2805 cross_compiling=no
2806 else
2807 if test "$cross_compiling" = maybe; then
2808 cross_compiling=yes
2809 else
2810 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2811 If you meant to cross compile, use \`--host'.
2812 See \`config.log' for more details." >&5
2813 echo "$as_me: error: cannot run C compiled programs.
2814 If you meant to cross compile, use \`--host'.
2815 See \`config.log' for more details." >&2;}
2816 { (exit 1); exit 1; }; }
2820 { echo "$as_me:$LINENO: result: yes" >&5
2821 echo "${ECHO_T}yes" >&6; }
2823 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2824 ac_clean_files=$ac_clean_files_save
2825 # Check that the compiler produces executables we can run. If not, either
2826 # the compiler is broken, or we cross compile.
2827 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2828 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2829 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2830 echo "${ECHO_T}$cross_compiling" >&6; }
2832 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2833 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2834 if { (ac_try="$ac_link"
2835 case "(($ac_try" in
2836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2837 *) ac_try_echo=$ac_try;;
2838 esac
2839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2840 (eval "$ac_link") 2>&5
2841 ac_status=$?
2842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843 (exit $ac_status); }; then
2844 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2845 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2846 # work properly (i.e., refer to `conftest.exe'), while it won't with
2847 # `rm'.
2848 for ac_file in conftest.exe conftest conftest.*; do
2849 test -f "$ac_file" || continue
2850 case $ac_file in
2851 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2852 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2853 break;;
2854 * ) break;;
2855 esac
2856 done
2857 else
2858 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2859 See \`config.log' for more details." >&5
2860 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2861 See \`config.log' for more details." >&2;}
2862 { (exit 1); exit 1; }; }
2865 rm -f conftest$ac_cv_exeext
2866 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2867 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2869 rm -f conftest.$ac_ext
2870 EXEEXT=$ac_cv_exeext
2871 ac_exeext=$EXEEXT
2872 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2873 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2874 if test "${ac_cv_objext+set}" = set; then
2875 echo $ECHO_N "(cached) $ECHO_C" >&6
2876 else
2877 cat >conftest.$ac_ext <<_ACEOF
2878 /* confdefs.h. */
2879 _ACEOF
2880 cat confdefs.h >>conftest.$ac_ext
2881 cat >>conftest.$ac_ext <<_ACEOF
2882 /* end confdefs.h. */
2885 main ()
2889 return 0;
2891 _ACEOF
2892 rm -f conftest.o conftest.obj
2893 if { (ac_try="$ac_compile"
2894 case "(($ac_try" in
2895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2896 *) ac_try_echo=$ac_try;;
2897 esac
2898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2899 (eval "$ac_compile") 2>&5
2900 ac_status=$?
2901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902 (exit $ac_status); }; then
2903 for ac_file in conftest.o conftest.obj conftest.*; do
2904 test -f "$ac_file" || continue;
2905 case $ac_file in
2906 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2907 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2908 break;;
2909 esac
2910 done
2911 else
2912 echo "$as_me: failed program was:" >&5
2913 sed 's/^/| /' conftest.$ac_ext >&5
2915 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2916 See \`config.log' for more details." >&5
2917 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2918 See \`config.log' for more details." >&2;}
2919 { (exit 1); exit 1; }; }
2922 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2924 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2925 echo "${ECHO_T}$ac_cv_objext" >&6; }
2926 OBJEXT=$ac_cv_objext
2927 ac_objext=$OBJEXT
2928 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2929 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2930 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2931 echo $ECHO_N "(cached) $ECHO_C" >&6
2932 else
2933 cat >conftest.$ac_ext <<_ACEOF
2934 /* confdefs.h. */
2935 _ACEOF
2936 cat confdefs.h >>conftest.$ac_ext
2937 cat >>conftest.$ac_ext <<_ACEOF
2938 /* end confdefs.h. */
2941 main ()
2943 #ifndef __GNUC__
2944 choke me
2945 #endif
2948 return 0;
2950 _ACEOF
2951 rm -f conftest.$ac_objext
2952 if { (ac_try="$ac_compile"
2953 case "(($ac_try" in
2954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2955 *) ac_try_echo=$ac_try;;
2956 esac
2957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2958 (eval "$ac_compile") 2>conftest.er1
2959 ac_status=$?
2960 grep -v '^ *+' conftest.er1 >conftest.err
2961 rm -f conftest.er1
2962 cat conftest.err >&5
2963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964 (exit $ac_status); } && {
2965 test -z "$ac_c_werror_flag" ||
2966 test ! -s conftest.err
2967 } && test -s conftest.$ac_objext; then
2968 ac_compiler_gnu=yes
2969 else
2970 echo "$as_me: failed program was:" >&5
2971 sed 's/^/| /' conftest.$ac_ext >&5
2973 ac_compiler_gnu=no
2976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2977 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2980 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2981 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2982 GCC=`test $ac_compiler_gnu = yes && echo yes`
2983 ac_test_CFLAGS=${CFLAGS+set}
2984 ac_save_CFLAGS=$CFLAGS
2985 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2986 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2987 if test "${ac_cv_prog_cc_g+set}" = set; then
2988 echo $ECHO_N "(cached) $ECHO_C" >&6
2989 else
2990 ac_save_c_werror_flag=$ac_c_werror_flag
2991 ac_c_werror_flag=yes
2992 ac_cv_prog_cc_g=no
2993 CFLAGS="-g"
2994 cat >conftest.$ac_ext <<_ACEOF
2995 /* confdefs.h. */
2996 _ACEOF
2997 cat confdefs.h >>conftest.$ac_ext
2998 cat >>conftest.$ac_ext <<_ACEOF
2999 /* end confdefs.h. */
3002 main ()
3006 return 0;
3008 _ACEOF
3009 rm -f conftest.$ac_objext
3010 if { (ac_try="$ac_compile"
3011 case "(($ac_try" in
3012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3013 *) ac_try_echo=$ac_try;;
3014 esac
3015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3016 (eval "$ac_compile") 2>conftest.er1
3017 ac_status=$?
3018 grep -v '^ *+' conftest.er1 >conftest.err
3019 rm -f conftest.er1
3020 cat conftest.err >&5
3021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3022 (exit $ac_status); } && {
3023 test -z "$ac_c_werror_flag" ||
3024 test ! -s conftest.err
3025 } && test -s conftest.$ac_objext; then
3026 ac_cv_prog_cc_g=yes
3027 else
3028 echo "$as_me: failed program was:" >&5
3029 sed 's/^/| /' conftest.$ac_ext >&5
3031 CFLAGS=""
3032 cat >conftest.$ac_ext <<_ACEOF
3033 /* confdefs.h. */
3034 _ACEOF
3035 cat confdefs.h >>conftest.$ac_ext
3036 cat >>conftest.$ac_ext <<_ACEOF
3037 /* end confdefs.h. */
3040 main ()
3044 return 0;
3046 _ACEOF
3047 rm -f conftest.$ac_objext
3048 if { (ac_try="$ac_compile"
3049 case "(($ac_try" in
3050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3051 *) ac_try_echo=$ac_try;;
3052 esac
3053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3054 (eval "$ac_compile") 2>conftest.er1
3055 ac_status=$?
3056 grep -v '^ *+' conftest.er1 >conftest.err
3057 rm -f conftest.er1
3058 cat conftest.err >&5
3059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060 (exit $ac_status); } && {
3061 test -z "$ac_c_werror_flag" ||
3062 test ! -s conftest.err
3063 } && test -s conftest.$ac_objext; then
3065 else
3066 echo "$as_me: failed program was:" >&5
3067 sed 's/^/| /' conftest.$ac_ext >&5
3069 ac_c_werror_flag=$ac_save_c_werror_flag
3070 CFLAGS="-g"
3071 cat >conftest.$ac_ext <<_ACEOF
3072 /* confdefs.h. */
3073 _ACEOF
3074 cat confdefs.h >>conftest.$ac_ext
3075 cat >>conftest.$ac_ext <<_ACEOF
3076 /* end confdefs.h. */
3079 main ()
3083 return 0;
3085 _ACEOF
3086 rm -f conftest.$ac_objext
3087 if { (ac_try="$ac_compile"
3088 case "(($ac_try" in
3089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3090 *) ac_try_echo=$ac_try;;
3091 esac
3092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3093 (eval "$ac_compile") 2>conftest.er1
3094 ac_status=$?
3095 grep -v '^ *+' conftest.er1 >conftest.err
3096 rm -f conftest.er1
3097 cat conftest.err >&5
3098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099 (exit $ac_status); } && {
3100 test -z "$ac_c_werror_flag" ||
3101 test ! -s conftest.err
3102 } && test -s conftest.$ac_objext; then
3103 ac_cv_prog_cc_g=yes
3104 else
3105 echo "$as_me: failed program was:" >&5
3106 sed 's/^/| /' conftest.$ac_ext >&5
3111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3118 ac_c_werror_flag=$ac_save_c_werror_flag
3120 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3121 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3122 if test "$ac_test_CFLAGS" = set; then
3123 CFLAGS=$ac_save_CFLAGS
3124 elif test $ac_cv_prog_cc_g = yes; then
3125 if test "$GCC" = yes; then
3126 CFLAGS="-g -O2"
3127 else
3128 CFLAGS="-g"
3130 else
3131 if test "$GCC" = yes; then
3132 CFLAGS="-O2"
3133 else
3134 CFLAGS=
3137 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3138 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3139 if test "${ac_cv_prog_cc_c89+set}" = set; then
3140 echo $ECHO_N "(cached) $ECHO_C" >&6
3141 else
3142 ac_cv_prog_cc_c89=no
3143 ac_save_CC=$CC
3144 cat >conftest.$ac_ext <<_ACEOF
3145 /* confdefs.h. */
3146 _ACEOF
3147 cat confdefs.h >>conftest.$ac_ext
3148 cat >>conftest.$ac_ext <<_ACEOF
3149 /* end confdefs.h. */
3150 #include <stdarg.h>
3151 #include <stdio.h>
3152 #include <sys/types.h>
3153 #include <sys/stat.h>
3154 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3155 struct buf { int x; };
3156 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3157 static char *e (p, i)
3158 char **p;
3159 int i;
3161 return p[i];
3163 static char *f (char * (*g) (char **, int), char **p, ...)
3165 char *s;
3166 va_list v;
3167 va_start (v,p);
3168 s = g (p, va_arg (v,int));
3169 va_end (v);
3170 return s;
3173 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3174 function prototypes and stuff, but not '\xHH' hex character constants.
3175 These don't provoke an error unfortunately, instead are silently treated
3176 as 'x'. The following induces an error, until -std is added to get
3177 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3178 array size at least. It's necessary to write '\x00'==0 to get something
3179 that's true only with -std. */
3180 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3182 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3183 inside strings and character constants. */
3184 #define FOO(x) 'x'
3185 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3187 int test (int i, double x);
3188 struct s1 {int (*f) (int a);};
3189 struct s2 {int (*f) (double a);};
3190 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3191 int argc;
3192 char **argv;
3194 main ()
3196 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3198 return 0;
3200 _ACEOF
3201 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3202 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3204 CC="$ac_save_CC $ac_arg"
3205 rm -f conftest.$ac_objext
3206 if { (ac_try="$ac_compile"
3207 case "(($ac_try" in
3208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3209 *) ac_try_echo=$ac_try;;
3210 esac
3211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3212 (eval "$ac_compile") 2>conftest.er1
3213 ac_status=$?
3214 grep -v '^ *+' conftest.er1 >conftest.err
3215 rm -f conftest.er1
3216 cat conftest.err >&5
3217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218 (exit $ac_status); } && {
3219 test -z "$ac_c_werror_flag" ||
3220 test ! -s conftest.err
3221 } && test -s conftest.$ac_objext; then
3222 ac_cv_prog_cc_c89=$ac_arg
3223 else
3224 echo "$as_me: failed program was:" >&5
3225 sed 's/^/| /' conftest.$ac_ext >&5
3230 rm -f core conftest.err conftest.$ac_objext
3231 test "x$ac_cv_prog_cc_c89" != "xno" && break
3232 done
3233 rm -f conftest.$ac_ext
3234 CC=$ac_save_CC
3237 # AC_CACHE_VAL
3238 case "x$ac_cv_prog_cc_c89" in
3240 { echo "$as_me:$LINENO: result: none needed" >&5
3241 echo "${ECHO_T}none needed" >&6; } ;;
3242 xno)
3243 { echo "$as_me:$LINENO: result: unsupported" >&5
3244 echo "${ECHO_T}unsupported" >&6; } ;;
3246 CC="$CC $ac_cv_prog_cc_c89"
3247 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3248 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3249 esac
3252 ac_ext=c
3253 ac_cpp='$CPP $CPPFLAGS'
3254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3261 { echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5
3262 echo $ECHO_N "checking for --with-cxx-main=<compiler>... $ECHO_C" >&6; }
3264 # Check whether --with-cxx_main was given.
3265 if test "${with_cxx_main+set}" = set; then
3266 withval=$with_cxx_main;
3268 case $withval in
3269 no) with_cxx_main=no
3270 MAINCC='$(CC)';;
3271 yes) with_cxx_main=yes
3272 MAINCC='$(CXX)';;
3273 *) with_cxx_main=yes
3274 MAINCC=$withval
3275 if test -z "$CXX"
3276 then
3277 CXX=$withval
3278 fi;;
3279 esac
3280 else
3282 with_cxx_main=no
3283 MAINCC='$(CC)'
3287 { echo "$as_me:$LINENO: result: $with_cxx_main" >&5
3288 echo "${ECHO_T}$with_cxx_main" >&6; }
3290 preset_cxx="$CXX"
3291 if test -z "$CXX"
3292 then
3293 case "$CC" in
3294 gcc) # Extract the first word of "g++", so it can be a program name with args.
3295 set dummy g++; ac_word=$2
3296 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3298 if test "${ac_cv_path_CXX+set}" = set; then
3299 echo $ECHO_N "(cached) $ECHO_C" >&6
3300 else
3301 case $CXX in
3302 [\\/]* | ?:[\\/]*)
3303 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3307 for as_dir in notfound
3309 IFS=$as_save_IFS
3310 test -z "$as_dir" && as_dir=.
3311 for ac_exec_ext in '' $ac_executable_extensions; do
3312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3313 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3315 break 2
3317 done
3318 done
3319 IFS=$as_save_IFS
3321 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="g++"
3323 esac
3325 CXX=$ac_cv_path_CXX
3326 if test -n "$CXX"; then
3327 { echo "$as_me:$LINENO: result: $CXX" >&5
3328 echo "${ECHO_T}$CXX" >&6; }
3329 else
3330 { echo "$as_me:$LINENO: result: no" >&5
3331 echo "${ECHO_T}no" >&6; }
3335 cc) # Extract the first word of "c++", so it can be a program name with args.
3336 set dummy c++; ac_word=$2
3337 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3339 if test "${ac_cv_path_CXX+set}" = set; then
3340 echo $ECHO_N "(cached) $ECHO_C" >&6
3341 else
3342 case $CXX in
3343 [\\/]* | ?:[\\/]*)
3344 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3348 for as_dir in notfound
3350 IFS=$as_save_IFS
3351 test -z "$as_dir" && as_dir=.
3352 for ac_exec_ext in '' $ac_executable_extensions; do
3353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3354 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3356 break 2
3358 done
3359 done
3360 IFS=$as_save_IFS
3362 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="c++"
3364 esac
3366 CXX=$ac_cv_path_CXX
3367 if test -n "$CXX"; then
3368 { echo "$as_me:$LINENO: result: $CXX" >&5
3369 echo "${ECHO_T}$CXX" >&6; }
3370 else
3371 { echo "$as_me:$LINENO: result: no" >&5
3372 echo "${ECHO_T}no" >&6; }
3376 esac
3377 if test "$CXX" = "notfound"
3378 then
3379 CXX=""
3382 if test -z "$CXX"
3383 then
3384 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
3386 # Extract the first word of "$ac_prog", so it can be a program name with args.
3387 set dummy $ac_prog; ac_word=$2
3388 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3390 if test "${ac_cv_prog_CXX+set}" = set; then
3391 echo $ECHO_N "(cached) $ECHO_C" >&6
3392 else
3393 if test -n "$CXX"; then
3394 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3395 else
3396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3397 for as_dir in $PATH
3399 IFS=$as_save_IFS
3400 test -z "$as_dir" && as_dir=.
3401 for ac_exec_ext in '' $ac_executable_extensions; do
3402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3403 ac_cv_prog_CXX="$ac_prog"
3404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3405 break 2
3407 done
3408 done
3409 IFS=$as_save_IFS
3413 CXX=$ac_cv_prog_CXX
3414 if test -n "$CXX"; then
3415 { echo "$as_me:$LINENO: result: $CXX" >&5
3416 echo "${ECHO_T}$CXX" >&6; }
3417 else
3418 { echo "$as_me:$LINENO: result: no" >&5
3419 echo "${ECHO_T}no" >&6; }
3423 test -n "$CXX" && break
3424 done
3425 test -n "$CXX" || CXX="notfound"
3427 if test "$CXX" = "notfound"
3428 then
3429 CXX=""
3432 if test "$preset_cxx" != "$CXX"
3433 then
3434 { echo "$as_me:$LINENO: WARNING:
3436 By default, distutils will build C++ extension modules with \"$CXX\".
3437 If this is not intended, then set CXX on the configure command line.
3438 " >&5
3439 echo "$as_me: WARNING:
3441 By default, distutils will build C++ extension modules with \"$CXX\".
3442 If this is not intended, then set CXX on the configure command line.
3443 " >&2;}
3447 # checks for UNIX variants that set C preprocessor variables
3449 ac_ext=c
3450 ac_cpp='$CPP $CPPFLAGS'
3451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3453 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3454 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3455 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3456 # On Suns, sometimes $CPP names a directory.
3457 if test -n "$CPP" && test -d "$CPP"; then
3458 CPP=
3460 if test -z "$CPP"; then
3461 if test "${ac_cv_prog_CPP+set}" = set; then
3462 echo $ECHO_N "(cached) $ECHO_C" >&6
3463 else
3464 # Double quotes because CPP needs to be expanded
3465 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3467 ac_preproc_ok=false
3468 for ac_c_preproc_warn_flag in '' yes
3470 # Use a header file that comes with gcc, so configuring glibc
3471 # with a fresh cross-compiler works.
3472 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3473 # <limits.h> exists even on freestanding compilers.
3474 # On the NeXT, cc -E runs the code through the compiler's parser,
3475 # not just through cpp. "Syntax error" is here to catch this case.
3476 cat >conftest.$ac_ext <<_ACEOF
3477 /* confdefs.h. */
3478 _ACEOF
3479 cat confdefs.h >>conftest.$ac_ext
3480 cat >>conftest.$ac_ext <<_ACEOF
3481 /* end confdefs.h. */
3482 #ifdef __STDC__
3483 # include <limits.h>
3484 #else
3485 # include <assert.h>
3486 #endif
3487 Syntax error
3488 _ACEOF
3489 if { (ac_try="$ac_cpp conftest.$ac_ext"
3490 case "(($ac_try" in
3491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3492 *) ac_try_echo=$ac_try;;
3493 esac
3494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3495 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3496 ac_status=$?
3497 grep -v '^ *+' conftest.er1 >conftest.err
3498 rm -f conftest.er1
3499 cat conftest.err >&5
3500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3501 (exit $ac_status); } >/dev/null && {
3502 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3503 test ! -s conftest.err
3504 }; then
3506 else
3507 echo "$as_me: failed program was:" >&5
3508 sed 's/^/| /' conftest.$ac_ext >&5
3510 # Broken: fails on valid input.
3511 continue
3514 rm -f conftest.err conftest.$ac_ext
3516 # OK, works on sane cases. Now check whether nonexistent headers
3517 # can be detected and how.
3518 cat >conftest.$ac_ext <<_ACEOF
3519 /* confdefs.h. */
3520 _ACEOF
3521 cat confdefs.h >>conftest.$ac_ext
3522 cat >>conftest.$ac_ext <<_ACEOF
3523 /* end confdefs.h. */
3524 #include <ac_nonexistent.h>
3525 _ACEOF
3526 if { (ac_try="$ac_cpp conftest.$ac_ext"
3527 case "(($ac_try" in
3528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3529 *) ac_try_echo=$ac_try;;
3530 esac
3531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3532 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3533 ac_status=$?
3534 grep -v '^ *+' conftest.er1 >conftest.err
3535 rm -f conftest.er1
3536 cat conftest.err >&5
3537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3538 (exit $ac_status); } >/dev/null && {
3539 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3540 test ! -s conftest.err
3541 }; then
3542 # Broken: success on invalid input.
3543 continue
3544 else
3545 echo "$as_me: failed program was:" >&5
3546 sed 's/^/| /' conftest.$ac_ext >&5
3548 # Passes both tests.
3549 ac_preproc_ok=:
3550 break
3553 rm -f conftest.err conftest.$ac_ext
3555 done
3556 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3557 rm -f conftest.err conftest.$ac_ext
3558 if $ac_preproc_ok; then
3559 break
3562 done
3563 ac_cv_prog_CPP=$CPP
3566 CPP=$ac_cv_prog_CPP
3567 else
3568 ac_cv_prog_CPP=$CPP
3570 { echo "$as_me:$LINENO: result: $CPP" >&5
3571 echo "${ECHO_T}$CPP" >&6; }
3572 ac_preproc_ok=false
3573 for ac_c_preproc_warn_flag in '' yes
3575 # Use a header file that comes with gcc, so configuring glibc
3576 # with a fresh cross-compiler works.
3577 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3578 # <limits.h> exists even on freestanding compilers.
3579 # On the NeXT, cc -E runs the code through the compiler's parser,
3580 # not just through cpp. "Syntax error" is here to catch this case.
3581 cat >conftest.$ac_ext <<_ACEOF
3582 /* confdefs.h. */
3583 _ACEOF
3584 cat confdefs.h >>conftest.$ac_ext
3585 cat >>conftest.$ac_ext <<_ACEOF
3586 /* end confdefs.h. */
3587 #ifdef __STDC__
3588 # include <limits.h>
3589 #else
3590 # include <assert.h>
3591 #endif
3592 Syntax error
3593 _ACEOF
3594 if { (ac_try="$ac_cpp conftest.$ac_ext"
3595 case "(($ac_try" in
3596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3597 *) ac_try_echo=$ac_try;;
3598 esac
3599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3600 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3601 ac_status=$?
3602 grep -v '^ *+' conftest.er1 >conftest.err
3603 rm -f conftest.er1
3604 cat conftest.err >&5
3605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606 (exit $ac_status); } >/dev/null && {
3607 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3608 test ! -s conftest.err
3609 }; then
3611 else
3612 echo "$as_me: failed program was:" >&5
3613 sed 's/^/| /' conftest.$ac_ext >&5
3615 # Broken: fails on valid input.
3616 continue
3619 rm -f conftest.err conftest.$ac_ext
3621 # OK, works on sane cases. Now check whether nonexistent headers
3622 # can be detected and how.
3623 cat >conftest.$ac_ext <<_ACEOF
3624 /* confdefs.h. */
3625 _ACEOF
3626 cat confdefs.h >>conftest.$ac_ext
3627 cat >>conftest.$ac_ext <<_ACEOF
3628 /* end confdefs.h. */
3629 #include <ac_nonexistent.h>
3630 _ACEOF
3631 if { (ac_try="$ac_cpp conftest.$ac_ext"
3632 case "(($ac_try" in
3633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3634 *) ac_try_echo=$ac_try;;
3635 esac
3636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3637 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3638 ac_status=$?
3639 grep -v '^ *+' conftest.er1 >conftest.err
3640 rm -f conftest.er1
3641 cat conftest.err >&5
3642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3643 (exit $ac_status); } >/dev/null && {
3644 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3645 test ! -s conftest.err
3646 }; then
3647 # Broken: success on invalid input.
3648 continue
3649 else
3650 echo "$as_me: failed program was:" >&5
3651 sed 's/^/| /' conftest.$ac_ext >&5
3653 # Passes both tests.
3654 ac_preproc_ok=:
3655 break
3658 rm -f conftest.err conftest.$ac_ext
3660 done
3661 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3662 rm -f conftest.err conftest.$ac_ext
3663 if $ac_preproc_ok; then
3665 else
3666 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3667 See \`config.log' for more details." >&5
3668 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3669 See \`config.log' for more details." >&2;}
3670 { (exit 1); exit 1; }; }
3673 ac_ext=c
3674 ac_cpp='$CPP $CPPFLAGS'
3675 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3676 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3677 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3680 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3681 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3682 if test "${ac_cv_path_GREP+set}" = set; then
3683 echo $ECHO_N "(cached) $ECHO_C" >&6
3684 else
3685 # Extract the first word of "grep ggrep" to use in msg output
3686 if test -z "$GREP"; then
3687 set dummy grep ggrep; ac_prog_name=$2
3688 if test "${ac_cv_path_GREP+set}" = set; then
3689 echo $ECHO_N "(cached) $ECHO_C" >&6
3690 else
3691 ac_path_GREP_found=false
3692 # Loop through the user's path and test for each of PROGNAME-LIST
3693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3694 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3696 IFS=$as_save_IFS
3697 test -z "$as_dir" && as_dir=.
3698 for ac_prog in grep ggrep; do
3699 for ac_exec_ext in '' $ac_executable_extensions; do
3700 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3701 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3702 # Check for GNU ac_path_GREP and select it if it is found.
3703 # Check for GNU $ac_path_GREP
3704 case `"$ac_path_GREP" --version 2>&1` in
3705 *GNU*)
3706 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3708 ac_count=0
3709 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3710 while :
3712 cat "conftest.in" "conftest.in" >"conftest.tmp"
3713 mv "conftest.tmp" "conftest.in"
3714 cp "conftest.in" "conftest.nl"
3715 echo 'GREP' >> "conftest.nl"
3716 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3717 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3718 ac_count=`expr $ac_count + 1`
3719 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3720 # Best one so far, save it but keep looking for a better one
3721 ac_cv_path_GREP="$ac_path_GREP"
3722 ac_path_GREP_max=$ac_count
3724 # 10*(2^10) chars as input seems more than enough
3725 test $ac_count -gt 10 && break
3726 done
3727 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3728 esac
3731 $ac_path_GREP_found && break 3
3732 done
3733 done
3735 done
3736 IFS=$as_save_IFS
3741 GREP="$ac_cv_path_GREP"
3742 if test -z "$GREP"; then
3743 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3744 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3745 { (exit 1); exit 1; }; }
3748 else
3749 ac_cv_path_GREP=$GREP
3754 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3755 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3756 GREP="$ac_cv_path_GREP"
3759 { echo "$as_me:$LINENO: checking for egrep" >&5
3760 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3761 if test "${ac_cv_path_EGREP+set}" = set; then
3762 echo $ECHO_N "(cached) $ECHO_C" >&6
3763 else
3764 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3765 then ac_cv_path_EGREP="$GREP -E"
3766 else
3767 # Extract the first word of "egrep" to use in msg output
3768 if test -z "$EGREP"; then
3769 set dummy egrep; ac_prog_name=$2
3770 if test "${ac_cv_path_EGREP+set}" = set; then
3771 echo $ECHO_N "(cached) $ECHO_C" >&6
3772 else
3773 ac_path_EGREP_found=false
3774 # Loop through the user's path and test for each of PROGNAME-LIST
3775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3776 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3778 IFS=$as_save_IFS
3779 test -z "$as_dir" && as_dir=.
3780 for ac_prog in egrep; do
3781 for ac_exec_ext in '' $ac_executable_extensions; do
3782 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3783 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3784 # Check for GNU ac_path_EGREP and select it if it is found.
3785 # Check for GNU $ac_path_EGREP
3786 case `"$ac_path_EGREP" --version 2>&1` in
3787 *GNU*)
3788 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3790 ac_count=0
3791 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3792 while :
3794 cat "conftest.in" "conftest.in" >"conftest.tmp"
3795 mv "conftest.tmp" "conftest.in"
3796 cp "conftest.in" "conftest.nl"
3797 echo 'EGREP' >> "conftest.nl"
3798 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3799 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3800 ac_count=`expr $ac_count + 1`
3801 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3802 # Best one so far, save it but keep looking for a better one
3803 ac_cv_path_EGREP="$ac_path_EGREP"
3804 ac_path_EGREP_max=$ac_count
3806 # 10*(2^10) chars as input seems more than enough
3807 test $ac_count -gt 10 && break
3808 done
3809 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3810 esac
3813 $ac_path_EGREP_found && break 3
3814 done
3815 done
3817 done
3818 IFS=$as_save_IFS
3823 EGREP="$ac_cv_path_EGREP"
3824 if test -z "$EGREP"; then
3825 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3826 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3827 { (exit 1); exit 1; }; }
3830 else
3831 ac_cv_path_EGREP=$EGREP
3837 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3838 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3839 EGREP="$ac_cv_path_EGREP"
3843 { echo "$as_me:$LINENO: checking for AIX" >&5
3844 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3845 cat >conftest.$ac_ext <<_ACEOF
3846 /* confdefs.h. */
3847 _ACEOF
3848 cat confdefs.h >>conftest.$ac_ext
3849 cat >>conftest.$ac_ext <<_ACEOF
3850 /* end confdefs.h. */
3851 #ifdef _AIX
3853 #endif
3855 _ACEOF
3856 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3857 $EGREP "yes" >/dev/null 2>&1; then
3858 { echo "$as_me:$LINENO: result: yes" >&5
3859 echo "${ECHO_T}yes" >&6; }
3860 cat >>confdefs.h <<\_ACEOF
3861 #define _ALL_SOURCE 1
3862 _ACEOF
3864 else
3865 { echo "$as_me:$LINENO: result: no" >&5
3866 echo "${ECHO_T}no" >&6; }
3868 rm -f -r conftest*
3872 # Check for unsupported systems
3873 case $ac_sys_system/$ac_sys_release in
3874 atheos*|Linux*/1*)
3875 echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported.
3876 echo See README for details.
3877 exit 1;;
3878 esac
3881 { echo "$as_me:$LINENO: checking for --with-suffix" >&5
3882 echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6; }
3884 # Check whether --with-suffix was given.
3885 if test "${with_suffix+set}" = set; then
3886 withval=$with_suffix;
3887 case $withval in
3888 no) EXEEXT=;;
3889 yes) EXEEXT=.exe;;
3890 *) EXEEXT=$withval;;
3891 esac
3894 { echo "$as_me:$LINENO: result: $EXEEXT" >&5
3895 echo "${ECHO_T}$EXEEXT" >&6; }
3897 # Test whether we're running on a non-case-sensitive system, in which
3898 # case we give a warning if no ext is given
3900 { echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
3901 echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6; }
3902 if test ! -d CaseSensitiveTestDir; then
3903 mkdir CaseSensitiveTestDir
3906 if test -d casesensitivetestdir
3907 then
3908 { echo "$as_me:$LINENO: result: yes" >&5
3909 echo "${ECHO_T}yes" >&6; }
3910 BUILDEXEEXT=.exe
3911 else
3912 { echo "$as_me:$LINENO: result: no" >&5
3913 echo "${ECHO_T}no" >&6; }
3914 BUILDEXEEXT=$EXEEXT
3916 rmdir CaseSensitiveTestDir
3918 case $MACHDEP in
3919 bsdos*)
3920 case $CC in
3921 gcc) CC="$CC -D_HAVE_BSDI";;
3922 esac;;
3923 esac
3925 case $ac_sys_system in
3926 hp*|HP*)
3927 case $CC in
3928 cc|*/cc) CC="$CC -Ae";;
3929 esac;;
3930 SunOS*)
3931 # Some functions have a prototype only with that define, e.g. confstr
3933 cat >>confdefs.h <<\_ACEOF
3934 #define __EXTENSIONS__ 1
3935 _ACEOF
3938 esac
3942 { echo "$as_me:$LINENO: checking LIBRARY" >&5
3943 echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6; }
3944 if test -z "$LIBRARY"
3945 then
3946 LIBRARY='libpython$(VERSION).a'
3948 { echo "$as_me:$LINENO: result: $LIBRARY" >&5
3949 echo "${ECHO_T}$LIBRARY" >&6; }
3951 # LDLIBRARY is the name of the library to link against (as opposed to the
3952 # name of the library into which to insert object files). BLDLIBRARY is also
3953 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
3954 # is blank as the main program is not linked directly against LDLIBRARY.
3955 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
3956 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
3957 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
3958 # DLLLIBRARY is the shared (i.e., DLL) library.
3960 # RUNSHARED is used to run shared python without installed libraries
3962 # INSTSONAME is the name of the shared library that will be use to install
3963 # on the system - some systems like version suffix, others don't
3970 LDLIBRARY="$LIBRARY"
3971 BLDLIBRARY='$(LDLIBRARY)'
3972 INSTSONAME='$(LDLIBRARY)'
3973 DLLLIBRARY=''
3974 LDLIBRARYDIR=''
3975 RUNSHARED=''
3977 # LINKCC is the command that links the python executable -- default is $(CC).
3978 # If CXX is set, and if it is needed to link a main function that was
3979 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
3980 # python might then depend on the C++ runtime
3981 # This is altered for AIX in order to build the export list before
3982 # linking.
3984 { echo "$as_me:$LINENO: checking LINKCC" >&5
3985 echo $ECHO_N "checking LINKCC... $ECHO_C" >&6; }
3986 if test -z "$LINKCC"
3987 then
3988 LINKCC='$(PURIFY) $(MAINCC)'
3989 case $ac_sys_system in
3990 AIX*)
3991 exp_extra="\"\""
3992 if test $ac_sys_release -ge 5 -o \
3993 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
3994 exp_extra="."
3996 LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
3997 QNX*)
3998 # qcc must be used because the other compilers do not
3999 # support -N.
4000 LINKCC=qcc;;
4001 esac
4003 { echo "$as_me:$LINENO: result: $LINKCC" >&5
4004 echo "${ECHO_T}$LINKCC" >&6; }
4006 # GNULD is set to "yes" if the GNU linker is used. If this goes wrong
4007 # make sure we default having it set to "no": this is used by
4008 # distutils.unixccompiler to know if it should add --enable-new-dtags
4009 # to linker command lines, and failing to detect GNU ld simply results
4010 # in the same bahaviour as before.
4012 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4013 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4014 ac_prog=ld
4015 if test "$GCC" = yes; then
4016 ac_prog=`$CC -print-prog-name=ld`
4018 case `"$ac_prog" -V 2>&1 < /dev/null` in
4019 *GNU*)
4020 GNULD=yes;;
4022 GNULD=no;;
4023 esac
4024 { echo "$as_me:$LINENO: result: $GNULD" >&5
4025 echo "${ECHO_T}$GNULD" >&6; }
4027 { echo "$as_me:$LINENO: checking for --enable-shared" >&5
4028 echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6; }
4029 # Check whether --enable-shared was given.
4030 if test "${enable_shared+set}" = set; then
4031 enableval=$enable_shared;
4035 if test -z "$enable_shared"
4036 then
4037 case $ac_sys_system in
4038 CYGWIN* | atheos*)
4039 enable_shared="yes";;
4041 enable_shared="no";;
4042 esac
4044 { echo "$as_me:$LINENO: result: $enable_shared" >&5
4045 echo "${ECHO_T}$enable_shared" >&6; }
4047 { echo "$as_me:$LINENO: checking for --enable-profiling" >&5
4048 echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6; }
4049 # Check whether --enable-profiling was given.
4050 if test "${enable_profiling+set}" = set; then
4051 enableval=$enable_profiling; ac_save_cc="$CC"
4052 CC="$CC -pg"
4053 if test "$cross_compiling" = yes; then
4054 ac_enable_profiling="no"
4055 else
4056 cat >conftest.$ac_ext <<_ACEOF
4057 /* confdefs.h. */
4058 _ACEOF
4059 cat confdefs.h >>conftest.$ac_ext
4060 cat >>conftest.$ac_ext <<_ACEOF
4061 /* end confdefs.h. */
4062 int main() { return 0; }
4063 _ACEOF
4064 rm -f conftest$ac_exeext
4065 if { (ac_try="$ac_link"
4066 case "(($ac_try" in
4067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4068 *) ac_try_echo=$ac_try;;
4069 esac
4070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4071 (eval "$ac_link") 2>&5
4072 ac_status=$?
4073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4074 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4075 { (case "(($ac_try" in
4076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4077 *) ac_try_echo=$ac_try;;
4078 esac
4079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4080 (eval "$ac_try") 2>&5
4081 ac_status=$?
4082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4083 (exit $ac_status); }; }; then
4084 ac_enable_profiling="yes"
4085 else
4086 echo "$as_me: program exited with status $ac_status" >&5
4087 echo "$as_me: failed program was:" >&5
4088 sed 's/^/| /' conftest.$ac_ext >&5
4090 ( exit $ac_status )
4091 ac_enable_profiling="no"
4093 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4097 CC="$ac_save_cc"
4100 { echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5
4101 echo "${ECHO_T}$ac_enable_profiling" >&6; }
4103 case "$ac_enable_profiling" in
4104 "yes")
4105 BASECFLAGS="-pg $BASECFLAGS"
4106 LDFLAGS="-pg $LDFLAGS"
4108 esac
4110 { echo "$as_me:$LINENO: checking LDLIBRARY" >&5
4111 echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6; }
4113 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
4114 # library that we build, but we do not want to link against it (we
4115 # will find it with a -framework option). For this reason there is an
4116 # extra variable BLDLIBRARY against which Python and the extension
4117 # modules are linked, BLDLIBRARY. This is normally the same as
4118 # LDLIBRARY, but empty for MacOSX framework builds.
4119 if test "$enable_framework"
4120 then
4121 LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
4122 RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH"
4123 BLDLIBRARY=''
4124 else
4125 BLDLIBRARY='$(LDLIBRARY)'
4128 # Other platforms follow
4129 if test $enable_shared = "yes"; then
4131 cat >>confdefs.h <<\_ACEOF
4132 #define Py_ENABLE_SHARED 1
4133 _ACEOF
4135 case $ac_sys_system in
4136 BeOS*)
4137 LDLIBRARY='libpython$(VERSION).so'
4139 CYGWIN*)
4140 LDLIBRARY='libpython$(VERSION).dll.a'
4141 DLLLIBRARY='libpython$(VERSION).dll'
4143 SunOS*)
4144 LDLIBRARY='libpython$(VERSION).so'
4145 BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
4146 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4147 INSTSONAME="$LDLIBRARY".$SOVERSION
4149 Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*)
4150 LDLIBRARY='libpython$(VERSION).so'
4151 BLDLIBRARY='-L. -lpython$(VERSION)'
4152 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4153 case $ac_sys_system in
4154 FreeBSD*)
4155 SOVERSION=`echo $SOVERSION|cut -d "." -f 1`
4157 esac
4158 INSTSONAME="$LDLIBRARY".$SOVERSION
4160 hp*|HP*)
4161 case `uname -m` in
4162 ia64)
4163 LDLIBRARY='libpython$(VERSION).so'
4166 LDLIBRARY='libpython$(VERSION).sl'
4168 esac
4169 BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
4170 RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH}
4172 OSF*)
4173 LDLIBRARY='libpython$(VERSION).so'
4174 BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
4175 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4177 atheos*)
4178 LDLIBRARY='libpython$(VERSION).so'
4179 BLDLIBRARY='-L. -lpython$(VERSION)'
4180 RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
4182 Darwin*)
4183 LDLIBRARY='libpython$(VERSION).dylib'
4184 BLDLIBRARY='-L. -lpython$(VERSION)'
4185 RUNSHARED='DYLD_LIBRARY_PATH=`pwd`:${DYLD_LIBRARY_PATH}'
4188 esac
4189 else # shared is disabled
4190 case $ac_sys_system in
4191 CYGWIN*)
4192 BLDLIBRARY='$(LIBRARY)'
4193 LDLIBRARY='libpython$(VERSION).dll.a'
4195 esac
4198 { echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
4199 echo "${ECHO_T}$LDLIBRARY" >&6; }
4201 if test -n "$ac_tool_prefix"; then
4202 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4203 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4204 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4206 if test "${ac_cv_prog_RANLIB+set}" = set; then
4207 echo $ECHO_N "(cached) $ECHO_C" >&6
4208 else
4209 if test -n "$RANLIB"; then
4210 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4211 else
4212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4213 for as_dir in $PATH
4215 IFS=$as_save_IFS
4216 test -z "$as_dir" && as_dir=.
4217 for ac_exec_ext in '' $ac_executable_extensions; do
4218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4219 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4221 break 2
4223 done
4224 done
4225 IFS=$as_save_IFS
4229 RANLIB=$ac_cv_prog_RANLIB
4230 if test -n "$RANLIB"; then
4231 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4232 echo "${ECHO_T}$RANLIB" >&6; }
4233 else
4234 { echo "$as_me:$LINENO: result: no" >&5
4235 echo "${ECHO_T}no" >&6; }
4240 if test -z "$ac_cv_prog_RANLIB"; then
4241 ac_ct_RANLIB=$RANLIB
4242 # Extract the first word of "ranlib", so it can be a program name with args.
4243 set dummy ranlib; ac_word=$2
4244 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4246 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4247 echo $ECHO_N "(cached) $ECHO_C" >&6
4248 else
4249 if test -n "$ac_ct_RANLIB"; then
4250 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4251 else
4252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4253 for as_dir in $PATH
4255 IFS=$as_save_IFS
4256 test -z "$as_dir" && as_dir=.
4257 for ac_exec_ext in '' $ac_executable_extensions; do
4258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4259 ac_cv_prog_ac_ct_RANLIB="ranlib"
4260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4261 break 2
4263 done
4264 done
4265 IFS=$as_save_IFS
4269 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4270 if test -n "$ac_ct_RANLIB"; then
4271 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4272 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4273 else
4274 { echo "$as_me:$LINENO: result: no" >&5
4275 echo "${ECHO_T}no" >&6; }
4278 if test "x$ac_ct_RANLIB" = x; then
4279 RANLIB=":"
4280 else
4281 case $cross_compiling:$ac_tool_warned in
4282 yes:)
4283 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4284 whose name does not start with the host triplet. If you think this
4285 configuration is useful to you, please write to autoconf@gnu.org." >&5
4286 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4287 whose name does not start with the host triplet. If you think this
4288 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4289 ac_tool_warned=yes ;;
4290 esac
4291 RANLIB=$ac_ct_RANLIB
4293 else
4294 RANLIB="$ac_cv_prog_RANLIB"
4298 for ac_prog in ar aal
4300 # Extract the first word of "$ac_prog", so it can be a program name with args.
4301 set dummy $ac_prog; ac_word=$2
4302 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4304 if test "${ac_cv_prog_AR+set}" = set; then
4305 echo $ECHO_N "(cached) $ECHO_C" >&6
4306 else
4307 if test -n "$AR"; then
4308 ac_cv_prog_AR="$AR" # Let the user override the test.
4309 else
4310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4311 for as_dir in $PATH
4313 IFS=$as_save_IFS
4314 test -z "$as_dir" && as_dir=.
4315 for ac_exec_ext in '' $ac_executable_extensions; do
4316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4317 ac_cv_prog_AR="$ac_prog"
4318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4319 break 2
4321 done
4322 done
4323 IFS=$as_save_IFS
4327 AR=$ac_cv_prog_AR
4328 if test -n "$AR"; then
4329 { echo "$as_me:$LINENO: result: $AR" >&5
4330 echo "${ECHO_T}$AR" >&6; }
4331 else
4332 { echo "$as_me:$LINENO: result: no" >&5
4333 echo "${ECHO_T}no" >&6; }
4337 test -n "$AR" && break
4338 done
4339 test -n "$AR" || AR="ar"
4342 # tweak ARFLAGS only if the user didn't set it on the command line
4344 if test -z "$ARFLAGS"
4345 then
4346 ARFLAGS="rc"
4350 # Extract the first word of "svnversion", so it can be a program name with args.
4351 set dummy svnversion; ac_word=$2
4352 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4353 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4354 if test "${ac_cv_prog_SVNVERSION+set}" = set; then
4355 echo $ECHO_N "(cached) $ECHO_C" >&6
4356 else
4357 if test -n "$SVNVERSION"; then
4358 ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test.
4359 else
4360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4361 for as_dir in $PATH
4363 IFS=$as_save_IFS
4364 test -z "$as_dir" && as_dir=.
4365 for ac_exec_ext in '' $ac_executable_extensions; do
4366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4367 ac_cv_prog_SVNVERSION="found"
4368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4369 break 2
4371 done
4372 done
4373 IFS=$as_save_IFS
4375 test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION="not-found"
4378 SVNVERSION=$ac_cv_prog_SVNVERSION
4379 if test -n "$SVNVERSION"; then
4380 { echo "$as_me:$LINENO: result: $SVNVERSION" >&5
4381 echo "${ECHO_T}$SVNVERSION" >&6; }
4382 else
4383 { echo "$as_me:$LINENO: result: no" >&5
4384 echo "${ECHO_T}no" >&6; }
4388 if test $SVNVERSION = found
4389 then
4390 SVNVERSION="svnversion \$(srcdir)"
4391 else
4392 SVNVERSION="echo Unversioned directory"
4395 case $MACHDEP in
4396 bsdos*|hp*|HP*)
4397 # install -d does not work on BSDI or HP-UX
4398 if test -z "$INSTALL"
4399 then
4400 INSTALL="${srcdir}/install-sh -c"
4402 esac
4403 ac_aux_dir=
4404 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4405 if test -f "$ac_dir/install-sh"; then
4406 ac_aux_dir=$ac_dir
4407 ac_install_sh="$ac_aux_dir/install-sh -c"
4408 break
4409 elif test -f "$ac_dir/install.sh"; then
4410 ac_aux_dir=$ac_dir
4411 ac_install_sh="$ac_aux_dir/install.sh -c"
4412 break
4413 elif test -f "$ac_dir/shtool"; then
4414 ac_aux_dir=$ac_dir
4415 ac_install_sh="$ac_aux_dir/shtool install -c"
4416 break
4418 done
4419 if test -z "$ac_aux_dir"; then
4420 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
4421 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
4422 { (exit 1); exit 1; }; }
4425 # These three variables are undocumented and unsupported,
4426 # and are intended to be withdrawn in a future Autoconf release.
4427 # They can cause serious problems if a builder's source tree is in a directory
4428 # whose full name contains unusual characters.
4429 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4430 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4431 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4434 # Find a good install program. We prefer a C program (faster),
4435 # so one script is as good as another. But avoid the broken or
4436 # incompatible versions:
4437 # SysV /etc/install, /usr/sbin/install
4438 # SunOS /usr/etc/install
4439 # IRIX /sbin/install
4440 # AIX /bin/install
4441 # AmigaOS /C/install, which installs bootblocks on floppy discs
4442 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4443 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4444 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4445 # OS/2's system install, which has a completely different semantic
4446 # ./install, which can be erroneously created by make from ./install.sh.
4447 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4448 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4449 if test -z "$INSTALL"; then
4450 if test "${ac_cv_path_install+set}" = set; then
4451 echo $ECHO_N "(cached) $ECHO_C" >&6
4452 else
4453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4454 for as_dir in $PATH
4456 IFS=$as_save_IFS
4457 test -z "$as_dir" && as_dir=.
4458 # Account for people who put trailing slashes in PATH elements.
4459 case $as_dir/ in
4460 ./ | .// | /cC/* | \
4461 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4462 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4463 /usr/ucb/* ) ;;
4465 # OSF1 and SCO ODT 3.0 have their own names for install.
4466 # Don't use installbsd from OSF since it installs stuff as root
4467 # by default.
4468 for ac_prog in ginstall scoinst install; do
4469 for ac_exec_ext in '' $ac_executable_extensions; do
4470 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4471 if test $ac_prog = install &&
4472 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4473 # AIX install. It has an incompatible calling convention.
4475 elif test $ac_prog = install &&
4476 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4477 # program-specific install script used by HP pwplus--don't use.
4479 else
4480 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4481 break 3
4484 done
4485 done
4487 esac
4488 done
4489 IFS=$as_save_IFS
4493 if test "${ac_cv_path_install+set}" = set; then
4494 INSTALL=$ac_cv_path_install
4495 else
4496 # As a last resort, use the slow shell script. Don't cache a
4497 # value for INSTALL within a source directory, because that will
4498 # break other packages using the cache if that directory is
4499 # removed, or if the value is a relative name.
4500 INSTALL=$ac_install_sh
4503 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4504 echo "${ECHO_T}$INSTALL" >&6; }
4506 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4507 # It thinks the first close brace ends the variable substitution.
4508 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4510 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4512 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4515 # Not every filesystem supports hard links
4517 if test -z "$LN" ; then
4518 case $ac_sys_system in
4519 BeOS*) LN="ln -s";;
4520 CYGWIN*) LN="ln -s";;
4521 atheos*) LN="ln -s";;
4522 *) LN=ln;;
4523 esac
4526 # Check for --with-pydebug
4527 { echo "$as_me:$LINENO: checking for --with-pydebug" >&5
4528 echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6; }
4530 # Check whether --with-pydebug was given.
4531 if test "${with_pydebug+set}" = set; then
4532 withval=$with_pydebug;
4533 if test "$withval" != no
4534 then
4536 cat >>confdefs.h <<\_ACEOF
4537 #define Py_DEBUG 1
4538 _ACEOF
4540 { echo "$as_me:$LINENO: result: yes" >&5
4541 echo "${ECHO_T}yes" >&6; };
4542 Py_DEBUG='true'
4543 else { echo "$as_me:$LINENO: result: no" >&5
4544 echo "${ECHO_T}no" >&6; }; Py_DEBUG='false'
4546 else
4547 { echo "$as_me:$LINENO: result: no" >&5
4548 echo "${ECHO_T}no" >&6; }
4552 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
4553 # merged with this chunk of code?
4555 # Optimizer/debugger flags
4556 # ------------------------
4557 # (The following bit of code is complicated enough - please keep things
4558 # indented properly. Just pretend you're editing Python code. ;-)
4560 # There are two parallel sets of case statements below, one that checks to
4561 # see if OPT was set and one that does BASECFLAGS setting based upon
4562 # compiler and platform. BASECFLAGS tweaks need to be made even if the
4563 # user set OPT.
4565 # tweak OPT based on compiler and platform, only if the user didn't set
4566 # it on the command line
4568 if test -z "$OPT"
4569 then
4570 case $GCC in
4571 yes)
4572 if test "$CC" != 'g++' ; then
4573 STRICT_PROTO="-Wstrict-prototypes"
4575 # For gcc 4.x we need to use -fwrapv so lets check if its supported
4576 if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then
4577 WRAP="-fwrapv"
4579 case $ac_cv_prog_cc_g in
4580 yes)
4581 if test "$Py_DEBUG" = 'true' ; then
4582 # Optimization messes up debuggers, so turn it off for
4583 # debug builds.
4584 OPT="-g -Wall $STRICT_PROTO"
4585 else
4586 OPT="-g $WRAP -O3 -Wall $STRICT_PROTO"
4590 OPT="-O3 -Wall $STRICT_PROTO"
4592 esac
4593 case $ac_sys_system in
4594 SCO_SV*) OPT="$OPT -m486 -DSCO5"
4596 esac
4600 OPT="-O"
4602 esac
4607 # The -arch flags for universal builds on OSX
4608 UNIVERSAL_ARCH_FLAGS=
4611 # tweak BASECFLAGS based on compiler and platform
4612 case $GCC in
4613 yes)
4614 # Python violates C99 rules, by casting between incompatible
4615 # pointer types. GCC may generate bad code as a result of that,
4616 # so use -fno-strict-aliasing if supported.
4617 { echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5
4618 echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6; }
4619 ac_save_cc="$CC"
4620 CC="$CC -fno-strict-aliasing"
4621 if test "${ac_cv_no_strict_aliasing_ok+set}" = set; then
4622 echo $ECHO_N "(cached) $ECHO_C" >&6
4623 else
4624 if test "$cross_compiling" = yes; then
4625 ac_cv_no_strict_aliasing_ok=no
4626 else
4627 cat >conftest.$ac_ext <<_ACEOF
4628 /* confdefs.h. */
4629 _ACEOF
4630 cat confdefs.h >>conftest.$ac_ext
4631 cat >>conftest.$ac_ext <<_ACEOF
4632 /* end confdefs.h. */
4633 int main() { return 0; }
4634 _ACEOF
4635 rm -f conftest$ac_exeext
4636 if { (ac_try="$ac_link"
4637 case "(($ac_try" in
4638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4639 *) ac_try_echo=$ac_try;;
4640 esac
4641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4642 (eval "$ac_link") 2>&5
4643 ac_status=$?
4644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4645 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4646 { (case "(($ac_try" in
4647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4648 *) ac_try_echo=$ac_try;;
4649 esac
4650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4651 (eval "$ac_try") 2>&5
4652 ac_status=$?
4653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4654 (exit $ac_status); }; }; then
4655 ac_cv_no_strict_aliasing_ok=yes
4656 else
4657 echo "$as_me: program exited with status $ac_status" >&5
4658 echo "$as_me: failed program was:" >&5
4659 sed 's/^/| /' conftest.$ac_ext >&5
4661 ( exit $ac_status )
4662 ac_cv_no_strict_aliasing_ok=no
4664 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4670 CC="$ac_save_cc"
4671 { echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5
4672 echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6; }
4673 if test $ac_cv_no_strict_aliasing_ok = yes
4674 then
4675 BASECFLAGS="$BASECFLAGS -fno-strict-aliasing"
4678 # if using gcc on alpha, use -mieee to get (near) full IEEE 754
4679 # support. Without this, treatment of subnormals doesn't follow
4680 # the standard.
4681 case $ac_sys_machine in
4682 alpha*)
4683 BASECFLAGS="$BASECFLAGS -mieee"
4685 esac
4687 case $ac_sys_system in
4688 SCO_SV*)
4689 BASECFLAGS="$BASECFLAGS -m486 -DSCO5"
4691 # is there any other compiler on Darwin besides gcc?
4692 Darwin*)
4693 # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd
4694 # used to be here, but non-Apple gcc doesn't accept them.
4697 if test "${enable_universalsdk}"; then
4698 UNIVERSAL_ARCH_FLAGS=""
4699 if test "$UNIVERSAL_ARCHS" = "32-bit" ; then
4700 UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386"
4701 ARCH_RUN_32BIT=""
4703 elif test "$UNIVERSAL_ARCHS" = "64-bit" ; then
4704 UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64"
4705 ARCH_RUN_32BIT="true"
4707 elif test "$UNIVERSAL_ARCHS" = "all" ; then
4708 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64"
4709 ARCH_RUN_32BIT="arch -i386 -ppc"
4711 elif test "$UNIVERSAL_ARCHS" = "intel" ; then
4712 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch x86_64"
4713 ARCH_RUN_32BIT="arch -i386"
4715 elif test "$UNIVERSAL_ARCHS" = "3-way" ; then
4716 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch x86_64"
4717 ARCH_RUN_32BIT="arch -i386 -ppc"
4719 else
4720 { { echo "$as_me:$LINENO: error: proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" >&5
4721 echo "$as_me: error: proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" >&2;}
4722 { (exit 1); exit 1; }; }
4727 BASECFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${BASECFLAGS}"
4728 tgt=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
4729 if test "${UNIVERSALSDK}" != "/" -a "${tgt}" '>' '10.4' ; then
4730 CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}"
4734 # Calculate the right deployment target for this build.
4736 cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
4737 if test ${cur_target} '>' 10.2; then
4738 cur_target=10.3
4739 if test ${enable_universalsdk}; then
4740 if test "${UNIVERSAL_ARCHS}" = "all"; then
4741 # Ensure that the default platform for a
4742 # 4-way universal build is OSX 10.5,
4743 # that's the first OS release where
4744 # 4-way builds make sense.
4745 cur_target='10.5'
4747 elif test "${UNIVERSAL_ARCHS}" = "3-way"; then
4748 cur_target='10.5'
4750 elif test "${UNIVERSAL_ARCHS}" = "intel"; then
4751 cur_target='10.5'
4753 elif test "${UNIVERSAL_ARCHS}" = "64-bit"; then
4754 cur_target='10.5'
4756 else
4757 if test `arch` = "i386"; then
4758 # On Intel macs default to a deployment
4759 # target of 10.4, that's the first OSX
4760 # release with Intel support.
4761 cur_target="10.4"
4765 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
4767 # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the
4768 # environment with a value that is the same as what we'll use
4769 # in the Makefile to ensure that we'll get the same compiler
4770 # environment during configure and build time.
4771 MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET"
4772 export MACOSX_DEPLOYMENT_TARGET
4773 EXPORT_MACOSX_DEPLOYMENT_TARGET=''
4776 OSF*)
4777 BASECFLAGS="$BASECFLAGS -mieee"
4779 esac
4783 case $ac_sys_system in
4784 OpenUNIX*|UnixWare*)
4785 BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
4787 OSF*)
4788 BASECFLAGS="$BASECFLAGS -ieee -std"
4790 SCO_SV*)
4791 BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5"
4793 esac
4795 esac
4797 if test "$Py_DEBUG" = 'true'; then
4799 else
4800 OPT="-DNDEBUG $OPT"
4803 if test "$ac_arch_flags"
4804 then
4805 BASECFLAGS="$BASECFLAGS $ac_arch_flags"
4808 # disable check for icc since it seems to pass, but generates a warning
4809 if test "$CC" = icc
4810 then
4811 ac_cv_opt_olimit_ok=no
4814 { echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
4815 echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6; }
4816 if test "${ac_cv_opt_olimit_ok+set}" = set; then
4817 echo $ECHO_N "(cached) $ECHO_C" >&6
4818 else
4819 ac_save_cc="$CC"
4820 CC="$CC -OPT:Olimit=0"
4821 if test "$cross_compiling" = yes; then
4822 ac_cv_opt_olimit_ok=no
4823 else
4824 cat >conftest.$ac_ext <<_ACEOF
4825 /* confdefs.h. */
4826 _ACEOF
4827 cat confdefs.h >>conftest.$ac_ext
4828 cat >>conftest.$ac_ext <<_ACEOF
4829 /* end confdefs.h. */
4830 int main() { return 0; }
4831 _ACEOF
4832 rm -f conftest$ac_exeext
4833 if { (ac_try="$ac_link"
4834 case "(($ac_try" in
4835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4836 *) ac_try_echo=$ac_try;;
4837 esac
4838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4839 (eval "$ac_link") 2>&5
4840 ac_status=$?
4841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4843 { (case "(($ac_try" in
4844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4845 *) ac_try_echo=$ac_try;;
4846 esac
4847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4848 (eval "$ac_try") 2>&5
4849 ac_status=$?
4850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4851 (exit $ac_status); }; }; then
4852 ac_cv_opt_olimit_ok=yes
4853 else
4854 echo "$as_me: program exited with status $ac_status" >&5
4855 echo "$as_me: failed program was:" >&5
4856 sed 's/^/| /' conftest.$ac_ext >&5
4858 ( exit $ac_status )
4859 ac_cv_opt_olimit_ok=no
4861 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4865 CC="$ac_save_cc"
4868 { echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
4869 echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6; }
4870 if test $ac_cv_opt_olimit_ok = yes; then
4871 case $ac_sys_system in
4872 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
4873 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
4874 # environment?
4875 Darwin*)
4878 BASECFLAGS="$BASECFLAGS -OPT:Olimit=0"
4880 esac
4881 else
4882 { echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
4883 echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6; }
4884 if test "${ac_cv_olimit_ok+set}" = set; then
4885 echo $ECHO_N "(cached) $ECHO_C" >&6
4886 else
4887 ac_save_cc="$CC"
4888 CC="$CC -Olimit 1500"
4889 if test "$cross_compiling" = yes; then
4890 ac_cv_olimit_ok=no
4891 else
4892 cat >conftest.$ac_ext <<_ACEOF
4893 /* confdefs.h. */
4894 _ACEOF
4895 cat confdefs.h >>conftest.$ac_ext
4896 cat >>conftest.$ac_ext <<_ACEOF
4897 /* end confdefs.h. */
4898 int main() { return 0; }
4899 _ACEOF
4900 rm -f conftest$ac_exeext
4901 if { (ac_try="$ac_link"
4902 case "(($ac_try" in
4903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4904 *) ac_try_echo=$ac_try;;
4905 esac
4906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4907 (eval "$ac_link") 2>&5
4908 ac_status=$?
4909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4910 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4911 { (case "(($ac_try" in
4912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4913 *) ac_try_echo=$ac_try;;
4914 esac
4915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4916 (eval "$ac_try") 2>&5
4917 ac_status=$?
4918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4919 (exit $ac_status); }; }; then
4920 ac_cv_olimit_ok=yes
4921 else
4922 echo "$as_me: program exited with status $ac_status" >&5
4923 echo "$as_me: failed program was:" >&5
4924 sed 's/^/| /' conftest.$ac_ext >&5
4926 ( exit $ac_status )
4927 ac_cv_olimit_ok=no
4929 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4933 CC="$ac_save_cc"
4936 { echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
4937 echo "${ECHO_T}$ac_cv_olimit_ok" >&6; }
4938 if test $ac_cv_olimit_ok = yes; then
4939 BASECFLAGS="$BASECFLAGS -Olimit 1500"
4943 # Check whether GCC supports PyArg_ParseTuple format
4944 if test "$GCC" = "yes"
4945 then
4946 { echo "$as_me:$LINENO: checking whether gcc supports ParseTuple __format__" >&5
4947 echo $ECHO_N "checking whether gcc supports ParseTuple __format__... $ECHO_C" >&6; }
4948 save_CFLAGS=$CFLAGS
4949 CFLAGS="$CFLAGS -Werror"
4950 cat >conftest.$ac_ext <<_ACEOF
4951 /* confdefs.h. */
4952 _ACEOF
4953 cat confdefs.h >>conftest.$ac_ext
4954 cat >>conftest.$ac_ext <<_ACEOF
4955 /* end confdefs.h. */
4957 void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2)));
4960 main ()
4964 return 0;
4966 _ACEOF
4967 rm -f conftest.$ac_objext
4968 if { (ac_try="$ac_compile"
4969 case "(($ac_try" in
4970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4971 *) ac_try_echo=$ac_try;;
4972 esac
4973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4974 (eval "$ac_compile") 2>conftest.er1
4975 ac_status=$?
4976 grep -v '^ *+' conftest.er1 >conftest.err
4977 rm -f conftest.er1
4978 cat conftest.err >&5
4979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4980 (exit $ac_status); } && {
4981 test -z "$ac_c_werror_flag" ||
4982 test ! -s conftest.err
4983 } && test -s conftest.$ac_objext; then
4985 cat >>confdefs.h <<\_ACEOF
4986 #define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1
4987 _ACEOF
4989 { echo "$as_me:$LINENO: result: yes" >&5
4990 echo "${ECHO_T}yes" >&6; }
4991 else
4992 echo "$as_me: failed program was:" >&5
4993 sed 's/^/| /' conftest.$ac_ext >&5
4995 { echo "$as_me:$LINENO: result: no" >&5
4996 echo "${ECHO_T}no" >&6; }
5000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5001 CFLAGS=$save_CFLAGS
5004 # On some compilers, pthreads are available without further options
5005 # (e.g. MacOS X). On some of these systems, the compiler will not
5006 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
5007 # So we have to see first whether pthreads are available without
5008 # options before we can check whether -Kpthread improves anything.
5009 { echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
5010 echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6; }
5011 if test "${ac_cv_pthread_is_default+set}" = set; then
5012 echo $ECHO_N "(cached) $ECHO_C" >&6
5013 else
5014 if test "$cross_compiling" = yes; then
5015 ac_cv_pthread_is_default=no
5016 else
5017 cat >conftest.$ac_ext <<_ACEOF
5018 /* confdefs.h. */
5019 _ACEOF
5020 cat confdefs.h >>conftest.$ac_ext
5021 cat >>conftest.$ac_ext <<_ACEOF
5022 /* end confdefs.h. */
5024 #include <pthread.h>
5026 void* routine(void* p){return NULL;}
5028 int main(){
5029 pthread_t p;
5030 if(pthread_create(&p,NULL,routine,NULL)!=0)
5031 return 1;
5032 (void)pthread_detach(p);
5033 return 0;
5036 _ACEOF
5037 rm -f conftest$ac_exeext
5038 if { (ac_try="$ac_link"
5039 case "(($ac_try" in
5040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5041 *) ac_try_echo=$ac_try;;
5042 esac
5043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5044 (eval "$ac_link") 2>&5
5045 ac_status=$?
5046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5047 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5048 { (case "(($ac_try" in
5049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5050 *) ac_try_echo=$ac_try;;
5051 esac
5052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5053 (eval "$ac_try") 2>&5
5054 ac_status=$?
5055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5056 (exit $ac_status); }; }; then
5058 ac_cv_pthread_is_default=yes
5059 ac_cv_kthread=no
5060 ac_cv_pthread=no
5062 else
5063 echo "$as_me: program exited with status $ac_status" >&5
5064 echo "$as_me: failed program was:" >&5
5065 sed 's/^/| /' conftest.$ac_ext >&5
5067 ( exit $ac_status )
5068 ac_cv_pthread_is_default=no
5070 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5077 { echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
5078 echo "${ECHO_T}$ac_cv_pthread_is_default" >&6; }
5081 if test $ac_cv_pthread_is_default = yes
5082 then
5083 ac_cv_kpthread=no
5084 else
5085 # -Kpthread, if available, provides the right #defines
5086 # and linker options to make pthread_create available
5087 # Some compilers won't report that they do not support -Kpthread,
5088 # so we need to run a program to see whether it really made the
5089 # function available.
5090 { echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
5091 echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6; }
5092 if test "${ac_cv_kpthread+set}" = set; then
5093 echo $ECHO_N "(cached) $ECHO_C" >&6
5094 else
5095 ac_save_cc="$CC"
5096 CC="$CC -Kpthread"
5097 if test "$cross_compiling" = yes; then
5098 ac_cv_kpthread=no
5099 else
5100 cat >conftest.$ac_ext <<_ACEOF
5101 /* confdefs.h. */
5102 _ACEOF
5103 cat confdefs.h >>conftest.$ac_ext
5104 cat >>conftest.$ac_ext <<_ACEOF
5105 /* end confdefs.h. */
5107 #include <pthread.h>
5109 void* routine(void* p){return NULL;}
5111 int main(){
5112 pthread_t p;
5113 if(pthread_create(&p,NULL,routine,NULL)!=0)
5114 return 1;
5115 (void)pthread_detach(p);
5116 return 0;
5119 _ACEOF
5120 rm -f conftest$ac_exeext
5121 if { (ac_try="$ac_link"
5122 case "(($ac_try" in
5123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5124 *) ac_try_echo=$ac_try;;
5125 esac
5126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5127 (eval "$ac_link") 2>&5
5128 ac_status=$?
5129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5130 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5131 { (case "(($ac_try" in
5132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5133 *) ac_try_echo=$ac_try;;
5134 esac
5135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5136 (eval "$ac_try") 2>&5
5137 ac_status=$?
5138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5139 (exit $ac_status); }; }; then
5140 ac_cv_kpthread=yes
5141 else
5142 echo "$as_me: program exited with status $ac_status" >&5
5143 echo "$as_me: failed program was:" >&5
5144 sed 's/^/| /' conftest.$ac_ext >&5
5146 ( exit $ac_status )
5147 ac_cv_kpthread=no
5149 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5153 CC="$ac_save_cc"
5156 { echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
5157 echo "${ECHO_T}$ac_cv_kpthread" >&6; }
5160 if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no
5161 then
5162 # -Kthread, if available, provides the right #defines
5163 # and linker options to make pthread_create available
5164 # Some compilers won't report that they do not support -Kthread,
5165 # so we need to run a program to see whether it really made the
5166 # function available.
5167 { echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
5168 echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6; }
5169 if test "${ac_cv_kthread+set}" = set; then
5170 echo $ECHO_N "(cached) $ECHO_C" >&6
5171 else
5172 ac_save_cc="$CC"
5173 CC="$CC -Kthread"
5174 if test "$cross_compiling" = yes; then
5175 ac_cv_kthread=no
5176 else
5177 cat >conftest.$ac_ext <<_ACEOF
5178 /* confdefs.h. */
5179 _ACEOF
5180 cat confdefs.h >>conftest.$ac_ext
5181 cat >>conftest.$ac_ext <<_ACEOF
5182 /* end confdefs.h. */
5184 #include <pthread.h>
5186 void* routine(void* p){return NULL;}
5188 int main(){
5189 pthread_t p;
5190 if(pthread_create(&p,NULL,routine,NULL)!=0)
5191 return 1;
5192 (void)pthread_detach(p);
5193 return 0;
5196 _ACEOF
5197 rm -f conftest$ac_exeext
5198 if { (ac_try="$ac_link"
5199 case "(($ac_try" in
5200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5201 *) ac_try_echo=$ac_try;;
5202 esac
5203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5204 (eval "$ac_link") 2>&5
5205 ac_status=$?
5206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5207 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5208 { (case "(($ac_try" in
5209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5210 *) ac_try_echo=$ac_try;;
5211 esac
5212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5213 (eval "$ac_try") 2>&5
5214 ac_status=$?
5215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5216 (exit $ac_status); }; }; then
5217 ac_cv_kthread=yes
5218 else
5219 echo "$as_me: program exited with status $ac_status" >&5
5220 echo "$as_me: failed program was:" >&5
5221 sed 's/^/| /' conftest.$ac_ext >&5
5223 ( exit $ac_status )
5224 ac_cv_kthread=no
5226 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5230 CC="$ac_save_cc"
5233 { echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
5234 echo "${ECHO_T}$ac_cv_kthread" >&6; }
5237 if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no
5238 then
5239 # -pthread, if available, provides the right #defines
5240 # and linker options to make pthread_create available
5241 # Some compilers won't report that they do not support -pthread,
5242 # so we need to run a program to see whether it really made the
5243 # function available.
5244 { echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
5245 echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6; }
5246 if test "${ac_cv_thread+set}" = set; then
5247 echo $ECHO_N "(cached) $ECHO_C" >&6
5248 else
5249 ac_save_cc="$CC"
5250 CC="$CC -pthread"
5251 if test "$cross_compiling" = yes; then
5252 ac_cv_pthread=no
5253 else
5254 cat >conftest.$ac_ext <<_ACEOF
5255 /* confdefs.h. */
5256 _ACEOF
5257 cat confdefs.h >>conftest.$ac_ext
5258 cat >>conftest.$ac_ext <<_ACEOF
5259 /* end confdefs.h. */
5261 #include <pthread.h>
5263 void* routine(void* p){return NULL;}
5265 int main(){
5266 pthread_t p;
5267 if(pthread_create(&p,NULL,routine,NULL)!=0)
5268 return 1;
5269 (void)pthread_detach(p);
5270 return 0;
5273 _ACEOF
5274 rm -f conftest$ac_exeext
5275 if { (ac_try="$ac_link"
5276 case "(($ac_try" in
5277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5278 *) ac_try_echo=$ac_try;;
5279 esac
5280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5281 (eval "$ac_link") 2>&5
5282 ac_status=$?
5283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5284 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5285 { (case "(($ac_try" in
5286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5287 *) ac_try_echo=$ac_try;;
5288 esac
5289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5290 (eval "$ac_try") 2>&5
5291 ac_status=$?
5292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5293 (exit $ac_status); }; }; then
5294 ac_cv_pthread=yes
5295 else
5296 echo "$as_me: program exited with status $ac_status" >&5
5297 echo "$as_me: failed program was:" >&5
5298 sed 's/^/| /' conftest.$ac_ext >&5
5300 ( exit $ac_status )
5301 ac_cv_pthread=no
5303 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5307 CC="$ac_save_cc"
5310 { echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
5311 echo "${ECHO_T}$ac_cv_pthread" >&6; }
5314 # If we have set a CC compiler flag for thread support then
5315 # check if it works for CXX, too.
5316 ac_cv_cxx_thread=no
5317 if test ! -z "$CXX"
5318 then
5319 { echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5
5320 echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6; }
5321 ac_save_cxx="$CXX"
5323 if test "$ac_cv_kpthread" = "yes"
5324 then
5325 CXX="$CXX -Kpthread"
5326 ac_cv_cxx_thread=yes
5327 elif test "$ac_cv_kthread" = "yes"
5328 then
5329 CXX="$CXX -Kthread"
5330 ac_cv_cxx_thread=yes
5331 elif test "$ac_cv_pthread" = "yes"
5332 then
5333 CXX="$CXX -pthread"
5334 ac_cv_cxx_thread=yes
5337 if test $ac_cv_cxx_thread = yes
5338 then
5339 echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext
5340 $CXX -c conftest.$ac_ext 2>&5
5341 if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \
5342 && test -s conftest$ac_exeext && ./conftest$ac_exeext
5343 then
5344 ac_cv_cxx_thread=yes
5345 else
5346 ac_cv_cxx_thread=no
5348 rm -fr conftest*
5350 { echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
5351 echo "${ECHO_T}$ac_cv_cxx_thread" >&6; }
5353 CXX="$ac_save_cxx"
5356 # checks for header files
5357 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5358 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5359 if test "${ac_cv_header_stdc+set}" = set; then
5360 echo $ECHO_N "(cached) $ECHO_C" >&6
5361 else
5362 cat >conftest.$ac_ext <<_ACEOF
5363 /* confdefs.h. */
5364 _ACEOF
5365 cat confdefs.h >>conftest.$ac_ext
5366 cat >>conftest.$ac_ext <<_ACEOF
5367 /* end confdefs.h. */
5368 #include <stdlib.h>
5369 #include <stdarg.h>
5370 #include <string.h>
5371 #include <float.h>
5374 main ()
5378 return 0;
5380 _ACEOF
5381 rm -f conftest.$ac_objext
5382 if { (ac_try="$ac_compile"
5383 case "(($ac_try" in
5384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5385 *) ac_try_echo=$ac_try;;
5386 esac
5387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5388 (eval "$ac_compile") 2>conftest.er1
5389 ac_status=$?
5390 grep -v '^ *+' conftest.er1 >conftest.err
5391 rm -f conftest.er1
5392 cat conftest.err >&5
5393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5394 (exit $ac_status); } && {
5395 test -z "$ac_c_werror_flag" ||
5396 test ! -s conftest.err
5397 } && test -s conftest.$ac_objext; then
5398 ac_cv_header_stdc=yes
5399 else
5400 echo "$as_me: failed program was:" >&5
5401 sed 's/^/| /' conftest.$ac_ext >&5
5403 ac_cv_header_stdc=no
5406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5408 if test $ac_cv_header_stdc = yes; then
5409 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5410 cat >conftest.$ac_ext <<_ACEOF
5411 /* confdefs.h. */
5412 _ACEOF
5413 cat confdefs.h >>conftest.$ac_ext
5414 cat >>conftest.$ac_ext <<_ACEOF
5415 /* end confdefs.h. */
5416 #include <string.h>
5418 _ACEOF
5419 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5420 $EGREP "memchr" >/dev/null 2>&1; then
5422 else
5423 ac_cv_header_stdc=no
5425 rm -f -r conftest*
5429 if test $ac_cv_header_stdc = yes; then
5430 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5431 cat >conftest.$ac_ext <<_ACEOF
5432 /* confdefs.h. */
5433 _ACEOF
5434 cat confdefs.h >>conftest.$ac_ext
5435 cat >>conftest.$ac_ext <<_ACEOF
5436 /* end confdefs.h. */
5437 #include <stdlib.h>
5439 _ACEOF
5440 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5441 $EGREP "free" >/dev/null 2>&1; then
5443 else
5444 ac_cv_header_stdc=no
5446 rm -f -r conftest*
5450 if test $ac_cv_header_stdc = yes; then
5451 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5452 if test "$cross_compiling" = yes; then
5454 else
5455 cat >conftest.$ac_ext <<_ACEOF
5456 /* confdefs.h. */
5457 _ACEOF
5458 cat confdefs.h >>conftest.$ac_ext
5459 cat >>conftest.$ac_ext <<_ACEOF
5460 /* end confdefs.h. */
5461 #include <ctype.h>
5462 #include <stdlib.h>
5463 #if ((' ' & 0x0FF) == 0x020)
5464 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5465 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5466 #else
5467 # define ISLOWER(c) \
5468 (('a' <= (c) && (c) <= 'i') \
5469 || ('j' <= (c) && (c) <= 'r') \
5470 || ('s' <= (c) && (c) <= 'z'))
5471 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5472 #endif
5474 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5476 main ()
5478 int i;
5479 for (i = 0; i < 256; i++)
5480 if (XOR (islower (i), ISLOWER (i))
5481 || toupper (i) != TOUPPER (i))
5482 return 2;
5483 return 0;
5485 _ACEOF
5486 rm -f conftest$ac_exeext
5487 if { (ac_try="$ac_link"
5488 case "(($ac_try" in
5489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5490 *) ac_try_echo=$ac_try;;
5491 esac
5492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5493 (eval "$ac_link") 2>&5
5494 ac_status=$?
5495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5496 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5497 { (case "(($ac_try" in
5498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5499 *) ac_try_echo=$ac_try;;
5500 esac
5501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5502 (eval "$ac_try") 2>&5
5503 ac_status=$?
5504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5505 (exit $ac_status); }; }; then
5507 else
5508 echo "$as_me: program exited with status $ac_status" >&5
5509 echo "$as_me: failed program was:" >&5
5510 sed 's/^/| /' conftest.$ac_ext >&5
5512 ( exit $ac_status )
5513 ac_cv_header_stdc=no
5515 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5521 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5522 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5523 if test $ac_cv_header_stdc = yes; then
5525 cat >>confdefs.h <<\_ACEOF
5526 #define STDC_HEADERS 1
5527 _ACEOF
5531 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5541 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5542 inttypes.h stdint.h unistd.h
5544 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5545 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5546 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5547 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5548 echo $ECHO_N "(cached) $ECHO_C" >&6
5549 else
5550 cat >conftest.$ac_ext <<_ACEOF
5551 /* confdefs.h. */
5552 _ACEOF
5553 cat confdefs.h >>conftest.$ac_ext
5554 cat >>conftest.$ac_ext <<_ACEOF
5555 /* end confdefs.h. */
5556 $ac_includes_default
5558 #include <$ac_header>
5559 _ACEOF
5560 rm -f conftest.$ac_objext
5561 if { (ac_try="$ac_compile"
5562 case "(($ac_try" in
5563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5564 *) ac_try_echo=$ac_try;;
5565 esac
5566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5567 (eval "$ac_compile") 2>conftest.er1
5568 ac_status=$?
5569 grep -v '^ *+' conftest.er1 >conftest.err
5570 rm -f conftest.er1
5571 cat conftest.err >&5
5572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5573 (exit $ac_status); } && {
5574 test -z "$ac_c_werror_flag" ||
5575 test ! -s conftest.err
5576 } && test -s conftest.$ac_objext; then
5577 eval "$as_ac_Header=yes"
5578 else
5579 echo "$as_me: failed program was:" >&5
5580 sed 's/^/| /' conftest.$ac_ext >&5
5582 eval "$as_ac_Header=no"
5585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5587 ac_res=`eval echo '${'$as_ac_Header'}'`
5588 { echo "$as_me:$LINENO: result: $ac_res" >&5
5589 echo "${ECHO_T}$ac_res" >&6; }
5590 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5591 cat >>confdefs.h <<_ACEOF
5592 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5593 _ACEOF
5597 done
5654 for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \
5655 fcntl.h grp.h \
5656 ieeefp.h io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \
5657 shadow.h signal.h stdint.h stropts.h termios.h thread.h \
5658 unistd.h utime.h \
5659 sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \
5660 sys/lock.h sys/mkdev.h sys/modem.h \
5661 sys/param.h sys/poll.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \
5662 sys/termio.h sys/time.h \
5663 sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \
5664 sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
5665 bluetooth/bluetooth.h linux/tipc.h
5667 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5668 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5669 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5670 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5671 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5672 echo $ECHO_N "(cached) $ECHO_C" >&6
5674 ac_res=`eval echo '${'$as_ac_Header'}'`
5675 { echo "$as_me:$LINENO: result: $ac_res" >&5
5676 echo "${ECHO_T}$ac_res" >&6; }
5677 else
5678 # Is the header compilable?
5679 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5680 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5681 cat >conftest.$ac_ext <<_ACEOF
5682 /* confdefs.h. */
5683 _ACEOF
5684 cat confdefs.h >>conftest.$ac_ext
5685 cat >>conftest.$ac_ext <<_ACEOF
5686 /* end confdefs.h. */
5687 $ac_includes_default
5688 #include <$ac_header>
5689 _ACEOF
5690 rm -f conftest.$ac_objext
5691 if { (ac_try="$ac_compile"
5692 case "(($ac_try" in
5693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5694 *) ac_try_echo=$ac_try;;
5695 esac
5696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5697 (eval "$ac_compile") 2>conftest.er1
5698 ac_status=$?
5699 grep -v '^ *+' conftest.er1 >conftest.err
5700 rm -f conftest.er1
5701 cat conftest.err >&5
5702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5703 (exit $ac_status); } && {
5704 test -z "$ac_c_werror_flag" ||
5705 test ! -s conftest.err
5706 } && test -s conftest.$ac_objext; then
5707 ac_header_compiler=yes
5708 else
5709 echo "$as_me: failed program was:" >&5
5710 sed 's/^/| /' conftest.$ac_ext >&5
5712 ac_header_compiler=no
5715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5716 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5717 echo "${ECHO_T}$ac_header_compiler" >&6; }
5719 # Is the header present?
5720 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5721 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5722 cat >conftest.$ac_ext <<_ACEOF
5723 /* confdefs.h. */
5724 _ACEOF
5725 cat confdefs.h >>conftest.$ac_ext
5726 cat >>conftest.$ac_ext <<_ACEOF
5727 /* end confdefs.h. */
5728 #include <$ac_header>
5729 _ACEOF
5730 if { (ac_try="$ac_cpp conftest.$ac_ext"
5731 case "(($ac_try" in
5732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5733 *) ac_try_echo=$ac_try;;
5734 esac
5735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5736 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5737 ac_status=$?
5738 grep -v '^ *+' conftest.er1 >conftest.err
5739 rm -f conftest.er1
5740 cat conftest.err >&5
5741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5742 (exit $ac_status); } >/dev/null && {
5743 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5744 test ! -s conftest.err
5745 }; then
5746 ac_header_preproc=yes
5747 else
5748 echo "$as_me: failed program was:" >&5
5749 sed 's/^/| /' conftest.$ac_ext >&5
5751 ac_header_preproc=no
5754 rm -f conftest.err conftest.$ac_ext
5755 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5756 echo "${ECHO_T}$ac_header_preproc" >&6; }
5758 # So? What about this header?
5759 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5760 yes:no: )
5761 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5762 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5763 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5764 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5765 ac_header_preproc=yes
5767 no:yes:* )
5768 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5769 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5770 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5771 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5772 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5773 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5774 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5775 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5776 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5777 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5778 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5779 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5780 ( cat <<\_ASBOX
5781 ## -------------------------------------- ##
5782 ## Report this to http://bugs.python.org/ ##
5783 ## -------------------------------------- ##
5784 _ASBOX
5785 ) | sed "s/^/$as_me: WARNING: /" >&2
5787 esac
5788 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5789 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5790 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5791 echo $ECHO_N "(cached) $ECHO_C" >&6
5792 else
5793 eval "$as_ac_Header=\$ac_header_preproc"
5795 ac_res=`eval echo '${'$as_ac_Header'}'`
5796 { echo "$as_me:$LINENO: result: $ac_res" >&5
5797 echo "${ECHO_T}$ac_res" >&6; }
5800 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5801 cat >>confdefs.h <<_ACEOF
5802 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5803 _ACEOF
5807 done
5814 ac_header_dirent=no
5815 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5816 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5817 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5818 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
5819 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5820 echo $ECHO_N "(cached) $ECHO_C" >&6
5821 else
5822 cat >conftest.$ac_ext <<_ACEOF
5823 /* confdefs.h. */
5824 _ACEOF
5825 cat confdefs.h >>conftest.$ac_ext
5826 cat >>conftest.$ac_ext <<_ACEOF
5827 /* end confdefs.h. */
5828 #include <sys/types.h>
5829 #include <$ac_hdr>
5832 main ()
5834 if ((DIR *) 0)
5835 return 0;
5837 return 0;
5839 _ACEOF
5840 rm -f conftest.$ac_objext
5841 if { (ac_try="$ac_compile"
5842 case "(($ac_try" in
5843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5844 *) ac_try_echo=$ac_try;;
5845 esac
5846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5847 (eval "$ac_compile") 2>conftest.er1
5848 ac_status=$?
5849 grep -v '^ *+' conftest.er1 >conftest.err
5850 rm -f conftest.er1
5851 cat conftest.err >&5
5852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5853 (exit $ac_status); } && {
5854 test -z "$ac_c_werror_flag" ||
5855 test ! -s conftest.err
5856 } && test -s conftest.$ac_objext; then
5857 eval "$as_ac_Header=yes"
5858 else
5859 echo "$as_me: failed program was:" >&5
5860 sed 's/^/| /' conftest.$ac_ext >&5
5862 eval "$as_ac_Header=no"
5865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5867 ac_res=`eval echo '${'$as_ac_Header'}'`
5868 { echo "$as_me:$LINENO: result: $ac_res" >&5
5869 echo "${ECHO_T}$ac_res" >&6; }
5870 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5871 cat >>confdefs.h <<_ACEOF
5872 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5873 _ACEOF
5875 ac_header_dirent=$ac_hdr; break
5878 done
5879 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5880 if test $ac_header_dirent = dirent.h; then
5881 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5882 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5883 if test "${ac_cv_search_opendir+set}" = set; then
5884 echo $ECHO_N "(cached) $ECHO_C" >&6
5885 else
5886 ac_func_search_save_LIBS=$LIBS
5887 cat >conftest.$ac_ext <<_ACEOF
5888 /* confdefs.h. */
5889 _ACEOF
5890 cat confdefs.h >>conftest.$ac_ext
5891 cat >>conftest.$ac_ext <<_ACEOF
5892 /* end confdefs.h. */
5894 /* Override any GCC internal prototype to avoid an error.
5895 Use char because int might match the return type of a GCC
5896 builtin and then its argument prototype would still apply. */
5897 #ifdef __cplusplus
5898 extern "C"
5899 #endif
5900 char opendir ();
5902 main ()
5904 return opendir ();
5906 return 0;
5908 _ACEOF
5909 for ac_lib in '' dir; do
5910 if test -z "$ac_lib"; then
5911 ac_res="none required"
5912 else
5913 ac_res=-l$ac_lib
5914 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5916 rm -f conftest.$ac_objext conftest$ac_exeext
5917 if { (ac_try="$ac_link"
5918 case "(($ac_try" in
5919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5920 *) ac_try_echo=$ac_try;;
5921 esac
5922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5923 (eval "$ac_link") 2>conftest.er1
5924 ac_status=$?
5925 grep -v '^ *+' conftest.er1 >conftest.err
5926 rm -f conftest.er1
5927 cat conftest.err >&5
5928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929 (exit $ac_status); } && {
5930 test -z "$ac_c_werror_flag" ||
5931 test ! -s conftest.err
5932 } && test -s conftest$ac_exeext &&
5933 $as_test_x conftest$ac_exeext; then
5934 ac_cv_search_opendir=$ac_res
5935 else
5936 echo "$as_me: failed program was:" >&5
5937 sed 's/^/| /' conftest.$ac_ext >&5
5942 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5943 conftest$ac_exeext
5944 if test "${ac_cv_search_opendir+set}" = set; then
5945 break
5947 done
5948 if test "${ac_cv_search_opendir+set}" = set; then
5950 else
5951 ac_cv_search_opendir=no
5953 rm conftest.$ac_ext
5954 LIBS=$ac_func_search_save_LIBS
5956 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5957 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5958 ac_res=$ac_cv_search_opendir
5959 if test "$ac_res" != no; then
5960 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5964 else
5965 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5966 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5967 if test "${ac_cv_search_opendir+set}" = set; then
5968 echo $ECHO_N "(cached) $ECHO_C" >&6
5969 else
5970 ac_func_search_save_LIBS=$LIBS
5971 cat >conftest.$ac_ext <<_ACEOF
5972 /* confdefs.h. */
5973 _ACEOF
5974 cat confdefs.h >>conftest.$ac_ext
5975 cat >>conftest.$ac_ext <<_ACEOF
5976 /* end confdefs.h. */
5978 /* Override any GCC internal prototype to avoid an error.
5979 Use char because int might match the return type of a GCC
5980 builtin and then its argument prototype would still apply. */
5981 #ifdef __cplusplus
5982 extern "C"
5983 #endif
5984 char opendir ();
5986 main ()
5988 return opendir ();
5990 return 0;
5992 _ACEOF
5993 for ac_lib in '' x; do
5994 if test -z "$ac_lib"; then
5995 ac_res="none required"
5996 else
5997 ac_res=-l$ac_lib
5998 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6000 rm -f conftest.$ac_objext conftest$ac_exeext
6001 if { (ac_try="$ac_link"
6002 case "(($ac_try" in
6003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6004 *) ac_try_echo=$ac_try;;
6005 esac
6006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6007 (eval "$ac_link") 2>conftest.er1
6008 ac_status=$?
6009 grep -v '^ *+' conftest.er1 >conftest.err
6010 rm -f conftest.er1
6011 cat conftest.err >&5
6012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6013 (exit $ac_status); } && {
6014 test -z "$ac_c_werror_flag" ||
6015 test ! -s conftest.err
6016 } && test -s conftest$ac_exeext &&
6017 $as_test_x conftest$ac_exeext; then
6018 ac_cv_search_opendir=$ac_res
6019 else
6020 echo "$as_me: failed program was:" >&5
6021 sed 's/^/| /' conftest.$ac_ext >&5
6026 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6027 conftest$ac_exeext
6028 if test "${ac_cv_search_opendir+set}" = set; then
6029 break
6031 done
6032 if test "${ac_cv_search_opendir+set}" = set; then
6034 else
6035 ac_cv_search_opendir=no
6037 rm conftest.$ac_ext
6038 LIBS=$ac_func_search_save_LIBS
6040 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6041 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
6042 ac_res=$ac_cv_search_opendir
6043 if test "$ac_res" != no; then
6044 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6050 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
6051 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
6052 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
6053 echo $ECHO_N "(cached) $ECHO_C" >&6
6054 else
6055 cat >conftest.$ac_ext <<_ACEOF
6056 /* confdefs.h. */
6057 _ACEOF
6058 cat confdefs.h >>conftest.$ac_ext
6059 cat >>conftest.$ac_ext <<_ACEOF
6060 /* end confdefs.h. */
6061 #include <sys/types.h>
6063 main ()
6065 return makedev(0, 0);
6067 return 0;
6069 _ACEOF
6070 rm -f conftest.$ac_objext conftest$ac_exeext
6071 if { (ac_try="$ac_link"
6072 case "(($ac_try" in
6073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6074 *) ac_try_echo=$ac_try;;
6075 esac
6076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6077 (eval "$ac_link") 2>conftest.er1
6078 ac_status=$?
6079 grep -v '^ *+' conftest.er1 >conftest.err
6080 rm -f conftest.er1
6081 cat conftest.err >&5
6082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6083 (exit $ac_status); } && {
6084 test -z "$ac_c_werror_flag" ||
6085 test ! -s conftest.err
6086 } && test -s conftest$ac_exeext &&
6087 $as_test_x conftest$ac_exeext; then
6088 ac_cv_header_sys_types_h_makedev=yes
6089 else
6090 echo "$as_me: failed program was:" >&5
6091 sed 's/^/| /' conftest.$ac_ext >&5
6093 ac_cv_header_sys_types_h_makedev=no
6096 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6097 conftest$ac_exeext conftest.$ac_ext
6100 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
6101 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
6103 if test $ac_cv_header_sys_types_h_makedev = no; then
6104 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6105 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6106 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
6107 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6108 echo $ECHO_N "(cached) $ECHO_C" >&6
6110 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6111 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
6112 else
6113 # Is the header compilable?
6114 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
6115 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
6116 cat >conftest.$ac_ext <<_ACEOF
6117 /* confdefs.h. */
6118 _ACEOF
6119 cat confdefs.h >>conftest.$ac_ext
6120 cat >>conftest.$ac_ext <<_ACEOF
6121 /* end confdefs.h. */
6122 $ac_includes_default
6123 #include <sys/mkdev.h>
6124 _ACEOF
6125 rm -f conftest.$ac_objext
6126 if { (ac_try="$ac_compile"
6127 case "(($ac_try" in
6128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6129 *) ac_try_echo=$ac_try;;
6130 esac
6131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6132 (eval "$ac_compile") 2>conftest.er1
6133 ac_status=$?
6134 grep -v '^ *+' conftest.er1 >conftest.err
6135 rm -f conftest.er1
6136 cat conftest.err >&5
6137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138 (exit $ac_status); } && {
6139 test -z "$ac_c_werror_flag" ||
6140 test ! -s conftest.err
6141 } && test -s conftest.$ac_objext; then
6142 ac_header_compiler=yes
6143 else
6144 echo "$as_me: failed program was:" >&5
6145 sed 's/^/| /' conftest.$ac_ext >&5
6147 ac_header_compiler=no
6150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6151 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6152 echo "${ECHO_T}$ac_header_compiler" >&6; }
6154 # Is the header present?
6155 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
6156 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
6157 cat >conftest.$ac_ext <<_ACEOF
6158 /* confdefs.h. */
6159 _ACEOF
6160 cat confdefs.h >>conftest.$ac_ext
6161 cat >>conftest.$ac_ext <<_ACEOF
6162 /* end confdefs.h. */
6163 #include <sys/mkdev.h>
6164 _ACEOF
6165 if { (ac_try="$ac_cpp conftest.$ac_ext"
6166 case "(($ac_try" in
6167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6168 *) ac_try_echo=$ac_try;;
6169 esac
6170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6171 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6172 ac_status=$?
6173 grep -v '^ *+' conftest.er1 >conftest.err
6174 rm -f conftest.er1
6175 cat conftest.err >&5
6176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6177 (exit $ac_status); } >/dev/null && {
6178 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6179 test ! -s conftest.err
6180 }; then
6181 ac_header_preproc=yes
6182 else
6183 echo "$as_me: failed program was:" >&5
6184 sed 's/^/| /' conftest.$ac_ext >&5
6186 ac_header_preproc=no
6189 rm -f conftest.err conftest.$ac_ext
6190 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6191 echo "${ECHO_T}$ac_header_preproc" >&6; }
6193 # So? What about this header?
6194 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6195 yes:no: )
6196 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
6197 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6198 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
6199 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
6200 ac_header_preproc=yes
6202 no:yes:* )
6203 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
6204 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
6205 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
6206 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
6207 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
6208 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
6209 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
6210 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
6211 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
6212 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
6213 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
6214 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
6215 ( cat <<\_ASBOX
6216 ## -------------------------------------- ##
6217 ## Report this to http://bugs.python.org/ ##
6218 ## -------------------------------------- ##
6219 _ASBOX
6220 ) | sed "s/^/$as_me: WARNING: /" >&2
6222 esac
6223 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6224 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
6225 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6226 echo $ECHO_N "(cached) $ECHO_C" >&6
6227 else
6228 ac_cv_header_sys_mkdev_h=$ac_header_preproc
6230 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6231 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
6234 if test $ac_cv_header_sys_mkdev_h = yes; then
6236 cat >>confdefs.h <<\_ACEOF
6237 #define MAJOR_IN_MKDEV 1
6238 _ACEOF
6244 if test $ac_cv_header_sys_mkdev_h = no; then
6245 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6246 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6247 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6248 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6249 echo $ECHO_N "(cached) $ECHO_C" >&6
6251 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6252 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6253 else
6254 # Is the header compilable?
6255 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
6256 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
6257 cat >conftest.$ac_ext <<_ACEOF
6258 /* confdefs.h. */
6259 _ACEOF
6260 cat confdefs.h >>conftest.$ac_ext
6261 cat >>conftest.$ac_ext <<_ACEOF
6262 /* end confdefs.h. */
6263 $ac_includes_default
6264 #include <sys/sysmacros.h>
6265 _ACEOF
6266 rm -f conftest.$ac_objext
6267 if { (ac_try="$ac_compile"
6268 case "(($ac_try" in
6269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6270 *) ac_try_echo=$ac_try;;
6271 esac
6272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6273 (eval "$ac_compile") 2>conftest.er1
6274 ac_status=$?
6275 grep -v '^ *+' conftest.er1 >conftest.err
6276 rm -f conftest.er1
6277 cat conftest.err >&5
6278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6279 (exit $ac_status); } && {
6280 test -z "$ac_c_werror_flag" ||
6281 test ! -s conftest.err
6282 } && test -s conftest.$ac_objext; then
6283 ac_header_compiler=yes
6284 else
6285 echo "$as_me: failed program was:" >&5
6286 sed 's/^/| /' conftest.$ac_ext >&5
6288 ac_header_compiler=no
6291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6292 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6293 echo "${ECHO_T}$ac_header_compiler" >&6; }
6295 # Is the header present?
6296 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
6297 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
6298 cat >conftest.$ac_ext <<_ACEOF
6299 /* confdefs.h. */
6300 _ACEOF
6301 cat confdefs.h >>conftest.$ac_ext
6302 cat >>conftest.$ac_ext <<_ACEOF
6303 /* end confdefs.h. */
6304 #include <sys/sysmacros.h>
6305 _ACEOF
6306 if { (ac_try="$ac_cpp conftest.$ac_ext"
6307 case "(($ac_try" in
6308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6309 *) ac_try_echo=$ac_try;;
6310 esac
6311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6312 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6313 ac_status=$?
6314 grep -v '^ *+' conftest.er1 >conftest.err
6315 rm -f conftest.er1
6316 cat conftest.err >&5
6317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6318 (exit $ac_status); } >/dev/null && {
6319 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6320 test ! -s conftest.err
6321 }; then
6322 ac_header_preproc=yes
6323 else
6324 echo "$as_me: failed program was:" >&5
6325 sed 's/^/| /' conftest.$ac_ext >&5
6327 ac_header_preproc=no
6330 rm -f conftest.err conftest.$ac_ext
6331 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6332 echo "${ECHO_T}$ac_header_preproc" >&6; }
6334 # So? What about this header?
6335 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6336 yes:no: )
6337 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
6338 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6339 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
6340 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
6341 ac_header_preproc=yes
6343 no:yes:* )
6344 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
6345 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
6346 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
6347 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
6348 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
6349 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
6350 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
6351 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
6352 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
6353 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
6354 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
6355 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
6356 ( cat <<\_ASBOX
6357 ## -------------------------------------- ##
6358 ## Report this to http://bugs.python.org/ ##
6359 ## -------------------------------------- ##
6360 _ASBOX
6361 ) | sed "s/^/$as_me: WARNING: /" >&2
6363 esac
6364 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6365 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6366 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6367 echo $ECHO_N "(cached) $ECHO_C" >&6
6368 else
6369 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
6371 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6372 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6375 if test $ac_cv_header_sys_sysmacros_h = yes; then
6377 cat >>confdefs.h <<\_ACEOF
6378 #define MAJOR_IN_SYSMACROS 1
6379 _ACEOF
6388 # On Solaris, term.h requires curses.h
6390 for ac_header in term.h
6392 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6393 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6394 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6395 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6396 echo $ECHO_N "(cached) $ECHO_C" >&6
6397 else
6398 cat >conftest.$ac_ext <<_ACEOF
6399 /* confdefs.h. */
6400 _ACEOF
6401 cat confdefs.h >>conftest.$ac_ext
6402 cat >>conftest.$ac_ext <<_ACEOF
6403 /* end confdefs.h. */
6405 #ifdef HAVE_CURSES_H
6406 #include <curses.h>
6407 #endif
6410 #include <$ac_header>
6411 _ACEOF
6412 rm -f conftest.$ac_objext
6413 if { (ac_try="$ac_compile"
6414 case "(($ac_try" in
6415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6416 *) ac_try_echo=$ac_try;;
6417 esac
6418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6419 (eval "$ac_compile") 2>conftest.er1
6420 ac_status=$?
6421 grep -v '^ *+' conftest.er1 >conftest.err
6422 rm -f conftest.er1
6423 cat conftest.err >&5
6424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425 (exit $ac_status); } && {
6426 test -z "$ac_c_werror_flag" ||
6427 test ! -s conftest.err
6428 } && test -s conftest.$ac_objext; then
6429 eval "$as_ac_Header=yes"
6430 else
6431 echo "$as_me: failed program was:" >&5
6432 sed 's/^/| /' conftest.$ac_ext >&5
6434 eval "$as_ac_Header=no"
6437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6439 ac_res=`eval echo '${'$as_ac_Header'}'`
6440 { echo "$as_me:$LINENO: result: $ac_res" >&5
6441 echo "${ECHO_T}$ac_res" >&6; }
6442 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6443 cat >>confdefs.h <<_ACEOF
6444 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6445 _ACEOF
6449 done
6452 # On Linux, netlink.h requires asm/types.h
6454 for ac_header in linux/netlink.h
6456 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6457 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6458 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6459 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6460 echo $ECHO_N "(cached) $ECHO_C" >&6
6461 else
6462 cat >conftest.$ac_ext <<_ACEOF
6463 /* confdefs.h. */
6464 _ACEOF
6465 cat confdefs.h >>conftest.$ac_ext
6466 cat >>conftest.$ac_ext <<_ACEOF
6467 /* end confdefs.h. */
6469 #ifdef HAVE_ASM_TYPES_H
6470 #include <asm/types.h>
6471 #endif
6472 #ifdef HAVE_SYS_SOCKET_H
6473 #include <sys/socket.h>
6474 #endif
6477 #include <$ac_header>
6478 _ACEOF
6479 rm -f conftest.$ac_objext
6480 if { (ac_try="$ac_compile"
6481 case "(($ac_try" in
6482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6483 *) ac_try_echo=$ac_try;;
6484 esac
6485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6486 (eval "$ac_compile") 2>conftest.er1
6487 ac_status=$?
6488 grep -v '^ *+' conftest.er1 >conftest.err
6489 rm -f conftest.er1
6490 cat conftest.err >&5
6491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6492 (exit $ac_status); } && {
6493 test -z "$ac_c_werror_flag" ||
6494 test ! -s conftest.err
6495 } && test -s conftest.$ac_objext; then
6496 eval "$as_ac_Header=yes"
6497 else
6498 echo "$as_me: failed program was:" >&5
6499 sed 's/^/| /' conftest.$ac_ext >&5
6501 eval "$as_ac_Header=no"
6504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6506 ac_res=`eval echo '${'$as_ac_Header'}'`
6507 { echo "$as_me:$LINENO: result: $ac_res" >&5
6508 echo "${ECHO_T}$ac_res" >&6; }
6509 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6510 cat >>confdefs.h <<_ACEOF
6511 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6512 _ACEOF
6516 done
6519 # checks for typedefs
6520 was_it_defined=no
6521 { echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
6522 echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6; }
6523 cat >conftest.$ac_ext <<_ACEOF
6524 /* confdefs.h. */
6525 _ACEOF
6526 cat confdefs.h >>conftest.$ac_ext
6527 cat >>conftest.$ac_ext <<_ACEOF
6528 /* end confdefs.h. */
6529 #include <time.h>
6531 _ACEOF
6532 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6533 $EGREP "clock_t" >/dev/null 2>&1; then
6534 was_it_defined=yes
6535 else
6538 cat >>confdefs.h <<\_ACEOF
6539 #define clock_t long
6540 _ACEOF
6544 rm -f -r conftest*
6546 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
6547 echo "${ECHO_T}$was_it_defined" >&6; }
6549 # Check whether using makedev requires defining _OSF_SOURCE
6550 { echo "$as_me:$LINENO: checking for makedev" >&5
6551 echo $ECHO_N "checking for makedev... $ECHO_C" >&6; }
6552 cat >conftest.$ac_ext <<_ACEOF
6553 /* confdefs.h. */
6554 _ACEOF
6555 cat confdefs.h >>conftest.$ac_ext
6556 cat >>conftest.$ac_ext <<_ACEOF
6557 /* end confdefs.h. */
6558 #include <sys/types.h>
6560 main ()
6562 makedev(0, 0)
6564 return 0;
6566 _ACEOF
6567 rm -f conftest.$ac_objext conftest$ac_exeext
6568 if { (ac_try="$ac_link"
6569 case "(($ac_try" in
6570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6571 *) ac_try_echo=$ac_try;;
6572 esac
6573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6574 (eval "$ac_link") 2>conftest.er1
6575 ac_status=$?
6576 grep -v '^ *+' conftest.er1 >conftest.err
6577 rm -f conftest.er1
6578 cat conftest.err >&5
6579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6580 (exit $ac_status); } && {
6581 test -z "$ac_c_werror_flag" ||
6582 test ! -s conftest.err
6583 } && test -s conftest$ac_exeext &&
6584 $as_test_x conftest$ac_exeext; then
6585 ac_cv_has_makedev=yes
6586 else
6587 echo "$as_me: failed program was:" >&5
6588 sed 's/^/| /' conftest.$ac_ext >&5
6590 ac_cv_has_makedev=no
6593 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6594 conftest$ac_exeext conftest.$ac_ext
6595 if test "$ac_cv_has_makedev" = "no"; then
6596 # we didn't link, try if _OSF_SOURCE will allow us to link
6597 cat >conftest.$ac_ext <<_ACEOF
6598 /* confdefs.h. */
6599 _ACEOF
6600 cat confdefs.h >>conftest.$ac_ext
6601 cat >>conftest.$ac_ext <<_ACEOF
6602 /* end confdefs.h. */
6604 #define _OSF_SOURCE 1
6605 #include <sys/types.h>
6608 main ()
6610 makedev(0, 0)
6612 return 0;
6614 _ACEOF
6615 rm -f conftest.$ac_objext conftest$ac_exeext
6616 if { (ac_try="$ac_link"
6617 case "(($ac_try" in
6618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6619 *) ac_try_echo=$ac_try;;
6620 esac
6621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6622 (eval "$ac_link") 2>conftest.er1
6623 ac_status=$?
6624 grep -v '^ *+' conftest.er1 >conftest.err
6625 rm -f conftest.er1
6626 cat conftest.err >&5
6627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6628 (exit $ac_status); } && {
6629 test -z "$ac_c_werror_flag" ||
6630 test ! -s conftest.err
6631 } && test -s conftest$ac_exeext &&
6632 $as_test_x conftest$ac_exeext; then
6633 ac_cv_has_makedev=yes
6634 else
6635 echo "$as_me: failed program was:" >&5
6636 sed 's/^/| /' conftest.$ac_ext >&5
6638 ac_cv_has_makedev=no
6641 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6642 conftest$ac_exeext conftest.$ac_ext
6643 if test "$ac_cv_has_makedev" = "yes"; then
6645 cat >>confdefs.h <<\_ACEOF
6646 #define _OSF_SOURCE 1
6647 _ACEOF
6651 { echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
6652 echo "${ECHO_T}$ac_cv_has_makedev" >&6; }
6653 if test "$ac_cv_has_makedev" = "yes"; then
6655 cat >>confdefs.h <<\_ACEOF
6656 #define HAVE_MAKEDEV 1
6657 _ACEOF
6661 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
6662 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
6663 # defined, but the compiler does not support pragma redefine_extname,
6664 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
6665 # structures (such as rlimit64) without declaring them. As a
6666 # work-around, disable LFS on such configurations
6668 use_lfs=yes
6669 { echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
6670 echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6; }
6671 cat >conftest.$ac_ext <<_ACEOF
6672 /* confdefs.h. */
6673 _ACEOF
6674 cat confdefs.h >>conftest.$ac_ext
6675 cat >>conftest.$ac_ext <<_ACEOF
6676 /* end confdefs.h. */
6678 #define _LARGEFILE_SOURCE 1
6679 #define _FILE_OFFSET_BITS 64
6680 #include <sys/resource.h>
6683 main ()
6685 struct rlimit foo;
6687 return 0;
6689 _ACEOF
6690 rm -f conftest.$ac_objext
6691 if { (ac_try="$ac_compile"
6692 case "(($ac_try" in
6693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6694 *) ac_try_echo=$ac_try;;
6695 esac
6696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6697 (eval "$ac_compile") 2>conftest.er1
6698 ac_status=$?
6699 grep -v '^ *+' conftest.er1 >conftest.err
6700 rm -f conftest.er1
6701 cat conftest.err >&5
6702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6703 (exit $ac_status); } && {
6704 test -z "$ac_c_werror_flag" ||
6705 test ! -s conftest.err
6706 } && test -s conftest.$ac_objext; then
6707 sol_lfs_bug=no
6708 else
6709 echo "$as_me: failed program was:" >&5
6710 sed 's/^/| /' conftest.$ac_ext >&5
6712 sol_lfs_bug=yes
6715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6716 { echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
6717 echo "${ECHO_T}$sol_lfs_bug" >&6; }
6718 if test "$sol_lfs_bug" = "yes"; then
6719 use_lfs=no
6722 if test "$use_lfs" = "yes"; then
6723 # Two defines needed to enable largefile support on various platforms
6724 # These may affect some typedefs
6726 cat >>confdefs.h <<\_ACEOF
6727 #define _LARGEFILE_SOURCE 1
6728 _ACEOF
6731 cat >>confdefs.h <<\_ACEOF
6732 #define _FILE_OFFSET_BITS 64
6733 _ACEOF
6737 # Add some code to confdefs.h so that the test for off_t works on SCO
6738 cat >> confdefs.h <<\EOF
6739 #if defined(SCO_DS)
6740 #undef _OFF_T
6741 #endif
6744 # Type availability checks
6745 { echo "$as_me:$LINENO: checking for mode_t" >&5
6746 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
6747 if test "${ac_cv_type_mode_t+set}" = set; then
6748 echo $ECHO_N "(cached) $ECHO_C" >&6
6749 else
6750 cat >conftest.$ac_ext <<_ACEOF
6751 /* confdefs.h. */
6752 _ACEOF
6753 cat confdefs.h >>conftest.$ac_ext
6754 cat >>conftest.$ac_ext <<_ACEOF
6755 /* end confdefs.h. */
6756 $ac_includes_default
6757 typedef mode_t ac__type_new_;
6759 main ()
6761 if ((ac__type_new_ *) 0)
6762 return 0;
6763 if (sizeof (ac__type_new_))
6764 return 0;
6766 return 0;
6768 _ACEOF
6769 rm -f conftest.$ac_objext
6770 if { (ac_try="$ac_compile"
6771 case "(($ac_try" in
6772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6773 *) ac_try_echo=$ac_try;;
6774 esac
6775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6776 (eval "$ac_compile") 2>conftest.er1
6777 ac_status=$?
6778 grep -v '^ *+' conftest.er1 >conftest.err
6779 rm -f conftest.er1
6780 cat conftest.err >&5
6781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6782 (exit $ac_status); } && {
6783 test -z "$ac_c_werror_flag" ||
6784 test ! -s conftest.err
6785 } && test -s conftest.$ac_objext; then
6786 ac_cv_type_mode_t=yes
6787 else
6788 echo "$as_me: failed program was:" >&5
6789 sed 's/^/| /' conftest.$ac_ext >&5
6791 ac_cv_type_mode_t=no
6794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6796 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6797 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
6798 if test $ac_cv_type_mode_t = yes; then
6800 else
6802 cat >>confdefs.h <<_ACEOF
6803 #define mode_t int
6804 _ACEOF
6808 { echo "$as_me:$LINENO: checking for off_t" >&5
6809 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
6810 if test "${ac_cv_type_off_t+set}" = set; then
6811 echo $ECHO_N "(cached) $ECHO_C" >&6
6812 else
6813 cat >conftest.$ac_ext <<_ACEOF
6814 /* confdefs.h. */
6815 _ACEOF
6816 cat confdefs.h >>conftest.$ac_ext
6817 cat >>conftest.$ac_ext <<_ACEOF
6818 /* end confdefs.h. */
6819 $ac_includes_default
6820 typedef off_t ac__type_new_;
6822 main ()
6824 if ((ac__type_new_ *) 0)
6825 return 0;
6826 if (sizeof (ac__type_new_))
6827 return 0;
6829 return 0;
6831 _ACEOF
6832 rm -f conftest.$ac_objext
6833 if { (ac_try="$ac_compile"
6834 case "(($ac_try" in
6835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6836 *) ac_try_echo=$ac_try;;
6837 esac
6838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6839 (eval "$ac_compile") 2>conftest.er1
6840 ac_status=$?
6841 grep -v '^ *+' conftest.er1 >conftest.err
6842 rm -f conftest.er1
6843 cat conftest.err >&5
6844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6845 (exit $ac_status); } && {
6846 test -z "$ac_c_werror_flag" ||
6847 test ! -s conftest.err
6848 } && test -s conftest.$ac_objext; then
6849 ac_cv_type_off_t=yes
6850 else
6851 echo "$as_me: failed program was:" >&5
6852 sed 's/^/| /' conftest.$ac_ext >&5
6854 ac_cv_type_off_t=no
6857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6859 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6860 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
6861 if test $ac_cv_type_off_t = yes; then
6863 else
6865 cat >>confdefs.h <<_ACEOF
6866 #define off_t long int
6867 _ACEOF
6871 { echo "$as_me:$LINENO: checking for pid_t" >&5
6872 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
6873 if test "${ac_cv_type_pid_t+set}" = set; then
6874 echo $ECHO_N "(cached) $ECHO_C" >&6
6875 else
6876 cat >conftest.$ac_ext <<_ACEOF
6877 /* confdefs.h. */
6878 _ACEOF
6879 cat confdefs.h >>conftest.$ac_ext
6880 cat >>conftest.$ac_ext <<_ACEOF
6881 /* end confdefs.h. */
6882 $ac_includes_default
6883 typedef pid_t ac__type_new_;
6885 main ()
6887 if ((ac__type_new_ *) 0)
6888 return 0;
6889 if (sizeof (ac__type_new_))
6890 return 0;
6892 return 0;
6894 _ACEOF
6895 rm -f conftest.$ac_objext
6896 if { (ac_try="$ac_compile"
6897 case "(($ac_try" in
6898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6899 *) ac_try_echo=$ac_try;;
6900 esac
6901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6902 (eval "$ac_compile") 2>conftest.er1
6903 ac_status=$?
6904 grep -v '^ *+' conftest.er1 >conftest.err
6905 rm -f conftest.er1
6906 cat conftest.err >&5
6907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6908 (exit $ac_status); } && {
6909 test -z "$ac_c_werror_flag" ||
6910 test ! -s conftest.err
6911 } && test -s conftest.$ac_objext; then
6912 ac_cv_type_pid_t=yes
6913 else
6914 echo "$as_me: failed program was:" >&5
6915 sed 's/^/| /' conftest.$ac_ext >&5
6917 ac_cv_type_pid_t=no
6920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6922 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6923 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
6924 if test $ac_cv_type_pid_t = yes; then
6926 else
6928 cat >>confdefs.h <<_ACEOF
6929 #define pid_t int
6930 _ACEOF
6934 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6935 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
6936 if test "${ac_cv_type_signal+set}" = set; then
6937 echo $ECHO_N "(cached) $ECHO_C" >&6
6938 else
6939 cat >conftest.$ac_ext <<_ACEOF
6940 /* confdefs.h. */
6941 _ACEOF
6942 cat confdefs.h >>conftest.$ac_ext
6943 cat >>conftest.$ac_ext <<_ACEOF
6944 /* end confdefs.h. */
6945 #include <sys/types.h>
6946 #include <signal.h>
6949 main ()
6951 return *(signal (0, 0)) (0) == 1;
6953 return 0;
6955 _ACEOF
6956 rm -f conftest.$ac_objext
6957 if { (ac_try="$ac_compile"
6958 case "(($ac_try" in
6959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6960 *) ac_try_echo=$ac_try;;
6961 esac
6962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6963 (eval "$ac_compile") 2>conftest.er1
6964 ac_status=$?
6965 grep -v '^ *+' conftest.er1 >conftest.err
6966 rm -f conftest.er1
6967 cat conftest.err >&5
6968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6969 (exit $ac_status); } && {
6970 test -z "$ac_c_werror_flag" ||
6971 test ! -s conftest.err
6972 } && test -s conftest.$ac_objext; then
6973 ac_cv_type_signal=int
6974 else
6975 echo "$as_me: failed program was:" >&5
6976 sed 's/^/| /' conftest.$ac_ext >&5
6978 ac_cv_type_signal=void
6981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6983 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6984 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
6986 cat >>confdefs.h <<_ACEOF
6987 #define RETSIGTYPE $ac_cv_type_signal
6988 _ACEOF
6991 { echo "$as_me:$LINENO: checking for size_t" >&5
6992 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
6993 if test "${ac_cv_type_size_t+set}" = set; then
6994 echo $ECHO_N "(cached) $ECHO_C" >&6
6995 else
6996 cat >conftest.$ac_ext <<_ACEOF
6997 /* confdefs.h. */
6998 _ACEOF
6999 cat confdefs.h >>conftest.$ac_ext
7000 cat >>conftest.$ac_ext <<_ACEOF
7001 /* end confdefs.h. */
7002 $ac_includes_default
7003 typedef size_t ac__type_new_;
7005 main ()
7007 if ((ac__type_new_ *) 0)
7008 return 0;
7009 if (sizeof (ac__type_new_))
7010 return 0;
7012 return 0;
7014 _ACEOF
7015 rm -f conftest.$ac_objext
7016 if { (ac_try="$ac_compile"
7017 case "(($ac_try" in
7018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7019 *) ac_try_echo=$ac_try;;
7020 esac
7021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7022 (eval "$ac_compile") 2>conftest.er1
7023 ac_status=$?
7024 grep -v '^ *+' conftest.er1 >conftest.err
7025 rm -f conftest.er1
7026 cat conftest.err >&5
7027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7028 (exit $ac_status); } && {
7029 test -z "$ac_c_werror_flag" ||
7030 test ! -s conftest.err
7031 } && test -s conftest.$ac_objext; then
7032 ac_cv_type_size_t=yes
7033 else
7034 echo "$as_me: failed program was:" >&5
7035 sed 's/^/| /' conftest.$ac_ext >&5
7037 ac_cv_type_size_t=no
7040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7042 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7043 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
7044 if test $ac_cv_type_size_t = yes; then
7046 else
7048 cat >>confdefs.h <<_ACEOF
7049 #define size_t unsigned int
7050 _ACEOF
7054 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7055 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
7056 if test "${ac_cv_type_uid_t+set}" = set; then
7057 echo $ECHO_N "(cached) $ECHO_C" >&6
7058 else
7059 cat >conftest.$ac_ext <<_ACEOF
7060 /* confdefs.h. */
7061 _ACEOF
7062 cat confdefs.h >>conftest.$ac_ext
7063 cat >>conftest.$ac_ext <<_ACEOF
7064 /* end confdefs.h. */
7065 #include <sys/types.h>
7067 _ACEOF
7068 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7069 $EGREP "uid_t" >/dev/null 2>&1; then
7070 ac_cv_type_uid_t=yes
7071 else
7072 ac_cv_type_uid_t=no
7074 rm -f -r conftest*
7077 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7078 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
7079 if test $ac_cv_type_uid_t = no; then
7081 cat >>confdefs.h <<\_ACEOF
7082 #define uid_t int
7083 _ACEOF
7086 cat >>confdefs.h <<\_ACEOF
7087 #define gid_t int
7088 _ACEOF
7093 { echo "$as_me:$LINENO: checking for uint32_t" >&5
7094 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
7095 if test "${ac_cv_c_uint32_t+set}" = set; then
7096 echo $ECHO_N "(cached) $ECHO_C" >&6
7097 else
7098 ac_cv_c_uint32_t=no
7099 for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
7100 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7101 cat >conftest.$ac_ext <<_ACEOF
7102 /* confdefs.h. */
7103 _ACEOF
7104 cat confdefs.h >>conftest.$ac_ext
7105 cat >>conftest.$ac_ext <<_ACEOF
7106 /* end confdefs.h. */
7107 $ac_includes_default
7109 main ()
7111 static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
7112 test_array [0] = 0
7115 return 0;
7117 _ACEOF
7118 rm -f conftest.$ac_objext
7119 if { (ac_try="$ac_compile"
7120 case "(($ac_try" in
7121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7122 *) ac_try_echo=$ac_try;;
7123 esac
7124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7125 (eval "$ac_compile") 2>conftest.er1
7126 ac_status=$?
7127 grep -v '^ *+' conftest.er1 >conftest.err
7128 rm -f conftest.er1
7129 cat conftest.err >&5
7130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7131 (exit $ac_status); } && {
7132 test -z "$ac_c_werror_flag" ||
7133 test ! -s conftest.err
7134 } && test -s conftest.$ac_objext; then
7135 case $ac_type in
7136 uint32_t) ac_cv_c_uint32_t=yes ;;
7137 *) ac_cv_c_uint32_t=$ac_type ;;
7138 esac
7140 else
7141 echo "$as_me: failed program was:" >&5
7142 sed 's/^/| /' conftest.$ac_ext >&5
7147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7148 test "$ac_cv_c_uint32_t" != no && break
7149 done
7151 { echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
7152 echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; }
7153 case $ac_cv_c_uint32_t in #(
7154 no|yes) ;; #(
7157 cat >>confdefs.h <<\_ACEOF
7158 #define _UINT32_T 1
7159 _ACEOF
7162 cat >>confdefs.h <<_ACEOF
7163 #define uint32_t $ac_cv_c_uint32_t
7164 _ACEOF
7166 esac
7169 { echo "$as_me:$LINENO: checking for uint64_t" >&5
7170 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
7171 if test "${ac_cv_c_uint64_t+set}" = set; then
7172 echo $ECHO_N "(cached) $ECHO_C" >&6
7173 else
7174 ac_cv_c_uint64_t=no
7175 for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \
7176 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7177 cat >conftest.$ac_ext <<_ACEOF
7178 /* confdefs.h. */
7179 _ACEOF
7180 cat confdefs.h >>conftest.$ac_ext
7181 cat >>conftest.$ac_ext <<_ACEOF
7182 /* end confdefs.h. */
7183 $ac_includes_default
7185 main ()
7187 static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)];
7188 test_array [0] = 0
7191 return 0;
7193 _ACEOF
7194 rm -f conftest.$ac_objext
7195 if { (ac_try="$ac_compile"
7196 case "(($ac_try" in
7197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7198 *) ac_try_echo=$ac_try;;
7199 esac
7200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7201 (eval "$ac_compile") 2>conftest.er1
7202 ac_status=$?
7203 grep -v '^ *+' conftest.er1 >conftest.err
7204 rm -f conftest.er1
7205 cat conftest.err >&5
7206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7207 (exit $ac_status); } && {
7208 test -z "$ac_c_werror_flag" ||
7209 test ! -s conftest.err
7210 } && test -s conftest.$ac_objext; then
7211 case $ac_type in
7212 uint64_t) ac_cv_c_uint64_t=yes ;;
7213 *) ac_cv_c_uint64_t=$ac_type ;;
7214 esac
7216 else
7217 echo "$as_me: failed program was:" >&5
7218 sed 's/^/| /' conftest.$ac_ext >&5
7223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7224 test "$ac_cv_c_uint64_t" != no && break
7225 done
7227 { echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5
7228 echo "${ECHO_T}$ac_cv_c_uint64_t" >&6; }
7229 case $ac_cv_c_uint64_t in #(
7230 no|yes) ;; #(
7233 cat >>confdefs.h <<\_ACEOF
7234 #define _UINT64_T 1
7235 _ACEOF
7238 cat >>confdefs.h <<_ACEOF
7239 #define uint64_t $ac_cv_c_uint64_t
7240 _ACEOF
7242 esac
7245 { echo "$as_me:$LINENO: checking for int32_t" >&5
7246 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
7247 if test "${ac_cv_c_int32_t+set}" = set; then
7248 echo $ECHO_N "(cached) $ECHO_C" >&6
7249 else
7250 ac_cv_c_int32_t=no
7251 for ac_type in 'int32_t' 'int' 'long int' \
7252 'long long int' 'short int' 'signed char'; do
7253 cat >conftest.$ac_ext <<_ACEOF
7254 /* confdefs.h. */
7255 _ACEOF
7256 cat confdefs.h >>conftest.$ac_ext
7257 cat >>conftest.$ac_ext <<_ACEOF
7258 /* end confdefs.h. */
7259 $ac_includes_default
7261 main ()
7263 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
7264 test_array [0] = 0
7267 return 0;
7269 _ACEOF
7270 rm -f conftest.$ac_objext
7271 if { (ac_try="$ac_compile"
7272 case "(($ac_try" in
7273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7274 *) ac_try_echo=$ac_try;;
7275 esac
7276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7277 (eval "$ac_compile") 2>conftest.er1
7278 ac_status=$?
7279 grep -v '^ *+' conftest.er1 >conftest.err
7280 rm -f conftest.er1
7281 cat conftest.err >&5
7282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7283 (exit $ac_status); } && {
7284 test -z "$ac_c_werror_flag" ||
7285 test ! -s conftest.err
7286 } && test -s conftest.$ac_objext; then
7287 cat >conftest.$ac_ext <<_ACEOF
7288 /* confdefs.h. */
7289 _ACEOF
7290 cat confdefs.h >>conftest.$ac_ext
7291 cat >>conftest.$ac_ext <<_ACEOF
7292 /* end confdefs.h. */
7293 $ac_includes_default
7295 main ()
7297 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1)
7298 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))];
7299 test_array [0] = 0
7302 return 0;
7304 _ACEOF
7305 rm -f conftest.$ac_objext
7306 if { (ac_try="$ac_compile"
7307 case "(($ac_try" in
7308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7309 *) ac_try_echo=$ac_try;;
7310 esac
7311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7312 (eval "$ac_compile") 2>conftest.er1
7313 ac_status=$?
7314 grep -v '^ *+' conftest.er1 >conftest.err
7315 rm -f conftest.er1
7316 cat conftest.err >&5
7317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7318 (exit $ac_status); } && {
7319 test -z "$ac_c_werror_flag" ||
7320 test ! -s conftest.err
7321 } && test -s conftest.$ac_objext; then
7323 else
7324 echo "$as_me: failed program was:" >&5
7325 sed 's/^/| /' conftest.$ac_ext >&5
7327 case $ac_type in
7328 int32_t) ac_cv_c_int32_t=yes ;;
7329 *) ac_cv_c_int32_t=$ac_type ;;
7330 esac
7334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7335 else
7336 echo "$as_me: failed program was:" >&5
7337 sed 's/^/| /' conftest.$ac_ext >&5
7342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7343 test "$ac_cv_c_int32_t" != no && break
7344 done
7346 { echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
7347 echo "${ECHO_T}$ac_cv_c_int32_t" >&6; }
7348 case $ac_cv_c_int32_t in #(
7349 no|yes) ;; #(
7352 cat >>confdefs.h <<_ACEOF
7353 #define int32_t $ac_cv_c_int32_t
7354 _ACEOF
7356 esac
7359 { echo "$as_me:$LINENO: checking for int64_t" >&5
7360 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
7361 if test "${ac_cv_c_int64_t+set}" = set; then
7362 echo $ECHO_N "(cached) $ECHO_C" >&6
7363 else
7364 ac_cv_c_int64_t=no
7365 for ac_type in 'int64_t' 'int' 'long int' \
7366 'long long int' 'short int' 'signed char'; do
7367 cat >conftest.$ac_ext <<_ACEOF
7368 /* confdefs.h. */
7369 _ACEOF
7370 cat confdefs.h >>conftest.$ac_ext
7371 cat >>conftest.$ac_ext <<_ACEOF
7372 /* end confdefs.h. */
7373 $ac_includes_default
7375 main ()
7377 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))];
7378 test_array [0] = 0
7381 return 0;
7383 _ACEOF
7384 rm -f conftest.$ac_objext
7385 if { (ac_try="$ac_compile"
7386 case "(($ac_try" in
7387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7388 *) ac_try_echo=$ac_try;;
7389 esac
7390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7391 (eval "$ac_compile") 2>conftest.er1
7392 ac_status=$?
7393 grep -v '^ *+' conftest.er1 >conftest.err
7394 rm -f conftest.er1
7395 cat conftest.err >&5
7396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7397 (exit $ac_status); } && {
7398 test -z "$ac_c_werror_flag" ||
7399 test ! -s conftest.err
7400 } && test -s conftest.$ac_objext; then
7401 cat >conftest.$ac_ext <<_ACEOF
7402 /* confdefs.h. */
7403 _ACEOF
7404 cat confdefs.h >>conftest.$ac_ext
7405 cat >>conftest.$ac_ext <<_ACEOF
7406 /* end confdefs.h. */
7407 $ac_includes_default
7409 main ()
7411 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1)
7412 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))];
7413 test_array [0] = 0
7416 return 0;
7418 _ACEOF
7419 rm -f conftest.$ac_objext
7420 if { (ac_try="$ac_compile"
7421 case "(($ac_try" in
7422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7423 *) ac_try_echo=$ac_try;;
7424 esac
7425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7426 (eval "$ac_compile") 2>conftest.er1
7427 ac_status=$?
7428 grep -v '^ *+' conftest.er1 >conftest.err
7429 rm -f conftest.er1
7430 cat conftest.err >&5
7431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7432 (exit $ac_status); } && {
7433 test -z "$ac_c_werror_flag" ||
7434 test ! -s conftest.err
7435 } && test -s conftest.$ac_objext; then
7437 else
7438 echo "$as_me: failed program was:" >&5
7439 sed 's/^/| /' conftest.$ac_ext >&5
7441 case $ac_type in
7442 int64_t) ac_cv_c_int64_t=yes ;;
7443 *) ac_cv_c_int64_t=$ac_type ;;
7444 esac
7448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7449 else
7450 echo "$as_me: failed program was:" >&5
7451 sed 's/^/| /' conftest.$ac_ext >&5
7456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7457 test "$ac_cv_c_int64_t" != no && break
7458 done
7460 { echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5
7461 echo "${ECHO_T}$ac_cv_c_int64_t" >&6; }
7462 case $ac_cv_c_int64_t in #(
7463 no|yes) ;; #(
7466 cat >>confdefs.h <<_ACEOF
7467 #define int64_t $ac_cv_c_int64_t
7468 _ACEOF
7470 esac
7472 { echo "$as_me:$LINENO: checking for ssize_t" >&5
7473 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
7474 if test "${ac_cv_type_ssize_t+set}" = set; then
7475 echo $ECHO_N "(cached) $ECHO_C" >&6
7476 else
7477 cat >conftest.$ac_ext <<_ACEOF
7478 /* confdefs.h. */
7479 _ACEOF
7480 cat confdefs.h >>conftest.$ac_ext
7481 cat >>conftest.$ac_ext <<_ACEOF
7482 /* end confdefs.h. */
7483 $ac_includes_default
7484 typedef ssize_t ac__type_new_;
7486 main ()
7488 if ((ac__type_new_ *) 0)
7489 return 0;
7490 if (sizeof (ac__type_new_))
7491 return 0;
7493 return 0;
7495 _ACEOF
7496 rm -f conftest.$ac_objext
7497 if { (ac_try="$ac_compile"
7498 case "(($ac_try" in
7499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7500 *) ac_try_echo=$ac_try;;
7501 esac
7502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7503 (eval "$ac_compile") 2>conftest.er1
7504 ac_status=$?
7505 grep -v '^ *+' conftest.er1 >conftest.err
7506 rm -f conftest.er1
7507 cat conftest.err >&5
7508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7509 (exit $ac_status); } && {
7510 test -z "$ac_c_werror_flag" ||
7511 test ! -s conftest.err
7512 } && test -s conftest.$ac_objext; then
7513 ac_cv_type_ssize_t=yes
7514 else
7515 echo "$as_me: failed program was:" >&5
7516 sed 's/^/| /' conftest.$ac_ext >&5
7518 ac_cv_type_ssize_t=no
7521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7523 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
7524 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
7525 if test $ac_cv_type_ssize_t = yes; then
7527 cat >>confdefs.h <<\_ACEOF
7528 #define HAVE_SSIZE_T 1
7529 _ACEOF
7534 # Sizes of various common basic types
7535 # ANSI C requires sizeof(char) == 1, so no need to check it
7536 { echo "$as_me:$LINENO: checking for int" >&5
7537 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
7538 if test "${ac_cv_type_int+set}" = set; then
7539 echo $ECHO_N "(cached) $ECHO_C" >&6
7540 else
7541 cat >conftest.$ac_ext <<_ACEOF
7542 /* confdefs.h. */
7543 _ACEOF
7544 cat confdefs.h >>conftest.$ac_ext
7545 cat >>conftest.$ac_ext <<_ACEOF
7546 /* end confdefs.h. */
7547 $ac_includes_default
7548 typedef int ac__type_new_;
7550 main ()
7552 if ((ac__type_new_ *) 0)
7553 return 0;
7554 if (sizeof (ac__type_new_))
7555 return 0;
7557 return 0;
7559 _ACEOF
7560 rm -f conftest.$ac_objext
7561 if { (ac_try="$ac_compile"
7562 case "(($ac_try" in
7563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7564 *) ac_try_echo=$ac_try;;
7565 esac
7566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7567 (eval "$ac_compile") 2>conftest.er1
7568 ac_status=$?
7569 grep -v '^ *+' conftest.er1 >conftest.err
7570 rm -f conftest.er1
7571 cat conftest.err >&5
7572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7573 (exit $ac_status); } && {
7574 test -z "$ac_c_werror_flag" ||
7575 test ! -s conftest.err
7576 } && test -s conftest.$ac_objext; then
7577 ac_cv_type_int=yes
7578 else
7579 echo "$as_me: failed program was:" >&5
7580 sed 's/^/| /' conftest.$ac_ext >&5
7582 ac_cv_type_int=no
7585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7587 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
7588 echo "${ECHO_T}$ac_cv_type_int" >&6; }
7590 # The cast to long int works around a bug in the HP C Compiler
7591 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7592 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7593 # This bug is HP SR number 8606223364.
7594 { echo "$as_me:$LINENO: checking size of int" >&5
7595 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
7596 if test "${ac_cv_sizeof_int+set}" = set; then
7597 echo $ECHO_N "(cached) $ECHO_C" >&6
7598 else
7599 if test "$cross_compiling" = yes; then
7600 # Depending upon the size, compute the lo and hi bounds.
7601 cat >conftest.$ac_ext <<_ACEOF
7602 /* confdefs.h. */
7603 _ACEOF
7604 cat confdefs.h >>conftest.$ac_ext
7605 cat >>conftest.$ac_ext <<_ACEOF
7606 /* end confdefs.h. */
7607 $ac_includes_default
7608 typedef int ac__type_sizeof_;
7610 main ()
7612 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7613 test_array [0] = 0
7616 return 0;
7618 _ACEOF
7619 rm -f conftest.$ac_objext
7620 if { (ac_try="$ac_compile"
7621 case "(($ac_try" in
7622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7623 *) ac_try_echo=$ac_try;;
7624 esac
7625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7626 (eval "$ac_compile") 2>conftest.er1
7627 ac_status=$?
7628 grep -v '^ *+' conftest.er1 >conftest.err
7629 rm -f conftest.er1
7630 cat conftest.err >&5
7631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7632 (exit $ac_status); } && {
7633 test -z "$ac_c_werror_flag" ||
7634 test ! -s conftest.err
7635 } && test -s conftest.$ac_objext; then
7636 ac_lo=0 ac_mid=0
7637 while :; do
7638 cat >conftest.$ac_ext <<_ACEOF
7639 /* confdefs.h. */
7640 _ACEOF
7641 cat confdefs.h >>conftest.$ac_ext
7642 cat >>conftest.$ac_ext <<_ACEOF
7643 /* end confdefs.h. */
7644 $ac_includes_default
7645 typedef int ac__type_sizeof_;
7647 main ()
7649 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7650 test_array [0] = 0
7653 return 0;
7655 _ACEOF
7656 rm -f conftest.$ac_objext
7657 if { (ac_try="$ac_compile"
7658 case "(($ac_try" in
7659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7660 *) ac_try_echo=$ac_try;;
7661 esac
7662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7663 (eval "$ac_compile") 2>conftest.er1
7664 ac_status=$?
7665 grep -v '^ *+' conftest.er1 >conftest.err
7666 rm -f conftest.er1
7667 cat conftest.err >&5
7668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7669 (exit $ac_status); } && {
7670 test -z "$ac_c_werror_flag" ||
7671 test ! -s conftest.err
7672 } && test -s conftest.$ac_objext; then
7673 ac_hi=$ac_mid; break
7674 else
7675 echo "$as_me: failed program was:" >&5
7676 sed 's/^/| /' conftest.$ac_ext >&5
7678 ac_lo=`expr $ac_mid + 1`
7679 if test $ac_lo -le $ac_mid; then
7680 ac_lo= ac_hi=
7681 break
7683 ac_mid=`expr 2 '*' $ac_mid + 1`
7686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7687 done
7688 else
7689 echo "$as_me: failed program was:" >&5
7690 sed 's/^/| /' conftest.$ac_ext >&5
7692 cat >conftest.$ac_ext <<_ACEOF
7693 /* confdefs.h. */
7694 _ACEOF
7695 cat confdefs.h >>conftest.$ac_ext
7696 cat >>conftest.$ac_ext <<_ACEOF
7697 /* end confdefs.h. */
7698 $ac_includes_default
7699 typedef int ac__type_sizeof_;
7701 main ()
7703 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7704 test_array [0] = 0
7707 return 0;
7709 _ACEOF
7710 rm -f conftest.$ac_objext
7711 if { (ac_try="$ac_compile"
7712 case "(($ac_try" in
7713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7714 *) ac_try_echo=$ac_try;;
7715 esac
7716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7717 (eval "$ac_compile") 2>conftest.er1
7718 ac_status=$?
7719 grep -v '^ *+' conftest.er1 >conftest.err
7720 rm -f conftest.er1
7721 cat conftest.err >&5
7722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7723 (exit $ac_status); } && {
7724 test -z "$ac_c_werror_flag" ||
7725 test ! -s conftest.err
7726 } && test -s conftest.$ac_objext; then
7727 ac_hi=-1 ac_mid=-1
7728 while :; do
7729 cat >conftest.$ac_ext <<_ACEOF
7730 /* confdefs.h. */
7731 _ACEOF
7732 cat confdefs.h >>conftest.$ac_ext
7733 cat >>conftest.$ac_ext <<_ACEOF
7734 /* end confdefs.h. */
7735 $ac_includes_default
7736 typedef int ac__type_sizeof_;
7738 main ()
7740 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7741 test_array [0] = 0
7744 return 0;
7746 _ACEOF
7747 rm -f conftest.$ac_objext
7748 if { (ac_try="$ac_compile"
7749 case "(($ac_try" in
7750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7751 *) ac_try_echo=$ac_try;;
7752 esac
7753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7754 (eval "$ac_compile") 2>conftest.er1
7755 ac_status=$?
7756 grep -v '^ *+' conftest.er1 >conftest.err
7757 rm -f conftest.er1
7758 cat conftest.err >&5
7759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7760 (exit $ac_status); } && {
7761 test -z "$ac_c_werror_flag" ||
7762 test ! -s conftest.err
7763 } && test -s conftest.$ac_objext; then
7764 ac_lo=$ac_mid; break
7765 else
7766 echo "$as_me: failed program was:" >&5
7767 sed 's/^/| /' conftest.$ac_ext >&5
7769 ac_hi=`expr '(' $ac_mid ')' - 1`
7770 if test $ac_mid -le $ac_hi; then
7771 ac_lo= ac_hi=
7772 break
7774 ac_mid=`expr 2 '*' $ac_mid`
7777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7778 done
7779 else
7780 echo "$as_me: failed program was:" >&5
7781 sed 's/^/| /' conftest.$ac_ext >&5
7783 ac_lo= ac_hi=
7786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7790 # Binary search between lo and hi bounds.
7791 while test "x$ac_lo" != "x$ac_hi"; do
7792 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7793 cat >conftest.$ac_ext <<_ACEOF
7794 /* confdefs.h. */
7795 _ACEOF
7796 cat confdefs.h >>conftest.$ac_ext
7797 cat >>conftest.$ac_ext <<_ACEOF
7798 /* end confdefs.h. */
7799 $ac_includes_default
7800 typedef int ac__type_sizeof_;
7802 main ()
7804 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7805 test_array [0] = 0
7808 return 0;
7810 _ACEOF
7811 rm -f conftest.$ac_objext
7812 if { (ac_try="$ac_compile"
7813 case "(($ac_try" in
7814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7815 *) ac_try_echo=$ac_try;;
7816 esac
7817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7818 (eval "$ac_compile") 2>conftest.er1
7819 ac_status=$?
7820 grep -v '^ *+' conftest.er1 >conftest.err
7821 rm -f conftest.er1
7822 cat conftest.err >&5
7823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7824 (exit $ac_status); } && {
7825 test -z "$ac_c_werror_flag" ||
7826 test ! -s conftest.err
7827 } && test -s conftest.$ac_objext; then
7828 ac_hi=$ac_mid
7829 else
7830 echo "$as_me: failed program was:" >&5
7831 sed 's/^/| /' conftest.$ac_ext >&5
7833 ac_lo=`expr '(' $ac_mid ')' + 1`
7836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7837 done
7838 case $ac_lo in
7839 ?*) ac_cv_sizeof_int=$ac_lo;;
7840 '') if test "$ac_cv_type_int" = yes; then
7841 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7842 See \`config.log' for more details." >&5
7843 echo "$as_me: error: cannot compute sizeof (int)
7844 See \`config.log' for more details." >&2;}
7845 { (exit 77); exit 77; }; }
7846 else
7847 ac_cv_sizeof_int=0
7848 fi ;;
7849 esac
7850 else
7851 cat >conftest.$ac_ext <<_ACEOF
7852 /* confdefs.h. */
7853 _ACEOF
7854 cat confdefs.h >>conftest.$ac_ext
7855 cat >>conftest.$ac_ext <<_ACEOF
7856 /* end confdefs.h. */
7857 $ac_includes_default
7858 typedef int ac__type_sizeof_;
7859 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7860 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7861 #include <stdio.h>
7862 #include <stdlib.h>
7864 main ()
7867 FILE *f = fopen ("conftest.val", "w");
7868 if (! f)
7869 return 1;
7870 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7872 long int i = longval ();
7873 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7874 return 1;
7875 fprintf (f, "%ld\n", i);
7877 else
7879 unsigned long int i = ulongval ();
7880 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7881 return 1;
7882 fprintf (f, "%lu\n", i);
7884 return ferror (f) || fclose (f) != 0;
7887 return 0;
7889 _ACEOF
7890 rm -f conftest$ac_exeext
7891 if { (ac_try="$ac_link"
7892 case "(($ac_try" in
7893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7894 *) ac_try_echo=$ac_try;;
7895 esac
7896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7897 (eval "$ac_link") 2>&5
7898 ac_status=$?
7899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7900 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7901 { (case "(($ac_try" in
7902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7903 *) ac_try_echo=$ac_try;;
7904 esac
7905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7906 (eval "$ac_try") 2>&5
7907 ac_status=$?
7908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7909 (exit $ac_status); }; }; then
7910 ac_cv_sizeof_int=`cat conftest.val`
7911 else
7912 echo "$as_me: program exited with status $ac_status" >&5
7913 echo "$as_me: failed program was:" >&5
7914 sed 's/^/| /' conftest.$ac_ext >&5
7916 ( exit $ac_status )
7917 if test "$ac_cv_type_int" = yes; then
7918 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7919 See \`config.log' for more details." >&5
7920 echo "$as_me: error: cannot compute sizeof (int)
7921 See \`config.log' for more details." >&2;}
7922 { (exit 77); exit 77; }; }
7923 else
7924 ac_cv_sizeof_int=0
7927 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7929 rm -f conftest.val
7931 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
7932 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
7936 cat >>confdefs.h <<_ACEOF
7937 #define SIZEOF_INT $ac_cv_sizeof_int
7938 _ACEOF
7941 { echo "$as_me:$LINENO: checking for long" >&5
7942 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
7943 if test "${ac_cv_type_long+set}" = set; then
7944 echo $ECHO_N "(cached) $ECHO_C" >&6
7945 else
7946 cat >conftest.$ac_ext <<_ACEOF
7947 /* confdefs.h. */
7948 _ACEOF
7949 cat confdefs.h >>conftest.$ac_ext
7950 cat >>conftest.$ac_ext <<_ACEOF
7951 /* end confdefs.h. */
7952 $ac_includes_default
7953 typedef long ac__type_new_;
7955 main ()
7957 if ((ac__type_new_ *) 0)
7958 return 0;
7959 if (sizeof (ac__type_new_))
7960 return 0;
7962 return 0;
7964 _ACEOF
7965 rm -f conftest.$ac_objext
7966 if { (ac_try="$ac_compile"
7967 case "(($ac_try" in
7968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7969 *) ac_try_echo=$ac_try;;
7970 esac
7971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7972 (eval "$ac_compile") 2>conftest.er1
7973 ac_status=$?
7974 grep -v '^ *+' conftest.er1 >conftest.err
7975 rm -f conftest.er1
7976 cat conftest.err >&5
7977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7978 (exit $ac_status); } && {
7979 test -z "$ac_c_werror_flag" ||
7980 test ! -s conftest.err
7981 } && test -s conftest.$ac_objext; then
7982 ac_cv_type_long=yes
7983 else
7984 echo "$as_me: failed program was:" >&5
7985 sed 's/^/| /' conftest.$ac_ext >&5
7987 ac_cv_type_long=no
7990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7992 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
7993 echo "${ECHO_T}$ac_cv_type_long" >&6; }
7995 # The cast to long int works around a bug in the HP C Compiler
7996 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7997 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7998 # This bug is HP SR number 8606223364.
7999 { echo "$as_me:$LINENO: checking size of long" >&5
8000 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
8001 if test "${ac_cv_sizeof_long+set}" = set; then
8002 echo $ECHO_N "(cached) $ECHO_C" >&6
8003 else
8004 if test "$cross_compiling" = yes; then
8005 # Depending upon the size, compute the lo and hi bounds.
8006 cat >conftest.$ac_ext <<_ACEOF
8007 /* confdefs.h. */
8008 _ACEOF
8009 cat confdefs.h >>conftest.$ac_ext
8010 cat >>conftest.$ac_ext <<_ACEOF
8011 /* end confdefs.h. */
8012 $ac_includes_default
8013 typedef long ac__type_sizeof_;
8015 main ()
8017 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8018 test_array [0] = 0
8021 return 0;
8023 _ACEOF
8024 rm -f conftest.$ac_objext
8025 if { (ac_try="$ac_compile"
8026 case "(($ac_try" in
8027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8028 *) ac_try_echo=$ac_try;;
8029 esac
8030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8031 (eval "$ac_compile") 2>conftest.er1
8032 ac_status=$?
8033 grep -v '^ *+' conftest.er1 >conftest.err
8034 rm -f conftest.er1
8035 cat conftest.err >&5
8036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8037 (exit $ac_status); } && {
8038 test -z "$ac_c_werror_flag" ||
8039 test ! -s conftest.err
8040 } && test -s conftest.$ac_objext; then
8041 ac_lo=0 ac_mid=0
8042 while :; do
8043 cat >conftest.$ac_ext <<_ACEOF
8044 /* confdefs.h. */
8045 _ACEOF
8046 cat confdefs.h >>conftest.$ac_ext
8047 cat >>conftest.$ac_ext <<_ACEOF
8048 /* end confdefs.h. */
8049 $ac_includes_default
8050 typedef long ac__type_sizeof_;
8052 main ()
8054 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8055 test_array [0] = 0
8058 return 0;
8060 _ACEOF
8061 rm -f conftest.$ac_objext
8062 if { (ac_try="$ac_compile"
8063 case "(($ac_try" in
8064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8065 *) ac_try_echo=$ac_try;;
8066 esac
8067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8068 (eval "$ac_compile") 2>conftest.er1
8069 ac_status=$?
8070 grep -v '^ *+' conftest.er1 >conftest.err
8071 rm -f conftest.er1
8072 cat conftest.err >&5
8073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8074 (exit $ac_status); } && {
8075 test -z "$ac_c_werror_flag" ||
8076 test ! -s conftest.err
8077 } && test -s conftest.$ac_objext; then
8078 ac_hi=$ac_mid; break
8079 else
8080 echo "$as_me: failed program was:" >&5
8081 sed 's/^/| /' conftest.$ac_ext >&5
8083 ac_lo=`expr $ac_mid + 1`
8084 if test $ac_lo -le $ac_mid; then
8085 ac_lo= ac_hi=
8086 break
8088 ac_mid=`expr 2 '*' $ac_mid + 1`
8091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8092 done
8093 else
8094 echo "$as_me: failed program was:" >&5
8095 sed 's/^/| /' conftest.$ac_ext >&5
8097 cat >conftest.$ac_ext <<_ACEOF
8098 /* confdefs.h. */
8099 _ACEOF
8100 cat confdefs.h >>conftest.$ac_ext
8101 cat >>conftest.$ac_ext <<_ACEOF
8102 /* end confdefs.h. */
8103 $ac_includes_default
8104 typedef long ac__type_sizeof_;
8106 main ()
8108 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8109 test_array [0] = 0
8112 return 0;
8114 _ACEOF
8115 rm -f conftest.$ac_objext
8116 if { (ac_try="$ac_compile"
8117 case "(($ac_try" in
8118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8119 *) ac_try_echo=$ac_try;;
8120 esac
8121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8122 (eval "$ac_compile") 2>conftest.er1
8123 ac_status=$?
8124 grep -v '^ *+' conftest.er1 >conftest.err
8125 rm -f conftest.er1
8126 cat conftest.err >&5
8127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8128 (exit $ac_status); } && {
8129 test -z "$ac_c_werror_flag" ||
8130 test ! -s conftest.err
8131 } && test -s conftest.$ac_objext; then
8132 ac_hi=-1 ac_mid=-1
8133 while :; do
8134 cat >conftest.$ac_ext <<_ACEOF
8135 /* confdefs.h. */
8136 _ACEOF
8137 cat confdefs.h >>conftest.$ac_ext
8138 cat >>conftest.$ac_ext <<_ACEOF
8139 /* end confdefs.h. */
8140 $ac_includes_default
8141 typedef long ac__type_sizeof_;
8143 main ()
8145 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8146 test_array [0] = 0
8149 return 0;
8151 _ACEOF
8152 rm -f conftest.$ac_objext
8153 if { (ac_try="$ac_compile"
8154 case "(($ac_try" in
8155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8156 *) ac_try_echo=$ac_try;;
8157 esac
8158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8159 (eval "$ac_compile") 2>conftest.er1
8160 ac_status=$?
8161 grep -v '^ *+' conftest.er1 >conftest.err
8162 rm -f conftest.er1
8163 cat conftest.err >&5
8164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8165 (exit $ac_status); } && {
8166 test -z "$ac_c_werror_flag" ||
8167 test ! -s conftest.err
8168 } && test -s conftest.$ac_objext; then
8169 ac_lo=$ac_mid; break
8170 else
8171 echo "$as_me: failed program was:" >&5
8172 sed 's/^/| /' conftest.$ac_ext >&5
8174 ac_hi=`expr '(' $ac_mid ')' - 1`
8175 if test $ac_mid -le $ac_hi; then
8176 ac_lo= ac_hi=
8177 break
8179 ac_mid=`expr 2 '*' $ac_mid`
8182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8183 done
8184 else
8185 echo "$as_me: failed program was:" >&5
8186 sed 's/^/| /' conftest.$ac_ext >&5
8188 ac_lo= ac_hi=
8191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8195 # Binary search between lo and hi bounds.
8196 while test "x$ac_lo" != "x$ac_hi"; do
8197 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8198 cat >conftest.$ac_ext <<_ACEOF
8199 /* confdefs.h. */
8200 _ACEOF
8201 cat confdefs.h >>conftest.$ac_ext
8202 cat >>conftest.$ac_ext <<_ACEOF
8203 /* end confdefs.h. */
8204 $ac_includes_default
8205 typedef long ac__type_sizeof_;
8207 main ()
8209 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8210 test_array [0] = 0
8213 return 0;
8215 _ACEOF
8216 rm -f conftest.$ac_objext
8217 if { (ac_try="$ac_compile"
8218 case "(($ac_try" in
8219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8220 *) ac_try_echo=$ac_try;;
8221 esac
8222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8223 (eval "$ac_compile") 2>conftest.er1
8224 ac_status=$?
8225 grep -v '^ *+' conftest.er1 >conftest.err
8226 rm -f conftest.er1
8227 cat conftest.err >&5
8228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8229 (exit $ac_status); } && {
8230 test -z "$ac_c_werror_flag" ||
8231 test ! -s conftest.err
8232 } && test -s conftest.$ac_objext; then
8233 ac_hi=$ac_mid
8234 else
8235 echo "$as_me: failed program was:" >&5
8236 sed 's/^/| /' conftest.$ac_ext >&5
8238 ac_lo=`expr '(' $ac_mid ')' + 1`
8241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8242 done
8243 case $ac_lo in
8244 ?*) ac_cv_sizeof_long=$ac_lo;;
8245 '') if test "$ac_cv_type_long" = yes; then
8246 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
8247 See \`config.log' for more details." >&5
8248 echo "$as_me: error: cannot compute sizeof (long)
8249 See \`config.log' for more details." >&2;}
8250 { (exit 77); exit 77; }; }
8251 else
8252 ac_cv_sizeof_long=0
8253 fi ;;
8254 esac
8255 else
8256 cat >conftest.$ac_ext <<_ACEOF
8257 /* confdefs.h. */
8258 _ACEOF
8259 cat confdefs.h >>conftest.$ac_ext
8260 cat >>conftest.$ac_ext <<_ACEOF
8261 /* end confdefs.h. */
8262 $ac_includes_default
8263 typedef long ac__type_sizeof_;
8264 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8265 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8266 #include <stdio.h>
8267 #include <stdlib.h>
8269 main ()
8272 FILE *f = fopen ("conftest.val", "w");
8273 if (! f)
8274 return 1;
8275 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8277 long int i = longval ();
8278 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8279 return 1;
8280 fprintf (f, "%ld\n", i);
8282 else
8284 unsigned long int i = ulongval ();
8285 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8286 return 1;
8287 fprintf (f, "%lu\n", i);
8289 return ferror (f) || fclose (f) != 0;
8292 return 0;
8294 _ACEOF
8295 rm -f conftest$ac_exeext
8296 if { (ac_try="$ac_link"
8297 case "(($ac_try" in
8298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8299 *) ac_try_echo=$ac_try;;
8300 esac
8301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8302 (eval "$ac_link") 2>&5
8303 ac_status=$?
8304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8305 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8306 { (case "(($ac_try" in
8307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8308 *) ac_try_echo=$ac_try;;
8309 esac
8310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8311 (eval "$ac_try") 2>&5
8312 ac_status=$?
8313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8314 (exit $ac_status); }; }; then
8315 ac_cv_sizeof_long=`cat conftest.val`
8316 else
8317 echo "$as_me: program exited with status $ac_status" >&5
8318 echo "$as_me: failed program was:" >&5
8319 sed 's/^/| /' conftest.$ac_ext >&5
8321 ( exit $ac_status )
8322 if test "$ac_cv_type_long" = yes; then
8323 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
8324 See \`config.log' for more details." >&5
8325 echo "$as_me: error: cannot compute sizeof (long)
8326 See \`config.log' for more details." >&2;}
8327 { (exit 77); exit 77; }; }
8328 else
8329 ac_cv_sizeof_long=0
8332 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8334 rm -f conftest.val
8336 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
8337 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
8341 cat >>confdefs.h <<_ACEOF
8342 #define SIZEOF_LONG $ac_cv_sizeof_long
8343 _ACEOF
8346 { echo "$as_me:$LINENO: checking for void *" >&5
8347 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
8348 if test "${ac_cv_type_void_p+set}" = set; then
8349 echo $ECHO_N "(cached) $ECHO_C" >&6
8350 else
8351 cat >conftest.$ac_ext <<_ACEOF
8352 /* confdefs.h. */
8353 _ACEOF
8354 cat confdefs.h >>conftest.$ac_ext
8355 cat >>conftest.$ac_ext <<_ACEOF
8356 /* end confdefs.h. */
8357 $ac_includes_default
8358 typedef void * ac__type_new_;
8360 main ()
8362 if ((ac__type_new_ *) 0)
8363 return 0;
8364 if (sizeof (ac__type_new_))
8365 return 0;
8367 return 0;
8369 _ACEOF
8370 rm -f conftest.$ac_objext
8371 if { (ac_try="$ac_compile"
8372 case "(($ac_try" in
8373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8374 *) ac_try_echo=$ac_try;;
8375 esac
8376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8377 (eval "$ac_compile") 2>conftest.er1
8378 ac_status=$?
8379 grep -v '^ *+' conftest.er1 >conftest.err
8380 rm -f conftest.er1
8381 cat conftest.err >&5
8382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8383 (exit $ac_status); } && {
8384 test -z "$ac_c_werror_flag" ||
8385 test ! -s conftest.err
8386 } && test -s conftest.$ac_objext; then
8387 ac_cv_type_void_p=yes
8388 else
8389 echo "$as_me: failed program was:" >&5
8390 sed 's/^/| /' conftest.$ac_ext >&5
8392 ac_cv_type_void_p=no
8395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8397 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
8398 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
8400 # The cast to long int works around a bug in the HP C Compiler
8401 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8402 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8403 # This bug is HP SR number 8606223364.
8404 { echo "$as_me:$LINENO: checking size of void *" >&5
8405 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
8406 if test "${ac_cv_sizeof_void_p+set}" = set; then
8407 echo $ECHO_N "(cached) $ECHO_C" >&6
8408 else
8409 if test "$cross_compiling" = yes; then
8410 # Depending upon the size, compute the lo and hi bounds.
8411 cat >conftest.$ac_ext <<_ACEOF
8412 /* confdefs.h. */
8413 _ACEOF
8414 cat confdefs.h >>conftest.$ac_ext
8415 cat >>conftest.$ac_ext <<_ACEOF
8416 /* end confdefs.h. */
8417 $ac_includes_default
8418 typedef void * ac__type_sizeof_;
8420 main ()
8422 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8423 test_array [0] = 0
8426 return 0;
8428 _ACEOF
8429 rm -f conftest.$ac_objext
8430 if { (ac_try="$ac_compile"
8431 case "(($ac_try" in
8432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8433 *) ac_try_echo=$ac_try;;
8434 esac
8435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8436 (eval "$ac_compile") 2>conftest.er1
8437 ac_status=$?
8438 grep -v '^ *+' conftest.er1 >conftest.err
8439 rm -f conftest.er1
8440 cat conftest.err >&5
8441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8442 (exit $ac_status); } && {
8443 test -z "$ac_c_werror_flag" ||
8444 test ! -s conftest.err
8445 } && test -s conftest.$ac_objext; then
8446 ac_lo=0 ac_mid=0
8447 while :; do
8448 cat >conftest.$ac_ext <<_ACEOF
8449 /* confdefs.h. */
8450 _ACEOF
8451 cat confdefs.h >>conftest.$ac_ext
8452 cat >>conftest.$ac_ext <<_ACEOF
8453 /* end confdefs.h. */
8454 $ac_includes_default
8455 typedef void * ac__type_sizeof_;
8457 main ()
8459 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8460 test_array [0] = 0
8463 return 0;
8465 _ACEOF
8466 rm -f conftest.$ac_objext
8467 if { (ac_try="$ac_compile"
8468 case "(($ac_try" in
8469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8470 *) ac_try_echo=$ac_try;;
8471 esac
8472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8473 (eval "$ac_compile") 2>conftest.er1
8474 ac_status=$?
8475 grep -v '^ *+' conftest.er1 >conftest.err
8476 rm -f conftest.er1
8477 cat conftest.err >&5
8478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8479 (exit $ac_status); } && {
8480 test -z "$ac_c_werror_flag" ||
8481 test ! -s conftest.err
8482 } && test -s conftest.$ac_objext; then
8483 ac_hi=$ac_mid; break
8484 else
8485 echo "$as_me: failed program was:" >&5
8486 sed 's/^/| /' conftest.$ac_ext >&5
8488 ac_lo=`expr $ac_mid + 1`
8489 if test $ac_lo -le $ac_mid; then
8490 ac_lo= ac_hi=
8491 break
8493 ac_mid=`expr 2 '*' $ac_mid + 1`
8496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8497 done
8498 else
8499 echo "$as_me: failed program was:" >&5
8500 sed 's/^/| /' conftest.$ac_ext >&5
8502 cat >conftest.$ac_ext <<_ACEOF
8503 /* confdefs.h. */
8504 _ACEOF
8505 cat confdefs.h >>conftest.$ac_ext
8506 cat >>conftest.$ac_ext <<_ACEOF
8507 /* end confdefs.h. */
8508 $ac_includes_default
8509 typedef void * ac__type_sizeof_;
8511 main ()
8513 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8514 test_array [0] = 0
8517 return 0;
8519 _ACEOF
8520 rm -f conftest.$ac_objext
8521 if { (ac_try="$ac_compile"
8522 case "(($ac_try" in
8523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8524 *) ac_try_echo=$ac_try;;
8525 esac
8526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8527 (eval "$ac_compile") 2>conftest.er1
8528 ac_status=$?
8529 grep -v '^ *+' conftest.er1 >conftest.err
8530 rm -f conftest.er1
8531 cat conftest.err >&5
8532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533 (exit $ac_status); } && {
8534 test -z "$ac_c_werror_flag" ||
8535 test ! -s conftest.err
8536 } && test -s conftest.$ac_objext; then
8537 ac_hi=-1 ac_mid=-1
8538 while :; do
8539 cat >conftest.$ac_ext <<_ACEOF
8540 /* confdefs.h. */
8541 _ACEOF
8542 cat confdefs.h >>conftest.$ac_ext
8543 cat >>conftest.$ac_ext <<_ACEOF
8544 /* end confdefs.h. */
8545 $ac_includes_default
8546 typedef void * ac__type_sizeof_;
8548 main ()
8550 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8551 test_array [0] = 0
8554 return 0;
8556 _ACEOF
8557 rm -f conftest.$ac_objext
8558 if { (ac_try="$ac_compile"
8559 case "(($ac_try" in
8560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8561 *) ac_try_echo=$ac_try;;
8562 esac
8563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8564 (eval "$ac_compile") 2>conftest.er1
8565 ac_status=$?
8566 grep -v '^ *+' conftest.er1 >conftest.err
8567 rm -f conftest.er1
8568 cat conftest.err >&5
8569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8570 (exit $ac_status); } && {
8571 test -z "$ac_c_werror_flag" ||
8572 test ! -s conftest.err
8573 } && test -s conftest.$ac_objext; then
8574 ac_lo=$ac_mid; break
8575 else
8576 echo "$as_me: failed program was:" >&5
8577 sed 's/^/| /' conftest.$ac_ext >&5
8579 ac_hi=`expr '(' $ac_mid ')' - 1`
8580 if test $ac_mid -le $ac_hi; then
8581 ac_lo= ac_hi=
8582 break
8584 ac_mid=`expr 2 '*' $ac_mid`
8587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8588 done
8589 else
8590 echo "$as_me: failed program was:" >&5
8591 sed 's/^/| /' conftest.$ac_ext >&5
8593 ac_lo= ac_hi=
8596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8600 # Binary search between lo and hi bounds.
8601 while test "x$ac_lo" != "x$ac_hi"; do
8602 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8603 cat >conftest.$ac_ext <<_ACEOF
8604 /* confdefs.h. */
8605 _ACEOF
8606 cat confdefs.h >>conftest.$ac_ext
8607 cat >>conftest.$ac_ext <<_ACEOF
8608 /* end confdefs.h. */
8609 $ac_includes_default
8610 typedef void * ac__type_sizeof_;
8612 main ()
8614 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8615 test_array [0] = 0
8618 return 0;
8620 _ACEOF
8621 rm -f conftest.$ac_objext
8622 if { (ac_try="$ac_compile"
8623 case "(($ac_try" in
8624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8625 *) ac_try_echo=$ac_try;;
8626 esac
8627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8628 (eval "$ac_compile") 2>conftest.er1
8629 ac_status=$?
8630 grep -v '^ *+' conftest.er1 >conftest.err
8631 rm -f conftest.er1
8632 cat conftest.err >&5
8633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8634 (exit $ac_status); } && {
8635 test -z "$ac_c_werror_flag" ||
8636 test ! -s conftest.err
8637 } && test -s conftest.$ac_objext; then
8638 ac_hi=$ac_mid
8639 else
8640 echo "$as_me: failed program was:" >&5
8641 sed 's/^/| /' conftest.$ac_ext >&5
8643 ac_lo=`expr '(' $ac_mid ')' + 1`
8646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8647 done
8648 case $ac_lo in
8649 ?*) ac_cv_sizeof_void_p=$ac_lo;;
8650 '') if test "$ac_cv_type_void_p" = yes; then
8651 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8652 See \`config.log' for more details." >&5
8653 echo "$as_me: error: cannot compute sizeof (void *)
8654 See \`config.log' for more details." >&2;}
8655 { (exit 77); exit 77; }; }
8656 else
8657 ac_cv_sizeof_void_p=0
8658 fi ;;
8659 esac
8660 else
8661 cat >conftest.$ac_ext <<_ACEOF
8662 /* confdefs.h. */
8663 _ACEOF
8664 cat confdefs.h >>conftest.$ac_ext
8665 cat >>conftest.$ac_ext <<_ACEOF
8666 /* end confdefs.h. */
8667 $ac_includes_default
8668 typedef void * ac__type_sizeof_;
8669 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8670 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8671 #include <stdio.h>
8672 #include <stdlib.h>
8674 main ()
8677 FILE *f = fopen ("conftest.val", "w");
8678 if (! f)
8679 return 1;
8680 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8682 long int i = longval ();
8683 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8684 return 1;
8685 fprintf (f, "%ld\n", i);
8687 else
8689 unsigned long int i = ulongval ();
8690 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8691 return 1;
8692 fprintf (f, "%lu\n", i);
8694 return ferror (f) || fclose (f) != 0;
8697 return 0;
8699 _ACEOF
8700 rm -f conftest$ac_exeext
8701 if { (ac_try="$ac_link"
8702 case "(($ac_try" in
8703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8704 *) ac_try_echo=$ac_try;;
8705 esac
8706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8707 (eval "$ac_link") 2>&5
8708 ac_status=$?
8709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8711 { (case "(($ac_try" in
8712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8713 *) ac_try_echo=$ac_try;;
8714 esac
8715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8716 (eval "$ac_try") 2>&5
8717 ac_status=$?
8718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8719 (exit $ac_status); }; }; then
8720 ac_cv_sizeof_void_p=`cat conftest.val`
8721 else
8722 echo "$as_me: program exited with status $ac_status" >&5
8723 echo "$as_me: failed program was:" >&5
8724 sed 's/^/| /' conftest.$ac_ext >&5
8726 ( exit $ac_status )
8727 if test "$ac_cv_type_void_p" = yes; then
8728 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8729 See \`config.log' for more details." >&5
8730 echo "$as_me: error: cannot compute sizeof (void *)
8731 See \`config.log' for more details." >&2;}
8732 { (exit 77); exit 77; }; }
8733 else
8734 ac_cv_sizeof_void_p=0
8737 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8739 rm -f conftest.val
8741 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
8742 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
8746 cat >>confdefs.h <<_ACEOF
8747 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
8748 _ACEOF
8751 { echo "$as_me:$LINENO: checking for short" >&5
8752 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
8753 if test "${ac_cv_type_short+set}" = set; then
8754 echo $ECHO_N "(cached) $ECHO_C" >&6
8755 else
8756 cat >conftest.$ac_ext <<_ACEOF
8757 /* confdefs.h. */
8758 _ACEOF
8759 cat confdefs.h >>conftest.$ac_ext
8760 cat >>conftest.$ac_ext <<_ACEOF
8761 /* end confdefs.h. */
8762 $ac_includes_default
8763 typedef short ac__type_new_;
8765 main ()
8767 if ((ac__type_new_ *) 0)
8768 return 0;
8769 if (sizeof (ac__type_new_))
8770 return 0;
8772 return 0;
8774 _ACEOF
8775 rm -f conftest.$ac_objext
8776 if { (ac_try="$ac_compile"
8777 case "(($ac_try" in
8778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8779 *) ac_try_echo=$ac_try;;
8780 esac
8781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8782 (eval "$ac_compile") 2>conftest.er1
8783 ac_status=$?
8784 grep -v '^ *+' conftest.er1 >conftest.err
8785 rm -f conftest.er1
8786 cat conftest.err >&5
8787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8788 (exit $ac_status); } && {
8789 test -z "$ac_c_werror_flag" ||
8790 test ! -s conftest.err
8791 } && test -s conftest.$ac_objext; then
8792 ac_cv_type_short=yes
8793 else
8794 echo "$as_me: failed program was:" >&5
8795 sed 's/^/| /' conftest.$ac_ext >&5
8797 ac_cv_type_short=no
8800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8802 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
8803 echo "${ECHO_T}$ac_cv_type_short" >&6; }
8805 # The cast to long int works around a bug in the HP C Compiler
8806 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8807 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8808 # This bug is HP SR number 8606223364.
8809 { echo "$as_me:$LINENO: checking size of short" >&5
8810 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
8811 if test "${ac_cv_sizeof_short+set}" = set; then
8812 echo $ECHO_N "(cached) $ECHO_C" >&6
8813 else
8814 if test "$cross_compiling" = yes; then
8815 # Depending upon the size, compute the lo and hi bounds.
8816 cat >conftest.$ac_ext <<_ACEOF
8817 /* confdefs.h. */
8818 _ACEOF
8819 cat confdefs.h >>conftest.$ac_ext
8820 cat >>conftest.$ac_ext <<_ACEOF
8821 /* end confdefs.h. */
8822 $ac_includes_default
8823 typedef short ac__type_sizeof_;
8825 main ()
8827 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8828 test_array [0] = 0
8831 return 0;
8833 _ACEOF
8834 rm -f conftest.$ac_objext
8835 if { (ac_try="$ac_compile"
8836 case "(($ac_try" in
8837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8838 *) ac_try_echo=$ac_try;;
8839 esac
8840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8841 (eval "$ac_compile") 2>conftest.er1
8842 ac_status=$?
8843 grep -v '^ *+' conftest.er1 >conftest.err
8844 rm -f conftest.er1
8845 cat conftest.err >&5
8846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8847 (exit $ac_status); } && {
8848 test -z "$ac_c_werror_flag" ||
8849 test ! -s conftest.err
8850 } && test -s conftest.$ac_objext; then
8851 ac_lo=0 ac_mid=0
8852 while :; do
8853 cat >conftest.$ac_ext <<_ACEOF
8854 /* confdefs.h. */
8855 _ACEOF
8856 cat confdefs.h >>conftest.$ac_ext
8857 cat >>conftest.$ac_ext <<_ACEOF
8858 /* end confdefs.h. */
8859 $ac_includes_default
8860 typedef short ac__type_sizeof_;
8862 main ()
8864 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8865 test_array [0] = 0
8868 return 0;
8870 _ACEOF
8871 rm -f conftest.$ac_objext
8872 if { (ac_try="$ac_compile"
8873 case "(($ac_try" in
8874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8875 *) ac_try_echo=$ac_try;;
8876 esac
8877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8878 (eval "$ac_compile") 2>conftest.er1
8879 ac_status=$?
8880 grep -v '^ *+' conftest.er1 >conftest.err
8881 rm -f conftest.er1
8882 cat conftest.err >&5
8883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8884 (exit $ac_status); } && {
8885 test -z "$ac_c_werror_flag" ||
8886 test ! -s conftest.err
8887 } && test -s conftest.$ac_objext; then
8888 ac_hi=$ac_mid; break
8889 else
8890 echo "$as_me: failed program was:" >&5
8891 sed 's/^/| /' conftest.$ac_ext >&5
8893 ac_lo=`expr $ac_mid + 1`
8894 if test $ac_lo -le $ac_mid; then
8895 ac_lo= ac_hi=
8896 break
8898 ac_mid=`expr 2 '*' $ac_mid + 1`
8901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8902 done
8903 else
8904 echo "$as_me: failed program was:" >&5
8905 sed 's/^/| /' conftest.$ac_ext >&5
8907 cat >conftest.$ac_ext <<_ACEOF
8908 /* confdefs.h. */
8909 _ACEOF
8910 cat confdefs.h >>conftest.$ac_ext
8911 cat >>conftest.$ac_ext <<_ACEOF
8912 /* end confdefs.h. */
8913 $ac_includes_default
8914 typedef short ac__type_sizeof_;
8916 main ()
8918 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8919 test_array [0] = 0
8922 return 0;
8924 _ACEOF
8925 rm -f conftest.$ac_objext
8926 if { (ac_try="$ac_compile"
8927 case "(($ac_try" in
8928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8929 *) ac_try_echo=$ac_try;;
8930 esac
8931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8932 (eval "$ac_compile") 2>conftest.er1
8933 ac_status=$?
8934 grep -v '^ *+' conftest.er1 >conftest.err
8935 rm -f conftest.er1
8936 cat conftest.err >&5
8937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8938 (exit $ac_status); } && {
8939 test -z "$ac_c_werror_flag" ||
8940 test ! -s conftest.err
8941 } && test -s conftest.$ac_objext; then
8942 ac_hi=-1 ac_mid=-1
8943 while :; do
8944 cat >conftest.$ac_ext <<_ACEOF
8945 /* confdefs.h. */
8946 _ACEOF
8947 cat confdefs.h >>conftest.$ac_ext
8948 cat >>conftest.$ac_ext <<_ACEOF
8949 /* end confdefs.h. */
8950 $ac_includes_default
8951 typedef short ac__type_sizeof_;
8953 main ()
8955 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8956 test_array [0] = 0
8959 return 0;
8961 _ACEOF
8962 rm -f conftest.$ac_objext
8963 if { (ac_try="$ac_compile"
8964 case "(($ac_try" in
8965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8966 *) ac_try_echo=$ac_try;;
8967 esac
8968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8969 (eval "$ac_compile") 2>conftest.er1
8970 ac_status=$?
8971 grep -v '^ *+' conftest.er1 >conftest.err
8972 rm -f conftest.er1
8973 cat conftest.err >&5
8974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8975 (exit $ac_status); } && {
8976 test -z "$ac_c_werror_flag" ||
8977 test ! -s conftest.err
8978 } && test -s conftest.$ac_objext; then
8979 ac_lo=$ac_mid; break
8980 else
8981 echo "$as_me: failed program was:" >&5
8982 sed 's/^/| /' conftest.$ac_ext >&5
8984 ac_hi=`expr '(' $ac_mid ')' - 1`
8985 if test $ac_mid -le $ac_hi; then
8986 ac_lo= ac_hi=
8987 break
8989 ac_mid=`expr 2 '*' $ac_mid`
8992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8993 done
8994 else
8995 echo "$as_me: failed program was:" >&5
8996 sed 's/^/| /' conftest.$ac_ext >&5
8998 ac_lo= ac_hi=
9001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9005 # Binary search between lo and hi bounds.
9006 while test "x$ac_lo" != "x$ac_hi"; do
9007 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9008 cat >conftest.$ac_ext <<_ACEOF
9009 /* confdefs.h. */
9010 _ACEOF
9011 cat confdefs.h >>conftest.$ac_ext
9012 cat >>conftest.$ac_ext <<_ACEOF
9013 /* end confdefs.h. */
9014 $ac_includes_default
9015 typedef short ac__type_sizeof_;
9017 main ()
9019 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9020 test_array [0] = 0
9023 return 0;
9025 _ACEOF
9026 rm -f conftest.$ac_objext
9027 if { (ac_try="$ac_compile"
9028 case "(($ac_try" in
9029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9030 *) ac_try_echo=$ac_try;;
9031 esac
9032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9033 (eval "$ac_compile") 2>conftest.er1
9034 ac_status=$?
9035 grep -v '^ *+' conftest.er1 >conftest.err
9036 rm -f conftest.er1
9037 cat conftest.err >&5
9038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9039 (exit $ac_status); } && {
9040 test -z "$ac_c_werror_flag" ||
9041 test ! -s conftest.err
9042 } && test -s conftest.$ac_objext; then
9043 ac_hi=$ac_mid
9044 else
9045 echo "$as_me: failed program was:" >&5
9046 sed 's/^/| /' conftest.$ac_ext >&5
9048 ac_lo=`expr '(' $ac_mid ')' + 1`
9051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9052 done
9053 case $ac_lo in
9054 ?*) ac_cv_sizeof_short=$ac_lo;;
9055 '') if test "$ac_cv_type_short" = yes; then
9056 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
9057 See \`config.log' for more details." >&5
9058 echo "$as_me: error: cannot compute sizeof (short)
9059 See \`config.log' for more details." >&2;}
9060 { (exit 77); exit 77; }; }
9061 else
9062 ac_cv_sizeof_short=0
9063 fi ;;
9064 esac
9065 else
9066 cat >conftest.$ac_ext <<_ACEOF
9067 /* confdefs.h. */
9068 _ACEOF
9069 cat confdefs.h >>conftest.$ac_ext
9070 cat >>conftest.$ac_ext <<_ACEOF
9071 /* end confdefs.h. */
9072 $ac_includes_default
9073 typedef short ac__type_sizeof_;
9074 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9075 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9076 #include <stdio.h>
9077 #include <stdlib.h>
9079 main ()
9082 FILE *f = fopen ("conftest.val", "w");
9083 if (! f)
9084 return 1;
9085 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9087 long int i = longval ();
9088 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9089 return 1;
9090 fprintf (f, "%ld\n", i);
9092 else
9094 unsigned long int i = ulongval ();
9095 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9096 return 1;
9097 fprintf (f, "%lu\n", i);
9099 return ferror (f) || fclose (f) != 0;
9102 return 0;
9104 _ACEOF
9105 rm -f conftest$ac_exeext
9106 if { (ac_try="$ac_link"
9107 case "(($ac_try" in
9108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9109 *) ac_try_echo=$ac_try;;
9110 esac
9111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9112 (eval "$ac_link") 2>&5
9113 ac_status=$?
9114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9115 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9116 { (case "(($ac_try" in
9117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9118 *) ac_try_echo=$ac_try;;
9119 esac
9120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9121 (eval "$ac_try") 2>&5
9122 ac_status=$?
9123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9124 (exit $ac_status); }; }; then
9125 ac_cv_sizeof_short=`cat conftest.val`
9126 else
9127 echo "$as_me: program exited with status $ac_status" >&5
9128 echo "$as_me: failed program was:" >&5
9129 sed 's/^/| /' conftest.$ac_ext >&5
9131 ( exit $ac_status )
9132 if test "$ac_cv_type_short" = yes; then
9133 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
9134 See \`config.log' for more details." >&5
9135 echo "$as_me: error: cannot compute sizeof (short)
9136 See \`config.log' for more details." >&2;}
9137 { (exit 77); exit 77; }; }
9138 else
9139 ac_cv_sizeof_short=0
9142 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9144 rm -f conftest.val
9146 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
9147 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
9151 cat >>confdefs.h <<_ACEOF
9152 #define SIZEOF_SHORT $ac_cv_sizeof_short
9153 _ACEOF
9156 { echo "$as_me:$LINENO: checking for float" >&5
9157 echo $ECHO_N "checking for float... $ECHO_C" >&6; }
9158 if test "${ac_cv_type_float+set}" = set; then
9159 echo $ECHO_N "(cached) $ECHO_C" >&6
9160 else
9161 cat >conftest.$ac_ext <<_ACEOF
9162 /* confdefs.h. */
9163 _ACEOF
9164 cat confdefs.h >>conftest.$ac_ext
9165 cat >>conftest.$ac_ext <<_ACEOF
9166 /* end confdefs.h. */
9167 $ac_includes_default
9168 typedef float ac__type_new_;
9170 main ()
9172 if ((ac__type_new_ *) 0)
9173 return 0;
9174 if (sizeof (ac__type_new_))
9175 return 0;
9177 return 0;
9179 _ACEOF
9180 rm -f conftest.$ac_objext
9181 if { (ac_try="$ac_compile"
9182 case "(($ac_try" in
9183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9184 *) ac_try_echo=$ac_try;;
9185 esac
9186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9187 (eval "$ac_compile") 2>conftest.er1
9188 ac_status=$?
9189 grep -v '^ *+' conftest.er1 >conftest.err
9190 rm -f conftest.er1
9191 cat conftest.err >&5
9192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9193 (exit $ac_status); } && {
9194 test -z "$ac_c_werror_flag" ||
9195 test ! -s conftest.err
9196 } && test -s conftest.$ac_objext; then
9197 ac_cv_type_float=yes
9198 else
9199 echo "$as_me: failed program was:" >&5
9200 sed 's/^/| /' conftest.$ac_ext >&5
9202 ac_cv_type_float=no
9205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9207 { echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
9208 echo "${ECHO_T}$ac_cv_type_float" >&6; }
9210 # The cast to long int works around a bug in the HP C Compiler
9211 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9212 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9213 # This bug is HP SR number 8606223364.
9214 { echo "$as_me:$LINENO: checking size of float" >&5
9215 echo $ECHO_N "checking size of float... $ECHO_C" >&6; }
9216 if test "${ac_cv_sizeof_float+set}" = set; then
9217 echo $ECHO_N "(cached) $ECHO_C" >&6
9218 else
9219 if test "$cross_compiling" = yes; then
9220 # Depending upon the size, compute the lo and hi bounds.
9221 cat >conftest.$ac_ext <<_ACEOF
9222 /* confdefs.h. */
9223 _ACEOF
9224 cat confdefs.h >>conftest.$ac_ext
9225 cat >>conftest.$ac_ext <<_ACEOF
9226 /* end confdefs.h. */
9227 $ac_includes_default
9228 typedef float ac__type_sizeof_;
9230 main ()
9232 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9233 test_array [0] = 0
9236 return 0;
9238 _ACEOF
9239 rm -f conftest.$ac_objext
9240 if { (ac_try="$ac_compile"
9241 case "(($ac_try" in
9242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9243 *) ac_try_echo=$ac_try;;
9244 esac
9245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9246 (eval "$ac_compile") 2>conftest.er1
9247 ac_status=$?
9248 grep -v '^ *+' conftest.er1 >conftest.err
9249 rm -f conftest.er1
9250 cat conftest.err >&5
9251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9252 (exit $ac_status); } && {
9253 test -z "$ac_c_werror_flag" ||
9254 test ! -s conftest.err
9255 } && test -s conftest.$ac_objext; then
9256 ac_lo=0 ac_mid=0
9257 while :; do
9258 cat >conftest.$ac_ext <<_ACEOF
9259 /* confdefs.h. */
9260 _ACEOF
9261 cat confdefs.h >>conftest.$ac_ext
9262 cat >>conftest.$ac_ext <<_ACEOF
9263 /* end confdefs.h. */
9264 $ac_includes_default
9265 typedef float ac__type_sizeof_;
9267 main ()
9269 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9270 test_array [0] = 0
9273 return 0;
9275 _ACEOF
9276 rm -f conftest.$ac_objext
9277 if { (ac_try="$ac_compile"
9278 case "(($ac_try" in
9279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9280 *) ac_try_echo=$ac_try;;
9281 esac
9282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9283 (eval "$ac_compile") 2>conftest.er1
9284 ac_status=$?
9285 grep -v '^ *+' conftest.er1 >conftest.err
9286 rm -f conftest.er1
9287 cat conftest.err >&5
9288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9289 (exit $ac_status); } && {
9290 test -z "$ac_c_werror_flag" ||
9291 test ! -s conftest.err
9292 } && test -s conftest.$ac_objext; then
9293 ac_hi=$ac_mid; break
9294 else
9295 echo "$as_me: failed program was:" >&5
9296 sed 's/^/| /' conftest.$ac_ext >&5
9298 ac_lo=`expr $ac_mid + 1`
9299 if test $ac_lo -le $ac_mid; then
9300 ac_lo= ac_hi=
9301 break
9303 ac_mid=`expr 2 '*' $ac_mid + 1`
9306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9307 done
9308 else
9309 echo "$as_me: failed program was:" >&5
9310 sed 's/^/| /' conftest.$ac_ext >&5
9312 cat >conftest.$ac_ext <<_ACEOF
9313 /* confdefs.h. */
9314 _ACEOF
9315 cat confdefs.h >>conftest.$ac_ext
9316 cat >>conftest.$ac_ext <<_ACEOF
9317 /* end confdefs.h. */
9318 $ac_includes_default
9319 typedef float ac__type_sizeof_;
9321 main ()
9323 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9324 test_array [0] = 0
9327 return 0;
9329 _ACEOF
9330 rm -f conftest.$ac_objext
9331 if { (ac_try="$ac_compile"
9332 case "(($ac_try" in
9333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9334 *) ac_try_echo=$ac_try;;
9335 esac
9336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9337 (eval "$ac_compile") 2>conftest.er1
9338 ac_status=$?
9339 grep -v '^ *+' conftest.er1 >conftest.err
9340 rm -f conftest.er1
9341 cat conftest.err >&5
9342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9343 (exit $ac_status); } && {
9344 test -z "$ac_c_werror_flag" ||
9345 test ! -s conftest.err
9346 } && test -s conftest.$ac_objext; then
9347 ac_hi=-1 ac_mid=-1
9348 while :; do
9349 cat >conftest.$ac_ext <<_ACEOF
9350 /* confdefs.h. */
9351 _ACEOF
9352 cat confdefs.h >>conftest.$ac_ext
9353 cat >>conftest.$ac_ext <<_ACEOF
9354 /* end confdefs.h. */
9355 $ac_includes_default
9356 typedef float ac__type_sizeof_;
9358 main ()
9360 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9361 test_array [0] = 0
9364 return 0;
9366 _ACEOF
9367 rm -f conftest.$ac_objext
9368 if { (ac_try="$ac_compile"
9369 case "(($ac_try" in
9370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9371 *) ac_try_echo=$ac_try;;
9372 esac
9373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9374 (eval "$ac_compile") 2>conftest.er1
9375 ac_status=$?
9376 grep -v '^ *+' conftest.er1 >conftest.err
9377 rm -f conftest.er1
9378 cat conftest.err >&5
9379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9380 (exit $ac_status); } && {
9381 test -z "$ac_c_werror_flag" ||
9382 test ! -s conftest.err
9383 } && test -s conftest.$ac_objext; then
9384 ac_lo=$ac_mid; break
9385 else
9386 echo "$as_me: failed program was:" >&5
9387 sed 's/^/| /' conftest.$ac_ext >&5
9389 ac_hi=`expr '(' $ac_mid ')' - 1`
9390 if test $ac_mid -le $ac_hi; then
9391 ac_lo= ac_hi=
9392 break
9394 ac_mid=`expr 2 '*' $ac_mid`
9397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9398 done
9399 else
9400 echo "$as_me: failed program was:" >&5
9401 sed 's/^/| /' conftest.$ac_ext >&5
9403 ac_lo= ac_hi=
9406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9410 # Binary search between lo and hi bounds.
9411 while test "x$ac_lo" != "x$ac_hi"; do
9412 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9413 cat >conftest.$ac_ext <<_ACEOF
9414 /* confdefs.h. */
9415 _ACEOF
9416 cat confdefs.h >>conftest.$ac_ext
9417 cat >>conftest.$ac_ext <<_ACEOF
9418 /* end confdefs.h. */
9419 $ac_includes_default
9420 typedef float ac__type_sizeof_;
9422 main ()
9424 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9425 test_array [0] = 0
9428 return 0;
9430 _ACEOF
9431 rm -f conftest.$ac_objext
9432 if { (ac_try="$ac_compile"
9433 case "(($ac_try" in
9434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9435 *) ac_try_echo=$ac_try;;
9436 esac
9437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9438 (eval "$ac_compile") 2>conftest.er1
9439 ac_status=$?
9440 grep -v '^ *+' conftest.er1 >conftest.err
9441 rm -f conftest.er1
9442 cat conftest.err >&5
9443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9444 (exit $ac_status); } && {
9445 test -z "$ac_c_werror_flag" ||
9446 test ! -s conftest.err
9447 } && test -s conftest.$ac_objext; then
9448 ac_hi=$ac_mid
9449 else
9450 echo "$as_me: failed program was:" >&5
9451 sed 's/^/| /' conftest.$ac_ext >&5
9453 ac_lo=`expr '(' $ac_mid ')' + 1`
9456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9457 done
9458 case $ac_lo in
9459 ?*) ac_cv_sizeof_float=$ac_lo;;
9460 '') if test "$ac_cv_type_float" = yes; then
9461 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
9462 See \`config.log' for more details." >&5
9463 echo "$as_me: error: cannot compute sizeof (float)
9464 See \`config.log' for more details." >&2;}
9465 { (exit 77); exit 77; }; }
9466 else
9467 ac_cv_sizeof_float=0
9468 fi ;;
9469 esac
9470 else
9471 cat >conftest.$ac_ext <<_ACEOF
9472 /* confdefs.h. */
9473 _ACEOF
9474 cat confdefs.h >>conftest.$ac_ext
9475 cat >>conftest.$ac_ext <<_ACEOF
9476 /* end confdefs.h. */
9477 $ac_includes_default
9478 typedef float ac__type_sizeof_;
9479 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9480 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9481 #include <stdio.h>
9482 #include <stdlib.h>
9484 main ()
9487 FILE *f = fopen ("conftest.val", "w");
9488 if (! f)
9489 return 1;
9490 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9492 long int i = longval ();
9493 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9494 return 1;
9495 fprintf (f, "%ld\n", i);
9497 else
9499 unsigned long int i = ulongval ();
9500 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9501 return 1;
9502 fprintf (f, "%lu\n", i);
9504 return ferror (f) || fclose (f) != 0;
9507 return 0;
9509 _ACEOF
9510 rm -f conftest$ac_exeext
9511 if { (ac_try="$ac_link"
9512 case "(($ac_try" in
9513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9514 *) ac_try_echo=$ac_try;;
9515 esac
9516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9517 (eval "$ac_link") 2>&5
9518 ac_status=$?
9519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9520 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9521 { (case "(($ac_try" in
9522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9523 *) ac_try_echo=$ac_try;;
9524 esac
9525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9526 (eval "$ac_try") 2>&5
9527 ac_status=$?
9528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9529 (exit $ac_status); }; }; then
9530 ac_cv_sizeof_float=`cat conftest.val`
9531 else
9532 echo "$as_me: program exited with status $ac_status" >&5
9533 echo "$as_me: failed program was:" >&5
9534 sed 's/^/| /' conftest.$ac_ext >&5
9536 ( exit $ac_status )
9537 if test "$ac_cv_type_float" = yes; then
9538 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
9539 See \`config.log' for more details." >&5
9540 echo "$as_me: error: cannot compute sizeof (float)
9541 See \`config.log' for more details." >&2;}
9542 { (exit 77); exit 77; }; }
9543 else
9544 ac_cv_sizeof_float=0
9547 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9549 rm -f conftest.val
9551 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
9552 echo "${ECHO_T}$ac_cv_sizeof_float" >&6; }
9556 cat >>confdefs.h <<_ACEOF
9557 #define SIZEOF_FLOAT $ac_cv_sizeof_float
9558 _ACEOF
9561 { echo "$as_me:$LINENO: checking for double" >&5
9562 echo $ECHO_N "checking for double... $ECHO_C" >&6; }
9563 if test "${ac_cv_type_double+set}" = set; then
9564 echo $ECHO_N "(cached) $ECHO_C" >&6
9565 else
9566 cat >conftest.$ac_ext <<_ACEOF
9567 /* confdefs.h. */
9568 _ACEOF
9569 cat confdefs.h >>conftest.$ac_ext
9570 cat >>conftest.$ac_ext <<_ACEOF
9571 /* end confdefs.h. */
9572 $ac_includes_default
9573 typedef double ac__type_new_;
9575 main ()
9577 if ((ac__type_new_ *) 0)
9578 return 0;
9579 if (sizeof (ac__type_new_))
9580 return 0;
9582 return 0;
9584 _ACEOF
9585 rm -f conftest.$ac_objext
9586 if { (ac_try="$ac_compile"
9587 case "(($ac_try" in
9588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9589 *) ac_try_echo=$ac_try;;
9590 esac
9591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9592 (eval "$ac_compile") 2>conftest.er1
9593 ac_status=$?
9594 grep -v '^ *+' conftest.er1 >conftest.err
9595 rm -f conftest.er1
9596 cat conftest.err >&5
9597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9598 (exit $ac_status); } && {
9599 test -z "$ac_c_werror_flag" ||
9600 test ! -s conftest.err
9601 } && test -s conftest.$ac_objext; then
9602 ac_cv_type_double=yes
9603 else
9604 echo "$as_me: failed program was:" >&5
9605 sed 's/^/| /' conftest.$ac_ext >&5
9607 ac_cv_type_double=no
9610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9612 { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
9613 echo "${ECHO_T}$ac_cv_type_double" >&6; }
9615 # The cast to long int works around a bug in the HP C Compiler
9616 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9617 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9618 # This bug is HP SR number 8606223364.
9619 { echo "$as_me:$LINENO: checking size of double" >&5
9620 echo $ECHO_N "checking size of double... $ECHO_C" >&6; }
9621 if test "${ac_cv_sizeof_double+set}" = set; then
9622 echo $ECHO_N "(cached) $ECHO_C" >&6
9623 else
9624 if test "$cross_compiling" = yes; then
9625 # Depending upon the size, compute the lo and hi bounds.
9626 cat >conftest.$ac_ext <<_ACEOF
9627 /* confdefs.h. */
9628 _ACEOF
9629 cat confdefs.h >>conftest.$ac_ext
9630 cat >>conftest.$ac_ext <<_ACEOF
9631 /* end confdefs.h. */
9632 $ac_includes_default
9633 typedef double ac__type_sizeof_;
9635 main ()
9637 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9638 test_array [0] = 0
9641 return 0;
9643 _ACEOF
9644 rm -f conftest.$ac_objext
9645 if { (ac_try="$ac_compile"
9646 case "(($ac_try" in
9647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9648 *) ac_try_echo=$ac_try;;
9649 esac
9650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9651 (eval "$ac_compile") 2>conftest.er1
9652 ac_status=$?
9653 grep -v '^ *+' conftest.er1 >conftest.err
9654 rm -f conftest.er1
9655 cat conftest.err >&5
9656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9657 (exit $ac_status); } && {
9658 test -z "$ac_c_werror_flag" ||
9659 test ! -s conftest.err
9660 } && test -s conftest.$ac_objext; then
9661 ac_lo=0 ac_mid=0
9662 while :; do
9663 cat >conftest.$ac_ext <<_ACEOF
9664 /* confdefs.h. */
9665 _ACEOF
9666 cat confdefs.h >>conftest.$ac_ext
9667 cat >>conftest.$ac_ext <<_ACEOF
9668 /* end confdefs.h. */
9669 $ac_includes_default
9670 typedef double ac__type_sizeof_;
9672 main ()
9674 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9675 test_array [0] = 0
9678 return 0;
9680 _ACEOF
9681 rm -f conftest.$ac_objext
9682 if { (ac_try="$ac_compile"
9683 case "(($ac_try" in
9684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9685 *) ac_try_echo=$ac_try;;
9686 esac
9687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9688 (eval "$ac_compile") 2>conftest.er1
9689 ac_status=$?
9690 grep -v '^ *+' conftest.er1 >conftest.err
9691 rm -f conftest.er1
9692 cat conftest.err >&5
9693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694 (exit $ac_status); } && {
9695 test -z "$ac_c_werror_flag" ||
9696 test ! -s conftest.err
9697 } && test -s conftest.$ac_objext; then
9698 ac_hi=$ac_mid; break
9699 else
9700 echo "$as_me: failed program was:" >&5
9701 sed 's/^/| /' conftest.$ac_ext >&5
9703 ac_lo=`expr $ac_mid + 1`
9704 if test $ac_lo -le $ac_mid; then
9705 ac_lo= ac_hi=
9706 break
9708 ac_mid=`expr 2 '*' $ac_mid + 1`
9711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9712 done
9713 else
9714 echo "$as_me: failed program was:" >&5
9715 sed 's/^/| /' conftest.$ac_ext >&5
9717 cat >conftest.$ac_ext <<_ACEOF
9718 /* confdefs.h. */
9719 _ACEOF
9720 cat confdefs.h >>conftest.$ac_ext
9721 cat >>conftest.$ac_ext <<_ACEOF
9722 /* end confdefs.h. */
9723 $ac_includes_default
9724 typedef double ac__type_sizeof_;
9726 main ()
9728 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9729 test_array [0] = 0
9732 return 0;
9734 _ACEOF
9735 rm -f conftest.$ac_objext
9736 if { (ac_try="$ac_compile"
9737 case "(($ac_try" in
9738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9739 *) ac_try_echo=$ac_try;;
9740 esac
9741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9742 (eval "$ac_compile") 2>conftest.er1
9743 ac_status=$?
9744 grep -v '^ *+' conftest.er1 >conftest.err
9745 rm -f conftest.er1
9746 cat conftest.err >&5
9747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9748 (exit $ac_status); } && {
9749 test -z "$ac_c_werror_flag" ||
9750 test ! -s conftest.err
9751 } && test -s conftest.$ac_objext; then
9752 ac_hi=-1 ac_mid=-1
9753 while :; do
9754 cat >conftest.$ac_ext <<_ACEOF
9755 /* confdefs.h. */
9756 _ACEOF
9757 cat confdefs.h >>conftest.$ac_ext
9758 cat >>conftest.$ac_ext <<_ACEOF
9759 /* end confdefs.h. */
9760 $ac_includes_default
9761 typedef double ac__type_sizeof_;
9763 main ()
9765 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9766 test_array [0] = 0
9769 return 0;
9771 _ACEOF
9772 rm -f conftest.$ac_objext
9773 if { (ac_try="$ac_compile"
9774 case "(($ac_try" in
9775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9776 *) ac_try_echo=$ac_try;;
9777 esac
9778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9779 (eval "$ac_compile") 2>conftest.er1
9780 ac_status=$?
9781 grep -v '^ *+' conftest.er1 >conftest.err
9782 rm -f conftest.er1
9783 cat conftest.err >&5
9784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9785 (exit $ac_status); } && {
9786 test -z "$ac_c_werror_flag" ||
9787 test ! -s conftest.err
9788 } && test -s conftest.$ac_objext; then
9789 ac_lo=$ac_mid; break
9790 else
9791 echo "$as_me: failed program was:" >&5
9792 sed 's/^/| /' conftest.$ac_ext >&5
9794 ac_hi=`expr '(' $ac_mid ')' - 1`
9795 if test $ac_mid -le $ac_hi; then
9796 ac_lo= ac_hi=
9797 break
9799 ac_mid=`expr 2 '*' $ac_mid`
9802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9803 done
9804 else
9805 echo "$as_me: failed program was:" >&5
9806 sed 's/^/| /' conftest.$ac_ext >&5
9808 ac_lo= ac_hi=
9811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9815 # Binary search between lo and hi bounds.
9816 while test "x$ac_lo" != "x$ac_hi"; do
9817 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9818 cat >conftest.$ac_ext <<_ACEOF
9819 /* confdefs.h. */
9820 _ACEOF
9821 cat confdefs.h >>conftest.$ac_ext
9822 cat >>conftest.$ac_ext <<_ACEOF
9823 /* end confdefs.h. */
9824 $ac_includes_default
9825 typedef double ac__type_sizeof_;
9827 main ()
9829 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9830 test_array [0] = 0
9833 return 0;
9835 _ACEOF
9836 rm -f conftest.$ac_objext
9837 if { (ac_try="$ac_compile"
9838 case "(($ac_try" in
9839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9840 *) ac_try_echo=$ac_try;;
9841 esac
9842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9843 (eval "$ac_compile") 2>conftest.er1
9844 ac_status=$?
9845 grep -v '^ *+' conftest.er1 >conftest.err
9846 rm -f conftest.er1
9847 cat conftest.err >&5
9848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9849 (exit $ac_status); } && {
9850 test -z "$ac_c_werror_flag" ||
9851 test ! -s conftest.err
9852 } && test -s conftest.$ac_objext; then
9853 ac_hi=$ac_mid
9854 else
9855 echo "$as_me: failed program was:" >&5
9856 sed 's/^/| /' conftest.$ac_ext >&5
9858 ac_lo=`expr '(' $ac_mid ')' + 1`
9861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9862 done
9863 case $ac_lo in
9864 ?*) ac_cv_sizeof_double=$ac_lo;;
9865 '') if test "$ac_cv_type_double" = yes; then
9866 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
9867 See \`config.log' for more details." >&5
9868 echo "$as_me: error: cannot compute sizeof (double)
9869 See \`config.log' for more details." >&2;}
9870 { (exit 77); exit 77; }; }
9871 else
9872 ac_cv_sizeof_double=0
9873 fi ;;
9874 esac
9875 else
9876 cat >conftest.$ac_ext <<_ACEOF
9877 /* confdefs.h. */
9878 _ACEOF
9879 cat confdefs.h >>conftest.$ac_ext
9880 cat >>conftest.$ac_ext <<_ACEOF
9881 /* end confdefs.h. */
9882 $ac_includes_default
9883 typedef double ac__type_sizeof_;
9884 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9885 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9886 #include <stdio.h>
9887 #include <stdlib.h>
9889 main ()
9892 FILE *f = fopen ("conftest.val", "w");
9893 if (! f)
9894 return 1;
9895 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9897 long int i = longval ();
9898 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9899 return 1;
9900 fprintf (f, "%ld\n", i);
9902 else
9904 unsigned long int i = ulongval ();
9905 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9906 return 1;
9907 fprintf (f, "%lu\n", i);
9909 return ferror (f) || fclose (f) != 0;
9912 return 0;
9914 _ACEOF
9915 rm -f conftest$ac_exeext
9916 if { (ac_try="$ac_link"
9917 case "(($ac_try" in
9918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9919 *) ac_try_echo=$ac_try;;
9920 esac
9921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9922 (eval "$ac_link") 2>&5
9923 ac_status=$?
9924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9925 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9926 { (case "(($ac_try" in
9927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9928 *) ac_try_echo=$ac_try;;
9929 esac
9930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9931 (eval "$ac_try") 2>&5
9932 ac_status=$?
9933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9934 (exit $ac_status); }; }; then
9935 ac_cv_sizeof_double=`cat conftest.val`
9936 else
9937 echo "$as_me: program exited with status $ac_status" >&5
9938 echo "$as_me: failed program was:" >&5
9939 sed 's/^/| /' conftest.$ac_ext >&5
9941 ( exit $ac_status )
9942 if test "$ac_cv_type_double" = yes; then
9943 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
9944 See \`config.log' for more details." >&5
9945 echo "$as_me: error: cannot compute sizeof (double)
9946 See \`config.log' for more details." >&2;}
9947 { (exit 77); exit 77; }; }
9948 else
9949 ac_cv_sizeof_double=0
9952 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9954 rm -f conftest.val
9956 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
9957 echo "${ECHO_T}$ac_cv_sizeof_double" >&6; }
9961 cat >>confdefs.h <<_ACEOF
9962 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
9963 _ACEOF
9966 { echo "$as_me:$LINENO: checking for fpos_t" >&5
9967 echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6; }
9968 if test "${ac_cv_type_fpos_t+set}" = set; then
9969 echo $ECHO_N "(cached) $ECHO_C" >&6
9970 else
9971 cat >conftest.$ac_ext <<_ACEOF
9972 /* confdefs.h. */
9973 _ACEOF
9974 cat confdefs.h >>conftest.$ac_ext
9975 cat >>conftest.$ac_ext <<_ACEOF
9976 /* end confdefs.h. */
9977 $ac_includes_default
9978 typedef fpos_t ac__type_new_;
9980 main ()
9982 if ((ac__type_new_ *) 0)
9983 return 0;
9984 if (sizeof (ac__type_new_))
9985 return 0;
9987 return 0;
9989 _ACEOF
9990 rm -f conftest.$ac_objext
9991 if { (ac_try="$ac_compile"
9992 case "(($ac_try" in
9993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9994 *) ac_try_echo=$ac_try;;
9995 esac
9996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9997 (eval "$ac_compile") 2>conftest.er1
9998 ac_status=$?
9999 grep -v '^ *+' conftest.er1 >conftest.err
10000 rm -f conftest.er1
10001 cat conftest.err >&5
10002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10003 (exit $ac_status); } && {
10004 test -z "$ac_c_werror_flag" ||
10005 test ! -s conftest.err
10006 } && test -s conftest.$ac_objext; then
10007 ac_cv_type_fpos_t=yes
10008 else
10009 echo "$as_me: failed program was:" >&5
10010 sed 's/^/| /' conftest.$ac_ext >&5
10012 ac_cv_type_fpos_t=no
10015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10017 { echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
10018 echo "${ECHO_T}$ac_cv_type_fpos_t" >&6; }
10020 # The cast to long int works around a bug in the HP C Compiler
10021 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10022 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10023 # This bug is HP SR number 8606223364.
10024 { echo "$as_me:$LINENO: checking size of fpos_t" >&5
10025 echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6; }
10026 if test "${ac_cv_sizeof_fpos_t+set}" = set; then
10027 echo $ECHO_N "(cached) $ECHO_C" >&6
10028 else
10029 if test "$cross_compiling" = yes; then
10030 # Depending upon the size, compute the lo and hi bounds.
10031 cat >conftest.$ac_ext <<_ACEOF
10032 /* confdefs.h. */
10033 _ACEOF
10034 cat confdefs.h >>conftest.$ac_ext
10035 cat >>conftest.$ac_ext <<_ACEOF
10036 /* end confdefs.h. */
10037 $ac_includes_default
10038 typedef fpos_t ac__type_sizeof_;
10040 main ()
10042 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10043 test_array [0] = 0
10046 return 0;
10048 _ACEOF
10049 rm -f conftest.$ac_objext
10050 if { (ac_try="$ac_compile"
10051 case "(($ac_try" in
10052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10053 *) ac_try_echo=$ac_try;;
10054 esac
10055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10056 (eval "$ac_compile") 2>conftest.er1
10057 ac_status=$?
10058 grep -v '^ *+' conftest.er1 >conftest.err
10059 rm -f conftest.er1
10060 cat conftest.err >&5
10061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10062 (exit $ac_status); } && {
10063 test -z "$ac_c_werror_flag" ||
10064 test ! -s conftest.err
10065 } && test -s conftest.$ac_objext; then
10066 ac_lo=0 ac_mid=0
10067 while :; do
10068 cat >conftest.$ac_ext <<_ACEOF
10069 /* confdefs.h. */
10070 _ACEOF
10071 cat confdefs.h >>conftest.$ac_ext
10072 cat >>conftest.$ac_ext <<_ACEOF
10073 /* end confdefs.h. */
10074 $ac_includes_default
10075 typedef fpos_t ac__type_sizeof_;
10077 main ()
10079 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10080 test_array [0] = 0
10083 return 0;
10085 _ACEOF
10086 rm -f conftest.$ac_objext
10087 if { (ac_try="$ac_compile"
10088 case "(($ac_try" in
10089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10090 *) ac_try_echo=$ac_try;;
10091 esac
10092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10093 (eval "$ac_compile") 2>conftest.er1
10094 ac_status=$?
10095 grep -v '^ *+' conftest.er1 >conftest.err
10096 rm -f conftest.er1
10097 cat conftest.err >&5
10098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10099 (exit $ac_status); } && {
10100 test -z "$ac_c_werror_flag" ||
10101 test ! -s conftest.err
10102 } && test -s conftest.$ac_objext; then
10103 ac_hi=$ac_mid; break
10104 else
10105 echo "$as_me: failed program was:" >&5
10106 sed 's/^/| /' conftest.$ac_ext >&5
10108 ac_lo=`expr $ac_mid + 1`
10109 if test $ac_lo -le $ac_mid; then
10110 ac_lo= ac_hi=
10111 break
10113 ac_mid=`expr 2 '*' $ac_mid + 1`
10116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10117 done
10118 else
10119 echo "$as_me: failed program was:" >&5
10120 sed 's/^/| /' conftest.$ac_ext >&5
10122 cat >conftest.$ac_ext <<_ACEOF
10123 /* confdefs.h. */
10124 _ACEOF
10125 cat confdefs.h >>conftest.$ac_ext
10126 cat >>conftest.$ac_ext <<_ACEOF
10127 /* end confdefs.h. */
10128 $ac_includes_default
10129 typedef fpos_t ac__type_sizeof_;
10131 main ()
10133 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10134 test_array [0] = 0
10137 return 0;
10139 _ACEOF
10140 rm -f conftest.$ac_objext
10141 if { (ac_try="$ac_compile"
10142 case "(($ac_try" in
10143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10144 *) ac_try_echo=$ac_try;;
10145 esac
10146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10147 (eval "$ac_compile") 2>conftest.er1
10148 ac_status=$?
10149 grep -v '^ *+' conftest.er1 >conftest.err
10150 rm -f conftest.er1
10151 cat conftest.err >&5
10152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10153 (exit $ac_status); } && {
10154 test -z "$ac_c_werror_flag" ||
10155 test ! -s conftest.err
10156 } && test -s conftest.$ac_objext; then
10157 ac_hi=-1 ac_mid=-1
10158 while :; do
10159 cat >conftest.$ac_ext <<_ACEOF
10160 /* confdefs.h. */
10161 _ACEOF
10162 cat confdefs.h >>conftest.$ac_ext
10163 cat >>conftest.$ac_ext <<_ACEOF
10164 /* end confdefs.h. */
10165 $ac_includes_default
10166 typedef fpos_t ac__type_sizeof_;
10168 main ()
10170 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10171 test_array [0] = 0
10174 return 0;
10176 _ACEOF
10177 rm -f conftest.$ac_objext
10178 if { (ac_try="$ac_compile"
10179 case "(($ac_try" in
10180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10181 *) ac_try_echo=$ac_try;;
10182 esac
10183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10184 (eval "$ac_compile") 2>conftest.er1
10185 ac_status=$?
10186 grep -v '^ *+' conftest.er1 >conftest.err
10187 rm -f conftest.er1
10188 cat conftest.err >&5
10189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10190 (exit $ac_status); } && {
10191 test -z "$ac_c_werror_flag" ||
10192 test ! -s conftest.err
10193 } && test -s conftest.$ac_objext; then
10194 ac_lo=$ac_mid; break
10195 else
10196 echo "$as_me: failed program was:" >&5
10197 sed 's/^/| /' conftest.$ac_ext >&5
10199 ac_hi=`expr '(' $ac_mid ')' - 1`
10200 if test $ac_mid -le $ac_hi; then
10201 ac_lo= ac_hi=
10202 break
10204 ac_mid=`expr 2 '*' $ac_mid`
10207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10208 done
10209 else
10210 echo "$as_me: failed program was:" >&5
10211 sed 's/^/| /' conftest.$ac_ext >&5
10213 ac_lo= ac_hi=
10216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10220 # Binary search between lo and hi bounds.
10221 while test "x$ac_lo" != "x$ac_hi"; do
10222 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10223 cat >conftest.$ac_ext <<_ACEOF
10224 /* confdefs.h. */
10225 _ACEOF
10226 cat confdefs.h >>conftest.$ac_ext
10227 cat >>conftest.$ac_ext <<_ACEOF
10228 /* end confdefs.h. */
10229 $ac_includes_default
10230 typedef fpos_t ac__type_sizeof_;
10232 main ()
10234 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10235 test_array [0] = 0
10238 return 0;
10240 _ACEOF
10241 rm -f conftest.$ac_objext
10242 if { (ac_try="$ac_compile"
10243 case "(($ac_try" in
10244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10245 *) ac_try_echo=$ac_try;;
10246 esac
10247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10248 (eval "$ac_compile") 2>conftest.er1
10249 ac_status=$?
10250 grep -v '^ *+' conftest.er1 >conftest.err
10251 rm -f conftest.er1
10252 cat conftest.err >&5
10253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254 (exit $ac_status); } && {
10255 test -z "$ac_c_werror_flag" ||
10256 test ! -s conftest.err
10257 } && test -s conftest.$ac_objext; then
10258 ac_hi=$ac_mid
10259 else
10260 echo "$as_me: failed program was:" >&5
10261 sed 's/^/| /' conftest.$ac_ext >&5
10263 ac_lo=`expr '(' $ac_mid ')' + 1`
10266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10267 done
10268 case $ac_lo in
10269 ?*) ac_cv_sizeof_fpos_t=$ac_lo;;
10270 '') if test "$ac_cv_type_fpos_t" = yes; then
10271 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
10272 See \`config.log' for more details." >&5
10273 echo "$as_me: error: cannot compute sizeof (fpos_t)
10274 See \`config.log' for more details." >&2;}
10275 { (exit 77); exit 77; }; }
10276 else
10277 ac_cv_sizeof_fpos_t=0
10278 fi ;;
10279 esac
10280 else
10281 cat >conftest.$ac_ext <<_ACEOF
10282 /* confdefs.h. */
10283 _ACEOF
10284 cat confdefs.h >>conftest.$ac_ext
10285 cat >>conftest.$ac_ext <<_ACEOF
10286 /* end confdefs.h. */
10287 $ac_includes_default
10288 typedef fpos_t ac__type_sizeof_;
10289 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10290 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10291 #include <stdio.h>
10292 #include <stdlib.h>
10294 main ()
10297 FILE *f = fopen ("conftest.val", "w");
10298 if (! f)
10299 return 1;
10300 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10302 long int i = longval ();
10303 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10304 return 1;
10305 fprintf (f, "%ld\n", i);
10307 else
10309 unsigned long int i = ulongval ();
10310 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10311 return 1;
10312 fprintf (f, "%lu\n", i);
10314 return ferror (f) || fclose (f) != 0;
10317 return 0;
10319 _ACEOF
10320 rm -f conftest$ac_exeext
10321 if { (ac_try="$ac_link"
10322 case "(($ac_try" in
10323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10324 *) ac_try_echo=$ac_try;;
10325 esac
10326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10327 (eval "$ac_link") 2>&5
10328 ac_status=$?
10329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10330 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10331 { (case "(($ac_try" in
10332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10333 *) ac_try_echo=$ac_try;;
10334 esac
10335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10336 (eval "$ac_try") 2>&5
10337 ac_status=$?
10338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10339 (exit $ac_status); }; }; then
10340 ac_cv_sizeof_fpos_t=`cat conftest.val`
10341 else
10342 echo "$as_me: program exited with status $ac_status" >&5
10343 echo "$as_me: failed program was:" >&5
10344 sed 's/^/| /' conftest.$ac_ext >&5
10346 ( exit $ac_status )
10347 if test "$ac_cv_type_fpos_t" = yes; then
10348 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
10349 See \`config.log' for more details." >&5
10350 echo "$as_me: error: cannot compute sizeof (fpos_t)
10351 See \`config.log' for more details." >&2;}
10352 { (exit 77); exit 77; }; }
10353 else
10354 ac_cv_sizeof_fpos_t=0
10357 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10359 rm -f conftest.val
10361 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
10362 echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6; }
10366 cat >>confdefs.h <<_ACEOF
10367 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
10368 _ACEOF
10371 { echo "$as_me:$LINENO: checking for size_t" >&5
10372 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
10373 if test "${ac_cv_type_size_t+set}" = set; then
10374 echo $ECHO_N "(cached) $ECHO_C" >&6
10375 else
10376 cat >conftest.$ac_ext <<_ACEOF
10377 /* confdefs.h. */
10378 _ACEOF
10379 cat confdefs.h >>conftest.$ac_ext
10380 cat >>conftest.$ac_ext <<_ACEOF
10381 /* end confdefs.h. */
10382 $ac_includes_default
10383 typedef size_t ac__type_new_;
10385 main ()
10387 if ((ac__type_new_ *) 0)
10388 return 0;
10389 if (sizeof (ac__type_new_))
10390 return 0;
10392 return 0;
10394 _ACEOF
10395 rm -f conftest.$ac_objext
10396 if { (ac_try="$ac_compile"
10397 case "(($ac_try" in
10398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10399 *) ac_try_echo=$ac_try;;
10400 esac
10401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10402 (eval "$ac_compile") 2>conftest.er1
10403 ac_status=$?
10404 grep -v '^ *+' conftest.er1 >conftest.err
10405 rm -f conftest.er1
10406 cat conftest.err >&5
10407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10408 (exit $ac_status); } && {
10409 test -z "$ac_c_werror_flag" ||
10410 test ! -s conftest.err
10411 } && test -s conftest.$ac_objext; then
10412 ac_cv_type_size_t=yes
10413 else
10414 echo "$as_me: failed program was:" >&5
10415 sed 's/^/| /' conftest.$ac_ext >&5
10417 ac_cv_type_size_t=no
10420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10422 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10423 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
10425 # The cast to long int works around a bug in the HP C Compiler
10426 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10427 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10428 # This bug is HP SR number 8606223364.
10429 { echo "$as_me:$LINENO: checking size of size_t" >&5
10430 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
10431 if test "${ac_cv_sizeof_size_t+set}" = set; then
10432 echo $ECHO_N "(cached) $ECHO_C" >&6
10433 else
10434 if test "$cross_compiling" = yes; then
10435 # Depending upon the size, compute the lo and hi bounds.
10436 cat >conftest.$ac_ext <<_ACEOF
10437 /* confdefs.h. */
10438 _ACEOF
10439 cat confdefs.h >>conftest.$ac_ext
10440 cat >>conftest.$ac_ext <<_ACEOF
10441 /* end confdefs.h. */
10442 $ac_includes_default
10443 typedef size_t ac__type_sizeof_;
10445 main ()
10447 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10448 test_array [0] = 0
10451 return 0;
10453 _ACEOF
10454 rm -f conftest.$ac_objext
10455 if { (ac_try="$ac_compile"
10456 case "(($ac_try" in
10457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10458 *) ac_try_echo=$ac_try;;
10459 esac
10460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10461 (eval "$ac_compile") 2>conftest.er1
10462 ac_status=$?
10463 grep -v '^ *+' conftest.er1 >conftest.err
10464 rm -f conftest.er1
10465 cat conftest.err >&5
10466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10467 (exit $ac_status); } && {
10468 test -z "$ac_c_werror_flag" ||
10469 test ! -s conftest.err
10470 } && test -s conftest.$ac_objext; then
10471 ac_lo=0 ac_mid=0
10472 while :; do
10473 cat >conftest.$ac_ext <<_ACEOF
10474 /* confdefs.h. */
10475 _ACEOF
10476 cat confdefs.h >>conftest.$ac_ext
10477 cat >>conftest.$ac_ext <<_ACEOF
10478 /* end confdefs.h. */
10479 $ac_includes_default
10480 typedef size_t ac__type_sizeof_;
10482 main ()
10484 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10485 test_array [0] = 0
10488 return 0;
10490 _ACEOF
10491 rm -f conftest.$ac_objext
10492 if { (ac_try="$ac_compile"
10493 case "(($ac_try" in
10494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10495 *) ac_try_echo=$ac_try;;
10496 esac
10497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10498 (eval "$ac_compile") 2>conftest.er1
10499 ac_status=$?
10500 grep -v '^ *+' conftest.er1 >conftest.err
10501 rm -f conftest.er1
10502 cat conftest.err >&5
10503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10504 (exit $ac_status); } && {
10505 test -z "$ac_c_werror_flag" ||
10506 test ! -s conftest.err
10507 } && test -s conftest.$ac_objext; then
10508 ac_hi=$ac_mid; break
10509 else
10510 echo "$as_me: failed program was:" >&5
10511 sed 's/^/| /' conftest.$ac_ext >&5
10513 ac_lo=`expr $ac_mid + 1`
10514 if test $ac_lo -le $ac_mid; then
10515 ac_lo= ac_hi=
10516 break
10518 ac_mid=`expr 2 '*' $ac_mid + 1`
10521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10522 done
10523 else
10524 echo "$as_me: failed program was:" >&5
10525 sed 's/^/| /' conftest.$ac_ext >&5
10527 cat >conftest.$ac_ext <<_ACEOF
10528 /* confdefs.h. */
10529 _ACEOF
10530 cat confdefs.h >>conftest.$ac_ext
10531 cat >>conftest.$ac_ext <<_ACEOF
10532 /* end confdefs.h. */
10533 $ac_includes_default
10534 typedef size_t ac__type_sizeof_;
10536 main ()
10538 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10539 test_array [0] = 0
10542 return 0;
10544 _ACEOF
10545 rm -f conftest.$ac_objext
10546 if { (ac_try="$ac_compile"
10547 case "(($ac_try" in
10548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10549 *) ac_try_echo=$ac_try;;
10550 esac
10551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10552 (eval "$ac_compile") 2>conftest.er1
10553 ac_status=$?
10554 grep -v '^ *+' conftest.er1 >conftest.err
10555 rm -f conftest.er1
10556 cat conftest.err >&5
10557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10558 (exit $ac_status); } && {
10559 test -z "$ac_c_werror_flag" ||
10560 test ! -s conftest.err
10561 } && test -s conftest.$ac_objext; then
10562 ac_hi=-1 ac_mid=-1
10563 while :; do
10564 cat >conftest.$ac_ext <<_ACEOF
10565 /* confdefs.h. */
10566 _ACEOF
10567 cat confdefs.h >>conftest.$ac_ext
10568 cat >>conftest.$ac_ext <<_ACEOF
10569 /* end confdefs.h. */
10570 $ac_includes_default
10571 typedef size_t ac__type_sizeof_;
10573 main ()
10575 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10576 test_array [0] = 0
10579 return 0;
10581 _ACEOF
10582 rm -f conftest.$ac_objext
10583 if { (ac_try="$ac_compile"
10584 case "(($ac_try" in
10585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10586 *) ac_try_echo=$ac_try;;
10587 esac
10588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10589 (eval "$ac_compile") 2>conftest.er1
10590 ac_status=$?
10591 grep -v '^ *+' conftest.er1 >conftest.err
10592 rm -f conftest.er1
10593 cat conftest.err >&5
10594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10595 (exit $ac_status); } && {
10596 test -z "$ac_c_werror_flag" ||
10597 test ! -s conftest.err
10598 } && test -s conftest.$ac_objext; then
10599 ac_lo=$ac_mid; break
10600 else
10601 echo "$as_me: failed program was:" >&5
10602 sed 's/^/| /' conftest.$ac_ext >&5
10604 ac_hi=`expr '(' $ac_mid ')' - 1`
10605 if test $ac_mid -le $ac_hi; then
10606 ac_lo= ac_hi=
10607 break
10609 ac_mid=`expr 2 '*' $ac_mid`
10612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10613 done
10614 else
10615 echo "$as_me: failed program was:" >&5
10616 sed 's/^/| /' conftest.$ac_ext >&5
10618 ac_lo= ac_hi=
10621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10625 # Binary search between lo and hi bounds.
10626 while test "x$ac_lo" != "x$ac_hi"; do
10627 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10628 cat >conftest.$ac_ext <<_ACEOF
10629 /* confdefs.h. */
10630 _ACEOF
10631 cat confdefs.h >>conftest.$ac_ext
10632 cat >>conftest.$ac_ext <<_ACEOF
10633 /* end confdefs.h. */
10634 $ac_includes_default
10635 typedef size_t ac__type_sizeof_;
10637 main ()
10639 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10640 test_array [0] = 0
10643 return 0;
10645 _ACEOF
10646 rm -f conftest.$ac_objext
10647 if { (ac_try="$ac_compile"
10648 case "(($ac_try" in
10649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10650 *) ac_try_echo=$ac_try;;
10651 esac
10652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10653 (eval "$ac_compile") 2>conftest.er1
10654 ac_status=$?
10655 grep -v '^ *+' conftest.er1 >conftest.err
10656 rm -f conftest.er1
10657 cat conftest.err >&5
10658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10659 (exit $ac_status); } && {
10660 test -z "$ac_c_werror_flag" ||
10661 test ! -s conftest.err
10662 } && test -s conftest.$ac_objext; then
10663 ac_hi=$ac_mid
10664 else
10665 echo "$as_me: failed program was:" >&5
10666 sed 's/^/| /' conftest.$ac_ext >&5
10668 ac_lo=`expr '(' $ac_mid ')' + 1`
10671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10672 done
10673 case $ac_lo in
10674 ?*) ac_cv_sizeof_size_t=$ac_lo;;
10675 '') if test "$ac_cv_type_size_t" = yes; then
10676 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
10677 See \`config.log' for more details." >&5
10678 echo "$as_me: error: cannot compute sizeof (size_t)
10679 See \`config.log' for more details." >&2;}
10680 { (exit 77); exit 77; }; }
10681 else
10682 ac_cv_sizeof_size_t=0
10683 fi ;;
10684 esac
10685 else
10686 cat >conftest.$ac_ext <<_ACEOF
10687 /* confdefs.h. */
10688 _ACEOF
10689 cat confdefs.h >>conftest.$ac_ext
10690 cat >>conftest.$ac_ext <<_ACEOF
10691 /* end confdefs.h. */
10692 $ac_includes_default
10693 typedef size_t ac__type_sizeof_;
10694 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10695 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10696 #include <stdio.h>
10697 #include <stdlib.h>
10699 main ()
10702 FILE *f = fopen ("conftest.val", "w");
10703 if (! f)
10704 return 1;
10705 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10707 long int i = longval ();
10708 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10709 return 1;
10710 fprintf (f, "%ld\n", i);
10712 else
10714 unsigned long int i = ulongval ();
10715 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10716 return 1;
10717 fprintf (f, "%lu\n", i);
10719 return ferror (f) || fclose (f) != 0;
10722 return 0;
10724 _ACEOF
10725 rm -f conftest$ac_exeext
10726 if { (ac_try="$ac_link"
10727 case "(($ac_try" in
10728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10729 *) ac_try_echo=$ac_try;;
10730 esac
10731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10732 (eval "$ac_link") 2>&5
10733 ac_status=$?
10734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10735 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10736 { (case "(($ac_try" in
10737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10738 *) ac_try_echo=$ac_try;;
10739 esac
10740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10741 (eval "$ac_try") 2>&5
10742 ac_status=$?
10743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10744 (exit $ac_status); }; }; then
10745 ac_cv_sizeof_size_t=`cat conftest.val`
10746 else
10747 echo "$as_me: program exited with status $ac_status" >&5
10748 echo "$as_me: failed program was:" >&5
10749 sed 's/^/| /' conftest.$ac_ext >&5
10751 ( exit $ac_status )
10752 if test "$ac_cv_type_size_t" = yes; then
10753 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
10754 See \`config.log' for more details." >&5
10755 echo "$as_me: error: cannot compute sizeof (size_t)
10756 See \`config.log' for more details." >&2;}
10757 { (exit 77); exit 77; }; }
10758 else
10759 ac_cv_sizeof_size_t=0
10762 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10764 rm -f conftest.val
10766 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
10767 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
10771 cat >>confdefs.h <<_ACEOF
10772 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
10773 _ACEOF
10776 { echo "$as_me:$LINENO: checking for pid_t" >&5
10777 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
10778 if test "${ac_cv_type_pid_t+set}" = set; then
10779 echo $ECHO_N "(cached) $ECHO_C" >&6
10780 else
10781 cat >conftest.$ac_ext <<_ACEOF
10782 /* confdefs.h. */
10783 _ACEOF
10784 cat confdefs.h >>conftest.$ac_ext
10785 cat >>conftest.$ac_ext <<_ACEOF
10786 /* end confdefs.h. */
10787 $ac_includes_default
10788 typedef pid_t ac__type_new_;
10790 main ()
10792 if ((ac__type_new_ *) 0)
10793 return 0;
10794 if (sizeof (ac__type_new_))
10795 return 0;
10797 return 0;
10799 _ACEOF
10800 rm -f conftest.$ac_objext
10801 if { (ac_try="$ac_compile"
10802 case "(($ac_try" in
10803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10804 *) ac_try_echo=$ac_try;;
10805 esac
10806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10807 (eval "$ac_compile") 2>conftest.er1
10808 ac_status=$?
10809 grep -v '^ *+' conftest.er1 >conftest.err
10810 rm -f conftest.er1
10811 cat conftest.err >&5
10812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10813 (exit $ac_status); } && {
10814 test -z "$ac_c_werror_flag" ||
10815 test ! -s conftest.err
10816 } && test -s conftest.$ac_objext; then
10817 ac_cv_type_pid_t=yes
10818 else
10819 echo "$as_me: failed program was:" >&5
10820 sed 's/^/| /' conftest.$ac_ext >&5
10822 ac_cv_type_pid_t=no
10825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10827 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10828 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
10830 # The cast to long int works around a bug in the HP C Compiler
10831 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10832 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10833 # This bug is HP SR number 8606223364.
10834 { echo "$as_me:$LINENO: checking size of pid_t" >&5
10835 echo $ECHO_N "checking size of pid_t... $ECHO_C" >&6; }
10836 if test "${ac_cv_sizeof_pid_t+set}" = set; then
10837 echo $ECHO_N "(cached) $ECHO_C" >&6
10838 else
10839 if test "$cross_compiling" = yes; then
10840 # Depending upon the size, compute the lo and hi bounds.
10841 cat >conftest.$ac_ext <<_ACEOF
10842 /* confdefs.h. */
10843 _ACEOF
10844 cat confdefs.h >>conftest.$ac_ext
10845 cat >>conftest.$ac_ext <<_ACEOF
10846 /* end confdefs.h. */
10847 $ac_includes_default
10848 typedef pid_t ac__type_sizeof_;
10850 main ()
10852 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10853 test_array [0] = 0
10856 return 0;
10858 _ACEOF
10859 rm -f conftest.$ac_objext
10860 if { (ac_try="$ac_compile"
10861 case "(($ac_try" in
10862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10863 *) ac_try_echo=$ac_try;;
10864 esac
10865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10866 (eval "$ac_compile") 2>conftest.er1
10867 ac_status=$?
10868 grep -v '^ *+' conftest.er1 >conftest.err
10869 rm -f conftest.er1
10870 cat conftest.err >&5
10871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10872 (exit $ac_status); } && {
10873 test -z "$ac_c_werror_flag" ||
10874 test ! -s conftest.err
10875 } && test -s conftest.$ac_objext; then
10876 ac_lo=0 ac_mid=0
10877 while :; do
10878 cat >conftest.$ac_ext <<_ACEOF
10879 /* confdefs.h. */
10880 _ACEOF
10881 cat confdefs.h >>conftest.$ac_ext
10882 cat >>conftest.$ac_ext <<_ACEOF
10883 /* end confdefs.h. */
10884 $ac_includes_default
10885 typedef pid_t ac__type_sizeof_;
10887 main ()
10889 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10890 test_array [0] = 0
10893 return 0;
10895 _ACEOF
10896 rm -f conftest.$ac_objext
10897 if { (ac_try="$ac_compile"
10898 case "(($ac_try" in
10899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10900 *) ac_try_echo=$ac_try;;
10901 esac
10902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10903 (eval "$ac_compile") 2>conftest.er1
10904 ac_status=$?
10905 grep -v '^ *+' conftest.er1 >conftest.err
10906 rm -f conftest.er1
10907 cat conftest.err >&5
10908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10909 (exit $ac_status); } && {
10910 test -z "$ac_c_werror_flag" ||
10911 test ! -s conftest.err
10912 } && test -s conftest.$ac_objext; then
10913 ac_hi=$ac_mid; break
10914 else
10915 echo "$as_me: failed program was:" >&5
10916 sed 's/^/| /' conftest.$ac_ext >&5
10918 ac_lo=`expr $ac_mid + 1`
10919 if test $ac_lo -le $ac_mid; then
10920 ac_lo= ac_hi=
10921 break
10923 ac_mid=`expr 2 '*' $ac_mid + 1`
10926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10927 done
10928 else
10929 echo "$as_me: failed program was:" >&5
10930 sed 's/^/| /' conftest.$ac_ext >&5
10932 cat >conftest.$ac_ext <<_ACEOF
10933 /* confdefs.h. */
10934 _ACEOF
10935 cat confdefs.h >>conftest.$ac_ext
10936 cat >>conftest.$ac_ext <<_ACEOF
10937 /* end confdefs.h. */
10938 $ac_includes_default
10939 typedef pid_t ac__type_sizeof_;
10941 main ()
10943 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10944 test_array [0] = 0
10947 return 0;
10949 _ACEOF
10950 rm -f conftest.$ac_objext
10951 if { (ac_try="$ac_compile"
10952 case "(($ac_try" in
10953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10954 *) ac_try_echo=$ac_try;;
10955 esac
10956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10957 (eval "$ac_compile") 2>conftest.er1
10958 ac_status=$?
10959 grep -v '^ *+' conftest.er1 >conftest.err
10960 rm -f conftest.er1
10961 cat conftest.err >&5
10962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10963 (exit $ac_status); } && {
10964 test -z "$ac_c_werror_flag" ||
10965 test ! -s conftest.err
10966 } && test -s conftest.$ac_objext; then
10967 ac_hi=-1 ac_mid=-1
10968 while :; do
10969 cat >conftest.$ac_ext <<_ACEOF
10970 /* confdefs.h. */
10971 _ACEOF
10972 cat confdefs.h >>conftest.$ac_ext
10973 cat >>conftest.$ac_ext <<_ACEOF
10974 /* end confdefs.h. */
10975 $ac_includes_default
10976 typedef pid_t ac__type_sizeof_;
10978 main ()
10980 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10981 test_array [0] = 0
10984 return 0;
10986 _ACEOF
10987 rm -f conftest.$ac_objext
10988 if { (ac_try="$ac_compile"
10989 case "(($ac_try" in
10990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10991 *) ac_try_echo=$ac_try;;
10992 esac
10993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10994 (eval "$ac_compile") 2>conftest.er1
10995 ac_status=$?
10996 grep -v '^ *+' conftest.er1 >conftest.err
10997 rm -f conftest.er1
10998 cat conftest.err >&5
10999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11000 (exit $ac_status); } && {
11001 test -z "$ac_c_werror_flag" ||
11002 test ! -s conftest.err
11003 } && test -s conftest.$ac_objext; then
11004 ac_lo=$ac_mid; break
11005 else
11006 echo "$as_me: failed program was:" >&5
11007 sed 's/^/| /' conftest.$ac_ext >&5
11009 ac_hi=`expr '(' $ac_mid ')' - 1`
11010 if test $ac_mid -le $ac_hi; then
11011 ac_lo= ac_hi=
11012 break
11014 ac_mid=`expr 2 '*' $ac_mid`
11017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11018 done
11019 else
11020 echo "$as_me: failed program was:" >&5
11021 sed 's/^/| /' conftest.$ac_ext >&5
11023 ac_lo= ac_hi=
11026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11030 # Binary search between lo and hi bounds.
11031 while test "x$ac_lo" != "x$ac_hi"; do
11032 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11033 cat >conftest.$ac_ext <<_ACEOF
11034 /* confdefs.h. */
11035 _ACEOF
11036 cat confdefs.h >>conftest.$ac_ext
11037 cat >>conftest.$ac_ext <<_ACEOF
11038 /* end confdefs.h. */
11039 $ac_includes_default
11040 typedef pid_t ac__type_sizeof_;
11042 main ()
11044 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11045 test_array [0] = 0
11048 return 0;
11050 _ACEOF
11051 rm -f conftest.$ac_objext
11052 if { (ac_try="$ac_compile"
11053 case "(($ac_try" in
11054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11055 *) ac_try_echo=$ac_try;;
11056 esac
11057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11058 (eval "$ac_compile") 2>conftest.er1
11059 ac_status=$?
11060 grep -v '^ *+' conftest.er1 >conftest.err
11061 rm -f conftest.er1
11062 cat conftest.err >&5
11063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11064 (exit $ac_status); } && {
11065 test -z "$ac_c_werror_flag" ||
11066 test ! -s conftest.err
11067 } && test -s conftest.$ac_objext; then
11068 ac_hi=$ac_mid
11069 else
11070 echo "$as_me: failed program was:" >&5
11071 sed 's/^/| /' conftest.$ac_ext >&5
11073 ac_lo=`expr '(' $ac_mid ')' + 1`
11076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11077 done
11078 case $ac_lo in
11079 ?*) ac_cv_sizeof_pid_t=$ac_lo;;
11080 '') if test "$ac_cv_type_pid_t" = yes; then
11081 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t)
11082 See \`config.log' for more details." >&5
11083 echo "$as_me: error: cannot compute sizeof (pid_t)
11084 See \`config.log' for more details." >&2;}
11085 { (exit 77); exit 77; }; }
11086 else
11087 ac_cv_sizeof_pid_t=0
11088 fi ;;
11089 esac
11090 else
11091 cat >conftest.$ac_ext <<_ACEOF
11092 /* confdefs.h. */
11093 _ACEOF
11094 cat confdefs.h >>conftest.$ac_ext
11095 cat >>conftest.$ac_ext <<_ACEOF
11096 /* end confdefs.h. */
11097 $ac_includes_default
11098 typedef pid_t ac__type_sizeof_;
11099 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11100 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11101 #include <stdio.h>
11102 #include <stdlib.h>
11104 main ()
11107 FILE *f = fopen ("conftest.val", "w");
11108 if (! f)
11109 return 1;
11110 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11112 long int i = longval ();
11113 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11114 return 1;
11115 fprintf (f, "%ld\n", i);
11117 else
11119 unsigned long int i = ulongval ();
11120 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11121 return 1;
11122 fprintf (f, "%lu\n", i);
11124 return ferror (f) || fclose (f) != 0;
11127 return 0;
11129 _ACEOF
11130 rm -f conftest$ac_exeext
11131 if { (ac_try="$ac_link"
11132 case "(($ac_try" in
11133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11134 *) ac_try_echo=$ac_try;;
11135 esac
11136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11137 (eval "$ac_link") 2>&5
11138 ac_status=$?
11139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11140 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11141 { (case "(($ac_try" in
11142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11143 *) ac_try_echo=$ac_try;;
11144 esac
11145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11146 (eval "$ac_try") 2>&5
11147 ac_status=$?
11148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11149 (exit $ac_status); }; }; then
11150 ac_cv_sizeof_pid_t=`cat conftest.val`
11151 else
11152 echo "$as_me: program exited with status $ac_status" >&5
11153 echo "$as_me: failed program was:" >&5
11154 sed 's/^/| /' conftest.$ac_ext >&5
11156 ( exit $ac_status )
11157 if test "$ac_cv_type_pid_t" = yes; then
11158 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t)
11159 See \`config.log' for more details." >&5
11160 echo "$as_me: error: cannot compute sizeof (pid_t)
11161 See \`config.log' for more details." >&2;}
11162 { (exit 77); exit 77; }; }
11163 else
11164 ac_cv_sizeof_pid_t=0
11167 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11169 rm -f conftest.val
11171 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pid_t" >&5
11172 echo "${ECHO_T}$ac_cv_sizeof_pid_t" >&6; }
11176 cat >>confdefs.h <<_ACEOF
11177 #define SIZEOF_PID_T $ac_cv_sizeof_pid_t
11178 _ACEOF
11182 { echo "$as_me:$LINENO: checking for long long support" >&5
11183 echo $ECHO_N "checking for long long support... $ECHO_C" >&6; }
11184 have_long_long=no
11185 cat >conftest.$ac_ext <<_ACEOF
11186 /* confdefs.h. */
11187 _ACEOF
11188 cat confdefs.h >>conftest.$ac_ext
11189 cat >>conftest.$ac_ext <<_ACEOF
11190 /* end confdefs.h. */
11193 main ()
11195 long long x; x = (long long)0;
11197 return 0;
11199 _ACEOF
11200 rm -f conftest.$ac_objext
11201 if { (ac_try="$ac_compile"
11202 case "(($ac_try" in
11203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11204 *) ac_try_echo=$ac_try;;
11205 esac
11206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11207 (eval "$ac_compile") 2>conftest.er1
11208 ac_status=$?
11209 grep -v '^ *+' conftest.er1 >conftest.err
11210 rm -f conftest.er1
11211 cat conftest.err >&5
11212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11213 (exit $ac_status); } && {
11214 test -z "$ac_c_werror_flag" ||
11215 test ! -s conftest.err
11216 } && test -s conftest.$ac_objext; then
11219 cat >>confdefs.h <<\_ACEOF
11220 #define HAVE_LONG_LONG 1
11221 _ACEOF
11223 have_long_long=yes
11225 else
11226 echo "$as_me: failed program was:" >&5
11227 sed 's/^/| /' conftest.$ac_ext >&5
11232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11233 { echo "$as_me:$LINENO: result: $have_long_long" >&5
11234 echo "${ECHO_T}$have_long_long" >&6; }
11235 if test "$have_long_long" = yes ; then
11236 { echo "$as_me:$LINENO: checking for long long" >&5
11237 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
11238 if test "${ac_cv_type_long_long+set}" = set; then
11239 echo $ECHO_N "(cached) $ECHO_C" >&6
11240 else
11241 cat >conftest.$ac_ext <<_ACEOF
11242 /* confdefs.h. */
11243 _ACEOF
11244 cat confdefs.h >>conftest.$ac_ext
11245 cat >>conftest.$ac_ext <<_ACEOF
11246 /* end confdefs.h. */
11247 $ac_includes_default
11248 typedef long long ac__type_new_;
11250 main ()
11252 if ((ac__type_new_ *) 0)
11253 return 0;
11254 if (sizeof (ac__type_new_))
11255 return 0;
11257 return 0;
11259 _ACEOF
11260 rm -f conftest.$ac_objext
11261 if { (ac_try="$ac_compile"
11262 case "(($ac_try" in
11263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11264 *) ac_try_echo=$ac_try;;
11265 esac
11266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11267 (eval "$ac_compile") 2>conftest.er1
11268 ac_status=$?
11269 grep -v '^ *+' conftest.er1 >conftest.err
11270 rm -f conftest.er1
11271 cat conftest.err >&5
11272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11273 (exit $ac_status); } && {
11274 test -z "$ac_c_werror_flag" ||
11275 test ! -s conftest.err
11276 } && test -s conftest.$ac_objext; then
11277 ac_cv_type_long_long=yes
11278 else
11279 echo "$as_me: failed program was:" >&5
11280 sed 's/^/| /' conftest.$ac_ext >&5
11282 ac_cv_type_long_long=no
11285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11287 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
11288 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
11290 # The cast to long int works around a bug in the HP C Compiler
11291 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11292 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11293 # This bug is HP SR number 8606223364.
11294 { echo "$as_me:$LINENO: checking size of long long" >&5
11295 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
11296 if test "${ac_cv_sizeof_long_long+set}" = set; then
11297 echo $ECHO_N "(cached) $ECHO_C" >&6
11298 else
11299 if test "$cross_compiling" = yes; then
11300 # Depending upon the size, compute the lo and hi bounds.
11301 cat >conftest.$ac_ext <<_ACEOF
11302 /* confdefs.h. */
11303 _ACEOF
11304 cat confdefs.h >>conftest.$ac_ext
11305 cat >>conftest.$ac_ext <<_ACEOF
11306 /* end confdefs.h. */
11307 $ac_includes_default
11308 typedef long long ac__type_sizeof_;
11310 main ()
11312 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11313 test_array [0] = 0
11316 return 0;
11318 _ACEOF
11319 rm -f conftest.$ac_objext
11320 if { (ac_try="$ac_compile"
11321 case "(($ac_try" in
11322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11323 *) ac_try_echo=$ac_try;;
11324 esac
11325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11326 (eval "$ac_compile") 2>conftest.er1
11327 ac_status=$?
11328 grep -v '^ *+' conftest.er1 >conftest.err
11329 rm -f conftest.er1
11330 cat conftest.err >&5
11331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11332 (exit $ac_status); } && {
11333 test -z "$ac_c_werror_flag" ||
11334 test ! -s conftest.err
11335 } && test -s conftest.$ac_objext; then
11336 ac_lo=0 ac_mid=0
11337 while :; do
11338 cat >conftest.$ac_ext <<_ACEOF
11339 /* confdefs.h. */
11340 _ACEOF
11341 cat confdefs.h >>conftest.$ac_ext
11342 cat >>conftest.$ac_ext <<_ACEOF
11343 /* end confdefs.h. */
11344 $ac_includes_default
11345 typedef long long ac__type_sizeof_;
11347 main ()
11349 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11350 test_array [0] = 0
11353 return 0;
11355 _ACEOF
11356 rm -f conftest.$ac_objext
11357 if { (ac_try="$ac_compile"
11358 case "(($ac_try" in
11359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11360 *) ac_try_echo=$ac_try;;
11361 esac
11362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11363 (eval "$ac_compile") 2>conftest.er1
11364 ac_status=$?
11365 grep -v '^ *+' conftest.er1 >conftest.err
11366 rm -f conftest.er1
11367 cat conftest.err >&5
11368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11369 (exit $ac_status); } && {
11370 test -z "$ac_c_werror_flag" ||
11371 test ! -s conftest.err
11372 } && test -s conftest.$ac_objext; then
11373 ac_hi=$ac_mid; break
11374 else
11375 echo "$as_me: failed program was:" >&5
11376 sed 's/^/| /' conftest.$ac_ext >&5
11378 ac_lo=`expr $ac_mid + 1`
11379 if test $ac_lo -le $ac_mid; then
11380 ac_lo= ac_hi=
11381 break
11383 ac_mid=`expr 2 '*' $ac_mid + 1`
11386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11387 done
11388 else
11389 echo "$as_me: failed program was:" >&5
11390 sed 's/^/| /' conftest.$ac_ext >&5
11392 cat >conftest.$ac_ext <<_ACEOF
11393 /* confdefs.h. */
11394 _ACEOF
11395 cat confdefs.h >>conftest.$ac_ext
11396 cat >>conftest.$ac_ext <<_ACEOF
11397 /* end confdefs.h. */
11398 $ac_includes_default
11399 typedef long long ac__type_sizeof_;
11401 main ()
11403 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11404 test_array [0] = 0
11407 return 0;
11409 _ACEOF
11410 rm -f conftest.$ac_objext
11411 if { (ac_try="$ac_compile"
11412 case "(($ac_try" in
11413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11414 *) ac_try_echo=$ac_try;;
11415 esac
11416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11417 (eval "$ac_compile") 2>conftest.er1
11418 ac_status=$?
11419 grep -v '^ *+' conftest.er1 >conftest.err
11420 rm -f conftest.er1
11421 cat conftest.err >&5
11422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11423 (exit $ac_status); } && {
11424 test -z "$ac_c_werror_flag" ||
11425 test ! -s conftest.err
11426 } && test -s conftest.$ac_objext; then
11427 ac_hi=-1 ac_mid=-1
11428 while :; do
11429 cat >conftest.$ac_ext <<_ACEOF
11430 /* confdefs.h. */
11431 _ACEOF
11432 cat confdefs.h >>conftest.$ac_ext
11433 cat >>conftest.$ac_ext <<_ACEOF
11434 /* end confdefs.h. */
11435 $ac_includes_default
11436 typedef long long ac__type_sizeof_;
11438 main ()
11440 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11441 test_array [0] = 0
11444 return 0;
11446 _ACEOF
11447 rm -f conftest.$ac_objext
11448 if { (ac_try="$ac_compile"
11449 case "(($ac_try" in
11450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11451 *) ac_try_echo=$ac_try;;
11452 esac
11453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11454 (eval "$ac_compile") 2>conftest.er1
11455 ac_status=$?
11456 grep -v '^ *+' conftest.er1 >conftest.err
11457 rm -f conftest.er1
11458 cat conftest.err >&5
11459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11460 (exit $ac_status); } && {
11461 test -z "$ac_c_werror_flag" ||
11462 test ! -s conftest.err
11463 } && test -s conftest.$ac_objext; then
11464 ac_lo=$ac_mid; break
11465 else
11466 echo "$as_me: failed program was:" >&5
11467 sed 's/^/| /' conftest.$ac_ext >&5
11469 ac_hi=`expr '(' $ac_mid ')' - 1`
11470 if test $ac_mid -le $ac_hi; then
11471 ac_lo= ac_hi=
11472 break
11474 ac_mid=`expr 2 '*' $ac_mid`
11477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11478 done
11479 else
11480 echo "$as_me: failed program was:" >&5
11481 sed 's/^/| /' conftest.$ac_ext >&5
11483 ac_lo= ac_hi=
11486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11490 # Binary search between lo and hi bounds.
11491 while test "x$ac_lo" != "x$ac_hi"; do
11492 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11493 cat >conftest.$ac_ext <<_ACEOF
11494 /* confdefs.h. */
11495 _ACEOF
11496 cat confdefs.h >>conftest.$ac_ext
11497 cat >>conftest.$ac_ext <<_ACEOF
11498 /* end confdefs.h. */
11499 $ac_includes_default
11500 typedef long long ac__type_sizeof_;
11502 main ()
11504 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11505 test_array [0] = 0
11508 return 0;
11510 _ACEOF
11511 rm -f conftest.$ac_objext
11512 if { (ac_try="$ac_compile"
11513 case "(($ac_try" in
11514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11515 *) ac_try_echo=$ac_try;;
11516 esac
11517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11518 (eval "$ac_compile") 2>conftest.er1
11519 ac_status=$?
11520 grep -v '^ *+' conftest.er1 >conftest.err
11521 rm -f conftest.er1
11522 cat conftest.err >&5
11523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11524 (exit $ac_status); } && {
11525 test -z "$ac_c_werror_flag" ||
11526 test ! -s conftest.err
11527 } && test -s conftest.$ac_objext; then
11528 ac_hi=$ac_mid
11529 else
11530 echo "$as_me: failed program was:" >&5
11531 sed 's/^/| /' conftest.$ac_ext >&5
11533 ac_lo=`expr '(' $ac_mid ')' + 1`
11536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11537 done
11538 case $ac_lo in
11539 ?*) ac_cv_sizeof_long_long=$ac_lo;;
11540 '') if test "$ac_cv_type_long_long" = yes; then
11541 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
11542 See \`config.log' for more details." >&5
11543 echo "$as_me: error: cannot compute sizeof (long long)
11544 See \`config.log' for more details." >&2;}
11545 { (exit 77); exit 77; }; }
11546 else
11547 ac_cv_sizeof_long_long=0
11548 fi ;;
11549 esac
11550 else
11551 cat >conftest.$ac_ext <<_ACEOF
11552 /* confdefs.h. */
11553 _ACEOF
11554 cat confdefs.h >>conftest.$ac_ext
11555 cat >>conftest.$ac_ext <<_ACEOF
11556 /* end confdefs.h. */
11557 $ac_includes_default
11558 typedef long long ac__type_sizeof_;
11559 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11560 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11561 #include <stdio.h>
11562 #include <stdlib.h>
11564 main ()
11567 FILE *f = fopen ("conftest.val", "w");
11568 if (! f)
11569 return 1;
11570 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11572 long int i = longval ();
11573 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11574 return 1;
11575 fprintf (f, "%ld\n", i);
11577 else
11579 unsigned long int i = ulongval ();
11580 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11581 return 1;
11582 fprintf (f, "%lu\n", i);
11584 return ferror (f) || fclose (f) != 0;
11587 return 0;
11589 _ACEOF
11590 rm -f conftest$ac_exeext
11591 if { (ac_try="$ac_link"
11592 case "(($ac_try" in
11593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11594 *) ac_try_echo=$ac_try;;
11595 esac
11596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11597 (eval "$ac_link") 2>&5
11598 ac_status=$?
11599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11600 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11601 { (case "(($ac_try" in
11602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11603 *) ac_try_echo=$ac_try;;
11604 esac
11605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11606 (eval "$ac_try") 2>&5
11607 ac_status=$?
11608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11609 (exit $ac_status); }; }; then
11610 ac_cv_sizeof_long_long=`cat conftest.val`
11611 else
11612 echo "$as_me: program exited with status $ac_status" >&5
11613 echo "$as_me: failed program was:" >&5
11614 sed 's/^/| /' conftest.$ac_ext >&5
11616 ( exit $ac_status )
11617 if test "$ac_cv_type_long_long" = yes; then
11618 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
11619 See \`config.log' for more details." >&5
11620 echo "$as_me: error: cannot compute sizeof (long long)
11621 See \`config.log' for more details." >&2;}
11622 { (exit 77); exit 77; }; }
11623 else
11624 ac_cv_sizeof_long_long=0
11627 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11629 rm -f conftest.val
11631 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
11632 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
11636 cat >>confdefs.h <<_ACEOF
11637 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
11638 _ACEOF
11643 { echo "$as_me:$LINENO: checking for long double support" >&5
11644 echo $ECHO_N "checking for long double support... $ECHO_C" >&6; }
11645 have_long_double=no
11646 cat >conftest.$ac_ext <<_ACEOF
11647 /* confdefs.h. */
11648 _ACEOF
11649 cat confdefs.h >>conftest.$ac_ext
11650 cat >>conftest.$ac_ext <<_ACEOF
11651 /* end confdefs.h. */
11654 main ()
11656 long double x; x = (long double)0.;
11658 return 0;
11660 _ACEOF
11661 rm -f conftest.$ac_objext
11662 if { (ac_try="$ac_compile"
11663 case "(($ac_try" in
11664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11665 *) ac_try_echo=$ac_try;;
11666 esac
11667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11668 (eval "$ac_compile") 2>conftest.er1
11669 ac_status=$?
11670 grep -v '^ *+' conftest.er1 >conftest.err
11671 rm -f conftest.er1
11672 cat conftest.err >&5
11673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11674 (exit $ac_status); } && {
11675 test -z "$ac_c_werror_flag" ||
11676 test ! -s conftest.err
11677 } && test -s conftest.$ac_objext; then
11680 cat >>confdefs.h <<\_ACEOF
11681 #define HAVE_LONG_DOUBLE 1
11682 _ACEOF
11684 have_long_double=yes
11686 else
11687 echo "$as_me: failed program was:" >&5
11688 sed 's/^/| /' conftest.$ac_ext >&5
11693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11694 { echo "$as_me:$LINENO: result: $have_long_double" >&5
11695 echo "${ECHO_T}$have_long_double" >&6; }
11696 if test "$have_long_double" = yes ; then
11697 { echo "$as_me:$LINENO: checking for long double" >&5
11698 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
11699 if test "${ac_cv_type_long_double+set}" = set; then
11700 echo $ECHO_N "(cached) $ECHO_C" >&6
11701 else
11702 cat >conftest.$ac_ext <<_ACEOF
11703 /* confdefs.h. */
11704 _ACEOF
11705 cat confdefs.h >>conftest.$ac_ext
11706 cat >>conftest.$ac_ext <<_ACEOF
11707 /* end confdefs.h. */
11708 $ac_includes_default
11709 typedef long double ac__type_new_;
11711 main ()
11713 if ((ac__type_new_ *) 0)
11714 return 0;
11715 if (sizeof (ac__type_new_))
11716 return 0;
11718 return 0;
11720 _ACEOF
11721 rm -f conftest.$ac_objext
11722 if { (ac_try="$ac_compile"
11723 case "(($ac_try" in
11724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11725 *) ac_try_echo=$ac_try;;
11726 esac
11727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11728 (eval "$ac_compile") 2>conftest.er1
11729 ac_status=$?
11730 grep -v '^ *+' conftest.er1 >conftest.err
11731 rm -f conftest.er1
11732 cat conftest.err >&5
11733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11734 (exit $ac_status); } && {
11735 test -z "$ac_c_werror_flag" ||
11736 test ! -s conftest.err
11737 } && test -s conftest.$ac_objext; then
11738 ac_cv_type_long_double=yes
11739 else
11740 echo "$as_me: failed program was:" >&5
11741 sed 's/^/| /' conftest.$ac_ext >&5
11743 ac_cv_type_long_double=no
11746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11748 { echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
11749 echo "${ECHO_T}$ac_cv_type_long_double" >&6; }
11751 # The cast to long int works around a bug in the HP C Compiler
11752 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11753 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11754 # This bug is HP SR number 8606223364.
11755 { echo "$as_me:$LINENO: checking size of long double" >&5
11756 echo $ECHO_N "checking size of long double... $ECHO_C" >&6; }
11757 if test "${ac_cv_sizeof_long_double+set}" = set; then
11758 echo $ECHO_N "(cached) $ECHO_C" >&6
11759 else
11760 if test "$cross_compiling" = yes; then
11761 # Depending upon the size, compute the lo and hi bounds.
11762 cat >conftest.$ac_ext <<_ACEOF
11763 /* confdefs.h. */
11764 _ACEOF
11765 cat confdefs.h >>conftest.$ac_ext
11766 cat >>conftest.$ac_ext <<_ACEOF
11767 /* end confdefs.h. */
11768 $ac_includes_default
11769 typedef long double ac__type_sizeof_;
11771 main ()
11773 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11774 test_array [0] = 0
11777 return 0;
11779 _ACEOF
11780 rm -f conftest.$ac_objext
11781 if { (ac_try="$ac_compile"
11782 case "(($ac_try" in
11783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11784 *) ac_try_echo=$ac_try;;
11785 esac
11786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11787 (eval "$ac_compile") 2>conftest.er1
11788 ac_status=$?
11789 grep -v '^ *+' conftest.er1 >conftest.err
11790 rm -f conftest.er1
11791 cat conftest.err >&5
11792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11793 (exit $ac_status); } && {
11794 test -z "$ac_c_werror_flag" ||
11795 test ! -s conftest.err
11796 } && test -s conftest.$ac_objext; then
11797 ac_lo=0 ac_mid=0
11798 while :; do
11799 cat >conftest.$ac_ext <<_ACEOF
11800 /* confdefs.h. */
11801 _ACEOF
11802 cat confdefs.h >>conftest.$ac_ext
11803 cat >>conftest.$ac_ext <<_ACEOF
11804 /* end confdefs.h. */
11805 $ac_includes_default
11806 typedef long double ac__type_sizeof_;
11808 main ()
11810 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11811 test_array [0] = 0
11814 return 0;
11816 _ACEOF
11817 rm -f conftest.$ac_objext
11818 if { (ac_try="$ac_compile"
11819 case "(($ac_try" in
11820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11821 *) ac_try_echo=$ac_try;;
11822 esac
11823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11824 (eval "$ac_compile") 2>conftest.er1
11825 ac_status=$?
11826 grep -v '^ *+' conftest.er1 >conftest.err
11827 rm -f conftest.er1
11828 cat conftest.err >&5
11829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11830 (exit $ac_status); } && {
11831 test -z "$ac_c_werror_flag" ||
11832 test ! -s conftest.err
11833 } && test -s conftest.$ac_objext; then
11834 ac_hi=$ac_mid; break
11835 else
11836 echo "$as_me: failed program was:" >&5
11837 sed 's/^/| /' conftest.$ac_ext >&5
11839 ac_lo=`expr $ac_mid + 1`
11840 if test $ac_lo -le $ac_mid; then
11841 ac_lo= ac_hi=
11842 break
11844 ac_mid=`expr 2 '*' $ac_mid + 1`
11847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11848 done
11849 else
11850 echo "$as_me: failed program was:" >&5
11851 sed 's/^/| /' conftest.$ac_ext >&5
11853 cat >conftest.$ac_ext <<_ACEOF
11854 /* confdefs.h. */
11855 _ACEOF
11856 cat confdefs.h >>conftest.$ac_ext
11857 cat >>conftest.$ac_ext <<_ACEOF
11858 /* end confdefs.h. */
11859 $ac_includes_default
11860 typedef long double ac__type_sizeof_;
11862 main ()
11864 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11865 test_array [0] = 0
11868 return 0;
11870 _ACEOF
11871 rm -f conftest.$ac_objext
11872 if { (ac_try="$ac_compile"
11873 case "(($ac_try" in
11874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11875 *) ac_try_echo=$ac_try;;
11876 esac
11877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11878 (eval "$ac_compile") 2>conftest.er1
11879 ac_status=$?
11880 grep -v '^ *+' conftest.er1 >conftest.err
11881 rm -f conftest.er1
11882 cat conftest.err >&5
11883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11884 (exit $ac_status); } && {
11885 test -z "$ac_c_werror_flag" ||
11886 test ! -s conftest.err
11887 } && test -s conftest.$ac_objext; then
11888 ac_hi=-1 ac_mid=-1
11889 while :; do
11890 cat >conftest.$ac_ext <<_ACEOF
11891 /* confdefs.h. */
11892 _ACEOF
11893 cat confdefs.h >>conftest.$ac_ext
11894 cat >>conftest.$ac_ext <<_ACEOF
11895 /* end confdefs.h. */
11896 $ac_includes_default
11897 typedef long double ac__type_sizeof_;
11899 main ()
11901 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11902 test_array [0] = 0
11905 return 0;
11907 _ACEOF
11908 rm -f conftest.$ac_objext
11909 if { (ac_try="$ac_compile"
11910 case "(($ac_try" in
11911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11912 *) ac_try_echo=$ac_try;;
11913 esac
11914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11915 (eval "$ac_compile") 2>conftest.er1
11916 ac_status=$?
11917 grep -v '^ *+' conftest.er1 >conftest.err
11918 rm -f conftest.er1
11919 cat conftest.err >&5
11920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921 (exit $ac_status); } && {
11922 test -z "$ac_c_werror_flag" ||
11923 test ! -s conftest.err
11924 } && test -s conftest.$ac_objext; then
11925 ac_lo=$ac_mid; break
11926 else
11927 echo "$as_me: failed program was:" >&5
11928 sed 's/^/| /' conftest.$ac_ext >&5
11930 ac_hi=`expr '(' $ac_mid ')' - 1`
11931 if test $ac_mid -le $ac_hi; then
11932 ac_lo= ac_hi=
11933 break
11935 ac_mid=`expr 2 '*' $ac_mid`
11938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11939 done
11940 else
11941 echo "$as_me: failed program was:" >&5
11942 sed 's/^/| /' conftest.$ac_ext >&5
11944 ac_lo= ac_hi=
11947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11951 # Binary search between lo and hi bounds.
11952 while test "x$ac_lo" != "x$ac_hi"; do
11953 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11954 cat >conftest.$ac_ext <<_ACEOF
11955 /* confdefs.h. */
11956 _ACEOF
11957 cat confdefs.h >>conftest.$ac_ext
11958 cat >>conftest.$ac_ext <<_ACEOF
11959 /* end confdefs.h. */
11960 $ac_includes_default
11961 typedef long double ac__type_sizeof_;
11963 main ()
11965 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11966 test_array [0] = 0
11969 return 0;
11971 _ACEOF
11972 rm -f conftest.$ac_objext
11973 if { (ac_try="$ac_compile"
11974 case "(($ac_try" in
11975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11976 *) ac_try_echo=$ac_try;;
11977 esac
11978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11979 (eval "$ac_compile") 2>conftest.er1
11980 ac_status=$?
11981 grep -v '^ *+' conftest.er1 >conftest.err
11982 rm -f conftest.er1
11983 cat conftest.err >&5
11984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11985 (exit $ac_status); } && {
11986 test -z "$ac_c_werror_flag" ||
11987 test ! -s conftest.err
11988 } && test -s conftest.$ac_objext; then
11989 ac_hi=$ac_mid
11990 else
11991 echo "$as_me: failed program was:" >&5
11992 sed 's/^/| /' conftest.$ac_ext >&5
11994 ac_lo=`expr '(' $ac_mid ')' + 1`
11997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11998 done
11999 case $ac_lo in
12000 ?*) ac_cv_sizeof_long_double=$ac_lo;;
12001 '') if test "$ac_cv_type_long_double" = yes; then
12002 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
12003 See \`config.log' for more details." >&5
12004 echo "$as_me: error: cannot compute sizeof (long double)
12005 See \`config.log' for more details." >&2;}
12006 { (exit 77); exit 77; }; }
12007 else
12008 ac_cv_sizeof_long_double=0
12009 fi ;;
12010 esac
12011 else
12012 cat >conftest.$ac_ext <<_ACEOF
12013 /* confdefs.h. */
12014 _ACEOF
12015 cat confdefs.h >>conftest.$ac_ext
12016 cat >>conftest.$ac_ext <<_ACEOF
12017 /* end confdefs.h. */
12018 $ac_includes_default
12019 typedef long double ac__type_sizeof_;
12020 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12021 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12022 #include <stdio.h>
12023 #include <stdlib.h>
12025 main ()
12028 FILE *f = fopen ("conftest.val", "w");
12029 if (! f)
12030 return 1;
12031 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12033 long int i = longval ();
12034 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12035 return 1;
12036 fprintf (f, "%ld\n", i);
12038 else
12040 unsigned long int i = ulongval ();
12041 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12042 return 1;
12043 fprintf (f, "%lu\n", i);
12045 return ferror (f) || fclose (f) != 0;
12048 return 0;
12050 _ACEOF
12051 rm -f conftest$ac_exeext
12052 if { (ac_try="$ac_link"
12053 case "(($ac_try" in
12054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12055 *) ac_try_echo=$ac_try;;
12056 esac
12057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12058 (eval "$ac_link") 2>&5
12059 ac_status=$?
12060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12061 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12062 { (case "(($ac_try" in
12063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12064 *) ac_try_echo=$ac_try;;
12065 esac
12066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12067 (eval "$ac_try") 2>&5
12068 ac_status=$?
12069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12070 (exit $ac_status); }; }; then
12071 ac_cv_sizeof_long_double=`cat conftest.val`
12072 else
12073 echo "$as_me: program exited with status $ac_status" >&5
12074 echo "$as_me: failed program was:" >&5
12075 sed 's/^/| /' conftest.$ac_ext >&5
12077 ( exit $ac_status )
12078 if test "$ac_cv_type_long_double" = yes; then
12079 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
12080 See \`config.log' for more details." >&5
12081 echo "$as_me: error: cannot compute sizeof (long double)
12082 See \`config.log' for more details." >&2;}
12083 { (exit 77); exit 77; }; }
12084 else
12085 ac_cv_sizeof_long_double=0
12088 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12090 rm -f conftest.val
12092 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
12093 echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6; }
12097 cat >>confdefs.h <<_ACEOF
12098 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
12099 _ACEOF
12104 { echo "$as_me:$LINENO: checking for _Bool support" >&5
12105 echo $ECHO_N "checking for _Bool support... $ECHO_C" >&6; }
12106 have_c99_bool=no
12107 cat >conftest.$ac_ext <<_ACEOF
12108 /* confdefs.h. */
12109 _ACEOF
12110 cat confdefs.h >>conftest.$ac_ext
12111 cat >>conftest.$ac_ext <<_ACEOF
12112 /* end confdefs.h. */
12115 main ()
12117 _Bool x; x = (_Bool)0;
12119 return 0;
12121 _ACEOF
12122 rm -f conftest.$ac_objext
12123 if { (ac_try="$ac_compile"
12124 case "(($ac_try" in
12125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12126 *) ac_try_echo=$ac_try;;
12127 esac
12128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12129 (eval "$ac_compile") 2>conftest.er1
12130 ac_status=$?
12131 grep -v '^ *+' conftest.er1 >conftest.err
12132 rm -f conftest.er1
12133 cat conftest.err >&5
12134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12135 (exit $ac_status); } && {
12136 test -z "$ac_c_werror_flag" ||
12137 test ! -s conftest.err
12138 } && test -s conftest.$ac_objext; then
12141 cat >>confdefs.h <<\_ACEOF
12142 #define HAVE_C99_BOOL 1
12143 _ACEOF
12145 have_c99_bool=yes
12147 else
12148 echo "$as_me: failed program was:" >&5
12149 sed 's/^/| /' conftest.$ac_ext >&5
12154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12155 { echo "$as_me:$LINENO: result: $have_c99_bool" >&5
12156 echo "${ECHO_T}$have_c99_bool" >&6; }
12157 if test "$have_c99_bool" = yes ; then
12158 { echo "$as_me:$LINENO: checking for _Bool" >&5
12159 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
12160 if test "${ac_cv_type__Bool+set}" = set; then
12161 echo $ECHO_N "(cached) $ECHO_C" >&6
12162 else
12163 cat >conftest.$ac_ext <<_ACEOF
12164 /* confdefs.h. */
12165 _ACEOF
12166 cat confdefs.h >>conftest.$ac_ext
12167 cat >>conftest.$ac_ext <<_ACEOF
12168 /* end confdefs.h. */
12169 $ac_includes_default
12170 typedef _Bool ac__type_new_;
12172 main ()
12174 if ((ac__type_new_ *) 0)
12175 return 0;
12176 if (sizeof (ac__type_new_))
12177 return 0;
12179 return 0;
12181 _ACEOF
12182 rm -f conftest.$ac_objext
12183 if { (ac_try="$ac_compile"
12184 case "(($ac_try" in
12185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12186 *) ac_try_echo=$ac_try;;
12187 esac
12188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12189 (eval "$ac_compile") 2>conftest.er1
12190 ac_status=$?
12191 grep -v '^ *+' conftest.er1 >conftest.err
12192 rm -f conftest.er1
12193 cat conftest.err >&5
12194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12195 (exit $ac_status); } && {
12196 test -z "$ac_c_werror_flag" ||
12197 test ! -s conftest.err
12198 } && test -s conftest.$ac_objext; then
12199 ac_cv_type__Bool=yes
12200 else
12201 echo "$as_me: failed program was:" >&5
12202 sed 's/^/| /' conftest.$ac_ext >&5
12204 ac_cv_type__Bool=no
12207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12209 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
12210 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
12212 # The cast to long int works around a bug in the HP C Compiler
12213 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12214 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12215 # This bug is HP SR number 8606223364.
12216 { echo "$as_me:$LINENO: checking size of _Bool" >&5
12217 echo $ECHO_N "checking size of _Bool... $ECHO_C" >&6; }
12218 if test "${ac_cv_sizeof__Bool+set}" = set; then
12219 echo $ECHO_N "(cached) $ECHO_C" >&6
12220 else
12221 if test "$cross_compiling" = yes; then
12222 # Depending upon the size, compute the lo and hi bounds.
12223 cat >conftest.$ac_ext <<_ACEOF
12224 /* confdefs.h. */
12225 _ACEOF
12226 cat confdefs.h >>conftest.$ac_ext
12227 cat >>conftest.$ac_ext <<_ACEOF
12228 /* end confdefs.h. */
12229 $ac_includes_default
12230 typedef _Bool ac__type_sizeof_;
12232 main ()
12234 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12235 test_array [0] = 0
12238 return 0;
12240 _ACEOF
12241 rm -f conftest.$ac_objext
12242 if { (ac_try="$ac_compile"
12243 case "(($ac_try" in
12244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12245 *) ac_try_echo=$ac_try;;
12246 esac
12247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12248 (eval "$ac_compile") 2>conftest.er1
12249 ac_status=$?
12250 grep -v '^ *+' conftest.er1 >conftest.err
12251 rm -f conftest.er1
12252 cat conftest.err >&5
12253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12254 (exit $ac_status); } && {
12255 test -z "$ac_c_werror_flag" ||
12256 test ! -s conftest.err
12257 } && test -s conftest.$ac_objext; then
12258 ac_lo=0 ac_mid=0
12259 while :; do
12260 cat >conftest.$ac_ext <<_ACEOF
12261 /* confdefs.h. */
12262 _ACEOF
12263 cat confdefs.h >>conftest.$ac_ext
12264 cat >>conftest.$ac_ext <<_ACEOF
12265 /* end confdefs.h. */
12266 $ac_includes_default
12267 typedef _Bool ac__type_sizeof_;
12269 main ()
12271 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12272 test_array [0] = 0
12275 return 0;
12277 _ACEOF
12278 rm -f conftest.$ac_objext
12279 if { (ac_try="$ac_compile"
12280 case "(($ac_try" in
12281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12282 *) ac_try_echo=$ac_try;;
12283 esac
12284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12285 (eval "$ac_compile") 2>conftest.er1
12286 ac_status=$?
12287 grep -v '^ *+' conftest.er1 >conftest.err
12288 rm -f conftest.er1
12289 cat conftest.err >&5
12290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12291 (exit $ac_status); } && {
12292 test -z "$ac_c_werror_flag" ||
12293 test ! -s conftest.err
12294 } && test -s conftest.$ac_objext; then
12295 ac_hi=$ac_mid; break
12296 else
12297 echo "$as_me: failed program was:" >&5
12298 sed 's/^/| /' conftest.$ac_ext >&5
12300 ac_lo=`expr $ac_mid + 1`
12301 if test $ac_lo -le $ac_mid; then
12302 ac_lo= ac_hi=
12303 break
12305 ac_mid=`expr 2 '*' $ac_mid + 1`
12308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12309 done
12310 else
12311 echo "$as_me: failed program was:" >&5
12312 sed 's/^/| /' conftest.$ac_ext >&5
12314 cat >conftest.$ac_ext <<_ACEOF
12315 /* confdefs.h. */
12316 _ACEOF
12317 cat confdefs.h >>conftest.$ac_ext
12318 cat >>conftest.$ac_ext <<_ACEOF
12319 /* end confdefs.h. */
12320 $ac_includes_default
12321 typedef _Bool ac__type_sizeof_;
12323 main ()
12325 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12326 test_array [0] = 0
12329 return 0;
12331 _ACEOF
12332 rm -f conftest.$ac_objext
12333 if { (ac_try="$ac_compile"
12334 case "(($ac_try" in
12335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12336 *) ac_try_echo=$ac_try;;
12337 esac
12338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12339 (eval "$ac_compile") 2>conftest.er1
12340 ac_status=$?
12341 grep -v '^ *+' conftest.er1 >conftest.err
12342 rm -f conftest.er1
12343 cat conftest.err >&5
12344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12345 (exit $ac_status); } && {
12346 test -z "$ac_c_werror_flag" ||
12347 test ! -s conftest.err
12348 } && test -s conftest.$ac_objext; then
12349 ac_hi=-1 ac_mid=-1
12350 while :; do
12351 cat >conftest.$ac_ext <<_ACEOF
12352 /* confdefs.h. */
12353 _ACEOF
12354 cat confdefs.h >>conftest.$ac_ext
12355 cat >>conftest.$ac_ext <<_ACEOF
12356 /* end confdefs.h. */
12357 $ac_includes_default
12358 typedef _Bool ac__type_sizeof_;
12360 main ()
12362 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12363 test_array [0] = 0
12366 return 0;
12368 _ACEOF
12369 rm -f conftest.$ac_objext
12370 if { (ac_try="$ac_compile"
12371 case "(($ac_try" in
12372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12373 *) ac_try_echo=$ac_try;;
12374 esac
12375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12376 (eval "$ac_compile") 2>conftest.er1
12377 ac_status=$?
12378 grep -v '^ *+' conftest.er1 >conftest.err
12379 rm -f conftest.er1
12380 cat conftest.err >&5
12381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12382 (exit $ac_status); } && {
12383 test -z "$ac_c_werror_flag" ||
12384 test ! -s conftest.err
12385 } && test -s conftest.$ac_objext; then
12386 ac_lo=$ac_mid; break
12387 else
12388 echo "$as_me: failed program was:" >&5
12389 sed 's/^/| /' conftest.$ac_ext >&5
12391 ac_hi=`expr '(' $ac_mid ')' - 1`
12392 if test $ac_mid -le $ac_hi; then
12393 ac_lo= ac_hi=
12394 break
12396 ac_mid=`expr 2 '*' $ac_mid`
12399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12400 done
12401 else
12402 echo "$as_me: failed program was:" >&5
12403 sed 's/^/| /' conftest.$ac_ext >&5
12405 ac_lo= ac_hi=
12408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12412 # Binary search between lo and hi bounds.
12413 while test "x$ac_lo" != "x$ac_hi"; do
12414 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12415 cat >conftest.$ac_ext <<_ACEOF
12416 /* confdefs.h. */
12417 _ACEOF
12418 cat confdefs.h >>conftest.$ac_ext
12419 cat >>conftest.$ac_ext <<_ACEOF
12420 /* end confdefs.h. */
12421 $ac_includes_default
12422 typedef _Bool ac__type_sizeof_;
12424 main ()
12426 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12427 test_array [0] = 0
12430 return 0;
12432 _ACEOF
12433 rm -f conftest.$ac_objext
12434 if { (ac_try="$ac_compile"
12435 case "(($ac_try" in
12436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12437 *) ac_try_echo=$ac_try;;
12438 esac
12439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12440 (eval "$ac_compile") 2>conftest.er1
12441 ac_status=$?
12442 grep -v '^ *+' conftest.er1 >conftest.err
12443 rm -f conftest.er1
12444 cat conftest.err >&5
12445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12446 (exit $ac_status); } && {
12447 test -z "$ac_c_werror_flag" ||
12448 test ! -s conftest.err
12449 } && test -s conftest.$ac_objext; then
12450 ac_hi=$ac_mid
12451 else
12452 echo "$as_me: failed program was:" >&5
12453 sed 's/^/| /' conftest.$ac_ext >&5
12455 ac_lo=`expr '(' $ac_mid ')' + 1`
12458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12459 done
12460 case $ac_lo in
12461 ?*) ac_cv_sizeof__Bool=$ac_lo;;
12462 '') if test "$ac_cv_type__Bool" = yes; then
12463 { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool)
12464 See \`config.log' for more details." >&5
12465 echo "$as_me: error: cannot compute sizeof (_Bool)
12466 See \`config.log' for more details." >&2;}
12467 { (exit 77); exit 77; }; }
12468 else
12469 ac_cv_sizeof__Bool=0
12470 fi ;;
12471 esac
12472 else
12473 cat >conftest.$ac_ext <<_ACEOF
12474 /* confdefs.h. */
12475 _ACEOF
12476 cat confdefs.h >>conftest.$ac_ext
12477 cat >>conftest.$ac_ext <<_ACEOF
12478 /* end confdefs.h. */
12479 $ac_includes_default
12480 typedef _Bool ac__type_sizeof_;
12481 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12482 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12483 #include <stdio.h>
12484 #include <stdlib.h>
12486 main ()
12489 FILE *f = fopen ("conftest.val", "w");
12490 if (! f)
12491 return 1;
12492 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12494 long int i = longval ();
12495 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12496 return 1;
12497 fprintf (f, "%ld\n", i);
12499 else
12501 unsigned long int i = ulongval ();
12502 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12503 return 1;
12504 fprintf (f, "%lu\n", i);
12506 return ferror (f) || fclose (f) != 0;
12509 return 0;
12511 _ACEOF
12512 rm -f conftest$ac_exeext
12513 if { (ac_try="$ac_link"
12514 case "(($ac_try" in
12515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12516 *) ac_try_echo=$ac_try;;
12517 esac
12518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12519 (eval "$ac_link") 2>&5
12520 ac_status=$?
12521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12522 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12523 { (case "(($ac_try" in
12524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12525 *) ac_try_echo=$ac_try;;
12526 esac
12527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12528 (eval "$ac_try") 2>&5
12529 ac_status=$?
12530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12531 (exit $ac_status); }; }; then
12532 ac_cv_sizeof__Bool=`cat conftest.val`
12533 else
12534 echo "$as_me: program exited with status $ac_status" >&5
12535 echo "$as_me: failed program was:" >&5
12536 sed 's/^/| /' conftest.$ac_ext >&5
12538 ( exit $ac_status )
12539 if test "$ac_cv_type__Bool" = yes; then
12540 { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool)
12541 See \`config.log' for more details." >&5
12542 echo "$as_me: error: cannot compute sizeof (_Bool)
12543 See \`config.log' for more details." >&2;}
12544 { (exit 77); exit 77; }; }
12545 else
12546 ac_cv_sizeof__Bool=0
12549 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12551 rm -f conftest.val
12553 { echo "$as_me:$LINENO: result: $ac_cv_sizeof__Bool" >&5
12554 echo "${ECHO_T}$ac_cv_sizeof__Bool" >&6; }
12558 cat >>confdefs.h <<_ACEOF
12559 #define SIZEOF__BOOL $ac_cv_sizeof__Bool
12560 _ACEOF
12565 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
12566 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
12567 if test "${ac_cv_type_uintptr_t+set}" = set; then
12568 echo $ECHO_N "(cached) $ECHO_C" >&6
12569 else
12570 cat >conftest.$ac_ext <<_ACEOF
12571 /* confdefs.h. */
12572 _ACEOF
12573 cat confdefs.h >>conftest.$ac_ext
12574 cat >>conftest.$ac_ext <<_ACEOF
12575 /* end confdefs.h. */
12576 #ifdef HAVE_STDINT_H
12577 #include <stdint.h>
12578 #endif
12580 typedef uintptr_t ac__type_new_;
12582 main ()
12584 if ((ac__type_new_ *) 0)
12585 return 0;
12586 if (sizeof (ac__type_new_))
12587 return 0;
12589 return 0;
12591 _ACEOF
12592 rm -f conftest.$ac_objext
12593 if { (ac_try="$ac_compile"
12594 case "(($ac_try" in
12595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12596 *) ac_try_echo=$ac_try;;
12597 esac
12598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12599 (eval "$ac_compile") 2>conftest.er1
12600 ac_status=$?
12601 grep -v '^ *+' conftest.er1 >conftest.err
12602 rm -f conftest.er1
12603 cat conftest.err >&5
12604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12605 (exit $ac_status); } && {
12606 test -z "$ac_c_werror_flag" ||
12607 test ! -s conftest.err
12608 } && test -s conftest.$ac_objext; then
12609 ac_cv_type_uintptr_t=yes
12610 else
12611 echo "$as_me: failed program was:" >&5
12612 sed 's/^/| /' conftest.$ac_ext >&5
12614 ac_cv_type_uintptr_t=no
12617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12619 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12620 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
12621 if test $ac_cv_type_uintptr_t = yes; then
12623 cat >>confdefs.h <<_ACEOF
12624 #define HAVE_UINTPTR_T 1
12625 _ACEOF
12627 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
12628 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
12629 if test "${ac_cv_type_uintptr_t+set}" = set; then
12630 echo $ECHO_N "(cached) $ECHO_C" >&6
12631 else
12632 cat >conftest.$ac_ext <<_ACEOF
12633 /* confdefs.h. */
12634 _ACEOF
12635 cat confdefs.h >>conftest.$ac_ext
12636 cat >>conftest.$ac_ext <<_ACEOF
12637 /* end confdefs.h. */
12638 $ac_includes_default
12639 typedef uintptr_t ac__type_new_;
12641 main ()
12643 if ((ac__type_new_ *) 0)
12644 return 0;
12645 if (sizeof (ac__type_new_))
12646 return 0;
12648 return 0;
12650 _ACEOF
12651 rm -f conftest.$ac_objext
12652 if { (ac_try="$ac_compile"
12653 case "(($ac_try" in
12654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12655 *) ac_try_echo=$ac_try;;
12656 esac
12657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12658 (eval "$ac_compile") 2>conftest.er1
12659 ac_status=$?
12660 grep -v '^ *+' conftest.er1 >conftest.err
12661 rm -f conftest.er1
12662 cat conftest.err >&5
12663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12664 (exit $ac_status); } && {
12665 test -z "$ac_c_werror_flag" ||
12666 test ! -s conftest.err
12667 } && test -s conftest.$ac_objext; then
12668 ac_cv_type_uintptr_t=yes
12669 else
12670 echo "$as_me: failed program was:" >&5
12671 sed 's/^/| /' conftest.$ac_ext >&5
12673 ac_cv_type_uintptr_t=no
12676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12678 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12679 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
12681 # The cast to long int works around a bug in the HP C Compiler
12682 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12683 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12684 # This bug is HP SR number 8606223364.
12685 { echo "$as_me:$LINENO: checking size of uintptr_t" >&5
12686 echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6; }
12687 if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
12688 echo $ECHO_N "(cached) $ECHO_C" >&6
12689 else
12690 if test "$cross_compiling" = yes; then
12691 # Depending upon the size, compute the lo and hi bounds.
12692 cat >conftest.$ac_ext <<_ACEOF
12693 /* confdefs.h. */
12694 _ACEOF
12695 cat confdefs.h >>conftest.$ac_ext
12696 cat >>conftest.$ac_ext <<_ACEOF
12697 /* end confdefs.h. */
12698 $ac_includes_default
12699 typedef uintptr_t ac__type_sizeof_;
12701 main ()
12703 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12704 test_array [0] = 0
12707 return 0;
12709 _ACEOF
12710 rm -f conftest.$ac_objext
12711 if { (ac_try="$ac_compile"
12712 case "(($ac_try" in
12713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12714 *) ac_try_echo=$ac_try;;
12715 esac
12716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12717 (eval "$ac_compile") 2>conftest.er1
12718 ac_status=$?
12719 grep -v '^ *+' conftest.er1 >conftest.err
12720 rm -f conftest.er1
12721 cat conftest.err >&5
12722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12723 (exit $ac_status); } && {
12724 test -z "$ac_c_werror_flag" ||
12725 test ! -s conftest.err
12726 } && test -s conftest.$ac_objext; then
12727 ac_lo=0 ac_mid=0
12728 while :; do
12729 cat >conftest.$ac_ext <<_ACEOF
12730 /* confdefs.h. */
12731 _ACEOF
12732 cat confdefs.h >>conftest.$ac_ext
12733 cat >>conftest.$ac_ext <<_ACEOF
12734 /* end confdefs.h. */
12735 $ac_includes_default
12736 typedef uintptr_t ac__type_sizeof_;
12738 main ()
12740 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12741 test_array [0] = 0
12744 return 0;
12746 _ACEOF
12747 rm -f conftest.$ac_objext
12748 if { (ac_try="$ac_compile"
12749 case "(($ac_try" in
12750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12751 *) ac_try_echo=$ac_try;;
12752 esac
12753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12754 (eval "$ac_compile") 2>conftest.er1
12755 ac_status=$?
12756 grep -v '^ *+' conftest.er1 >conftest.err
12757 rm -f conftest.er1
12758 cat conftest.err >&5
12759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12760 (exit $ac_status); } && {
12761 test -z "$ac_c_werror_flag" ||
12762 test ! -s conftest.err
12763 } && test -s conftest.$ac_objext; then
12764 ac_hi=$ac_mid; break
12765 else
12766 echo "$as_me: failed program was:" >&5
12767 sed 's/^/| /' conftest.$ac_ext >&5
12769 ac_lo=`expr $ac_mid + 1`
12770 if test $ac_lo -le $ac_mid; then
12771 ac_lo= ac_hi=
12772 break
12774 ac_mid=`expr 2 '*' $ac_mid + 1`
12777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12778 done
12779 else
12780 echo "$as_me: failed program was:" >&5
12781 sed 's/^/| /' conftest.$ac_ext >&5
12783 cat >conftest.$ac_ext <<_ACEOF
12784 /* confdefs.h. */
12785 _ACEOF
12786 cat confdefs.h >>conftest.$ac_ext
12787 cat >>conftest.$ac_ext <<_ACEOF
12788 /* end confdefs.h. */
12789 $ac_includes_default
12790 typedef uintptr_t ac__type_sizeof_;
12792 main ()
12794 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12795 test_array [0] = 0
12798 return 0;
12800 _ACEOF
12801 rm -f conftest.$ac_objext
12802 if { (ac_try="$ac_compile"
12803 case "(($ac_try" in
12804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12805 *) ac_try_echo=$ac_try;;
12806 esac
12807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12808 (eval "$ac_compile") 2>conftest.er1
12809 ac_status=$?
12810 grep -v '^ *+' conftest.er1 >conftest.err
12811 rm -f conftest.er1
12812 cat conftest.err >&5
12813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12814 (exit $ac_status); } && {
12815 test -z "$ac_c_werror_flag" ||
12816 test ! -s conftest.err
12817 } && test -s conftest.$ac_objext; then
12818 ac_hi=-1 ac_mid=-1
12819 while :; do
12820 cat >conftest.$ac_ext <<_ACEOF
12821 /* confdefs.h. */
12822 _ACEOF
12823 cat confdefs.h >>conftest.$ac_ext
12824 cat >>conftest.$ac_ext <<_ACEOF
12825 /* end confdefs.h. */
12826 $ac_includes_default
12827 typedef uintptr_t ac__type_sizeof_;
12829 main ()
12831 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12832 test_array [0] = 0
12835 return 0;
12837 _ACEOF
12838 rm -f conftest.$ac_objext
12839 if { (ac_try="$ac_compile"
12840 case "(($ac_try" in
12841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12842 *) ac_try_echo=$ac_try;;
12843 esac
12844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12845 (eval "$ac_compile") 2>conftest.er1
12846 ac_status=$?
12847 grep -v '^ *+' conftest.er1 >conftest.err
12848 rm -f conftest.er1
12849 cat conftest.err >&5
12850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12851 (exit $ac_status); } && {
12852 test -z "$ac_c_werror_flag" ||
12853 test ! -s conftest.err
12854 } && test -s conftest.$ac_objext; then
12855 ac_lo=$ac_mid; break
12856 else
12857 echo "$as_me: failed program was:" >&5
12858 sed 's/^/| /' conftest.$ac_ext >&5
12860 ac_hi=`expr '(' $ac_mid ')' - 1`
12861 if test $ac_mid -le $ac_hi; then
12862 ac_lo= ac_hi=
12863 break
12865 ac_mid=`expr 2 '*' $ac_mid`
12868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12869 done
12870 else
12871 echo "$as_me: failed program was:" >&5
12872 sed 's/^/| /' conftest.$ac_ext >&5
12874 ac_lo= ac_hi=
12877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12881 # Binary search between lo and hi bounds.
12882 while test "x$ac_lo" != "x$ac_hi"; do
12883 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12884 cat >conftest.$ac_ext <<_ACEOF
12885 /* confdefs.h. */
12886 _ACEOF
12887 cat confdefs.h >>conftest.$ac_ext
12888 cat >>conftest.$ac_ext <<_ACEOF
12889 /* end confdefs.h. */
12890 $ac_includes_default
12891 typedef uintptr_t ac__type_sizeof_;
12893 main ()
12895 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12896 test_array [0] = 0
12899 return 0;
12901 _ACEOF
12902 rm -f conftest.$ac_objext
12903 if { (ac_try="$ac_compile"
12904 case "(($ac_try" in
12905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12906 *) ac_try_echo=$ac_try;;
12907 esac
12908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12909 (eval "$ac_compile") 2>conftest.er1
12910 ac_status=$?
12911 grep -v '^ *+' conftest.er1 >conftest.err
12912 rm -f conftest.er1
12913 cat conftest.err >&5
12914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12915 (exit $ac_status); } && {
12916 test -z "$ac_c_werror_flag" ||
12917 test ! -s conftest.err
12918 } && test -s conftest.$ac_objext; then
12919 ac_hi=$ac_mid
12920 else
12921 echo "$as_me: failed program was:" >&5
12922 sed 's/^/| /' conftest.$ac_ext >&5
12924 ac_lo=`expr '(' $ac_mid ')' + 1`
12927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12928 done
12929 case $ac_lo in
12930 ?*) ac_cv_sizeof_uintptr_t=$ac_lo;;
12931 '') if test "$ac_cv_type_uintptr_t" = yes; then
12932 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
12933 See \`config.log' for more details." >&5
12934 echo "$as_me: error: cannot compute sizeof (uintptr_t)
12935 See \`config.log' for more details." >&2;}
12936 { (exit 77); exit 77; }; }
12937 else
12938 ac_cv_sizeof_uintptr_t=0
12939 fi ;;
12940 esac
12941 else
12942 cat >conftest.$ac_ext <<_ACEOF
12943 /* confdefs.h. */
12944 _ACEOF
12945 cat confdefs.h >>conftest.$ac_ext
12946 cat >>conftest.$ac_ext <<_ACEOF
12947 /* end confdefs.h. */
12948 $ac_includes_default
12949 typedef uintptr_t ac__type_sizeof_;
12950 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12951 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12952 #include <stdio.h>
12953 #include <stdlib.h>
12955 main ()
12958 FILE *f = fopen ("conftest.val", "w");
12959 if (! f)
12960 return 1;
12961 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12963 long int i = longval ();
12964 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12965 return 1;
12966 fprintf (f, "%ld\n", i);
12968 else
12970 unsigned long int i = ulongval ();
12971 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12972 return 1;
12973 fprintf (f, "%lu\n", i);
12975 return ferror (f) || fclose (f) != 0;
12978 return 0;
12980 _ACEOF
12981 rm -f conftest$ac_exeext
12982 if { (ac_try="$ac_link"
12983 case "(($ac_try" in
12984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12985 *) ac_try_echo=$ac_try;;
12986 esac
12987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12988 (eval "$ac_link") 2>&5
12989 ac_status=$?
12990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12991 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12992 { (case "(($ac_try" in
12993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12994 *) ac_try_echo=$ac_try;;
12995 esac
12996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12997 (eval "$ac_try") 2>&5
12998 ac_status=$?
12999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13000 (exit $ac_status); }; }; then
13001 ac_cv_sizeof_uintptr_t=`cat conftest.val`
13002 else
13003 echo "$as_me: program exited with status $ac_status" >&5
13004 echo "$as_me: failed program was:" >&5
13005 sed 's/^/| /' conftest.$ac_ext >&5
13007 ( exit $ac_status )
13008 if test "$ac_cv_type_uintptr_t" = yes; then
13009 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
13010 See \`config.log' for more details." >&5
13011 echo "$as_me: error: cannot compute sizeof (uintptr_t)
13012 See \`config.log' for more details." >&2;}
13013 { (exit 77); exit 77; }; }
13014 else
13015 ac_cv_sizeof_uintptr_t=0
13018 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13020 rm -f conftest.val
13022 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
13023 echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6; }
13027 cat >>confdefs.h <<_ACEOF
13028 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
13029 _ACEOF
13035 { echo "$as_me:$LINENO: checking for off_t" >&5
13036 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
13037 if test "${ac_cv_type_off_t+set}" = set; then
13038 echo $ECHO_N "(cached) $ECHO_C" >&6
13039 else
13040 cat >conftest.$ac_ext <<_ACEOF
13041 /* confdefs.h. */
13042 _ACEOF
13043 cat confdefs.h >>conftest.$ac_ext
13044 cat >>conftest.$ac_ext <<_ACEOF
13045 /* end confdefs.h. */
13047 #ifdef HAVE_SYS_TYPES_H
13048 #include <sys/types.h>
13049 #endif
13052 typedef off_t ac__type_new_;
13054 main ()
13056 if ((ac__type_new_ *) 0)
13057 return 0;
13058 if (sizeof (ac__type_new_))
13059 return 0;
13061 return 0;
13063 _ACEOF
13064 rm -f conftest.$ac_objext
13065 if { (ac_try="$ac_compile"
13066 case "(($ac_try" in
13067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13068 *) ac_try_echo=$ac_try;;
13069 esac
13070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13071 (eval "$ac_compile") 2>conftest.er1
13072 ac_status=$?
13073 grep -v '^ *+' conftest.er1 >conftest.err
13074 rm -f conftest.er1
13075 cat conftest.err >&5
13076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13077 (exit $ac_status); } && {
13078 test -z "$ac_c_werror_flag" ||
13079 test ! -s conftest.err
13080 } && test -s conftest.$ac_objext; then
13081 ac_cv_type_off_t=yes
13082 else
13083 echo "$as_me: failed program was:" >&5
13084 sed 's/^/| /' conftest.$ac_ext >&5
13086 ac_cv_type_off_t=no
13089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13091 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
13092 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
13094 # The cast to long int works around a bug in the HP C Compiler
13095 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13096 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13097 # This bug is HP SR number 8606223364.
13098 { echo "$as_me:$LINENO: checking size of off_t" >&5
13099 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
13100 if test "${ac_cv_sizeof_off_t+set}" = set; then
13101 echo $ECHO_N "(cached) $ECHO_C" >&6
13102 else
13103 if test "$cross_compiling" = yes; then
13104 # Depending upon the size, compute the lo and hi bounds.
13105 cat >conftest.$ac_ext <<_ACEOF
13106 /* confdefs.h. */
13107 _ACEOF
13108 cat confdefs.h >>conftest.$ac_ext
13109 cat >>conftest.$ac_ext <<_ACEOF
13110 /* end confdefs.h. */
13112 #ifdef HAVE_SYS_TYPES_H
13113 #include <sys/types.h>
13114 #endif
13117 typedef off_t ac__type_sizeof_;
13119 main ()
13121 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13122 test_array [0] = 0
13125 return 0;
13127 _ACEOF
13128 rm -f conftest.$ac_objext
13129 if { (ac_try="$ac_compile"
13130 case "(($ac_try" in
13131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13132 *) ac_try_echo=$ac_try;;
13133 esac
13134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13135 (eval "$ac_compile") 2>conftest.er1
13136 ac_status=$?
13137 grep -v '^ *+' conftest.er1 >conftest.err
13138 rm -f conftest.er1
13139 cat conftest.err >&5
13140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13141 (exit $ac_status); } && {
13142 test -z "$ac_c_werror_flag" ||
13143 test ! -s conftest.err
13144 } && test -s conftest.$ac_objext; then
13145 ac_lo=0 ac_mid=0
13146 while :; do
13147 cat >conftest.$ac_ext <<_ACEOF
13148 /* confdefs.h. */
13149 _ACEOF
13150 cat confdefs.h >>conftest.$ac_ext
13151 cat >>conftest.$ac_ext <<_ACEOF
13152 /* end confdefs.h. */
13154 #ifdef HAVE_SYS_TYPES_H
13155 #include <sys/types.h>
13156 #endif
13159 typedef off_t ac__type_sizeof_;
13161 main ()
13163 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13164 test_array [0] = 0
13167 return 0;
13169 _ACEOF
13170 rm -f conftest.$ac_objext
13171 if { (ac_try="$ac_compile"
13172 case "(($ac_try" in
13173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13174 *) ac_try_echo=$ac_try;;
13175 esac
13176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13177 (eval "$ac_compile") 2>conftest.er1
13178 ac_status=$?
13179 grep -v '^ *+' conftest.er1 >conftest.err
13180 rm -f conftest.er1
13181 cat conftest.err >&5
13182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13183 (exit $ac_status); } && {
13184 test -z "$ac_c_werror_flag" ||
13185 test ! -s conftest.err
13186 } && test -s conftest.$ac_objext; then
13187 ac_hi=$ac_mid; break
13188 else
13189 echo "$as_me: failed program was:" >&5
13190 sed 's/^/| /' conftest.$ac_ext >&5
13192 ac_lo=`expr $ac_mid + 1`
13193 if test $ac_lo -le $ac_mid; then
13194 ac_lo= ac_hi=
13195 break
13197 ac_mid=`expr 2 '*' $ac_mid + 1`
13200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13201 done
13202 else
13203 echo "$as_me: failed program was:" >&5
13204 sed 's/^/| /' conftest.$ac_ext >&5
13206 cat >conftest.$ac_ext <<_ACEOF
13207 /* confdefs.h. */
13208 _ACEOF
13209 cat confdefs.h >>conftest.$ac_ext
13210 cat >>conftest.$ac_ext <<_ACEOF
13211 /* end confdefs.h. */
13213 #ifdef HAVE_SYS_TYPES_H
13214 #include <sys/types.h>
13215 #endif
13218 typedef off_t ac__type_sizeof_;
13220 main ()
13222 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13223 test_array [0] = 0
13226 return 0;
13228 _ACEOF
13229 rm -f conftest.$ac_objext
13230 if { (ac_try="$ac_compile"
13231 case "(($ac_try" in
13232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13233 *) ac_try_echo=$ac_try;;
13234 esac
13235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13236 (eval "$ac_compile") 2>conftest.er1
13237 ac_status=$?
13238 grep -v '^ *+' conftest.er1 >conftest.err
13239 rm -f conftest.er1
13240 cat conftest.err >&5
13241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13242 (exit $ac_status); } && {
13243 test -z "$ac_c_werror_flag" ||
13244 test ! -s conftest.err
13245 } && test -s conftest.$ac_objext; then
13246 ac_hi=-1 ac_mid=-1
13247 while :; do
13248 cat >conftest.$ac_ext <<_ACEOF
13249 /* confdefs.h. */
13250 _ACEOF
13251 cat confdefs.h >>conftest.$ac_ext
13252 cat >>conftest.$ac_ext <<_ACEOF
13253 /* end confdefs.h. */
13255 #ifdef HAVE_SYS_TYPES_H
13256 #include <sys/types.h>
13257 #endif
13260 typedef off_t ac__type_sizeof_;
13262 main ()
13264 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13265 test_array [0] = 0
13268 return 0;
13270 _ACEOF
13271 rm -f conftest.$ac_objext
13272 if { (ac_try="$ac_compile"
13273 case "(($ac_try" in
13274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13275 *) ac_try_echo=$ac_try;;
13276 esac
13277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13278 (eval "$ac_compile") 2>conftest.er1
13279 ac_status=$?
13280 grep -v '^ *+' conftest.er1 >conftest.err
13281 rm -f conftest.er1
13282 cat conftest.err >&5
13283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13284 (exit $ac_status); } && {
13285 test -z "$ac_c_werror_flag" ||
13286 test ! -s conftest.err
13287 } && test -s conftest.$ac_objext; then
13288 ac_lo=$ac_mid; break
13289 else
13290 echo "$as_me: failed program was:" >&5
13291 sed 's/^/| /' conftest.$ac_ext >&5
13293 ac_hi=`expr '(' $ac_mid ')' - 1`
13294 if test $ac_mid -le $ac_hi; then
13295 ac_lo= ac_hi=
13296 break
13298 ac_mid=`expr 2 '*' $ac_mid`
13301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13302 done
13303 else
13304 echo "$as_me: failed program was:" >&5
13305 sed 's/^/| /' conftest.$ac_ext >&5
13307 ac_lo= ac_hi=
13310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13314 # Binary search between lo and hi bounds.
13315 while test "x$ac_lo" != "x$ac_hi"; do
13316 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13317 cat >conftest.$ac_ext <<_ACEOF
13318 /* confdefs.h. */
13319 _ACEOF
13320 cat confdefs.h >>conftest.$ac_ext
13321 cat >>conftest.$ac_ext <<_ACEOF
13322 /* end confdefs.h. */
13324 #ifdef HAVE_SYS_TYPES_H
13325 #include <sys/types.h>
13326 #endif
13329 typedef off_t ac__type_sizeof_;
13331 main ()
13333 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13334 test_array [0] = 0
13337 return 0;
13339 _ACEOF
13340 rm -f conftest.$ac_objext
13341 if { (ac_try="$ac_compile"
13342 case "(($ac_try" in
13343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13344 *) ac_try_echo=$ac_try;;
13345 esac
13346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13347 (eval "$ac_compile") 2>conftest.er1
13348 ac_status=$?
13349 grep -v '^ *+' conftest.er1 >conftest.err
13350 rm -f conftest.er1
13351 cat conftest.err >&5
13352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13353 (exit $ac_status); } && {
13354 test -z "$ac_c_werror_flag" ||
13355 test ! -s conftest.err
13356 } && test -s conftest.$ac_objext; then
13357 ac_hi=$ac_mid
13358 else
13359 echo "$as_me: failed program was:" >&5
13360 sed 's/^/| /' conftest.$ac_ext >&5
13362 ac_lo=`expr '(' $ac_mid ')' + 1`
13365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13366 done
13367 case $ac_lo in
13368 ?*) ac_cv_sizeof_off_t=$ac_lo;;
13369 '') if test "$ac_cv_type_off_t" = yes; then
13370 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
13371 See \`config.log' for more details." >&5
13372 echo "$as_me: error: cannot compute sizeof (off_t)
13373 See \`config.log' for more details." >&2;}
13374 { (exit 77); exit 77; }; }
13375 else
13376 ac_cv_sizeof_off_t=0
13377 fi ;;
13378 esac
13379 else
13380 cat >conftest.$ac_ext <<_ACEOF
13381 /* confdefs.h. */
13382 _ACEOF
13383 cat confdefs.h >>conftest.$ac_ext
13384 cat >>conftest.$ac_ext <<_ACEOF
13385 /* end confdefs.h. */
13387 #ifdef HAVE_SYS_TYPES_H
13388 #include <sys/types.h>
13389 #endif
13392 typedef off_t ac__type_sizeof_;
13393 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13394 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
13395 #include <stdio.h>
13396 #include <stdlib.h>
13398 main ()
13401 FILE *f = fopen ("conftest.val", "w");
13402 if (! f)
13403 return 1;
13404 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
13406 long int i = longval ();
13407 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13408 return 1;
13409 fprintf (f, "%ld\n", i);
13411 else
13413 unsigned long int i = ulongval ();
13414 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13415 return 1;
13416 fprintf (f, "%lu\n", i);
13418 return ferror (f) || fclose (f) != 0;
13421 return 0;
13423 _ACEOF
13424 rm -f conftest$ac_exeext
13425 if { (ac_try="$ac_link"
13426 case "(($ac_try" in
13427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13428 *) ac_try_echo=$ac_try;;
13429 esac
13430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13431 (eval "$ac_link") 2>&5
13432 ac_status=$?
13433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13434 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13435 { (case "(($ac_try" in
13436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13437 *) ac_try_echo=$ac_try;;
13438 esac
13439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13440 (eval "$ac_try") 2>&5
13441 ac_status=$?
13442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13443 (exit $ac_status); }; }; then
13444 ac_cv_sizeof_off_t=`cat conftest.val`
13445 else
13446 echo "$as_me: program exited with status $ac_status" >&5
13447 echo "$as_me: failed program was:" >&5
13448 sed 's/^/| /' conftest.$ac_ext >&5
13450 ( exit $ac_status )
13451 if test "$ac_cv_type_off_t" = yes; then
13452 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
13453 See \`config.log' for more details." >&5
13454 echo "$as_me: error: cannot compute sizeof (off_t)
13455 See \`config.log' for more details." >&2;}
13456 { (exit 77); exit 77; }; }
13457 else
13458 ac_cv_sizeof_off_t=0
13461 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13463 rm -f conftest.val
13465 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
13466 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
13470 cat >>confdefs.h <<_ACEOF
13471 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
13472 _ACEOF
13476 { echo "$as_me:$LINENO: checking whether to enable large file support" >&5
13477 echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6; }
13478 if test "$have_long_long" = yes -a \
13479 "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
13480 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
13482 cat >>confdefs.h <<\_ACEOF
13483 #define HAVE_LARGEFILE_SUPPORT 1
13484 _ACEOF
13486 { echo "$as_me:$LINENO: result: yes" >&5
13487 echo "${ECHO_T}yes" >&6; }
13488 else
13489 { echo "$as_me:$LINENO: result: no" >&5
13490 echo "${ECHO_T}no" >&6; }
13493 { echo "$as_me:$LINENO: checking for time_t" >&5
13494 echo $ECHO_N "checking for time_t... $ECHO_C" >&6; }
13495 if test "${ac_cv_type_time_t+set}" = set; then
13496 echo $ECHO_N "(cached) $ECHO_C" >&6
13497 else
13498 cat >conftest.$ac_ext <<_ACEOF
13499 /* confdefs.h. */
13500 _ACEOF
13501 cat confdefs.h >>conftest.$ac_ext
13502 cat >>conftest.$ac_ext <<_ACEOF
13503 /* end confdefs.h. */
13505 #ifdef HAVE_SYS_TYPES_H
13506 #include <sys/types.h>
13507 #endif
13508 #ifdef HAVE_TIME_H
13509 #include <time.h>
13510 #endif
13513 typedef time_t ac__type_new_;
13515 main ()
13517 if ((ac__type_new_ *) 0)
13518 return 0;
13519 if (sizeof (ac__type_new_))
13520 return 0;
13522 return 0;
13524 _ACEOF
13525 rm -f conftest.$ac_objext
13526 if { (ac_try="$ac_compile"
13527 case "(($ac_try" in
13528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13529 *) ac_try_echo=$ac_try;;
13530 esac
13531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13532 (eval "$ac_compile") 2>conftest.er1
13533 ac_status=$?
13534 grep -v '^ *+' conftest.er1 >conftest.err
13535 rm -f conftest.er1
13536 cat conftest.err >&5
13537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13538 (exit $ac_status); } && {
13539 test -z "$ac_c_werror_flag" ||
13540 test ! -s conftest.err
13541 } && test -s conftest.$ac_objext; then
13542 ac_cv_type_time_t=yes
13543 else
13544 echo "$as_me: failed program was:" >&5
13545 sed 's/^/| /' conftest.$ac_ext >&5
13547 ac_cv_type_time_t=no
13550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13552 { echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5
13553 echo "${ECHO_T}$ac_cv_type_time_t" >&6; }
13555 # The cast to long int works around a bug in the HP C Compiler
13556 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13557 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13558 # This bug is HP SR number 8606223364.
13559 { echo "$as_me:$LINENO: checking size of time_t" >&5
13560 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6; }
13561 if test "${ac_cv_sizeof_time_t+set}" = set; then
13562 echo $ECHO_N "(cached) $ECHO_C" >&6
13563 else
13564 if test "$cross_compiling" = yes; then
13565 # Depending upon the size, compute the lo and hi bounds.
13566 cat >conftest.$ac_ext <<_ACEOF
13567 /* confdefs.h. */
13568 _ACEOF
13569 cat confdefs.h >>conftest.$ac_ext
13570 cat >>conftest.$ac_ext <<_ACEOF
13571 /* end confdefs.h. */
13573 #ifdef HAVE_SYS_TYPES_H
13574 #include <sys/types.h>
13575 #endif
13576 #ifdef HAVE_TIME_H
13577 #include <time.h>
13578 #endif
13581 typedef time_t ac__type_sizeof_;
13583 main ()
13585 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13586 test_array [0] = 0
13589 return 0;
13591 _ACEOF
13592 rm -f conftest.$ac_objext
13593 if { (ac_try="$ac_compile"
13594 case "(($ac_try" in
13595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13596 *) ac_try_echo=$ac_try;;
13597 esac
13598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13599 (eval "$ac_compile") 2>conftest.er1
13600 ac_status=$?
13601 grep -v '^ *+' conftest.er1 >conftest.err
13602 rm -f conftest.er1
13603 cat conftest.err >&5
13604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13605 (exit $ac_status); } && {
13606 test -z "$ac_c_werror_flag" ||
13607 test ! -s conftest.err
13608 } && test -s conftest.$ac_objext; then
13609 ac_lo=0 ac_mid=0
13610 while :; do
13611 cat >conftest.$ac_ext <<_ACEOF
13612 /* confdefs.h. */
13613 _ACEOF
13614 cat confdefs.h >>conftest.$ac_ext
13615 cat >>conftest.$ac_ext <<_ACEOF
13616 /* end confdefs.h. */
13618 #ifdef HAVE_SYS_TYPES_H
13619 #include <sys/types.h>
13620 #endif
13621 #ifdef HAVE_TIME_H
13622 #include <time.h>
13623 #endif
13626 typedef time_t ac__type_sizeof_;
13628 main ()
13630 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13631 test_array [0] = 0
13634 return 0;
13636 _ACEOF
13637 rm -f conftest.$ac_objext
13638 if { (ac_try="$ac_compile"
13639 case "(($ac_try" in
13640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13641 *) ac_try_echo=$ac_try;;
13642 esac
13643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13644 (eval "$ac_compile") 2>conftest.er1
13645 ac_status=$?
13646 grep -v '^ *+' conftest.er1 >conftest.err
13647 rm -f conftest.er1
13648 cat conftest.err >&5
13649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13650 (exit $ac_status); } && {
13651 test -z "$ac_c_werror_flag" ||
13652 test ! -s conftest.err
13653 } && test -s conftest.$ac_objext; then
13654 ac_hi=$ac_mid; break
13655 else
13656 echo "$as_me: failed program was:" >&5
13657 sed 's/^/| /' conftest.$ac_ext >&5
13659 ac_lo=`expr $ac_mid + 1`
13660 if test $ac_lo -le $ac_mid; then
13661 ac_lo= ac_hi=
13662 break
13664 ac_mid=`expr 2 '*' $ac_mid + 1`
13667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13668 done
13669 else
13670 echo "$as_me: failed program was:" >&5
13671 sed 's/^/| /' conftest.$ac_ext >&5
13673 cat >conftest.$ac_ext <<_ACEOF
13674 /* confdefs.h. */
13675 _ACEOF
13676 cat confdefs.h >>conftest.$ac_ext
13677 cat >>conftest.$ac_ext <<_ACEOF
13678 /* end confdefs.h. */
13680 #ifdef HAVE_SYS_TYPES_H
13681 #include <sys/types.h>
13682 #endif
13683 #ifdef HAVE_TIME_H
13684 #include <time.h>
13685 #endif
13688 typedef time_t ac__type_sizeof_;
13690 main ()
13692 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13693 test_array [0] = 0
13696 return 0;
13698 _ACEOF
13699 rm -f conftest.$ac_objext
13700 if { (ac_try="$ac_compile"
13701 case "(($ac_try" in
13702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13703 *) ac_try_echo=$ac_try;;
13704 esac
13705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13706 (eval "$ac_compile") 2>conftest.er1
13707 ac_status=$?
13708 grep -v '^ *+' conftest.er1 >conftest.err
13709 rm -f conftest.er1
13710 cat conftest.err >&5
13711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13712 (exit $ac_status); } && {
13713 test -z "$ac_c_werror_flag" ||
13714 test ! -s conftest.err
13715 } && test -s conftest.$ac_objext; then
13716 ac_hi=-1 ac_mid=-1
13717 while :; do
13718 cat >conftest.$ac_ext <<_ACEOF
13719 /* confdefs.h. */
13720 _ACEOF
13721 cat confdefs.h >>conftest.$ac_ext
13722 cat >>conftest.$ac_ext <<_ACEOF
13723 /* end confdefs.h. */
13725 #ifdef HAVE_SYS_TYPES_H
13726 #include <sys/types.h>
13727 #endif
13728 #ifdef HAVE_TIME_H
13729 #include <time.h>
13730 #endif
13733 typedef time_t ac__type_sizeof_;
13735 main ()
13737 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13738 test_array [0] = 0
13741 return 0;
13743 _ACEOF
13744 rm -f conftest.$ac_objext
13745 if { (ac_try="$ac_compile"
13746 case "(($ac_try" in
13747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13748 *) ac_try_echo=$ac_try;;
13749 esac
13750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13751 (eval "$ac_compile") 2>conftest.er1
13752 ac_status=$?
13753 grep -v '^ *+' conftest.er1 >conftest.err
13754 rm -f conftest.er1
13755 cat conftest.err >&5
13756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13757 (exit $ac_status); } && {
13758 test -z "$ac_c_werror_flag" ||
13759 test ! -s conftest.err
13760 } && test -s conftest.$ac_objext; then
13761 ac_lo=$ac_mid; break
13762 else
13763 echo "$as_me: failed program was:" >&5
13764 sed 's/^/| /' conftest.$ac_ext >&5
13766 ac_hi=`expr '(' $ac_mid ')' - 1`
13767 if test $ac_mid -le $ac_hi; then
13768 ac_lo= ac_hi=
13769 break
13771 ac_mid=`expr 2 '*' $ac_mid`
13774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13775 done
13776 else
13777 echo "$as_me: failed program was:" >&5
13778 sed 's/^/| /' conftest.$ac_ext >&5
13780 ac_lo= ac_hi=
13783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13787 # Binary search between lo and hi bounds.
13788 while test "x$ac_lo" != "x$ac_hi"; do
13789 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13790 cat >conftest.$ac_ext <<_ACEOF
13791 /* confdefs.h. */
13792 _ACEOF
13793 cat confdefs.h >>conftest.$ac_ext
13794 cat >>conftest.$ac_ext <<_ACEOF
13795 /* end confdefs.h. */
13797 #ifdef HAVE_SYS_TYPES_H
13798 #include <sys/types.h>
13799 #endif
13800 #ifdef HAVE_TIME_H
13801 #include <time.h>
13802 #endif
13805 typedef time_t ac__type_sizeof_;
13807 main ()
13809 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13810 test_array [0] = 0
13813 return 0;
13815 _ACEOF
13816 rm -f conftest.$ac_objext
13817 if { (ac_try="$ac_compile"
13818 case "(($ac_try" in
13819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13820 *) ac_try_echo=$ac_try;;
13821 esac
13822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13823 (eval "$ac_compile") 2>conftest.er1
13824 ac_status=$?
13825 grep -v '^ *+' conftest.er1 >conftest.err
13826 rm -f conftest.er1
13827 cat conftest.err >&5
13828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13829 (exit $ac_status); } && {
13830 test -z "$ac_c_werror_flag" ||
13831 test ! -s conftest.err
13832 } && test -s conftest.$ac_objext; then
13833 ac_hi=$ac_mid
13834 else
13835 echo "$as_me: failed program was:" >&5
13836 sed 's/^/| /' conftest.$ac_ext >&5
13838 ac_lo=`expr '(' $ac_mid ')' + 1`
13841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13842 done
13843 case $ac_lo in
13844 ?*) ac_cv_sizeof_time_t=$ac_lo;;
13845 '') if test "$ac_cv_type_time_t" = yes; then
13846 { { echo "$as_me:$LINENO: error: cannot compute sizeof (time_t)
13847 See \`config.log' for more details." >&5
13848 echo "$as_me: error: cannot compute sizeof (time_t)
13849 See \`config.log' for more details." >&2;}
13850 { (exit 77); exit 77; }; }
13851 else
13852 ac_cv_sizeof_time_t=0
13853 fi ;;
13854 esac
13855 else
13856 cat >conftest.$ac_ext <<_ACEOF
13857 /* confdefs.h. */
13858 _ACEOF
13859 cat confdefs.h >>conftest.$ac_ext
13860 cat >>conftest.$ac_ext <<_ACEOF
13861 /* end confdefs.h. */
13863 #ifdef HAVE_SYS_TYPES_H
13864 #include <sys/types.h>
13865 #endif
13866 #ifdef HAVE_TIME_H
13867 #include <time.h>
13868 #endif
13871 typedef time_t ac__type_sizeof_;
13872 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13873 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
13874 #include <stdio.h>
13875 #include <stdlib.h>
13877 main ()
13880 FILE *f = fopen ("conftest.val", "w");
13881 if (! f)
13882 return 1;
13883 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
13885 long int i = longval ();
13886 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13887 return 1;
13888 fprintf (f, "%ld\n", i);
13890 else
13892 unsigned long int i = ulongval ();
13893 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13894 return 1;
13895 fprintf (f, "%lu\n", i);
13897 return ferror (f) || fclose (f) != 0;
13900 return 0;
13902 _ACEOF
13903 rm -f conftest$ac_exeext
13904 if { (ac_try="$ac_link"
13905 case "(($ac_try" in
13906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13907 *) ac_try_echo=$ac_try;;
13908 esac
13909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13910 (eval "$ac_link") 2>&5
13911 ac_status=$?
13912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13913 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13914 { (case "(($ac_try" in
13915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13916 *) ac_try_echo=$ac_try;;
13917 esac
13918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13919 (eval "$ac_try") 2>&5
13920 ac_status=$?
13921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13922 (exit $ac_status); }; }; then
13923 ac_cv_sizeof_time_t=`cat conftest.val`
13924 else
13925 echo "$as_me: program exited with status $ac_status" >&5
13926 echo "$as_me: failed program was:" >&5
13927 sed 's/^/| /' conftest.$ac_ext >&5
13929 ( exit $ac_status )
13930 if test "$ac_cv_type_time_t" = yes; then
13931 { { echo "$as_me:$LINENO: error: cannot compute sizeof (time_t)
13932 See \`config.log' for more details." >&5
13933 echo "$as_me: error: cannot compute sizeof (time_t)
13934 See \`config.log' for more details." >&2;}
13935 { (exit 77); exit 77; }; }
13936 else
13937 ac_cv_sizeof_time_t=0
13940 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13942 rm -f conftest.val
13944 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
13945 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6; }
13949 cat >>confdefs.h <<_ACEOF
13950 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
13951 _ACEOF
13955 # if have pthread_t then define SIZEOF_PTHREAD_T
13956 ac_save_cc="$CC"
13957 if test "$ac_cv_kpthread" = "yes"
13958 then CC="$CC -Kpthread"
13959 elif test "$ac_cv_kthread" = "yes"
13960 then CC="$CC -Kthread"
13961 elif test "$ac_cv_pthread" = "yes"
13962 then CC="$CC -pthread"
13964 { echo "$as_me:$LINENO: checking for pthread_t" >&5
13965 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; }
13966 have_pthread_t=no
13967 cat >conftest.$ac_ext <<_ACEOF
13968 /* confdefs.h. */
13969 _ACEOF
13970 cat confdefs.h >>conftest.$ac_ext
13971 cat >>conftest.$ac_ext <<_ACEOF
13972 /* end confdefs.h. */
13973 #include <pthread.h>
13975 main ()
13977 pthread_t x; x = *(pthread_t*)0;
13979 return 0;
13981 _ACEOF
13982 rm -f conftest.$ac_objext
13983 if { (ac_try="$ac_compile"
13984 case "(($ac_try" in
13985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13986 *) ac_try_echo=$ac_try;;
13987 esac
13988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13989 (eval "$ac_compile") 2>conftest.er1
13990 ac_status=$?
13991 grep -v '^ *+' conftest.er1 >conftest.err
13992 rm -f conftest.er1
13993 cat conftest.err >&5
13994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13995 (exit $ac_status); } && {
13996 test -z "$ac_c_werror_flag" ||
13997 test ! -s conftest.err
13998 } && test -s conftest.$ac_objext; then
13999 have_pthread_t=yes
14000 else
14001 echo "$as_me: failed program was:" >&5
14002 sed 's/^/| /' conftest.$ac_ext >&5
14007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14008 { echo "$as_me:$LINENO: result: $have_pthread_t" >&5
14009 echo "${ECHO_T}$have_pthread_t" >&6; }
14010 if test "$have_pthread_t" = yes ; then
14011 { echo "$as_me:$LINENO: checking for pthread_t" >&5
14012 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; }
14013 if test "${ac_cv_type_pthread_t+set}" = set; then
14014 echo $ECHO_N "(cached) $ECHO_C" >&6
14015 else
14016 cat >conftest.$ac_ext <<_ACEOF
14017 /* confdefs.h. */
14018 _ACEOF
14019 cat confdefs.h >>conftest.$ac_ext
14020 cat >>conftest.$ac_ext <<_ACEOF
14021 /* end confdefs.h. */
14023 #ifdef HAVE_PTHREAD_H
14024 #include <pthread.h>
14025 #endif
14028 typedef pthread_t ac__type_new_;
14030 main ()
14032 if ((ac__type_new_ *) 0)
14033 return 0;
14034 if (sizeof (ac__type_new_))
14035 return 0;
14037 return 0;
14039 _ACEOF
14040 rm -f conftest.$ac_objext
14041 if { (ac_try="$ac_compile"
14042 case "(($ac_try" in
14043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14044 *) ac_try_echo=$ac_try;;
14045 esac
14046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14047 (eval "$ac_compile") 2>conftest.er1
14048 ac_status=$?
14049 grep -v '^ *+' conftest.er1 >conftest.err
14050 rm -f conftest.er1
14051 cat conftest.err >&5
14052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14053 (exit $ac_status); } && {
14054 test -z "$ac_c_werror_flag" ||
14055 test ! -s conftest.err
14056 } && test -s conftest.$ac_objext; then
14057 ac_cv_type_pthread_t=yes
14058 else
14059 echo "$as_me: failed program was:" >&5
14060 sed 's/^/| /' conftest.$ac_ext >&5
14062 ac_cv_type_pthread_t=no
14065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14067 { echo "$as_me:$LINENO: result: $ac_cv_type_pthread_t" >&5
14068 echo "${ECHO_T}$ac_cv_type_pthread_t" >&6; }
14070 # The cast to long int works around a bug in the HP C Compiler
14071 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14072 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14073 # This bug is HP SR number 8606223364.
14074 { echo "$as_me:$LINENO: checking size of pthread_t" >&5
14075 echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6; }
14076 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
14077 echo $ECHO_N "(cached) $ECHO_C" >&6
14078 else
14079 if test "$cross_compiling" = yes; then
14080 # Depending upon the size, compute the lo and hi bounds.
14081 cat >conftest.$ac_ext <<_ACEOF
14082 /* confdefs.h. */
14083 _ACEOF
14084 cat confdefs.h >>conftest.$ac_ext
14085 cat >>conftest.$ac_ext <<_ACEOF
14086 /* end confdefs.h. */
14088 #ifdef HAVE_PTHREAD_H
14089 #include <pthread.h>
14090 #endif
14093 typedef pthread_t ac__type_sizeof_;
14095 main ()
14097 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
14098 test_array [0] = 0
14101 return 0;
14103 _ACEOF
14104 rm -f conftest.$ac_objext
14105 if { (ac_try="$ac_compile"
14106 case "(($ac_try" in
14107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14108 *) ac_try_echo=$ac_try;;
14109 esac
14110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14111 (eval "$ac_compile") 2>conftest.er1
14112 ac_status=$?
14113 grep -v '^ *+' conftest.er1 >conftest.err
14114 rm -f conftest.er1
14115 cat conftest.err >&5
14116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14117 (exit $ac_status); } && {
14118 test -z "$ac_c_werror_flag" ||
14119 test ! -s conftest.err
14120 } && test -s conftest.$ac_objext; then
14121 ac_lo=0 ac_mid=0
14122 while :; do
14123 cat >conftest.$ac_ext <<_ACEOF
14124 /* confdefs.h. */
14125 _ACEOF
14126 cat confdefs.h >>conftest.$ac_ext
14127 cat >>conftest.$ac_ext <<_ACEOF
14128 /* end confdefs.h. */
14130 #ifdef HAVE_PTHREAD_H
14131 #include <pthread.h>
14132 #endif
14135 typedef pthread_t ac__type_sizeof_;
14137 main ()
14139 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
14140 test_array [0] = 0
14143 return 0;
14145 _ACEOF
14146 rm -f conftest.$ac_objext
14147 if { (ac_try="$ac_compile"
14148 case "(($ac_try" in
14149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14150 *) ac_try_echo=$ac_try;;
14151 esac
14152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14153 (eval "$ac_compile") 2>conftest.er1
14154 ac_status=$?
14155 grep -v '^ *+' conftest.er1 >conftest.err
14156 rm -f conftest.er1
14157 cat conftest.err >&5
14158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14159 (exit $ac_status); } && {
14160 test -z "$ac_c_werror_flag" ||
14161 test ! -s conftest.err
14162 } && test -s conftest.$ac_objext; then
14163 ac_hi=$ac_mid; break
14164 else
14165 echo "$as_me: failed program was:" >&5
14166 sed 's/^/| /' conftest.$ac_ext >&5
14168 ac_lo=`expr $ac_mid + 1`
14169 if test $ac_lo -le $ac_mid; then
14170 ac_lo= ac_hi=
14171 break
14173 ac_mid=`expr 2 '*' $ac_mid + 1`
14176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14177 done
14178 else
14179 echo "$as_me: failed program was:" >&5
14180 sed 's/^/| /' conftest.$ac_ext >&5
14182 cat >conftest.$ac_ext <<_ACEOF
14183 /* confdefs.h. */
14184 _ACEOF
14185 cat confdefs.h >>conftest.$ac_ext
14186 cat >>conftest.$ac_ext <<_ACEOF
14187 /* end confdefs.h. */
14189 #ifdef HAVE_PTHREAD_H
14190 #include <pthread.h>
14191 #endif
14194 typedef pthread_t ac__type_sizeof_;
14196 main ()
14198 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
14199 test_array [0] = 0
14202 return 0;
14204 _ACEOF
14205 rm -f conftest.$ac_objext
14206 if { (ac_try="$ac_compile"
14207 case "(($ac_try" in
14208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14209 *) ac_try_echo=$ac_try;;
14210 esac
14211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14212 (eval "$ac_compile") 2>conftest.er1
14213 ac_status=$?
14214 grep -v '^ *+' conftest.er1 >conftest.err
14215 rm -f conftest.er1
14216 cat conftest.err >&5
14217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14218 (exit $ac_status); } && {
14219 test -z "$ac_c_werror_flag" ||
14220 test ! -s conftest.err
14221 } && test -s conftest.$ac_objext; then
14222 ac_hi=-1 ac_mid=-1
14223 while :; do
14224 cat >conftest.$ac_ext <<_ACEOF
14225 /* confdefs.h. */
14226 _ACEOF
14227 cat confdefs.h >>conftest.$ac_ext
14228 cat >>conftest.$ac_ext <<_ACEOF
14229 /* end confdefs.h. */
14231 #ifdef HAVE_PTHREAD_H
14232 #include <pthread.h>
14233 #endif
14236 typedef pthread_t ac__type_sizeof_;
14238 main ()
14240 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
14241 test_array [0] = 0
14244 return 0;
14246 _ACEOF
14247 rm -f conftest.$ac_objext
14248 if { (ac_try="$ac_compile"
14249 case "(($ac_try" in
14250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14251 *) ac_try_echo=$ac_try;;
14252 esac
14253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14254 (eval "$ac_compile") 2>conftest.er1
14255 ac_status=$?
14256 grep -v '^ *+' conftest.er1 >conftest.err
14257 rm -f conftest.er1
14258 cat conftest.err >&5
14259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14260 (exit $ac_status); } && {
14261 test -z "$ac_c_werror_flag" ||
14262 test ! -s conftest.err
14263 } && test -s conftest.$ac_objext; then
14264 ac_lo=$ac_mid; break
14265 else
14266 echo "$as_me: failed program was:" >&5
14267 sed 's/^/| /' conftest.$ac_ext >&5
14269 ac_hi=`expr '(' $ac_mid ')' - 1`
14270 if test $ac_mid -le $ac_hi; then
14271 ac_lo= ac_hi=
14272 break
14274 ac_mid=`expr 2 '*' $ac_mid`
14277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14278 done
14279 else
14280 echo "$as_me: failed program was:" >&5
14281 sed 's/^/| /' conftest.$ac_ext >&5
14283 ac_lo= ac_hi=
14286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14290 # Binary search between lo and hi bounds.
14291 while test "x$ac_lo" != "x$ac_hi"; do
14292 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14293 cat >conftest.$ac_ext <<_ACEOF
14294 /* confdefs.h. */
14295 _ACEOF
14296 cat confdefs.h >>conftest.$ac_ext
14297 cat >>conftest.$ac_ext <<_ACEOF
14298 /* end confdefs.h. */
14300 #ifdef HAVE_PTHREAD_H
14301 #include <pthread.h>
14302 #endif
14305 typedef pthread_t ac__type_sizeof_;
14307 main ()
14309 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
14310 test_array [0] = 0
14313 return 0;
14315 _ACEOF
14316 rm -f conftest.$ac_objext
14317 if { (ac_try="$ac_compile"
14318 case "(($ac_try" in
14319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14320 *) ac_try_echo=$ac_try;;
14321 esac
14322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14323 (eval "$ac_compile") 2>conftest.er1
14324 ac_status=$?
14325 grep -v '^ *+' conftest.er1 >conftest.err
14326 rm -f conftest.er1
14327 cat conftest.err >&5
14328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14329 (exit $ac_status); } && {
14330 test -z "$ac_c_werror_flag" ||
14331 test ! -s conftest.err
14332 } && test -s conftest.$ac_objext; then
14333 ac_hi=$ac_mid
14334 else
14335 echo "$as_me: failed program was:" >&5
14336 sed 's/^/| /' conftest.$ac_ext >&5
14338 ac_lo=`expr '(' $ac_mid ')' + 1`
14341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14342 done
14343 case $ac_lo in
14344 ?*) ac_cv_sizeof_pthread_t=$ac_lo;;
14345 '') if test "$ac_cv_type_pthread_t" = yes; then
14346 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pthread_t)
14347 See \`config.log' for more details." >&5
14348 echo "$as_me: error: cannot compute sizeof (pthread_t)
14349 See \`config.log' for more details." >&2;}
14350 { (exit 77); exit 77; }; }
14351 else
14352 ac_cv_sizeof_pthread_t=0
14353 fi ;;
14354 esac
14355 else
14356 cat >conftest.$ac_ext <<_ACEOF
14357 /* confdefs.h. */
14358 _ACEOF
14359 cat confdefs.h >>conftest.$ac_ext
14360 cat >>conftest.$ac_ext <<_ACEOF
14361 /* end confdefs.h. */
14363 #ifdef HAVE_PTHREAD_H
14364 #include <pthread.h>
14365 #endif
14368 typedef pthread_t ac__type_sizeof_;
14369 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
14370 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
14371 #include <stdio.h>
14372 #include <stdlib.h>
14374 main ()
14377 FILE *f = fopen ("conftest.val", "w");
14378 if (! f)
14379 return 1;
14380 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
14382 long int i = longval ();
14383 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14384 return 1;
14385 fprintf (f, "%ld\n", i);
14387 else
14389 unsigned long int i = ulongval ();
14390 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14391 return 1;
14392 fprintf (f, "%lu\n", i);
14394 return ferror (f) || fclose (f) != 0;
14397 return 0;
14399 _ACEOF
14400 rm -f conftest$ac_exeext
14401 if { (ac_try="$ac_link"
14402 case "(($ac_try" in
14403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14404 *) ac_try_echo=$ac_try;;
14405 esac
14406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14407 (eval "$ac_link") 2>&5
14408 ac_status=$?
14409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14410 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14411 { (case "(($ac_try" in
14412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14413 *) ac_try_echo=$ac_try;;
14414 esac
14415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14416 (eval "$ac_try") 2>&5
14417 ac_status=$?
14418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14419 (exit $ac_status); }; }; then
14420 ac_cv_sizeof_pthread_t=`cat conftest.val`
14421 else
14422 echo "$as_me: program exited with status $ac_status" >&5
14423 echo "$as_me: failed program was:" >&5
14424 sed 's/^/| /' conftest.$ac_ext >&5
14426 ( exit $ac_status )
14427 if test "$ac_cv_type_pthread_t" = yes; then
14428 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pthread_t)
14429 See \`config.log' for more details." >&5
14430 echo "$as_me: error: cannot compute sizeof (pthread_t)
14431 See \`config.log' for more details." >&2;}
14432 { (exit 77); exit 77; }; }
14433 else
14434 ac_cv_sizeof_pthread_t=0
14437 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14439 rm -f conftest.val
14441 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
14442 echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6; }
14446 cat >>confdefs.h <<_ACEOF
14447 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
14448 _ACEOF
14452 CC="$ac_save_cc"
14454 { echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5
14455 echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6; }
14456 # Check whether --enable-toolbox-glue was given.
14457 if test "${enable_toolbox_glue+set}" = set; then
14458 enableval=$enable_toolbox_glue;
14462 if test -z "$enable_toolbox_glue"
14463 then
14464 case $ac_sys_system/$ac_sys_release in
14465 Darwin/*)
14466 enable_toolbox_glue="yes";;
14468 enable_toolbox_glue="no";;
14469 esac
14471 case "$enable_toolbox_glue" in
14472 yes)
14473 extra_machdep_objs="Python/mactoolboxglue.o"
14474 extra_undefs="-u _PyMac_Error"
14476 cat >>confdefs.h <<\_ACEOF
14477 #define USE_TOOLBOX_OBJECT_GLUE 1
14478 _ACEOF
14482 extra_machdep_objs=""
14483 extra_undefs=""
14485 esac
14486 { echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5
14487 echo "${ECHO_T}$enable_toolbox_glue" >&6; }
14491 case $ac_sys_system/$ac_sys_release in
14492 Darwin/[01567]\..*)
14493 OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
14495 Darwin/*)
14496 OTHER_LIBTOOL_OPT=""
14498 esac
14501 ARCH_RUN_32BIT=""
14503 case $ac_sys_system/$ac_sys_release in
14504 Darwin/[01567]\..*)
14505 LIBTOOL_CRUFT="-framework System -lcc_dynamic"
14506 if test "${enable_universalsdk}"; then
14508 else
14509 LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `arch`"
14511 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
14512 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
14513 Darwin/*)
14514 gcc_version=`gcc -v 2>&1 | grep version | cut -d\ -f3`
14515 if test ${gcc_version} '<' 4.0
14516 then
14517 LIBTOOL_CRUFT="-lcc_dynamic"
14518 else
14519 LIBTOOL_CRUFT=""
14521 if test "$cross_compiling" = yes; then
14522 ac_osx_32bit=yes
14523 else
14524 cat >conftest.$ac_ext <<_ACEOF
14525 /* confdefs.h. */
14526 _ACEOF
14527 cat confdefs.h >>conftest.$ac_ext
14528 cat >>conftest.$ac_ext <<_ACEOF
14529 /* end confdefs.h. */
14531 #include <unistd.h>
14532 int main(int argc, char*argv[])
14534 if (sizeof(long) == 4) {
14535 return 0;
14536 } else {
14537 return 1;
14541 _ACEOF
14542 rm -f conftest$ac_exeext
14543 if { (ac_try="$ac_link"
14544 case "(($ac_try" in
14545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14546 *) ac_try_echo=$ac_try;;
14547 esac
14548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14549 (eval "$ac_link") 2>&5
14550 ac_status=$?
14551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14552 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14553 { (case "(($ac_try" in
14554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14555 *) ac_try_echo=$ac_try;;
14556 esac
14557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14558 (eval "$ac_try") 2>&5
14559 ac_status=$?
14560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14561 (exit $ac_status); }; }; then
14562 ac_osx_32bit=yes
14563 else
14564 echo "$as_me: program exited with status $ac_status" >&5
14565 echo "$as_me: failed program was:" >&5
14566 sed 's/^/| /' conftest.$ac_ext >&5
14568 ( exit $ac_status )
14569 ac_osx_32bit=no
14571 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14576 if test "${ac_osx_32bit}" = "yes"; then
14577 case `arch` in
14578 i386)
14579 MACOSX_DEFAULT_ARCH="i386"
14581 ppc)
14582 MACOSX_DEFAULT_ARCH="ppc"
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
14590 else
14591 case `arch` in
14592 i386)
14593 MACOSX_DEFAULT_ARCH="x86_64"
14595 ppc)
14596 MACOSX_DEFAULT_ARCH="ppc64"
14599 { { echo "$as_me:$LINENO: error: Unexpected output of 'arch' on OSX" >&5
14600 echo "$as_me: error: Unexpected output of 'arch' on OSX" >&2;}
14601 { (exit 1); exit 1; }; }
14603 esac
14605 #ARCH_RUN_32BIT="true"
14608 LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only ${MACOSX_DEFAULT_ARCH}"
14609 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
14610 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
14611 esac
14613 { echo "$as_me:$LINENO: checking for --enable-framework" >&5
14614 echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6; }
14615 if test "$enable_framework"
14616 then
14617 BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
14618 # -F. is needed to allow linking to the framework while
14619 # in the build location.
14621 cat >>confdefs.h <<\_ACEOF
14622 #define WITH_NEXT_FRAMEWORK 1
14623 _ACEOF
14625 { echo "$as_me:$LINENO: result: yes" >&5
14626 echo "${ECHO_T}yes" >&6; }
14627 if test $enable_shared = "yes"
14628 then
14629 { { echo "$as_me:$LINENO: error: Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead. See Mac/README." >&5
14630 echo "$as_me: error: Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead. See Mac/README." >&2;}
14631 { (exit 1); exit 1; }; }
14633 else
14634 { echo "$as_me:$LINENO: result: no" >&5
14635 echo "${ECHO_T}no" >&6; }
14638 { echo "$as_me:$LINENO: checking for dyld" >&5
14639 echo $ECHO_N "checking for dyld... $ECHO_C" >&6; }
14640 case $ac_sys_system/$ac_sys_release in
14641 Darwin/*)
14643 cat >>confdefs.h <<\_ACEOF
14644 #define WITH_DYLD 1
14645 _ACEOF
14647 { echo "$as_me:$LINENO: result: always on for Darwin" >&5
14648 echo "${ECHO_T}always on for Darwin" >&6; }
14651 { echo "$as_me:$LINENO: result: no" >&5
14652 echo "${ECHO_T}no" >&6; }
14654 esac
14656 # Set info about shared libraries.
14662 # SO is the extension of shared libraries `(including the dot!)
14663 # -- usually .so, .sl on HP-UX, .dll on Cygwin
14664 { echo "$as_me:$LINENO: checking SO" >&5
14665 echo $ECHO_N "checking SO... $ECHO_C" >&6; }
14666 if test -z "$SO"
14667 then
14668 case $ac_sys_system in
14669 hp*|HP*)
14670 case `uname -m` in
14671 ia64) SO=.so;;
14672 *) SO=.sl;;
14673 esac
14675 CYGWIN*) SO=.dll;;
14676 *) SO=.so;;
14677 esac
14678 else
14679 # this might also be a termcap variable, see #610332
14680 echo
14681 echo '====================================================================='
14682 echo '+ +'
14683 echo '+ WARNING: You have set SO in your environment. +'
14684 echo '+ Do you really mean to change the extension for shared libraries? +'
14685 echo '+ Continuing in 10 seconds to let you to ponder. +'
14686 echo '+ +'
14687 echo '====================================================================='
14688 sleep 10
14690 { echo "$as_me:$LINENO: result: $SO" >&5
14691 echo "${ECHO_T}$SO" >&6; }
14694 cat >>confdefs.h <<_ACEOF
14695 #define SHLIB_EXT "$SO"
14696 _ACEOF
14698 # LDSHARED is the ld *command* used to create shared library
14699 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
14700 # (Shared libraries in this instance are shared modules to be loaded into
14701 # Python, as opposed to building Python itself as a shared library.)
14702 { echo "$as_me:$LINENO: checking LDSHARED" >&5
14703 echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6; }
14704 if test -z "$LDSHARED"
14705 then
14706 case $ac_sys_system/$ac_sys_release in
14707 AIX*)
14708 BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
14709 LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
14711 BeOS*)
14712 BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
14713 LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
14715 IRIX/5*) LDSHARED="ld -shared";;
14716 IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";;
14717 SunOS/5*)
14718 if test "$GCC" = "yes"
14719 then LDSHARED='$(CC) -shared'
14720 else LDSHARED='$(CC) -G';
14721 fi ;;
14722 hp*|HP*)
14723 if test "$GCC" = "yes"
14724 then LDSHARED='$(CC) -shared'
14725 else LDSHARED='ld -b';
14726 fi ;;
14727 OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";;
14728 Darwin/1.3*)
14729 LDSHARED='$(CC) $(LDFLAGS) -bundle'
14730 if test "$enable_framework" ; then
14731 # Link against the framework. All externals should be defined.
14732 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
14733 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
14734 else
14735 # No framework. Ignore undefined symbols, assuming they come from Python
14736 LDSHARED="$LDSHARED -undefined suppress"
14737 fi ;;
14738 Darwin/1.4*|Darwin/5.*|Darwin/6.*)
14739 LDSHARED='$(CC) $(LDFLAGS) -bundle'
14740 if test "$enable_framework" ; then
14741 # Link against the framework. All externals should be defined.
14742 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
14743 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
14744 else
14745 # No framework, use the Python app as bundle-loader
14746 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
14747 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
14748 fi ;;
14749 Darwin/*)
14750 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
14751 # This allows an extension to be used in any Python
14753 if test ${MACOSX_DEPLOYMENT_TARGET} '>' 10.2
14754 then
14755 if test "${enable_universalsdk}"; then
14756 LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
14758 LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
14759 BLDSHARED="$LDSHARED"
14760 else
14761 LDSHARED='$(CC) $(LDFLAGS) -bundle'
14762 if test "$enable_framework" ; then
14763 # Link against the framework. All externals should be defined.
14764 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
14765 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
14766 else
14767 # No framework, use the Python app as bundle-loader
14768 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
14769 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
14773 Linux*|GNU*|QNX*) LDSHARED='$(CC) -shared';;
14774 BSD/OS*/4*) LDSHARED="gcc -shared";;
14775 FreeBSD*)
14776 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
14777 then
14778 LDSHARED="$CC -shared ${LDFLAGS}"
14779 else
14780 LDSHARED="ld -Bshareable ${LDFLAGS}"
14781 fi;;
14782 OpenBSD*)
14783 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
14784 then
14785 LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
14786 else
14787 case `uname -r` in
14788 [01].* | 2.[0-7] | 2.[0-7].*)
14789 LDSHARED="ld -Bshareable ${LDFLAGS}"
14792 LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
14794 esac
14795 fi;;
14796 NetBSD*|DragonFly*) LDSHARED="cc -shared ${LDFLAGS}";;
14797 OpenUNIX*|UnixWare*)
14798 if test "$GCC" = "yes"
14799 then LDSHARED='$(CC) -shared'
14800 else LDSHARED='$(CC) -G'
14801 fi;;
14802 SCO_SV*) LDSHARED='$(CC) -Wl,-G,-Bexport';;
14803 CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";;
14804 atheos*) LDSHARED="gcc -shared";;
14805 *) LDSHARED="ld";;
14806 esac
14808 { echo "$as_me:$LINENO: result: $LDSHARED" >&5
14809 echo "${ECHO_T}$LDSHARED" >&6; }
14810 BLDSHARED=${BLDSHARED-$LDSHARED}
14811 # CCSHARED are the C *flags* used to create objects to go into a shared
14812 # library (module) -- this is only needed for a few systems
14813 { echo "$as_me:$LINENO: checking CCSHARED" >&5
14814 echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6; }
14815 if test -z "$CCSHARED"
14816 then
14817 case $ac_sys_system/$ac_sys_release in
14818 SunOS*) if test "$GCC" = yes;
14819 then CCSHARED="-fPIC";
14820 elif test `uname -p` = sparc;
14821 then CCSHARED="-xcode=pic32";
14822 else CCSHARED="-Kpic";
14823 fi;;
14824 hp*|HP*) if test "$GCC" = yes;
14825 then CCSHARED="-fPIC";
14826 else CCSHARED="+z";
14827 fi;;
14828 Linux*|GNU*) CCSHARED="-fPIC";;
14829 BSD/OS*/4*) CCSHARED="-fpic";;
14830 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";;
14831 OpenUNIX*|UnixWare*)
14832 if test "$GCC" = "yes"
14833 then CCSHARED="-fPIC"
14834 else CCSHARED="-KPIC"
14835 fi;;
14836 SCO_SV*)
14837 if test "$GCC" = "yes"
14838 then CCSHARED="-fPIC"
14839 else CCSHARED="-Kpic -belf"
14840 fi;;
14841 IRIX*/6*) case $CC in
14842 *gcc*) CCSHARED="-shared";;
14843 *) CCSHARED="";;
14844 esac;;
14845 atheos*) CCSHARED="-fPIC";;
14846 esac
14848 { echo "$as_me:$LINENO: result: $CCSHARED" >&5
14849 echo "${ECHO_T}$CCSHARED" >&6; }
14850 # LINKFORSHARED are the flags passed to the $(CC) command that links
14851 # the python executable -- this is only needed for a few systems
14852 { echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
14853 echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6; }
14854 if test -z "$LINKFORSHARED"
14855 then
14856 case $ac_sys_system/$ac_sys_release in
14857 AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';;
14858 hp*|HP*)
14859 LINKFORSHARED="-Wl,-E -Wl,+s";;
14860 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
14861 BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";;
14862 Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";;
14863 # -u libsys_s pulls in all symbols in libsys
14864 Darwin/*)
14865 # -u _PyMac_Error is needed to pull in the mac toolbox glue,
14866 # which is
14867 # not used by the core itself but which needs to be in the core so
14868 # that dynamically loaded extension modules have access to it.
14869 # -prebind is no longer used, because it actually seems to give a
14870 # slowdown in stead of a speedup, maybe due to the large number of
14871 # dynamic loads Python does.
14873 LINKFORSHARED="$extra_undefs"
14874 if test "$enable_framework"
14875 then
14876 LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
14878 LINKFORSHARED="$LINKFORSHARED";;
14879 OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";;
14880 SCO_SV*) LINKFORSHARED="-Wl,-Bexport";;
14881 ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
14882 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*)
14883 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
14884 then
14885 LINKFORSHARED="-Wl,--export-dynamic"
14886 fi;;
14887 SunOS/5*) case $CC in
14888 *gcc*)
14889 if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null
14890 then
14891 LINKFORSHARED="-Xlinker --export-dynamic"
14892 fi;;
14893 esac;;
14894 CYGWIN*)
14895 if test $enable_shared = "no"
14896 then
14897 LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)'
14898 fi;;
14899 QNX*)
14900 # -Wl,-E causes the symbols to be added to the dynamic
14901 # symbol table so that they can be found when a module
14902 # is loaded. -N 2048K causes the stack size to be set
14903 # to 2048 kilobytes so that the stack doesn't overflow
14904 # when running test_compile.py.
14905 LINKFORSHARED='-Wl,-E -N 2048K';;
14906 esac
14908 { echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
14909 echo "${ECHO_T}$LINKFORSHARED" >&6; }
14913 { echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
14914 echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6; }
14915 if test ! "$LIBRARY" = "$LDLIBRARY"
14916 then
14917 case $ac_sys_system in
14918 CYGWIN*)
14919 # Cygwin needs CCSHARED when building extension DLLs
14920 # but not when building the interpreter DLL.
14921 CFLAGSFORSHARED='';;
14923 CFLAGSFORSHARED='$(CCSHARED)'
14924 esac
14926 { echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
14927 echo "${ECHO_T}$CFLAGSFORSHARED" >&6; }
14929 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
14930 # library (with --enable-shared).
14931 # For platforms on which shared libraries are not allowed to have unresolved
14932 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
14933 # if it is not required, since it creates a dependency of the shared library
14934 # to LIBS. This, in turn, means that applications linking the shared libpython
14935 # don't need to link LIBS explicitly. The default should be only changed
14936 # on systems where this approach causes problems.
14938 { echo "$as_me:$LINENO: checking SHLIBS" >&5
14939 echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6; }
14940 case "$ac_sys_system" in
14942 SHLIBS='$(LIBS)';;
14943 esac
14944 { echo "$as_me:$LINENO: result: $SHLIBS" >&5
14945 echo "${ECHO_T}$SHLIBS" >&6; }
14948 # checks for libraries
14950 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14951 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
14952 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14953 echo $ECHO_N "(cached) $ECHO_C" >&6
14954 else
14955 ac_check_lib_save_LIBS=$LIBS
14956 LIBS="-ldl $LIBS"
14957 cat >conftest.$ac_ext <<_ACEOF
14958 /* confdefs.h. */
14959 _ACEOF
14960 cat confdefs.h >>conftest.$ac_ext
14961 cat >>conftest.$ac_ext <<_ACEOF
14962 /* end confdefs.h. */
14964 /* Override any GCC internal prototype to avoid an error.
14965 Use char because int might match the return type of a GCC
14966 builtin and then its argument prototype would still apply. */
14967 #ifdef __cplusplus
14968 extern "C"
14969 #endif
14970 char dlopen ();
14972 main ()
14974 return dlopen ();
14976 return 0;
14978 _ACEOF
14979 rm -f conftest.$ac_objext conftest$ac_exeext
14980 if { (ac_try="$ac_link"
14981 case "(($ac_try" in
14982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14983 *) ac_try_echo=$ac_try;;
14984 esac
14985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14986 (eval "$ac_link") 2>conftest.er1
14987 ac_status=$?
14988 grep -v '^ *+' conftest.er1 >conftest.err
14989 rm -f conftest.er1
14990 cat conftest.err >&5
14991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14992 (exit $ac_status); } && {
14993 test -z "$ac_c_werror_flag" ||
14994 test ! -s conftest.err
14995 } && test -s conftest$ac_exeext &&
14996 $as_test_x conftest$ac_exeext; then
14997 ac_cv_lib_dl_dlopen=yes
14998 else
14999 echo "$as_me: failed program was:" >&5
15000 sed 's/^/| /' conftest.$ac_ext >&5
15002 ac_cv_lib_dl_dlopen=no
15005 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15006 conftest$ac_exeext conftest.$ac_ext
15007 LIBS=$ac_check_lib_save_LIBS
15009 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15010 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
15011 if test $ac_cv_lib_dl_dlopen = yes; then
15012 cat >>confdefs.h <<_ACEOF
15013 #define HAVE_LIBDL 1
15014 _ACEOF
15016 LIBS="-ldl $LIBS"
15019 # Dynamic linking for SunOS/Solaris and SYSV
15021 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
15022 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
15023 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
15024 echo $ECHO_N "(cached) $ECHO_C" >&6
15025 else
15026 ac_check_lib_save_LIBS=$LIBS
15027 LIBS="-ldld $LIBS"
15028 cat >conftest.$ac_ext <<_ACEOF
15029 /* confdefs.h. */
15030 _ACEOF
15031 cat confdefs.h >>conftest.$ac_ext
15032 cat >>conftest.$ac_ext <<_ACEOF
15033 /* end confdefs.h. */
15035 /* Override any GCC internal prototype to avoid an error.
15036 Use char because int might match the return type of a GCC
15037 builtin and then its argument prototype would still apply. */
15038 #ifdef __cplusplus
15039 extern "C"
15040 #endif
15041 char shl_load ();
15043 main ()
15045 return shl_load ();
15047 return 0;
15049 _ACEOF
15050 rm -f conftest.$ac_objext conftest$ac_exeext
15051 if { (ac_try="$ac_link"
15052 case "(($ac_try" in
15053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15054 *) ac_try_echo=$ac_try;;
15055 esac
15056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15057 (eval "$ac_link") 2>conftest.er1
15058 ac_status=$?
15059 grep -v '^ *+' conftest.er1 >conftest.err
15060 rm -f conftest.er1
15061 cat conftest.err >&5
15062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15063 (exit $ac_status); } && {
15064 test -z "$ac_c_werror_flag" ||
15065 test ! -s conftest.err
15066 } && test -s conftest$ac_exeext &&
15067 $as_test_x conftest$ac_exeext; then
15068 ac_cv_lib_dld_shl_load=yes
15069 else
15070 echo "$as_me: failed program was:" >&5
15071 sed 's/^/| /' conftest.$ac_ext >&5
15073 ac_cv_lib_dld_shl_load=no
15076 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15077 conftest$ac_exeext conftest.$ac_ext
15078 LIBS=$ac_check_lib_save_LIBS
15080 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
15081 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
15082 if test $ac_cv_lib_dld_shl_load = yes; then
15083 cat >>confdefs.h <<_ACEOF
15084 #define HAVE_LIBDLD 1
15085 _ACEOF
15087 LIBS="-ldld $LIBS"
15090 # Dynamic linking for HP-UX
15092 # only check for sem_init if thread support is requested
15093 if test "$with_threads" = "yes" -o -z "$with_threads"; then
15094 { echo "$as_me:$LINENO: checking for library containing sem_init" >&5
15095 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; }
15096 if test "${ac_cv_search_sem_init+set}" = set; then
15097 echo $ECHO_N "(cached) $ECHO_C" >&6
15098 else
15099 ac_func_search_save_LIBS=$LIBS
15100 cat >conftest.$ac_ext <<_ACEOF
15101 /* confdefs.h. */
15102 _ACEOF
15103 cat confdefs.h >>conftest.$ac_ext
15104 cat >>conftest.$ac_ext <<_ACEOF
15105 /* end confdefs.h. */
15107 /* Override any GCC internal prototype to avoid an error.
15108 Use char because int might match the return type of a GCC
15109 builtin and then its argument prototype would still apply. */
15110 #ifdef __cplusplus
15111 extern "C"
15112 #endif
15113 char sem_init ();
15115 main ()
15117 return sem_init ();
15119 return 0;
15121 _ACEOF
15122 for ac_lib in '' pthread rt posix4; do
15123 if test -z "$ac_lib"; then
15124 ac_res="none required"
15125 else
15126 ac_res=-l$ac_lib
15127 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15129 rm -f conftest.$ac_objext conftest$ac_exeext
15130 if { (ac_try="$ac_link"
15131 case "(($ac_try" in
15132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15133 *) ac_try_echo=$ac_try;;
15134 esac
15135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15136 (eval "$ac_link") 2>conftest.er1
15137 ac_status=$?
15138 grep -v '^ *+' conftest.er1 >conftest.err
15139 rm -f conftest.er1
15140 cat conftest.err >&5
15141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15142 (exit $ac_status); } && {
15143 test -z "$ac_c_werror_flag" ||
15144 test ! -s conftest.err
15145 } && test -s conftest$ac_exeext &&
15146 $as_test_x conftest$ac_exeext; then
15147 ac_cv_search_sem_init=$ac_res
15148 else
15149 echo "$as_me: failed program was:" >&5
15150 sed 's/^/| /' conftest.$ac_ext >&5
15155 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15156 conftest$ac_exeext
15157 if test "${ac_cv_search_sem_init+set}" = set; then
15158 break
15160 done
15161 if test "${ac_cv_search_sem_init+set}" = set; then
15163 else
15164 ac_cv_search_sem_init=no
15166 rm conftest.$ac_ext
15167 LIBS=$ac_func_search_save_LIBS
15169 { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
15170 echo "${ECHO_T}$ac_cv_search_sem_init" >&6; }
15171 ac_res=$ac_cv_search_sem_init
15172 if test "$ac_res" != no; then
15173 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15176 # 'Real Time' functions on Solaris
15177 # posix4 on Solaris 2.6
15178 # pthread (first!) on Linux
15181 # check if we need libintl for locale functions
15182 { echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
15183 echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6; }
15184 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
15185 echo $ECHO_N "(cached) $ECHO_C" >&6
15186 else
15187 ac_check_lib_save_LIBS=$LIBS
15188 LIBS="-lintl $LIBS"
15189 cat >conftest.$ac_ext <<_ACEOF
15190 /* confdefs.h. */
15191 _ACEOF
15192 cat confdefs.h >>conftest.$ac_ext
15193 cat >>conftest.$ac_ext <<_ACEOF
15194 /* end confdefs.h. */
15196 /* Override any GCC internal prototype to avoid an error.
15197 Use char because int might match the return type of a GCC
15198 builtin and then its argument prototype would still apply. */
15199 #ifdef __cplusplus
15200 extern "C"
15201 #endif
15202 char textdomain ();
15204 main ()
15206 return textdomain ();
15208 return 0;
15210 _ACEOF
15211 rm -f conftest.$ac_objext conftest$ac_exeext
15212 if { (ac_try="$ac_link"
15213 case "(($ac_try" in
15214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15215 *) ac_try_echo=$ac_try;;
15216 esac
15217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15218 (eval "$ac_link") 2>conftest.er1
15219 ac_status=$?
15220 grep -v '^ *+' conftest.er1 >conftest.err
15221 rm -f conftest.er1
15222 cat conftest.err >&5
15223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15224 (exit $ac_status); } && {
15225 test -z "$ac_c_werror_flag" ||
15226 test ! -s conftest.err
15227 } && test -s conftest$ac_exeext &&
15228 $as_test_x conftest$ac_exeext; then
15229 ac_cv_lib_intl_textdomain=yes
15230 else
15231 echo "$as_me: failed program was:" >&5
15232 sed 's/^/| /' conftest.$ac_ext >&5
15234 ac_cv_lib_intl_textdomain=no
15237 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15238 conftest$ac_exeext conftest.$ac_ext
15239 LIBS=$ac_check_lib_save_LIBS
15241 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
15242 echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6; }
15243 if test $ac_cv_lib_intl_textdomain = yes; then
15245 cat >>confdefs.h <<\_ACEOF
15246 #define WITH_LIBINTL 1
15247 _ACEOF
15252 # checks for system dependent C++ extensions support
15253 case "$ac_sys_system" in
15254 AIX*) { echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
15255 echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6; }
15256 cat >conftest.$ac_ext <<_ACEOF
15257 /* confdefs.h. */
15258 _ACEOF
15259 cat confdefs.h >>conftest.$ac_ext
15260 cat >>conftest.$ac_ext <<_ACEOF
15261 /* end confdefs.h. */
15262 #include "/usr/lpp/xlC/include/load.h"
15264 main ()
15266 loadAndInit("", 0, "")
15268 return 0;
15270 _ACEOF
15271 rm -f conftest.$ac_objext conftest$ac_exeext
15272 if { (ac_try="$ac_link"
15273 case "(($ac_try" in
15274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15275 *) ac_try_echo=$ac_try;;
15276 esac
15277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15278 (eval "$ac_link") 2>conftest.er1
15279 ac_status=$?
15280 grep -v '^ *+' conftest.er1 >conftest.err
15281 rm -f conftest.er1
15282 cat conftest.err >&5
15283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15284 (exit $ac_status); } && {
15285 test -z "$ac_c_werror_flag" ||
15286 test ! -s conftest.err
15287 } && test -s conftest$ac_exeext &&
15288 $as_test_x conftest$ac_exeext; then
15290 cat >>confdefs.h <<\_ACEOF
15291 #define AIX_GENUINE_CPLUSPLUS 1
15292 _ACEOF
15294 { echo "$as_me:$LINENO: result: yes" >&5
15295 echo "${ECHO_T}yes" >&6; }
15296 else
15297 echo "$as_me: failed program was:" >&5
15298 sed 's/^/| /' conftest.$ac_ext >&5
15300 { echo "$as_me:$LINENO: result: no" >&5
15301 echo "${ECHO_T}no" >&6; }
15304 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15305 conftest$ac_exeext conftest.$ac_ext;;
15306 *) ;;
15307 esac
15309 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
15310 # BeOS' sockets are stashed in libnet.
15311 { echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
15312 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6; }
15313 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
15314 echo $ECHO_N "(cached) $ECHO_C" >&6
15315 else
15316 ac_check_lib_save_LIBS=$LIBS
15317 LIBS="-lnsl $LIBS"
15318 cat >conftest.$ac_ext <<_ACEOF
15319 /* confdefs.h. */
15320 _ACEOF
15321 cat confdefs.h >>conftest.$ac_ext
15322 cat >>conftest.$ac_ext <<_ACEOF
15323 /* end confdefs.h. */
15325 /* Override any GCC internal prototype to avoid an error.
15326 Use char because int might match the return type of a GCC
15327 builtin and then its argument prototype would still apply. */
15328 #ifdef __cplusplus
15329 extern "C"
15330 #endif
15331 char t_open ();
15333 main ()
15335 return t_open ();
15337 return 0;
15339 _ACEOF
15340 rm -f conftest.$ac_objext conftest$ac_exeext
15341 if { (ac_try="$ac_link"
15342 case "(($ac_try" in
15343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15344 *) ac_try_echo=$ac_try;;
15345 esac
15346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15347 (eval "$ac_link") 2>conftest.er1
15348 ac_status=$?
15349 grep -v '^ *+' conftest.er1 >conftest.err
15350 rm -f conftest.er1
15351 cat conftest.err >&5
15352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15353 (exit $ac_status); } && {
15354 test -z "$ac_c_werror_flag" ||
15355 test ! -s conftest.err
15356 } && test -s conftest$ac_exeext &&
15357 $as_test_x conftest$ac_exeext; then
15358 ac_cv_lib_nsl_t_open=yes
15359 else
15360 echo "$as_me: failed program was:" >&5
15361 sed 's/^/| /' conftest.$ac_ext >&5
15363 ac_cv_lib_nsl_t_open=no
15366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15367 conftest$ac_exeext conftest.$ac_ext
15368 LIBS=$ac_check_lib_save_LIBS
15370 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
15371 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6; }
15372 if test $ac_cv_lib_nsl_t_open = yes; then
15373 LIBS="-lnsl $LIBS"
15375 # SVR4
15376 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
15377 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
15378 if test "${ac_cv_lib_socket_socket+set}" = set; then
15379 echo $ECHO_N "(cached) $ECHO_C" >&6
15380 else
15381 ac_check_lib_save_LIBS=$LIBS
15382 LIBS="-lsocket $LIBS $LIBS"
15383 cat >conftest.$ac_ext <<_ACEOF
15384 /* confdefs.h. */
15385 _ACEOF
15386 cat confdefs.h >>conftest.$ac_ext
15387 cat >>conftest.$ac_ext <<_ACEOF
15388 /* end confdefs.h. */
15390 /* Override any GCC internal prototype to avoid an error.
15391 Use char because int might match the return type of a GCC
15392 builtin and then its argument prototype would still apply. */
15393 #ifdef __cplusplus
15394 extern "C"
15395 #endif
15396 char socket ();
15398 main ()
15400 return socket ();
15402 return 0;
15404 _ACEOF
15405 rm -f conftest.$ac_objext conftest$ac_exeext
15406 if { (ac_try="$ac_link"
15407 case "(($ac_try" in
15408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15409 *) ac_try_echo=$ac_try;;
15410 esac
15411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15412 (eval "$ac_link") 2>conftest.er1
15413 ac_status=$?
15414 grep -v '^ *+' conftest.er1 >conftest.err
15415 rm -f conftest.er1
15416 cat conftest.err >&5
15417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15418 (exit $ac_status); } && {
15419 test -z "$ac_c_werror_flag" ||
15420 test ! -s conftest.err
15421 } && test -s conftest$ac_exeext &&
15422 $as_test_x conftest$ac_exeext; then
15423 ac_cv_lib_socket_socket=yes
15424 else
15425 echo "$as_me: failed program was:" >&5
15426 sed 's/^/| /' conftest.$ac_ext >&5
15428 ac_cv_lib_socket_socket=no
15431 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15432 conftest$ac_exeext conftest.$ac_ext
15433 LIBS=$ac_check_lib_save_LIBS
15435 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
15436 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
15437 if test $ac_cv_lib_socket_socket = yes; then
15438 LIBS="-lsocket $LIBS"
15440 # SVR4 sockets
15442 case "$ac_sys_system" in
15443 BeOS*)
15444 { echo "$as_me:$LINENO: checking for socket in -lnet" >&5
15445 echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6; }
15446 if test "${ac_cv_lib_net_socket+set}" = set; then
15447 echo $ECHO_N "(cached) $ECHO_C" >&6
15448 else
15449 ac_check_lib_save_LIBS=$LIBS
15450 LIBS="-lnet $LIBS $LIBS"
15451 cat >conftest.$ac_ext <<_ACEOF
15452 /* confdefs.h. */
15453 _ACEOF
15454 cat confdefs.h >>conftest.$ac_ext
15455 cat >>conftest.$ac_ext <<_ACEOF
15456 /* end confdefs.h. */
15458 /* Override any GCC internal prototype to avoid an error.
15459 Use char because int might match the return type of a GCC
15460 builtin and then its argument prototype would still apply. */
15461 #ifdef __cplusplus
15462 extern "C"
15463 #endif
15464 char socket ();
15466 main ()
15468 return socket ();
15470 return 0;
15472 _ACEOF
15473 rm -f conftest.$ac_objext conftest$ac_exeext
15474 if { (ac_try="$ac_link"
15475 case "(($ac_try" in
15476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15477 *) ac_try_echo=$ac_try;;
15478 esac
15479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15480 (eval "$ac_link") 2>conftest.er1
15481 ac_status=$?
15482 grep -v '^ *+' conftest.er1 >conftest.err
15483 rm -f conftest.er1
15484 cat conftest.err >&5
15485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15486 (exit $ac_status); } && {
15487 test -z "$ac_c_werror_flag" ||
15488 test ! -s conftest.err
15489 } && test -s conftest$ac_exeext &&
15490 $as_test_x conftest$ac_exeext; then
15491 ac_cv_lib_net_socket=yes
15492 else
15493 echo "$as_me: failed program was:" >&5
15494 sed 's/^/| /' conftest.$ac_ext >&5
15496 ac_cv_lib_net_socket=no
15499 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15500 conftest$ac_exeext conftest.$ac_ext
15501 LIBS=$ac_check_lib_save_LIBS
15503 { echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5
15504 echo "${ECHO_T}$ac_cv_lib_net_socket" >&6; }
15505 if test $ac_cv_lib_net_socket = yes; then
15506 LIBS="-lnet $LIBS"
15508 # BeOS
15510 esac
15512 { echo "$as_me:$LINENO: checking for --with-libs" >&5
15513 echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6; }
15515 # Check whether --with-libs was given.
15516 if test "${with_libs+set}" = set; then
15517 withval=$with_libs;
15518 { echo "$as_me:$LINENO: result: $withval" >&5
15519 echo "${ECHO_T}$withval" >&6; }
15520 LIBS="$withval $LIBS"
15522 else
15523 { echo "$as_me:$LINENO: result: no" >&5
15524 echo "${ECHO_T}no" >&6; }
15528 # Check for use of the system libffi library
15529 { echo "$as_me:$LINENO: checking for --with-system-ffi" >&5
15530 echo $ECHO_N "checking for --with-system-ffi... $ECHO_C" >&6; }
15532 # Check whether --with-system_ffi was given.
15533 if test "${with_system_ffi+set}" = set; then
15534 withval=$with_system_ffi;
15538 { echo "$as_me:$LINENO: result: $with_system_ffi" >&5
15539 echo "${ECHO_T}$with_system_ffi" >&6; }
15541 # Check for --with-dbmliborder
15542 { echo "$as_me:$LINENO: checking for --with-dbmliborder" >&5
15543 echo $ECHO_N "checking for --with-dbmliborder... $ECHO_C" >&6; }
15545 # Check whether --with-dbmliborder was given.
15546 if test "${with_dbmliborder+set}" = set; then
15547 withval=$with_dbmliborder;
15548 if test x$with_dbmliborder = xyes
15549 then
15550 { { echo "$as_me:$LINENO: error: proper usage is --with-dbmliborder=db1:db2:..." >&5
15551 echo "$as_me: error: proper usage is --with-dbmliborder=db1:db2:..." >&2;}
15552 { (exit 1); exit 1; }; }
15553 else
15554 for db in `echo $with_dbmliborder | sed 's/:/ /g'`; do
15555 if test x$db != xndbm && test x$db != xgdbm && test x$db != xbdb
15556 then
15557 { { echo "$as_me:$LINENO: error: proper usage is --with-dbmliborder=db1:db2:..." >&5
15558 echo "$as_me: error: proper usage is --with-dbmliborder=db1:db2:..." >&2;}
15559 { (exit 1); exit 1; }; }
15561 done
15565 { echo "$as_me:$LINENO: result: $with_dbmliborder" >&5
15566 echo "${ECHO_T}$with_dbmliborder" >&6; }
15568 # Determine if signalmodule should be used.
15571 { echo "$as_me:$LINENO: checking for --with-signal-module" >&5
15572 echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6; }
15574 # Check whether --with-signal-module was given.
15575 if test "${with_signal_module+set}" = set; then
15576 withval=$with_signal_module;
15580 if test -z "$with_signal_module"
15581 then with_signal_module="yes"
15583 { echo "$as_me:$LINENO: result: $with_signal_module" >&5
15584 echo "${ECHO_T}$with_signal_module" >&6; }
15586 if test "${with_signal_module}" = "yes"; then
15587 USE_SIGNAL_MODULE=""
15588 SIGNAL_OBJS=""
15589 else
15590 USE_SIGNAL_MODULE="#"
15591 SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o"
15594 # This is used to generate Setup.config
15596 USE_THREAD_MODULE=""
15598 { echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
15599 echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6; }
15602 # Check whether --with-dec-threads was given.
15603 if test "${with_dec_threads+set}" = set; then
15604 withval=$with_dec_threads;
15605 { echo "$as_me:$LINENO: result: $withval" >&5
15606 echo "${ECHO_T}$withval" >&6; }
15607 LDLAST=-threads
15608 if test "${with_thread+set}" != set; then
15609 with_thread="$withval";
15611 else
15612 { echo "$as_me:$LINENO: result: no" >&5
15613 echo "${ECHO_T}no" >&6; }
15617 # Templates for things AC_DEFINEd more than once.
15618 # For a single AC_DEFINE, no template is needed.
15626 { echo "$as_me:$LINENO: checking for --with-threads" >&5
15627 echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6; }
15629 # Check whether --with-threads was given.
15630 if test "${with_threads+set}" = set; then
15631 withval=$with_threads;
15635 # --with-thread is deprecated, but check for it anyway
15637 # Check whether --with-thread was given.
15638 if test "${with_thread+set}" = set; then
15639 withval=$with_thread; with_threads=$with_thread
15643 if test -z "$with_threads"
15644 then with_threads="yes"
15646 { echo "$as_me:$LINENO: result: $with_threads" >&5
15647 echo "${ECHO_T}$with_threads" >&6; }
15650 if test "$with_threads" = "no"
15651 then
15652 USE_THREAD_MODULE="#"
15653 elif test "$ac_cv_pthread_is_default" = yes
15654 then
15655 cat >>confdefs.h <<\_ACEOF
15656 #define WITH_THREAD 1
15657 _ACEOF
15659 # Defining _REENTRANT on system with POSIX threads should not hurt.
15660 cat >>confdefs.h <<\_ACEOF
15661 #define _REENTRANT 1
15662 _ACEOF
15664 posix_threads=yes
15665 THREADOBJ="Python/thread.o"
15666 elif test "$ac_cv_kpthread" = "yes"
15667 then
15668 CC="$CC -Kpthread"
15669 if test "$ac_cv_cxx_thread" = "yes"; then
15670 CXX="$CXX -Kpthread"
15672 cat >>confdefs.h <<\_ACEOF
15673 #define WITH_THREAD 1
15674 _ACEOF
15676 posix_threads=yes
15677 THREADOBJ="Python/thread.o"
15678 elif test "$ac_cv_kthread" = "yes"
15679 then
15680 CC="$CC -Kthread"
15681 if test "$ac_cv_cxx_thread" = "yes"; then
15682 CXX="$CXX -Kthread"
15684 cat >>confdefs.h <<\_ACEOF
15685 #define WITH_THREAD 1
15686 _ACEOF
15688 posix_threads=yes
15689 THREADOBJ="Python/thread.o"
15690 elif test "$ac_cv_pthread" = "yes"
15691 then
15692 CC="$CC -pthread"
15693 if test "$ac_cv_cxx_thread" = "yes"; then
15694 CXX="$CXX -pthread"
15696 cat >>confdefs.h <<\_ACEOF
15697 #define WITH_THREAD 1
15698 _ACEOF
15700 posix_threads=yes
15701 THREADOBJ="Python/thread.o"
15702 else
15703 if test ! -z "$with_threads" -a -d "$with_threads"
15704 then LDFLAGS="$LDFLAGS -L$with_threads"
15706 if test ! -z "$withval" -a -d "$withval"
15707 then LDFLAGS="$LDFLAGS -L$withval"
15710 # According to the POSIX spec, a pthreads implementation must
15711 # define _POSIX_THREADS in unistd.h. Some apparently don't
15712 # (e.g. gnu pth with pthread emulation)
15713 { echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
15714 echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6; }
15715 cat >conftest.$ac_ext <<_ACEOF
15716 /* confdefs.h. */
15717 _ACEOF
15718 cat confdefs.h >>conftest.$ac_ext
15719 cat >>conftest.$ac_ext <<_ACEOF
15720 /* end confdefs.h. */
15722 #include <unistd.h>
15723 #ifdef _POSIX_THREADS
15725 #endif
15727 _ACEOF
15728 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15729 $EGREP "yes" >/dev/null 2>&1; then
15730 unistd_defines_pthreads=yes
15731 else
15732 unistd_defines_pthreads=no
15734 rm -f -r conftest*
15736 { echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
15737 echo "${ECHO_T}$unistd_defines_pthreads" >&6; }
15739 cat >>confdefs.h <<\_ACEOF
15740 #define _REENTRANT 1
15741 _ACEOF
15743 if test "${ac_cv_header_cthreads_h+set}" = set; then
15744 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
15745 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
15746 if test "${ac_cv_header_cthreads_h+set}" = set; then
15747 echo $ECHO_N "(cached) $ECHO_C" >&6
15749 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
15750 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
15751 else
15752 # Is the header compilable?
15753 { echo "$as_me:$LINENO: checking cthreads.h usability" >&5
15754 echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6; }
15755 cat >conftest.$ac_ext <<_ACEOF
15756 /* confdefs.h. */
15757 _ACEOF
15758 cat confdefs.h >>conftest.$ac_ext
15759 cat >>conftest.$ac_ext <<_ACEOF
15760 /* end confdefs.h. */
15761 $ac_includes_default
15762 #include <cthreads.h>
15763 _ACEOF
15764 rm -f conftest.$ac_objext
15765 if { (ac_try="$ac_compile"
15766 case "(($ac_try" in
15767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15768 *) ac_try_echo=$ac_try;;
15769 esac
15770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15771 (eval "$ac_compile") 2>conftest.er1
15772 ac_status=$?
15773 grep -v '^ *+' conftest.er1 >conftest.err
15774 rm -f conftest.er1
15775 cat conftest.err >&5
15776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15777 (exit $ac_status); } && {
15778 test -z "$ac_c_werror_flag" ||
15779 test ! -s conftest.err
15780 } && test -s conftest.$ac_objext; then
15781 ac_header_compiler=yes
15782 else
15783 echo "$as_me: failed program was:" >&5
15784 sed 's/^/| /' conftest.$ac_ext >&5
15786 ac_header_compiler=no
15789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15790 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15791 echo "${ECHO_T}$ac_header_compiler" >&6; }
15793 # Is the header present?
15794 { echo "$as_me:$LINENO: checking cthreads.h presence" >&5
15795 echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6; }
15796 cat >conftest.$ac_ext <<_ACEOF
15797 /* confdefs.h. */
15798 _ACEOF
15799 cat confdefs.h >>conftest.$ac_ext
15800 cat >>conftest.$ac_ext <<_ACEOF
15801 /* end confdefs.h. */
15802 #include <cthreads.h>
15803 _ACEOF
15804 if { (ac_try="$ac_cpp conftest.$ac_ext"
15805 case "(($ac_try" in
15806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15807 *) ac_try_echo=$ac_try;;
15808 esac
15809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15810 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15811 ac_status=$?
15812 grep -v '^ *+' conftest.er1 >conftest.err
15813 rm -f conftest.er1
15814 cat conftest.err >&5
15815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15816 (exit $ac_status); } >/dev/null && {
15817 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15818 test ! -s conftest.err
15819 }; then
15820 ac_header_preproc=yes
15821 else
15822 echo "$as_me: failed program was:" >&5
15823 sed 's/^/| /' conftest.$ac_ext >&5
15825 ac_header_preproc=no
15828 rm -f conftest.err conftest.$ac_ext
15829 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15830 echo "${ECHO_T}$ac_header_preproc" >&6; }
15832 # So? What about this header?
15833 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15834 yes:no: )
15835 { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
15836 echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15837 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5
15838 echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;}
15839 ac_header_preproc=yes
15841 no:yes:* )
15842 { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
15843 echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
15844 { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
15845 echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
15846 { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5
15847 echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;}
15848 { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
15849 echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
15850 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
15851 echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;}
15852 { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5
15853 echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;}
15854 ( cat <<\_ASBOX
15855 ## -------------------------------------- ##
15856 ## Report this to http://bugs.python.org/ ##
15857 ## -------------------------------------- ##
15858 _ASBOX
15859 ) | sed "s/^/$as_me: WARNING: /" >&2
15861 esac
15862 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
15863 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
15864 if test "${ac_cv_header_cthreads_h+set}" = set; then
15865 echo $ECHO_N "(cached) $ECHO_C" >&6
15866 else
15867 ac_cv_header_cthreads_h=$ac_header_preproc
15869 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
15870 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
15873 if test $ac_cv_header_cthreads_h = yes; then
15874 cat >>confdefs.h <<\_ACEOF
15875 #define WITH_THREAD 1
15876 _ACEOF
15878 cat >>confdefs.h <<\_ACEOF
15879 #define C_THREADS 1
15880 _ACEOF
15883 cat >>confdefs.h <<\_ACEOF
15884 #define HURD_C_THREADS 1
15885 _ACEOF
15887 LIBS="$LIBS -lthreads"
15888 THREADOBJ="Python/thread.o"
15889 else
15891 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
15892 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
15893 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
15894 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
15895 echo $ECHO_N "(cached) $ECHO_C" >&6
15897 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
15898 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
15899 else
15900 # Is the header compilable?
15901 { echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
15902 echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6; }
15903 cat >conftest.$ac_ext <<_ACEOF
15904 /* confdefs.h. */
15905 _ACEOF
15906 cat confdefs.h >>conftest.$ac_ext
15907 cat >>conftest.$ac_ext <<_ACEOF
15908 /* end confdefs.h. */
15909 $ac_includes_default
15910 #include <mach/cthreads.h>
15911 _ACEOF
15912 rm -f conftest.$ac_objext
15913 if { (ac_try="$ac_compile"
15914 case "(($ac_try" in
15915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15916 *) ac_try_echo=$ac_try;;
15917 esac
15918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15919 (eval "$ac_compile") 2>conftest.er1
15920 ac_status=$?
15921 grep -v '^ *+' conftest.er1 >conftest.err
15922 rm -f conftest.er1
15923 cat conftest.err >&5
15924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15925 (exit $ac_status); } && {
15926 test -z "$ac_c_werror_flag" ||
15927 test ! -s conftest.err
15928 } && test -s conftest.$ac_objext; then
15929 ac_header_compiler=yes
15930 else
15931 echo "$as_me: failed program was:" >&5
15932 sed 's/^/| /' conftest.$ac_ext >&5
15934 ac_header_compiler=no
15937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15938 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15939 echo "${ECHO_T}$ac_header_compiler" >&6; }
15941 # Is the header present?
15942 { echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
15943 echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6; }
15944 cat >conftest.$ac_ext <<_ACEOF
15945 /* confdefs.h. */
15946 _ACEOF
15947 cat confdefs.h >>conftest.$ac_ext
15948 cat >>conftest.$ac_ext <<_ACEOF
15949 /* end confdefs.h. */
15950 #include <mach/cthreads.h>
15951 _ACEOF
15952 if { (ac_try="$ac_cpp conftest.$ac_ext"
15953 case "(($ac_try" in
15954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15955 *) ac_try_echo=$ac_try;;
15956 esac
15957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15958 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15959 ac_status=$?
15960 grep -v '^ *+' conftest.er1 >conftest.err
15961 rm -f conftest.er1
15962 cat conftest.err >&5
15963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15964 (exit $ac_status); } >/dev/null && {
15965 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15966 test ! -s conftest.err
15967 }; then
15968 ac_header_preproc=yes
15969 else
15970 echo "$as_me: failed program was:" >&5
15971 sed 's/^/| /' conftest.$ac_ext >&5
15973 ac_header_preproc=no
15976 rm -f conftest.err conftest.$ac_ext
15977 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15978 echo "${ECHO_T}$ac_header_preproc" >&6; }
15980 # So? What about this header?
15981 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15982 yes:no: )
15983 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
15984 echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15985 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
15986 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
15987 ac_header_preproc=yes
15989 no:yes:* )
15990 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
15991 echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
15992 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
15993 echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
15994 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
15995 echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
15996 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
15997 echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
15998 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
15999 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
16000 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
16001 echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
16002 ( cat <<\_ASBOX
16003 ## -------------------------------------- ##
16004 ## Report this to http://bugs.python.org/ ##
16005 ## -------------------------------------- ##
16006 _ASBOX
16007 ) | sed "s/^/$as_me: WARNING: /" >&2
16009 esac
16010 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
16011 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
16012 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
16013 echo $ECHO_N "(cached) $ECHO_C" >&6
16014 else
16015 ac_cv_header_mach_cthreads_h=$ac_header_preproc
16017 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
16018 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
16021 if test $ac_cv_header_mach_cthreads_h = yes; then
16022 cat >>confdefs.h <<\_ACEOF
16023 #define WITH_THREAD 1
16024 _ACEOF
16026 cat >>confdefs.h <<\_ACEOF
16027 #define C_THREADS 1
16028 _ACEOF
16031 cat >>confdefs.h <<\_ACEOF
16032 #define MACH_C_THREADS 1
16033 _ACEOF
16035 THREADOBJ="Python/thread.o"
16036 else
16038 { echo "$as_me:$LINENO: checking for --with-pth" >&5
16039 echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6; }
16041 # Check whether --with-pth was given.
16042 if test "${with_pth+set}" = set; then
16043 withval=$with_pth; { echo "$as_me:$LINENO: result: $withval" >&5
16044 echo "${ECHO_T}$withval" >&6; }
16045 cat >>confdefs.h <<\_ACEOF
16046 #define WITH_THREAD 1
16047 _ACEOF
16050 cat >>confdefs.h <<\_ACEOF
16051 #define HAVE_PTH 1
16052 _ACEOF
16054 LIBS="-lpth $LIBS"
16055 THREADOBJ="Python/thread.o"
16056 else
16057 { echo "$as_me:$LINENO: result: no" >&5
16058 echo "${ECHO_T}no" >&6; }
16060 # Just looking for pthread_create in libpthread is not enough:
16061 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
16062 # So we really have to include pthread.h, and then link.
16063 _libs=$LIBS
16064 LIBS="$LIBS -lpthread"
16065 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
16066 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
16067 cat >conftest.$ac_ext <<_ACEOF
16068 /* confdefs.h. */
16069 _ACEOF
16070 cat confdefs.h >>conftest.$ac_ext
16071 cat >>conftest.$ac_ext <<_ACEOF
16072 /* end confdefs.h. */
16073 #include <pthread.h>
16075 void * start_routine (void *arg) { exit (0); }
16077 main ()
16080 pthread_create (NULL, NULL, start_routine, NULL)
16082 return 0;
16084 _ACEOF
16085 rm -f conftest.$ac_objext conftest$ac_exeext
16086 if { (ac_try="$ac_link"
16087 case "(($ac_try" in
16088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16089 *) ac_try_echo=$ac_try;;
16090 esac
16091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16092 (eval "$ac_link") 2>conftest.er1
16093 ac_status=$?
16094 grep -v '^ *+' conftest.er1 >conftest.err
16095 rm -f conftest.er1
16096 cat conftest.err >&5
16097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16098 (exit $ac_status); } && {
16099 test -z "$ac_c_werror_flag" ||
16100 test ! -s conftest.err
16101 } && test -s conftest$ac_exeext &&
16102 $as_test_x conftest$ac_exeext; then
16104 { echo "$as_me:$LINENO: result: yes" >&5
16105 echo "${ECHO_T}yes" >&6; }
16106 cat >>confdefs.h <<\_ACEOF
16107 #define WITH_THREAD 1
16108 _ACEOF
16110 posix_threads=yes
16111 THREADOBJ="Python/thread.o"
16112 else
16113 echo "$as_me: failed program was:" >&5
16114 sed 's/^/| /' conftest.$ac_ext >&5
16117 LIBS=$_libs
16118 { echo "$as_me:$LINENO: checking for pthread_detach" >&5
16119 echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6; }
16120 if test "${ac_cv_func_pthread_detach+set}" = set; then
16121 echo $ECHO_N "(cached) $ECHO_C" >&6
16122 else
16123 cat >conftest.$ac_ext <<_ACEOF
16124 /* confdefs.h. */
16125 _ACEOF
16126 cat confdefs.h >>conftest.$ac_ext
16127 cat >>conftest.$ac_ext <<_ACEOF
16128 /* end confdefs.h. */
16129 /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach.
16130 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16131 #define pthread_detach innocuous_pthread_detach
16133 /* System header to define __stub macros and hopefully few prototypes,
16134 which can conflict with char pthread_detach (); below.
16135 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16136 <limits.h> exists even on freestanding compilers. */
16138 #ifdef __STDC__
16139 # include <limits.h>
16140 #else
16141 # include <assert.h>
16142 #endif
16144 #undef pthread_detach
16146 /* Override any GCC internal prototype to avoid an error.
16147 Use char because int might match the return type of a GCC
16148 builtin and then its argument prototype would still apply. */
16149 #ifdef __cplusplus
16150 extern "C"
16151 #endif
16152 char pthread_detach ();
16153 /* The GNU C library defines this for functions which it implements
16154 to always fail with ENOSYS. Some functions are actually named
16155 something starting with __ and the normal name is an alias. */
16156 #if defined __stub_pthread_detach || defined __stub___pthread_detach
16157 choke me
16158 #endif
16161 main ()
16163 return pthread_detach ();
16165 return 0;
16167 _ACEOF
16168 rm -f conftest.$ac_objext conftest$ac_exeext
16169 if { (ac_try="$ac_link"
16170 case "(($ac_try" in
16171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16172 *) ac_try_echo=$ac_try;;
16173 esac
16174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16175 (eval "$ac_link") 2>conftest.er1
16176 ac_status=$?
16177 grep -v '^ *+' conftest.er1 >conftest.err
16178 rm -f conftest.er1
16179 cat conftest.err >&5
16180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16181 (exit $ac_status); } && {
16182 test -z "$ac_c_werror_flag" ||
16183 test ! -s conftest.err
16184 } && test -s conftest$ac_exeext &&
16185 $as_test_x conftest$ac_exeext; then
16186 ac_cv_func_pthread_detach=yes
16187 else
16188 echo "$as_me: failed program was:" >&5
16189 sed 's/^/| /' conftest.$ac_ext >&5
16191 ac_cv_func_pthread_detach=no
16194 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16195 conftest$ac_exeext conftest.$ac_ext
16197 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
16198 echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6; }
16199 if test $ac_cv_func_pthread_detach = yes; then
16200 cat >>confdefs.h <<\_ACEOF
16201 #define WITH_THREAD 1
16202 _ACEOF
16204 posix_threads=yes
16205 THREADOBJ="Python/thread.o"
16206 else
16208 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
16209 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
16210 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
16211 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
16212 echo $ECHO_N "(cached) $ECHO_C" >&6
16214 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
16215 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
16216 else
16217 # Is the header compilable?
16218 { echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
16219 echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6; }
16220 cat >conftest.$ac_ext <<_ACEOF
16221 /* confdefs.h. */
16222 _ACEOF
16223 cat confdefs.h >>conftest.$ac_ext
16224 cat >>conftest.$ac_ext <<_ACEOF
16225 /* end confdefs.h. */
16226 $ac_includes_default
16227 #include <atheos/threads.h>
16228 _ACEOF
16229 rm -f conftest.$ac_objext
16230 if { (ac_try="$ac_compile"
16231 case "(($ac_try" in
16232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16233 *) ac_try_echo=$ac_try;;
16234 esac
16235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16236 (eval "$ac_compile") 2>conftest.er1
16237 ac_status=$?
16238 grep -v '^ *+' conftest.er1 >conftest.err
16239 rm -f conftest.er1
16240 cat conftest.err >&5
16241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16242 (exit $ac_status); } && {
16243 test -z "$ac_c_werror_flag" ||
16244 test ! -s conftest.err
16245 } && test -s conftest.$ac_objext; then
16246 ac_header_compiler=yes
16247 else
16248 echo "$as_me: failed program was:" >&5
16249 sed 's/^/| /' conftest.$ac_ext >&5
16251 ac_header_compiler=no
16254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16255 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16256 echo "${ECHO_T}$ac_header_compiler" >&6; }
16258 # Is the header present?
16259 { echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
16260 echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6; }
16261 cat >conftest.$ac_ext <<_ACEOF
16262 /* confdefs.h. */
16263 _ACEOF
16264 cat confdefs.h >>conftest.$ac_ext
16265 cat >>conftest.$ac_ext <<_ACEOF
16266 /* end confdefs.h. */
16267 #include <atheos/threads.h>
16268 _ACEOF
16269 if { (ac_try="$ac_cpp conftest.$ac_ext"
16270 case "(($ac_try" in
16271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16272 *) ac_try_echo=$ac_try;;
16273 esac
16274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16275 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16276 ac_status=$?
16277 grep -v '^ *+' conftest.er1 >conftest.err
16278 rm -f conftest.er1
16279 cat conftest.err >&5
16280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16281 (exit $ac_status); } >/dev/null && {
16282 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16283 test ! -s conftest.err
16284 }; then
16285 ac_header_preproc=yes
16286 else
16287 echo "$as_me: failed program was:" >&5
16288 sed 's/^/| /' conftest.$ac_ext >&5
16290 ac_header_preproc=no
16293 rm -f conftest.err conftest.$ac_ext
16294 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16295 echo "${ECHO_T}$ac_header_preproc" >&6; }
16297 # So? What about this header?
16298 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16299 yes:no: )
16300 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
16301 echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16302 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5
16303 echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;}
16304 ac_header_preproc=yes
16306 no:yes:* )
16307 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
16308 echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
16309 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
16310 echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
16311 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5
16312 echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;}
16313 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5
16314 echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;}
16315 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
16316 echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;}
16317 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5
16318 echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;}
16319 ( cat <<\_ASBOX
16320 ## -------------------------------------- ##
16321 ## Report this to http://bugs.python.org/ ##
16322 ## -------------------------------------- ##
16323 _ASBOX
16324 ) | sed "s/^/$as_me: WARNING: /" >&2
16326 esac
16327 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
16328 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
16329 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
16330 echo $ECHO_N "(cached) $ECHO_C" >&6
16331 else
16332 ac_cv_header_atheos_threads_h=$ac_header_preproc
16334 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
16335 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
16338 if test $ac_cv_header_atheos_threads_h = yes; then
16339 cat >>confdefs.h <<\_ACEOF
16340 #define WITH_THREAD 1
16341 _ACEOF
16344 cat >>confdefs.h <<\_ACEOF
16345 #define ATHEOS_THREADS 1
16346 _ACEOF
16348 THREADOBJ="Python/thread.o"
16349 else
16351 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
16352 { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
16353 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; }
16354 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
16355 echo $ECHO_N "(cached) $ECHO_C" >&6
16357 { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
16358 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; }
16359 else
16360 # Is the header compilable?
16361 { echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5
16362 echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6; }
16363 cat >conftest.$ac_ext <<_ACEOF
16364 /* confdefs.h. */
16365 _ACEOF
16366 cat confdefs.h >>conftest.$ac_ext
16367 cat >>conftest.$ac_ext <<_ACEOF
16368 /* end confdefs.h. */
16369 $ac_includes_default
16370 #include <kernel/OS.h>
16371 _ACEOF
16372 rm -f conftest.$ac_objext
16373 if { (ac_try="$ac_compile"
16374 case "(($ac_try" in
16375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16376 *) ac_try_echo=$ac_try;;
16377 esac
16378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16379 (eval "$ac_compile") 2>conftest.er1
16380 ac_status=$?
16381 grep -v '^ *+' conftest.er1 >conftest.err
16382 rm -f conftest.er1
16383 cat conftest.err >&5
16384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16385 (exit $ac_status); } && {
16386 test -z "$ac_c_werror_flag" ||
16387 test ! -s conftest.err
16388 } && test -s conftest.$ac_objext; then
16389 ac_header_compiler=yes
16390 else
16391 echo "$as_me: failed program was:" >&5
16392 sed 's/^/| /' conftest.$ac_ext >&5
16394 ac_header_compiler=no
16397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16398 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16399 echo "${ECHO_T}$ac_header_compiler" >&6; }
16401 # Is the header present?
16402 { echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5
16403 echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6; }
16404 cat >conftest.$ac_ext <<_ACEOF
16405 /* confdefs.h. */
16406 _ACEOF
16407 cat confdefs.h >>conftest.$ac_ext
16408 cat >>conftest.$ac_ext <<_ACEOF
16409 /* end confdefs.h. */
16410 #include <kernel/OS.h>
16411 _ACEOF
16412 if { (ac_try="$ac_cpp conftest.$ac_ext"
16413 case "(($ac_try" in
16414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16415 *) ac_try_echo=$ac_try;;
16416 esac
16417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16418 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16419 ac_status=$?
16420 grep -v '^ *+' conftest.er1 >conftest.err
16421 rm -f conftest.er1
16422 cat conftest.err >&5
16423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16424 (exit $ac_status); } >/dev/null && {
16425 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16426 test ! -s conftest.err
16427 }; then
16428 ac_header_preproc=yes
16429 else
16430 echo "$as_me: failed program was:" >&5
16431 sed 's/^/| /' conftest.$ac_ext >&5
16433 ac_header_preproc=no
16436 rm -f conftest.err conftest.$ac_ext
16437 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16438 echo "${ECHO_T}$ac_header_preproc" >&6; }
16440 # So? What about this header?
16441 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16442 yes:no: )
16443 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5
16444 echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16445 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5
16446 echo "$as_me: WARNING: kernel/OS.h: proceeding with the compiler's result" >&2;}
16447 ac_header_preproc=yes
16449 no:yes:* )
16450 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5
16451 echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;}
16452 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5
16453 echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;}
16454 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5
16455 echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;}
16456 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5
16457 echo "$as_me: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&2;}
16458 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5
16459 echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;}
16460 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5
16461 echo "$as_me: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&2;}
16462 ( cat <<\_ASBOX
16463 ## -------------------------------------- ##
16464 ## Report this to http://bugs.python.org/ ##
16465 ## -------------------------------------- ##
16466 _ASBOX
16467 ) | sed "s/^/$as_me: WARNING: /" >&2
16469 esac
16470 { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
16471 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; }
16472 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
16473 echo $ECHO_N "(cached) $ECHO_C" >&6
16474 else
16475 ac_cv_header_kernel_OS_h=$ac_header_preproc
16477 { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
16478 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; }
16481 if test $ac_cv_header_kernel_OS_h = yes; then
16482 cat >>confdefs.h <<\_ACEOF
16483 #define WITH_THREAD 1
16484 _ACEOF
16487 cat >>confdefs.h <<\_ACEOF
16488 #define BEOS_THREADS 1
16489 _ACEOF
16491 THREADOBJ="Python/thread.o"
16492 else
16494 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
16495 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
16496 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
16497 echo $ECHO_N "(cached) $ECHO_C" >&6
16498 else
16499 ac_check_lib_save_LIBS=$LIBS
16500 LIBS="-lpthreads $LIBS"
16501 cat >conftest.$ac_ext <<_ACEOF
16502 /* confdefs.h. */
16503 _ACEOF
16504 cat confdefs.h >>conftest.$ac_ext
16505 cat >>conftest.$ac_ext <<_ACEOF
16506 /* end confdefs.h. */
16508 /* Override any GCC internal prototype to avoid an error.
16509 Use char because int might match the return type of a GCC
16510 builtin and then its argument prototype would still apply. */
16511 #ifdef __cplusplus
16512 extern "C"
16513 #endif
16514 char pthread_create ();
16516 main ()
16518 return pthread_create ();
16520 return 0;
16522 _ACEOF
16523 rm -f conftest.$ac_objext conftest$ac_exeext
16524 if { (ac_try="$ac_link"
16525 case "(($ac_try" in
16526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16527 *) ac_try_echo=$ac_try;;
16528 esac
16529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16530 (eval "$ac_link") 2>conftest.er1
16531 ac_status=$?
16532 grep -v '^ *+' conftest.er1 >conftest.err
16533 rm -f conftest.er1
16534 cat conftest.err >&5
16535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16536 (exit $ac_status); } && {
16537 test -z "$ac_c_werror_flag" ||
16538 test ! -s conftest.err
16539 } && test -s conftest$ac_exeext &&
16540 $as_test_x conftest$ac_exeext; then
16541 ac_cv_lib_pthreads_pthread_create=yes
16542 else
16543 echo "$as_me: failed program was:" >&5
16544 sed 's/^/| /' conftest.$ac_ext >&5
16546 ac_cv_lib_pthreads_pthread_create=no
16549 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16550 conftest$ac_exeext conftest.$ac_ext
16551 LIBS=$ac_check_lib_save_LIBS
16553 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
16554 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
16555 if test $ac_cv_lib_pthreads_pthread_create = yes; then
16556 cat >>confdefs.h <<\_ACEOF
16557 #define WITH_THREAD 1
16558 _ACEOF
16560 posix_threads=yes
16561 LIBS="$LIBS -lpthreads"
16562 THREADOBJ="Python/thread.o"
16563 else
16565 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
16566 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
16567 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
16568 echo $ECHO_N "(cached) $ECHO_C" >&6
16569 else
16570 ac_check_lib_save_LIBS=$LIBS
16571 LIBS="-lc_r $LIBS"
16572 cat >conftest.$ac_ext <<_ACEOF
16573 /* confdefs.h. */
16574 _ACEOF
16575 cat confdefs.h >>conftest.$ac_ext
16576 cat >>conftest.$ac_ext <<_ACEOF
16577 /* end confdefs.h. */
16579 /* Override any GCC internal prototype to avoid an error.
16580 Use char because int might match the return type of a GCC
16581 builtin and then its argument prototype would still apply. */
16582 #ifdef __cplusplus
16583 extern "C"
16584 #endif
16585 char pthread_create ();
16587 main ()
16589 return pthread_create ();
16591 return 0;
16593 _ACEOF
16594 rm -f conftest.$ac_objext conftest$ac_exeext
16595 if { (ac_try="$ac_link"
16596 case "(($ac_try" in
16597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16598 *) ac_try_echo=$ac_try;;
16599 esac
16600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16601 (eval "$ac_link") 2>conftest.er1
16602 ac_status=$?
16603 grep -v '^ *+' conftest.er1 >conftest.err
16604 rm -f conftest.er1
16605 cat conftest.err >&5
16606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16607 (exit $ac_status); } && {
16608 test -z "$ac_c_werror_flag" ||
16609 test ! -s conftest.err
16610 } && test -s conftest$ac_exeext &&
16611 $as_test_x conftest$ac_exeext; then
16612 ac_cv_lib_c_r_pthread_create=yes
16613 else
16614 echo "$as_me: failed program was:" >&5
16615 sed 's/^/| /' conftest.$ac_ext >&5
16617 ac_cv_lib_c_r_pthread_create=no
16620 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16621 conftest$ac_exeext conftest.$ac_ext
16622 LIBS=$ac_check_lib_save_LIBS
16624 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
16625 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
16626 if test $ac_cv_lib_c_r_pthread_create = yes; then
16627 cat >>confdefs.h <<\_ACEOF
16628 #define WITH_THREAD 1
16629 _ACEOF
16631 posix_threads=yes
16632 LIBS="$LIBS -lc_r"
16633 THREADOBJ="Python/thread.o"
16634 else
16636 { echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
16637 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6; }
16638 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
16639 echo $ECHO_N "(cached) $ECHO_C" >&6
16640 else
16641 ac_check_lib_save_LIBS=$LIBS
16642 LIBS="-lpthread $LIBS"
16643 cat >conftest.$ac_ext <<_ACEOF
16644 /* confdefs.h. */
16645 _ACEOF
16646 cat confdefs.h >>conftest.$ac_ext
16647 cat >>conftest.$ac_ext <<_ACEOF
16648 /* end confdefs.h. */
16650 /* Override any GCC internal prototype to avoid an error.
16651 Use char because int might match the return type of a GCC
16652 builtin and then its argument prototype would still apply. */
16653 #ifdef __cplusplus
16654 extern "C"
16655 #endif
16656 char __pthread_create_system ();
16658 main ()
16660 return __pthread_create_system ();
16662 return 0;
16664 _ACEOF
16665 rm -f conftest.$ac_objext conftest$ac_exeext
16666 if { (ac_try="$ac_link"
16667 case "(($ac_try" in
16668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16669 *) ac_try_echo=$ac_try;;
16670 esac
16671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16672 (eval "$ac_link") 2>conftest.er1
16673 ac_status=$?
16674 grep -v '^ *+' conftest.er1 >conftest.err
16675 rm -f conftest.er1
16676 cat conftest.err >&5
16677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16678 (exit $ac_status); } && {
16679 test -z "$ac_c_werror_flag" ||
16680 test ! -s conftest.err
16681 } && test -s conftest$ac_exeext &&
16682 $as_test_x conftest$ac_exeext; then
16683 ac_cv_lib_pthread___pthread_create_system=yes
16684 else
16685 echo "$as_me: failed program was:" >&5
16686 sed 's/^/| /' conftest.$ac_ext >&5
16688 ac_cv_lib_pthread___pthread_create_system=no
16691 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16692 conftest$ac_exeext conftest.$ac_ext
16693 LIBS=$ac_check_lib_save_LIBS
16695 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
16696 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6; }
16697 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
16698 cat >>confdefs.h <<\_ACEOF
16699 #define WITH_THREAD 1
16700 _ACEOF
16702 posix_threads=yes
16703 LIBS="$LIBS -lpthread"
16704 THREADOBJ="Python/thread.o"
16705 else
16707 { echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
16708 echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6; }
16709 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
16710 echo $ECHO_N "(cached) $ECHO_C" >&6
16711 else
16712 ac_check_lib_save_LIBS=$LIBS
16713 LIBS="-lcma $LIBS"
16714 cat >conftest.$ac_ext <<_ACEOF
16715 /* confdefs.h. */
16716 _ACEOF
16717 cat confdefs.h >>conftest.$ac_ext
16718 cat >>conftest.$ac_ext <<_ACEOF
16719 /* end confdefs.h. */
16721 /* Override any GCC internal prototype to avoid an error.
16722 Use char because int might match the return type of a GCC
16723 builtin and then its argument prototype would still apply. */
16724 #ifdef __cplusplus
16725 extern "C"
16726 #endif
16727 char pthread_create ();
16729 main ()
16731 return pthread_create ();
16733 return 0;
16735 _ACEOF
16736 rm -f conftest.$ac_objext conftest$ac_exeext
16737 if { (ac_try="$ac_link"
16738 case "(($ac_try" in
16739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16740 *) ac_try_echo=$ac_try;;
16741 esac
16742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16743 (eval "$ac_link") 2>conftest.er1
16744 ac_status=$?
16745 grep -v '^ *+' conftest.er1 >conftest.err
16746 rm -f conftest.er1
16747 cat conftest.err >&5
16748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16749 (exit $ac_status); } && {
16750 test -z "$ac_c_werror_flag" ||
16751 test ! -s conftest.err
16752 } && test -s conftest$ac_exeext &&
16753 $as_test_x conftest$ac_exeext; then
16754 ac_cv_lib_cma_pthread_create=yes
16755 else
16756 echo "$as_me: failed program was:" >&5
16757 sed 's/^/| /' conftest.$ac_ext >&5
16759 ac_cv_lib_cma_pthread_create=no
16762 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16763 conftest$ac_exeext conftest.$ac_ext
16764 LIBS=$ac_check_lib_save_LIBS
16766 { echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
16767 echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6; }
16768 if test $ac_cv_lib_cma_pthread_create = yes; then
16769 cat >>confdefs.h <<\_ACEOF
16770 #define WITH_THREAD 1
16771 _ACEOF
16773 posix_threads=yes
16774 LIBS="$LIBS -lcma"
16775 THREADOBJ="Python/thread.o"
16776 else
16778 USE_THREAD_MODULE="#"
16798 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16799 conftest$ac_exeext conftest.$ac_ext
16809 { echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
16810 echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6; }
16811 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
16812 echo $ECHO_N "(cached) $ECHO_C" >&6
16813 else
16814 ac_check_lib_save_LIBS=$LIBS
16815 LIBS="-lmpc $LIBS"
16816 cat >conftest.$ac_ext <<_ACEOF
16817 /* confdefs.h. */
16818 _ACEOF
16819 cat confdefs.h >>conftest.$ac_ext
16820 cat >>conftest.$ac_ext <<_ACEOF
16821 /* end confdefs.h. */
16823 /* Override any GCC internal prototype to avoid an error.
16824 Use char because int might match the return type of a GCC
16825 builtin and then its argument prototype would still apply. */
16826 #ifdef __cplusplus
16827 extern "C"
16828 #endif
16829 char usconfig ();
16831 main ()
16833 return usconfig ();
16835 return 0;
16837 _ACEOF
16838 rm -f conftest.$ac_objext conftest$ac_exeext
16839 if { (ac_try="$ac_link"
16840 case "(($ac_try" in
16841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16842 *) ac_try_echo=$ac_try;;
16843 esac
16844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16845 (eval "$ac_link") 2>conftest.er1
16846 ac_status=$?
16847 grep -v '^ *+' conftest.er1 >conftest.err
16848 rm -f conftest.er1
16849 cat conftest.err >&5
16850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16851 (exit $ac_status); } && {
16852 test -z "$ac_c_werror_flag" ||
16853 test ! -s conftest.err
16854 } && test -s conftest$ac_exeext &&
16855 $as_test_x conftest$ac_exeext; then
16856 ac_cv_lib_mpc_usconfig=yes
16857 else
16858 echo "$as_me: failed program was:" >&5
16859 sed 's/^/| /' conftest.$ac_ext >&5
16861 ac_cv_lib_mpc_usconfig=no
16864 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16865 conftest$ac_exeext conftest.$ac_ext
16866 LIBS=$ac_check_lib_save_LIBS
16868 { echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
16869 echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6; }
16870 if test $ac_cv_lib_mpc_usconfig = yes; then
16871 cat >>confdefs.h <<\_ACEOF
16872 #define WITH_THREAD 1
16873 _ACEOF
16875 LIBS="$LIBS -lmpc"
16876 THREADOBJ="Python/thread.o"
16877 USE_THREAD_MODULE=""
16881 if test "$posix_threads" != "yes"; then
16882 { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
16883 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6; }
16884 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
16885 echo $ECHO_N "(cached) $ECHO_C" >&6
16886 else
16887 ac_check_lib_save_LIBS=$LIBS
16888 LIBS="-lthread $LIBS"
16889 cat >conftest.$ac_ext <<_ACEOF
16890 /* confdefs.h. */
16891 _ACEOF
16892 cat confdefs.h >>conftest.$ac_ext
16893 cat >>conftest.$ac_ext <<_ACEOF
16894 /* end confdefs.h. */
16896 /* Override any GCC internal prototype to avoid an error.
16897 Use char because int might match the return type of a GCC
16898 builtin and then its argument prototype would still apply. */
16899 #ifdef __cplusplus
16900 extern "C"
16901 #endif
16902 char thr_create ();
16904 main ()
16906 return thr_create ();
16908 return 0;
16910 _ACEOF
16911 rm -f conftest.$ac_objext conftest$ac_exeext
16912 if { (ac_try="$ac_link"
16913 case "(($ac_try" in
16914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16915 *) ac_try_echo=$ac_try;;
16916 esac
16917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16918 (eval "$ac_link") 2>conftest.er1
16919 ac_status=$?
16920 grep -v '^ *+' conftest.er1 >conftest.err
16921 rm -f conftest.er1
16922 cat conftest.err >&5
16923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16924 (exit $ac_status); } && {
16925 test -z "$ac_c_werror_flag" ||
16926 test ! -s conftest.err
16927 } && test -s conftest$ac_exeext &&
16928 $as_test_x conftest$ac_exeext; then
16929 ac_cv_lib_thread_thr_create=yes
16930 else
16931 echo "$as_me: failed program was:" >&5
16932 sed 's/^/| /' conftest.$ac_ext >&5
16934 ac_cv_lib_thread_thr_create=no
16937 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16938 conftest$ac_exeext conftest.$ac_ext
16939 LIBS=$ac_check_lib_save_LIBS
16941 { echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
16942 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; }
16943 if test $ac_cv_lib_thread_thr_create = yes; then
16944 cat >>confdefs.h <<\_ACEOF
16945 #define WITH_THREAD 1
16946 _ACEOF
16948 LIBS="$LIBS -lthread"
16949 THREADOBJ="Python/thread.o"
16950 USE_THREAD_MODULE=""
16955 if test "$USE_THREAD_MODULE" != "#"
16956 then
16957 # If the above checks didn't disable threads, (at least) OSF1
16958 # needs this '-threads' argument during linking.
16959 case $ac_sys_system in
16960 OSF1) LDLAST=-threads;;
16961 esac
16965 if test "$posix_threads" = "yes"; then
16966 if test "$unistd_defines_pthreads" = "no"; then
16968 cat >>confdefs.h <<\_ACEOF
16969 #define _POSIX_THREADS 1
16970 _ACEOF
16974 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
16975 case $ac_sys_system/$ac_sys_release in
16976 SunOS/5.6)
16977 cat >>confdefs.h <<\_ACEOF
16978 #define HAVE_PTHREAD_DESTRUCTOR 1
16979 _ACEOF
16982 SunOS/5.8)
16983 cat >>confdefs.h <<\_ACEOF
16984 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
16985 _ACEOF
16988 AIX/5)
16989 cat >>confdefs.h <<\_ACEOF
16990 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
16991 _ACEOF
16994 esac
16996 { echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
16997 echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6; }
16998 if test "${ac_cv_pthread_system_supported+set}" = set; then
16999 echo $ECHO_N "(cached) $ECHO_C" >&6
17000 else
17001 if test "$cross_compiling" = yes; then
17002 ac_cv_pthread_system_supported=no
17003 else
17004 cat >conftest.$ac_ext <<_ACEOF
17005 /* confdefs.h. */
17006 _ACEOF
17007 cat confdefs.h >>conftest.$ac_ext
17008 cat >>conftest.$ac_ext <<_ACEOF
17009 /* end confdefs.h. */
17010 #include <pthread.h>
17011 void *foo(void *parm) {
17012 return NULL;
17014 main() {
17015 pthread_attr_t attr;
17016 pthread_t id;
17017 if (pthread_attr_init(&attr)) exit(-1);
17018 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
17019 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
17020 exit(0);
17022 _ACEOF
17023 rm -f conftest$ac_exeext
17024 if { (ac_try="$ac_link"
17025 case "(($ac_try" in
17026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17027 *) ac_try_echo=$ac_try;;
17028 esac
17029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17030 (eval "$ac_link") 2>&5
17031 ac_status=$?
17032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17033 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17034 { (case "(($ac_try" in
17035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17036 *) ac_try_echo=$ac_try;;
17037 esac
17038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17039 (eval "$ac_try") 2>&5
17040 ac_status=$?
17041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17042 (exit $ac_status); }; }; then
17043 ac_cv_pthread_system_supported=yes
17044 else
17045 echo "$as_me: program exited with status $ac_status" >&5
17046 echo "$as_me: failed program was:" >&5
17047 sed 's/^/| /' conftest.$ac_ext >&5
17049 ( exit $ac_status )
17050 ac_cv_pthread_system_supported=no
17052 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17059 { echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
17060 echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6; }
17061 if test "$ac_cv_pthread_system_supported" = "yes"; then
17063 cat >>confdefs.h <<\_ACEOF
17064 #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
17065 _ACEOF
17069 for ac_func in pthread_sigmask
17071 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17072 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17073 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17074 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17075 echo $ECHO_N "(cached) $ECHO_C" >&6
17076 else
17077 cat >conftest.$ac_ext <<_ACEOF
17078 /* confdefs.h. */
17079 _ACEOF
17080 cat confdefs.h >>conftest.$ac_ext
17081 cat >>conftest.$ac_ext <<_ACEOF
17082 /* end confdefs.h. */
17083 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17084 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17085 #define $ac_func innocuous_$ac_func
17087 /* System header to define __stub macros and hopefully few prototypes,
17088 which can conflict with char $ac_func (); below.
17089 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17090 <limits.h> exists even on freestanding compilers. */
17092 #ifdef __STDC__
17093 # include <limits.h>
17094 #else
17095 # include <assert.h>
17096 #endif
17098 #undef $ac_func
17100 /* Override any GCC internal prototype to avoid an error.
17101 Use char because int might match the return type of a GCC
17102 builtin and then its argument prototype would still apply. */
17103 #ifdef __cplusplus
17104 extern "C"
17105 #endif
17106 char $ac_func ();
17107 /* The GNU C library defines this for functions which it implements
17108 to always fail with ENOSYS. Some functions are actually named
17109 something starting with __ and the normal name is an alias. */
17110 #if defined __stub_$ac_func || defined __stub___$ac_func
17111 choke me
17112 #endif
17115 main ()
17117 return $ac_func ();
17119 return 0;
17121 _ACEOF
17122 rm -f conftest.$ac_objext conftest$ac_exeext
17123 if { (ac_try="$ac_link"
17124 case "(($ac_try" in
17125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17126 *) ac_try_echo=$ac_try;;
17127 esac
17128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17129 (eval "$ac_link") 2>conftest.er1
17130 ac_status=$?
17131 grep -v '^ *+' conftest.er1 >conftest.err
17132 rm -f conftest.er1
17133 cat conftest.err >&5
17134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17135 (exit $ac_status); } && {
17136 test -z "$ac_c_werror_flag" ||
17137 test ! -s conftest.err
17138 } && test -s conftest$ac_exeext &&
17139 $as_test_x conftest$ac_exeext; then
17140 eval "$as_ac_var=yes"
17141 else
17142 echo "$as_me: failed program was:" >&5
17143 sed 's/^/| /' conftest.$ac_ext >&5
17145 eval "$as_ac_var=no"
17148 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17149 conftest$ac_exeext conftest.$ac_ext
17151 ac_res=`eval echo '${'$as_ac_var'}'`
17152 { echo "$as_me:$LINENO: result: $ac_res" >&5
17153 echo "${ECHO_T}$ac_res" >&6; }
17154 if test `eval echo '${'$as_ac_var'}'` = yes; then
17155 cat >>confdefs.h <<_ACEOF
17156 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17157 _ACEOF
17158 case $ac_sys_system in
17159 CYGWIN*)
17161 cat >>confdefs.h <<\_ACEOF
17162 #define HAVE_BROKEN_PTHREAD_SIGMASK 1
17163 _ACEOF
17166 esac
17168 done
17173 # Check for enable-ipv6
17176 { echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
17177 echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6; }
17178 # Check whether --enable-ipv6 was given.
17179 if test "${enable_ipv6+set}" = set; then
17180 enableval=$enable_ipv6; case "$enableval" in
17182 { echo "$as_me:$LINENO: result: no" >&5
17183 echo "${ECHO_T}no" >&6; }
17184 ipv6=no
17186 *) { echo "$as_me:$LINENO: result: yes" >&5
17187 echo "${ECHO_T}yes" >&6; }
17188 cat >>confdefs.h <<\_ACEOF
17189 #define ENABLE_IPV6 1
17190 _ACEOF
17192 ipv6=yes
17194 esac
17195 else
17197 if test "$cross_compiling" = yes; then
17198 { echo "$as_me:$LINENO: result: no" >&5
17199 echo "${ECHO_T}no" >&6; }
17200 ipv6=no
17202 else
17203 cat >conftest.$ac_ext <<_ACEOF
17204 /* confdefs.h. */
17205 _ACEOF
17206 cat confdefs.h >>conftest.$ac_ext
17207 cat >>conftest.$ac_ext <<_ACEOF
17208 /* end confdefs.h. */
17209 /* AF_INET6 available check */
17210 #include <sys/types.h>
17211 #include <sys/socket.h>
17212 main()
17214 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
17215 exit(1);
17216 else
17217 exit(0);
17220 _ACEOF
17221 rm -f conftest$ac_exeext
17222 if { (ac_try="$ac_link"
17223 case "(($ac_try" in
17224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17225 *) ac_try_echo=$ac_try;;
17226 esac
17227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17228 (eval "$ac_link") 2>&5
17229 ac_status=$?
17230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17231 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17232 { (case "(($ac_try" in
17233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17234 *) ac_try_echo=$ac_try;;
17235 esac
17236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17237 (eval "$ac_try") 2>&5
17238 ac_status=$?
17239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17240 (exit $ac_status); }; }; then
17241 { echo "$as_me:$LINENO: result: yes" >&5
17242 echo "${ECHO_T}yes" >&6; }
17243 ipv6=yes
17244 else
17245 echo "$as_me: program exited with status $ac_status" >&5
17246 echo "$as_me: failed program was:" >&5
17247 sed 's/^/| /' conftest.$ac_ext >&5
17249 ( exit $ac_status )
17250 { echo "$as_me:$LINENO: result: no" >&5
17251 echo "${ECHO_T}no" >&6; }
17252 ipv6=no
17254 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17259 if test "$ipv6" = "yes"; then
17260 { echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
17261 echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6; }
17262 cat >conftest.$ac_ext <<_ACEOF
17263 /* confdefs.h. */
17264 _ACEOF
17265 cat confdefs.h >>conftest.$ac_ext
17266 cat >>conftest.$ac_ext <<_ACEOF
17267 /* end confdefs.h. */
17268 #include <sys/types.h>
17269 #include <netinet/in.h>
17271 main ()
17273 struct sockaddr_in6 x;
17274 x.sin6_scope_id;
17276 return 0;
17278 _ACEOF
17279 rm -f conftest.$ac_objext
17280 if { (ac_try="$ac_compile"
17281 case "(($ac_try" in
17282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17283 *) ac_try_echo=$ac_try;;
17284 esac
17285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17286 (eval "$ac_compile") 2>conftest.er1
17287 ac_status=$?
17288 grep -v '^ *+' conftest.er1 >conftest.err
17289 rm -f conftest.er1
17290 cat conftest.err >&5
17291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17292 (exit $ac_status); } && {
17293 test -z "$ac_c_werror_flag" ||
17294 test ! -s conftest.err
17295 } && test -s conftest.$ac_objext; then
17296 { echo "$as_me:$LINENO: result: yes" >&5
17297 echo "${ECHO_T}yes" >&6; }
17298 ipv6=yes
17299 else
17300 echo "$as_me: failed program was:" >&5
17301 sed 's/^/| /' conftest.$ac_ext >&5
17303 { echo "$as_me:$LINENO: result: no" >&5
17304 echo "${ECHO_T}no" >&6; }
17305 ipv6=no
17308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17311 if test "$ipv6" = "yes"; then
17312 cat >>confdefs.h <<\_ACEOF
17313 #define ENABLE_IPV6 1
17314 _ACEOF
17321 ipv6type=unknown
17322 ipv6lib=none
17323 ipv6trylibc=no
17325 if test "$ipv6" = "yes"; then
17326 { echo "$as_me:$LINENO: checking ipv6 stack type" >&5
17327 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; }
17328 for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta;
17330 case $i in
17331 inria)
17332 cat >conftest.$ac_ext <<_ACEOF
17333 /* confdefs.h. */
17334 _ACEOF
17335 cat confdefs.h >>conftest.$ac_ext
17336 cat >>conftest.$ac_ext <<_ACEOF
17337 /* end confdefs.h. */
17339 #include <netinet/in.h>
17340 #ifdef IPV6_INRIA_VERSION
17342 #endif
17343 _ACEOF
17344 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17345 $EGREP "yes" >/dev/null 2>&1; then
17346 ipv6type=$i
17348 rm -f -r conftest*
17351 kame)
17352 cat >conftest.$ac_ext <<_ACEOF
17353 /* confdefs.h. */
17354 _ACEOF
17355 cat confdefs.h >>conftest.$ac_ext
17356 cat >>conftest.$ac_ext <<_ACEOF
17357 /* end confdefs.h. */
17359 #include <netinet/in.h>
17360 #ifdef __KAME__
17362 #endif
17363 _ACEOF
17364 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17365 $EGREP "yes" >/dev/null 2>&1; then
17366 ipv6type=$i;
17367 ipv6lib=inet6
17368 ipv6libdir=/usr/local/v6/lib
17369 ipv6trylibc=yes
17371 rm -f -r conftest*
17374 linux-glibc)
17375 cat >conftest.$ac_ext <<_ACEOF
17376 /* confdefs.h. */
17377 _ACEOF
17378 cat confdefs.h >>conftest.$ac_ext
17379 cat >>conftest.$ac_ext <<_ACEOF
17380 /* end confdefs.h. */
17382 #include <features.h>
17383 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
17385 #endif
17386 _ACEOF
17387 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17388 $EGREP "yes" >/dev/null 2>&1; then
17389 ipv6type=$i;
17390 ipv6trylibc=yes
17392 rm -f -r conftest*
17395 linux-inet6)
17396 if test -d /usr/inet6; then
17397 ipv6type=$i
17398 ipv6lib=inet6
17399 ipv6libdir=/usr/inet6/lib
17400 BASECFLAGS="-I/usr/inet6/include $BASECFLAGS"
17403 solaris)
17404 if test -f /etc/netconfig; then
17405 if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then
17406 ipv6type=$i
17407 ipv6trylibc=yes
17411 toshiba)
17412 cat >conftest.$ac_ext <<_ACEOF
17413 /* confdefs.h. */
17414 _ACEOF
17415 cat confdefs.h >>conftest.$ac_ext
17416 cat >>conftest.$ac_ext <<_ACEOF
17417 /* end confdefs.h. */
17419 #include <sys/param.h>
17420 #ifdef _TOSHIBA_INET6
17422 #endif
17423 _ACEOF
17424 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17425 $EGREP "yes" >/dev/null 2>&1; then
17426 ipv6type=$i;
17427 ipv6lib=inet6;
17428 ipv6libdir=/usr/local/v6/lib
17430 rm -f -r conftest*
17433 v6d)
17434 cat >conftest.$ac_ext <<_ACEOF
17435 /* confdefs.h. */
17436 _ACEOF
17437 cat confdefs.h >>conftest.$ac_ext
17438 cat >>conftest.$ac_ext <<_ACEOF
17439 /* end confdefs.h. */
17441 #include </usr/local/v6/include/sys/v6config.h>
17442 #ifdef __V6D__
17444 #endif
17445 _ACEOF
17446 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17447 $EGREP "yes" >/dev/null 2>&1; then
17448 ipv6type=$i;
17449 ipv6lib=v6;
17450 ipv6libdir=/usr/local/v6/lib;
17451 BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS"
17453 rm -f -r conftest*
17456 zeta)
17457 cat >conftest.$ac_ext <<_ACEOF
17458 /* confdefs.h. */
17459 _ACEOF
17460 cat confdefs.h >>conftest.$ac_ext
17461 cat >>conftest.$ac_ext <<_ACEOF
17462 /* end confdefs.h. */
17464 #include <sys/param.h>
17465 #ifdef _ZETA_MINAMI_INET6
17467 #endif
17468 _ACEOF
17469 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17470 $EGREP "yes" >/dev/null 2>&1; then
17471 ipv6type=$i;
17472 ipv6lib=inet6;
17473 ipv6libdir=/usr/local/v6/lib
17475 rm -f -r conftest*
17478 esac
17479 if test "$ipv6type" != "unknown"; then
17480 break
17482 done
17483 { echo "$as_me:$LINENO: result: $ipv6type" >&5
17484 echo "${ECHO_T}$ipv6type" >&6; }
17487 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
17488 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
17489 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
17490 echo "using lib$ipv6lib"
17491 else
17492 if test $ipv6trylibc = "yes"; then
17493 echo "using libc"
17494 else
17495 echo 'Fatal: no $ipv6lib library found. cannot continue.'
17496 echo "You need to fetch lib$ipv6lib.a from appropriate"
17497 echo 'ipv6 kit and compile beforehand.'
17498 exit 1
17503 { echo "$as_me:$LINENO: checking for OSX 10.5 SDK or later" >&5
17504 echo $ECHO_N "checking for OSX 10.5 SDK or later... $ECHO_C" >&6; }
17505 cat >conftest.$ac_ext <<_ACEOF
17506 /* confdefs.h. */
17507 _ACEOF
17508 cat confdefs.h >>conftest.$ac_ext
17509 cat >>conftest.$ac_ext <<_ACEOF
17510 /* end confdefs.h. */
17511 #include <Carbon/Carbon.h>
17513 main ()
17515 FSIORefNum fRef = 0
17517 return 0;
17519 _ACEOF
17520 rm -f conftest.$ac_objext
17521 if { (ac_try="$ac_compile"
17522 case "(($ac_try" in
17523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17524 *) ac_try_echo=$ac_try;;
17525 esac
17526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17527 (eval "$ac_compile") 2>conftest.er1
17528 ac_status=$?
17529 grep -v '^ *+' conftest.er1 >conftest.err
17530 rm -f conftest.er1
17531 cat conftest.err >&5
17532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17533 (exit $ac_status); } && {
17534 test -z "$ac_c_werror_flag" ||
17535 test ! -s conftest.err
17536 } && test -s conftest.$ac_objext; then
17538 cat >>confdefs.h <<\_ACEOF
17539 #define HAVE_OSX105_SDK 1
17540 _ACEOF
17542 { echo "$as_me:$LINENO: result: yes" >&5
17543 echo "${ECHO_T}yes" >&6; }
17544 else
17545 echo "$as_me: failed program was:" >&5
17546 sed 's/^/| /' conftest.$ac_ext >&5
17548 { echo "$as_me:$LINENO: result: no" >&5
17549 echo "${ECHO_T}no" >&6; }
17553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17555 # Check for --with-doc-strings
17556 { echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
17557 echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6; }
17559 # Check whether --with-doc-strings was given.
17560 if test "${with_doc_strings+set}" = set; then
17561 withval=$with_doc_strings;
17565 if test -z "$with_doc_strings"
17566 then with_doc_strings="yes"
17568 if test "$with_doc_strings" != "no"
17569 then
17571 cat >>confdefs.h <<\_ACEOF
17572 #define WITH_DOC_STRINGS 1
17573 _ACEOF
17576 { echo "$as_me:$LINENO: result: $with_doc_strings" >&5
17577 echo "${ECHO_T}$with_doc_strings" >&6; }
17579 # Check for Python-specific malloc support
17580 { echo "$as_me:$LINENO: checking for --with-tsc" >&5
17581 echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6; }
17583 # Check whether --with-tsc was given.
17584 if test "${with_tsc+set}" = set; then
17585 withval=$with_tsc;
17586 if test "$withval" != no
17587 then
17589 cat >>confdefs.h <<\_ACEOF
17590 #define WITH_TSC 1
17591 _ACEOF
17593 { echo "$as_me:$LINENO: result: yes" >&5
17594 echo "${ECHO_T}yes" >&6; }
17595 else { echo "$as_me:$LINENO: result: no" >&5
17596 echo "${ECHO_T}no" >&6; }
17598 else
17599 { echo "$as_me:$LINENO: result: no" >&5
17600 echo "${ECHO_T}no" >&6; }
17604 # Check for Python-specific malloc support
17605 { echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
17606 echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6; }
17608 # Check whether --with-pymalloc was given.
17609 if test "${with_pymalloc+set}" = set; then
17610 withval=$with_pymalloc;
17614 if test -z "$with_pymalloc"
17615 then with_pymalloc="yes"
17617 if test "$with_pymalloc" != "no"
17618 then
17620 cat >>confdefs.h <<\_ACEOF
17621 #define WITH_PYMALLOC 1
17622 _ACEOF
17625 { echo "$as_me:$LINENO: result: $with_pymalloc" >&5
17626 echo "${ECHO_T}$with_pymalloc" >&6; }
17628 # Check for --with-wctype-functions
17629 { echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
17630 echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6; }
17632 # Check whether --with-wctype-functions was given.
17633 if test "${with_wctype_functions+set}" = set; then
17634 withval=$with_wctype_functions;
17635 if test "$withval" != no
17636 then
17638 cat >>confdefs.h <<\_ACEOF
17639 #define WANT_WCTYPE_FUNCTIONS 1
17640 _ACEOF
17642 { echo "$as_me:$LINENO: result: yes" >&5
17643 echo "${ECHO_T}yes" >&6; }
17644 else { echo "$as_me:$LINENO: result: no" >&5
17645 echo "${ECHO_T}no" >&6; }
17647 else
17648 { echo "$as_me:$LINENO: result: no" >&5
17649 echo "${ECHO_T}no" >&6; }
17653 # -I${DLINCLDIR} is added to the compile rule for importdl.o
17655 DLINCLDIR=.
17657 # the dlopen() function means we might want to use dynload_shlib.o. some
17658 # platforms, such as AIX, have dlopen(), but don't want to use it.
17660 for ac_func in dlopen
17662 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17663 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17664 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17665 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17666 echo $ECHO_N "(cached) $ECHO_C" >&6
17667 else
17668 cat >conftest.$ac_ext <<_ACEOF
17669 /* confdefs.h. */
17670 _ACEOF
17671 cat confdefs.h >>conftest.$ac_ext
17672 cat >>conftest.$ac_ext <<_ACEOF
17673 /* end confdefs.h. */
17674 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17675 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17676 #define $ac_func innocuous_$ac_func
17678 /* System header to define __stub macros and hopefully few prototypes,
17679 which can conflict with char $ac_func (); below.
17680 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17681 <limits.h> exists even on freestanding compilers. */
17683 #ifdef __STDC__
17684 # include <limits.h>
17685 #else
17686 # include <assert.h>
17687 #endif
17689 #undef $ac_func
17691 /* Override any GCC internal prototype to avoid an error.
17692 Use char because int might match the return type of a GCC
17693 builtin and then its argument prototype would still apply. */
17694 #ifdef __cplusplus
17695 extern "C"
17696 #endif
17697 char $ac_func ();
17698 /* The GNU C library defines this for functions which it implements
17699 to always fail with ENOSYS. Some functions are actually named
17700 something starting with __ and the normal name is an alias. */
17701 #if defined __stub_$ac_func || defined __stub___$ac_func
17702 choke me
17703 #endif
17706 main ()
17708 return $ac_func ();
17710 return 0;
17712 _ACEOF
17713 rm -f conftest.$ac_objext conftest$ac_exeext
17714 if { (ac_try="$ac_link"
17715 case "(($ac_try" in
17716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17717 *) ac_try_echo=$ac_try;;
17718 esac
17719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17720 (eval "$ac_link") 2>conftest.er1
17721 ac_status=$?
17722 grep -v '^ *+' conftest.er1 >conftest.err
17723 rm -f conftest.er1
17724 cat conftest.err >&5
17725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17726 (exit $ac_status); } && {
17727 test -z "$ac_c_werror_flag" ||
17728 test ! -s conftest.err
17729 } && test -s conftest$ac_exeext &&
17730 $as_test_x conftest$ac_exeext; then
17731 eval "$as_ac_var=yes"
17732 else
17733 echo "$as_me: failed program was:" >&5
17734 sed 's/^/| /' conftest.$ac_ext >&5
17736 eval "$as_ac_var=no"
17739 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17740 conftest$ac_exeext conftest.$ac_ext
17742 ac_res=`eval echo '${'$as_ac_var'}'`
17743 { echo "$as_me:$LINENO: result: $ac_res" >&5
17744 echo "${ECHO_T}$ac_res" >&6; }
17745 if test `eval echo '${'$as_ac_var'}'` = yes; then
17746 cat >>confdefs.h <<_ACEOF
17747 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17748 _ACEOF
17751 done
17754 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
17755 # loading of modules.
17757 { echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
17758 echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6; }
17759 if test -z "$DYNLOADFILE"
17760 then
17761 case $ac_sys_system/$ac_sys_release in
17762 AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
17763 if test "$ac_cv_func_dlopen" = yes
17764 then DYNLOADFILE="dynload_shlib.o"
17765 else DYNLOADFILE="dynload_aix.o"
17768 BeOS*) DYNLOADFILE="dynload_beos.o";;
17769 hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
17770 # Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
17771 Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";;
17772 atheos*) DYNLOADFILE="dynload_atheos.o";;
17774 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
17775 # out any dynamic loading
17776 if test "$ac_cv_func_dlopen" = yes
17777 then DYNLOADFILE="dynload_shlib.o"
17778 else DYNLOADFILE="dynload_stub.o"
17781 esac
17783 { echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
17784 echo "${ECHO_T}$DYNLOADFILE" >&6; }
17785 if test "$DYNLOADFILE" != "dynload_stub.o"
17786 then
17788 cat >>confdefs.h <<\_ACEOF
17789 #define HAVE_DYNAMIC_LOADING 1
17790 _ACEOF
17794 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
17797 { echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
17798 echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6; }
17799 if test -z "$MACHDEP_OBJS"
17800 then
17801 MACHDEP_OBJS=$extra_machdep_objs
17802 else
17803 MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs"
17805 { echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
17806 echo "${ECHO_T}MACHDEP_OBJS" >&6; }
17808 # checks for library functions
17894 for ac_func in alarm setitimer getitimer bind_textdomain_codeset chown \
17895 clock confstr ctermid execv fchmod fchown fork fpathconf ftime ftruncate \
17896 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
17897 getpriority getpwent getspnam getspent getsid getwd \
17898 kill killpg lchmod lchown lstat mkfifo mknod mktime \
17899 mremap nice pathconf pause plock poll pthread_init \
17900 putenv readlink realpath \
17901 select sem_open sem_timedwait sem_getvalue sem_unlink setegid seteuid \
17902 setgid \
17903 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
17904 sigaction siginterrupt sigrelse strftime \
17905 sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \
17906 truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty
17908 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17909 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17910 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17911 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17912 echo $ECHO_N "(cached) $ECHO_C" >&6
17913 else
17914 cat >conftest.$ac_ext <<_ACEOF
17915 /* confdefs.h. */
17916 _ACEOF
17917 cat confdefs.h >>conftest.$ac_ext
17918 cat >>conftest.$ac_ext <<_ACEOF
17919 /* end confdefs.h. */
17920 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17921 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17922 #define $ac_func innocuous_$ac_func
17924 /* System header to define __stub macros and hopefully few prototypes,
17925 which can conflict with char $ac_func (); below.
17926 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17927 <limits.h> exists even on freestanding compilers. */
17929 #ifdef __STDC__
17930 # include <limits.h>
17931 #else
17932 # include <assert.h>
17933 #endif
17935 #undef $ac_func
17937 /* Override any GCC internal prototype to avoid an error.
17938 Use char because int might match the return type of a GCC
17939 builtin and then its argument prototype would still apply. */
17940 #ifdef __cplusplus
17941 extern "C"
17942 #endif
17943 char $ac_func ();
17944 /* The GNU C library defines this for functions which it implements
17945 to always fail with ENOSYS. Some functions are actually named
17946 something starting with __ and the normal name is an alias. */
17947 #if defined __stub_$ac_func || defined __stub___$ac_func
17948 choke me
17949 #endif
17952 main ()
17954 return $ac_func ();
17956 return 0;
17958 _ACEOF
17959 rm -f conftest.$ac_objext conftest$ac_exeext
17960 if { (ac_try="$ac_link"
17961 case "(($ac_try" in
17962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17963 *) ac_try_echo=$ac_try;;
17964 esac
17965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17966 (eval "$ac_link") 2>conftest.er1
17967 ac_status=$?
17968 grep -v '^ *+' conftest.er1 >conftest.err
17969 rm -f conftest.er1
17970 cat conftest.err >&5
17971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17972 (exit $ac_status); } && {
17973 test -z "$ac_c_werror_flag" ||
17974 test ! -s conftest.err
17975 } && test -s conftest$ac_exeext &&
17976 $as_test_x conftest$ac_exeext; then
17977 eval "$as_ac_var=yes"
17978 else
17979 echo "$as_me: failed program was:" >&5
17980 sed 's/^/| /' conftest.$ac_ext >&5
17982 eval "$as_ac_var=no"
17985 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17986 conftest$ac_exeext conftest.$ac_ext
17988 ac_res=`eval echo '${'$as_ac_var'}'`
17989 { echo "$as_me:$LINENO: result: $ac_res" >&5
17990 echo "${ECHO_T}$ac_res" >&6; }
17991 if test `eval echo '${'$as_ac_var'}'` = yes; then
17992 cat >>confdefs.h <<_ACEOF
17993 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17994 _ACEOF
17997 done
18000 # For some functions, having a definition is not sufficient, since
18001 # we want to take their address.
18002 { echo "$as_me:$LINENO: checking for chroot" >&5
18003 echo $ECHO_N "checking for chroot... $ECHO_C" >&6; }
18004 cat >conftest.$ac_ext <<_ACEOF
18005 /* confdefs.h. */
18006 _ACEOF
18007 cat confdefs.h >>conftest.$ac_ext
18008 cat >>conftest.$ac_ext <<_ACEOF
18009 /* end confdefs.h. */
18010 #include <unistd.h>
18012 main ()
18014 void *x=chroot
18016 return 0;
18018 _ACEOF
18019 rm -f conftest.$ac_objext
18020 if { (ac_try="$ac_compile"
18021 case "(($ac_try" in
18022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18023 *) ac_try_echo=$ac_try;;
18024 esac
18025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18026 (eval "$ac_compile") 2>conftest.er1
18027 ac_status=$?
18028 grep -v '^ *+' conftest.er1 >conftest.err
18029 rm -f conftest.er1
18030 cat conftest.err >&5
18031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18032 (exit $ac_status); } && {
18033 test -z "$ac_c_werror_flag" ||
18034 test ! -s conftest.err
18035 } && test -s conftest.$ac_objext; then
18037 cat >>confdefs.h <<\_ACEOF
18038 #define HAVE_CHROOT 1
18039 _ACEOF
18041 { echo "$as_me:$LINENO: result: yes" >&5
18042 echo "${ECHO_T}yes" >&6; }
18043 else
18044 echo "$as_me: failed program was:" >&5
18045 sed 's/^/| /' conftest.$ac_ext >&5
18047 { echo "$as_me:$LINENO: result: no" >&5
18048 echo "${ECHO_T}no" >&6; }
18052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18053 { echo "$as_me:$LINENO: checking for link" >&5
18054 echo $ECHO_N "checking for link... $ECHO_C" >&6; }
18055 cat >conftest.$ac_ext <<_ACEOF
18056 /* confdefs.h. */
18057 _ACEOF
18058 cat confdefs.h >>conftest.$ac_ext
18059 cat >>conftest.$ac_ext <<_ACEOF
18060 /* end confdefs.h. */
18061 #include <unistd.h>
18063 main ()
18065 void *x=link
18067 return 0;
18069 _ACEOF
18070 rm -f conftest.$ac_objext
18071 if { (ac_try="$ac_compile"
18072 case "(($ac_try" in
18073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18074 *) ac_try_echo=$ac_try;;
18075 esac
18076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18077 (eval "$ac_compile") 2>conftest.er1
18078 ac_status=$?
18079 grep -v '^ *+' conftest.er1 >conftest.err
18080 rm -f conftest.er1
18081 cat conftest.err >&5
18082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18083 (exit $ac_status); } && {
18084 test -z "$ac_c_werror_flag" ||
18085 test ! -s conftest.err
18086 } && test -s conftest.$ac_objext; then
18088 cat >>confdefs.h <<\_ACEOF
18089 #define HAVE_LINK 1
18090 _ACEOF
18092 { echo "$as_me:$LINENO: result: yes" >&5
18093 echo "${ECHO_T}yes" >&6; }
18094 else
18095 echo "$as_me: failed program was:" >&5
18096 sed 's/^/| /' conftest.$ac_ext >&5
18098 { echo "$as_me:$LINENO: result: no" >&5
18099 echo "${ECHO_T}no" >&6; }
18103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18104 { echo "$as_me:$LINENO: checking for symlink" >&5
18105 echo $ECHO_N "checking for symlink... $ECHO_C" >&6; }
18106 cat >conftest.$ac_ext <<_ACEOF
18107 /* confdefs.h. */
18108 _ACEOF
18109 cat confdefs.h >>conftest.$ac_ext
18110 cat >>conftest.$ac_ext <<_ACEOF
18111 /* end confdefs.h. */
18112 #include <unistd.h>
18114 main ()
18116 void *x=symlink
18118 return 0;
18120 _ACEOF
18121 rm -f conftest.$ac_objext
18122 if { (ac_try="$ac_compile"
18123 case "(($ac_try" in
18124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18125 *) ac_try_echo=$ac_try;;
18126 esac
18127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18128 (eval "$ac_compile") 2>conftest.er1
18129 ac_status=$?
18130 grep -v '^ *+' conftest.er1 >conftest.err
18131 rm -f conftest.er1
18132 cat conftest.err >&5
18133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18134 (exit $ac_status); } && {
18135 test -z "$ac_c_werror_flag" ||
18136 test ! -s conftest.err
18137 } && test -s conftest.$ac_objext; then
18139 cat >>confdefs.h <<\_ACEOF
18140 #define HAVE_SYMLINK 1
18141 _ACEOF
18143 { echo "$as_me:$LINENO: result: yes" >&5
18144 echo "${ECHO_T}yes" >&6; }
18145 else
18146 echo "$as_me: failed program was:" >&5
18147 sed 's/^/| /' conftest.$ac_ext >&5
18149 { echo "$as_me:$LINENO: result: no" >&5
18150 echo "${ECHO_T}no" >&6; }
18154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18155 { echo "$as_me:$LINENO: checking for fchdir" >&5
18156 echo $ECHO_N "checking for fchdir... $ECHO_C" >&6; }
18157 cat >conftest.$ac_ext <<_ACEOF
18158 /* confdefs.h. */
18159 _ACEOF
18160 cat confdefs.h >>conftest.$ac_ext
18161 cat >>conftest.$ac_ext <<_ACEOF
18162 /* end confdefs.h. */
18163 #include <unistd.h>
18165 main ()
18167 void *x=fchdir
18169 return 0;
18171 _ACEOF
18172 rm -f conftest.$ac_objext
18173 if { (ac_try="$ac_compile"
18174 case "(($ac_try" in
18175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18176 *) ac_try_echo=$ac_try;;
18177 esac
18178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18179 (eval "$ac_compile") 2>conftest.er1
18180 ac_status=$?
18181 grep -v '^ *+' conftest.er1 >conftest.err
18182 rm -f conftest.er1
18183 cat conftest.err >&5
18184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18185 (exit $ac_status); } && {
18186 test -z "$ac_c_werror_flag" ||
18187 test ! -s conftest.err
18188 } && test -s conftest.$ac_objext; then
18190 cat >>confdefs.h <<\_ACEOF
18191 #define HAVE_FCHDIR 1
18192 _ACEOF
18194 { echo "$as_me:$LINENO: result: yes" >&5
18195 echo "${ECHO_T}yes" >&6; }
18196 else
18197 echo "$as_me: failed program was:" >&5
18198 sed 's/^/| /' conftest.$ac_ext >&5
18200 { echo "$as_me:$LINENO: result: no" >&5
18201 echo "${ECHO_T}no" >&6; }
18205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18206 { echo "$as_me:$LINENO: checking for fsync" >&5
18207 echo $ECHO_N "checking for fsync... $ECHO_C" >&6; }
18208 cat >conftest.$ac_ext <<_ACEOF
18209 /* confdefs.h. */
18210 _ACEOF
18211 cat confdefs.h >>conftest.$ac_ext
18212 cat >>conftest.$ac_ext <<_ACEOF
18213 /* end confdefs.h. */
18214 #include <unistd.h>
18216 main ()
18218 void *x=fsync
18220 return 0;
18222 _ACEOF
18223 rm -f conftest.$ac_objext
18224 if { (ac_try="$ac_compile"
18225 case "(($ac_try" in
18226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18227 *) ac_try_echo=$ac_try;;
18228 esac
18229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18230 (eval "$ac_compile") 2>conftest.er1
18231 ac_status=$?
18232 grep -v '^ *+' conftest.er1 >conftest.err
18233 rm -f conftest.er1
18234 cat conftest.err >&5
18235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18236 (exit $ac_status); } && {
18237 test -z "$ac_c_werror_flag" ||
18238 test ! -s conftest.err
18239 } && test -s conftest.$ac_objext; then
18241 cat >>confdefs.h <<\_ACEOF
18242 #define HAVE_FSYNC 1
18243 _ACEOF
18245 { echo "$as_me:$LINENO: result: yes" >&5
18246 echo "${ECHO_T}yes" >&6; }
18247 else
18248 echo "$as_me: failed program was:" >&5
18249 sed 's/^/| /' conftest.$ac_ext >&5
18251 { echo "$as_me:$LINENO: result: no" >&5
18252 echo "${ECHO_T}no" >&6; }
18256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18257 { echo "$as_me:$LINENO: checking for fdatasync" >&5
18258 echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6; }
18259 cat >conftest.$ac_ext <<_ACEOF
18260 /* confdefs.h. */
18261 _ACEOF
18262 cat confdefs.h >>conftest.$ac_ext
18263 cat >>conftest.$ac_ext <<_ACEOF
18264 /* end confdefs.h. */
18265 #include <unistd.h>
18267 main ()
18269 void *x=fdatasync
18271 return 0;
18273 _ACEOF
18274 rm -f conftest.$ac_objext
18275 if { (ac_try="$ac_compile"
18276 case "(($ac_try" in
18277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18278 *) ac_try_echo=$ac_try;;
18279 esac
18280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18281 (eval "$ac_compile") 2>conftest.er1
18282 ac_status=$?
18283 grep -v '^ *+' conftest.er1 >conftest.err
18284 rm -f conftest.er1
18285 cat conftest.err >&5
18286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18287 (exit $ac_status); } && {
18288 test -z "$ac_c_werror_flag" ||
18289 test ! -s conftest.err
18290 } && test -s conftest.$ac_objext; then
18292 cat >>confdefs.h <<\_ACEOF
18293 #define HAVE_FDATASYNC 1
18294 _ACEOF
18296 { echo "$as_me:$LINENO: result: yes" >&5
18297 echo "${ECHO_T}yes" >&6; }
18298 else
18299 echo "$as_me: failed program was:" >&5
18300 sed 's/^/| /' conftest.$ac_ext >&5
18302 { echo "$as_me:$LINENO: result: no" >&5
18303 echo "${ECHO_T}no" >&6; }
18307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18308 { echo "$as_me:$LINENO: checking for epoll" >&5
18309 echo $ECHO_N "checking for epoll... $ECHO_C" >&6; }
18310 cat >conftest.$ac_ext <<_ACEOF
18311 /* confdefs.h. */
18312 _ACEOF
18313 cat confdefs.h >>conftest.$ac_ext
18314 cat >>conftest.$ac_ext <<_ACEOF
18315 /* end confdefs.h. */
18316 #include <sys/epoll.h>
18318 main ()
18320 void *x=epoll_create
18322 return 0;
18324 _ACEOF
18325 rm -f conftest.$ac_objext
18326 if { (ac_try="$ac_compile"
18327 case "(($ac_try" in
18328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18329 *) ac_try_echo=$ac_try;;
18330 esac
18331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18332 (eval "$ac_compile") 2>conftest.er1
18333 ac_status=$?
18334 grep -v '^ *+' conftest.er1 >conftest.err
18335 rm -f conftest.er1
18336 cat conftest.err >&5
18337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18338 (exit $ac_status); } && {
18339 test -z "$ac_c_werror_flag" ||
18340 test ! -s conftest.err
18341 } && test -s conftest.$ac_objext; then
18343 cat >>confdefs.h <<\_ACEOF
18344 #define HAVE_EPOLL 1
18345 _ACEOF
18347 { echo "$as_me:$LINENO: result: yes" >&5
18348 echo "${ECHO_T}yes" >&6; }
18349 else
18350 echo "$as_me: failed program was:" >&5
18351 sed 's/^/| /' conftest.$ac_ext >&5
18353 { echo "$as_me:$LINENO: result: no" >&5
18354 echo "${ECHO_T}no" >&6; }
18358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18359 { echo "$as_me:$LINENO: checking for kqueue" >&5
18360 echo $ECHO_N "checking for kqueue... $ECHO_C" >&6; }
18361 cat >conftest.$ac_ext <<_ACEOF
18362 /* confdefs.h. */
18363 _ACEOF
18364 cat confdefs.h >>conftest.$ac_ext
18365 cat >>conftest.$ac_ext <<_ACEOF
18366 /* end confdefs.h. */
18368 #include <sys/types.h>
18369 #include <sys/event.h>
18372 main ()
18374 int x=kqueue()
18376 return 0;
18378 _ACEOF
18379 rm -f conftest.$ac_objext
18380 if { (ac_try="$ac_compile"
18381 case "(($ac_try" in
18382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18383 *) ac_try_echo=$ac_try;;
18384 esac
18385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18386 (eval "$ac_compile") 2>conftest.er1
18387 ac_status=$?
18388 grep -v '^ *+' conftest.er1 >conftest.err
18389 rm -f conftest.er1
18390 cat conftest.err >&5
18391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18392 (exit $ac_status); } && {
18393 test -z "$ac_c_werror_flag" ||
18394 test ! -s conftest.err
18395 } && test -s conftest.$ac_objext; then
18397 cat >>confdefs.h <<\_ACEOF
18398 #define HAVE_KQUEUE 1
18399 _ACEOF
18401 { echo "$as_me:$LINENO: result: yes" >&5
18402 echo "${ECHO_T}yes" >&6; }
18403 else
18404 echo "$as_me: failed program was:" >&5
18405 sed 's/^/| /' conftest.$ac_ext >&5
18407 { echo "$as_me:$LINENO: result: no" >&5
18408 echo "${ECHO_T}no" >&6; }
18412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18413 # On some systems (eg. FreeBSD 5), we would find a definition of the
18414 # functions ctermid_r, setgroups in the library, but no prototype
18415 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
18416 # address to avoid compiler warnings and potential miscompilations
18417 # because of the missing prototypes.
18419 { echo "$as_me:$LINENO: checking for ctermid_r" >&5
18420 echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6; }
18421 cat >conftest.$ac_ext <<_ACEOF
18422 /* confdefs.h. */
18423 _ACEOF
18424 cat confdefs.h >>conftest.$ac_ext
18425 cat >>conftest.$ac_ext <<_ACEOF
18426 /* end confdefs.h. */
18428 #include "confdefs.h"
18429 #include <stdio.h>
18432 main ()
18434 void* p = ctermid_r
18436 return 0;
18438 _ACEOF
18439 rm -f conftest.$ac_objext
18440 if { (ac_try="$ac_compile"
18441 case "(($ac_try" in
18442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18443 *) ac_try_echo=$ac_try;;
18444 esac
18445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18446 (eval "$ac_compile") 2>conftest.er1
18447 ac_status=$?
18448 grep -v '^ *+' conftest.er1 >conftest.err
18449 rm -f conftest.er1
18450 cat conftest.err >&5
18451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18452 (exit $ac_status); } && {
18453 test -z "$ac_c_werror_flag" ||
18454 test ! -s conftest.err
18455 } && test -s conftest.$ac_objext; then
18457 cat >>confdefs.h <<\_ACEOF
18458 #define HAVE_CTERMID_R 1
18459 _ACEOF
18461 { echo "$as_me:$LINENO: result: yes" >&5
18462 echo "${ECHO_T}yes" >&6; }
18463 else
18464 echo "$as_me: failed program was:" >&5
18465 sed 's/^/| /' conftest.$ac_ext >&5
18467 { echo "$as_me:$LINENO: result: no" >&5
18468 echo "${ECHO_T}no" >&6; }
18472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18474 { echo "$as_me:$LINENO: checking for flock" >&5
18475 echo $ECHO_N "checking for flock... $ECHO_C" >&6; }
18476 cat >conftest.$ac_ext <<_ACEOF
18477 /* confdefs.h. */
18478 _ACEOF
18479 cat confdefs.h >>conftest.$ac_ext
18480 cat >>conftest.$ac_ext <<_ACEOF
18481 /* end confdefs.h. */
18483 #include "confdefs.h"
18484 #include <sys/file.h>
18487 main ()
18489 void* p = flock
18491 return 0;
18493 _ACEOF
18494 rm -f conftest.$ac_objext
18495 if { (ac_try="$ac_compile"
18496 case "(($ac_try" in
18497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18498 *) ac_try_echo=$ac_try;;
18499 esac
18500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18501 (eval "$ac_compile") 2>conftest.er1
18502 ac_status=$?
18503 grep -v '^ *+' conftest.er1 >conftest.err
18504 rm -f conftest.er1
18505 cat conftest.err >&5
18506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18507 (exit $ac_status); } && {
18508 test -z "$ac_c_werror_flag" ||
18509 test ! -s conftest.err
18510 } && test -s conftest.$ac_objext; then
18512 cat >>confdefs.h <<\_ACEOF
18513 #define HAVE_FLOCK 1
18514 _ACEOF
18516 { echo "$as_me:$LINENO: result: yes" >&5
18517 echo "${ECHO_T}yes" >&6; }
18518 else
18519 echo "$as_me: failed program was:" >&5
18520 sed 's/^/| /' conftest.$ac_ext >&5
18522 { echo "$as_me:$LINENO: result: no" >&5
18523 echo "${ECHO_T}no" >&6; }
18527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18529 { echo "$as_me:$LINENO: checking for getpagesize" >&5
18530 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; }
18531 cat >conftest.$ac_ext <<_ACEOF
18532 /* confdefs.h. */
18533 _ACEOF
18534 cat confdefs.h >>conftest.$ac_ext
18535 cat >>conftest.$ac_ext <<_ACEOF
18536 /* end confdefs.h. */
18538 #include "confdefs.h"
18539 #include <unistd.h>
18542 main ()
18544 void* p = getpagesize
18546 return 0;
18548 _ACEOF
18549 rm -f conftest.$ac_objext
18550 if { (ac_try="$ac_compile"
18551 case "(($ac_try" in
18552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18553 *) ac_try_echo=$ac_try;;
18554 esac
18555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18556 (eval "$ac_compile") 2>conftest.er1
18557 ac_status=$?
18558 grep -v '^ *+' conftest.er1 >conftest.err
18559 rm -f conftest.er1
18560 cat conftest.err >&5
18561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18562 (exit $ac_status); } && {
18563 test -z "$ac_c_werror_flag" ||
18564 test ! -s conftest.err
18565 } && test -s conftest.$ac_objext; then
18567 cat >>confdefs.h <<\_ACEOF
18568 #define HAVE_GETPAGESIZE 1
18569 _ACEOF
18571 { echo "$as_me:$LINENO: result: yes" >&5
18572 echo "${ECHO_T}yes" >&6; }
18573 else
18574 echo "$as_me: failed program was:" >&5
18575 sed 's/^/| /' conftest.$ac_ext >&5
18577 { echo "$as_me:$LINENO: result: no" >&5
18578 echo "${ECHO_T}no" >&6; }
18582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18584 for ac_prog in true
18586 # Extract the first word of "$ac_prog", so it can be a program name with args.
18587 set dummy $ac_prog; ac_word=$2
18588 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18590 if test "${ac_cv_prog_TRUE+set}" = set; then
18591 echo $ECHO_N "(cached) $ECHO_C" >&6
18592 else
18593 if test -n "$TRUE"; then
18594 ac_cv_prog_TRUE="$TRUE" # Let the user override the test.
18595 else
18596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18597 for as_dir in $PATH
18599 IFS=$as_save_IFS
18600 test -z "$as_dir" && as_dir=.
18601 for ac_exec_ext in '' $ac_executable_extensions; do
18602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18603 ac_cv_prog_TRUE="$ac_prog"
18604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18605 break 2
18607 done
18608 done
18609 IFS=$as_save_IFS
18613 TRUE=$ac_cv_prog_TRUE
18614 if test -n "$TRUE"; then
18615 { echo "$as_me:$LINENO: result: $TRUE" >&5
18616 echo "${ECHO_T}$TRUE" >&6; }
18617 else
18618 { echo "$as_me:$LINENO: result: no" >&5
18619 echo "${ECHO_T}no" >&6; }
18623 test -n "$TRUE" && break
18624 done
18625 test -n "$TRUE" || TRUE="/bin/true"
18628 { echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
18629 echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6; }
18630 if test "${ac_cv_lib_c_inet_aton+set}" = set; then
18631 echo $ECHO_N "(cached) $ECHO_C" >&6
18632 else
18633 ac_check_lib_save_LIBS=$LIBS
18634 LIBS="-lc $LIBS"
18635 cat >conftest.$ac_ext <<_ACEOF
18636 /* confdefs.h. */
18637 _ACEOF
18638 cat confdefs.h >>conftest.$ac_ext
18639 cat >>conftest.$ac_ext <<_ACEOF
18640 /* end confdefs.h. */
18642 /* Override any GCC internal prototype to avoid an error.
18643 Use char because int might match the return type of a GCC
18644 builtin and then its argument prototype would still apply. */
18645 #ifdef __cplusplus
18646 extern "C"
18647 #endif
18648 char inet_aton ();
18650 main ()
18652 return inet_aton ();
18654 return 0;
18656 _ACEOF
18657 rm -f conftest.$ac_objext conftest$ac_exeext
18658 if { (ac_try="$ac_link"
18659 case "(($ac_try" in
18660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18661 *) ac_try_echo=$ac_try;;
18662 esac
18663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18664 (eval "$ac_link") 2>conftest.er1
18665 ac_status=$?
18666 grep -v '^ *+' conftest.er1 >conftest.err
18667 rm -f conftest.er1
18668 cat conftest.err >&5
18669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18670 (exit $ac_status); } && {
18671 test -z "$ac_c_werror_flag" ||
18672 test ! -s conftest.err
18673 } && test -s conftest$ac_exeext &&
18674 $as_test_x conftest$ac_exeext; then
18675 ac_cv_lib_c_inet_aton=yes
18676 else
18677 echo "$as_me: failed program was:" >&5
18678 sed 's/^/| /' conftest.$ac_ext >&5
18680 ac_cv_lib_c_inet_aton=no
18683 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18684 conftest$ac_exeext conftest.$ac_ext
18685 LIBS=$ac_check_lib_save_LIBS
18687 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
18688 echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6; }
18689 if test $ac_cv_lib_c_inet_aton = yes; then
18690 $ac_cv_prog_TRUE
18691 else
18693 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
18694 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
18695 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
18696 echo $ECHO_N "(cached) $ECHO_C" >&6
18697 else
18698 ac_check_lib_save_LIBS=$LIBS
18699 LIBS="-lresolv $LIBS"
18700 cat >conftest.$ac_ext <<_ACEOF
18701 /* confdefs.h. */
18702 _ACEOF
18703 cat confdefs.h >>conftest.$ac_ext
18704 cat >>conftest.$ac_ext <<_ACEOF
18705 /* end confdefs.h. */
18707 /* Override any GCC internal prototype to avoid an error.
18708 Use char because int might match the return type of a GCC
18709 builtin and then its argument prototype would still apply. */
18710 #ifdef __cplusplus
18711 extern "C"
18712 #endif
18713 char inet_aton ();
18715 main ()
18717 return inet_aton ();
18719 return 0;
18721 _ACEOF
18722 rm -f conftest.$ac_objext conftest$ac_exeext
18723 if { (ac_try="$ac_link"
18724 case "(($ac_try" in
18725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18726 *) ac_try_echo=$ac_try;;
18727 esac
18728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18729 (eval "$ac_link") 2>conftest.er1
18730 ac_status=$?
18731 grep -v '^ *+' conftest.er1 >conftest.err
18732 rm -f conftest.er1
18733 cat conftest.err >&5
18734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18735 (exit $ac_status); } && {
18736 test -z "$ac_c_werror_flag" ||
18737 test ! -s conftest.err
18738 } && test -s conftest$ac_exeext &&
18739 $as_test_x conftest$ac_exeext; then
18740 ac_cv_lib_resolv_inet_aton=yes
18741 else
18742 echo "$as_me: failed program was:" >&5
18743 sed 's/^/| /' conftest.$ac_ext >&5
18745 ac_cv_lib_resolv_inet_aton=no
18748 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18749 conftest$ac_exeext conftest.$ac_ext
18750 LIBS=$ac_check_lib_save_LIBS
18752 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
18753 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
18754 if test $ac_cv_lib_resolv_inet_aton = yes; then
18755 cat >>confdefs.h <<_ACEOF
18756 #define HAVE_LIBRESOLV 1
18757 _ACEOF
18759 LIBS="-lresolv $LIBS"
18767 # On Tru64, chflags seems to be present, but calling it will
18768 # exit Python
18769 { echo "$as_me:$LINENO: checking for chflags" >&5
18770 echo $ECHO_N "checking for chflags... $ECHO_C" >&6; }
18771 if test "${ac_cv_have_chflags+set}" = set; then
18772 echo $ECHO_N "(cached) $ECHO_C" >&6
18773 else
18774 if test "$cross_compiling" = yes; then
18775 ac_cv_have_chflags=no
18776 else
18777 cat >conftest.$ac_ext <<_ACEOF
18778 /* confdefs.h. */
18779 _ACEOF
18780 cat confdefs.h >>conftest.$ac_ext
18781 cat >>conftest.$ac_ext <<_ACEOF
18782 /* end confdefs.h. */
18784 #include <sys/stat.h>
18785 #include <unistd.h>
18786 int main(int argc, char*argv[])
18788 if(chflags(argv[0], 0) != 0)
18789 return 1;
18790 return 0;
18793 _ACEOF
18794 rm -f conftest$ac_exeext
18795 if { (ac_try="$ac_link"
18796 case "(($ac_try" in
18797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18798 *) ac_try_echo=$ac_try;;
18799 esac
18800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18801 (eval "$ac_link") 2>&5
18802 ac_status=$?
18803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18804 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18805 { (case "(($ac_try" in
18806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18807 *) ac_try_echo=$ac_try;;
18808 esac
18809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18810 (eval "$ac_try") 2>&5
18811 ac_status=$?
18812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18813 (exit $ac_status); }; }; then
18814 ac_cv_have_chflags=yes
18815 else
18816 echo "$as_me: program exited with status $ac_status" >&5
18817 echo "$as_me: failed program was:" >&5
18818 sed 's/^/| /' conftest.$ac_ext >&5
18820 ( exit $ac_status )
18821 ac_cv_have_chflags=no
18823 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18830 { echo "$as_me:$LINENO: result: $ac_cv_have_chflags" >&5
18831 echo "${ECHO_T}$ac_cv_have_chflags" >&6; }
18832 if test $ac_cv_have_chflags = yes
18833 then
18835 cat >>confdefs.h <<\_ACEOF
18836 #define HAVE_CHFLAGS 1
18837 _ACEOF
18841 { echo "$as_me:$LINENO: checking for lchflags" >&5
18842 echo $ECHO_N "checking for lchflags... $ECHO_C" >&6; }
18843 if test "${ac_cv_have_lchflags+set}" = set; then
18844 echo $ECHO_N "(cached) $ECHO_C" >&6
18845 else
18846 if test "$cross_compiling" = yes; then
18847 ac_cv_have_lchflags=no
18848 else
18849 cat >conftest.$ac_ext <<_ACEOF
18850 /* confdefs.h. */
18851 _ACEOF
18852 cat confdefs.h >>conftest.$ac_ext
18853 cat >>conftest.$ac_ext <<_ACEOF
18854 /* end confdefs.h. */
18856 #include <sys/stat.h>
18857 #include <unistd.h>
18858 int main(int argc, char*argv[])
18860 if(lchflags(argv[0], 0) != 0)
18861 return 1;
18862 return 0;
18865 _ACEOF
18866 rm -f conftest$ac_exeext
18867 if { (ac_try="$ac_link"
18868 case "(($ac_try" in
18869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18870 *) ac_try_echo=$ac_try;;
18871 esac
18872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18873 (eval "$ac_link") 2>&5
18874 ac_status=$?
18875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18876 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18877 { (case "(($ac_try" in
18878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18879 *) ac_try_echo=$ac_try;;
18880 esac
18881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18882 (eval "$ac_try") 2>&5
18883 ac_status=$?
18884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18885 (exit $ac_status); }; }; then
18886 ac_cv_have_lchflags=yes
18887 else
18888 echo "$as_me: program exited with status $ac_status" >&5
18889 echo "$as_me: failed program was:" >&5
18890 sed 's/^/| /' conftest.$ac_ext >&5
18892 ( exit $ac_status )
18893 ac_cv_have_lchflags=no
18895 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18902 { echo "$as_me:$LINENO: result: $ac_cv_have_lchflags" >&5
18903 echo "${ECHO_T}$ac_cv_have_lchflags" >&6; }
18904 if test $ac_cv_have_lchflags = yes
18905 then
18907 cat >>confdefs.h <<\_ACEOF
18908 #define HAVE_LCHFLAGS 1
18909 _ACEOF
18913 case $ac_sys_system/$ac_sys_release in
18914 Darwin/*)
18915 _CUR_CFLAGS="${CFLAGS}"
18916 _CUR_LDFLAGS="${LDFLAGS}"
18917 CFLAGS="${CFLAGS} -Wl,-search_paths_first"
18918 LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib"
18920 esac
18922 { echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5
18923 echo $ECHO_N "checking for inflateCopy in -lz... $ECHO_C" >&6; }
18924 if test "${ac_cv_lib_z_inflateCopy+set}" = set; then
18925 echo $ECHO_N "(cached) $ECHO_C" >&6
18926 else
18927 ac_check_lib_save_LIBS=$LIBS
18928 LIBS="-lz $LIBS"
18929 cat >conftest.$ac_ext <<_ACEOF
18930 /* confdefs.h. */
18931 _ACEOF
18932 cat confdefs.h >>conftest.$ac_ext
18933 cat >>conftest.$ac_ext <<_ACEOF
18934 /* end confdefs.h. */
18936 /* Override any GCC internal prototype to avoid an error.
18937 Use char because int might match the return type of a GCC
18938 builtin and then its argument prototype would still apply. */
18939 #ifdef __cplusplus
18940 extern "C"
18941 #endif
18942 char inflateCopy ();
18944 main ()
18946 return inflateCopy ();
18948 return 0;
18950 _ACEOF
18951 rm -f conftest.$ac_objext conftest$ac_exeext
18952 if { (ac_try="$ac_link"
18953 case "(($ac_try" in
18954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18955 *) ac_try_echo=$ac_try;;
18956 esac
18957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18958 (eval "$ac_link") 2>conftest.er1
18959 ac_status=$?
18960 grep -v '^ *+' conftest.er1 >conftest.err
18961 rm -f conftest.er1
18962 cat conftest.err >&5
18963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18964 (exit $ac_status); } && {
18965 test -z "$ac_c_werror_flag" ||
18966 test ! -s conftest.err
18967 } && test -s conftest$ac_exeext &&
18968 $as_test_x conftest$ac_exeext; then
18969 ac_cv_lib_z_inflateCopy=yes
18970 else
18971 echo "$as_me: failed program was:" >&5
18972 sed 's/^/| /' conftest.$ac_ext >&5
18974 ac_cv_lib_z_inflateCopy=no
18977 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18978 conftest$ac_exeext conftest.$ac_ext
18979 LIBS=$ac_check_lib_save_LIBS
18981 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5
18982 echo "${ECHO_T}$ac_cv_lib_z_inflateCopy" >&6; }
18983 if test $ac_cv_lib_z_inflateCopy = yes; then
18985 cat >>confdefs.h <<\_ACEOF
18986 #define HAVE_ZLIB_COPY 1
18987 _ACEOF
18992 case $ac_sys_system/$ac_sys_release in
18993 Darwin/*)
18994 CFLAGS="${_CUR_CFLAGS}"
18995 LDFLAGS="${_CUR_LDFLAGS}"
18997 esac
18999 { echo "$as_me:$LINENO: checking for hstrerror" >&5
19000 echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6; }
19001 cat >conftest.$ac_ext <<_ACEOF
19002 /* confdefs.h. */
19003 _ACEOF
19004 cat confdefs.h >>conftest.$ac_ext
19005 cat >>conftest.$ac_ext <<_ACEOF
19006 /* end confdefs.h. */
19008 #include "confdefs.h"
19009 #include <netdb.h>
19012 main ()
19014 void* p = hstrerror; hstrerror(0)
19016 return 0;
19018 _ACEOF
19019 rm -f conftest.$ac_objext conftest$ac_exeext
19020 if { (ac_try="$ac_link"
19021 case "(($ac_try" in
19022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19023 *) ac_try_echo=$ac_try;;
19024 esac
19025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19026 (eval "$ac_link") 2>conftest.er1
19027 ac_status=$?
19028 grep -v '^ *+' conftest.er1 >conftest.err
19029 rm -f conftest.er1
19030 cat conftest.err >&5
19031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19032 (exit $ac_status); } && {
19033 test -z "$ac_c_werror_flag" ||
19034 test ! -s conftest.err
19035 } && test -s conftest$ac_exeext &&
19036 $as_test_x conftest$ac_exeext; then
19038 cat >>confdefs.h <<\_ACEOF
19039 #define HAVE_HSTRERROR 1
19040 _ACEOF
19042 { echo "$as_me:$LINENO: result: yes" >&5
19043 echo "${ECHO_T}yes" >&6; }
19044 else
19045 echo "$as_me: failed program was:" >&5
19046 sed 's/^/| /' conftest.$ac_ext >&5
19048 { echo "$as_me:$LINENO: result: no" >&5
19049 echo "${ECHO_T}no" >&6; }
19053 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19054 conftest$ac_exeext conftest.$ac_ext
19056 { echo "$as_me:$LINENO: checking for inet_aton" >&5
19057 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
19058 cat >conftest.$ac_ext <<_ACEOF
19059 /* confdefs.h. */
19060 _ACEOF
19061 cat confdefs.h >>conftest.$ac_ext
19062 cat >>conftest.$ac_ext <<_ACEOF
19063 /* end confdefs.h. */
19065 #include "confdefs.h"
19066 #include <sys/types.h>
19067 #include <sys/socket.h>
19068 #include <netinet/in.h>
19069 #include <arpa/inet.h>
19072 main ()
19074 void* p = inet_aton;inet_aton(0,0)
19076 return 0;
19078 _ACEOF
19079 rm -f conftest.$ac_objext conftest$ac_exeext
19080 if { (ac_try="$ac_link"
19081 case "(($ac_try" in
19082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19083 *) ac_try_echo=$ac_try;;
19084 esac
19085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19086 (eval "$ac_link") 2>conftest.er1
19087 ac_status=$?
19088 grep -v '^ *+' conftest.er1 >conftest.err
19089 rm -f conftest.er1
19090 cat conftest.err >&5
19091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19092 (exit $ac_status); } && {
19093 test -z "$ac_c_werror_flag" ||
19094 test ! -s conftest.err
19095 } && test -s conftest$ac_exeext &&
19096 $as_test_x conftest$ac_exeext; then
19098 cat >>confdefs.h <<\_ACEOF
19099 #define HAVE_INET_ATON 1
19100 _ACEOF
19102 { echo "$as_me:$LINENO: result: yes" >&5
19103 echo "${ECHO_T}yes" >&6; }
19104 else
19105 echo "$as_me: failed program was:" >&5
19106 sed 's/^/| /' conftest.$ac_ext >&5
19108 { echo "$as_me:$LINENO: result: no" >&5
19109 echo "${ECHO_T}no" >&6; }
19113 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19114 conftest$ac_exeext conftest.$ac_ext
19116 { echo "$as_me:$LINENO: checking for inet_pton" >&5
19117 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
19118 cat >conftest.$ac_ext <<_ACEOF
19119 /* confdefs.h. */
19120 _ACEOF
19121 cat confdefs.h >>conftest.$ac_ext
19122 cat >>conftest.$ac_ext <<_ACEOF
19123 /* end confdefs.h. */
19125 #include "confdefs.h"
19126 #include <sys/types.h>
19127 #include <sys/socket.h>
19128 #include <netinet/in.h>
19129 #include <arpa/inet.h>
19132 main ()
19134 void* p = inet_pton
19136 return 0;
19138 _ACEOF
19139 rm -f conftest.$ac_objext
19140 if { (ac_try="$ac_compile"
19141 case "(($ac_try" in
19142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19143 *) ac_try_echo=$ac_try;;
19144 esac
19145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19146 (eval "$ac_compile") 2>conftest.er1
19147 ac_status=$?
19148 grep -v '^ *+' conftest.er1 >conftest.err
19149 rm -f conftest.er1
19150 cat conftest.err >&5
19151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19152 (exit $ac_status); } && {
19153 test -z "$ac_c_werror_flag" ||
19154 test ! -s conftest.err
19155 } && test -s conftest.$ac_objext; then
19157 cat >>confdefs.h <<\_ACEOF
19158 #define HAVE_INET_PTON 1
19159 _ACEOF
19161 { echo "$as_me:$LINENO: result: yes" >&5
19162 echo "${ECHO_T}yes" >&6; }
19163 else
19164 echo "$as_me: failed program was:" >&5
19165 sed 's/^/| /' conftest.$ac_ext >&5
19167 { echo "$as_me:$LINENO: result: no" >&5
19168 echo "${ECHO_T}no" >&6; }
19172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19174 # On some systems, setgroups is in unistd.h, on others, in grp.h
19175 { echo "$as_me:$LINENO: checking for setgroups" >&5
19176 echo $ECHO_N "checking for setgroups... $ECHO_C" >&6; }
19177 cat >conftest.$ac_ext <<_ACEOF
19178 /* confdefs.h. */
19179 _ACEOF
19180 cat confdefs.h >>conftest.$ac_ext
19181 cat >>conftest.$ac_ext <<_ACEOF
19182 /* end confdefs.h. */
19184 #include "confdefs.h"
19185 #include <unistd.h>
19186 #ifdef HAVE_GRP_H
19187 #include <grp.h>
19188 #endif
19191 main ()
19193 void* p = setgroups
19195 return 0;
19197 _ACEOF
19198 rm -f conftest.$ac_objext
19199 if { (ac_try="$ac_compile"
19200 case "(($ac_try" in
19201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19202 *) ac_try_echo=$ac_try;;
19203 esac
19204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19205 (eval "$ac_compile") 2>conftest.er1
19206 ac_status=$?
19207 grep -v '^ *+' conftest.er1 >conftest.err
19208 rm -f conftest.er1
19209 cat conftest.err >&5
19210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19211 (exit $ac_status); } && {
19212 test -z "$ac_c_werror_flag" ||
19213 test ! -s conftest.err
19214 } && test -s conftest.$ac_objext; then
19216 cat >>confdefs.h <<\_ACEOF
19217 #define HAVE_SETGROUPS 1
19218 _ACEOF
19220 { echo "$as_me:$LINENO: result: yes" >&5
19221 echo "${ECHO_T}yes" >&6; }
19222 else
19223 echo "$as_me: failed program was:" >&5
19224 sed 's/^/| /' conftest.$ac_ext >&5
19226 { echo "$as_me:$LINENO: result: no" >&5
19227 echo "${ECHO_T}no" >&6; }
19231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19233 # check for openpty and forkpty
19236 for ac_func in openpty
19238 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19239 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19240 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19241 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19242 echo $ECHO_N "(cached) $ECHO_C" >&6
19243 else
19244 cat >conftest.$ac_ext <<_ACEOF
19245 /* confdefs.h. */
19246 _ACEOF
19247 cat confdefs.h >>conftest.$ac_ext
19248 cat >>conftest.$ac_ext <<_ACEOF
19249 /* end confdefs.h. */
19250 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19251 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19252 #define $ac_func innocuous_$ac_func
19254 /* System header to define __stub macros and hopefully few prototypes,
19255 which can conflict with char $ac_func (); below.
19256 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19257 <limits.h> exists even on freestanding compilers. */
19259 #ifdef __STDC__
19260 # include <limits.h>
19261 #else
19262 # include <assert.h>
19263 #endif
19265 #undef $ac_func
19267 /* Override any GCC internal prototype to avoid an error.
19268 Use char because int might match the return type of a GCC
19269 builtin and then its argument prototype would still apply. */
19270 #ifdef __cplusplus
19271 extern "C"
19272 #endif
19273 char $ac_func ();
19274 /* The GNU C library defines this for functions which it implements
19275 to always fail with ENOSYS. Some functions are actually named
19276 something starting with __ and the normal name is an alias. */
19277 #if defined __stub_$ac_func || defined __stub___$ac_func
19278 choke me
19279 #endif
19282 main ()
19284 return $ac_func ();
19286 return 0;
19288 _ACEOF
19289 rm -f conftest.$ac_objext conftest$ac_exeext
19290 if { (ac_try="$ac_link"
19291 case "(($ac_try" in
19292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19293 *) ac_try_echo=$ac_try;;
19294 esac
19295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19296 (eval "$ac_link") 2>conftest.er1
19297 ac_status=$?
19298 grep -v '^ *+' conftest.er1 >conftest.err
19299 rm -f conftest.er1
19300 cat conftest.err >&5
19301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19302 (exit $ac_status); } && {
19303 test -z "$ac_c_werror_flag" ||
19304 test ! -s conftest.err
19305 } && test -s conftest$ac_exeext &&
19306 $as_test_x conftest$ac_exeext; then
19307 eval "$as_ac_var=yes"
19308 else
19309 echo "$as_me: failed program was:" >&5
19310 sed 's/^/| /' conftest.$ac_ext >&5
19312 eval "$as_ac_var=no"
19315 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19316 conftest$ac_exeext conftest.$ac_ext
19318 ac_res=`eval echo '${'$as_ac_var'}'`
19319 { echo "$as_me:$LINENO: result: $ac_res" >&5
19320 echo "${ECHO_T}$ac_res" >&6; }
19321 if test `eval echo '${'$as_ac_var'}'` = yes; then
19322 cat >>confdefs.h <<_ACEOF
19323 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19324 _ACEOF
19326 else
19327 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
19328 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
19329 if test "${ac_cv_lib_util_openpty+set}" = set; then
19330 echo $ECHO_N "(cached) $ECHO_C" >&6
19331 else
19332 ac_check_lib_save_LIBS=$LIBS
19333 LIBS="-lutil $LIBS"
19334 cat >conftest.$ac_ext <<_ACEOF
19335 /* confdefs.h. */
19336 _ACEOF
19337 cat confdefs.h >>conftest.$ac_ext
19338 cat >>conftest.$ac_ext <<_ACEOF
19339 /* end confdefs.h. */
19341 /* Override any GCC internal prototype to avoid an error.
19342 Use char because int might match the return type of a GCC
19343 builtin and then its argument prototype would still apply. */
19344 #ifdef __cplusplus
19345 extern "C"
19346 #endif
19347 char openpty ();
19349 main ()
19351 return openpty ();
19353 return 0;
19355 _ACEOF
19356 rm -f conftest.$ac_objext conftest$ac_exeext
19357 if { (ac_try="$ac_link"
19358 case "(($ac_try" in
19359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19360 *) ac_try_echo=$ac_try;;
19361 esac
19362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19363 (eval "$ac_link") 2>conftest.er1
19364 ac_status=$?
19365 grep -v '^ *+' conftest.er1 >conftest.err
19366 rm -f conftest.er1
19367 cat conftest.err >&5
19368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19369 (exit $ac_status); } && {
19370 test -z "$ac_c_werror_flag" ||
19371 test ! -s conftest.err
19372 } && test -s conftest$ac_exeext &&
19373 $as_test_x conftest$ac_exeext; then
19374 ac_cv_lib_util_openpty=yes
19375 else
19376 echo "$as_me: failed program was:" >&5
19377 sed 's/^/| /' conftest.$ac_ext >&5
19379 ac_cv_lib_util_openpty=no
19382 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19383 conftest$ac_exeext conftest.$ac_ext
19384 LIBS=$ac_check_lib_save_LIBS
19386 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
19387 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
19388 if test $ac_cv_lib_util_openpty = yes; then
19389 cat >>confdefs.h <<\_ACEOF
19390 #define HAVE_OPENPTY 1
19391 _ACEOF
19392 LIBS="$LIBS -lutil"
19393 else
19394 { echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
19395 echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6; }
19396 if test "${ac_cv_lib_bsd_openpty+set}" = set; then
19397 echo $ECHO_N "(cached) $ECHO_C" >&6
19398 else
19399 ac_check_lib_save_LIBS=$LIBS
19400 LIBS="-lbsd $LIBS"
19401 cat >conftest.$ac_ext <<_ACEOF
19402 /* confdefs.h. */
19403 _ACEOF
19404 cat confdefs.h >>conftest.$ac_ext
19405 cat >>conftest.$ac_ext <<_ACEOF
19406 /* end confdefs.h. */
19408 /* Override any GCC internal prototype to avoid an error.
19409 Use char because int might match the return type of a GCC
19410 builtin and then its argument prototype would still apply. */
19411 #ifdef __cplusplus
19412 extern "C"
19413 #endif
19414 char openpty ();
19416 main ()
19418 return openpty ();
19420 return 0;
19422 _ACEOF
19423 rm -f conftest.$ac_objext conftest$ac_exeext
19424 if { (ac_try="$ac_link"
19425 case "(($ac_try" in
19426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19427 *) ac_try_echo=$ac_try;;
19428 esac
19429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19430 (eval "$ac_link") 2>conftest.er1
19431 ac_status=$?
19432 grep -v '^ *+' conftest.er1 >conftest.err
19433 rm -f conftest.er1
19434 cat conftest.err >&5
19435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19436 (exit $ac_status); } && {
19437 test -z "$ac_c_werror_flag" ||
19438 test ! -s conftest.err
19439 } && test -s conftest$ac_exeext &&
19440 $as_test_x conftest$ac_exeext; then
19441 ac_cv_lib_bsd_openpty=yes
19442 else
19443 echo "$as_me: failed program was:" >&5
19444 sed 's/^/| /' conftest.$ac_ext >&5
19446 ac_cv_lib_bsd_openpty=no
19449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19450 conftest$ac_exeext conftest.$ac_ext
19451 LIBS=$ac_check_lib_save_LIBS
19453 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
19454 echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6; }
19455 if test $ac_cv_lib_bsd_openpty = yes; then
19456 cat >>confdefs.h <<\_ACEOF
19457 #define HAVE_OPENPTY 1
19458 _ACEOF
19459 LIBS="$LIBS -lbsd"
19467 done
19470 for ac_func in forkpty
19472 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19473 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19474 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19475 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19476 echo $ECHO_N "(cached) $ECHO_C" >&6
19477 else
19478 cat >conftest.$ac_ext <<_ACEOF
19479 /* confdefs.h. */
19480 _ACEOF
19481 cat confdefs.h >>conftest.$ac_ext
19482 cat >>conftest.$ac_ext <<_ACEOF
19483 /* end confdefs.h. */
19484 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19485 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19486 #define $ac_func innocuous_$ac_func
19488 /* System header to define __stub macros and hopefully few prototypes,
19489 which can conflict with char $ac_func (); below.
19490 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19491 <limits.h> exists even on freestanding compilers. */
19493 #ifdef __STDC__
19494 # include <limits.h>
19495 #else
19496 # include <assert.h>
19497 #endif
19499 #undef $ac_func
19501 /* Override any GCC internal prototype to avoid an error.
19502 Use char because int might match the return type of a GCC
19503 builtin and then its argument prototype would still apply. */
19504 #ifdef __cplusplus
19505 extern "C"
19506 #endif
19507 char $ac_func ();
19508 /* The GNU C library defines this for functions which it implements
19509 to always fail with ENOSYS. Some functions are actually named
19510 something starting with __ and the normal name is an alias. */
19511 #if defined __stub_$ac_func || defined __stub___$ac_func
19512 choke me
19513 #endif
19516 main ()
19518 return $ac_func ();
19520 return 0;
19522 _ACEOF
19523 rm -f conftest.$ac_objext conftest$ac_exeext
19524 if { (ac_try="$ac_link"
19525 case "(($ac_try" in
19526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19527 *) ac_try_echo=$ac_try;;
19528 esac
19529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19530 (eval "$ac_link") 2>conftest.er1
19531 ac_status=$?
19532 grep -v '^ *+' conftest.er1 >conftest.err
19533 rm -f conftest.er1
19534 cat conftest.err >&5
19535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19536 (exit $ac_status); } && {
19537 test -z "$ac_c_werror_flag" ||
19538 test ! -s conftest.err
19539 } && test -s conftest$ac_exeext &&
19540 $as_test_x conftest$ac_exeext; then
19541 eval "$as_ac_var=yes"
19542 else
19543 echo "$as_me: failed program was:" >&5
19544 sed 's/^/| /' conftest.$ac_ext >&5
19546 eval "$as_ac_var=no"
19549 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19550 conftest$ac_exeext conftest.$ac_ext
19552 ac_res=`eval echo '${'$as_ac_var'}'`
19553 { echo "$as_me:$LINENO: result: $ac_res" >&5
19554 echo "${ECHO_T}$ac_res" >&6; }
19555 if test `eval echo '${'$as_ac_var'}'` = yes; then
19556 cat >>confdefs.h <<_ACEOF
19557 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19558 _ACEOF
19560 else
19561 { echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
19562 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6; }
19563 if test "${ac_cv_lib_util_forkpty+set}" = set; then
19564 echo $ECHO_N "(cached) $ECHO_C" >&6
19565 else
19566 ac_check_lib_save_LIBS=$LIBS
19567 LIBS="-lutil $LIBS"
19568 cat >conftest.$ac_ext <<_ACEOF
19569 /* confdefs.h. */
19570 _ACEOF
19571 cat confdefs.h >>conftest.$ac_ext
19572 cat >>conftest.$ac_ext <<_ACEOF
19573 /* end confdefs.h. */
19575 /* Override any GCC internal prototype to avoid an error.
19576 Use char because int might match the return type of a GCC
19577 builtin and then its argument prototype would still apply. */
19578 #ifdef __cplusplus
19579 extern "C"
19580 #endif
19581 char forkpty ();
19583 main ()
19585 return forkpty ();
19587 return 0;
19589 _ACEOF
19590 rm -f conftest.$ac_objext conftest$ac_exeext
19591 if { (ac_try="$ac_link"
19592 case "(($ac_try" in
19593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19594 *) ac_try_echo=$ac_try;;
19595 esac
19596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19597 (eval "$ac_link") 2>conftest.er1
19598 ac_status=$?
19599 grep -v '^ *+' conftest.er1 >conftest.err
19600 rm -f conftest.er1
19601 cat conftest.err >&5
19602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19603 (exit $ac_status); } && {
19604 test -z "$ac_c_werror_flag" ||
19605 test ! -s conftest.err
19606 } && test -s conftest$ac_exeext &&
19607 $as_test_x conftest$ac_exeext; then
19608 ac_cv_lib_util_forkpty=yes
19609 else
19610 echo "$as_me: failed program was:" >&5
19611 sed 's/^/| /' conftest.$ac_ext >&5
19613 ac_cv_lib_util_forkpty=no
19616 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19617 conftest$ac_exeext conftest.$ac_ext
19618 LIBS=$ac_check_lib_save_LIBS
19620 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
19621 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6; }
19622 if test $ac_cv_lib_util_forkpty = yes; then
19623 cat >>confdefs.h <<\_ACEOF
19624 #define HAVE_FORKPTY 1
19625 _ACEOF
19626 LIBS="$LIBS -lutil"
19627 else
19628 { echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
19629 echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6; }
19630 if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
19631 echo $ECHO_N "(cached) $ECHO_C" >&6
19632 else
19633 ac_check_lib_save_LIBS=$LIBS
19634 LIBS="-lbsd $LIBS"
19635 cat >conftest.$ac_ext <<_ACEOF
19636 /* confdefs.h. */
19637 _ACEOF
19638 cat confdefs.h >>conftest.$ac_ext
19639 cat >>conftest.$ac_ext <<_ACEOF
19640 /* end confdefs.h. */
19642 /* Override any GCC internal prototype to avoid an error.
19643 Use char because int might match the return type of a GCC
19644 builtin and then its argument prototype would still apply. */
19645 #ifdef __cplusplus
19646 extern "C"
19647 #endif
19648 char forkpty ();
19650 main ()
19652 return forkpty ();
19654 return 0;
19656 _ACEOF
19657 rm -f conftest.$ac_objext conftest$ac_exeext
19658 if { (ac_try="$ac_link"
19659 case "(($ac_try" in
19660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19661 *) ac_try_echo=$ac_try;;
19662 esac
19663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19664 (eval "$ac_link") 2>conftest.er1
19665 ac_status=$?
19666 grep -v '^ *+' conftest.er1 >conftest.err
19667 rm -f conftest.er1
19668 cat conftest.err >&5
19669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19670 (exit $ac_status); } && {
19671 test -z "$ac_c_werror_flag" ||
19672 test ! -s conftest.err
19673 } && test -s conftest$ac_exeext &&
19674 $as_test_x conftest$ac_exeext; then
19675 ac_cv_lib_bsd_forkpty=yes
19676 else
19677 echo "$as_me: failed program was:" >&5
19678 sed 's/^/| /' conftest.$ac_ext >&5
19680 ac_cv_lib_bsd_forkpty=no
19683 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19684 conftest$ac_exeext conftest.$ac_ext
19685 LIBS=$ac_check_lib_save_LIBS
19687 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
19688 echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6; }
19689 if test $ac_cv_lib_bsd_forkpty = yes; then
19690 cat >>confdefs.h <<\_ACEOF
19691 #define HAVE_FORKPTY 1
19692 _ACEOF
19693 LIBS="$LIBS -lbsd"
19701 done
19704 # Stuff for expat.
19706 for ac_func in memmove
19708 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19709 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19710 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19711 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19712 echo $ECHO_N "(cached) $ECHO_C" >&6
19713 else
19714 cat >conftest.$ac_ext <<_ACEOF
19715 /* confdefs.h. */
19716 _ACEOF
19717 cat confdefs.h >>conftest.$ac_ext
19718 cat >>conftest.$ac_ext <<_ACEOF
19719 /* end confdefs.h. */
19720 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19721 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19722 #define $ac_func innocuous_$ac_func
19724 /* System header to define __stub macros and hopefully few prototypes,
19725 which can conflict with char $ac_func (); below.
19726 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19727 <limits.h> exists even on freestanding compilers. */
19729 #ifdef __STDC__
19730 # include <limits.h>
19731 #else
19732 # include <assert.h>
19733 #endif
19735 #undef $ac_func
19737 /* Override any GCC internal prototype to avoid an error.
19738 Use char because int might match the return type of a GCC
19739 builtin and then its argument prototype would still apply. */
19740 #ifdef __cplusplus
19741 extern "C"
19742 #endif
19743 char $ac_func ();
19744 /* The GNU C library defines this for functions which it implements
19745 to always fail with ENOSYS. Some functions are actually named
19746 something starting with __ and the normal name is an alias. */
19747 #if defined __stub_$ac_func || defined __stub___$ac_func
19748 choke me
19749 #endif
19752 main ()
19754 return $ac_func ();
19756 return 0;
19758 _ACEOF
19759 rm -f conftest.$ac_objext conftest$ac_exeext
19760 if { (ac_try="$ac_link"
19761 case "(($ac_try" in
19762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19763 *) ac_try_echo=$ac_try;;
19764 esac
19765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19766 (eval "$ac_link") 2>conftest.er1
19767 ac_status=$?
19768 grep -v '^ *+' conftest.er1 >conftest.err
19769 rm -f conftest.er1
19770 cat conftest.err >&5
19771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19772 (exit $ac_status); } && {
19773 test -z "$ac_c_werror_flag" ||
19774 test ! -s conftest.err
19775 } && test -s conftest$ac_exeext &&
19776 $as_test_x conftest$ac_exeext; then
19777 eval "$as_ac_var=yes"
19778 else
19779 echo "$as_me: failed program was:" >&5
19780 sed 's/^/| /' conftest.$ac_ext >&5
19782 eval "$as_ac_var=no"
19785 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19786 conftest$ac_exeext conftest.$ac_ext
19788 ac_res=`eval echo '${'$as_ac_var'}'`
19789 { echo "$as_me:$LINENO: result: $ac_res" >&5
19790 echo "${ECHO_T}$ac_res" >&6; }
19791 if test `eval echo '${'$as_ac_var'}'` = yes; then
19792 cat >>confdefs.h <<_ACEOF
19793 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19794 _ACEOF
19797 done
19800 # check for long file support functions
19807 for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs
19809 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19810 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19811 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19812 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19813 echo $ECHO_N "(cached) $ECHO_C" >&6
19814 else
19815 cat >conftest.$ac_ext <<_ACEOF
19816 /* confdefs.h. */
19817 _ACEOF
19818 cat confdefs.h >>conftest.$ac_ext
19819 cat >>conftest.$ac_ext <<_ACEOF
19820 /* end confdefs.h. */
19821 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19822 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19823 #define $ac_func innocuous_$ac_func
19825 /* System header to define __stub macros and hopefully few prototypes,
19826 which can conflict with char $ac_func (); below.
19827 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19828 <limits.h> exists even on freestanding compilers. */
19830 #ifdef __STDC__
19831 # include <limits.h>
19832 #else
19833 # include <assert.h>
19834 #endif
19836 #undef $ac_func
19838 /* Override any GCC internal prototype to avoid an error.
19839 Use char because int might match the return type of a GCC
19840 builtin and then its argument prototype would still apply. */
19841 #ifdef __cplusplus
19842 extern "C"
19843 #endif
19844 char $ac_func ();
19845 /* The GNU C library defines this for functions which it implements
19846 to always fail with ENOSYS. Some functions are actually named
19847 something starting with __ and the normal name is an alias. */
19848 #if defined __stub_$ac_func || defined __stub___$ac_func
19849 choke me
19850 #endif
19853 main ()
19855 return $ac_func ();
19857 return 0;
19859 _ACEOF
19860 rm -f conftest.$ac_objext conftest$ac_exeext
19861 if { (ac_try="$ac_link"
19862 case "(($ac_try" in
19863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19864 *) ac_try_echo=$ac_try;;
19865 esac
19866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19867 (eval "$ac_link") 2>conftest.er1
19868 ac_status=$?
19869 grep -v '^ *+' conftest.er1 >conftest.err
19870 rm -f conftest.er1
19871 cat conftest.err >&5
19872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19873 (exit $ac_status); } && {
19874 test -z "$ac_c_werror_flag" ||
19875 test ! -s conftest.err
19876 } && test -s conftest$ac_exeext &&
19877 $as_test_x conftest$ac_exeext; then
19878 eval "$as_ac_var=yes"
19879 else
19880 echo "$as_me: failed program was:" >&5
19881 sed 's/^/| /' conftest.$ac_ext >&5
19883 eval "$as_ac_var=no"
19886 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19887 conftest$ac_exeext conftest.$ac_ext
19889 ac_res=`eval echo '${'$as_ac_var'}'`
19890 { echo "$as_me:$LINENO: result: $ac_res" >&5
19891 echo "${ECHO_T}$ac_res" >&6; }
19892 if test `eval echo '${'$as_ac_var'}'` = yes; then
19893 cat >>confdefs.h <<_ACEOF
19894 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19895 _ACEOF
19898 done
19904 for ac_func in dup2 getcwd strdup
19906 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19907 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19908 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19909 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19910 echo $ECHO_N "(cached) $ECHO_C" >&6
19911 else
19912 cat >conftest.$ac_ext <<_ACEOF
19913 /* confdefs.h. */
19914 _ACEOF
19915 cat confdefs.h >>conftest.$ac_ext
19916 cat >>conftest.$ac_ext <<_ACEOF
19917 /* end confdefs.h. */
19918 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19919 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19920 #define $ac_func innocuous_$ac_func
19922 /* System header to define __stub macros and hopefully few prototypes,
19923 which can conflict with char $ac_func (); below.
19924 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19925 <limits.h> exists even on freestanding compilers. */
19927 #ifdef __STDC__
19928 # include <limits.h>
19929 #else
19930 # include <assert.h>
19931 #endif
19933 #undef $ac_func
19935 /* Override any GCC internal prototype to avoid an error.
19936 Use char because int might match the return type of a GCC
19937 builtin and then its argument prototype would still apply. */
19938 #ifdef __cplusplus
19939 extern "C"
19940 #endif
19941 char $ac_func ();
19942 /* The GNU C library defines this for functions which it implements
19943 to always fail with ENOSYS. Some functions are actually named
19944 something starting with __ and the normal name is an alias. */
19945 #if defined __stub_$ac_func || defined __stub___$ac_func
19946 choke me
19947 #endif
19950 main ()
19952 return $ac_func ();
19954 return 0;
19956 _ACEOF
19957 rm -f conftest.$ac_objext conftest$ac_exeext
19958 if { (ac_try="$ac_link"
19959 case "(($ac_try" in
19960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19961 *) ac_try_echo=$ac_try;;
19962 esac
19963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19964 (eval "$ac_link") 2>conftest.er1
19965 ac_status=$?
19966 grep -v '^ *+' conftest.er1 >conftest.err
19967 rm -f conftest.er1
19968 cat conftest.err >&5
19969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19970 (exit $ac_status); } && {
19971 test -z "$ac_c_werror_flag" ||
19972 test ! -s conftest.err
19973 } && test -s conftest$ac_exeext &&
19974 $as_test_x conftest$ac_exeext; then
19975 eval "$as_ac_var=yes"
19976 else
19977 echo "$as_me: failed program was:" >&5
19978 sed 's/^/| /' conftest.$ac_ext >&5
19980 eval "$as_ac_var=no"
19983 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19984 conftest$ac_exeext conftest.$ac_ext
19986 ac_res=`eval echo '${'$as_ac_var'}'`
19987 { echo "$as_me:$LINENO: result: $ac_res" >&5
19988 echo "${ECHO_T}$ac_res" >&6; }
19989 if test `eval echo '${'$as_ac_var'}'` = yes; then
19990 cat >>confdefs.h <<_ACEOF
19991 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19992 _ACEOF
19994 else
19995 case " $LIBOBJS " in
19996 *" $ac_func.$ac_objext "* ) ;;
19997 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
19999 esac
20002 done
20006 for ac_func in getpgrp
20008 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20009 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20010 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20011 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20012 echo $ECHO_N "(cached) $ECHO_C" >&6
20013 else
20014 cat >conftest.$ac_ext <<_ACEOF
20015 /* confdefs.h. */
20016 _ACEOF
20017 cat confdefs.h >>conftest.$ac_ext
20018 cat >>conftest.$ac_ext <<_ACEOF
20019 /* end confdefs.h. */
20020 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20021 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20022 #define $ac_func innocuous_$ac_func
20024 /* System header to define __stub macros and hopefully few prototypes,
20025 which can conflict with char $ac_func (); below.
20026 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20027 <limits.h> exists even on freestanding compilers. */
20029 #ifdef __STDC__
20030 # include <limits.h>
20031 #else
20032 # include <assert.h>
20033 #endif
20035 #undef $ac_func
20037 /* Override any GCC internal prototype to avoid an error.
20038 Use char because int might match the return type of a GCC
20039 builtin and then its argument prototype would still apply. */
20040 #ifdef __cplusplus
20041 extern "C"
20042 #endif
20043 char $ac_func ();
20044 /* The GNU C library defines this for functions which it implements
20045 to always fail with ENOSYS. Some functions are actually named
20046 something starting with __ and the normal name is an alias. */
20047 #if defined __stub_$ac_func || defined __stub___$ac_func
20048 choke me
20049 #endif
20052 main ()
20054 return $ac_func ();
20056 return 0;
20058 _ACEOF
20059 rm -f conftest.$ac_objext conftest$ac_exeext
20060 if { (ac_try="$ac_link"
20061 case "(($ac_try" in
20062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20063 *) ac_try_echo=$ac_try;;
20064 esac
20065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20066 (eval "$ac_link") 2>conftest.er1
20067 ac_status=$?
20068 grep -v '^ *+' conftest.er1 >conftest.err
20069 rm -f conftest.er1
20070 cat conftest.err >&5
20071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20072 (exit $ac_status); } && {
20073 test -z "$ac_c_werror_flag" ||
20074 test ! -s conftest.err
20075 } && test -s conftest$ac_exeext &&
20076 $as_test_x conftest$ac_exeext; then
20077 eval "$as_ac_var=yes"
20078 else
20079 echo "$as_me: failed program was:" >&5
20080 sed 's/^/| /' conftest.$ac_ext >&5
20082 eval "$as_ac_var=no"
20085 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20086 conftest$ac_exeext conftest.$ac_ext
20088 ac_res=`eval echo '${'$as_ac_var'}'`
20089 { echo "$as_me:$LINENO: result: $ac_res" >&5
20090 echo "${ECHO_T}$ac_res" >&6; }
20091 if test `eval echo '${'$as_ac_var'}'` = yes; then
20092 cat >>confdefs.h <<_ACEOF
20093 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20094 _ACEOF
20095 cat >conftest.$ac_ext <<_ACEOF
20096 /* confdefs.h. */
20097 _ACEOF
20098 cat confdefs.h >>conftest.$ac_ext
20099 cat >>conftest.$ac_ext <<_ACEOF
20100 /* end confdefs.h. */
20101 #include <unistd.h>
20103 main ()
20105 getpgrp(0);
20107 return 0;
20109 _ACEOF
20110 rm -f conftest.$ac_objext
20111 if { (ac_try="$ac_compile"
20112 case "(($ac_try" in
20113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20114 *) ac_try_echo=$ac_try;;
20115 esac
20116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20117 (eval "$ac_compile") 2>conftest.er1
20118 ac_status=$?
20119 grep -v '^ *+' conftest.er1 >conftest.err
20120 rm -f conftest.er1
20121 cat conftest.err >&5
20122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20123 (exit $ac_status); } && {
20124 test -z "$ac_c_werror_flag" ||
20125 test ! -s conftest.err
20126 } && test -s conftest.$ac_objext; then
20128 cat >>confdefs.h <<\_ACEOF
20129 #define GETPGRP_HAVE_ARG 1
20130 _ACEOF
20133 else
20134 echo "$as_me: failed program was:" >&5
20135 sed 's/^/| /' conftest.$ac_ext >&5
20140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20143 done
20146 for ac_func in setpgrp
20148 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20149 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20150 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20151 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20152 echo $ECHO_N "(cached) $ECHO_C" >&6
20153 else
20154 cat >conftest.$ac_ext <<_ACEOF
20155 /* confdefs.h. */
20156 _ACEOF
20157 cat confdefs.h >>conftest.$ac_ext
20158 cat >>conftest.$ac_ext <<_ACEOF
20159 /* end confdefs.h. */
20160 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20161 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20162 #define $ac_func innocuous_$ac_func
20164 /* System header to define __stub macros and hopefully few prototypes,
20165 which can conflict with char $ac_func (); below.
20166 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20167 <limits.h> exists even on freestanding compilers. */
20169 #ifdef __STDC__
20170 # include <limits.h>
20171 #else
20172 # include <assert.h>
20173 #endif
20175 #undef $ac_func
20177 /* Override any GCC internal prototype to avoid an error.
20178 Use char because int might match the return type of a GCC
20179 builtin and then its argument prototype would still apply. */
20180 #ifdef __cplusplus
20181 extern "C"
20182 #endif
20183 char $ac_func ();
20184 /* The GNU C library defines this for functions which it implements
20185 to always fail with ENOSYS. Some functions are actually named
20186 something starting with __ and the normal name is an alias. */
20187 #if defined __stub_$ac_func || defined __stub___$ac_func
20188 choke me
20189 #endif
20192 main ()
20194 return $ac_func ();
20196 return 0;
20198 _ACEOF
20199 rm -f conftest.$ac_objext conftest$ac_exeext
20200 if { (ac_try="$ac_link"
20201 case "(($ac_try" in
20202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20203 *) ac_try_echo=$ac_try;;
20204 esac
20205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20206 (eval "$ac_link") 2>conftest.er1
20207 ac_status=$?
20208 grep -v '^ *+' conftest.er1 >conftest.err
20209 rm -f conftest.er1
20210 cat conftest.err >&5
20211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20212 (exit $ac_status); } && {
20213 test -z "$ac_c_werror_flag" ||
20214 test ! -s conftest.err
20215 } && test -s conftest$ac_exeext &&
20216 $as_test_x conftest$ac_exeext; then
20217 eval "$as_ac_var=yes"
20218 else
20219 echo "$as_me: failed program was:" >&5
20220 sed 's/^/| /' conftest.$ac_ext >&5
20222 eval "$as_ac_var=no"
20225 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20226 conftest$ac_exeext conftest.$ac_ext
20228 ac_res=`eval echo '${'$as_ac_var'}'`
20229 { echo "$as_me:$LINENO: result: $ac_res" >&5
20230 echo "${ECHO_T}$ac_res" >&6; }
20231 if test `eval echo '${'$as_ac_var'}'` = yes; then
20232 cat >>confdefs.h <<_ACEOF
20233 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20234 _ACEOF
20235 cat >conftest.$ac_ext <<_ACEOF
20236 /* confdefs.h. */
20237 _ACEOF
20238 cat confdefs.h >>conftest.$ac_ext
20239 cat >>conftest.$ac_ext <<_ACEOF
20240 /* end confdefs.h. */
20241 #include <unistd.h>
20243 main ()
20245 setpgrp(0,0);
20247 return 0;
20249 _ACEOF
20250 rm -f conftest.$ac_objext
20251 if { (ac_try="$ac_compile"
20252 case "(($ac_try" in
20253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20254 *) ac_try_echo=$ac_try;;
20255 esac
20256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20257 (eval "$ac_compile") 2>conftest.er1
20258 ac_status=$?
20259 grep -v '^ *+' conftest.er1 >conftest.err
20260 rm -f conftest.er1
20261 cat conftest.err >&5
20262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20263 (exit $ac_status); } && {
20264 test -z "$ac_c_werror_flag" ||
20265 test ! -s conftest.err
20266 } && test -s conftest.$ac_objext; then
20268 cat >>confdefs.h <<\_ACEOF
20269 #define SETPGRP_HAVE_ARG 1
20270 _ACEOF
20273 else
20274 echo "$as_me: failed program was:" >&5
20275 sed 's/^/| /' conftest.$ac_ext >&5
20280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20283 done
20286 for ac_func in gettimeofday
20288 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20289 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20290 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20291 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20292 echo $ECHO_N "(cached) $ECHO_C" >&6
20293 else
20294 cat >conftest.$ac_ext <<_ACEOF
20295 /* confdefs.h. */
20296 _ACEOF
20297 cat confdefs.h >>conftest.$ac_ext
20298 cat >>conftest.$ac_ext <<_ACEOF
20299 /* end confdefs.h. */
20300 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20301 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20302 #define $ac_func innocuous_$ac_func
20304 /* System header to define __stub macros and hopefully few prototypes,
20305 which can conflict with char $ac_func (); below.
20306 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20307 <limits.h> exists even on freestanding compilers. */
20309 #ifdef __STDC__
20310 # include <limits.h>
20311 #else
20312 # include <assert.h>
20313 #endif
20315 #undef $ac_func
20317 /* Override any GCC internal prototype to avoid an error.
20318 Use char because int might match the return type of a GCC
20319 builtin and then its argument prototype would still apply. */
20320 #ifdef __cplusplus
20321 extern "C"
20322 #endif
20323 char $ac_func ();
20324 /* The GNU C library defines this for functions which it implements
20325 to always fail with ENOSYS. Some functions are actually named
20326 something starting with __ and the normal name is an alias. */
20327 #if defined __stub_$ac_func || defined __stub___$ac_func
20328 choke me
20329 #endif
20332 main ()
20334 return $ac_func ();
20336 return 0;
20338 _ACEOF
20339 rm -f conftest.$ac_objext conftest$ac_exeext
20340 if { (ac_try="$ac_link"
20341 case "(($ac_try" in
20342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20343 *) ac_try_echo=$ac_try;;
20344 esac
20345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20346 (eval "$ac_link") 2>conftest.er1
20347 ac_status=$?
20348 grep -v '^ *+' conftest.er1 >conftest.err
20349 rm -f conftest.er1
20350 cat conftest.err >&5
20351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20352 (exit $ac_status); } && {
20353 test -z "$ac_c_werror_flag" ||
20354 test ! -s conftest.err
20355 } && test -s conftest$ac_exeext &&
20356 $as_test_x conftest$ac_exeext; then
20357 eval "$as_ac_var=yes"
20358 else
20359 echo "$as_me: failed program was:" >&5
20360 sed 's/^/| /' conftest.$ac_ext >&5
20362 eval "$as_ac_var=no"
20365 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20366 conftest$ac_exeext conftest.$ac_ext
20368 ac_res=`eval echo '${'$as_ac_var'}'`
20369 { echo "$as_me:$LINENO: result: $ac_res" >&5
20370 echo "${ECHO_T}$ac_res" >&6; }
20371 if test `eval echo '${'$as_ac_var'}'` = yes; then
20372 cat >>confdefs.h <<_ACEOF
20373 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20374 _ACEOF
20375 cat >conftest.$ac_ext <<_ACEOF
20376 /* confdefs.h. */
20377 _ACEOF
20378 cat confdefs.h >>conftest.$ac_ext
20379 cat >>conftest.$ac_ext <<_ACEOF
20380 /* end confdefs.h. */
20381 #include <sys/time.h>
20383 main ()
20385 gettimeofday((struct timeval*)0,(struct timezone*)0);
20387 return 0;
20389 _ACEOF
20390 rm -f conftest.$ac_objext
20391 if { (ac_try="$ac_compile"
20392 case "(($ac_try" in
20393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20394 *) ac_try_echo=$ac_try;;
20395 esac
20396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20397 (eval "$ac_compile") 2>conftest.er1
20398 ac_status=$?
20399 grep -v '^ *+' conftest.er1 >conftest.err
20400 rm -f conftest.er1
20401 cat conftest.err >&5
20402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20403 (exit $ac_status); } && {
20404 test -z "$ac_c_werror_flag" ||
20405 test ! -s conftest.err
20406 } && test -s conftest.$ac_objext; then
20408 else
20409 echo "$as_me: failed program was:" >&5
20410 sed 's/^/| /' conftest.$ac_ext >&5
20413 cat >>confdefs.h <<\_ACEOF
20414 #define GETTIMEOFDAY_NO_TZ 1
20415 _ACEOF
20420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20423 done
20426 { echo "$as_me:$LINENO: checking for major" >&5
20427 echo $ECHO_N "checking for major... $ECHO_C" >&6; }
20428 cat >conftest.$ac_ext <<_ACEOF
20429 /* confdefs.h. */
20430 _ACEOF
20431 cat confdefs.h >>conftest.$ac_ext
20432 cat >>conftest.$ac_ext <<_ACEOF
20433 /* end confdefs.h. */
20435 #if defined(MAJOR_IN_MKDEV)
20436 #include <sys/mkdev.h>
20437 #elif defined(MAJOR_IN_SYSMACROS)
20438 #include <sys/sysmacros.h>
20439 #else
20440 #include <sys/types.h>
20441 #endif
20444 main ()
20447 makedev(major(0),minor(0));
20450 return 0;
20452 _ACEOF
20453 rm -f conftest.$ac_objext conftest$ac_exeext
20454 if { (ac_try="$ac_link"
20455 case "(($ac_try" in
20456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20457 *) ac_try_echo=$ac_try;;
20458 esac
20459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20460 (eval "$ac_link") 2>conftest.er1
20461 ac_status=$?
20462 grep -v '^ *+' conftest.er1 >conftest.err
20463 rm -f conftest.er1
20464 cat conftest.err >&5
20465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20466 (exit $ac_status); } && {
20467 test -z "$ac_c_werror_flag" ||
20468 test ! -s conftest.err
20469 } && test -s conftest$ac_exeext &&
20470 $as_test_x conftest$ac_exeext; then
20473 cat >>confdefs.h <<\_ACEOF
20474 #define HAVE_DEVICE_MACROS 1
20475 _ACEOF
20477 { echo "$as_me:$LINENO: result: yes" >&5
20478 echo "${ECHO_T}yes" >&6; }
20480 else
20481 echo "$as_me: failed program was:" >&5
20482 sed 's/^/| /' conftest.$ac_ext >&5
20485 { echo "$as_me:$LINENO: result: no" >&5
20486 echo "${ECHO_T}no" >&6; }
20490 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20491 conftest$ac_exeext conftest.$ac_ext
20493 # On OSF/1 V5.1, getaddrinfo is available, but a define
20494 # for [no]getaddrinfo in netdb.h.
20495 { echo "$as_me:$LINENO: checking for getaddrinfo" >&5
20496 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
20497 cat >conftest.$ac_ext <<_ACEOF
20498 /* confdefs.h. */
20499 _ACEOF
20500 cat confdefs.h >>conftest.$ac_ext
20501 cat >>conftest.$ac_ext <<_ACEOF
20502 /* end confdefs.h. */
20504 #include <sys/types.h>
20505 #include <sys/socket.h>
20506 #include <netdb.h>
20507 #include <stdio.h>
20510 main ()
20512 getaddrinfo(NULL, NULL, NULL, NULL);
20514 return 0;
20516 _ACEOF
20517 rm -f conftest.$ac_objext conftest$ac_exeext
20518 if { (ac_try="$ac_link"
20519 case "(($ac_try" in
20520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20521 *) ac_try_echo=$ac_try;;
20522 esac
20523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20524 (eval "$ac_link") 2>conftest.er1
20525 ac_status=$?
20526 grep -v '^ *+' conftest.er1 >conftest.err
20527 rm -f conftest.er1
20528 cat conftest.err >&5
20529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20530 (exit $ac_status); } && {
20531 test -z "$ac_c_werror_flag" ||
20532 test ! -s conftest.err
20533 } && test -s conftest$ac_exeext &&
20534 $as_test_x conftest$ac_exeext; then
20535 have_getaddrinfo=yes
20536 else
20537 echo "$as_me: failed program was:" >&5
20538 sed 's/^/| /' conftest.$ac_ext >&5
20540 have_getaddrinfo=no
20543 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20544 conftest$ac_exeext conftest.$ac_ext
20545 { echo "$as_me:$LINENO: result: $have_getaddrinfo" >&5
20546 echo "${ECHO_T}$have_getaddrinfo" >&6; }
20547 if test $have_getaddrinfo = yes
20548 then
20549 { echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
20550 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; }
20551 if test "${ac_cv_buggy_getaddrinfo+set}" = set; then
20552 echo $ECHO_N "(cached) $ECHO_C" >&6
20553 else
20554 if test "$cross_compiling" = yes; then
20555 ac_cv_buggy_getaddrinfo=yes
20556 else
20557 cat >conftest.$ac_ext <<_ACEOF
20558 /* confdefs.h. */
20559 _ACEOF
20560 cat confdefs.h >>conftest.$ac_ext
20561 cat >>conftest.$ac_ext <<_ACEOF
20562 /* end confdefs.h. */
20564 #include <sys/types.h>
20565 #include <netdb.h>
20566 #include <string.h>
20567 #include <sys/socket.h>
20568 #include <netinet/in.h>
20570 int main()
20572 int passive, gaierr, inet4 = 0, inet6 = 0;
20573 struct addrinfo hints, *ai, *aitop;
20574 char straddr[INET6_ADDRSTRLEN], strport[16];
20576 for (passive = 0; passive <= 1; passive++) {
20577 memset(&hints, 0, sizeof(hints));
20578 hints.ai_family = AF_UNSPEC;
20579 hints.ai_flags = passive ? AI_PASSIVE : 0;
20580 hints.ai_socktype = SOCK_STREAM;
20581 hints.ai_protocol = IPPROTO_TCP;
20582 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
20583 (void)gai_strerror(gaierr);
20584 goto bad;
20586 for (ai = aitop; ai; ai = ai->ai_next) {
20587 if (ai->ai_addr == NULL ||
20588 ai->ai_addrlen == 0 ||
20589 getnameinfo(ai->ai_addr, ai->ai_addrlen,
20590 straddr, sizeof(straddr), strport, sizeof(strport),
20591 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
20592 goto bad;
20594 switch (ai->ai_family) {
20595 case AF_INET:
20596 if (strcmp(strport, "54321") != 0) {
20597 goto bad;
20599 if (passive) {
20600 if (strcmp(straddr, "0.0.0.0") != 0) {
20601 goto bad;
20603 } else {
20604 if (strcmp(straddr, "127.0.0.1") != 0) {
20605 goto bad;
20608 inet4++;
20609 break;
20610 case AF_INET6:
20611 if (strcmp(strport, "54321") != 0) {
20612 goto bad;
20614 if (passive) {
20615 if (strcmp(straddr, "::") != 0) {
20616 goto bad;
20618 } else {
20619 if (strcmp(straddr, "::1") != 0) {
20620 goto bad;
20623 inet6++;
20624 break;
20625 case AF_UNSPEC:
20626 goto bad;
20627 break;
20628 default:
20629 /* another family support? */
20630 break;
20635 if (!(inet4 == 0 || inet4 == 2))
20636 goto bad;
20637 if (!(inet6 == 0 || inet6 == 2))
20638 goto bad;
20640 if (aitop)
20641 freeaddrinfo(aitop);
20642 return 0;
20644 bad:
20645 if (aitop)
20646 freeaddrinfo(aitop);
20647 return 1;
20650 _ACEOF
20651 rm -f conftest$ac_exeext
20652 if { (ac_try="$ac_link"
20653 case "(($ac_try" in
20654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20655 *) ac_try_echo=$ac_try;;
20656 esac
20657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20658 (eval "$ac_link") 2>&5
20659 ac_status=$?
20660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20661 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20662 { (case "(($ac_try" in
20663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20664 *) ac_try_echo=$ac_try;;
20665 esac
20666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20667 (eval "$ac_try") 2>&5
20668 ac_status=$?
20669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20670 (exit $ac_status); }; }; then
20671 ac_cv_buggy_getaddrinfo=no
20672 else
20673 echo "$as_me: program exited with status $ac_status" >&5
20674 echo "$as_me: failed program was:" >&5
20675 sed 's/^/| /' conftest.$ac_ext >&5
20677 ( exit $ac_status )
20678 ac_cv_buggy_getaddrinfo=yes
20680 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20688 if test $have_getaddrinfo = no -o $ac_cv_buggy_getaddrinfo = yes
20689 then
20690 if test $ipv6 = yes
20691 then
20692 echo 'Fatal: You must get working getaddrinfo() function.'
20693 echo ' or you can specify "--disable-ipv6"'.
20694 exit 1
20696 else
20698 cat >>confdefs.h <<\_ACEOF
20699 #define HAVE_GETADDRINFO 1
20700 _ACEOF
20704 for ac_func in getnameinfo
20706 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20707 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20708 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20709 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20710 echo $ECHO_N "(cached) $ECHO_C" >&6
20711 else
20712 cat >conftest.$ac_ext <<_ACEOF
20713 /* confdefs.h. */
20714 _ACEOF
20715 cat confdefs.h >>conftest.$ac_ext
20716 cat >>conftest.$ac_ext <<_ACEOF
20717 /* end confdefs.h. */
20718 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20719 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20720 #define $ac_func innocuous_$ac_func
20722 /* System header to define __stub macros and hopefully few prototypes,
20723 which can conflict with char $ac_func (); below.
20724 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20725 <limits.h> exists even on freestanding compilers. */
20727 #ifdef __STDC__
20728 # include <limits.h>
20729 #else
20730 # include <assert.h>
20731 #endif
20733 #undef $ac_func
20735 /* Override any GCC internal prototype to avoid an error.
20736 Use char because int might match the return type of a GCC
20737 builtin and then its argument prototype would still apply. */
20738 #ifdef __cplusplus
20739 extern "C"
20740 #endif
20741 char $ac_func ();
20742 /* The GNU C library defines this for functions which it implements
20743 to always fail with ENOSYS. Some functions are actually named
20744 something starting with __ and the normal name is an alias. */
20745 #if defined __stub_$ac_func || defined __stub___$ac_func
20746 choke me
20747 #endif
20750 main ()
20752 return $ac_func ();
20754 return 0;
20756 _ACEOF
20757 rm -f conftest.$ac_objext conftest$ac_exeext
20758 if { (ac_try="$ac_link"
20759 case "(($ac_try" in
20760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20761 *) ac_try_echo=$ac_try;;
20762 esac
20763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20764 (eval "$ac_link") 2>conftest.er1
20765 ac_status=$?
20766 grep -v '^ *+' conftest.er1 >conftest.err
20767 rm -f conftest.er1
20768 cat conftest.err >&5
20769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20770 (exit $ac_status); } && {
20771 test -z "$ac_c_werror_flag" ||
20772 test ! -s conftest.err
20773 } && test -s conftest$ac_exeext &&
20774 $as_test_x conftest$ac_exeext; then
20775 eval "$as_ac_var=yes"
20776 else
20777 echo "$as_me: failed program was:" >&5
20778 sed 's/^/| /' conftest.$ac_ext >&5
20780 eval "$as_ac_var=no"
20783 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20784 conftest$ac_exeext conftest.$ac_ext
20786 ac_res=`eval echo '${'$as_ac_var'}'`
20787 { echo "$as_me:$LINENO: result: $ac_res" >&5
20788 echo "${ECHO_T}$ac_res" >&6; }
20789 if test `eval echo '${'$as_ac_var'}'` = yes; then
20790 cat >>confdefs.h <<_ACEOF
20791 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20792 _ACEOF
20795 done
20798 # checks for structures
20799 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20800 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
20801 if test "${ac_cv_header_time+set}" = set; then
20802 echo $ECHO_N "(cached) $ECHO_C" >&6
20803 else
20804 cat >conftest.$ac_ext <<_ACEOF
20805 /* confdefs.h. */
20806 _ACEOF
20807 cat confdefs.h >>conftest.$ac_ext
20808 cat >>conftest.$ac_ext <<_ACEOF
20809 /* end confdefs.h. */
20810 #include <sys/types.h>
20811 #include <sys/time.h>
20812 #include <time.h>
20815 main ()
20817 if ((struct tm *) 0)
20818 return 0;
20820 return 0;
20822 _ACEOF
20823 rm -f conftest.$ac_objext
20824 if { (ac_try="$ac_compile"
20825 case "(($ac_try" in
20826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20827 *) ac_try_echo=$ac_try;;
20828 esac
20829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20830 (eval "$ac_compile") 2>conftest.er1
20831 ac_status=$?
20832 grep -v '^ *+' conftest.er1 >conftest.err
20833 rm -f conftest.er1
20834 cat conftest.err >&5
20835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20836 (exit $ac_status); } && {
20837 test -z "$ac_c_werror_flag" ||
20838 test ! -s conftest.err
20839 } && test -s conftest.$ac_objext; then
20840 ac_cv_header_time=yes
20841 else
20842 echo "$as_me: failed program was:" >&5
20843 sed 's/^/| /' conftest.$ac_ext >&5
20845 ac_cv_header_time=no
20848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20850 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20851 echo "${ECHO_T}$ac_cv_header_time" >&6; }
20852 if test $ac_cv_header_time = yes; then
20854 cat >>confdefs.h <<\_ACEOF
20855 #define TIME_WITH_SYS_TIME 1
20856 _ACEOF
20860 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20861 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
20862 if test "${ac_cv_struct_tm+set}" = set; then
20863 echo $ECHO_N "(cached) $ECHO_C" >&6
20864 else
20865 cat >conftest.$ac_ext <<_ACEOF
20866 /* confdefs.h. */
20867 _ACEOF
20868 cat confdefs.h >>conftest.$ac_ext
20869 cat >>conftest.$ac_ext <<_ACEOF
20870 /* end confdefs.h. */
20871 #include <sys/types.h>
20872 #include <time.h>
20875 main ()
20877 struct tm tm;
20878 int *p = &tm.tm_sec;
20879 return !p;
20881 return 0;
20883 _ACEOF
20884 rm -f conftest.$ac_objext
20885 if { (ac_try="$ac_compile"
20886 case "(($ac_try" in
20887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20888 *) ac_try_echo=$ac_try;;
20889 esac
20890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20891 (eval "$ac_compile") 2>conftest.er1
20892 ac_status=$?
20893 grep -v '^ *+' conftest.er1 >conftest.err
20894 rm -f conftest.er1
20895 cat conftest.err >&5
20896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20897 (exit $ac_status); } && {
20898 test -z "$ac_c_werror_flag" ||
20899 test ! -s conftest.err
20900 } && test -s conftest.$ac_objext; then
20901 ac_cv_struct_tm=time.h
20902 else
20903 echo "$as_me: failed program was:" >&5
20904 sed 's/^/| /' conftest.$ac_ext >&5
20906 ac_cv_struct_tm=sys/time.h
20909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20911 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20912 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
20913 if test $ac_cv_struct_tm = sys/time.h; then
20915 cat >>confdefs.h <<\_ACEOF
20916 #define TM_IN_SYS_TIME 1
20917 _ACEOF
20921 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
20922 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
20923 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
20924 echo $ECHO_N "(cached) $ECHO_C" >&6
20925 else
20926 cat >conftest.$ac_ext <<_ACEOF
20927 /* confdefs.h. */
20928 _ACEOF
20929 cat confdefs.h >>conftest.$ac_ext
20930 cat >>conftest.$ac_ext <<_ACEOF
20931 /* end confdefs.h. */
20932 #include <sys/types.h>
20933 #include <$ac_cv_struct_tm>
20937 main ()
20939 static struct tm ac_aggr;
20940 if (ac_aggr.tm_zone)
20941 return 0;
20943 return 0;
20945 _ACEOF
20946 rm -f conftest.$ac_objext
20947 if { (ac_try="$ac_compile"
20948 case "(($ac_try" in
20949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20950 *) ac_try_echo=$ac_try;;
20951 esac
20952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20953 (eval "$ac_compile") 2>conftest.er1
20954 ac_status=$?
20955 grep -v '^ *+' conftest.er1 >conftest.err
20956 rm -f conftest.er1
20957 cat conftest.err >&5
20958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20959 (exit $ac_status); } && {
20960 test -z "$ac_c_werror_flag" ||
20961 test ! -s conftest.err
20962 } && test -s conftest.$ac_objext; then
20963 ac_cv_member_struct_tm_tm_zone=yes
20964 else
20965 echo "$as_me: failed program was:" >&5
20966 sed 's/^/| /' conftest.$ac_ext >&5
20968 cat >conftest.$ac_ext <<_ACEOF
20969 /* confdefs.h. */
20970 _ACEOF
20971 cat confdefs.h >>conftest.$ac_ext
20972 cat >>conftest.$ac_ext <<_ACEOF
20973 /* end confdefs.h. */
20974 #include <sys/types.h>
20975 #include <$ac_cv_struct_tm>
20979 main ()
20981 static struct tm ac_aggr;
20982 if (sizeof ac_aggr.tm_zone)
20983 return 0;
20985 return 0;
20987 _ACEOF
20988 rm -f conftest.$ac_objext
20989 if { (ac_try="$ac_compile"
20990 case "(($ac_try" in
20991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20992 *) ac_try_echo=$ac_try;;
20993 esac
20994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20995 (eval "$ac_compile") 2>conftest.er1
20996 ac_status=$?
20997 grep -v '^ *+' conftest.er1 >conftest.err
20998 rm -f conftest.er1
20999 cat conftest.err >&5
21000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21001 (exit $ac_status); } && {
21002 test -z "$ac_c_werror_flag" ||
21003 test ! -s conftest.err
21004 } && test -s conftest.$ac_objext; then
21005 ac_cv_member_struct_tm_tm_zone=yes
21006 else
21007 echo "$as_me: failed program was:" >&5
21008 sed 's/^/| /' conftest.$ac_ext >&5
21010 ac_cv_member_struct_tm_tm_zone=no
21013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21018 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
21019 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
21020 if test $ac_cv_member_struct_tm_tm_zone = yes; then
21022 cat >>confdefs.h <<_ACEOF
21023 #define HAVE_STRUCT_TM_TM_ZONE 1
21024 _ACEOF
21029 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21031 cat >>confdefs.h <<\_ACEOF
21032 #define HAVE_TM_ZONE 1
21033 _ACEOF
21035 else
21036 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
21037 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
21038 if test "${ac_cv_have_decl_tzname+set}" = set; then
21039 echo $ECHO_N "(cached) $ECHO_C" >&6
21040 else
21041 cat >conftest.$ac_ext <<_ACEOF
21042 /* confdefs.h. */
21043 _ACEOF
21044 cat confdefs.h >>conftest.$ac_ext
21045 cat >>conftest.$ac_ext <<_ACEOF
21046 /* end confdefs.h. */
21047 #include <time.h>
21050 main ()
21052 #ifndef tzname
21053 (void) tzname;
21054 #endif
21057 return 0;
21059 _ACEOF
21060 rm -f conftest.$ac_objext
21061 if { (ac_try="$ac_compile"
21062 case "(($ac_try" in
21063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21064 *) ac_try_echo=$ac_try;;
21065 esac
21066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21067 (eval "$ac_compile") 2>conftest.er1
21068 ac_status=$?
21069 grep -v '^ *+' conftest.er1 >conftest.err
21070 rm -f conftest.er1
21071 cat conftest.err >&5
21072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21073 (exit $ac_status); } && {
21074 test -z "$ac_c_werror_flag" ||
21075 test ! -s conftest.err
21076 } && test -s conftest.$ac_objext; then
21077 ac_cv_have_decl_tzname=yes
21078 else
21079 echo "$as_me: failed program was:" >&5
21080 sed 's/^/| /' conftest.$ac_ext >&5
21082 ac_cv_have_decl_tzname=no
21085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21087 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
21088 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
21089 if test $ac_cv_have_decl_tzname = yes; then
21091 cat >>confdefs.h <<_ACEOF
21092 #define HAVE_DECL_TZNAME 1
21093 _ACEOF
21096 else
21097 cat >>confdefs.h <<_ACEOF
21098 #define HAVE_DECL_TZNAME 0
21099 _ACEOF
21105 { echo "$as_me:$LINENO: checking for tzname" >&5
21106 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
21107 if test "${ac_cv_var_tzname+set}" = set; then
21108 echo $ECHO_N "(cached) $ECHO_C" >&6
21109 else
21110 cat >conftest.$ac_ext <<_ACEOF
21111 /* confdefs.h. */
21112 _ACEOF
21113 cat confdefs.h >>conftest.$ac_ext
21114 cat >>conftest.$ac_ext <<_ACEOF
21115 /* end confdefs.h. */
21116 #include <time.h>
21117 #if !HAVE_DECL_TZNAME
21118 extern char *tzname[];
21119 #endif
21122 main ()
21124 return tzname[0][0];
21126 return 0;
21128 _ACEOF
21129 rm -f conftest.$ac_objext conftest$ac_exeext
21130 if { (ac_try="$ac_link"
21131 case "(($ac_try" in
21132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21133 *) ac_try_echo=$ac_try;;
21134 esac
21135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21136 (eval "$ac_link") 2>conftest.er1
21137 ac_status=$?
21138 grep -v '^ *+' conftest.er1 >conftest.err
21139 rm -f conftest.er1
21140 cat conftest.err >&5
21141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21142 (exit $ac_status); } && {
21143 test -z "$ac_c_werror_flag" ||
21144 test ! -s conftest.err
21145 } && test -s conftest$ac_exeext &&
21146 $as_test_x conftest$ac_exeext; then
21147 ac_cv_var_tzname=yes
21148 else
21149 echo "$as_me: failed program was:" >&5
21150 sed 's/^/| /' conftest.$ac_ext >&5
21152 ac_cv_var_tzname=no
21155 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21156 conftest$ac_exeext conftest.$ac_ext
21158 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21159 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
21160 if test $ac_cv_var_tzname = yes; then
21162 cat >>confdefs.h <<\_ACEOF
21163 #define HAVE_TZNAME 1
21164 _ACEOF
21169 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
21170 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
21171 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
21172 echo $ECHO_N "(cached) $ECHO_C" >&6
21173 else
21174 cat >conftest.$ac_ext <<_ACEOF
21175 /* confdefs.h. */
21176 _ACEOF
21177 cat confdefs.h >>conftest.$ac_ext
21178 cat >>conftest.$ac_ext <<_ACEOF
21179 /* end confdefs.h. */
21180 $ac_includes_default
21182 main ()
21184 static struct stat ac_aggr;
21185 if (ac_aggr.st_rdev)
21186 return 0;
21188 return 0;
21190 _ACEOF
21191 rm -f conftest.$ac_objext
21192 if { (ac_try="$ac_compile"
21193 case "(($ac_try" in
21194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21195 *) ac_try_echo=$ac_try;;
21196 esac
21197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21198 (eval "$ac_compile") 2>conftest.er1
21199 ac_status=$?
21200 grep -v '^ *+' conftest.er1 >conftest.err
21201 rm -f conftest.er1
21202 cat conftest.err >&5
21203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21204 (exit $ac_status); } && {
21205 test -z "$ac_c_werror_flag" ||
21206 test ! -s conftest.err
21207 } && test -s conftest.$ac_objext; then
21208 ac_cv_member_struct_stat_st_rdev=yes
21209 else
21210 echo "$as_me: failed program was:" >&5
21211 sed 's/^/| /' conftest.$ac_ext >&5
21213 cat >conftest.$ac_ext <<_ACEOF
21214 /* confdefs.h. */
21215 _ACEOF
21216 cat confdefs.h >>conftest.$ac_ext
21217 cat >>conftest.$ac_ext <<_ACEOF
21218 /* end confdefs.h. */
21219 $ac_includes_default
21221 main ()
21223 static struct stat ac_aggr;
21224 if (sizeof ac_aggr.st_rdev)
21225 return 0;
21227 return 0;
21229 _ACEOF
21230 rm -f conftest.$ac_objext
21231 if { (ac_try="$ac_compile"
21232 case "(($ac_try" in
21233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21234 *) ac_try_echo=$ac_try;;
21235 esac
21236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21237 (eval "$ac_compile") 2>conftest.er1
21238 ac_status=$?
21239 grep -v '^ *+' conftest.er1 >conftest.err
21240 rm -f conftest.er1
21241 cat conftest.err >&5
21242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21243 (exit $ac_status); } && {
21244 test -z "$ac_c_werror_flag" ||
21245 test ! -s conftest.err
21246 } && test -s conftest.$ac_objext; then
21247 ac_cv_member_struct_stat_st_rdev=yes
21248 else
21249 echo "$as_me: failed program was:" >&5
21250 sed 's/^/| /' conftest.$ac_ext >&5
21252 ac_cv_member_struct_stat_st_rdev=no
21255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21260 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
21261 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
21262 if test $ac_cv_member_struct_stat_st_rdev = yes; then
21264 cat >>confdefs.h <<_ACEOF
21265 #define HAVE_STRUCT_STAT_ST_RDEV 1
21266 _ACEOF
21271 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
21272 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
21273 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
21274 echo $ECHO_N "(cached) $ECHO_C" >&6
21275 else
21276 cat >conftest.$ac_ext <<_ACEOF
21277 /* confdefs.h. */
21278 _ACEOF
21279 cat confdefs.h >>conftest.$ac_ext
21280 cat >>conftest.$ac_ext <<_ACEOF
21281 /* end confdefs.h. */
21282 $ac_includes_default
21284 main ()
21286 static struct stat ac_aggr;
21287 if (ac_aggr.st_blksize)
21288 return 0;
21290 return 0;
21292 _ACEOF
21293 rm -f conftest.$ac_objext
21294 if { (ac_try="$ac_compile"
21295 case "(($ac_try" in
21296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21297 *) ac_try_echo=$ac_try;;
21298 esac
21299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21300 (eval "$ac_compile") 2>conftest.er1
21301 ac_status=$?
21302 grep -v '^ *+' conftest.er1 >conftest.err
21303 rm -f conftest.er1
21304 cat conftest.err >&5
21305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21306 (exit $ac_status); } && {
21307 test -z "$ac_c_werror_flag" ||
21308 test ! -s conftest.err
21309 } && test -s conftest.$ac_objext; then
21310 ac_cv_member_struct_stat_st_blksize=yes
21311 else
21312 echo "$as_me: failed program was:" >&5
21313 sed 's/^/| /' conftest.$ac_ext >&5
21315 cat >conftest.$ac_ext <<_ACEOF
21316 /* confdefs.h. */
21317 _ACEOF
21318 cat confdefs.h >>conftest.$ac_ext
21319 cat >>conftest.$ac_ext <<_ACEOF
21320 /* end confdefs.h. */
21321 $ac_includes_default
21323 main ()
21325 static struct stat ac_aggr;
21326 if (sizeof ac_aggr.st_blksize)
21327 return 0;
21329 return 0;
21331 _ACEOF
21332 rm -f conftest.$ac_objext
21333 if { (ac_try="$ac_compile"
21334 case "(($ac_try" in
21335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21336 *) ac_try_echo=$ac_try;;
21337 esac
21338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21339 (eval "$ac_compile") 2>conftest.er1
21340 ac_status=$?
21341 grep -v '^ *+' conftest.er1 >conftest.err
21342 rm -f conftest.er1
21343 cat conftest.err >&5
21344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21345 (exit $ac_status); } && {
21346 test -z "$ac_c_werror_flag" ||
21347 test ! -s conftest.err
21348 } && test -s conftest.$ac_objext; then
21349 ac_cv_member_struct_stat_st_blksize=yes
21350 else
21351 echo "$as_me: failed program was:" >&5
21352 sed 's/^/| /' conftest.$ac_ext >&5
21354 ac_cv_member_struct_stat_st_blksize=no
21357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21362 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
21363 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
21364 if test $ac_cv_member_struct_stat_st_blksize = yes; then
21366 cat >>confdefs.h <<_ACEOF
21367 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
21368 _ACEOF
21373 { echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
21374 echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6; }
21375 if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
21376 echo $ECHO_N "(cached) $ECHO_C" >&6
21377 else
21378 cat >conftest.$ac_ext <<_ACEOF
21379 /* confdefs.h. */
21380 _ACEOF
21381 cat confdefs.h >>conftest.$ac_ext
21382 cat >>conftest.$ac_ext <<_ACEOF
21383 /* end confdefs.h. */
21384 $ac_includes_default
21386 main ()
21388 static struct stat ac_aggr;
21389 if (ac_aggr.st_flags)
21390 return 0;
21392 return 0;
21394 _ACEOF
21395 rm -f conftest.$ac_objext
21396 if { (ac_try="$ac_compile"
21397 case "(($ac_try" in
21398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21399 *) ac_try_echo=$ac_try;;
21400 esac
21401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21402 (eval "$ac_compile") 2>conftest.er1
21403 ac_status=$?
21404 grep -v '^ *+' conftest.er1 >conftest.err
21405 rm -f conftest.er1
21406 cat conftest.err >&5
21407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21408 (exit $ac_status); } && {
21409 test -z "$ac_c_werror_flag" ||
21410 test ! -s conftest.err
21411 } && test -s conftest.$ac_objext; then
21412 ac_cv_member_struct_stat_st_flags=yes
21413 else
21414 echo "$as_me: failed program was:" >&5
21415 sed 's/^/| /' conftest.$ac_ext >&5
21417 cat >conftest.$ac_ext <<_ACEOF
21418 /* confdefs.h. */
21419 _ACEOF
21420 cat confdefs.h >>conftest.$ac_ext
21421 cat >>conftest.$ac_ext <<_ACEOF
21422 /* end confdefs.h. */
21423 $ac_includes_default
21425 main ()
21427 static struct stat ac_aggr;
21428 if (sizeof ac_aggr.st_flags)
21429 return 0;
21431 return 0;
21433 _ACEOF
21434 rm -f conftest.$ac_objext
21435 if { (ac_try="$ac_compile"
21436 case "(($ac_try" in
21437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21438 *) ac_try_echo=$ac_try;;
21439 esac
21440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21441 (eval "$ac_compile") 2>conftest.er1
21442 ac_status=$?
21443 grep -v '^ *+' conftest.er1 >conftest.err
21444 rm -f conftest.er1
21445 cat conftest.err >&5
21446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21447 (exit $ac_status); } && {
21448 test -z "$ac_c_werror_flag" ||
21449 test ! -s conftest.err
21450 } && test -s conftest.$ac_objext; then
21451 ac_cv_member_struct_stat_st_flags=yes
21452 else
21453 echo "$as_me: failed program was:" >&5
21454 sed 's/^/| /' conftest.$ac_ext >&5
21456 ac_cv_member_struct_stat_st_flags=no
21459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21464 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
21465 echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6; }
21466 if test $ac_cv_member_struct_stat_st_flags = yes; then
21468 cat >>confdefs.h <<_ACEOF
21469 #define HAVE_STRUCT_STAT_ST_FLAGS 1
21470 _ACEOF
21475 { echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
21476 echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6; }
21477 if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
21478 echo $ECHO_N "(cached) $ECHO_C" >&6
21479 else
21480 cat >conftest.$ac_ext <<_ACEOF
21481 /* confdefs.h. */
21482 _ACEOF
21483 cat confdefs.h >>conftest.$ac_ext
21484 cat >>conftest.$ac_ext <<_ACEOF
21485 /* end confdefs.h. */
21486 $ac_includes_default
21488 main ()
21490 static struct stat ac_aggr;
21491 if (ac_aggr.st_gen)
21492 return 0;
21494 return 0;
21496 _ACEOF
21497 rm -f conftest.$ac_objext
21498 if { (ac_try="$ac_compile"
21499 case "(($ac_try" in
21500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21501 *) ac_try_echo=$ac_try;;
21502 esac
21503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21504 (eval "$ac_compile") 2>conftest.er1
21505 ac_status=$?
21506 grep -v '^ *+' conftest.er1 >conftest.err
21507 rm -f conftest.er1
21508 cat conftest.err >&5
21509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21510 (exit $ac_status); } && {
21511 test -z "$ac_c_werror_flag" ||
21512 test ! -s conftest.err
21513 } && test -s conftest.$ac_objext; then
21514 ac_cv_member_struct_stat_st_gen=yes
21515 else
21516 echo "$as_me: failed program was:" >&5
21517 sed 's/^/| /' conftest.$ac_ext >&5
21519 cat >conftest.$ac_ext <<_ACEOF
21520 /* confdefs.h. */
21521 _ACEOF
21522 cat confdefs.h >>conftest.$ac_ext
21523 cat >>conftest.$ac_ext <<_ACEOF
21524 /* end confdefs.h. */
21525 $ac_includes_default
21527 main ()
21529 static struct stat ac_aggr;
21530 if (sizeof ac_aggr.st_gen)
21531 return 0;
21533 return 0;
21535 _ACEOF
21536 rm -f conftest.$ac_objext
21537 if { (ac_try="$ac_compile"
21538 case "(($ac_try" in
21539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21540 *) ac_try_echo=$ac_try;;
21541 esac
21542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21543 (eval "$ac_compile") 2>conftest.er1
21544 ac_status=$?
21545 grep -v '^ *+' conftest.er1 >conftest.err
21546 rm -f conftest.er1
21547 cat conftest.err >&5
21548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21549 (exit $ac_status); } && {
21550 test -z "$ac_c_werror_flag" ||
21551 test ! -s conftest.err
21552 } && test -s conftest.$ac_objext; then
21553 ac_cv_member_struct_stat_st_gen=yes
21554 else
21555 echo "$as_me: failed program was:" >&5
21556 sed 's/^/| /' conftest.$ac_ext >&5
21558 ac_cv_member_struct_stat_st_gen=no
21561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21566 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
21567 echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6; }
21568 if test $ac_cv_member_struct_stat_st_gen = yes; then
21570 cat >>confdefs.h <<_ACEOF
21571 #define HAVE_STRUCT_STAT_ST_GEN 1
21572 _ACEOF
21577 { echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
21578 echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6; }
21579 if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
21580 echo $ECHO_N "(cached) $ECHO_C" >&6
21581 else
21582 cat >conftest.$ac_ext <<_ACEOF
21583 /* confdefs.h. */
21584 _ACEOF
21585 cat confdefs.h >>conftest.$ac_ext
21586 cat >>conftest.$ac_ext <<_ACEOF
21587 /* end confdefs.h. */
21588 $ac_includes_default
21590 main ()
21592 static struct stat ac_aggr;
21593 if (ac_aggr.st_birthtime)
21594 return 0;
21596 return 0;
21598 _ACEOF
21599 rm -f conftest.$ac_objext
21600 if { (ac_try="$ac_compile"
21601 case "(($ac_try" in
21602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21603 *) ac_try_echo=$ac_try;;
21604 esac
21605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21606 (eval "$ac_compile") 2>conftest.er1
21607 ac_status=$?
21608 grep -v '^ *+' conftest.er1 >conftest.err
21609 rm -f conftest.er1
21610 cat conftest.err >&5
21611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21612 (exit $ac_status); } && {
21613 test -z "$ac_c_werror_flag" ||
21614 test ! -s conftest.err
21615 } && test -s conftest.$ac_objext; then
21616 ac_cv_member_struct_stat_st_birthtime=yes
21617 else
21618 echo "$as_me: failed program was:" >&5
21619 sed 's/^/| /' conftest.$ac_ext >&5
21621 cat >conftest.$ac_ext <<_ACEOF
21622 /* confdefs.h. */
21623 _ACEOF
21624 cat confdefs.h >>conftest.$ac_ext
21625 cat >>conftest.$ac_ext <<_ACEOF
21626 /* end confdefs.h. */
21627 $ac_includes_default
21629 main ()
21631 static struct stat ac_aggr;
21632 if (sizeof ac_aggr.st_birthtime)
21633 return 0;
21635 return 0;
21637 _ACEOF
21638 rm -f conftest.$ac_objext
21639 if { (ac_try="$ac_compile"
21640 case "(($ac_try" in
21641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21642 *) ac_try_echo=$ac_try;;
21643 esac
21644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21645 (eval "$ac_compile") 2>conftest.er1
21646 ac_status=$?
21647 grep -v '^ *+' conftest.er1 >conftest.err
21648 rm -f conftest.er1
21649 cat conftest.err >&5
21650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21651 (exit $ac_status); } && {
21652 test -z "$ac_c_werror_flag" ||
21653 test ! -s conftest.err
21654 } && test -s conftest.$ac_objext; then
21655 ac_cv_member_struct_stat_st_birthtime=yes
21656 else
21657 echo "$as_me: failed program was:" >&5
21658 sed 's/^/| /' conftest.$ac_ext >&5
21660 ac_cv_member_struct_stat_st_birthtime=no
21663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21668 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
21669 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6; }
21670 if test $ac_cv_member_struct_stat_st_birthtime = yes; then
21672 cat >>confdefs.h <<_ACEOF
21673 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
21674 _ACEOF
21679 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
21680 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
21681 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
21682 echo $ECHO_N "(cached) $ECHO_C" >&6
21683 else
21684 cat >conftest.$ac_ext <<_ACEOF
21685 /* confdefs.h. */
21686 _ACEOF
21687 cat confdefs.h >>conftest.$ac_ext
21688 cat >>conftest.$ac_ext <<_ACEOF
21689 /* end confdefs.h. */
21690 $ac_includes_default
21692 main ()
21694 static struct stat ac_aggr;
21695 if (ac_aggr.st_blocks)
21696 return 0;
21698 return 0;
21700 _ACEOF
21701 rm -f conftest.$ac_objext
21702 if { (ac_try="$ac_compile"
21703 case "(($ac_try" in
21704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21705 *) ac_try_echo=$ac_try;;
21706 esac
21707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21708 (eval "$ac_compile") 2>conftest.er1
21709 ac_status=$?
21710 grep -v '^ *+' conftest.er1 >conftest.err
21711 rm -f conftest.er1
21712 cat conftest.err >&5
21713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21714 (exit $ac_status); } && {
21715 test -z "$ac_c_werror_flag" ||
21716 test ! -s conftest.err
21717 } && test -s conftest.$ac_objext; then
21718 ac_cv_member_struct_stat_st_blocks=yes
21719 else
21720 echo "$as_me: failed program was:" >&5
21721 sed 's/^/| /' conftest.$ac_ext >&5
21723 cat >conftest.$ac_ext <<_ACEOF
21724 /* confdefs.h. */
21725 _ACEOF
21726 cat confdefs.h >>conftest.$ac_ext
21727 cat >>conftest.$ac_ext <<_ACEOF
21728 /* end confdefs.h. */
21729 $ac_includes_default
21731 main ()
21733 static struct stat ac_aggr;
21734 if (sizeof ac_aggr.st_blocks)
21735 return 0;
21737 return 0;
21739 _ACEOF
21740 rm -f conftest.$ac_objext
21741 if { (ac_try="$ac_compile"
21742 case "(($ac_try" in
21743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21744 *) ac_try_echo=$ac_try;;
21745 esac
21746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21747 (eval "$ac_compile") 2>conftest.er1
21748 ac_status=$?
21749 grep -v '^ *+' conftest.er1 >conftest.err
21750 rm -f conftest.er1
21751 cat conftest.err >&5
21752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21753 (exit $ac_status); } && {
21754 test -z "$ac_c_werror_flag" ||
21755 test ! -s conftest.err
21756 } && test -s conftest.$ac_objext; then
21757 ac_cv_member_struct_stat_st_blocks=yes
21758 else
21759 echo "$as_me: failed program was:" >&5
21760 sed 's/^/| /' conftest.$ac_ext >&5
21762 ac_cv_member_struct_stat_st_blocks=no
21765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21770 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
21771 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
21772 if test $ac_cv_member_struct_stat_st_blocks = yes; then
21774 cat >>confdefs.h <<_ACEOF
21775 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
21776 _ACEOF
21779 cat >>confdefs.h <<\_ACEOF
21780 #define HAVE_ST_BLOCKS 1
21781 _ACEOF
21783 else
21784 case " $LIBOBJS " in
21785 *" fileblocks.$ac_objext "* ) ;;
21786 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
21788 esac
21794 { echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
21795 echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6; }
21796 if test "${ac_cv_header_time_altzone+set}" = set; then
21797 echo $ECHO_N "(cached) $ECHO_C" >&6
21798 else
21799 cat >conftest.$ac_ext <<_ACEOF
21800 /* confdefs.h. */
21801 _ACEOF
21802 cat confdefs.h >>conftest.$ac_ext
21803 cat >>conftest.$ac_ext <<_ACEOF
21804 /* end confdefs.h. */
21805 #include <time.h>
21807 main ()
21809 return altzone;
21811 return 0;
21813 _ACEOF
21814 rm -f conftest.$ac_objext
21815 if { (ac_try="$ac_compile"
21816 case "(($ac_try" in
21817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21818 *) ac_try_echo=$ac_try;;
21819 esac
21820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21821 (eval "$ac_compile") 2>conftest.er1
21822 ac_status=$?
21823 grep -v '^ *+' conftest.er1 >conftest.err
21824 rm -f conftest.er1
21825 cat conftest.err >&5
21826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21827 (exit $ac_status); } && {
21828 test -z "$ac_c_werror_flag" ||
21829 test ! -s conftest.err
21830 } && test -s conftest.$ac_objext; then
21831 ac_cv_header_time_altzone=yes
21832 else
21833 echo "$as_me: failed program was:" >&5
21834 sed 's/^/| /' conftest.$ac_ext >&5
21836 ac_cv_header_time_altzone=no
21839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21842 { echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
21843 echo "${ECHO_T}$ac_cv_header_time_altzone" >&6; }
21844 if test $ac_cv_header_time_altzone = yes; then
21846 cat >>confdefs.h <<\_ACEOF
21847 #define HAVE_ALTZONE 1
21848 _ACEOF
21852 was_it_defined=no
21853 { echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
21854 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6; }
21855 cat >conftest.$ac_ext <<_ACEOF
21856 /* confdefs.h. */
21857 _ACEOF
21858 cat confdefs.h >>conftest.$ac_ext
21859 cat >>conftest.$ac_ext <<_ACEOF
21860 /* end confdefs.h. */
21862 #include <sys/types.h>
21863 #include <sys/select.h>
21864 #include <sys/time.h>
21867 main ()
21871 return 0;
21873 _ACEOF
21874 rm -f conftest.$ac_objext
21875 if { (ac_try="$ac_compile"
21876 case "(($ac_try" in
21877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21878 *) ac_try_echo=$ac_try;;
21879 esac
21880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21881 (eval "$ac_compile") 2>conftest.er1
21882 ac_status=$?
21883 grep -v '^ *+' conftest.er1 >conftest.err
21884 rm -f conftest.er1
21885 cat conftest.err >&5
21886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21887 (exit $ac_status); } && {
21888 test -z "$ac_c_werror_flag" ||
21889 test ! -s conftest.err
21890 } && test -s conftest.$ac_objext; then
21893 cat >>confdefs.h <<\_ACEOF
21894 #define SYS_SELECT_WITH_SYS_TIME 1
21895 _ACEOF
21897 was_it_defined=yes
21899 else
21900 echo "$as_me: failed program was:" >&5
21901 sed 's/^/| /' conftest.$ac_ext >&5
21906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21907 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
21908 echo "${ECHO_T}$was_it_defined" >&6; }
21910 { echo "$as_me:$LINENO: checking for addrinfo" >&5
21911 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; }
21912 if test "${ac_cv_struct_addrinfo+set}" = set; then
21913 echo $ECHO_N "(cached) $ECHO_C" >&6
21914 else
21915 cat >conftest.$ac_ext <<_ACEOF
21916 /* confdefs.h. */
21917 _ACEOF
21918 cat confdefs.h >>conftest.$ac_ext
21919 cat >>conftest.$ac_ext <<_ACEOF
21920 /* end confdefs.h. */
21922 # include <netdb.h>
21924 main ()
21926 struct addrinfo a
21928 return 0;
21930 _ACEOF
21931 rm -f conftest.$ac_objext
21932 if { (ac_try="$ac_compile"
21933 case "(($ac_try" in
21934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21935 *) ac_try_echo=$ac_try;;
21936 esac
21937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21938 (eval "$ac_compile") 2>conftest.er1
21939 ac_status=$?
21940 grep -v '^ *+' conftest.er1 >conftest.err
21941 rm -f conftest.er1
21942 cat conftest.err >&5
21943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21944 (exit $ac_status); } && {
21945 test -z "$ac_c_werror_flag" ||
21946 test ! -s conftest.err
21947 } && test -s conftest.$ac_objext; then
21948 ac_cv_struct_addrinfo=yes
21949 else
21950 echo "$as_me: failed program was:" >&5
21951 sed 's/^/| /' conftest.$ac_ext >&5
21953 ac_cv_struct_addrinfo=no
21956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21959 { echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
21960 echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6; }
21961 if test $ac_cv_struct_addrinfo = yes; then
21963 cat >>confdefs.h <<\_ACEOF
21964 #define HAVE_ADDRINFO 1
21965 _ACEOF
21969 { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
21970 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; }
21971 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
21972 echo $ECHO_N "(cached) $ECHO_C" >&6
21973 else
21974 cat >conftest.$ac_ext <<_ACEOF
21975 /* confdefs.h. */
21976 _ACEOF
21977 cat confdefs.h >>conftest.$ac_ext
21978 cat >>conftest.$ac_ext <<_ACEOF
21979 /* end confdefs.h. */
21981 # include <sys/types.h>
21982 # include <sys/socket.h>
21984 main ()
21986 struct sockaddr_storage s
21988 return 0;
21990 _ACEOF
21991 rm -f conftest.$ac_objext
21992 if { (ac_try="$ac_compile"
21993 case "(($ac_try" in
21994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21995 *) ac_try_echo=$ac_try;;
21996 esac
21997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21998 (eval "$ac_compile") 2>conftest.er1
21999 ac_status=$?
22000 grep -v '^ *+' conftest.er1 >conftest.err
22001 rm -f conftest.er1
22002 cat conftest.err >&5
22003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22004 (exit $ac_status); } && {
22005 test -z "$ac_c_werror_flag" ||
22006 test ! -s conftest.err
22007 } && test -s conftest.$ac_objext; then
22008 ac_cv_struct_sockaddr_storage=yes
22009 else
22010 echo "$as_me: failed program was:" >&5
22011 sed 's/^/| /' conftest.$ac_ext >&5
22013 ac_cv_struct_sockaddr_storage=no
22016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22019 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
22020 echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6; }
22021 if test $ac_cv_struct_sockaddr_storage = yes; then
22023 cat >>confdefs.h <<\_ACEOF
22024 #define HAVE_SOCKADDR_STORAGE 1
22025 _ACEOF
22029 # checks for compiler characteristics
22032 { echo "$as_me:$LINENO: checking whether char is unsigned" >&5
22033 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6; }
22034 if test "${ac_cv_c_char_unsigned+set}" = set; then
22035 echo $ECHO_N "(cached) $ECHO_C" >&6
22036 else
22037 cat >conftest.$ac_ext <<_ACEOF
22038 /* confdefs.h. */
22039 _ACEOF
22040 cat confdefs.h >>conftest.$ac_ext
22041 cat >>conftest.$ac_ext <<_ACEOF
22042 /* end confdefs.h. */
22043 $ac_includes_default
22045 main ()
22047 static int test_array [1 - 2 * !(((char) -1) < 0)];
22048 test_array [0] = 0
22051 return 0;
22053 _ACEOF
22054 rm -f conftest.$ac_objext
22055 if { (ac_try="$ac_compile"
22056 case "(($ac_try" in
22057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22058 *) ac_try_echo=$ac_try;;
22059 esac
22060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22061 (eval "$ac_compile") 2>conftest.er1
22062 ac_status=$?
22063 grep -v '^ *+' conftest.er1 >conftest.err
22064 rm -f conftest.er1
22065 cat conftest.err >&5
22066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22067 (exit $ac_status); } && {
22068 test -z "$ac_c_werror_flag" ||
22069 test ! -s conftest.err
22070 } && test -s conftest.$ac_objext; then
22071 ac_cv_c_char_unsigned=no
22072 else
22073 echo "$as_me: failed program was:" >&5
22074 sed 's/^/| /' conftest.$ac_ext >&5
22076 ac_cv_c_char_unsigned=yes
22079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22081 { echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
22082 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; }
22083 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
22084 cat >>confdefs.h <<\_ACEOF
22085 #define __CHAR_UNSIGNED__ 1
22086 _ACEOF
22090 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
22091 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
22092 if test "${ac_cv_c_const+set}" = set; then
22093 echo $ECHO_N "(cached) $ECHO_C" >&6
22094 else
22095 cat >conftest.$ac_ext <<_ACEOF
22096 /* confdefs.h. */
22097 _ACEOF
22098 cat confdefs.h >>conftest.$ac_ext
22099 cat >>conftest.$ac_ext <<_ACEOF
22100 /* end confdefs.h. */
22103 main ()
22105 /* FIXME: Include the comments suggested by Paul. */
22106 #ifndef __cplusplus
22107 /* Ultrix mips cc rejects this. */
22108 typedef int charset[2];
22109 const charset cs;
22110 /* SunOS 4.1.1 cc rejects this. */
22111 char const *const *pcpcc;
22112 char **ppc;
22113 /* NEC SVR4.0.2 mips cc rejects this. */
22114 struct point {int x, y;};
22115 static struct point const zero = {0,0};
22116 /* AIX XL C 1.02.0.0 rejects this.
22117 It does not let you subtract one const X* pointer from another in
22118 an arm of an if-expression whose if-part is not a constant
22119 expression */
22120 const char *g = "string";
22121 pcpcc = &g + (g ? g-g : 0);
22122 /* HPUX 7.0 cc rejects these. */
22123 ++pcpcc;
22124 ppc = (char**) pcpcc;
22125 pcpcc = (char const *const *) ppc;
22126 { /* SCO 3.2v4 cc rejects this. */
22127 char *t;
22128 char const *s = 0 ? (char *) 0 : (char const *) 0;
22130 *t++ = 0;
22131 if (s) return 0;
22133 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22134 int x[] = {25, 17};
22135 const int *foo = &x[0];
22136 ++foo;
22138 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22139 typedef const int *iptr;
22140 iptr p = 0;
22141 ++p;
22143 { /* AIX XL C 1.02.0.0 rejects this saying
22144 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22145 struct s { int j; const int *ap[3]; };
22146 struct s *b; b->j = 5;
22148 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22149 const int foo = 10;
22150 if (!foo) return 0;
22152 return !cs[0] && !zero.x;
22153 #endif
22156 return 0;
22158 _ACEOF
22159 rm -f conftest.$ac_objext
22160 if { (ac_try="$ac_compile"
22161 case "(($ac_try" in
22162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22163 *) ac_try_echo=$ac_try;;
22164 esac
22165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22166 (eval "$ac_compile") 2>conftest.er1
22167 ac_status=$?
22168 grep -v '^ *+' conftest.er1 >conftest.err
22169 rm -f conftest.er1
22170 cat conftest.err >&5
22171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22172 (exit $ac_status); } && {
22173 test -z "$ac_c_werror_flag" ||
22174 test ! -s conftest.err
22175 } && test -s conftest.$ac_objext; then
22176 ac_cv_c_const=yes
22177 else
22178 echo "$as_me: failed program was:" >&5
22179 sed 's/^/| /' conftest.$ac_ext >&5
22181 ac_cv_c_const=no
22184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22186 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
22187 echo "${ECHO_T}$ac_cv_c_const" >&6; }
22188 if test $ac_cv_c_const = no; then
22190 cat >>confdefs.h <<\_ACEOF
22191 #define const
22192 _ACEOF
22197 works=no
22198 { echo "$as_me:$LINENO: checking for working volatile" >&5
22199 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
22200 cat >conftest.$ac_ext <<_ACEOF
22201 /* confdefs.h. */
22202 _ACEOF
22203 cat confdefs.h >>conftest.$ac_ext
22204 cat >>conftest.$ac_ext <<_ACEOF
22205 /* end confdefs.h. */
22208 main ()
22210 volatile int x; x = 0;
22212 return 0;
22214 _ACEOF
22215 rm -f conftest.$ac_objext
22216 if { (ac_try="$ac_compile"
22217 case "(($ac_try" in
22218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22219 *) ac_try_echo=$ac_try;;
22220 esac
22221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22222 (eval "$ac_compile") 2>conftest.er1
22223 ac_status=$?
22224 grep -v '^ *+' conftest.er1 >conftest.err
22225 rm -f conftest.er1
22226 cat conftest.err >&5
22227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22228 (exit $ac_status); } && {
22229 test -z "$ac_c_werror_flag" ||
22230 test ! -s conftest.err
22231 } && test -s conftest.$ac_objext; then
22232 works=yes
22233 else
22234 echo "$as_me: failed program was:" >&5
22235 sed 's/^/| /' conftest.$ac_ext >&5
22238 cat >>confdefs.h <<\_ACEOF
22239 #define volatile
22240 _ACEOF
22245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22246 { echo "$as_me:$LINENO: result: $works" >&5
22247 echo "${ECHO_T}$works" >&6; }
22249 works=no
22250 { echo "$as_me:$LINENO: checking for working signed char" >&5
22251 echo $ECHO_N "checking for working signed char... $ECHO_C" >&6; }
22252 cat >conftest.$ac_ext <<_ACEOF
22253 /* confdefs.h. */
22254 _ACEOF
22255 cat confdefs.h >>conftest.$ac_ext
22256 cat >>conftest.$ac_ext <<_ACEOF
22257 /* end confdefs.h. */
22260 main ()
22262 signed char c;
22264 return 0;
22266 _ACEOF
22267 rm -f conftest.$ac_objext
22268 if { (ac_try="$ac_compile"
22269 case "(($ac_try" in
22270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22271 *) ac_try_echo=$ac_try;;
22272 esac
22273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22274 (eval "$ac_compile") 2>conftest.er1
22275 ac_status=$?
22276 grep -v '^ *+' conftest.er1 >conftest.err
22277 rm -f conftest.er1
22278 cat conftest.err >&5
22279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22280 (exit $ac_status); } && {
22281 test -z "$ac_c_werror_flag" ||
22282 test ! -s conftest.err
22283 } && test -s conftest.$ac_objext; then
22284 works=yes
22285 else
22286 echo "$as_me: failed program was:" >&5
22287 sed 's/^/| /' conftest.$ac_ext >&5
22290 cat >>confdefs.h <<\_ACEOF
22291 #define signed
22292 _ACEOF
22297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22298 { echo "$as_me:$LINENO: result: $works" >&5
22299 echo "${ECHO_T}$works" >&6; }
22301 have_prototypes=no
22302 { echo "$as_me:$LINENO: checking for prototypes" >&5
22303 echo $ECHO_N "checking for prototypes... $ECHO_C" >&6; }
22304 cat >conftest.$ac_ext <<_ACEOF
22305 /* confdefs.h. */
22306 _ACEOF
22307 cat confdefs.h >>conftest.$ac_ext
22308 cat >>conftest.$ac_ext <<_ACEOF
22309 /* end confdefs.h. */
22310 int foo(int x) { return 0; }
22312 main ()
22314 return foo(10);
22316 return 0;
22318 _ACEOF
22319 rm -f conftest.$ac_objext
22320 if { (ac_try="$ac_compile"
22321 case "(($ac_try" in
22322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22323 *) ac_try_echo=$ac_try;;
22324 esac
22325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22326 (eval "$ac_compile") 2>conftest.er1
22327 ac_status=$?
22328 grep -v '^ *+' conftest.er1 >conftest.err
22329 rm -f conftest.er1
22330 cat conftest.err >&5
22331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22332 (exit $ac_status); } && {
22333 test -z "$ac_c_werror_flag" ||
22334 test ! -s conftest.err
22335 } && test -s conftest.$ac_objext; then
22338 cat >>confdefs.h <<\_ACEOF
22339 #define HAVE_PROTOTYPES 1
22340 _ACEOF
22342 have_prototypes=yes
22344 else
22345 echo "$as_me: failed program was:" >&5
22346 sed 's/^/| /' conftest.$ac_ext >&5
22351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22352 { echo "$as_me:$LINENO: result: $have_prototypes" >&5
22353 echo "${ECHO_T}$have_prototypes" >&6; }
22355 works=no
22356 { echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
22357 echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6; }
22358 cat >conftest.$ac_ext <<_ACEOF
22359 /* confdefs.h. */
22360 _ACEOF
22361 cat confdefs.h >>conftest.$ac_ext
22362 cat >>conftest.$ac_ext <<_ACEOF
22363 /* end confdefs.h. */
22365 #include <stdarg.h>
22366 int foo(int x, ...) {
22367 va_list va;
22368 va_start(va, x);
22369 va_arg(va, int);
22370 va_arg(va, char *);
22371 va_arg(va, double);
22372 return 0;
22376 main ()
22378 return foo(10, "", 3.14);
22380 return 0;
22382 _ACEOF
22383 rm -f conftest.$ac_objext
22384 if { (ac_try="$ac_compile"
22385 case "(($ac_try" in
22386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22387 *) ac_try_echo=$ac_try;;
22388 esac
22389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22390 (eval "$ac_compile") 2>conftest.er1
22391 ac_status=$?
22392 grep -v '^ *+' conftest.er1 >conftest.err
22393 rm -f conftest.er1
22394 cat conftest.err >&5
22395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22396 (exit $ac_status); } && {
22397 test -z "$ac_c_werror_flag" ||
22398 test ! -s conftest.err
22399 } && test -s conftest.$ac_objext; then
22402 cat >>confdefs.h <<\_ACEOF
22403 #define HAVE_STDARG_PROTOTYPES 1
22404 _ACEOF
22406 works=yes
22408 else
22409 echo "$as_me: failed program was:" >&5
22410 sed 's/^/| /' conftest.$ac_ext >&5
22415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22416 { echo "$as_me:$LINENO: result: $works" >&5
22417 echo "${ECHO_T}$works" >&6; }
22419 # check for socketpair
22420 { echo "$as_me:$LINENO: checking for socketpair" >&5
22421 echo $ECHO_N "checking for socketpair... $ECHO_C" >&6; }
22422 cat >conftest.$ac_ext <<_ACEOF
22423 /* confdefs.h. */
22424 _ACEOF
22425 cat confdefs.h >>conftest.$ac_ext
22426 cat >>conftest.$ac_ext <<_ACEOF
22427 /* end confdefs.h. */
22429 #include <sys/types.h>
22430 #include <sys/socket.h>
22433 main ()
22435 void *x=socketpair
22437 return 0;
22439 _ACEOF
22440 rm -f conftest.$ac_objext
22441 if { (ac_try="$ac_compile"
22442 case "(($ac_try" in
22443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22444 *) ac_try_echo=$ac_try;;
22445 esac
22446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22447 (eval "$ac_compile") 2>conftest.er1
22448 ac_status=$?
22449 grep -v '^ *+' conftest.er1 >conftest.err
22450 rm -f conftest.er1
22451 cat conftest.err >&5
22452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22453 (exit $ac_status); } && {
22454 test -z "$ac_c_werror_flag" ||
22455 test ! -s conftest.err
22456 } && test -s conftest.$ac_objext; then
22458 cat >>confdefs.h <<\_ACEOF
22459 #define HAVE_SOCKETPAIR 1
22460 _ACEOF
22462 { echo "$as_me:$LINENO: result: yes" >&5
22463 echo "${ECHO_T}yes" >&6; }
22464 else
22465 echo "$as_me: failed program was:" >&5
22466 sed 's/^/| /' conftest.$ac_ext >&5
22468 { echo "$as_me:$LINENO: result: no" >&5
22469 echo "${ECHO_T}no" >&6; }
22473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22475 # check if sockaddr has sa_len member
22476 { echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
22477 echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6; }
22478 cat >conftest.$ac_ext <<_ACEOF
22479 /* confdefs.h. */
22480 _ACEOF
22481 cat confdefs.h >>conftest.$ac_ext
22482 cat >>conftest.$ac_ext <<_ACEOF
22483 /* end confdefs.h. */
22484 #include <sys/types.h>
22485 #include <sys/socket.h>
22487 main ()
22489 struct sockaddr x;
22490 x.sa_len = 0;
22492 return 0;
22494 _ACEOF
22495 rm -f conftest.$ac_objext
22496 if { (ac_try="$ac_compile"
22497 case "(($ac_try" in
22498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22499 *) ac_try_echo=$ac_try;;
22500 esac
22501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22502 (eval "$ac_compile") 2>conftest.er1
22503 ac_status=$?
22504 grep -v '^ *+' conftest.er1 >conftest.err
22505 rm -f conftest.er1
22506 cat conftest.err >&5
22507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22508 (exit $ac_status); } && {
22509 test -z "$ac_c_werror_flag" ||
22510 test ! -s conftest.err
22511 } && test -s conftest.$ac_objext; then
22512 { echo "$as_me:$LINENO: result: yes" >&5
22513 echo "${ECHO_T}yes" >&6; }
22515 cat >>confdefs.h <<\_ACEOF
22516 #define HAVE_SOCKADDR_SA_LEN 1
22517 _ACEOF
22519 else
22520 echo "$as_me: failed program was:" >&5
22521 sed 's/^/| /' conftest.$ac_ext >&5
22523 { echo "$as_me:$LINENO: result: no" >&5
22524 echo "${ECHO_T}no" >&6; }
22527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22529 va_list_is_array=no
22530 { echo "$as_me:$LINENO: checking whether va_list is an array" >&5
22531 echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6; }
22532 cat >conftest.$ac_ext <<_ACEOF
22533 /* confdefs.h. */
22534 _ACEOF
22535 cat confdefs.h >>conftest.$ac_ext
22536 cat >>conftest.$ac_ext <<_ACEOF
22537 /* end confdefs.h. */
22539 #ifdef HAVE_STDARG_PROTOTYPES
22540 #include <stdarg.h>
22541 #else
22542 #include <varargs.h>
22543 #endif
22546 main ()
22548 va_list list1, list2; list1 = list2;
22550 return 0;
22552 _ACEOF
22553 rm -f conftest.$ac_objext
22554 if { (ac_try="$ac_compile"
22555 case "(($ac_try" in
22556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22557 *) ac_try_echo=$ac_try;;
22558 esac
22559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22560 (eval "$ac_compile") 2>conftest.er1
22561 ac_status=$?
22562 grep -v '^ *+' conftest.er1 >conftest.err
22563 rm -f conftest.er1
22564 cat conftest.err >&5
22565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22566 (exit $ac_status); } && {
22567 test -z "$ac_c_werror_flag" ||
22568 test ! -s conftest.err
22569 } && test -s conftest.$ac_objext; then
22571 else
22572 echo "$as_me: failed program was:" >&5
22573 sed 's/^/| /' conftest.$ac_ext >&5
22577 cat >>confdefs.h <<\_ACEOF
22578 #define VA_LIST_IS_ARRAY 1
22579 _ACEOF
22581 va_list_is_array=yes
22585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22586 { echo "$as_me:$LINENO: result: $va_list_is_array" >&5
22587 echo "${ECHO_T}$va_list_is_array" >&6; }
22589 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
22593 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
22594 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
22595 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
22596 echo $ECHO_N "(cached) $ECHO_C" >&6
22597 else
22598 cat >conftest.$ac_ext <<_ACEOF
22599 /* confdefs.h. */
22600 _ACEOF
22601 cat confdefs.h >>conftest.$ac_ext
22602 cat >>conftest.$ac_ext <<_ACEOF
22603 /* end confdefs.h. */
22604 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
22605 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22606 #define gethostbyname_r innocuous_gethostbyname_r
22608 /* System header to define __stub macros and hopefully few prototypes,
22609 which can conflict with char gethostbyname_r (); below.
22610 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22611 <limits.h> exists even on freestanding compilers. */
22613 #ifdef __STDC__
22614 # include <limits.h>
22615 #else
22616 # include <assert.h>
22617 #endif
22619 #undef gethostbyname_r
22621 /* Override any GCC internal prototype to avoid an error.
22622 Use char because int might match the return type of a GCC
22623 builtin and then its argument prototype would still apply. */
22624 #ifdef __cplusplus
22625 extern "C"
22626 #endif
22627 char gethostbyname_r ();
22628 /* The GNU C library defines this for functions which it implements
22629 to always fail with ENOSYS. Some functions are actually named
22630 something starting with __ and the normal name is an alias. */
22631 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
22632 choke me
22633 #endif
22636 main ()
22638 return gethostbyname_r ();
22640 return 0;
22642 _ACEOF
22643 rm -f conftest.$ac_objext conftest$ac_exeext
22644 if { (ac_try="$ac_link"
22645 case "(($ac_try" in
22646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22647 *) ac_try_echo=$ac_try;;
22648 esac
22649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22650 (eval "$ac_link") 2>conftest.er1
22651 ac_status=$?
22652 grep -v '^ *+' conftest.er1 >conftest.err
22653 rm -f conftest.er1
22654 cat conftest.err >&5
22655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22656 (exit $ac_status); } && {
22657 test -z "$ac_c_werror_flag" ||
22658 test ! -s conftest.err
22659 } && test -s conftest$ac_exeext &&
22660 $as_test_x conftest$ac_exeext; then
22661 ac_cv_func_gethostbyname_r=yes
22662 else
22663 echo "$as_me: failed program was:" >&5
22664 sed 's/^/| /' conftest.$ac_ext >&5
22666 ac_cv_func_gethostbyname_r=no
22669 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22670 conftest$ac_exeext conftest.$ac_ext
22672 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
22673 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
22674 if test $ac_cv_func_gethostbyname_r = yes; then
22676 cat >>confdefs.h <<\_ACEOF
22677 #define HAVE_GETHOSTBYNAME_R 1
22678 _ACEOF
22680 { echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
22681 echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6; }
22682 OLD_CFLAGS=$CFLAGS
22683 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
22684 cat >conftest.$ac_ext <<_ACEOF
22685 /* confdefs.h. */
22686 _ACEOF
22687 cat confdefs.h >>conftest.$ac_ext
22688 cat >>conftest.$ac_ext <<_ACEOF
22689 /* end confdefs.h. */
22691 # include <netdb.h>
22694 main ()
22697 char *name;
22698 struct hostent *he, *res;
22699 char buffer[2048];
22700 int buflen = 2048;
22701 int h_errnop;
22703 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
22706 return 0;
22708 _ACEOF
22709 rm -f conftest.$ac_objext
22710 if { (ac_try="$ac_compile"
22711 case "(($ac_try" in
22712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22713 *) ac_try_echo=$ac_try;;
22714 esac
22715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22716 (eval "$ac_compile") 2>conftest.er1
22717 ac_status=$?
22718 grep -v '^ *+' conftest.er1 >conftest.err
22719 rm -f conftest.er1
22720 cat conftest.err >&5
22721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22722 (exit $ac_status); } && {
22723 test -z "$ac_c_werror_flag" ||
22724 test ! -s conftest.err
22725 } && test -s conftest.$ac_objext; then
22727 cat >>confdefs.h <<\_ACEOF
22728 #define HAVE_GETHOSTBYNAME_R 1
22729 _ACEOF
22732 cat >>confdefs.h <<\_ACEOF
22733 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
22734 _ACEOF
22736 { echo "$as_me:$LINENO: result: yes" >&5
22737 echo "${ECHO_T}yes" >&6; }
22739 else
22740 echo "$as_me: failed program was:" >&5
22741 sed 's/^/| /' conftest.$ac_ext >&5
22744 { echo "$as_me:$LINENO: result: no" >&5
22745 echo "${ECHO_T}no" >&6; }
22746 { echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
22747 echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6; }
22748 cat >conftest.$ac_ext <<_ACEOF
22749 /* confdefs.h. */
22750 _ACEOF
22751 cat confdefs.h >>conftest.$ac_ext
22752 cat >>conftest.$ac_ext <<_ACEOF
22753 /* end confdefs.h. */
22755 # include <netdb.h>
22758 main ()
22761 char *name;
22762 struct hostent *he;
22763 char buffer[2048];
22764 int buflen = 2048;
22765 int h_errnop;
22767 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
22770 return 0;
22772 _ACEOF
22773 rm -f conftest.$ac_objext
22774 if { (ac_try="$ac_compile"
22775 case "(($ac_try" in
22776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22777 *) ac_try_echo=$ac_try;;
22778 esac
22779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22780 (eval "$ac_compile") 2>conftest.er1
22781 ac_status=$?
22782 grep -v '^ *+' conftest.er1 >conftest.err
22783 rm -f conftest.er1
22784 cat conftest.err >&5
22785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22786 (exit $ac_status); } && {
22787 test -z "$ac_c_werror_flag" ||
22788 test ! -s conftest.err
22789 } && test -s conftest.$ac_objext; then
22791 cat >>confdefs.h <<\_ACEOF
22792 #define HAVE_GETHOSTBYNAME_R 1
22793 _ACEOF
22796 cat >>confdefs.h <<\_ACEOF
22797 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
22798 _ACEOF
22800 { echo "$as_me:$LINENO: result: yes" >&5
22801 echo "${ECHO_T}yes" >&6; }
22803 else
22804 echo "$as_me: failed program was:" >&5
22805 sed 's/^/| /' conftest.$ac_ext >&5
22808 { echo "$as_me:$LINENO: result: no" >&5
22809 echo "${ECHO_T}no" >&6; }
22810 { echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
22811 echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6; }
22812 cat >conftest.$ac_ext <<_ACEOF
22813 /* confdefs.h. */
22814 _ACEOF
22815 cat confdefs.h >>conftest.$ac_ext
22816 cat >>conftest.$ac_ext <<_ACEOF
22817 /* end confdefs.h. */
22819 # include <netdb.h>
22822 main ()
22825 char *name;
22826 struct hostent *he;
22827 struct hostent_data data;
22829 (void) gethostbyname_r(name, he, &data);
22832 return 0;
22834 _ACEOF
22835 rm -f conftest.$ac_objext
22836 if { (ac_try="$ac_compile"
22837 case "(($ac_try" in
22838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22839 *) ac_try_echo=$ac_try;;
22840 esac
22841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22842 (eval "$ac_compile") 2>conftest.er1
22843 ac_status=$?
22844 grep -v '^ *+' conftest.er1 >conftest.err
22845 rm -f conftest.er1
22846 cat conftest.err >&5
22847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22848 (exit $ac_status); } && {
22849 test -z "$ac_c_werror_flag" ||
22850 test ! -s conftest.err
22851 } && test -s conftest.$ac_objext; then
22853 cat >>confdefs.h <<\_ACEOF
22854 #define HAVE_GETHOSTBYNAME_R 1
22855 _ACEOF
22858 cat >>confdefs.h <<\_ACEOF
22859 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
22860 _ACEOF
22862 { echo "$as_me:$LINENO: result: yes" >&5
22863 echo "${ECHO_T}yes" >&6; }
22865 else
22866 echo "$as_me: failed program was:" >&5
22867 sed 's/^/| /' conftest.$ac_ext >&5
22870 { echo "$as_me:$LINENO: result: no" >&5
22871 echo "${ECHO_T}no" >&6; }
22875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22884 CFLAGS=$OLD_CFLAGS
22886 else
22889 for ac_func in gethostbyname
22891 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22892 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22893 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22894 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22895 echo $ECHO_N "(cached) $ECHO_C" >&6
22896 else
22897 cat >conftest.$ac_ext <<_ACEOF
22898 /* confdefs.h. */
22899 _ACEOF
22900 cat confdefs.h >>conftest.$ac_ext
22901 cat >>conftest.$ac_ext <<_ACEOF
22902 /* end confdefs.h. */
22903 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22904 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22905 #define $ac_func innocuous_$ac_func
22907 /* System header to define __stub macros and hopefully few prototypes,
22908 which can conflict with char $ac_func (); below.
22909 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22910 <limits.h> exists even on freestanding compilers. */
22912 #ifdef __STDC__
22913 # include <limits.h>
22914 #else
22915 # include <assert.h>
22916 #endif
22918 #undef $ac_func
22920 /* Override any GCC internal prototype to avoid an error.
22921 Use char because int might match the return type of a GCC
22922 builtin and then its argument prototype would still apply. */
22923 #ifdef __cplusplus
22924 extern "C"
22925 #endif
22926 char $ac_func ();
22927 /* The GNU C library defines this for functions which it implements
22928 to always fail with ENOSYS. Some functions are actually named
22929 something starting with __ and the normal name is an alias. */
22930 #if defined __stub_$ac_func || defined __stub___$ac_func
22931 choke me
22932 #endif
22935 main ()
22937 return $ac_func ();
22939 return 0;
22941 _ACEOF
22942 rm -f conftest.$ac_objext conftest$ac_exeext
22943 if { (ac_try="$ac_link"
22944 case "(($ac_try" in
22945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22946 *) ac_try_echo=$ac_try;;
22947 esac
22948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22949 (eval "$ac_link") 2>conftest.er1
22950 ac_status=$?
22951 grep -v '^ *+' conftest.er1 >conftest.err
22952 rm -f conftest.er1
22953 cat conftest.err >&5
22954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22955 (exit $ac_status); } && {
22956 test -z "$ac_c_werror_flag" ||
22957 test ! -s conftest.err
22958 } && test -s conftest$ac_exeext &&
22959 $as_test_x conftest$ac_exeext; then
22960 eval "$as_ac_var=yes"
22961 else
22962 echo "$as_me: failed program was:" >&5
22963 sed 's/^/| /' conftest.$ac_ext >&5
22965 eval "$as_ac_var=no"
22968 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22969 conftest$ac_exeext conftest.$ac_ext
22971 ac_res=`eval echo '${'$as_ac_var'}'`
22972 { echo "$as_me:$LINENO: result: $ac_res" >&5
22973 echo "${ECHO_T}$ac_res" >&6; }
22974 if test `eval echo '${'$as_ac_var'}'` = yes; then
22975 cat >>confdefs.h <<_ACEOF
22976 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22977 _ACEOF
22980 done
22991 # checks for system services
22992 # (none yet)
22994 # Linux requires this for correct f.p. operations
22995 { echo "$as_me:$LINENO: checking for __fpu_control" >&5
22996 echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6; }
22997 if test "${ac_cv_func___fpu_control+set}" = set; then
22998 echo $ECHO_N "(cached) $ECHO_C" >&6
22999 else
23000 cat >conftest.$ac_ext <<_ACEOF
23001 /* confdefs.h. */
23002 _ACEOF
23003 cat confdefs.h >>conftest.$ac_ext
23004 cat >>conftest.$ac_ext <<_ACEOF
23005 /* end confdefs.h. */
23006 /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control.
23007 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23008 #define __fpu_control innocuous___fpu_control
23010 /* System header to define __stub macros and hopefully few prototypes,
23011 which can conflict with char __fpu_control (); below.
23012 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23013 <limits.h> exists even on freestanding compilers. */
23015 #ifdef __STDC__
23016 # include <limits.h>
23017 #else
23018 # include <assert.h>
23019 #endif
23021 #undef __fpu_control
23023 /* Override any GCC internal prototype to avoid an error.
23024 Use char because int might match the return type of a GCC
23025 builtin and then its argument prototype would still apply. */
23026 #ifdef __cplusplus
23027 extern "C"
23028 #endif
23029 char __fpu_control ();
23030 /* The GNU C library defines this for functions which it implements
23031 to always fail with ENOSYS. Some functions are actually named
23032 something starting with __ and the normal name is an alias. */
23033 #if defined __stub___fpu_control || defined __stub_____fpu_control
23034 choke me
23035 #endif
23038 main ()
23040 return __fpu_control ();
23042 return 0;
23044 _ACEOF
23045 rm -f conftest.$ac_objext conftest$ac_exeext
23046 if { (ac_try="$ac_link"
23047 case "(($ac_try" in
23048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23049 *) ac_try_echo=$ac_try;;
23050 esac
23051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23052 (eval "$ac_link") 2>conftest.er1
23053 ac_status=$?
23054 grep -v '^ *+' conftest.er1 >conftest.err
23055 rm -f conftest.er1
23056 cat conftest.err >&5
23057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23058 (exit $ac_status); } && {
23059 test -z "$ac_c_werror_flag" ||
23060 test ! -s conftest.err
23061 } && test -s conftest$ac_exeext &&
23062 $as_test_x conftest$ac_exeext; then
23063 ac_cv_func___fpu_control=yes
23064 else
23065 echo "$as_me: failed program was:" >&5
23066 sed 's/^/| /' conftest.$ac_ext >&5
23068 ac_cv_func___fpu_control=no
23071 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23072 conftest$ac_exeext conftest.$ac_ext
23074 { echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
23075 echo "${ECHO_T}$ac_cv_func___fpu_control" >&6; }
23076 if test $ac_cv_func___fpu_control = yes; then
23078 else
23080 { echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
23081 echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6; }
23082 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
23083 echo $ECHO_N "(cached) $ECHO_C" >&6
23084 else
23085 ac_check_lib_save_LIBS=$LIBS
23086 LIBS="-lieee $LIBS"
23087 cat >conftest.$ac_ext <<_ACEOF
23088 /* confdefs.h. */
23089 _ACEOF
23090 cat confdefs.h >>conftest.$ac_ext
23091 cat >>conftest.$ac_ext <<_ACEOF
23092 /* end confdefs.h. */
23094 /* Override any GCC internal prototype to avoid an error.
23095 Use char because int might match the return type of a GCC
23096 builtin and then its argument prototype would still apply. */
23097 #ifdef __cplusplus
23098 extern "C"
23099 #endif
23100 char __fpu_control ();
23102 main ()
23104 return __fpu_control ();
23106 return 0;
23108 _ACEOF
23109 rm -f conftest.$ac_objext conftest$ac_exeext
23110 if { (ac_try="$ac_link"
23111 case "(($ac_try" in
23112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23113 *) ac_try_echo=$ac_try;;
23114 esac
23115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23116 (eval "$ac_link") 2>conftest.er1
23117 ac_status=$?
23118 grep -v '^ *+' conftest.er1 >conftest.err
23119 rm -f conftest.er1
23120 cat conftest.err >&5
23121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23122 (exit $ac_status); } && {
23123 test -z "$ac_c_werror_flag" ||
23124 test ! -s conftest.err
23125 } && test -s conftest$ac_exeext &&
23126 $as_test_x conftest$ac_exeext; then
23127 ac_cv_lib_ieee___fpu_control=yes
23128 else
23129 echo "$as_me: failed program was:" >&5
23130 sed 's/^/| /' conftest.$ac_ext >&5
23132 ac_cv_lib_ieee___fpu_control=no
23135 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23136 conftest$ac_exeext conftest.$ac_ext
23137 LIBS=$ac_check_lib_save_LIBS
23139 { echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
23140 echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6; }
23141 if test $ac_cv_lib_ieee___fpu_control = yes; then
23142 cat >>confdefs.h <<_ACEOF
23143 #define HAVE_LIBIEEE 1
23144 _ACEOF
23146 LIBS="-lieee $LIBS"
23154 # Check for --with-fpectl
23155 { echo "$as_me:$LINENO: checking for --with-fpectl" >&5
23156 echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6; }
23158 # Check whether --with-fpectl was given.
23159 if test "${with_fpectl+set}" = set; then
23160 withval=$with_fpectl;
23161 if test "$withval" != no
23162 then
23164 cat >>confdefs.h <<\_ACEOF
23165 #define WANT_SIGFPE_HANDLER 1
23166 _ACEOF
23168 { echo "$as_me:$LINENO: result: yes" >&5
23169 echo "${ECHO_T}yes" >&6; }
23170 else { echo "$as_me:$LINENO: result: no" >&5
23171 echo "${ECHO_T}no" >&6; }
23173 else
23174 { echo "$as_me:$LINENO: result: no" >&5
23175 echo "${ECHO_T}no" >&6; }
23179 # check for --with-libm=...
23181 case $ac_sys_system in
23182 Darwin) ;;
23183 BeOS) ;;
23184 *) LIBM=-lm
23185 esac
23186 { echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
23187 echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6; }
23189 # Check whether --with-libm was given.
23190 if test "${with_libm+set}" = set; then
23191 withval=$with_libm;
23192 if test "$withval" = no
23193 then LIBM=
23194 { echo "$as_me:$LINENO: result: force LIBM empty" >&5
23195 echo "${ECHO_T}force LIBM empty" >&6; }
23196 elif test "$withval" != yes
23197 then LIBM=$withval
23198 { echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
23199 echo "${ECHO_T}set LIBM=\"$withval\"" >&6; }
23200 else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
23201 echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
23202 { (exit 1); exit 1; }; }
23204 else
23205 { echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
23206 echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6; }
23210 # check for --with-libc=...
23212 { echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
23213 echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6; }
23215 # Check whether --with-libc was given.
23216 if test "${with_libc+set}" = set; then
23217 withval=$with_libc;
23218 if test "$withval" = no
23219 then LIBC=
23220 { echo "$as_me:$LINENO: result: force LIBC empty" >&5
23221 echo "${ECHO_T}force LIBC empty" >&6; }
23222 elif test "$withval" != yes
23223 then LIBC=$withval
23224 { echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
23225 echo "${ECHO_T}set LIBC=\"$withval\"" >&6; }
23226 else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
23227 echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
23228 { (exit 1); exit 1; }; }
23230 else
23231 { echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
23232 echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6; }
23236 # ************************************
23237 # * Check for mathematical functions *
23238 # ************************************
23240 LIBS_SAVE=$LIBS
23241 LIBS="$LIBS $LIBM"
23243 # Detect whether system arithmetic is subject to x87-style double
23244 # rounding issues. The result of this test has little meaning on non
23245 # IEEE 754 platforms. On IEEE 754, test should return 1 if rounding
23246 # mode is round-to-nearest and double rounding issues are present, and
23247 # 0 otherwise. See http://bugs.python.org/issue2937 for more info.
23248 { echo "$as_me:$LINENO: checking for x87-style double rounding" >&5
23249 echo $ECHO_N "checking for x87-style double rounding... $ECHO_C" >&6; }
23250 if test "${ac_cv_x87_double_rounding+set}" = set; then
23251 echo $ECHO_N "(cached) $ECHO_C" >&6
23252 else
23254 if test "$cross_compiling" = yes; then
23255 ac_cv_x87_double_rounding=no
23256 else
23257 cat >conftest.$ac_ext <<_ACEOF
23258 /* confdefs.h. */
23259 _ACEOF
23260 cat confdefs.h >>conftest.$ac_ext
23261 cat >>conftest.$ac_ext <<_ACEOF
23262 /* end confdefs.h. */
23264 #include <stdlib.h>
23265 #include <math.h>
23266 int main() {
23267 volatile double x, y, z;
23268 /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */
23269 x = 0.99999999999999989; /* 1-2**-53 */
23270 y = 1./x;
23271 if (y != 1.)
23272 exit(0);
23273 /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */
23274 x = 1e16;
23275 y = 2.99999;
23276 z = x + y;
23277 if (z != 1e16+4.)
23278 exit(0);
23279 /* both tests show evidence of double rounding */
23280 exit(1);
23283 _ACEOF
23284 rm -f conftest$ac_exeext
23285 if { (ac_try="$ac_link"
23286 case "(($ac_try" in
23287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23288 *) ac_try_echo=$ac_try;;
23289 esac
23290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23291 (eval "$ac_link") 2>&5
23292 ac_status=$?
23293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23294 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23295 { (case "(($ac_try" in
23296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23297 *) ac_try_echo=$ac_try;;
23298 esac
23299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23300 (eval "$ac_try") 2>&5
23301 ac_status=$?
23302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23303 (exit $ac_status); }; }; then
23304 ac_cv_x87_double_rounding=no
23305 else
23306 echo "$as_me: program exited with status $ac_status" >&5
23307 echo "$as_me: failed program was:" >&5
23308 sed 's/^/| /' conftest.$ac_ext >&5
23310 ( exit $ac_status )
23311 ac_cv_x87_double_rounding=yes
23313 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23319 { echo "$as_me:$LINENO: result: $ac_cv_x87_double_rounding" >&5
23320 echo "${ECHO_T}$ac_cv_x87_double_rounding" >&6; }
23321 if test "$ac_cv_x87_double_rounding" = yes
23322 then
23324 cat >>confdefs.h <<\_ACEOF
23325 #define X87_DOUBLE_ROUNDING 1
23326 _ACEOF
23330 # Multiprocessing check for broken sem_getvalue
23331 { echo "$as_me:$LINENO: checking for broken sem_getvalue" >&5
23332 echo $ECHO_N "checking for broken sem_getvalue... $ECHO_C" >&6; }
23333 if test "${ac_cv_broken_sem_getvalue+set}" = set; then
23334 echo $ECHO_N "(cached) $ECHO_C" >&6
23335 else
23336 if test "$cross_compiling" = yes; then
23337 ac_cv_broken_sem_getvalue=yes
23338 else
23339 cat >conftest.$ac_ext <<_ACEOF
23340 /* confdefs.h. */
23341 _ACEOF
23342 cat confdefs.h >>conftest.$ac_ext
23343 cat >>conftest.$ac_ext <<_ACEOF
23344 /* end confdefs.h. */
23346 #include <unistd.h>
23347 #include <fcntl.h>
23348 #include <stdio.h>
23349 #include <semaphore.h>
23350 #include <sys/stat.h>
23352 int main(void){
23353 sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0);
23354 int count;
23355 int res;
23356 if(a==SEM_FAILED){
23357 perror("sem_open");
23358 return 1;
23361 res = sem_getvalue(a, &count);
23362 sem_close(a);
23363 return res==-1 ? 1 : 0;
23366 _ACEOF
23367 rm -f conftest$ac_exeext
23368 if { (ac_try="$ac_link"
23369 case "(($ac_try" in
23370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23371 *) ac_try_echo=$ac_try;;
23372 esac
23373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23374 (eval "$ac_link") 2>&5
23375 ac_status=$?
23376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23377 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23378 { (case "(($ac_try" in
23379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23380 *) ac_try_echo=$ac_try;;
23381 esac
23382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23383 (eval "$ac_try") 2>&5
23384 ac_status=$?
23385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23386 (exit $ac_status); }; }; then
23387 ac_cv_broken_sem_getvalue=no
23388 else
23389 echo "$as_me: program exited with status $ac_status" >&5
23390 echo "$as_me: failed program was:" >&5
23391 sed 's/^/| /' conftest.$ac_ext >&5
23393 ( exit $ac_status )
23394 ac_cv_broken_sem_getvalue=yes
23396 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23403 { echo "$as_me:$LINENO: result: $ac_cv_broken_sem_getvalue" >&5
23404 echo "${ECHO_T}$ac_cv_broken_sem_getvalue" >&6; }
23405 if test $ac_cv_broken_sem_getvalue = yes
23406 then
23408 cat >>confdefs.h <<\_ACEOF
23409 #define HAVE_BROKEN_SEM_GETVALUE 1
23410 _ACEOF
23414 # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of
23415 # -0. on some architectures.
23416 { echo "$as_me:$LINENO: checking whether tanh preserves the sign of zero" >&5
23417 echo $ECHO_N "checking whether tanh preserves the sign of zero... $ECHO_C" >&6; }
23418 if test "${ac_cv_tanh_preserves_zero_sign+set}" = set; then
23419 echo $ECHO_N "(cached) $ECHO_C" >&6
23420 else
23422 if test "$cross_compiling" = yes; then
23423 ac_cv_tanh_preserves_zero_sign=no
23424 else
23425 cat >conftest.$ac_ext <<_ACEOF
23426 /* confdefs.h. */
23427 _ACEOF
23428 cat confdefs.h >>conftest.$ac_ext
23429 cat >>conftest.$ac_ext <<_ACEOF
23430 /* end confdefs.h. */
23432 #include <math.h>
23433 #include <stdlib.h>
23434 int main() {
23435 /* return 0 if either negative zeros don't exist
23436 on this platform or if negative zeros exist
23437 and tanh(-0.) == -0. */
23438 if (atan2(0., -1.) == atan2(-0., -1.) ||
23439 atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0);
23440 else exit(1);
23443 _ACEOF
23444 rm -f conftest$ac_exeext
23445 if { (ac_try="$ac_link"
23446 case "(($ac_try" in
23447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23448 *) ac_try_echo=$ac_try;;
23449 esac
23450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23451 (eval "$ac_link") 2>&5
23452 ac_status=$?
23453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23454 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23455 { (case "(($ac_try" in
23456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23457 *) ac_try_echo=$ac_try;;
23458 esac
23459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23460 (eval "$ac_try") 2>&5
23461 ac_status=$?
23462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23463 (exit $ac_status); }; }; then
23464 ac_cv_tanh_preserves_zero_sign=yes
23465 else
23466 echo "$as_me: program exited with status $ac_status" >&5
23467 echo "$as_me: failed program was:" >&5
23468 sed 's/^/| /' conftest.$ac_ext >&5
23470 ( exit $ac_status )
23471 ac_cv_tanh_preserves_zero_sign=no
23473 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23479 { echo "$as_me:$LINENO: result: $ac_cv_tanh_preserves_zero_sign" >&5
23480 echo "${ECHO_T}$ac_cv_tanh_preserves_zero_sign" >&6; }
23481 if test "$ac_cv_tanh_preserves_zero_sign" = yes
23482 then
23484 cat >>confdefs.h <<\_ACEOF
23485 #define TANH_PRESERVES_ZERO_SIGN 1
23486 _ACEOF
23499 for ac_func in acosh asinh atanh copysign erf erfc expm1 finite gamma
23501 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23502 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23503 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23504 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23505 echo $ECHO_N "(cached) $ECHO_C" >&6
23506 else
23507 cat >conftest.$ac_ext <<_ACEOF
23508 /* confdefs.h. */
23509 _ACEOF
23510 cat confdefs.h >>conftest.$ac_ext
23511 cat >>conftest.$ac_ext <<_ACEOF
23512 /* end confdefs.h. */
23513 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23514 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23515 #define $ac_func innocuous_$ac_func
23517 /* System header to define __stub macros and hopefully few prototypes,
23518 which can conflict with char $ac_func (); below.
23519 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23520 <limits.h> exists even on freestanding compilers. */
23522 #ifdef __STDC__
23523 # include <limits.h>
23524 #else
23525 # include <assert.h>
23526 #endif
23528 #undef $ac_func
23530 /* Override any GCC internal prototype to avoid an error.
23531 Use char because int might match the return type of a GCC
23532 builtin and then its argument prototype would still apply. */
23533 #ifdef __cplusplus
23534 extern "C"
23535 #endif
23536 char $ac_func ();
23537 /* The GNU C library defines this for functions which it implements
23538 to always fail with ENOSYS. Some functions are actually named
23539 something starting with __ and the normal name is an alias. */
23540 #if defined __stub_$ac_func || defined __stub___$ac_func
23541 choke me
23542 #endif
23545 main ()
23547 return $ac_func ();
23549 return 0;
23551 _ACEOF
23552 rm -f conftest.$ac_objext conftest$ac_exeext
23553 if { (ac_try="$ac_link"
23554 case "(($ac_try" in
23555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23556 *) ac_try_echo=$ac_try;;
23557 esac
23558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23559 (eval "$ac_link") 2>conftest.er1
23560 ac_status=$?
23561 grep -v '^ *+' conftest.er1 >conftest.err
23562 rm -f conftest.er1
23563 cat conftest.err >&5
23564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23565 (exit $ac_status); } && {
23566 test -z "$ac_c_werror_flag" ||
23567 test ! -s conftest.err
23568 } && test -s conftest$ac_exeext &&
23569 $as_test_x conftest$ac_exeext; then
23570 eval "$as_ac_var=yes"
23571 else
23572 echo "$as_me: failed program was:" >&5
23573 sed 's/^/| /' conftest.$ac_ext >&5
23575 eval "$as_ac_var=no"
23578 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23579 conftest$ac_exeext conftest.$ac_ext
23581 ac_res=`eval echo '${'$as_ac_var'}'`
23582 { echo "$as_me:$LINENO: result: $ac_res" >&5
23583 echo "${ECHO_T}$ac_res" >&6; }
23584 if test `eval echo '${'$as_ac_var'}'` = yes; then
23585 cat >>confdefs.h <<_ACEOF
23586 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23587 _ACEOF
23590 done
23597 for ac_func in hypot lgamma log1p round tgamma
23599 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23600 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23601 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23602 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23603 echo $ECHO_N "(cached) $ECHO_C" >&6
23604 else
23605 cat >conftest.$ac_ext <<_ACEOF
23606 /* confdefs.h. */
23607 _ACEOF
23608 cat confdefs.h >>conftest.$ac_ext
23609 cat >>conftest.$ac_ext <<_ACEOF
23610 /* end confdefs.h. */
23611 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23612 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23613 #define $ac_func innocuous_$ac_func
23615 /* System header to define __stub macros and hopefully few prototypes,
23616 which can conflict with char $ac_func (); below.
23617 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23618 <limits.h> exists even on freestanding compilers. */
23620 #ifdef __STDC__
23621 # include <limits.h>
23622 #else
23623 # include <assert.h>
23624 #endif
23626 #undef $ac_func
23628 /* Override any GCC internal prototype to avoid an error.
23629 Use char because int might match the return type of a GCC
23630 builtin and then its argument prototype would still apply. */
23631 #ifdef __cplusplus
23632 extern "C"
23633 #endif
23634 char $ac_func ();
23635 /* The GNU C library defines this for functions which it implements
23636 to always fail with ENOSYS. Some functions are actually named
23637 something starting with __ and the normal name is an alias. */
23638 #if defined __stub_$ac_func || defined __stub___$ac_func
23639 choke me
23640 #endif
23643 main ()
23645 return $ac_func ();
23647 return 0;
23649 _ACEOF
23650 rm -f conftest.$ac_objext conftest$ac_exeext
23651 if { (ac_try="$ac_link"
23652 case "(($ac_try" in
23653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23654 *) ac_try_echo=$ac_try;;
23655 esac
23656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23657 (eval "$ac_link") 2>conftest.er1
23658 ac_status=$?
23659 grep -v '^ *+' conftest.er1 >conftest.err
23660 rm -f conftest.er1
23661 cat conftest.err >&5
23662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23663 (exit $ac_status); } && {
23664 test -z "$ac_c_werror_flag" ||
23665 test ! -s conftest.err
23666 } && test -s conftest$ac_exeext &&
23667 $as_test_x conftest$ac_exeext; then
23668 eval "$as_ac_var=yes"
23669 else
23670 echo "$as_me: failed program was:" >&5
23671 sed 's/^/| /' conftest.$ac_ext >&5
23673 eval "$as_ac_var=no"
23676 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23677 conftest$ac_exeext conftest.$ac_ext
23679 ac_res=`eval echo '${'$as_ac_var'}'`
23680 { echo "$as_me:$LINENO: result: $ac_res" >&5
23681 echo "${ECHO_T}$ac_res" >&6; }
23682 if test `eval echo '${'$as_ac_var'}'` = yes; then
23683 cat >>confdefs.h <<_ACEOF
23684 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23685 _ACEOF
23688 done
23690 { echo "$as_me:$LINENO: checking whether isinf is declared" >&5
23691 echo $ECHO_N "checking whether isinf is declared... $ECHO_C" >&6; }
23692 if test "${ac_cv_have_decl_isinf+set}" = set; then
23693 echo $ECHO_N "(cached) $ECHO_C" >&6
23694 else
23695 cat >conftest.$ac_ext <<_ACEOF
23696 /* confdefs.h. */
23697 _ACEOF
23698 cat confdefs.h >>conftest.$ac_ext
23699 cat >>conftest.$ac_ext <<_ACEOF
23700 /* end confdefs.h. */
23701 #include <math.h>
23704 main ()
23706 #ifndef isinf
23707 (void) isinf;
23708 #endif
23711 return 0;
23713 _ACEOF
23714 rm -f conftest.$ac_objext
23715 if { (ac_try="$ac_compile"
23716 case "(($ac_try" in
23717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23718 *) ac_try_echo=$ac_try;;
23719 esac
23720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23721 (eval "$ac_compile") 2>conftest.er1
23722 ac_status=$?
23723 grep -v '^ *+' conftest.er1 >conftest.err
23724 rm -f conftest.er1
23725 cat conftest.err >&5
23726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23727 (exit $ac_status); } && {
23728 test -z "$ac_c_werror_flag" ||
23729 test ! -s conftest.err
23730 } && test -s conftest.$ac_objext; then
23731 ac_cv_have_decl_isinf=yes
23732 else
23733 echo "$as_me: failed program was:" >&5
23734 sed 's/^/| /' conftest.$ac_ext >&5
23736 ac_cv_have_decl_isinf=no
23739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23741 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isinf" >&5
23742 echo "${ECHO_T}$ac_cv_have_decl_isinf" >&6; }
23743 if test $ac_cv_have_decl_isinf = yes; then
23745 cat >>confdefs.h <<_ACEOF
23746 #define HAVE_DECL_ISINF 1
23747 _ACEOF
23750 else
23751 cat >>confdefs.h <<_ACEOF
23752 #define HAVE_DECL_ISINF 0
23753 _ACEOF
23757 { echo "$as_me:$LINENO: checking whether isnan is declared" >&5
23758 echo $ECHO_N "checking whether isnan is declared... $ECHO_C" >&6; }
23759 if test "${ac_cv_have_decl_isnan+set}" = set; then
23760 echo $ECHO_N "(cached) $ECHO_C" >&6
23761 else
23762 cat >conftest.$ac_ext <<_ACEOF
23763 /* confdefs.h. */
23764 _ACEOF
23765 cat confdefs.h >>conftest.$ac_ext
23766 cat >>conftest.$ac_ext <<_ACEOF
23767 /* end confdefs.h. */
23768 #include <math.h>
23771 main ()
23773 #ifndef isnan
23774 (void) isnan;
23775 #endif
23778 return 0;
23780 _ACEOF
23781 rm -f conftest.$ac_objext
23782 if { (ac_try="$ac_compile"
23783 case "(($ac_try" in
23784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23785 *) ac_try_echo=$ac_try;;
23786 esac
23787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23788 (eval "$ac_compile") 2>conftest.er1
23789 ac_status=$?
23790 grep -v '^ *+' conftest.er1 >conftest.err
23791 rm -f conftest.er1
23792 cat conftest.err >&5
23793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23794 (exit $ac_status); } && {
23795 test -z "$ac_c_werror_flag" ||
23796 test ! -s conftest.err
23797 } && test -s conftest.$ac_objext; then
23798 ac_cv_have_decl_isnan=yes
23799 else
23800 echo "$as_me: failed program was:" >&5
23801 sed 's/^/| /' conftest.$ac_ext >&5
23803 ac_cv_have_decl_isnan=no
23806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23808 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isnan" >&5
23809 echo "${ECHO_T}$ac_cv_have_decl_isnan" >&6; }
23810 if test $ac_cv_have_decl_isnan = yes; then
23812 cat >>confdefs.h <<_ACEOF
23813 #define HAVE_DECL_ISNAN 1
23814 _ACEOF
23817 else
23818 cat >>confdefs.h <<_ACEOF
23819 #define HAVE_DECL_ISNAN 0
23820 _ACEOF
23824 { echo "$as_me:$LINENO: checking whether isfinite is declared" >&5
23825 echo $ECHO_N "checking whether isfinite is declared... $ECHO_C" >&6; }
23826 if test "${ac_cv_have_decl_isfinite+set}" = set; then
23827 echo $ECHO_N "(cached) $ECHO_C" >&6
23828 else
23829 cat >conftest.$ac_ext <<_ACEOF
23830 /* confdefs.h. */
23831 _ACEOF
23832 cat confdefs.h >>conftest.$ac_ext
23833 cat >>conftest.$ac_ext <<_ACEOF
23834 /* end confdefs.h. */
23835 #include <math.h>
23838 main ()
23840 #ifndef isfinite
23841 (void) isfinite;
23842 #endif
23845 return 0;
23847 _ACEOF
23848 rm -f conftest.$ac_objext
23849 if { (ac_try="$ac_compile"
23850 case "(($ac_try" in
23851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23852 *) ac_try_echo=$ac_try;;
23853 esac
23854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23855 (eval "$ac_compile") 2>conftest.er1
23856 ac_status=$?
23857 grep -v '^ *+' conftest.er1 >conftest.err
23858 rm -f conftest.er1
23859 cat conftest.err >&5
23860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23861 (exit $ac_status); } && {
23862 test -z "$ac_c_werror_flag" ||
23863 test ! -s conftest.err
23864 } && test -s conftest.$ac_objext; then
23865 ac_cv_have_decl_isfinite=yes
23866 else
23867 echo "$as_me: failed program was:" >&5
23868 sed 's/^/| /' conftest.$ac_ext >&5
23870 ac_cv_have_decl_isfinite=no
23873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23875 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isfinite" >&5
23876 echo "${ECHO_T}$ac_cv_have_decl_isfinite" >&6; }
23877 if test $ac_cv_have_decl_isfinite = yes; then
23879 cat >>confdefs.h <<_ACEOF
23880 #define HAVE_DECL_ISFINITE 1
23881 _ACEOF
23884 else
23885 cat >>confdefs.h <<_ACEOF
23886 #define HAVE_DECL_ISFINITE 0
23887 _ACEOF
23894 LIBS=$LIBS_SAVE
23896 # determine what size digit to use for Python's longs
23897 { echo "$as_me:$LINENO: checking digit size for Python's longs" >&5
23898 echo $ECHO_N "checking digit size for Python's longs... $ECHO_C" >&6; }
23899 # Check whether --enable-big-digits was given.
23900 if test "${enable_big_digits+set}" = set; then
23901 enableval=$enable_big_digits; case $enable_big_digits in
23902 yes)
23903 enable_big_digits=30 ;;
23905 enable_big_digits=15 ;;
23906 15|30)
23909 { { echo "$as_me:$LINENO: error: bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" >&5
23910 echo "$as_me: error: bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" >&2;}
23911 { (exit 1); exit 1; }; } ;;
23912 esac
23913 { echo "$as_me:$LINENO: result: $enable_big_digits" >&5
23914 echo "${ECHO_T}$enable_big_digits" >&6; }
23916 cat >>confdefs.h <<_ACEOF
23917 #define PYLONG_BITS_IN_DIGIT $enable_big_digits
23918 _ACEOF
23921 else
23922 { echo "$as_me:$LINENO: result: no value specified" >&5
23923 echo "${ECHO_T}no value specified" >&6; }
23927 # check for wchar.h
23928 if test "${ac_cv_header_wchar_h+set}" = set; then
23929 { echo "$as_me:$LINENO: checking for wchar.h" >&5
23930 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
23931 if test "${ac_cv_header_wchar_h+set}" = set; then
23932 echo $ECHO_N "(cached) $ECHO_C" >&6
23934 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
23935 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
23936 else
23937 # Is the header compilable?
23938 { echo "$as_me:$LINENO: checking wchar.h usability" >&5
23939 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6; }
23940 cat >conftest.$ac_ext <<_ACEOF
23941 /* confdefs.h. */
23942 _ACEOF
23943 cat confdefs.h >>conftest.$ac_ext
23944 cat >>conftest.$ac_ext <<_ACEOF
23945 /* end confdefs.h. */
23946 $ac_includes_default
23947 #include <wchar.h>
23948 _ACEOF
23949 rm -f conftest.$ac_objext
23950 if { (ac_try="$ac_compile"
23951 case "(($ac_try" in
23952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23953 *) ac_try_echo=$ac_try;;
23954 esac
23955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23956 (eval "$ac_compile") 2>conftest.er1
23957 ac_status=$?
23958 grep -v '^ *+' conftest.er1 >conftest.err
23959 rm -f conftest.er1
23960 cat conftest.err >&5
23961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23962 (exit $ac_status); } && {
23963 test -z "$ac_c_werror_flag" ||
23964 test ! -s conftest.err
23965 } && test -s conftest.$ac_objext; then
23966 ac_header_compiler=yes
23967 else
23968 echo "$as_me: failed program was:" >&5
23969 sed 's/^/| /' conftest.$ac_ext >&5
23971 ac_header_compiler=no
23974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23975 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23976 echo "${ECHO_T}$ac_header_compiler" >&6; }
23978 # Is the header present?
23979 { echo "$as_me:$LINENO: checking wchar.h presence" >&5
23980 echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6; }
23981 cat >conftest.$ac_ext <<_ACEOF
23982 /* confdefs.h. */
23983 _ACEOF
23984 cat confdefs.h >>conftest.$ac_ext
23985 cat >>conftest.$ac_ext <<_ACEOF
23986 /* end confdefs.h. */
23987 #include <wchar.h>
23988 _ACEOF
23989 if { (ac_try="$ac_cpp conftest.$ac_ext"
23990 case "(($ac_try" in
23991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23992 *) ac_try_echo=$ac_try;;
23993 esac
23994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23995 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23996 ac_status=$?
23997 grep -v '^ *+' conftest.er1 >conftest.err
23998 rm -f conftest.er1
23999 cat conftest.err >&5
24000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24001 (exit $ac_status); } >/dev/null && {
24002 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24003 test ! -s conftest.err
24004 }; then
24005 ac_header_preproc=yes
24006 else
24007 echo "$as_me: failed program was:" >&5
24008 sed 's/^/| /' conftest.$ac_ext >&5
24010 ac_header_preproc=no
24013 rm -f conftest.err conftest.$ac_ext
24014 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24015 echo "${ECHO_T}$ac_header_preproc" >&6; }
24017 # So? What about this header?
24018 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24019 yes:no: )
24020 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
24021 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24022 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
24023 echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
24024 ac_header_preproc=yes
24026 no:yes:* )
24027 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
24028 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
24029 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
24030 echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
24031 { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
24032 echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
24033 { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5
24034 echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;}
24035 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
24036 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
24037 { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
24038 echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
24039 ( cat <<\_ASBOX
24040 ## -------------------------------------- ##
24041 ## Report this to http://bugs.python.org/ ##
24042 ## -------------------------------------- ##
24043 _ASBOX
24044 ) | sed "s/^/$as_me: WARNING: /" >&2
24046 esac
24047 { echo "$as_me:$LINENO: checking for wchar.h" >&5
24048 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
24049 if test "${ac_cv_header_wchar_h+set}" = set; then
24050 echo $ECHO_N "(cached) $ECHO_C" >&6
24051 else
24052 ac_cv_header_wchar_h=$ac_header_preproc
24054 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
24055 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
24058 if test $ac_cv_header_wchar_h = yes; then
24061 cat >>confdefs.h <<\_ACEOF
24062 #define HAVE_WCHAR_H 1
24063 _ACEOF
24065 wchar_h="yes"
24067 else
24068 wchar_h="no"
24074 # determine wchar_t size
24075 if test "$wchar_h" = yes
24076 then
24077 { echo "$as_me:$LINENO: checking for wchar_t" >&5
24078 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
24079 if test "${ac_cv_type_wchar_t+set}" = set; then
24080 echo $ECHO_N "(cached) $ECHO_C" >&6
24081 else
24082 cat >conftest.$ac_ext <<_ACEOF
24083 /* confdefs.h. */
24084 _ACEOF
24085 cat confdefs.h >>conftest.$ac_ext
24086 cat >>conftest.$ac_ext <<_ACEOF
24087 /* end confdefs.h. */
24088 #include <wchar.h>
24090 typedef wchar_t ac__type_new_;
24092 main ()
24094 if ((ac__type_new_ *) 0)
24095 return 0;
24096 if (sizeof (ac__type_new_))
24097 return 0;
24099 return 0;
24101 _ACEOF
24102 rm -f conftest.$ac_objext
24103 if { (ac_try="$ac_compile"
24104 case "(($ac_try" in
24105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24106 *) ac_try_echo=$ac_try;;
24107 esac
24108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24109 (eval "$ac_compile") 2>conftest.er1
24110 ac_status=$?
24111 grep -v '^ *+' conftest.er1 >conftest.err
24112 rm -f conftest.er1
24113 cat conftest.err >&5
24114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24115 (exit $ac_status); } && {
24116 test -z "$ac_c_werror_flag" ||
24117 test ! -s conftest.err
24118 } && test -s conftest.$ac_objext; then
24119 ac_cv_type_wchar_t=yes
24120 else
24121 echo "$as_me: failed program was:" >&5
24122 sed 's/^/| /' conftest.$ac_ext >&5
24124 ac_cv_type_wchar_t=no
24127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24129 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
24130 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
24132 # The cast to long int works around a bug in the HP C Compiler
24133 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24134 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24135 # This bug is HP SR number 8606223364.
24136 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
24137 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
24138 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
24139 echo $ECHO_N "(cached) $ECHO_C" >&6
24140 else
24141 if test "$cross_compiling" = yes; then
24142 # Depending upon the size, compute the lo and hi bounds.
24143 cat >conftest.$ac_ext <<_ACEOF
24144 /* confdefs.h. */
24145 _ACEOF
24146 cat confdefs.h >>conftest.$ac_ext
24147 cat >>conftest.$ac_ext <<_ACEOF
24148 /* end confdefs.h. */
24149 #include <wchar.h>
24151 typedef wchar_t ac__type_sizeof_;
24153 main ()
24155 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24156 test_array [0] = 0
24159 return 0;
24161 _ACEOF
24162 rm -f conftest.$ac_objext
24163 if { (ac_try="$ac_compile"
24164 case "(($ac_try" in
24165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24166 *) ac_try_echo=$ac_try;;
24167 esac
24168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24169 (eval "$ac_compile") 2>conftest.er1
24170 ac_status=$?
24171 grep -v '^ *+' conftest.er1 >conftest.err
24172 rm -f conftest.er1
24173 cat conftest.err >&5
24174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24175 (exit $ac_status); } && {
24176 test -z "$ac_c_werror_flag" ||
24177 test ! -s conftest.err
24178 } && test -s conftest.$ac_objext; then
24179 ac_lo=0 ac_mid=0
24180 while :; do
24181 cat >conftest.$ac_ext <<_ACEOF
24182 /* confdefs.h. */
24183 _ACEOF
24184 cat confdefs.h >>conftest.$ac_ext
24185 cat >>conftest.$ac_ext <<_ACEOF
24186 /* end confdefs.h. */
24187 #include <wchar.h>
24189 typedef wchar_t ac__type_sizeof_;
24191 main ()
24193 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24194 test_array [0] = 0
24197 return 0;
24199 _ACEOF
24200 rm -f conftest.$ac_objext
24201 if { (ac_try="$ac_compile"
24202 case "(($ac_try" in
24203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24204 *) ac_try_echo=$ac_try;;
24205 esac
24206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24207 (eval "$ac_compile") 2>conftest.er1
24208 ac_status=$?
24209 grep -v '^ *+' conftest.er1 >conftest.err
24210 rm -f conftest.er1
24211 cat conftest.err >&5
24212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24213 (exit $ac_status); } && {
24214 test -z "$ac_c_werror_flag" ||
24215 test ! -s conftest.err
24216 } && test -s conftest.$ac_objext; then
24217 ac_hi=$ac_mid; break
24218 else
24219 echo "$as_me: failed program was:" >&5
24220 sed 's/^/| /' conftest.$ac_ext >&5
24222 ac_lo=`expr $ac_mid + 1`
24223 if test $ac_lo -le $ac_mid; then
24224 ac_lo= ac_hi=
24225 break
24227 ac_mid=`expr 2 '*' $ac_mid + 1`
24230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24231 done
24232 else
24233 echo "$as_me: failed program was:" >&5
24234 sed 's/^/| /' conftest.$ac_ext >&5
24236 cat >conftest.$ac_ext <<_ACEOF
24237 /* confdefs.h. */
24238 _ACEOF
24239 cat confdefs.h >>conftest.$ac_ext
24240 cat >>conftest.$ac_ext <<_ACEOF
24241 /* end confdefs.h. */
24242 #include <wchar.h>
24244 typedef wchar_t ac__type_sizeof_;
24246 main ()
24248 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24249 test_array [0] = 0
24252 return 0;
24254 _ACEOF
24255 rm -f conftest.$ac_objext
24256 if { (ac_try="$ac_compile"
24257 case "(($ac_try" in
24258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24259 *) ac_try_echo=$ac_try;;
24260 esac
24261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24262 (eval "$ac_compile") 2>conftest.er1
24263 ac_status=$?
24264 grep -v '^ *+' conftest.er1 >conftest.err
24265 rm -f conftest.er1
24266 cat conftest.err >&5
24267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24268 (exit $ac_status); } && {
24269 test -z "$ac_c_werror_flag" ||
24270 test ! -s conftest.err
24271 } && test -s conftest.$ac_objext; then
24272 ac_hi=-1 ac_mid=-1
24273 while :; do
24274 cat >conftest.$ac_ext <<_ACEOF
24275 /* confdefs.h. */
24276 _ACEOF
24277 cat confdefs.h >>conftest.$ac_ext
24278 cat >>conftest.$ac_ext <<_ACEOF
24279 /* end confdefs.h. */
24280 #include <wchar.h>
24282 typedef wchar_t ac__type_sizeof_;
24284 main ()
24286 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24287 test_array [0] = 0
24290 return 0;
24292 _ACEOF
24293 rm -f conftest.$ac_objext
24294 if { (ac_try="$ac_compile"
24295 case "(($ac_try" in
24296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24297 *) ac_try_echo=$ac_try;;
24298 esac
24299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24300 (eval "$ac_compile") 2>conftest.er1
24301 ac_status=$?
24302 grep -v '^ *+' conftest.er1 >conftest.err
24303 rm -f conftest.er1
24304 cat conftest.err >&5
24305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24306 (exit $ac_status); } && {
24307 test -z "$ac_c_werror_flag" ||
24308 test ! -s conftest.err
24309 } && test -s conftest.$ac_objext; then
24310 ac_lo=$ac_mid; break
24311 else
24312 echo "$as_me: failed program was:" >&5
24313 sed 's/^/| /' conftest.$ac_ext >&5
24315 ac_hi=`expr '(' $ac_mid ')' - 1`
24316 if test $ac_mid -le $ac_hi; then
24317 ac_lo= ac_hi=
24318 break
24320 ac_mid=`expr 2 '*' $ac_mid`
24323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24324 done
24325 else
24326 echo "$as_me: failed program was:" >&5
24327 sed 's/^/| /' conftest.$ac_ext >&5
24329 ac_lo= ac_hi=
24332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24336 # Binary search between lo and hi bounds.
24337 while test "x$ac_lo" != "x$ac_hi"; do
24338 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24339 cat >conftest.$ac_ext <<_ACEOF
24340 /* confdefs.h. */
24341 _ACEOF
24342 cat confdefs.h >>conftest.$ac_ext
24343 cat >>conftest.$ac_ext <<_ACEOF
24344 /* end confdefs.h. */
24345 #include <wchar.h>
24347 typedef wchar_t ac__type_sizeof_;
24349 main ()
24351 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24352 test_array [0] = 0
24355 return 0;
24357 _ACEOF
24358 rm -f conftest.$ac_objext
24359 if { (ac_try="$ac_compile"
24360 case "(($ac_try" in
24361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24362 *) ac_try_echo=$ac_try;;
24363 esac
24364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24365 (eval "$ac_compile") 2>conftest.er1
24366 ac_status=$?
24367 grep -v '^ *+' conftest.er1 >conftest.err
24368 rm -f conftest.er1
24369 cat conftest.err >&5
24370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24371 (exit $ac_status); } && {
24372 test -z "$ac_c_werror_flag" ||
24373 test ! -s conftest.err
24374 } && test -s conftest.$ac_objext; then
24375 ac_hi=$ac_mid
24376 else
24377 echo "$as_me: failed program was:" >&5
24378 sed 's/^/| /' conftest.$ac_ext >&5
24380 ac_lo=`expr '(' $ac_mid ')' + 1`
24383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24384 done
24385 case $ac_lo in
24386 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
24387 '') if test "$ac_cv_type_wchar_t" = yes; then
24388 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
24389 See \`config.log' for more details." >&5
24390 echo "$as_me: error: cannot compute sizeof (wchar_t)
24391 See \`config.log' for more details." >&2;}
24392 { (exit 77); exit 77; }; }
24393 else
24394 ac_cv_sizeof_wchar_t=0
24395 fi ;;
24396 esac
24397 else
24398 cat >conftest.$ac_ext <<_ACEOF
24399 /* confdefs.h. */
24400 _ACEOF
24401 cat confdefs.h >>conftest.$ac_ext
24402 cat >>conftest.$ac_ext <<_ACEOF
24403 /* end confdefs.h. */
24404 #include <wchar.h>
24406 typedef wchar_t ac__type_sizeof_;
24407 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24408 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24409 #include <stdio.h>
24410 #include <stdlib.h>
24412 main ()
24415 FILE *f = fopen ("conftest.val", "w");
24416 if (! f)
24417 return 1;
24418 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24420 long int i = longval ();
24421 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24422 return 1;
24423 fprintf (f, "%ld\n", i);
24425 else
24427 unsigned long int i = ulongval ();
24428 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24429 return 1;
24430 fprintf (f, "%lu\n", i);
24432 return ferror (f) || fclose (f) != 0;
24435 return 0;
24437 _ACEOF
24438 rm -f conftest$ac_exeext
24439 if { (ac_try="$ac_link"
24440 case "(($ac_try" in
24441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24442 *) ac_try_echo=$ac_try;;
24443 esac
24444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24445 (eval "$ac_link") 2>&5
24446 ac_status=$?
24447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24448 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24449 { (case "(($ac_try" in
24450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24451 *) ac_try_echo=$ac_try;;
24452 esac
24453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24454 (eval "$ac_try") 2>&5
24455 ac_status=$?
24456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24457 (exit $ac_status); }; }; then
24458 ac_cv_sizeof_wchar_t=`cat conftest.val`
24459 else
24460 echo "$as_me: program exited with status $ac_status" >&5
24461 echo "$as_me: failed program was:" >&5
24462 sed 's/^/| /' conftest.$ac_ext >&5
24464 ( exit $ac_status )
24465 if test "$ac_cv_type_wchar_t" = yes; then
24466 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
24467 See \`config.log' for more details." >&5
24468 echo "$as_me: error: cannot compute sizeof (wchar_t)
24469 See \`config.log' for more details." >&2;}
24470 { (exit 77); exit 77; }; }
24471 else
24472 ac_cv_sizeof_wchar_t=0
24475 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24477 rm -f conftest.val
24479 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
24480 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
24484 cat >>confdefs.h <<_ACEOF
24485 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
24486 _ACEOF
24491 { echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5
24492 echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6; }
24493 have_ucs4_tcl=no
24494 cat >conftest.$ac_ext <<_ACEOF
24495 /* confdefs.h. */
24496 _ACEOF
24497 cat confdefs.h >>conftest.$ac_ext
24498 cat >>conftest.$ac_ext <<_ACEOF
24499 /* end confdefs.h. */
24501 #include <tcl.h>
24502 #if TCL_UTF_MAX != 6
24503 # error "NOT UCS4_TCL"
24504 #endif
24506 main ()
24510 return 0;
24512 _ACEOF
24513 rm -f conftest.$ac_objext
24514 if { (ac_try="$ac_compile"
24515 case "(($ac_try" in
24516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24517 *) ac_try_echo=$ac_try;;
24518 esac
24519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24520 (eval "$ac_compile") 2>conftest.er1
24521 ac_status=$?
24522 grep -v '^ *+' conftest.er1 >conftest.err
24523 rm -f conftest.er1
24524 cat conftest.err >&5
24525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24526 (exit $ac_status); } && {
24527 test -z "$ac_c_werror_flag" ||
24528 test ! -s conftest.err
24529 } && test -s conftest.$ac_objext; then
24532 cat >>confdefs.h <<\_ACEOF
24533 #define HAVE_UCS4_TCL 1
24534 _ACEOF
24536 have_ucs4_tcl=yes
24538 else
24539 echo "$as_me: failed program was:" >&5
24540 sed 's/^/| /' conftest.$ac_ext >&5
24545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24546 { echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5
24547 echo "${ECHO_T}$have_ucs4_tcl" >&6; }
24549 # check whether wchar_t is signed or not
24550 if test "$wchar_h" = yes
24551 then
24552 # check whether wchar_t is signed or not
24553 { echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5
24554 echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6; }
24555 if test "${ac_cv_wchar_t_signed+set}" = set; then
24556 echo $ECHO_N "(cached) $ECHO_C" >&6
24557 else
24559 if test "$cross_compiling" = yes; then
24560 ac_cv_wchar_t_signed=yes
24561 else
24562 cat >conftest.$ac_ext <<_ACEOF
24563 /* confdefs.h. */
24564 _ACEOF
24565 cat confdefs.h >>conftest.$ac_ext
24566 cat >>conftest.$ac_ext <<_ACEOF
24567 /* end confdefs.h. */
24569 #include <wchar.h>
24570 int main()
24572 /* Success: exit code 0 */
24573 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
24576 _ACEOF
24577 rm -f conftest$ac_exeext
24578 if { (ac_try="$ac_link"
24579 case "(($ac_try" in
24580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24581 *) ac_try_echo=$ac_try;;
24582 esac
24583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24584 (eval "$ac_link") 2>&5
24585 ac_status=$?
24586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24587 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24588 { (case "(($ac_try" in
24589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24590 *) ac_try_echo=$ac_try;;
24591 esac
24592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24593 (eval "$ac_try") 2>&5
24594 ac_status=$?
24595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24596 (exit $ac_status); }; }; then
24597 ac_cv_wchar_t_signed=yes
24598 else
24599 echo "$as_me: program exited with status $ac_status" >&5
24600 echo "$as_me: failed program was:" >&5
24601 sed 's/^/| /' conftest.$ac_ext >&5
24603 ( exit $ac_status )
24604 ac_cv_wchar_t_signed=no
24606 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24612 { echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5
24613 echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6; }
24616 { echo "$as_me:$LINENO: checking what type to use for unicode" >&5
24617 echo $ECHO_N "checking what type to use for unicode... $ECHO_C" >&6; }
24618 # Check whether --enable-unicode was given.
24619 if test "${enable_unicode+set}" = set; then
24620 enableval=$enable_unicode;
24621 else
24622 enable_unicode=yes
24626 if test $enable_unicode = yes
24627 then
24628 # Without any arguments, Py_UNICODE defaults to two-byte mode
24629 case "$have_ucs4_tcl" in
24630 yes) enable_unicode="ucs4"
24632 *) enable_unicode="ucs2"
24634 esac
24639 case "$enable_unicode" in
24640 ucs2) unicode_size="2"
24641 cat >>confdefs.h <<\_ACEOF
24642 #define Py_UNICODE_SIZE 2
24643 _ACEOF
24646 ucs4) unicode_size="4"
24647 cat >>confdefs.h <<\_ACEOF
24648 #define Py_UNICODE_SIZE 4
24649 _ACEOF
24652 esac
24658 if test "$enable_unicode" = "no"
24659 then
24660 UNICODE_OBJS=""
24661 { echo "$as_me:$LINENO: result: not used" >&5
24662 echo "${ECHO_T}not used" >&6; }
24663 else
24664 UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o"
24666 cat >>confdefs.h <<\_ACEOF
24667 #define Py_USING_UNICODE 1
24668 _ACEOF
24671 # wchar_t is only usable if it maps to an unsigned type
24672 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
24673 -a "$ac_cv_wchar_t_signed" = "no"
24674 then
24675 PY_UNICODE_TYPE="wchar_t"
24677 cat >>confdefs.h <<\_ACEOF
24678 #define HAVE_USABLE_WCHAR_T 1
24679 _ACEOF
24681 cat >>confdefs.h <<\_ACEOF
24682 #define PY_UNICODE_TYPE wchar_t
24683 _ACEOF
24685 elif test "$ac_cv_sizeof_short" = "$unicode_size"
24686 then
24687 PY_UNICODE_TYPE="unsigned short"
24688 cat >>confdefs.h <<\_ACEOF
24689 #define PY_UNICODE_TYPE unsigned short
24690 _ACEOF
24692 elif test "$ac_cv_sizeof_long" = "$unicode_size"
24693 then
24694 PY_UNICODE_TYPE="unsigned long"
24695 cat >>confdefs.h <<\_ACEOF
24696 #define PY_UNICODE_TYPE unsigned long
24697 _ACEOF
24699 else
24700 PY_UNICODE_TYPE="no type found"
24702 { echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
24703 echo "${ECHO_T}$PY_UNICODE_TYPE" >&6; }
24706 # check for endianness
24707 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
24708 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
24709 if test "${ac_cv_c_bigendian+set}" = set; then
24710 echo $ECHO_N "(cached) $ECHO_C" >&6
24711 else
24712 # See if sys/param.h defines the BYTE_ORDER macro.
24713 cat >conftest.$ac_ext <<_ACEOF
24714 /* confdefs.h. */
24715 _ACEOF
24716 cat confdefs.h >>conftest.$ac_ext
24717 cat >>conftest.$ac_ext <<_ACEOF
24718 /* end confdefs.h. */
24719 #include <sys/types.h>
24720 #include <sys/param.h>
24723 main ()
24725 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
24726 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
24727 bogus endian macros
24728 #endif
24731 return 0;
24733 _ACEOF
24734 rm -f conftest.$ac_objext
24735 if { (ac_try="$ac_compile"
24736 case "(($ac_try" in
24737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24738 *) ac_try_echo=$ac_try;;
24739 esac
24740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24741 (eval "$ac_compile") 2>conftest.er1
24742 ac_status=$?
24743 grep -v '^ *+' conftest.er1 >conftest.err
24744 rm -f conftest.er1
24745 cat conftest.err >&5
24746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24747 (exit $ac_status); } && {
24748 test -z "$ac_c_werror_flag" ||
24749 test ! -s conftest.err
24750 } && test -s conftest.$ac_objext; then
24751 # It does; now see whether it defined to BIG_ENDIAN or not.
24752 cat >conftest.$ac_ext <<_ACEOF
24753 /* confdefs.h. */
24754 _ACEOF
24755 cat confdefs.h >>conftest.$ac_ext
24756 cat >>conftest.$ac_ext <<_ACEOF
24757 /* end confdefs.h. */
24758 #include <sys/types.h>
24759 #include <sys/param.h>
24762 main ()
24764 #if BYTE_ORDER != BIG_ENDIAN
24765 not big endian
24766 #endif
24769 return 0;
24771 _ACEOF
24772 rm -f conftest.$ac_objext
24773 if { (ac_try="$ac_compile"
24774 case "(($ac_try" in
24775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24776 *) ac_try_echo=$ac_try;;
24777 esac
24778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24779 (eval "$ac_compile") 2>conftest.er1
24780 ac_status=$?
24781 grep -v '^ *+' conftest.er1 >conftest.err
24782 rm -f conftest.er1
24783 cat conftest.err >&5
24784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24785 (exit $ac_status); } && {
24786 test -z "$ac_c_werror_flag" ||
24787 test ! -s conftest.err
24788 } && test -s conftest.$ac_objext; then
24789 ac_cv_c_bigendian=yes
24790 else
24791 echo "$as_me: failed program was:" >&5
24792 sed 's/^/| /' conftest.$ac_ext >&5
24794 ac_cv_c_bigendian=no
24797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24798 else
24799 echo "$as_me: failed program was:" >&5
24800 sed 's/^/| /' conftest.$ac_ext >&5
24802 # It does not; compile a test program.
24803 if test "$cross_compiling" = yes; then
24804 # try to guess the endianness by grepping values into an object file
24805 ac_cv_c_bigendian=unknown
24806 cat >conftest.$ac_ext <<_ACEOF
24807 /* confdefs.h. */
24808 _ACEOF
24809 cat confdefs.h >>conftest.$ac_ext
24810 cat >>conftest.$ac_ext <<_ACEOF
24811 /* end confdefs.h. */
24812 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
24813 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
24814 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
24815 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
24816 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
24817 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
24819 main ()
24821 _ascii (); _ebcdic ();
24823 return 0;
24825 _ACEOF
24826 rm -f conftest.$ac_objext
24827 if { (ac_try="$ac_compile"
24828 case "(($ac_try" in
24829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24830 *) ac_try_echo=$ac_try;;
24831 esac
24832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24833 (eval "$ac_compile") 2>conftest.er1
24834 ac_status=$?
24835 grep -v '^ *+' conftest.er1 >conftest.err
24836 rm -f conftest.er1
24837 cat conftest.err >&5
24838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24839 (exit $ac_status); } && {
24840 test -z "$ac_c_werror_flag" ||
24841 test ! -s conftest.err
24842 } && test -s conftest.$ac_objext; then
24843 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
24844 ac_cv_c_bigendian=yes
24846 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
24847 if test "$ac_cv_c_bigendian" = unknown; then
24848 ac_cv_c_bigendian=no
24849 else
24850 # finding both strings is unlikely to happen, but who knows?
24851 ac_cv_c_bigendian=unknown
24854 else
24855 echo "$as_me: failed program was:" >&5
24856 sed 's/^/| /' conftest.$ac_ext >&5
24861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24862 else
24863 cat >conftest.$ac_ext <<_ACEOF
24864 /* confdefs.h. */
24865 _ACEOF
24866 cat confdefs.h >>conftest.$ac_ext
24867 cat >>conftest.$ac_ext <<_ACEOF
24868 /* end confdefs.h. */
24869 $ac_includes_default
24871 main ()
24874 /* Are we little or big endian? From Harbison&Steele. */
24875 union
24877 long int l;
24878 char c[sizeof (long int)];
24879 } u;
24880 u.l = 1;
24881 return u.c[sizeof (long int) - 1] == 1;
24884 return 0;
24886 _ACEOF
24887 rm -f conftest$ac_exeext
24888 if { (ac_try="$ac_link"
24889 case "(($ac_try" in
24890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24891 *) ac_try_echo=$ac_try;;
24892 esac
24893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24894 (eval "$ac_link") 2>&5
24895 ac_status=$?
24896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24897 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24898 { (case "(($ac_try" in
24899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24900 *) ac_try_echo=$ac_try;;
24901 esac
24902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24903 (eval "$ac_try") 2>&5
24904 ac_status=$?
24905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24906 (exit $ac_status); }; }; then
24907 ac_cv_c_bigendian=no
24908 else
24909 echo "$as_me: program exited with status $ac_status" >&5
24910 echo "$as_me: failed program was:" >&5
24911 sed 's/^/| /' conftest.$ac_ext >&5
24913 ( exit $ac_status )
24914 ac_cv_c_bigendian=yes
24916 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24924 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
24925 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
24926 case $ac_cv_c_bigendian in
24927 yes)
24929 cat >>confdefs.h <<\_ACEOF
24930 #define WORDS_BIGENDIAN 1
24931 _ACEOF
24936 { { echo "$as_me:$LINENO: error: unknown endianness
24937 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
24938 echo "$as_me: error: unknown endianness
24939 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
24940 { (exit 1); exit 1; }; } ;;
24941 esac
24944 # Check whether right shifting a negative integer extends the sign bit
24945 # or fills with zeros (like the Cray J90, according to Tim Peters).
24946 { echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
24947 echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6; }
24948 if test "${ac_cv_rshift_extends_sign+set}" = set; then
24949 echo $ECHO_N "(cached) $ECHO_C" >&6
24950 else
24952 if test "$cross_compiling" = yes; then
24953 ac_cv_rshift_extends_sign=yes
24954 else
24955 cat >conftest.$ac_ext <<_ACEOF
24956 /* confdefs.h. */
24957 _ACEOF
24958 cat confdefs.h >>conftest.$ac_ext
24959 cat >>conftest.$ac_ext <<_ACEOF
24960 /* end confdefs.h. */
24962 int main()
24964 exit(((-1)>>3 == -1) ? 0 : 1);
24967 _ACEOF
24968 rm -f conftest$ac_exeext
24969 if { (ac_try="$ac_link"
24970 case "(($ac_try" in
24971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24972 *) ac_try_echo=$ac_try;;
24973 esac
24974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24975 (eval "$ac_link") 2>&5
24976 ac_status=$?
24977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24978 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24979 { (case "(($ac_try" in
24980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24981 *) ac_try_echo=$ac_try;;
24982 esac
24983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24984 (eval "$ac_try") 2>&5
24985 ac_status=$?
24986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24987 (exit $ac_status); }; }; then
24988 ac_cv_rshift_extends_sign=yes
24989 else
24990 echo "$as_me: program exited with status $ac_status" >&5
24991 echo "$as_me: failed program was:" >&5
24992 sed 's/^/| /' conftest.$ac_ext >&5
24994 ( exit $ac_status )
24995 ac_cv_rshift_extends_sign=no
24997 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25003 { echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
25004 echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6; }
25005 if test "$ac_cv_rshift_extends_sign" = no
25006 then
25008 cat >>confdefs.h <<\_ACEOF
25009 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
25010 _ACEOF
25014 # check for getc_unlocked and related locking functions
25015 { echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
25016 echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6; }
25017 if test "${ac_cv_have_getc_unlocked+set}" = set; then
25018 echo $ECHO_N "(cached) $ECHO_C" >&6
25019 else
25021 cat >conftest.$ac_ext <<_ACEOF
25022 /* confdefs.h. */
25023 _ACEOF
25024 cat confdefs.h >>conftest.$ac_ext
25025 cat >>conftest.$ac_ext <<_ACEOF
25026 /* end confdefs.h. */
25027 #include <stdio.h>
25029 main ()
25032 FILE *f = fopen("/dev/null", "r");
25033 flockfile(f);
25034 getc_unlocked(f);
25035 funlockfile(f);
25038 return 0;
25040 _ACEOF
25041 rm -f conftest.$ac_objext conftest$ac_exeext
25042 if { (ac_try="$ac_link"
25043 case "(($ac_try" in
25044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25045 *) ac_try_echo=$ac_try;;
25046 esac
25047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25048 (eval "$ac_link") 2>conftest.er1
25049 ac_status=$?
25050 grep -v '^ *+' conftest.er1 >conftest.err
25051 rm -f conftest.er1
25052 cat conftest.err >&5
25053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25054 (exit $ac_status); } && {
25055 test -z "$ac_c_werror_flag" ||
25056 test ! -s conftest.err
25057 } && test -s conftest$ac_exeext &&
25058 $as_test_x conftest$ac_exeext; then
25059 ac_cv_have_getc_unlocked=yes
25060 else
25061 echo "$as_me: failed program was:" >&5
25062 sed 's/^/| /' conftest.$ac_ext >&5
25064 ac_cv_have_getc_unlocked=no
25067 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25068 conftest$ac_exeext conftest.$ac_ext
25071 { echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
25072 echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6; }
25073 if test "$ac_cv_have_getc_unlocked" = yes
25074 then
25076 cat >>confdefs.h <<\_ACEOF
25077 #define HAVE_GETC_UNLOCKED 1
25078 _ACEOF
25082 # check where readline lives
25083 # save the value of LIBS so we don't actually link Python with readline
25084 LIBS_no_readline=$LIBS
25086 # On some systems we need to link readline to a termcap compatible
25087 # library. NOTE: Keep the precedence of listed libraries synchronised
25088 # with setup.py.
25089 py_cv_lib_readline=no
25090 { echo "$as_me:$LINENO: checking how to link readline libs" >&5
25091 echo $ECHO_N "checking how to link readline libs... $ECHO_C" >&6; }
25092 for py_libtermcap in "" ncursesw ncurses curses termcap; do
25093 if test -z "$py_libtermcap"; then
25094 READLINE_LIBS="-lreadline"
25095 else
25096 READLINE_LIBS="-lreadline -l$py_libtermcap"
25098 LIBS="$READLINE_LIBS $LIBS_no_readline"
25099 cat >conftest.$ac_ext <<_ACEOF
25100 /* confdefs.h. */
25101 _ACEOF
25102 cat confdefs.h >>conftest.$ac_ext
25103 cat >>conftest.$ac_ext <<_ACEOF
25104 /* end confdefs.h. */
25106 /* Override any GCC internal prototype to avoid an error.
25107 Use char because int might match the return type of a GCC
25108 builtin and then its argument prototype would still apply. */
25109 #ifdef __cplusplus
25110 extern "C"
25111 #endif
25112 char readline ();
25114 main ()
25116 return readline ();
25118 return 0;
25120 _ACEOF
25121 rm -f conftest.$ac_objext conftest$ac_exeext
25122 if { (ac_try="$ac_link"
25123 case "(($ac_try" in
25124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25125 *) ac_try_echo=$ac_try;;
25126 esac
25127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25128 (eval "$ac_link") 2>conftest.er1
25129 ac_status=$?
25130 grep -v '^ *+' conftest.er1 >conftest.err
25131 rm -f conftest.er1
25132 cat conftest.err >&5
25133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25134 (exit $ac_status); } && {
25135 test -z "$ac_c_werror_flag" ||
25136 test ! -s conftest.err
25137 } && test -s conftest$ac_exeext &&
25138 $as_test_x conftest$ac_exeext; then
25139 py_cv_lib_readline=yes
25140 else
25141 echo "$as_me: failed program was:" >&5
25142 sed 's/^/| /' conftest.$ac_ext >&5
25147 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25148 conftest$ac_exeext conftest.$ac_ext
25149 if test $py_cv_lib_readline = yes; then
25150 break
25152 done
25153 # Uncomment this line if you want to use READINE_LIBS in Makefile or scripts
25154 #AC_SUBST([READLINE_LIBS])
25155 if test $py_cv_lib_readline = no; then
25156 { echo "$as_me:$LINENO: result: none" >&5
25157 echo "${ECHO_T}none" >&6; }
25158 else
25159 { echo "$as_me:$LINENO: result: $READLINE_LIBS" >&5
25160 echo "${ECHO_T}$READLINE_LIBS" >&6; }
25162 cat >>confdefs.h <<\_ACEOF
25163 #define HAVE_LIBREADLINE 1
25164 _ACEOF
25168 # check for readline 2.1
25169 { echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
25170 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6; }
25171 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
25172 echo $ECHO_N "(cached) $ECHO_C" >&6
25173 else
25174 ac_check_lib_save_LIBS=$LIBS
25175 LIBS="-lreadline $READLINE_LIBS $LIBS"
25176 cat >conftest.$ac_ext <<_ACEOF
25177 /* confdefs.h. */
25178 _ACEOF
25179 cat confdefs.h >>conftest.$ac_ext
25180 cat >>conftest.$ac_ext <<_ACEOF
25181 /* end confdefs.h. */
25183 /* Override any GCC internal prototype to avoid an error.
25184 Use char because int might match the return type of a GCC
25185 builtin and then its argument prototype would still apply. */
25186 #ifdef __cplusplus
25187 extern "C"
25188 #endif
25189 char rl_callback_handler_install ();
25191 main ()
25193 return rl_callback_handler_install ();
25195 return 0;
25197 _ACEOF
25198 rm -f conftest.$ac_objext conftest$ac_exeext
25199 if { (ac_try="$ac_link"
25200 case "(($ac_try" in
25201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25202 *) ac_try_echo=$ac_try;;
25203 esac
25204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25205 (eval "$ac_link") 2>conftest.er1
25206 ac_status=$?
25207 grep -v '^ *+' conftest.er1 >conftest.err
25208 rm -f conftest.er1
25209 cat conftest.err >&5
25210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25211 (exit $ac_status); } && {
25212 test -z "$ac_c_werror_flag" ||
25213 test ! -s conftest.err
25214 } && test -s conftest$ac_exeext &&
25215 $as_test_x conftest$ac_exeext; then
25216 ac_cv_lib_readline_rl_callback_handler_install=yes
25217 else
25218 echo "$as_me: failed program was:" >&5
25219 sed 's/^/| /' conftest.$ac_ext >&5
25221 ac_cv_lib_readline_rl_callback_handler_install=no
25224 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25225 conftest$ac_exeext conftest.$ac_ext
25226 LIBS=$ac_check_lib_save_LIBS
25228 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
25229 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6; }
25230 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
25232 cat >>confdefs.h <<\_ACEOF
25233 #define HAVE_RL_CALLBACK 1
25234 _ACEOF
25239 # check for readline 2.2
25240 cat >conftest.$ac_ext <<_ACEOF
25241 /* confdefs.h. */
25242 _ACEOF
25243 cat confdefs.h >>conftest.$ac_ext
25244 cat >>conftest.$ac_ext <<_ACEOF
25245 /* end confdefs.h. */
25246 #include <readline/readline.h>
25247 _ACEOF
25248 if { (ac_try="$ac_cpp conftest.$ac_ext"
25249 case "(($ac_try" in
25250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25251 *) ac_try_echo=$ac_try;;
25252 esac
25253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25254 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25255 ac_status=$?
25256 grep -v '^ *+' conftest.er1 >conftest.err
25257 rm -f conftest.er1
25258 cat conftest.err >&5
25259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25260 (exit $ac_status); } >/dev/null && {
25261 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25262 test ! -s conftest.err
25263 }; then
25264 have_readline=yes
25265 else
25266 echo "$as_me: failed program was:" >&5
25267 sed 's/^/| /' conftest.$ac_ext >&5
25269 have_readline=no
25272 rm -f conftest.err conftest.$ac_ext
25273 if test $have_readline = yes
25274 then
25275 cat >conftest.$ac_ext <<_ACEOF
25276 /* confdefs.h. */
25277 _ACEOF
25278 cat confdefs.h >>conftest.$ac_ext
25279 cat >>conftest.$ac_ext <<_ACEOF
25280 /* end confdefs.h. */
25281 #include <readline/readline.h>
25283 _ACEOF
25284 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25285 $EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then
25287 cat >>confdefs.h <<\_ACEOF
25288 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
25289 _ACEOF
25292 rm -f -r conftest*
25296 # check for readline 4.0
25297 { echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
25298 echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6; }
25299 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
25300 echo $ECHO_N "(cached) $ECHO_C" >&6
25301 else
25302 ac_check_lib_save_LIBS=$LIBS
25303 LIBS="-lreadline $READLINE_LIBS $LIBS"
25304 cat >conftest.$ac_ext <<_ACEOF
25305 /* confdefs.h. */
25306 _ACEOF
25307 cat confdefs.h >>conftest.$ac_ext
25308 cat >>conftest.$ac_ext <<_ACEOF
25309 /* end confdefs.h. */
25311 /* Override any GCC internal prototype to avoid an error.
25312 Use char because int might match the return type of a GCC
25313 builtin and then its argument prototype would still apply. */
25314 #ifdef __cplusplus
25315 extern "C"
25316 #endif
25317 char rl_pre_input_hook ();
25319 main ()
25321 return rl_pre_input_hook ();
25323 return 0;
25325 _ACEOF
25326 rm -f conftest.$ac_objext conftest$ac_exeext
25327 if { (ac_try="$ac_link"
25328 case "(($ac_try" in
25329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25330 *) ac_try_echo=$ac_try;;
25331 esac
25332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25333 (eval "$ac_link") 2>conftest.er1
25334 ac_status=$?
25335 grep -v '^ *+' conftest.er1 >conftest.err
25336 rm -f conftest.er1
25337 cat conftest.err >&5
25338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25339 (exit $ac_status); } && {
25340 test -z "$ac_c_werror_flag" ||
25341 test ! -s conftest.err
25342 } && test -s conftest$ac_exeext &&
25343 $as_test_x conftest$ac_exeext; then
25344 ac_cv_lib_readline_rl_pre_input_hook=yes
25345 else
25346 echo "$as_me: failed program was:" >&5
25347 sed 's/^/| /' conftest.$ac_ext >&5
25349 ac_cv_lib_readline_rl_pre_input_hook=no
25352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25353 conftest$ac_exeext conftest.$ac_ext
25354 LIBS=$ac_check_lib_save_LIBS
25356 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
25357 echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6; }
25358 if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
25360 cat >>confdefs.h <<\_ACEOF
25361 #define HAVE_RL_PRE_INPUT_HOOK 1
25362 _ACEOF
25367 # also in 4.0
25368 { echo "$as_me:$LINENO: checking for rl_completion_display_matches_hook in -lreadline" >&5
25369 echo $ECHO_N "checking for rl_completion_display_matches_hook in -lreadline... $ECHO_C" >&6; }
25370 if test "${ac_cv_lib_readline_rl_completion_display_matches_hook+set}" = set; then
25371 echo $ECHO_N "(cached) $ECHO_C" >&6
25372 else
25373 ac_check_lib_save_LIBS=$LIBS
25374 LIBS="-lreadline $READLINE_LIBS $LIBS"
25375 cat >conftest.$ac_ext <<_ACEOF
25376 /* confdefs.h. */
25377 _ACEOF
25378 cat confdefs.h >>conftest.$ac_ext
25379 cat >>conftest.$ac_ext <<_ACEOF
25380 /* end confdefs.h. */
25382 /* Override any GCC internal prototype to avoid an error.
25383 Use char because int might match the return type of a GCC
25384 builtin and then its argument prototype would still apply. */
25385 #ifdef __cplusplus
25386 extern "C"
25387 #endif
25388 char rl_completion_display_matches_hook ();
25390 main ()
25392 return rl_completion_display_matches_hook ();
25394 return 0;
25396 _ACEOF
25397 rm -f conftest.$ac_objext conftest$ac_exeext
25398 if { (ac_try="$ac_link"
25399 case "(($ac_try" in
25400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25401 *) ac_try_echo=$ac_try;;
25402 esac
25403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25404 (eval "$ac_link") 2>conftest.er1
25405 ac_status=$?
25406 grep -v '^ *+' conftest.er1 >conftest.err
25407 rm -f conftest.er1
25408 cat conftest.err >&5
25409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25410 (exit $ac_status); } && {
25411 test -z "$ac_c_werror_flag" ||
25412 test ! -s conftest.err
25413 } && test -s conftest$ac_exeext &&
25414 $as_test_x conftest$ac_exeext; then
25415 ac_cv_lib_readline_rl_completion_display_matches_hook=yes
25416 else
25417 echo "$as_me: failed program was:" >&5
25418 sed 's/^/| /' conftest.$ac_ext >&5
25420 ac_cv_lib_readline_rl_completion_display_matches_hook=no
25423 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25424 conftest$ac_exeext conftest.$ac_ext
25425 LIBS=$ac_check_lib_save_LIBS
25427 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5
25428 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; }
25429 if test $ac_cv_lib_readline_rl_completion_display_matches_hook = yes; then
25431 cat >>confdefs.h <<\_ACEOF
25432 #define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1
25433 _ACEOF
25438 # check for readline 4.2
25439 { echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
25440 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6; }
25441 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
25442 echo $ECHO_N "(cached) $ECHO_C" >&6
25443 else
25444 ac_check_lib_save_LIBS=$LIBS
25445 LIBS="-lreadline $READLINE_LIBS $LIBS"
25446 cat >conftest.$ac_ext <<_ACEOF
25447 /* confdefs.h. */
25448 _ACEOF
25449 cat confdefs.h >>conftest.$ac_ext
25450 cat >>conftest.$ac_ext <<_ACEOF
25451 /* end confdefs.h. */
25453 /* Override any GCC internal prototype to avoid an error.
25454 Use char because int might match the return type of a GCC
25455 builtin and then its argument prototype would still apply. */
25456 #ifdef __cplusplus
25457 extern "C"
25458 #endif
25459 char rl_completion_matches ();
25461 main ()
25463 return rl_completion_matches ();
25465 return 0;
25467 _ACEOF
25468 rm -f conftest.$ac_objext conftest$ac_exeext
25469 if { (ac_try="$ac_link"
25470 case "(($ac_try" in
25471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25472 *) ac_try_echo=$ac_try;;
25473 esac
25474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25475 (eval "$ac_link") 2>conftest.er1
25476 ac_status=$?
25477 grep -v '^ *+' conftest.er1 >conftest.err
25478 rm -f conftest.er1
25479 cat conftest.err >&5
25480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25481 (exit $ac_status); } && {
25482 test -z "$ac_c_werror_flag" ||
25483 test ! -s conftest.err
25484 } && test -s conftest$ac_exeext &&
25485 $as_test_x conftest$ac_exeext; then
25486 ac_cv_lib_readline_rl_completion_matches=yes
25487 else
25488 echo "$as_me: failed program was:" >&5
25489 sed 's/^/| /' conftest.$ac_ext >&5
25491 ac_cv_lib_readline_rl_completion_matches=no
25494 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25495 conftest$ac_exeext conftest.$ac_ext
25496 LIBS=$ac_check_lib_save_LIBS
25498 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
25499 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6; }
25500 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
25502 cat >>confdefs.h <<\_ACEOF
25503 #define HAVE_RL_COMPLETION_MATCHES 1
25504 _ACEOF
25509 # also in readline 4.2
25510 cat >conftest.$ac_ext <<_ACEOF
25511 /* confdefs.h. */
25512 _ACEOF
25513 cat confdefs.h >>conftest.$ac_ext
25514 cat >>conftest.$ac_ext <<_ACEOF
25515 /* end confdefs.h. */
25516 #include <readline/readline.h>
25517 _ACEOF
25518 if { (ac_try="$ac_cpp conftest.$ac_ext"
25519 case "(($ac_try" in
25520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25521 *) ac_try_echo=$ac_try;;
25522 esac
25523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25524 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25525 ac_status=$?
25526 grep -v '^ *+' conftest.er1 >conftest.err
25527 rm -f conftest.er1
25528 cat conftest.err >&5
25529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25530 (exit $ac_status); } >/dev/null && {
25531 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25532 test ! -s conftest.err
25533 }; then
25534 have_readline=yes
25535 else
25536 echo "$as_me: failed program was:" >&5
25537 sed 's/^/| /' conftest.$ac_ext >&5
25539 have_readline=no
25542 rm -f conftest.err conftest.$ac_ext
25543 if test $have_readline = yes
25544 then
25545 cat >conftest.$ac_ext <<_ACEOF
25546 /* confdefs.h. */
25547 _ACEOF
25548 cat confdefs.h >>conftest.$ac_ext
25549 cat >>conftest.$ac_ext <<_ACEOF
25550 /* end confdefs.h. */
25551 #include <readline/readline.h>
25553 _ACEOF
25554 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25555 $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then
25557 cat >>confdefs.h <<\_ACEOF
25558 #define HAVE_RL_CATCH_SIGNAL 1
25559 _ACEOF
25562 rm -f -r conftest*
25566 # End of readline checks: restore LIBS
25567 LIBS=$LIBS_no_readline
25569 { echo "$as_me:$LINENO: checking for broken nice()" >&5
25570 echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6; }
25571 if test "${ac_cv_broken_nice+set}" = set; then
25572 echo $ECHO_N "(cached) $ECHO_C" >&6
25573 else
25575 if test "$cross_compiling" = yes; then
25576 ac_cv_broken_nice=no
25577 else
25578 cat >conftest.$ac_ext <<_ACEOF
25579 /* confdefs.h. */
25580 _ACEOF
25581 cat confdefs.h >>conftest.$ac_ext
25582 cat >>conftest.$ac_ext <<_ACEOF
25583 /* end confdefs.h. */
25585 int main()
25587 int val1 = nice(1);
25588 if (val1 != -1 && val1 == nice(2))
25589 exit(0);
25590 exit(1);
25593 _ACEOF
25594 rm -f conftest$ac_exeext
25595 if { (ac_try="$ac_link"
25596 case "(($ac_try" in
25597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25598 *) ac_try_echo=$ac_try;;
25599 esac
25600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25601 (eval "$ac_link") 2>&5
25602 ac_status=$?
25603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25604 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25605 { (case "(($ac_try" in
25606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25607 *) ac_try_echo=$ac_try;;
25608 esac
25609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25610 (eval "$ac_try") 2>&5
25611 ac_status=$?
25612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25613 (exit $ac_status); }; }; then
25614 ac_cv_broken_nice=yes
25615 else
25616 echo "$as_me: program exited with status $ac_status" >&5
25617 echo "$as_me: failed program was:" >&5
25618 sed 's/^/| /' conftest.$ac_ext >&5
25620 ( exit $ac_status )
25621 ac_cv_broken_nice=no
25623 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25629 { echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
25630 echo "${ECHO_T}$ac_cv_broken_nice" >&6; }
25631 if test "$ac_cv_broken_nice" = yes
25632 then
25634 cat >>confdefs.h <<\_ACEOF
25635 #define HAVE_BROKEN_NICE 1
25636 _ACEOF
25640 { echo "$as_me:$LINENO: checking for broken poll()" >&5
25641 echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6; }
25642 if test "${ac_cv_broken_poll+set}" = set; then
25643 echo $ECHO_N "(cached) $ECHO_C" >&6
25644 else
25645 if test "$cross_compiling" = yes; then
25646 ac_cv_broken_poll=no
25647 else
25648 cat >conftest.$ac_ext <<_ACEOF
25649 /* confdefs.h. */
25650 _ACEOF
25651 cat confdefs.h >>conftest.$ac_ext
25652 cat >>conftest.$ac_ext <<_ACEOF
25653 /* end confdefs.h. */
25655 #include <poll.h>
25657 int main()
25659 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
25660 int poll_test;
25662 close (42);
25664 poll_test = poll(&poll_struct, 1, 0);
25665 if (poll_test < 0)
25666 return 0;
25667 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
25668 return 0;
25669 else
25670 return 1;
25673 _ACEOF
25674 rm -f conftest$ac_exeext
25675 if { (ac_try="$ac_link"
25676 case "(($ac_try" in
25677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25678 *) ac_try_echo=$ac_try;;
25679 esac
25680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25681 (eval "$ac_link") 2>&5
25682 ac_status=$?
25683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25684 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25685 { (case "(($ac_try" in
25686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25687 *) ac_try_echo=$ac_try;;
25688 esac
25689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25690 (eval "$ac_try") 2>&5
25691 ac_status=$?
25692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25693 (exit $ac_status); }; }; then
25694 ac_cv_broken_poll=yes
25695 else
25696 echo "$as_me: program exited with status $ac_status" >&5
25697 echo "$as_me: failed program was:" >&5
25698 sed 's/^/| /' conftest.$ac_ext >&5
25700 ( exit $ac_status )
25701 ac_cv_broken_poll=no
25703 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25709 { echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5
25710 echo "${ECHO_T}$ac_cv_broken_poll" >&6; }
25711 if test "$ac_cv_broken_poll" = yes
25712 then
25714 cat >>confdefs.h <<\_ACEOF
25715 #define HAVE_BROKEN_POLL 1
25716 _ACEOF
25720 # Before we can test tzset, we need to check if struct tm has a tm_zone
25721 # (which is not required by ISO C or UNIX spec) and/or if we support
25722 # tzname[]
25723 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
25724 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
25725 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
25726 echo $ECHO_N "(cached) $ECHO_C" >&6
25727 else
25728 cat >conftest.$ac_ext <<_ACEOF
25729 /* confdefs.h. */
25730 _ACEOF
25731 cat confdefs.h >>conftest.$ac_ext
25732 cat >>conftest.$ac_ext <<_ACEOF
25733 /* end confdefs.h. */
25734 #include <sys/types.h>
25735 #include <$ac_cv_struct_tm>
25739 main ()
25741 static struct tm ac_aggr;
25742 if (ac_aggr.tm_zone)
25743 return 0;
25745 return 0;
25747 _ACEOF
25748 rm -f conftest.$ac_objext
25749 if { (ac_try="$ac_compile"
25750 case "(($ac_try" in
25751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25752 *) ac_try_echo=$ac_try;;
25753 esac
25754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25755 (eval "$ac_compile") 2>conftest.er1
25756 ac_status=$?
25757 grep -v '^ *+' conftest.er1 >conftest.err
25758 rm -f conftest.er1
25759 cat conftest.err >&5
25760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25761 (exit $ac_status); } && {
25762 test -z "$ac_c_werror_flag" ||
25763 test ! -s conftest.err
25764 } && test -s conftest.$ac_objext; then
25765 ac_cv_member_struct_tm_tm_zone=yes
25766 else
25767 echo "$as_me: failed program was:" >&5
25768 sed 's/^/| /' conftest.$ac_ext >&5
25770 cat >conftest.$ac_ext <<_ACEOF
25771 /* confdefs.h. */
25772 _ACEOF
25773 cat confdefs.h >>conftest.$ac_ext
25774 cat >>conftest.$ac_ext <<_ACEOF
25775 /* end confdefs.h. */
25776 #include <sys/types.h>
25777 #include <$ac_cv_struct_tm>
25781 main ()
25783 static struct tm ac_aggr;
25784 if (sizeof ac_aggr.tm_zone)
25785 return 0;
25787 return 0;
25789 _ACEOF
25790 rm -f conftest.$ac_objext
25791 if { (ac_try="$ac_compile"
25792 case "(($ac_try" in
25793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25794 *) ac_try_echo=$ac_try;;
25795 esac
25796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25797 (eval "$ac_compile") 2>conftest.er1
25798 ac_status=$?
25799 grep -v '^ *+' conftest.er1 >conftest.err
25800 rm -f conftest.er1
25801 cat conftest.err >&5
25802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25803 (exit $ac_status); } && {
25804 test -z "$ac_c_werror_flag" ||
25805 test ! -s conftest.err
25806 } && test -s conftest.$ac_objext; then
25807 ac_cv_member_struct_tm_tm_zone=yes
25808 else
25809 echo "$as_me: failed program was:" >&5
25810 sed 's/^/| /' conftest.$ac_ext >&5
25812 ac_cv_member_struct_tm_tm_zone=no
25815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25820 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
25821 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
25822 if test $ac_cv_member_struct_tm_tm_zone = yes; then
25824 cat >>confdefs.h <<_ACEOF
25825 #define HAVE_STRUCT_TM_TM_ZONE 1
25826 _ACEOF
25831 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
25833 cat >>confdefs.h <<\_ACEOF
25834 #define HAVE_TM_ZONE 1
25835 _ACEOF
25837 else
25838 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
25839 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
25840 if test "${ac_cv_have_decl_tzname+set}" = set; then
25841 echo $ECHO_N "(cached) $ECHO_C" >&6
25842 else
25843 cat >conftest.$ac_ext <<_ACEOF
25844 /* confdefs.h. */
25845 _ACEOF
25846 cat confdefs.h >>conftest.$ac_ext
25847 cat >>conftest.$ac_ext <<_ACEOF
25848 /* end confdefs.h. */
25849 #include <time.h>
25852 main ()
25854 #ifndef tzname
25855 (void) tzname;
25856 #endif
25859 return 0;
25861 _ACEOF
25862 rm -f conftest.$ac_objext
25863 if { (ac_try="$ac_compile"
25864 case "(($ac_try" in
25865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25866 *) ac_try_echo=$ac_try;;
25867 esac
25868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25869 (eval "$ac_compile") 2>conftest.er1
25870 ac_status=$?
25871 grep -v '^ *+' conftest.er1 >conftest.err
25872 rm -f conftest.er1
25873 cat conftest.err >&5
25874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25875 (exit $ac_status); } && {
25876 test -z "$ac_c_werror_flag" ||
25877 test ! -s conftest.err
25878 } && test -s conftest.$ac_objext; then
25879 ac_cv_have_decl_tzname=yes
25880 else
25881 echo "$as_me: failed program was:" >&5
25882 sed 's/^/| /' conftest.$ac_ext >&5
25884 ac_cv_have_decl_tzname=no
25887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25889 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
25890 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
25891 if test $ac_cv_have_decl_tzname = yes; then
25893 cat >>confdefs.h <<_ACEOF
25894 #define HAVE_DECL_TZNAME 1
25895 _ACEOF
25898 else
25899 cat >>confdefs.h <<_ACEOF
25900 #define HAVE_DECL_TZNAME 0
25901 _ACEOF
25907 { echo "$as_me:$LINENO: checking for tzname" >&5
25908 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
25909 if test "${ac_cv_var_tzname+set}" = set; then
25910 echo $ECHO_N "(cached) $ECHO_C" >&6
25911 else
25912 cat >conftest.$ac_ext <<_ACEOF
25913 /* confdefs.h. */
25914 _ACEOF
25915 cat confdefs.h >>conftest.$ac_ext
25916 cat >>conftest.$ac_ext <<_ACEOF
25917 /* end confdefs.h. */
25918 #include <time.h>
25919 #if !HAVE_DECL_TZNAME
25920 extern char *tzname[];
25921 #endif
25924 main ()
25926 return tzname[0][0];
25928 return 0;
25930 _ACEOF
25931 rm -f conftest.$ac_objext conftest$ac_exeext
25932 if { (ac_try="$ac_link"
25933 case "(($ac_try" in
25934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25935 *) ac_try_echo=$ac_try;;
25936 esac
25937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25938 (eval "$ac_link") 2>conftest.er1
25939 ac_status=$?
25940 grep -v '^ *+' conftest.er1 >conftest.err
25941 rm -f conftest.er1
25942 cat conftest.err >&5
25943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25944 (exit $ac_status); } && {
25945 test -z "$ac_c_werror_flag" ||
25946 test ! -s conftest.err
25947 } && test -s conftest$ac_exeext &&
25948 $as_test_x conftest$ac_exeext; then
25949 ac_cv_var_tzname=yes
25950 else
25951 echo "$as_me: failed program was:" >&5
25952 sed 's/^/| /' conftest.$ac_ext >&5
25954 ac_cv_var_tzname=no
25957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25958 conftest$ac_exeext conftest.$ac_ext
25960 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
25961 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
25962 if test $ac_cv_var_tzname = yes; then
25964 cat >>confdefs.h <<\_ACEOF
25965 #define HAVE_TZNAME 1
25966 _ACEOF
25972 # check tzset(3) exists and works like we expect it to
25973 { echo "$as_me:$LINENO: checking for working tzset()" >&5
25974 echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6; }
25975 if test "${ac_cv_working_tzset+set}" = set; then
25976 echo $ECHO_N "(cached) $ECHO_C" >&6
25977 else
25979 if test "$cross_compiling" = yes; then
25980 ac_cv_working_tzset=no
25981 else
25982 cat >conftest.$ac_ext <<_ACEOF
25983 /* confdefs.h. */
25984 _ACEOF
25985 cat confdefs.h >>conftest.$ac_ext
25986 cat >>conftest.$ac_ext <<_ACEOF
25987 /* end confdefs.h. */
25989 #include <stdlib.h>
25990 #include <time.h>
25991 #include <string.h>
25993 #if HAVE_TZNAME
25994 extern char *tzname[];
25995 #endif
25997 int main()
25999 /* Note that we need to ensure that not only does tzset(3)
26000 do 'something' with localtime, but it works as documented
26001 in the library reference and as expected by the test suite.
26002 This includes making sure that tzname is set properly if
26003 tm->tm_zone does not exist since it is the alternative way
26004 of getting timezone info.
26006 Red Hat 6.2 doesn't understand the southern hemisphere
26007 after New Year's Day.
26010 time_t groundhogday = 1044144000; /* GMT-based */
26011 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
26013 putenv("TZ=UTC+0");
26014 tzset();
26015 if (localtime(&groundhogday)->tm_hour != 0)
26016 exit(1);
26017 #if HAVE_TZNAME
26018 /* For UTC, tzname[1] is sometimes "", sometimes " " */
26019 if (strcmp(tzname[0], "UTC") ||
26020 (tzname[1][0] != 0 && tzname[1][0] != ' '))
26021 exit(1);
26022 #endif
26024 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
26025 tzset();
26026 if (localtime(&groundhogday)->tm_hour != 19)
26027 exit(1);
26028 #if HAVE_TZNAME
26029 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
26030 exit(1);
26031 #endif
26033 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
26034 tzset();
26035 if (localtime(&groundhogday)->tm_hour != 11)
26036 exit(1);
26037 #if HAVE_TZNAME
26038 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
26039 exit(1);
26040 #endif
26042 #if HAVE_STRUCT_TM_TM_ZONE
26043 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
26044 exit(1);
26045 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
26046 exit(1);
26047 #endif
26049 exit(0);
26052 _ACEOF
26053 rm -f conftest$ac_exeext
26054 if { (ac_try="$ac_link"
26055 case "(($ac_try" in
26056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26057 *) ac_try_echo=$ac_try;;
26058 esac
26059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26060 (eval "$ac_link") 2>&5
26061 ac_status=$?
26062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26063 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26064 { (case "(($ac_try" in
26065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26066 *) ac_try_echo=$ac_try;;
26067 esac
26068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26069 (eval "$ac_try") 2>&5
26070 ac_status=$?
26071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26072 (exit $ac_status); }; }; then
26073 ac_cv_working_tzset=yes
26074 else
26075 echo "$as_me: program exited with status $ac_status" >&5
26076 echo "$as_me: failed program was:" >&5
26077 sed 's/^/| /' conftest.$ac_ext >&5
26079 ( exit $ac_status )
26080 ac_cv_working_tzset=no
26082 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26088 { echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5
26089 echo "${ECHO_T}$ac_cv_working_tzset" >&6; }
26090 if test "$ac_cv_working_tzset" = yes
26091 then
26093 cat >>confdefs.h <<\_ACEOF
26094 #define HAVE_WORKING_TZSET 1
26095 _ACEOF
26099 # Look for subsecond timestamps in struct stat
26100 { echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
26101 echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6; }
26102 if test "${ac_cv_stat_tv_nsec+set}" = set; then
26103 echo $ECHO_N "(cached) $ECHO_C" >&6
26104 else
26105 cat >conftest.$ac_ext <<_ACEOF
26106 /* confdefs.h. */
26107 _ACEOF
26108 cat confdefs.h >>conftest.$ac_ext
26109 cat >>conftest.$ac_ext <<_ACEOF
26110 /* end confdefs.h. */
26111 #include <sys/stat.h>
26113 main ()
26116 struct stat st;
26117 st.st_mtim.tv_nsec = 1;
26120 return 0;
26122 _ACEOF
26123 rm -f conftest.$ac_objext
26124 if { (ac_try="$ac_compile"
26125 case "(($ac_try" in
26126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26127 *) ac_try_echo=$ac_try;;
26128 esac
26129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26130 (eval "$ac_compile") 2>conftest.er1
26131 ac_status=$?
26132 grep -v '^ *+' conftest.er1 >conftest.err
26133 rm -f conftest.er1
26134 cat conftest.err >&5
26135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26136 (exit $ac_status); } && {
26137 test -z "$ac_c_werror_flag" ||
26138 test ! -s conftest.err
26139 } && test -s conftest.$ac_objext; then
26140 ac_cv_stat_tv_nsec=yes
26141 else
26142 echo "$as_me: failed program was:" >&5
26143 sed 's/^/| /' conftest.$ac_ext >&5
26145 ac_cv_stat_tv_nsec=no
26148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26151 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
26152 echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6; }
26153 if test "$ac_cv_stat_tv_nsec" = yes
26154 then
26156 cat >>confdefs.h <<\_ACEOF
26157 #define HAVE_STAT_TV_NSEC 1
26158 _ACEOF
26162 # Look for BSD style subsecond timestamps in struct stat
26163 { echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5
26164 echo $ECHO_N "checking for tv_nsec2 in struct stat... $ECHO_C" >&6; }
26165 if test "${ac_cv_stat_tv_nsec2+set}" = set; then
26166 echo $ECHO_N "(cached) $ECHO_C" >&6
26167 else
26168 cat >conftest.$ac_ext <<_ACEOF
26169 /* confdefs.h. */
26170 _ACEOF
26171 cat confdefs.h >>conftest.$ac_ext
26172 cat >>conftest.$ac_ext <<_ACEOF
26173 /* end confdefs.h. */
26174 #include <sys/stat.h>
26176 main ()
26179 struct stat st;
26180 st.st_mtimespec.tv_nsec = 1;
26183 return 0;
26185 _ACEOF
26186 rm -f conftest.$ac_objext
26187 if { (ac_try="$ac_compile"
26188 case "(($ac_try" in
26189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26190 *) ac_try_echo=$ac_try;;
26191 esac
26192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26193 (eval "$ac_compile") 2>conftest.er1
26194 ac_status=$?
26195 grep -v '^ *+' conftest.er1 >conftest.err
26196 rm -f conftest.er1
26197 cat conftest.err >&5
26198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26199 (exit $ac_status); } && {
26200 test -z "$ac_c_werror_flag" ||
26201 test ! -s conftest.err
26202 } && test -s conftest.$ac_objext; then
26203 ac_cv_stat_tv_nsec2=yes
26204 else
26205 echo "$as_me: failed program was:" >&5
26206 sed 's/^/| /' conftest.$ac_ext >&5
26208 ac_cv_stat_tv_nsec2=no
26211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26214 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5
26215 echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6; }
26216 if test "$ac_cv_stat_tv_nsec2" = yes
26217 then
26219 cat >>confdefs.h <<\_ACEOF
26220 #define HAVE_STAT_TV_NSEC2 1
26221 _ACEOF
26225 # On HP/UX 11.0, mvwdelch is a block with a return statement
26226 { echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
26227 echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6; }
26228 if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
26229 echo $ECHO_N "(cached) $ECHO_C" >&6
26230 else
26231 cat >conftest.$ac_ext <<_ACEOF
26232 /* confdefs.h. */
26233 _ACEOF
26234 cat confdefs.h >>conftest.$ac_ext
26235 cat >>conftest.$ac_ext <<_ACEOF
26236 /* end confdefs.h. */
26237 #include <curses.h>
26239 main ()
26242 int rtn;
26243 rtn = mvwdelch(0,0,0);
26246 return 0;
26248 _ACEOF
26249 rm -f conftest.$ac_objext
26250 if { (ac_try="$ac_compile"
26251 case "(($ac_try" in
26252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26253 *) ac_try_echo=$ac_try;;
26254 esac
26255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26256 (eval "$ac_compile") 2>conftest.er1
26257 ac_status=$?
26258 grep -v '^ *+' conftest.er1 >conftest.err
26259 rm -f conftest.er1
26260 cat conftest.err >&5
26261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26262 (exit $ac_status); } && {
26263 test -z "$ac_c_werror_flag" ||
26264 test ! -s conftest.err
26265 } && test -s conftest.$ac_objext; then
26266 ac_cv_mvwdelch_is_expression=yes
26267 else
26268 echo "$as_me: failed program was:" >&5
26269 sed 's/^/| /' conftest.$ac_ext >&5
26271 ac_cv_mvwdelch_is_expression=no
26274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26277 { echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
26278 echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6; }
26280 if test "$ac_cv_mvwdelch_is_expression" = yes
26281 then
26283 cat >>confdefs.h <<\_ACEOF
26284 #define MVWDELCH_IS_EXPRESSION 1
26285 _ACEOF
26289 { echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
26290 echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6; }
26291 if test "${ac_cv_window_has_flags+set}" = set; then
26292 echo $ECHO_N "(cached) $ECHO_C" >&6
26293 else
26294 cat >conftest.$ac_ext <<_ACEOF
26295 /* confdefs.h. */
26296 _ACEOF
26297 cat confdefs.h >>conftest.$ac_ext
26298 cat >>conftest.$ac_ext <<_ACEOF
26299 /* end confdefs.h. */
26300 #include <curses.h>
26302 main ()
26305 WINDOW *w;
26306 w->_flags = 0;
26309 return 0;
26311 _ACEOF
26312 rm -f conftest.$ac_objext
26313 if { (ac_try="$ac_compile"
26314 case "(($ac_try" in
26315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26316 *) ac_try_echo=$ac_try;;
26317 esac
26318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26319 (eval "$ac_compile") 2>conftest.er1
26320 ac_status=$?
26321 grep -v '^ *+' conftest.er1 >conftest.err
26322 rm -f conftest.er1
26323 cat conftest.err >&5
26324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26325 (exit $ac_status); } && {
26326 test -z "$ac_c_werror_flag" ||
26327 test ! -s conftest.err
26328 } && test -s conftest.$ac_objext; then
26329 ac_cv_window_has_flags=yes
26330 else
26331 echo "$as_me: failed program was:" >&5
26332 sed 's/^/| /' conftest.$ac_ext >&5
26334 ac_cv_window_has_flags=no
26337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26340 { echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
26341 echo "${ECHO_T}$ac_cv_window_has_flags" >&6; }
26344 if test "$ac_cv_window_has_flags" = yes
26345 then
26347 cat >>confdefs.h <<\_ACEOF
26348 #define WINDOW_HAS_FLAGS 1
26349 _ACEOF
26353 { echo "$as_me:$LINENO: checking for is_term_resized" >&5
26354 echo $ECHO_N "checking for is_term_resized... $ECHO_C" >&6; }
26355 cat >conftest.$ac_ext <<_ACEOF
26356 /* confdefs.h. */
26357 _ACEOF
26358 cat confdefs.h >>conftest.$ac_ext
26359 cat >>conftest.$ac_ext <<_ACEOF
26360 /* end confdefs.h. */
26361 #include <curses.h>
26363 main ()
26365 void *x=is_term_resized
26367 return 0;
26369 _ACEOF
26370 rm -f conftest.$ac_objext
26371 if { (ac_try="$ac_compile"
26372 case "(($ac_try" in
26373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26374 *) ac_try_echo=$ac_try;;
26375 esac
26376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26377 (eval "$ac_compile") 2>conftest.er1
26378 ac_status=$?
26379 grep -v '^ *+' conftest.er1 >conftest.err
26380 rm -f conftest.er1
26381 cat conftest.err >&5
26382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26383 (exit $ac_status); } && {
26384 test -z "$ac_c_werror_flag" ||
26385 test ! -s conftest.err
26386 } && test -s conftest.$ac_objext; then
26388 cat >>confdefs.h <<\_ACEOF
26389 #define HAVE_CURSES_IS_TERM_RESIZED 1
26390 _ACEOF
26392 { echo "$as_me:$LINENO: result: yes" >&5
26393 echo "${ECHO_T}yes" >&6; }
26394 else
26395 echo "$as_me: failed program was:" >&5
26396 sed 's/^/| /' conftest.$ac_ext >&5
26398 { echo "$as_me:$LINENO: result: no" >&5
26399 echo "${ECHO_T}no" >&6; }
26403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26405 { echo "$as_me:$LINENO: checking for resize_term" >&5
26406 echo $ECHO_N "checking for resize_term... $ECHO_C" >&6; }
26407 cat >conftest.$ac_ext <<_ACEOF
26408 /* confdefs.h. */
26409 _ACEOF
26410 cat confdefs.h >>conftest.$ac_ext
26411 cat >>conftest.$ac_ext <<_ACEOF
26412 /* end confdefs.h. */
26413 #include <curses.h>
26415 main ()
26417 void *x=resize_term
26419 return 0;
26421 _ACEOF
26422 rm -f conftest.$ac_objext
26423 if { (ac_try="$ac_compile"
26424 case "(($ac_try" in
26425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26426 *) ac_try_echo=$ac_try;;
26427 esac
26428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26429 (eval "$ac_compile") 2>conftest.er1
26430 ac_status=$?
26431 grep -v '^ *+' conftest.er1 >conftest.err
26432 rm -f conftest.er1
26433 cat conftest.err >&5
26434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26435 (exit $ac_status); } && {
26436 test -z "$ac_c_werror_flag" ||
26437 test ! -s conftest.err
26438 } && test -s conftest.$ac_objext; then
26440 cat >>confdefs.h <<\_ACEOF
26441 #define HAVE_CURSES_RESIZE_TERM 1
26442 _ACEOF
26444 { echo "$as_me:$LINENO: result: yes" >&5
26445 echo "${ECHO_T}yes" >&6; }
26446 else
26447 echo "$as_me: failed program was:" >&5
26448 sed 's/^/| /' conftest.$ac_ext >&5
26450 { echo "$as_me:$LINENO: result: no" >&5
26451 echo "${ECHO_T}no" >&6; }
26455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26457 { echo "$as_me:$LINENO: checking for resizeterm" >&5
26458 echo $ECHO_N "checking for resizeterm... $ECHO_C" >&6; }
26459 cat >conftest.$ac_ext <<_ACEOF
26460 /* confdefs.h. */
26461 _ACEOF
26462 cat confdefs.h >>conftest.$ac_ext
26463 cat >>conftest.$ac_ext <<_ACEOF
26464 /* end confdefs.h. */
26465 #include <curses.h>
26467 main ()
26469 void *x=resizeterm
26471 return 0;
26473 _ACEOF
26474 rm -f conftest.$ac_objext
26475 if { (ac_try="$ac_compile"
26476 case "(($ac_try" in
26477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26478 *) ac_try_echo=$ac_try;;
26479 esac
26480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26481 (eval "$ac_compile") 2>conftest.er1
26482 ac_status=$?
26483 grep -v '^ *+' conftest.er1 >conftest.err
26484 rm -f conftest.er1
26485 cat conftest.err >&5
26486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26487 (exit $ac_status); } && {
26488 test -z "$ac_c_werror_flag" ||
26489 test ! -s conftest.err
26490 } && test -s conftest.$ac_objext; then
26492 cat >>confdefs.h <<\_ACEOF
26493 #define HAVE_CURSES_RESIZETERM 1
26494 _ACEOF
26496 { echo "$as_me:$LINENO: result: yes" >&5
26497 echo "${ECHO_T}yes" >&6; }
26498 else
26499 echo "$as_me: failed program was:" >&5
26500 sed 's/^/| /' conftest.$ac_ext >&5
26502 { echo "$as_me:$LINENO: result: no" >&5
26503 echo "${ECHO_T}no" >&6; }
26507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26509 { echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
26510 echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6; }
26512 if test -r /dev/ptmx
26513 then
26514 { echo "$as_me:$LINENO: result: yes" >&5
26515 echo "${ECHO_T}yes" >&6; }
26517 cat >>confdefs.h <<\_ACEOF
26518 #define HAVE_DEV_PTMX 1
26519 _ACEOF
26521 else
26522 { echo "$as_me:$LINENO: result: no" >&5
26523 echo "${ECHO_T}no" >&6; }
26526 { echo "$as_me:$LINENO: checking for /dev/ptc" >&5
26527 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6; }
26529 if test -r /dev/ptc
26530 then
26531 { echo "$as_me:$LINENO: result: yes" >&5
26532 echo "${ECHO_T}yes" >&6; }
26534 cat >>confdefs.h <<\_ACEOF
26535 #define HAVE_DEV_PTC 1
26536 _ACEOF
26538 else
26539 { echo "$as_me:$LINENO: result: no" >&5
26540 echo "${ECHO_T}no" >&6; }
26543 { echo "$as_me:$LINENO: checking for %zd printf() format support" >&5
26544 echo $ECHO_N "checking for %zd printf() format support... $ECHO_C" >&6; }
26545 if test "${ac_cv_have_size_t_format+set}" = set; then
26546 echo $ECHO_N "(cached) $ECHO_C" >&6
26547 else
26548 if test "$cross_compiling" = yes; then
26549 ac_cv_have_size_t_format=no
26550 else
26551 cat >conftest.$ac_ext <<_ACEOF
26552 /* confdefs.h. */
26553 _ACEOF
26554 cat confdefs.h >>conftest.$ac_ext
26555 cat >>conftest.$ac_ext <<_ACEOF
26556 /* end confdefs.h. */
26558 #include <stdio.h>
26559 #include <stddef.h>
26560 #include <string.h>
26562 #ifdef HAVE_SYS_TYPES_H
26563 #include <sys/types.h>
26564 #endif
26566 #ifdef HAVE_SSIZE_T
26567 typedef ssize_t Py_ssize_t;
26568 #elif SIZEOF_VOID_P == SIZEOF_LONG
26569 typedef long Py_ssize_t;
26570 #else
26571 typedef int Py_ssize_t;
26572 #endif
26574 int main()
26576 char buffer[256];
26578 if(sprintf(buffer, "%zd", (size_t)123) < 0)
26579 return 1;
26581 if (strcmp(buffer, "123"))
26582 return 1;
26584 if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0)
26585 return 1;
26587 if (strcmp(buffer, "-123"))
26588 return 1;
26590 return 0;
26593 _ACEOF
26594 rm -f conftest$ac_exeext
26595 if { (ac_try="$ac_link"
26596 case "(($ac_try" in
26597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26598 *) ac_try_echo=$ac_try;;
26599 esac
26600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26601 (eval "$ac_link") 2>&5
26602 ac_status=$?
26603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26604 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26605 { (case "(($ac_try" in
26606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26607 *) ac_try_echo=$ac_try;;
26608 esac
26609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26610 (eval "$ac_try") 2>&5
26611 ac_status=$?
26612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26613 (exit $ac_status); }; }; then
26614 ac_cv_have_size_t_format=yes
26615 else
26616 echo "$as_me: program exited with status $ac_status" >&5
26617 echo "$as_me: failed program was:" >&5
26618 sed 's/^/| /' conftest.$ac_ext >&5
26620 ( exit $ac_status )
26621 ac_cv_have_size_t_format=no
26623 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26630 { echo "$as_me:$LINENO: result: $ac_cv_have_size_t_format" >&5
26631 echo "${ECHO_T}$ac_cv_have_size_t_format" >&6; }
26632 if test $ac_cv_have_size_t_format = yes
26633 then
26635 cat >>confdefs.h <<\_ACEOF
26636 #define PY_FORMAT_SIZE_T "z"
26637 _ACEOF
26641 { echo "$as_me:$LINENO: checking for socklen_t" >&5
26642 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
26643 if test "${ac_cv_type_socklen_t+set}" = set; then
26644 echo $ECHO_N "(cached) $ECHO_C" >&6
26645 else
26646 cat >conftest.$ac_ext <<_ACEOF
26647 /* confdefs.h. */
26648 _ACEOF
26649 cat confdefs.h >>conftest.$ac_ext
26650 cat >>conftest.$ac_ext <<_ACEOF
26651 /* end confdefs.h. */
26653 #ifdef HAVE_SYS_TYPES_H
26654 #include <sys/types.h>
26655 #endif
26656 #ifdef HAVE_SYS_SOCKET_H
26657 #include <sys/socket.h>
26658 #endif
26661 typedef socklen_t ac__type_new_;
26663 main ()
26665 if ((ac__type_new_ *) 0)
26666 return 0;
26667 if (sizeof (ac__type_new_))
26668 return 0;
26670 return 0;
26672 _ACEOF
26673 rm -f conftest.$ac_objext
26674 if { (ac_try="$ac_compile"
26675 case "(($ac_try" in
26676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26677 *) ac_try_echo=$ac_try;;
26678 esac
26679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26680 (eval "$ac_compile") 2>conftest.er1
26681 ac_status=$?
26682 grep -v '^ *+' conftest.er1 >conftest.err
26683 rm -f conftest.er1
26684 cat conftest.err >&5
26685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26686 (exit $ac_status); } && {
26687 test -z "$ac_c_werror_flag" ||
26688 test ! -s conftest.err
26689 } && test -s conftest.$ac_objext; then
26690 ac_cv_type_socklen_t=yes
26691 else
26692 echo "$as_me: failed program was:" >&5
26693 sed 's/^/| /' conftest.$ac_ext >&5
26695 ac_cv_type_socklen_t=no
26698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26700 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
26701 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
26702 if test $ac_cv_type_socklen_t = yes; then
26704 else
26706 cat >>confdefs.h <<\_ACEOF
26707 #define socklen_t int
26708 _ACEOF
26715 for h in `(cd $srcdir;echo Python/thread_*.h)`
26717 THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
26718 done
26721 SRCDIRS="Parser Grammar Objects Python Modules Mac"
26722 { echo "$as_me:$LINENO: checking for build directories" >&5
26723 echo $ECHO_N "checking for build directories... $ECHO_C" >&6; }
26724 for dir in $SRCDIRS; do
26725 if test ! -d $dir; then
26726 mkdir $dir
26728 done
26729 { echo "$as_me:$LINENO: result: done" >&5
26730 echo "${ECHO_T}done" >&6; }
26732 # generate output files
26733 ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config Misc/python.pc"
26735 cat >confcache <<\_ACEOF
26736 # This file is a shell script that caches the results of configure
26737 # tests run on this system so they can be shared between configure
26738 # scripts and configure runs, see configure's option --config-cache.
26739 # It is not useful on other systems. If it contains results you don't
26740 # want to keep, you may remove or edit it.
26742 # config.status only pays attention to the cache file if you give it
26743 # the --recheck option to rerun configure.
26745 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26746 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26747 # following values.
26749 _ACEOF
26751 # The following way of writing the cache mishandles newlines in values,
26752 # but we know of no workaround that is simple, portable, and efficient.
26753 # So, we kill variables containing newlines.
26754 # Ultrix sh set writes to stderr and can't be redirected directly,
26755 # and sets the high bit in the cache file unless we assign to the vars.
26757 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26758 eval ac_val=\$$ac_var
26759 case $ac_val in #(
26760 *${as_nl}*)
26761 case $ac_var in #(
26762 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
26763 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
26764 esac
26765 case $ac_var in #(
26766 _ | IFS | as_nl) ;; #(
26767 *) $as_unset $ac_var ;;
26768 esac ;;
26769 esac
26770 done
26772 (set) 2>&1 |
26773 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26774 *${as_nl}ac_space=\ *)
26775 # `set' does not quote correctly, so add quotes (double-quote
26776 # substitution turns \\\\ into \\, and sed turns \\ into \).
26777 sed -n \
26778 "s/'/'\\\\''/g;
26779 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26780 ;; #(
26782 # `set' quotes correctly as required by POSIX, so do not add quotes.
26783 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26785 esac |
26786 sort
26788 sed '
26789 /^ac_cv_env_/b end
26790 t clear
26791 :clear
26792 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26793 t end
26794 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26795 :end' >>confcache
26796 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26797 if test -w "$cache_file"; then
26798 test "x$cache_file" != "x/dev/null" &&
26799 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
26800 echo "$as_me: updating cache $cache_file" >&6;}
26801 cat confcache >$cache_file
26802 else
26803 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26804 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26807 rm -f confcache
26809 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26810 # Let make expand exec_prefix.
26811 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26813 DEFS=-DHAVE_CONFIG_H
26815 ac_libobjs=
26816 ac_ltlibobjs=
26817 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26818 # 1. Remove the extension, and $U if already installed.
26819 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26820 ac_i=`echo "$ac_i" | sed "$ac_script"`
26821 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26822 # will be set to the directory where LIBOBJS objects are built.
26823 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26824 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26825 done
26826 LIBOBJS=$ac_libobjs
26828 LTLIBOBJS=$ac_ltlibobjs
26832 : ${CONFIG_STATUS=./config.status}
26833 ac_clean_files_save=$ac_clean_files
26834 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26835 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26836 echo "$as_me: creating $CONFIG_STATUS" >&6;}
26837 cat >$CONFIG_STATUS <<_ACEOF
26838 #! $SHELL
26839 # Generated by $as_me.
26840 # Run this file to recreate the current configuration.
26841 # Compiler output produced by configure, useful for debugging
26842 # configure, is in config.log if it exists.
26844 debug=false
26845 ac_cs_recheck=false
26846 ac_cs_silent=false
26847 SHELL=\${CONFIG_SHELL-$SHELL}
26848 _ACEOF
26850 cat >>$CONFIG_STATUS <<\_ACEOF
26851 ## --------------------- ##
26852 ## M4sh Initialization. ##
26853 ## --------------------- ##
26855 # Be more Bourne compatible
26856 DUALCASE=1; export DUALCASE # for MKS sh
26857 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26858 emulate sh
26859 NULLCMD=:
26860 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26861 # is contrary to our usage. Disable this feature.
26862 alias -g '${1+"$@"}'='"$@"'
26863 setopt NO_GLOB_SUBST
26864 else
26865 case `(set -o) 2>/dev/null` in
26866 *posix*) set -o posix ;;
26867 esac
26874 # PATH needs CR
26875 # Avoid depending upon Character Ranges.
26876 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26877 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26878 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26879 as_cr_digits='0123456789'
26880 as_cr_alnum=$as_cr_Letters$as_cr_digits
26882 # The user is always right.
26883 if test "${PATH_SEPARATOR+set}" != set; then
26884 echo "#! /bin/sh" >conf$$.sh
26885 echo "exit 0" >>conf$$.sh
26886 chmod +x conf$$.sh
26887 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26888 PATH_SEPARATOR=';'
26889 else
26890 PATH_SEPARATOR=:
26892 rm -f conf$$.sh
26895 # Support unset when possible.
26896 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26897 as_unset=unset
26898 else
26899 as_unset=false
26903 # IFS
26904 # We need space, tab and new line, in precisely that order. Quoting is
26905 # there to prevent editors from complaining about space-tab.
26906 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26907 # splitting by setting IFS to empty value.)
26908 as_nl='
26910 IFS=" "" $as_nl"
26912 # Find who we are. Look in the path if we contain no directory separator.
26913 case $0 in
26914 *[\\/]* ) as_myself=$0 ;;
26915 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26916 for as_dir in $PATH
26918 IFS=$as_save_IFS
26919 test -z "$as_dir" && as_dir=.
26920 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26921 done
26922 IFS=$as_save_IFS
26925 esac
26926 # We did not find ourselves, most probably we were run as `sh COMMAND'
26927 # in which case we are not to be found in the path.
26928 if test "x$as_myself" = x; then
26929 as_myself=$0
26931 if test ! -f "$as_myself"; then
26932 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26933 { (exit 1); exit 1; }
26936 # Work around bugs in pre-3.0 UWIN ksh.
26937 for as_var in ENV MAIL MAILPATH
26938 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26939 done
26940 PS1='$ '
26941 PS2='> '
26942 PS4='+ '
26944 # NLS nuisances.
26945 for as_var in \
26946 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26947 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26948 LC_TELEPHONE LC_TIME
26950 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26951 eval $as_var=C; export $as_var
26952 else
26953 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26955 done
26957 # Required to use basename.
26958 if expr a : '\(a\)' >/dev/null 2>&1 &&
26959 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26960 as_expr=expr
26961 else
26962 as_expr=false
26965 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26966 as_basename=basename
26967 else
26968 as_basename=false
26972 # Name of the executable.
26973 as_me=`$as_basename -- "$0" ||
26974 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26975 X"$0" : 'X\(//\)$' \| \
26976 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26977 echo X/"$0" |
26978 sed '/^.*\/\([^/][^/]*\)\/*$/{
26979 s//\1/
26982 /^X\/\(\/\/\)$/{
26983 s//\1/
26986 /^X\/\(\/\).*/{
26987 s//\1/
26990 s/.*/./; q'`
26992 # CDPATH.
26993 $as_unset CDPATH
26997 as_lineno_1=$LINENO
26998 as_lineno_2=$LINENO
26999 test "x$as_lineno_1" != "x$as_lineno_2" &&
27000 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
27002 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
27003 # uniformly replaced by the line number. The first 'sed' inserts a
27004 # line-number line after each line using $LINENO; the second 'sed'
27005 # does the real work. The second script uses 'N' to pair each
27006 # line-number line with the line containing $LINENO, and appends
27007 # trailing '-' during substitution so that $LINENO is not a special
27008 # case at line end.
27009 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
27010 # scripts with optimization help from Paolo Bonzini. Blame Lee
27011 # E. McMahon (1931-1989) for sed's syntax. :-)
27012 sed -n '
27014 /[$]LINENO/=
27015 ' <$as_myself |
27016 sed '
27017 s/[$]LINENO.*/&-/
27018 t lineno
27020 :lineno
27022 :loop
27023 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
27024 t loop
27025 s/-\n.*//
27026 ' >$as_me.lineno &&
27027 chmod +x "$as_me.lineno" ||
27028 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
27029 { (exit 1); exit 1; }; }
27031 # Don't try to exec as it changes $[0], causing all sort of problems
27032 # (the dirname of $[0] is not the place where we might find the
27033 # original and so on. Autoconf is especially sensitive to this).
27034 . "./$as_me.lineno"
27035 # Exit status is that of the last command.
27036 exit
27040 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27041 as_dirname=dirname
27042 else
27043 as_dirname=false
27046 ECHO_C= ECHO_N= ECHO_T=
27047 case `echo -n x` in
27048 -n*)
27049 case `echo 'x\c'` in
27050 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27051 *) ECHO_C='\c';;
27052 esac;;
27054 ECHO_N='-n';;
27055 esac
27057 if expr a : '\(a\)' >/dev/null 2>&1 &&
27058 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27059 as_expr=expr
27060 else
27061 as_expr=false
27064 rm -f conf$$ conf$$.exe conf$$.file
27065 if test -d conf$$.dir; then
27066 rm -f conf$$.dir/conf$$.file
27067 else
27068 rm -f conf$$.dir
27069 mkdir conf$$.dir
27071 echo >conf$$.file
27072 if ln -s conf$$.file conf$$ 2>/dev/null; then
27073 as_ln_s='ln -s'
27074 # ... but there are two gotchas:
27075 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27076 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27077 # In both cases, we have to default to `cp -p'.
27078 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27079 as_ln_s='cp -p'
27080 elif ln conf$$.file conf$$ 2>/dev/null; then
27081 as_ln_s=ln
27082 else
27083 as_ln_s='cp -p'
27085 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27086 rmdir conf$$.dir 2>/dev/null
27088 if mkdir -p . 2>/dev/null; then
27089 as_mkdir_p=:
27090 else
27091 test -d ./-p && rmdir ./-p
27092 as_mkdir_p=false
27095 if test -x / >/dev/null 2>&1; then
27096 as_test_x='test -x'
27097 else
27098 if ls -dL / >/dev/null 2>&1; then
27099 as_ls_L_option=L
27100 else
27101 as_ls_L_option=
27103 as_test_x='
27104 eval sh -c '\''
27105 if test -d "$1"; then
27106 test -d "$1/.";
27107 else
27108 case $1 in
27109 -*)set "./$1";;
27110 esac;
27111 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
27112 ???[sx]*):;;*)false;;esac;fi
27113 '\'' sh
27116 as_executable_p=$as_test_x
27118 # Sed expression to map a string onto a valid CPP name.
27119 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27121 # Sed expression to map a string onto a valid variable name.
27122 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27125 exec 6>&1
27127 # Save the log message, to keep $[0] and so on meaningful, and to
27128 # report actual input values of CONFIG_FILES etc. instead of their
27129 # values after options handling.
27130 ac_log="
27131 This file was extended by python $as_me 2.7, which was
27132 generated by GNU Autoconf 2.61. Invocation command line was
27134 CONFIG_FILES = $CONFIG_FILES
27135 CONFIG_HEADERS = $CONFIG_HEADERS
27136 CONFIG_LINKS = $CONFIG_LINKS
27137 CONFIG_COMMANDS = $CONFIG_COMMANDS
27138 $ $0 $@
27140 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27143 _ACEOF
27145 cat >>$CONFIG_STATUS <<_ACEOF
27146 # Files that config.status was made for.
27147 config_files="$ac_config_files"
27148 config_headers="$ac_config_headers"
27150 _ACEOF
27152 cat >>$CONFIG_STATUS <<\_ACEOF
27153 ac_cs_usage="\
27154 \`$as_me' instantiates files from templates according to the
27155 current configuration.
27157 Usage: $0 [OPTIONS] [FILE]...
27159 -h, --help print this help, then exit
27160 -V, --version print version number and configuration settings, then exit
27161 -q, --quiet do not print progress messages
27162 -d, --debug don't remove temporary files
27163 --recheck update $as_me by reconfiguring in the same conditions
27164 --file=FILE[:TEMPLATE]
27165 instantiate the configuration file FILE
27166 --header=FILE[:TEMPLATE]
27167 instantiate the configuration header FILE
27169 Configuration files:
27170 $config_files
27172 Configuration headers:
27173 $config_headers
27175 Report bugs to <bug-autoconf@gnu.org>."
27177 _ACEOF
27178 cat >>$CONFIG_STATUS <<_ACEOF
27179 ac_cs_version="\\
27180 python config.status 2.7
27181 configured by $0, generated by GNU Autoconf 2.61,
27182 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27184 Copyright (C) 2006 Free Software Foundation, Inc.
27185 This config.status script is free software; the Free Software Foundation
27186 gives unlimited permission to copy, distribute and modify it."
27188 ac_pwd='$ac_pwd'
27189 srcdir='$srcdir'
27190 INSTALL='$INSTALL'
27191 _ACEOF
27193 cat >>$CONFIG_STATUS <<\_ACEOF
27194 # If no file are specified by the user, then we need to provide default
27195 # value. By we need to know if files were specified by the user.
27196 ac_need_defaults=:
27197 while test $# != 0
27199 case $1 in
27200 --*=*)
27201 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27202 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27203 ac_shift=:
27206 ac_option=$1
27207 ac_optarg=$2
27208 ac_shift=shift
27210 esac
27212 case $ac_option in
27213 # Handling of the options.
27214 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27215 ac_cs_recheck=: ;;
27216 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27217 echo "$ac_cs_version"; exit ;;
27218 --debug | --debu | --deb | --de | --d | -d )
27219 debug=: ;;
27220 --file | --fil | --fi | --f )
27221 $ac_shift
27222 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
27223 ac_need_defaults=false;;
27224 --header | --heade | --head | --hea )
27225 $ac_shift
27226 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
27227 ac_need_defaults=false;;
27228 --he | --h)
27229 # Conflict between --help and --header
27230 { echo "$as_me: error: ambiguous option: $1
27231 Try \`$0 --help' for more information." >&2
27232 { (exit 1); exit 1; }; };;
27233 --help | --hel | -h )
27234 echo "$ac_cs_usage"; exit ;;
27235 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27236 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27237 ac_cs_silent=: ;;
27239 # This is an error.
27240 -*) { echo "$as_me: error: unrecognized option: $1
27241 Try \`$0 --help' for more information." >&2
27242 { (exit 1); exit 1; }; } ;;
27244 *) ac_config_targets="$ac_config_targets $1"
27245 ac_need_defaults=false ;;
27247 esac
27248 shift
27249 done
27251 ac_configure_extra_args=
27253 if $ac_cs_silent; then
27254 exec 6>/dev/null
27255 ac_configure_extra_args="$ac_configure_extra_args --silent"
27258 _ACEOF
27259 cat >>$CONFIG_STATUS <<_ACEOF
27260 if \$ac_cs_recheck; then
27261 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
27262 CONFIG_SHELL=$SHELL
27263 export CONFIG_SHELL
27264 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27267 _ACEOF
27268 cat >>$CONFIG_STATUS <<\_ACEOF
27269 exec 5>>config.log
27271 echo
27272 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27273 ## Running $as_me. ##
27274 _ASBOX
27275 echo "$ac_log"
27276 } >&5
27278 _ACEOF
27279 cat >>$CONFIG_STATUS <<_ACEOF
27280 _ACEOF
27282 cat >>$CONFIG_STATUS <<\_ACEOF
27284 # Handling of arguments.
27285 for ac_config_target in $ac_config_targets
27287 case $ac_config_target in
27288 "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;;
27289 "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;;
27290 "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;;
27291 "Mac/IDLE/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/IDLE/Makefile" ;;
27292 "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;;
27293 "Mac/Resources/app/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/app/Info.plist" ;;
27294 "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;;
27295 "Modules/Setup.config") CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;;
27296 "Misc/python.pc") CONFIG_FILES="$CONFIG_FILES Misc/python.pc" ;;
27298 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
27299 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27300 { (exit 1); exit 1; }; };;
27301 esac
27302 done
27305 # If the user did not use the arguments to specify the items to instantiate,
27306 # then the envvar interface is used. Set only those that are not.
27307 # We use the long form for the default assignment because of an extremely
27308 # bizarre bug on SunOS 4.1.3.
27309 if $ac_need_defaults; then
27310 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27311 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27314 # Have a temporary directory for convenience. Make it in the build tree
27315 # simply because there is no reason against having it here, and in addition,
27316 # creating and moving files from /tmp can sometimes cause problems.
27317 # Hook for its removal unless debugging.
27318 # Note that there is a small window in which the directory will not be cleaned:
27319 # after its creation but before its name has been assigned to `$tmp'.
27320 $debug ||
27322 tmp=
27323 trap 'exit_status=$?
27324 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27326 trap '{ (exit 1); exit 1; }' 1 2 13 15
27328 # Create a (secure) tmp directory for tmp files.
27331 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27332 test -n "$tmp" && test -d "$tmp"
27333 } ||
27335 tmp=./conf$$-$RANDOM
27336 (umask 077 && mkdir "$tmp")
27337 } ||
27339 echo "$me: cannot create a temporary directory in ." >&2
27340 { (exit 1); exit 1; }
27344 # Set up the sed scripts for CONFIG_FILES section.
27347 # No need to generate the scripts if there are no CONFIG_FILES.
27348 # This happens for instance when ./config.status config.h
27349 if test -n "$CONFIG_FILES"; then
27351 _ACEOF
27355 ac_delim='%!_!# '
27356 for ac_last_try in false false false false false :; do
27357 cat >conf$$subs.sed <<_ACEOF
27358 SHELL!$SHELL$ac_delim
27359 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
27360 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
27361 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
27362 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
27363 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
27364 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
27365 exec_prefix!$exec_prefix$ac_delim
27366 prefix!$prefix$ac_delim
27367 program_transform_name!$program_transform_name$ac_delim
27368 bindir!$bindir$ac_delim
27369 sbindir!$sbindir$ac_delim
27370 libexecdir!$libexecdir$ac_delim
27371 datarootdir!$datarootdir$ac_delim
27372 datadir!$datadir$ac_delim
27373 sysconfdir!$sysconfdir$ac_delim
27374 sharedstatedir!$sharedstatedir$ac_delim
27375 localstatedir!$localstatedir$ac_delim
27376 includedir!$includedir$ac_delim
27377 oldincludedir!$oldincludedir$ac_delim
27378 docdir!$docdir$ac_delim
27379 infodir!$infodir$ac_delim
27380 htmldir!$htmldir$ac_delim
27381 dvidir!$dvidir$ac_delim
27382 pdfdir!$pdfdir$ac_delim
27383 psdir!$psdir$ac_delim
27384 libdir!$libdir$ac_delim
27385 localedir!$localedir$ac_delim
27386 mandir!$mandir$ac_delim
27387 DEFS!$DEFS$ac_delim
27388 ECHO_C!$ECHO_C$ac_delim
27389 ECHO_N!$ECHO_N$ac_delim
27390 ECHO_T!$ECHO_T$ac_delim
27391 LIBS!$LIBS$ac_delim
27392 build_alias!$build_alias$ac_delim
27393 host_alias!$host_alias$ac_delim
27394 target_alias!$target_alias$ac_delim
27395 VERSION!$VERSION$ac_delim
27396 SOVERSION!$SOVERSION$ac_delim
27397 CONFIG_ARGS!$CONFIG_ARGS$ac_delim
27398 UNIVERSALSDK!$UNIVERSALSDK$ac_delim
27399 ARCH_RUN_32BIT!$ARCH_RUN_32BIT$ac_delim
27400 PYTHONFRAMEWORK!$PYTHONFRAMEWORK$ac_delim
27401 PYTHONFRAMEWORKIDENTIFIER!$PYTHONFRAMEWORKIDENTIFIER$ac_delim
27402 PYTHONFRAMEWORKDIR!$PYTHONFRAMEWORKDIR$ac_delim
27403 PYTHONFRAMEWORKPREFIX!$PYTHONFRAMEWORKPREFIX$ac_delim
27404 PYTHONFRAMEWORKINSTALLDIR!$PYTHONFRAMEWORKINSTALLDIR$ac_delim
27405 FRAMEWORKINSTALLFIRST!$FRAMEWORKINSTALLFIRST$ac_delim
27406 FRAMEWORKINSTALLLAST!$FRAMEWORKINSTALLLAST$ac_delim
27407 FRAMEWORKALTINSTALLFIRST!$FRAMEWORKALTINSTALLFIRST$ac_delim
27408 FRAMEWORKALTINSTALLLAST!$FRAMEWORKALTINSTALLLAST$ac_delim
27409 FRAMEWORKUNIXTOOLSPREFIX!$FRAMEWORKUNIXTOOLSPREFIX$ac_delim
27410 MACHDEP!$MACHDEP$ac_delim
27411 SGI_ABI!$SGI_ABI$ac_delim
27412 EXTRAPLATDIR!$EXTRAPLATDIR$ac_delim
27413 EXTRAMACHDEPPATH!$EXTRAMACHDEPPATH$ac_delim
27414 CONFIGURE_MACOSX_DEPLOYMENT_TARGET!$CONFIGURE_MACOSX_DEPLOYMENT_TARGET$ac_delim
27415 EXPORT_MACOSX_DEPLOYMENT_TARGET!$EXPORT_MACOSX_DEPLOYMENT_TARGET$ac_delim
27416 CC!$CC$ac_delim
27417 CFLAGS!$CFLAGS$ac_delim
27418 LDFLAGS!$LDFLAGS$ac_delim
27419 CPPFLAGS!$CPPFLAGS$ac_delim
27420 ac_ct_CC!$ac_ct_CC$ac_delim
27421 EXEEXT!$EXEEXT$ac_delim
27422 OBJEXT!$OBJEXT$ac_delim
27423 CXX!$CXX$ac_delim
27424 MAINCC!$MAINCC$ac_delim
27425 CPP!$CPP$ac_delim
27426 GREP!$GREP$ac_delim
27427 EGREP!$EGREP$ac_delim
27428 BUILDEXEEXT!$BUILDEXEEXT$ac_delim
27429 LIBRARY!$LIBRARY$ac_delim
27430 LDLIBRARY!$LDLIBRARY$ac_delim
27431 DLLLIBRARY!$DLLLIBRARY$ac_delim
27432 BLDLIBRARY!$BLDLIBRARY$ac_delim
27433 LDLIBRARYDIR!$LDLIBRARYDIR$ac_delim
27434 INSTSONAME!$INSTSONAME$ac_delim
27435 RUNSHARED!$RUNSHARED$ac_delim
27436 LINKCC!$LINKCC$ac_delim
27437 GNULD!$GNULD$ac_delim
27438 RANLIB!$RANLIB$ac_delim
27439 AR!$AR$ac_delim
27440 ARFLAGS!$ARFLAGS$ac_delim
27441 SVNVERSION!$SVNVERSION$ac_delim
27442 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
27443 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
27444 INSTALL_DATA!$INSTALL_DATA$ac_delim
27445 LN!$LN$ac_delim
27446 OPT!$OPT$ac_delim
27447 BASECFLAGS!$BASECFLAGS$ac_delim
27448 UNIVERSAL_ARCH_FLAGS!$UNIVERSAL_ARCH_FLAGS$ac_delim
27449 OTHER_LIBTOOL_OPT!$OTHER_LIBTOOL_OPT$ac_delim
27450 LIBTOOL_CRUFT!$LIBTOOL_CRUFT$ac_delim
27451 SO!$SO$ac_delim
27452 LDSHARED!$LDSHARED$ac_delim
27453 BLDSHARED!$BLDSHARED$ac_delim
27454 CCSHARED!$CCSHARED$ac_delim
27455 _ACEOF
27457 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
27458 break
27459 elif $ac_last_try; then
27460 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27461 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27462 { (exit 1); exit 1; }; }
27463 else
27464 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27466 done
27468 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27469 if test -n "$ac_eof"; then
27470 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27471 ac_eof=`expr $ac_eof + 1`
27474 cat >>$CONFIG_STATUS <<_ACEOF
27475 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
27476 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27477 _ACEOF
27478 sed '
27479 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27480 s/^/s,@/; s/!/@,|#_!!_#|/
27483 s/'"$ac_delim"'$/,g/; t
27484 s/$/\\/; p
27485 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27486 ' >>$CONFIG_STATUS <conf$$subs.sed
27487 rm -f conf$$subs.sed
27488 cat >>$CONFIG_STATUS <<_ACEOF
27489 CEOF$ac_eof
27490 _ACEOF
27493 ac_delim='%!_!# '
27494 for ac_last_try in false false false false false :; do
27495 cat >conf$$subs.sed <<_ACEOF
27496 LINKFORSHARED!$LINKFORSHARED$ac_delim
27497 CFLAGSFORSHARED!$CFLAGSFORSHARED$ac_delim
27498 SHLIBS!$SHLIBS$ac_delim
27499 USE_SIGNAL_MODULE!$USE_SIGNAL_MODULE$ac_delim
27500 SIGNAL_OBJS!$SIGNAL_OBJS$ac_delim
27501 USE_THREAD_MODULE!$USE_THREAD_MODULE$ac_delim
27502 LDLAST!$LDLAST$ac_delim
27503 THREADOBJ!$THREADOBJ$ac_delim
27504 DLINCLDIR!$DLINCLDIR$ac_delim
27505 DYNLOADFILE!$DYNLOADFILE$ac_delim
27506 MACHDEP_OBJS!$MACHDEP_OBJS$ac_delim
27507 TRUE!$TRUE$ac_delim
27508 LIBOBJS!$LIBOBJS$ac_delim
27509 HAVE_GETHOSTBYNAME_R_6_ARG!$HAVE_GETHOSTBYNAME_R_6_ARG$ac_delim
27510 HAVE_GETHOSTBYNAME_R_5_ARG!$HAVE_GETHOSTBYNAME_R_5_ARG$ac_delim
27511 HAVE_GETHOSTBYNAME_R_3_ARG!$HAVE_GETHOSTBYNAME_R_3_ARG$ac_delim
27512 HAVE_GETHOSTBYNAME_R!$HAVE_GETHOSTBYNAME_R$ac_delim
27513 HAVE_GETHOSTBYNAME!$HAVE_GETHOSTBYNAME$ac_delim
27514 LIBM!$LIBM$ac_delim
27515 LIBC!$LIBC$ac_delim
27516 UNICODE_OBJS!$UNICODE_OBJS$ac_delim
27517 THREADHEADERS!$THREADHEADERS$ac_delim
27518 SRCDIRS!$SRCDIRS$ac_delim
27519 LTLIBOBJS!$LTLIBOBJS$ac_delim
27520 _ACEOF
27522 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 24; then
27523 break
27524 elif $ac_last_try; then
27525 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27526 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27527 { (exit 1); exit 1; }; }
27528 else
27529 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27531 done
27533 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27534 if test -n "$ac_eof"; then
27535 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27536 ac_eof=`expr $ac_eof + 1`
27539 cat >>$CONFIG_STATUS <<_ACEOF
27540 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
27541 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
27542 _ACEOF
27543 sed '
27544 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27545 s/^/s,@/; s/!/@,|#_!!_#|/
27548 s/'"$ac_delim"'$/,g/; t
27549 s/$/\\/; p
27550 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27551 ' >>$CONFIG_STATUS <conf$$subs.sed
27552 rm -f conf$$subs.sed
27553 cat >>$CONFIG_STATUS <<_ACEOF
27554 :end
27555 s/|#_!!_#|//g
27556 CEOF$ac_eof
27557 _ACEOF
27560 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27561 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27562 # trailing colons and then remove the whole line if VPATH becomes empty
27563 # (actually we leave an empty line to preserve line numbers).
27564 if test "x$srcdir" = x.; then
27565 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27566 s/:*\$(srcdir):*/:/
27567 s/:*\${srcdir}:*/:/
27568 s/:*@srcdir@:*/:/
27569 s/^\([^=]*=[ ]*\):*/\1/
27570 s/:*$//
27571 s/^[^=]*=[ ]*$//
27575 cat >>$CONFIG_STATUS <<\_ACEOF
27576 fi # test -n "$CONFIG_FILES"
27579 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
27581 case $ac_tag in
27582 :[FHLC]) ac_mode=$ac_tag; continue;;
27583 esac
27584 case $ac_mode$ac_tag in
27585 :[FHL]*:*);;
27586 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
27587 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
27588 { (exit 1); exit 1; }; };;
27589 :[FH]-) ac_tag=-:-;;
27590 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27591 esac
27592 ac_save_IFS=$IFS
27593 IFS=:
27594 set x $ac_tag
27595 IFS=$ac_save_IFS
27596 shift
27597 ac_file=$1
27598 shift
27600 case $ac_mode in
27601 :L) ac_source=$1;;
27602 :[FH])
27603 ac_file_inputs=
27604 for ac_f
27606 case $ac_f in
27607 -) ac_f="$tmp/stdin";;
27608 *) # Look for the file first in the build tree, then in the source tree
27609 # (if the path is not absolute). The absolute path cannot be DOS-style,
27610 # because $ac_f cannot contain `:'.
27611 test -f "$ac_f" ||
27612 case $ac_f in
27613 [\\/$]*) false;;
27614 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27615 esac ||
27616 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27617 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27618 { (exit 1); exit 1; }; };;
27619 esac
27620 ac_file_inputs="$ac_file_inputs $ac_f"
27621 done
27623 # Let's still pretend it is `configure' which instantiates (i.e., don't
27624 # use $as_me), people would be surprised to read:
27625 # /* config.h. Generated by config.status. */
27626 configure_input="Generated from "`IFS=:
27627 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
27628 if test x"$ac_file" != x-; then
27629 configure_input="$ac_file. $configure_input"
27630 { echo "$as_me:$LINENO: creating $ac_file" >&5
27631 echo "$as_me: creating $ac_file" >&6;}
27634 case $ac_tag in
27635 *:-:* | *:-) cat >"$tmp/stdin";;
27636 esac
27638 esac
27640 ac_dir=`$as_dirname -- "$ac_file" ||
27641 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27642 X"$ac_file" : 'X\(//\)[^/]' \| \
27643 X"$ac_file" : 'X\(//\)$' \| \
27644 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27645 echo X"$ac_file" |
27646 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27647 s//\1/
27650 /^X\(\/\/\)[^/].*/{
27651 s//\1/
27654 /^X\(\/\/\)$/{
27655 s//\1/
27658 /^X\(\/\).*/{
27659 s//\1/
27662 s/.*/./; q'`
27663 { as_dir="$ac_dir"
27664 case $as_dir in #(
27665 -*) as_dir=./$as_dir;;
27666 esac
27667 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27668 as_dirs=
27669 while :; do
27670 case $as_dir in #(
27671 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27672 *) as_qdir=$as_dir;;
27673 esac
27674 as_dirs="'$as_qdir' $as_dirs"
27675 as_dir=`$as_dirname -- "$as_dir" ||
27676 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27677 X"$as_dir" : 'X\(//\)[^/]' \| \
27678 X"$as_dir" : 'X\(//\)$' \| \
27679 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27680 echo X"$as_dir" |
27681 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27682 s//\1/
27685 /^X\(\/\/\)[^/].*/{
27686 s//\1/
27689 /^X\(\/\/\)$/{
27690 s//\1/
27693 /^X\(\/\).*/{
27694 s//\1/
27697 s/.*/./; q'`
27698 test -d "$as_dir" && break
27699 done
27700 test -z "$as_dirs" || eval "mkdir $as_dirs"
27701 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27702 echo "$as_me: error: cannot create directory $as_dir" >&2;}
27703 { (exit 1); exit 1; }; }; }
27704 ac_builddir=.
27706 case "$ac_dir" in
27707 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27709 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27710 # A ".." for each directory in $ac_dir_suffix.
27711 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
27712 case $ac_top_builddir_sub in
27713 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27714 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27715 esac ;;
27716 esac
27717 ac_abs_top_builddir=$ac_pwd
27718 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27719 # for backward compatibility:
27720 ac_top_builddir=$ac_top_build_prefix
27722 case $srcdir in
27723 .) # We are building in place.
27724 ac_srcdir=.
27725 ac_top_srcdir=$ac_top_builddir_sub
27726 ac_abs_top_srcdir=$ac_pwd ;;
27727 [\\/]* | ?:[\\/]* ) # Absolute name.
27728 ac_srcdir=$srcdir$ac_dir_suffix;
27729 ac_top_srcdir=$srcdir
27730 ac_abs_top_srcdir=$srcdir ;;
27731 *) # Relative name.
27732 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27733 ac_top_srcdir=$ac_top_build_prefix$srcdir
27734 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27735 esac
27736 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27739 case $ac_mode in
27742 # CONFIG_FILE
27745 case $INSTALL in
27746 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27747 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27748 esac
27749 _ACEOF
27751 cat >>$CONFIG_STATUS <<\_ACEOF
27752 # If the template does not know about datarootdir, expand it.
27753 # FIXME: This hack should be removed a few years after 2.60.
27754 ac_datarootdir_hack=; ac_datarootdir_seen=
27756 case `sed -n '/datarootdir/ {
27760 /@datadir@/p
27761 /@docdir@/p
27762 /@infodir@/p
27763 /@localedir@/p
27764 /@mandir@/p
27765 ' $ac_file_inputs` in
27766 *datarootdir*) ac_datarootdir_seen=yes;;
27767 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27768 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27769 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27770 _ACEOF
27771 cat >>$CONFIG_STATUS <<_ACEOF
27772 ac_datarootdir_hack='
27773 s&@datadir@&$datadir&g
27774 s&@docdir@&$docdir&g
27775 s&@infodir@&$infodir&g
27776 s&@localedir@&$localedir&g
27777 s&@mandir@&$mandir&g
27778 s&\\\${datarootdir}&$datarootdir&g' ;;
27779 esac
27780 _ACEOF
27782 # Neutralize VPATH when `$srcdir' = `.'.
27783 # Shell code in configure.ac might set extrasub.
27784 # FIXME: do we really want to maintain this feature?
27785 cat >>$CONFIG_STATUS <<_ACEOF
27786 sed "$ac_vpsub
27787 $extrasub
27788 _ACEOF
27789 cat >>$CONFIG_STATUS <<\_ACEOF
27791 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27792 s&@configure_input@&$configure_input&;t t
27793 s&@top_builddir@&$ac_top_builddir_sub&;t t
27794 s&@srcdir@&$ac_srcdir&;t t
27795 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27796 s&@top_srcdir@&$ac_top_srcdir&;t t
27797 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27798 s&@builddir@&$ac_builddir&;t t
27799 s&@abs_builddir@&$ac_abs_builddir&;t t
27800 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27801 s&@INSTALL@&$ac_INSTALL&;t t
27802 $ac_datarootdir_hack
27803 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
27805 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27806 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27807 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27808 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27809 which seems to be undefined. Please make sure it is defined." >&5
27810 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27811 which seems to be undefined. Please make sure it is defined." >&2;}
27813 rm -f "$tmp/stdin"
27814 case $ac_file in
27815 -) cat "$tmp/out"; rm -f "$tmp/out";;
27816 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
27817 esac
27821 # CONFIG_HEADER
27823 _ACEOF
27825 # Transform confdefs.h into a sed script `conftest.defines', that
27826 # substitutes the proper values into config.h.in to produce config.h.
27827 rm -f conftest.defines conftest.tail
27828 # First, append a space to every undef/define line, to ease matching.
27829 echo 's/$/ /' >conftest.defines
27830 # Then, protect against being on the right side of a sed subst, or in
27831 # an unquoted here document, in config.status. If some macros were
27832 # called several times there might be several #defines for the same
27833 # symbol, which is useless. But do not sort them, since the last
27834 # AC_DEFINE must be honored.
27835 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27836 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
27837 # NAME is the cpp macro being defined, VALUE is the value it is being given.
27838 # PARAMS is the parameter list in the macro definition--in most cases, it's
27839 # just an empty string.
27840 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
27841 ac_dB='\\)[ (].*,\\1define\\2'
27842 ac_dC=' '
27843 ac_dD=' ,'
27845 uniq confdefs.h |
27846 sed -n '
27847 t rset
27848 :rset
27849 s/^[ ]*#[ ]*define[ ][ ]*//
27850 t ok
27853 s/[\\&,]/\\&/g
27854 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
27855 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
27856 ' >>conftest.defines
27858 # Remove the space that was appended to ease matching.
27859 # Then replace #undef with comments. This is necessary, for
27860 # example, in the case of _POSIX_SOURCE, which is predefined and required
27861 # on some systems where configure will not decide to define it.
27862 # (The regexp can be short, since the line contains either #define or #undef.)
27863 echo 's/ $//
27864 s,^[ #]*u.*,/* & */,' >>conftest.defines
27866 # Break up conftest.defines:
27867 ac_max_sed_lines=50
27869 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
27870 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
27871 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
27872 # et cetera.
27873 ac_in='$ac_file_inputs'
27874 ac_out='"$tmp/out1"'
27875 ac_nxt='"$tmp/out2"'
27877 while :
27879 # Write a here document:
27880 cat >>$CONFIG_STATUS <<_ACEOF
27881 # First, check the format of the line:
27882 cat >"\$tmp/defines.sed" <<\\CEOF
27883 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
27884 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
27886 :def
27887 _ACEOF
27888 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
27889 echo 'CEOF
27890 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
27891 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
27892 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
27893 grep . conftest.tail >/dev/null || break
27894 rm -f conftest.defines
27895 mv conftest.tail conftest.defines
27896 done
27897 rm -f conftest.defines conftest.tail
27899 echo "ac_result=$ac_in" >>$CONFIG_STATUS
27900 cat >>$CONFIG_STATUS <<\_ACEOF
27901 if test x"$ac_file" != x-; then
27902 echo "/* $configure_input */" >"$tmp/config.h"
27903 cat "$ac_result" >>"$tmp/config.h"
27904 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
27905 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27906 echo "$as_me: $ac_file is unchanged" >&6;}
27907 else
27908 rm -f $ac_file
27909 mv "$tmp/config.h" $ac_file
27911 else
27912 echo "/* $configure_input */"
27913 cat "$ac_result"
27915 rm -f "$tmp/out12"
27919 esac
27921 done # for ac_tag
27924 { (exit 0); exit 0; }
27925 _ACEOF
27926 chmod +x $CONFIG_STATUS
27927 ac_clean_files=$ac_clean_files_save
27930 # configure is writing to config.log, and then calls config.status.
27931 # config.status does its own redirection, appending to config.log.
27932 # Unfortunately, on DOS this fails, as config.log is still kept open
27933 # by configure, so config.status won't be able to write to it; its
27934 # output is simply discarded. So we exec the FD to /dev/null,
27935 # effectively closing config.log, so it can be properly (re)opened and
27936 # appended to by config.status. When coming back to configure, we
27937 # need to make the FD available again.
27938 if test "$no_create" != yes; then
27939 ac_cs_success=:
27940 ac_config_status_args=
27941 test "$silent" = yes &&
27942 ac_config_status_args="$ac_config_status_args --quiet"
27943 exec 5>/dev/null
27944 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27945 exec 5>>config.log
27946 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27947 # would make configure fail if this is the last instruction.
27948 $ac_cs_success || { (exit 1); exit 1; }
27952 echo "creating Modules/Setup"
27953 if test ! -f Modules/Setup
27954 then
27955 cp $srcdir/Modules/Setup.dist Modules/Setup
27958 echo "creating Modules/Setup.local"
27959 if test ! -f Modules/Setup.local
27960 then
27961 echo "# Edit this file for local setup changes" >Modules/Setup.local
27964 echo "creating Makefile"
27965 $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \
27966 -s Modules Modules/Setup.config \
27967 Modules/Setup.local Modules/Setup
27969 case $ac_sys_system in
27970 BeOS)
27971 { echo "$as_me:$LINENO: WARNING:
27973 Support for BeOS is deprecated as of Python 2.6.
27974 See PEP 11 for the gory details.
27975 " >&5
27976 echo "$as_me: WARNING:
27978 Support for BeOS is deprecated as of Python 2.6.
27979 See PEP 11 for the gory details.
27980 " >&2;}
27982 *) ;;
27983 esac
27985 mv config.c Modules