Add better error reporting for MemoryErrors caused by str->float conversions.
[python.git] / configure
blob7b9da8771083db294577a65e568852ea25c4c571
1 #! /bin/sh
2 # From configure.in Revision: 77193 .
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 LIPO_32BIT_FLAGS
662 PYTHONFRAMEWORK
663 PYTHONFRAMEWORKIDENTIFIER
664 PYTHONFRAMEWORKDIR
665 PYTHONFRAMEWORKPREFIX
666 PYTHONFRAMEWORKINSTALLDIR
667 FRAMEWORKINSTALLFIRST
668 FRAMEWORKINSTALLLAST
669 FRAMEWORKALTINSTALLFIRST
670 FRAMEWORKALTINSTALLLAST
671 FRAMEWORKUNIXTOOLSPREFIX
672 MACHDEP
673 SGI_ABI
674 EXTRAPLATDIR
675 EXTRAMACHDEPPATH
676 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
677 EXPORT_MACOSX_DEPLOYMENT_TARGET
679 CFLAGS
680 LDFLAGS
681 CPPFLAGS
682 ac_ct_CC
683 EXEEXT
684 OBJEXT
686 MAINCC
688 GREP
689 EGREP
690 BUILDEXEEXT
691 LIBRARY
692 LDLIBRARY
693 DLLLIBRARY
694 BLDLIBRARY
695 LDLIBRARYDIR
696 INSTSONAME
697 RUNSHARED
698 LINKCC
699 GNULD
700 RANLIB
702 ARFLAGS
703 SVNVERSION
704 INSTALL_PROGRAM
705 INSTALL_SCRIPT
706 INSTALL_DATA
709 BASECFLAGS
710 UNIVERSAL_ARCH_FLAGS
711 OTHER_LIBTOOL_OPT
712 LIBTOOL_CRUFT
714 LDSHARED
715 BLDSHARED
716 CCSHARED
717 LINKFORSHARED
718 CFLAGSFORSHARED
719 SHLIBS
720 PKG_CONFIG
721 LIBFFI_INCLUDEDIR
722 USE_SIGNAL_MODULE
723 SIGNAL_OBJS
724 USE_THREAD_MODULE
725 LDLAST
726 THREADOBJ
727 DLINCLDIR
728 DYNLOADFILE
729 MACHDEP_OBJS
730 TRUE
731 LIBOBJS
732 HAVE_GETHOSTBYNAME_R_6_ARG
733 HAVE_GETHOSTBYNAME_R_5_ARG
734 HAVE_GETHOSTBYNAME_R_3_ARG
735 HAVE_GETHOSTBYNAME_R
736 HAVE_GETHOSTBYNAME
737 LIBM
738 LIBC
739 UNICODE_OBJS
740 THREADHEADERS
741 SRCDIRS
742 LTLIBOBJS'
743 ac_subst_files=''
744 ac_precious_vars='build_alias
745 host_alias
746 target_alias
748 CFLAGS
749 LDFLAGS
750 LIBS
751 CPPFLAGS
752 CPP'
755 # Initialize some variables set by options.
756 ac_init_help=
757 ac_init_version=false
758 # The variables have the same names as the options, with
759 # dashes changed to underlines.
760 cache_file=/dev/null
761 exec_prefix=NONE
762 no_create=
763 no_recursion=
764 prefix=NONE
765 program_prefix=NONE
766 program_suffix=NONE
767 program_transform_name=s,x,x,
768 silent=
769 site=
770 srcdir=
771 verbose=
772 x_includes=NONE
773 x_libraries=NONE
775 # Installation directory options.
776 # These are left unexpanded so users can "make install exec_prefix=/foo"
777 # and all the variables that are supposed to be based on exec_prefix
778 # by default will actually change.
779 # Use braces instead of parens because sh, perl, etc. also accept them.
780 # (The list follows the same order as the GNU Coding Standards.)
781 bindir='${exec_prefix}/bin'
782 sbindir='${exec_prefix}/sbin'
783 libexecdir='${exec_prefix}/libexec'
784 datarootdir='${prefix}/share'
785 datadir='${datarootdir}'
786 sysconfdir='${prefix}/etc'
787 sharedstatedir='${prefix}/com'
788 localstatedir='${prefix}/var'
789 includedir='${prefix}/include'
790 oldincludedir='/usr/include'
791 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
792 infodir='${datarootdir}/info'
793 htmldir='${docdir}'
794 dvidir='${docdir}'
795 pdfdir='${docdir}'
796 psdir='${docdir}'
797 libdir='${exec_prefix}/lib'
798 localedir='${datarootdir}/locale'
799 mandir='${datarootdir}/man'
801 ac_prev=
802 ac_dashdash=
803 for ac_option
805 # If the previous option needs an argument, assign it.
806 if test -n "$ac_prev"; then
807 eval $ac_prev=\$ac_option
808 ac_prev=
809 continue
812 case $ac_option in
813 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
814 *) ac_optarg=yes ;;
815 esac
817 # Accept the important Cygnus configure options, so we can diagnose typos.
819 case $ac_dashdash$ac_option in
821 ac_dashdash=yes ;;
823 -bindir | --bindir | --bindi | --bind | --bin | --bi)
824 ac_prev=bindir ;;
825 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
826 bindir=$ac_optarg ;;
828 -build | --build | --buil | --bui | --bu)
829 ac_prev=build_alias ;;
830 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
831 build_alias=$ac_optarg ;;
833 -cache-file | --cache-file | --cache-fil | --cache-fi \
834 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
835 ac_prev=cache_file ;;
836 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
837 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
838 cache_file=$ac_optarg ;;
840 --config-cache | -C)
841 cache_file=config.cache ;;
843 -datadir | --datadir | --datadi | --datad)
844 ac_prev=datadir ;;
845 -datadir=* | --datadir=* | --datadi=* | --datad=*)
846 datadir=$ac_optarg ;;
848 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
849 | --dataroo | --dataro | --datar)
850 ac_prev=datarootdir ;;
851 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
852 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
853 datarootdir=$ac_optarg ;;
855 -disable-* | --disable-*)
856 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
857 # Reject names that are not valid shell variable names.
858 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
859 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
860 { (exit 1); exit 1; }; }
861 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
862 eval enable_$ac_feature=no ;;
864 -docdir | --docdir | --docdi | --doc | --do)
865 ac_prev=docdir ;;
866 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
867 docdir=$ac_optarg ;;
869 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
870 ac_prev=dvidir ;;
871 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
872 dvidir=$ac_optarg ;;
874 -enable-* | --enable-*)
875 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
876 # Reject names that are not valid shell variable names.
877 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
878 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
879 { (exit 1); exit 1; }; }
880 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
881 eval enable_$ac_feature=\$ac_optarg ;;
883 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
884 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
885 | --exec | --exe | --ex)
886 ac_prev=exec_prefix ;;
887 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
888 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
889 | --exec=* | --exe=* | --ex=*)
890 exec_prefix=$ac_optarg ;;
892 -gas | --gas | --ga | --g)
893 # Obsolete; use --with-gas.
894 with_gas=yes ;;
896 -help | --help | --hel | --he | -h)
897 ac_init_help=long ;;
898 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
899 ac_init_help=recursive ;;
900 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
901 ac_init_help=short ;;
903 -host | --host | --hos | --ho)
904 ac_prev=host_alias ;;
905 -host=* | --host=* | --hos=* | --ho=*)
906 host_alias=$ac_optarg ;;
908 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
909 ac_prev=htmldir ;;
910 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
911 | --ht=*)
912 htmldir=$ac_optarg ;;
914 -includedir | --includedir | --includedi | --included | --include \
915 | --includ | --inclu | --incl | --inc)
916 ac_prev=includedir ;;
917 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
918 | --includ=* | --inclu=* | --incl=* | --inc=*)
919 includedir=$ac_optarg ;;
921 -infodir | --infodir | --infodi | --infod | --info | --inf)
922 ac_prev=infodir ;;
923 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
924 infodir=$ac_optarg ;;
926 -libdir | --libdir | --libdi | --libd)
927 ac_prev=libdir ;;
928 -libdir=* | --libdir=* | --libdi=* | --libd=*)
929 libdir=$ac_optarg ;;
931 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
932 | --libexe | --libex | --libe)
933 ac_prev=libexecdir ;;
934 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
935 | --libexe=* | --libex=* | --libe=*)
936 libexecdir=$ac_optarg ;;
938 -localedir | --localedir | --localedi | --localed | --locale)
939 ac_prev=localedir ;;
940 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
941 localedir=$ac_optarg ;;
943 -localstatedir | --localstatedir | --localstatedi | --localstated \
944 | --localstate | --localstat | --localsta | --localst | --locals)
945 ac_prev=localstatedir ;;
946 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
947 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
948 localstatedir=$ac_optarg ;;
950 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
951 ac_prev=mandir ;;
952 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
953 mandir=$ac_optarg ;;
955 -nfp | --nfp | --nf)
956 # Obsolete; use --without-fp.
957 with_fp=no ;;
959 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
960 | --no-cr | --no-c | -n)
961 no_create=yes ;;
963 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
964 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
965 no_recursion=yes ;;
967 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
968 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
969 | --oldin | --oldi | --old | --ol | --o)
970 ac_prev=oldincludedir ;;
971 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
972 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
973 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
974 oldincludedir=$ac_optarg ;;
976 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
977 ac_prev=prefix ;;
978 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
979 prefix=$ac_optarg ;;
981 -program-prefix | --program-prefix | --program-prefi | --program-pref \
982 | --program-pre | --program-pr | --program-p)
983 ac_prev=program_prefix ;;
984 -program-prefix=* | --program-prefix=* | --program-prefi=* \
985 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
986 program_prefix=$ac_optarg ;;
988 -program-suffix | --program-suffix | --program-suffi | --program-suff \
989 | --program-suf | --program-su | --program-s)
990 ac_prev=program_suffix ;;
991 -program-suffix=* | --program-suffix=* | --program-suffi=* \
992 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
993 program_suffix=$ac_optarg ;;
995 -program-transform-name | --program-transform-name \
996 | --program-transform-nam | --program-transform-na \
997 | --program-transform-n | --program-transform- \
998 | --program-transform | --program-transfor \
999 | --program-transfo | --program-transf \
1000 | --program-trans | --program-tran \
1001 | --progr-tra | --program-tr | --program-t)
1002 ac_prev=program_transform_name ;;
1003 -program-transform-name=* | --program-transform-name=* \
1004 | --program-transform-nam=* | --program-transform-na=* \
1005 | --program-transform-n=* | --program-transform-=* \
1006 | --program-transform=* | --program-transfor=* \
1007 | --program-transfo=* | --program-transf=* \
1008 | --program-trans=* | --program-tran=* \
1009 | --progr-tra=* | --program-tr=* | --program-t=*)
1010 program_transform_name=$ac_optarg ;;
1012 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1013 ac_prev=pdfdir ;;
1014 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1015 pdfdir=$ac_optarg ;;
1017 -psdir | --psdir | --psdi | --psd | --ps)
1018 ac_prev=psdir ;;
1019 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1020 psdir=$ac_optarg ;;
1022 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1023 | -silent | --silent | --silen | --sile | --sil)
1024 silent=yes ;;
1026 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1027 ac_prev=sbindir ;;
1028 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1029 | --sbi=* | --sb=*)
1030 sbindir=$ac_optarg ;;
1032 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1033 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1034 | --sharedst | --shareds | --shared | --share | --shar \
1035 | --sha | --sh)
1036 ac_prev=sharedstatedir ;;
1037 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1038 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1039 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1040 | --sha=* | --sh=*)
1041 sharedstatedir=$ac_optarg ;;
1043 -site | --site | --sit)
1044 ac_prev=site ;;
1045 -site=* | --site=* | --sit=*)
1046 site=$ac_optarg ;;
1048 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1049 ac_prev=srcdir ;;
1050 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1051 srcdir=$ac_optarg ;;
1053 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1054 | --syscon | --sysco | --sysc | --sys | --sy)
1055 ac_prev=sysconfdir ;;
1056 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1057 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1058 sysconfdir=$ac_optarg ;;
1060 -target | --target | --targe | --targ | --tar | --ta | --t)
1061 ac_prev=target_alias ;;
1062 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1063 target_alias=$ac_optarg ;;
1065 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1066 verbose=yes ;;
1068 -version | --version | --versio | --versi | --vers | -V)
1069 ac_init_version=: ;;
1071 -with-* | --with-*)
1072 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1073 # Reject names that are not valid shell variable names.
1074 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1075 { echo "$as_me: error: invalid package name: $ac_package" >&2
1076 { (exit 1); exit 1; }; }
1077 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1078 eval with_$ac_package=\$ac_optarg ;;
1080 -without-* | --without-*)
1081 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1082 # Reject names that are not valid shell variable names.
1083 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1084 { echo "$as_me: error: invalid package name: $ac_package" >&2
1085 { (exit 1); exit 1; }; }
1086 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1087 eval with_$ac_package=no ;;
1089 --x)
1090 # Obsolete; use --with-x.
1091 with_x=yes ;;
1093 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1094 | --x-incl | --x-inc | --x-in | --x-i)
1095 ac_prev=x_includes ;;
1096 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1097 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1098 x_includes=$ac_optarg ;;
1100 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1101 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1102 ac_prev=x_libraries ;;
1103 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1104 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1105 x_libraries=$ac_optarg ;;
1107 -*) { echo "$as_me: error: unrecognized option: $ac_option
1108 Try \`$0 --help' for more information." >&2
1109 { (exit 1); exit 1; }; }
1112 *=*)
1113 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1114 # Reject names that are not valid shell variable names.
1115 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1116 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1117 { (exit 1); exit 1; }; }
1118 eval $ac_envvar=\$ac_optarg
1119 export $ac_envvar ;;
1122 # FIXME: should be removed in autoconf 3.0.
1123 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1124 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1125 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1126 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1129 esac
1130 done
1132 if test -n "$ac_prev"; then
1133 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1134 { echo "$as_me: error: missing argument to $ac_option" >&2
1135 { (exit 1); exit 1; }; }
1138 # Be sure to have absolute directory names.
1139 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1140 datadir sysconfdir sharedstatedir localstatedir includedir \
1141 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1142 libdir localedir mandir
1144 eval ac_val=\$$ac_var
1145 case $ac_val in
1146 [\\/$]* | ?:[\\/]* ) continue;;
1147 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1148 esac
1149 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1150 { (exit 1); exit 1; }; }
1151 done
1153 # There might be people who depend on the old broken behavior: `$host'
1154 # used to hold the argument of --host etc.
1155 # FIXME: To remove some day.
1156 build=$build_alias
1157 host=$host_alias
1158 target=$target_alias
1160 # FIXME: To remove some day.
1161 if test "x$host_alias" != x; then
1162 if test "x$build_alias" = x; then
1163 cross_compiling=maybe
1164 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1165 If a cross compiler is detected then cross compile mode will be used." >&2
1166 elif test "x$build_alias" != "x$host_alias"; then
1167 cross_compiling=yes
1171 ac_tool_prefix=
1172 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1174 test "$silent" = yes && exec 6>/dev/null
1177 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1178 ac_ls_di=`ls -di .` &&
1179 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1180 { echo "$as_me: error: Working directory cannot be determined" >&2
1181 { (exit 1); exit 1; }; }
1182 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1183 { echo "$as_me: error: pwd does not report name of working directory" >&2
1184 { (exit 1); exit 1; }; }
1187 # Find the source files, if location was not specified.
1188 if test -z "$srcdir"; then
1189 ac_srcdir_defaulted=yes
1190 # Try the directory containing this script, then the parent directory.
1191 ac_confdir=`$as_dirname -- "$0" ||
1192 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1193 X"$0" : 'X\(//\)[^/]' \| \
1194 X"$0" : 'X\(//\)$' \| \
1195 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1196 echo X"$0" |
1197 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1198 s//\1/
1201 /^X\(\/\/\)[^/].*/{
1202 s//\1/
1205 /^X\(\/\/\)$/{
1206 s//\1/
1209 /^X\(\/\).*/{
1210 s//\1/
1213 s/.*/./; q'`
1214 srcdir=$ac_confdir
1215 if test ! -r "$srcdir/$ac_unique_file"; then
1216 srcdir=..
1218 else
1219 ac_srcdir_defaulted=no
1221 if test ! -r "$srcdir/$ac_unique_file"; then
1222 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1223 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1224 { (exit 1); exit 1; }; }
1226 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1227 ac_abs_confdir=`(
1228 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1229 { (exit 1); exit 1; }; }
1230 pwd)`
1231 # When building in place, set srcdir=.
1232 if test "$ac_abs_confdir" = "$ac_pwd"; then
1233 srcdir=.
1235 # Remove unnecessary trailing slashes from srcdir.
1236 # Double slashes in file names in object file debugging info
1237 # mess up M-x gdb in Emacs.
1238 case $srcdir in
1239 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1240 esac
1241 for ac_var in $ac_precious_vars; do
1242 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1243 eval ac_env_${ac_var}_value=\$${ac_var}
1244 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1245 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1246 done
1249 # Report the --help message.
1251 if test "$ac_init_help" = "long"; then
1252 # Omit some internal or obsolete options to make the list less imposing.
1253 # This message is too long to be a string in the A/UX 3.1 sh.
1254 cat <<_ACEOF
1255 \`configure' configures python 2.7 to adapt to many kinds of systems.
1257 Usage: $0 [OPTION]... [VAR=VALUE]...
1259 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1260 VAR=VALUE. See below for descriptions of some of the useful variables.
1262 Defaults for the options are specified in brackets.
1264 Configuration:
1265 -h, --help display this help and exit
1266 --help=short display options specific to this package
1267 --help=recursive display the short help of all the included packages
1268 -V, --version display version information and exit
1269 -q, --quiet, --silent do not print \`checking...' messages
1270 --cache-file=FILE cache test results in FILE [disabled]
1271 -C, --config-cache alias for \`--cache-file=config.cache'
1272 -n, --no-create do not create output files
1273 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1275 Installation directories:
1276 --prefix=PREFIX install architecture-independent files in PREFIX
1277 [$ac_default_prefix]
1278 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1279 [PREFIX]
1281 By default, \`make install' will install all the files in
1282 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1283 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1284 for instance \`--prefix=\$HOME'.
1286 For better control, use the options below.
1288 Fine tuning of the installation directories:
1289 --bindir=DIR user executables [EPREFIX/bin]
1290 --sbindir=DIR system admin executables [EPREFIX/sbin]
1291 --libexecdir=DIR program executables [EPREFIX/libexec]
1292 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1293 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1294 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1295 --libdir=DIR object code libraries [EPREFIX/lib]
1296 --includedir=DIR C header files [PREFIX/include]
1297 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1298 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1299 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1300 --infodir=DIR info documentation [DATAROOTDIR/info]
1301 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1302 --mandir=DIR man documentation [DATAROOTDIR/man]
1303 --docdir=DIR documentation root [DATAROOTDIR/doc/python]
1304 --htmldir=DIR html documentation [DOCDIR]
1305 --dvidir=DIR dvi documentation [DOCDIR]
1306 --pdfdir=DIR pdf documentation [DOCDIR]
1307 --psdir=DIR ps documentation [DOCDIR]
1308 _ACEOF
1310 cat <<\_ACEOF
1311 _ACEOF
1314 if test -n "$ac_init_help"; then
1315 case $ac_init_help in
1316 short | recursive ) echo "Configuration of python 2.7:";;
1317 esac
1318 cat <<\_ACEOF
1320 Optional Features:
1321 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1322 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1323 --enable-universalsdk[=SDKDIR]
1324 Build against Mac OS X 10.4u SDK (ppc/i386)
1325 --enable-framework[=INSTALLDIR]
1326 Build (MacOSX|Darwin) framework
1327 --enable-shared disable/enable building shared python library
1328 --enable-profiling enable C-level code profiling
1329 --enable-toolbox-glue disable/enable MacOSX glue code for extensions
1330 --enable-ipv6 Enable ipv6 (with ipv4) support
1331 --disable-ipv6 Disable ipv6 support
1332 --enable-big-digits[=BITS]
1333 use big digits for Python longs [BITS=30]
1334 --enable-unicode[=ucs[24]]
1335 Enable Unicode strings (default is yes)
1337 Optional Packages:
1338 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1339 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1340 --with-universal-archs=ARCH
1341 select architectures for universal build ("32-bit",
1342 "64-bit", "3-way", "intel" or "all")
1343 --with-framework-name=FRAMEWORK
1344 specify an alternate name of the framework built
1345 with --enable-framework
1346 --without-gcc never use gcc
1347 --with-cxx-main=<compiler>
1348 compile main() and link python executable with C++
1349 compiler
1350 --with-suffix=.exe set executable suffix
1351 --with-pydebug build with Py_DEBUG defined
1352 --with-libs='lib1 ...' link against additional libs
1353 --with-system-expat build pyexpat module using an installed expat
1354 library
1355 --with-system-ffi build _ctypes module using an installed ffi library
1356 --with-dbmliborder=db1:db2:...
1357 order to check db backends for dbm. Valid value is a
1358 colon separated string with the backend names
1359 `ndbm', `gdbm' and `bdb'.
1360 --with-signal-module disable/enable signal module
1361 --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries
1362 --with(out)-threads[=DIRECTORY]
1363 disable/enable thread support
1364 --with(out)-thread[=DIRECTORY]
1365 deprecated; use --with(out)-threads
1366 --with-pth use GNU pth threading libraries
1367 --with(out)-doc-strings disable/enable documentation strings
1368 --with(out)-tsc enable/disable timestamp counter profile
1369 --with(out)-pymalloc disable/enable specialized mallocs
1370 --with-valgrind Enable Valgrind support
1371 --with-wctype-functions use wctype.h functions
1372 --with-fpectl enable SIGFPE catching
1373 --with-libm=STRING math library
1374 --with-libc=STRING C library
1376 Some influential environment variables:
1377 CC C compiler command
1378 CFLAGS C compiler flags
1379 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1380 nonstandard directory <lib dir>
1381 LIBS libraries to pass to the linker, e.g. -l<library>
1382 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1383 you have headers in a nonstandard directory <include dir>
1384 CPP C preprocessor
1386 Use these variables to override the choices made by `configure' or to help
1387 it to find libraries and programs with nonstandard names/locations.
1389 Report bugs to <http://bugs.python.org/>.
1390 _ACEOF
1391 ac_status=$?
1394 if test "$ac_init_help" = "recursive"; then
1395 # If there are subdirs, report their specific --help.
1396 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1397 test -d "$ac_dir" || continue
1398 ac_builddir=.
1400 case "$ac_dir" in
1401 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1403 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1404 # A ".." for each directory in $ac_dir_suffix.
1405 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1406 case $ac_top_builddir_sub in
1407 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1408 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1409 esac ;;
1410 esac
1411 ac_abs_top_builddir=$ac_pwd
1412 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1413 # for backward compatibility:
1414 ac_top_builddir=$ac_top_build_prefix
1416 case $srcdir in
1417 .) # We are building in place.
1418 ac_srcdir=.
1419 ac_top_srcdir=$ac_top_builddir_sub
1420 ac_abs_top_srcdir=$ac_pwd ;;
1421 [\\/]* | ?:[\\/]* ) # Absolute name.
1422 ac_srcdir=$srcdir$ac_dir_suffix;
1423 ac_top_srcdir=$srcdir
1424 ac_abs_top_srcdir=$srcdir ;;
1425 *) # Relative name.
1426 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1427 ac_top_srcdir=$ac_top_build_prefix$srcdir
1428 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1429 esac
1430 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1432 cd "$ac_dir" || { ac_status=$?; continue; }
1433 # Check for guested configure.
1434 if test -f "$ac_srcdir/configure.gnu"; then
1435 echo &&
1436 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1437 elif test -f "$ac_srcdir/configure"; then
1438 echo &&
1439 $SHELL "$ac_srcdir/configure" --help=recursive
1440 else
1441 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1442 fi || ac_status=$?
1443 cd "$ac_pwd" || { ac_status=$?; break; }
1444 done
1447 test -n "$ac_init_help" && exit $ac_status
1448 if $ac_init_version; then
1449 cat <<\_ACEOF
1450 python configure 2.7
1451 generated by GNU Autoconf 2.61
1453 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1454 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1455 This configure script is free software; the Free Software Foundation
1456 gives unlimited permission to copy, distribute and modify it.
1457 _ACEOF
1458 exit
1460 cat >config.log <<_ACEOF
1461 This file contains any messages produced by compilers while
1462 running configure, to aid debugging if configure makes a mistake.
1464 It was created by python $as_me 2.7, which was
1465 generated by GNU Autoconf 2.61. Invocation command line was
1467 $ $0 $@
1469 _ACEOF
1470 exec 5>>config.log
1472 cat <<_ASUNAME
1473 ## --------- ##
1474 ## Platform. ##
1475 ## --------- ##
1477 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1478 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1479 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1480 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1481 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1483 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1484 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1486 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1487 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1488 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1489 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1490 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1491 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1492 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1494 _ASUNAME
1496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1497 for as_dir in $PATH
1499 IFS=$as_save_IFS
1500 test -z "$as_dir" && as_dir=.
1501 echo "PATH: $as_dir"
1502 done
1503 IFS=$as_save_IFS
1505 } >&5
1507 cat >&5 <<_ACEOF
1510 ## ----------- ##
1511 ## Core tests. ##
1512 ## ----------- ##
1514 _ACEOF
1517 # Keep a trace of the command line.
1518 # Strip out --no-create and --no-recursion so they do not pile up.
1519 # Strip out --silent because we don't want to record it for future runs.
1520 # Also quote any args containing shell meta-characters.
1521 # Make two passes to allow for proper duplicate-argument suppression.
1522 ac_configure_args=
1523 ac_configure_args0=
1524 ac_configure_args1=
1525 ac_must_keep_next=false
1526 for ac_pass in 1 2
1528 for ac_arg
1530 case $ac_arg in
1531 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1532 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1533 | -silent | --silent | --silen | --sile | --sil)
1534 continue ;;
1535 *\'*)
1536 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1537 esac
1538 case $ac_pass in
1539 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1541 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1542 if test $ac_must_keep_next = true; then
1543 ac_must_keep_next=false # Got value, back to normal.
1544 else
1545 case $ac_arg in
1546 *=* | --config-cache | -C | -disable-* | --disable-* \
1547 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1548 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1549 | -with-* | --with-* | -without-* | --without-* | --x)
1550 case "$ac_configure_args0 " in
1551 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1552 esac
1554 -* ) ac_must_keep_next=true ;;
1555 esac
1557 ac_configure_args="$ac_configure_args '$ac_arg'"
1559 esac
1560 done
1561 done
1562 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1563 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1565 # When interrupted or exit'd, cleanup temporary files, and complete
1566 # config.log. We remove comments because anyway the quotes in there
1567 # would cause problems or look ugly.
1568 # WARNING: Use '\'' to represent an apostrophe within the trap.
1569 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1570 trap 'exit_status=$?
1571 # Save into config.log some information that might help in debugging.
1573 echo
1575 cat <<\_ASBOX
1576 ## ---------------- ##
1577 ## Cache variables. ##
1578 ## ---------------- ##
1579 _ASBOX
1580 echo
1581 # The following way of writing the cache mishandles newlines in values,
1583 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1584 eval ac_val=\$$ac_var
1585 case $ac_val in #(
1586 *${as_nl}*)
1587 case $ac_var in #(
1588 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1589 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1590 esac
1591 case $ac_var in #(
1592 _ | IFS | as_nl) ;; #(
1593 *) $as_unset $ac_var ;;
1594 esac ;;
1595 esac
1596 done
1597 (set) 2>&1 |
1598 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1599 *${as_nl}ac_space=\ *)
1600 sed -n \
1601 "s/'\''/'\''\\\\'\'''\''/g;
1602 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1603 ;; #(
1605 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1607 esac |
1608 sort
1610 echo
1612 cat <<\_ASBOX
1613 ## ----------------- ##
1614 ## Output variables. ##
1615 ## ----------------- ##
1616 _ASBOX
1617 echo
1618 for ac_var in $ac_subst_vars
1620 eval ac_val=\$$ac_var
1621 case $ac_val in
1622 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1623 esac
1624 echo "$ac_var='\''$ac_val'\''"
1625 done | sort
1626 echo
1628 if test -n "$ac_subst_files"; then
1629 cat <<\_ASBOX
1630 ## ------------------- ##
1631 ## File substitutions. ##
1632 ## ------------------- ##
1633 _ASBOX
1634 echo
1635 for ac_var in $ac_subst_files
1637 eval ac_val=\$$ac_var
1638 case $ac_val in
1639 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1640 esac
1641 echo "$ac_var='\''$ac_val'\''"
1642 done | sort
1643 echo
1646 if test -s confdefs.h; then
1647 cat <<\_ASBOX
1648 ## ----------- ##
1649 ## confdefs.h. ##
1650 ## ----------- ##
1651 _ASBOX
1652 echo
1653 cat confdefs.h
1654 echo
1656 test "$ac_signal" != 0 &&
1657 echo "$as_me: caught signal $ac_signal"
1658 echo "$as_me: exit $exit_status"
1659 } >&5
1660 rm -f core *.core core.conftest.* &&
1661 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1662 exit $exit_status
1664 for ac_signal in 1 2 13 15; do
1665 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1666 done
1667 ac_signal=0
1669 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1670 rm -f -r conftest* confdefs.h
1672 # Predefined preprocessor variables.
1674 cat >>confdefs.h <<_ACEOF
1675 #define PACKAGE_NAME "$PACKAGE_NAME"
1676 _ACEOF
1679 cat >>confdefs.h <<_ACEOF
1680 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1681 _ACEOF
1684 cat >>confdefs.h <<_ACEOF
1685 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1686 _ACEOF
1689 cat >>confdefs.h <<_ACEOF
1690 #define PACKAGE_STRING "$PACKAGE_STRING"
1691 _ACEOF
1694 cat >>confdefs.h <<_ACEOF
1695 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1696 _ACEOF
1699 # Let the site file select an alternate cache file if it wants to.
1700 # Prefer explicitly selected file to automatically selected ones.
1701 if test -n "$CONFIG_SITE"; then
1702 set x "$CONFIG_SITE"
1703 elif test "x$prefix" != xNONE; then
1704 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1705 else
1706 set x "$ac_default_prefix/share/config.site" \
1707 "$ac_default_prefix/etc/config.site"
1709 shift
1710 for ac_site_file
1712 if test -r "$ac_site_file"; then
1713 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1714 echo "$as_me: loading site script $ac_site_file" >&6;}
1715 sed 's/^/| /' "$ac_site_file" >&5
1716 . "$ac_site_file"
1718 done
1720 if test -r "$cache_file"; then
1721 # Some versions of bash will fail to source /dev/null (special
1722 # files actually), so we avoid doing that.
1723 if test -f "$cache_file"; then
1724 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1725 echo "$as_me: loading cache $cache_file" >&6;}
1726 case $cache_file in
1727 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1728 *) . "./$cache_file";;
1729 esac
1731 else
1732 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1733 echo "$as_me: creating cache $cache_file" >&6;}
1734 >$cache_file
1737 # Check that the precious variables saved in the cache have kept the same
1738 # value.
1739 ac_cache_corrupted=false
1740 for ac_var in $ac_precious_vars; do
1741 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1742 eval ac_new_set=\$ac_env_${ac_var}_set
1743 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1744 eval ac_new_val=\$ac_env_${ac_var}_value
1745 case $ac_old_set,$ac_new_set in
1746 set,)
1747 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1748 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1749 ac_cache_corrupted=: ;;
1750 ,set)
1751 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1752 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1753 ac_cache_corrupted=: ;;
1754 ,);;
1756 if test "x$ac_old_val" != "x$ac_new_val"; then
1757 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1758 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1759 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1760 echo "$as_me: former value: $ac_old_val" >&2;}
1761 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1762 echo "$as_me: current value: $ac_new_val" >&2;}
1763 ac_cache_corrupted=:
1764 fi;;
1765 esac
1766 # Pass precious variables to config.status.
1767 if test "$ac_new_set" = set; then
1768 case $ac_new_val in
1769 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1770 *) ac_arg=$ac_var=$ac_new_val ;;
1771 esac
1772 case " $ac_configure_args " in
1773 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1774 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1775 esac
1777 done
1778 if $ac_cache_corrupted; then
1779 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1780 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1781 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1782 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1783 { (exit 1); exit 1; }; }
1810 ac_ext=c
1811 ac_cpp='$CPP $CPPFLAGS'
1812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1818 ac_config_headers="$ac_config_headers pyconfig.h"
1822 if test "$prefix" != "/"; then
1823 prefix=`echo "$prefix" | sed -e 's/\/$//g'`
1831 # We don't use PACKAGE_ variables, and they cause conflicts
1832 # with other autoconf-based packages that include Python.h
1833 grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new
1834 rm confdefs.h
1835 mv confdefs.h.new confdefs.h
1838 VERSION=2.7
1841 SOVERSION=1.0
1843 # The later defininition of _XOPEN_SOURCE disables certain features
1844 # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
1846 cat >>confdefs.h <<\_ACEOF
1847 #define _GNU_SOURCE 1
1848 _ACEOF
1851 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1852 # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
1853 # them.
1855 cat >>confdefs.h <<\_ACEOF
1856 #define _NETBSD_SOURCE 1
1857 _ACEOF
1860 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1861 # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
1862 # them.
1864 cat >>confdefs.h <<\_ACEOF
1865 #define __BSD_VISIBLE 1
1866 _ACEOF
1869 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1870 # u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
1872 cat >>confdefs.h <<\_ACEOF
1873 #define _BSD_TYPES 1
1874 _ACEOF
1877 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1878 # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable
1879 # them.
1881 cat >>confdefs.h <<\_ACEOF
1882 #define _DARWIN_C_SOURCE 1
1883 _ACEOF
1887 define_xopen_source=yes
1889 # Arguments passed to configure.
1891 CONFIG_ARGS="$ac_configure_args"
1893 # Check whether --enable-universalsdk was given.
1894 if test "${enable_universalsdk+set}" = set; then
1895 enableval=$enable_universalsdk;
1896 case $enableval in
1897 yes)
1898 enableval=/Developer/SDKs/MacOSX10.4u.sdk
1900 esac
1901 case $enableval in
1903 UNIVERSALSDK=
1904 enable_universalsdk=
1907 UNIVERSALSDK=$enableval
1909 esac
1911 else
1913 UNIVERSALSDK=
1914 enable_universalsdk=
1922 UNIVERSAL_ARCHS="32-bit"
1924 { echo "$as_me:$LINENO: checking for --with-universal-archs" >&5
1925 echo $ECHO_N "checking for --with-universal-archs... $ECHO_C" >&6; }
1927 # Check whether --with-universal-archs was given.
1928 if test "${with_universal_archs+set}" = set; then
1929 withval=$with_universal_archs;
1930 { echo "$as_me:$LINENO: result: $withval" >&5
1931 echo "${ECHO_T}$withval" >&6; }
1932 UNIVERSAL_ARCHS="$withval"
1933 if test "${enable_universalsdk}" ; then
1935 else
1936 { { echo "$as_me:$LINENO: error: --with-universal-archs without --enable-universalsdk. See Mac/README" >&5
1937 echo "$as_me: error: --with-universal-archs without --enable-universalsdk. See Mac/README" >&2;}
1938 { (exit 1); exit 1; }; }
1941 else
1943 { echo "$as_me:$LINENO: result: 32-bit" >&5
1944 echo "${ECHO_T}32-bit" >&6; }
1952 # Check whether --with-framework-name was given.
1953 if test "${with_framework_name+set}" = set; then
1954 withval=$with_framework_name;
1955 if test "${enable_framework}"; then
1957 else
1958 { { echo "$as_me:$LINENO: error: --with-framework-name without --enable-framework. See Mac/README" >&5
1959 echo "$as_me: error: --with-framework-name without --enable-framework. See Mac/README" >&2;}
1960 { (exit 1); exit 1; }; }
1962 PYTHONFRAMEWORK=${withval}
1963 PYTHONFRAMEWORKDIR=${withval}.framework
1964 PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'`
1966 else
1968 PYTHONFRAMEWORK=Python
1969 PYTHONFRAMEWORKDIR=Python.framework
1970 PYTHONFRAMEWORKIDENTIFIER=org.python.python
1974 # Check whether --enable-framework was given.
1975 if test "${enable_framework+set}" = set; then
1976 enableval=$enable_framework;
1977 case $enableval in
1978 yes)
1979 enableval=/Library/Frameworks
1980 esac
1981 case $enableval in
1983 PYTHONFRAMEWORK=
1984 PYTHONFRAMEWORKDIR=no-framework
1985 PYTHONFRAMEWORKPREFIX=
1986 PYTHONFRAMEWORKINSTALLDIR=
1987 FRAMEWORKINSTALLFIRST=
1988 FRAMEWORKINSTALLLAST=
1989 FRAMEWORKALTINSTALLFIRST=
1990 FRAMEWORKALTINSTALLLAST=
1991 if test "x${prefix}" = "xNONE"; then
1992 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1993 else
1994 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1996 enable_framework=
1999 PYTHONFRAMEWORKPREFIX=$enableval
2000 PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
2001 FRAMEWORKINSTALLFIRST="frameworkinstallstructure"
2002 FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure bininstall maninstall"
2003 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools"
2004 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools"
2006 if test "x${prefix}" = "xNONE" ; then
2007 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
2008 else
2009 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
2011 prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
2013 # Add files for Mac specific code to the list of output
2014 # files:
2015 ac_config_files="$ac_config_files Mac/Makefile"
2017 ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile"
2019 ac_config_files="$ac_config_files Mac/IDLE/Makefile"
2021 ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist"
2023 ac_config_files="$ac_config_files Mac/Resources/app/Info.plist"
2025 esac
2027 else
2029 PYTHONFRAMEWORK=
2030 PYTHONFRAMEWORKDIR=no-framework
2031 PYTHONFRAMEWORKPREFIX=
2032 PYTHONFRAMEWORKINSTALLDIR=
2033 FRAMEWORKINSTALLFIRST=
2034 FRAMEWORKINSTALLLAST=
2035 FRAMEWORKALTINSTALLFIRST=
2036 FRAMEWORKALTINSTALLLAST=
2037 if test "x${prefix}" = "xNONE" ; then
2038 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
2039 else
2040 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
2042 enable_framework=
2058 ##AC_ARG_WITH(dyld,
2059 ## AC_HELP_STRING(--with-dyld,
2060 ## Use (OpenStep|Rhapsody) dynamic linker))
2062 # Set name for machine-dependent library files
2064 { echo "$as_me:$LINENO: checking MACHDEP" >&5
2065 echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6; }
2066 if test -z "$MACHDEP"
2067 then
2068 ac_sys_system=`uname -s`
2069 if test "$ac_sys_system" = "AIX" \
2070 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
2071 ac_sys_release=`uname -v`
2072 else
2073 ac_sys_release=`uname -r`
2075 ac_md_system=`echo $ac_sys_system |
2076 tr -d '/ ' | tr '[A-Z]' '[a-z]'`
2077 ac_md_release=`echo $ac_sys_release |
2078 tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'`
2079 MACHDEP="$ac_md_system$ac_md_release"
2081 case $MACHDEP in
2082 cygwin*) MACHDEP="cygwin";;
2083 darwin*) MACHDEP="darwin";;
2084 atheos*) MACHDEP="atheos";;
2085 irix646) MACHDEP="irix6";;
2086 '') MACHDEP="unknown";;
2087 esac
2090 # Some systems cannot stand _XOPEN_SOURCE being defined at all; they
2091 # disable features if it is defined, without any means to access these
2092 # features as extensions. For these systems, we skip the definition of
2093 # _XOPEN_SOURCE. Before adding a system to the list to gain access to
2094 # some feature, make sure there is no alternative way to access this
2095 # feature. Also, when using wildcards, make sure you have verified the
2096 # need for not defining _XOPEN_SOURCE on all systems matching the
2097 # wildcard, and that the wildcard does not include future systems
2098 # (which may remove their limitations).
2099 case $ac_sys_system/$ac_sys_release in
2100 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
2101 # even though select is a POSIX function. Reported by J. Ribbens.
2102 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
2103 OpenBSD/2.* | OpenBSD/3.[0123456789] | OpenBSD/4.[0123])
2104 define_xopen_source=no
2105 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
2106 # also defined. This can be overridden by defining _BSD_SOURCE
2107 # As this has a different meaning on Linux, only define it on OpenBSD
2109 cat >>confdefs.h <<\_ACEOF
2110 #define _BSD_SOURCE 1
2111 _ACEOF
2114 # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of
2115 # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by
2116 # Marc Recht
2117 NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6[A-S])
2118 define_xopen_source=no;;
2119 # On Solaris 2.6, sys/wait.h is inconsistent in the usage
2120 # of union __?sigval. Reported by Stuart Bishop.
2121 SunOS/5.6)
2122 define_xopen_source=no;;
2123 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
2124 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
2125 # Reconfirmed for 7.1.4 by Martin v. Loewis.
2126 OpenUNIX/8.0.0| UnixWare/7.1.[0-4])
2127 define_xopen_source=no;;
2128 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
2129 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
2130 SCO_SV/3.2)
2131 define_xopen_source=no;;
2132 # On FreeBSD 4, the math functions C89 does not cover are never defined
2133 # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them.
2134 FreeBSD/4.*)
2135 define_xopen_source=no;;
2136 # On MacOS X 10.2, a bug in ncurses.h means that it craps out if
2137 # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which
2138 # identifies itself as Darwin/7.*
2139 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2140 # disables platform specific features beyond repair.
2141 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2142 # has no effect, don't bother defining them
2143 Darwin/[6789].*)
2144 define_xopen_source=no;;
2145 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
2146 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
2147 # or has another value. By not (re)defining it, the defaults come in place.
2148 AIX/4)
2149 define_xopen_source=no;;
2150 AIX/5)
2151 if test `uname -r` -eq 1; then
2152 define_xopen_source=no
2155 # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from
2156 # defining NI_NUMERICHOST.
2157 QNX/6.3.2)
2158 define_xopen_source=no
2161 esac
2163 if test $define_xopen_source = yes
2164 then
2165 # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be
2166 # defined precisely as g++ defines it
2167 # Furthermore, on Solaris 10, XPG6 requires the use of a C99
2168 # compiler
2169 case $ac_sys_system/$ac_sys_release in
2170 SunOS/5.8|SunOS/5.9|SunOS/5.10)
2172 cat >>confdefs.h <<\_ACEOF
2173 #define _XOPEN_SOURCE 500
2174 _ACEOF
2179 cat >>confdefs.h <<\_ACEOF
2180 #define _XOPEN_SOURCE 600
2181 _ACEOF
2184 esac
2186 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
2187 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
2188 # several APIs are not declared. Since this is also needed in some
2189 # cases for HP-UX, we define it globally.
2190 # except for Solaris 10, where it must not be defined,
2191 # as it implies XPG4.2
2192 case $ac_sys_system/$ac_sys_release in
2193 SunOS/5.10)
2197 cat >>confdefs.h <<\_ACEOF
2198 #define _XOPEN_SOURCE_EXTENDED 1
2199 _ACEOF
2202 esac
2205 cat >>confdefs.h <<\_ACEOF
2206 #define _POSIX_C_SOURCE 200112L
2207 _ACEOF
2213 # SGI compilers allow the specification of the both the ABI and the
2214 # ISA on the command line. Depending on the values of these switches,
2215 # different and often incompatable code will be generated.
2217 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
2218 # thus supply support for various ABI/ISA combinations. The MACHDEP
2219 # variable is also adjusted.
2222 if test ! -z "$SGI_ABI"
2223 then
2224 CC="cc $SGI_ABI"
2225 LDFLAGS="$SGI_ABI $LDFLAGS"
2226 MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'`
2228 { echo "$as_me:$LINENO: result: $MACHDEP" >&5
2229 echo "${ECHO_T}$MACHDEP" >&6; }
2231 # And add extra plat-mac for darwin
2234 { echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5
2235 echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6; }
2236 if test -z "$EXTRAPLATDIR"
2237 then
2238 case $MACHDEP in
2239 darwin)
2240 EXTRAPLATDIR="\$(PLATMACDIRS)"
2241 EXTRAMACHDEPPATH="\$(PLATMACPATH)"
2244 EXTRAPLATDIR=""
2245 EXTRAMACHDEPPATH=""
2247 esac
2249 { echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5
2250 echo "${ECHO_T}$EXTRAPLATDIR" >&6; }
2252 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
2253 # it may influence the way we can build extensions, so distutils
2254 # needs to check it
2257 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=
2258 EXPORT_MACOSX_DEPLOYMENT_TARGET='#'
2260 { echo "$as_me:$LINENO: checking machine type as reported by uname -m" >&5
2261 echo $ECHO_N "checking machine type as reported by uname -m... $ECHO_C" >&6; }
2262 ac_sys_machine=`uname -m`
2263 { echo "$as_me:$LINENO: result: $ac_sys_machine" >&5
2264 echo "${ECHO_T}$ac_sys_machine" >&6; }
2266 # checks for alternative programs
2268 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
2269 # for debug/optimization stuff. BASECFLAGS is for flags that are required
2270 # just to get things to compile and link. Users are free to override OPT
2271 # when running configure or make. The build should not break if they do.
2272 # BASECFLAGS should generally not be messed with, however.
2274 # XXX shouldn't some/most/all of this code be merged with the stuff later
2275 # on that fiddles with OPT and BASECFLAGS?
2276 { echo "$as_me:$LINENO: checking for --without-gcc" >&5
2277 echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6; }
2279 # Check whether --with-gcc was given.
2280 if test "${with_gcc+set}" = set; then
2281 withval=$with_gcc;
2282 case $withval in
2283 no) CC=${CC:-cc}
2284 without_gcc=yes;;
2285 yes) CC=gcc
2286 without_gcc=no;;
2287 *) CC=$withval
2288 without_gcc=$withval;;
2289 esac
2290 else
2292 case $ac_sys_system in
2293 AIX*) CC=cc_r
2294 without_gcc=;;
2295 BeOS*)
2296 case $BE_HOST_CPU in
2297 ppc)
2298 CC=mwcc
2299 without_gcc=yes
2300 BASECFLAGS="$BASECFLAGS -export pragma"
2301 OPT="$OPT -O"
2302 LDFLAGS="$LDFLAGS -nodup"
2304 x86)
2305 CC=gcc
2306 without_gcc=no
2307 OPT="$OPT -O"
2310 { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5
2311 echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;}
2312 { (exit 1); exit 1; }; }
2314 esac
2315 AR="\$(srcdir)/Modules/ar_beos"
2316 RANLIB=:
2318 *) without_gcc=no;;
2319 esac
2322 { echo "$as_me:$LINENO: result: $without_gcc" >&5
2323 echo "${ECHO_T}$without_gcc" >&6; }
2325 # If the user switches compilers, we can't believe the cache
2326 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
2327 then
2328 { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
2329 (it is also a good idea to do 'make clean' before compiling)" >&5
2330 echo "$as_me: error: cached CC is different -- throw away $cache_file
2331 (it is also a good idea to do 'make clean' before compiling)" >&2;}
2332 { (exit 1); exit 1; }; }
2335 ac_ext=c
2336 ac_cpp='$CPP $CPPFLAGS'
2337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2339 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2340 if test -n "$ac_tool_prefix"; then
2341 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2342 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2343 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2345 if test "${ac_cv_prog_CC+set}" = set; then
2346 echo $ECHO_N "(cached) $ECHO_C" >&6
2347 else
2348 if test -n "$CC"; then
2349 ac_cv_prog_CC="$CC" # Let the user override the test.
2350 else
2351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2352 for as_dir in $PATH
2354 IFS=$as_save_IFS
2355 test -z "$as_dir" && as_dir=.
2356 for ac_exec_ext in '' $ac_executable_extensions; do
2357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2358 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2360 break 2
2362 done
2363 done
2364 IFS=$as_save_IFS
2368 CC=$ac_cv_prog_CC
2369 if test -n "$CC"; then
2370 { echo "$as_me:$LINENO: result: $CC" >&5
2371 echo "${ECHO_T}$CC" >&6; }
2372 else
2373 { echo "$as_me:$LINENO: result: no" >&5
2374 echo "${ECHO_T}no" >&6; }
2379 if test -z "$ac_cv_prog_CC"; then
2380 ac_ct_CC=$CC
2381 # Extract the first word of "gcc", so it can be a program name with args.
2382 set dummy gcc; ac_word=$2
2383 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2385 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2386 echo $ECHO_N "(cached) $ECHO_C" >&6
2387 else
2388 if test -n "$ac_ct_CC"; then
2389 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2390 else
2391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2392 for as_dir in $PATH
2394 IFS=$as_save_IFS
2395 test -z "$as_dir" && as_dir=.
2396 for ac_exec_ext in '' $ac_executable_extensions; do
2397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2398 ac_cv_prog_ac_ct_CC="gcc"
2399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2400 break 2
2402 done
2403 done
2404 IFS=$as_save_IFS
2408 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2409 if test -n "$ac_ct_CC"; then
2410 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2411 echo "${ECHO_T}$ac_ct_CC" >&6; }
2412 else
2413 { echo "$as_me:$LINENO: result: no" >&5
2414 echo "${ECHO_T}no" >&6; }
2417 if test "x$ac_ct_CC" = x; then
2418 CC=""
2419 else
2420 case $cross_compiling:$ac_tool_warned in
2421 yes:)
2422 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2423 whose name does not start with the host triplet. If you think this
2424 configuration is useful to you, please write to autoconf@gnu.org." >&5
2425 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2426 whose name does not start with the host triplet. If you think this
2427 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2428 ac_tool_warned=yes ;;
2429 esac
2430 CC=$ac_ct_CC
2432 else
2433 CC="$ac_cv_prog_CC"
2436 if test -z "$CC"; then
2437 if test -n "$ac_tool_prefix"; then
2438 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2439 set dummy ${ac_tool_prefix}cc; ac_word=$2
2440 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2442 if test "${ac_cv_prog_CC+set}" = set; then
2443 echo $ECHO_N "(cached) $ECHO_C" >&6
2444 else
2445 if test -n "$CC"; then
2446 ac_cv_prog_CC="$CC" # Let the user override the test.
2447 else
2448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2449 for as_dir in $PATH
2451 IFS=$as_save_IFS
2452 test -z "$as_dir" && as_dir=.
2453 for ac_exec_ext in '' $ac_executable_extensions; do
2454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2455 ac_cv_prog_CC="${ac_tool_prefix}cc"
2456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2457 break 2
2459 done
2460 done
2461 IFS=$as_save_IFS
2465 CC=$ac_cv_prog_CC
2466 if test -n "$CC"; then
2467 { echo "$as_me:$LINENO: result: $CC" >&5
2468 echo "${ECHO_T}$CC" >&6; }
2469 else
2470 { echo "$as_me:$LINENO: result: no" >&5
2471 echo "${ECHO_T}no" >&6; }
2477 if test -z "$CC"; then
2478 # Extract the first word of "cc", so it can be a program name with args.
2479 set dummy cc; ac_word=$2
2480 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2482 if test "${ac_cv_prog_CC+set}" = set; then
2483 echo $ECHO_N "(cached) $ECHO_C" >&6
2484 else
2485 if test -n "$CC"; then
2486 ac_cv_prog_CC="$CC" # Let the user override the test.
2487 else
2488 ac_prog_rejected=no
2489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2490 for as_dir in $PATH
2492 IFS=$as_save_IFS
2493 test -z "$as_dir" && as_dir=.
2494 for ac_exec_ext in '' $ac_executable_extensions; do
2495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2496 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2497 ac_prog_rejected=yes
2498 continue
2500 ac_cv_prog_CC="cc"
2501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2502 break 2
2504 done
2505 done
2506 IFS=$as_save_IFS
2508 if test $ac_prog_rejected = yes; then
2509 # We found a bogon in the path, so make sure we never use it.
2510 set dummy $ac_cv_prog_CC
2511 shift
2512 if test $# != 0; then
2513 # We chose a different compiler from the bogus one.
2514 # However, it has the same basename, so the bogon will be chosen
2515 # first if we set CC to just the basename; use the full file name.
2516 shift
2517 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2522 CC=$ac_cv_prog_CC
2523 if test -n "$CC"; then
2524 { echo "$as_me:$LINENO: result: $CC" >&5
2525 echo "${ECHO_T}$CC" >&6; }
2526 else
2527 { echo "$as_me:$LINENO: result: no" >&5
2528 echo "${ECHO_T}no" >&6; }
2533 if test -z "$CC"; then
2534 if test -n "$ac_tool_prefix"; then
2535 for ac_prog in cl.exe
2537 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2538 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2539 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2540 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2541 if test "${ac_cv_prog_CC+set}" = set; then
2542 echo $ECHO_N "(cached) $ECHO_C" >&6
2543 else
2544 if test -n "$CC"; then
2545 ac_cv_prog_CC="$CC" # Let the user override the test.
2546 else
2547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2548 for as_dir in $PATH
2550 IFS=$as_save_IFS
2551 test -z "$as_dir" && as_dir=.
2552 for ac_exec_ext in '' $ac_executable_extensions; do
2553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2554 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2556 break 2
2558 done
2559 done
2560 IFS=$as_save_IFS
2564 CC=$ac_cv_prog_CC
2565 if test -n "$CC"; then
2566 { echo "$as_me:$LINENO: result: $CC" >&5
2567 echo "${ECHO_T}$CC" >&6; }
2568 else
2569 { echo "$as_me:$LINENO: result: no" >&5
2570 echo "${ECHO_T}no" >&6; }
2574 test -n "$CC" && break
2575 done
2577 if test -z "$CC"; then
2578 ac_ct_CC=$CC
2579 for ac_prog in cl.exe
2581 # Extract the first word of "$ac_prog", so it can be a program name with args.
2582 set dummy $ac_prog; ac_word=$2
2583 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2585 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2586 echo $ECHO_N "(cached) $ECHO_C" >&6
2587 else
2588 if test -n "$ac_ct_CC"; then
2589 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2590 else
2591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2592 for as_dir in $PATH
2594 IFS=$as_save_IFS
2595 test -z "$as_dir" && as_dir=.
2596 for ac_exec_ext in '' $ac_executable_extensions; do
2597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2598 ac_cv_prog_ac_ct_CC="$ac_prog"
2599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2600 break 2
2602 done
2603 done
2604 IFS=$as_save_IFS
2608 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2609 if test -n "$ac_ct_CC"; then
2610 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2611 echo "${ECHO_T}$ac_ct_CC" >&6; }
2612 else
2613 { echo "$as_me:$LINENO: result: no" >&5
2614 echo "${ECHO_T}no" >&6; }
2618 test -n "$ac_ct_CC" && break
2619 done
2621 if test "x$ac_ct_CC" = x; then
2622 CC=""
2623 else
2624 case $cross_compiling:$ac_tool_warned in
2625 yes:)
2626 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2627 whose name does not start with the host triplet. If you think this
2628 configuration is useful to you, please write to autoconf@gnu.org." >&5
2629 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2630 whose name does not start with the host triplet. If you think this
2631 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2632 ac_tool_warned=yes ;;
2633 esac
2634 CC=$ac_ct_CC
2641 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2642 See \`config.log' for more details." >&5
2643 echo "$as_me: error: no acceptable C compiler found in \$PATH
2644 See \`config.log' for more details." >&2;}
2645 { (exit 1); exit 1; }; }
2647 # Provide some information about the compiler.
2648 echo "$as_me:$LINENO: checking for C compiler version" >&5
2649 ac_compiler=`set X $ac_compile; echo $2`
2650 { (ac_try="$ac_compiler --version >&5"
2651 case "(($ac_try" in
2652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2653 *) ac_try_echo=$ac_try;;
2654 esac
2655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2656 (eval "$ac_compiler --version >&5") 2>&5
2657 ac_status=$?
2658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2659 (exit $ac_status); }
2660 { (ac_try="$ac_compiler -v >&5"
2661 case "(($ac_try" in
2662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2663 *) ac_try_echo=$ac_try;;
2664 esac
2665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2666 (eval "$ac_compiler -v >&5") 2>&5
2667 ac_status=$?
2668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2669 (exit $ac_status); }
2670 { (ac_try="$ac_compiler -V >&5"
2671 case "(($ac_try" in
2672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2673 *) ac_try_echo=$ac_try;;
2674 esac
2675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2676 (eval "$ac_compiler -V >&5") 2>&5
2677 ac_status=$?
2678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2679 (exit $ac_status); }
2681 cat >conftest.$ac_ext <<_ACEOF
2682 /* confdefs.h. */
2683 _ACEOF
2684 cat confdefs.h >>conftest.$ac_ext
2685 cat >>conftest.$ac_ext <<_ACEOF
2686 /* end confdefs.h. */
2689 main ()
2693 return 0;
2695 _ACEOF
2696 ac_clean_files_save=$ac_clean_files
2697 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2698 # Try to create an executable without -o first, disregard a.out.
2699 # It will help us diagnose broken compilers, and finding out an intuition
2700 # of exeext.
2701 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2702 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2703 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2705 # List of possible output files, starting from the most likely.
2706 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2707 # only as a last resort. b.out is created by i960 compilers.
2708 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2710 # The IRIX 6 linker writes into existing files which may not be
2711 # executable, retaining their permissions. Remove them first so a
2712 # subsequent execution test works.
2713 ac_rmfiles=
2714 for ac_file in $ac_files
2716 case $ac_file in
2717 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2718 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2719 esac
2720 done
2721 rm -f $ac_rmfiles
2723 if { (ac_try="$ac_link_default"
2724 case "(($ac_try" in
2725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2726 *) ac_try_echo=$ac_try;;
2727 esac
2728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2729 (eval "$ac_link_default") 2>&5
2730 ac_status=$?
2731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732 (exit $ac_status); }; then
2733 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2734 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2735 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2736 # so that the user can short-circuit this test for compilers unknown to
2737 # Autoconf.
2738 for ac_file in $ac_files ''
2740 test -f "$ac_file" || continue
2741 case $ac_file in
2742 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2744 [ab].out )
2745 # We found the default executable, but exeext='' is most
2746 # certainly right.
2747 break;;
2748 *.* )
2749 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2750 then :; else
2751 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2753 # We set ac_cv_exeext here because the later test for it is not
2754 # safe: cross compilers may not add the suffix if given an `-o'
2755 # argument, so we may need to know it at that point already.
2756 # Even if this section looks crufty: it has the advantage of
2757 # actually working.
2758 break;;
2760 break;;
2761 esac
2762 done
2763 test "$ac_cv_exeext" = no && ac_cv_exeext=
2765 else
2766 ac_file=''
2769 { echo "$as_me:$LINENO: result: $ac_file" >&5
2770 echo "${ECHO_T}$ac_file" >&6; }
2771 if test -z "$ac_file"; then
2772 echo "$as_me: failed program was:" >&5
2773 sed 's/^/| /' conftest.$ac_ext >&5
2775 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2776 See \`config.log' for more details." >&5
2777 echo "$as_me: error: C compiler cannot create executables
2778 See \`config.log' for more details." >&2;}
2779 { (exit 77); exit 77; }; }
2782 ac_exeext=$ac_cv_exeext
2784 # Check that the compiler produces executables we can run. If not, either
2785 # the compiler is broken, or we cross compile.
2786 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2787 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2788 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2789 # If not cross compiling, check that we can run a simple program.
2790 if test "$cross_compiling" != yes; then
2791 if { ac_try='./$ac_file'
2792 { (case "(($ac_try" in
2793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2794 *) ac_try_echo=$ac_try;;
2795 esac
2796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2797 (eval "$ac_try") 2>&5
2798 ac_status=$?
2799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800 (exit $ac_status); }; }; then
2801 cross_compiling=no
2802 else
2803 if test "$cross_compiling" = maybe; then
2804 cross_compiling=yes
2805 else
2806 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2807 If you meant to cross compile, use \`--host'.
2808 See \`config.log' for more details." >&5
2809 echo "$as_me: error: cannot run C compiled programs.
2810 If you meant to cross compile, use \`--host'.
2811 See \`config.log' for more details." >&2;}
2812 { (exit 1); exit 1; }; }
2816 { echo "$as_me:$LINENO: result: yes" >&5
2817 echo "${ECHO_T}yes" >&6; }
2819 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2820 ac_clean_files=$ac_clean_files_save
2821 # Check that the compiler produces executables we can run. If not, either
2822 # the compiler is broken, or we cross compile.
2823 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2824 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2825 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2826 echo "${ECHO_T}$cross_compiling" >&6; }
2828 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2829 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2830 if { (ac_try="$ac_link"
2831 case "(($ac_try" in
2832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2833 *) ac_try_echo=$ac_try;;
2834 esac
2835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2836 (eval "$ac_link") 2>&5
2837 ac_status=$?
2838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839 (exit $ac_status); }; then
2840 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2841 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2842 # work properly (i.e., refer to `conftest.exe'), while it won't with
2843 # `rm'.
2844 for ac_file in conftest.exe conftest conftest.*; do
2845 test -f "$ac_file" || continue
2846 case $ac_file in
2847 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2848 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2849 break;;
2850 * ) break;;
2851 esac
2852 done
2853 else
2854 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2855 See \`config.log' for more details." >&5
2856 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2857 See \`config.log' for more details." >&2;}
2858 { (exit 1); exit 1; }; }
2861 rm -f conftest$ac_cv_exeext
2862 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2863 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2865 rm -f conftest.$ac_ext
2866 EXEEXT=$ac_cv_exeext
2867 ac_exeext=$EXEEXT
2868 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2869 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2870 if test "${ac_cv_objext+set}" = set; then
2871 echo $ECHO_N "(cached) $ECHO_C" >&6
2872 else
2873 cat >conftest.$ac_ext <<_ACEOF
2874 /* confdefs.h. */
2875 _ACEOF
2876 cat confdefs.h >>conftest.$ac_ext
2877 cat >>conftest.$ac_ext <<_ACEOF
2878 /* end confdefs.h. */
2881 main ()
2885 return 0;
2887 _ACEOF
2888 rm -f conftest.o conftest.obj
2889 if { (ac_try="$ac_compile"
2890 case "(($ac_try" in
2891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2892 *) ac_try_echo=$ac_try;;
2893 esac
2894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2895 (eval "$ac_compile") 2>&5
2896 ac_status=$?
2897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898 (exit $ac_status); }; then
2899 for ac_file in conftest.o conftest.obj conftest.*; do
2900 test -f "$ac_file" || continue;
2901 case $ac_file in
2902 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2903 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2904 break;;
2905 esac
2906 done
2907 else
2908 echo "$as_me: failed program was:" >&5
2909 sed 's/^/| /' conftest.$ac_ext >&5
2911 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2912 See \`config.log' for more details." >&5
2913 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2914 See \`config.log' for more details." >&2;}
2915 { (exit 1); exit 1; }; }
2918 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2920 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2921 echo "${ECHO_T}$ac_cv_objext" >&6; }
2922 OBJEXT=$ac_cv_objext
2923 ac_objext=$OBJEXT
2924 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2925 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2926 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2927 echo $ECHO_N "(cached) $ECHO_C" >&6
2928 else
2929 cat >conftest.$ac_ext <<_ACEOF
2930 /* confdefs.h. */
2931 _ACEOF
2932 cat confdefs.h >>conftest.$ac_ext
2933 cat >>conftest.$ac_ext <<_ACEOF
2934 /* end confdefs.h. */
2937 main ()
2939 #ifndef __GNUC__
2940 choke me
2941 #endif
2944 return 0;
2946 _ACEOF
2947 rm -f conftest.$ac_objext
2948 if { (ac_try="$ac_compile"
2949 case "(($ac_try" in
2950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2951 *) ac_try_echo=$ac_try;;
2952 esac
2953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2954 (eval "$ac_compile") 2>conftest.er1
2955 ac_status=$?
2956 grep -v '^ *+' conftest.er1 >conftest.err
2957 rm -f conftest.er1
2958 cat conftest.err >&5
2959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960 (exit $ac_status); } && {
2961 test -z "$ac_c_werror_flag" ||
2962 test ! -s conftest.err
2963 } && test -s conftest.$ac_objext; then
2964 ac_compiler_gnu=yes
2965 else
2966 echo "$as_me: failed program was:" >&5
2967 sed 's/^/| /' conftest.$ac_ext >&5
2969 ac_compiler_gnu=no
2972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2973 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2976 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2977 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2978 GCC=`test $ac_compiler_gnu = yes && echo yes`
2979 ac_test_CFLAGS=${CFLAGS+set}
2980 ac_save_CFLAGS=$CFLAGS
2981 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2982 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2983 if test "${ac_cv_prog_cc_g+set}" = set; then
2984 echo $ECHO_N "(cached) $ECHO_C" >&6
2985 else
2986 ac_save_c_werror_flag=$ac_c_werror_flag
2987 ac_c_werror_flag=yes
2988 ac_cv_prog_cc_g=no
2989 CFLAGS="-g"
2990 cat >conftest.$ac_ext <<_ACEOF
2991 /* confdefs.h. */
2992 _ACEOF
2993 cat confdefs.h >>conftest.$ac_ext
2994 cat >>conftest.$ac_ext <<_ACEOF
2995 /* end confdefs.h. */
2998 main ()
3002 return 0;
3004 _ACEOF
3005 rm -f conftest.$ac_objext
3006 if { (ac_try="$ac_compile"
3007 case "(($ac_try" in
3008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3009 *) ac_try_echo=$ac_try;;
3010 esac
3011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3012 (eval "$ac_compile") 2>conftest.er1
3013 ac_status=$?
3014 grep -v '^ *+' conftest.er1 >conftest.err
3015 rm -f conftest.er1
3016 cat conftest.err >&5
3017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018 (exit $ac_status); } && {
3019 test -z "$ac_c_werror_flag" ||
3020 test ! -s conftest.err
3021 } && test -s conftest.$ac_objext; then
3022 ac_cv_prog_cc_g=yes
3023 else
3024 echo "$as_me: failed program was:" >&5
3025 sed 's/^/| /' conftest.$ac_ext >&5
3027 CFLAGS=""
3028 cat >conftest.$ac_ext <<_ACEOF
3029 /* confdefs.h. */
3030 _ACEOF
3031 cat confdefs.h >>conftest.$ac_ext
3032 cat >>conftest.$ac_ext <<_ACEOF
3033 /* end confdefs.h. */
3036 main ()
3040 return 0;
3042 _ACEOF
3043 rm -f conftest.$ac_objext
3044 if { (ac_try="$ac_compile"
3045 case "(($ac_try" in
3046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3047 *) ac_try_echo=$ac_try;;
3048 esac
3049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3050 (eval "$ac_compile") 2>conftest.er1
3051 ac_status=$?
3052 grep -v '^ *+' conftest.er1 >conftest.err
3053 rm -f conftest.er1
3054 cat conftest.err >&5
3055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056 (exit $ac_status); } && {
3057 test -z "$ac_c_werror_flag" ||
3058 test ! -s conftest.err
3059 } && test -s conftest.$ac_objext; then
3061 else
3062 echo "$as_me: failed program was:" >&5
3063 sed 's/^/| /' conftest.$ac_ext >&5
3065 ac_c_werror_flag=$ac_save_c_werror_flag
3066 CFLAGS="-g"
3067 cat >conftest.$ac_ext <<_ACEOF
3068 /* confdefs.h. */
3069 _ACEOF
3070 cat confdefs.h >>conftest.$ac_ext
3071 cat >>conftest.$ac_ext <<_ACEOF
3072 /* end confdefs.h. */
3075 main ()
3079 return 0;
3081 _ACEOF
3082 rm -f conftest.$ac_objext
3083 if { (ac_try="$ac_compile"
3084 case "(($ac_try" in
3085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3086 *) ac_try_echo=$ac_try;;
3087 esac
3088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3089 (eval "$ac_compile") 2>conftest.er1
3090 ac_status=$?
3091 grep -v '^ *+' conftest.er1 >conftest.err
3092 rm -f conftest.er1
3093 cat conftest.err >&5
3094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3095 (exit $ac_status); } && {
3096 test -z "$ac_c_werror_flag" ||
3097 test ! -s conftest.err
3098 } && test -s conftest.$ac_objext; then
3099 ac_cv_prog_cc_g=yes
3100 else
3101 echo "$as_me: failed program was:" >&5
3102 sed 's/^/| /' conftest.$ac_ext >&5
3107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3114 ac_c_werror_flag=$ac_save_c_werror_flag
3116 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3117 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3118 if test "$ac_test_CFLAGS" = set; then
3119 CFLAGS=$ac_save_CFLAGS
3120 elif test $ac_cv_prog_cc_g = yes; then
3121 if test "$GCC" = yes; then
3122 CFLAGS="-g -O2"
3123 else
3124 CFLAGS="-g"
3126 else
3127 if test "$GCC" = yes; then
3128 CFLAGS="-O2"
3129 else
3130 CFLAGS=
3133 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3134 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3135 if test "${ac_cv_prog_cc_c89+set}" = set; then
3136 echo $ECHO_N "(cached) $ECHO_C" >&6
3137 else
3138 ac_cv_prog_cc_c89=no
3139 ac_save_CC=$CC
3140 cat >conftest.$ac_ext <<_ACEOF
3141 /* confdefs.h. */
3142 _ACEOF
3143 cat confdefs.h >>conftest.$ac_ext
3144 cat >>conftest.$ac_ext <<_ACEOF
3145 /* end confdefs.h. */
3146 #include <stdarg.h>
3147 #include <stdio.h>
3148 #include <sys/types.h>
3149 #include <sys/stat.h>
3150 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3151 struct buf { int x; };
3152 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3153 static char *e (p, i)
3154 char **p;
3155 int i;
3157 return p[i];
3159 static char *f (char * (*g) (char **, int), char **p, ...)
3161 char *s;
3162 va_list v;
3163 va_start (v,p);
3164 s = g (p, va_arg (v,int));
3165 va_end (v);
3166 return s;
3169 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3170 function prototypes and stuff, but not '\xHH' hex character constants.
3171 These don't provoke an error unfortunately, instead are silently treated
3172 as 'x'. The following induces an error, until -std is added to get
3173 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3174 array size at least. It's necessary to write '\x00'==0 to get something
3175 that's true only with -std. */
3176 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3178 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3179 inside strings and character constants. */
3180 #define FOO(x) 'x'
3181 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3183 int test (int i, double x);
3184 struct s1 {int (*f) (int a);};
3185 struct s2 {int (*f) (double a);};
3186 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3187 int argc;
3188 char **argv;
3190 main ()
3192 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3194 return 0;
3196 _ACEOF
3197 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3198 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3200 CC="$ac_save_CC $ac_arg"
3201 rm -f conftest.$ac_objext
3202 if { (ac_try="$ac_compile"
3203 case "(($ac_try" in
3204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3205 *) ac_try_echo=$ac_try;;
3206 esac
3207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3208 (eval "$ac_compile") 2>conftest.er1
3209 ac_status=$?
3210 grep -v '^ *+' conftest.er1 >conftest.err
3211 rm -f conftest.er1
3212 cat conftest.err >&5
3213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3214 (exit $ac_status); } && {
3215 test -z "$ac_c_werror_flag" ||
3216 test ! -s conftest.err
3217 } && test -s conftest.$ac_objext; then
3218 ac_cv_prog_cc_c89=$ac_arg
3219 else
3220 echo "$as_me: failed program was:" >&5
3221 sed 's/^/| /' conftest.$ac_ext >&5
3226 rm -f core conftest.err conftest.$ac_objext
3227 test "x$ac_cv_prog_cc_c89" != "xno" && break
3228 done
3229 rm -f conftest.$ac_ext
3230 CC=$ac_save_CC
3233 # AC_CACHE_VAL
3234 case "x$ac_cv_prog_cc_c89" in
3236 { echo "$as_me:$LINENO: result: none needed" >&5
3237 echo "${ECHO_T}none needed" >&6; } ;;
3238 xno)
3239 { echo "$as_me:$LINENO: result: unsupported" >&5
3240 echo "${ECHO_T}unsupported" >&6; } ;;
3242 CC="$CC $ac_cv_prog_cc_c89"
3243 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3244 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3245 esac
3248 ac_ext=c
3249 ac_cpp='$CPP $CPPFLAGS'
3250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3252 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3257 { echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5
3258 echo $ECHO_N "checking for --with-cxx-main=<compiler>... $ECHO_C" >&6; }
3260 # Check whether --with-cxx_main was given.
3261 if test "${with_cxx_main+set}" = set; then
3262 withval=$with_cxx_main;
3264 case $withval in
3265 no) with_cxx_main=no
3266 MAINCC='$(CC)';;
3267 yes) with_cxx_main=yes
3268 MAINCC='$(CXX)';;
3269 *) with_cxx_main=yes
3270 MAINCC=$withval
3271 if test -z "$CXX"
3272 then
3273 CXX=$withval
3274 fi;;
3275 esac
3276 else
3278 with_cxx_main=no
3279 MAINCC='$(CC)'
3283 { echo "$as_me:$LINENO: result: $with_cxx_main" >&5
3284 echo "${ECHO_T}$with_cxx_main" >&6; }
3286 preset_cxx="$CXX"
3287 if test -z "$CXX"
3288 then
3289 case "$CC" in
3290 gcc) # Extract the first word of "g++", so it can be a program name with args.
3291 set dummy g++; ac_word=$2
3292 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3294 if test "${ac_cv_path_CXX+set}" = set; then
3295 echo $ECHO_N "(cached) $ECHO_C" >&6
3296 else
3297 case $CXX in
3298 [\\/]* | ?:[\\/]*)
3299 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3303 for as_dir in notfound
3305 IFS=$as_save_IFS
3306 test -z "$as_dir" && as_dir=.
3307 for ac_exec_ext in '' $ac_executable_extensions; do
3308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3309 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3310 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3311 break 2
3313 done
3314 done
3315 IFS=$as_save_IFS
3317 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="g++"
3319 esac
3321 CXX=$ac_cv_path_CXX
3322 if test -n "$CXX"; then
3323 { echo "$as_me:$LINENO: result: $CXX" >&5
3324 echo "${ECHO_T}$CXX" >&6; }
3325 else
3326 { echo "$as_me:$LINENO: result: no" >&5
3327 echo "${ECHO_T}no" >&6; }
3331 cc) # Extract the first word of "c++", so it can be a program name with args.
3332 set dummy c++; ac_word=$2
3333 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3334 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3335 if test "${ac_cv_path_CXX+set}" = set; then
3336 echo $ECHO_N "(cached) $ECHO_C" >&6
3337 else
3338 case $CXX in
3339 [\\/]* | ?:[\\/]*)
3340 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3344 for as_dir in notfound
3346 IFS=$as_save_IFS
3347 test -z "$as_dir" && as_dir=.
3348 for ac_exec_ext in '' $ac_executable_extensions; do
3349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3350 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3352 break 2
3354 done
3355 done
3356 IFS=$as_save_IFS
3358 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="c++"
3360 esac
3362 CXX=$ac_cv_path_CXX
3363 if test -n "$CXX"; then
3364 { echo "$as_me:$LINENO: result: $CXX" >&5
3365 echo "${ECHO_T}$CXX" >&6; }
3366 else
3367 { echo "$as_me:$LINENO: result: no" >&5
3368 echo "${ECHO_T}no" >&6; }
3372 esac
3373 if test "$CXX" = "notfound"
3374 then
3375 CXX=""
3378 if test -z "$CXX"
3379 then
3380 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
3382 # Extract the first word of "$ac_prog", so it can be a program name with args.
3383 set dummy $ac_prog; ac_word=$2
3384 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3385 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3386 if test "${ac_cv_prog_CXX+set}" = set; then
3387 echo $ECHO_N "(cached) $ECHO_C" >&6
3388 else
3389 if test -n "$CXX"; then
3390 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3391 else
3392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3393 for as_dir in $PATH
3395 IFS=$as_save_IFS
3396 test -z "$as_dir" && as_dir=.
3397 for ac_exec_ext in '' $ac_executable_extensions; do
3398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3399 ac_cv_prog_CXX="$ac_prog"
3400 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3401 break 2
3403 done
3404 done
3405 IFS=$as_save_IFS
3409 CXX=$ac_cv_prog_CXX
3410 if test -n "$CXX"; then
3411 { echo "$as_me:$LINENO: result: $CXX" >&5
3412 echo "${ECHO_T}$CXX" >&6; }
3413 else
3414 { echo "$as_me:$LINENO: result: no" >&5
3415 echo "${ECHO_T}no" >&6; }
3419 test -n "$CXX" && break
3420 done
3421 test -n "$CXX" || CXX="notfound"
3423 if test "$CXX" = "notfound"
3424 then
3425 CXX=""
3428 if test "$preset_cxx" != "$CXX"
3429 then
3430 { echo "$as_me:$LINENO: WARNING:
3432 By default, distutils will build C++ extension modules with \"$CXX\".
3433 If this is not intended, then set CXX on the configure command line.
3434 " >&5
3435 echo "$as_me: WARNING:
3437 By default, distutils will build C++ extension modules with \"$CXX\".
3438 If this is not intended, then set CXX on the configure command line.
3439 " >&2;}
3443 # checks for UNIX variants that set C preprocessor variables
3445 ac_ext=c
3446 ac_cpp='$CPP $CPPFLAGS'
3447 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3448 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3449 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3450 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3451 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3452 # On Suns, sometimes $CPP names a directory.
3453 if test -n "$CPP" && test -d "$CPP"; then
3454 CPP=
3456 if test -z "$CPP"; then
3457 if test "${ac_cv_prog_CPP+set}" = set; then
3458 echo $ECHO_N "(cached) $ECHO_C" >&6
3459 else
3460 # Double quotes because CPP needs to be expanded
3461 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3463 ac_preproc_ok=false
3464 for ac_c_preproc_warn_flag in '' yes
3466 # Use a header file that comes with gcc, so configuring glibc
3467 # with a fresh cross-compiler works.
3468 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3469 # <limits.h> exists even on freestanding compilers.
3470 # On the NeXT, cc -E runs the code through the compiler's parser,
3471 # not just through cpp. "Syntax error" is here to catch this case.
3472 cat >conftest.$ac_ext <<_ACEOF
3473 /* confdefs.h. */
3474 _ACEOF
3475 cat confdefs.h >>conftest.$ac_ext
3476 cat >>conftest.$ac_ext <<_ACEOF
3477 /* end confdefs.h. */
3478 #ifdef __STDC__
3479 # include <limits.h>
3480 #else
3481 # include <assert.h>
3482 #endif
3483 Syntax error
3484 _ACEOF
3485 if { (ac_try="$ac_cpp conftest.$ac_ext"
3486 case "(($ac_try" in
3487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3488 *) ac_try_echo=$ac_try;;
3489 esac
3490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3491 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3492 ac_status=$?
3493 grep -v '^ *+' conftest.er1 >conftest.err
3494 rm -f conftest.er1
3495 cat conftest.err >&5
3496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3497 (exit $ac_status); } >/dev/null && {
3498 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3499 test ! -s conftest.err
3500 }; then
3502 else
3503 echo "$as_me: failed program was:" >&5
3504 sed 's/^/| /' conftest.$ac_ext >&5
3506 # Broken: fails on valid input.
3507 continue
3510 rm -f conftest.err conftest.$ac_ext
3512 # OK, works on sane cases. Now check whether nonexistent headers
3513 # can be detected and how.
3514 cat >conftest.$ac_ext <<_ACEOF
3515 /* confdefs.h. */
3516 _ACEOF
3517 cat confdefs.h >>conftest.$ac_ext
3518 cat >>conftest.$ac_ext <<_ACEOF
3519 /* end confdefs.h. */
3520 #include <ac_nonexistent.h>
3521 _ACEOF
3522 if { (ac_try="$ac_cpp conftest.$ac_ext"
3523 case "(($ac_try" in
3524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3525 *) ac_try_echo=$ac_try;;
3526 esac
3527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3528 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3529 ac_status=$?
3530 grep -v '^ *+' conftest.er1 >conftest.err
3531 rm -f conftest.er1
3532 cat conftest.err >&5
3533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3534 (exit $ac_status); } >/dev/null && {
3535 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3536 test ! -s conftest.err
3537 }; then
3538 # Broken: success on invalid input.
3539 continue
3540 else
3541 echo "$as_me: failed program was:" >&5
3542 sed 's/^/| /' conftest.$ac_ext >&5
3544 # Passes both tests.
3545 ac_preproc_ok=:
3546 break
3549 rm -f conftest.err conftest.$ac_ext
3551 done
3552 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3553 rm -f conftest.err conftest.$ac_ext
3554 if $ac_preproc_ok; then
3555 break
3558 done
3559 ac_cv_prog_CPP=$CPP
3562 CPP=$ac_cv_prog_CPP
3563 else
3564 ac_cv_prog_CPP=$CPP
3566 { echo "$as_me:$LINENO: result: $CPP" >&5
3567 echo "${ECHO_T}$CPP" >&6; }
3568 ac_preproc_ok=false
3569 for ac_c_preproc_warn_flag in '' yes
3571 # Use a header file that comes with gcc, so configuring glibc
3572 # with a fresh cross-compiler works.
3573 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3574 # <limits.h> exists even on freestanding compilers.
3575 # On the NeXT, cc -E runs the code through the compiler's parser,
3576 # not just through cpp. "Syntax error" is here to catch this case.
3577 cat >conftest.$ac_ext <<_ACEOF
3578 /* confdefs.h. */
3579 _ACEOF
3580 cat confdefs.h >>conftest.$ac_ext
3581 cat >>conftest.$ac_ext <<_ACEOF
3582 /* end confdefs.h. */
3583 #ifdef __STDC__
3584 # include <limits.h>
3585 #else
3586 # include <assert.h>
3587 #endif
3588 Syntax error
3589 _ACEOF
3590 if { (ac_try="$ac_cpp conftest.$ac_ext"
3591 case "(($ac_try" in
3592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3593 *) ac_try_echo=$ac_try;;
3594 esac
3595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3596 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3597 ac_status=$?
3598 grep -v '^ *+' conftest.er1 >conftest.err
3599 rm -f conftest.er1
3600 cat conftest.err >&5
3601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602 (exit $ac_status); } >/dev/null && {
3603 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3604 test ! -s conftest.err
3605 }; then
3607 else
3608 echo "$as_me: failed program was:" >&5
3609 sed 's/^/| /' conftest.$ac_ext >&5
3611 # Broken: fails on valid input.
3612 continue
3615 rm -f conftest.err conftest.$ac_ext
3617 # OK, works on sane cases. Now check whether nonexistent headers
3618 # can be detected and how.
3619 cat >conftest.$ac_ext <<_ACEOF
3620 /* confdefs.h. */
3621 _ACEOF
3622 cat confdefs.h >>conftest.$ac_ext
3623 cat >>conftest.$ac_ext <<_ACEOF
3624 /* end confdefs.h. */
3625 #include <ac_nonexistent.h>
3626 _ACEOF
3627 if { (ac_try="$ac_cpp conftest.$ac_ext"
3628 case "(($ac_try" in
3629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3630 *) ac_try_echo=$ac_try;;
3631 esac
3632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3633 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3634 ac_status=$?
3635 grep -v '^ *+' conftest.er1 >conftest.err
3636 rm -f conftest.er1
3637 cat conftest.err >&5
3638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3639 (exit $ac_status); } >/dev/null && {
3640 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3641 test ! -s conftest.err
3642 }; then
3643 # Broken: success on invalid input.
3644 continue
3645 else
3646 echo "$as_me: failed program was:" >&5
3647 sed 's/^/| /' conftest.$ac_ext >&5
3649 # Passes both tests.
3650 ac_preproc_ok=:
3651 break
3654 rm -f conftest.err conftest.$ac_ext
3656 done
3657 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3658 rm -f conftest.err conftest.$ac_ext
3659 if $ac_preproc_ok; then
3661 else
3662 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3663 See \`config.log' for more details." >&5
3664 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3665 See \`config.log' for more details." >&2;}
3666 { (exit 1); exit 1; }; }
3669 ac_ext=c
3670 ac_cpp='$CPP $CPPFLAGS'
3671 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3672 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3673 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3676 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3677 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3678 if test "${ac_cv_path_GREP+set}" = set; then
3679 echo $ECHO_N "(cached) $ECHO_C" >&6
3680 else
3681 # Extract the first word of "grep ggrep" to use in msg output
3682 if test -z "$GREP"; then
3683 set dummy grep ggrep; ac_prog_name=$2
3684 if test "${ac_cv_path_GREP+set}" = set; then
3685 echo $ECHO_N "(cached) $ECHO_C" >&6
3686 else
3687 ac_path_GREP_found=false
3688 # Loop through the user's path and test for each of PROGNAME-LIST
3689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3690 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3692 IFS=$as_save_IFS
3693 test -z "$as_dir" && as_dir=.
3694 for ac_prog in grep ggrep; do
3695 for ac_exec_ext in '' $ac_executable_extensions; do
3696 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3697 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3698 # Check for GNU ac_path_GREP and select it if it is found.
3699 # Check for GNU $ac_path_GREP
3700 case `"$ac_path_GREP" --version 2>&1` in
3701 *GNU*)
3702 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3704 ac_count=0
3705 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3706 while :
3708 cat "conftest.in" "conftest.in" >"conftest.tmp"
3709 mv "conftest.tmp" "conftest.in"
3710 cp "conftest.in" "conftest.nl"
3711 echo 'GREP' >> "conftest.nl"
3712 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3713 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3714 ac_count=`expr $ac_count + 1`
3715 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3716 # Best one so far, save it but keep looking for a better one
3717 ac_cv_path_GREP="$ac_path_GREP"
3718 ac_path_GREP_max=$ac_count
3720 # 10*(2^10) chars as input seems more than enough
3721 test $ac_count -gt 10 && break
3722 done
3723 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3724 esac
3727 $ac_path_GREP_found && break 3
3728 done
3729 done
3731 done
3732 IFS=$as_save_IFS
3737 GREP="$ac_cv_path_GREP"
3738 if test -z "$GREP"; then
3739 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3740 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3741 { (exit 1); exit 1; }; }
3744 else
3745 ac_cv_path_GREP=$GREP
3750 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3751 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3752 GREP="$ac_cv_path_GREP"
3755 { echo "$as_me:$LINENO: checking for egrep" >&5
3756 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3757 if test "${ac_cv_path_EGREP+set}" = set; then
3758 echo $ECHO_N "(cached) $ECHO_C" >&6
3759 else
3760 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3761 then ac_cv_path_EGREP="$GREP -E"
3762 else
3763 # Extract the first word of "egrep" to use in msg output
3764 if test -z "$EGREP"; then
3765 set dummy egrep; ac_prog_name=$2
3766 if test "${ac_cv_path_EGREP+set}" = set; then
3767 echo $ECHO_N "(cached) $ECHO_C" >&6
3768 else
3769 ac_path_EGREP_found=false
3770 # Loop through the user's path and test for each of PROGNAME-LIST
3771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3772 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3774 IFS=$as_save_IFS
3775 test -z "$as_dir" && as_dir=.
3776 for ac_prog in egrep; do
3777 for ac_exec_ext in '' $ac_executable_extensions; do
3778 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3779 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3780 # Check for GNU ac_path_EGREP and select it if it is found.
3781 # Check for GNU $ac_path_EGREP
3782 case `"$ac_path_EGREP" --version 2>&1` in
3783 *GNU*)
3784 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3786 ac_count=0
3787 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3788 while :
3790 cat "conftest.in" "conftest.in" >"conftest.tmp"
3791 mv "conftest.tmp" "conftest.in"
3792 cp "conftest.in" "conftest.nl"
3793 echo 'EGREP' >> "conftest.nl"
3794 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3795 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3796 ac_count=`expr $ac_count + 1`
3797 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3798 # Best one so far, save it but keep looking for a better one
3799 ac_cv_path_EGREP="$ac_path_EGREP"
3800 ac_path_EGREP_max=$ac_count
3802 # 10*(2^10) chars as input seems more than enough
3803 test $ac_count -gt 10 && break
3804 done
3805 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3806 esac
3809 $ac_path_EGREP_found && break 3
3810 done
3811 done
3813 done
3814 IFS=$as_save_IFS
3819 EGREP="$ac_cv_path_EGREP"
3820 if test -z "$EGREP"; then
3821 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3822 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3823 { (exit 1); exit 1; }; }
3826 else
3827 ac_cv_path_EGREP=$EGREP
3833 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3834 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3835 EGREP="$ac_cv_path_EGREP"
3839 { echo "$as_me:$LINENO: checking for AIX" >&5
3840 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3841 cat >conftest.$ac_ext <<_ACEOF
3842 /* confdefs.h. */
3843 _ACEOF
3844 cat confdefs.h >>conftest.$ac_ext
3845 cat >>conftest.$ac_ext <<_ACEOF
3846 /* end confdefs.h. */
3847 #ifdef _AIX
3849 #endif
3851 _ACEOF
3852 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3853 $EGREP "yes" >/dev/null 2>&1; then
3854 { echo "$as_me:$LINENO: result: yes" >&5
3855 echo "${ECHO_T}yes" >&6; }
3856 cat >>confdefs.h <<\_ACEOF
3857 #define _ALL_SOURCE 1
3858 _ACEOF
3860 else
3861 { echo "$as_me:$LINENO: result: no" >&5
3862 echo "${ECHO_T}no" >&6; }
3864 rm -f conftest*
3868 # Check for unsupported systems
3869 case $ac_sys_system/$ac_sys_release in
3870 atheos*|Linux*/1*)
3871 echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported.
3872 echo See README for details.
3873 exit 1;;
3874 esac
3877 { echo "$as_me:$LINENO: checking for --with-suffix" >&5
3878 echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6; }
3880 # Check whether --with-suffix was given.
3881 if test "${with_suffix+set}" = set; then
3882 withval=$with_suffix;
3883 case $withval in
3884 no) EXEEXT=;;
3885 yes) EXEEXT=.exe;;
3886 *) EXEEXT=$withval;;
3887 esac
3890 { echo "$as_me:$LINENO: result: $EXEEXT" >&5
3891 echo "${ECHO_T}$EXEEXT" >&6; }
3893 # Test whether we're running on a non-case-sensitive system, in which
3894 # case we give a warning if no ext is given
3896 { echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
3897 echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6; }
3898 if test ! -d CaseSensitiveTestDir; then
3899 mkdir CaseSensitiveTestDir
3902 if test -d casesensitivetestdir
3903 then
3904 { echo "$as_me:$LINENO: result: yes" >&5
3905 echo "${ECHO_T}yes" >&6; }
3906 BUILDEXEEXT=.exe
3907 else
3908 { echo "$as_me:$LINENO: result: no" >&5
3909 echo "${ECHO_T}no" >&6; }
3910 BUILDEXEEXT=$EXEEXT
3912 rmdir CaseSensitiveTestDir
3914 case $MACHDEP in
3915 bsdos*)
3916 case $CC in
3917 gcc) CC="$CC -D_HAVE_BSDI";;
3918 esac;;
3919 esac
3921 case $ac_sys_system in
3922 hp*|HP*)
3923 case $CC in
3924 cc|*/cc) CC="$CC -Ae";;
3925 esac;;
3926 SunOS*)
3927 # Some functions have a prototype only with that define, e.g. confstr
3929 cat >>confdefs.h <<\_ACEOF
3930 #define __EXTENSIONS__ 1
3931 _ACEOF
3934 esac
3938 { echo "$as_me:$LINENO: checking LIBRARY" >&5
3939 echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6; }
3940 if test -z "$LIBRARY"
3941 then
3942 LIBRARY='libpython$(VERSION).a'
3944 { echo "$as_me:$LINENO: result: $LIBRARY" >&5
3945 echo "${ECHO_T}$LIBRARY" >&6; }
3947 # LDLIBRARY is the name of the library to link against (as opposed to the
3948 # name of the library into which to insert object files). BLDLIBRARY is also
3949 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
3950 # is blank as the main program is not linked directly against LDLIBRARY.
3951 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
3952 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
3953 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
3954 # DLLLIBRARY is the shared (i.e., DLL) library.
3956 # RUNSHARED is used to run shared python without installed libraries
3958 # INSTSONAME is the name of the shared library that will be use to install
3959 # on the system - some systems like version suffix, others don't
3966 LDLIBRARY="$LIBRARY"
3967 BLDLIBRARY='$(LDLIBRARY)'
3968 INSTSONAME='$(LDLIBRARY)'
3969 DLLLIBRARY=''
3970 LDLIBRARYDIR=''
3971 RUNSHARED=''
3973 # LINKCC is the command that links the python executable -- default is $(CC).
3974 # If CXX is set, and if it is needed to link a main function that was
3975 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
3976 # python might then depend on the C++ runtime
3977 # This is altered for AIX in order to build the export list before
3978 # linking.
3980 { echo "$as_me:$LINENO: checking LINKCC" >&5
3981 echo $ECHO_N "checking LINKCC... $ECHO_C" >&6; }
3982 if test -z "$LINKCC"
3983 then
3984 LINKCC='$(PURIFY) $(MAINCC)'
3985 case $ac_sys_system in
3986 AIX*)
3987 exp_extra="\"\""
3988 if test $ac_sys_release -ge 5 -o \
3989 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
3990 exp_extra="."
3992 LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
3993 QNX*)
3994 # qcc must be used because the other compilers do not
3995 # support -N.
3996 LINKCC=qcc;;
3997 esac
3999 { echo "$as_me:$LINENO: result: $LINKCC" >&5
4000 echo "${ECHO_T}$LINKCC" >&6; }
4002 # GNULD is set to "yes" if the GNU linker is used. If this goes wrong
4003 # make sure we default having it set to "no": this is used by
4004 # distutils.unixccompiler to know if it should add --enable-new-dtags
4005 # to linker command lines, and failing to detect GNU ld simply results
4006 # in the same bahaviour as before.
4008 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4009 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4010 ac_prog=ld
4011 if test "$GCC" = yes; then
4012 ac_prog=`$CC -print-prog-name=ld`
4014 case `"$ac_prog" -V 2>&1 < /dev/null` in
4015 *GNU*)
4016 GNULD=yes;;
4018 GNULD=no;;
4019 esac
4020 { echo "$as_me:$LINENO: result: $GNULD" >&5
4021 echo "${ECHO_T}$GNULD" >&6; }
4023 { echo "$as_me:$LINENO: checking for --enable-shared" >&5
4024 echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6; }
4025 # Check whether --enable-shared was given.
4026 if test "${enable_shared+set}" = set; then
4027 enableval=$enable_shared;
4031 if test -z "$enable_shared"
4032 then
4033 case $ac_sys_system in
4034 CYGWIN* | atheos*)
4035 enable_shared="yes";;
4037 enable_shared="no";;
4038 esac
4040 { echo "$as_me:$LINENO: result: $enable_shared" >&5
4041 echo "${ECHO_T}$enable_shared" >&6; }
4043 { echo "$as_me:$LINENO: checking for --enable-profiling" >&5
4044 echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6; }
4045 # Check whether --enable-profiling was given.
4046 if test "${enable_profiling+set}" = set; then
4047 enableval=$enable_profiling; ac_save_cc="$CC"
4048 CC="$CC -pg"
4049 if test "$cross_compiling" = yes; then
4050 ac_enable_profiling="no"
4051 else
4052 cat >conftest.$ac_ext <<_ACEOF
4053 /* confdefs.h. */
4054 _ACEOF
4055 cat confdefs.h >>conftest.$ac_ext
4056 cat >>conftest.$ac_ext <<_ACEOF
4057 /* end confdefs.h. */
4058 int main() { return 0; }
4059 _ACEOF
4060 rm -f conftest$ac_exeext
4061 if { (ac_try="$ac_link"
4062 case "(($ac_try" in
4063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4064 *) ac_try_echo=$ac_try;;
4065 esac
4066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4067 (eval "$ac_link") 2>&5
4068 ac_status=$?
4069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4070 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4071 { (case "(($ac_try" in
4072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4073 *) ac_try_echo=$ac_try;;
4074 esac
4075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4076 (eval "$ac_try") 2>&5
4077 ac_status=$?
4078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079 (exit $ac_status); }; }; then
4080 ac_enable_profiling="yes"
4081 else
4082 echo "$as_me: program exited with status $ac_status" >&5
4083 echo "$as_me: failed program was:" >&5
4084 sed 's/^/| /' conftest.$ac_ext >&5
4086 ( exit $ac_status )
4087 ac_enable_profiling="no"
4089 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4093 CC="$ac_save_cc"
4096 { echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5
4097 echo "${ECHO_T}$ac_enable_profiling" >&6; }
4099 case "$ac_enable_profiling" in
4100 "yes")
4101 BASECFLAGS="-pg $BASECFLAGS"
4102 LDFLAGS="-pg $LDFLAGS"
4104 esac
4106 { echo "$as_me:$LINENO: checking LDLIBRARY" >&5
4107 echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6; }
4109 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
4110 # library that we build, but we do not want to link against it (we
4111 # will find it with a -framework option). For this reason there is an
4112 # extra variable BLDLIBRARY against which Python and the extension
4113 # modules are linked, BLDLIBRARY. This is normally the same as
4114 # LDLIBRARY, but empty for MacOSX framework builds.
4115 if test "$enable_framework"
4116 then
4117 LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
4118 RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH"
4119 BLDLIBRARY=''
4120 else
4121 BLDLIBRARY='$(LDLIBRARY)'
4124 # Other platforms follow
4125 if test $enable_shared = "yes"; then
4127 cat >>confdefs.h <<\_ACEOF
4128 #define Py_ENABLE_SHARED 1
4129 _ACEOF
4131 case $ac_sys_system in
4132 BeOS*)
4133 LDLIBRARY='libpython$(VERSION).so'
4135 CYGWIN*)
4136 LDLIBRARY='libpython$(VERSION).dll.a'
4137 DLLLIBRARY='libpython$(VERSION).dll'
4139 SunOS*)
4140 LDLIBRARY='libpython$(VERSION).so'
4141 BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
4142 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4143 INSTSONAME="$LDLIBRARY".$SOVERSION
4145 Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*)
4146 LDLIBRARY='libpython$(VERSION).so'
4147 BLDLIBRARY='-L. -lpython$(VERSION)'
4148 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4149 case $ac_sys_system in
4150 FreeBSD*)
4151 SOVERSION=`echo $SOVERSION|cut -d "." -f 1`
4153 esac
4154 INSTSONAME="$LDLIBRARY".$SOVERSION
4156 hp*|HP*)
4157 case `uname -m` in
4158 ia64)
4159 LDLIBRARY='libpython$(VERSION).so'
4162 LDLIBRARY='libpython$(VERSION).sl'
4164 esac
4165 BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
4166 RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH}
4168 OSF*)
4169 LDLIBRARY='libpython$(VERSION).so'
4170 BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
4171 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4173 atheos*)
4174 LDLIBRARY='libpython$(VERSION).so'
4175 BLDLIBRARY='-L. -lpython$(VERSION)'
4176 RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
4178 Darwin*)
4179 LDLIBRARY='libpython$(VERSION).dylib'
4180 BLDLIBRARY='-L. -lpython$(VERSION)'
4181 RUNSHARED='DYLD_LIBRARY_PATH=`pwd`:${DYLD_LIBRARY_PATH}'
4184 esac
4185 else # shared is disabled
4186 case $ac_sys_system in
4187 CYGWIN*)
4188 BLDLIBRARY='$(LIBRARY)'
4189 LDLIBRARY='libpython$(VERSION).dll.a'
4191 esac
4194 { echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
4195 echo "${ECHO_T}$LDLIBRARY" >&6; }
4197 if test -n "$ac_tool_prefix"; then
4198 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4199 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4200 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4202 if test "${ac_cv_prog_RANLIB+set}" = set; then
4203 echo $ECHO_N "(cached) $ECHO_C" >&6
4204 else
4205 if test -n "$RANLIB"; then
4206 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4207 else
4208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4209 for as_dir in $PATH
4211 IFS=$as_save_IFS
4212 test -z "$as_dir" && as_dir=.
4213 for ac_exec_ext in '' $ac_executable_extensions; do
4214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4215 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4217 break 2
4219 done
4220 done
4221 IFS=$as_save_IFS
4225 RANLIB=$ac_cv_prog_RANLIB
4226 if test -n "$RANLIB"; then
4227 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4228 echo "${ECHO_T}$RANLIB" >&6; }
4229 else
4230 { echo "$as_me:$LINENO: result: no" >&5
4231 echo "${ECHO_T}no" >&6; }
4236 if test -z "$ac_cv_prog_RANLIB"; then
4237 ac_ct_RANLIB=$RANLIB
4238 # Extract the first word of "ranlib", so it can be a program name with args.
4239 set dummy ranlib; ac_word=$2
4240 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4242 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4243 echo $ECHO_N "(cached) $ECHO_C" >&6
4244 else
4245 if test -n "$ac_ct_RANLIB"; then
4246 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4247 else
4248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4249 for as_dir in $PATH
4251 IFS=$as_save_IFS
4252 test -z "$as_dir" && as_dir=.
4253 for ac_exec_ext in '' $ac_executable_extensions; do
4254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4255 ac_cv_prog_ac_ct_RANLIB="ranlib"
4256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4257 break 2
4259 done
4260 done
4261 IFS=$as_save_IFS
4265 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4266 if test -n "$ac_ct_RANLIB"; then
4267 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4268 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4269 else
4270 { echo "$as_me:$LINENO: result: no" >&5
4271 echo "${ECHO_T}no" >&6; }
4274 if test "x$ac_ct_RANLIB" = x; then
4275 RANLIB=":"
4276 else
4277 case $cross_compiling:$ac_tool_warned in
4278 yes:)
4279 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4280 whose name does not start with the host triplet. If you think this
4281 configuration is useful to you, please write to autoconf@gnu.org." >&5
4282 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4283 whose name does not start with the host triplet. If you think this
4284 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4285 ac_tool_warned=yes ;;
4286 esac
4287 RANLIB=$ac_ct_RANLIB
4289 else
4290 RANLIB="$ac_cv_prog_RANLIB"
4294 for ac_prog in ar aal
4296 # Extract the first word of "$ac_prog", so it can be a program name with args.
4297 set dummy $ac_prog; ac_word=$2
4298 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4300 if test "${ac_cv_prog_AR+set}" = set; then
4301 echo $ECHO_N "(cached) $ECHO_C" >&6
4302 else
4303 if test -n "$AR"; then
4304 ac_cv_prog_AR="$AR" # Let the user override the test.
4305 else
4306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4307 for as_dir in $PATH
4309 IFS=$as_save_IFS
4310 test -z "$as_dir" && as_dir=.
4311 for ac_exec_ext in '' $ac_executable_extensions; do
4312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4313 ac_cv_prog_AR="$ac_prog"
4314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4315 break 2
4317 done
4318 done
4319 IFS=$as_save_IFS
4323 AR=$ac_cv_prog_AR
4324 if test -n "$AR"; then
4325 { echo "$as_me:$LINENO: result: $AR" >&5
4326 echo "${ECHO_T}$AR" >&6; }
4327 else
4328 { echo "$as_me:$LINENO: result: no" >&5
4329 echo "${ECHO_T}no" >&6; }
4333 test -n "$AR" && break
4334 done
4335 test -n "$AR" || AR="ar"
4338 # tweak ARFLAGS only if the user didn't set it on the command line
4340 if test -z "$ARFLAGS"
4341 then
4342 ARFLAGS="rc"
4346 # Extract the first word of "svnversion", so it can be a program name with args.
4347 set dummy svnversion; ac_word=$2
4348 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4349 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4350 if test "${ac_cv_prog_SVNVERSION+set}" = set; then
4351 echo $ECHO_N "(cached) $ECHO_C" >&6
4352 else
4353 if test -n "$SVNVERSION"; then
4354 ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test.
4355 else
4356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4357 for as_dir in $PATH
4359 IFS=$as_save_IFS
4360 test -z "$as_dir" && as_dir=.
4361 for ac_exec_ext in '' $ac_executable_extensions; do
4362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4363 ac_cv_prog_SVNVERSION="found"
4364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4365 break 2
4367 done
4368 done
4369 IFS=$as_save_IFS
4371 test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION="not-found"
4374 SVNVERSION=$ac_cv_prog_SVNVERSION
4375 if test -n "$SVNVERSION"; then
4376 { echo "$as_me:$LINENO: result: $SVNVERSION" >&5
4377 echo "${ECHO_T}$SVNVERSION" >&6; }
4378 else
4379 { echo "$as_me:$LINENO: result: no" >&5
4380 echo "${ECHO_T}no" >&6; }
4384 if test $SVNVERSION = found
4385 then
4386 SVNVERSION="svnversion \$(srcdir)"
4387 else
4388 SVNVERSION="echo Unversioned directory"
4391 case $MACHDEP in
4392 bsdos*|hp*|HP*)
4393 # install -d does not work on BSDI or HP-UX
4394 if test -z "$INSTALL"
4395 then
4396 INSTALL="${srcdir}/install-sh -c"
4398 esac
4399 ac_aux_dir=
4400 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4401 if test -f "$ac_dir/install-sh"; then
4402 ac_aux_dir=$ac_dir
4403 ac_install_sh="$ac_aux_dir/install-sh -c"
4404 break
4405 elif 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/shtool"; then
4410 ac_aux_dir=$ac_dir
4411 ac_install_sh="$ac_aux_dir/shtool install -c"
4412 break
4414 done
4415 if test -z "$ac_aux_dir"; then
4416 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
4417 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
4418 { (exit 1); exit 1; }; }
4421 # These three variables are undocumented and unsupported,
4422 # and are intended to be withdrawn in a future Autoconf release.
4423 # They can cause serious problems if a builder's source tree is in a directory
4424 # whose full name contains unusual characters.
4425 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4426 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4427 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4430 # Find a good install program. We prefer a C program (faster),
4431 # so one script is as good as another. But avoid the broken or
4432 # incompatible versions:
4433 # SysV /etc/install, /usr/sbin/install
4434 # SunOS /usr/etc/install
4435 # IRIX /sbin/install
4436 # AIX /bin/install
4437 # AmigaOS /C/install, which installs bootblocks on floppy discs
4438 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4439 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4440 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4441 # OS/2's system install, which has a completely different semantic
4442 # ./install, which can be erroneously created by make from ./install.sh.
4443 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4444 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4445 if test -z "$INSTALL"; then
4446 if test "${ac_cv_path_install+set}" = set; then
4447 echo $ECHO_N "(cached) $ECHO_C" >&6
4448 else
4449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4450 for as_dir in $PATH
4452 IFS=$as_save_IFS
4453 test -z "$as_dir" && as_dir=.
4454 # Account for people who put trailing slashes in PATH elements.
4455 case $as_dir/ in
4456 ./ | .// | /cC/* | \
4457 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4458 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4459 /usr/ucb/* ) ;;
4461 # OSF1 and SCO ODT 3.0 have their own names for install.
4462 # Don't use installbsd from OSF since it installs stuff as root
4463 # by default.
4464 for ac_prog in ginstall scoinst install; do
4465 for ac_exec_ext in '' $ac_executable_extensions; do
4466 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4467 if test $ac_prog = install &&
4468 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4469 # AIX install. It has an incompatible calling convention.
4471 elif test $ac_prog = install &&
4472 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4473 # program-specific install script used by HP pwplus--don't use.
4475 else
4476 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4477 break 3
4480 done
4481 done
4483 esac
4484 done
4485 IFS=$as_save_IFS
4489 if test "${ac_cv_path_install+set}" = set; then
4490 INSTALL=$ac_cv_path_install
4491 else
4492 # As a last resort, use the slow shell script. Don't cache a
4493 # value for INSTALL within a source directory, because that will
4494 # break other packages using the cache if that directory is
4495 # removed, or if the value is a relative name.
4496 INSTALL=$ac_install_sh
4499 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4500 echo "${ECHO_T}$INSTALL" >&6; }
4502 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4503 # It thinks the first close brace ends the variable substitution.
4504 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4506 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4508 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4511 # Not every filesystem supports hard links
4513 if test -z "$LN" ; then
4514 case $ac_sys_system in
4515 BeOS*) LN="ln -s";;
4516 CYGWIN*) LN="ln -s";;
4517 atheos*) LN="ln -s";;
4518 *) LN=ln;;
4519 esac
4522 # Check for --with-pydebug
4523 { echo "$as_me:$LINENO: checking for --with-pydebug" >&5
4524 echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6; }
4526 # Check whether --with-pydebug was given.
4527 if test "${with_pydebug+set}" = set; then
4528 withval=$with_pydebug;
4529 if test "$withval" != no
4530 then
4532 cat >>confdefs.h <<\_ACEOF
4533 #define Py_DEBUG 1
4534 _ACEOF
4536 { echo "$as_me:$LINENO: result: yes" >&5
4537 echo "${ECHO_T}yes" >&6; };
4538 Py_DEBUG='true'
4539 else { echo "$as_me:$LINENO: result: no" >&5
4540 echo "${ECHO_T}no" >&6; }; Py_DEBUG='false'
4542 else
4543 { echo "$as_me:$LINENO: result: no" >&5
4544 echo "${ECHO_T}no" >&6; }
4548 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
4549 # merged with this chunk of code?
4551 # Optimizer/debugger flags
4552 # ------------------------
4553 # (The following bit of code is complicated enough - please keep things
4554 # indented properly. Just pretend you're editing Python code. ;-)
4556 # There are two parallel sets of case statements below, one that checks to
4557 # see if OPT was set and one that does BASECFLAGS setting based upon
4558 # compiler and platform. BASECFLAGS tweaks need to be made even if the
4559 # user set OPT.
4561 # tweak OPT based on compiler and platform, only if the user didn't set
4562 # it on the command line
4564 if test -z "$OPT"
4565 then
4566 case $GCC in
4567 yes)
4568 if test "$CC" != 'g++' ; then
4569 STRICT_PROTO="-Wstrict-prototypes"
4571 # For gcc 4.x we need to use -fwrapv so lets check if its supported
4572 if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then
4573 WRAP="-fwrapv"
4575 case $ac_cv_prog_cc_g in
4576 yes)
4577 if test "$Py_DEBUG" = 'true' ; then
4578 # Optimization messes up debuggers, so turn it off for
4579 # debug builds.
4580 OPT="-g -Wall $STRICT_PROTO"
4581 else
4582 OPT="-g $WRAP -O3 -Wall $STRICT_PROTO"
4586 OPT="-O3 -Wall $STRICT_PROTO"
4588 esac
4589 case $ac_sys_system in
4590 SCO_SV*) OPT="$OPT -m486 -DSCO5"
4592 esac
4596 OPT="-O"
4598 esac
4603 # The -arch flags for universal builds on OSX
4604 UNIVERSAL_ARCH_FLAGS=
4607 # tweak BASECFLAGS based on compiler and platform
4608 case $GCC in
4609 yes)
4610 # Python violates C99 rules, by casting between incompatible
4611 # pointer types. GCC may generate bad code as a result of that,
4612 # so use -fno-strict-aliasing if supported.
4613 { echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5
4614 echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6; }
4615 ac_save_cc="$CC"
4616 CC="$CC -fno-strict-aliasing"
4617 if test "${ac_cv_no_strict_aliasing_ok+set}" = set; then
4618 echo $ECHO_N "(cached) $ECHO_C" >&6
4619 else
4620 cat >conftest.$ac_ext <<_ACEOF
4621 /* confdefs.h. */
4622 _ACEOF
4623 cat confdefs.h >>conftest.$ac_ext
4624 cat >>conftest.$ac_ext <<_ACEOF
4625 /* end confdefs.h. */
4628 main ()
4630 int main() { return 0; }
4632 return 0;
4634 _ACEOF
4635 rm -f conftest.$ac_objext
4636 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
4643 ac_status=$?
4644 grep -v '^ *+' conftest.er1 >conftest.err
4645 rm -f conftest.er1
4646 cat conftest.err >&5
4647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4648 (exit $ac_status); } && {
4649 test -z "$ac_c_werror_flag" ||
4650 test ! -s conftest.err
4651 } && test -s conftest.$ac_objext; then
4652 ac_cv_no_strict_aliasing_ok=yes
4653 else
4654 echo "$as_me: failed program was:" >&5
4655 sed 's/^/| /' conftest.$ac_ext >&5
4657 ac_cv_no_strict_aliasing_ok=no
4660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4663 CC="$ac_save_cc"
4664 { echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5
4665 echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6; }
4666 if test $ac_cv_no_strict_aliasing_ok = yes
4667 then
4668 BASECFLAGS="$BASECFLAGS -fno-strict-aliasing"
4671 # if using gcc on alpha, use -mieee to get (near) full IEEE 754
4672 # support. Without this, treatment of subnormals doesn't follow
4673 # the standard.
4674 case $ac_sys_machine in
4675 alpha*)
4676 BASECFLAGS="$BASECFLAGS -mieee"
4678 esac
4680 case $ac_sys_system in
4681 SCO_SV*)
4682 BASECFLAGS="$BASECFLAGS -m486 -DSCO5"
4684 # is there any other compiler on Darwin besides gcc?
4685 Darwin*)
4686 # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd
4687 # used to be here, but non-Apple gcc doesn't accept them.
4690 if test "${enable_universalsdk}"; then
4691 UNIVERSAL_ARCH_FLAGS=""
4692 if test "$UNIVERSAL_ARCHS" = "32-bit" ; then
4693 UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386"
4694 ARCH_RUN_32BIT=""
4695 LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386"
4697 elif test "$UNIVERSAL_ARCHS" = "64-bit" ; then
4698 UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64"
4699 LIPO_32BIT_FLAGS=""
4700 ARCH_RUN_32BIT="true"
4702 elif test "$UNIVERSAL_ARCHS" = "all" ; then
4703 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64"
4704 LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386"
4705 ARCH_RUN_32BIT="arch -i386 -ppc"
4707 elif test "$UNIVERSAL_ARCHS" = "intel" ; then
4708 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch x86_64"
4709 LIPO_32BIT_FLAGS="-extract i386"
4710 ARCH_RUN_32BIT="arch -i386"
4712 elif test "$UNIVERSAL_ARCHS" = "3-way" ; then
4713 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch x86_64"
4714 LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386"
4715 ARCH_RUN_32BIT="arch -i386 -ppc7400"
4717 else
4718 { { echo "$as_me:$LINENO: error: proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" >&5
4719 echo "$as_me: error: proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" >&2;}
4720 { (exit 1); exit 1; }; }
4725 BASECFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${BASECFLAGS}"
4726 tgt=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
4727 if test "${UNIVERSALSDK}" != "/" -a "${tgt}" '>' '10.4' ; then
4728 CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}"
4732 # Calculate the right deployment target for this build.
4734 cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
4735 if test ${cur_target} '>' 10.2; then
4736 cur_target=10.3
4737 if test ${enable_universalsdk}; then
4738 if test "${UNIVERSAL_ARCHS}" = "all"; then
4739 # Ensure that the default platform for a
4740 # 4-way universal build is OSX 10.5,
4741 # that's the first OS release where
4742 # 4-way builds make sense.
4743 cur_target='10.5'
4745 elif test "${UNIVERSAL_ARCHS}" = "3-way"; then
4746 cur_target='10.5'
4748 elif test "${UNIVERSAL_ARCHS}" = "intel"; then
4749 cur_target='10.5'
4751 elif test "${UNIVERSAL_ARCHS}" = "64-bit"; then
4752 cur_target='10.5'
4754 else
4755 if test `arch` = "i386"; then
4756 # On Intel macs default to a deployment
4757 # target of 10.4, that's the first OSX
4758 # release with Intel support.
4759 cur_target="10.4"
4763 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
4765 # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the
4766 # environment with a value that is the same as what we'll use
4767 # in the Makefile to ensure that we'll get the same compiler
4768 # environment during configure and build time.
4769 MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET"
4770 export MACOSX_DEPLOYMENT_TARGET
4771 EXPORT_MACOSX_DEPLOYMENT_TARGET=''
4774 OSF*)
4775 BASECFLAGS="$BASECFLAGS -mieee"
4777 esac
4781 case $ac_sys_system in
4782 OpenUNIX*|UnixWare*)
4783 BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
4785 OSF*)
4786 BASECFLAGS="$BASECFLAGS -ieee -std"
4788 SCO_SV*)
4789 BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5"
4791 esac
4793 esac
4795 if test "$Py_DEBUG" = 'true'; then
4797 else
4798 OPT="-DNDEBUG $OPT"
4801 if test "$ac_arch_flags"
4802 then
4803 BASECFLAGS="$BASECFLAGS $ac_arch_flags"
4806 # disable check for icc since it seems to pass, but generates a warning
4807 if test "$CC" = icc
4808 then
4809 ac_cv_opt_olimit_ok=no
4812 { echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
4813 echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6; }
4814 if test "${ac_cv_opt_olimit_ok+set}" = set; then
4815 echo $ECHO_N "(cached) $ECHO_C" >&6
4816 else
4817 ac_save_cc="$CC"
4818 CC="$CC -OPT:Olimit=0"
4819 cat >conftest.$ac_ext <<_ACEOF
4820 /* confdefs.h. */
4821 _ACEOF
4822 cat confdefs.h >>conftest.$ac_ext
4823 cat >>conftest.$ac_ext <<_ACEOF
4824 /* end confdefs.h. */
4827 main ()
4829 int main() { return 0; }
4831 return 0;
4833 _ACEOF
4834 rm -f conftest.$ac_objext
4835 if { (ac_try="$ac_compile"
4836 case "(($ac_try" in
4837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4838 *) ac_try_echo=$ac_try;;
4839 esac
4840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4841 (eval "$ac_compile") 2>conftest.er1
4842 ac_status=$?
4843 grep -v '^ *+' conftest.er1 >conftest.err
4844 rm -f conftest.er1
4845 cat conftest.err >&5
4846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4847 (exit $ac_status); } && {
4848 test -z "$ac_c_werror_flag" ||
4849 test ! -s conftest.err
4850 } && test -s conftest.$ac_objext; then
4851 ac_cv_opt_olimit_ok=yes
4852 else
4853 echo "$as_me: failed program was:" >&5
4854 sed 's/^/| /' conftest.$ac_ext >&5
4856 ac_cv_opt_olimit_ok=no
4859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4860 CC="$ac_save_cc"
4863 { echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
4864 echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6; }
4865 if test $ac_cv_opt_olimit_ok = yes; then
4866 case $ac_sys_system in
4867 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
4868 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
4869 # environment?
4870 Darwin*)
4873 BASECFLAGS="$BASECFLAGS -OPT:Olimit=0"
4875 esac
4876 else
4877 { echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
4878 echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6; }
4879 if test "${ac_cv_olimit_ok+set}" = set; then
4880 echo $ECHO_N "(cached) $ECHO_C" >&6
4881 else
4882 ac_save_cc="$CC"
4883 CC="$CC -Olimit 1500"
4884 cat >conftest.$ac_ext <<_ACEOF
4885 /* confdefs.h. */
4886 _ACEOF
4887 cat confdefs.h >>conftest.$ac_ext
4888 cat >>conftest.$ac_ext <<_ACEOF
4889 /* end confdefs.h. */
4892 main ()
4894 int main() { return 0; }
4896 return 0;
4898 _ACEOF
4899 rm -f conftest.$ac_objext
4900 if { (ac_try="$ac_compile"
4901 case "(($ac_try" in
4902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4903 *) ac_try_echo=$ac_try;;
4904 esac
4905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4906 (eval "$ac_compile") 2>conftest.er1
4907 ac_status=$?
4908 grep -v '^ *+' conftest.er1 >conftest.err
4909 rm -f conftest.er1
4910 cat conftest.err >&5
4911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4912 (exit $ac_status); } && {
4913 test -z "$ac_c_werror_flag" ||
4914 test ! -s conftest.err
4915 } && test -s conftest.$ac_objext; then
4916 ac_cv_olimit_ok=yes
4917 else
4918 echo "$as_me: failed program was:" >&5
4919 sed 's/^/| /' conftest.$ac_ext >&5
4921 ac_cv_olimit_ok=no
4924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4925 CC="$ac_save_cc"
4928 { echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
4929 echo "${ECHO_T}$ac_cv_olimit_ok" >&6; }
4930 if test $ac_cv_olimit_ok = yes; then
4931 BASECFLAGS="$BASECFLAGS -Olimit 1500"
4935 # Check whether GCC supports PyArg_ParseTuple format
4936 if test "$GCC" = "yes"
4937 then
4938 { echo "$as_me:$LINENO: checking whether gcc supports ParseTuple __format__" >&5
4939 echo $ECHO_N "checking whether gcc supports ParseTuple __format__... $ECHO_C" >&6; }
4940 save_CFLAGS=$CFLAGS
4941 CFLAGS="$CFLAGS -Werror"
4942 cat >conftest.$ac_ext <<_ACEOF
4943 /* confdefs.h. */
4944 _ACEOF
4945 cat confdefs.h >>conftest.$ac_ext
4946 cat >>conftest.$ac_ext <<_ACEOF
4947 /* end confdefs.h. */
4949 void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2)));
4952 main ()
4956 return 0;
4958 _ACEOF
4959 rm -f conftest.$ac_objext
4960 if { (ac_try="$ac_compile"
4961 case "(($ac_try" in
4962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4963 *) ac_try_echo=$ac_try;;
4964 esac
4965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4966 (eval "$ac_compile") 2>conftest.er1
4967 ac_status=$?
4968 grep -v '^ *+' conftest.er1 >conftest.err
4969 rm -f conftest.er1
4970 cat conftest.err >&5
4971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4972 (exit $ac_status); } && {
4973 test -z "$ac_c_werror_flag" ||
4974 test ! -s conftest.err
4975 } && test -s conftest.$ac_objext; then
4977 cat >>confdefs.h <<\_ACEOF
4978 #define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1
4979 _ACEOF
4981 { echo "$as_me:$LINENO: result: yes" >&5
4982 echo "${ECHO_T}yes" >&6; }
4983 else
4984 echo "$as_me: failed program was:" >&5
4985 sed 's/^/| /' conftest.$ac_ext >&5
4987 { echo "$as_me:$LINENO: result: no" >&5
4988 echo "${ECHO_T}no" >&6; }
4992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4993 CFLAGS=$save_CFLAGS
4996 # On some compilers, pthreads are available without further options
4997 # (e.g. MacOS X). On some of these systems, the compiler will not
4998 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
4999 # So we have to see first whether pthreads are available without
5000 # options before we can check whether -Kpthread improves anything.
5001 { echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
5002 echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6; }
5003 if test "${ac_cv_pthread_is_default+set}" = set; then
5004 echo $ECHO_N "(cached) $ECHO_C" >&6
5005 else
5006 if test "$cross_compiling" = yes; then
5007 ac_cv_pthread_is_default=no
5008 else
5009 cat >conftest.$ac_ext <<_ACEOF
5010 /* confdefs.h. */
5011 _ACEOF
5012 cat confdefs.h >>conftest.$ac_ext
5013 cat >>conftest.$ac_ext <<_ACEOF
5014 /* end confdefs.h. */
5016 #include <pthread.h>
5018 void* routine(void* p){return NULL;}
5020 int main(){
5021 pthread_t p;
5022 if(pthread_create(&p,NULL,routine,NULL)!=0)
5023 return 1;
5024 (void)pthread_detach(p);
5025 return 0;
5028 _ACEOF
5029 rm -f conftest$ac_exeext
5030 if { (ac_try="$ac_link"
5031 case "(($ac_try" in
5032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5033 *) ac_try_echo=$ac_try;;
5034 esac
5035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5036 (eval "$ac_link") 2>&5
5037 ac_status=$?
5038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5039 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5040 { (case "(($ac_try" in
5041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5042 *) ac_try_echo=$ac_try;;
5043 esac
5044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5045 (eval "$ac_try") 2>&5
5046 ac_status=$?
5047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048 (exit $ac_status); }; }; then
5050 ac_cv_pthread_is_default=yes
5051 ac_cv_kthread=no
5052 ac_cv_pthread=no
5054 else
5055 echo "$as_me: program exited with status $ac_status" >&5
5056 echo "$as_me: failed program was:" >&5
5057 sed 's/^/| /' conftest.$ac_ext >&5
5059 ( exit $ac_status )
5060 ac_cv_pthread_is_default=no
5062 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5069 { echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
5070 echo "${ECHO_T}$ac_cv_pthread_is_default" >&6; }
5073 if test $ac_cv_pthread_is_default = yes
5074 then
5075 ac_cv_kpthread=no
5076 else
5077 # -Kpthread, if available, provides the right #defines
5078 # and linker options to make pthread_create available
5079 # Some compilers won't report that they do not support -Kpthread,
5080 # so we need to run a program to see whether it really made the
5081 # function available.
5082 { echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
5083 echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6; }
5084 if test "${ac_cv_kpthread+set}" = set; then
5085 echo $ECHO_N "(cached) $ECHO_C" >&6
5086 else
5087 ac_save_cc="$CC"
5088 CC="$CC -Kpthread"
5089 if test "$cross_compiling" = yes; then
5090 ac_cv_kpthread=no
5091 else
5092 cat >conftest.$ac_ext <<_ACEOF
5093 /* confdefs.h. */
5094 _ACEOF
5095 cat confdefs.h >>conftest.$ac_ext
5096 cat >>conftest.$ac_ext <<_ACEOF
5097 /* end confdefs.h. */
5099 #include <pthread.h>
5101 void* routine(void* p){return NULL;}
5103 int main(){
5104 pthread_t p;
5105 if(pthread_create(&p,NULL,routine,NULL)!=0)
5106 return 1;
5107 (void)pthread_detach(p);
5108 return 0;
5111 _ACEOF
5112 rm -f conftest$ac_exeext
5113 if { (ac_try="$ac_link"
5114 case "(($ac_try" in
5115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5116 *) ac_try_echo=$ac_try;;
5117 esac
5118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5119 (eval "$ac_link") 2>&5
5120 ac_status=$?
5121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5122 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5123 { (case "(($ac_try" in
5124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5125 *) ac_try_echo=$ac_try;;
5126 esac
5127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5128 (eval "$ac_try") 2>&5
5129 ac_status=$?
5130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5131 (exit $ac_status); }; }; then
5132 ac_cv_kpthread=yes
5133 else
5134 echo "$as_me: program exited with status $ac_status" >&5
5135 echo "$as_me: failed program was:" >&5
5136 sed 's/^/| /' conftest.$ac_ext >&5
5138 ( exit $ac_status )
5139 ac_cv_kpthread=no
5141 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5145 CC="$ac_save_cc"
5148 { echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
5149 echo "${ECHO_T}$ac_cv_kpthread" >&6; }
5152 if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no
5153 then
5154 # -Kthread, if available, provides the right #defines
5155 # and linker options to make pthread_create available
5156 # Some compilers won't report that they do not support -Kthread,
5157 # so we need to run a program to see whether it really made the
5158 # function available.
5159 { echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
5160 echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6; }
5161 if test "${ac_cv_kthread+set}" = set; then
5162 echo $ECHO_N "(cached) $ECHO_C" >&6
5163 else
5164 ac_save_cc="$CC"
5165 CC="$CC -Kthread"
5166 if test "$cross_compiling" = yes; then
5167 ac_cv_kthread=no
5168 else
5169 cat >conftest.$ac_ext <<_ACEOF
5170 /* confdefs.h. */
5171 _ACEOF
5172 cat confdefs.h >>conftest.$ac_ext
5173 cat >>conftest.$ac_ext <<_ACEOF
5174 /* end confdefs.h. */
5176 #include <pthread.h>
5178 void* routine(void* p){return NULL;}
5180 int main(){
5181 pthread_t p;
5182 if(pthread_create(&p,NULL,routine,NULL)!=0)
5183 return 1;
5184 (void)pthread_detach(p);
5185 return 0;
5188 _ACEOF
5189 rm -f conftest$ac_exeext
5190 if { (ac_try="$ac_link"
5191 case "(($ac_try" in
5192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5193 *) ac_try_echo=$ac_try;;
5194 esac
5195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5196 (eval "$ac_link") 2>&5
5197 ac_status=$?
5198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5199 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5200 { (case "(($ac_try" in
5201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5202 *) ac_try_echo=$ac_try;;
5203 esac
5204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5205 (eval "$ac_try") 2>&5
5206 ac_status=$?
5207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5208 (exit $ac_status); }; }; then
5209 ac_cv_kthread=yes
5210 else
5211 echo "$as_me: program exited with status $ac_status" >&5
5212 echo "$as_me: failed program was:" >&5
5213 sed 's/^/| /' conftest.$ac_ext >&5
5215 ( exit $ac_status )
5216 ac_cv_kthread=no
5218 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5222 CC="$ac_save_cc"
5225 { echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
5226 echo "${ECHO_T}$ac_cv_kthread" >&6; }
5229 if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no
5230 then
5231 # -pthread, if available, provides the right #defines
5232 # and linker options to make pthread_create available
5233 # Some compilers won't report that they do not support -pthread,
5234 # so we need to run a program to see whether it really made the
5235 # function available.
5236 { echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
5237 echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6; }
5238 if test "${ac_cv_thread+set}" = set; then
5239 echo $ECHO_N "(cached) $ECHO_C" >&6
5240 else
5241 ac_save_cc="$CC"
5242 CC="$CC -pthread"
5243 if test "$cross_compiling" = yes; then
5244 ac_cv_pthread=no
5245 else
5246 cat >conftest.$ac_ext <<_ACEOF
5247 /* confdefs.h. */
5248 _ACEOF
5249 cat confdefs.h >>conftest.$ac_ext
5250 cat >>conftest.$ac_ext <<_ACEOF
5251 /* end confdefs.h. */
5253 #include <pthread.h>
5255 void* routine(void* p){return NULL;}
5257 int main(){
5258 pthread_t p;
5259 if(pthread_create(&p,NULL,routine,NULL)!=0)
5260 return 1;
5261 (void)pthread_detach(p);
5262 return 0;
5265 _ACEOF
5266 rm -f conftest$ac_exeext
5267 if { (ac_try="$ac_link"
5268 case "(($ac_try" in
5269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5270 *) ac_try_echo=$ac_try;;
5271 esac
5272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5273 (eval "$ac_link") 2>&5
5274 ac_status=$?
5275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5276 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5277 { (case "(($ac_try" in
5278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5279 *) ac_try_echo=$ac_try;;
5280 esac
5281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5282 (eval "$ac_try") 2>&5
5283 ac_status=$?
5284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5285 (exit $ac_status); }; }; then
5286 ac_cv_pthread=yes
5287 else
5288 echo "$as_me: program exited with status $ac_status" >&5
5289 echo "$as_me: failed program was:" >&5
5290 sed 's/^/| /' conftest.$ac_ext >&5
5292 ( exit $ac_status )
5293 ac_cv_pthread=no
5295 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5299 CC="$ac_save_cc"
5302 { echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
5303 echo "${ECHO_T}$ac_cv_pthread" >&6; }
5306 # If we have set a CC compiler flag for thread support then
5307 # check if it works for CXX, too.
5308 ac_cv_cxx_thread=no
5309 if test ! -z "$CXX"
5310 then
5311 { echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5
5312 echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6; }
5313 ac_save_cxx="$CXX"
5315 if test "$ac_cv_kpthread" = "yes"
5316 then
5317 CXX="$CXX -Kpthread"
5318 ac_cv_cxx_thread=yes
5319 elif test "$ac_cv_kthread" = "yes"
5320 then
5321 CXX="$CXX -Kthread"
5322 ac_cv_cxx_thread=yes
5323 elif test "$ac_cv_pthread" = "yes"
5324 then
5325 CXX="$CXX -pthread"
5326 ac_cv_cxx_thread=yes
5329 if test $ac_cv_cxx_thread = yes
5330 then
5331 echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext
5332 $CXX -c conftest.$ac_ext 2>&5
5333 if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \
5334 && test -s conftest$ac_exeext && ./conftest$ac_exeext
5335 then
5336 ac_cv_cxx_thread=yes
5337 else
5338 ac_cv_cxx_thread=no
5340 rm -fr conftest*
5342 { echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
5343 echo "${ECHO_T}$ac_cv_cxx_thread" >&6; }
5345 CXX="$ac_save_cxx"
5348 # checks for header files
5349 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5350 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5351 if test "${ac_cv_header_stdc+set}" = set; then
5352 echo $ECHO_N "(cached) $ECHO_C" >&6
5353 else
5354 cat >conftest.$ac_ext <<_ACEOF
5355 /* confdefs.h. */
5356 _ACEOF
5357 cat confdefs.h >>conftest.$ac_ext
5358 cat >>conftest.$ac_ext <<_ACEOF
5359 /* end confdefs.h. */
5360 #include <stdlib.h>
5361 #include <stdarg.h>
5362 #include <string.h>
5363 #include <float.h>
5366 main ()
5370 return 0;
5372 _ACEOF
5373 rm -f conftest.$ac_objext
5374 if { (ac_try="$ac_compile"
5375 case "(($ac_try" in
5376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5377 *) ac_try_echo=$ac_try;;
5378 esac
5379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5380 (eval "$ac_compile") 2>conftest.er1
5381 ac_status=$?
5382 grep -v '^ *+' conftest.er1 >conftest.err
5383 rm -f conftest.er1
5384 cat conftest.err >&5
5385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386 (exit $ac_status); } && {
5387 test -z "$ac_c_werror_flag" ||
5388 test ! -s conftest.err
5389 } && test -s conftest.$ac_objext; then
5390 ac_cv_header_stdc=yes
5391 else
5392 echo "$as_me: failed program was:" >&5
5393 sed 's/^/| /' conftest.$ac_ext >&5
5395 ac_cv_header_stdc=no
5398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5400 if test $ac_cv_header_stdc = yes; then
5401 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5402 cat >conftest.$ac_ext <<_ACEOF
5403 /* confdefs.h. */
5404 _ACEOF
5405 cat confdefs.h >>conftest.$ac_ext
5406 cat >>conftest.$ac_ext <<_ACEOF
5407 /* end confdefs.h. */
5408 #include <string.h>
5410 _ACEOF
5411 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5412 $EGREP "memchr" >/dev/null 2>&1; then
5414 else
5415 ac_cv_header_stdc=no
5417 rm -f conftest*
5421 if test $ac_cv_header_stdc = yes; then
5422 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5423 cat >conftest.$ac_ext <<_ACEOF
5424 /* confdefs.h. */
5425 _ACEOF
5426 cat confdefs.h >>conftest.$ac_ext
5427 cat >>conftest.$ac_ext <<_ACEOF
5428 /* end confdefs.h. */
5429 #include <stdlib.h>
5431 _ACEOF
5432 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5433 $EGREP "free" >/dev/null 2>&1; then
5435 else
5436 ac_cv_header_stdc=no
5438 rm -f conftest*
5442 if test $ac_cv_header_stdc = yes; then
5443 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5444 if test "$cross_compiling" = yes; then
5446 else
5447 cat >conftest.$ac_ext <<_ACEOF
5448 /* confdefs.h. */
5449 _ACEOF
5450 cat confdefs.h >>conftest.$ac_ext
5451 cat >>conftest.$ac_ext <<_ACEOF
5452 /* end confdefs.h. */
5453 #include <ctype.h>
5454 #include <stdlib.h>
5455 #if ((' ' & 0x0FF) == 0x020)
5456 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5457 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5458 #else
5459 # define ISLOWER(c) \
5460 (('a' <= (c) && (c) <= 'i') \
5461 || ('j' <= (c) && (c) <= 'r') \
5462 || ('s' <= (c) && (c) <= 'z'))
5463 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5464 #endif
5466 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5468 main ()
5470 int i;
5471 for (i = 0; i < 256; i++)
5472 if (XOR (islower (i), ISLOWER (i))
5473 || toupper (i) != TOUPPER (i))
5474 return 2;
5475 return 0;
5477 _ACEOF
5478 rm -f conftest$ac_exeext
5479 if { (ac_try="$ac_link"
5480 case "(($ac_try" in
5481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5482 *) ac_try_echo=$ac_try;;
5483 esac
5484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5485 (eval "$ac_link") 2>&5
5486 ac_status=$?
5487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5488 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5489 { (case "(($ac_try" in
5490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5491 *) ac_try_echo=$ac_try;;
5492 esac
5493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5494 (eval "$ac_try") 2>&5
5495 ac_status=$?
5496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5497 (exit $ac_status); }; }; then
5499 else
5500 echo "$as_me: program exited with status $ac_status" >&5
5501 echo "$as_me: failed program was:" >&5
5502 sed 's/^/| /' conftest.$ac_ext >&5
5504 ( exit $ac_status )
5505 ac_cv_header_stdc=no
5507 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5513 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5514 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5515 if test $ac_cv_header_stdc = yes; then
5517 cat >>confdefs.h <<\_ACEOF
5518 #define STDC_HEADERS 1
5519 _ACEOF
5523 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5533 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5534 inttypes.h stdint.h unistd.h
5536 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5537 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5538 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5539 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5540 echo $ECHO_N "(cached) $ECHO_C" >&6
5541 else
5542 cat >conftest.$ac_ext <<_ACEOF
5543 /* confdefs.h. */
5544 _ACEOF
5545 cat confdefs.h >>conftest.$ac_ext
5546 cat >>conftest.$ac_ext <<_ACEOF
5547 /* end confdefs.h. */
5548 $ac_includes_default
5550 #include <$ac_header>
5551 _ACEOF
5552 rm -f conftest.$ac_objext
5553 if { (ac_try="$ac_compile"
5554 case "(($ac_try" in
5555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5556 *) ac_try_echo=$ac_try;;
5557 esac
5558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5559 (eval "$ac_compile") 2>conftest.er1
5560 ac_status=$?
5561 grep -v '^ *+' conftest.er1 >conftest.err
5562 rm -f conftest.er1
5563 cat conftest.err >&5
5564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5565 (exit $ac_status); } && {
5566 test -z "$ac_c_werror_flag" ||
5567 test ! -s conftest.err
5568 } && test -s conftest.$ac_objext; then
5569 eval "$as_ac_Header=yes"
5570 else
5571 echo "$as_me: failed program was:" >&5
5572 sed 's/^/| /' conftest.$ac_ext >&5
5574 eval "$as_ac_Header=no"
5577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5579 ac_res=`eval echo '${'$as_ac_Header'}'`
5580 { echo "$as_me:$LINENO: result: $ac_res" >&5
5581 echo "${ECHO_T}$ac_res" >&6; }
5582 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5583 cat >>confdefs.h <<_ACEOF
5584 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5585 _ACEOF
5589 done
5646 for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \
5647 fcntl.h grp.h \
5648 ieeefp.h io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \
5649 shadow.h signal.h stdint.h stropts.h termios.h thread.h \
5650 unistd.h utime.h \
5651 sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \
5652 sys/lock.h sys/mkdev.h sys/modem.h \
5653 sys/param.h sys/poll.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \
5654 sys/termio.h sys/time.h \
5655 sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \
5656 sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
5657 bluetooth/bluetooth.h linux/tipc.h
5659 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5660 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5661 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5662 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5663 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5664 echo $ECHO_N "(cached) $ECHO_C" >&6
5666 ac_res=`eval echo '${'$as_ac_Header'}'`
5667 { echo "$as_me:$LINENO: result: $ac_res" >&5
5668 echo "${ECHO_T}$ac_res" >&6; }
5669 else
5670 # Is the header compilable?
5671 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5672 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5673 cat >conftest.$ac_ext <<_ACEOF
5674 /* confdefs.h. */
5675 _ACEOF
5676 cat confdefs.h >>conftest.$ac_ext
5677 cat >>conftest.$ac_ext <<_ACEOF
5678 /* end confdefs.h. */
5679 $ac_includes_default
5680 #include <$ac_header>
5681 _ACEOF
5682 rm -f conftest.$ac_objext
5683 if { (ac_try="$ac_compile"
5684 case "(($ac_try" in
5685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5686 *) ac_try_echo=$ac_try;;
5687 esac
5688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5689 (eval "$ac_compile") 2>conftest.er1
5690 ac_status=$?
5691 grep -v '^ *+' conftest.er1 >conftest.err
5692 rm -f conftest.er1
5693 cat conftest.err >&5
5694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5695 (exit $ac_status); } && {
5696 test -z "$ac_c_werror_flag" ||
5697 test ! -s conftest.err
5698 } && test -s conftest.$ac_objext; then
5699 ac_header_compiler=yes
5700 else
5701 echo "$as_me: failed program was:" >&5
5702 sed 's/^/| /' conftest.$ac_ext >&5
5704 ac_header_compiler=no
5707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5708 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5709 echo "${ECHO_T}$ac_header_compiler" >&6; }
5711 # Is the header present?
5712 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5713 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5714 cat >conftest.$ac_ext <<_ACEOF
5715 /* confdefs.h. */
5716 _ACEOF
5717 cat confdefs.h >>conftest.$ac_ext
5718 cat >>conftest.$ac_ext <<_ACEOF
5719 /* end confdefs.h. */
5720 #include <$ac_header>
5721 _ACEOF
5722 if { (ac_try="$ac_cpp conftest.$ac_ext"
5723 case "(($ac_try" in
5724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5725 *) ac_try_echo=$ac_try;;
5726 esac
5727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5728 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5729 ac_status=$?
5730 grep -v '^ *+' conftest.er1 >conftest.err
5731 rm -f conftest.er1
5732 cat conftest.err >&5
5733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5734 (exit $ac_status); } >/dev/null && {
5735 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5736 test ! -s conftest.err
5737 }; then
5738 ac_header_preproc=yes
5739 else
5740 echo "$as_me: failed program was:" >&5
5741 sed 's/^/| /' conftest.$ac_ext >&5
5743 ac_header_preproc=no
5746 rm -f conftest.err conftest.$ac_ext
5747 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5748 echo "${ECHO_T}$ac_header_preproc" >&6; }
5750 # So? What about this header?
5751 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5752 yes:no: )
5753 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5754 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5755 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5756 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5757 ac_header_preproc=yes
5759 no:yes:* )
5760 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5761 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5762 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5763 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5764 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5765 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5766 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5767 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5768 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5769 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5770 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5771 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5772 ( cat <<\_ASBOX
5773 ## -------------------------------------- ##
5774 ## Report this to http://bugs.python.org/ ##
5775 ## -------------------------------------- ##
5776 _ASBOX
5777 ) | sed "s/^/$as_me: WARNING: /" >&2
5779 esac
5780 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5781 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5782 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5783 echo $ECHO_N "(cached) $ECHO_C" >&6
5784 else
5785 eval "$as_ac_Header=\$ac_header_preproc"
5787 ac_res=`eval echo '${'$as_ac_Header'}'`
5788 { echo "$as_me:$LINENO: result: $ac_res" >&5
5789 echo "${ECHO_T}$ac_res" >&6; }
5792 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5793 cat >>confdefs.h <<_ACEOF
5794 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5795 _ACEOF
5799 done
5806 ac_header_dirent=no
5807 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5808 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5809 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5810 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
5811 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5812 echo $ECHO_N "(cached) $ECHO_C" >&6
5813 else
5814 cat >conftest.$ac_ext <<_ACEOF
5815 /* confdefs.h. */
5816 _ACEOF
5817 cat confdefs.h >>conftest.$ac_ext
5818 cat >>conftest.$ac_ext <<_ACEOF
5819 /* end confdefs.h. */
5820 #include <sys/types.h>
5821 #include <$ac_hdr>
5824 main ()
5826 if ((DIR *) 0)
5827 return 0;
5829 return 0;
5831 _ACEOF
5832 rm -f conftest.$ac_objext
5833 if { (ac_try="$ac_compile"
5834 case "(($ac_try" in
5835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5836 *) ac_try_echo=$ac_try;;
5837 esac
5838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5839 (eval "$ac_compile") 2>conftest.er1
5840 ac_status=$?
5841 grep -v '^ *+' conftest.er1 >conftest.err
5842 rm -f conftest.er1
5843 cat conftest.err >&5
5844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5845 (exit $ac_status); } && {
5846 test -z "$ac_c_werror_flag" ||
5847 test ! -s conftest.err
5848 } && test -s conftest.$ac_objext; then
5849 eval "$as_ac_Header=yes"
5850 else
5851 echo "$as_me: failed program was:" >&5
5852 sed 's/^/| /' conftest.$ac_ext >&5
5854 eval "$as_ac_Header=no"
5857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5859 ac_res=`eval echo '${'$as_ac_Header'}'`
5860 { echo "$as_me:$LINENO: result: $ac_res" >&5
5861 echo "${ECHO_T}$ac_res" >&6; }
5862 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5863 cat >>confdefs.h <<_ACEOF
5864 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5865 _ACEOF
5867 ac_header_dirent=$ac_hdr; break
5870 done
5871 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5872 if test $ac_header_dirent = dirent.h; then
5873 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5874 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5875 if test "${ac_cv_search_opendir+set}" = set; then
5876 echo $ECHO_N "(cached) $ECHO_C" >&6
5877 else
5878 ac_func_search_save_LIBS=$LIBS
5879 cat >conftest.$ac_ext <<_ACEOF
5880 /* confdefs.h. */
5881 _ACEOF
5882 cat confdefs.h >>conftest.$ac_ext
5883 cat >>conftest.$ac_ext <<_ACEOF
5884 /* end confdefs.h. */
5886 /* Override any GCC internal prototype to avoid an error.
5887 Use char because int might match the return type of a GCC
5888 builtin and then its argument prototype would still apply. */
5889 #ifdef __cplusplus
5890 extern "C"
5891 #endif
5892 char opendir ();
5894 main ()
5896 return opendir ();
5898 return 0;
5900 _ACEOF
5901 for ac_lib in '' dir; do
5902 if test -z "$ac_lib"; then
5903 ac_res="none required"
5904 else
5905 ac_res=-l$ac_lib
5906 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5908 rm -f conftest.$ac_objext conftest$ac_exeext
5909 if { (ac_try="$ac_link"
5910 case "(($ac_try" in
5911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5912 *) ac_try_echo=$ac_try;;
5913 esac
5914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5915 (eval "$ac_link") 2>conftest.er1
5916 ac_status=$?
5917 grep -v '^ *+' conftest.er1 >conftest.err
5918 rm -f conftest.er1
5919 cat conftest.err >&5
5920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921 (exit $ac_status); } && {
5922 test -z "$ac_c_werror_flag" ||
5923 test ! -s conftest.err
5924 } && test -s conftest$ac_exeext &&
5925 $as_test_x conftest$ac_exeext; then
5926 ac_cv_search_opendir=$ac_res
5927 else
5928 echo "$as_me: failed program was:" >&5
5929 sed 's/^/| /' conftest.$ac_ext >&5
5934 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5935 conftest$ac_exeext
5936 if test "${ac_cv_search_opendir+set}" = set; then
5937 break
5939 done
5940 if test "${ac_cv_search_opendir+set}" = set; then
5942 else
5943 ac_cv_search_opendir=no
5945 rm conftest.$ac_ext
5946 LIBS=$ac_func_search_save_LIBS
5948 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5949 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5950 ac_res=$ac_cv_search_opendir
5951 if test "$ac_res" != no; then
5952 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5956 else
5957 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5958 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5959 if test "${ac_cv_search_opendir+set}" = set; then
5960 echo $ECHO_N "(cached) $ECHO_C" >&6
5961 else
5962 ac_func_search_save_LIBS=$LIBS
5963 cat >conftest.$ac_ext <<_ACEOF
5964 /* confdefs.h. */
5965 _ACEOF
5966 cat confdefs.h >>conftest.$ac_ext
5967 cat >>conftest.$ac_ext <<_ACEOF
5968 /* end confdefs.h. */
5970 /* Override any GCC internal prototype to avoid an error.
5971 Use char because int might match the return type of a GCC
5972 builtin and then its argument prototype would still apply. */
5973 #ifdef __cplusplus
5974 extern "C"
5975 #endif
5976 char opendir ();
5978 main ()
5980 return opendir ();
5982 return 0;
5984 _ACEOF
5985 for ac_lib in '' x; do
5986 if test -z "$ac_lib"; then
5987 ac_res="none required"
5988 else
5989 ac_res=-l$ac_lib
5990 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5992 rm -f conftest.$ac_objext conftest$ac_exeext
5993 if { (ac_try="$ac_link"
5994 case "(($ac_try" in
5995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5996 *) ac_try_echo=$ac_try;;
5997 esac
5998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5999 (eval "$ac_link") 2>conftest.er1
6000 ac_status=$?
6001 grep -v '^ *+' conftest.er1 >conftest.err
6002 rm -f conftest.er1
6003 cat conftest.err >&5
6004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005 (exit $ac_status); } && {
6006 test -z "$ac_c_werror_flag" ||
6007 test ! -s conftest.err
6008 } && test -s conftest$ac_exeext &&
6009 $as_test_x conftest$ac_exeext; then
6010 ac_cv_search_opendir=$ac_res
6011 else
6012 echo "$as_me: failed program was:" >&5
6013 sed 's/^/| /' conftest.$ac_ext >&5
6018 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6019 conftest$ac_exeext
6020 if test "${ac_cv_search_opendir+set}" = set; then
6021 break
6023 done
6024 if test "${ac_cv_search_opendir+set}" = set; then
6026 else
6027 ac_cv_search_opendir=no
6029 rm conftest.$ac_ext
6030 LIBS=$ac_func_search_save_LIBS
6032 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6033 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
6034 ac_res=$ac_cv_search_opendir
6035 if test "$ac_res" != no; then
6036 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6042 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
6043 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
6044 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
6045 echo $ECHO_N "(cached) $ECHO_C" >&6
6046 else
6047 cat >conftest.$ac_ext <<_ACEOF
6048 /* confdefs.h. */
6049 _ACEOF
6050 cat confdefs.h >>conftest.$ac_ext
6051 cat >>conftest.$ac_ext <<_ACEOF
6052 /* end confdefs.h. */
6053 #include <sys/types.h>
6055 main ()
6057 return makedev(0, 0);
6059 return 0;
6061 _ACEOF
6062 rm -f conftest.$ac_objext conftest$ac_exeext
6063 if { (ac_try="$ac_link"
6064 case "(($ac_try" in
6065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6066 *) ac_try_echo=$ac_try;;
6067 esac
6068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6069 (eval "$ac_link") 2>conftest.er1
6070 ac_status=$?
6071 grep -v '^ *+' conftest.er1 >conftest.err
6072 rm -f conftest.er1
6073 cat conftest.err >&5
6074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6075 (exit $ac_status); } && {
6076 test -z "$ac_c_werror_flag" ||
6077 test ! -s conftest.err
6078 } && test -s conftest$ac_exeext &&
6079 $as_test_x conftest$ac_exeext; then
6080 ac_cv_header_sys_types_h_makedev=yes
6081 else
6082 echo "$as_me: failed program was:" >&5
6083 sed 's/^/| /' conftest.$ac_ext >&5
6085 ac_cv_header_sys_types_h_makedev=no
6088 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6089 conftest$ac_exeext conftest.$ac_ext
6092 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
6093 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
6095 if test $ac_cv_header_sys_types_h_makedev = no; then
6096 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6097 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6098 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
6099 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6100 echo $ECHO_N "(cached) $ECHO_C" >&6
6102 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6103 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
6104 else
6105 # Is the header compilable?
6106 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
6107 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
6108 cat >conftest.$ac_ext <<_ACEOF
6109 /* confdefs.h. */
6110 _ACEOF
6111 cat confdefs.h >>conftest.$ac_ext
6112 cat >>conftest.$ac_ext <<_ACEOF
6113 /* end confdefs.h. */
6114 $ac_includes_default
6115 #include <sys/mkdev.h>
6116 _ACEOF
6117 rm -f conftest.$ac_objext
6118 if { (ac_try="$ac_compile"
6119 case "(($ac_try" in
6120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6121 *) ac_try_echo=$ac_try;;
6122 esac
6123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6124 (eval "$ac_compile") 2>conftest.er1
6125 ac_status=$?
6126 grep -v '^ *+' conftest.er1 >conftest.err
6127 rm -f conftest.er1
6128 cat conftest.err >&5
6129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6130 (exit $ac_status); } && {
6131 test -z "$ac_c_werror_flag" ||
6132 test ! -s conftest.err
6133 } && test -s conftest.$ac_objext; then
6134 ac_header_compiler=yes
6135 else
6136 echo "$as_me: failed program was:" >&5
6137 sed 's/^/| /' conftest.$ac_ext >&5
6139 ac_header_compiler=no
6142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6143 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6144 echo "${ECHO_T}$ac_header_compiler" >&6; }
6146 # Is the header present?
6147 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
6148 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
6149 cat >conftest.$ac_ext <<_ACEOF
6150 /* confdefs.h. */
6151 _ACEOF
6152 cat confdefs.h >>conftest.$ac_ext
6153 cat >>conftest.$ac_ext <<_ACEOF
6154 /* end confdefs.h. */
6155 #include <sys/mkdev.h>
6156 _ACEOF
6157 if { (ac_try="$ac_cpp conftest.$ac_ext"
6158 case "(($ac_try" in
6159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6160 *) ac_try_echo=$ac_try;;
6161 esac
6162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6163 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6164 ac_status=$?
6165 grep -v '^ *+' conftest.er1 >conftest.err
6166 rm -f conftest.er1
6167 cat conftest.err >&5
6168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6169 (exit $ac_status); } >/dev/null && {
6170 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6171 test ! -s conftest.err
6172 }; then
6173 ac_header_preproc=yes
6174 else
6175 echo "$as_me: failed program was:" >&5
6176 sed 's/^/| /' conftest.$ac_ext >&5
6178 ac_header_preproc=no
6181 rm -f conftest.err conftest.$ac_ext
6182 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6183 echo "${ECHO_T}$ac_header_preproc" >&6; }
6185 # So? What about this header?
6186 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6187 yes:no: )
6188 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
6189 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6190 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
6191 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
6192 ac_header_preproc=yes
6194 no:yes:* )
6195 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
6196 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
6197 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
6198 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
6199 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
6200 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
6201 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
6202 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
6203 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
6204 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
6205 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
6206 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
6207 ( cat <<\_ASBOX
6208 ## -------------------------------------- ##
6209 ## Report this to http://bugs.python.org/ ##
6210 ## -------------------------------------- ##
6211 _ASBOX
6212 ) | sed "s/^/$as_me: WARNING: /" >&2
6214 esac
6215 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6216 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
6217 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6218 echo $ECHO_N "(cached) $ECHO_C" >&6
6219 else
6220 ac_cv_header_sys_mkdev_h=$ac_header_preproc
6222 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6223 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
6226 if test $ac_cv_header_sys_mkdev_h = yes; then
6228 cat >>confdefs.h <<\_ACEOF
6229 #define MAJOR_IN_MKDEV 1
6230 _ACEOF
6236 if test $ac_cv_header_sys_mkdev_h = no; then
6237 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6238 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6239 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6240 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6241 echo $ECHO_N "(cached) $ECHO_C" >&6
6243 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6244 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6245 else
6246 # Is the header compilable?
6247 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
6248 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
6249 cat >conftest.$ac_ext <<_ACEOF
6250 /* confdefs.h. */
6251 _ACEOF
6252 cat confdefs.h >>conftest.$ac_ext
6253 cat >>conftest.$ac_ext <<_ACEOF
6254 /* end confdefs.h. */
6255 $ac_includes_default
6256 #include <sys/sysmacros.h>
6257 _ACEOF
6258 rm -f conftest.$ac_objext
6259 if { (ac_try="$ac_compile"
6260 case "(($ac_try" in
6261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6262 *) ac_try_echo=$ac_try;;
6263 esac
6264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6265 (eval "$ac_compile") 2>conftest.er1
6266 ac_status=$?
6267 grep -v '^ *+' conftest.er1 >conftest.err
6268 rm -f conftest.er1
6269 cat conftest.err >&5
6270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6271 (exit $ac_status); } && {
6272 test -z "$ac_c_werror_flag" ||
6273 test ! -s conftest.err
6274 } && test -s conftest.$ac_objext; then
6275 ac_header_compiler=yes
6276 else
6277 echo "$as_me: failed program was:" >&5
6278 sed 's/^/| /' conftest.$ac_ext >&5
6280 ac_header_compiler=no
6283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6284 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6285 echo "${ECHO_T}$ac_header_compiler" >&6; }
6287 # Is the header present?
6288 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
6289 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
6290 cat >conftest.$ac_ext <<_ACEOF
6291 /* confdefs.h. */
6292 _ACEOF
6293 cat confdefs.h >>conftest.$ac_ext
6294 cat >>conftest.$ac_ext <<_ACEOF
6295 /* end confdefs.h. */
6296 #include <sys/sysmacros.h>
6297 _ACEOF
6298 if { (ac_try="$ac_cpp conftest.$ac_ext"
6299 case "(($ac_try" in
6300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6301 *) ac_try_echo=$ac_try;;
6302 esac
6303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6304 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6305 ac_status=$?
6306 grep -v '^ *+' conftest.er1 >conftest.err
6307 rm -f conftest.er1
6308 cat conftest.err >&5
6309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6310 (exit $ac_status); } >/dev/null && {
6311 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6312 test ! -s conftest.err
6313 }; then
6314 ac_header_preproc=yes
6315 else
6316 echo "$as_me: failed program was:" >&5
6317 sed 's/^/| /' conftest.$ac_ext >&5
6319 ac_header_preproc=no
6322 rm -f conftest.err conftest.$ac_ext
6323 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6324 echo "${ECHO_T}$ac_header_preproc" >&6; }
6326 # So? What about this header?
6327 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6328 yes:no: )
6329 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
6330 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6331 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
6332 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
6333 ac_header_preproc=yes
6335 no:yes:* )
6336 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
6337 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
6338 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
6339 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
6340 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
6341 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
6342 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
6343 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
6344 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
6345 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
6346 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
6347 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
6348 ( cat <<\_ASBOX
6349 ## -------------------------------------- ##
6350 ## Report this to http://bugs.python.org/ ##
6351 ## -------------------------------------- ##
6352 _ASBOX
6353 ) | sed "s/^/$as_me: WARNING: /" >&2
6355 esac
6356 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6357 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6358 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6359 echo $ECHO_N "(cached) $ECHO_C" >&6
6360 else
6361 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
6363 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6364 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6367 if test $ac_cv_header_sys_sysmacros_h = yes; then
6369 cat >>confdefs.h <<\_ACEOF
6370 #define MAJOR_IN_SYSMACROS 1
6371 _ACEOF
6380 # On Solaris, term.h requires curses.h
6382 for ac_header in term.h
6384 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6385 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6386 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6387 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6388 echo $ECHO_N "(cached) $ECHO_C" >&6
6389 else
6390 cat >conftest.$ac_ext <<_ACEOF
6391 /* confdefs.h. */
6392 _ACEOF
6393 cat confdefs.h >>conftest.$ac_ext
6394 cat >>conftest.$ac_ext <<_ACEOF
6395 /* end confdefs.h. */
6397 #ifdef HAVE_CURSES_H
6398 #include <curses.h>
6399 #endif
6402 #include <$ac_header>
6403 _ACEOF
6404 rm -f conftest.$ac_objext
6405 if { (ac_try="$ac_compile"
6406 case "(($ac_try" in
6407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6408 *) ac_try_echo=$ac_try;;
6409 esac
6410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6411 (eval "$ac_compile") 2>conftest.er1
6412 ac_status=$?
6413 grep -v '^ *+' conftest.er1 >conftest.err
6414 rm -f conftest.er1
6415 cat conftest.err >&5
6416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6417 (exit $ac_status); } && {
6418 test -z "$ac_c_werror_flag" ||
6419 test ! -s conftest.err
6420 } && test -s conftest.$ac_objext; then
6421 eval "$as_ac_Header=yes"
6422 else
6423 echo "$as_me: failed program was:" >&5
6424 sed 's/^/| /' conftest.$ac_ext >&5
6426 eval "$as_ac_Header=no"
6429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6431 ac_res=`eval echo '${'$as_ac_Header'}'`
6432 { echo "$as_me:$LINENO: result: $ac_res" >&5
6433 echo "${ECHO_T}$ac_res" >&6; }
6434 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6435 cat >>confdefs.h <<_ACEOF
6436 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6437 _ACEOF
6441 done
6444 # On Linux, netlink.h requires asm/types.h
6446 for ac_header in linux/netlink.h
6448 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6449 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6450 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6451 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6452 echo $ECHO_N "(cached) $ECHO_C" >&6
6453 else
6454 cat >conftest.$ac_ext <<_ACEOF
6455 /* confdefs.h. */
6456 _ACEOF
6457 cat confdefs.h >>conftest.$ac_ext
6458 cat >>conftest.$ac_ext <<_ACEOF
6459 /* end confdefs.h. */
6461 #ifdef HAVE_ASM_TYPES_H
6462 #include <asm/types.h>
6463 #endif
6464 #ifdef HAVE_SYS_SOCKET_H
6465 #include <sys/socket.h>
6466 #endif
6469 #include <$ac_header>
6470 _ACEOF
6471 rm -f conftest.$ac_objext
6472 if { (ac_try="$ac_compile"
6473 case "(($ac_try" in
6474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6475 *) ac_try_echo=$ac_try;;
6476 esac
6477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6478 (eval "$ac_compile") 2>conftest.er1
6479 ac_status=$?
6480 grep -v '^ *+' conftest.er1 >conftest.err
6481 rm -f conftest.er1
6482 cat conftest.err >&5
6483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6484 (exit $ac_status); } && {
6485 test -z "$ac_c_werror_flag" ||
6486 test ! -s conftest.err
6487 } && test -s conftest.$ac_objext; then
6488 eval "$as_ac_Header=yes"
6489 else
6490 echo "$as_me: failed program was:" >&5
6491 sed 's/^/| /' conftest.$ac_ext >&5
6493 eval "$as_ac_Header=no"
6496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6498 ac_res=`eval echo '${'$as_ac_Header'}'`
6499 { echo "$as_me:$LINENO: result: $ac_res" >&5
6500 echo "${ECHO_T}$ac_res" >&6; }
6501 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6502 cat >>confdefs.h <<_ACEOF
6503 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6504 _ACEOF
6508 done
6511 # checks for typedefs
6512 was_it_defined=no
6513 { echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
6514 echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6; }
6515 cat >conftest.$ac_ext <<_ACEOF
6516 /* confdefs.h. */
6517 _ACEOF
6518 cat confdefs.h >>conftest.$ac_ext
6519 cat >>conftest.$ac_ext <<_ACEOF
6520 /* end confdefs.h. */
6521 #include <time.h>
6523 _ACEOF
6524 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6525 $EGREP "clock_t" >/dev/null 2>&1; then
6526 was_it_defined=yes
6527 else
6530 cat >>confdefs.h <<\_ACEOF
6531 #define clock_t long
6532 _ACEOF
6536 rm -f conftest*
6538 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
6539 echo "${ECHO_T}$was_it_defined" >&6; }
6541 # Check whether using makedev requires defining _OSF_SOURCE
6542 { echo "$as_me:$LINENO: checking for makedev" >&5
6543 echo $ECHO_N "checking for makedev... $ECHO_C" >&6; }
6544 cat >conftest.$ac_ext <<_ACEOF
6545 /* confdefs.h. */
6546 _ACEOF
6547 cat confdefs.h >>conftest.$ac_ext
6548 cat >>conftest.$ac_ext <<_ACEOF
6549 /* end confdefs.h. */
6550 #include <sys/types.h>
6552 main ()
6554 makedev(0, 0)
6556 return 0;
6558 _ACEOF
6559 rm -f conftest.$ac_objext conftest$ac_exeext
6560 if { (ac_try="$ac_link"
6561 case "(($ac_try" in
6562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6563 *) ac_try_echo=$ac_try;;
6564 esac
6565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6566 (eval "$ac_link") 2>conftest.er1
6567 ac_status=$?
6568 grep -v '^ *+' conftest.er1 >conftest.err
6569 rm -f conftest.er1
6570 cat conftest.err >&5
6571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6572 (exit $ac_status); } && {
6573 test -z "$ac_c_werror_flag" ||
6574 test ! -s conftest.err
6575 } && test -s conftest$ac_exeext &&
6576 $as_test_x conftest$ac_exeext; then
6577 ac_cv_has_makedev=yes
6578 else
6579 echo "$as_me: failed program was:" >&5
6580 sed 's/^/| /' conftest.$ac_ext >&5
6582 ac_cv_has_makedev=no
6585 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6586 conftest$ac_exeext conftest.$ac_ext
6587 if test "$ac_cv_has_makedev" = "no"; then
6588 # we didn't link, try if _OSF_SOURCE will allow us to link
6589 cat >conftest.$ac_ext <<_ACEOF
6590 /* confdefs.h. */
6591 _ACEOF
6592 cat confdefs.h >>conftest.$ac_ext
6593 cat >>conftest.$ac_ext <<_ACEOF
6594 /* end confdefs.h. */
6596 #define _OSF_SOURCE 1
6597 #include <sys/types.h>
6600 main ()
6602 makedev(0, 0)
6604 return 0;
6606 _ACEOF
6607 rm -f conftest.$ac_objext conftest$ac_exeext
6608 if { (ac_try="$ac_link"
6609 case "(($ac_try" in
6610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6611 *) ac_try_echo=$ac_try;;
6612 esac
6613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6614 (eval "$ac_link") 2>conftest.er1
6615 ac_status=$?
6616 grep -v '^ *+' conftest.er1 >conftest.err
6617 rm -f conftest.er1
6618 cat conftest.err >&5
6619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6620 (exit $ac_status); } && {
6621 test -z "$ac_c_werror_flag" ||
6622 test ! -s conftest.err
6623 } && test -s conftest$ac_exeext &&
6624 $as_test_x conftest$ac_exeext; then
6625 ac_cv_has_makedev=yes
6626 else
6627 echo "$as_me: failed program was:" >&5
6628 sed 's/^/| /' conftest.$ac_ext >&5
6630 ac_cv_has_makedev=no
6633 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6634 conftest$ac_exeext conftest.$ac_ext
6635 if test "$ac_cv_has_makedev" = "yes"; then
6637 cat >>confdefs.h <<\_ACEOF
6638 #define _OSF_SOURCE 1
6639 _ACEOF
6643 { echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
6644 echo "${ECHO_T}$ac_cv_has_makedev" >&6; }
6645 if test "$ac_cv_has_makedev" = "yes"; then
6647 cat >>confdefs.h <<\_ACEOF
6648 #define HAVE_MAKEDEV 1
6649 _ACEOF
6653 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
6654 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
6655 # defined, but the compiler does not support pragma redefine_extname,
6656 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
6657 # structures (such as rlimit64) without declaring them. As a
6658 # work-around, disable LFS on such configurations
6660 use_lfs=yes
6661 { echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
6662 echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6; }
6663 cat >conftest.$ac_ext <<_ACEOF
6664 /* confdefs.h. */
6665 _ACEOF
6666 cat confdefs.h >>conftest.$ac_ext
6667 cat >>conftest.$ac_ext <<_ACEOF
6668 /* end confdefs.h. */
6670 #define _LARGEFILE_SOURCE 1
6671 #define _FILE_OFFSET_BITS 64
6672 #include <sys/resource.h>
6675 main ()
6677 struct rlimit foo;
6679 return 0;
6681 _ACEOF
6682 rm -f conftest.$ac_objext
6683 if { (ac_try="$ac_compile"
6684 case "(($ac_try" in
6685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6686 *) ac_try_echo=$ac_try;;
6687 esac
6688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6689 (eval "$ac_compile") 2>conftest.er1
6690 ac_status=$?
6691 grep -v '^ *+' conftest.er1 >conftest.err
6692 rm -f conftest.er1
6693 cat conftest.err >&5
6694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6695 (exit $ac_status); } && {
6696 test -z "$ac_c_werror_flag" ||
6697 test ! -s conftest.err
6698 } && test -s conftest.$ac_objext; then
6699 sol_lfs_bug=no
6700 else
6701 echo "$as_me: failed program was:" >&5
6702 sed 's/^/| /' conftest.$ac_ext >&5
6704 sol_lfs_bug=yes
6707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6708 { echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
6709 echo "${ECHO_T}$sol_lfs_bug" >&6; }
6710 if test "$sol_lfs_bug" = "yes"; then
6711 use_lfs=no
6714 if test "$use_lfs" = "yes"; then
6715 # Two defines needed to enable largefile support on various platforms
6716 # These may affect some typedefs
6718 cat >>confdefs.h <<\_ACEOF
6719 #define _LARGEFILE_SOURCE 1
6720 _ACEOF
6723 cat >>confdefs.h <<\_ACEOF
6724 #define _FILE_OFFSET_BITS 64
6725 _ACEOF
6729 # Add some code to confdefs.h so that the test for off_t works on SCO
6730 cat >> confdefs.h <<\EOF
6731 #if defined(SCO_DS)
6732 #undef _OFF_T
6733 #endif
6736 # Type availability checks
6737 { echo "$as_me:$LINENO: checking for mode_t" >&5
6738 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
6739 if test "${ac_cv_type_mode_t+set}" = set; then
6740 echo $ECHO_N "(cached) $ECHO_C" >&6
6741 else
6742 cat >conftest.$ac_ext <<_ACEOF
6743 /* confdefs.h. */
6744 _ACEOF
6745 cat confdefs.h >>conftest.$ac_ext
6746 cat >>conftest.$ac_ext <<_ACEOF
6747 /* end confdefs.h. */
6748 $ac_includes_default
6749 typedef mode_t ac__type_new_;
6751 main ()
6753 if ((ac__type_new_ *) 0)
6754 return 0;
6755 if (sizeof (ac__type_new_))
6756 return 0;
6758 return 0;
6760 _ACEOF
6761 rm -f conftest.$ac_objext
6762 if { (ac_try="$ac_compile"
6763 case "(($ac_try" in
6764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6765 *) ac_try_echo=$ac_try;;
6766 esac
6767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6768 (eval "$ac_compile") 2>conftest.er1
6769 ac_status=$?
6770 grep -v '^ *+' conftest.er1 >conftest.err
6771 rm -f conftest.er1
6772 cat conftest.err >&5
6773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6774 (exit $ac_status); } && {
6775 test -z "$ac_c_werror_flag" ||
6776 test ! -s conftest.err
6777 } && test -s conftest.$ac_objext; then
6778 ac_cv_type_mode_t=yes
6779 else
6780 echo "$as_me: failed program was:" >&5
6781 sed 's/^/| /' conftest.$ac_ext >&5
6783 ac_cv_type_mode_t=no
6786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6788 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6789 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
6790 if test $ac_cv_type_mode_t = yes; then
6792 else
6794 cat >>confdefs.h <<_ACEOF
6795 #define mode_t int
6796 _ACEOF
6800 { echo "$as_me:$LINENO: checking for off_t" >&5
6801 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
6802 if test "${ac_cv_type_off_t+set}" = set; then
6803 echo $ECHO_N "(cached) $ECHO_C" >&6
6804 else
6805 cat >conftest.$ac_ext <<_ACEOF
6806 /* confdefs.h. */
6807 _ACEOF
6808 cat confdefs.h >>conftest.$ac_ext
6809 cat >>conftest.$ac_ext <<_ACEOF
6810 /* end confdefs.h. */
6811 $ac_includes_default
6812 typedef off_t ac__type_new_;
6814 main ()
6816 if ((ac__type_new_ *) 0)
6817 return 0;
6818 if (sizeof (ac__type_new_))
6819 return 0;
6821 return 0;
6823 _ACEOF
6824 rm -f conftest.$ac_objext
6825 if { (ac_try="$ac_compile"
6826 case "(($ac_try" in
6827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6828 *) ac_try_echo=$ac_try;;
6829 esac
6830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6831 (eval "$ac_compile") 2>conftest.er1
6832 ac_status=$?
6833 grep -v '^ *+' conftest.er1 >conftest.err
6834 rm -f conftest.er1
6835 cat conftest.err >&5
6836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6837 (exit $ac_status); } && {
6838 test -z "$ac_c_werror_flag" ||
6839 test ! -s conftest.err
6840 } && test -s conftest.$ac_objext; then
6841 ac_cv_type_off_t=yes
6842 else
6843 echo "$as_me: failed program was:" >&5
6844 sed 's/^/| /' conftest.$ac_ext >&5
6846 ac_cv_type_off_t=no
6849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6851 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6852 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
6853 if test $ac_cv_type_off_t = yes; then
6855 else
6857 cat >>confdefs.h <<_ACEOF
6858 #define off_t long int
6859 _ACEOF
6863 { echo "$as_me:$LINENO: checking for pid_t" >&5
6864 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
6865 if test "${ac_cv_type_pid_t+set}" = set; then
6866 echo $ECHO_N "(cached) $ECHO_C" >&6
6867 else
6868 cat >conftest.$ac_ext <<_ACEOF
6869 /* confdefs.h. */
6870 _ACEOF
6871 cat confdefs.h >>conftest.$ac_ext
6872 cat >>conftest.$ac_ext <<_ACEOF
6873 /* end confdefs.h. */
6874 $ac_includes_default
6875 typedef pid_t ac__type_new_;
6877 main ()
6879 if ((ac__type_new_ *) 0)
6880 return 0;
6881 if (sizeof (ac__type_new_))
6882 return 0;
6884 return 0;
6886 _ACEOF
6887 rm -f conftest.$ac_objext
6888 if { (ac_try="$ac_compile"
6889 case "(($ac_try" in
6890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6891 *) ac_try_echo=$ac_try;;
6892 esac
6893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6894 (eval "$ac_compile") 2>conftest.er1
6895 ac_status=$?
6896 grep -v '^ *+' conftest.er1 >conftest.err
6897 rm -f conftest.er1
6898 cat conftest.err >&5
6899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6900 (exit $ac_status); } && {
6901 test -z "$ac_c_werror_flag" ||
6902 test ! -s conftest.err
6903 } && test -s conftest.$ac_objext; then
6904 ac_cv_type_pid_t=yes
6905 else
6906 echo "$as_me: failed program was:" >&5
6907 sed 's/^/| /' conftest.$ac_ext >&5
6909 ac_cv_type_pid_t=no
6912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6914 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6915 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
6916 if test $ac_cv_type_pid_t = yes; then
6918 else
6920 cat >>confdefs.h <<_ACEOF
6921 #define pid_t int
6922 _ACEOF
6926 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6927 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
6928 if test "${ac_cv_type_signal+set}" = set; then
6929 echo $ECHO_N "(cached) $ECHO_C" >&6
6930 else
6931 cat >conftest.$ac_ext <<_ACEOF
6932 /* confdefs.h. */
6933 _ACEOF
6934 cat confdefs.h >>conftest.$ac_ext
6935 cat >>conftest.$ac_ext <<_ACEOF
6936 /* end confdefs.h. */
6937 #include <sys/types.h>
6938 #include <signal.h>
6941 main ()
6943 return *(signal (0, 0)) (0) == 1;
6945 return 0;
6947 _ACEOF
6948 rm -f conftest.$ac_objext
6949 if { (ac_try="$ac_compile"
6950 case "(($ac_try" in
6951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6952 *) ac_try_echo=$ac_try;;
6953 esac
6954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6955 (eval "$ac_compile") 2>conftest.er1
6956 ac_status=$?
6957 grep -v '^ *+' conftest.er1 >conftest.err
6958 rm -f conftest.er1
6959 cat conftest.err >&5
6960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6961 (exit $ac_status); } && {
6962 test -z "$ac_c_werror_flag" ||
6963 test ! -s conftest.err
6964 } && test -s conftest.$ac_objext; then
6965 ac_cv_type_signal=int
6966 else
6967 echo "$as_me: failed program was:" >&5
6968 sed 's/^/| /' conftest.$ac_ext >&5
6970 ac_cv_type_signal=void
6973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6975 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6976 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
6978 cat >>confdefs.h <<_ACEOF
6979 #define RETSIGTYPE $ac_cv_type_signal
6980 _ACEOF
6983 { echo "$as_me:$LINENO: checking for size_t" >&5
6984 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
6985 if test "${ac_cv_type_size_t+set}" = set; then
6986 echo $ECHO_N "(cached) $ECHO_C" >&6
6987 else
6988 cat >conftest.$ac_ext <<_ACEOF
6989 /* confdefs.h. */
6990 _ACEOF
6991 cat confdefs.h >>conftest.$ac_ext
6992 cat >>conftest.$ac_ext <<_ACEOF
6993 /* end confdefs.h. */
6994 $ac_includes_default
6995 typedef size_t ac__type_new_;
6997 main ()
6999 if ((ac__type_new_ *) 0)
7000 return 0;
7001 if (sizeof (ac__type_new_))
7002 return 0;
7004 return 0;
7006 _ACEOF
7007 rm -f conftest.$ac_objext
7008 if { (ac_try="$ac_compile"
7009 case "(($ac_try" in
7010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7011 *) ac_try_echo=$ac_try;;
7012 esac
7013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7014 (eval "$ac_compile") 2>conftest.er1
7015 ac_status=$?
7016 grep -v '^ *+' conftest.er1 >conftest.err
7017 rm -f conftest.er1
7018 cat conftest.err >&5
7019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7020 (exit $ac_status); } && {
7021 test -z "$ac_c_werror_flag" ||
7022 test ! -s conftest.err
7023 } && test -s conftest.$ac_objext; then
7024 ac_cv_type_size_t=yes
7025 else
7026 echo "$as_me: failed program was:" >&5
7027 sed 's/^/| /' conftest.$ac_ext >&5
7029 ac_cv_type_size_t=no
7032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7034 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7035 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
7036 if test $ac_cv_type_size_t = yes; then
7038 else
7040 cat >>confdefs.h <<_ACEOF
7041 #define size_t unsigned int
7042 _ACEOF
7046 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7047 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
7048 if test "${ac_cv_type_uid_t+set}" = set; then
7049 echo $ECHO_N "(cached) $ECHO_C" >&6
7050 else
7051 cat >conftest.$ac_ext <<_ACEOF
7052 /* confdefs.h. */
7053 _ACEOF
7054 cat confdefs.h >>conftest.$ac_ext
7055 cat >>conftest.$ac_ext <<_ACEOF
7056 /* end confdefs.h. */
7057 #include <sys/types.h>
7059 _ACEOF
7060 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7061 $EGREP "uid_t" >/dev/null 2>&1; then
7062 ac_cv_type_uid_t=yes
7063 else
7064 ac_cv_type_uid_t=no
7066 rm -f conftest*
7069 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7070 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
7071 if test $ac_cv_type_uid_t = no; then
7073 cat >>confdefs.h <<\_ACEOF
7074 #define uid_t int
7075 _ACEOF
7078 cat >>confdefs.h <<\_ACEOF
7079 #define gid_t int
7080 _ACEOF
7085 { echo "$as_me:$LINENO: checking for uint32_t" >&5
7086 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
7087 if test "${ac_cv_c_uint32_t+set}" = set; then
7088 echo $ECHO_N "(cached) $ECHO_C" >&6
7089 else
7090 ac_cv_c_uint32_t=no
7091 for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
7092 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7093 cat >conftest.$ac_ext <<_ACEOF
7094 /* confdefs.h. */
7095 _ACEOF
7096 cat confdefs.h >>conftest.$ac_ext
7097 cat >>conftest.$ac_ext <<_ACEOF
7098 /* end confdefs.h. */
7099 $ac_includes_default
7101 main ()
7103 static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
7104 test_array [0] = 0
7107 return 0;
7109 _ACEOF
7110 rm -f conftest.$ac_objext
7111 if { (ac_try="$ac_compile"
7112 case "(($ac_try" in
7113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7114 *) ac_try_echo=$ac_try;;
7115 esac
7116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7117 (eval "$ac_compile") 2>conftest.er1
7118 ac_status=$?
7119 grep -v '^ *+' conftest.er1 >conftest.err
7120 rm -f conftest.er1
7121 cat conftest.err >&5
7122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7123 (exit $ac_status); } && {
7124 test -z "$ac_c_werror_flag" ||
7125 test ! -s conftest.err
7126 } && test -s conftest.$ac_objext; then
7127 case $ac_type in
7128 uint32_t) ac_cv_c_uint32_t=yes ;;
7129 *) ac_cv_c_uint32_t=$ac_type ;;
7130 esac
7132 else
7133 echo "$as_me: failed program was:" >&5
7134 sed 's/^/| /' conftest.$ac_ext >&5
7139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7140 test "$ac_cv_c_uint32_t" != no && break
7141 done
7143 { echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
7144 echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; }
7145 case $ac_cv_c_uint32_t in #(
7146 no|yes) ;; #(
7149 cat >>confdefs.h <<\_ACEOF
7150 #define _UINT32_T 1
7151 _ACEOF
7154 cat >>confdefs.h <<_ACEOF
7155 #define uint32_t $ac_cv_c_uint32_t
7156 _ACEOF
7158 esac
7161 { echo "$as_me:$LINENO: checking for uint64_t" >&5
7162 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
7163 if test "${ac_cv_c_uint64_t+set}" = set; then
7164 echo $ECHO_N "(cached) $ECHO_C" >&6
7165 else
7166 ac_cv_c_uint64_t=no
7167 for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \
7168 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7169 cat >conftest.$ac_ext <<_ACEOF
7170 /* confdefs.h. */
7171 _ACEOF
7172 cat confdefs.h >>conftest.$ac_ext
7173 cat >>conftest.$ac_ext <<_ACEOF
7174 /* end confdefs.h. */
7175 $ac_includes_default
7177 main ()
7179 static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)];
7180 test_array [0] = 0
7183 return 0;
7185 _ACEOF
7186 rm -f conftest.$ac_objext
7187 if { (ac_try="$ac_compile"
7188 case "(($ac_try" in
7189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7190 *) ac_try_echo=$ac_try;;
7191 esac
7192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7193 (eval "$ac_compile") 2>conftest.er1
7194 ac_status=$?
7195 grep -v '^ *+' conftest.er1 >conftest.err
7196 rm -f conftest.er1
7197 cat conftest.err >&5
7198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7199 (exit $ac_status); } && {
7200 test -z "$ac_c_werror_flag" ||
7201 test ! -s conftest.err
7202 } && test -s conftest.$ac_objext; then
7203 case $ac_type in
7204 uint64_t) ac_cv_c_uint64_t=yes ;;
7205 *) ac_cv_c_uint64_t=$ac_type ;;
7206 esac
7208 else
7209 echo "$as_me: failed program was:" >&5
7210 sed 's/^/| /' conftest.$ac_ext >&5
7215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7216 test "$ac_cv_c_uint64_t" != no && break
7217 done
7219 { echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5
7220 echo "${ECHO_T}$ac_cv_c_uint64_t" >&6; }
7221 case $ac_cv_c_uint64_t in #(
7222 no|yes) ;; #(
7225 cat >>confdefs.h <<\_ACEOF
7226 #define _UINT64_T 1
7227 _ACEOF
7230 cat >>confdefs.h <<_ACEOF
7231 #define uint64_t $ac_cv_c_uint64_t
7232 _ACEOF
7234 esac
7237 { echo "$as_me:$LINENO: checking for int32_t" >&5
7238 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
7239 if test "${ac_cv_c_int32_t+set}" = set; then
7240 echo $ECHO_N "(cached) $ECHO_C" >&6
7241 else
7242 ac_cv_c_int32_t=no
7243 for ac_type in 'int32_t' 'int' 'long int' \
7244 'long long int' 'short int' 'signed char'; do
7245 cat >conftest.$ac_ext <<_ACEOF
7246 /* confdefs.h. */
7247 _ACEOF
7248 cat confdefs.h >>conftest.$ac_ext
7249 cat >>conftest.$ac_ext <<_ACEOF
7250 /* end confdefs.h. */
7251 $ac_includes_default
7253 main ()
7255 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
7256 test_array [0] = 0
7259 return 0;
7261 _ACEOF
7262 rm -f conftest.$ac_objext
7263 if { (ac_try="$ac_compile"
7264 case "(($ac_try" in
7265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7266 *) ac_try_echo=$ac_try;;
7267 esac
7268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7269 (eval "$ac_compile") 2>conftest.er1
7270 ac_status=$?
7271 grep -v '^ *+' conftest.er1 >conftest.err
7272 rm -f conftest.er1
7273 cat conftest.err >&5
7274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7275 (exit $ac_status); } && {
7276 test -z "$ac_c_werror_flag" ||
7277 test ! -s conftest.err
7278 } && test -s conftest.$ac_objext; then
7279 cat >conftest.$ac_ext <<_ACEOF
7280 /* confdefs.h. */
7281 _ACEOF
7282 cat confdefs.h >>conftest.$ac_ext
7283 cat >>conftest.$ac_ext <<_ACEOF
7284 /* end confdefs.h. */
7285 $ac_includes_default
7287 main ()
7289 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1)
7290 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))];
7291 test_array [0] = 0
7294 return 0;
7296 _ACEOF
7297 rm -f conftest.$ac_objext
7298 if { (ac_try="$ac_compile"
7299 case "(($ac_try" in
7300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7301 *) ac_try_echo=$ac_try;;
7302 esac
7303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7304 (eval "$ac_compile") 2>conftest.er1
7305 ac_status=$?
7306 grep -v '^ *+' conftest.er1 >conftest.err
7307 rm -f conftest.er1
7308 cat conftest.err >&5
7309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7310 (exit $ac_status); } && {
7311 test -z "$ac_c_werror_flag" ||
7312 test ! -s conftest.err
7313 } && test -s conftest.$ac_objext; then
7315 else
7316 echo "$as_me: failed program was:" >&5
7317 sed 's/^/| /' conftest.$ac_ext >&5
7319 case $ac_type in
7320 int32_t) ac_cv_c_int32_t=yes ;;
7321 *) ac_cv_c_int32_t=$ac_type ;;
7322 esac
7326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7327 else
7328 echo "$as_me: failed program was:" >&5
7329 sed 's/^/| /' conftest.$ac_ext >&5
7334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7335 test "$ac_cv_c_int32_t" != no && break
7336 done
7338 { echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
7339 echo "${ECHO_T}$ac_cv_c_int32_t" >&6; }
7340 case $ac_cv_c_int32_t in #(
7341 no|yes) ;; #(
7344 cat >>confdefs.h <<_ACEOF
7345 #define int32_t $ac_cv_c_int32_t
7346 _ACEOF
7348 esac
7351 { echo "$as_me:$LINENO: checking for int64_t" >&5
7352 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
7353 if test "${ac_cv_c_int64_t+set}" = set; then
7354 echo $ECHO_N "(cached) $ECHO_C" >&6
7355 else
7356 ac_cv_c_int64_t=no
7357 for ac_type in 'int64_t' 'int' 'long int' \
7358 'long long int' 'short int' 'signed char'; do
7359 cat >conftest.$ac_ext <<_ACEOF
7360 /* confdefs.h. */
7361 _ACEOF
7362 cat confdefs.h >>conftest.$ac_ext
7363 cat >>conftest.$ac_ext <<_ACEOF
7364 /* end confdefs.h. */
7365 $ac_includes_default
7367 main ()
7369 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))];
7370 test_array [0] = 0
7373 return 0;
7375 _ACEOF
7376 rm -f conftest.$ac_objext
7377 if { (ac_try="$ac_compile"
7378 case "(($ac_try" in
7379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7380 *) ac_try_echo=$ac_try;;
7381 esac
7382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7383 (eval "$ac_compile") 2>conftest.er1
7384 ac_status=$?
7385 grep -v '^ *+' conftest.er1 >conftest.err
7386 rm -f conftest.er1
7387 cat conftest.err >&5
7388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389 (exit $ac_status); } && {
7390 test -z "$ac_c_werror_flag" ||
7391 test ! -s conftest.err
7392 } && test -s conftest.$ac_objext; then
7393 cat >conftest.$ac_ext <<_ACEOF
7394 /* confdefs.h. */
7395 _ACEOF
7396 cat confdefs.h >>conftest.$ac_ext
7397 cat >>conftest.$ac_ext <<_ACEOF
7398 /* end confdefs.h. */
7399 $ac_includes_default
7401 main ()
7403 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1)
7404 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))];
7405 test_array [0] = 0
7408 return 0;
7410 _ACEOF
7411 rm -f conftest.$ac_objext
7412 if { (ac_try="$ac_compile"
7413 case "(($ac_try" in
7414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7415 *) ac_try_echo=$ac_try;;
7416 esac
7417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7418 (eval "$ac_compile") 2>conftest.er1
7419 ac_status=$?
7420 grep -v '^ *+' conftest.er1 >conftest.err
7421 rm -f conftest.er1
7422 cat conftest.err >&5
7423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7424 (exit $ac_status); } && {
7425 test -z "$ac_c_werror_flag" ||
7426 test ! -s conftest.err
7427 } && test -s conftest.$ac_objext; then
7429 else
7430 echo "$as_me: failed program was:" >&5
7431 sed 's/^/| /' conftest.$ac_ext >&5
7433 case $ac_type in
7434 int64_t) ac_cv_c_int64_t=yes ;;
7435 *) ac_cv_c_int64_t=$ac_type ;;
7436 esac
7440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7441 else
7442 echo "$as_me: failed program was:" >&5
7443 sed 's/^/| /' conftest.$ac_ext >&5
7448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7449 test "$ac_cv_c_int64_t" != no && break
7450 done
7452 { echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5
7453 echo "${ECHO_T}$ac_cv_c_int64_t" >&6; }
7454 case $ac_cv_c_int64_t in #(
7455 no|yes) ;; #(
7458 cat >>confdefs.h <<_ACEOF
7459 #define int64_t $ac_cv_c_int64_t
7460 _ACEOF
7462 esac
7464 { echo "$as_me:$LINENO: checking for ssize_t" >&5
7465 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
7466 if test "${ac_cv_type_ssize_t+set}" = set; then
7467 echo $ECHO_N "(cached) $ECHO_C" >&6
7468 else
7469 cat >conftest.$ac_ext <<_ACEOF
7470 /* confdefs.h. */
7471 _ACEOF
7472 cat confdefs.h >>conftest.$ac_ext
7473 cat >>conftest.$ac_ext <<_ACEOF
7474 /* end confdefs.h. */
7475 $ac_includes_default
7476 typedef ssize_t ac__type_new_;
7478 main ()
7480 if ((ac__type_new_ *) 0)
7481 return 0;
7482 if (sizeof (ac__type_new_))
7483 return 0;
7485 return 0;
7487 _ACEOF
7488 rm -f conftest.$ac_objext
7489 if { (ac_try="$ac_compile"
7490 case "(($ac_try" in
7491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7492 *) ac_try_echo=$ac_try;;
7493 esac
7494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7495 (eval "$ac_compile") 2>conftest.er1
7496 ac_status=$?
7497 grep -v '^ *+' conftest.er1 >conftest.err
7498 rm -f conftest.er1
7499 cat conftest.err >&5
7500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7501 (exit $ac_status); } && {
7502 test -z "$ac_c_werror_flag" ||
7503 test ! -s conftest.err
7504 } && test -s conftest.$ac_objext; then
7505 ac_cv_type_ssize_t=yes
7506 else
7507 echo "$as_me: failed program was:" >&5
7508 sed 's/^/| /' conftest.$ac_ext >&5
7510 ac_cv_type_ssize_t=no
7513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7515 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
7516 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
7517 if test $ac_cv_type_ssize_t = yes; then
7519 cat >>confdefs.h <<\_ACEOF
7520 #define HAVE_SSIZE_T 1
7521 _ACEOF
7526 # Sizes of various common basic types
7527 # ANSI C requires sizeof(char) == 1, so no need to check it
7528 { echo "$as_me:$LINENO: checking for int" >&5
7529 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
7530 if test "${ac_cv_type_int+set}" = set; then
7531 echo $ECHO_N "(cached) $ECHO_C" >&6
7532 else
7533 cat >conftest.$ac_ext <<_ACEOF
7534 /* confdefs.h. */
7535 _ACEOF
7536 cat confdefs.h >>conftest.$ac_ext
7537 cat >>conftest.$ac_ext <<_ACEOF
7538 /* end confdefs.h. */
7539 $ac_includes_default
7540 typedef int ac__type_new_;
7542 main ()
7544 if ((ac__type_new_ *) 0)
7545 return 0;
7546 if (sizeof (ac__type_new_))
7547 return 0;
7549 return 0;
7551 _ACEOF
7552 rm -f conftest.$ac_objext
7553 if { (ac_try="$ac_compile"
7554 case "(($ac_try" in
7555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7556 *) ac_try_echo=$ac_try;;
7557 esac
7558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7559 (eval "$ac_compile") 2>conftest.er1
7560 ac_status=$?
7561 grep -v '^ *+' conftest.er1 >conftest.err
7562 rm -f conftest.er1
7563 cat conftest.err >&5
7564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7565 (exit $ac_status); } && {
7566 test -z "$ac_c_werror_flag" ||
7567 test ! -s conftest.err
7568 } && test -s conftest.$ac_objext; then
7569 ac_cv_type_int=yes
7570 else
7571 echo "$as_me: failed program was:" >&5
7572 sed 's/^/| /' conftest.$ac_ext >&5
7574 ac_cv_type_int=no
7577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7579 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
7580 echo "${ECHO_T}$ac_cv_type_int" >&6; }
7582 # The cast to long int works around a bug in the HP C Compiler
7583 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7584 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7585 # This bug is HP SR number 8606223364.
7586 { echo "$as_me:$LINENO: checking size of int" >&5
7587 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
7588 if test "${ac_cv_sizeof_int+set}" = set; then
7589 echo $ECHO_N "(cached) $ECHO_C" >&6
7590 else
7591 if test "$cross_compiling" = yes; then
7592 # Depending upon the size, compute the lo and hi bounds.
7593 cat >conftest.$ac_ext <<_ACEOF
7594 /* confdefs.h. */
7595 _ACEOF
7596 cat confdefs.h >>conftest.$ac_ext
7597 cat >>conftest.$ac_ext <<_ACEOF
7598 /* end confdefs.h. */
7599 $ac_includes_default
7600 typedef int ac__type_sizeof_;
7602 main ()
7604 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7605 test_array [0] = 0
7608 return 0;
7610 _ACEOF
7611 rm -f conftest.$ac_objext
7612 if { (ac_try="$ac_compile"
7613 case "(($ac_try" in
7614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7615 *) ac_try_echo=$ac_try;;
7616 esac
7617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7618 (eval "$ac_compile") 2>conftest.er1
7619 ac_status=$?
7620 grep -v '^ *+' conftest.er1 >conftest.err
7621 rm -f conftest.er1
7622 cat conftest.err >&5
7623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7624 (exit $ac_status); } && {
7625 test -z "$ac_c_werror_flag" ||
7626 test ! -s conftest.err
7627 } && test -s conftest.$ac_objext; then
7628 ac_lo=0 ac_mid=0
7629 while :; do
7630 cat >conftest.$ac_ext <<_ACEOF
7631 /* confdefs.h. */
7632 _ACEOF
7633 cat confdefs.h >>conftest.$ac_ext
7634 cat >>conftest.$ac_ext <<_ACEOF
7635 /* end confdefs.h. */
7636 $ac_includes_default
7637 typedef int ac__type_sizeof_;
7639 main ()
7641 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7642 test_array [0] = 0
7645 return 0;
7647 _ACEOF
7648 rm -f conftest.$ac_objext
7649 if { (ac_try="$ac_compile"
7650 case "(($ac_try" in
7651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7652 *) ac_try_echo=$ac_try;;
7653 esac
7654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7655 (eval "$ac_compile") 2>conftest.er1
7656 ac_status=$?
7657 grep -v '^ *+' conftest.er1 >conftest.err
7658 rm -f conftest.er1
7659 cat conftest.err >&5
7660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7661 (exit $ac_status); } && {
7662 test -z "$ac_c_werror_flag" ||
7663 test ! -s conftest.err
7664 } && test -s conftest.$ac_objext; then
7665 ac_hi=$ac_mid; break
7666 else
7667 echo "$as_me: failed program was:" >&5
7668 sed 's/^/| /' conftest.$ac_ext >&5
7670 ac_lo=`expr $ac_mid + 1`
7671 if test $ac_lo -le $ac_mid; then
7672 ac_lo= ac_hi=
7673 break
7675 ac_mid=`expr 2 '*' $ac_mid + 1`
7678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7679 done
7680 else
7681 echo "$as_me: failed program was:" >&5
7682 sed 's/^/| /' conftest.$ac_ext >&5
7684 cat >conftest.$ac_ext <<_ACEOF
7685 /* confdefs.h. */
7686 _ACEOF
7687 cat confdefs.h >>conftest.$ac_ext
7688 cat >>conftest.$ac_ext <<_ACEOF
7689 /* end confdefs.h. */
7690 $ac_includes_default
7691 typedef int ac__type_sizeof_;
7693 main ()
7695 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7696 test_array [0] = 0
7699 return 0;
7701 _ACEOF
7702 rm -f conftest.$ac_objext
7703 if { (ac_try="$ac_compile"
7704 case "(($ac_try" in
7705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7706 *) ac_try_echo=$ac_try;;
7707 esac
7708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7709 (eval "$ac_compile") 2>conftest.er1
7710 ac_status=$?
7711 grep -v '^ *+' conftest.er1 >conftest.err
7712 rm -f conftest.er1
7713 cat conftest.err >&5
7714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7715 (exit $ac_status); } && {
7716 test -z "$ac_c_werror_flag" ||
7717 test ! -s conftest.err
7718 } && test -s conftest.$ac_objext; then
7719 ac_hi=-1 ac_mid=-1
7720 while :; do
7721 cat >conftest.$ac_ext <<_ACEOF
7722 /* confdefs.h. */
7723 _ACEOF
7724 cat confdefs.h >>conftest.$ac_ext
7725 cat >>conftest.$ac_ext <<_ACEOF
7726 /* end confdefs.h. */
7727 $ac_includes_default
7728 typedef int ac__type_sizeof_;
7730 main ()
7732 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7733 test_array [0] = 0
7736 return 0;
7738 _ACEOF
7739 rm -f conftest.$ac_objext
7740 if { (ac_try="$ac_compile"
7741 case "(($ac_try" in
7742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7743 *) ac_try_echo=$ac_try;;
7744 esac
7745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7746 (eval "$ac_compile") 2>conftest.er1
7747 ac_status=$?
7748 grep -v '^ *+' conftest.er1 >conftest.err
7749 rm -f conftest.er1
7750 cat conftest.err >&5
7751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7752 (exit $ac_status); } && {
7753 test -z "$ac_c_werror_flag" ||
7754 test ! -s conftest.err
7755 } && test -s conftest.$ac_objext; then
7756 ac_lo=$ac_mid; break
7757 else
7758 echo "$as_me: failed program was:" >&5
7759 sed 's/^/| /' conftest.$ac_ext >&5
7761 ac_hi=`expr '(' $ac_mid ')' - 1`
7762 if test $ac_mid -le $ac_hi; then
7763 ac_lo= ac_hi=
7764 break
7766 ac_mid=`expr 2 '*' $ac_mid`
7769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7770 done
7771 else
7772 echo "$as_me: failed program was:" >&5
7773 sed 's/^/| /' conftest.$ac_ext >&5
7775 ac_lo= ac_hi=
7778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7782 # Binary search between lo and hi bounds.
7783 while test "x$ac_lo" != "x$ac_hi"; do
7784 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7785 cat >conftest.$ac_ext <<_ACEOF
7786 /* confdefs.h. */
7787 _ACEOF
7788 cat confdefs.h >>conftest.$ac_ext
7789 cat >>conftest.$ac_ext <<_ACEOF
7790 /* end confdefs.h. */
7791 $ac_includes_default
7792 typedef int ac__type_sizeof_;
7794 main ()
7796 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7797 test_array [0] = 0
7800 return 0;
7802 _ACEOF
7803 rm -f conftest.$ac_objext
7804 if { (ac_try="$ac_compile"
7805 case "(($ac_try" in
7806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7807 *) ac_try_echo=$ac_try;;
7808 esac
7809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7810 (eval "$ac_compile") 2>conftest.er1
7811 ac_status=$?
7812 grep -v '^ *+' conftest.er1 >conftest.err
7813 rm -f conftest.er1
7814 cat conftest.err >&5
7815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7816 (exit $ac_status); } && {
7817 test -z "$ac_c_werror_flag" ||
7818 test ! -s conftest.err
7819 } && test -s conftest.$ac_objext; then
7820 ac_hi=$ac_mid
7821 else
7822 echo "$as_me: failed program was:" >&5
7823 sed 's/^/| /' conftest.$ac_ext >&5
7825 ac_lo=`expr '(' $ac_mid ')' + 1`
7828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7829 done
7830 case $ac_lo in
7831 ?*) ac_cv_sizeof_int=$ac_lo;;
7832 '') if test "$ac_cv_type_int" = yes; then
7833 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7834 See \`config.log' for more details." >&5
7835 echo "$as_me: error: cannot compute sizeof (int)
7836 See \`config.log' for more details." >&2;}
7837 { (exit 77); exit 77; }; }
7838 else
7839 ac_cv_sizeof_int=0
7840 fi ;;
7841 esac
7842 else
7843 cat >conftest.$ac_ext <<_ACEOF
7844 /* confdefs.h. */
7845 _ACEOF
7846 cat confdefs.h >>conftest.$ac_ext
7847 cat >>conftest.$ac_ext <<_ACEOF
7848 /* end confdefs.h. */
7849 $ac_includes_default
7850 typedef int ac__type_sizeof_;
7851 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7852 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7853 #include <stdio.h>
7854 #include <stdlib.h>
7856 main ()
7859 FILE *f = fopen ("conftest.val", "w");
7860 if (! f)
7861 return 1;
7862 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7864 long int i = longval ();
7865 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7866 return 1;
7867 fprintf (f, "%ld\n", i);
7869 else
7871 unsigned long int i = ulongval ();
7872 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7873 return 1;
7874 fprintf (f, "%lu\n", i);
7876 return ferror (f) || fclose (f) != 0;
7879 return 0;
7881 _ACEOF
7882 rm -f conftest$ac_exeext
7883 if { (ac_try="$ac_link"
7884 case "(($ac_try" in
7885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7886 *) ac_try_echo=$ac_try;;
7887 esac
7888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7889 (eval "$ac_link") 2>&5
7890 ac_status=$?
7891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7892 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7893 { (case "(($ac_try" in
7894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7895 *) ac_try_echo=$ac_try;;
7896 esac
7897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7898 (eval "$ac_try") 2>&5
7899 ac_status=$?
7900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7901 (exit $ac_status); }; }; then
7902 ac_cv_sizeof_int=`cat conftest.val`
7903 else
7904 echo "$as_me: program exited with status $ac_status" >&5
7905 echo "$as_me: failed program was:" >&5
7906 sed 's/^/| /' conftest.$ac_ext >&5
7908 ( exit $ac_status )
7909 if test "$ac_cv_type_int" = yes; then
7910 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7911 See \`config.log' for more details." >&5
7912 echo "$as_me: error: cannot compute sizeof (int)
7913 See \`config.log' for more details." >&2;}
7914 { (exit 77); exit 77; }; }
7915 else
7916 ac_cv_sizeof_int=0
7919 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7921 rm -f conftest.val
7923 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
7924 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
7928 cat >>confdefs.h <<_ACEOF
7929 #define SIZEOF_INT $ac_cv_sizeof_int
7930 _ACEOF
7933 { echo "$as_me:$LINENO: checking for long" >&5
7934 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
7935 if test "${ac_cv_type_long+set}" = set; then
7936 echo $ECHO_N "(cached) $ECHO_C" >&6
7937 else
7938 cat >conftest.$ac_ext <<_ACEOF
7939 /* confdefs.h. */
7940 _ACEOF
7941 cat confdefs.h >>conftest.$ac_ext
7942 cat >>conftest.$ac_ext <<_ACEOF
7943 /* end confdefs.h. */
7944 $ac_includes_default
7945 typedef long ac__type_new_;
7947 main ()
7949 if ((ac__type_new_ *) 0)
7950 return 0;
7951 if (sizeof (ac__type_new_))
7952 return 0;
7954 return 0;
7956 _ACEOF
7957 rm -f conftest.$ac_objext
7958 if { (ac_try="$ac_compile"
7959 case "(($ac_try" in
7960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7961 *) ac_try_echo=$ac_try;;
7962 esac
7963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7964 (eval "$ac_compile") 2>conftest.er1
7965 ac_status=$?
7966 grep -v '^ *+' conftest.er1 >conftest.err
7967 rm -f conftest.er1
7968 cat conftest.err >&5
7969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7970 (exit $ac_status); } && {
7971 test -z "$ac_c_werror_flag" ||
7972 test ! -s conftest.err
7973 } && test -s conftest.$ac_objext; then
7974 ac_cv_type_long=yes
7975 else
7976 echo "$as_me: failed program was:" >&5
7977 sed 's/^/| /' conftest.$ac_ext >&5
7979 ac_cv_type_long=no
7982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7984 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
7985 echo "${ECHO_T}$ac_cv_type_long" >&6; }
7987 # The cast to long int works around a bug in the HP C Compiler
7988 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7989 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7990 # This bug is HP SR number 8606223364.
7991 { echo "$as_me:$LINENO: checking size of long" >&5
7992 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
7993 if test "${ac_cv_sizeof_long+set}" = set; then
7994 echo $ECHO_N "(cached) $ECHO_C" >&6
7995 else
7996 if test "$cross_compiling" = yes; then
7997 # Depending upon the size, compute the lo and hi bounds.
7998 cat >conftest.$ac_ext <<_ACEOF
7999 /* confdefs.h. */
8000 _ACEOF
8001 cat confdefs.h >>conftest.$ac_ext
8002 cat >>conftest.$ac_ext <<_ACEOF
8003 /* end confdefs.h. */
8004 $ac_includes_default
8005 typedef long ac__type_sizeof_;
8007 main ()
8009 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8010 test_array [0] = 0
8013 return 0;
8015 _ACEOF
8016 rm -f conftest.$ac_objext
8017 if { (ac_try="$ac_compile"
8018 case "(($ac_try" in
8019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8020 *) ac_try_echo=$ac_try;;
8021 esac
8022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8023 (eval "$ac_compile") 2>conftest.er1
8024 ac_status=$?
8025 grep -v '^ *+' conftest.er1 >conftest.err
8026 rm -f conftest.er1
8027 cat conftest.err >&5
8028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8029 (exit $ac_status); } && {
8030 test -z "$ac_c_werror_flag" ||
8031 test ! -s conftest.err
8032 } && test -s conftest.$ac_objext; then
8033 ac_lo=0 ac_mid=0
8034 while :; do
8035 cat >conftest.$ac_ext <<_ACEOF
8036 /* confdefs.h. */
8037 _ACEOF
8038 cat confdefs.h >>conftest.$ac_ext
8039 cat >>conftest.$ac_ext <<_ACEOF
8040 /* end confdefs.h. */
8041 $ac_includes_default
8042 typedef long ac__type_sizeof_;
8044 main ()
8046 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8047 test_array [0] = 0
8050 return 0;
8052 _ACEOF
8053 rm -f conftest.$ac_objext
8054 if { (ac_try="$ac_compile"
8055 case "(($ac_try" in
8056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8057 *) ac_try_echo=$ac_try;;
8058 esac
8059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8060 (eval "$ac_compile") 2>conftest.er1
8061 ac_status=$?
8062 grep -v '^ *+' conftest.er1 >conftest.err
8063 rm -f conftest.er1
8064 cat conftest.err >&5
8065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8066 (exit $ac_status); } && {
8067 test -z "$ac_c_werror_flag" ||
8068 test ! -s conftest.err
8069 } && test -s conftest.$ac_objext; then
8070 ac_hi=$ac_mid; break
8071 else
8072 echo "$as_me: failed program was:" >&5
8073 sed 's/^/| /' conftest.$ac_ext >&5
8075 ac_lo=`expr $ac_mid + 1`
8076 if test $ac_lo -le $ac_mid; then
8077 ac_lo= ac_hi=
8078 break
8080 ac_mid=`expr 2 '*' $ac_mid + 1`
8083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8084 done
8085 else
8086 echo "$as_me: failed program was:" >&5
8087 sed 's/^/| /' conftest.$ac_ext >&5
8089 cat >conftest.$ac_ext <<_ACEOF
8090 /* confdefs.h. */
8091 _ACEOF
8092 cat confdefs.h >>conftest.$ac_ext
8093 cat >>conftest.$ac_ext <<_ACEOF
8094 /* end confdefs.h. */
8095 $ac_includes_default
8096 typedef long ac__type_sizeof_;
8098 main ()
8100 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8101 test_array [0] = 0
8104 return 0;
8106 _ACEOF
8107 rm -f conftest.$ac_objext
8108 if { (ac_try="$ac_compile"
8109 case "(($ac_try" in
8110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8111 *) ac_try_echo=$ac_try;;
8112 esac
8113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8114 (eval "$ac_compile") 2>conftest.er1
8115 ac_status=$?
8116 grep -v '^ *+' conftest.er1 >conftest.err
8117 rm -f conftest.er1
8118 cat conftest.err >&5
8119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8120 (exit $ac_status); } && {
8121 test -z "$ac_c_werror_flag" ||
8122 test ! -s conftest.err
8123 } && test -s conftest.$ac_objext; then
8124 ac_hi=-1 ac_mid=-1
8125 while :; do
8126 cat >conftest.$ac_ext <<_ACEOF
8127 /* confdefs.h. */
8128 _ACEOF
8129 cat confdefs.h >>conftest.$ac_ext
8130 cat >>conftest.$ac_ext <<_ACEOF
8131 /* end confdefs.h. */
8132 $ac_includes_default
8133 typedef long ac__type_sizeof_;
8135 main ()
8137 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8138 test_array [0] = 0
8141 return 0;
8143 _ACEOF
8144 rm -f conftest.$ac_objext
8145 if { (ac_try="$ac_compile"
8146 case "(($ac_try" in
8147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8148 *) ac_try_echo=$ac_try;;
8149 esac
8150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8151 (eval "$ac_compile") 2>conftest.er1
8152 ac_status=$?
8153 grep -v '^ *+' conftest.er1 >conftest.err
8154 rm -f conftest.er1
8155 cat conftest.err >&5
8156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8157 (exit $ac_status); } && {
8158 test -z "$ac_c_werror_flag" ||
8159 test ! -s conftest.err
8160 } && test -s conftest.$ac_objext; then
8161 ac_lo=$ac_mid; break
8162 else
8163 echo "$as_me: failed program was:" >&5
8164 sed 's/^/| /' conftest.$ac_ext >&5
8166 ac_hi=`expr '(' $ac_mid ')' - 1`
8167 if test $ac_mid -le $ac_hi; then
8168 ac_lo= ac_hi=
8169 break
8171 ac_mid=`expr 2 '*' $ac_mid`
8174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8175 done
8176 else
8177 echo "$as_me: failed program was:" >&5
8178 sed 's/^/| /' conftest.$ac_ext >&5
8180 ac_lo= ac_hi=
8183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8187 # Binary search between lo and hi bounds.
8188 while test "x$ac_lo" != "x$ac_hi"; do
8189 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8190 cat >conftest.$ac_ext <<_ACEOF
8191 /* confdefs.h. */
8192 _ACEOF
8193 cat confdefs.h >>conftest.$ac_ext
8194 cat >>conftest.$ac_ext <<_ACEOF
8195 /* end confdefs.h. */
8196 $ac_includes_default
8197 typedef long ac__type_sizeof_;
8199 main ()
8201 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8202 test_array [0] = 0
8205 return 0;
8207 _ACEOF
8208 rm -f conftest.$ac_objext
8209 if { (ac_try="$ac_compile"
8210 case "(($ac_try" in
8211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8212 *) ac_try_echo=$ac_try;;
8213 esac
8214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8215 (eval "$ac_compile") 2>conftest.er1
8216 ac_status=$?
8217 grep -v '^ *+' conftest.er1 >conftest.err
8218 rm -f conftest.er1
8219 cat conftest.err >&5
8220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8221 (exit $ac_status); } && {
8222 test -z "$ac_c_werror_flag" ||
8223 test ! -s conftest.err
8224 } && test -s conftest.$ac_objext; then
8225 ac_hi=$ac_mid
8226 else
8227 echo "$as_me: failed program was:" >&5
8228 sed 's/^/| /' conftest.$ac_ext >&5
8230 ac_lo=`expr '(' $ac_mid ')' + 1`
8233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8234 done
8235 case $ac_lo in
8236 ?*) ac_cv_sizeof_long=$ac_lo;;
8237 '') if test "$ac_cv_type_long" = yes; then
8238 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
8239 See \`config.log' for more details." >&5
8240 echo "$as_me: error: cannot compute sizeof (long)
8241 See \`config.log' for more details." >&2;}
8242 { (exit 77); exit 77; }; }
8243 else
8244 ac_cv_sizeof_long=0
8245 fi ;;
8246 esac
8247 else
8248 cat >conftest.$ac_ext <<_ACEOF
8249 /* confdefs.h. */
8250 _ACEOF
8251 cat confdefs.h >>conftest.$ac_ext
8252 cat >>conftest.$ac_ext <<_ACEOF
8253 /* end confdefs.h. */
8254 $ac_includes_default
8255 typedef long ac__type_sizeof_;
8256 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8257 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8258 #include <stdio.h>
8259 #include <stdlib.h>
8261 main ()
8264 FILE *f = fopen ("conftest.val", "w");
8265 if (! f)
8266 return 1;
8267 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8269 long int i = longval ();
8270 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8271 return 1;
8272 fprintf (f, "%ld\n", i);
8274 else
8276 unsigned long int i = ulongval ();
8277 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8278 return 1;
8279 fprintf (f, "%lu\n", i);
8281 return ferror (f) || fclose (f) != 0;
8284 return 0;
8286 _ACEOF
8287 rm -f conftest$ac_exeext
8288 if { (ac_try="$ac_link"
8289 case "(($ac_try" in
8290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8291 *) ac_try_echo=$ac_try;;
8292 esac
8293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8294 (eval "$ac_link") 2>&5
8295 ac_status=$?
8296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8297 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8298 { (case "(($ac_try" in
8299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8300 *) ac_try_echo=$ac_try;;
8301 esac
8302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8303 (eval "$ac_try") 2>&5
8304 ac_status=$?
8305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8306 (exit $ac_status); }; }; then
8307 ac_cv_sizeof_long=`cat conftest.val`
8308 else
8309 echo "$as_me: program exited with status $ac_status" >&5
8310 echo "$as_me: failed program was:" >&5
8311 sed 's/^/| /' conftest.$ac_ext >&5
8313 ( exit $ac_status )
8314 if test "$ac_cv_type_long" = yes; then
8315 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
8316 See \`config.log' for more details." >&5
8317 echo "$as_me: error: cannot compute sizeof (long)
8318 See \`config.log' for more details." >&2;}
8319 { (exit 77); exit 77; }; }
8320 else
8321 ac_cv_sizeof_long=0
8324 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8326 rm -f conftest.val
8328 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
8329 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
8333 cat >>confdefs.h <<_ACEOF
8334 #define SIZEOF_LONG $ac_cv_sizeof_long
8335 _ACEOF
8338 { echo "$as_me:$LINENO: checking for void *" >&5
8339 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
8340 if test "${ac_cv_type_void_p+set}" = set; then
8341 echo $ECHO_N "(cached) $ECHO_C" >&6
8342 else
8343 cat >conftest.$ac_ext <<_ACEOF
8344 /* confdefs.h. */
8345 _ACEOF
8346 cat confdefs.h >>conftest.$ac_ext
8347 cat >>conftest.$ac_ext <<_ACEOF
8348 /* end confdefs.h. */
8349 $ac_includes_default
8350 typedef void * ac__type_new_;
8352 main ()
8354 if ((ac__type_new_ *) 0)
8355 return 0;
8356 if (sizeof (ac__type_new_))
8357 return 0;
8359 return 0;
8361 _ACEOF
8362 rm -f conftest.$ac_objext
8363 if { (ac_try="$ac_compile"
8364 case "(($ac_try" in
8365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8366 *) ac_try_echo=$ac_try;;
8367 esac
8368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8369 (eval "$ac_compile") 2>conftest.er1
8370 ac_status=$?
8371 grep -v '^ *+' conftest.er1 >conftest.err
8372 rm -f conftest.er1
8373 cat conftest.err >&5
8374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375 (exit $ac_status); } && {
8376 test -z "$ac_c_werror_flag" ||
8377 test ! -s conftest.err
8378 } && test -s conftest.$ac_objext; then
8379 ac_cv_type_void_p=yes
8380 else
8381 echo "$as_me: failed program was:" >&5
8382 sed 's/^/| /' conftest.$ac_ext >&5
8384 ac_cv_type_void_p=no
8387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8389 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
8390 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
8392 # The cast to long int works around a bug in the HP C Compiler
8393 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8394 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8395 # This bug is HP SR number 8606223364.
8396 { echo "$as_me:$LINENO: checking size of void *" >&5
8397 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
8398 if test "${ac_cv_sizeof_void_p+set}" = set; then
8399 echo $ECHO_N "(cached) $ECHO_C" >&6
8400 else
8401 if test "$cross_compiling" = yes; then
8402 # Depending upon the size, compute the lo and hi bounds.
8403 cat >conftest.$ac_ext <<_ACEOF
8404 /* confdefs.h. */
8405 _ACEOF
8406 cat confdefs.h >>conftest.$ac_ext
8407 cat >>conftest.$ac_ext <<_ACEOF
8408 /* end confdefs.h. */
8409 $ac_includes_default
8410 typedef void * ac__type_sizeof_;
8412 main ()
8414 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8415 test_array [0] = 0
8418 return 0;
8420 _ACEOF
8421 rm -f conftest.$ac_objext
8422 if { (ac_try="$ac_compile"
8423 case "(($ac_try" in
8424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8425 *) ac_try_echo=$ac_try;;
8426 esac
8427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8428 (eval "$ac_compile") 2>conftest.er1
8429 ac_status=$?
8430 grep -v '^ *+' conftest.er1 >conftest.err
8431 rm -f conftest.er1
8432 cat conftest.err >&5
8433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8434 (exit $ac_status); } && {
8435 test -z "$ac_c_werror_flag" ||
8436 test ! -s conftest.err
8437 } && test -s conftest.$ac_objext; then
8438 ac_lo=0 ac_mid=0
8439 while :; do
8440 cat >conftest.$ac_ext <<_ACEOF
8441 /* confdefs.h. */
8442 _ACEOF
8443 cat confdefs.h >>conftest.$ac_ext
8444 cat >>conftest.$ac_ext <<_ACEOF
8445 /* end confdefs.h. */
8446 $ac_includes_default
8447 typedef void * ac__type_sizeof_;
8449 main ()
8451 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8452 test_array [0] = 0
8455 return 0;
8457 _ACEOF
8458 rm -f conftest.$ac_objext
8459 if { (ac_try="$ac_compile"
8460 case "(($ac_try" in
8461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8462 *) ac_try_echo=$ac_try;;
8463 esac
8464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8465 (eval "$ac_compile") 2>conftest.er1
8466 ac_status=$?
8467 grep -v '^ *+' conftest.er1 >conftest.err
8468 rm -f conftest.er1
8469 cat conftest.err >&5
8470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8471 (exit $ac_status); } && {
8472 test -z "$ac_c_werror_flag" ||
8473 test ! -s conftest.err
8474 } && test -s conftest.$ac_objext; then
8475 ac_hi=$ac_mid; break
8476 else
8477 echo "$as_me: failed program was:" >&5
8478 sed 's/^/| /' conftest.$ac_ext >&5
8480 ac_lo=`expr $ac_mid + 1`
8481 if test $ac_lo -le $ac_mid; then
8482 ac_lo= ac_hi=
8483 break
8485 ac_mid=`expr 2 '*' $ac_mid + 1`
8488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8489 done
8490 else
8491 echo "$as_me: failed program was:" >&5
8492 sed 's/^/| /' conftest.$ac_ext >&5
8494 cat >conftest.$ac_ext <<_ACEOF
8495 /* confdefs.h. */
8496 _ACEOF
8497 cat confdefs.h >>conftest.$ac_ext
8498 cat >>conftest.$ac_ext <<_ACEOF
8499 /* end confdefs.h. */
8500 $ac_includes_default
8501 typedef void * ac__type_sizeof_;
8503 main ()
8505 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8506 test_array [0] = 0
8509 return 0;
8511 _ACEOF
8512 rm -f conftest.$ac_objext
8513 if { (ac_try="$ac_compile"
8514 case "(($ac_try" in
8515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8516 *) ac_try_echo=$ac_try;;
8517 esac
8518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8519 (eval "$ac_compile") 2>conftest.er1
8520 ac_status=$?
8521 grep -v '^ *+' conftest.er1 >conftest.err
8522 rm -f conftest.er1
8523 cat conftest.err >&5
8524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8525 (exit $ac_status); } && {
8526 test -z "$ac_c_werror_flag" ||
8527 test ! -s conftest.err
8528 } && test -s conftest.$ac_objext; then
8529 ac_hi=-1 ac_mid=-1
8530 while :; do
8531 cat >conftest.$ac_ext <<_ACEOF
8532 /* confdefs.h. */
8533 _ACEOF
8534 cat confdefs.h >>conftest.$ac_ext
8535 cat >>conftest.$ac_ext <<_ACEOF
8536 /* end confdefs.h. */
8537 $ac_includes_default
8538 typedef void * ac__type_sizeof_;
8540 main ()
8542 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8543 test_array [0] = 0
8546 return 0;
8548 _ACEOF
8549 rm -f conftest.$ac_objext
8550 if { (ac_try="$ac_compile"
8551 case "(($ac_try" in
8552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8553 *) ac_try_echo=$ac_try;;
8554 esac
8555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8556 (eval "$ac_compile") 2>conftest.er1
8557 ac_status=$?
8558 grep -v '^ *+' conftest.er1 >conftest.err
8559 rm -f conftest.er1
8560 cat conftest.err >&5
8561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8562 (exit $ac_status); } && {
8563 test -z "$ac_c_werror_flag" ||
8564 test ! -s conftest.err
8565 } && test -s conftest.$ac_objext; then
8566 ac_lo=$ac_mid; break
8567 else
8568 echo "$as_me: failed program was:" >&5
8569 sed 's/^/| /' conftest.$ac_ext >&5
8571 ac_hi=`expr '(' $ac_mid ')' - 1`
8572 if test $ac_mid -le $ac_hi; then
8573 ac_lo= ac_hi=
8574 break
8576 ac_mid=`expr 2 '*' $ac_mid`
8579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8580 done
8581 else
8582 echo "$as_me: failed program was:" >&5
8583 sed 's/^/| /' conftest.$ac_ext >&5
8585 ac_lo= ac_hi=
8588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8592 # Binary search between lo and hi bounds.
8593 while test "x$ac_lo" != "x$ac_hi"; do
8594 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8595 cat >conftest.$ac_ext <<_ACEOF
8596 /* confdefs.h. */
8597 _ACEOF
8598 cat confdefs.h >>conftest.$ac_ext
8599 cat >>conftest.$ac_ext <<_ACEOF
8600 /* end confdefs.h. */
8601 $ac_includes_default
8602 typedef void * ac__type_sizeof_;
8604 main ()
8606 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8607 test_array [0] = 0
8610 return 0;
8612 _ACEOF
8613 rm -f conftest.$ac_objext
8614 if { (ac_try="$ac_compile"
8615 case "(($ac_try" in
8616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8617 *) ac_try_echo=$ac_try;;
8618 esac
8619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8620 (eval "$ac_compile") 2>conftest.er1
8621 ac_status=$?
8622 grep -v '^ *+' conftest.er1 >conftest.err
8623 rm -f conftest.er1
8624 cat conftest.err >&5
8625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8626 (exit $ac_status); } && {
8627 test -z "$ac_c_werror_flag" ||
8628 test ! -s conftest.err
8629 } && test -s conftest.$ac_objext; then
8630 ac_hi=$ac_mid
8631 else
8632 echo "$as_me: failed program was:" >&5
8633 sed 's/^/| /' conftest.$ac_ext >&5
8635 ac_lo=`expr '(' $ac_mid ')' + 1`
8638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8639 done
8640 case $ac_lo in
8641 ?*) ac_cv_sizeof_void_p=$ac_lo;;
8642 '') if test "$ac_cv_type_void_p" = yes; then
8643 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8644 See \`config.log' for more details." >&5
8645 echo "$as_me: error: cannot compute sizeof (void *)
8646 See \`config.log' for more details." >&2;}
8647 { (exit 77); exit 77; }; }
8648 else
8649 ac_cv_sizeof_void_p=0
8650 fi ;;
8651 esac
8652 else
8653 cat >conftest.$ac_ext <<_ACEOF
8654 /* confdefs.h. */
8655 _ACEOF
8656 cat confdefs.h >>conftest.$ac_ext
8657 cat >>conftest.$ac_ext <<_ACEOF
8658 /* end confdefs.h. */
8659 $ac_includes_default
8660 typedef void * ac__type_sizeof_;
8661 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8662 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8663 #include <stdio.h>
8664 #include <stdlib.h>
8666 main ()
8669 FILE *f = fopen ("conftest.val", "w");
8670 if (! f)
8671 return 1;
8672 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8674 long int i = longval ();
8675 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8676 return 1;
8677 fprintf (f, "%ld\n", i);
8679 else
8681 unsigned long int i = ulongval ();
8682 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8683 return 1;
8684 fprintf (f, "%lu\n", i);
8686 return ferror (f) || fclose (f) != 0;
8689 return 0;
8691 _ACEOF
8692 rm -f conftest$ac_exeext
8693 if { (ac_try="$ac_link"
8694 case "(($ac_try" in
8695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8696 *) ac_try_echo=$ac_try;;
8697 esac
8698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8699 (eval "$ac_link") 2>&5
8700 ac_status=$?
8701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8702 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8703 { (case "(($ac_try" in
8704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8705 *) ac_try_echo=$ac_try;;
8706 esac
8707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8708 (eval "$ac_try") 2>&5
8709 ac_status=$?
8710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8711 (exit $ac_status); }; }; then
8712 ac_cv_sizeof_void_p=`cat conftest.val`
8713 else
8714 echo "$as_me: program exited with status $ac_status" >&5
8715 echo "$as_me: failed program was:" >&5
8716 sed 's/^/| /' conftest.$ac_ext >&5
8718 ( exit $ac_status )
8719 if test "$ac_cv_type_void_p" = yes; then
8720 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8721 See \`config.log' for more details." >&5
8722 echo "$as_me: error: cannot compute sizeof (void *)
8723 See \`config.log' for more details." >&2;}
8724 { (exit 77); exit 77; }; }
8725 else
8726 ac_cv_sizeof_void_p=0
8729 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8731 rm -f conftest.val
8733 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
8734 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
8738 cat >>confdefs.h <<_ACEOF
8739 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
8740 _ACEOF
8743 { echo "$as_me:$LINENO: checking for short" >&5
8744 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
8745 if test "${ac_cv_type_short+set}" = set; then
8746 echo $ECHO_N "(cached) $ECHO_C" >&6
8747 else
8748 cat >conftest.$ac_ext <<_ACEOF
8749 /* confdefs.h. */
8750 _ACEOF
8751 cat confdefs.h >>conftest.$ac_ext
8752 cat >>conftest.$ac_ext <<_ACEOF
8753 /* end confdefs.h. */
8754 $ac_includes_default
8755 typedef short ac__type_new_;
8757 main ()
8759 if ((ac__type_new_ *) 0)
8760 return 0;
8761 if (sizeof (ac__type_new_))
8762 return 0;
8764 return 0;
8766 _ACEOF
8767 rm -f conftest.$ac_objext
8768 if { (ac_try="$ac_compile"
8769 case "(($ac_try" in
8770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8771 *) ac_try_echo=$ac_try;;
8772 esac
8773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8774 (eval "$ac_compile") 2>conftest.er1
8775 ac_status=$?
8776 grep -v '^ *+' conftest.er1 >conftest.err
8777 rm -f conftest.er1
8778 cat conftest.err >&5
8779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8780 (exit $ac_status); } && {
8781 test -z "$ac_c_werror_flag" ||
8782 test ! -s conftest.err
8783 } && test -s conftest.$ac_objext; then
8784 ac_cv_type_short=yes
8785 else
8786 echo "$as_me: failed program was:" >&5
8787 sed 's/^/| /' conftest.$ac_ext >&5
8789 ac_cv_type_short=no
8792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8794 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
8795 echo "${ECHO_T}$ac_cv_type_short" >&6; }
8797 # The cast to long int works around a bug in the HP C Compiler
8798 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8799 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8800 # This bug is HP SR number 8606223364.
8801 { echo "$as_me:$LINENO: checking size of short" >&5
8802 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
8803 if test "${ac_cv_sizeof_short+set}" = set; then
8804 echo $ECHO_N "(cached) $ECHO_C" >&6
8805 else
8806 if test "$cross_compiling" = yes; then
8807 # Depending upon the size, compute the lo and hi bounds.
8808 cat >conftest.$ac_ext <<_ACEOF
8809 /* confdefs.h. */
8810 _ACEOF
8811 cat confdefs.h >>conftest.$ac_ext
8812 cat >>conftest.$ac_ext <<_ACEOF
8813 /* end confdefs.h. */
8814 $ac_includes_default
8815 typedef short ac__type_sizeof_;
8817 main ()
8819 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8820 test_array [0] = 0
8823 return 0;
8825 _ACEOF
8826 rm -f conftest.$ac_objext
8827 if { (ac_try="$ac_compile"
8828 case "(($ac_try" in
8829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8830 *) ac_try_echo=$ac_try;;
8831 esac
8832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8833 (eval "$ac_compile") 2>conftest.er1
8834 ac_status=$?
8835 grep -v '^ *+' conftest.er1 >conftest.err
8836 rm -f conftest.er1
8837 cat conftest.err >&5
8838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8839 (exit $ac_status); } && {
8840 test -z "$ac_c_werror_flag" ||
8841 test ! -s conftest.err
8842 } && test -s conftest.$ac_objext; then
8843 ac_lo=0 ac_mid=0
8844 while :; do
8845 cat >conftest.$ac_ext <<_ACEOF
8846 /* confdefs.h. */
8847 _ACEOF
8848 cat confdefs.h >>conftest.$ac_ext
8849 cat >>conftest.$ac_ext <<_ACEOF
8850 /* end confdefs.h. */
8851 $ac_includes_default
8852 typedef short ac__type_sizeof_;
8854 main ()
8856 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8857 test_array [0] = 0
8860 return 0;
8862 _ACEOF
8863 rm -f conftest.$ac_objext
8864 if { (ac_try="$ac_compile"
8865 case "(($ac_try" in
8866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8867 *) ac_try_echo=$ac_try;;
8868 esac
8869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8870 (eval "$ac_compile") 2>conftest.er1
8871 ac_status=$?
8872 grep -v '^ *+' conftest.er1 >conftest.err
8873 rm -f conftest.er1
8874 cat conftest.err >&5
8875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8876 (exit $ac_status); } && {
8877 test -z "$ac_c_werror_flag" ||
8878 test ! -s conftest.err
8879 } && test -s conftest.$ac_objext; then
8880 ac_hi=$ac_mid; break
8881 else
8882 echo "$as_me: failed program was:" >&5
8883 sed 's/^/| /' conftest.$ac_ext >&5
8885 ac_lo=`expr $ac_mid + 1`
8886 if test $ac_lo -le $ac_mid; then
8887 ac_lo= ac_hi=
8888 break
8890 ac_mid=`expr 2 '*' $ac_mid + 1`
8893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8894 done
8895 else
8896 echo "$as_me: failed program was:" >&5
8897 sed 's/^/| /' conftest.$ac_ext >&5
8899 cat >conftest.$ac_ext <<_ACEOF
8900 /* confdefs.h. */
8901 _ACEOF
8902 cat confdefs.h >>conftest.$ac_ext
8903 cat >>conftest.$ac_ext <<_ACEOF
8904 /* end confdefs.h. */
8905 $ac_includes_default
8906 typedef short ac__type_sizeof_;
8908 main ()
8910 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8911 test_array [0] = 0
8914 return 0;
8916 _ACEOF
8917 rm -f conftest.$ac_objext
8918 if { (ac_try="$ac_compile"
8919 case "(($ac_try" in
8920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8921 *) ac_try_echo=$ac_try;;
8922 esac
8923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8924 (eval "$ac_compile") 2>conftest.er1
8925 ac_status=$?
8926 grep -v '^ *+' conftest.er1 >conftest.err
8927 rm -f conftest.er1
8928 cat conftest.err >&5
8929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8930 (exit $ac_status); } && {
8931 test -z "$ac_c_werror_flag" ||
8932 test ! -s conftest.err
8933 } && test -s conftest.$ac_objext; then
8934 ac_hi=-1 ac_mid=-1
8935 while :; do
8936 cat >conftest.$ac_ext <<_ACEOF
8937 /* confdefs.h. */
8938 _ACEOF
8939 cat confdefs.h >>conftest.$ac_ext
8940 cat >>conftest.$ac_ext <<_ACEOF
8941 /* end confdefs.h. */
8942 $ac_includes_default
8943 typedef short ac__type_sizeof_;
8945 main ()
8947 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8948 test_array [0] = 0
8951 return 0;
8953 _ACEOF
8954 rm -f conftest.$ac_objext
8955 if { (ac_try="$ac_compile"
8956 case "(($ac_try" in
8957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8958 *) ac_try_echo=$ac_try;;
8959 esac
8960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8961 (eval "$ac_compile") 2>conftest.er1
8962 ac_status=$?
8963 grep -v '^ *+' conftest.er1 >conftest.err
8964 rm -f conftest.er1
8965 cat conftest.err >&5
8966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8967 (exit $ac_status); } && {
8968 test -z "$ac_c_werror_flag" ||
8969 test ! -s conftest.err
8970 } && test -s conftest.$ac_objext; then
8971 ac_lo=$ac_mid; break
8972 else
8973 echo "$as_me: failed program was:" >&5
8974 sed 's/^/| /' conftest.$ac_ext >&5
8976 ac_hi=`expr '(' $ac_mid ')' - 1`
8977 if test $ac_mid -le $ac_hi; then
8978 ac_lo= ac_hi=
8979 break
8981 ac_mid=`expr 2 '*' $ac_mid`
8984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8985 done
8986 else
8987 echo "$as_me: failed program was:" >&5
8988 sed 's/^/| /' conftest.$ac_ext >&5
8990 ac_lo= ac_hi=
8993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8997 # Binary search between lo and hi bounds.
8998 while test "x$ac_lo" != "x$ac_hi"; do
8999 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9000 cat >conftest.$ac_ext <<_ACEOF
9001 /* confdefs.h. */
9002 _ACEOF
9003 cat confdefs.h >>conftest.$ac_ext
9004 cat >>conftest.$ac_ext <<_ACEOF
9005 /* end confdefs.h. */
9006 $ac_includes_default
9007 typedef short ac__type_sizeof_;
9009 main ()
9011 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9012 test_array [0] = 0
9015 return 0;
9017 _ACEOF
9018 rm -f conftest.$ac_objext
9019 if { (ac_try="$ac_compile"
9020 case "(($ac_try" in
9021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9022 *) ac_try_echo=$ac_try;;
9023 esac
9024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9025 (eval "$ac_compile") 2>conftest.er1
9026 ac_status=$?
9027 grep -v '^ *+' conftest.er1 >conftest.err
9028 rm -f conftest.er1
9029 cat conftest.err >&5
9030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9031 (exit $ac_status); } && {
9032 test -z "$ac_c_werror_flag" ||
9033 test ! -s conftest.err
9034 } && test -s conftest.$ac_objext; then
9035 ac_hi=$ac_mid
9036 else
9037 echo "$as_me: failed program was:" >&5
9038 sed 's/^/| /' conftest.$ac_ext >&5
9040 ac_lo=`expr '(' $ac_mid ')' + 1`
9043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9044 done
9045 case $ac_lo in
9046 ?*) ac_cv_sizeof_short=$ac_lo;;
9047 '') if test "$ac_cv_type_short" = yes; then
9048 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
9049 See \`config.log' for more details." >&5
9050 echo "$as_me: error: cannot compute sizeof (short)
9051 See \`config.log' for more details." >&2;}
9052 { (exit 77); exit 77; }; }
9053 else
9054 ac_cv_sizeof_short=0
9055 fi ;;
9056 esac
9057 else
9058 cat >conftest.$ac_ext <<_ACEOF
9059 /* confdefs.h. */
9060 _ACEOF
9061 cat confdefs.h >>conftest.$ac_ext
9062 cat >>conftest.$ac_ext <<_ACEOF
9063 /* end confdefs.h. */
9064 $ac_includes_default
9065 typedef short ac__type_sizeof_;
9066 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9067 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9068 #include <stdio.h>
9069 #include <stdlib.h>
9071 main ()
9074 FILE *f = fopen ("conftest.val", "w");
9075 if (! f)
9076 return 1;
9077 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9079 long int i = longval ();
9080 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9081 return 1;
9082 fprintf (f, "%ld\n", i);
9084 else
9086 unsigned long int i = ulongval ();
9087 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9088 return 1;
9089 fprintf (f, "%lu\n", i);
9091 return ferror (f) || fclose (f) != 0;
9094 return 0;
9096 _ACEOF
9097 rm -f conftest$ac_exeext
9098 if { (ac_try="$ac_link"
9099 case "(($ac_try" in
9100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9101 *) ac_try_echo=$ac_try;;
9102 esac
9103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9104 (eval "$ac_link") 2>&5
9105 ac_status=$?
9106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9107 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9108 { (case "(($ac_try" in
9109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9110 *) ac_try_echo=$ac_try;;
9111 esac
9112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9113 (eval "$ac_try") 2>&5
9114 ac_status=$?
9115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9116 (exit $ac_status); }; }; then
9117 ac_cv_sizeof_short=`cat conftest.val`
9118 else
9119 echo "$as_me: program exited with status $ac_status" >&5
9120 echo "$as_me: failed program was:" >&5
9121 sed 's/^/| /' conftest.$ac_ext >&5
9123 ( exit $ac_status )
9124 if test "$ac_cv_type_short" = yes; then
9125 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
9126 See \`config.log' for more details." >&5
9127 echo "$as_me: error: cannot compute sizeof (short)
9128 See \`config.log' for more details." >&2;}
9129 { (exit 77); exit 77; }; }
9130 else
9131 ac_cv_sizeof_short=0
9134 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9136 rm -f conftest.val
9138 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
9139 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
9143 cat >>confdefs.h <<_ACEOF
9144 #define SIZEOF_SHORT $ac_cv_sizeof_short
9145 _ACEOF
9148 { echo "$as_me:$LINENO: checking for float" >&5
9149 echo $ECHO_N "checking for float... $ECHO_C" >&6; }
9150 if test "${ac_cv_type_float+set}" = set; then
9151 echo $ECHO_N "(cached) $ECHO_C" >&6
9152 else
9153 cat >conftest.$ac_ext <<_ACEOF
9154 /* confdefs.h. */
9155 _ACEOF
9156 cat confdefs.h >>conftest.$ac_ext
9157 cat >>conftest.$ac_ext <<_ACEOF
9158 /* end confdefs.h. */
9159 $ac_includes_default
9160 typedef float ac__type_new_;
9162 main ()
9164 if ((ac__type_new_ *) 0)
9165 return 0;
9166 if (sizeof (ac__type_new_))
9167 return 0;
9169 return 0;
9171 _ACEOF
9172 rm -f conftest.$ac_objext
9173 if { (ac_try="$ac_compile"
9174 case "(($ac_try" in
9175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9176 *) ac_try_echo=$ac_try;;
9177 esac
9178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9179 (eval "$ac_compile") 2>conftest.er1
9180 ac_status=$?
9181 grep -v '^ *+' conftest.er1 >conftest.err
9182 rm -f conftest.er1
9183 cat conftest.err >&5
9184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9185 (exit $ac_status); } && {
9186 test -z "$ac_c_werror_flag" ||
9187 test ! -s conftest.err
9188 } && test -s conftest.$ac_objext; then
9189 ac_cv_type_float=yes
9190 else
9191 echo "$as_me: failed program was:" >&5
9192 sed 's/^/| /' conftest.$ac_ext >&5
9194 ac_cv_type_float=no
9197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9199 { echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
9200 echo "${ECHO_T}$ac_cv_type_float" >&6; }
9202 # The cast to long int works around a bug in the HP C Compiler
9203 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9204 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9205 # This bug is HP SR number 8606223364.
9206 { echo "$as_me:$LINENO: checking size of float" >&5
9207 echo $ECHO_N "checking size of float... $ECHO_C" >&6; }
9208 if test "${ac_cv_sizeof_float+set}" = set; then
9209 echo $ECHO_N "(cached) $ECHO_C" >&6
9210 else
9211 if test "$cross_compiling" = yes; then
9212 # Depending upon the size, compute the lo and hi bounds.
9213 cat >conftest.$ac_ext <<_ACEOF
9214 /* confdefs.h. */
9215 _ACEOF
9216 cat confdefs.h >>conftest.$ac_ext
9217 cat >>conftest.$ac_ext <<_ACEOF
9218 /* end confdefs.h. */
9219 $ac_includes_default
9220 typedef float ac__type_sizeof_;
9222 main ()
9224 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9225 test_array [0] = 0
9228 return 0;
9230 _ACEOF
9231 rm -f conftest.$ac_objext
9232 if { (ac_try="$ac_compile"
9233 case "(($ac_try" in
9234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9235 *) ac_try_echo=$ac_try;;
9236 esac
9237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9238 (eval "$ac_compile") 2>conftest.er1
9239 ac_status=$?
9240 grep -v '^ *+' conftest.er1 >conftest.err
9241 rm -f conftest.er1
9242 cat conftest.err >&5
9243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9244 (exit $ac_status); } && {
9245 test -z "$ac_c_werror_flag" ||
9246 test ! -s conftest.err
9247 } && test -s conftest.$ac_objext; then
9248 ac_lo=0 ac_mid=0
9249 while :; do
9250 cat >conftest.$ac_ext <<_ACEOF
9251 /* confdefs.h. */
9252 _ACEOF
9253 cat confdefs.h >>conftest.$ac_ext
9254 cat >>conftest.$ac_ext <<_ACEOF
9255 /* end confdefs.h. */
9256 $ac_includes_default
9257 typedef float ac__type_sizeof_;
9259 main ()
9261 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9262 test_array [0] = 0
9265 return 0;
9267 _ACEOF
9268 rm -f conftest.$ac_objext
9269 if { (ac_try="$ac_compile"
9270 case "(($ac_try" in
9271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9272 *) ac_try_echo=$ac_try;;
9273 esac
9274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9275 (eval "$ac_compile") 2>conftest.er1
9276 ac_status=$?
9277 grep -v '^ *+' conftest.er1 >conftest.err
9278 rm -f conftest.er1
9279 cat conftest.err >&5
9280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9281 (exit $ac_status); } && {
9282 test -z "$ac_c_werror_flag" ||
9283 test ! -s conftest.err
9284 } && test -s conftest.$ac_objext; then
9285 ac_hi=$ac_mid; break
9286 else
9287 echo "$as_me: failed program was:" >&5
9288 sed 's/^/| /' conftest.$ac_ext >&5
9290 ac_lo=`expr $ac_mid + 1`
9291 if test $ac_lo -le $ac_mid; then
9292 ac_lo= ac_hi=
9293 break
9295 ac_mid=`expr 2 '*' $ac_mid + 1`
9298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9299 done
9300 else
9301 echo "$as_me: failed program was:" >&5
9302 sed 's/^/| /' conftest.$ac_ext >&5
9304 cat >conftest.$ac_ext <<_ACEOF
9305 /* confdefs.h. */
9306 _ACEOF
9307 cat confdefs.h >>conftest.$ac_ext
9308 cat >>conftest.$ac_ext <<_ACEOF
9309 /* end confdefs.h. */
9310 $ac_includes_default
9311 typedef float ac__type_sizeof_;
9313 main ()
9315 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9316 test_array [0] = 0
9319 return 0;
9321 _ACEOF
9322 rm -f conftest.$ac_objext
9323 if { (ac_try="$ac_compile"
9324 case "(($ac_try" in
9325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9326 *) ac_try_echo=$ac_try;;
9327 esac
9328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9329 (eval "$ac_compile") 2>conftest.er1
9330 ac_status=$?
9331 grep -v '^ *+' conftest.er1 >conftest.err
9332 rm -f conftest.er1
9333 cat conftest.err >&5
9334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9335 (exit $ac_status); } && {
9336 test -z "$ac_c_werror_flag" ||
9337 test ! -s conftest.err
9338 } && test -s conftest.$ac_objext; then
9339 ac_hi=-1 ac_mid=-1
9340 while :; do
9341 cat >conftest.$ac_ext <<_ACEOF
9342 /* confdefs.h. */
9343 _ACEOF
9344 cat confdefs.h >>conftest.$ac_ext
9345 cat >>conftest.$ac_ext <<_ACEOF
9346 /* end confdefs.h. */
9347 $ac_includes_default
9348 typedef float ac__type_sizeof_;
9350 main ()
9352 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9353 test_array [0] = 0
9356 return 0;
9358 _ACEOF
9359 rm -f conftest.$ac_objext
9360 if { (ac_try="$ac_compile"
9361 case "(($ac_try" in
9362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9363 *) ac_try_echo=$ac_try;;
9364 esac
9365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9366 (eval "$ac_compile") 2>conftest.er1
9367 ac_status=$?
9368 grep -v '^ *+' conftest.er1 >conftest.err
9369 rm -f conftest.er1
9370 cat conftest.err >&5
9371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9372 (exit $ac_status); } && {
9373 test -z "$ac_c_werror_flag" ||
9374 test ! -s conftest.err
9375 } && test -s conftest.$ac_objext; then
9376 ac_lo=$ac_mid; break
9377 else
9378 echo "$as_me: failed program was:" >&5
9379 sed 's/^/| /' conftest.$ac_ext >&5
9381 ac_hi=`expr '(' $ac_mid ')' - 1`
9382 if test $ac_mid -le $ac_hi; then
9383 ac_lo= ac_hi=
9384 break
9386 ac_mid=`expr 2 '*' $ac_mid`
9389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9390 done
9391 else
9392 echo "$as_me: failed program was:" >&5
9393 sed 's/^/| /' conftest.$ac_ext >&5
9395 ac_lo= ac_hi=
9398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9402 # Binary search between lo and hi bounds.
9403 while test "x$ac_lo" != "x$ac_hi"; do
9404 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9405 cat >conftest.$ac_ext <<_ACEOF
9406 /* confdefs.h. */
9407 _ACEOF
9408 cat confdefs.h >>conftest.$ac_ext
9409 cat >>conftest.$ac_ext <<_ACEOF
9410 /* end confdefs.h. */
9411 $ac_includes_default
9412 typedef float ac__type_sizeof_;
9414 main ()
9416 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9417 test_array [0] = 0
9420 return 0;
9422 _ACEOF
9423 rm -f conftest.$ac_objext
9424 if { (ac_try="$ac_compile"
9425 case "(($ac_try" in
9426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9427 *) ac_try_echo=$ac_try;;
9428 esac
9429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9430 (eval "$ac_compile") 2>conftest.er1
9431 ac_status=$?
9432 grep -v '^ *+' conftest.er1 >conftest.err
9433 rm -f conftest.er1
9434 cat conftest.err >&5
9435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9436 (exit $ac_status); } && {
9437 test -z "$ac_c_werror_flag" ||
9438 test ! -s conftest.err
9439 } && test -s conftest.$ac_objext; then
9440 ac_hi=$ac_mid
9441 else
9442 echo "$as_me: failed program was:" >&5
9443 sed 's/^/| /' conftest.$ac_ext >&5
9445 ac_lo=`expr '(' $ac_mid ')' + 1`
9448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9449 done
9450 case $ac_lo in
9451 ?*) ac_cv_sizeof_float=$ac_lo;;
9452 '') if test "$ac_cv_type_float" = yes; then
9453 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
9454 See \`config.log' for more details." >&5
9455 echo "$as_me: error: cannot compute sizeof (float)
9456 See \`config.log' for more details." >&2;}
9457 { (exit 77); exit 77; }; }
9458 else
9459 ac_cv_sizeof_float=0
9460 fi ;;
9461 esac
9462 else
9463 cat >conftest.$ac_ext <<_ACEOF
9464 /* confdefs.h. */
9465 _ACEOF
9466 cat confdefs.h >>conftest.$ac_ext
9467 cat >>conftest.$ac_ext <<_ACEOF
9468 /* end confdefs.h. */
9469 $ac_includes_default
9470 typedef float ac__type_sizeof_;
9471 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9472 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9473 #include <stdio.h>
9474 #include <stdlib.h>
9476 main ()
9479 FILE *f = fopen ("conftest.val", "w");
9480 if (! f)
9481 return 1;
9482 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9484 long int i = longval ();
9485 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9486 return 1;
9487 fprintf (f, "%ld\n", i);
9489 else
9491 unsigned long int i = ulongval ();
9492 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9493 return 1;
9494 fprintf (f, "%lu\n", i);
9496 return ferror (f) || fclose (f) != 0;
9499 return 0;
9501 _ACEOF
9502 rm -f conftest$ac_exeext
9503 if { (ac_try="$ac_link"
9504 case "(($ac_try" in
9505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9506 *) ac_try_echo=$ac_try;;
9507 esac
9508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9509 (eval "$ac_link") 2>&5
9510 ac_status=$?
9511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9512 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9513 { (case "(($ac_try" in
9514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9515 *) ac_try_echo=$ac_try;;
9516 esac
9517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9518 (eval "$ac_try") 2>&5
9519 ac_status=$?
9520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9521 (exit $ac_status); }; }; then
9522 ac_cv_sizeof_float=`cat conftest.val`
9523 else
9524 echo "$as_me: program exited with status $ac_status" >&5
9525 echo "$as_me: failed program was:" >&5
9526 sed 's/^/| /' conftest.$ac_ext >&5
9528 ( exit $ac_status )
9529 if test "$ac_cv_type_float" = yes; then
9530 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
9531 See \`config.log' for more details." >&5
9532 echo "$as_me: error: cannot compute sizeof (float)
9533 See \`config.log' for more details." >&2;}
9534 { (exit 77); exit 77; }; }
9535 else
9536 ac_cv_sizeof_float=0
9539 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9541 rm -f conftest.val
9543 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
9544 echo "${ECHO_T}$ac_cv_sizeof_float" >&6; }
9548 cat >>confdefs.h <<_ACEOF
9549 #define SIZEOF_FLOAT $ac_cv_sizeof_float
9550 _ACEOF
9553 { echo "$as_me:$LINENO: checking for double" >&5
9554 echo $ECHO_N "checking for double... $ECHO_C" >&6; }
9555 if test "${ac_cv_type_double+set}" = set; then
9556 echo $ECHO_N "(cached) $ECHO_C" >&6
9557 else
9558 cat >conftest.$ac_ext <<_ACEOF
9559 /* confdefs.h. */
9560 _ACEOF
9561 cat confdefs.h >>conftest.$ac_ext
9562 cat >>conftest.$ac_ext <<_ACEOF
9563 /* end confdefs.h. */
9564 $ac_includes_default
9565 typedef double ac__type_new_;
9567 main ()
9569 if ((ac__type_new_ *) 0)
9570 return 0;
9571 if (sizeof (ac__type_new_))
9572 return 0;
9574 return 0;
9576 _ACEOF
9577 rm -f conftest.$ac_objext
9578 if { (ac_try="$ac_compile"
9579 case "(($ac_try" in
9580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9581 *) ac_try_echo=$ac_try;;
9582 esac
9583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9584 (eval "$ac_compile") 2>conftest.er1
9585 ac_status=$?
9586 grep -v '^ *+' conftest.er1 >conftest.err
9587 rm -f conftest.er1
9588 cat conftest.err >&5
9589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9590 (exit $ac_status); } && {
9591 test -z "$ac_c_werror_flag" ||
9592 test ! -s conftest.err
9593 } && test -s conftest.$ac_objext; then
9594 ac_cv_type_double=yes
9595 else
9596 echo "$as_me: failed program was:" >&5
9597 sed 's/^/| /' conftest.$ac_ext >&5
9599 ac_cv_type_double=no
9602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9604 { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
9605 echo "${ECHO_T}$ac_cv_type_double" >&6; }
9607 # The cast to long int works around a bug in the HP C Compiler
9608 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9609 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9610 # This bug is HP SR number 8606223364.
9611 { echo "$as_me:$LINENO: checking size of double" >&5
9612 echo $ECHO_N "checking size of double... $ECHO_C" >&6; }
9613 if test "${ac_cv_sizeof_double+set}" = set; then
9614 echo $ECHO_N "(cached) $ECHO_C" >&6
9615 else
9616 if test "$cross_compiling" = yes; then
9617 # Depending upon the size, compute the lo and hi bounds.
9618 cat >conftest.$ac_ext <<_ACEOF
9619 /* confdefs.h. */
9620 _ACEOF
9621 cat confdefs.h >>conftest.$ac_ext
9622 cat >>conftest.$ac_ext <<_ACEOF
9623 /* end confdefs.h. */
9624 $ac_includes_default
9625 typedef double ac__type_sizeof_;
9627 main ()
9629 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9630 test_array [0] = 0
9633 return 0;
9635 _ACEOF
9636 rm -f conftest.$ac_objext
9637 if { (ac_try="$ac_compile"
9638 case "(($ac_try" in
9639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9640 *) ac_try_echo=$ac_try;;
9641 esac
9642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9643 (eval "$ac_compile") 2>conftest.er1
9644 ac_status=$?
9645 grep -v '^ *+' conftest.er1 >conftest.err
9646 rm -f conftest.er1
9647 cat conftest.err >&5
9648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9649 (exit $ac_status); } && {
9650 test -z "$ac_c_werror_flag" ||
9651 test ! -s conftest.err
9652 } && test -s conftest.$ac_objext; then
9653 ac_lo=0 ac_mid=0
9654 while :; do
9655 cat >conftest.$ac_ext <<_ACEOF
9656 /* confdefs.h. */
9657 _ACEOF
9658 cat confdefs.h >>conftest.$ac_ext
9659 cat >>conftest.$ac_ext <<_ACEOF
9660 /* end confdefs.h. */
9661 $ac_includes_default
9662 typedef double ac__type_sizeof_;
9664 main ()
9666 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9667 test_array [0] = 0
9670 return 0;
9672 _ACEOF
9673 rm -f conftest.$ac_objext
9674 if { (ac_try="$ac_compile"
9675 case "(($ac_try" in
9676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9677 *) ac_try_echo=$ac_try;;
9678 esac
9679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9680 (eval "$ac_compile") 2>conftest.er1
9681 ac_status=$?
9682 grep -v '^ *+' conftest.er1 >conftest.err
9683 rm -f conftest.er1
9684 cat conftest.err >&5
9685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686 (exit $ac_status); } && {
9687 test -z "$ac_c_werror_flag" ||
9688 test ! -s conftest.err
9689 } && test -s conftest.$ac_objext; then
9690 ac_hi=$ac_mid; break
9691 else
9692 echo "$as_me: failed program was:" >&5
9693 sed 's/^/| /' conftest.$ac_ext >&5
9695 ac_lo=`expr $ac_mid + 1`
9696 if test $ac_lo -le $ac_mid; then
9697 ac_lo= ac_hi=
9698 break
9700 ac_mid=`expr 2 '*' $ac_mid + 1`
9703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9704 done
9705 else
9706 echo "$as_me: failed program was:" >&5
9707 sed 's/^/| /' conftest.$ac_ext >&5
9709 cat >conftest.$ac_ext <<_ACEOF
9710 /* confdefs.h. */
9711 _ACEOF
9712 cat confdefs.h >>conftest.$ac_ext
9713 cat >>conftest.$ac_ext <<_ACEOF
9714 /* end confdefs.h. */
9715 $ac_includes_default
9716 typedef double ac__type_sizeof_;
9718 main ()
9720 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9721 test_array [0] = 0
9724 return 0;
9726 _ACEOF
9727 rm -f conftest.$ac_objext
9728 if { (ac_try="$ac_compile"
9729 case "(($ac_try" in
9730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9731 *) ac_try_echo=$ac_try;;
9732 esac
9733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9734 (eval "$ac_compile") 2>conftest.er1
9735 ac_status=$?
9736 grep -v '^ *+' conftest.er1 >conftest.err
9737 rm -f conftest.er1
9738 cat conftest.err >&5
9739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9740 (exit $ac_status); } && {
9741 test -z "$ac_c_werror_flag" ||
9742 test ! -s conftest.err
9743 } && test -s conftest.$ac_objext; then
9744 ac_hi=-1 ac_mid=-1
9745 while :; do
9746 cat >conftest.$ac_ext <<_ACEOF
9747 /* confdefs.h. */
9748 _ACEOF
9749 cat confdefs.h >>conftest.$ac_ext
9750 cat >>conftest.$ac_ext <<_ACEOF
9751 /* end confdefs.h. */
9752 $ac_includes_default
9753 typedef double ac__type_sizeof_;
9755 main ()
9757 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9758 test_array [0] = 0
9761 return 0;
9763 _ACEOF
9764 rm -f conftest.$ac_objext
9765 if { (ac_try="$ac_compile"
9766 case "(($ac_try" in
9767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9768 *) ac_try_echo=$ac_try;;
9769 esac
9770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9771 (eval "$ac_compile") 2>conftest.er1
9772 ac_status=$?
9773 grep -v '^ *+' conftest.er1 >conftest.err
9774 rm -f conftest.er1
9775 cat conftest.err >&5
9776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9777 (exit $ac_status); } && {
9778 test -z "$ac_c_werror_flag" ||
9779 test ! -s conftest.err
9780 } && test -s conftest.$ac_objext; then
9781 ac_lo=$ac_mid; break
9782 else
9783 echo "$as_me: failed program was:" >&5
9784 sed 's/^/| /' conftest.$ac_ext >&5
9786 ac_hi=`expr '(' $ac_mid ')' - 1`
9787 if test $ac_mid -le $ac_hi; then
9788 ac_lo= ac_hi=
9789 break
9791 ac_mid=`expr 2 '*' $ac_mid`
9794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9795 done
9796 else
9797 echo "$as_me: failed program was:" >&5
9798 sed 's/^/| /' conftest.$ac_ext >&5
9800 ac_lo= ac_hi=
9803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9807 # Binary search between lo and hi bounds.
9808 while test "x$ac_lo" != "x$ac_hi"; do
9809 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9810 cat >conftest.$ac_ext <<_ACEOF
9811 /* confdefs.h. */
9812 _ACEOF
9813 cat confdefs.h >>conftest.$ac_ext
9814 cat >>conftest.$ac_ext <<_ACEOF
9815 /* end confdefs.h. */
9816 $ac_includes_default
9817 typedef double ac__type_sizeof_;
9819 main ()
9821 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9822 test_array [0] = 0
9825 return 0;
9827 _ACEOF
9828 rm -f conftest.$ac_objext
9829 if { (ac_try="$ac_compile"
9830 case "(($ac_try" in
9831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9832 *) ac_try_echo=$ac_try;;
9833 esac
9834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9835 (eval "$ac_compile") 2>conftest.er1
9836 ac_status=$?
9837 grep -v '^ *+' conftest.er1 >conftest.err
9838 rm -f conftest.er1
9839 cat conftest.err >&5
9840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9841 (exit $ac_status); } && {
9842 test -z "$ac_c_werror_flag" ||
9843 test ! -s conftest.err
9844 } && test -s conftest.$ac_objext; then
9845 ac_hi=$ac_mid
9846 else
9847 echo "$as_me: failed program was:" >&5
9848 sed 's/^/| /' conftest.$ac_ext >&5
9850 ac_lo=`expr '(' $ac_mid ')' + 1`
9853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9854 done
9855 case $ac_lo in
9856 ?*) ac_cv_sizeof_double=$ac_lo;;
9857 '') if test "$ac_cv_type_double" = yes; then
9858 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
9859 See \`config.log' for more details." >&5
9860 echo "$as_me: error: cannot compute sizeof (double)
9861 See \`config.log' for more details." >&2;}
9862 { (exit 77); exit 77; }; }
9863 else
9864 ac_cv_sizeof_double=0
9865 fi ;;
9866 esac
9867 else
9868 cat >conftest.$ac_ext <<_ACEOF
9869 /* confdefs.h. */
9870 _ACEOF
9871 cat confdefs.h >>conftest.$ac_ext
9872 cat >>conftest.$ac_ext <<_ACEOF
9873 /* end confdefs.h. */
9874 $ac_includes_default
9875 typedef double ac__type_sizeof_;
9876 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9877 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9878 #include <stdio.h>
9879 #include <stdlib.h>
9881 main ()
9884 FILE *f = fopen ("conftest.val", "w");
9885 if (! f)
9886 return 1;
9887 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9889 long int i = longval ();
9890 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9891 return 1;
9892 fprintf (f, "%ld\n", i);
9894 else
9896 unsigned long int i = ulongval ();
9897 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9898 return 1;
9899 fprintf (f, "%lu\n", i);
9901 return ferror (f) || fclose (f) != 0;
9904 return 0;
9906 _ACEOF
9907 rm -f conftest$ac_exeext
9908 if { (ac_try="$ac_link"
9909 case "(($ac_try" in
9910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9911 *) ac_try_echo=$ac_try;;
9912 esac
9913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9914 (eval "$ac_link") 2>&5
9915 ac_status=$?
9916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9917 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9918 { (case "(($ac_try" in
9919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9920 *) ac_try_echo=$ac_try;;
9921 esac
9922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9923 (eval "$ac_try") 2>&5
9924 ac_status=$?
9925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926 (exit $ac_status); }; }; then
9927 ac_cv_sizeof_double=`cat conftest.val`
9928 else
9929 echo "$as_me: program exited with status $ac_status" >&5
9930 echo "$as_me: failed program was:" >&5
9931 sed 's/^/| /' conftest.$ac_ext >&5
9933 ( exit $ac_status )
9934 if test "$ac_cv_type_double" = yes; then
9935 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
9936 See \`config.log' for more details." >&5
9937 echo "$as_me: error: cannot compute sizeof (double)
9938 See \`config.log' for more details." >&2;}
9939 { (exit 77); exit 77; }; }
9940 else
9941 ac_cv_sizeof_double=0
9944 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9946 rm -f conftest.val
9948 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
9949 echo "${ECHO_T}$ac_cv_sizeof_double" >&6; }
9953 cat >>confdefs.h <<_ACEOF
9954 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
9955 _ACEOF
9958 { echo "$as_me:$LINENO: checking for fpos_t" >&5
9959 echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6; }
9960 if test "${ac_cv_type_fpos_t+set}" = set; then
9961 echo $ECHO_N "(cached) $ECHO_C" >&6
9962 else
9963 cat >conftest.$ac_ext <<_ACEOF
9964 /* confdefs.h. */
9965 _ACEOF
9966 cat confdefs.h >>conftest.$ac_ext
9967 cat >>conftest.$ac_ext <<_ACEOF
9968 /* end confdefs.h. */
9969 $ac_includes_default
9970 typedef fpos_t ac__type_new_;
9972 main ()
9974 if ((ac__type_new_ *) 0)
9975 return 0;
9976 if (sizeof (ac__type_new_))
9977 return 0;
9979 return 0;
9981 _ACEOF
9982 rm -f conftest.$ac_objext
9983 if { (ac_try="$ac_compile"
9984 case "(($ac_try" in
9985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9986 *) ac_try_echo=$ac_try;;
9987 esac
9988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9989 (eval "$ac_compile") 2>conftest.er1
9990 ac_status=$?
9991 grep -v '^ *+' conftest.er1 >conftest.err
9992 rm -f conftest.er1
9993 cat conftest.err >&5
9994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9995 (exit $ac_status); } && {
9996 test -z "$ac_c_werror_flag" ||
9997 test ! -s conftest.err
9998 } && test -s conftest.$ac_objext; then
9999 ac_cv_type_fpos_t=yes
10000 else
10001 echo "$as_me: failed program was:" >&5
10002 sed 's/^/| /' conftest.$ac_ext >&5
10004 ac_cv_type_fpos_t=no
10007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10009 { echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
10010 echo "${ECHO_T}$ac_cv_type_fpos_t" >&6; }
10012 # The cast to long int works around a bug in the HP C Compiler
10013 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10014 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10015 # This bug is HP SR number 8606223364.
10016 { echo "$as_me:$LINENO: checking size of fpos_t" >&5
10017 echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6; }
10018 if test "${ac_cv_sizeof_fpos_t+set}" = set; then
10019 echo $ECHO_N "(cached) $ECHO_C" >&6
10020 else
10021 if test "$cross_compiling" = yes; then
10022 # Depending upon the size, compute the lo and hi bounds.
10023 cat >conftest.$ac_ext <<_ACEOF
10024 /* confdefs.h. */
10025 _ACEOF
10026 cat confdefs.h >>conftest.$ac_ext
10027 cat >>conftest.$ac_ext <<_ACEOF
10028 /* end confdefs.h. */
10029 $ac_includes_default
10030 typedef fpos_t ac__type_sizeof_;
10032 main ()
10034 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10035 test_array [0] = 0
10038 return 0;
10040 _ACEOF
10041 rm -f conftest.$ac_objext
10042 if { (ac_try="$ac_compile"
10043 case "(($ac_try" in
10044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10045 *) ac_try_echo=$ac_try;;
10046 esac
10047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10048 (eval "$ac_compile") 2>conftest.er1
10049 ac_status=$?
10050 grep -v '^ *+' conftest.er1 >conftest.err
10051 rm -f conftest.er1
10052 cat conftest.err >&5
10053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10054 (exit $ac_status); } && {
10055 test -z "$ac_c_werror_flag" ||
10056 test ! -s conftest.err
10057 } && test -s conftest.$ac_objext; then
10058 ac_lo=0 ac_mid=0
10059 while :; do
10060 cat >conftest.$ac_ext <<_ACEOF
10061 /* confdefs.h. */
10062 _ACEOF
10063 cat confdefs.h >>conftest.$ac_ext
10064 cat >>conftest.$ac_ext <<_ACEOF
10065 /* end confdefs.h. */
10066 $ac_includes_default
10067 typedef fpos_t ac__type_sizeof_;
10069 main ()
10071 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10072 test_array [0] = 0
10075 return 0;
10077 _ACEOF
10078 rm -f conftest.$ac_objext
10079 if { (ac_try="$ac_compile"
10080 case "(($ac_try" in
10081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10082 *) ac_try_echo=$ac_try;;
10083 esac
10084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10085 (eval "$ac_compile") 2>conftest.er1
10086 ac_status=$?
10087 grep -v '^ *+' conftest.er1 >conftest.err
10088 rm -f conftest.er1
10089 cat conftest.err >&5
10090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10091 (exit $ac_status); } && {
10092 test -z "$ac_c_werror_flag" ||
10093 test ! -s conftest.err
10094 } && test -s conftest.$ac_objext; then
10095 ac_hi=$ac_mid; break
10096 else
10097 echo "$as_me: failed program was:" >&5
10098 sed 's/^/| /' conftest.$ac_ext >&5
10100 ac_lo=`expr $ac_mid + 1`
10101 if test $ac_lo -le $ac_mid; then
10102 ac_lo= ac_hi=
10103 break
10105 ac_mid=`expr 2 '*' $ac_mid + 1`
10108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10109 done
10110 else
10111 echo "$as_me: failed program was:" >&5
10112 sed 's/^/| /' conftest.$ac_ext >&5
10114 cat >conftest.$ac_ext <<_ACEOF
10115 /* confdefs.h. */
10116 _ACEOF
10117 cat confdefs.h >>conftest.$ac_ext
10118 cat >>conftest.$ac_ext <<_ACEOF
10119 /* end confdefs.h. */
10120 $ac_includes_default
10121 typedef fpos_t ac__type_sizeof_;
10123 main ()
10125 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10126 test_array [0] = 0
10129 return 0;
10131 _ACEOF
10132 rm -f conftest.$ac_objext
10133 if { (ac_try="$ac_compile"
10134 case "(($ac_try" in
10135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10136 *) ac_try_echo=$ac_try;;
10137 esac
10138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10139 (eval "$ac_compile") 2>conftest.er1
10140 ac_status=$?
10141 grep -v '^ *+' conftest.er1 >conftest.err
10142 rm -f conftest.er1
10143 cat conftest.err >&5
10144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10145 (exit $ac_status); } && {
10146 test -z "$ac_c_werror_flag" ||
10147 test ! -s conftest.err
10148 } && test -s conftest.$ac_objext; then
10149 ac_hi=-1 ac_mid=-1
10150 while :; do
10151 cat >conftest.$ac_ext <<_ACEOF
10152 /* confdefs.h. */
10153 _ACEOF
10154 cat confdefs.h >>conftest.$ac_ext
10155 cat >>conftest.$ac_ext <<_ACEOF
10156 /* end confdefs.h. */
10157 $ac_includes_default
10158 typedef fpos_t ac__type_sizeof_;
10160 main ()
10162 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10163 test_array [0] = 0
10166 return 0;
10168 _ACEOF
10169 rm -f conftest.$ac_objext
10170 if { (ac_try="$ac_compile"
10171 case "(($ac_try" in
10172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10173 *) ac_try_echo=$ac_try;;
10174 esac
10175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10176 (eval "$ac_compile") 2>conftest.er1
10177 ac_status=$?
10178 grep -v '^ *+' conftest.er1 >conftest.err
10179 rm -f conftest.er1
10180 cat conftest.err >&5
10181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10182 (exit $ac_status); } && {
10183 test -z "$ac_c_werror_flag" ||
10184 test ! -s conftest.err
10185 } && test -s conftest.$ac_objext; then
10186 ac_lo=$ac_mid; break
10187 else
10188 echo "$as_me: failed program was:" >&5
10189 sed 's/^/| /' conftest.$ac_ext >&5
10191 ac_hi=`expr '(' $ac_mid ')' - 1`
10192 if test $ac_mid -le $ac_hi; then
10193 ac_lo= ac_hi=
10194 break
10196 ac_mid=`expr 2 '*' $ac_mid`
10199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10200 done
10201 else
10202 echo "$as_me: failed program was:" >&5
10203 sed 's/^/| /' conftest.$ac_ext >&5
10205 ac_lo= ac_hi=
10208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10212 # Binary search between lo and hi bounds.
10213 while test "x$ac_lo" != "x$ac_hi"; do
10214 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10215 cat >conftest.$ac_ext <<_ACEOF
10216 /* confdefs.h. */
10217 _ACEOF
10218 cat confdefs.h >>conftest.$ac_ext
10219 cat >>conftest.$ac_ext <<_ACEOF
10220 /* end confdefs.h. */
10221 $ac_includes_default
10222 typedef fpos_t ac__type_sizeof_;
10224 main ()
10226 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10227 test_array [0] = 0
10230 return 0;
10232 _ACEOF
10233 rm -f conftest.$ac_objext
10234 if { (ac_try="$ac_compile"
10235 case "(($ac_try" in
10236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10237 *) ac_try_echo=$ac_try;;
10238 esac
10239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10240 (eval "$ac_compile") 2>conftest.er1
10241 ac_status=$?
10242 grep -v '^ *+' conftest.er1 >conftest.err
10243 rm -f conftest.er1
10244 cat conftest.err >&5
10245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10246 (exit $ac_status); } && {
10247 test -z "$ac_c_werror_flag" ||
10248 test ! -s conftest.err
10249 } && test -s conftest.$ac_objext; then
10250 ac_hi=$ac_mid
10251 else
10252 echo "$as_me: failed program was:" >&5
10253 sed 's/^/| /' conftest.$ac_ext >&5
10255 ac_lo=`expr '(' $ac_mid ')' + 1`
10258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10259 done
10260 case $ac_lo in
10261 ?*) ac_cv_sizeof_fpos_t=$ac_lo;;
10262 '') if test "$ac_cv_type_fpos_t" = yes; then
10263 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
10264 See \`config.log' for more details." >&5
10265 echo "$as_me: error: cannot compute sizeof (fpos_t)
10266 See \`config.log' for more details." >&2;}
10267 { (exit 77); exit 77; }; }
10268 else
10269 ac_cv_sizeof_fpos_t=0
10270 fi ;;
10271 esac
10272 else
10273 cat >conftest.$ac_ext <<_ACEOF
10274 /* confdefs.h. */
10275 _ACEOF
10276 cat confdefs.h >>conftest.$ac_ext
10277 cat >>conftest.$ac_ext <<_ACEOF
10278 /* end confdefs.h. */
10279 $ac_includes_default
10280 typedef fpos_t ac__type_sizeof_;
10281 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10282 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10283 #include <stdio.h>
10284 #include <stdlib.h>
10286 main ()
10289 FILE *f = fopen ("conftest.val", "w");
10290 if (! f)
10291 return 1;
10292 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10294 long int i = longval ();
10295 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10296 return 1;
10297 fprintf (f, "%ld\n", i);
10299 else
10301 unsigned long int i = ulongval ();
10302 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10303 return 1;
10304 fprintf (f, "%lu\n", i);
10306 return ferror (f) || fclose (f) != 0;
10309 return 0;
10311 _ACEOF
10312 rm -f conftest$ac_exeext
10313 if { (ac_try="$ac_link"
10314 case "(($ac_try" in
10315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10316 *) ac_try_echo=$ac_try;;
10317 esac
10318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10319 (eval "$ac_link") 2>&5
10320 ac_status=$?
10321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10322 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10323 { (case "(($ac_try" in
10324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10325 *) ac_try_echo=$ac_try;;
10326 esac
10327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10328 (eval "$ac_try") 2>&5
10329 ac_status=$?
10330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10331 (exit $ac_status); }; }; then
10332 ac_cv_sizeof_fpos_t=`cat conftest.val`
10333 else
10334 echo "$as_me: program exited with status $ac_status" >&5
10335 echo "$as_me: failed program was:" >&5
10336 sed 's/^/| /' conftest.$ac_ext >&5
10338 ( exit $ac_status )
10339 if test "$ac_cv_type_fpos_t" = yes; then
10340 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
10341 See \`config.log' for more details." >&5
10342 echo "$as_me: error: cannot compute sizeof (fpos_t)
10343 See \`config.log' for more details." >&2;}
10344 { (exit 77); exit 77; }; }
10345 else
10346 ac_cv_sizeof_fpos_t=0
10349 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10351 rm -f conftest.val
10353 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
10354 echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6; }
10358 cat >>confdefs.h <<_ACEOF
10359 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
10360 _ACEOF
10363 { echo "$as_me:$LINENO: checking for size_t" >&5
10364 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
10365 if test "${ac_cv_type_size_t+set}" = set; then
10366 echo $ECHO_N "(cached) $ECHO_C" >&6
10367 else
10368 cat >conftest.$ac_ext <<_ACEOF
10369 /* confdefs.h. */
10370 _ACEOF
10371 cat confdefs.h >>conftest.$ac_ext
10372 cat >>conftest.$ac_ext <<_ACEOF
10373 /* end confdefs.h. */
10374 $ac_includes_default
10375 typedef size_t ac__type_new_;
10377 main ()
10379 if ((ac__type_new_ *) 0)
10380 return 0;
10381 if (sizeof (ac__type_new_))
10382 return 0;
10384 return 0;
10386 _ACEOF
10387 rm -f conftest.$ac_objext
10388 if { (ac_try="$ac_compile"
10389 case "(($ac_try" in
10390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10391 *) ac_try_echo=$ac_try;;
10392 esac
10393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10394 (eval "$ac_compile") 2>conftest.er1
10395 ac_status=$?
10396 grep -v '^ *+' conftest.er1 >conftest.err
10397 rm -f conftest.er1
10398 cat conftest.err >&5
10399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10400 (exit $ac_status); } && {
10401 test -z "$ac_c_werror_flag" ||
10402 test ! -s conftest.err
10403 } && test -s conftest.$ac_objext; then
10404 ac_cv_type_size_t=yes
10405 else
10406 echo "$as_me: failed program was:" >&5
10407 sed 's/^/| /' conftest.$ac_ext >&5
10409 ac_cv_type_size_t=no
10412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10414 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10415 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
10417 # The cast to long int works around a bug in the HP C Compiler
10418 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10419 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10420 # This bug is HP SR number 8606223364.
10421 { echo "$as_me:$LINENO: checking size of size_t" >&5
10422 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
10423 if test "${ac_cv_sizeof_size_t+set}" = set; then
10424 echo $ECHO_N "(cached) $ECHO_C" >&6
10425 else
10426 if test "$cross_compiling" = yes; then
10427 # Depending upon the size, compute the lo and hi bounds.
10428 cat >conftest.$ac_ext <<_ACEOF
10429 /* confdefs.h. */
10430 _ACEOF
10431 cat confdefs.h >>conftest.$ac_ext
10432 cat >>conftest.$ac_ext <<_ACEOF
10433 /* end confdefs.h. */
10434 $ac_includes_default
10435 typedef size_t ac__type_sizeof_;
10437 main ()
10439 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10440 test_array [0] = 0
10443 return 0;
10445 _ACEOF
10446 rm -f conftest.$ac_objext
10447 if { (ac_try="$ac_compile"
10448 case "(($ac_try" in
10449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10450 *) ac_try_echo=$ac_try;;
10451 esac
10452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10453 (eval "$ac_compile") 2>conftest.er1
10454 ac_status=$?
10455 grep -v '^ *+' conftest.er1 >conftest.err
10456 rm -f conftest.er1
10457 cat conftest.err >&5
10458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10459 (exit $ac_status); } && {
10460 test -z "$ac_c_werror_flag" ||
10461 test ! -s conftest.err
10462 } && test -s conftest.$ac_objext; then
10463 ac_lo=0 ac_mid=0
10464 while :; do
10465 cat >conftest.$ac_ext <<_ACEOF
10466 /* confdefs.h. */
10467 _ACEOF
10468 cat confdefs.h >>conftest.$ac_ext
10469 cat >>conftest.$ac_ext <<_ACEOF
10470 /* end confdefs.h. */
10471 $ac_includes_default
10472 typedef size_t ac__type_sizeof_;
10474 main ()
10476 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10477 test_array [0] = 0
10480 return 0;
10482 _ACEOF
10483 rm -f conftest.$ac_objext
10484 if { (ac_try="$ac_compile"
10485 case "(($ac_try" in
10486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10487 *) ac_try_echo=$ac_try;;
10488 esac
10489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10490 (eval "$ac_compile") 2>conftest.er1
10491 ac_status=$?
10492 grep -v '^ *+' conftest.er1 >conftest.err
10493 rm -f conftest.er1
10494 cat conftest.err >&5
10495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10496 (exit $ac_status); } && {
10497 test -z "$ac_c_werror_flag" ||
10498 test ! -s conftest.err
10499 } && test -s conftest.$ac_objext; then
10500 ac_hi=$ac_mid; break
10501 else
10502 echo "$as_me: failed program was:" >&5
10503 sed 's/^/| /' conftest.$ac_ext >&5
10505 ac_lo=`expr $ac_mid + 1`
10506 if test $ac_lo -le $ac_mid; then
10507 ac_lo= ac_hi=
10508 break
10510 ac_mid=`expr 2 '*' $ac_mid + 1`
10513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10514 done
10515 else
10516 echo "$as_me: failed program was:" >&5
10517 sed 's/^/| /' conftest.$ac_ext >&5
10519 cat >conftest.$ac_ext <<_ACEOF
10520 /* confdefs.h. */
10521 _ACEOF
10522 cat confdefs.h >>conftest.$ac_ext
10523 cat >>conftest.$ac_ext <<_ACEOF
10524 /* end confdefs.h. */
10525 $ac_includes_default
10526 typedef size_t ac__type_sizeof_;
10528 main ()
10530 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10531 test_array [0] = 0
10534 return 0;
10536 _ACEOF
10537 rm -f conftest.$ac_objext
10538 if { (ac_try="$ac_compile"
10539 case "(($ac_try" in
10540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10541 *) ac_try_echo=$ac_try;;
10542 esac
10543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10544 (eval "$ac_compile") 2>conftest.er1
10545 ac_status=$?
10546 grep -v '^ *+' conftest.er1 >conftest.err
10547 rm -f conftest.er1
10548 cat conftest.err >&5
10549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10550 (exit $ac_status); } && {
10551 test -z "$ac_c_werror_flag" ||
10552 test ! -s conftest.err
10553 } && test -s conftest.$ac_objext; then
10554 ac_hi=-1 ac_mid=-1
10555 while :; do
10556 cat >conftest.$ac_ext <<_ACEOF
10557 /* confdefs.h. */
10558 _ACEOF
10559 cat confdefs.h >>conftest.$ac_ext
10560 cat >>conftest.$ac_ext <<_ACEOF
10561 /* end confdefs.h. */
10562 $ac_includes_default
10563 typedef size_t ac__type_sizeof_;
10565 main ()
10567 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10568 test_array [0] = 0
10571 return 0;
10573 _ACEOF
10574 rm -f conftest.$ac_objext
10575 if { (ac_try="$ac_compile"
10576 case "(($ac_try" in
10577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10578 *) ac_try_echo=$ac_try;;
10579 esac
10580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10581 (eval "$ac_compile") 2>conftest.er1
10582 ac_status=$?
10583 grep -v '^ *+' conftest.er1 >conftest.err
10584 rm -f conftest.er1
10585 cat conftest.err >&5
10586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10587 (exit $ac_status); } && {
10588 test -z "$ac_c_werror_flag" ||
10589 test ! -s conftest.err
10590 } && test -s conftest.$ac_objext; then
10591 ac_lo=$ac_mid; break
10592 else
10593 echo "$as_me: failed program was:" >&5
10594 sed 's/^/| /' conftest.$ac_ext >&5
10596 ac_hi=`expr '(' $ac_mid ')' - 1`
10597 if test $ac_mid -le $ac_hi; then
10598 ac_lo= ac_hi=
10599 break
10601 ac_mid=`expr 2 '*' $ac_mid`
10604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10605 done
10606 else
10607 echo "$as_me: failed program was:" >&5
10608 sed 's/^/| /' conftest.$ac_ext >&5
10610 ac_lo= ac_hi=
10613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10617 # Binary search between lo and hi bounds.
10618 while test "x$ac_lo" != "x$ac_hi"; do
10619 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10620 cat >conftest.$ac_ext <<_ACEOF
10621 /* confdefs.h. */
10622 _ACEOF
10623 cat confdefs.h >>conftest.$ac_ext
10624 cat >>conftest.$ac_ext <<_ACEOF
10625 /* end confdefs.h. */
10626 $ac_includes_default
10627 typedef size_t ac__type_sizeof_;
10629 main ()
10631 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10632 test_array [0] = 0
10635 return 0;
10637 _ACEOF
10638 rm -f conftest.$ac_objext
10639 if { (ac_try="$ac_compile"
10640 case "(($ac_try" in
10641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10642 *) ac_try_echo=$ac_try;;
10643 esac
10644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10645 (eval "$ac_compile") 2>conftest.er1
10646 ac_status=$?
10647 grep -v '^ *+' conftest.er1 >conftest.err
10648 rm -f conftest.er1
10649 cat conftest.err >&5
10650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10651 (exit $ac_status); } && {
10652 test -z "$ac_c_werror_flag" ||
10653 test ! -s conftest.err
10654 } && test -s conftest.$ac_objext; then
10655 ac_hi=$ac_mid
10656 else
10657 echo "$as_me: failed program was:" >&5
10658 sed 's/^/| /' conftest.$ac_ext >&5
10660 ac_lo=`expr '(' $ac_mid ')' + 1`
10663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10664 done
10665 case $ac_lo in
10666 ?*) ac_cv_sizeof_size_t=$ac_lo;;
10667 '') if test "$ac_cv_type_size_t" = yes; then
10668 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
10669 See \`config.log' for more details." >&5
10670 echo "$as_me: error: cannot compute sizeof (size_t)
10671 See \`config.log' for more details." >&2;}
10672 { (exit 77); exit 77; }; }
10673 else
10674 ac_cv_sizeof_size_t=0
10675 fi ;;
10676 esac
10677 else
10678 cat >conftest.$ac_ext <<_ACEOF
10679 /* confdefs.h. */
10680 _ACEOF
10681 cat confdefs.h >>conftest.$ac_ext
10682 cat >>conftest.$ac_ext <<_ACEOF
10683 /* end confdefs.h. */
10684 $ac_includes_default
10685 typedef size_t ac__type_sizeof_;
10686 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10687 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10688 #include <stdio.h>
10689 #include <stdlib.h>
10691 main ()
10694 FILE *f = fopen ("conftest.val", "w");
10695 if (! f)
10696 return 1;
10697 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10699 long int i = longval ();
10700 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10701 return 1;
10702 fprintf (f, "%ld\n", i);
10704 else
10706 unsigned long int i = ulongval ();
10707 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10708 return 1;
10709 fprintf (f, "%lu\n", i);
10711 return ferror (f) || fclose (f) != 0;
10714 return 0;
10716 _ACEOF
10717 rm -f conftest$ac_exeext
10718 if { (ac_try="$ac_link"
10719 case "(($ac_try" in
10720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10721 *) ac_try_echo=$ac_try;;
10722 esac
10723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10724 (eval "$ac_link") 2>&5
10725 ac_status=$?
10726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10727 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10728 { (case "(($ac_try" in
10729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10730 *) ac_try_echo=$ac_try;;
10731 esac
10732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10733 (eval "$ac_try") 2>&5
10734 ac_status=$?
10735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10736 (exit $ac_status); }; }; then
10737 ac_cv_sizeof_size_t=`cat conftest.val`
10738 else
10739 echo "$as_me: program exited with status $ac_status" >&5
10740 echo "$as_me: failed program was:" >&5
10741 sed 's/^/| /' conftest.$ac_ext >&5
10743 ( exit $ac_status )
10744 if test "$ac_cv_type_size_t" = yes; then
10745 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
10746 See \`config.log' for more details." >&5
10747 echo "$as_me: error: cannot compute sizeof (size_t)
10748 See \`config.log' for more details." >&2;}
10749 { (exit 77); exit 77; }; }
10750 else
10751 ac_cv_sizeof_size_t=0
10754 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10756 rm -f conftest.val
10758 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
10759 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
10763 cat >>confdefs.h <<_ACEOF
10764 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
10765 _ACEOF
10768 { echo "$as_me:$LINENO: checking for pid_t" >&5
10769 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
10770 if test "${ac_cv_type_pid_t+set}" = set; then
10771 echo $ECHO_N "(cached) $ECHO_C" >&6
10772 else
10773 cat >conftest.$ac_ext <<_ACEOF
10774 /* confdefs.h. */
10775 _ACEOF
10776 cat confdefs.h >>conftest.$ac_ext
10777 cat >>conftest.$ac_ext <<_ACEOF
10778 /* end confdefs.h. */
10779 $ac_includes_default
10780 typedef pid_t ac__type_new_;
10782 main ()
10784 if ((ac__type_new_ *) 0)
10785 return 0;
10786 if (sizeof (ac__type_new_))
10787 return 0;
10789 return 0;
10791 _ACEOF
10792 rm -f conftest.$ac_objext
10793 if { (ac_try="$ac_compile"
10794 case "(($ac_try" in
10795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10796 *) ac_try_echo=$ac_try;;
10797 esac
10798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10799 (eval "$ac_compile") 2>conftest.er1
10800 ac_status=$?
10801 grep -v '^ *+' conftest.er1 >conftest.err
10802 rm -f conftest.er1
10803 cat conftest.err >&5
10804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10805 (exit $ac_status); } && {
10806 test -z "$ac_c_werror_flag" ||
10807 test ! -s conftest.err
10808 } && test -s conftest.$ac_objext; then
10809 ac_cv_type_pid_t=yes
10810 else
10811 echo "$as_me: failed program was:" >&5
10812 sed 's/^/| /' conftest.$ac_ext >&5
10814 ac_cv_type_pid_t=no
10817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10819 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10820 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
10822 # The cast to long int works around a bug in the HP C Compiler
10823 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10824 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10825 # This bug is HP SR number 8606223364.
10826 { echo "$as_me:$LINENO: checking size of pid_t" >&5
10827 echo $ECHO_N "checking size of pid_t... $ECHO_C" >&6; }
10828 if test "${ac_cv_sizeof_pid_t+set}" = set; then
10829 echo $ECHO_N "(cached) $ECHO_C" >&6
10830 else
10831 if test "$cross_compiling" = yes; then
10832 # Depending upon the size, compute the lo and hi bounds.
10833 cat >conftest.$ac_ext <<_ACEOF
10834 /* confdefs.h. */
10835 _ACEOF
10836 cat confdefs.h >>conftest.$ac_ext
10837 cat >>conftest.$ac_ext <<_ACEOF
10838 /* end confdefs.h. */
10839 $ac_includes_default
10840 typedef pid_t ac__type_sizeof_;
10842 main ()
10844 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10845 test_array [0] = 0
10848 return 0;
10850 _ACEOF
10851 rm -f conftest.$ac_objext
10852 if { (ac_try="$ac_compile"
10853 case "(($ac_try" in
10854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10855 *) ac_try_echo=$ac_try;;
10856 esac
10857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10858 (eval "$ac_compile") 2>conftest.er1
10859 ac_status=$?
10860 grep -v '^ *+' conftest.er1 >conftest.err
10861 rm -f conftest.er1
10862 cat conftest.err >&5
10863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10864 (exit $ac_status); } && {
10865 test -z "$ac_c_werror_flag" ||
10866 test ! -s conftest.err
10867 } && test -s conftest.$ac_objext; then
10868 ac_lo=0 ac_mid=0
10869 while :; do
10870 cat >conftest.$ac_ext <<_ACEOF
10871 /* confdefs.h. */
10872 _ACEOF
10873 cat confdefs.h >>conftest.$ac_ext
10874 cat >>conftest.$ac_ext <<_ACEOF
10875 /* end confdefs.h. */
10876 $ac_includes_default
10877 typedef pid_t ac__type_sizeof_;
10879 main ()
10881 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10882 test_array [0] = 0
10885 return 0;
10887 _ACEOF
10888 rm -f conftest.$ac_objext
10889 if { (ac_try="$ac_compile"
10890 case "(($ac_try" in
10891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10892 *) ac_try_echo=$ac_try;;
10893 esac
10894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10895 (eval "$ac_compile") 2>conftest.er1
10896 ac_status=$?
10897 grep -v '^ *+' conftest.er1 >conftest.err
10898 rm -f conftest.er1
10899 cat conftest.err >&5
10900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10901 (exit $ac_status); } && {
10902 test -z "$ac_c_werror_flag" ||
10903 test ! -s conftest.err
10904 } && test -s conftest.$ac_objext; then
10905 ac_hi=$ac_mid; break
10906 else
10907 echo "$as_me: failed program was:" >&5
10908 sed 's/^/| /' conftest.$ac_ext >&5
10910 ac_lo=`expr $ac_mid + 1`
10911 if test $ac_lo -le $ac_mid; then
10912 ac_lo= ac_hi=
10913 break
10915 ac_mid=`expr 2 '*' $ac_mid + 1`
10918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10919 done
10920 else
10921 echo "$as_me: failed program was:" >&5
10922 sed 's/^/| /' conftest.$ac_ext >&5
10924 cat >conftest.$ac_ext <<_ACEOF
10925 /* confdefs.h. */
10926 _ACEOF
10927 cat confdefs.h >>conftest.$ac_ext
10928 cat >>conftest.$ac_ext <<_ACEOF
10929 /* end confdefs.h. */
10930 $ac_includes_default
10931 typedef pid_t ac__type_sizeof_;
10933 main ()
10935 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10936 test_array [0] = 0
10939 return 0;
10941 _ACEOF
10942 rm -f conftest.$ac_objext
10943 if { (ac_try="$ac_compile"
10944 case "(($ac_try" in
10945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10946 *) ac_try_echo=$ac_try;;
10947 esac
10948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10949 (eval "$ac_compile") 2>conftest.er1
10950 ac_status=$?
10951 grep -v '^ *+' conftest.er1 >conftest.err
10952 rm -f conftest.er1
10953 cat conftest.err >&5
10954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10955 (exit $ac_status); } && {
10956 test -z "$ac_c_werror_flag" ||
10957 test ! -s conftest.err
10958 } && test -s conftest.$ac_objext; then
10959 ac_hi=-1 ac_mid=-1
10960 while :; do
10961 cat >conftest.$ac_ext <<_ACEOF
10962 /* confdefs.h. */
10963 _ACEOF
10964 cat confdefs.h >>conftest.$ac_ext
10965 cat >>conftest.$ac_ext <<_ACEOF
10966 /* end confdefs.h. */
10967 $ac_includes_default
10968 typedef pid_t ac__type_sizeof_;
10970 main ()
10972 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10973 test_array [0] = 0
10976 return 0;
10978 _ACEOF
10979 rm -f conftest.$ac_objext
10980 if { (ac_try="$ac_compile"
10981 case "(($ac_try" in
10982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10983 *) ac_try_echo=$ac_try;;
10984 esac
10985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10986 (eval "$ac_compile") 2>conftest.er1
10987 ac_status=$?
10988 grep -v '^ *+' conftest.er1 >conftest.err
10989 rm -f conftest.er1
10990 cat conftest.err >&5
10991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10992 (exit $ac_status); } && {
10993 test -z "$ac_c_werror_flag" ||
10994 test ! -s conftest.err
10995 } && test -s conftest.$ac_objext; then
10996 ac_lo=$ac_mid; break
10997 else
10998 echo "$as_me: failed program was:" >&5
10999 sed 's/^/| /' conftest.$ac_ext >&5
11001 ac_hi=`expr '(' $ac_mid ')' - 1`
11002 if test $ac_mid -le $ac_hi; then
11003 ac_lo= ac_hi=
11004 break
11006 ac_mid=`expr 2 '*' $ac_mid`
11009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11010 done
11011 else
11012 echo "$as_me: failed program was:" >&5
11013 sed 's/^/| /' conftest.$ac_ext >&5
11015 ac_lo= ac_hi=
11018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11022 # Binary search between lo and hi bounds.
11023 while test "x$ac_lo" != "x$ac_hi"; do
11024 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11025 cat >conftest.$ac_ext <<_ACEOF
11026 /* confdefs.h. */
11027 _ACEOF
11028 cat confdefs.h >>conftest.$ac_ext
11029 cat >>conftest.$ac_ext <<_ACEOF
11030 /* end confdefs.h. */
11031 $ac_includes_default
11032 typedef pid_t ac__type_sizeof_;
11034 main ()
11036 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11037 test_array [0] = 0
11040 return 0;
11042 _ACEOF
11043 rm -f conftest.$ac_objext
11044 if { (ac_try="$ac_compile"
11045 case "(($ac_try" in
11046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11047 *) ac_try_echo=$ac_try;;
11048 esac
11049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11050 (eval "$ac_compile") 2>conftest.er1
11051 ac_status=$?
11052 grep -v '^ *+' conftest.er1 >conftest.err
11053 rm -f conftest.er1
11054 cat conftest.err >&5
11055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11056 (exit $ac_status); } && {
11057 test -z "$ac_c_werror_flag" ||
11058 test ! -s conftest.err
11059 } && test -s conftest.$ac_objext; then
11060 ac_hi=$ac_mid
11061 else
11062 echo "$as_me: failed program was:" >&5
11063 sed 's/^/| /' conftest.$ac_ext >&5
11065 ac_lo=`expr '(' $ac_mid ')' + 1`
11068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11069 done
11070 case $ac_lo in
11071 ?*) ac_cv_sizeof_pid_t=$ac_lo;;
11072 '') if test "$ac_cv_type_pid_t" = yes; then
11073 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t)
11074 See \`config.log' for more details." >&5
11075 echo "$as_me: error: cannot compute sizeof (pid_t)
11076 See \`config.log' for more details." >&2;}
11077 { (exit 77); exit 77; }; }
11078 else
11079 ac_cv_sizeof_pid_t=0
11080 fi ;;
11081 esac
11082 else
11083 cat >conftest.$ac_ext <<_ACEOF
11084 /* confdefs.h. */
11085 _ACEOF
11086 cat confdefs.h >>conftest.$ac_ext
11087 cat >>conftest.$ac_ext <<_ACEOF
11088 /* end confdefs.h. */
11089 $ac_includes_default
11090 typedef pid_t ac__type_sizeof_;
11091 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11092 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11093 #include <stdio.h>
11094 #include <stdlib.h>
11096 main ()
11099 FILE *f = fopen ("conftest.val", "w");
11100 if (! f)
11101 return 1;
11102 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11104 long int i = longval ();
11105 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11106 return 1;
11107 fprintf (f, "%ld\n", i);
11109 else
11111 unsigned long int i = ulongval ();
11112 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11113 return 1;
11114 fprintf (f, "%lu\n", i);
11116 return ferror (f) || fclose (f) != 0;
11119 return 0;
11121 _ACEOF
11122 rm -f conftest$ac_exeext
11123 if { (ac_try="$ac_link"
11124 case "(($ac_try" in
11125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11126 *) ac_try_echo=$ac_try;;
11127 esac
11128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11129 (eval "$ac_link") 2>&5
11130 ac_status=$?
11131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11132 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11133 { (case "(($ac_try" in
11134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11135 *) ac_try_echo=$ac_try;;
11136 esac
11137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11138 (eval "$ac_try") 2>&5
11139 ac_status=$?
11140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11141 (exit $ac_status); }; }; then
11142 ac_cv_sizeof_pid_t=`cat conftest.val`
11143 else
11144 echo "$as_me: program exited with status $ac_status" >&5
11145 echo "$as_me: failed program was:" >&5
11146 sed 's/^/| /' conftest.$ac_ext >&5
11148 ( exit $ac_status )
11149 if test "$ac_cv_type_pid_t" = yes; then
11150 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t)
11151 See \`config.log' for more details." >&5
11152 echo "$as_me: error: cannot compute sizeof (pid_t)
11153 See \`config.log' for more details." >&2;}
11154 { (exit 77); exit 77; }; }
11155 else
11156 ac_cv_sizeof_pid_t=0
11159 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11161 rm -f conftest.val
11163 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pid_t" >&5
11164 echo "${ECHO_T}$ac_cv_sizeof_pid_t" >&6; }
11168 cat >>confdefs.h <<_ACEOF
11169 #define SIZEOF_PID_T $ac_cv_sizeof_pid_t
11170 _ACEOF
11174 { echo "$as_me:$LINENO: checking for long long support" >&5
11175 echo $ECHO_N "checking for long long support... $ECHO_C" >&6; }
11176 have_long_long=no
11177 cat >conftest.$ac_ext <<_ACEOF
11178 /* confdefs.h. */
11179 _ACEOF
11180 cat confdefs.h >>conftest.$ac_ext
11181 cat >>conftest.$ac_ext <<_ACEOF
11182 /* end confdefs.h. */
11185 main ()
11187 long long x; x = (long long)0;
11189 return 0;
11191 _ACEOF
11192 rm -f conftest.$ac_objext
11193 if { (ac_try="$ac_compile"
11194 case "(($ac_try" in
11195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11196 *) ac_try_echo=$ac_try;;
11197 esac
11198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11199 (eval "$ac_compile") 2>conftest.er1
11200 ac_status=$?
11201 grep -v '^ *+' conftest.er1 >conftest.err
11202 rm -f conftest.er1
11203 cat conftest.err >&5
11204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11205 (exit $ac_status); } && {
11206 test -z "$ac_c_werror_flag" ||
11207 test ! -s conftest.err
11208 } && test -s conftest.$ac_objext; then
11211 cat >>confdefs.h <<\_ACEOF
11212 #define HAVE_LONG_LONG 1
11213 _ACEOF
11215 have_long_long=yes
11217 else
11218 echo "$as_me: failed program was:" >&5
11219 sed 's/^/| /' conftest.$ac_ext >&5
11224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11225 { echo "$as_me:$LINENO: result: $have_long_long" >&5
11226 echo "${ECHO_T}$have_long_long" >&6; }
11227 if test "$have_long_long" = yes ; then
11228 { echo "$as_me:$LINENO: checking for long long" >&5
11229 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
11230 if test "${ac_cv_type_long_long+set}" = set; then
11231 echo $ECHO_N "(cached) $ECHO_C" >&6
11232 else
11233 cat >conftest.$ac_ext <<_ACEOF
11234 /* confdefs.h. */
11235 _ACEOF
11236 cat confdefs.h >>conftest.$ac_ext
11237 cat >>conftest.$ac_ext <<_ACEOF
11238 /* end confdefs.h. */
11239 $ac_includes_default
11240 typedef long long ac__type_new_;
11242 main ()
11244 if ((ac__type_new_ *) 0)
11245 return 0;
11246 if (sizeof (ac__type_new_))
11247 return 0;
11249 return 0;
11251 _ACEOF
11252 rm -f conftest.$ac_objext
11253 if { (ac_try="$ac_compile"
11254 case "(($ac_try" in
11255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11256 *) ac_try_echo=$ac_try;;
11257 esac
11258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11259 (eval "$ac_compile") 2>conftest.er1
11260 ac_status=$?
11261 grep -v '^ *+' conftest.er1 >conftest.err
11262 rm -f conftest.er1
11263 cat conftest.err >&5
11264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11265 (exit $ac_status); } && {
11266 test -z "$ac_c_werror_flag" ||
11267 test ! -s conftest.err
11268 } && test -s conftest.$ac_objext; then
11269 ac_cv_type_long_long=yes
11270 else
11271 echo "$as_me: failed program was:" >&5
11272 sed 's/^/| /' conftest.$ac_ext >&5
11274 ac_cv_type_long_long=no
11277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11279 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
11280 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
11282 # The cast to long int works around a bug in the HP C Compiler
11283 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11284 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11285 # This bug is HP SR number 8606223364.
11286 { echo "$as_me:$LINENO: checking size of long long" >&5
11287 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
11288 if test "${ac_cv_sizeof_long_long+set}" = set; then
11289 echo $ECHO_N "(cached) $ECHO_C" >&6
11290 else
11291 if test "$cross_compiling" = yes; then
11292 # Depending upon the size, compute the lo and hi bounds.
11293 cat >conftest.$ac_ext <<_ACEOF
11294 /* confdefs.h. */
11295 _ACEOF
11296 cat confdefs.h >>conftest.$ac_ext
11297 cat >>conftest.$ac_ext <<_ACEOF
11298 /* end confdefs.h. */
11299 $ac_includes_default
11300 typedef long long ac__type_sizeof_;
11302 main ()
11304 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11305 test_array [0] = 0
11308 return 0;
11310 _ACEOF
11311 rm -f conftest.$ac_objext
11312 if { (ac_try="$ac_compile"
11313 case "(($ac_try" in
11314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11315 *) ac_try_echo=$ac_try;;
11316 esac
11317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11318 (eval "$ac_compile") 2>conftest.er1
11319 ac_status=$?
11320 grep -v '^ *+' conftest.er1 >conftest.err
11321 rm -f conftest.er1
11322 cat conftest.err >&5
11323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11324 (exit $ac_status); } && {
11325 test -z "$ac_c_werror_flag" ||
11326 test ! -s conftest.err
11327 } && test -s conftest.$ac_objext; then
11328 ac_lo=0 ac_mid=0
11329 while :; do
11330 cat >conftest.$ac_ext <<_ACEOF
11331 /* confdefs.h. */
11332 _ACEOF
11333 cat confdefs.h >>conftest.$ac_ext
11334 cat >>conftest.$ac_ext <<_ACEOF
11335 /* end confdefs.h. */
11336 $ac_includes_default
11337 typedef long long ac__type_sizeof_;
11339 main ()
11341 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11342 test_array [0] = 0
11345 return 0;
11347 _ACEOF
11348 rm -f conftest.$ac_objext
11349 if { (ac_try="$ac_compile"
11350 case "(($ac_try" in
11351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11352 *) ac_try_echo=$ac_try;;
11353 esac
11354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11355 (eval "$ac_compile") 2>conftest.er1
11356 ac_status=$?
11357 grep -v '^ *+' conftest.er1 >conftest.err
11358 rm -f conftest.er1
11359 cat conftest.err >&5
11360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11361 (exit $ac_status); } && {
11362 test -z "$ac_c_werror_flag" ||
11363 test ! -s conftest.err
11364 } && test -s conftest.$ac_objext; then
11365 ac_hi=$ac_mid; break
11366 else
11367 echo "$as_me: failed program was:" >&5
11368 sed 's/^/| /' conftest.$ac_ext >&5
11370 ac_lo=`expr $ac_mid + 1`
11371 if test $ac_lo -le $ac_mid; then
11372 ac_lo= ac_hi=
11373 break
11375 ac_mid=`expr 2 '*' $ac_mid + 1`
11378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11379 done
11380 else
11381 echo "$as_me: failed program was:" >&5
11382 sed 's/^/| /' conftest.$ac_ext >&5
11384 cat >conftest.$ac_ext <<_ACEOF
11385 /* confdefs.h. */
11386 _ACEOF
11387 cat confdefs.h >>conftest.$ac_ext
11388 cat >>conftest.$ac_ext <<_ACEOF
11389 /* end confdefs.h. */
11390 $ac_includes_default
11391 typedef long long ac__type_sizeof_;
11393 main ()
11395 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11396 test_array [0] = 0
11399 return 0;
11401 _ACEOF
11402 rm -f conftest.$ac_objext
11403 if { (ac_try="$ac_compile"
11404 case "(($ac_try" in
11405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11406 *) ac_try_echo=$ac_try;;
11407 esac
11408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11409 (eval "$ac_compile") 2>conftest.er1
11410 ac_status=$?
11411 grep -v '^ *+' conftest.er1 >conftest.err
11412 rm -f conftest.er1
11413 cat conftest.err >&5
11414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11415 (exit $ac_status); } && {
11416 test -z "$ac_c_werror_flag" ||
11417 test ! -s conftest.err
11418 } && test -s conftest.$ac_objext; then
11419 ac_hi=-1 ac_mid=-1
11420 while :; do
11421 cat >conftest.$ac_ext <<_ACEOF
11422 /* confdefs.h. */
11423 _ACEOF
11424 cat confdefs.h >>conftest.$ac_ext
11425 cat >>conftest.$ac_ext <<_ACEOF
11426 /* end confdefs.h. */
11427 $ac_includes_default
11428 typedef long long ac__type_sizeof_;
11430 main ()
11432 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11433 test_array [0] = 0
11436 return 0;
11438 _ACEOF
11439 rm -f conftest.$ac_objext
11440 if { (ac_try="$ac_compile"
11441 case "(($ac_try" in
11442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11443 *) ac_try_echo=$ac_try;;
11444 esac
11445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11446 (eval "$ac_compile") 2>conftest.er1
11447 ac_status=$?
11448 grep -v '^ *+' conftest.er1 >conftest.err
11449 rm -f conftest.er1
11450 cat conftest.err >&5
11451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11452 (exit $ac_status); } && {
11453 test -z "$ac_c_werror_flag" ||
11454 test ! -s conftest.err
11455 } && test -s conftest.$ac_objext; then
11456 ac_lo=$ac_mid; break
11457 else
11458 echo "$as_me: failed program was:" >&5
11459 sed 's/^/| /' conftest.$ac_ext >&5
11461 ac_hi=`expr '(' $ac_mid ')' - 1`
11462 if test $ac_mid -le $ac_hi; then
11463 ac_lo= ac_hi=
11464 break
11466 ac_mid=`expr 2 '*' $ac_mid`
11469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11470 done
11471 else
11472 echo "$as_me: failed program was:" >&5
11473 sed 's/^/| /' conftest.$ac_ext >&5
11475 ac_lo= ac_hi=
11478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11482 # Binary search between lo and hi bounds.
11483 while test "x$ac_lo" != "x$ac_hi"; do
11484 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11485 cat >conftest.$ac_ext <<_ACEOF
11486 /* confdefs.h. */
11487 _ACEOF
11488 cat confdefs.h >>conftest.$ac_ext
11489 cat >>conftest.$ac_ext <<_ACEOF
11490 /* end confdefs.h. */
11491 $ac_includes_default
11492 typedef long long ac__type_sizeof_;
11494 main ()
11496 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11497 test_array [0] = 0
11500 return 0;
11502 _ACEOF
11503 rm -f conftest.$ac_objext
11504 if { (ac_try="$ac_compile"
11505 case "(($ac_try" in
11506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11507 *) ac_try_echo=$ac_try;;
11508 esac
11509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11510 (eval "$ac_compile") 2>conftest.er1
11511 ac_status=$?
11512 grep -v '^ *+' conftest.er1 >conftest.err
11513 rm -f conftest.er1
11514 cat conftest.err >&5
11515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11516 (exit $ac_status); } && {
11517 test -z "$ac_c_werror_flag" ||
11518 test ! -s conftest.err
11519 } && test -s conftest.$ac_objext; then
11520 ac_hi=$ac_mid
11521 else
11522 echo "$as_me: failed program was:" >&5
11523 sed 's/^/| /' conftest.$ac_ext >&5
11525 ac_lo=`expr '(' $ac_mid ')' + 1`
11528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11529 done
11530 case $ac_lo in
11531 ?*) ac_cv_sizeof_long_long=$ac_lo;;
11532 '') if test "$ac_cv_type_long_long" = yes; then
11533 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
11534 See \`config.log' for more details." >&5
11535 echo "$as_me: error: cannot compute sizeof (long long)
11536 See \`config.log' for more details." >&2;}
11537 { (exit 77); exit 77; }; }
11538 else
11539 ac_cv_sizeof_long_long=0
11540 fi ;;
11541 esac
11542 else
11543 cat >conftest.$ac_ext <<_ACEOF
11544 /* confdefs.h. */
11545 _ACEOF
11546 cat confdefs.h >>conftest.$ac_ext
11547 cat >>conftest.$ac_ext <<_ACEOF
11548 /* end confdefs.h. */
11549 $ac_includes_default
11550 typedef long long ac__type_sizeof_;
11551 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11552 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11553 #include <stdio.h>
11554 #include <stdlib.h>
11556 main ()
11559 FILE *f = fopen ("conftest.val", "w");
11560 if (! f)
11561 return 1;
11562 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11564 long int i = longval ();
11565 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11566 return 1;
11567 fprintf (f, "%ld\n", i);
11569 else
11571 unsigned long int i = ulongval ();
11572 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11573 return 1;
11574 fprintf (f, "%lu\n", i);
11576 return ferror (f) || fclose (f) != 0;
11579 return 0;
11581 _ACEOF
11582 rm -f conftest$ac_exeext
11583 if { (ac_try="$ac_link"
11584 case "(($ac_try" in
11585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11586 *) ac_try_echo=$ac_try;;
11587 esac
11588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11589 (eval "$ac_link") 2>&5
11590 ac_status=$?
11591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11592 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11593 { (case "(($ac_try" in
11594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11595 *) ac_try_echo=$ac_try;;
11596 esac
11597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11598 (eval "$ac_try") 2>&5
11599 ac_status=$?
11600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11601 (exit $ac_status); }; }; then
11602 ac_cv_sizeof_long_long=`cat conftest.val`
11603 else
11604 echo "$as_me: program exited with status $ac_status" >&5
11605 echo "$as_me: failed program was:" >&5
11606 sed 's/^/| /' conftest.$ac_ext >&5
11608 ( exit $ac_status )
11609 if test "$ac_cv_type_long_long" = yes; then
11610 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
11611 See \`config.log' for more details." >&5
11612 echo "$as_me: error: cannot compute sizeof (long long)
11613 See \`config.log' for more details." >&2;}
11614 { (exit 77); exit 77; }; }
11615 else
11616 ac_cv_sizeof_long_long=0
11619 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11621 rm -f conftest.val
11623 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
11624 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
11628 cat >>confdefs.h <<_ACEOF
11629 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
11630 _ACEOF
11635 { echo "$as_me:$LINENO: checking for long double support" >&5
11636 echo $ECHO_N "checking for long double support... $ECHO_C" >&6; }
11637 have_long_double=no
11638 cat >conftest.$ac_ext <<_ACEOF
11639 /* confdefs.h. */
11640 _ACEOF
11641 cat confdefs.h >>conftest.$ac_ext
11642 cat >>conftest.$ac_ext <<_ACEOF
11643 /* end confdefs.h. */
11646 main ()
11648 long double x; x = (long double)0.;
11650 return 0;
11652 _ACEOF
11653 rm -f conftest.$ac_objext
11654 if { (ac_try="$ac_compile"
11655 case "(($ac_try" in
11656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11657 *) ac_try_echo=$ac_try;;
11658 esac
11659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11660 (eval "$ac_compile") 2>conftest.er1
11661 ac_status=$?
11662 grep -v '^ *+' conftest.er1 >conftest.err
11663 rm -f conftest.er1
11664 cat conftest.err >&5
11665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11666 (exit $ac_status); } && {
11667 test -z "$ac_c_werror_flag" ||
11668 test ! -s conftest.err
11669 } && test -s conftest.$ac_objext; then
11672 cat >>confdefs.h <<\_ACEOF
11673 #define HAVE_LONG_DOUBLE 1
11674 _ACEOF
11676 have_long_double=yes
11678 else
11679 echo "$as_me: failed program was:" >&5
11680 sed 's/^/| /' conftest.$ac_ext >&5
11685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11686 { echo "$as_me:$LINENO: result: $have_long_double" >&5
11687 echo "${ECHO_T}$have_long_double" >&6; }
11688 if test "$have_long_double" = yes ; then
11689 { echo "$as_me:$LINENO: checking for long double" >&5
11690 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
11691 if test "${ac_cv_type_long_double+set}" = set; then
11692 echo $ECHO_N "(cached) $ECHO_C" >&6
11693 else
11694 cat >conftest.$ac_ext <<_ACEOF
11695 /* confdefs.h. */
11696 _ACEOF
11697 cat confdefs.h >>conftest.$ac_ext
11698 cat >>conftest.$ac_ext <<_ACEOF
11699 /* end confdefs.h. */
11700 $ac_includes_default
11701 typedef long double ac__type_new_;
11703 main ()
11705 if ((ac__type_new_ *) 0)
11706 return 0;
11707 if (sizeof (ac__type_new_))
11708 return 0;
11710 return 0;
11712 _ACEOF
11713 rm -f conftest.$ac_objext
11714 if { (ac_try="$ac_compile"
11715 case "(($ac_try" in
11716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11717 *) ac_try_echo=$ac_try;;
11718 esac
11719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11720 (eval "$ac_compile") 2>conftest.er1
11721 ac_status=$?
11722 grep -v '^ *+' conftest.er1 >conftest.err
11723 rm -f conftest.er1
11724 cat conftest.err >&5
11725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11726 (exit $ac_status); } && {
11727 test -z "$ac_c_werror_flag" ||
11728 test ! -s conftest.err
11729 } && test -s conftest.$ac_objext; then
11730 ac_cv_type_long_double=yes
11731 else
11732 echo "$as_me: failed program was:" >&5
11733 sed 's/^/| /' conftest.$ac_ext >&5
11735 ac_cv_type_long_double=no
11738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11740 { echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
11741 echo "${ECHO_T}$ac_cv_type_long_double" >&6; }
11743 # The cast to long int works around a bug in the HP C Compiler
11744 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11745 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11746 # This bug is HP SR number 8606223364.
11747 { echo "$as_me:$LINENO: checking size of long double" >&5
11748 echo $ECHO_N "checking size of long double... $ECHO_C" >&6; }
11749 if test "${ac_cv_sizeof_long_double+set}" = set; then
11750 echo $ECHO_N "(cached) $ECHO_C" >&6
11751 else
11752 if test "$cross_compiling" = yes; then
11753 # Depending upon the size, compute the lo and hi bounds.
11754 cat >conftest.$ac_ext <<_ACEOF
11755 /* confdefs.h. */
11756 _ACEOF
11757 cat confdefs.h >>conftest.$ac_ext
11758 cat >>conftest.$ac_ext <<_ACEOF
11759 /* end confdefs.h. */
11760 $ac_includes_default
11761 typedef long double ac__type_sizeof_;
11763 main ()
11765 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11766 test_array [0] = 0
11769 return 0;
11771 _ACEOF
11772 rm -f conftest.$ac_objext
11773 if { (ac_try="$ac_compile"
11774 case "(($ac_try" in
11775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11776 *) ac_try_echo=$ac_try;;
11777 esac
11778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11779 (eval "$ac_compile") 2>conftest.er1
11780 ac_status=$?
11781 grep -v '^ *+' conftest.er1 >conftest.err
11782 rm -f conftest.er1
11783 cat conftest.err >&5
11784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11785 (exit $ac_status); } && {
11786 test -z "$ac_c_werror_flag" ||
11787 test ! -s conftest.err
11788 } && test -s conftest.$ac_objext; then
11789 ac_lo=0 ac_mid=0
11790 while :; do
11791 cat >conftest.$ac_ext <<_ACEOF
11792 /* confdefs.h. */
11793 _ACEOF
11794 cat confdefs.h >>conftest.$ac_ext
11795 cat >>conftest.$ac_ext <<_ACEOF
11796 /* end confdefs.h. */
11797 $ac_includes_default
11798 typedef long double ac__type_sizeof_;
11800 main ()
11802 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11803 test_array [0] = 0
11806 return 0;
11808 _ACEOF
11809 rm -f conftest.$ac_objext
11810 if { (ac_try="$ac_compile"
11811 case "(($ac_try" in
11812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11813 *) ac_try_echo=$ac_try;;
11814 esac
11815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11816 (eval "$ac_compile") 2>conftest.er1
11817 ac_status=$?
11818 grep -v '^ *+' conftest.er1 >conftest.err
11819 rm -f conftest.er1
11820 cat conftest.err >&5
11821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11822 (exit $ac_status); } && {
11823 test -z "$ac_c_werror_flag" ||
11824 test ! -s conftest.err
11825 } && test -s conftest.$ac_objext; then
11826 ac_hi=$ac_mid; break
11827 else
11828 echo "$as_me: failed program was:" >&5
11829 sed 's/^/| /' conftest.$ac_ext >&5
11831 ac_lo=`expr $ac_mid + 1`
11832 if test $ac_lo -le $ac_mid; then
11833 ac_lo= ac_hi=
11834 break
11836 ac_mid=`expr 2 '*' $ac_mid + 1`
11839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11840 done
11841 else
11842 echo "$as_me: failed program was:" >&5
11843 sed 's/^/| /' conftest.$ac_ext >&5
11845 cat >conftest.$ac_ext <<_ACEOF
11846 /* confdefs.h. */
11847 _ACEOF
11848 cat confdefs.h >>conftest.$ac_ext
11849 cat >>conftest.$ac_ext <<_ACEOF
11850 /* end confdefs.h. */
11851 $ac_includes_default
11852 typedef long double ac__type_sizeof_;
11854 main ()
11856 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11857 test_array [0] = 0
11860 return 0;
11862 _ACEOF
11863 rm -f conftest.$ac_objext
11864 if { (ac_try="$ac_compile"
11865 case "(($ac_try" in
11866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11867 *) ac_try_echo=$ac_try;;
11868 esac
11869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11870 (eval "$ac_compile") 2>conftest.er1
11871 ac_status=$?
11872 grep -v '^ *+' conftest.er1 >conftest.err
11873 rm -f conftest.er1
11874 cat conftest.err >&5
11875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11876 (exit $ac_status); } && {
11877 test -z "$ac_c_werror_flag" ||
11878 test ! -s conftest.err
11879 } && test -s conftest.$ac_objext; then
11880 ac_hi=-1 ac_mid=-1
11881 while :; do
11882 cat >conftest.$ac_ext <<_ACEOF
11883 /* confdefs.h. */
11884 _ACEOF
11885 cat confdefs.h >>conftest.$ac_ext
11886 cat >>conftest.$ac_ext <<_ACEOF
11887 /* end confdefs.h. */
11888 $ac_includes_default
11889 typedef long double ac__type_sizeof_;
11891 main ()
11893 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11894 test_array [0] = 0
11897 return 0;
11899 _ACEOF
11900 rm -f conftest.$ac_objext
11901 if { (ac_try="$ac_compile"
11902 case "(($ac_try" in
11903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11904 *) ac_try_echo=$ac_try;;
11905 esac
11906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11907 (eval "$ac_compile") 2>conftest.er1
11908 ac_status=$?
11909 grep -v '^ *+' conftest.er1 >conftest.err
11910 rm -f conftest.er1
11911 cat conftest.err >&5
11912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913 (exit $ac_status); } && {
11914 test -z "$ac_c_werror_flag" ||
11915 test ! -s conftest.err
11916 } && test -s conftest.$ac_objext; then
11917 ac_lo=$ac_mid; break
11918 else
11919 echo "$as_me: failed program was:" >&5
11920 sed 's/^/| /' conftest.$ac_ext >&5
11922 ac_hi=`expr '(' $ac_mid ')' - 1`
11923 if test $ac_mid -le $ac_hi; then
11924 ac_lo= ac_hi=
11925 break
11927 ac_mid=`expr 2 '*' $ac_mid`
11930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11931 done
11932 else
11933 echo "$as_me: failed program was:" >&5
11934 sed 's/^/| /' conftest.$ac_ext >&5
11936 ac_lo= ac_hi=
11939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11943 # Binary search between lo and hi bounds.
11944 while test "x$ac_lo" != "x$ac_hi"; do
11945 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11946 cat >conftest.$ac_ext <<_ACEOF
11947 /* confdefs.h. */
11948 _ACEOF
11949 cat confdefs.h >>conftest.$ac_ext
11950 cat >>conftest.$ac_ext <<_ACEOF
11951 /* end confdefs.h. */
11952 $ac_includes_default
11953 typedef long double ac__type_sizeof_;
11955 main ()
11957 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11958 test_array [0] = 0
11961 return 0;
11963 _ACEOF
11964 rm -f conftest.$ac_objext
11965 if { (ac_try="$ac_compile"
11966 case "(($ac_try" in
11967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11968 *) ac_try_echo=$ac_try;;
11969 esac
11970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11971 (eval "$ac_compile") 2>conftest.er1
11972 ac_status=$?
11973 grep -v '^ *+' conftest.er1 >conftest.err
11974 rm -f conftest.er1
11975 cat conftest.err >&5
11976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11977 (exit $ac_status); } && {
11978 test -z "$ac_c_werror_flag" ||
11979 test ! -s conftest.err
11980 } && test -s conftest.$ac_objext; then
11981 ac_hi=$ac_mid
11982 else
11983 echo "$as_me: failed program was:" >&5
11984 sed 's/^/| /' conftest.$ac_ext >&5
11986 ac_lo=`expr '(' $ac_mid ')' + 1`
11989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11990 done
11991 case $ac_lo in
11992 ?*) ac_cv_sizeof_long_double=$ac_lo;;
11993 '') if test "$ac_cv_type_long_double" = yes; then
11994 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
11995 See \`config.log' for more details." >&5
11996 echo "$as_me: error: cannot compute sizeof (long double)
11997 See \`config.log' for more details." >&2;}
11998 { (exit 77); exit 77; }; }
11999 else
12000 ac_cv_sizeof_long_double=0
12001 fi ;;
12002 esac
12003 else
12004 cat >conftest.$ac_ext <<_ACEOF
12005 /* confdefs.h. */
12006 _ACEOF
12007 cat confdefs.h >>conftest.$ac_ext
12008 cat >>conftest.$ac_ext <<_ACEOF
12009 /* end confdefs.h. */
12010 $ac_includes_default
12011 typedef long double ac__type_sizeof_;
12012 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12013 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12014 #include <stdio.h>
12015 #include <stdlib.h>
12017 main ()
12020 FILE *f = fopen ("conftest.val", "w");
12021 if (! f)
12022 return 1;
12023 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12025 long int i = longval ();
12026 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12027 return 1;
12028 fprintf (f, "%ld\n", i);
12030 else
12032 unsigned long int i = ulongval ();
12033 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12034 return 1;
12035 fprintf (f, "%lu\n", i);
12037 return ferror (f) || fclose (f) != 0;
12040 return 0;
12042 _ACEOF
12043 rm -f conftest$ac_exeext
12044 if { (ac_try="$ac_link"
12045 case "(($ac_try" in
12046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12047 *) ac_try_echo=$ac_try;;
12048 esac
12049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12050 (eval "$ac_link") 2>&5
12051 ac_status=$?
12052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12053 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12054 { (case "(($ac_try" in
12055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12056 *) ac_try_echo=$ac_try;;
12057 esac
12058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12059 (eval "$ac_try") 2>&5
12060 ac_status=$?
12061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12062 (exit $ac_status); }; }; then
12063 ac_cv_sizeof_long_double=`cat conftest.val`
12064 else
12065 echo "$as_me: program exited with status $ac_status" >&5
12066 echo "$as_me: failed program was:" >&5
12067 sed 's/^/| /' conftest.$ac_ext >&5
12069 ( exit $ac_status )
12070 if test "$ac_cv_type_long_double" = yes; then
12071 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
12072 See \`config.log' for more details." >&5
12073 echo "$as_me: error: cannot compute sizeof (long double)
12074 See \`config.log' for more details." >&2;}
12075 { (exit 77); exit 77; }; }
12076 else
12077 ac_cv_sizeof_long_double=0
12080 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12082 rm -f conftest.val
12084 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
12085 echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6; }
12089 cat >>confdefs.h <<_ACEOF
12090 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
12091 _ACEOF
12096 { echo "$as_me:$LINENO: checking for _Bool support" >&5
12097 echo $ECHO_N "checking for _Bool support... $ECHO_C" >&6; }
12098 have_c99_bool=no
12099 cat >conftest.$ac_ext <<_ACEOF
12100 /* confdefs.h. */
12101 _ACEOF
12102 cat confdefs.h >>conftest.$ac_ext
12103 cat >>conftest.$ac_ext <<_ACEOF
12104 /* end confdefs.h. */
12107 main ()
12109 _Bool x; x = (_Bool)0;
12111 return 0;
12113 _ACEOF
12114 rm -f conftest.$ac_objext
12115 if { (ac_try="$ac_compile"
12116 case "(($ac_try" in
12117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12118 *) ac_try_echo=$ac_try;;
12119 esac
12120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12121 (eval "$ac_compile") 2>conftest.er1
12122 ac_status=$?
12123 grep -v '^ *+' conftest.er1 >conftest.err
12124 rm -f conftest.er1
12125 cat conftest.err >&5
12126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12127 (exit $ac_status); } && {
12128 test -z "$ac_c_werror_flag" ||
12129 test ! -s conftest.err
12130 } && test -s conftest.$ac_objext; then
12133 cat >>confdefs.h <<\_ACEOF
12134 #define HAVE_C99_BOOL 1
12135 _ACEOF
12137 have_c99_bool=yes
12139 else
12140 echo "$as_me: failed program was:" >&5
12141 sed 's/^/| /' conftest.$ac_ext >&5
12146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12147 { echo "$as_me:$LINENO: result: $have_c99_bool" >&5
12148 echo "${ECHO_T}$have_c99_bool" >&6; }
12149 if test "$have_c99_bool" = yes ; then
12150 { echo "$as_me:$LINENO: checking for _Bool" >&5
12151 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
12152 if test "${ac_cv_type__Bool+set}" = set; then
12153 echo $ECHO_N "(cached) $ECHO_C" >&6
12154 else
12155 cat >conftest.$ac_ext <<_ACEOF
12156 /* confdefs.h. */
12157 _ACEOF
12158 cat confdefs.h >>conftest.$ac_ext
12159 cat >>conftest.$ac_ext <<_ACEOF
12160 /* end confdefs.h. */
12161 $ac_includes_default
12162 typedef _Bool ac__type_new_;
12164 main ()
12166 if ((ac__type_new_ *) 0)
12167 return 0;
12168 if (sizeof (ac__type_new_))
12169 return 0;
12171 return 0;
12173 _ACEOF
12174 rm -f conftest.$ac_objext
12175 if { (ac_try="$ac_compile"
12176 case "(($ac_try" in
12177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12178 *) ac_try_echo=$ac_try;;
12179 esac
12180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12181 (eval "$ac_compile") 2>conftest.er1
12182 ac_status=$?
12183 grep -v '^ *+' conftest.er1 >conftest.err
12184 rm -f conftest.er1
12185 cat conftest.err >&5
12186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12187 (exit $ac_status); } && {
12188 test -z "$ac_c_werror_flag" ||
12189 test ! -s conftest.err
12190 } && test -s conftest.$ac_objext; then
12191 ac_cv_type__Bool=yes
12192 else
12193 echo "$as_me: failed program was:" >&5
12194 sed 's/^/| /' conftest.$ac_ext >&5
12196 ac_cv_type__Bool=no
12199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12201 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
12202 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
12204 # The cast to long int works around a bug in the HP C Compiler
12205 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12206 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12207 # This bug is HP SR number 8606223364.
12208 { echo "$as_me:$LINENO: checking size of _Bool" >&5
12209 echo $ECHO_N "checking size of _Bool... $ECHO_C" >&6; }
12210 if test "${ac_cv_sizeof__Bool+set}" = set; then
12211 echo $ECHO_N "(cached) $ECHO_C" >&6
12212 else
12213 if test "$cross_compiling" = yes; then
12214 # Depending upon the size, compute the lo and hi bounds.
12215 cat >conftest.$ac_ext <<_ACEOF
12216 /* confdefs.h. */
12217 _ACEOF
12218 cat confdefs.h >>conftest.$ac_ext
12219 cat >>conftest.$ac_ext <<_ACEOF
12220 /* end confdefs.h. */
12221 $ac_includes_default
12222 typedef _Bool ac__type_sizeof_;
12224 main ()
12226 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12227 test_array [0] = 0
12230 return 0;
12232 _ACEOF
12233 rm -f conftest.$ac_objext
12234 if { (ac_try="$ac_compile"
12235 case "(($ac_try" in
12236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12237 *) ac_try_echo=$ac_try;;
12238 esac
12239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12240 (eval "$ac_compile") 2>conftest.er1
12241 ac_status=$?
12242 grep -v '^ *+' conftest.er1 >conftest.err
12243 rm -f conftest.er1
12244 cat conftest.err >&5
12245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12246 (exit $ac_status); } && {
12247 test -z "$ac_c_werror_flag" ||
12248 test ! -s conftest.err
12249 } && test -s conftest.$ac_objext; then
12250 ac_lo=0 ac_mid=0
12251 while :; do
12252 cat >conftest.$ac_ext <<_ACEOF
12253 /* confdefs.h. */
12254 _ACEOF
12255 cat confdefs.h >>conftest.$ac_ext
12256 cat >>conftest.$ac_ext <<_ACEOF
12257 /* end confdefs.h. */
12258 $ac_includes_default
12259 typedef _Bool ac__type_sizeof_;
12261 main ()
12263 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12264 test_array [0] = 0
12267 return 0;
12269 _ACEOF
12270 rm -f conftest.$ac_objext
12271 if { (ac_try="$ac_compile"
12272 case "(($ac_try" in
12273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12274 *) ac_try_echo=$ac_try;;
12275 esac
12276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12277 (eval "$ac_compile") 2>conftest.er1
12278 ac_status=$?
12279 grep -v '^ *+' conftest.er1 >conftest.err
12280 rm -f conftest.er1
12281 cat conftest.err >&5
12282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12283 (exit $ac_status); } && {
12284 test -z "$ac_c_werror_flag" ||
12285 test ! -s conftest.err
12286 } && test -s conftest.$ac_objext; then
12287 ac_hi=$ac_mid; break
12288 else
12289 echo "$as_me: failed program was:" >&5
12290 sed 's/^/| /' conftest.$ac_ext >&5
12292 ac_lo=`expr $ac_mid + 1`
12293 if test $ac_lo -le $ac_mid; then
12294 ac_lo= ac_hi=
12295 break
12297 ac_mid=`expr 2 '*' $ac_mid + 1`
12300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12301 done
12302 else
12303 echo "$as_me: failed program was:" >&5
12304 sed 's/^/| /' conftest.$ac_ext >&5
12306 cat >conftest.$ac_ext <<_ACEOF
12307 /* confdefs.h. */
12308 _ACEOF
12309 cat confdefs.h >>conftest.$ac_ext
12310 cat >>conftest.$ac_ext <<_ACEOF
12311 /* end confdefs.h. */
12312 $ac_includes_default
12313 typedef _Bool ac__type_sizeof_;
12315 main ()
12317 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12318 test_array [0] = 0
12321 return 0;
12323 _ACEOF
12324 rm -f conftest.$ac_objext
12325 if { (ac_try="$ac_compile"
12326 case "(($ac_try" in
12327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12328 *) ac_try_echo=$ac_try;;
12329 esac
12330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12331 (eval "$ac_compile") 2>conftest.er1
12332 ac_status=$?
12333 grep -v '^ *+' conftest.er1 >conftest.err
12334 rm -f conftest.er1
12335 cat conftest.err >&5
12336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12337 (exit $ac_status); } && {
12338 test -z "$ac_c_werror_flag" ||
12339 test ! -s conftest.err
12340 } && test -s conftest.$ac_objext; then
12341 ac_hi=-1 ac_mid=-1
12342 while :; do
12343 cat >conftest.$ac_ext <<_ACEOF
12344 /* confdefs.h. */
12345 _ACEOF
12346 cat confdefs.h >>conftest.$ac_ext
12347 cat >>conftest.$ac_ext <<_ACEOF
12348 /* end confdefs.h. */
12349 $ac_includes_default
12350 typedef _Bool ac__type_sizeof_;
12352 main ()
12354 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12355 test_array [0] = 0
12358 return 0;
12360 _ACEOF
12361 rm -f conftest.$ac_objext
12362 if { (ac_try="$ac_compile"
12363 case "(($ac_try" in
12364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12365 *) ac_try_echo=$ac_try;;
12366 esac
12367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12368 (eval "$ac_compile") 2>conftest.er1
12369 ac_status=$?
12370 grep -v '^ *+' conftest.er1 >conftest.err
12371 rm -f conftest.er1
12372 cat conftest.err >&5
12373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12374 (exit $ac_status); } && {
12375 test -z "$ac_c_werror_flag" ||
12376 test ! -s conftest.err
12377 } && test -s conftest.$ac_objext; then
12378 ac_lo=$ac_mid; break
12379 else
12380 echo "$as_me: failed program was:" >&5
12381 sed 's/^/| /' conftest.$ac_ext >&5
12383 ac_hi=`expr '(' $ac_mid ')' - 1`
12384 if test $ac_mid -le $ac_hi; then
12385 ac_lo= ac_hi=
12386 break
12388 ac_mid=`expr 2 '*' $ac_mid`
12391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12392 done
12393 else
12394 echo "$as_me: failed program was:" >&5
12395 sed 's/^/| /' conftest.$ac_ext >&5
12397 ac_lo= ac_hi=
12400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12404 # Binary search between lo and hi bounds.
12405 while test "x$ac_lo" != "x$ac_hi"; do
12406 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12407 cat >conftest.$ac_ext <<_ACEOF
12408 /* confdefs.h. */
12409 _ACEOF
12410 cat confdefs.h >>conftest.$ac_ext
12411 cat >>conftest.$ac_ext <<_ACEOF
12412 /* end confdefs.h. */
12413 $ac_includes_default
12414 typedef _Bool ac__type_sizeof_;
12416 main ()
12418 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12419 test_array [0] = 0
12422 return 0;
12424 _ACEOF
12425 rm -f conftest.$ac_objext
12426 if { (ac_try="$ac_compile"
12427 case "(($ac_try" in
12428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12429 *) ac_try_echo=$ac_try;;
12430 esac
12431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12432 (eval "$ac_compile") 2>conftest.er1
12433 ac_status=$?
12434 grep -v '^ *+' conftest.er1 >conftest.err
12435 rm -f conftest.er1
12436 cat conftest.err >&5
12437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12438 (exit $ac_status); } && {
12439 test -z "$ac_c_werror_flag" ||
12440 test ! -s conftest.err
12441 } && test -s conftest.$ac_objext; then
12442 ac_hi=$ac_mid
12443 else
12444 echo "$as_me: failed program was:" >&5
12445 sed 's/^/| /' conftest.$ac_ext >&5
12447 ac_lo=`expr '(' $ac_mid ')' + 1`
12450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12451 done
12452 case $ac_lo in
12453 ?*) ac_cv_sizeof__Bool=$ac_lo;;
12454 '') if test "$ac_cv_type__Bool" = yes; then
12455 { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool)
12456 See \`config.log' for more details." >&5
12457 echo "$as_me: error: cannot compute sizeof (_Bool)
12458 See \`config.log' for more details." >&2;}
12459 { (exit 77); exit 77; }; }
12460 else
12461 ac_cv_sizeof__Bool=0
12462 fi ;;
12463 esac
12464 else
12465 cat >conftest.$ac_ext <<_ACEOF
12466 /* confdefs.h. */
12467 _ACEOF
12468 cat confdefs.h >>conftest.$ac_ext
12469 cat >>conftest.$ac_ext <<_ACEOF
12470 /* end confdefs.h. */
12471 $ac_includes_default
12472 typedef _Bool ac__type_sizeof_;
12473 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12474 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12475 #include <stdio.h>
12476 #include <stdlib.h>
12478 main ()
12481 FILE *f = fopen ("conftest.val", "w");
12482 if (! f)
12483 return 1;
12484 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12486 long int i = longval ();
12487 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12488 return 1;
12489 fprintf (f, "%ld\n", i);
12491 else
12493 unsigned long int i = ulongval ();
12494 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12495 return 1;
12496 fprintf (f, "%lu\n", i);
12498 return ferror (f) || fclose (f) != 0;
12501 return 0;
12503 _ACEOF
12504 rm -f conftest$ac_exeext
12505 if { (ac_try="$ac_link"
12506 case "(($ac_try" in
12507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12508 *) ac_try_echo=$ac_try;;
12509 esac
12510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12511 (eval "$ac_link") 2>&5
12512 ac_status=$?
12513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12514 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12515 { (case "(($ac_try" in
12516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12517 *) ac_try_echo=$ac_try;;
12518 esac
12519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12520 (eval "$ac_try") 2>&5
12521 ac_status=$?
12522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12523 (exit $ac_status); }; }; then
12524 ac_cv_sizeof__Bool=`cat conftest.val`
12525 else
12526 echo "$as_me: program exited with status $ac_status" >&5
12527 echo "$as_me: failed program was:" >&5
12528 sed 's/^/| /' conftest.$ac_ext >&5
12530 ( exit $ac_status )
12531 if test "$ac_cv_type__Bool" = yes; then
12532 { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool)
12533 See \`config.log' for more details." >&5
12534 echo "$as_me: error: cannot compute sizeof (_Bool)
12535 See \`config.log' for more details." >&2;}
12536 { (exit 77); exit 77; }; }
12537 else
12538 ac_cv_sizeof__Bool=0
12541 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12543 rm -f conftest.val
12545 { echo "$as_me:$LINENO: result: $ac_cv_sizeof__Bool" >&5
12546 echo "${ECHO_T}$ac_cv_sizeof__Bool" >&6; }
12550 cat >>confdefs.h <<_ACEOF
12551 #define SIZEOF__BOOL $ac_cv_sizeof__Bool
12552 _ACEOF
12557 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
12558 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
12559 if test "${ac_cv_type_uintptr_t+set}" = set; then
12560 echo $ECHO_N "(cached) $ECHO_C" >&6
12561 else
12562 cat >conftest.$ac_ext <<_ACEOF
12563 /* confdefs.h. */
12564 _ACEOF
12565 cat confdefs.h >>conftest.$ac_ext
12566 cat >>conftest.$ac_ext <<_ACEOF
12567 /* end confdefs.h. */
12568 #ifdef HAVE_STDINT_H
12569 #include <stdint.h>
12570 #endif
12572 typedef uintptr_t ac__type_new_;
12574 main ()
12576 if ((ac__type_new_ *) 0)
12577 return 0;
12578 if (sizeof (ac__type_new_))
12579 return 0;
12581 return 0;
12583 _ACEOF
12584 rm -f conftest.$ac_objext
12585 if { (ac_try="$ac_compile"
12586 case "(($ac_try" in
12587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12588 *) ac_try_echo=$ac_try;;
12589 esac
12590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12591 (eval "$ac_compile") 2>conftest.er1
12592 ac_status=$?
12593 grep -v '^ *+' conftest.er1 >conftest.err
12594 rm -f conftest.er1
12595 cat conftest.err >&5
12596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12597 (exit $ac_status); } && {
12598 test -z "$ac_c_werror_flag" ||
12599 test ! -s conftest.err
12600 } && test -s conftest.$ac_objext; then
12601 ac_cv_type_uintptr_t=yes
12602 else
12603 echo "$as_me: failed program was:" >&5
12604 sed 's/^/| /' conftest.$ac_ext >&5
12606 ac_cv_type_uintptr_t=no
12609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12611 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12612 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
12613 if test $ac_cv_type_uintptr_t = yes; then
12615 cat >>confdefs.h <<_ACEOF
12616 #define HAVE_UINTPTR_T 1
12617 _ACEOF
12619 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
12620 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
12621 if test "${ac_cv_type_uintptr_t+set}" = set; then
12622 echo $ECHO_N "(cached) $ECHO_C" >&6
12623 else
12624 cat >conftest.$ac_ext <<_ACEOF
12625 /* confdefs.h. */
12626 _ACEOF
12627 cat confdefs.h >>conftest.$ac_ext
12628 cat >>conftest.$ac_ext <<_ACEOF
12629 /* end confdefs.h. */
12630 $ac_includes_default
12631 typedef uintptr_t ac__type_new_;
12633 main ()
12635 if ((ac__type_new_ *) 0)
12636 return 0;
12637 if (sizeof (ac__type_new_))
12638 return 0;
12640 return 0;
12642 _ACEOF
12643 rm -f conftest.$ac_objext
12644 if { (ac_try="$ac_compile"
12645 case "(($ac_try" in
12646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12647 *) ac_try_echo=$ac_try;;
12648 esac
12649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12650 (eval "$ac_compile") 2>conftest.er1
12651 ac_status=$?
12652 grep -v '^ *+' conftest.er1 >conftest.err
12653 rm -f conftest.er1
12654 cat conftest.err >&5
12655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12656 (exit $ac_status); } && {
12657 test -z "$ac_c_werror_flag" ||
12658 test ! -s conftest.err
12659 } && test -s conftest.$ac_objext; then
12660 ac_cv_type_uintptr_t=yes
12661 else
12662 echo "$as_me: failed program was:" >&5
12663 sed 's/^/| /' conftest.$ac_ext >&5
12665 ac_cv_type_uintptr_t=no
12668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12670 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12671 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
12673 # The cast to long int works around a bug in the HP C Compiler
12674 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12675 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12676 # This bug is HP SR number 8606223364.
12677 { echo "$as_me:$LINENO: checking size of uintptr_t" >&5
12678 echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6; }
12679 if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
12680 echo $ECHO_N "(cached) $ECHO_C" >&6
12681 else
12682 if test "$cross_compiling" = yes; then
12683 # Depending upon the size, compute the lo and hi bounds.
12684 cat >conftest.$ac_ext <<_ACEOF
12685 /* confdefs.h. */
12686 _ACEOF
12687 cat confdefs.h >>conftest.$ac_ext
12688 cat >>conftest.$ac_ext <<_ACEOF
12689 /* end confdefs.h. */
12690 $ac_includes_default
12691 typedef uintptr_t ac__type_sizeof_;
12693 main ()
12695 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12696 test_array [0] = 0
12699 return 0;
12701 _ACEOF
12702 rm -f conftest.$ac_objext
12703 if { (ac_try="$ac_compile"
12704 case "(($ac_try" in
12705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12706 *) ac_try_echo=$ac_try;;
12707 esac
12708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12709 (eval "$ac_compile") 2>conftest.er1
12710 ac_status=$?
12711 grep -v '^ *+' conftest.er1 >conftest.err
12712 rm -f conftest.er1
12713 cat conftest.err >&5
12714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12715 (exit $ac_status); } && {
12716 test -z "$ac_c_werror_flag" ||
12717 test ! -s conftest.err
12718 } && test -s conftest.$ac_objext; then
12719 ac_lo=0 ac_mid=0
12720 while :; do
12721 cat >conftest.$ac_ext <<_ACEOF
12722 /* confdefs.h. */
12723 _ACEOF
12724 cat confdefs.h >>conftest.$ac_ext
12725 cat >>conftest.$ac_ext <<_ACEOF
12726 /* end confdefs.h. */
12727 $ac_includes_default
12728 typedef uintptr_t ac__type_sizeof_;
12730 main ()
12732 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12733 test_array [0] = 0
12736 return 0;
12738 _ACEOF
12739 rm -f conftest.$ac_objext
12740 if { (ac_try="$ac_compile"
12741 case "(($ac_try" in
12742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12743 *) ac_try_echo=$ac_try;;
12744 esac
12745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12746 (eval "$ac_compile") 2>conftest.er1
12747 ac_status=$?
12748 grep -v '^ *+' conftest.er1 >conftest.err
12749 rm -f conftest.er1
12750 cat conftest.err >&5
12751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12752 (exit $ac_status); } && {
12753 test -z "$ac_c_werror_flag" ||
12754 test ! -s conftest.err
12755 } && test -s conftest.$ac_objext; then
12756 ac_hi=$ac_mid; break
12757 else
12758 echo "$as_me: failed program was:" >&5
12759 sed 's/^/| /' conftest.$ac_ext >&5
12761 ac_lo=`expr $ac_mid + 1`
12762 if test $ac_lo -le $ac_mid; then
12763 ac_lo= ac_hi=
12764 break
12766 ac_mid=`expr 2 '*' $ac_mid + 1`
12769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12770 done
12771 else
12772 echo "$as_me: failed program was:" >&5
12773 sed 's/^/| /' conftest.$ac_ext >&5
12775 cat >conftest.$ac_ext <<_ACEOF
12776 /* confdefs.h. */
12777 _ACEOF
12778 cat confdefs.h >>conftest.$ac_ext
12779 cat >>conftest.$ac_ext <<_ACEOF
12780 /* end confdefs.h. */
12781 $ac_includes_default
12782 typedef uintptr_t ac__type_sizeof_;
12784 main ()
12786 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12787 test_array [0] = 0
12790 return 0;
12792 _ACEOF
12793 rm -f conftest.$ac_objext
12794 if { (ac_try="$ac_compile"
12795 case "(($ac_try" in
12796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12797 *) ac_try_echo=$ac_try;;
12798 esac
12799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12800 (eval "$ac_compile") 2>conftest.er1
12801 ac_status=$?
12802 grep -v '^ *+' conftest.er1 >conftest.err
12803 rm -f conftest.er1
12804 cat conftest.err >&5
12805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12806 (exit $ac_status); } && {
12807 test -z "$ac_c_werror_flag" ||
12808 test ! -s conftest.err
12809 } && test -s conftest.$ac_objext; then
12810 ac_hi=-1 ac_mid=-1
12811 while :; do
12812 cat >conftest.$ac_ext <<_ACEOF
12813 /* confdefs.h. */
12814 _ACEOF
12815 cat confdefs.h >>conftest.$ac_ext
12816 cat >>conftest.$ac_ext <<_ACEOF
12817 /* end confdefs.h. */
12818 $ac_includes_default
12819 typedef uintptr_t ac__type_sizeof_;
12821 main ()
12823 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12824 test_array [0] = 0
12827 return 0;
12829 _ACEOF
12830 rm -f conftest.$ac_objext
12831 if { (ac_try="$ac_compile"
12832 case "(($ac_try" in
12833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12834 *) ac_try_echo=$ac_try;;
12835 esac
12836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12837 (eval "$ac_compile") 2>conftest.er1
12838 ac_status=$?
12839 grep -v '^ *+' conftest.er1 >conftest.err
12840 rm -f conftest.er1
12841 cat conftest.err >&5
12842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12843 (exit $ac_status); } && {
12844 test -z "$ac_c_werror_flag" ||
12845 test ! -s conftest.err
12846 } && test -s conftest.$ac_objext; then
12847 ac_lo=$ac_mid; break
12848 else
12849 echo "$as_me: failed program was:" >&5
12850 sed 's/^/| /' conftest.$ac_ext >&5
12852 ac_hi=`expr '(' $ac_mid ')' - 1`
12853 if test $ac_mid -le $ac_hi; then
12854 ac_lo= ac_hi=
12855 break
12857 ac_mid=`expr 2 '*' $ac_mid`
12860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12861 done
12862 else
12863 echo "$as_me: failed program was:" >&5
12864 sed 's/^/| /' conftest.$ac_ext >&5
12866 ac_lo= ac_hi=
12869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12873 # Binary search between lo and hi bounds.
12874 while test "x$ac_lo" != "x$ac_hi"; do
12875 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12876 cat >conftest.$ac_ext <<_ACEOF
12877 /* confdefs.h. */
12878 _ACEOF
12879 cat confdefs.h >>conftest.$ac_ext
12880 cat >>conftest.$ac_ext <<_ACEOF
12881 /* end confdefs.h. */
12882 $ac_includes_default
12883 typedef uintptr_t ac__type_sizeof_;
12885 main ()
12887 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12888 test_array [0] = 0
12891 return 0;
12893 _ACEOF
12894 rm -f conftest.$ac_objext
12895 if { (ac_try="$ac_compile"
12896 case "(($ac_try" in
12897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12898 *) ac_try_echo=$ac_try;;
12899 esac
12900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12901 (eval "$ac_compile") 2>conftest.er1
12902 ac_status=$?
12903 grep -v '^ *+' conftest.er1 >conftest.err
12904 rm -f conftest.er1
12905 cat conftest.err >&5
12906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12907 (exit $ac_status); } && {
12908 test -z "$ac_c_werror_flag" ||
12909 test ! -s conftest.err
12910 } && test -s conftest.$ac_objext; then
12911 ac_hi=$ac_mid
12912 else
12913 echo "$as_me: failed program was:" >&5
12914 sed 's/^/| /' conftest.$ac_ext >&5
12916 ac_lo=`expr '(' $ac_mid ')' + 1`
12919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12920 done
12921 case $ac_lo in
12922 ?*) ac_cv_sizeof_uintptr_t=$ac_lo;;
12923 '') if test "$ac_cv_type_uintptr_t" = yes; then
12924 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
12925 See \`config.log' for more details." >&5
12926 echo "$as_me: error: cannot compute sizeof (uintptr_t)
12927 See \`config.log' for more details." >&2;}
12928 { (exit 77); exit 77; }; }
12929 else
12930 ac_cv_sizeof_uintptr_t=0
12931 fi ;;
12932 esac
12933 else
12934 cat >conftest.$ac_ext <<_ACEOF
12935 /* confdefs.h. */
12936 _ACEOF
12937 cat confdefs.h >>conftest.$ac_ext
12938 cat >>conftest.$ac_ext <<_ACEOF
12939 /* end confdefs.h. */
12940 $ac_includes_default
12941 typedef uintptr_t ac__type_sizeof_;
12942 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12943 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12944 #include <stdio.h>
12945 #include <stdlib.h>
12947 main ()
12950 FILE *f = fopen ("conftest.val", "w");
12951 if (! f)
12952 return 1;
12953 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12955 long int i = longval ();
12956 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12957 return 1;
12958 fprintf (f, "%ld\n", i);
12960 else
12962 unsigned long int i = ulongval ();
12963 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12964 return 1;
12965 fprintf (f, "%lu\n", i);
12967 return ferror (f) || fclose (f) != 0;
12970 return 0;
12972 _ACEOF
12973 rm -f conftest$ac_exeext
12974 if { (ac_try="$ac_link"
12975 case "(($ac_try" in
12976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12977 *) ac_try_echo=$ac_try;;
12978 esac
12979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12980 (eval "$ac_link") 2>&5
12981 ac_status=$?
12982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12983 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12984 { (case "(($ac_try" in
12985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12986 *) ac_try_echo=$ac_try;;
12987 esac
12988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12989 (eval "$ac_try") 2>&5
12990 ac_status=$?
12991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12992 (exit $ac_status); }; }; then
12993 ac_cv_sizeof_uintptr_t=`cat conftest.val`
12994 else
12995 echo "$as_me: program exited with status $ac_status" >&5
12996 echo "$as_me: failed program was:" >&5
12997 sed 's/^/| /' conftest.$ac_ext >&5
12999 ( exit $ac_status )
13000 if test "$ac_cv_type_uintptr_t" = yes; then
13001 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
13002 See \`config.log' for more details." >&5
13003 echo "$as_me: error: cannot compute sizeof (uintptr_t)
13004 See \`config.log' for more details." >&2;}
13005 { (exit 77); exit 77; }; }
13006 else
13007 ac_cv_sizeof_uintptr_t=0
13010 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13012 rm -f conftest.val
13014 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
13015 echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6; }
13019 cat >>confdefs.h <<_ACEOF
13020 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
13021 _ACEOF
13027 { echo "$as_me:$LINENO: checking for off_t" >&5
13028 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
13029 if test "${ac_cv_type_off_t+set}" = set; then
13030 echo $ECHO_N "(cached) $ECHO_C" >&6
13031 else
13032 cat >conftest.$ac_ext <<_ACEOF
13033 /* confdefs.h. */
13034 _ACEOF
13035 cat confdefs.h >>conftest.$ac_ext
13036 cat >>conftest.$ac_ext <<_ACEOF
13037 /* end confdefs.h. */
13039 #ifdef HAVE_SYS_TYPES_H
13040 #include <sys/types.h>
13041 #endif
13044 typedef off_t ac__type_new_;
13046 main ()
13048 if ((ac__type_new_ *) 0)
13049 return 0;
13050 if (sizeof (ac__type_new_))
13051 return 0;
13053 return 0;
13055 _ACEOF
13056 rm -f conftest.$ac_objext
13057 if { (ac_try="$ac_compile"
13058 case "(($ac_try" in
13059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13060 *) ac_try_echo=$ac_try;;
13061 esac
13062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13063 (eval "$ac_compile") 2>conftest.er1
13064 ac_status=$?
13065 grep -v '^ *+' conftest.er1 >conftest.err
13066 rm -f conftest.er1
13067 cat conftest.err >&5
13068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13069 (exit $ac_status); } && {
13070 test -z "$ac_c_werror_flag" ||
13071 test ! -s conftest.err
13072 } && test -s conftest.$ac_objext; then
13073 ac_cv_type_off_t=yes
13074 else
13075 echo "$as_me: failed program was:" >&5
13076 sed 's/^/| /' conftest.$ac_ext >&5
13078 ac_cv_type_off_t=no
13081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13083 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
13084 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
13086 # The cast to long int works around a bug in the HP C Compiler
13087 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13088 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13089 # This bug is HP SR number 8606223364.
13090 { echo "$as_me:$LINENO: checking size of off_t" >&5
13091 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
13092 if test "${ac_cv_sizeof_off_t+set}" = set; then
13093 echo $ECHO_N "(cached) $ECHO_C" >&6
13094 else
13095 if test "$cross_compiling" = yes; then
13096 # Depending upon the size, compute the lo and hi bounds.
13097 cat >conftest.$ac_ext <<_ACEOF
13098 /* confdefs.h. */
13099 _ACEOF
13100 cat confdefs.h >>conftest.$ac_ext
13101 cat >>conftest.$ac_ext <<_ACEOF
13102 /* end confdefs.h. */
13104 #ifdef HAVE_SYS_TYPES_H
13105 #include <sys/types.h>
13106 #endif
13109 typedef off_t ac__type_sizeof_;
13111 main ()
13113 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13114 test_array [0] = 0
13117 return 0;
13119 _ACEOF
13120 rm -f conftest.$ac_objext
13121 if { (ac_try="$ac_compile"
13122 case "(($ac_try" in
13123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13124 *) ac_try_echo=$ac_try;;
13125 esac
13126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13127 (eval "$ac_compile") 2>conftest.er1
13128 ac_status=$?
13129 grep -v '^ *+' conftest.er1 >conftest.err
13130 rm -f conftest.er1
13131 cat conftest.err >&5
13132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13133 (exit $ac_status); } && {
13134 test -z "$ac_c_werror_flag" ||
13135 test ! -s conftest.err
13136 } && test -s conftest.$ac_objext; then
13137 ac_lo=0 ac_mid=0
13138 while :; do
13139 cat >conftest.$ac_ext <<_ACEOF
13140 /* confdefs.h. */
13141 _ACEOF
13142 cat confdefs.h >>conftest.$ac_ext
13143 cat >>conftest.$ac_ext <<_ACEOF
13144 /* end confdefs.h. */
13146 #ifdef HAVE_SYS_TYPES_H
13147 #include <sys/types.h>
13148 #endif
13151 typedef off_t ac__type_sizeof_;
13153 main ()
13155 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13156 test_array [0] = 0
13159 return 0;
13161 _ACEOF
13162 rm -f conftest.$ac_objext
13163 if { (ac_try="$ac_compile"
13164 case "(($ac_try" in
13165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13166 *) ac_try_echo=$ac_try;;
13167 esac
13168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13169 (eval "$ac_compile") 2>conftest.er1
13170 ac_status=$?
13171 grep -v '^ *+' conftest.er1 >conftest.err
13172 rm -f conftest.er1
13173 cat conftest.err >&5
13174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13175 (exit $ac_status); } && {
13176 test -z "$ac_c_werror_flag" ||
13177 test ! -s conftest.err
13178 } && test -s conftest.$ac_objext; then
13179 ac_hi=$ac_mid; break
13180 else
13181 echo "$as_me: failed program was:" >&5
13182 sed 's/^/| /' conftest.$ac_ext >&5
13184 ac_lo=`expr $ac_mid + 1`
13185 if test $ac_lo -le $ac_mid; then
13186 ac_lo= ac_hi=
13187 break
13189 ac_mid=`expr 2 '*' $ac_mid + 1`
13192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13193 done
13194 else
13195 echo "$as_me: failed program was:" >&5
13196 sed 's/^/| /' conftest.$ac_ext >&5
13198 cat >conftest.$ac_ext <<_ACEOF
13199 /* confdefs.h. */
13200 _ACEOF
13201 cat confdefs.h >>conftest.$ac_ext
13202 cat >>conftest.$ac_ext <<_ACEOF
13203 /* end confdefs.h. */
13205 #ifdef HAVE_SYS_TYPES_H
13206 #include <sys/types.h>
13207 #endif
13210 typedef off_t ac__type_sizeof_;
13212 main ()
13214 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13215 test_array [0] = 0
13218 return 0;
13220 _ACEOF
13221 rm -f conftest.$ac_objext
13222 if { (ac_try="$ac_compile"
13223 case "(($ac_try" in
13224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13225 *) ac_try_echo=$ac_try;;
13226 esac
13227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13228 (eval "$ac_compile") 2>conftest.er1
13229 ac_status=$?
13230 grep -v '^ *+' conftest.er1 >conftest.err
13231 rm -f conftest.er1
13232 cat conftest.err >&5
13233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13234 (exit $ac_status); } && {
13235 test -z "$ac_c_werror_flag" ||
13236 test ! -s conftest.err
13237 } && test -s conftest.$ac_objext; then
13238 ac_hi=-1 ac_mid=-1
13239 while :; do
13240 cat >conftest.$ac_ext <<_ACEOF
13241 /* confdefs.h. */
13242 _ACEOF
13243 cat confdefs.h >>conftest.$ac_ext
13244 cat >>conftest.$ac_ext <<_ACEOF
13245 /* end confdefs.h. */
13247 #ifdef HAVE_SYS_TYPES_H
13248 #include <sys/types.h>
13249 #endif
13252 typedef off_t ac__type_sizeof_;
13254 main ()
13256 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13257 test_array [0] = 0
13260 return 0;
13262 _ACEOF
13263 rm -f conftest.$ac_objext
13264 if { (ac_try="$ac_compile"
13265 case "(($ac_try" in
13266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13267 *) ac_try_echo=$ac_try;;
13268 esac
13269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13270 (eval "$ac_compile") 2>conftest.er1
13271 ac_status=$?
13272 grep -v '^ *+' conftest.er1 >conftest.err
13273 rm -f conftest.er1
13274 cat conftest.err >&5
13275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13276 (exit $ac_status); } && {
13277 test -z "$ac_c_werror_flag" ||
13278 test ! -s conftest.err
13279 } && test -s conftest.$ac_objext; then
13280 ac_lo=$ac_mid; break
13281 else
13282 echo "$as_me: failed program was:" >&5
13283 sed 's/^/| /' conftest.$ac_ext >&5
13285 ac_hi=`expr '(' $ac_mid ')' - 1`
13286 if test $ac_mid -le $ac_hi; then
13287 ac_lo= ac_hi=
13288 break
13290 ac_mid=`expr 2 '*' $ac_mid`
13293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13294 done
13295 else
13296 echo "$as_me: failed program was:" >&5
13297 sed 's/^/| /' conftest.$ac_ext >&5
13299 ac_lo= ac_hi=
13302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13306 # Binary search between lo and hi bounds.
13307 while test "x$ac_lo" != "x$ac_hi"; do
13308 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13309 cat >conftest.$ac_ext <<_ACEOF
13310 /* confdefs.h. */
13311 _ACEOF
13312 cat confdefs.h >>conftest.$ac_ext
13313 cat >>conftest.$ac_ext <<_ACEOF
13314 /* end confdefs.h. */
13316 #ifdef HAVE_SYS_TYPES_H
13317 #include <sys/types.h>
13318 #endif
13321 typedef off_t ac__type_sizeof_;
13323 main ()
13325 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13326 test_array [0] = 0
13329 return 0;
13331 _ACEOF
13332 rm -f conftest.$ac_objext
13333 if { (ac_try="$ac_compile"
13334 case "(($ac_try" in
13335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13336 *) ac_try_echo=$ac_try;;
13337 esac
13338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13339 (eval "$ac_compile") 2>conftest.er1
13340 ac_status=$?
13341 grep -v '^ *+' conftest.er1 >conftest.err
13342 rm -f conftest.er1
13343 cat conftest.err >&5
13344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13345 (exit $ac_status); } && {
13346 test -z "$ac_c_werror_flag" ||
13347 test ! -s conftest.err
13348 } && test -s conftest.$ac_objext; then
13349 ac_hi=$ac_mid
13350 else
13351 echo "$as_me: failed program was:" >&5
13352 sed 's/^/| /' conftest.$ac_ext >&5
13354 ac_lo=`expr '(' $ac_mid ')' + 1`
13357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13358 done
13359 case $ac_lo in
13360 ?*) ac_cv_sizeof_off_t=$ac_lo;;
13361 '') if test "$ac_cv_type_off_t" = yes; then
13362 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
13363 See \`config.log' for more details." >&5
13364 echo "$as_me: error: cannot compute sizeof (off_t)
13365 See \`config.log' for more details." >&2;}
13366 { (exit 77); exit 77; }; }
13367 else
13368 ac_cv_sizeof_off_t=0
13369 fi ;;
13370 esac
13371 else
13372 cat >conftest.$ac_ext <<_ACEOF
13373 /* confdefs.h. */
13374 _ACEOF
13375 cat confdefs.h >>conftest.$ac_ext
13376 cat >>conftest.$ac_ext <<_ACEOF
13377 /* end confdefs.h. */
13379 #ifdef HAVE_SYS_TYPES_H
13380 #include <sys/types.h>
13381 #endif
13384 typedef off_t ac__type_sizeof_;
13385 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13386 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
13387 #include <stdio.h>
13388 #include <stdlib.h>
13390 main ()
13393 FILE *f = fopen ("conftest.val", "w");
13394 if (! f)
13395 return 1;
13396 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
13398 long int i = longval ();
13399 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13400 return 1;
13401 fprintf (f, "%ld\n", i);
13403 else
13405 unsigned long int i = ulongval ();
13406 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13407 return 1;
13408 fprintf (f, "%lu\n", i);
13410 return ferror (f) || fclose (f) != 0;
13413 return 0;
13415 _ACEOF
13416 rm -f conftest$ac_exeext
13417 if { (ac_try="$ac_link"
13418 case "(($ac_try" in
13419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13420 *) ac_try_echo=$ac_try;;
13421 esac
13422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13423 (eval "$ac_link") 2>&5
13424 ac_status=$?
13425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13426 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13427 { (case "(($ac_try" in
13428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13429 *) ac_try_echo=$ac_try;;
13430 esac
13431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13432 (eval "$ac_try") 2>&5
13433 ac_status=$?
13434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13435 (exit $ac_status); }; }; then
13436 ac_cv_sizeof_off_t=`cat conftest.val`
13437 else
13438 echo "$as_me: program exited with status $ac_status" >&5
13439 echo "$as_me: failed program was:" >&5
13440 sed 's/^/| /' conftest.$ac_ext >&5
13442 ( exit $ac_status )
13443 if test "$ac_cv_type_off_t" = yes; then
13444 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
13445 See \`config.log' for more details." >&5
13446 echo "$as_me: error: cannot compute sizeof (off_t)
13447 See \`config.log' for more details." >&2;}
13448 { (exit 77); exit 77; }; }
13449 else
13450 ac_cv_sizeof_off_t=0
13453 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13455 rm -f conftest.val
13457 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
13458 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
13462 cat >>confdefs.h <<_ACEOF
13463 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
13464 _ACEOF
13468 { echo "$as_me:$LINENO: checking whether to enable large file support" >&5
13469 echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6; }
13470 if test "$have_long_long" = yes
13471 then
13472 if test "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
13473 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
13475 cat >>confdefs.h <<\_ACEOF
13476 #define HAVE_LARGEFILE_SUPPORT 1
13477 _ACEOF
13479 { echo "$as_me:$LINENO: result: yes" >&5
13480 echo "${ECHO_T}yes" >&6; }
13481 else
13482 { echo "$as_me:$LINENO: result: no" >&5
13483 echo "${ECHO_T}no" >&6; }
13485 else
13486 { echo "$as_me:$LINENO: result: no" >&5
13487 echo "${ECHO_T}no" >&6; }
13490 { echo "$as_me:$LINENO: checking for time_t" >&5
13491 echo $ECHO_N "checking for time_t... $ECHO_C" >&6; }
13492 if test "${ac_cv_type_time_t+set}" = set; then
13493 echo $ECHO_N "(cached) $ECHO_C" >&6
13494 else
13495 cat >conftest.$ac_ext <<_ACEOF
13496 /* confdefs.h. */
13497 _ACEOF
13498 cat confdefs.h >>conftest.$ac_ext
13499 cat >>conftest.$ac_ext <<_ACEOF
13500 /* end confdefs.h. */
13502 #ifdef HAVE_SYS_TYPES_H
13503 #include <sys/types.h>
13504 #endif
13505 #ifdef HAVE_TIME_H
13506 #include <time.h>
13507 #endif
13510 typedef time_t ac__type_new_;
13512 main ()
13514 if ((ac__type_new_ *) 0)
13515 return 0;
13516 if (sizeof (ac__type_new_))
13517 return 0;
13519 return 0;
13521 _ACEOF
13522 rm -f conftest.$ac_objext
13523 if { (ac_try="$ac_compile"
13524 case "(($ac_try" in
13525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13526 *) ac_try_echo=$ac_try;;
13527 esac
13528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13529 (eval "$ac_compile") 2>conftest.er1
13530 ac_status=$?
13531 grep -v '^ *+' conftest.er1 >conftest.err
13532 rm -f conftest.er1
13533 cat conftest.err >&5
13534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13535 (exit $ac_status); } && {
13536 test -z "$ac_c_werror_flag" ||
13537 test ! -s conftest.err
13538 } && test -s conftest.$ac_objext; then
13539 ac_cv_type_time_t=yes
13540 else
13541 echo "$as_me: failed program was:" >&5
13542 sed 's/^/| /' conftest.$ac_ext >&5
13544 ac_cv_type_time_t=no
13547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13549 { echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5
13550 echo "${ECHO_T}$ac_cv_type_time_t" >&6; }
13552 # The cast to long int works around a bug in the HP C Compiler
13553 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13554 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13555 # This bug is HP SR number 8606223364.
13556 { echo "$as_me:$LINENO: checking size of time_t" >&5
13557 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6; }
13558 if test "${ac_cv_sizeof_time_t+set}" = set; then
13559 echo $ECHO_N "(cached) $ECHO_C" >&6
13560 else
13561 if test "$cross_compiling" = yes; then
13562 # Depending upon the size, compute the lo and hi bounds.
13563 cat >conftest.$ac_ext <<_ACEOF
13564 /* confdefs.h. */
13565 _ACEOF
13566 cat confdefs.h >>conftest.$ac_ext
13567 cat >>conftest.$ac_ext <<_ACEOF
13568 /* end confdefs.h. */
13570 #ifdef HAVE_SYS_TYPES_H
13571 #include <sys/types.h>
13572 #endif
13573 #ifdef HAVE_TIME_H
13574 #include <time.h>
13575 #endif
13578 typedef time_t ac__type_sizeof_;
13580 main ()
13582 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13583 test_array [0] = 0
13586 return 0;
13588 _ACEOF
13589 rm -f conftest.$ac_objext
13590 if { (ac_try="$ac_compile"
13591 case "(($ac_try" in
13592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13593 *) ac_try_echo=$ac_try;;
13594 esac
13595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13596 (eval "$ac_compile") 2>conftest.er1
13597 ac_status=$?
13598 grep -v '^ *+' conftest.er1 >conftest.err
13599 rm -f conftest.er1
13600 cat conftest.err >&5
13601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13602 (exit $ac_status); } && {
13603 test -z "$ac_c_werror_flag" ||
13604 test ! -s conftest.err
13605 } && test -s conftest.$ac_objext; then
13606 ac_lo=0 ac_mid=0
13607 while :; do
13608 cat >conftest.$ac_ext <<_ACEOF
13609 /* confdefs.h. */
13610 _ACEOF
13611 cat confdefs.h >>conftest.$ac_ext
13612 cat >>conftest.$ac_ext <<_ACEOF
13613 /* end confdefs.h. */
13615 #ifdef HAVE_SYS_TYPES_H
13616 #include <sys/types.h>
13617 #endif
13618 #ifdef HAVE_TIME_H
13619 #include <time.h>
13620 #endif
13623 typedef time_t ac__type_sizeof_;
13625 main ()
13627 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13628 test_array [0] = 0
13631 return 0;
13633 _ACEOF
13634 rm -f conftest.$ac_objext
13635 if { (ac_try="$ac_compile"
13636 case "(($ac_try" in
13637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13638 *) ac_try_echo=$ac_try;;
13639 esac
13640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13641 (eval "$ac_compile") 2>conftest.er1
13642 ac_status=$?
13643 grep -v '^ *+' conftest.er1 >conftest.err
13644 rm -f conftest.er1
13645 cat conftest.err >&5
13646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13647 (exit $ac_status); } && {
13648 test -z "$ac_c_werror_flag" ||
13649 test ! -s conftest.err
13650 } && test -s conftest.$ac_objext; then
13651 ac_hi=$ac_mid; break
13652 else
13653 echo "$as_me: failed program was:" >&5
13654 sed 's/^/| /' conftest.$ac_ext >&5
13656 ac_lo=`expr $ac_mid + 1`
13657 if test $ac_lo -le $ac_mid; then
13658 ac_lo= ac_hi=
13659 break
13661 ac_mid=`expr 2 '*' $ac_mid + 1`
13664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13665 done
13666 else
13667 echo "$as_me: failed program was:" >&5
13668 sed 's/^/| /' conftest.$ac_ext >&5
13670 cat >conftest.$ac_ext <<_ACEOF
13671 /* confdefs.h. */
13672 _ACEOF
13673 cat confdefs.h >>conftest.$ac_ext
13674 cat >>conftest.$ac_ext <<_ACEOF
13675 /* end confdefs.h. */
13677 #ifdef HAVE_SYS_TYPES_H
13678 #include <sys/types.h>
13679 #endif
13680 #ifdef HAVE_TIME_H
13681 #include <time.h>
13682 #endif
13685 typedef time_t ac__type_sizeof_;
13687 main ()
13689 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13690 test_array [0] = 0
13693 return 0;
13695 _ACEOF
13696 rm -f conftest.$ac_objext
13697 if { (ac_try="$ac_compile"
13698 case "(($ac_try" in
13699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13700 *) ac_try_echo=$ac_try;;
13701 esac
13702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13703 (eval "$ac_compile") 2>conftest.er1
13704 ac_status=$?
13705 grep -v '^ *+' conftest.er1 >conftest.err
13706 rm -f conftest.er1
13707 cat conftest.err >&5
13708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13709 (exit $ac_status); } && {
13710 test -z "$ac_c_werror_flag" ||
13711 test ! -s conftest.err
13712 } && test -s conftest.$ac_objext; then
13713 ac_hi=-1 ac_mid=-1
13714 while :; do
13715 cat >conftest.$ac_ext <<_ACEOF
13716 /* confdefs.h. */
13717 _ACEOF
13718 cat confdefs.h >>conftest.$ac_ext
13719 cat >>conftest.$ac_ext <<_ACEOF
13720 /* end confdefs.h. */
13722 #ifdef HAVE_SYS_TYPES_H
13723 #include <sys/types.h>
13724 #endif
13725 #ifdef HAVE_TIME_H
13726 #include <time.h>
13727 #endif
13730 typedef time_t ac__type_sizeof_;
13732 main ()
13734 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13735 test_array [0] = 0
13738 return 0;
13740 _ACEOF
13741 rm -f conftest.$ac_objext
13742 if { (ac_try="$ac_compile"
13743 case "(($ac_try" in
13744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13745 *) ac_try_echo=$ac_try;;
13746 esac
13747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13748 (eval "$ac_compile") 2>conftest.er1
13749 ac_status=$?
13750 grep -v '^ *+' conftest.er1 >conftest.err
13751 rm -f conftest.er1
13752 cat conftest.err >&5
13753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13754 (exit $ac_status); } && {
13755 test -z "$ac_c_werror_flag" ||
13756 test ! -s conftest.err
13757 } && test -s conftest.$ac_objext; then
13758 ac_lo=$ac_mid; break
13759 else
13760 echo "$as_me: failed program was:" >&5
13761 sed 's/^/| /' conftest.$ac_ext >&5
13763 ac_hi=`expr '(' $ac_mid ')' - 1`
13764 if test $ac_mid -le $ac_hi; then
13765 ac_lo= ac_hi=
13766 break
13768 ac_mid=`expr 2 '*' $ac_mid`
13771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13772 done
13773 else
13774 echo "$as_me: failed program was:" >&5
13775 sed 's/^/| /' conftest.$ac_ext >&5
13777 ac_lo= ac_hi=
13780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13784 # Binary search between lo and hi bounds.
13785 while test "x$ac_lo" != "x$ac_hi"; do
13786 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13787 cat >conftest.$ac_ext <<_ACEOF
13788 /* confdefs.h. */
13789 _ACEOF
13790 cat confdefs.h >>conftest.$ac_ext
13791 cat >>conftest.$ac_ext <<_ACEOF
13792 /* end confdefs.h. */
13794 #ifdef HAVE_SYS_TYPES_H
13795 #include <sys/types.h>
13796 #endif
13797 #ifdef HAVE_TIME_H
13798 #include <time.h>
13799 #endif
13802 typedef time_t ac__type_sizeof_;
13804 main ()
13806 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13807 test_array [0] = 0
13810 return 0;
13812 _ACEOF
13813 rm -f conftest.$ac_objext
13814 if { (ac_try="$ac_compile"
13815 case "(($ac_try" in
13816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13817 *) ac_try_echo=$ac_try;;
13818 esac
13819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13820 (eval "$ac_compile") 2>conftest.er1
13821 ac_status=$?
13822 grep -v '^ *+' conftest.er1 >conftest.err
13823 rm -f conftest.er1
13824 cat conftest.err >&5
13825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13826 (exit $ac_status); } && {
13827 test -z "$ac_c_werror_flag" ||
13828 test ! -s conftest.err
13829 } && test -s conftest.$ac_objext; then
13830 ac_hi=$ac_mid
13831 else
13832 echo "$as_me: failed program was:" >&5
13833 sed 's/^/| /' conftest.$ac_ext >&5
13835 ac_lo=`expr '(' $ac_mid ')' + 1`
13838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13839 done
13840 case $ac_lo in
13841 ?*) ac_cv_sizeof_time_t=$ac_lo;;
13842 '') if test "$ac_cv_type_time_t" = yes; then
13843 { { echo "$as_me:$LINENO: error: cannot compute sizeof (time_t)
13844 See \`config.log' for more details." >&5
13845 echo "$as_me: error: cannot compute sizeof (time_t)
13846 See \`config.log' for more details." >&2;}
13847 { (exit 77); exit 77; }; }
13848 else
13849 ac_cv_sizeof_time_t=0
13850 fi ;;
13851 esac
13852 else
13853 cat >conftest.$ac_ext <<_ACEOF
13854 /* confdefs.h. */
13855 _ACEOF
13856 cat confdefs.h >>conftest.$ac_ext
13857 cat >>conftest.$ac_ext <<_ACEOF
13858 /* end confdefs.h. */
13860 #ifdef HAVE_SYS_TYPES_H
13861 #include <sys/types.h>
13862 #endif
13863 #ifdef HAVE_TIME_H
13864 #include <time.h>
13865 #endif
13868 typedef time_t ac__type_sizeof_;
13869 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13870 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
13871 #include <stdio.h>
13872 #include <stdlib.h>
13874 main ()
13877 FILE *f = fopen ("conftest.val", "w");
13878 if (! f)
13879 return 1;
13880 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
13882 long int i = longval ();
13883 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13884 return 1;
13885 fprintf (f, "%ld\n", i);
13887 else
13889 unsigned long int i = ulongval ();
13890 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13891 return 1;
13892 fprintf (f, "%lu\n", i);
13894 return ferror (f) || fclose (f) != 0;
13897 return 0;
13899 _ACEOF
13900 rm -f conftest$ac_exeext
13901 if { (ac_try="$ac_link"
13902 case "(($ac_try" in
13903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13904 *) ac_try_echo=$ac_try;;
13905 esac
13906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13907 (eval "$ac_link") 2>&5
13908 ac_status=$?
13909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13910 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13911 { (case "(($ac_try" in
13912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13913 *) ac_try_echo=$ac_try;;
13914 esac
13915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13916 (eval "$ac_try") 2>&5
13917 ac_status=$?
13918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13919 (exit $ac_status); }; }; then
13920 ac_cv_sizeof_time_t=`cat conftest.val`
13921 else
13922 echo "$as_me: program exited with status $ac_status" >&5
13923 echo "$as_me: failed program was:" >&5
13924 sed 's/^/| /' conftest.$ac_ext >&5
13926 ( exit $ac_status )
13927 if test "$ac_cv_type_time_t" = yes; then
13928 { { echo "$as_me:$LINENO: error: cannot compute sizeof (time_t)
13929 See \`config.log' for more details." >&5
13930 echo "$as_me: error: cannot compute sizeof (time_t)
13931 See \`config.log' for more details." >&2;}
13932 { (exit 77); exit 77; }; }
13933 else
13934 ac_cv_sizeof_time_t=0
13937 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13939 rm -f conftest.val
13941 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
13942 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6; }
13946 cat >>confdefs.h <<_ACEOF
13947 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
13948 _ACEOF
13952 # if have pthread_t then define SIZEOF_PTHREAD_T
13953 ac_save_cc="$CC"
13954 if test "$ac_cv_kpthread" = "yes"
13955 then CC="$CC -Kpthread"
13956 elif test "$ac_cv_kthread" = "yes"
13957 then CC="$CC -Kthread"
13958 elif test "$ac_cv_pthread" = "yes"
13959 then CC="$CC -pthread"
13961 { echo "$as_me:$LINENO: checking for pthread_t" >&5
13962 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; }
13963 have_pthread_t=no
13964 cat >conftest.$ac_ext <<_ACEOF
13965 /* confdefs.h. */
13966 _ACEOF
13967 cat confdefs.h >>conftest.$ac_ext
13968 cat >>conftest.$ac_ext <<_ACEOF
13969 /* end confdefs.h. */
13970 #include <pthread.h>
13972 main ()
13974 pthread_t x; x = *(pthread_t*)0;
13976 return 0;
13978 _ACEOF
13979 rm -f conftest.$ac_objext
13980 if { (ac_try="$ac_compile"
13981 case "(($ac_try" in
13982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13983 *) ac_try_echo=$ac_try;;
13984 esac
13985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13986 (eval "$ac_compile") 2>conftest.er1
13987 ac_status=$?
13988 grep -v '^ *+' conftest.er1 >conftest.err
13989 rm -f conftest.er1
13990 cat conftest.err >&5
13991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13992 (exit $ac_status); } && {
13993 test -z "$ac_c_werror_flag" ||
13994 test ! -s conftest.err
13995 } && test -s conftest.$ac_objext; then
13996 have_pthread_t=yes
13997 else
13998 echo "$as_me: failed program was:" >&5
13999 sed 's/^/| /' conftest.$ac_ext >&5
14004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14005 { echo "$as_me:$LINENO: result: $have_pthread_t" >&5
14006 echo "${ECHO_T}$have_pthread_t" >&6; }
14007 if test "$have_pthread_t" = yes ; then
14008 { echo "$as_me:$LINENO: checking for pthread_t" >&5
14009 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; }
14010 if test "${ac_cv_type_pthread_t+set}" = set; then
14011 echo $ECHO_N "(cached) $ECHO_C" >&6
14012 else
14013 cat >conftest.$ac_ext <<_ACEOF
14014 /* confdefs.h. */
14015 _ACEOF
14016 cat confdefs.h >>conftest.$ac_ext
14017 cat >>conftest.$ac_ext <<_ACEOF
14018 /* end confdefs.h. */
14020 #ifdef HAVE_PTHREAD_H
14021 #include <pthread.h>
14022 #endif
14025 typedef pthread_t ac__type_new_;
14027 main ()
14029 if ((ac__type_new_ *) 0)
14030 return 0;
14031 if (sizeof (ac__type_new_))
14032 return 0;
14034 return 0;
14036 _ACEOF
14037 rm -f conftest.$ac_objext
14038 if { (ac_try="$ac_compile"
14039 case "(($ac_try" in
14040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14041 *) ac_try_echo=$ac_try;;
14042 esac
14043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14044 (eval "$ac_compile") 2>conftest.er1
14045 ac_status=$?
14046 grep -v '^ *+' conftest.er1 >conftest.err
14047 rm -f conftest.er1
14048 cat conftest.err >&5
14049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14050 (exit $ac_status); } && {
14051 test -z "$ac_c_werror_flag" ||
14052 test ! -s conftest.err
14053 } && test -s conftest.$ac_objext; then
14054 ac_cv_type_pthread_t=yes
14055 else
14056 echo "$as_me: failed program was:" >&5
14057 sed 's/^/| /' conftest.$ac_ext >&5
14059 ac_cv_type_pthread_t=no
14062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14064 { echo "$as_me:$LINENO: result: $ac_cv_type_pthread_t" >&5
14065 echo "${ECHO_T}$ac_cv_type_pthread_t" >&6; }
14067 # The cast to long int works around a bug in the HP C Compiler
14068 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14069 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14070 # This bug is HP SR number 8606223364.
14071 { echo "$as_me:$LINENO: checking size of pthread_t" >&5
14072 echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6; }
14073 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
14074 echo $ECHO_N "(cached) $ECHO_C" >&6
14075 else
14076 if test "$cross_compiling" = yes; then
14077 # Depending upon the size, compute the lo and hi bounds.
14078 cat >conftest.$ac_ext <<_ACEOF
14079 /* confdefs.h. */
14080 _ACEOF
14081 cat confdefs.h >>conftest.$ac_ext
14082 cat >>conftest.$ac_ext <<_ACEOF
14083 /* end confdefs.h. */
14085 #ifdef HAVE_PTHREAD_H
14086 #include <pthread.h>
14087 #endif
14090 typedef pthread_t ac__type_sizeof_;
14092 main ()
14094 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
14095 test_array [0] = 0
14098 return 0;
14100 _ACEOF
14101 rm -f conftest.$ac_objext
14102 if { (ac_try="$ac_compile"
14103 case "(($ac_try" in
14104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14105 *) ac_try_echo=$ac_try;;
14106 esac
14107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14108 (eval "$ac_compile") 2>conftest.er1
14109 ac_status=$?
14110 grep -v '^ *+' conftest.er1 >conftest.err
14111 rm -f conftest.er1
14112 cat conftest.err >&5
14113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14114 (exit $ac_status); } && {
14115 test -z "$ac_c_werror_flag" ||
14116 test ! -s conftest.err
14117 } && test -s conftest.$ac_objext; then
14118 ac_lo=0 ac_mid=0
14119 while :; do
14120 cat >conftest.$ac_ext <<_ACEOF
14121 /* confdefs.h. */
14122 _ACEOF
14123 cat confdefs.h >>conftest.$ac_ext
14124 cat >>conftest.$ac_ext <<_ACEOF
14125 /* end confdefs.h. */
14127 #ifdef HAVE_PTHREAD_H
14128 #include <pthread.h>
14129 #endif
14132 typedef pthread_t ac__type_sizeof_;
14134 main ()
14136 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
14137 test_array [0] = 0
14140 return 0;
14142 _ACEOF
14143 rm -f conftest.$ac_objext
14144 if { (ac_try="$ac_compile"
14145 case "(($ac_try" in
14146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14147 *) ac_try_echo=$ac_try;;
14148 esac
14149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14150 (eval "$ac_compile") 2>conftest.er1
14151 ac_status=$?
14152 grep -v '^ *+' conftest.er1 >conftest.err
14153 rm -f conftest.er1
14154 cat conftest.err >&5
14155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14156 (exit $ac_status); } && {
14157 test -z "$ac_c_werror_flag" ||
14158 test ! -s conftest.err
14159 } && test -s conftest.$ac_objext; then
14160 ac_hi=$ac_mid; break
14161 else
14162 echo "$as_me: failed program was:" >&5
14163 sed 's/^/| /' conftest.$ac_ext >&5
14165 ac_lo=`expr $ac_mid + 1`
14166 if test $ac_lo -le $ac_mid; then
14167 ac_lo= ac_hi=
14168 break
14170 ac_mid=`expr 2 '*' $ac_mid + 1`
14173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14174 done
14175 else
14176 echo "$as_me: failed program was:" >&5
14177 sed 's/^/| /' conftest.$ac_ext >&5
14179 cat >conftest.$ac_ext <<_ACEOF
14180 /* confdefs.h. */
14181 _ACEOF
14182 cat confdefs.h >>conftest.$ac_ext
14183 cat >>conftest.$ac_ext <<_ACEOF
14184 /* end confdefs.h. */
14186 #ifdef HAVE_PTHREAD_H
14187 #include <pthread.h>
14188 #endif
14191 typedef pthread_t ac__type_sizeof_;
14193 main ()
14195 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
14196 test_array [0] = 0
14199 return 0;
14201 _ACEOF
14202 rm -f conftest.$ac_objext
14203 if { (ac_try="$ac_compile"
14204 case "(($ac_try" in
14205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14206 *) ac_try_echo=$ac_try;;
14207 esac
14208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14209 (eval "$ac_compile") 2>conftest.er1
14210 ac_status=$?
14211 grep -v '^ *+' conftest.er1 >conftest.err
14212 rm -f conftest.er1
14213 cat conftest.err >&5
14214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14215 (exit $ac_status); } && {
14216 test -z "$ac_c_werror_flag" ||
14217 test ! -s conftest.err
14218 } && test -s conftest.$ac_objext; then
14219 ac_hi=-1 ac_mid=-1
14220 while :; do
14221 cat >conftest.$ac_ext <<_ACEOF
14222 /* confdefs.h. */
14223 _ACEOF
14224 cat confdefs.h >>conftest.$ac_ext
14225 cat >>conftest.$ac_ext <<_ACEOF
14226 /* end confdefs.h. */
14228 #ifdef HAVE_PTHREAD_H
14229 #include <pthread.h>
14230 #endif
14233 typedef pthread_t ac__type_sizeof_;
14235 main ()
14237 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
14238 test_array [0] = 0
14241 return 0;
14243 _ACEOF
14244 rm -f conftest.$ac_objext
14245 if { (ac_try="$ac_compile"
14246 case "(($ac_try" in
14247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14248 *) ac_try_echo=$ac_try;;
14249 esac
14250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14251 (eval "$ac_compile") 2>conftest.er1
14252 ac_status=$?
14253 grep -v '^ *+' conftest.er1 >conftest.err
14254 rm -f conftest.er1
14255 cat conftest.err >&5
14256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14257 (exit $ac_status); } && {
14258 test -z "$ac_c_werror_flag" ||
14259 test ! -s conftest.err
14260 } && test -s conftest.$ac_objext; then
14261 ac_lo=$ac_mid; break
14262 else
14263 echo "$as_me: failed program was:" >&5
14264 sed 's/^/| /' conftest.$ac_ext >&5
14266 ac_hi=`expr '(' $ac_mid ')' - 1`
14267 if test $ac_mid -le $ac_hi; then
14268 ac_lo= ac_hi=
14269 break
14271 ac_mid=`expr 2 '*' $ac_mid`
14274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14275 done
14276 else
14277 echo "$as_me: failed program was:" >&5
14278 sed 's/^/| /' conftest.$ac_ext >&5
14280 ac_lo= ac_hi=
14283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14287 # Binary search between lo and hi bounds.
14288 while test "x$ac_lo" != "x$ac_hi"; do
14289 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14290 cat >conftest.$ac_ext <<_ACEOF
14291 /* confdefs.h. */
14292 _ACEOF
14293 cat confdefs.h >>conftest.$ac_ext
14294 cat >>conftest.$ac_ext <<_ACEOF
14295 /* end confdefs.h. */
14297 #ifdef HAVE_PTHREAD_H
14298 #include <pthread.h>
14299 #endif
14302 typedef pthread_t ac__type_sizeof_;
14304 main ()
14306 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
14307 test_array [0] = 0
14310 return 0;
14312 _ACEOF
14313 rm -f conftest.$ac_objext
14314 if { (ac_try="$ac_compile"
14315 case "(($ac_try" in
14316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14317 *) ac_try_echo=$ac_try;;
14318 esac
14319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14320 (eval "$ac_compile") 2>conftest.er1
14321 ac_status=$?
14322 grep -v '^ *+' conftest.er1 >conftest.err
14323 rm -f conftest.er1
14324 cat conftest.err >&5
14325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14326 (exit $ac_status); } && {
14327 test -z "$ac_c_werror_flag" ||
14328 test ! -s conftest.err
14329 } && test -s conftest.$ac_objext; then
14330 ac_hi=$ac_mid
14331 else
14332 echo "$as_me: failed program was:" >&5
14333 sed 's/^/| /' conftest.$ac_ext >&5
14335 ac_lo=`expr '(' $ac_mid ')' + 1`
14338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14339 done
14340 case $ac_lo in
14341 ?*) ac_cv_sizeof_pthread_t=$ac_lo;;
14342 '') if test "$ac_cv_type_pthread_t" = yes; then
14343 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pthread_t)
14344 See \`config.log' for more details." >&5
14345 echo "$as_me: error: cannot compute sizeof (pthread_t)
14346 See \`config.log' for more details." >&2;}
14347 { (exit 77); exit 77; }; }
14348 else
14349 ac_cv_sizeof_pthread_t=0
14350 fi ;;
14351 esac
14352 else
14353 cat >conftest.$ac_ext <<_ACEOF
14354 /* confdefs.h. */
14355 _ACEOF
14356 cat confdefs.h >>conftest.$ac_ext
14357 cat >>conftest.$ac_ext <<_ACEOF
14358 /* end confdefs.h. */
14360 #ifdef HAVE_PTHREAD_H
14361 #include <pthread.h>
14362 #endif
14365 typedef pthread_t ac__type_sizeof_;
14366 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
14367 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
14368 #include <stdio.h>
14369 #include <stdlib.h>
14371 main ()
14374 FILE *f = fopen ("conftest.val", "w");
14375 if (! f)
14376 return 1;
14377 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
14379 long int i = longval ();
14380 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14381 return 1;
14382 fprintf (f, "%ld\n", i);
14384 else
14386 unsigned long int i = ulongval ();
14387 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14388 return 1;
14389 fprintf (f, "%lu\n", i);
14391 return ferror (f) || fclose (f) != 0;
14394 return 0;
14396 _ACEOF
14397 rm -f conftest$ac_exeext
14398 if { (ac_try="$ac_link"
14399 case "(($ac_try" in
14400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14401 *) ac_try_echo=$ac_try;;
14402 esac
14403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14404 (eval "$ac_link") 2>&5
14405 ac_status=$?
14406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14407 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14408 { (case "(($ac_try" in
14409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14410 *) ac_try_echo=$ac_try;;
14411 esac
14412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14413 (eval "$ac_try") 2>&5
14414 ac_status=$?
14415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14416 (exit $ac_status); }; }; then
14417 ac_cv_sizeof_pthread_t=`cat conftest.val`
14418 else
14419 echo "$as_me: program exited with status $ac_status" >&5
14420 echo "$as_me: failed program was:" >&5
14421 sed 's/^/| /' conftest.$ac_ext >&5
14423 ( exit $ac_status )
14424 if test "$ac_cv_type_pthread_t" = yes; then
14425 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pthread_t)
14426 See \`config.log' for more details." >&5
14427 echo "$as_me: error: cannot compute sizeof (pthread_t)
14428 See \`config.log' for more details." >&2;}
14429 { (exit 77); exit 77; }; }
14430 else
14431 ac_cv_sizeof_pthread_t=0
14434 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14436 rm -f conftest.val
14438 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
14439 echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6; }
14443 cat >>confdefs.h <<_ACEOF
14444 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
14445 _ACEOF
14449 CC="$ac_save_cc"
14451 { echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5
14452 echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6; }
14453 # Check whether --enable-toolbox-glue was given.
14454 if test "${enable_toolbox_glue+set}" = set; then
14455 enableval=$enable_toolbox_glue;
14459 if test -z "$enable_toolbox_glue"
14460 then
14461 case $ac_sys_system/$ac_sys_release in
14462 Darwin/*)
14463 enable_toolbox_glue="yes";;
14465 enable_toolbox_glue="no";;
14466 esac
14468 case "$enable_toolbox_glue" in
14469 yes)
14470 extra_machdep_objs="Python/mactoolboxglue.o"
14471 extra_undefs="-u _PyMac_Error"
14473 cat >>confdefs.h <<\_ACEOF
14474 #define USE_TOOLBOX_OBJECT_GLUE 1
14475 _ACEOF
14479 extra_machdep_objs=""
14480 extra_undefs=""
14482 esac
14483 { echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5
14484 echo "${ECHO_T}$enable_toolbox_glue" >&6; }
14488 case $ac_sys_system/$ac_sys_release in
14489 Darwin/[01567]\..*)
14490 OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
14492 Darwin/*)
14493 OTHER_LIBTOOL_OPT=""
14495 esac
14498 ARCH_RUN_32BIT=""
14500 case $ac_sys_system/$ac_sys_release in
14501 Darwin/[01567]\..*)
14502 LIBTOOL_CRUFT="-framework System -lcc_dynamic"
14503 if test "${enable_universalsdk}"; then
14505 else
14506 LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `arch`"
14508 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
14509 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
14510 Darwin/*)
14511 gcc_version=`gcc -v 2>&1 | grep version | cut -d\ -f3`
14512 if test ${gcc_version} '<' 4.0
14513 then
14514 LIBTOOL_CRUFT="-lcc_dynamic"
14515 else
14516 LIBTOOL_CRUFT=""
14518 if test "$cross_compiling" = yes; then
14519 ac_osx_32bit=yes
14520 else
14521 cat >conftest.$ac_ext <<_ACEOF
14522 /* confdefs.h. */
14523 _ACEOF
14524 cat confdefs.h >>conftest.$ac_ext
14525 cat >>conftest.$ac_ext <<_ACEOF
14526 /* end confdefs.h. */
14528 #include <unistd.h>
14529 int main(int argc, char*argv[])
14531 if (sizeof(long) == 4) {
14532 return 0;
14533 } else {
14534 return 1;
14538 _ACEOF
14539 rm -f conftest$ac_exeext
14540 if { (ac_try="$ac_link"
14541 case "(($ac_try" in
14542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14543 *) ac_try_echo=$ac_try;;
14544 esac
14545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14546 (eval "$ac_link") 2>&5
14547 ac_status=$?
14548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14549 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14550 { (case "(($ac_try" in
14551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14552 *) ac_try_echo=$ac_try;;
14553 esac
14554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14555 (eval "$ac_try") 2>&5
14556 ac_status=$?
14557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14558 (exit $ac_status); }; }; then
14559 ac_osx_32bit=yes
14560 else
14561 echo "$as_me: program exited with status $ac_status" >&5
14562 echo "$as_me: failed program was:" >&5
14563 sed 's/^/| /' conftest.$ac_ext >&5
14565 ( exit $ac_status )
14566 ac_osx_32bit=no
14568 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14573 if test "${ac_osx_32bit}" = "yes"; then
14574 case `arch` in
14575 i386)
14576 MACOSX_DEFAULT_ARCH="i386"
14578 ppc)
14579 MACOSX_DEFAULT_ARCH="ppc"
14582 { { echo "$as_me:$LINENO: error: Unexpected output of 'arch' on OSX" >&5
14583 echo "$as_me: error: Unexpected output of 'arch' on OSX" >&2;}
14584 { (exit 1); exit 1; }; }
14586 esac
14587 else
14588 case `arch` in
14589 i386)
14590 MACOSX_DEFAULT_ARCH="x86_64"
14592 ppc)
14593 MACOSX_DEFAULT_ARCH="ppc64"
14596 { { echo "$as_me:$LINENO: error: Unexpected output of 'arch' on OSX" >&5
14597 echo "$as_me: error: Unexpected output of 'arch' on OSX" >&2;}
14598 { (exit 1); exit 1; }; }
14600 esac
14602 #ARCH_RUN_32BIT="true"
14605 LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only ${MACOSX_DEFAULT_ARCH}"
14606 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
14607 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
14608 esac
14610 { echo "$as_me:$LINENO: checking for --enable-framework" >&5
14611 echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6; }
14612 if test "$enable_framework"
14613 then
14614 BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
14615 # -F. is needed to allow linking to the framework while
14616 # in the build location.
14618 cat >>confdefs.h <<\_ACEOF
14619 #define WITH_NEXT_FRAMEWORK 1
14620 _ACEOF
14622 { echo "$as_me:$LINENO: result: yes" >&5
14623 echo "${ECHO_T}yes" >&6; }
14624 if test $enable_shared = "yes"
14625 then
14626 { { echo "$as_me:$LINENO: error: Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead. See Mac/README." >&5
14627 echo "$as_me: error: Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead. See Mac/README." >&2;}
14628 { (exit 1); exit 1; }; }
14630 else
14631 { echo "$as_me:$LINENO: result: no" >&5
14632 echo "${ECHO_T}no" >&6; }
14635 { echo "$as_me:$LINENO: checking for dyld" >&5
14636 echo $ECHO_N "checking for dyld... $ECHO_C" >&6; }
14637 case $ac_sys_system/$ac_sys_release in
14638 Darwin/*)
14640 cat >>confdefs.h <<\_ACEOF
14641 #define WITH_DYLD 1
14642 _ACEOF
14644 { echo "$as_me:$LINENO: result: always on for Darwin" >&5
14645 echo "${ECHO_T}always on for Darwin" >&6; }
14648 { echo "$as_me:$LINENO: result: no" >&5
14649 echo "${ECHO_T}no" >&6; }
14651 esac
14653 # Set info about shared libraries.
14659 # SO is the extension of shared libraries `(including the dot!)
14660 # -- usually .so, .sl on HP-UX, .dll on Cygwin
14661 { echo "$as_me:$LINENO: checking SO" >&5
14662 echo $ECHO_N "checking SO... $ECHO_C" >&6; }
14663 if test -z "$SO"
14664 then
14665 case $ac_sys_system in
14666 hp*|HP*)
14667 case `uname -m` in
14668 ia64) SO=.so;;
14669 *) SO=.sl;;
14670 esac
14672 CYGWIN*) SO=.dll;;
14673 *) SO=.so;;
14674 esac
14675 else
14676 # this might also be a termcap variable, see #610332
14677 echo
14678 echo '====================================================================='
14679 echo '+ +'
14680 echo '+ WARNING: You have set SO in your environment. +'
14681 echo '+ Do you really mean to change the extension for shared libraries? +'
14682 echo '+ Continuing in 10 seconds to let you to ponder. +'
14683 echo '+ +'
14684 echo '====================================================================='
14685 sleep 10
14687 { echo "$as_me:$LINENO: result: $SO" >&5
14688 echo "${ECHO_T}$SO" >&6; }
14691 cat >>confdefs.h <<_ACEOF
14692 #define SHLIB_EXT "$SO"
14693 _ACEOF
14695 # LDSHARED is the ld *command* used to create shared library
14696 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
14697 # (Shared libraries in this instance are shared modules to be loaded into
14698 # Python, as opposed to building Python itself as a shared library.)
14699 { echo "$as_me:$LINENO: checking LDSHARED" >&5
14700 echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6; }
14701 if test -z "$LDSHARED"
14702 then
14703 case $ac_sys_system/$ac_sys_release in
14704 AIX*)
14705 BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
14706 LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
14708 BeOS*)
14709 BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
14710 LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
14712 IRIX/5*) LDSHARED="ld -shared";;
14713 IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";;
14714 SunOS/5*)
14715 if test "$GCC" = "yes"
14716 then LDSHARED='$(CC) -shared'
14717 else LDSHARED='$(CC) -G';
14718 fi ;;
14719 hp*|HP*)
14720 if test "$GCC" = "yes"
14721 then LDSHARED='$(CC) -shared'
14722 else LDSHARED='ld -b';
14723 fi ;;
14724 OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";;
14725 Darwin/1.3*)
14726 LDSHARED='$(CC) $(LDFLAGS) -bundle'
14727 if test "$enable_framework" ; then
14728 # Link against the framework. All externals should be defined.
14729 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
14730 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
14731 else
14732 # No framework. Ignore undefined symbols, assuming they come from Python
14733 LDSHARED="$LDSHARED -undefined suppress"
14734 fi ;;
14735 Darwin/1.4*|Darwin/5.*|Darwin/6.*)
14736 LDSHARED='$(CC) $(LDFLAGS) -bundle'
14737 if test "$enable_framework" ; then
14738 # Link against the framework. All externals should be defined.
14739 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
14740 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
14741 else
14742 # No framework, use the Python app as bundle-loader
14743 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
14744 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
14745 fi ;;
14746 Darwin/*)
14747 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
14748 # This allows an extension to be used in any Python
14750 if test ${MACOSX_DEPLOYMENT_TARGET} '>' 10.2
14751 then
14752 if test "${enable_universalsdk}"; then
14753 LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
14755 LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
14756 BLDSHARED="$LDSHARED"
14757 else
14758 LDSHARED='$(CC) $(LDFLAGS) -bundle'
14759 if test "$enable_framework" ; then
14760 # Link against the framework. All externals should be defined.
14761 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
14762 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
14763 else
14764 # No framework, use the Python app as bundle-loader
14765 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
14766 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
14770 Linux*|GNU*|QNX*) LDSHARED='$(CC) -shared';;
14771 BSD/OS*/4*) LDSHARED="gcc -shared";;
14772 FreeBSD*)
14773 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
14774 then
14775 LDSHARED="$CC -shared ${LDFLAGS}"
14776 else
14777 LDSHARED="ld -Bshareable ${LDFLAGS}"
14778 fi;;
14779 OpenBSD*)
14780 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
14781 then
14782 LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
14783 else
14784 case `uname -r` in
14785 [01].* | 2.[0-7] | 2.[0-7].*)
14786 LDSHARED="ld -Bshareable ${LDFLAGS}"
14789 LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
14791 esac
14792 fi;;
14793 NetBSD*|DragonFly*) LDSHARED="cc -shared ${LDFLAGS}";;
14794 OpenUNIX*|UnixWare*)
14795 if test "$GCC" = "yes"
14796 then LDSHARED='$(CC) -shared'
14797 else LDSHARED='$(CC) -G'
14798 fi;;
14799 SCO_SV*) LDSHARED='$(CC) -Wl,-G,-Bexport';;
14800 CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";;
14801 atheos*) LDSHARED="gcc -shared";;
14802 *) LDSHARED="ld";;
14803 esac
14805 { echo "$as_me:$LINENO: result: $LDSHARED" >&5
14806 echo "${ECHO_T}$LDSHARED" >&6; }
14807 BLDSHARED=${BLDSHARED-$LDSHARED}
14808 # CCSHARED are the C *flags* used to create objects to go into a shared
14809 # library (module) -- this is only needed for a few systems
14810 { echo "$as_me:$LINENO: checking CCSHARED" >&5
14811 echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6; }
14812 if test -z "$CCSHARED"
14813 then
14814 case $ac_sys_system/$ac_sys_release in
14815 SunOS*) if test "$GCC" = yes;
14816 then CCSHARED="-fPIC";
14817 elif test `uname -p` = sparc;
14818 then CCSHARED="-xcode=pic32";
14819 else CCSHARED="-Kpic";
14820 fi;;
14821 hp*|HP*) if test "$GCC" = yes;
14822 then CCSHARED="-fPIC";
14823 else CCSHARED="+z";
14824 fi;;
14825 Linux*|GNU*) CCSHARED="-fPIC";;
14826 BSD/OS*/4*) CCSHARED="-fpic";;
14827 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";;
14828 OpenUNIX*|UnixWare*)
14829 if test "$GCC" = "yes"
14830 then CCSHARED="-fPIC"
14831 else CCSHARED="-KPIC"
14832 fi;;
14833 SCO_SV*)
14834 if test "$GCC" = "yes"
14835 then CCSHARED="-fPIC"
14836 else CCSHARED="-Kpic -belf"
14837 fi;;
14838 IRIX*/6*) case $CC in
14839 *gcc*) CCSHARED="-shared";;
14840 *) CCSHARED="";;
14841 esac;;
14842 atheos*) CCSHARED="-fPIC";;
14843 esac
14845 { echo "$as_me:$LINENO: result: $CCSHARED" >&5
14846 echo "${ECHO_T}$CCSHARED" >&6; }
14847 # LINKFORSHARED are the flags passed to the $(CC) command that links
14848 # the python executable -- this is only needed for a few systems
14849 { echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
14850 echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6; }
14851 if test -z "$LINKFORSHARED"
14852 then
14853 case $ac_sys_system/$ac_sys_release in
14854 AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';;
14855 hp*|HP*)
14856 LINKFORSHARED="-Wl,-E -Wl,+s";;
14857 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
14858 BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";;
14859 Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";;
14860 # -u libsys_s pulls in all symbols in libsys
14861 Darwin/*)
14862 # -u _PyMac_Error is needed to pull in the mac toolbox glue,
14863 # which is
14864 # not used by the core itself but which needs to be in the core so
14865 # that dynamically loaded extension modules have access to it.
14866 # -prebind is no longer used, because it actually seems to give a
14867 # slowdown in stead of a speedup, maybe due to the large number of
14868 # dynamic loads Python does.
14870 LINKFORSHARED="$extra_undefs"
14871 if test "$enable_framework"
14872 then
14873 LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
14875 LINKFORSHARED="$LINKFORSHARED";;
14876 OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";;
14877 SCO_SV*) LINKFORSHARED="-Wl,-Bexport";;
14878 ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
14879 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*)
14880 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
14881 then
14882 LINKFORSHARED="-Wl,--export-dynamic"
14883 fi;;
14884 SunOS/5*) case $CC in
14885 *gcc*)
14886 if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null
14887 then
14888 LINKFORSHARED="-Xlinker --export-dynamic"
14889 fi;;
14890 esac;;
14891 CYGWIN*)
14892 if test $enable_shared = "no"
14893 then
14894 LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)'
14895 fi;;
14896 QNX*)
14897 # -Wl,-E causes the symbols to be added to the dynamic
14898 # symbol table so that they can be found when a module
14899 # is loaded. -N 2048K causes the stack size to be set
14900 # to 2048 kilobytes so that the stack doesn't overflow
14901 # when running test_compile.py.
14902 LINKFORSHARED='-Wl,-E -N 2048K';;
14903 esac
14905 { echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
14906 echo "${ECHO_T}$LINKFORSHARED" >&6; }
14910 { echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
14911 echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6; }
14912 if test ! "$LIBRARY" = "$LDLIBRARY"
14913 then
14914 case $ac_sys_system in
14915 CYGWIN*)
14916 # Cygwin needs CCSHARED when building extension DLLs
14917 # but not when building the interpreter DLL.
14918 CFLAGSFORSHARED='';;
14920 CFLAGSFORSHARED='$(CCSHARED)'
14921 esac
14923 { echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
14924 echo "${ECHO_T}$CFLAGSFORSHARED" >&6; }
14926 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
14927 # library (with --enable-shared).
14928 # For platforms on which shared libraries are not allowed to have unresolved
14929 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
14930 # if it is not required, since it creates a dependency of the shared library
14931 # to LIBS. This, in turn, means that applications linking the shared libpython
14932 # don't need to link LIBS explicitly. The default should be only changed
14933 # on systems where this approach causes problems.
14935 { echo "$as_me:$LINENO: checking SHLIBS" >&5
14936 echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6; }
14937 case "$ac_sys_system" in
14939 SHLIBS='$(LIBS)';;
14940 esac
14941 { echo "$as_me:$LINENO: result: $SHLIBS" >&5
14942 echo "${ECHO_T}$SHLIBS" >&6; }
14945 # checks for libraries
14947 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14948 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
14949 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14950 echo $ECHO_N "(cached) $ECHO_C" >&6
14951 else
14952 ac_check_lib_save_LIBS=$LIBS
14953 LIBS="-ldl $LIBS"
14954 cat >conftest.$ac_ext <<_ACEOF
14955 /* confdefs.h. */
14956 _ACEOF
14957 cat confdefs.h >>conftest.$ac_ext
14958 cat >>conftest.$ac_ext <<_ACEOF
14959 /* end confdefs.h. */
14961 /* Override any GCC internal prototype to avoid an error.
14962 Use char because int might match the return type of a GCC
14963 builtin and then its argument prototype would still apply. */
14964 #ifdef __cplusplus
14965 extern "C"
14966 #endif
14967 char dlopen ();
14969 main ()
14971 return dlopen ();
14973 return 0;
14975 _ACEOF
14976 rm -f conftest.$ac_objext conftest$ac_exeext
14977 if { (ac_try="$ac_link"
14978 case "(($ac_try" in
14979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14980 *) ac_try_echo=$ac_try;;
14981 esac
14982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14983 (eval "$ac_link") 2>conftest.er1
14984 ac_status=$?
14985 grep -v '^ *+' conftest.er1 >conftest.err
14986 rm -f conftest.er1
14987 cat conftest.err >&5
14988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14989 (exit $ac_status); } && {
14990 test -z "$ac_c_werror_flag" ||
14991 test ! -s conftest.err
14992 } && test -s conftest$ac_exeext &&
14993 $as_test_x conftest$ac_exeext; then
14994 ac_cv_lib_dl_dlopen=yes
14995 else
14996 echo "$as_me: failed program was:" >&5
14997 sed 's/^/| /' conftest.$ac_ext >&5
14999 ac_cv_lib_dl_dlopen=no
15002 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15003 conftest$ac_exeext conftest.$ac_ext
15004 LIBS=$ac_check_lib_save_LIBS
15006 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15007 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
15008 if test $ac_cv_lib_dl_dlopen = yes; then
15009 cat >>confdefs.h <<_ACEOF
15010 #define HAVE_LIBDL 1
15011 _ACEOF
15013 LIBS="-ldl $LIBS"
15016 # Dynamic linking for SunOS/Solaris and SYSV
15018 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
15019 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
15020 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
15021 echo $ECHO_N "(cached) $ECHO_C" >&6
15022 else
15023 ac_check_lib_save_LIBS=$LIBS
15024 LIBS="-ldld $LIBS"
15025 cat >conftest.$ac_ext <<_ACEOF
15026 /* confdefs.h. */
15027 _ACEOF
15028 cat confdefs.h >>conftest.$ac_ext
15029 cat >>conftest.$ac_ext <<_ACEOF
15030 /* end confdefs.h. */
15032 /* Override any GCC internal prototype to avoid an error.
15033 Use char because int might match the return type of a GCC
15034 builtin and then its argument prototype would still apply. */
15035 #ifdef __cplusplus
15036 extern "C"
15037 #endif
15038 char shl_load ();
15040 main ()
15042 return shl_load ();
15044 return 0;
15046 _ACEOF
15047 rm -f conftest.$ac_objext conftest$ac_exeext
15048 if { (ac_try="$ac_link"
15049 case "(($ac_try" in
15050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15051 *) ac_try_echo=$ac_try;;
15052 esac
15053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15054 (eval "$ac_link") 2>conftest.er1
15055 ac_status=$?
15056 grep -v '^ *+' conftest.er1 >conftest.err
15057 rm -f conftest.er1
15058 cat conftest.err >&5
15059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15060 (exit $ac_status); } && {
15061 test -z "$ac_c_werror_flag" ||
15062 test ! -s conftest.err
15063 } && test -s conftest$ac_exeext &&
15064 $as_test_x conftest$ac_exeext; then
15065 ac_cv_lib_dld_shl_load=yes
15066 else
15067 echo "$as_me: failed program was:" >&5
15068 sed 's/^/| /' conftest.$ac_ext >&5
15070 ac_cv_lib_dld_shl_load=no
15073 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15074 conftest$ac_exeext conftest.$ac_ext
15075 LIBS=$ac_check_lib_save_LIBS
15077 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
15078 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
15079 if test $ac_cv_lib_dld_shl_load = yes; then
15080 cat >>confdefs.h <<_ACEOF
15081 #define HAVE_LIBDLD 1
15082 _ACEOF
15084 LIBS="-ldld $LIBS"
15087 # Dynamic linking for HP-UX
15089 # only check for sem_init if thread support is requested
15090 if test "$with_threads" = "yes" -o -z "$with_threads"; then
15091 { echo "$as_me:$LINENO: checking for library containing sem_init" >&5
15092 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; }
15093 if test "${ac_cv_search_sem_init+set}" = set; then
15094 echo $ECHO_N "(cached) $ECHO_C" >&6
15095 else
15096 ac_func_search_save_LIBS=$LIBS
15097 cat >conftest.$ac_ext <<_ACEOF
15098 /* confdefs.h. */
15099 _ACEOF
15100 cat confdefs.h >>conftest.$ac_ext
15101 cat >>conftest.$ac_ext <<_ACEOF
15102 /* end confdefs.h. */
15104 /* Override any GCC internal prototype to avoid an error.
15105 Use char because int might match the return type of a GCC
15106 builtin and then its argument prototype would still apply. */
15107 #ifdef __cplusplus
15108 extern "C"
15109 #endif
15110 char sem_init ();
15112 main ()
15114 return sem_init ();
15116 return 0;
15118 _ACEOF
15119 for ac_lib in '' pthread rt posix4; do
15120 if test -z "$ac_lib"; then
15121 ac_res="none required"
15122 else
15123 ac_res=-l$ac_lib
15124 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15126 rm -f conftest.$ac_objext conftest$ac_exeext
15127 if { (ac_try="$ac_link"
15128 case "(($ac_try" in
15129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15130 *) ac_try_echo=$ac_try;;
15131 esac
15132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15133 (eval "$ac_link") 2>conftest.er1
15134 ac_status=$?
15135 grep -v '^ *+' conftest.er1 >conftest.err
15136 rm -f conftest.er1
15137 cat conftest.err >&5
15138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15139 (exit $ac_status); } && {
15140 test -z "$ac_c_werror_flag" ||
15141 test ! -s conftest.err
15142 } && test -s conftest$ac_exeext &&
15143 $as_test_x conftest$ac_exeext; then
15144 ac_cv_search_sem_init=$ac_res
15145 else
15146 echo "$as_me: failed program was:" >&5
15147 sed 's/^/| /' conftest.$ac_ext >&5
15152 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15153 conftest$ac_exeext
15154 if test "${ac_cv_search_sem_init+set}" = set; then
15155 break
15157 done
15158 if test "${ac_cv_search_sem_init+set}" = set; then
15160 else
15161 ac_cv_search_sem_init=no
15163 rm conftest.$ac_ext
15164 LIBS=$ac_func_search_save_LIBS
15166 { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
15167 echo "${ECHO_T}$ac_cv_search_sem_init" >&6; }
15168 ac_res=$ac_cv_search_sem_init
15169 if test "$ac_res" != no; then
15170 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15173 # 'Real Time' functions on Solaris
15174 # posix4 on Solaris 2.6
15175 # pthread (first!) on Linux
15178 # check if we need libintl for locale functions
15179 { echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
15180 echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6; }
15181 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
15182 echo $ECHO_N "(cached) $ECHO_C" >&6
15183 else
15184 ac_check_lib_save_LIBS=$LIBS
15185 LIBS="-lintl $LIBS"
15186 cat >conftest.$ac_ext <<_ACEOF
15187 /* confdefs.h. */
15188 _ACEOF
15189 cat confdefs.h >>conftest.$ac_ext
15190 cat >>conftest.$ac_ext <<_ACEOF
15191 /* end confdefs.h. */
15193 /* Override any GCC internal prototype to avoid an error.
15194 Use char because int might match the return type of a GCC
15195 builtin and then its argument prototype would still apply. */
15196 #ifdef __cplusplus
15197 extern "C"
15198 #endif
15199 char textdomain ();
15201 main ()
15203 return textdomain ();
15205 return 0;
15207 _ACEOF
15208 rm -f conftest.$ac_objext conftest$ac_exeext
15209 if { (ac_try="$ac_link"
15210 case "(($ac_try" in
15211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15212 *) ac_try_echo=$ac_try;;
15213 esac
15214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15215 (eval "$ac_link") 2>conftest.er1
15216 ac_status=$?
15217 grep -v '^ *+' conftest.er1 >conftest.err
15218 rm -f conftest.er1
15219 cat conftest.err >&5
15220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15221 (exit $ac_status); } && {
15222 test -z "$ac_c_werror_flag" ||
15223 test ! -s conftest.err
15224 } && test -s conftest$ac_exeext &&
15225 $as_test_x conftest$ac_exeext; then
15226 ac_cv_lib_intl_textdomain=yes
15227 else
15228 echo "$as_me: failed program was:" >&5
15229 sed 's/^/| /' conftest.$ac_ext >&5
15231 ac_cv_lib_intl_textdomain=no
15234 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15235 conftest$ac_exeext conftest.$ac_ext
15236 LIBS=$ac_check_lib_save_LIBS
15238 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
15239 echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6; }
15240 if test $ac_cv_lib_intl_textdomain = yes; then
15242 cat >>confdefs.h <<\_ACEOF
15243 #define WITH_LIBINTL 1
15244 _ACEOF
15249 # checks for system dependent C++ extensions support
15250 case "$ac_sys_system" in
15251 AIX*) { echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
15252 echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6; }
15253 cat >conftest.$ac_ext <<_ACEOF
15254 /* confdefs.h. */
15255 _ACEOF
15256 cat confdefs.h >>conftest.$ac_ext
15257 cat >>conftest.$ac_ext <<_ACEOF
15258 /* end confdefs.h. */
15259 #include "/usr/lpp/xlC/include/load.h"
15261 main ()
15263 loadAndInit("", 0, "")
15265 return 0;
15267 _ACEOF
15268 rm -f conftest.$ac_objext conftest$ac_exeext
15269 if { (ac_try="$ac_link"
15270 case "(($ac_try" in
15271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15272 *) ac_try_echo=$ac_try;;
15273 esac
15274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15275 (eval "$ac_link") 2>conftest.er1
15276 ac_status=$?
15277 grep -v '^ *+' conftest.er1 >conftest.err
15278 rm -f conftest.er1
15279 cat conftest.err >&5
15280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15281 (exit $ac_status); } && {
15282 test -z "$ac_c_werror_flag" ||
15283 test ! -s conftest.err
15284 } && test -s conftest$ac_exeext &&
15285 $as_test_x conftest$ac_exeext; then
15287 cat >>confdefs.h <<\_ACEOF
15288 #define AIX_GENUINE_CPLUSPLUS 1
15289 _ACEOF
15291 { echo "$as_me:$LINENO: result: yes" >&5
15292 echo "${ECHO_T}yes" >&6; }
15293 else
15294 echo "$as_me: failed program was:" >&5
15295 sed 's/^/| /' conftest.$ac_ext >&5
15297 { echo "$as_me:$LINENO: result: no" >&5
15298 echo "${ECHO_T}no" >&6; }
15301 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15302 conftest$ac_exeext conftest.$ac_ext;;
15303 *) ;;
15304 esac
15306 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
15307 # BeOS' sockets are stashed in libnet.
15308 { echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
15309 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6; }
15310 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
15311 echo $ECHO_N "(cached) $ECHO_C" >&6
15312 else
15313 ac_check_lib_save_LIBS=$LIBS
15314 LIBS="-lnsl $LIBS"
15315 cat >conftest.$ac_ext <<_ACEOF
15316 /* confdefs.h. */
15317 _ACEOF
15318 cat confdefs.h >>conftest.$ac_ext
15319 cat >>conftest.$ac_ext <<_ACEOF
15320 /* end confdefs.h. */
15322 /* Override any GCC internal prototype to avoid an error.
15323 Use char because int might match the return type of a GCC
15324 builtin and then its argument prototype would still apply. */
15325 #ifdef __cplusplus
15326 extern "C"
15327 #endif
15328 char t_open ();
15330 main ()
15332 return t_open ();
15334 return 0;
15336 _ACEOF
15337 rm -f conftest.$ac_objext conftest$ac_exeext
15338 if { (ac_try="$ac_link"
15339 case "(($ac_try" in
15340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15341 *) ac_try_echo=$ac_try;;
15342 esac
15343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15344 (eval "$ac_link") 2>conftest.er1
15345 ac_status=$?
15346 grep -v '^ *+' conftest.er1 >conftest.err
15347 rm -f conftest.er1
15348 cat conftest.err >&5
15349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15350 (exit $ac_status); } && {
15351 test -z "$ac_c_werror_flag" ||
15352 test ! -s conftest.err
15353 } && test -s conftest$ac_exeext &&
15354 $as_test_x conftest$ac_exeext; then
15355 ac_cv_lib_nsl_t_open=yes
15356 else
15357 echo "$as_me: failed program was:" >&5
15358 sed 's/^/| /' conftest.$ac_ext >&5
15360 ac_cv_lib_nsl_t_open=no
15363 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15364 conftest$ac_exeext conftest.$ac_ext
15365 LIBS=$ac_check_lib_save_LIBS
15367 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
15368 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6; }
15369 if test $ac_cv_lib_nsl_t_open = yes; then
15370 LIBS="-lnsl $LIBS"
15372 # SVR4
15373 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
15374 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
15375 if test "${ac_cv_lib_socket_socket+set}" = set; then
15376 echo $ECHO_N "(cached) $ECHO_C" >&6
15377 else
15378 ac_check_lib_save_LIBS=$LIBS
15379 LIBS="-lsocket $LIBS $LIBS"
15380 cat >conftest.$ac_ext <<_ACEOF
15381 /* confdefs.h. */
15382 _ACEOF
15383 cat confdefs.h >>conftest.$ac_ext
15384 cat >>conftest.$ac_ext <<_ACEOF
15385 /* end confdefs.h. */
15387 /* Override any GCC internal prototype to avoid an error.
15388 Use char because int might match the return type of a GCC
15389 builtin and then its argument prototype would still apply. */
15390 #ifdef __cplusplus
15391 extern "C"
15392 #endif
15393 char socket ();
15395 main ()
15397 return socket ();
15399 return 0;
15401 _ACEOF
15402 rm -f conftest.$ac_objext conftest$ac_exeext
15403 if { (ac_try="$ac_link"
15404 case "(($ac_try" in
15405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15406 *) ac_try_echo=$ac_try;;
15407 esac
15408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15409 (eval "$ac_link") 2>conftest.er1
15410 ac_status=$?
15411 grep -v '^ *+' conftest.er1 >conftest.err
15412 rm -f conftest.er1
15413 cat conftest.err >&5
15414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15415 (exit $ac_status); } && {
15416 test -z "$ac_c_werror_flag" ||
15417 test ! -s conftest.err
15418 } && test -s conftest$ac_exeext &&
15419 $as_test_x conftest$ac_exeext; then
15420 ac_cv_lib_socket_socket=yes
15421 else
15422 echo "$as_me: failed program was:" >&5
15423 sed 's/^/| /' conftest.$ac_ext >&5
15425 ac_cv_lib_socket_socket=no
15428 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15429 conftest$ac_exeext conftest.$ac_ext
15430 LIBS=$ac_check_lib_save_LIBS
15432 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
15433 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
15434 if test $ac_cv_lib_socket_socket = yes; then
15435 LIBS="-lsocket $LIBS"
15437 # SVR4 sockets
15439 case "$ac_sys_system" in
15440 BeOS*)
15441 { echo "$as_me:$LINENO: checking for socket in -lnet" >&5
15442 echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6; }
15443 if test "${ac_cv_lib_net_socket+set}" = set; then
15444 echo $ECHO_N "(cached) $ECHO_C" >&6
15445 else
15446 ac_check_lib_save_LIBS=$LIBS
15447 LIBS="-lnet $LIBS $LIBS"
15448 cat >conftest.$ac_ext <<_ACEOF
15449 /* confdefs.h. */
15450 _ACEOF
15451 cat confdefs.h >>conftest.$ac_ext
15452 cat >>conftest.$ac_ext <<_ACEOF
15453 /* end confdefs.h. */
15455 /* Override any GCC internal prototype to avoid an error.
15456 Use char because int might match the return type of a GCC
15457 builtin and then its argument prototype would still apply. */
15458 #ifdef __cplusplus
15459 extern "C"
15460 #endif
15461 char socket ();
15463 main ()
15465 return socket ();
15467 return 0;
15469 _ACEOF
15470 rm -f conftest.$ac_objext conftest$ac_exeext
15471 if { (ac_try="$ac_link"
15472 case "(($ac_try" in
15473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15474 *) ac_try_echo=$ac_try;;
15475 esac
15476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15477 (eval "$ac_link") 2>conftest.er1
15478 ac_status=$?
15479 grep -v '^ *+' conftest.er1 >conftest.err
15480 rm -f conftest.er1
15481 cat conftest.err >&5
15482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15483 (exit $ac_status); } && {
15484 test -z "$ac_c_werror_flag" ||
15485 test ! -s conftest.err
15486 } && test -s conftest$ac_exeext &&
15487 $as_test_x conftest$ac_exeext; then
15488 ac_cv_lib_net_socket=yes
15489 else
15490 echo "$as_me: failed program was:" >&5
15491 sed 's/^/| /' conftest.$ac_ext >&5
15493 ac_cv_lib_net_socket=no
15496 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15497 conftest$ac_exeext conftest.$ac_ext
15498 LIBS=$ac_check_lib_save_LIBS
15500 { echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5
15501 echo "${ECHO_T}$ac_cv_lib_net_socket" >&6; }
15502 if test $ac_cv_lib_net_socket = yes; then
15503 LIBS="-lnet $LIBS"
15505 # BeOS
15507 esac
15509 { echo "$as_me:$LINENO: checking for --with-libs" >&5
15510 echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6; }
15512 # Check whether --with-libs was given.
15513 if test "${with_libs+set}" = set; then
15514 withval=$with_libs;
15515 { echo "$as_me:$LINENO: result: $withval" >&5
15516 echo "${ECHO_T}$withval" >&6; }
15517 LIBS="$withval $LIBS"
15519 else
15520 { echo "$as_me:$LINENO: result: no" >&5
15521 echo "${ECHO_T}no" >&6; }
15525 # Check for use of the system expat library
15526 { echo "$as_me:$LINENO: checking for --with-system-expat" >&5
15527 echo $ECHO_N "checking for --with-system-expat... $ECHO_C" >&6; }
15529 # Check whether --with-system_expat was given.
15530 if test "${with_system_expat+set}" = set; then
15531 withval=$with_system_expat;
15535 { echo "$as_me:$LINENO: result: $with_system_expat" >&5
15536 echo "${ECHO_T}$with_system_expat" >&6; }
15538 # Check for use of the system libffi library
15539 { echo "$as_me:$LINENO: checking for --with-system-ffi" >&5
15540 echo $ECHO_N "checking for --with-system-ffi... $ECHO_C" >&6; }
15542 # Check whether --with-system_ffi was given.
15543 if test "${with_system_ffi+set}" = set; then
15544 withval=$with_system_ffi;
15548 if test "$with_system_ffi" = "yes"; then
15549 if test -n "$ac_tool_prefix"; then
15550 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
15551 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
15552 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15554 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
15555 echo $ECHO_N "(cached) $ECHO_C" >&6
15556 else
15557 case $PKG_CONFIG in
15558 [\\/]* | ?:[\\/]*)
15559 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
15562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15563 for as_dir in $PATH
15565 IFS=$as_save_IFS
15566 test -z "$as_dir" && as_dir=.
15567 for ac_exec_ext in '' $ac_executable_extensions; do
15568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15569 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15571 break 2
15573 done
15574 done
15575 IFS=$as_save_IFS
15578 esac
15580 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
15581 if test -n "$PKG_CONFIG"; then
15582 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
15583 echo "${ECHO_T}$PKG_CONFIG" >&6; }
15584 else
15585 { echo "$as_me:$LINENO: result: no" >&5
15586 echo "${ECHO_T}no" >&6; }
15591 if test -z "$ac_cv_path_PKG_CONFIG"; then
15592 ac_pt_PKG_CONFIG=$PKG_CONFIG
15593 # Extract the first word of "pkg-config", so it can be a program name with args.
15594 set dummy pkg-config; ac_word=$2
15595 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15597 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
15598 echo $ECHO_N "(cached) $ECHO_C" >&6
15599 else
15600 case $ac_pt_PKG_CONFIG in
15601 [\\/]* | ?:[\\/]*)
15602 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
15605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15606 for as_dir in $PATH
15608 IFS=$as_save_IFS
15609 test -z "$as_dir" && as_dir=.
15610 for ac_exec_ext in '' $ac_executable_extensions; do
15611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15612 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15613 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15614 break 2
15616 done
15617 done
15618 IFS=$as_save_IFS
15621 esac
15623 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
15624 if test -n "$ac_pt_PKG_CONFIG"; then
15625 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
15626 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
15627 else
15628 { echo "$as_me:$LINENO: result: no" >&5
15629 echo "${ECHO_T}no" >&6; }
15632 if test "x$ac_pt_PKG_CONFIG" = x; then
15633 PKG_CONFIG=""
15634 else
15635 case $cross_compiling:$ac_tool_warned in
15636 yes:)
15637 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
15638 whose name does not start with the host triplet. If you think this
15639 configuration is useful to you, please write to autoconf@gnu.org." >&5
15640 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
15641 whose name does not start with the host triplet. If you think this
15642 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
15643 ac_tool_warned=yes ;;
15644 esac
15645 PKG_CONFIG=$ac_pt_PKG_CONFIG
15647 else
15648 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
15651 LIBFFI_INCLUDEDIR="`"$PKG_CONFIG" libffi --cflags-only-I 2>/dev/null | sed -e 's/^-I//;s/ *$//'`"
15652 else
15653 LIBFFI_INCLUDEDIR=""
15657 { echo "$as_me:$LINENO: result: $with_system_ffi" >&5
15658 echo "${ECHO_T}$with_system_ffi" >&6; }
15660 # Check for --with-dbmliborder
15661 { echo "$as_me:$LINENO: checking for --with-dbmliborder" >&5
15662 echo $ECHO_N "checking for --with-dbmliborder... $ECHO_C" >&6; }
15664 # Check whether --with-dbmliborder was given.
15665 if test "${with_dbmliborder+set}" = set; then
15666 withval=$with_dbmliborder;
15667 if test x$with_dbmliborder = xyes
15668 then
15669 { { echo "$as_me:$LINENO: error: proper usage is --with-dbmliborder=db1:db2:..." >&5
15670 echo "$as_me: error: proper usage is --with-dbmliborder=db1:db2:..." >&2;}
15671 { (exit 1); exit 1; }; }
15672 else
15673 for db in `echo $with_dbmliborder | sed 's/:/ /g'`; do
15674 if test x$db != xndbm && test x$db != xgdbm && test x$db != xbdb
15675 then
15676 { { echo "$as_me:$LINENO: error: proper usage is --with-dbmliborder=db1:db2:..." >&5
15677 echo "$as_me: error: proper usage is --with-dbmliborder=db1:db2:..." >&2;}
15678 { (exit 1); exit 1; }; }
15680 done
15684 { echo "$as_me:$LINENO: result: $with_dbmliborder" >&5
15685 echo "${ECHO_T}$with_dbmliborder" >&6; }
15687 # Determine if signalmodule should be used.
15690 { echo "$as_me:$LINENO: checking for --with-signal-module" >&5
15691 echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6; }
15693 # Check whether --with-signal-module was given.
15694 if test "${with_signal_module+set}" = set; then
15695 withval=$with_signal_module;
15699 if test -z "$with_signal_module"
15700 then with_signal_module="yes"
15702 { echo "$as_me:$LINENO: result: $with_signal_module" >&5
15703 echo "${ECHO_T}$with_signal_module" >&6; }
15705 if test "${with_signal_module}" = "yes"; then
15706 USE_SIGNAL_MODULE=""
15707 SIGNAL_OBJS=""
15708 else
15709 USE_SIGNAL_MODULE="#"
15710 SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o"
15713 # This is used to generate Setup.config
15715 USE_THREAD_MODULE=""
15717 { echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
15718 echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6; }
15721 # Check whether --with-dec-threads was given.
15722 if test "${with_dec_threads+set}" = set; then
15723 withval=$with_dec_threads;
15724 { echo "$as_me:$LINENO: result: $withval" >&5
15725 echo "${ECHO_T}$withval" >&6; }
15726 LDLAST=-threads
15727 if test "${with_thread+set}" != set; then
15728 with_thread="$withval";
15730 else
15731 { echo "$as_me:$LINENO: result: no" >&5
15732 echo "${ECHO_T}no" >&6; }
15736 # Templates for things AC_DEFINEd more than once.
15737 # For a single AC_DEFINE, no template is needed.
15745 { echo "$as_me:$LINENO: checking for --with-threads" >&5
15746 echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6; }
15748 # Check whether --with-threads was given.
15749 if test "${with_threads+set}" = set; then
15750 withval=$with_threads;
15754 # --with-thread is deprecated, but check for it anyway
15756 # Check whether --with-thread was given.
15757 if test "${with_thread+set}" = set; then
15758 withval=$with_thread; with_threads=$with_thread
15762 if test -z "$with_threads"
15763 then with_threads="yes"
15765 { echo "$as_me:$LINENO: result: $with_threads" >&5
15766 echo "${ECHO_T}$with_threads" >&6; }
15769 if test "$with_threads" = "no"
15770 then
15771 USE_THREAD_MODULE="#"
15772 elif test "$ac_cv_pthread_is_default" = yes
15773 then
15774 cat >>confdefs.h <<\_ACEOF
15775 #define WITH_THREAD 1
15776 _ACEOF
15778 # Defining _REENTRANT on system with POSIX threads should not hurt.
15779 cat >>confdefs.h <<\_ACEOF
15780 #define _REENTRANT 1
15781 _ACEOF
15783 posix_threads=yes
15784 THREADOBJ="Python/thread.o"
15785 elif test "$ac_cv_kpthread" = "yes"
15786 then
15787 CC="$CC -Kpthread"
15788 if test "$ac_cv_cxx_thread" = "yes"; then
15789 CXX="$CXX -Kpthread"
15791 cat >>confdefs.h <<\_ACEOF
15792 #define WITH_THREAD 1
15793 _ACEOF
15795 posix_threads=yes
15796 THREADOBJ="Python/thread.o"
15797 elif test "$ac_cv_kthread" = "yes"
15798 then
15799 CC="$CC -Kthread"
15800 if test "$ac_cv_cxx_thread" = "yes"; then
15801 CXX="$CXX -Kthread"
15803 cat >>confdefs.h <<\_ACEOF
15804 #define WITH_THREAD 1
15805 _ACEOF
15807 posix_threads=yes
15808 THREADOBJ="Python/thread.o"
15809 elif test "$ac_cv_pthread" = "yes"
15810 then
15811 CC="$CC -pthread"
15812 if test "$ac_cv_cxx_thread" = "yes"; then
15813 CXX="$CXX -pthread"
15815 cat >>confdefs.h <<\_ACEOF
15816 #define WITH_THREAD 1
15817 _ACEOF
15819 posix_threads=yes
15820 THREADOBJ="Python/thread.o"
15821 else
15822 if test ! -z "$with_threads" -a -d "$with_threads"
15823 then LDFLAGS="$LDFLAGS -L$with_threads"
15825 if test ! -z "$withval" -a -d "$withval"
15826 then LDFLAGS="$LDFLAGS -L$withval"
15829 # According to the POSIX spec, a pthreads implementation must
15830 # define _POSIX_THREADS in unistd.h. Some apparently don't
15831 # (e.g. gnu pth with pthread emulation)
15832 { echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
15833 echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6; }
15834 cat >conftest.$ac_ext <<_ACEOF
15835 /* confdefs.h. */
15836 _ACEOF
15837 cat confdefs.h >>conftest.$ac_ext
15838 cat >>conftest.$ac_ext <<_ACEOF
15839 /* end confdefs.h. */
15841 #include <unistd.h>
15842 #ifdef _POSIX_THREADS
15844 #endif
15846 _ACEOF
15847 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15848 $EGREP "yes" >/dev/null 2>&1; then
15849 unistd_defines_pthreads=yes
15850 else
15851 unistd_defines_pthreads=no
15853 rm -f conftest*
15855 { echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
15856 echo "${ECHO_T}$unistd_defines_pthreads" >&6; }
15858 cat >>confdefs.h <<\_ACEOF
15859 #define _REENTRANT 1
15860 _ACEOF
15862 if test "${ac_cv_header_cthreads_h+set}" = set; then
15863 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
15864 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
15865 if test "${ac_cv_header_cthreads_h+set}" = set; then
15866 echo $ECHO_N "(cached) $ECHO_C" >&6
15868 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
15869 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
15870 else
15871 # Is the header compilable?
15872 { echo "$as_me:$LINENO: checking cthreads.h usability" >&5
15873 echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6; }
15874 cat >conftest.$ac_ext <<_ACEOF
15875 /* confdefs.h. */
15876 _ACEOF
15877 cat confdefs.h >>conftest.$ac_ext
15878 cat >>conftest.$ac_ext <<_ACEOF
15879 /* end confdefs.h. */
15880 $ac_includes_default
15881 #include <cthreads.h>
15882 _ACEOF
15883 rm -f conftest.$ac_objext
15884 if { (ac_try="$ac_compile"
15885 case "(($ac_try" in
15886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15887 *) ac_try_echo=$ac_try;;
15888 esac
15889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15890 (eval "$ac_compile") 2>conftest.er1
15891 ac_status=$?
15892 grep -v '^ *+' conftest.er1 >conftest.err
15893 rm -f conftest.er1
15894 cat conftest.err >&5
15895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15896 (exit $ac_status); } && {
15897 test -z "$ac_c_werror_flag" ||
15898 test ! -s conftest.err
15899 } && test -s conftest.$ac_objext; then
15900 ac_header_compiler=yes
15901 else
15902 echo "$as_me: failed program was:" >&5
15903 sed 's/^/| /' conftest.$ac_ext >&5
15905 ac_header_compiler=no
15908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15909 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15910 echo "${ECHO_T}$ac_header_compiler" >&6; }
15912 # Is the header present?
15913 { echo "$as_me:$LINENO: checking cthreads.h presence" >&5
15914 echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6; }
15915 cat >conftest.$ac_ext <<_ACEOF
15916 /* confdefs.h. */
15917 _ACEOF
15918 cat confdefs.h >>conftest.$ac_ext
15919 cat >>conftest.$ac_ext <<_ACEOF
15920 /* end confdefs.h. */
15921 #include <cthreads.h>
15922 _ACEOF
15923 if { (ac_try="$ac_cpp conftest.$ac_ext"
15924 case "(($ac_try" in
15925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15926 *) ac_try_echo=$ac_try;;
15927 esac
15928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15929 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15930 ac_status=$?
15931 grep -v '^ *+' conftest.er1 >conftest.err
15932 rm -f conftest.er1
15933 cat conftest.err >&5
15934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15935 (exit $ac_status); } >/dev/null && {
15936 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15937 test ! -s conftest.err
15938 }; then
15939 ac_header_preproc=yes
15940 else
15941 echo "$as_me: failed program was:" >&5
15942 sed 's/^/| /' conftest.$ac_ext >&5
15944 ac_header_preproc=no
15947 rm -f conftest.err conftest.$ac_ext
15948 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15949 echo "${ECHO_T}$ac_header_preproc" >&6; }
15951 # So? What about this header?
15952 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15953 yes:no: )
15954 { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
15955 echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15956 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5
15957 echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;}
15958 ac_header_preproc=yes
15960 no:yes:* )
15961 { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
15962 echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
15963 { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
15964 echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
15965 { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5
15966 echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;}
15967 { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
15968 echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
15969 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
15970 echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;}
15971 { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5
15972 echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;}
15973 ( cat <<\_ASBOX
15974 ## -------------------------------------- ##
15975 ## Report this to http://bugs.python.org/ ##
15976 ## -------------------------------------- ##
15977 _ASBOX
15978 ) | sed "s/^/$as_me: WARNING: /" >&2
15980 esac
15981 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
15982 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
15983 if test "${ac_cv_header_cthreads_h+set}" = set; then
15984 echo $ECHO_N "(cached) $ECHO_C" >&6
15985 else
15986 ac_cv_header_cthreads_h=$ac_header_preproc
15988 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
15989 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
15992 if test $ac_cv_header_cthreads_h = yes; then
15993 cat >>confdefs.h <<\_ACEOF
15994 #define WITH_THREAD 1
15995 _ACEOF
15997 cat >>confdefs.h <<\_ACEOF
15998 #define C_THREADS 1
15999 _ACEOF
16002 cat >>confdefs.h <<\_ACEOF
16003 #define HURD_C_THREADS 1
16004 _ACEOF
16006 LIBS="$LIBS -lthreads"
16007 THREADOBJ="Python/thread.o"
16008 else
16010 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
16011 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
16012 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
16013 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
16014 echo $ECHO_N "(cached) $ECHO_C" >&6
16016 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
16017 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
16018 else
16019 # Is the header compilable?
16020 { echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
16021 echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6; }
16022 cat >conftest.$ac_ext <<_ACEOF
16023 /* confdefs.h. */
16024 _ACEOF
16025 cat confdefs.h >>conftest.$ac_ext
16026 cat >>conftest.$ac_ext <<_ACEOF
16027 /* end confdefs.h. */
16028 $ac_includes_default
16029 #include <mach/cthreads.h>
16030 _ACEOF
16031 rm -f conftest.$ac_objext
16032 if { (ac_try="$ac_compile"
16033 case "(($ac_try" in
16034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16035 *) ac_try_echo=$ac_try;;
16036 esac
16037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16038 (eval "$ac_compile") 2>conftest.er1
16039 ac_status=$?
16040 grep -v '^ *+' conftest.er1 >conftest.err
16041 rm -f conftest.er1
16042 cat conftest.err >&5
16043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16044 (exit $ac_status); } && {
16045 test -z "$ac_c_werror_flag" ||
16046 test ! -s conftest.err
16047 } && test -s conftest.$ac_objext; then
16048 ac_header_compiler=yes
16049 else
16050 echo "$as_me: failed program was:" >&5
16051 sed 's/^/| /' conftest.$ac_ext >&5
16053 ac_header_compiler=no
16056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16057 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16058 echo "${ECHO_T}$ac_header_compiler" >&6; }
16060 # Is the header present?
16061 { echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
16062 echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6; }
16063 cat >conftest.$ac_ext <<_ACEOF
16064 /* confdefs.h. */
16065 _ACEOF
16066 cat confdefs.h >>conftest.$ac_ext
16067 cat >>conftest.$ac_ext <<_ACEOF
16068 /* end confdefs.h. */
16069 #include <mach/cthreads.h>
16070 _ACEOF
16071 if { (ac_try="$ac_cpp conftest.$ac_ext"
16072 case "(($ac_try" in
16073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16074 *) ac_try_echo=$ac_try;;
16075 esac
16076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16077 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16078 ac_status=$?
16079 grep -v '^ *+' conftest.er1 >conftest.err
16080 rm -f conftest.er1
16081 cat conftest.err >&5
16082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16083 (exit $ac_status); } >/dev/null && {
16084 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16085 test ! -s conftest.err
16086 }; then
16087 ac_header_preproc=yes
16088 else
16089 echo "$as_me: failed program was:" >&5
16090 sed 's/^/| /' conftest.$ac_ext >&5
16092 ac_header_preproc=no
16095 rm -f conftest.err conftest.$ac_ext
16096 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16097 echo "${ECHO_T}$ac_header_preproc" >&6; }
16099 # So? What about this header?
16100 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16101 yes:no: )
16102 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
16103 echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16104 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
16105 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
16106 ac_header_preproc=yes
16108 no:yes:* )
16109 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
16110 echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
16111 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
16112 echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
16113 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
16114 echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
16115 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
16116 echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
16117 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
16118 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
16119 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
16120 echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
16121 ( cat <<\_ASBOX
16122 ## -------------------------------------- ##
16123 ## Report this to http://bugs.python.org/ ##
16124 ## -------------------------------------- ##
16125 _ASBOX
16126 ) | sed "s/^/$as_me: WARNING: /" >&2
16128 esac
16129 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
16130 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
16131 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
16132 echo $ECHO_N "(cached) $ECHO_C" >&6
16133 else
16134 ac_cv_header_mach_cthreads_h=$ac_header_preproc
16136 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
16137 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
16140 if test $ac_cv_header_mach_cthreads_h = yes; then
16141 cat >>confdefs.h <<\_ACEOF
16142 #define WITH_THREAD 1
16143 _ACEOF
16145 cat >>confdefs.h <<\_ACEOF
16146 #define C_THREADS 1
16147 _ACEOF
16150 cat >>confdefs.h <<\_ACEOF
16151 #define MACH_C_THREADS 1
16152 _ACEOF
16154 THREADOBJ="Python/thread.o"
16155 else
16157 { echo "$as_me:$LINENO: checking for --with-pth" >&5
16158 echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6; }
16160 # Check whether --with-pth was given.
16161 if test "${with_pth+set}" = set; then
16162 withval=$with_pth; { echo "$as_me:$LINENO: result: $withval" >&5
16163 echo "${ECHO_T}$withval" >&6; }
16164 cat >>confdefs.h <<\_ACEOF
16165 #define WITH_THREAD 1
16166 _ACEOF
16169 cat >>confdefs.h <<\_ACEOF
16170 #define HAVE_PTH 1
16171 _ACEOF
16173 LIBS="-lpth $LIBS"
16174 THREADOBJ="Python/thread.o"
16175 else
16176 { echo "$as_me:$LINENO: result: no" >&5
16177 echo "${ECHO_T}no" >&6; }
16179 # Just looking for pthread_create in libpthread is not enough:
16180 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
16181 # So we really have to include pthread.h, and then link.
16182 _libs=$LIBS
16183 LIBS="$LIBS -lpthread"
16184 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
16185 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
16186 cat >conftest.$ac_ext <<_ACEOF
16187 /* confdefs.h. */
16188 _ACEOF
16189 cat confdefs.h >>conftest.$ac_ext
16190 cat >>conftest.$ac_ext <<_ACEOF
16191 /* end confdefs.h. */
16192 #include <pthread.h>
16194 void * start_routine (void *arg) { exit (0); }
16196 main ()
16199 pthread_create (NULL, NULL, start_routine, NULL)
16201 return 0;
16203 _ACEOF
16204 rm -f conftest.$ac_objext conftest$ac_exeext
16205 if { (ac_try="$ac_link"
16206 case "(($ac_try" in
16207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16208 *) ac_try_echo=$ac_try;;
16209 esac
16210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16211 (eval "$ac_link") 2>conftest.er1
16212 ac_status=$?
16213 grep -v '^ *+' conftest.er1 >conftest.err
16214 rm -f conftest.er1
16215 cat conftest.err >&5
16216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16217 (exit $ac_status); } && {
16218 test -z "$ac_c_werror_flag" ||
16219 test ! -s conftest.err
16220 } && test -s conftest$ac_exeext &&
16221 $as_test_x conftest$ac_exeext; then
16223 { echo "$as_me:$LINENO: result: yes" >&5
16224 echo "${ECHO_T}yes" >&6; }
16225 cat >>confdefs.h <<\_ACEOF
16226 #define WITH_THREAD 1
16227 _ACEOF
16229 posix_threads=yes
16230 THREADOBJ="Python/thread.o"
16231 else
16232 echo "$as_me: failed program was:" >&5
16233 sed 's/^/| /' conftest.$ac_ext >&5
16236 LIBS=$_libs
16237 { echo "$as_me:$LINENO: checking for pthread_detach" >&5
16238 echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6; }
16239 if test "${ac_cv_func_pthread_detach+set}" = set; then
16240 echo $ECHO_N "(cached) $ECHO_C" >&6
16241 else
16242 cat >conftest.$ac_ext <<_ACEOF
16243 /* confdefs.h. */
16244 _ACEOF
16245 cat confdefs.h >>conftest.$ac_ext
16246 cat >>conftest.$ac_ext <<_ACEOF
16247 /* end confdefs.h. */
16248 /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach.
16249 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16250 #define pthread_detach innocuous_pthread_detach
16252 /* System header to define __stub macros and hopefully few prototypes,
16253 which can conflict with char pthread_detach (); below.
16254 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16255 <limits.h> exists even on freestanding compilers. */
16257 #ifdef __STDC__
16258 # include <limits.h>
16259 #else
16260 # include <assert.h>
16261 #endif
16263 #undef pthread_detach
16265 /* Override any GCC internal prototype to avoid an error.
16266 Use char because int might match the return type of a GCC
16267 builtin and then its argument prototype would still apply. */
16268 #ifdef __cplusplus
16269 extern "C"
16270 #endif
16271 char pthread_detach ();
16272 /* The GNU C library defines this for functions which it implements
16273 to always fail with ENOSYS. Some functions are actually named
16274 something starting with __ and the normal name is an alias. */
16275 #if defined __stub_pthread_detach || defined __stub___pthread_detach
16276 choke me
16277 #endif
16280 main ()
16282 return pthread_detach ();
16284 return 0;
16286 _ACEOF
16287 rm -f conftest.$ac_objext conftest$ac_exeext
16288 if { (ac_try="$ac_link"
16289 case "(($ac_try" in
16290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16291 *) ac_try_echo=$ac_try;;
16292 esac
16293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16294 (eval "$ac_link") 2>conftest.er1
16295 ac_status=$?
16296 grep -v '^ *+' conftest.er1 >conftest.err
16297 rm -f conftest.er1
16298 cat conftest.err >&5
16299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16300 (exit $ac_status); } && {
16301 test -z "$ac_c_werror_flag" ||
16302 test ! -s conftest.err
16303 } && test -s conftest$ac_exeext &&
16304 $as_test_x conftest$ac_exeext; then
16305 ac_cv_func_pthread_detach=yes
16306 else
16307 echo "$as_me: failed program was:" >&5
16308 sed 's/^/| /' conftest.$ac_ext >&5
16310 ac_cv_func_pthread_detach=no
16313 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16314 conftest$ac_exeext conftest.$ac_ext
16316 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
16317 echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6; }
16318 if test $ac_cv_func_pthread_detach = yes; then
16319 cat >>confdefs.h <<\_ACEOF
16320 #define WITH_THREAD 1
16321 _ACEOF
16323 posix_threads=yes
16324 THREADOBJ="Python/thread.o"
16325 else
16327 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
16328 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
16329 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
16330 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
16331 echo $ECHO_N "(cached) $ECHO_C" >&6
16333 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
16334 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
16335 else
16336 # Is the header compilable?
16337 { echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
16338 echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6; }
16339 cat >conftest.$ac_ext <<_ACEOF
16340 /* confdefs.h. */
16341 _ACEOF
16342 cat confdefs.h >>conftest.$ac_ext
16343 cat >>conftest.$ac_ext <<_ACEOF
16344 /* end confdefs.h. */
16345 $ac_includes_default
16346 #include <atheos/threads.h>
16347 _ACEOF
16348 rm -f conftest.$ac_objext
16349 if { (ac_try="$ac_compile"
16350 case "(($ac_try" in
16351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16352 *) ac_try_echo=$ac_try;;
16353 esac
16354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16355 (eval "$ac_compile") 2>conftest.er1
16356 ac_status=$?
16357 grep -v '^ *+' conftest.er1 >conftest.err
16358 rm -f conftest.er1
16359 cat conftest.err >&5
16360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16361 (exit $ac_status); } && {
16362 test -z "$ac_c_werror_flag" ||
16363 test ! -s conftest.err
16364 } && test -s conftest.$ac_objext; then
16365 ac_header_compiler=yes
16366 else
16367 echo "$as_me: failed program was:" >&5
16368 sed 's/^/| /' conftest.$ac_ext >&5
16370 ac_header_compiler=no
16373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16374 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16375 echo "${ECHO_T}$ac_header_compiler" >&6; }
16377 # Is the header present?
16378 { echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
16379 echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6; }
16380 cat >conftest.$ac_ext <<_ACEOF
16381 /* confdefs.h. */
16382 _ACEOF
16383 cat confdefs.h >>conftest.$ac_ext
16384 cat >>conftest.$ac_ext <<_ACEOF
16385 /* end confdefs.h. */
16386 #include <atheos/threads.h>
16387 _ACEOF
16388 if { (ac_try="$ac_cpp conftest.$ac_ext"
16389 case "(($ac_try" in
16390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16391 *) ac_try_echo=$ac_try;;
16392 esac
16393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16394 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16395 ac_status=$?
16396 grep -v '^ *+' conftest.er1 >conftest.err
16397 rm -f conftest.er1
16398 cat conftest.err >&5
16399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16400 (exit $ac_status); } >/dev/null && {
16401 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16402 test ! -s conftest.err
16403 }; then
16404 ac_header_preproc=yes
16405 else
16406 echo "$as_me: failed program was:" >&5
16407 sed 's/^/| /' conftest.$ac_ext >&5
16409 ac_header_preproc=no
16412 rm -f conftest.err conftest.$ac_ext
16413 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16414 echo "${ECHO_T}$ac_header_preproc" >&6; }
16416 # So? What about this header?
16417 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16418 yes:no: )
16419 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
16420 echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16421 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5
16422 echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;}
16423 ac_header_preproc=yes
16425 no:yes:* )
16426 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
16427 echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
16428 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
16429 echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
16430 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5
16431 echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;}
16432 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5
16433 echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;}
16434 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
16435 echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;}
16436 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5
16437 echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;}
16438 ( cat <<\_ASBOX
16439 ## -------------------------------------- ##
16440 ## Report this to http://bugs.python.org/ ##
16441 ## -------------------------------------- ##
16442 _ASBOX
16443 ) | sed "s/^/$as_me: WARNING: /" >&2
16445 esac
16446 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
16447 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
16448 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
16449 echo $ECHO_N "(cached) $ECHO_C" >&6
16450 else
16451 ac_cv_header_atheos_threads_h=$ac_header_preproc
16453 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
16454 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
16457 if test $ac_cv_header_atheos_threads_h = yes; then
16458 cat >>confdefs.h <<\_ACEOF
16459 #define WITH_THREAD 1
16460 _ACEOF
16463 cat >>confdefs.h <<\_ACEOF
16464 #define ATHEOS_THREADS 1
16465 _ACEOF
16467 THREADOBJ="Python/thread.o"
16468 else
16470 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
16471 { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
16472 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; }
16473 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
16474 echo $ECHO_N "(cached) $ECHO_C" >&6
16476 { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
16477 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; }
16478 else
16479 # Is the header compilable?
16480 { echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5
16481 echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6; }
16482 cat >conftest.$ac_ext <<_ACEOF
16483 /* confdefs.h. */
16484 _ACEOF
16485 cat confdefs.h >>conftest.$ac_ext
16486 cat >>conftest.$ac_ext <<_ACEOF
16487 /* end confdefs.h. */
16488 $ac_includes_default
16489 #include <kernel/OS.h>
16490 _ACEOF
16491 rm -f conftest.$ac_objext
16492 if { (ac_try="$ac_compile"
16493 case "(($ac_try" in
16494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16495 *) ac_try_echo=$ac_try;;
16496 esac
16497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16498 (eval "$ac_compile") 2>conftest.er1
16499 ac_status=$?
16500 grep -v '^ *+' conftest.er1 >conftest.err
16501 rm -f conftest.er1
16502 cat conftest.err >&5
16503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16504 (exit $ac_status); } && {
16505 test -z "$ac_c_werror_flag" ||
16506 test ! -s conftest.err
16507 } && test -s conftest.$ac_objext; then
16508 ac_header_compiler=yes
16509 else
16510 echo "$as_me: failed program was:" >&5
16511 sed 's/^/| /' conftest.$ac_ext >&5
16513 ac_header_compiler=no
16516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16517 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16518 echo "${ECHO_T}$ac_header_compiler" >&6; }
16520 # Is the header present?
16521 { echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5
16522 echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6; }
16523 cat >conftest.$ac_ext <<_ACEOF
16524 /* confdefs.h. */
16525 _ACEOF
16526 cat confdefs.h >>conftest.$ac_ext
16527 cat >>conftest.$ac_ext <<_ACEOF
16528 /* end confdefs.h. */
16529 #include <kernel/OS.h>
16530 _ACEOF
16531 if { (ac_try="$ac_cpp conftest.$ac_ext"
16532 case "(($ac_try" in
16533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16534 *) ac_try_echo=$ac_try;;
16535 esac
16536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16537 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16538 ac_status=$?
16539 grep -v '^ *+' conftest.er1 >conftest.err
16540 rm -f conftest.er1
16541 cat conftest.err >&5
16542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16543 (exit $ac_status); } >/dev/null && {
16544 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16545 test ! -s conftest.err
16546 }; then
16547 ac_header_preproc=yes
16548 else
16549 echo "$as_me: failed program was:" >&5
16550 sed 's/^/| /' conftest.$ac_ext >&5
16552 ac_header_preproc=no
16555 rm -f conftest.err conftest.$ac_ext
16556 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16557 echo "${ECHO_T}$ac_header_preproc" >&6; }
16559 # So? What about this header?
16560 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16561 yes:no: )
16562 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5
16563 echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16564 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5
16565 echo "$as_me: WARNING: kernel/OS.h: proceeding with the compiler's result" >&2;}
16566 ac_header_preproc=yes
16568 no:yes:* )
16569 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5
16570 echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;}
16571 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5
16572 echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;}
16573 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5
16574 echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;}
16575 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5
16576 echo "$as_me: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&2;}
16577 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5
16578 echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;}
16579 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5
16580 echo "$as_me: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&2;}
16581 ( cat <<\_ASBOX
16582 ## -------------------------------------- ##
16583 ## Report this to http://bugs.python.org/ ##
16584 ## -------------------------------------- ##
16585 _ASBOX
16586 ) | sed "s/^/$as_me: WARNING: /" >&2
16588 esac
16589 { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
16590 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; }
16591 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
16592 echo $ECHO_N "(cached) $ECHO_C" >&6
16593 else
16594 ac_cv_header_kernel_OS_h=$ac_header_preproc
16596 { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
16597 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; }
16600 if test $ac_cv_header_kernel_OS_h = yes; then
16601 cat >>confdefs.h <<\_ACEOF
16602 #define WITH_THREAD 1
16603 _ACEOF
16606 cat >>confdefs.h <<\_ACEOF
16607 #define BEOS_THREADS 1
16608 _ACEOF
16610 THREADOBJ="Python/thread.o"
16611 else
16613 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
16614 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
16615 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
16616 echo $ECHO_N "(cached) $ECHO_C" >&6
16617 else
16618 ac_check_lib_save_LIBS=$LIBS
16619 LIBS="-lpthreads $LIBS"
16620 cat >conftest.$ac_ext <<_ACEOF
16621 /* confdefs.h. */
16622 _ACEOF
16623 cat confdefs.h >>conftest.$ac_ext
16624 cat >>conftest.$ac_ext <<_ACEOF
16625 /* end confdefs.h. */
16627 /* Override any GCC internal prototype to avoid an error.
16628 Use char because int might match the return type of a GCC
16629 builtin and then its argument prototype would still apply. */
16630 #ifdef __cplusplus
16631 extern "C"
16632 #endif
16633 char pthread_create ();
16635 main ()
16637 return pthread_create ();
16639 return 0;
16641 _ACEOF
16642 rm -f conftest.$ac_objext conftest$ac_exeext
16643 if { (ac_try="$ac_link"
16644 case "(($ac_try" in
16645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16646 *) ac_try_echo=$ac_try;;
16647 esac
16648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16649 (eval "$ac_link") 2>conftest.er1
16650 ac_status=$?
16651 grep -v '^ *+' conftest.er1 >conftest.err
16652 rm -f conftest.er1
16653 cat conftest.err >&5
16654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16655 (exit $ac_status); } && {
16656 test -z "$ac_c_werror_flag" ||
16657 test ! -s conftest.err
16658 } && test -s conftest$ac_exeext &&
16659 $as_test_x conftest$ac_exeext; then
16660 ac_cv_lib_pthreads_pthread_create=yes
16661 else
16662 echo "$as_me: failed program was:" >&5
16663 sed 's/^/| /' conftest.$ac_ext >&5
16665 ac_cv_lib_pthreads_pthread_create=no
16668 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16669 conftest$ac_exeext conftest.$ac_ext
16670 LIBS=$ac_check_lib_save_LIBS
16672 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
16673 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
16674 if test $ac_cv_lib_pthreads_pthread_create = yes; then
16675 cat >>confdefs.h <<\_ACEOF
16676 #define WITH_THREAD 1
16677 _ACEOF
16679 posix_threads=yes
16680 LIBS="$LIBS -lpthreads"
16681 THREADOBJ="Python/thread.o"
16682 else
16684 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
16685 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
16686 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
16687 echo $ECHO_N "(cached) $ECHO_C" >&6
16688 else
16689 ac_check_lib_save_LIBS=$LIBS
16690 LIBS="-lc_r $LIBS"
16691 cat >conftest.$ac_ext <<_ACEOF
16692 /* confdefs.h. */
16693 _ACEOF
16694 cat confdefs.h >>conftest.$ac_ext
16695 cat >>conftest.$ac_ext <<_ACEOF
16696 /* end confdefs.h. */
16698 /* Override any GCC internal prototype to avoid an error.
16699 Use char because int might match the return type of a GCC
16700 builtin and then its argument prototype would still apply. */
16701 #ifdef __cplusplus
16702 extern "C"
16703 #endif
16704 char pthread_create ();
16706 main ()
16708 return pthread_create ();
16710 return 0;
16712 _ACEOF
16713 rm -f conftest.$ac_objext conftest$ac_exeext
16714 if { (ac_try="$ac_link"
16715 case "(($ac_try" in
16716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16717 *) ac_try_echo=$ac_try;;
16718 esac
16719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16720 (eval "$ac_link") 2>conftest.er1
16721 ac_status=$?
16722 grep -v '^ *+' conftest.er1 >conftest.err
16723 rm -f conftest.er1
16724 cat conftest.err >&5
16725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16726 (exit $ac_status); } && {
16727 test -z "$ac_c_werror_flag" ||
16728 test ! -s conftest.err
16729 } && test -s conftest$ac_exeext &&
16730 $as_test_x conftest$ac_exeext; then
16731 ac_cv_lib_c_r_pthread_create=yes
16732 else
16733 echo "$as_me: failed program was:" >&5
16734 sed 's/^/| /' conftest.$ac_ext >&5
16736 ac_cv_lib_c_r_pthread_create=no
16739 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16740 conftest$ac_exeext conftest.$ac_ext
16741 LIBS=$ac_check_lib_save_LIBS
16743 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
16744 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
16745 if test $ac_cv_lib_c_r_pthread_create = yes; then
16746 cat >>confdefs.h <<\_ACEOF
16747 #define WITH_THREAD 1
16748 _ACEOF
16750 posix_threads=yes
16751 LIBS="$LIBS -lc_r"
16752 THREADOBJ="Python/thread.o"
16753 else
16755 { echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
16756 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6; }
16757 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
16758 echo $ECHO_N "(cached) $ECHO_C" >&6
16759 else
16760 ac_check_lib_save_LIBS=$LIBS
16761 LIBS="-lpthread $LIBS"
16762 cat >conftest.$ac_ext <<_ACEOF
16763 /* confdefs.h. */
16764 _ACEOF
16765 cat confdefs.h >>conftest.$ac_ext
16766 cat >>conftest.$ac_ext <<_ACEOF
16767 /* end confdefs.h. */
16769 /* Override any GCC internal prototype to avoid an error.
16770 Use char because int might match the return type of a GCC
16771 builtin and then its argument prototype would still apply. */
16772 #ifdef __cplusplus
16773 extern "C"
16774 #endif
16775 char __pthread_create_system ();
16777 main ()
16779 return __pthread_create_system ();
16781 return 0;
16783 _ACEOF
16784 rm -f conftest.$ac_objext conftest$ac_exeext
16785 if { (ac_try="$ac_link"
16786 case "(($ac_try" in
16787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16788 *) ac_try_echo=$ac_try;;
16789 esac
16790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16791 (eval "$ac_link") 2>conftest.er1
16792 ac_status=$?
16793 grep -v '^ *+' conftest.er1 >conftest.err
16794 rm -f conftest.er1
16795 cat conftest.err >&5
16796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16797 (exit $ac_status); } && {
16798 test -z "$ac_c_werror_flag" ||
16799 test ! -s conftest.err
16800 } && test -s conftest$ac_exeext &&
16801 $as_test_x conftest$ac_exeext; then
16802 ac_cv_lib_pthread___pthread_create_system=yes
16803 else
16804 echo "$as_me: failed program was:" >&5
16805 sed 's/^/| /' conftest.$ac_ext >&5
16807 ac_cv_lib_pthread___pthread_create_system=no
16810 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16811 conftest$ac_exeext conftest.$ac_ext
16812 LIBS=$ac_check_lib_save_LIBS
16814 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
16815 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6; }
16816 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
16817 cat >>confdefs.h <<\_ACEOF
16818 #define WITH_THREAD 1
16819 _ACEOF
16821 posix_threads=yes
16822 LIBS="$LIBS -lpthread"
16823 THREADOBJ="Python/thread.o"
16824 else
16826 { echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
16827 echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6; }
16828 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
16829 echo $ECHO_N "(cached) $ECHO_C" >&6
16830 else
16831 ac_check_lib_save_LIBS=$LIBS
16832 LIBS="-lcma $LIBS"
16833 cat >conftest.$ac_ext <<_ACEOF
16834 /* confdefs.h. */
16835 _ACEOF
16836 cat confdefs.h >>conftest.$ac_ext
16837 cat >>conftest.$ac_ext <<_ACEOF
16838 /* end confdefs.h. */
16840 /* Override any GCC internal prototype to avoid an error.
16841 Use char because int might match the return type of a GCC
16842 builtin and then its argument prototype would still apply. */
16843 #ifdef __cplusplus
16844 extern "C"
16845 #endif
16846 char pthread_create ();
16848 main ()
16850 return pthread_create ();
16852 return 0;
16854 _ACEOF
16855 rm -f conftest.$ac_objext conftest$ac_exeext
16856 if { (ac_try="$ac_link"
16857 case "(($ac_try" in
16858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16859 *) ac_try_echo=$ac_try;;
16860 esac
16861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16862 (eval "$ac_link") 2>conftest.er1
16863 ac_status=$?
16864 grep -v '^ *+' conftest.er1 >conftest.err
16865 rm -f conftest.er1
16866 cat conftest.err >&5
16867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16868 (exit $ac_status); } && {
16869 test -z "$ac_c_werror_flag" ||
16870 test ! -s conftest.err
16871 } && test -s conftest$ac_exeext &&
16872 $as_test_x conftest$ac_exeext; then
16873 ac_cv_lib_cma_pthread_create=yes
16874 else
16875 echo "$as_me: failed program was:" >&5
16876 sed 's/^/| /' conftest.$ac_ext >&5
16878 ac_cv_lib_cma_pthread_create=no
16881 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16882 conftest$ac_exeext conftest.$ac_ext
16883 LIBS=$ac_check_lib_save_LIBS
16885 { echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
16886 echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6; }
16887 if test $ac_cv_lib_cma_pthread_create = yes; then
16888 cat >>confdefs.h <<\_ACEOF
16889 #define WITH_THREAD 1
16890 _ACEOF
16892 posix_threads=yes
16893 LIBS="$LIBS -lcma"
16894 THREADOBJ="Python/thread.o"
16895 else
16897 USE_THREAD_MODULE="#"
16917 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16918 conftest$ac_exeext conftest.$ac_ext
16928 { echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
16929 echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6; }
16930 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
16931 echo $ECHO_N "(cached) $ECHO_C" >&6
16932 else
16933 ac_check_lib_save_LIBS=$LIBS
16934 LIBS="-lmpc $LIBS"
16935 cat >conftest.$ac_ext <<_ACEOF
16936 /* confdefs.h. */
16937 _ACEOF
16938 cat confdefs.h >>conftest.$ac_ext
16939 cat >>conftest.$ac_ext <<_ACEOF
16940 /* end confdefs.h. */
16942 /* Override any GCC internal prototype to avoid an error.
16943 Use char because int might match the return type of a GCC
16944 builtin and then its argument prototype would still apply. */
16945 #ifdef __cplusplus
16946 extern "C"
16947 #endif
16948 char usconfig ();
16950 main ()
16952 return usconfig ();
16954 return 0;
16956 _ACEOF
16957 rm -f conftest.$ac_objext conftest$ac_exeext
16958 if { (ac_try="$ac_link"
16959 case "(($ac_try" in
16960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16961 *) ac_try_echo=$ac_try;;
16962 esac
16963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16964 (eval "$ac_link") 2>conftest.er1
16965 ac_status=$?
16966 grep -v '^ *+' conftest.er1 >conftest.err
16967 rm -f conftest.er1
16968 cat conftest.err >&5
16969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16970 (exit $ac_status); } && {
16971 test -z "$ac_c_werror_flag" ||
16972 test ! -s conftest.err
16973 } && test -s conftest$ac_exeext &&
16974 $as_test_x conftest$ac_exeext; then
16975 ac_cv_lib_mpc_usconfig=yes
16976 else
16977 echo "$as_me: failed program was:" >&5
16978 sed 's/^/| /' conftest.$ac_ext >&5
16980 ac_cv_lib_mpc_usconfig=no
16983 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16984 conftest$ac_exeext conftest.$ac_ext
16985 LIBS=$ac_check_lib_save_LIBS
16987 { echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
16988 echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6; }
16989 if test $ac_cv_lib_mpc_usconfig = yes; then
16990 cat >>confdefs.h <<\_ACEOF
16991 #define WITH_THREAD 1
16992 _ACEOF
16994 LIBS="$LIBS -lmpc"
16995 THREADOBJ="Python/thread.o"
16996 USE_THREAD_MODULE=""
17000 if test "$posix_threads" != "yes"; then
17001 { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
17002 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6; }
17003 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
17004 echo $ECHO_N "(cached) $ECHO_C" >&6
17005 else
17006 ac_check_lib_save_LIBS=$LIBS
17007 LIBS="-lthread $LIBS"
17008 cat >conftest.$ac_ext <<_ACEOF
17009 /* confdefs.h. */
17010 _ACEOF
17011 cat confdefs.h >>conftest.$ac_ext
17012 cat >>conftest.$ac_ext <<_ACEOF
17013 /* end confdefs.h. */
17015 /* Override any GCC internal prototype to avoid an error.
17016 Use char because int might match the return type of a GCC
17017 builtin and then its argument prototype would still apply. */
17018 #ifdef __cplusplus
17019 extern "C"
17020 #endif
17021 char thr_create ();
17023 main ()
17025 return thr_create ();
17027 return 0;
17029 _ACEOF
17030 rm -f conftest.$ac_objext conftest$ac_exeext
17031 if { (ac_try="$ac_link"
17032 case "(($ac_try" in
17033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17034 *) ac_try_echo=$ac_try;;
17035 esac
17036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17037 (eval "$ac_link") 2>conftest.er1
17038 ac_status=$?
17039 grep -v '^ *+' conftest.er1 >conftest.err
17040 rm -f conftest.er1
17041 cat conftest.err >&5
17042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17043 (exit $ac_status); } && {
17044 test -z "$ac_c_werror_flag" ||
17045 test ! -s conftest.err
17046 } && test -s conftest$ac_exeext &&
17047 $as_test_x conftest$ac_exeext; then
17048 ac_cv_lib_thread_thr_create=yes
17049 else
17050 echo "$as_me: failed program was:" >&5
17051 sed 's/^/| /' conftest.$ac_ext >&5
17053 ac_cv_lib_thread_thr_create=no
17056 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17057 conftest$ac_exeext conftest.$ac_ext
17058 LIBS=$ac_check_lib_save_LIBS
17060 { echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
17061 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; }
17062 if test $ac_cv_lib_thread_thr_create = yes; then
17063 cat >>confdefs.h <<\_ACEOF
17064 #define WITH_THREAD 1
17065 _ACEOF
17067 LIBS="$LIBS -lthread"
17068 THREADOBJ="Python/thread.o"
17069 USE_THREAD_MODULE=""
17074 if test "$USE_THREAD_MODULE" != "#"
17075 then
17076 # If the above checks didn't disable threads, (at least) OSF1
17077 # needs this '-threads' argument during linking.
17078 case $ac_sys_system in
17079 OSF1) LDLAST=-threads;;
17080 esac
17084 if test "$posix_threads" = "yes"; then
17085 if test "$unistd_defines_pthreads" = "no"; then
17087 cat >>confdefs.h <<\_ACEOF
17088 #define _POSIX_THREADS 1
17089 _ACEOF
17093 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
17094 case $ac_sys_system/$ac_sys_release in
17095 SunOS/5.6)
17096 cat >>confdefs.h <<\_ACEOF
17097 #define HAVE_PTHREAD_DESTRUCTOR 1
17098 _ACEOF
17101 SunOS/5.8)
17102 cat >>confdefs.h <<\_ACEOF
17103 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
17104 _ACEOF
17107 AIX/5)
17108 cat >>confdefs.h <<\_ACEOF
17109 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
17110 _ACEOF
17113 esac
17115 { echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
17116 echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6; }
17117 if test "${ac_cv_pthread_system_supported+set}" = set; then
17118 echo $ECHO_N "(cached) $ECHO_C" >&6
17119 else
17120 if test "$cross_compiling" = yes; then
17121 ac_cv_pthread_system_supported=no
17122 else
17123 cat >conftest.$ac_ext <<_ACEOF
17124 /* confdefs.h. */
17125 _ACEOF
17126 cat confdefs.h >>conftest.$ac_ext
17127 cat >>conftest.$ac_ext <<_ACEOF
17128 /* end confdefs.h. */
17129 #include <pthread.h>
17130 void *foo(void *parm) {
17131 return NULL;
17133 main() {
17134 pthread_attr_t attr;
17135 pthread_t id;
17136 if (pthread_attr_init(&attr)) exit(-1);
17137 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
17138 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
17139 exit(0);
17141 _ACEOF
17142 rm -f conftest$ac_exeext
17143 if { (ac_try="$ac_link"
17144 case "(($ac_try" in
17145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17146 *) ac_try_echo=$ac_try;;
17147 esac
17148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17149 (eval "$ac_link") 2>&5
17150 ac_status=$?
17151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17152 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17153 { (case "(($ac_try" in
17154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17155 *) ac_try_echo=$ac_try;;
17156 esac
17157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17158 (eval "$ac_try") 2>&5
17159 ac_status=$?
17160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17161 (exit $ac_status); }; }; then
17162 ac_cv_pthread_system_supported=yes
17163 else
17164 echo "$as_me: program exited with status $ac_status" >&5
17165 echo "$as_me: failed program was:" >&5
17166 sed 's/^/| /' conftest.$ac_ext >&5
17168 ( exit $ac_status )
17169 ac_cv_pthread_system_supported=no
17171 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17178 { echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
17179 echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6; }
17180 if test "$ac_cv_pthread_system_supported" = "yes"; then
17182 cat >>confdefs.h <<\_ACEOF
17183 #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
17184 _ACEOF
17188 for ac_func in pthread_sigmask
17190 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17191 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17192 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17193 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17194 echo $ECHO_N "(cached) $ECHO_C" >&6
17195 else
17196 cat >conftest.$ac_ext <<_ACEOF
17197 /* confdefs.h. */
17198 _ACEOF
17199 cat confdefs.h >>conftest.$ac_ext
17200 cat >>conftest.$ac_ext <<_ACEOF
17201 /* end confdefs.h. */
17202 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17203 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17204 #define $ac_func innocuous_$ac_func
17206 /* System header to define __stub macros and hopefully few prototypes,
17207 which can conflict with char $ac_func (); below.
17208 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17209 <limits.h> exists even on freestanding compilers. */
17211 #ifdef __STDC__
17212 # include <limits.h>
17213 #else
17214 # include <assert.h>
17215 #endif
17217 #undef $ac_func
17219 /* Override any GCC internal prototype to avoid an error.
17220 Use char because int might match the return type of a GCC
17221 builtin and then its argument prototype would still apply. */
17222 #ifdef __cplusplus
17223 extern "C"
17224 #endif
17225 char $ac_func ();
17226 /* The GNU C library defines this for functions which it implements
17227 to always fail with ENOSYS. Some functions are actually named
17228 something starting with __ and the normal name is an alias. */
17229 #if defined __stub_$ac_func || defined __stub___$ac_func
17230 choke me
17231 #endif
17234 main ()
17236 return $ac_func ();
17238 return 0;
17240 _ACEOF
17241 rm -f conftest.$ac_objext conftest$ac_exeext
17242 if { (ac_try="$ac_link"
17243 case "(($ac_try" in
17244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17245 *) ac_try_echo=$ac_try;;
17246 esac
17247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17248 (eval "$ac_link") 2>conftest.er1
17249 ac_status=$?
17250 grep -v '^ *+' conftest.er1 >conftest.err
17251 rm -f conftest.er1
17252 cat conftest.err >&5
17253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17254 (exit $ac_status); } && {
17255 test -z "$ac_c_werror_flag" ||
17256 test ! -s conftest.err
17257 } && test -s conftest$ac_exeext &&
17258 $as_test_x conftest$ac_exeext; then
17259 eval "$as_ac_var=yes"
17260 else
17261 echo "$as_me: failed program was:" >&5
17262 sed 's/^/| /' conftest.$ac_ext >&5
17264 eval "$as_ac_var=no"
17267 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17268 conftest$ac_exeext conftest.$ac_ext
17270 ac_res=`eval echo '${'$as_ac_var'}'`
17271 { echo "$as_me:$LINENO: result: $ac_res" >&5
17272 echo "${ECHO_T}$ac_res" >&6; }
17273 if test `eval echo '${'$as_ac_var'}'` = yes; then
17274 cat >>confdefs.h <<_ACEOF
17275 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17276 _ACEOF
17277 case $ac_sys_system in
17278 CYGWIN*)
17280 cat >>confdefs.h <<\_ACEOF
17281 #define HAVE_BROKEN_PTHREAD_SIGMASK 1
17282 _ACEOF
17285 esac
17287 done
17292 # Check for enable-ipv6
17295 { echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
17296 echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6; }
17297 # Check whether --enable-ipv6 was given.
17298 if test "${enable_ipv6+set}" = set; then
17299 enableval=$enable_ipv6; case "$enableval" in
17301 { echo "$as_me:$LINENO: result: no" >&5
17302 echo "${ECHO_T}no" >&6; }
17303 ipv6=no
17305 *) { echo "$as_me:$LINENO: result: yes" >&5
17306 echo "${ECHO_T}yes" >&6; }
17307 cat >>confdefs.h <<\_ACEOF
17308 #define ENABLE_IPV6 1
17309 _ACEOF
17311 ipv6=yes
17313 esac
17314 else
17316 if test "$cross_compiling" = yes; then
17317 { echo "$as_me:$LINENO: result: no" >&5
17318 echo "${ECHO_T}no" >&6; }
17319 ipv6=no
17321 else
17322 cat >conftest.$ac_ext <<_ACEOF
17323 /* confdefs.h. */
17324 _ACEOF
17325 cat confdefs.h >>conftest.$ac_ext
17326 cat >>conftest.$ac_ext <<_ACEOF
17327 /* end confdefs.h. */
17328 /* AF_INET6 available check */
17329 #include <sys/types.h>
17330 #include <sys/socket.h>
17331 main()
17333 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
17334 exit(1);
17335 else
17336 exit(0);
17339 _ACEOF
17340 rm -f conftest$ac_exeext
17341 if { (ac_try="$ac_link"
17342 case "(($ac_try" in
17343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17344 *) ac_try_echo=$ac_try;;
17345 esac
17346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17347 (eval "$ac_link") 2>&5
17348 ac_status=$?
17349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17350 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17351 { (case "(($ac_try" in
17352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17353 *) ac_try_echo=$ac_try;;
17354 esac
17355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17356 (eval "$ac_try") 2>&5
17357 ac_status=$?
17358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17359 (exit $ac_status); }; }; then
17360 { echo "$as_me:$LINENO: result: yes" >&5
17361 echo "${ECHO_T}yes" >&6; }
17362 ipv6=yes
17363 else
17364 echo "$as_me: program exited with status $ac_status" >&5
17365 echo "$as_me: failed program was:" >&5
17366 sed 's/^/| /' conftest.$ac_ext >&5
17368 ( exit $ac_status )
17369 { echo "$as_me:$LINENO: result: no" >&5
17370 echo "${ECHO_T}no" >&6; }
17371 ipv6=no
17373 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17378 if test "$ipv6" = "yes"; then
17379 { echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
17380 echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6; }
17381 cat >conftest.$ac_ext <<_ACEOF
17382 /* confdefs.h. */
17383 _ACEOF
17384 cat confdefs.h >>conftest.$ac_ext
17385 cat >>conftest.$ac_ext <<_ACEOF
17386 /* end confdefs.h. */
17387 #include <sys/types.h>
17388 #include <netinet/in.h>
17390 main ()
17392 struct sockaddr_in6 x;
17393 x.sin6_scope_id;
17395 return 0;
17397 _ACEOF
17398 rm -f conftest.$ac_objext
17399 if { (ac_try="$ac_compile"
17400 case "(($ac_try" in
17401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17402 *) ac_try_echo=$ac_try;;
17403 esac
17404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17405 (eval "$ac_compile") 2>conftest.er1
17406 ac_status=$?
17407 grep -v '^ *+' conftest.er1 >conftest.err
17408 rm -f conftest.er1
17409 cat conftest.err >&5
17410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17411 (exit $ac_status); } && {
17412 test -z "$ac_c_werror_flag" ||
17413 test ! -s conftest.err
17414 } && test -s conftest.$ac_objext; then
17415 { echo "$as_me:$LINENO: result: yes" >&5
17416 echo "${ECHO_T}yes" >&6; }
17417 ipv6=yes
17418 else
17419 echo "$as_me: failed program was:" >&5
17420 sed 's/^/| /' conftest.$ac_ext >&5
17422 { echo "$as_me:$LINENO: result: no" >&5
17423 echo "${ECHO_T}no" >&6; }
17424 ipv6=no
17427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17430 if test "$ipv6" = "yes"; then
17431 cat >>confdefs.h <<\_ACEOF
17432 #define ENABLE_IPV6 1
17433 _ACEOF
17440 ipv6type=unknown
17441 ipv6lib=none
17442 ipv6trylibc=no
17444 if test "$ipv6" = "yes"; then
17445 { echo "$as_me:$LINENO: checking ipv6 stack type" >&5
17446 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; }
17447 for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta;
17449 case $i in
17450 inria)
17451 cat >conftest.$ac_ext <<_ACEOF
17452 /* confdefs.h. */
17453 _ACEOF
17454 cat confdefs.h >>conftest.$ac_ext
17455 cat >>conftest.$ac_ext <<_ACEOF
17456 /* end confdefs.h. */
17458 #include <netinet/in.h>
17459 #ifdef IPV6_INRIA_VERSION
17461 #endif
17462 _ACEOF
17463 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17464 $EGREP "yes" >/dev/null 2>&1; then
17465 ipv6type=$i
17467 rm -f conftest*
17470 kame)
17471 cat >conftest.$ac_ext <<_ACEOF
17472 /* confdefs.h. */
17473 _ACEOF
17474 cat confdefs.h >>conftest.$ac_ext
17475 cat >>conftest.$ac_ext <<_ACEOF
17476 /* end confdefs.h. */
17478 #include <netinet/in.h>
17479 #ifdef __KAME__
17481 #endif
17482 _ACEOF
17483 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17484 $EGREP "yes" >/dev/null 2>&1; then
17485 ipv6type=$i;
17486 ipv6lib=inet6
17487 ipv6libdir=/usr/local/v6/lib
17488 ipv6trylibc=yes
17490 rm -f conftest*
17493 linux-glibc)
17494 cat >conftest.$ac_ext <<_ACEOF
17495 /* confdefs.h. */
17496 _ACEOF
17497 cat confdefs.h >>conftest.$ac_ext
17498 cat >>conftest.$ac_ext <<_ACEOF
17499 /* end confdefs.h. */
17501 #include <features.h>
17502 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
17504 #endif
17505 _ACEOF
17506 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17507 $EGREP "yes" >/dev/null 2>&1; then
17508 ipv6type=$i;
17509 ipv6trylibc=yes
17511 rm -f conftest*
17514 linux-inet6)
17515 if test -d /usr/inet6; then
17516 ipv6type=$i
17517 ipv6lib=inet6
17518 ipv6libdir=/usr/inet6/lib
17519 BASECFLAGS="-I/usr/inet6/include $BASECFLAGS"
17522 solaris)
17523 if test -f /etc/netconfig; then
17524 if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then
17525 ipv6type=$i
17526 ipv6trylibc=yes
17530 toshiba)
17531 cat >conftest.$ac_ext <<_ACEOF
17532 /* confdefs.h. */
17533 _ACEOF
17534 cat confdefs.h >>conftest.$ac_ext
17535 cat >>conftest.$ac_ext <<_ACEOF
17536 /* end confdefs.h. */
17538 #include <sys/param.h>
17539 #ifdef _TOSHIBA_INET6
17541 #endif
17542 _ACEOF
17543 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17544 $EGREP "yes" >/dev/null 2>&1; then
17545 ipv6type=$i;
17546 ipv6lib=inet6;
17547 ipv6libdir=/usr/local/v6/lib
17549 rm -f conftest*
17552 v6d)
17553 cat >conftest.$ac_ext <<_ACEOF
17554 /* confdefs.h. */
17555 _ACEOF
17556 cat confdefs.h >>conftest.$ac_ext
17557 cat >>conftest.$ac_ext <<_ACEOF
17558 /* end confdefs.h. */
17560 #include </usr/local/v6/include/sys/v6config.h>
17561 #ifdef __V6D__
17563 #endif
17564 _ACEOF
17565 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17566 $EGREP "yes" >/dev/null 2>&1; then
17567 ipv6type=$i;
17568 ipv6lib=v6;
17569 ipv6libdir=/usr/local/v6/lib;
17570 BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS"
17572 rm -f conftest*
17575 zeta)
17576 cat >conftest.$ac_ext <<_ACEOF
17577 /* confdefs.h. */
17578 _ACEOF
17579 cat confdefs.h >>conftest.$ac_ext
17580 cat >>conftest.$ac_ext <<_ACEOF
17581 /* end confdefs.h. */
17583 #include <sys/param.h>
17584 #ifdef _ZETA_MINAMI_INET6
17586 #endif
17587 _ACEOF
17588 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17589 $EGREP "yes" >/dev/null 2>&1; then
17590 ipv6type=$i;
17591 ipv6lib=inet6;
17592 ipv6libdir=/usr/local/v6/lib
17594 rm -f conftest*
17597 esac
17598 if test "$ipv6type" != "unknown"; then
17599 break
17601 done
17602 { echo "$as_me:$LINENO: result: $ipv6type" >&5
17603 echo "${ECHO_T}$ipv6type" >&6; }
17606 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
17607 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
17608 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
17609 echo "using lib$ipv6lib"
17610 else
17611 if test $ipv6trylibc = "yes"; then
17612 echo "using libc"
17613 else
17614 echo 'Fatal: no $ipv6lib library found. cannot continue.'
17615 echo "You need to fetch lib$ipv6lib.a from appropriate"
17616 echo 'ipv6 kit and compile beforehand.'
17617 exit 1
17622 { echo "$as_me:$LINENO: checking for OSX 10.5 SDK or later" >&5
17623 echo $ECHO_N "checking for OSX 10.5 SDK or later... $ECHO_C" >&6; }
17624 cat >conftest.$ac_ext <<_ACEOF
17625 /* confdefs.h. */
17626 _ACEOF
17627 cat confdefs.h >>conftest.$ac_ext
17628 cat >>conftest.$ac_ext <<_ACEOF
17629 /* end confdefs.h. */
17630 #include <Carbon/Carbon.h>
17632 main ()
17634 FSIORefNum fRef = 0
17636 return 0;
17638 _ACEOF
17639 rm -f conftest.$ac_objext
17640 if { (ac_try="$ac_compile"
17641 case "(($ac_try" in
17642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17643 *) ac_try_echo=$ac_try;;
17644 esac
17645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17646 (eval "$ac_compile") 2>conftest.er1
17647 ac_status=$?
17648 grep -v '^ *+' conftest.er1 >conftest.err
17649 rm -f conftest.er1
17650 cat conftest.err >&5
17651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17652 (exit $ac_status); } && {
17653 test -z "$ac_c_werror_flag" ||
17654 test ! -s conftest.err
17655 } && test -s conftest.$ac_objext; then
17657 cat >>confdefs.h <<\_ACEOF
17658 #define HAVE_OSX105_SDK 1
17659 _ACEOF
17661 { echo "$as_me:$LINENO: result: yes" >&5
17662 echo "${ECHO_T}yes" >&6; }
17663 else
17664 echo "$as_me: failed program was:" >&5
17665 sed 's/^/| /' conftest.$ac_ext >&5
17667 { echo "$as_me:$LINENO: result: no" >&5
17668 echo "${ECHO_T}no" >&6; }
17672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17674 # Check for --with-doc-strings
17675 { echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
17676 echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6; }
17678 # Check whether --with-doc-strings was given.
17679 if test "${with_doc_strings+set}" = set; then
17680 withval=$with_doc_strings;
17684 if test -z "$with_doc_strings"
17685 then with_doc_strings="yes"
17687 if test "$with_doc_strings" != "no"
17688 then
17690 cat >>confdefs.h <<\_ACEOF
17691 #define WITH_DOC_STRINGS 1
17692 _ACEOF
17695 { echo "$as_me:$LINENO: result: $with_doc_strings" >&5
17696 echo "${ECHO_T}$with_doc_strings" >&6; }
17698 # Check for Python-specific malloc support
17699 { echo "$as_me:$LINENO: checking for --with-tsc" >&5
17700 echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6; }
17702 # Check whether --with-tsc was given.
17703 if test "${with_tsc+set}" = set; then
17704 withval=$with_tsc;
17705 if test "$withval" != no
17706 then
17708 cat >>confdefs.h <<\_ACEOF
17709 #define WITH_TSC 1
17710 _ACEOF
17712 { echo "$as_me:$LINENO: result: yes" >&5
17713 echo "${ECHO_T}yes" >&6; }
17714 else { echo "$as_me:$LINENO: result: no" >&5
17715 echo "${ECHO_T}no" >&6; }
17717 else
17718 { echo "$as_me:$LINENO: result: no" >&5
17719 echo "${ECHO_T}no" >&6; }
17723 # Check for Python-specific malloc support
17724 { echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
17725 echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6; }
17727 # Check whether --with-pymalloc was given.
17728 if test "${with_pymalloc+set}" = set; then
17729 withval=$with_pymalloc;
17733 if test -z "$with_pymalloc"
17734 then with_pymalloc="yes"
17736 if test "$with_pymalloc" != "no"
17737 then
17739 cat >>confdefs.h <<\_ACEOF
17740 #define WITH_PYMALLOC 1
17741 _ACEOF
17744 { echo "$as_me:$LINENO: result: $with_pymalloc" >&5
17745 echo "${ECHO_T}$with_pymalloc" >&6; }
17747 # Check for Valgrind support
17748 { echo "$as_me:$LINENO: checking for --with-valgrind" >&5
17749 echo $ECHO_N "checking for --with-valgrind... $ECHO_C" >&6; }
17751 # Check whether --with-valgrind was given.
17752 if test "${with_valgrind+set}" = set; then
17753 withval=$with_valgrind;
17754 else
17755 with_valgrind=no
17758 { echo "$as_me:$LINENO: result: $with_valgrind" >&5
17759 echo "${ECHO_T}$with_valgrind" >&6; }
17760 if test "$with_valgrind" != no; then
17761 if test "${ac_cv_header_valgrind_valgrind_h+set}" = set; then
17762 { echo "$as_me:$LINENO: checking for valgrind/valgrind.h" >&5
17763 echo $ECHO_N "checking for valgrind/valgrind.h... $ECHO_C" >&6; }
17764 if test "${ac_cv_header_valgrind_valgrind_h+set}" = set; then
17765 echo $ECHO_N "(cached) $ECHO_C" >&6
17767 { echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_valgrind_h" >&5
17768 echo "${ECHO_T}$ac_cv_header_valgrind_valgrind_h" >&6; }
17769 else
17770 # Is the header compilable?
17771 { echo "$as_me:$LINENO: checking valgrind/valgrind.h usability" >&5
17772 echo $ECHO_N "checking valgrind/valgrind.h usability... $ECHO_C" >&6; }
17773 cat >conftest.$ac_ext <<_ACEOF
17774 /* confdefs.h. */
17775 _ACEOF
17776 cat confdefs.h >>conftest.$ac_ext
17777 cat >>conftest.$ac_ext <<_ACEOF
17778 /* end confdefs.h. */
17779 $ac_includes_default
17780 #include <valgrind/valgrind.h>
17781 _ACEOF
17782 rm -f conftest.$ac_objext
17783 if { (ac_try="$ac_compile"
17784 case "(($ac_try" in
17785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17786 *) ac_try_echo=$ac_try;;
17787 esac
17788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17789 (eval "$ac_compile") 2>conftest.er1
17790 ac_status=$?
17791 grep -v '^ *+' conftest.er1 >conftest.err
17792 rm -f conftest.er1
17793 cat conftest.err >&5
17794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17795 (exit $ac_status); } && {
17796 test -z "$ac_c_werror_flag" ||
17797 test ! -s conftest.err
17798 } && test -s conftest.$ac_objext; then
17799 ac_header_compiler=yes
17800 else
17801 echo "$as_me: failed program was:" >&5
17802 sed 's/^/| /' conftest.$ac_ext >&5
17804 ac_header_compiler=no
17807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17808 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17809 echo "${ECHO_T}$ac_header_compiler" >&6; }
17811 # Is the header present?
17812 { echo "$as_me:$LINENO: checking valgrind/valgrind.h presence" >&5
17813 echo $ECHO_N "checking valgrind/valgrind.h presence... $ECHO_C" >&6; }
17814 cat >conftest.$ac_ext <<_ACEOF
17815 /* confdefs.h. */
17816 _ACEOF
17817 cat confdefs.h >>conftest.$ac_ext
17818 cat >>conftest.$ac_ext <<_ACEOF
17819 /* end confdefs.h. */
17820 #include <valgrind/valgrind.h>
17821 _ACEOF
17822 if { (ac_try="$ac_cpp conftest.$ac_ext"
17823 case "(($ac_try" in
17824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17825 *) ac_try_echo=$ac_try;;
17826 esac
17827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17828 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17829 ac_status=$?
17830 grep -v '^ *+' conftest.er1 >conftest.err
17831 rm -f conftest.er1
17832 cat conftest.err >&5
17833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17834 (exit $ac_status); } >/dev/null && {
17835 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17836 test ! -s conftest.err
17837 }; then
17838 ac_header_preproc=yes
17839 else
17840 echo "$as_me: failed program was:" >&5
17841 sed 's/^/| /' conftest.$ac_ext >&5
17843 ac_header_preproc=no
17846 rm -f conftest.err conftest.$ac_ext
17847 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17848 echo "${ECHO_T}$ac_header_preproc" >&6; }
17850 # So? What about this header?
17851 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17852 yes:no: )
17853 { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
17854 echo "$as_me: WARNING: valgrind/valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17855 { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: proceeding with the compiler's result" >&5
17856 echo "$as_me: WARNING: valgrind/valgrind.h: proceeding with the compiler's result" >&2;}
17857 ac_header_preproc=yes
17859 no:yes:* )
17860 { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: present but cannot be compiled" >&5
17861 echo "$as_me: WARNING: valgrind/valgrind.h: present but cannot be compiled" >&2;}
17862 { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: check for missing prerequisite headers?" >&5
17863 echo "$as_me: WARNING: valgrind/valgrind.h: check for missing prerequisite headers?" >&2;}
17864 { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: see the Autoconf documentation" >&5
17865 echo "$as_me: WARNING: valgrind/valgrind.h: see the Autoconf documentation" >&2;}
17866 { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
17867 echo "$as_me: WARNING: valgrind/valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
17868 { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: proceeding with the preprocessor's result" >&5
17869 echo "$as_me: WARNING: valgrind/valgrind.h: proceeding with the preprocessor's result" >&2;}
17870 { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: in the future, the compiler will take precedence" >&5
17871 echo "$as_me: WARNING: valgrind/valgrind.h: in the future, the compiler will take precedence" >&2;}
17872 ( cat <<\_ASBOX
17873 ## -------------------------------------- ##
17874 ## Report this to http://bugs.python.org/ ##
17875 ## -------------------------------------- ##
17876 _ASBOX
17877 ) | sed "s/^/$as_me: WARNING: /" >&2
17879 esac
17880 { echo "$as_me:$LINENO: checking for valgrind/valgrind.h" >&5
17881 echo $ECHO_N "checking for valgrind/valgrind.h... $ECHO_C" >&6; }
17882 if test "${ac_cv_header_valgrind_valgrind_h+set}" = set; then
17883 echo $ECHO_N "(cached) $ECHO_C" >&6
17884 else
17885 ac_cv_header_valgrind_valgrind_h=$ac_header_preproc
17887 { echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_valgrind_h" >&5
17888 echo "${ECHO_T}$ac_cv_header_valgrind_valgrind_h" >&6; }
17891 if test $ac_cv_header_valgrind_valgrind_h = yes; then
17893 cat >>confdefs.h <<\_ACEOF
17894 #define WITH_VALGRIND 1
17895 _ACEOF
17897 else
17898 { { echo "$as_me:$LINENO: error: Valgrind support requested but headers not available" >&5
17899 echo "$as_me: error: Valgrind support requested but headers not available" >&2;}
17900 { (exit 1); exit 1; }; }
17907 # Check for --with-wctype-functions
17908 { echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
17909 echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6; }
17911 # Check whether --with-wctype-functions was given.
17912 if test "${with_wctype_functions+set}" = set; then
17913 withval=$with_wctype_functions;
17914 if test "$withval" != no
17915 then
17917 cat >>confdefs.h <<\_ACEOF
17918 #define WANT_WCTYPE_FUNCTIONS 1
17919 _ACEOF
17921 { echo "$as_me:$LINENO: result: yes" >&5
17922 echo "${ECHO_T}yes" >&6; }
17923 else { echo "$as_me:$LINENO: result: no" >&5
17924 echo "${ECHO_T}no" >&6; }
17926 else
17927 { echo "$as_me:$LINENO: result: no" >&5
17928 echo "${ECHO_T}no" >&6; }
17932 # -I${DLINCLDIR} is added to the compile rule for importdl.o
17934 DLINCLDIR=.
17936 # the dlopen() function means we might want to use dynload_shlib.o. some
17937 # platforms, such as AIX, have dlopen(), but don't want to use it.
17939 for ac_func in dlopen
17941 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17942 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17943 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17944 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17945 echo $ECHO_N "(cached) $ECHO_C" >&6
17946 else
17947 cat >conftest.$ac_ext <<_ACEOF
17948 /* confdefs.h. */
17949 _ACEOF
17950 cat confdefs.h >>conftest.$ac_ext
17951 cat >>conftest.$ac_ext <<_ACEOF
17952 /* end confdefs.h. */
17953 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17954 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17955 #define $ac_func innocuous_$ac_func
17957 /* System header to define __stub macros and hopefully few prototypes,
17958 which can conflict with char $ac_func (); below.
17959 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17960 <limits.h> exists even on freestanding compilers. */
17962 #ifdef __STDC__
17963 # include <limits.h>
17964 #else
17965 # include <assert.h>
17966 #endif
17968 #undef $ac_func
17970 /* Override any GCC internal prototype to avoid an error.
17971 Use char because int might match the return type of a GCC
17972 builtin and then its argument prototype would still apply. */
17973 #ifdef __cplusplus
17974 extern "C"
17975 #endif
17976 char $ac_func ();
17977 /* The GNU C library defines this for functions which it implements
17978 to always fail with ENOSYS. Some functions are actually named
17979 something starting with __ and the normal name is an alias. */
17980 #if defined __stub_$ac_func || defined __stub___$ac_func
17981 choke me
17982 #endif
17985 main ()
17987 return $ac_func ();
17989 return 0;
17991 _ACEOF
17992 rm -f conftest.$ac_objext conftest$ac_exeext
17993 if { (ac_try="$ac_link"
17994 case "(($ac_try" in
17995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17996 *) ac_try_echo=$ac_try;;
17997 esac
17998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17999 (eval "$ac_link") 2>conftest.er1
18000 ac_status=$?
18001 grep -v '^ *+' conftest.er1 >conftest.err
18002 rm -f conftest.er1
18003 cat conftest.err >&5
18004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18005 (exit $ac_status); } && {
18006 test -z "$ac_c_werror_flag" ||
18007 test ! -s conftest.err
18008 } && test -s conftest$ac_exeext &&
18009 $as_test_x conftest$ac_exeext; then
18010 eval "$as_ac_var=yes"
18011 else
18012 echo "$as_me: failed program was:" >&5
18013 sed 's/^/| /' conftest.$ac_ext >&5
18015 eval "$as_ac_var=no"
18018 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18019 conftest$ac_exeext conftest.$ac_ext
18021 ac_res=`eval echo '${'$as_ac_var'}'`
18022 { echo "$as_me:$LINENO: result: $ac_res" >&5
18023 echo "${ECHO_T}$ac_res" >&6; }
18024 if test `eval echo '${'$as_ac_var'}'` = yes; then
18025 cat >>confdefs.h <<_ACEOF
18026 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18027 _ACEOF
18030 done
18033 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
18034 # loading of modules.
18036 { echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
18037 echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6; }
18038 if test -z "$DYNLOADFILE"
18039 then
18040 case $ac_sys_system/$ac_sys_release in
18041 AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
18042 if test "$ac_cv_func_dlopen" = yes
18043 then DYNLOADFILE="dynload_shlib.o"
18044 else DYNLOADFILE="dynload_aix.o"
18047 BeOS*) DYNLOADFILE="dynload_beos.o";;
18048 hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
18049 # Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
18050 Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";;
18051 atheos*) DYNLOADFILE="dynload_atheos.o";;
18053 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
18054 # out any dynamic loading
18055 if test "$ac_cv_func_dlopen" = yes
18056 then DYNLOADFILE="dynload_shlib.o"
18057 else DYNLOADFILE="dynload_stub.o"
18060 esac
18062 { echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
18063 echo "${ECHO_T}$DYNLOADFILE" >&6; }
18064 if test "$DYNLOADFILE" != "dynload_stub.o"
18065 then
18067 cat >>confdefs.h <<\_ACEOF
18068 #define HAVE_DYNAMIC_LOADING 1
18069 _ACEOF
18073 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
18076 { echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
18077 echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6; }
18078 if test -z "$MACHDEP_OBJS"
18079 then
18080 MACHDEP_OBJS=$extra_machdep_objs
18081 else
18082 MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs"
18084 { echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
18085 echo "${ECHO_T}MACHDEP_OBJS" >&6; }
18087 # checks for library functions
18187 for ac_func in alarm setitimer getitimer bind_textdomain_codeset chown \
18188 clock confstr ctermid execv fchmod fchown fork fpathconf ftime ftruncate \
18189 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
18190 getpriority getresuid getresgid getpwent getspnam getspent getsid getwd \
18191 initgroups kill killpg lchmod lchown lstat mkfifo mknod mktime \
18192 mremap nice pathconf pause plock poll pthread_init \
18193 putenv readlink realpath \
18194 select sem_open sem_timedwait sem_getvalue sem_unlink setegid seteuid \
18195 setgid \
18196 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
18197 setlocale setregid setreuid setresuid setresgid \
18198 setsid setpgid setpgrp setuid setvbuf snprintf \
18199 sigaction siginterrupt sigrelse strftime \
18200 sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \
18201 truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty
18203 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18204 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18205 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18206 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18207 echo $ECHO_N "(cached) $ECHO_C" >&6
18208 else
18209 cat >conftest.$ac_ext <<_ACEOF
18210 /* confdefs.h. */
18211 _ACEOF
18212 cat confdefs.h >>conftest.$ac_ext
18213 cat >>conftest.$ac_ext <<_ACEOF
18214 /* end confdefs.h. */
18215 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18216 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18217 #define $ac_func innocuous_$ac_func
18219 /* System header to define __stub macros and hopefully few prototypes,
18220 which can conflict with char $ac_func (); below.
18221 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18222 <limits.h> exists even on freestanding compilers. */
18224 #ifdef __STDC__
18225 # include <limits.h>
18226 #else
18227 # include <assert.h>
18228 #endif
18230 #undef $ac_func
18232 /* Override any GCC internal prototype to avoid an error.
18233 Use char because int might match the return type of a GCC
18234 builtin and then its argument prototype would still apply. */
18235 #ifdef __cplusplus
18236 extern "C"
18237 #endif
18238 char $ac_func ();
18239 /* The GNU C library defines this for functions which it implements
18240 to always fail with ENOSYS. Some functions are actually named
18241 something starting with __ and the normal name is an alias. */
18242 #if defined __stub_$ac_func || defined __stub___$ac_func
18243 choke me
18244 #endif
18247 main ()
18249 return $ac_func ();
18251 return 0;
18253 _ACEOF
18254 rm -f conftest.$ac_objext conftest$ac_exeext
18255 if { (ac_try="$ac_link"
18256 case "(($ac_try" in
18257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18258 *) ac_try_echo=$ac_try;;
18259 esac
18260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18261 (eval "$ac_link") 2>conftest.er1
18262 ac_status=$?
18263 grep -v '^ *+' conftest.er1 >conftest.err
18264 rm -f conftest.er1
18265 cat conftest.err >&5
18266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18267 (exit $ac_status); } && {
18268 test -z "$ac_c_werror_flag" ||
18269 test ! -s conftest.err
18270 } && test -s conftest$ac_exeext &&
18271 $as_test_x conftest$ac_exeext; then
18272 eval "$as_ac_var=yes"
18273 else
18274 echo "$as_me: failed program was:" >&5
18275 sed 's/^/| /' conftest.$ac_ext >&5
18277 eval "$as_ac_var=no"
18280 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18281 conftest$ac_exeext conftest.$ac_ext
18283 ac_res=`eval echo '${'$as_ac_var'}'`
18284 { echo "$as_me:$LINENO: result: $ac_res" >&5
18285 echo "${ECHO_T}$ac_res" >&6; }
18286 if test `eval echo '${'$as_ac_var'}'` = yes; then
18287 cat >>confdefs.h <<_ACEOF
18288 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18289 _ACEOF
18292 done
18295 # For some functions, having a definition is not sufficient, since
18296 # we want to take their address.
18297 { echo "$as_me:$LINENO: checking for chroot" >&5
18298 echo $ECHO_N "checking for chroot... $ECHO_C" >&6; }
18299 cat >conftest.$ac_ext <<_ACEOF
18300 /* confdefs.h. */
18301 _ACEOF
18302 cat confdefs.h >>conftest.$ac_ext
18303 cat >>conftest.$ac_ext <<_ACEOF
18304 /* end confdefs.h. */
18305 #include <unistd.h>
18307 main ()
18309 void *x=chroot
18311 return 0;
18313 _ACEOF
18314 rm -f conftest.$ac_objext
18315 if { (ac_try="$ac_compile"
18316 case "(($ac_try" in
18317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18318 *) ac_try_echo=$ac_try;;
18319 esac
18320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18321 (eval "$ac_compile") 2>conftest.er1
18322 ac_status=$?
18323 grep -v '^ *+' conftest.er1 >conftest.err
18324 rm -f conftest.er1
18325 cat conftest.err >&5
18326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18327 (exit $ac_status); } && {
18328 test -z "$ac_c_werror_flag" ||
18329 test ! -s conftest.err
18330 } && test -s conftest.$ac_objext; then
18332 cat >>confdefs.h <<\_ACEOF
18333 #define HAVE_CHROOT 1
18334 _ACEOF
18336 { echo "$as_me:$LINENO: result: yes" >&5
18337 echo "${ECHO_T}yes" >&6; }
18338 else
18339 echo "$as_me: failed program was:" >&5
18340 sed 's/^/| /' conftest.$ac_ext >&5
18342 { echo "$as_me:$LINENO: result: no" >&5
18343 echo "${ECHO_T}no" >&6; }
18347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18348 { echo "$as_me:$LINENO: checking for link" >&5
18349 echo $ECHO_N "checking for link... $ECHO_C" >&6; }
18350 cat >conftest.$ac_ext <<_ACEOF
18351 /* confdefs.h. */
18352 _ACEOF
18353 cat confdefs.h >>conftest.$ac_ext
18354 cat >>conftest.$ac_ext <<_ACEOF
18355 /* end confdefs.h. */
18356 #include <unistd.h>
18358 main ()
18360 void *x=link
18362 return 0;
18364 _ACEOF
18365 rm -f conftest.$ac_objext
18366 if { (ac_try="$ac_compile"
18367 case "(($ac_try" in
18368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18369 *) ac_try_echo=$ac_try;;
18370 esac
18371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18372 (eval "$ac_compile") 2>conftest.er1
18373 ac_status=$?
18374 grep -v '^ *+' conftest.er1 >conftest.err
18375 rm -f conftest.er1
18376 cat conftest.err >&5
18377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18378 (exit $ac_status); } && {
18379 test -z "$ac_c_werror_flag" ||
18380 test ! -s conftest.err
18381 } && test -s conftest.$ac_objext; then
18383 cat >>confdefs.h <<\_ACEOF
18384 #define HAVE_LINK 1
18385 _ACEOF
18387 { echo "$as_me:$LINENO: result: yes" >&5
18388 echo "${ECHO_T}yes" >&6; }
18389 else
18390 echo "$as_me: failed program was:" >&5
18391 sed 's/^/| /' conftest.$ac_ext >&5
18393 { echo "$as_me:$LINENO: result: no" >&5
18394 echo "${ECHO_T}no" >&6; }
18398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18399 { echo "$as_me:$LINENO: checking for symlink" >&5
18400 echo $ECHO_N "checking for symlink... $ECHO_C" >&6; }
18401 cat >conftest.$ac_ext <<_ACEOF
18402 /* confdefs.h. */
18403 _ACEOF
18404 cat confdefs.h >>conftest.$ac_ext
18405 cat >>conftest.$ac_ext <<_ACEOF
18406 /* end confdefs.h. */
18407 #include <unistd.h>
18409 main ()
18411 void *x=symlink
18413 return 0;
18415 _ACEOF
18416 rm -f conftest.$ac_objext
18417 if { (ac_try="$ac_compile"
18418 case "(($ac_try" in
18419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18420 *) ac_try_echo=$ac_try;;
18421 esac
18422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18423 (eval "$ac_compile") 2>conftest.er1
18424 ac_status=$?
18425 grep -v '^ *+' conftest.er1 >conftest.err
18426 rm -f conftest.er1
18427 cat conftest.err >&5
18428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18429 (exit $ac_status); } && {
18430 test -z "$ac_c_werror_flag" ||
18431 test ! -s conftest.err
18432 } && test -s conftest.$ac_objext; then
18434 cat >>confdefs.h <<\_ACEOF
18435 #define HAVE_SYMLINK 1
18436 _ACEOF
18438 { echo "$as_me:$LINENO: result: yes" >&5
18439 echo "${ECHO_T}yes" >&6; }
18440 else
18441 echo "$as_me: failed program was:" >&5
18442 sed 's/^/| /' conftest.$ac_ext >&5
18444 { echo "$as_me:$LINENO: result: no" >&5
18445 echo "${ECHO_T}no" >&6; }
18449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18450 { echo "$as_me:$LINENO: checking for fchdir" >&5
18451 echo $ECHO_N "checking for fchdir... $ECHO_C" >&6; }
18452 cat >conftest.$ac_ext <<_ACEOF
18453 /* confdefs.h. */
18454 _ACEOF
18455 cat confdefs.h >>conftest.$ac_ext
18456 cat >>conftest.$ac_ext <<_ACEOF
18457 /* end confdefs.h. */
18458 #include <unistd.h>
18460 main ()
18462 void *x=fchdir
18464 return 0;
18466 _ACEOF
18467 rm -f conftest.$ac_objext
18468 if { (ac_try="$ac_compile"
18469 case "(($ac_try" in
18470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18471 *) ac_try_echo=$ac_try;;
18472 esac
18473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18474 (eval "$ac_compile") 2>conftest.er1
18475 ac_status=$?
18476 grep -v '^ *+' conftest.er1 >conftest.err
18477 rm -f conftest.er1
18478 cat conftest.err >&5
18479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18480 (exit $ac_status); } && {
18481 test -z "$ac_c_werror_flag" ||
18482 test ! -s conftest.err
18483 } && test -s conftest.$ac_objext; then
18485 cat >>confdefs.h <<\_ACEOF
18486 #define HAVE_FCHDIR 1
18487 _ACEOF
18489 { echo "$as_me:$LINENO: result: yes" >&5
18490 echo "${ECHO_T}yes" >&6; }
18491 else
18492 echo "$as_me: failed program was:" >&5
18493 sed 's/^/| /' conftest.$ac_ext >&5
18495 { echo "$as_me:$LINENO: result: no" >&5
18496 echo "${ECHO_T}no" >&6; }
18500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18501 { echo "$as_me:$LINENO: checking for fsync" >&5
18502 echo $ECHO_N "checking for fsync... $ECHO_C" >&6; }
18503 cat >conftest.$ac_ext <<_ACEOF
18504 /* confdefs.h. */
18505 _ACEOF
18506 cat confdefs.h >>conftest.$ac_ext
18507 cat >>conftest.$ac_ext <<_ACEOF
18508 /* end confdefs.h. */
18509 #include <unistd.h>
18511 main ()
18513 void *x=fsync
18515 return 0;
18517 _ACEOF
18518 rm -f conftest.$ac_objext
18519 if { (ac_try="$ac_compile"
18520 case "(($ac_try" in
18521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18522 *) ac_try_echo=$ac_try;;
18523 esac
18524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18525 (eval "$ac_compile") 2>conftest.er1
18526 ac_status=$?
18527 grep -v '^ *+' conftest.er1 >conftest.err
18528 rm -f conftest.er1
18529 cat conftest.err >&5
18530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18531 (exit $ac_status); } && {
18532 test -z "$ac_c_werror_flag" ||
18533 test ! -s conftest.err
18534 } && test -s conftest.$ac_objext; then
18536 cat >>confdefs.h <<\_ACEOF
18537 #define HAVE_FSYNC 1
18538 _ACEOF
18540 { echo "$as_me:$LINENO: result: yes" >&5
18541 echo "${ECHO_T}yes" >&6; }
18542 else
18543 echo "$as_me: failed program was:" >&5
18544 sed 's/^/| /' conftest.$ac_ext >&5
18546 { echo "$as_me:$LINENO: result: no" >&5
18547 echo "${ECHO_T}no" >&6; }
18551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18552 { echo "$as_me:$LINENO: checking for fdatasync" >&5
18553 echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6; }
18554 cat >conftest.$ac_ext <<_ACEOF
18555 /* confdefs.h. */
18556 _ACEOF
18557 cat confdefs.h >>conftest.$ac_ext
18558 cat >>conftest.$ac_ext <<_ACEOF
18559 /* end confdefs.h. */
18560 #include <unistd.h>
18562 main ()
18564 void *x=fdatasync
18566 return 0;
18568 _ACEOF
18569 rm -f conftest.$ac_objext
18570 if { (ac_try="$ac_compile"
18571 case "(($ac_try" in
18572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18573 *) ac_try_echo=$ac_try;;
18574 esac
18575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18576 (eval "$ac_compile") 2>conftest.er1
18577 ac_status=$?
18578 grep -v '^ *+' conftest.er1 >conftest.err
18579 rm -f conftest.er1
18580 cat conftest.err >&5
18581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18582 (exit $ac_status); } && {
18583 test -z "$ac_c_werror_flag" ||
18584 test ! -s conftest.err
18585 } && test -s conftest.$ac_objext; then
18587 cat >>confdefs.h <<\_ACEOF
18588 #define HAVE_FDATASYNC 1
18589 _ACEOF
18591 { echo "$as_me:$LINENO: result: yes" >&5
18592 echo "${ECHO_T}yes" >&6; }
18593 else
18594 echo "$as_me: failed program was:" >&5
18595 sed 's/^/| /' conftest.$ac_ext >&5
18597 { echo "$as_me:$LINENO: result: no" >&5
18598 echo "${ECHO_T}no" >&6; }
18602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18603 { echo "$as_me:$LINENO: checking for epoll" >&5
18604 echo $ECHO_N "checking for epoll... $ECHO_C" >&6; }
18605 cat >conftest.$ac_ext <<_ACEOF
18606 /* confdefs.h. */
18607 _ACEOF
18608 cat confdefs.h >>conftest.$ac_ext
18609 cat >>conftest.$ac_ext <<_ACEOF
18610 /* end confdefs.h. */
18611 #include <sys/epoll.h>
18613 main ()
18615 void *x=epoll_create
18617 return 0;
18619 _ACEOF
18620 rm -f conftest.$ac_objext
18621 if { (ac_try="$ac_compile"
18622 case "(($ac_try" in
18623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18624 *) ac_try_echo=$ac_try;;
18625 esac
18626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18627 (eval "$ac_compile") 2>conftest.er1
18628 ac_status=$?
18629 grep -v '^ *+' conftest.er1 >conftest.err
18630 rm -f conftest.er1
18631 cat conftest.err >&5
18632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18633 (exit $ac_status); } && {
18634 test -z "$ac_c_werror_flag" ||
18635 test ! -s conftest.err
18636 } && test -s conftest.$ac_objext; then
18638 cat >>confdefs.h <<\_ACEOF
18639 #define HAVE_EPOLL 1
18640 _ACEOF
18642 { echo "$as_me:$LINENO: result: yes" >&5
18643 echo "${ECHO_T}yes" >&6; }
18644 else
18645 echo "$as_me: failed program was:" >&5
18646 sed 's/^/| /' conftest.$ac_ext >&5
18648 { echo "$as_me:$LINENO: result: no" >&5
18649 echo "${ECHO_T}no" >&6; }
18653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18654 { echo "$as_me:$LINENO: checking for kqueue" >&5
18655 echo $ECHO_N "checking for kqueue... $ECHO_C" >&6; }
18656 cat >conftest.$ac_ext <<_ACEOF
18657 /* confdefs.h. */
18658 _ACEOF
18659 cat confdefs.h >>conftest.$ac_ext
18660 cat >>conftest.$ac_ext <<_ACEOF
18661 /* end confdefs.h. */
18663 #include <sys/types.h>
18664 #include <sys/event.h>
18667 main ()
18669 int x=kqueue()
18671 return 0;
18673 _ACEOF
18674 rm -f conftest.$ac_objext
18675 if { (ac_try="$ac_compile"
18676 case "(($ac_try" in
18677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18678 *) ac_try_echo=$ac_try;;
18679 esac
18680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18681 (eval "$ac_compile") 2>conftest.er1
18682 ac_status=$?
18683 grep -v '^ *+' conftest.er1 >conftest.err
18684 rm -f conftest.er1
18685 cat conftest.err >&5
18686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18687 (exit $ac_status); } && {
18688 test -z "$ac_c_werror_flag" ||
18689 test ! -s conftest.err
18690 } && test -s conftest.$ac_objext; then
18692 cat >>confdefs.h <<\_ACEOF
18693 #define HAVE_KQUEUE 1
18694 _ACEOF
18696 { echo "$as_me:$LINENO: result: yes" >&5
18697 echo "${ECHO_T}yes" >&6; }
18698 else
18699 echo "$as_me: failed program was:" >&5
18700 sed 's/^/| /' conftest.$ac_ext >&5
18702 { echo "$as_me:$LINENO: result: no" >&5
18703 echo "${ECHO_T}no" >&6; }
18707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18708 # On some systems (eg. FreeBSD 5), we would find a definition of the
18709 # functions ctermid_r, setgroups in the library, but no prototype
18710 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
18711 # address to avoid compiler warnings and potential miscompilations
18712 # because of the missing prototypes.
18714 { echo "$as_me:$LINENO: checking for ctermid_r" >&5
18715 echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6; }
18716 cat >conftest.$ac_ext <<_ACEOF
18717 /* confdefs.h. */
18718 _ACEOF
18719 cat confdefs.h >>conftest.$ac_ext
18720 cat >>conftest.$ac_ext <<_ACEOF
18721 /* end confdefs.h. */
18723 #include "confdefs.h"
18724 #include <stdio.h>
18727 main ()
18729 void* p = ctermid_r
18731 return 0;
18733 _ACEOF
18734 rm -f conftest.$ac_objext
18735 if { (ac_try="$ac_compile"
18736 case "(($ac_try" in
18737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18738 *) ac_try_echo=$ac_try;;
18739 esac
18740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18741 (eval "$ac_compile") 2>conftest.er1
18742 ac_status=$?
18743 grep -v '^ *+' conftest.er1 >conftest.err
18744 rm -f conftest.er1
18745 cat conftest.err >&5
18746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18747 (exit $ac_status); } && {
18748 test -z "$ac_c_werror_flag" ||
18749 test ! -s conftest.err
18750 } && test -s conftest.$ac_objext; then
18752 cat >>confdefs.h <<\_ACEOF
18753 #define HAVE_CTERMID_R 1
18754 _ACEOF
18756 { echo "$as_me:$LINENO: result: yes" >&5
18757 echo "${ECHO_T}yes" >&6; }
18758 else
18759 echo "$as_me: failed program was:" >&5
18760 sed 's/^/| /' conftest.$ac_ext >&5
18762 { echo "$as_me:$LINENO: result: no" >&5
18763 echo "${ECHO_T}no" >&6; }
18767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18769 { echo "$as_me:$LINENO: checking for flock" >&5
18770 echo $ECHO_N "checking for flock... $ECHO_C" >&6; }
18771 cat >conftest.$ac_ext <<_ACEOF
18772 /* confdefs.h. */
18773 _ACEOF
18774 cat confdefs.h >>conftest.$ac_ext
18775 cat >>conftest.$ac_ext <<_ACEOF
18776 /* end confdefs.h. */
18778 #include "confdefs.h"
18779 #include <sys/file.h>
18782 main ()
18784 void* p = flock
18786 return 0;
18788 _ACEOF
18789 rm -f conftest.$ac_objext
18790 if { (ac_try="$ac_compile"
18791 case "(($ac_try" in
18792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18793 *) ac_try_echo=$ac_try;;
18794 esac
18795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18796 (eval "$ac_compile") 2>conftest.er1
18797 ac_status=$?
18798 grep -v '^ *+' conftest.er1 >conftest.err
18799 rm -f conftest.er1
18800 cat conftest.err >&5
18801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18802 (exit $ac_status); } && {
18803 test -z "$ac_c_werror_flag" ||
18804 test ! -s conftest.err
18805 } && test -s conftest.$ac_objext; then
18807 cat >>confdefs.h <<\_ACEOF
18808 #define HAVE_FLOCK 1
18809 _ACEOF
18811 { echo "$as_me:$LINENO: result: yes" >&5
18812 echo "${ECHO_T}yes" >&6; }
18813 else
18814 echo "$as_me: failed program was:" >&5
18815 sed 's/^/| /' conftest.$ac_ext >&5
18817 { echo "$as_me:$LINENO: result: no" >&5
18818 echo "${ECHO_T}no" >&6; }
18822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18824 { echo "$as_me:$LINENO: checking for getpagesize" >&5
18825 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; }
18826 cat >conftest.$ac_ext <<_ACEOF
18827 /* confdefs.h. */
18828 _ACEOF
18829 cat confdefs.h >>conftest.$ac_ext
18830 cat >>conftest.$ac_ext <<_ACEOF
18831 /* end confdefs.h. */
18833 #include "confdefs.h"
18834 #include <unistd.h>
18837 main ()
18839 void* p = getpagesize
18841 return 0;
18843 _ACEOF
18844 rm -f conftest.$ac_objext
18845 if { (ac_try="$ac_compile"
18846 case "(($ac_try" in
18847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18848 *) ac_try_echo=$ac_try;;
18849 esac
18850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18851 (eval "$ac_compile") 2>conftest.er1
18852 ac_status=$?
18853 grep -v '^ *+' conftest.er1 >conftest.err
18854 rm -f conftest.er1
18855 cat conftest.err >&5
18856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18857 (exit $ac_status); } && {
18858 test -z "$ac_c_werror_flag" ||
18859 test ! -s conftest.err
18860 } && test -s conftest.$ac_objext; then
18862 cat >>confdefs.h <<\_ACEOF
18863 #define HAVE_GETPAGESIZE 1
18864 _ACEOF
18866 { echo "$as_me:$LINENO: result: yes" >&5
18867 echo "${ECHO_T}yes" >&6; }
18868 else
18869 echo "$as_me: failed program was:" >&5
18870 sed 's/^/| /' conftest.$ac_ext >&5
18872 { echo "$as_me:$LINENO: result: no" >&5
18873 echo "${ECHO_T}no" >&6; }
18877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18879 for ac_prog in true
18881 # Extract the first word of "$ac_prog", so it can be a program name with args.
18882 set dummy $ac_prog; ac_word=$2
18883 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18885 if test "${ac_cv_prog_TRUE+set}" = set; then
18886 echo $ECHO_N "(cached) $ECHO_C" >&6
18887 else
18888 if test -n "$TRUE"; then
18889 ac_cv_prog_TRUE="$TRUE" # Let the user override the test.
18890 else
18891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18892 for as_dir in $PATH
18894 IFS=$as_save_IFS
18895 test -z "$as_dir" && as_dir=.
18896 for ac_exec_ext in '' $ac_executable_extensions; do
18897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18898 ac_cv_prog_TRUE="$ac_prog"
18899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18900 break 2
18902 done
18903 done
18904 IFS=$as_save_IFS
18908 TRUE=$ac_cv_prog_TRUE
18909 if test -n "$TRUE"; then
18910 { echo "$as_me:$LINENO: result: $TRUE" >&5
18911 echo "${ECHO_T}$TRUE" >&6; }
18912 else
18913 { echo "$as_me:$LINENO: result: no" >&5
18914 echo "${ECHO_T}no" >&6; }
18918 test -n "$TRUE" && break
18919 done
18920 test -n "$TRUE" || TRUE="/bin/true"
18923 { echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
18924 echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6; }
18925 if test "${ac_cv_lib_c_inet_aton+set}" = set; then
18926 echo $ECHO_N "(cached) $ECHO_C" >&6
18927 else
18928 ac_check_lib_save_LIBS=$LIBS
18929 LIBS="-lc $LIBS"
18930 cat >conftest.$ac_ext <<_ACEOF
18931 /* confdefs.h. */
18932 _ACEOF
18933 cat confdefs.h >>conftest.$ac_ext
18934 cat >>conftest.$ac_ext <<_ACEOF
18935 /* end confdefs.h. */
18937 /* Override any GCC internal prototype to avoid an error.
18938 Use char because int might match the return type of a GCC
18939 builtin and then its argument prototype would still apply. */
18940 #ifdef __cplusplus
18941 extern "C"
18942 #endif
18943 char inet_aton ();
18945 main ()
18947 return inet_aton ();
18949 return 0;
18951 _ACEOF
18952 rm -f conftest.$ac_objext conftest$ac_exeext
18953 if { (ac_try="$ac_link"
18954 case "(($ac_try" in
18955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18956 *) ac_try_echo=$ac_try;;
18957 esac
18958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18959 (eval "$ac_link") 2>conftest.er1
18960 ac_status=$?
18961 grep -v '^ *+' conftest.er1 >conftest.err
18962 rm -f conftest.er1
18963 cat conftest.err >&5
18964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18965 (exit $ac_status); } && {
18966 test -z "$ac_c_werror_flag" ||
18967 test ! -s conftest.err
18968 } && test -s conftest$ac_exeext &&
18969 $as_test_x conftest$ac_exeext; then
18970 ac_cv_lib_c_inet_aton=yes
18971 else
18972 echo "$as_me: failed program was:" >&5
18973 sed 's/^/| /' conftest.$ac_ext >&5
18975 ac_cv_lib_c_inet_aton=no
18978 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18979 conftest$ac_exeext conftest.$ac_ext
18980 LIBS=$ac_check_lib_save_LIBS
18982 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
18983 echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6; }
18984 if test $ac_cv_lib_c_inet_aton = yes; then
18985 $ac_cv_prog_TRUE
18986 else
18988 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
18989 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
18990 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
18991 echo $ECHO_N "(cached) $ECHO_C" >&6
18992 else
18993 ac_check_lib_save_LIBS=$LIBS
18994 LIBS="-lresolv $LIBS"
18995 cat >conftest.$ac_ext <<_ACEOF
18996 /* confdefs.h. */
18997 _ACEOF
18998 cat confdefs.h >>conftest.$ac_ext
18999 cat >>conftest.$ac_ext <<_ACEOF
19000 /* end confdefs.h. */
19002 /* Override any GCC internal prototype to avoid an error.
19003 Use char because int might match the return type of a GCC
19004 builtin and then its argument prototype would still apply. */
19005 #ifdef __cplusplus
19006 extern "C"
19007 #endif
19008 char inet_aton ();
19010 main ()
19012 return inet_aton ();
19014 return 0;
19016 _ACEOF
19017 rm -f conftest.$ac_objext conftest$ac_exeext
19018 if { (ac_try="$ac_link"
19019 case "(($ac_try" in
19020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19021 *) ac_try_echo=$ac_try;;
19022 esac
19023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19024 (eval "$ac_link") 2>conftest.er1
19025 ac_status=$?
19026 grep -v '^ *+' conftest.er1 >conftest.err
19027 rm -f conftest.er1
19028 cat conftest.err >&5
19029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19030 (exit $ac_status); } && {
19031 test -z "$ac_c_werror_flag" ||
19032 test ! -s conftest.err
19033 } && test -s conftest$ac_exeext &&
19034 $as_test_x conftest$ac_exeext; then
19035 ac_cv_lib_resolv_inet_aton=yes
19036 else
19037 echo "$as_me: failed program was:" >&5
19038 sed 's/^/| /' conftest.$ac_ext >&5
19040 ac_cv_lib_resolv_inet_aton=no
19043 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19044 conftest$ac_exeext conftest.$ac_ext
19045 LIBS=$ac_check_lib_save_LIBS
19047 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
19048 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
19049 if test $ac_cv_lib_resolv_inet_aton = yes; then
19050 cat >>confdefs.h <<_ACEOF
19051 #define HAVE_LIBRESOLV 1
19052 _ACEOF
19054 LIBS="-lresolv $LIBS"
19062 # On Tru64, chflags seems to be present, but calling it will
19063 # exit Python
19064 { echo "$as_me:$LINENO: checking for chflags" >&5
19065 echo $ECHO_N "checking for chflags... $ECHO_C" >&6; }
19066 if test "${ac_cv_have_chflags+set}" = set; then
19067 echo $ECHO_N "(cached) $ECHO_C" >&6
19068 else
19069 if test "$cross_compiling" = yes; then
19070 ac_cv_have_chflags=cross
19071 else
19072 cat >conftest.$ac_ext <<_ACEOF
19073 /* confdefs.h. */
19074 _ACEOF
19075 cat confdefs.h >>conftest.$ac_ext
19076 cat >>conftest.$ac_ext <<_ACEOF
19077 /* end confdefs.h. */
19079 #include <sys/stat.h>
19080 #include <unistd.h>
19081 int main(int argc, char*argv[])
19083 if(chflags(argv[0], 0) != 0)
19084 return 1;
19085 return 0;
19088 _ACEOF
19089 rm -f conftest$ac_exeext
19090 if { (ac_try="$ac_link"
19091 case "(($ac_try" in
19092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19093 *) ac_try_echo=$ac_try;;
19094 esac
19095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19096 (eval "$ac_link") 2>&5
19097 ac_status=$?
19098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19099 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19100 { (case "(($ac_try" in
19101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19102 *) ac_try_echo=$ac_try;;
19103 esac
19104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19105 (eval "$ac_try") 2>&5
19106 ac_status=$?
19107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19108 (exit $ac_status); }; }; then
19109 ac_cv_have_chflags=yes
19110 else
19111 echo "$as_me: program exited with status $ac_status" >&5
19112 echo "$as_me: failed program was:" >&5
19113 sed 's/^/| /' conftest.$ac_ext >&5
19115 ( exit $ac_status )
19116 ac_cv_have_chflags=no
19118 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19124 { echo "$as_me:$LINENO: result: $ac_cv_have_chflags" >&5
19125 echo "${ECHO_T}$ac_cv_have_chflags" >&6; }
19126 if test "$ac_cv_have_chflags" = cross ; then
19127 { echo "$as_me:$LINENO: checking for chflags" >&5
19128 echo $ECHO_N "checking for chflags... $ECHO_C" >&6; }
19129 if test "${ac_cv_func_chflags+set}" = set; then
19130 echo $ECHO_N "(cached) $ECHO_C" >&6
19131 else
19132 cat >conftest.$ac_ext <<_ACEOF
19133 /* confdefs.h. */
19134 _ACEOF
19135 cat confdefs.h >>conftest.$ac_ext
19136 cat >>conftest.$ac_ext <<_ACEOF
19137 /* end confdefs.h. */
19138 /* Define chflags to an innocuous variant, in case <limits.h> declares chflags.
19139 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19140 #define chflags innocuous_chflags
19142 /* System header to define __stub macros and hopefully few prototypes,
19143 which can conflict with char chflags (); below.
19144 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19145 <limits.h> exists even on freestanding compilers. */
19147 #ifdef __STDC__
19148 # include <limits.h>
19149 #else
19150 # include <assert.h>
19151 #endif
19153 #undef chflags
19155 /* Override any GCC internal prototype to avoid an error.
19156 Use char because int might match the return type of a GCC
19157 builtin and then its argument prototype would still apply. */
19158 #ifdef __cplusplus
19159 extern "C"
19160 #endif
19161 char chflags ();
19162 /* The GNU C library defines this for functions which it implements
19163 to always fail with ENOSYS. Some functions are actually named
19164 something starting with __ and the normal name is an alias. */
19165 #if defined __stub_chflags || defined __stub___chflags
19166 choke me
19167 #endif
19170 main ()
19172 return chflags ();
19174 return 0;
19176 _ACEOF
19177 rm -f conftest.$ac_objext conftest$ac_exeext
19178 if { (ac_try="$ac_link"
19179 case "(($ac_try" in
19180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19181 *) ac_try_echo=$ac_try;;
19182 esac
19183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19184 (eval "$ac_link") 2>conftest.er1
19185 ac_status=$?
19186 grep -v '^ *+' conftest.er1 >conftest.err
19187 rm -f conftest.er1
19188 cat conftest.err >&5
19189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19190 (exit $ac_status); } && {
19191 test -z "$ac_c_werror_flag" ||
19192 test ! -s conftest.err
19193 } && test -s conftest$ac_exeext &&
19194 $as_test_x conftest$ac_exeext; then
19195 ac_cv_func_chflags=yes
19196 else
19197 echo "$as_me: failed program was:" >&5
19198 sed 's/^/| /' conftest.$ac_ext >&5
19200 ac_cv_func_chflags=no
19203 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19204 conftest$ac_exeext conftest.$ac_ext
19206 { echo "$as_me:$LINENO: result: $ac_cv_func_chflags" >&5
19207 echo "${ECHO_T}$ac_cv_func_chflags" >&6; }
19208 if test $ac_cv_func_chflags = yes; then
19209 ac_cv_have_chflags="yes"
19210 else
19211 ac_cv_have_chflags="no"
19215 if test "$ac_cv_have_chflags" = yes ; then
19217 cat >>confdefs.h <<\_ACEOF
19218 #define HAVE_CHFLAGS 1
19219 _ACEOF
19223 { echo "$as_me:$LINENO: checking for lchflags" >&5
19224 echo $ECHO_N "checking for lchflags... $ECHO_C" >&6; }
19225 if test "${ac_cv_have_lchflags+set}" = set; then
19226 echo $ECHO_N "(cached) $ECHO_C" >&6
19227 else
19228 if test "$cross_compiling" = yes; then
19229 ac_cv_have_lchflags=cross
19230 else
19231 cat >conftest.$ac_ext <<_ACEOF
19232 /* confdefs.h. */
19233 _ACEOF
19234 cat confdefs.h >>conftest.$ac_ext
19235 cat >>conftest.$ac_ext <<_ACEOF
19236 /* end confdefs.h. */
19238 #include <sys/stat.h>
19239 #include <unistd.h>
19240 int main(int argc, char*argv[])
19242 if(lchflags(argv[0], 0) != 0)
19243 return 1;
19244 return 0;
19247 _ACEOF
19248 rm -f conftest$ac_exeext
19249 if { (ac_try="$ac_link"
19250 case "(($ac_try" in
19251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19252 *) ac_try_echo=$ac_try;;
19253 esac
19254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19255 (eval "$ac_link") 2>&5
19256 ac_status=$?
19257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19258 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19259 { (case "(($ac_try" in
19260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19261 *) ac_try_echo=$ac_try;;
19262 esac
19263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19264 (eval "$ac_try") 2>&5
19265 ac_status=$?
19266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19267 (exit $ac_status); }; }; then
19268 ac_cv_have_lchflags=yes
19269 else
19270 echo "$as_me: program exited with status $ac_status" >&5
19271 echo "$as_me: failed program was:" >&5
19272 sed 's/^/| /' conftest.$ac_ext >&5
19274 ( exit $ac_status )
19275 ac_cv_have_lchflags=no
19277 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19283 { echo "$as_me:$LINENO: result: $ac_cv_have_lchflags" >&5
19284 echo "${ECHO_T}$ac_cv_have_lchflags" >&6; }
19285 if test "$ac_cv_have_lchflags" = cross ; then
19286 { echo "$as_me:$LINENO: checking for lchflags" >&5
19287 echo $ECHO_N "checking for lchflags... $ECHO_C" >&6; }
19288 if test "${ac_cv_func_lchflags+set}" = set; then
19289 echo $ECHO_N "(cached) $ECHO_C" >&6
19290 else
19291 cat >conftest.$ac_ext <<_ACEOF
19292 /* confdefs.h. */
19293 _ACEOF
19294 cat confdefs.h >>conftest.$ac_ext
19295 cat >>conftest.$ac_ext <<_ACEOF
19296 /* end confdefs.h. */
19297 /* Define lchflags to an innocuous variant, in case <limits.h> declares lchflags.
19298 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19299 #define lchflags innocuous_lchflags
19301 /* System header to define __stub macros and hopefully few prototypes,
19302 which can conflict with char lchflags (); below.
19303 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19304 <limits.h> exists even on freestanding compilers. */
19306 #ifdef __STDC__
19307 # include <limits.h>
19308 #else
19309 # include <assert.h>
19310 #endif
19312 #undef lchflags
19314 /* Override any GCC internal prototype to avoid an error.
19315 Use char because int might match the return type of a GCC
19316 builtin and then its argument prototype would still apply. */
19317 #ifdef __cplusplus
19318 extern "C"
19319 #endif
19320 char lchflags ();
19321 /* The GNU C library defines this for functions which it implements
19322 to always fail with ENOSYS. Some functions are actually named
19323 something starting with __ and the normal name is an alias. */
19324 #if defined __stub_lchflags || defined __stub___lchflags
19325 choke me
19326 #endif
19329 main ()
19331 return lchflags ();
19333 return 0;
19335 _ACEOF
19336 rm -f conftest.$ac_objext conftest$ac_exeext
19337 if { (ac_try="$ac_link"
19338 case "(($ac_try" in
19339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19340 *) ac_try_echo=$ac_try;;
19341 esac
19342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19343 (eval "$ac_link") 2>conftest.er1
19344 ac_status=$?
19345 grep -v '^ *+' conftest.er1 >conftest.err
19346 rm -f conftest.er1
19347 cat conftest.err >&5
19348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19349 (exit $ac_status); } && {
19350 test -z "$ac_c_werror_flag" ||
19351 test ! -s conftest.err
19352 } && test -s conftest$ac_exeext &&
19353 $as_test_x conftest$ac_exeext; then
19354 ac_cv_func_lchflags=yes
19355 else
19356 echo "$as_me: failed program was:" >&5
19357 sed 's/^/| /' conftest.$ac_ext >&5
19359 ac_cv_func_lchflags=no
19362 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19363 conftest$ac_exeext conftest.$ac_ext
19365 { echo "$as_me:$LINENO: result: $ac_cv_func_lchflags" >&5
19366 echo "${ECHO_T}$ac_cv_func_lchflags" >&6; }
19367 if test $ac_cv_func_lchflags = yes; then
19368 ac_cv_have_lchflags="yes"
19369 else
19370 ac_cv_have_lchflags="no"
19374 if test "$ac_cv_have_lchflags" = yes ; then
19376 cat >>confdefs.h <<\_ACEOF
19377 #define HAVE_LCHFLAGS 1
19378 _ACEOF
19382 case $ac_sys_system/$ac_sys_release in
19383 Darwin/*)
19384 _CUR_CFLAGS="${CFLAGS}"
19385 _CUR_LDFLAGS="${LDFLAGS}"
19386 CFLAGS="${CFLAGS} -Wl,-search_paths_first"
19387 LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib"
19389 esac
19391 { echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5
19392 echo $ECHO_N "checking for inflateCopy in -lz... $ECHO_C" >&6; }
19393 if test "${ac_cv_lib_z_inflateCopy+set}" = set; then
19394 echo $ECHO_N "(cached) $ECHO_C" >&6
19395 else
19396 ac_check_lib_save_LIBS=$LIBS
19397 LIBS="-lz $LIBS"
19398 cat >conftest.$ac_ext <<_ACEOF
19399 /* confdefs.h. */
19400 _ACEOF
19401 cat confdefs.h >>conftest.$ac_ext
19402 cat >>conftest.$ac_ext <<_ACEOF
19403 /* end confdefs.h. */
19405 /* Override any GCC internal prototype to avoid an error.
19406 Use char because int might match the return type of a GCC
19407 builtin and then its argument prototype would still apply. */
19408 #ifdef __cplusplus
19409 extern "C"
19410 #endif
19411 char inflateCopy ();
19413 main ()
19415 return inflateCopy ();
19417 return 0;
19419 _ACEOF
19420 rm -f conftest.$ac_objext conftest$ac_exeext
19421 if { (ac_try="$ac_link"
19422 case "(($ac_try" in
19423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19424 *) ac_try_echo=$ac_try;;
19425 esac
19426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19427 (eval "$ac_link") 2>conftest.er1
19428 ac_status=$?
19429 grep -v '^ *+' conftest.er1 >conftest.err
19430 rm -f conftest.er1
19431 cat conftest.err >&5
19432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19433 (exit $ac_status); } && {
19434 test -z "$ac_c_werror_flag" ||
19435 test ! -s conftest.err
19436 } && test -s conftest$ac_exeext &&
19437 $as_test_x conftest$ac_exeext; then
19438 ac_cv_lib_z_inflateCopy=yes
19439 else
19440 echo "$as_me: failed program was:" >&5
19441 sed 's/^/| /' conftest.$ac_ext >&5
19443 ac_cv_lib_z_inflateCopy=no
19446 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19447 conftest$ac_exeext conftest.$ac_ext
19448 LIBS=$ac_check_lib_save_LIBS
19450 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5
19451 echo "${ECHO_T}$ac_cv_lib_z_inflateCopy" >&6; }
19452 if test $ac_cv_lib_z_inflateCopy = yes; then
19454 cat >>confdefs.h <<\_ACEOF
19455 #define HAVE_ZLIB_COPY 1
19456 _ACEOF
19461 case $ac_sys_system/$ac_sys_release in
19462 Darwin/*)
19463 CFLAGS="${_CUR_CFLAGS}"
19464 LDFLAGS="${_CUR_LDFLAGS}"
19466 esac
19468 { echo "$as_me:$LINENO: checking for hstrerror" >&5
19469 echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6; }
19470 cat >conftest.$ac_ext <<_ACEOF
19471 /* confdefs.h. */
19472 _ACEOF
19473 cat confdefs.h >>conftest.$ac_ext
19474 cat >>conftest.$ac_ext <<_ACEOF
19475 /* end confdefs.h. */
19477 #include "confdefs.h"
19478 #include <netdb.h>
19481 main ()
19483 void* p = hstrerror; hstrerror(0)
19485 return 0;
19487 _ACEOF
19488 rm -f conftest.$ac_objext conftest$ac_exeext
19489 if { (ac_try="$ac_link"
19490 case "(($ac_try" in
19491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19492 *) ac_try_echo=$ac_try;;
19493 esac
19494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19495 (eval "$ac_link") 2>conftest.er1
19496 ac_status=$?
19497 grep -v '^ *+' conftest.er1 >conftest.err
19498 rm -f conftest.er1
19499 cat conftest.err >&5
19500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19501 (exit $ac_status); } && {
19502 test -z "$ac_c_werror_flag" ||
19503 test ! -s conftest.err
19504 } && test -s conftest$ac_exeext &&
19505 $as_test_x conftest$ac_exeext; then
19507 cat >>confdefs.h <<\_ACEOF
19508 #define HAVE_HSTRERROR 1
19509 _ACEOF
19511 { echo "$as_me:$LINENO: result: yes" >&5
19512 echo "${ECHO_T}yes" >&6; }
19513 else
19514 echo "$as_me: failed program was:" >&5
19515 sed 's/^/| /' conftest.$ac_ext >&5
19517 { echo "$as_me:$LINENO: result: no" >&5
19518 echo "${ECHO_T}no" >&6; }
19522 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19523 conftest$ac_exeext conftest.$ac_ext
19525 { echo "$as_me:$LINENO: checking for inet_aton" >&5
19526 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
19527 cat >conftest.$ac_ext <<_ACEOF
19528 /* confdefs.h. */
19529 _ACEOF
19530 cat confdefs.h >>conftest.$ac_ext
19531 cat >>conftest.$ac_ext <<_ACEOF
19532 /* end confdefs.h. */
19534 #include "confdefs.h"
19535 #include <sys/types.h>
19536 #include <sys/socket.h>
19537 #include <netinet/in.h>
19538 #include <arpa/inet.h>
19541 main ()
19543 void* p = inet_aton;inet_aton(0,0)
19545 return 0;
19547 _ACEOF
19548 rm -f conftest.$ac_objext conftest$ac_exeext
19549 if { (ac_try="$ac_link"
19550 case "(($ac_try" in
19551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19552 *) ac_try_echo=$ac_try;;
19553 esac
19554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19555 (eval "$ac_link") 2>conftest.er1
19556 ac_status=$?
19557 grep -v '^ *+' conftest.er1 >conftest.err
19558 rm -f conftest.er1
19559 cat conftest.err >&5
19560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19561 (exit $ac_status); } && {
19562 test -z "$ac_c_werror_flag" ||
19563 test ! -s conftest.err
19564 } && test -s conftest$ac_exeext &&
19565 $as_test_x conftest$ac_exeext; then
19567 cat >>confdefs.h <<\_ACEOF
19568 #define HAVE_INET_ATON 1
19569 _ACEOF
19571 { echo "$as_me:$LINENO: result: yes" >&5
19572 echo "${ECHO_T}yes" >&6; }
19573 else
19574 echo "$as_me: failed program was:" >&5
19575 sed 's/^/| /' conftest.$ac_ext >&5
19577 { echo "$as_me:$LINENO: result: no" >&5
19578 echo "${ECHO_T}no" >&6; }
19582 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19583 conftest$ac_exeext conftest.$ac_ext
19585 { echo "$as_me:$LINENO: checking for inet_pton" >&5
19586 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
19587 cat >conftest.$ac_ext <<_ACEOF
19588 /* confdefs.h. */
19589 _ACEOF
19590 cat confdefs.h >>conftest.$ac_ext
19591 cat >>conftest.$ac_ext <<_ACEOF
19592 /* end confdefs.h. */
19594 #include "confdefs.h"
19595 #include <sys/types.h>
19596 #include <sys/socket.h>
19597 #include <netinet/in.h>
19598 #include <arpa/inet.h>
19601 main ()
19603 void* p = inet_pton
19605 return 0;
19607 _ACEOF
19608 rm -f conftest.$ac_objext
19609 if { (ac_try="$ac_compile"
19610 case "(($ac_try" in
19611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19612 *) ac_try_echo=$ac_try;;
19613 esac
19614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19615 (eval "$ac_compile") 2>conftest.er1
19616 ac_status=$?
19617 grep -v '^ *+' conftest.er1 >conftest.err
19618 rm -f conftest.er1
19619 cat conftest.err >&5
19620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19621 (exit $ac_status); } && {
19622 test -z "$ac_c_werror_flag" ||
19623 test ! -s conftest.err
19624 } && test -s conftest.$ac_objext; then
19626 cat >>confdefs.h <<\_ACEOF
19627 #define HAVE_INET_PTON 1
19628 _ACEOF
19630 { echo "$as_me:$LINENO: result: yes" >&5
19631 echo "${ECHO_T}yes" >&6; }
19632 else
19633 echo "$as_me: failed program was:" >&5
19634 sed 's/^/| /' conftest.$ac_ext >&5
19636 { echo "$as_me:$LINENO: result: no" >&5
19637 echo "${ECHO_T}no" >&6; }
19641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19643 # On some systems, setgroups is in unistd.h, on others, in grp.h
19644 { echo "$as_me:$LINENO: checking for setgroups" >&5
19645 echo $ECHO_N "checking for setgroups... $ECHO_C" >&6; }
19646 cat >conftest.$ac_ext <<_ACEOF
19647 /* confdefs.h. */
19648 _ACEOF
19649 cat confdefs.h >>conftest.$ac_ext
19650 cat >>conftest.$ac_ext <<_ACEOF
19651 /* end confdefs.h. */
19653 #include "confdefs.h"
19654 #include <unistd.h>
19655 #ifdef HAVE_GRP_H
19656 #include <grp.h>
19657 #endif
19660 main ()
19662 void* p = setgroups
19664 return 0;
19666 _ACEOF
19667 rm -f conftest.$ac_objext
19668 if { (ac_try="$ac_compile"
19669 case "(($ac_try" in
19670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19671 *) ac_try_echo=$ac_try;;
19672 esac
19673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19674 (eval "$ac_compile") 2>conftest.er1
19675 ac_status=$?
19676 grep -v '^ *+' conftest.er1 >conftest.err
19677 rm -f conftest.er1
19678 cat conftest.err >&5
19679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19680 (exit $ac_status); } && {
19681 test -z "$ac_c_werror_flag" ||
19682 test ! -s conftest.err
19683 } && test -s conftest.$ac_objext; then
19685 cat >>confdefs.h <<\_ACEOF
19686 #define HAVE_SETGROUPS 1
19687 _ACEOF
19689 { echo "$as_me:$LINENO: result: yes" >&5
19690 echo "${ECHO_T}yes" >&6; }
19691 else
19692 echo "$as_me: failed program was:" >&5
19693 sed 's/^/| /' conftest.$ac_ext >&5
19695 { echo "$as_me:$LINENO: result: no" >&5
19696 echo "${ECHO_T}no" >&6; }
19700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19702 # check for openpty and forkpty
19705 for ac_func in openpty
19707 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19708 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19709 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19710 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19711 echo $ECHO_N "(cached) $ECHO_C" >&6
19712 else
19713 cat >conftest.$ac_ext <<_ACEOF
19714 /* confdefs.h. */
19715 _ACEOF
19716 cat confdefs.h >>conftest.$ac_ext
19717 cat >>conftest.$ac_ext <<_ACEOF
19718 /* end confdefs.h. */
19719 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19720 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19721 #define $ac_func innocuous_$ac_func
19723 /* System header to define __stub macros and hopefully few prototypes,
19724 which can conflict with char $ac_func (); below.
19725 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19726 <limits.h> exists even on freestanding compilers. */
19728 #ifdef __STDC__
19729 # include <limits.h>
19730 #else
19731 # include <assert.h>
19732 #endif
19734 #undef $ac_func
19736 /* Override any GCC internal prototype to avoid an error.
19737 Use char because int might match the return type of a GCC
19738 builtin and then its argument prototype would still apply. */
19739 #ifdef __cplusplus
19740 extern "C"
19741 #endif
19742 char $ac_func ();
19743 /* The GNU C library defines this for functions which it implements
19744 to always fail with ENOSYS. Some functions are actually named
19745 something starting with __ and the normal name is an alias. */
19746 #if defined __stub_$ac_func || defined __stub___$ac_func
19747 choke me
19748 #endif
19751 main ()
19753 return $ac_func ();
19755 return 0;
19757 _ACEOF
19758 rm -f conftest.$ac_objext conftest$ac_exeext
19759 if { (ac_try="$ac_link"
19760 case "(($ac_try" in
19761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19762 *) ac_try_echo=$ac_try;;
19763 esac
19764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19765 (eval "$ac_link") 2>conftest.er1
19766 ac_status=$?
19767 grep -v '^ *+' conftest.er1 >conftest.err
19768 rm -f conftest.er1
19769 cat conftest.err >&5
19770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19771 (exit $ac_status); } && {
19772 test -z "$ac_c_werror_flag" ||
19773 test ! -s conftest.err
19774 } && test -s conftest$ac_exeext &&
19775 $as_test_x conftest$ac_exeext; then
19776 eval "$as_ac_var=yes"
19777 else
19778 echo "$as_me: failed program was:" >&5
19779 sed 's/^/| /' conftest.$ac_ext >&5
19781 eval "$as_ac_var=no"
19784 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19785 conftest$ac_exeext conftest.$ac_ext
19787 ac_res=`eval echo '${'$as_ac_var'}'`
19788 { echo "$as_me:$LINENO: result: $ac_res" >&5
19789 echo "${ECHO_T}$ac_res" >&6; }
19790 if test `eval echo '${'$as_ac_var'}'` = yes; then
19791 cat >>confdefs.h <<_ACEOF
19792 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19793 _ACEOF
19795 else
19796 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
19797 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
19798 if test "${ac_cv_lib_util_openpty+set}" = set; then
19799 echo $ECHO_N "(cached) $ECHO_C" >&6
19800 else
19801 ac_check_lib_save_LIBS=$LIBS
19802 LIBS="-lutil $LIBS"
19803 cat >conftest.$ac_ext <<_ACEOF
19804 /* confdefs.h. */
19805 _ACEOF
19806 cat confdefs.h >>conftest.$ac_ext
19807 cat >>conftest.$ac_ext <<_ACEOF
19808 /* end confdefs.h. */
19810 /* Override any GCC internal prototype to avoid an error.
19811 Use char because int might match the return type of a GCC
19812 builtin and then its argument prototype would still apply. */
19813 #ifdef __cplusplus
19814 extern "C"
19815 #endif
19816 char openpty ();
19818 main ()
19820 return openpty ();
19822 return 0;
19824 _ACEOF
19825 rm -f conftest.$ac_objext conftest$ac_exeext
19826 if { (ac_try="$ac_link"
19827 case "(($ac_try" in
19828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19829 *) ac_try_echo=$ac_try;;
19830 esac
19831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19832 (eval "$ac_link") 2>conftest.er1
19833 ac_status=$?
19834 grep -v '^ *+' conftest.er1 >conftest.err
19835 rm -f conftest.er1
19836 cat conftest.err >&5
19837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19838 (exit $ac_status); } && {
19839 test -z "$ac_c_werror_flag" ||
19840 test ! -s conftest.err
19841 } && test -s conftest$ac_exeext &&
19842 $as_test_x conftest$ac_exeext; then
19843 ac_cv_lib_util_openpty=yes
19844 else
19845 echo "$as_me: failed program was:" >&5
19846 sed 's/^/| /' conftest.$ac_ext >&5
19848 ac_cv_lib_util_openpty=no
19851 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19852 conftest$ac_exeext conftest.$ac_ext
19853 LIBS=$ac_check_lib_save_LIBS
19855 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
19856 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
19857 if test $ac_cv_lib_util_openpty = yes; then
19858 cat >>confdefs.h <<\_ACEOF
19859 #define HAVE_OPENPTY 1
19860 _ACEOF
19861 LIBS="$LIBS -lutil"
19862 else
19863 { echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
19864 echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6; }
19865 if test "${ac_cv_lib_bsd_openpty+set}" = set; then
19866 echo $ECHO_N "(cached) $ECHO_C" >&6
19867 else
19868 ac_check_lib_save_LIBS=$LIBS
19869 LIBS="-lbsd $LIBS"
19870 cat >conftest.$ac_ext <<_ACEOF
19871 /* confdefs.h. */
19872 _ACEOF
19873 cat confdefs.h >>conftest.$ac_ext
19874 cat >>conftest.$ac_ext <<_ACEOF
19875 /* end confdefs.h. */
19877 /* Override any GCC internal prototype to avoid an error.
19878 Use char because int might match the return type of a GCC
19879 builtin and then its argument prototype would still apply. */
19880 #ifdef __cplusplus
19881 extern "C"
19882 #endif
19883 char openpty ();
19885 main ()
19887 return openpty ();
19889 return 0;
19891 _ACEOF
19892 rm -f conftest.$ac_objext conftest$ac_exeext
19893 if { (ac_try="$ac_link"
19894 case "(($ac_try" in
19895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19896 *) ac_try_echo=$ac_try;;
19897 esac
19898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19899 (eval "$ac_link") 2>conftest.er1
19900 ac_status=$?
19901 grep -v '^ *+' conftest.er1 >conftest.err
19902 rm -f conftest.er1
19903 cat conftest.err >&5
19904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19905 (exit $ac_status); } && {
19906 test -z "$ac_c_werror_flag" ||
19907 test ! -s conftest.err
19908 } && test -s conftest$ac_exeext &&
19909 $as_test_x conftest$ac_exeext; then
19910 ac_cv_lib_bsd_openpty=yes
19911 else
19912 echo "$as_me: failed program was:" >&5
19913 sed 's/^/| /' conftest.$ac_ext >&5
19915 ac_cv_lib_bsd_openpty=no
19918 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19919 conftest$ac_exeext conftest.$ac_ext
19920 LIBS=$ac_check_lib_save_LIBS
19922 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
19923 echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6; }
19924 if test $ac_cv_lib_bsd_openpty = yes; then
19925 cat >>confdefs.h <<\_ACEOF
19926 #define HAVE_OPENPTY 1
19927 _ACEOF
19928 LIBS="$LIBS -lbsd"
19936 done
19939 for ac_func in forkpty
19941 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19942 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19943 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19944 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19945 echo $ECHO_N "(cached) $ECHO_C" >&6
19946 else
19947 cat >conftest.$ac_ext <<_ACEOF
19948 /* confdefs.h. */
19949 _ACEOF
19950 cat confdefs.h >>conftest.$ac_ext
19951 cat >>conftest.$ac_ext <<_ACEOF
19952 /* end confdefs.h. */
19953 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19954 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19955 #define $ac_func innocuous_$ac_func
19957 /* System header to define __stub macros and hopefully few prototypes,
19958 which can conflict with char $ac_func (); below.
19959 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19960 <limits.h> exists even on freestanding compilers. */
19962 #ifdef __STDC__
19963 # include <limits.h>
19964 #else
19965 # include <assert.h>
19966 #endif
19968 #undef $ac_func
19970 /* Override any GCC internal prototype to avoid an error.
19971 Use char because int might match the return type of a GCC
19972 builtin and then its argument prototype would still apply. */
19973 #ifdef __cplusplus
19974 extern "C"
19975 #endif
19976 char $ac_func ();
19977 /* The GNU C library defines this for functions which it implements
19978 to always fail with ENOSYS. Some functions are actually named
19979 something starting with __ and the normal name is an alias. */
19980 #if defined __stub_$ac_func || defined __stub___$ac_func
19981 choke me
19982 #endif
19985 main ()
19987 return $ac_func ();
19989 return 0;
19991 _ACEOF
19992 rm -f conftest.$ac_objext conftest$ac_exeext
19993 if { (ac_try="$ac_link"
19994 case "(($ac_try" in
19995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19996 *) ac_try_echo=$ac_try;;
19997 esac
19998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19999 (eval "$ac_link") 2>conftest.er1
20000 ac_status=$?
20001 grep -v '^ *+' conftest.er1 >conftest.err
20002 rm -f conftest.er1
20003 cat conftest.err >&5
20004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20005 (exit $ac_status); } && {
20006 test -z "$ac_c_werror_flag" ||
20007 test ! -s conftest.err
20008 } && test -s conftest$ac_exeext &&
20009 $as_test_x conftest$ac_exeext; then
20010 eval "$as_ac_var=yes"
20011 else
20012 echo "$as_me: failed program was:" >&5
20013 sed 's/^/| /' conftest.$ac_ext >&5
20015 eval "$as_ac_var=no"
20018 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20019 conftest$ac_exeext conftest.$ac_ext
20021 ac_res=`eval echo '${'$as_ac_var'}'`
20022 { echo "$as_me:$LINENO: result: $ac_res" >&5
20023 echo "${ECHO_T}$ac_res" >&6; }
20024 if test `eval echo '${'$as_ac_var'}'` = yes; then
20025 cat >>confdefs.h <<_ACEOF
20026 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20027 _ACEOF
20029 else
20030 { echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
20031 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6; }
20032 if test "${ac_cv_lib_util_forkpty+set}" = set; then
20033 echo $ECHO_N "(cached) $ECHO_C" >&6
20034 else
20035 ac_check_lib_save_LIBS=$LIBS
20036 LIBS="-lutil $LIBS"
20037 cat >conftest.$ac_ext <<_ACEOF
20038 /* confdefs.h. */
20039 _ACEOF
20040 cat confdefs.h >>conftest.$ac_ext
20041 cat >>conftest.$ac_ext <<_ACEOF
20042 /* end confdefs.h. */
20044 /* Override any GCC internal prototype to avoid an error.
20045 Use char because int might match the return type of a GCC
20046 builtin and then its argument prototype would still apply. */
20047 #ifdef __cplusplus
20048 extern "C"
20049 #endif
20050 char forkpty ();
20052 main ()
20054 return forkpty ();
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 ac_cv_lib_util_forkpty=yes
20078 else
20079 echo "$as_me: failed program was:" >&5
20080 sed 's/^/| /' conftest.$ac_ext >&5
20082 ac_cv_lib_util_forkpty=no
20085 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20086 conftest$ac_exeext conftest.$ac_ext
20087 LIBS=$ac_check_lib_save_LIBS
20089 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
20090 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6; }
20091 if test $ac_cv_lib_util_forkpty = yes; then
20092 cat >>confdefs.h <<\_ACEOF
20093 #define HAVE_FORKPTY 1
20094 _ACEOF
20095 LIBS="$LIBS -lutil"
20096 else
20097 { echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
20098 echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6; }
20099 if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
20100 echo $ECHO_N "(cached) $ECHO_C" >&6
20101 else
20102 ac_check_lib_save_LIBS=$LIBS
20103 LIBS="-lbsd $LIBS"
20104 cat >conftest.$ac_ext <<_ACEOF
20105 /* confdefs.h. */
20106 _ACEOF
20107 cat confdefs.h >>conftest.$ac_ext
20108 cat >>conftest.$ac_ext <<_ACEOF
20109 /* end confdefs.h. */
20111 /* Override any GCC internal prototype to avoid an error.
20112 Use char because int might match the return type of a GCC
20113 builtin and then its argument prototype would still apply. */
20114 #ifdef __cplusplus
20115 extern "C"
20116 #endif
20117 char forkpty ();
20119 main ()
20121 return forkpty ();
20123 return 0;
20125 _ACEOF
20126 rm -f conftest.$ac_objext conftest$ac_exeext
20127 if { (ac_try="$ac_link"
20128 case "(($ac_try" in
20129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20130 *) ac_try_echo=$ac_try;;
20131 esac
20132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20133 (eval "$ac_link") 2>conftest.er1
20134 ac_status=$?
20135 grep -v '^ *+' conftest.er1 >conftest.err
20136 rm -f conftest.er1
20137 cat conftest.err >&5
20138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20139 (exit $ac_status); } && {
20140 test -z "$ac_c_werror_flag" ||
20141 test ! -s conftest.err
20142 } && test -s conftest$ac_exeext &&
20143 $as_test_x conftest$ac_exeext; then
20144 ac_cv_lib_bsd_forkpty=yes
20145 else
20146 echo "$as_me: failed program was:" >&5
20147 sed 's/^/| /' conftest.$ac_ext >&5
20149 ac_cv_lib_bsd_forkpty=no
20152 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20153 conftest$ac_exeext conftest.$ac_ext
20154 LIBS=$ac_check_lib_save_LIBS
20156 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
20157 echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6; }
20158 if test $ac_cv_lib_bsd_forkpty = yes; then
20159 cat >>confdefs.h <<\_ACEOF
20160 #define HAVE_FORKPTY 1
20161 _ACEOF
20162 LIBS="$LIBS -lbsd"
20170 done
20173 # Stuff for expat.
20175 for ac_func in memmove
20177 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20178 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20179 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20180 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20181 echo $ECHO_N "(cached) $ECHO_C" >&6
20182 else
20183 cat >conftest.$ac_ext <<_ACEOF
20184 /* confdefs.h. */
20185 _ACEOF
20186 cat confdefs.h >>conftest.$ac_ext
20187 cat >>conftest.$ac_ext <<_ACEOF
20188 /* end confdefs.h. */
20189 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20190 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20191 #define $ac_func innocuous_$ac_func
20193 /* System header to define __stub macros and hopefully few prototypes,
20194 which can conflict with char $ac_func (); below.
20195 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20196 <limits.h> exists even on freestanding compilers. */
20198 #ifdef __STDC__
20199 # include <limits.h>
20200 #else
20201 # include <assert.h>
20202 #endif
20204 #undef $ac_func
20206 /* Override any GCC internal prototype to avoid an error.
20207 Use char because int might match the return type of a GCC
20208 builtin and then its argument prototype would still apply. */
20209 #ifdef __cplusplus
20210 extern "C"
20211 #endif
20212 char $ac_func ();
20213 /* The GNU C library defines this for functions which it implements
20214 to always fail with ENOSYS. Some functions are actually named
20215 something starting with __ and the normal name is an alias. */
20216 #if defined __stub_$ac_func || defined __stub___$ac_func
20217 choke me
20218 #endif
20221 main ()
20223 return $ac_func ();
20225 return 0;
20227 _ACEOF
20228 rm -f conftest.$ac_objext conftest$ac_exeext
20229 if { (ac_try="$ac_link"
20230 case "(($ac_try" in
20231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20232 *) ac_try_echo=$ac_try;;
20233 esac
20234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20235 (eval "$ac_link") 2>conftest.er1
20236 ac_status=$?
20237 grep -v '^ *+' conftest.er1 >conftest.err
20238 rm -f conftest.er1
20239 cat conftest.err >&5
20240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20241 (exit $ac_status); } && {
20242 test -z "$ac_c_werror_flag" ||
20243 test ! -s conftest.err
20244 } && test -s conftest$ac_exeext &&
20245 $as_test_x conftest$ac_exeext; then
20246 eval "$as_ac_var=yes"
20247 else
20248 echo "$as_me: failed program was:" >&5
20249 sed 's/^/| /' conftest.$ac_ext >&5
20251 eval "$as_ac_var=no"
20254 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20255 conftest$ac_exeext conftest.$ac_ext
20257 ac_res=`eval echo '${'$as_ac_var'}'`
20258 { echo "$as_me:$LINENO: result: $ac_res" >&5
20259 echo "${ECHO_T}$ac_res" >&6; }
20260 if test `eval echo '${'$as_ac_var'}'` = yes; then
20261 cat >>confdefs.h <<_ACEOF
20262 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20263 _ACEOF
20266 done
20269 # check for long file support functions
20276 for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs
20278 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20279 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20280 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20281 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20282 echo $ECHO_N "(cached) $ECHO_C" >&6
20283 else
20284 cat >conftest.$ac_ext <<_ACEOF
20285 /* confdefs.h. */
20286 _ACEOF
20287 cat confdefs.h >>conftest.$ac_ext
20288 cat >>conftest.$ac_ext <<_ACEOF
20289 /* end confdefs.h. */
20290 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20291 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20292 #define $ac_func innocuous_$ac_func
20294 /* System header to define __stub macros and hopefully few prototypes,
20295 which can conflict with char $ac_func (); below.
20296 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20297 <limits.h> exists even on freestanding compilers. */
20299 #ifdef __STDC__
20300 # include <limits.h>
20301 #else
20302 # include <assert.h>
20303 #endif
20305 #undef $ac_func
20307 /* Override any GCC internal prototype to avoid an error.
20308 Use char because int might match the return type of a GCC
20309 builtin and then its argument prototype would still apply. */
20310 #ifdef __cplusplus
20311 extern "C"
20312 #endif
20313 char $ac_func ();
20314 /* The GNU C library defines this for functions which it implements
20315 to always fail with ENOSYS. Some functions are actually named
20316 something starting with __ and the normal name is an alias. */
20317 #if defined __stub_$ac_func || defined __stub___$ac_func
20318 choke me
20319 #endif
20322 main ()
20324 return $ac_func ();
20326 return 0;
20328 _ACEOF
20329 rm -f conftest.$ac_objext conftest$ac_exeext
20330 if { (ac_try="$ac_link"
20331 case "(($ac_try" in
20332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20333 *) ac_try_echo=$ac_try;;
20334 esac
20335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20336 (eval "$ac_link") 2>conftest.er1
20337 ac_status=$?
20338 grep -v '^ *+' conftest.er1 >conftest.err
20339 rm -f conftest.er1
20340 cat conftest.err >&5
20341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20342 (exit $ac_status); } && {
20343 test -z "$ac_c_werror_flag" ||
20344 test ! -s conftest.err
20345 } && test -s conftest$ac_exeext &&
20346 $as_test_x conftest$ac_exeext; then
20347 eval "$as_ac_var=yes"
20348 else
20349 echo "$as_me: failed program was:" >&5
20350 sed 's/^/| /' conftest.$ac_ext >&5
20352 eval "$as_ac_var=no"
20355 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20356 conftest$ac_exeext conftest.$ac_ext
20358 ac_res=`eval echo '${'$as_ac_var'}'`
20359 { echo "$as_me:$LINENO: result: $ac_res" >&5
20360 echo "${ECHO_T}$ac_res" >&6; }
20361 if test `eval echo '${'$as_ac_var'}'` = yes; then
20362 cat >>confdefs.h <<_ACEOF
20363 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20364 _ACEOF
20367 done
20373 for ac_func in dup2 getcwd strdup
20375 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20376 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20377 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20378 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20379 echo $ECHO_N "(cached) $ECHO_C" >&6
20380 else
20381 cat >conftest.$ac_ext <<_ACEOF
20382 /* confdefs.h. */
20383 _ACEOF
20384 cat confdefs.h >>conftest.$ac_ext
20385 cat >>conftest.$ac_ext <<_ACEOF
20386 /* end confdefs.h. */
20387 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20388 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20389 #define $ac_func innocuous_$ac_func
20391 /* System header to define __stub macros and hopefully few prototypes,
20392 which can conflict with char $ac_func (); below.
20393 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20394 <limits.h> exists even on freestanding compilers. */
20396 #ifdef __STDC__
20397 # include <limits.h>
20398 #else
20399 # include <assert.h>
20400 #endif
20402 #undef $ac_func
20404 /* Override any GCC internal prototype to avoid an error.
20405 Use char because int might match the return type of a GCC
20406 builtin and then its argument prototype would still apply. */
20407 #ifdef __cplusplus
20408 extern "C"
20409 #endif
20410 char $ac_func ();
20411 /* The GNU C library defines this for functions which it implements
20412 to always fail with ENOSYS. Some functions are actually named
20413 something starting with __ and the normal name is an alias. */
20414 #if defined __stub_$ac_func || defined __stub___$ac_func
20415 choke me
20416 #endif
20419 main ()
20421 return $ac_func ();
20423 return 0;
20425 _ACEOF
20426 rm -f conftest.$ac_objext conftest$ac_exeext
20427 if { (ac_try="$ac_link"
20428 case "(($ac_try" in
20429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20430 *) ac_try_echo=$ac_try;;
20431 esac
20432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20433 (eval "$ac_link") 2>conftest.er1
20434 ac_status=$?
20435 grep -v '^ *+' conftest.er1 >conftest.err
20436 rm -f conftest.er1
20437 cat conftest.err >&5
20438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20439 (exit $ac_status); } && {
20440 test -z "$ac_c_werror_flag" ||
20441 test ! -s conftest.err
20442 } && test -s conftest$ac_exeext &&
20443 $as_test_x conftest$ac_exeext; then
20444 eval "$as_ac_var=yes"
20445 else
20446 echo "$as_me: failed program was:" >&5
20447 sed 's/^/| /' conftest.$ac_ext >&5
20449 eval "$as_ac_var=no"
20452 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20453 conftest$ac_exeext conftest.$ac_ext
20455 ac_res=`eval echo '${'$as_ac_var'}'`
20456 { echo "$as_me:$LINENO: result: $ac_res" >&5
20457 echo "${ECHO_T}$ac_res" >&6; }
20458 if test `eval echo '${'$as_ac_var'}'` = yes; then
20459 cat >>confdefs.h <<_ACEOF
20460 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20461 _ACEOF
20463 else
20464 case " $LIBOBJS " in
20465 *" $ac_func.$ac_objext "* ) ;;
20466 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20468 esac
20471 done
20475 for ac_func in getpgrp
20477 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20478 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20479 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20480 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20481 echo $ECHO_N "(cached) $ECHO_C" >&6
20482 else
20483 cat >conftest.$ac_ext <<_ACEOF
20484 /* confdefs.h. */
20485 _ACEOF
20486 cat confdefs.h >>conftest.$ac_ext
20487 cat >>conftest.$ac_ext <<_ACEOF
20488 /* end confdefs.h. */
20489 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20490 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20491 #define $ac_func innocuous_$ac_func
20493 /* System header to define __stub macros and hopefully few prototypes,
20494 which can conflict with char $ac_func (); below.
20495 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20496 <limits.h> exists even on freestanding compilers. */
20498 #ifdef __STDC__
20499 # include <limits.h>
20500 #else
20501 # include <assert.h>
20502 #endif
20504 #undef $ac_func
20506 /* Override any GCC internal prototype to avoid an error.
20507 Use char because int might match the return type of a GCC
20508 builtin and then its argument prototype would still apply. */
20509 #ifdef __cplusplus
20510 extern "C"
20511 #endif
20512 char $ac_func ();
20513 /* The GNU C library defines this for functions which it implements
20514 to always fail with ENOSYS. Some functions are actually named
20515 something starting with __ and the normal name is an alias. */
20516 #if defined __stub_$ac_func || defined __stub___$ac_func
20517 choke me
20518 #endif
20521 main ()
20523 return $ac_func ();
20525 return 0;
20527 _ACEOF
20528 rm -f conftest.$ac_objext conftest$ac_exeext
20529 if { (ac_try="$ac_link"
20530 case "(($ac_try" in
20531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20532 *) ac_try_echo=$ac_try;;
20533 esac
20534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20535 (eval "$ac_link") 2>conftest.er1
20536 ac_status=$?
20537 grep -v '^ *+' conftest.er1 >conftest.err
20538 rm -f conftest.er1
20539 cat conftest.err >&5
20540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20541 (exit $ac_status); } && {
20542 test -z "$ac_c_werror_flag" ||
20543 test ! -s conftest.err
20544 } && test -s conftest$ac_exeext &&
20545 $as_test_x conftest$ac_exeext; then
20546 eval "$as_ac_var=yes"
20547 else
20548 echo "$as_me: failed program was:" >&5
20549 sed 's/^/| /' conftest.$ac_ext >&5
20551 eval "$as_ac_var=no"
20554 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20555 conftest$ac_exeext conftest.$ac_ext
20557 ac_res=`eval echo '${'$as_ac_var'}'`
20558 { echo "$as_me:$LINENO: result: $ac_res" >&5
20559 echo "${ECHO_T}$ac_res" >&6; }
20560 if test `eval echo '${'$as_ac_var'}'` = yes; then
20561 cat >>confdefs.h <<_ACEOF
20562 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20563 _ACEOF
20564 cat >conftest.$ac_ext <<_ACEOF
20565 /* confdefs.h. */
20566 _ACEOF
20567 cat confdefs.h >>conftest.$ac_ext
20568 cat >>conftest.$ac_ext <<_ACEOF
20569 /* end confdefs.h. */
20570 #include <unistd.h>
20572 main ()
20574 getpgrp(0);
20576 return 0;
20578 _ACEOF
20579 rm -f conftest.$ac_objext
20580 if { (ac_try="$ac_compile"
20581 case "(($ac_try" in
20582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20583 *) ac_try_echo=$ac_try;;
20584 esac
20585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20586 (eval "$ac_compile") 2>conftest.er1
20587 ac_status=$?
20588 grep -v '^ *+' conftest.er1 >conftest.err
20589 rm -f conftest.er1
20590 cat conftest.err >&5
20591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20592 (exit $ac_status); } && {
20593 test -z "$ac_c_werror_flag" ||
20594 test ! -s conftest.err
20595 } && test -s conftest.$ac_objext; then
20597 cat >>confdefs.h <<\_ACEOF
20598 #define GETPGRP_HAVE_ARG 1
20599 _ACEOF
20602 else
20603 echo "$as_me: failed program was:" >&5
20604 sed 's/^/| /' conftest.$ac_ext >&5
20609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20612 done
20615 for ac_func in setpgrp
20617 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20618 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20619 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20620 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20621 echo $ECHO_N "(cached) $ECHO_C" >&6
20622 else
20623 cat >conftest.$ac_ext <<_ACEOF
20624 /* confdefs.h. */
20625 _ACEOF
20626 cat confdefs.h >>conftest.$ac_ext
20627 cat >>conftest.$ac_ext <<_ACEOF
20628 /* end confdefs.h. */
20629 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20630 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20631 #define $ac_func innocuous_$ac_func
20633 /* System header to define __stub macros and hopefully few prototypes,
20634 which can conflict with char $ac_func (); below.
20635 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20636 <limits.h> exists even on freestanding compilers. */
20638 #ifdef __STDC__
20639 # include <limits.h>
20640 #else
20641 # include <assert.h>
20642 #endif
20644 #undef $ac_func
20646 /* Override any GCC internal prototype to avoid an error.
20647 Use char because int might match the return type of a GCC
20648 builtin and then its argument prototype would still apply. */
20649 #ifdef __cplusplus
20650 extern "C"
20651 #endif
20652 char $ac_func ();
20653 /* The GNU C library defines this for functions which it implements
20654 to always fail with ENOSYS. Some functions are actually named
20655 something starting with __ and the normal name is an alias. */
20656 #if defined __stub_$ac_func || defined __stub___$ac_func
20657 choke me
20658 #endif
20661 main ()
20663 return $ac_func ();
20665 return 0;
20667 _ACEOF
20668 rm -f conftest.$ac_objext conftest$ac_exeext
20669 if { (ac_try="$ac_link"
20670 case "(($ac_try" in
20671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20672 *) ac_try_echo=$ac_try;;
20673 esac
20674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20675 (eval "$ac_link") 2>conftest.er1
20676 ac_status=$?
20677 grep -v '^ *+' conftest.er1 >conftest.err
20678 rm -f conftest.er1
20679 cat conftest.err >&5
20680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20681 (exit $ac_status); } && {
20682 test -z "$ac_c_werror_flag" ||
20683 test ! -s conftest.err
20684 } && test -s conftest$ac_exeext &&
20685 $as_test_x conftest$ac_exeext; then
20686 eval "$as_ac_var=yes"
20687 else
20688 echo "$as_me: failed program was:" >&5
20689 sed 's/^/| /' conftest.$ac_ext >&5
20691 eval "$as_ac_var=no"
20694 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20695 conftest$ac_exeext conftest.$ac_ext
20697 ac_res=`eval echo '${'$as_ac_var'}'`
20698 { echo "$as_me:$LINENO: result: $ac_res" >&5
20699 echo "${ECHO_T}$ac_res" >&6; }
20700 if test `eval echo '${'$as_ac_var'}'` = yes; then
20701 cat >>confdefs.h <<_ACEOF
20702 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20703 _ACEOF
20704 cat >conftest.$ac_ext <<_ACEOF
20705 /* confdefs.h. */
20706 _ACEOF
20707 cat confdefs.h >>conftest.$ac_ext
20708 cat >>conftest.$ac_ext <<_ACEOF
20709 /* end confdefs.h. */
20710 #include <unistd.h>
20712 main ()
20714 setpgrp(0,0);
20716 return 0;
20718 _ACEOF
20719 rm -f conftest.$ac_objext
20720 if { (ac_try="$ac_compile"
20721 case "(($ac_try" in
20722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20723 *) ac_try_echo=$ac_try;;
20724 esac
20725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20726 (eval "$ac_compile") 2>conftest.er1
20727 ac_status=$?
20728 grep -v '^ *+' conftest.er1 >conftest.err
20729 rm -f conftest.er1
20730 cat conftest.err >&5
20731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20732 (exit $ac_status); } && {
20733 test -z "$ac_c_werror_flag" ||
20734 test ! -s conftest.err
20735 } && test -s conftest.$ac_objext; then
20737 cat >>confdefs.h <<\_ACEOF
20738 #define SETPGRP_HAVE_ARG 1
20739 _ACEOF
20742 else
20743 echo "$as_me: failed program was:" >&5
20744 sed 's/^/| /' conftest.$ac_ext >&5
20749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20752 done
20755 for ac_func in gettimeofday
20757 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20758 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20759 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20760 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20761 echo $ECHO_N "(cached) $ECHO_C" >&6
20762 else
20763 cat >conftest.$ac_ext <<_ACEOF
20764 /* confdefs.h. */
20765 _ACEOF
20766 cat confdefs.h >>conftest.$ac_ext
20767 cat >>conftest.$ac_ext <<_ACEOF
20768 /* end confdefs.h. */
20769 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20770 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20771 #define $ac_func innocuous_$ac_func
20773 /* System header to define __stub macros and hopefully few prototypes,
20774 which can conflict with char $ac_func (); below.
20775 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20776 <limits.h> exists even on freestanding compilers. */
20778 #ifdef __STDC__
20779 # include <limits.h>
20780 #else
20781 # include <assert.h>
20782 #endif
20784 #undef $ac_func
20786 /* Override any GCC internal prototype to avoid an error.
20787 Use char because int might match the return type of a GCC
20788 builtin and then its argument prototype would still apply. */
20789 #ifdef __cplusplus
20790 extern "C"
20791 #endif
20792 char $ac_func ();
20793 /* The GNU C library defines this for functions which it implements
20794 to always fail with ENOSYS. Some functions are actually named
20795 something starting with __ and the normal name is an alias. */
20796 #if defined __stub_$ac_func || defined __stub___$ac_func
20797 choke me
20798 #endif
20801 main ()
20803 return $ac_func ();
20805 return 0;
20807 _ACEOF
20808 rm -f conftest.$ac_objext conftest$ac_exeext
20809 if { (ac_try="$ac_link"
20810 case "(($ac_try" in
20811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20812 *) ac_try_echo=$ac_try;;
20813 esac
20814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20815 (eval "$ac_link") 2>conftest.er1
20816 ac_status=$?
20817 grep -v '^ *+' conftest.er1 >conftest.err
20818 rm -f conftest.er1
20819 cat conftest.err >&5
20820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20821 (exit $ac_status); } && {
20822 test -z "$ac_c_werror_flag" ||
20823 test ! -s conftest.err
20824 } && test -s conftest$ac_exeext &&
20825 $as_test_x conftest$ac_exeext; then
20826 eval "$as_ac_var=yes"
20827 else
20828 echo "$as_me: failed program was:" >&5
20829 sed 's/^/| /' conftest.$ac_ext >&5
20831 eval "$as_ac_var=no"
20834 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20835 conftest$ac_exeext conftest.$ac_ext
20837 ac_res=`eval echo '${'$as_ac_var'}'`
20838 { echo "$as_me:$LINENO: result: $ac_res" >&5
20839 echo "${ECHO_T}$ac_res" >&6; }
20840 if test `eval echo '${'$as_ac_var'}'` = yes; then
20841 cat >>confdefs.h <<_ACEOF
20842 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20843 _ACEOF
20844 cat >conftest.$ac_ext <<_ACEOF
20845 /* confdefs.h. */
20846 _ACEOF
20847 cat confdefs.h >>conftest.$ac_ext
20848 cat >>conftest.$ac_ext <<_ACEOF
20849 /* end confdefs.h. */
20850 #include <sys/time.h>
20852 main ()
20854 gettimeofday((struct timeval*)0,(struct timezone*)0);
20856 return 0;
20858 _ACEOF
20859 rm -f conftest.$ac_objext
20860 if { (ac_try="$ac_compile"
20861 case "(($ac_try" in
20862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20863 *) ac_try_echo=$ac_try;;
20864 esac
20865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20866 (eval "$ac_compile") 2>conftest.er1
20867 ac_status=$?
20868 grep -v '^ *+' conftest.er1 >conftest.err
20869 rm -f conftest.er1
20870 cat conftest.err >&5
20871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20872 (exit $ac_status); } && {
20873 test -z "$ac_c_werror_flag" ||
20874 test ! -s conftest.err
20875 } && test -s conftest.$ac_objext; then
20877 else
20878 echo "$as_me: failed program was:" >&5
20879 sed 's/^/| /' conftest.$ac_ext >&5
20882 cat >>confdefs.h <<\_ACEOF
20883 #define GETTIMEOFDAY_NO_TZ 1
20884 _ACEOF
20889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20892 done
20895 { echo "$as_me:$LINENO: checking for major" >&5
20896 echo $ECHO_N "checking for major... $ECHO_C" >&6; }
20897 cat >conftest.$ac_ext <<_ACEOF
20898 /* confdefs.h. */
20899 _ACEOF
20900 cat confdefs.h >>conftest.$ac_ext
20901 cat >>conftest.$ac_ext <<_ACEOF
20902 /* end confdefs.h. */
20904 #if defined(MAJOR_IN_MKDEV)
20905 #include <sys/mkdev.h>
20906 #elif defined(MAJOR_IN_SYSMACROS)
20907 #include <sys/sysmacros.h>
20908 #else
20909 #include <sys/types.h>
20910 #endif
20913 main ()
20916 makedev(major(0),minor(0));
20919 return 0;
20921 _ACEOF
20922 rm -f conftest.$ac_objext conftest$ac_exeext
20923 if { (ac_try="$ac_link"
20924 case "(($ac_try" in
20925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20926 *) ac_try_echo=$ac_try;;
20927 esac
20928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20929 (eval "$ac_link") 2>conftest.er1
20930 ac_status=$?
20931 grep -v '^ *+' conftest.er1 >conftest.err
20932 rm -f conftest.er1
20933 cat conftest.err >&5
20934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20935 (exit $ac_status); } && {
20936 test -z "$ac_c_werror_flag" ||
20937 test ! -s conftest.err
20938 } && test -s conftest$ac_exeext &&
20939 $as_test_x conftest$ac_exeext; then
20942 cat >>confdefs.h <<\_ACEOF
20943 #define HAVE_DEVICE_MACROS 1
20944 _ACEOF
20946 { echo "$as_me:$LINENO: result: yes" >&5
20947 echo "${ECHO_T}yes" >&6; }
20949 else
20950 echo "$as_me: failed program was:" >&5
20951 sed 's/^/| /' conftest.$ac_ext >&5
20954 { echo "$as_me:$LINENO: result: no" >&5
20955 echo "${ECHO_T}no" >&6; }
20959 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20960 conftest$ac_exeext conftest.$ac_ext
20962 # On OSF/1 V5.1, getaddrinfo is available, but a define
20963 # for [no]getaddrinfo in netdb.h.
20964 { echo "$as_me:$LINENO: checking for getaddrinfo" >&5
20965 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
20966 cat >conftest.$ac_ext <<_ACEOF
20967 /* confdefs.h. */
20968 _ACEOF
20969 cat confdefs.h >>conftest.$ac_ext
20970 cat >>conftest.$ac_ext <<_ACEOF
20971 /* end confdefs.h. */
20973 #include <sys/types.h>
20974 #include <sys/socket.h>
20975 #include <netdb.h>
20976 #include <stdio.h>
20979 main ()
20981 getaddrinfo(NULL, NULL, NULL, NULL);
20983 return 0;
20985 _ACEOF
20986 rm -f conftest.$ac_objext conftest$ac_exeext
20987 if { (ac_try="$ac_link"
20988 case "(($ac_try" in
20989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20990 *) ac_try_echo=$ac_try;;
20991 esac
20992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20993 (eval "$ac_link") 2>conftest.er1
20994 ac_status=$?
20995 grep -v '^ *+' conftest.er1 >conftest.err
20996 rm -f conftest.er1
20997 cat conftest.err >&5
20998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20999 (exit $ac_status); } && {
21000 test -z "$ac_c_werror_flag" ||
21001 test ! -s conftest.err
21002 } && test -s conftest$ac_exeext &&
21003 $as_test_x conftest$ac_exeext; then
21004 have_getaddrinfo=yes
21005 else
21006 echo "$as_me: failed program was:" >&5
21007 sed 's/^/| /' conftest.$ac_ext >&5
21009 have_getaddrinfo=no
21012 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21013 conftest$ac_exeext conftest.$ac_ext
21014 { echo "$as_me:$LINENO: result: $have_getaddrinfo" >&5
21015 echo "${ECHO_T}$have_getaddrinfo" >&6; }
21016 if test $have_getaddrinfo = yes
21017 then
21018 { echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
21019 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; }
21020 if test "${ac_cv_buggy_getaddrinfo+set}" = set; then
21021 echo $ECHO_N "(cached) $ECHO_C" >&6
21022 else
21023 if test "$cross_compiling" = yes; then
21024 ac_cv_buggy_getaddrinfo=yes
21025 else
21026 cat >conftest.$ac_ext <<_ACEOF
21027 /* confdefs.h. */
21028 _ACEOF
21029 cat confdefs.h >>conftest.$ac_ext
21030 cat >>conftest.$ac_ext <<_ACEOF
21031 /* end confdefs.h. */
21033 #include <sys/types.h>
21034 #include <netdb.h>
21035 #include <string.h>
21036 #include <sys/socket.h>
21037 #include <netinet/in.h>
21039 int main()
21041 int passive, gaierr, inet4 = 0, inet6 = 0;
21042 struct addrinfo hints, *ai, *aitop;
21043 char straddr[INET6_ADDRSTRLEN], strport[16];
21045 for (passive = 0; passive <= 1; passive++) {
21046 memset(&hints, 0, sizeof(hints));
21047 hints.ai_family = AF_UNSPEC;
21048 hints.ai_flags = passive ? AI_PASSIVE : 0;
21049 hints.ai_socktype = SOCK_STREAM;
21050 hints.ai_protocol = IPPROTO_TCP;
21051 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
21052 (void)gai_strerror(gaierr);
21053 goto bad;
21055 for (ai = aitop; ai; ai = ai->ai_next) {
21056 if (ai->ai_addr == NULL ||
21057 ai->ai_addrlen == 0 ||
21058 getnameinfo(ai->ai_addr, ai->ai_addrlen,
21059 straddr, sizeof(straddr), strport, sizeof(strport),
21060 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
21061 goto bad;
21063 switch (ai->ai_family) {
21064 case AF_INET:
21065 if (strcmp(strport, "54321") != 0) {
21066 goto bad;
21068 if (passive) {
21069 if (strcmp(straddr, "0.0.0.0") != 0) {
21070 goto bad;
21072 } else {
21073 if (strcmp(straddr, "127.0.0.1") != 0) {
21074 goto bad;
21077 inet4++;
21078 break;
21079 case AF_INET6:
21080 if (strcmp(strport, "54321") != 0) {
21081 goto bad;
21083 if (passive) {
21084 if (strcmp(straddr, "::") != 0) {
21085 goto bad;
21087 } else {
21088 if (strcmp(straddr, "::1") != 0) {
21089 goto bad;
21092 inet6++;
21093 break;
21094 case AF_UNSPEC:
21095 goto bad;
21096 break;
21097 default:
21098 /* another family support? */
21099 break;
21104 if (!(inet4 == 0 || inet4 == 2))
21105 goto bad;
21106 if (!(inet6 == 0 || inet6 == 2))
21107 goto bad;
21109 if (aitop)
21110 freeaddrinfo(aitop);
21111 return 0;
21113 bad:
21114 if (aitop)
21115 freeaddrinfo(aitop);
21116 return 1;
21119 _ACEOF
21120 rm -f conftest$ac_exeext
21121 if { (ac_try="$ac_link"
21122 case "(($ac_try" in
21123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21124 *) ac_try_echo=$ac_try;;
21125 esac
21126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21127 (eval "$ac_link") 2>&5
21128 ac_status=$?
21129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21130 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
21137 ac_status=$?
21138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21139 (exit $ac_status); }; }; then
21140 ac_cv_buggy_getaddrinfo=no
21141 else
21142 echo "$as_me: program exited with status $ac_status" >&5
21143 echo "$as_me: failed program was:" >&5
21144 sed 's/^/| /' conftest.$ac_ext >&5
21146 ( exit $ac_status )
21147 ac_cv_buggy_getaddrinfo=yes
21149 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21157 if test $have_getaddrinfo = no -o "$ac_cv_buggy_getaddrinfo" = yes
21158 then
21159 if test $ipv6 = yes
21160 then
21161 echo 'Fatal: You must get working getaddrinfo() function.'
21162 echo ' or you can specify "--disable-ipv6"'.
21163 exit 1
21165 else
21167 cat >>confdefs.h <<\_ACEOF
21168 #define HAVE_GETADDRINFO 1
21169 _ACEOF
21173 for ac_func in getnameinfo
21175 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21176 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21177 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21178 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21179 echo $ECHO_N "(cached) $ECHO_C" >&6
21180 else
21181 cat >conftest.$ac_ext <<_ACEOF
21182 /* confdefs.h. */
21183 _ACEOF
21184 cat confdefs.h >>conftest.$ac_ext
21185 cat >>conftest.$ac_ext <<_ACEOF
21186 /* end confdefs.h. */
21187 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21188 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21189 #define $ac_func innocuous_$ac_func
21191 /* System header to define __stub macros and hopefully few prototypes,
21192 which can conflict with char $ac_func (); below.
21193 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21194 <limits.h> exists even on freestanding compilers. */
21196 #ifdef __STDC__
21197 # include <limits.h>
21198 #else
21199 # include <assert.h>
21200 #endif
21202 #undef $ac_func
21204 /* Override any GCC internal prototype to avoid an error.
21205 Use char because int might match the return type of a GCC
21206 builtin and then its argument prototype would still apply. */
21207 #ifdef __cplusplus
21208 extern "C"
21209 #endif
21210 char $ac_func ();
21211 /* The GNU C library defines this for functions which it implements
21212 to always fail with ENOSYS. Some functions are actually named
21213 something starting with __ and the normal name is an alias. */
21214 #if defined __stub_$ac_func || defined __stub___$ac_func
21215 choke me
21216 #endif
21219 main ()
21221 return $ac_func ();
21223 return 0;
21225 _ACEOF
21226 rm -f conftest.$ac_objext conftest$ac_exeext
21227 if { (ac_try="$ac_link"
21228 case "(($ac_try" in
21229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21230 *) ac_try_echo=$ac_try;;
21231 esac
21232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21233 (eval "$ac_link") 2>conftest.er1
21234 ac_status=$?
21235 grep -v '^ *+' conftest.er1 >conftest.err
21236 rm -f conftest.er1
21237 cat conftest.err >&5
21238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21239 (exit $ac_status); } && {
21240 test -z "$ac_c_werror_flag" ||
21241 test ! -s conftest.err
21242 } && test -s conftest$ac_exeext &&
21243 $as_test_x conftest$ac_exeext; then
21244 eval "$as_ac_var=yes"
21245 else
21246 echo "$as_me: failed program was:" >&5
21247 sed 's/^/| /' conftest.$ac_ext >&5
21249 eval "$as_ac_var=no"
21252 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21253 conftest$ac_exeext conftest.$ac_ext
21255 ac_res=`eval echo '${'$as_ac_var'}'`
21256 { echo "$as_me:$LINENO: result: $ac_res" >&5
21257 echo "${ECHO_T}$ac_res" >&6; }
21258 if test `eval echo '${'$as_ac_var'}'` = yes; then
21259 cat >>confdefs.h <<_ACEOF
21260 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21261 _ACEOF
21264 done
21267 # checks for structures
21268 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21269 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
21270 if test "${ac_cv_header_time+set}" = set; then
21271 echo $ECHO_N "(cached) $ECHO_C" >&6
21272 else
21273 cat >conftest.$ac_ext <<_ACEOF
21274 /* confdefs.h. */
21275 _ACEOF
21276 cat confdefs.h >>conftest.$ac_ext
21277 cat >>conftest.$ac_ext <<_ACEOF
21278 /* end confdefs.h. */
21279 #include <sys/types.h>
21280 #include <sys/time.h>
21281 #include <time.h>
21284 main ()
21286 if ((struct tm *) 0)
21287 return 0;
21289 return 0;
21291 _ACEOF
21292 rm -f conftest.$ac_objext
21293 if { (ac_try="$ac_compile"
21294 case "(($ac_try" in
21295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21296 *) ac_try_echo=$ac_try;;
21297 esac
21298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21299 (eval "$ac_compile") 2>conftest.er1
21300 ac_status=$?
21301 grep -v '^ *+' conftest.er1 >conftest.err
21302 rm -f conftest.er1
21303 cat conftest.err >&5
21304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21305 (exit $ac_status); } && {
21306 test -z "$ac_c_werror_flag" ||
21307 test ! -s conftest.err
21308 } && test -s conftest.$ac_objext; then
21309 ac_cv_header_time=yes
21310 else
21311 echo "$as_me: failed program was:" >&5
21312 sed 's/^/| /' conftest.$ac_ext >&5
21314 ac_cv_header_time=no
21317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21319 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21320 echo "${ECHO_T}$ac_cv_header_time" >&6; }
21321 if test $ac_cv_header_time = yes; then
21323 cat >>confdefs.h <<\_ACEOF
21324 #define TIME_WITH_SYS_TIME 1
21325 _ACEOF
21329 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
21330 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
21331 if test "${ac_cv_struct_tm+set}" = set; then
21332 echo $ECHO_N "(cached) $ECHO_C" >&6
21333 else
21334 cat >conftest.$ac_ext <<_ACEOF
21335 /* confdefs.h. */
21336 _ACEOF
21337 cat confdefs.h >>conftest.$ac_ext
21338 cat >>conftest.$ac_ext <<_ACEOF
21339 /* end confdefs.h. */
21340 #include <sys/types.h>
21341 #include <time.h>
21344 main ()
21346 struct tm tm;
21347 int *p = &tm.tm_sec;
21348 return !p;
21350 return 0;
21352 _ACEOF
21353 rm -f conftest.$ac_objext
21354 if { (ac_try="$ac_compile"
21355 case "(($ac_try" in
21356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21357 *) ac_try_echo=$ac_try;;
21358 esac
21359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21360 (eval "$ac_compile") 2>conftest.er1
21361 ac_status=$?
21362 grep -v '^ *+' conftest.er1 >conftest.err
21363 rm -f conftest.er1
21364 cat conftest.err >&5
21365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21366 (exit $ac_status); } && {
21367 test -z "$ac_c_werror_flag" ||
21368 test ! -s conftest.err
21369 } && test -s conftest.$ac_objext; then
21370 ac_cv_struct_tm=time.h
21371 else
21372 echo "$as_me: failed program was:" >&5
21373 sed 's/^/| /' conftest.$ac_ext >&5
21375 ac_cv_struct_tm=sys/time.h
21378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21380 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
21381 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
21382 if test $ac_cv_struct_tm = sys/time.h; then
21384 cat >>confdefs.h <<\_ACEOF
21385 #define TM_IN_SYS_TIME 1
21386 _ACEOF
21390 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
21391 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
21392 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
21393 echo $ECHO_N "(cached) $ECHO_C" >&6
21394 else
21395 cat >conftest.$ac_ext <<_ACEOF
21396 /* confdefs.h. */
21397 _ACEOF
21398 cat confdefs.h >>conftest.$ac_ext
21399 cat >>conftest.$ac_ext <<_ACEOF
21400 /* end confdefs.h. */
21401 #include <sys/types.h>
21402 #include <$ac_cv_struct_tm>
21406 main ()
21408 static struct tm ac_aggr;
21409 if (ac_aggr.tm_zone)
21410 return 0;
21412 return 0;
21414 _ACEOF
21415 rm -f conftest.$ac_objext
21416 if { (ac_try="$ac_compile"
21417 case "(($ac_try" in
21418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21419 *) ac_try_echo=$ac_try;;
21420 esac
21421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21422 (eval "$ac_compile") 2>conftest.er1
21423 ac_status=$?
21424 grep -v '^ *+' conftest.er1 >conftest.err
21425 rm -f conftest.er1
21426 cat conftest.err >&5
21427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21428 (exit $ac_status); } && {
21429 test -z "$ac_c_werror_flag" ||
21430 test ! -s conftest.err
21431 } && test -s conftest.$ac_objext; then
21432 ac_cv_member_struct_tm_tm_zone=yes
21433 else
21434 echo "$as_me: failed program was:" >&5
21435 sed 's/^/| /' conftest.$ac_ext >&5
21437 cat >conftest.$ac_ext <<_ACEOF
21438 /* confdefs.h. */
21439 _ACEOF
21440 cat confdefs.h >>conftest.$ac_ext
21441 cat >>conftest.$ac_ext <<_ACEOF
21442 /* end confdefs.h. */
21443 #include <sys/types.h>
21444 #include <$ac_cv_struct_tm>
21448 main ()
21450 static struct tm ac_aggr;
21451 if (sizeof ac_aggr.tm_zone)
21452 return 0;
21454 return 0;
21456 _ACEOF
21457 rm -f conftest.$ac_objext
21458 if { (ac_try="$ac_compile"
21459 case "(($ac_try" in
21460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21461 *) ac_try_echo=$ac_try;;
21462 esac
21463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21464 (eval "$ac_compile") 2>conftest.er1
21465 ac_status=$?
21466 grep -v '^ *+' conftest.er1 >conftest.err
21467 rm -f conftest.er1
21468 cat conftest.err >&5
21469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21470 (exit $ac_status); } && {
21471 test -z "$ac_c_werror_flag" ||
21472 test ! -s conftest.err
21473 } && test -s conftest.$ac_objext; then
21474 ac_cv_member_struct_tm_tm_zone=yes
21475 else
21476 echo "$as_me: failed program was:" >&5
21477 sed 's/^/| /' conftest.$ac_ext >&5
21479 ac_cv_member_struct_tm_tm_zone=no
21482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21487 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
21488 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
21489 if test $ac_cv_member_struct_tm_tm_zone = yes; then
21491 cat >>confdefs.h <<_ACEOF
21492 #define HAVE_STRUCT_TM_TM_ZONE 1
21493 _ACEOF
21498 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21500 cat >>confdefs.h <<\_ACEOF
21501 #define HAVE_TM_ZONE 1
21502 _ACEOF
21504 else
21505 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
21506 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
21507 if test "${ac_cv_have_decl_tzname+set}" = set; then
21508 echo $ECHO_N "(cached) $ECHO_C" >&6
21509 else
21510 cat >conftest.$ac_ext <<_ACEOF
21511 /* confdefs.h. */
21512 _ACEOF
21513 cat confdefs.h >>conftest.$ac_ext
21514 cat >>conftest.$ac_ext <<_ACEOF
21515 /* end confdefs.h. */
21516 #include <time.h>
21519 main ()
21521 #ifndef tzname
21522 (void) tzname;
21523 #endif
21526 return 0;
21528 _ACEOF
21529 rm -f conftest.$ac_objext
21530 if { (ac_try="$ac_compile"
21531 case "(($ac_try" in
21532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21533 *) ac_try_echo=$ac_try;;
21534 esac
21535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21536 (eval "$ac_compile") 2>conftest.er1
21537 ac_status=$?
21538 grep -v '^ *+' conftest.er1 >conftest.err
21539 rm -f conftest.er1
21540 cat conftest.err >&5
21541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21542 (exit $ac_status); } && {
21543 test -z "$ac_c_werror_flag" ||
21544 test ! -s conftest.err
21545 } && test -s conftest.$ac_objext; then
21546 ac_cv_have_decl_tzname=yes
21547 else
21548 echo "$as_me: failed program was:" >&5
21549 sed 's/^/| /' conftest.$ac_ext >&5
21551 ac_cv_have_decl_tzname=no
21554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21556 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
21557 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
21558 if test $ac_cv_have_decl_tzname = yes; then
21560 cat >>confdefs.h <<_ACEOF
21561 #define HAVE_DECL_TZNAME 1
21562 _ACEOF
21565 else
21566 cat >>confdefs.h <<_ACEOF
21567 #define HAVE_DECL_TZNAME 0
21568 _ACEOF
21574 { echo "$as_me:$LINENO: checking for tzname" >&5
21575 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
21576 if test "${ac_cv_var_tzname+set}" = set; then
21577 echo $ECHO_N "(cached) $ECHO_C" >&6
21578 else
21579 cat >conftest.$ac_ext <<_ACEOF
21580 /* confdefs.h. */
21581 _ACEOF
21582 cat confdefs.h >>conftest.$ac_ext
21583 cat >>conftest.$ac_ext <<_ACEOF
21584 /* end confdefs.h. */
21585 #include <time.h>
21586 #if !HAVE_DECL_TZNAME
21587 extern char *tzname[];
21588 #endif
21591 main ()
21593 return tzname[0][0];
21595 return 0;
21597 _ACEOF
21598 rm -f conftest.$ac_objext conftest$ac_exeext
21599 if { (ac_try="$ac_link"
21600 case "(($ac_try" in
21601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21602 *) ac_try_echo=$ac_try;;
21603 esac
21604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21605 (eval "$ac_link") 2>conftest.er1
21606 ac_status=$?
21607 grep -v '^ *+' conftest.er1 >conftest.err
21608 rm -f conftest.er1
21609 cat conftest.err >&5
21610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21611 (exit $ac_status); } && {
21612 test -z "$ac_c_werror_flag" ||
21613 test ! -s conftest.err
21614 } && test -s conftest$ac_exeext &&
21615 $as_test_x conftest$ac_exeext; then
21616 ac_cv_var_tzname=yes
21617 else
21618 echo "$as_me: failed program was:" >&5
21619 sed 's/^/| /' conftest.$ac_ext >&5
21621 ac_cv_var_tzname=no
21624 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21625 conftest$ac_exeext conftest.$ac_ext
21627 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21628 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
21629 if test $ac_cv_var_tzname = yes; then
21631 cat >>confdefs.h <<\_ACEOF
21632 #define HAVE_TZNAME 1
21633 _ACEOF
21638 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
21639 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
21640 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
21641 echo $ECHO_N "(cached) $ECHO_C" >&6
21642 else
21643 cat >conftest.$ac_ext <<_ACEOF
21644 /* confdefs.h. */
21645 _ACEOF
21646 cat confdefs.h >>conftest.$ac_ext
21647 cat >>conftest.$ac_ext <<_ACEOF
21648 /* end confdefs.h. */
21649 $ac_includes_default
21651 main ()
21653 static struct stat ac_aggr;
21654 if (ac_aggr.st_rdev)
21655 return 0;
21657 return 0;
21659 _ACEOF
21660 rm -f conftest.$ac_objext
21661 if { (ac_try="$ac_compile"
21662 case "(($ac_try" in
21663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21664 *) ac_try_echo=$ac_try;;
21665 esac
21666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21667 (eval "$ac_compile") 2>conftest.er1
21668 ac_status=$?
21669 grep -v '^ *+' conftest.er1 >conftest.err
21670 rm -f conftest.er1
21671 cat conftest.err >&5
21672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21673 (exit $ac_status); } && {
21674 test -z "$ac_c_werror_flag" ||
21675 test ! -s conftest.err
21676 } && test -s conftest.$ac_objext; then
21677 ac_cv_member_struct_stat_st_rdev=yes
21678 else
21679 echo "$as_me: failed program was:" >&5
21680 sed 's/^/| /' conftest.$ac_ext >&5
21682 cat >conftest.$ac_ext <<_ACEOF
21683 /* confdefs.h. */
21684 _ACEOF
21685 cat confdefs.h >>conftest.$ac_ext
21686 cat >>conftest.$ac_ext <<_ACEOF
21687 /* end confdefs.h. */
21688 $ac_includes_default
21690 main ()
21692 static struct stat ac_aggr;
21693 if (sizeof ac_aggr.st_rdev)
21694 return 0;
21696 return 0;
21698 _ACEOF
21699 rm -f conftest.$ac_objext
21700 if { (ac_try="$ac_compile"
21701 case "(($ac_try" in
21702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21703 *) ac_try_echo=$ac_try;;
21704 esac
21705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21706 (eval "$ac_compile") 2>conftest.er1
21707 ac_status=$?
21708 grep -v '^ *+' conftest.er1 >conftest.err
21709 rm -f conftest.er1
21710 cat conftest.err >&5
21711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21712 (exit $ac_status); } && {
21713 test -z "$ac_c_werror_flag" ||
21714 test ! -s conftest.err
21715 } && test -s conftest.$ac_objext; then
21716 ac_cv_member_struct_stat_st_rdev=yes
21717 else
21718 echo "$as_me: failed program was:" >&5
21719 sed 's/^/| /' conftest.$ac_ext >&5
21721 ac_cv_member_struct_stat_st_rdev=no
21724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21729 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
21730 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
21731 if test $ac_cv_member_struct_stat_st_rdev = yes; then
21733 cat >>confdefs.h <<_ACEOF
21734 #define HAVE_STRUCT_STAT_ST_RDEV 1
21735 _ACEOF
21740 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
21741 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
21742 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
21743 echo $ECHO_N "(cached) $ECHO_C" >&6
21744 else
21745 cat >conftest.$ac_ext <<_ACEOF
21746 /* confdefs.h. */
21747 _ACEOF
21748 cat confdefs.h >>conftest.$ac_ext
21749 cat >>conftest.$ac_ext <<_ACEOF
21750 /* end confdefs.h. */
21751 $ac_includes_default
21753 main ()
21755 static struct stat ac_aggr;
21756 if (ac_aggr.st_blksize)
21757 return 0;
21759 return 0;
21761 _ACEOF
21762 rm -f conftest.$ac_objext
21763 if { (ac_try="$ac_compile"
21764 case "(($ac_try" in
21765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21766 *) ac_try_echo=$ac_try;;
21767 esac
21768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21769 (eval "$ac_compile") 2>conftest.er1
21770 ac_status=$?
21771 grep -v '^ *+' conftest.er1 >conftest.err
21772 rm -f conftest.er1
21773 cat conftest.err >&5
21774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21775 (exit $ac_status); } && {
21776 test -z "$ac_c_werror_flag" ||
21777 test ! -s conftest.err
21778 } && test -s conftest.$ac_objext; then
21779 ac_cv_member_struct_stat_st_blksize=yes
21780 else
21781 echo "$as_me: failed program was:" >&5
21782 sed 's/^/| /' conftest.$ac_ext >&5
21784 cat >conftest.$ac_ext <<_ACEOF
21785 /* confdefs.h. */
21786 _ACEOF
21787 cat confdefs.h >>conftest.$ac_ext
21788 cat >>conftest.$ac_ext <<_ACEOF
21789 /* end confdefs.h. */
21790 $ac_includes_default
21792 main ()
21794 static struct stat ac_aggr;
21795 if (sizeof ac_aggr.st_blksize)
21796 return 0;
21798 return 0;
21800 _ACEOF
21801 rm -f conftest.$ac_objext
21802 if { (ac_try="$ac_compile"
21803 case "(($ac_try" in
21804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21805 *) ac_try_echo=$ac_try;;
21806 esac
21807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21808 (eval "$ac_compile") 2>conftest.er1
21809 ac_status=$?
21810 grep -v '^ *+' conftest.er1 >conftest.err
21811 rm -f conftest.er1
21812 cat conftest.err >&5
21813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21814 (exit $ac_status); } && {
21815 test -z "$ac_c_werror_flag" ||
21816 test ! -s conftest.err
21817 } && test -s conftest.$ac_objext; then
21818 ac_cv_member_struct_stat_st_blksize=yes
21819 else
21820 echo "$as_me: failed program was:" >&5
21821 sed 's/^/| /' conftest.$ac_ext >&5
21823 ac_cv_member_struct_stat_st_blksize=no
21826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21831 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
21832 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
21833 if test $ac_cv_member_struct_stat_st_blksize = yes; then
21835 cat >>confdefs.h <<_ACEOF
21836 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
21837 _ACEOF
21842 { echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
21843 echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6; }
21844 if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
21845 echo $ECHO_N "(cached) $ECHO_C" >&6
21846 else
21847 cat >conftest.$ac_ext <<_ACEOF
21848 /* confdefs.h. */
21849 _ACEOF
21850 cat confdefs.h >>conftest.$ac_ext
21851 cat >>conftest.$ac_ext <<_ACEOF
21852 /* end confdefs.h. */
21853 $ac_includes_default
21855 main ()
21857 static struct stat ac_aggr;
21858 if (ac_aggr.st_flags)
21859 return 0;
21861 return 0;
21863 _ACEOF
21864 rm -f conftest.$ac_objext
21865 if { (ac_try="$ac_compile"
21866 case "(($ac_try" in
21867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21868 *) ac_try_echo=$ac_try;;
21869 esac
21870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21871 (eval "$ac_compile") 2>conftest.er1
21872 ac_status=$?
21873 grep -v '^ *+' conftest.er1 >conftest.err
21874 rm -f conftest.er1
21875 cat conftest.err >&5
21876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21877 (exit $ac_status); } && {
21878 test -z "$ac_c_werror_flag" ||
21879 test ! -s conftest.err
21880 } && test -s conftest.$ac_objext; then
21881 ac_cv_member_struct_stat_st_flags=yes
21882 else
21883 echo "$as_me: failed program was:" >&5
21884 sed 's/^/| /' conftest.$ac_ext >&5
21886 cat >conftest.$ac_ext <<_ACEOF
21887 /* confdefs.h. */
21888 _ACEOF
21889 cat confdefs.h >>conftest.$ac_ext
21890 cat >>conftest.$ac_ext <<_ACEOF
21891 /* end confdefs.h. */
21892 $ac_includes_default
21894 main ()
21896 static struct stat ac_aggr;
21897 if (sizeof ac_aggr.st_flags)
21898 return 0;
21900 return 0;
21902 _ACEOF
21903 rm -f conftest.$ac_objext
21904 if { (ac_try="$ac_compile"
21905 case "(($ac_try" in
21906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21907 *) ac_try_echo=$ac_try;;
21908 esac
21909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21910 (eval "$ac_compile") 2>conftest.er1
21911 ac_status=$?
21912 grep -v '^ *+' conftest.er1 >conftest.err
21913 rm -f conftest.er1
21914 cat conftest.err >&5
21915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21916 (exit $ac_status); } && {
21917 test -z "$ac_c_werror_flag" ||
21918 test ! -s conftest.err
21919 } && test -s conftest.$ac_objext; then
21920 ac_cv_member_struct_stat_st_flags=yes
21921 else
21922 echo "$as_me: failed program was:" >&5
21923 sed 's/^/| /' conftest.$ac_ext >&5
21925 ac_cv_member_struct_stat_st_flags=no
21928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21933 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
21934 echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6; }
21935 if test $ac_cv_member_struct_stat_st_flags = yes; then
21937 cat >>confdefs.h <<_ACEOF
21938 #define HAVE_STRUCT_STAT_ST_FLAGS 1
21939 _ACEOF
21944 { echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
21945 echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6; }
21946 if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
21947 echo $ECHO_N "(cached) $ECHO_C" >&6
21948 else
21949 cat >conftest.$ac_ext <<_ACEOF
21950 /* confdefs.h. */
21951 _ACEOF
21952 cat confdefs.h >>conftest.$ac_ext
21953 cat >>conftest.$ac_ext <<_ACEOF
21954 /* end confdefs.h. */
21955 $ac_includes_default
21957 main ()
21959 static struct stat ac_aggr;
21960 if (ac_aggr.st_gen)
21961 return 0;
21963 return 0;
21965 _ACEOF
21966 rm -f conftest.$ac_objext
21967 if { (ac_try="$ac_compile"
21968 case "(($ac_try" in
21969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21970 *) ac_try_echo=$ac_try;;
21971 esac
21972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21973 (eval "$ac_compile") 2>conftest.er1
21974 ac_status=$?
21975 grep -v '^ *+' conftest.er1 >conftest.err
21976 rm -f conftest.er1
21977 cat conftest.err >&5
21978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21979 (exit $ac_status); } && {
21980 test -z "$ac_c_werror_flag" ||
21981 test ! -s conftest.err
21982 } && test -s conftest.$ac_objext; then
21983 ac_cv_member_struct_stat_st_gen=yes
21984 else
21985 echo "$as_me: failed program was:" >&5
21986 sed 's/^/| /' conftest.$ac_ext >&5
21988 cat >conftest.$ac_ext <<_ACEOF
21989 /* confdefs.h. */
21990 _ACEOF
21991 cat confdefs.h >>conftest.$ac_ext
21992 cat >>conftest.$ac_ext <<_ACEOF
21993 /* end confdefs.h. */
21994 $ac_includes_default
21996 main ()
21998 static struct stat ac_aggr;
21999 if (sizeof ac_aggr.st_gen)
22000 return 0;
22002 return 0;
22004 _ACEOF
22005 rm -f conftest.$ac_objext
22006 if { (ac_try="$ac_compile"
22007 case "(($ac_try" in
22008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22009 *) ac_try_echo=$ac_try;;
22010 esac
22011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22012 (eval "$ac_compile") 2>conftest.er1
22013 ac_status=$?
22014 grep -v '^ *+' conftest.er1 >conftest.err
22015 rm -f conftest.er1
22016 cat conftest.err >&5
22017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22018 (exit $ac_status); } && {
22019 test -z "$ac_c_werror_flag" ||
22020 test ! -s conftest.err
22021 } && test -s conftest.$ac_objext; then
22022 ac_cv_member_struct_stat_st_gen=yes
22023 else
22024 echo "$as_me: failed program was:" >&5
22025 sed 's/^/| /' conftest.$ac_ext >&5
22027 ac_cv_member_struct_stat_st_gen=no
22030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22035 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
22036 echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6; }
22037 if test $ac_cv_member_struct_stat_st_gen = yes; then
22039 cat >>confdefs.h <<_ACEOF
22040 #define HAVE_STRUCT_STAT_ST_GEN 1
22041 _ACEOF
22046 { echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
22047 echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6; }
22048 if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
22049 echo $ECHO_N "(cached) $ECHO_C" >&6
22050 else
22051 cat >conftest.$ac_ext <<_ACEOF
22052 /* confdefs.h. */
22053 _ACEOF
22054 cat confdefs.h >>conftest.$ac_ext
22055 cat >>conftest.$ac_ext <<_ACEOF
22056 /* end confdefs.h. */
22057 $ac_includes_default
22059 main ()
22061 static struct stat ac_aggr;
22062 if (ac_aggr.st_birthtime)
22063 return 0;
22065 return 0;
22067 _ACEOF
22068 rm -f conftest.$ac_objext
22069 if { (ac_try="$ac_compile"
22070 case "(($ac_try" in
22071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22072 *) ac_try_echo=$ac_try;;
22073 esac
22074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22075 (eval "$ac_compile") 2>conftest.er1
22076 ac_status=$?
22077 grep -v '^ *+' conftest.er1 >conftest.err
22078 rm -f conftest.er1
22079 cat conftest.err >&5
22080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22081 (exit $ac_status); } && {
22082 test -z "$ac_c_werror_flag" ||
22083 test ! -s conftest.err
22084 } && test -s conftest.$ac_objext; then
22085 ac_cv_member_struct_stat_st_birthtime=yes
22086 else
22087 echo "$as_me: failed program was:" >&5
22088 sed 's/^/| /' conftest.$ac_ext >&5
22090 cat >conftest.$ac_ext <<_ACEOF
22091 /* confdefs.h. */
22092 _ACEOF
22093 cat confdefs.h >>conftest.$ac_ext
22094 cat >>conftest.$ac_ext <<_ACEOF
22095 /* end confdefs.h. */
22096 $ac_includes_default
22098 main ()
22100 static struct stat ac_aggr;
22101 if (sizeof ac_aggr.st_birthtime)
22102 return 0;
22104 return 0;
22106 _ACEOF
22107 rm -f conftest.$ac_objext
22108 if { (ac_try="$ac_compile"
22109 case "(($ac_try" in
22110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22111 *) ac_try_echo=$ac_try;;
22112 esac
22113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22114 (eval "$ac_compile") 2>conftest.er1
22115 ac_status=$?
22116 grep -v '^ *+' conftest.er1 >conftest.err
22117 rm -f conftest.er1
22118 cat conftest.err >&5
22119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22120 (exit $ac_status); } && {
22121 test -z "$ac_c_werror_flag" ||
22122 test ! -s conftest.err
22123 } && test -s conftest.$ac_objext; then
22124 ac_cv_member_struct_stat_st_birthtime=yes
22125 else
22126 echo "$as_me: failed program was:" >&5
22127 sed 's/^/| /' conftest.$ac_ext >&5
22129 ac_cv_member_struct_stat_st_birthtime=no
22132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22137 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
22138 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6; }
22139 if test $ac_cv_member_struct_stat_st_birthtime = yes; then
22141 cat >>confdefs.h <<_ACEOF
22142 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
22143 _ACEOF
22148 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
22149 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
22150 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
22151 echo $ECHO_N "(cached) $ECHO_C" >&6
22152 else
22153 cat >conftest.$ac_ext <<_ACEOF
22154 /* confdefs.h. */
22155 _ACEOF
22156 cat confdefs.h >>conftest.$ac_ext
22157 cat >>conftest.$ac_ext <<_ACEOF
22158 /* end confdefs.h. */
22159 $ac_includes_default
22161 main ()
22163 static struct stat ac_aggr;
22164 if (ac_aggr.st_blocks)
22165 return 0;
22167 return 0;
22169 _ACEOF
22170 rm -f conftest.$ac_objext
22171 if { (ac_try="$ac_compile"
22172 case "(($ac_try" in
22173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22174 *) ac_try_echo=$ac_try;;
22175 esac
22176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22177 (eval "$ac_compile") 2>conftest.er1
22178 ac_status=$?
22179 grep -v '^ *+' conftest.er1 >conftest.err
22180 rm -f conftest.er1
22181 cat conftest.err >&5
22182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22183 (exit $ac_status); } && {
22184 test -z "$ac_c_werror_flag" ||
22185 test ! -s conftest.err
22186 } && test -s conftest.$ac_objext; then
22187 ac_cv_member_struct_stat_st_blocks=yes
22188 else
22189 echo "$as_me: failed program was:" >&5
22190 sed 's/^/| /' conftest.$ac_ext >&5
22192 cat >conftest.$ac_ext <<_ACEOF
22193 /* confdefs.h. */
22194 _ACEOF
22195 cat confdefs.h >>conftest.$ac_ext
22196 cat >>conftest.$ac_ext <<_ACEOF
22197 /* end confdefs.h. */
22198 $ac_includes_default
22200 main ()
22202 static struct stat ac_aggr;
22203 if (sizeof ac_aggr.st_blocks)
22204 return 0;
22206 return 0;
22208 _ACEOF
22209 rm -f conftest.$ac_objext
22210 if { (ac_try="$ac_compile"
22211 case "(($ac_try" in
22212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22213 *) ac_try_echo=$ac_try;;
22214 esac
22215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22216 (eval "$ac_compile") 2>conftest.er1
22217 ac_status=$?
22218 grep -v '^ *+' conftest.er1 >conftest.err
22219 rm -f conftest.er1
22220 cat conftest.err >&5
22221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22222 (exit $ac_status); } && {
22223 test -z "$ac_c_werror_flag" ||
22224 test ! -s conftest.err
22225 } && test -s conftest.$ac_objext; then
22226 ac_cv_member_struct_stat_st_blocks=yes
22227 else
22228 echo "$as_me: failed program was:" >&5
22229 sed 's/^/| /' conftest.$ac_ext >&5
22231 ac_cv_member_struct_stat_st_blocks=no
22234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22239 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
22240 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
22241 if test $ac_cv_member_struct_stat_st_blocks = yes; then
22243 cat >>confdefs.h <<_ACEOF
22244 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
22245 _ACEOF
22248 cat >>confdefs.h <<\_ACEOF
22249 #define HAVE_ST_BLOCKS 1
22250 _ACEOF
22252 else
22253 case " $LIBOBJS " in
22254 *" fileblocks.$ac_objext "* ) ;;
22255 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
22257 esac
22263 { echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
22264 echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6; }
22265 if test "${ac_cv_header_time_altzone+set}" = set; then
22266 echo $ECHO_N "(cached) $ECHO_C" >&6
22267 else
22268 cat >conftest.$ac_ext <<_ACEOF
22269 /* confdefs.h. */
22270 _ACEOF
22271 cat confdefs.h >>conftest.$ac_ext
22272 cat >>conftest.$ac_ext <<_ACEOF
22273 /* end confdefs.h. */
22274 #include <time.h>
22276 main ()
22278 return altzone;
22280 return 0;
22282 _ACEOF
22283 rm -f conftest.$ac_objext
22284 if { (ac_try="$ac_compile"
22285 case "(($ac_try" in
22286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22287 *) ac_try_echo=$ac_try;;
22288 esac
22289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22290 (eval "$ac_compile") 2>conftest.er1
22291 ac_status=$?
22292 grep -v '^ *+' conftest.er1 >conftest.err
22293 rm -f conftest.er1
22294 cat conftest.err >&5
22295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22296 (exit $ac_status); } && {
22297 test -z "$ac_c_werror_flag" ||
22298 test ! -s conftest.err
22299 } && test -s conftest.$ac_objext; then
22300 ac_cv_header_time_altzone=yes
22301 else
22302 echo "$as_me: failed program was:" >&5
22303 sed 's/^/| /' conftest.$ac_ext >&5
22305 ac_cv_header_time_altzone=no
22308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22311 { echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
22312 echo "${ECHO_T}$ac_cv_header_time_altzone" >&6; }
22313 if test $ac_cv_header_time_altzone = yes; then
22315 cat >>confdefs.h <<\_ACEOF
22316 #define HAVE_ALTZONE 1
22317 _ACEOF
22321 was_it_defined=no
22322 { echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
22323 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6; }
22324 cat >conftest.$ac_ext <<_ACEOF
22325 /* confdefs.h. */
22326 _ACEOF
22327 cat confdefs.h >>conftest.$ac_ext
22328 cat >>conftest.$ac_ext <<_ACEOF
22329 /* end confdefs.h. */
22331 #include <sys/types.h>
22332 #include <sys/select.h>
22333 #include <sys/time.h>
22336 main ()
22340 return 0;
22342 _ACEOF
22343 rm -f conftest.$ac_objext
22344 if { (ac_try="$ac_compile"
22345 case "(($ac_try" in
22346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22347 *) ac_try_echo=$ac_try;;
22348 esac
22349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22350 (eval "$ac_compile") 2>conftest.er1
22351 ac_status=$?
22352 grep -v '^ *+' conftest.er1 >conftest.err
22353 rm -f conftest.er1
22354 cat conftest.err >&5
22355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22356 (exit $ac_status); } && {
22357 test -z "$ac_c_werror_flag" ||
22358 test ! -s conftest.err
22359 } && test -s conftest.$ac_objext; then
22362 cat >>confdefs.h <<\_ACEOF
22363 #define SYS_SELECT_WITH_SYS_TIME 1
22364 _ACEOF
22366 was_it_defined=yes
22368 else
22369 echo "$as_me: failed program was:" >&5
22370 sed 's/^/| /' conftest.$ac_ext >&5
22375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22376 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
22377 echo "${ECHO_T}$was_it_defined" >&6; }
22379 { echo "$as_me:$LINENO: checking for addrinfo" >&5
22380 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; }
22381 if test "${ac_cv_struct_addrinfo+set}" = set; then
22382 echo $ECHO_N "(cached) $ECHO_C" >&6
22383 else
22384 cat >conftest.$ac_ext <<_ACEOF
22385 /* confdefs.h. */
22386 _ACEOF
22387 cat confdefs.h >>conftest.$ac_ext
22388 cat >>conftest.$ac_ext <<_ACEOF
22389 /* end confdefs.h. */
22391 # include <netdb.h>
22393 main ()
22395 struct addrinfo a
22397 return 0;
22399 _ACEOF
22400 rm -f conftest.$ac_objext
22401 if { (ac_try="$ac_compile"
22402 case "(($ac_try" in
22403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22404 *) ac_try_echo=$ac_try;;
22405 esac
22406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22407 (eval "$ac_compile") 2>conftest.er1
22408 ac_status=$?
22409 grep -v '^ *+' conftest.er1 >conftest.err
22410 rm -f conftest.er1
22411 cat conftest.err >&5
22412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22413 (exit $ac_status); } && {
22414 test -z "$ac_c_werror_flag" ||
22415 test ! -s conftest.err
22416 } && test -s conftest.$ac_objext; then
22417 ac_cv_struct_addrinfo=yes
22418 else
22419 echo "$as_me: failed program was:" >&5
22420 sed 's/^/| /' conftest.$ac_ext >&5
22422 ac_cv_struct_addrinfo=no
22425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22428 { echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
22429 echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6; }
22430 if test $ac_cv_struct_addrinfo = yes; then
22432 cat >>confdefs.h <<\_ACEOF
22433 #define HAVE_ADDRINFO 1
22434 _ACEOF
22438 { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
22439 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; }
22440 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
22441 echo $ECHO_N "(cached) $ECHO_C" >&6
22442 else
22443 cat >conftest.$ac_ext <<_ACEOF
22444 /* confdefs.h. */
22445 _ACEOF
22446 cat confdefs.h >>conftest.$ac_ext
22447 cat >>conftest.$ac_ext <<_ACEOF
22448 /* end confdefs.h. */
22450 # include <sys/types.h>
22451 # include <sys/socket.h>
22453 main ()
22455 struct sockaddr_storage s
22457 return 0;
22459 _ACEOF
22460 rm -f conftest.$ac_objext
22461 if { (ac_try="$ac_compile"
22462 case "(($ac_try" in
22463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22464 *) ac_try_echo=$ac_try;;
22465 esac
22466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22467 (eval "$ac_compile") 2>conftest.er1
22468 ac_status=$?
22469 grep -v '^ *+' conftest.er1 >conftest.err
22470 rm -f conftest.er1
22471 cat conftest.err >&5
22472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22473 (exit $ac_status); } && {
22474 test -z "$ac_c_werror_flag" ||
22475 test ! -s conftest.err
22476 } && test -s conftest.$ac_objext; then
22477 ac_cv_struct_sockaddr_storage=yes
22478 else
22479 echo "$as_me: failed program was:" >&5
22480 sed 's/^/| /' conftest.$ac_ext >&5
22482 ac_cv_struct_sockaddr_storage=no
22485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22488 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
22489 echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6; }
22490 if test $ac_cv_struct_sockaddr_storage = yes; then
22492 cat >>confdefs.h <<\_ACEOF
22493 #define HAVE_SOCKADDR_STORAGE 1
22494 _ACEOF
22498 # checks for compiler characteristics
22501 { echo "$as_me:$LINENO: checking whether char is unsigned" >&5
22502 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6; }
22503 if test "${ac_cv_c_char_unsigned+set}" = set; then
22504 echo $ECHO_N "(cached) $ECHO_C" >&6
22505 else
22506 cat >conftest.$ac_ext <<_ACEOF
22507 /* confdefs.h. */
22508 _ACEOF
22509 cat confdefs.h >>conftest.$ac_ext
22510 cat >>conftest.$ac_ext <<_ACEOF
22511 /* end confdefs.h. */
22512 $ac_includes_default
22514 main ()
22516 static int test_array [1 - 2 * !(((char) -1) < 0)];
22517 test_array [0] = 0
22520 return 0;
22522 _ACEOF
22523 rm -f conftest.$ac_objext
22524 if { (ac_try="$ac_compile"
22525 case "(($ac_try" in
22526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22527 *) ac_try_echo=$ac_try;;
22528 esac
22529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22530 (eval "$ac_compile") 2>conftest.er1
22531 ac_status=$?
22532 grep -v '^ *+' conftest.er1 >conftest.err
22533 rm -f conftest.er1
22534 cat conftest.err >&5
22535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22536 (exit $ac_status); } && {
22537 test -z "$ac_c_werror_flag" ||
22538 test ! -s conftest.err
22539 } && test -s conftest.$ac_objext; then
22540 ac_cv_c_char_unsigned=no
22541 else
22542 echo "$as_me: failed program was:" >&5
22543 sed 's/^/| /' conftest.$ac_ext >&5
22545 ac_cv_c_char_unsigned=yes
22548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22550 { echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
22551 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; }
22552 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
22553 cat >>confdefs.h <<\_ACEOF
22554 #define __CHAR_UNSIGNED__ 1
22555 _ACEOF
22559 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
22560 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
22561 if test "${ac_cv_c_const+set}" = set; then
22562 echo $ECHO_N "(cached) $ECHO_C" >&6
22563 else
22564 cat >conftest.$ac_ext <<_ACEOF
22565 /* confdefs.h. */
22566 _ACEOF
22567 cat confdefs.h >>conftest.$ac_ext
22568 cat >>conftest.$ac_ext <<_ACEOF
22569 /* end confdefs.h. */
22572 main ()
22574 /* FIXME: Include the comments suggested by Paul. */
22575 #ifndef __cplusplus
22576 /* Ultrix mips cc rejects this. */
22577 typedef int charset[2];
22578 const charset cs;
22579 /* SunOS 4.1.1 cc rejects this. */
22580 char const *const *pcpcc;
22581 char **ppc;
22582 /* NEC SVR4.0.2 mips cc rejects this. */
22583 struct point {int x, y;};
22584 static struct point const zero = {0,0};
22585 /* AIX XL C 1.02.0.0 rejects this.
22586 It does not let you subtract one const X* pointer from another in
22587 an arm of an if-expression whose if-part is not a constant
22588 expression */
22589 const char *g = "string";
22590 pcpcc = &g + (g ? g-g : 0);
22591 /* HPUX 7.0 cc rejects these. */
22592 ++pcpcc;
22593 ppc = (char**) pcpcc;
22594 pcpcc = (char const *const *) ppc;
22595 { /* SCO 3.2v4 cc rejects this. */
22596 char *t;
22597 char const *s = 0 ? (char *) 0 : (char const *) 0;
22599 *t++ = 0;
22600 if (s) return 0;
22602 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22603 int x[] = {25, 17};
22604 const int *foo = &x[0];
22605 ++foo;
22607 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22608 typedef const int *iptr;
22609 iptr p = 0;
22610 ++p;
22612 { /* AIX XL C 1.02.0.0 rejects this saying
22613 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22614 struct s { int j; const int *ap[3]; };
22615 struct s *b; b->j = 5;
22617 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22618 const int foo = 10;
22619 if (!foo) return 0;
22621 return !cs[0] && !zero.x;
22622 #endif
22625 return 0;
22627 _ACEOF
22628 rm -f conftest.$ac_objext
22629 if { (ac_try="$ac_compile"
22630 case "(($ac_try" in
22631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22632 *) ac_try_echo=$ac_try;;
22633 esac
22634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22635 (eval "$ac_compile") 2>conftest.er1
22636 ac_status=$?
22637 grep -v '^ *+' conftest.er1 >conftest.err
22638 rm -f conftest.er1
22639 cat conftest.err >&5
22640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22641 (exit $ac_status); } && {
22642 test -z "$ac_c_werror_flag" ||
22643 test ! -s conftest.err
22644 } && test -s conftest.$ac_objext; then
22645 ac_cv_c_const=yes
22646 else
22647 echo "$as_me: failed program was:" >&5
22648 sed 's/^/| /' conftest.$ac_ext >&5
22650 ac_cv_c_const=no
22653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22655 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
22656 echo "${ECHO_T}$ac_cv_c_const" >&6; }
22657 if test $ac_cv_c_const = no; then
22659 cat >>confdefs.h <<\_ACEOF
22660 #define const
22661 _ACEOF
22666 works=no
22667 { echo "$as_me:$LINENO: checking for working volatile" >&5
22668 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
22669 cat >conftest.$ac_ext <<_ACEOF
22670 /* confdefs.h. */
22671 _ACEOF
22672 cat confdefs.h >>conftest.$ac_ext
22673 cat >>conftest.$ac_ext <<_ACEOF
22674 /* end confdefs.h. */
22677 main ()
22679 volatile int x; x = 0;
22681 return 0;
22683 _ACEOF
22684 rm -f conftest.$ac_objext
22685 if { (ac_try="$ac_compile"
22686 case "(($ac_try" in
22687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22688 *) ac_try_echo=$ac_try;;
22689 esac
22690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22691 (eval "$ac_compile") 2>conftest.er1
22692 ac_status=$?
22693 grep -v '^ *+' conftest.er1 >conftest.err
22694 rm -f conftest.er1
22695 cat conftest.err >&5
22696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22697 (exit $ac_status); } && {
22698 test -z "$ac_c_werror_flag" ||
22699 test ! -s conftest.err
22700 } && test -s conftest.$ac_objext; then
22701 works=yes
22702 else
22703 echo "$as_me: failed program was:" >&5
22704 sed 's/^/| /' conftest.$ac_ext >&5
22707 cat >>confdefs.h <<\_ACEOF
22708 #define volatile
22709 _ACEOF
22714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22715 { echo "$as_me:$LINENO: result: $works" >&5
22716 echo "${ECHO_T}$works" >&6; }
22718 works=no
22719 { echo "$as_me:$LINENO: checking for working signed char" >&5
22720 echo $ECHO_N "checking for working signed char... $ECHO_C" >&6; }
22721 cat >conftest.$ac_ext <<_ACEOF
22722 /* confdefs.h. */
22723 _ACEOF
22724 cat confdefs.h >>conftest.$ac_ext
22725 cat >>conftest.$ac_ext <<_ACEOF
22726 /* end confdefs.h. */
22729 main ()
22731 signed char c;
22733 return 0;
22735 _ACEOF
22736 rm -f conftest.$ac_objext
22737 if { (ac_try="$ac_compile"
22738 case "(($ac_try" in
22739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22740 *) ac_try_echo=$ac_try;;
22741 esac
22742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22743 (eval "$ac_compile") 2>conftest.er1
22744 ac_status=$?
22745 grep -v '^ *+' conftest.er1 >conftest.err
22746 rm -f conftest.er1
22747 cat conftest.err >&5
22748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22749 (exit $ac_status); } && {
22750 test -z "$ac_c_werror_flag" ||
22751 test ! -s conftest.err
22752 } && test -s conftest.$ac_objext; then
22753 works=yes
22754 else
22755 echo "$as_me: failed program was:" >&5
22756 sed 's/^/| /' conftest.$ac_ext >&5
22759 cat >>confdefs.h <<\_ACEOF
22760 #define signed
22761 _ACEOF
22766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22767 { echo "$as_me:$LINENO: result: $works" >&5
22768 echo "${ECHO_T}$works" >&6; }
22770 have_prototypes=no
22771 { echo "$as_me:$LINENO: checking for prototypes" >&5
22772 echo $ECHO_N "checking for prototypes... $ECHO_C" >&6; }
22773 cat >conftest.$ac_ext <<_ACEOF
22774 /* confdefs.h. */
22775 _ACEOF
22776 cat confdefs.h >>conftest.$ac_ext
22777 cat >>conftest.$ac_ext <<_ACEOF
22778 /* end confdefs.h. */
22779 int foo(int x) { return 0; }
22781 main ()
22783 return foo(10);
22785 return 0;
22787 _ACEOF
22788 rm -f conftest.$ac_objext
22789 if { (ac_try="$ac_compile"
22790 case "(($ac_try" in
22791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22792 *) ac_try_echo=$ac_try;;
22793 esac
22794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22795 (eval "$ac_compile") 2>conftest.er1
22796 ac_status=$?
22797 grep -v '^ *+' conftest.er1 >conftest.err
22798 rm -f conftest.er1
22799 cat conftest.err >&5
22800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22801 (exit $ac_status); } && {
22802 test -z "$ac_c_werror_flag" ||
22803 test ! -s conftest.err
22804 } && test -s conftest.$ac_objext; then
22807 cat >>confdefs.h <<\_ACEOF
22808 #define HAVE_PROTOTYPES 1
22809 _ACEOF
22811 have_prototypes=yes
22813 else
22814 echo "$as_me: failed program was:" >&5
22815 sed 's/^/| /' conftest.$ac_ext >&5
22820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22821 { echo "$as_me:$LINENO: result: $have_prototypes" >&5
22822 echo "${ECHO_T}$have_prototypes" >&6; }
22824 works=no
22825 { echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
22826 echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6; }
22827 cat >conftest.$ac_ext <<_ACEOF
22828 /* confdefs.h. */
22829 _ACEOF
22830 cat confdefs.h >>conftest.$ac_ext
22831 cat >>conftest.$ac_ext <<_ACEOF
22832 /* end confdefs.h. */
22834 #include <stdarg.h>
22835 int foo(int x, ...) {
22836 va_list va;
22837 va_start(va, x);
22838 va_arg(va, int);
22839 va_arg(va, char *);
22840 va_arg(va, double);
22841 return 0;
22845 main ()
22847 return foo(10, "", 3.14);
22849 return 0;
22851 _ACEOF
22852 rm -f conftest.$ac_objext
22853 if { (ac_try="$ac_compile"
22854 case "(($ac_try" in
22855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22856 *) ac_try_echo=$ac_try;;
22857 esac
22858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22859 (eval "$ac_compile") 2>conftest.er1
22860 ac_status=$?
22861 grep -v '^ *+' conftest.er1 >conftest.err
22862 rm -f conftest.er1
22863 cat conftest.err >&5
22864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22865 (exit $ac_status); } && {
22866 test -z "$ac_c_werror_flag" ||
22867 test ! -s conftest.err
22868 } && test -s conftest.$ac_objext; then
22871 cat >>confdefs.h <<\_ACEOF
22872 #define HAVE_STDARG_PROTOTYPES 1
22873 _ACEOF
22875 works=yes
22877 else
22878 echo "$as_me: failed program was:" >&5
22879 sed 's/^/| /' conftest.$ac_ext >&5
22884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22885 { echo "$as_me:$LINENO: result: $works" >&5
22886 echo "${ECHO_T}$works" >&6; }
22888 # check for socketpair
22889 { echo "$as_me:$LINENO: checking for socketpair" >&5
22890 echo $ECHO_N "checking for socketpair... $ECHO_C" >&6; }
22891 cat >conftest.$ac_ext <<_ACEOF
22892 /* confdefs.h. */
22893 _ACEOF
22894 cat confdefs.h >>conftest.$ac_ext
22895 cat >>conftest.$ac_ext <<_ACEOF
22896 /* end confdefs.h. */
22898 #include <sys/types.h>
22899 #include <sys/socket.h>
22902 main ()
22904 void *x=socketpair
22906 return 0;
22908 _ACEOF
22909 rm -f conftest.$ac_objext
22910 if { (ac_try="$ac_compile"
22911 case "(($ac_try" in
22912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22913 *) ac_try_echo=$ac_try;;
22914 esac
22915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22916 (eval "$ac_compile") 2>conftest.er1
22917 ac_status=$?
22918 grep -v '^ *+' conftest.er1 >conftest.err
22919 rm -f conftest.er1
22920 cat conftest.err >&5
22921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22922 (exit $ac_status); } && {
22923 test -z "$ac_c_werror_flag" ||
22924 test ! -s conftest.err
22925 } && test -s conftest.$ac_objext; then
22927 cat >>confdefs.h <<\_ACEOF
22928 #define HAVE_SOCKETPAIR 1
22929 _ACEOF
22931 { echo "$as_me:$LINENO: result: yes" >&5
22932 echo "${ECHO_T}yes" >&6; }
22933 else
22934 echo "$as_me: failed program was:" >&5
22935 sed 's/^/| /' conftest.$ac_ext >&5
22937 { echo "$as_me:$LINENO: result: no" >&5
22938 echo "${ECHO_T}no" >&6; }
22942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22944 # check if sockaddr has sa_len member
22945 { echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
22946 echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6; }
22947 cat >conftest.$ac_ext <<_ACEOF
22948 /* confdefs.h. */
22949 _ACEOF
22950 cat confdefs.h >>conftest.$ac_ext
22951 cat >>conftest.$ac_ext <<_ACEOF
22952 /* end confdefs.h. */
22953 #include <sys/types.h>
22954 #include <sys/socket.h>
22956 main ()
22958 struct sockaddr x;
22959 x.sa_len = 0;
22961 return 0;
22963 _ACEOF
22964 rm -f conftest.$ac_objext
22965 if { (ac_try="$ac_compile"
22966 case "(($ac_try" in
22967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22968 *) ac_try_echo=$ac_try;;
22969 esac
22970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22971 (eval "$ac_compile") 2>conftest.er1
22972 ac_status=$?
22973 grep -v '^ *+' conftest.er1 >conftest.err
22974 rm -f conftest.er1
22975 cat conftest.err >&5
22976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22977 (exit $ac_status); } && {
22978 test -z "$ac_c_werror_flag" ||
22979 test ! -s conftest.err
22980 } && test -s conftest.$ac_objext; then
22981 { echo "$as_me:$LINENO: result: yes" >&5
22982 echo "${ECHO_T}yes" >&6; }
22984 cat >>confdefs.h <<\_ACEOF
22985 #define HAVE_SOCKADDR_SA_LEN 1
22986 _ACEOF
22988 else
22989 echo "$as_me: failed program was:" >&5
22990 sed 's/^/| /' conftest.$ac_ext >&5
22992 { echo "$as_me:$LINENO: result: no" >&5
22993 echo "${ECHO_T}no" >&6; }
22996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22998 va_list_is_array=no
22999 { echo "$as_me:$LINENO: checking whether va_list is an array" >&5
23000 echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6; }
23001 cat >conftest.$ac_ext <<_ACEOF
23002 /* confdefs.h. */
23003 _ACEOF
23004 cat confdefs.h >>conftest.$ac_ext
23005 cat >>conftest.$ac_ext <<_ACEOF
23006 /* end confdefs.h. */
23008 #ifdef HAVE_STDARG_PROTOTYPES
23009 #include <stdarg.h>
23010 #else
23011 #include <varargs.h>
23012 #endif
23015 main ()
23017 va_list list1, list2; list1 = list2;
23019 return 0;
23021 _ACEOF
23022 rm -f conftest.$ac_objext
23023 if { (ac_try="$ac_compile"
23024 case "(($ac_try" in
23025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23026 *) ac_try_echo=$ac_try;;
23027 esac
23028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23029 (eval "$ac_compile") 2>conftest.er1
23030 ac_status=$?
23031 grep -v '^ *+' conftest.er1 >conftest.err
23032 rm -f conftest.er1
23033 cat conftest.err >&5
23034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23035 (exit $ac_status); } && {
23036 test -z "$ac_c_werror_flag" ||
23037 test ! -s conftest.err
23038 } && test -s conftest.$ac_objext; then
23040 else
23041 echo "$as_me: failed program was:" >&5
23042 sed 's/^/| /' conftest.$ac_ext >&5
23046 cat >>confdefs.h <<\_ACEOF
23047 #define VA_LIST_IS_ARRAY 1
23048 _ACEOF
23050 va_list_is_array=yes
23054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23055 { echo "$as_me:$LINENO: result: $va_list_is_array" >&5
23056 echo "${ECHO_T}$va_list_is_array" >&6; }
23058 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
23062 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
23063 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
23064 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
23065 echo $ECHO_N "(cached) $ECHO_C" >&6
23066 else
23067 cat >conftest.$ac_ext <<_ACEOF
23068 /* confdefs.h. */
23069 _ACEOF
23070 cat confdefs.h >>conftest.$ac_ext
23071 cat >>conftest.$ac_ext <<_ACEOF
23072 /* end confdefs.h. */
23073 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
23074 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23075 #define gethostbyname_r innocuous_gethostbyname_r
23077 /* System header to define __stub macros and hopefully few prototypes,
23078 which can conflict with char gethostbyname_r (); below.
23079 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23080 <limits.h> exists even on freestanding compilers. */
23082 #ifdef __STDC__
23083 # include <limits.h>
23084 #else
23085 # include <assert.h>
23086 #endif
23088 #undef gethostbyname_r
23090 /* Override any GCC internal prototype to avoid an error.
23091 Use char because int might match the return type of a GCC
23092 builtin and then its argument prototype would still apply. */
23093 #ifdef __cplusplus
23094 extern "C"
23095 #endif
23096 char gethostbyname_r ();
23097 /* The GNU C library defines this for functions which it implements
23098 to always fail with ENOSYS. Some functions are actually named
23099 something starting with __ and the normal name is an alias. */
23100 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
23101 choke me
23102 #endif
23105 main ()
23107 return gethostbyname_r ();
23109 return 0;
23111 _ACEOF
23112 rm -f conftest.$ac_objext conftest$ac_exeext
23113 if { (ac_try="$ac_link"
23114 case "(($ac_try" in
23115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23116 *) ac_try_echo=$ac_try;;
23117 esac
23118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23119 (eval "$ac_link") 2>conftest.er1
23120 ac_status=$?
23121 grep -v '^ *+' conftest.er1 >conftest.err
23122 rm -f conftest.er1
23123 cat conftest.err >&5
23124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23125 (exit $ac_status); } && {
23126 test -z "$ac_c_werror_flag" ||
23127 test ! -s conftest.err
23128 } && test -s conftest$ac_exeext &&
23129 $as_test_x conftest$ac_exeext; then
23130 ac_cv_func_gethostbyname_r=yes
23131 else
23132 echo "$as_me: failed program was:" >&5
23133 sed 's/^/| /' conftest.$ac_ext >&5
23135 ac_cv_func_gethostbyname_r=no
23138 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23139 conftest$ac_exeext conftest.$ac_ext
23141 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
23142 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
23143 if test $ac_cv_func_gethostbyname_r = yes; then
23145 cat >>confdefs.h <<\_ACEOF
23146 #define HAVE_GETHOSTBYNAME_R 1
23147 _ACEOF
23149 { echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
23150 echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6; }
23151 OLD_CFLAGS=$CFLAGS
23152 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
23153 cat >conftest.$ac_ext <<_ACEOF
23154 /* confdefs.h. */
23155 _ACEOF
23156 cat confdefs.h >>conftest.$ac_ext
23157 cat >>conftest.$ac_ext <<_ACEOF
23158 /* end confdefs.h. */
23160 # include <netdb.h>
23163 main ()
23166 char *name;
23167 struct hostent *he, *res;
23168 char buffer[2048];
23169 int buflen = 2048;
23170 int h_errnop;
23172 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
23175 return 0;
23177 _ACEOF
23178 rm -f conftest.$ac_objext
23179 if { (ac_try="$ac_compile"
23180 case "(($ac_try" in
23181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23182 *) ac_try_echo=$ac_try;;
23183 esac
23184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23185 (eval "$ac_compile") 2>conftest.er1
23186 ac_status=$?
23187 grep -v '^ *+' conftest.er1 >conftest.err
23188 rm -f conftest.er1
23189 cat conftest.err >&5
23190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23191 (exit $ac_status); } && {
23192 test -z "$ac_c_werror_flag" ||
23193 test ! -s conftest.err
23194 } && test -s conftest.$ac_objext; then
23196 cat >>confdefs.h <<\_ACEOF
23197 #define HAVE_GETHOSTBYNAME_R 1
23198 _ACEOF
23201 cat >>confdefs.h <<\_ACEOF
23202 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
23203 _ACEOF
23205 { echo "$as_me:$LINENO: result: yes" >&5
23206 echo "${ECHO_T}yes" >&6; }
23208 else
23209 echo "$as_me: failed program was:" >&5
23210 sed 's/^/| /' conftest.$ac_ext >&5
23213 { echo "$as_me:$LINENO: result: no" >&5
23214 echo "${ECHO_T}no" >&6; }
23215 { echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
23216 echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6; }
23217 cat >conftest.$ac_ext <<_ACEOF
23218 /* confdefs.h. */
23219 _ACEOF
23220 cat confdefs.h >>conftest.$ac_ext
23221 cat >>conftest.$ac_ext <<_ACEOF
23222 /* end confdefs.h. */
23224 # include <netdb.h>
23227 main ()
23230 char *name;
23231 struct hostent *he;
23232 char buffer[2048];
23233 int buflen = 2048;
23234 int h_errnop;
23236 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
23239 return 0;
23241 _ACEOF
23242 rm -f conftest.$ac_objext
23243 if { (ac_try="$ac_compile"
23244 case "(($ac_try" in
23245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23246 *) ac_try_echo=$ac_try;;
23247 esac
23248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23249 (eval "$ac_compile") 2>conftest.er1
23250 ac_status=$?
23251 grep -v '^ *+' conftest.er1 >conftest.err
23252 rm -f conftest.er1
23253 cat conftest.err >&5
23254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23255 (exit $ac_status); } && {
23256 test -z "$ac_c_werror_flag" ||
23257 test ! -s conftest.err
23258 } && test -s conftest.$ac_objext; then
23260 cat >>confdefs.h <<\_ACEOF
23261 #define HAVE_GETHOSTBYNAME_R 1
23262 _ACEOF
23265 cat >>confdefs.h <<\_ACEOF
23266 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
23267 _ACEOF
23269 { echo "$as_me:$LINENO: result: yes" >&5
23270 echo "${ECHO_T}yes" >&6; }
23272 else
23273 echo "$as_me: failed program was:" >&5
23274 sed 's/^/| /' conftest.$ac_ext >&5
23277 { echo "$as_me:$LINENO: result: no" >&5
23278 echo "${ECHO_T}no" >&6; }
23279 { echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
23280 echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6; }
23281 cat >conftest.$ac_ext <<_ACEOF
23282 /* confdefs.h. */
23283 _ACEOF
23284 cat confdefs.h >>conftest.$ac_ext
23285 cat >>conftest.$ac_ext <<_ACEOF
23286 /* end confdefs.h. */
23288 # include <netdb.h>
23291 main ()
23294 char *name;
23295 struct hostent *he;
23296 struct hostent_data data;
23298 (void) gethostbyname_r(name, he, &data);
23301 return 0;
23303 _ACEOF
23304 rm -f conftest.$ac_objext
23305 if { (ac_try="$ac_compile"
23306 case "(($ac_try" in
23307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23308 *) ac_try_echo=$ac_try;;
23309 esac
23310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23311 (eval "$ac_compile") 2>conftest.er1
23312 ac_status=$?
23313 grep -v '^ *+' conftest.er1 >conftest.err
23314 rm -f conftest.er1
23315 cat conftest.err >&5
23316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23317 (exit $ac_status); } && {
23318 test -z "$ac_c_werror_flag" ||
23319 test ! -s conftest.err
23320 } && test -s conftest.$ac_objext; then
23322 cat >>confdefs.h <<\_ACEOF
23323 #define HAVE_GETHOSTBYNAME_R 1
23324 _ACEOF
23327 cat >>confdefs.h <<\_ACEOF
23328 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
23329 _ACEOF
23331 { echo "$as_me:$LINENO: result: yes" >&5
23332 echo "${ECHO_T}yes" >&6; }
23334 else
23335 echo "$as_me: failed program was:" >&5
23336 sed 's/^/| /' conftest.$ac_ext >&5
23339 { echo "$as_me:$LINENO: result: no" >&5
23340 echo "${ECHO_T}no" >&6; }
23344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23353 CFLAGS=$OLD_CFLAGS
23355 else
23358 for ac_func in gethostbyname
23360 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23361 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23362 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23363 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23364 echo $ECHO_N "(cached) $ECHO_C" >&6
23365 else
23366 cat >conftest.$ac_ext <<_ACEOF
23367 /* confdefs.h. */
23368 _ACEOF
23369 cat confdefs.h >>conftest.$ac_ext
23370 cat >>conftest.$ac_ext <<_ACEOF
23371 /* end confdefs.h. */
23372 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23373 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23374 #define $ac_func innocuous_$ac_func
23376 /* System header to define __stub macros and hopefully few prototypes,
23377 which can conflict with char $ac_func (); below.
23378 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23379 <limits.h> exists even on freestanding compilers. */
23381 #ifdef __STDC__
23382 # include <limits.h>
23383 #else
23384 # include <assert.h>
23385 #endif
23387 #undef $ac_func
23389 /* Override any GCC internal prototype to avoid an error.
23390 Use char because int might match the return type of a GCC
23391 builtin and then its argument prototype would still apply. */
23392 #ifdef __cplusplus
23393 extern "C"
23394 #endif
23395 char $ac_func ();
23396 /* The GNU C library defines this for functions which it implements
23397 to always fail with ENOSYS. Some functions are actually named
23398 something starting with __ and the normal name is an alias. */
23399 #if defined __stub_$ac_func || defined __stub___$ac_func
23400 choke me
23401 #endif
23404 main ()
23406 return $ac_func ();
23408 return 0;
23410 _ACEOF
23411 rm -f conftest.$ac_objext conftest$ac_exeext
23412 if { (ac_try="$ac_link"
23413 case "(($ac_try" in
23414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23415 *) ac_try_echo=$ac_try;;
23416 esac
23417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23418 (eval "$ac_link") 2>conftest.er1
23419 ac_status=$?
23420 grep -v '^ *+' conftest.er1 >conftest.err
23421 rm -f conftest.er1
23422 cat conftest.err >&5
23423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23424 (exit $ac_status); } && {
23425 test -z "$ac_c_werror_flag" ||
23426 test ! -s conftest.err
23427 } && test -s conftest$ac_exeext &&
23428 $as_test_x conftest$ac_exeext; then
23429 eval "$as_ac_var=yes"
23430 else
23431 echo "$as_me: failed program was:" >&5
23432 sed 's/^/| /' conftest.$ac_ext >&5
23434 eval "$as_ac_var=no"
23437 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23438 conftest$ac_exeext conftest.$ac_ext
23440 ac_res=`eval echo '${'$as_ac_var'}'`
23441 { echo "$as_me:$LINENO: result: $ac_res" >&5
23442 echo "${ECHO_T}$ac_res" >&6; }
23443 if test `eval echo '${'$as_ac_var'}'` = yes; then
23444 cat >>confdefs.h <<_ACEOF
23445 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23446 _ACEOF
23449 done
23460 # checks for system services
23461 # (none yet)
23463 # Linux requires this for correct f.p. operations
23464 { echo "$as_me:$LINENO: checking for __fpu_control" >&5
23465 echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6; }
23466 if test "${ac_cv_func___fpu_control+set}" = set; then
23467 echo $ECHO_N "(cached) $ECHO_C" >&6
23468 else
23469 cat >conftest.$ac_ext <<_ACEOF
23470 /* confdefs.h. */
23471 _ACEOF
23472 cat confdefs.h >>conftest.$ac_ext
23473 cat >>conftest.$ac_ext <<_ACEOF
23474 /* end confdefs.h. */
23475 /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control.
23476 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23477 #define __fpu_control innocuous___fpu_control
23479 /* System header to define __stub macros and hopefully few prototypes,
23480 which can conflict with char __fpu_control (); below.
23481 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23482 <limits.h> exists even on freestanding compilers. */
23484 #ifdef __STDC__
23485 # include <limits.h>
23486 #else
23487 # include <assert.h>
23488 #endif
23490 #undef __fpu_control
23492 /* Override any GCC internal prototype to avoid an error.
23493 Use char because int might match the return type of a GCC
23494 builtin and then its argument prototype would still apply. */
23495 #ifdef __cplusplus
23496 extern "C"
23497 #endif
23498 char __fpu_control ();
23499 /* The GNU C library defines this for functions which it implements
23500 to always fail with ENOSYS. Some functions are actually named
23501 something starting with __ and the normal name is an alias. */
23502 #if defined __stub___fpu_control || defined __stub_____fpu_control
23503 choke me
23504 #endif
23507 main ()
23509 return __fpu_control ();
23511 return 0;
23513 _ACEOF
23514 rm -f conftest.$ac_objext conftest$ac_exeext
23515 if { (ac_try="$ac_link"
23516 case "(($ac_try" in
23517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23518 *) ac_try_echo=$ac_try;;
23519 esac
23520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23521 (eval "$ac_link") 2>conftest.er1
23522 ac_status=$?
23523 grep -v '^ *+' conftest.er1 >conftest.err
23524 rm -f conftest.er1
23525 cat conftest.err >&5
23526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23527 (exit $ac_status); } && {
23528 test -z "$ac_c_werror_flag" ||
23529 test ! -s conftest.err
23530 } && test -s conftest$ac_exeext &&
23531 $as_test_x conftest$ac_exeext; then
23532 ac_cv_func___fpu_control=yes
23533 else
23534 echo "$as_me: failed program was:" >&5
23535 sed 's/^/| /' conftest.$ac_ext >&5
23537 ac_cv_func___fpu_control=no
23540 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23541 conftest$ac_exeext conftest.$ac_ext
23543 { echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
23544 echo "${ECHO_T}$ac_cv_func___fpu_control" >&6; }
23545 if test $ac_cv_func___fpu_control = yes; then
23547 else
23549 { echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
23550 echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6; }
23551 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
23552 echo $ECHO_N "(cached) $ECHO_C" >&6
23553 else
23554 ac_check_lib_save_LIBS=$LIBS
23555 LIBS="-lieee $LIBS"
23556 cat >conftest.$ac_ext <<_ACEOF
23557 /* confdefs.h. */
23558 _ACEOF
23559 cat confdefs.h >>conftest.$ac_ext
23560 cat >>conftest.$ac_ext <<_ACEOF
23561 /* end confdefs.h. */
23563 /* Override any GCC internal prototype to avoid an error.
23564 Use char because int might match the return type of a GCC
23565 builtin and then its argument prototype would still apply. */
23566 #ifdef __cplusplus
23567 extern "C"
23568 #endif
23569 char __fpu_control ();
23571 main ()
23573 return __fpu_control ();
23575 return 0;
23577 _ACEOF
23578 rm -f conftest.$ac_objext conftest$ac_exeext
23579 if { (ac_try="$ac_link"
23580 case "(($ac_try" in
23581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23582 *) ac_try_echo=$ac_try;;
23583 esac
23584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23585 (eval "$ac_link") 2>conftest.er1
23586 ac_status=$?
23587 grep -v '^ *+' conftest.er1 >conftest.err
23588 rm -f conftest.er1
23589 cat conftest.err >&5
23590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23591 (exit $ac_status); } && {
23592 test -z "$ac_c_werror_flag" ||
23593 test ! -s conftest.err
23594 } && test -s conftest$ac_exeext &&
23595 $as_test_x conftest$ac_exeext; then
23596 ac_cv_lib_ieee___fpu_control=yes
23597 else
23598 echo "$as_me: failed program was:" >&5
23599 sed 's/^/| /' conftest.$ac_ext >&5
23601 ac_cv_lib_ieee___fpu_control=no
23604 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23605 conftest$ac_exeext conftest.$ac_ext
23606 LIBS=$ac_check_lib_save_LIBS
23608 { echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
23609 echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6; }
23610 if test $ac_cv_lib_ieee___fpu_control = yes; then
23611 cat >>confdefs.h <<_ACEOF
23612 #define HAVE_LIBIEEE 1
23613 _ACEOF
23615 LIBS="-lieee $LIBS"
23623 # Check for --with-fpectl
23624 { echo "$as_me:$LINENO: checking for --with-fpectl" >&5
23625 echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6; }
23627 # Check whether --with-fpectl was given.
23628 if test "${with_fpectl+set}" = set; then
23629 withval=$with_fpectl;
23630 if test "$withval" != no
23631 then
23633 cat >>confdefs.h <<\_ACEOF
23634 #define WANT_SIGFPE_HANDLER 1
23635 _ACEOF
23637 { echo "$as_me:$LINENO: result: yes" >&5
23638 echo "${ECHO_T}yes" >&6; }
23639 else { echo "$as_me:$LINENO: result: no" >&5
23640 echo "${ECHO_T}no" >&6; }
23642 else
23643 { echo "$as_me:$LINENO: result: no" >&5
23644 echo "${ECHO_T}no" >&6; }
23648 # check for --with-libm=...
23650 case $ac_sys_system in
23651 Darwin) ;;
23652 BeOS) ;;
23653 *) LIBM=-lm
23654 esac
23655 { echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
23656 echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6; }
23658 # Check whether --with-libm was given.
23659 if test "${with_libm+set}" = set; then
23660 withval=$with_libm;
23661 if test "$withval" = no
23662 then LIBM=
23663 { echo "$as_me:$LINENO: result: force LIBM empty" >&5
23664 echo "${ECHO_T}force LIBM empty" >&6; }
23665 elif test "$withval" != yes
23666 then LIBM=$withval
23667 { echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
23668 echo "${ECHO_T}set LIBM=\"$withval\"" >&6; }
23669 else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
23670 echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
23671 { (exit 1); exit 1; }; }
23673 else
23674 { echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
23675 echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6; }
23679 # check for --with-libc=...
23681 { echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
23682 echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6; }
23684 # Check whether --with-libc was given.
23685 if test "${with_libc+set}" = set; then
23686 withval=$with_libc;
23687 if test "$withval" = no
23688 then LIBC=
23689 { echo "$as_me:$LINENO: result: force LIBC empty" >&5
23690 echo "${ECHO_T}force LIBC empty" >&6; }
23691 elif test "$withval" != yes
23692 then LIBC=$withval
23693 { echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
23694 echo "${ECHO_T}set LIBC=\"$withval\"" >&6; }
23695 else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
23696 echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
23697 { (exit 1); exit 1; }; }
23699 else
23700 { echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
23701 echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6; }
23705 # **************************************************
23706 # * Check for various properties of floating point *
23707 # **************************************************
23709 { echo "$as_me:$LINENO: checking whether C doubles are little-endian IEEE 754 binary64" >&5
23710 echo $ECHO_N "checking whether C doubles are little-endian IEEE 754 binary64... $ECHO_C" >&6; }
23711 if test "${ac_cv_little_endian_double+set}" = set; then
23712 echo $ECHO_N "(cached) $ECHO_C" >&6
23713 else
23715 if test "$cross_compiling" = yes; then
23716 ac_cv_little_endian_double=no
23717 else
23718 cat >conftest.$ac_ext <<_ACEOF
23719 /* confdefs.h. */
23720 _ACEOF
23721 cat confdefs.h >>conftest.$ac_ext
23722 cat >>conftest.$ac_ext <<_ACEOF
23723 /* end confdefs.h. */
23725 #include <string.h>
23726 int main() {
23727 double x = 9006104071832581.0;
23728 if (memcmp(&x, "\x05\x04\x03\x02\x01\xff\x3f\x43", 8) == 0)
23729 return 0;
23730 else
23731 return 1;
23734 _ACEOF
23735 rm -f conftest$ac_exeext
23736 if { (ac_try="$ac_link"
23737 case "(($ac_try" in
23738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23739 *) ac_try_echo=$ac_try;;
23740 esac
23741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23742 (eval "$ac_link") 2>&5
23743 ac_status=$?
23744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23745 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23746 { (case "(($ac_try" in
23747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23748 *) ac_try_echo=$ac_try;;
23749 esac
23750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23751 (eval "$ac_try") 2>&5
23752 ac_status=$?
23753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23754 (exit $ac_status); }; }; then
23755 ac_cv_little_endian_double=yes
23756 else
23757 echo "$as_me: program exited with status $ac_status" >&5
23758 echo "$as_me: failed program was:" >&5
23759 sed 's/^/| /' conftest.$ac_ext >&5
23761 ( exit $ac_status )
23762 ac_cv_little_endian_double=no
23764 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23770 { echo "$as_me:$LINENO: result: $ac_cv_little_endian_double" >&5
23771 echo "${ECHO_T}$ac_cv_little_endian_double" >&6; }
23772 if test "$ac_cv_little_endian_double" = yes
23773 then
23775 cat >>confdefs.h <<\_ACEOF
23776 #define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1
23777 _ACEOF
23781 { echo "$as_me:$LINENO: checking whether C doubles are big-endian IEEE 754 binary64" >&5
23782 echo $ECHO_N "checking whether C doubles are big-endian IEEE 754 binary64... $ECHO_C" >&6; }
23783 if test "${ac_cv_big_endian_double+set}" = set; then
23784 echo $ECHO_N "(cached) $ECHO_C" >&6
23785 else
23787 if test "$cross_compiling" = yes; then
23788 ac_cv_big_endian_double=no
23789 else
23790 cat >conftest.$ac_ext <<_ACEOF
23791 /* confdefs.h. */
23792 _ACEOF
23793 cat confdefs.h >>conftest.$ac_ext
23794 cat >>conftest.$ac_ext <<_ACEOF
23795 /* end confdefs.h. */
23797 #include <string.h>
23798 int main() {
23799 double x = 9006104071832581.0;
23800 if (memcmp(&x, "\x43\x3f\xff\x01\x02\x03\x04\x05", 8) == 0)
23801 return 0;
23802 else
23803 return 1;
23806 _ACEOF
23807 rm -f conftest$ac_exeext
23808 if { (ac_try="$ac_link"
23809 case "(($ac_try" in
23810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23811 *) ac_try_echo=$ac_try;;
23812 esac
23813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23814 (eval "$ac_link") 2>&5
23815 ac_status=$?
23816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23817 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23818 { (case "(($ac_try" in
23819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23820 *) ac_try_echo=$ac_try;;
23821 esac
23822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23823 (eval "$ac_try") 2>&5
23824 ac_status=$?
23825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23826 (exit $ac_status); }; }; then
23827 ac_cv_big_endian_double=yes
23828 else
23829 echo "$as_me: program exited with status $ac_status" >&5
23830 echo "$as_me: failed program was:" >&5
23831 sed 's/^/| /' conftest.$ac_ext >&5
23833 ( exit $ac_status )
23834 ac_cv_big_endian_double=no
23836 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23842 { echo "$as_me:$LINENO: result: $ac_cv_big_endian_double" >&5
23843 echo "${ECHO_T}$ac_cv_big_endian_double" >&6; }
23844 if test "$ac_cv_big_endian_double" = yes
23845 then
23847 cat >>confdefs.h <<\_ACEOF
23848 #define DOUBLE_IS_BIG_ENDIAN_IEEE754 1
23849 _ACEOF
23853 # Some ARM platforms use a mixed-endian representation for doubles.
23854 # While Python doesn't currently have full support for these platforms
23855 # (see e.g., issue 1762561), we can at least make sure that float <-> string
23856 # conversions work.
23857 { echo "$as_me:$LINENO: checking whether C doubles are ARM mixed-endian IEEE 754 binary64" >&5
23858 echo $ECHO_N "checking whether C doubles are ARM mixed-endian IEEE 754 binary64... $ECHO_C" >&6; }
23859 if test "${ac_cv_mixed_endian_double+set}" = set; then
23860 echo $ECHO_N "(cached) $ECHO_C" >&6
23861 else
23863 if test "$cross_compiling" = yes; then
23864 ac_cv_mixed_endian_double=no
23865 else
23866 cat >conftest.$ac_ext <<_ACEOF
23867 /* confdefs.h. */
23868 _ACEOF
23869 cat confdefs.h >>conftest.$ac_ext
23870 cat >>conftest.$ac_ext <<_ACEOF
23871 /* end confdefs.h. */
23873 #include <string.h>
23874 int main() {
23875 double x = 9006104071832581.0;
23876 if (memcmp(&x, "\x01\xff\x3f\x43\x05\x04\x03\x02", 8) == 0)
23877 return 0;
23878 else
23879 return 1;
23882 _ACEOF
23883 rm -f conftest$ac_exeext
23884 if { (ac_try="$ac_link"
23885 case "(($ac_try" in
23886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23887 *) ac_try_echo=$ac_try;;
23888 esac
23889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23890 (eval "$ac_link") 2>&5
23891 ac_status=$?
23892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23893 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23894 { (case "(($ac_try" in
23895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23896 *) ac_try_echo=$ac_try;;
23897 esac
23898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23899 (eval "$ac_try") 2>&5
23900 ac_status=$?
23901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23902 (exit $ac_status); }; }; then
23903 ac_cv_mixed_endian_double=yes
23904 else
23905 echo "$as_me: program exited with status $ac_status" >&5
23906 echo "$as_me: failed program was:" >&5
23907 sed 's/^/| /' conftest.$ac_ext >&5
23909 ( exit $ac_status )
23910 ac_cv_mixed_endian_double=no
23912 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23918 { echo "$as_me:$LINENO: result: $ac_cv_mixed_endian_double" >&5
23919 echo "${ECHO_T}$ac_cv_mixed_endian_double" >&6; }
23920 if test "$ac_cv_mixed_endian_double" = yes
23921 then
23923 cat >>confdefs.h <<\_ACEOF
23924 #define DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754 1
23925 _ACEOF
23929 # The short float repr introduced in Python 3.1 requires the
23930 # correctly-rounded string <-> double conversion functions from
23931 # Python/dtoa.c, which in turn require that the FPU uses 53-bit
23932 # rounding; this is a problem on x86, where the x87 FPU has a default
23933 # rounding precision of 64 bits. For gcc/x86, we can fix this by
23934 # using inline assembler to get and set the x87 FPU control word.
23936 # This inline assembler syntax may also work for suncc and icc,
23937 # so we try it on all platforms.
23939 { echo "$as_me:$LINENO: checking whether we can use gcc inline assembler to get and set x87 control word" >&5
23940 echo $ECHO_N "checking whether we can use gcc inline assembler to get and set x87 control word... $ECHO_C" >&6; }
23941 cat >conftest.$ac_ext <<_ACEOF
23942 /* confdefs.h. */
23943 _ACEOF
23944 cat confdefs.h >>conftest.$ac_ext
23945 cat >>conftest.$ac_ext <<_ACEOF
23946 /* end confdefs.h. */
23949 main ()
23952 unsigned short cw;
23953 __asm__ __volatile__ ("fnstcw %0" : "=m" (cw));
23954 __asm__ __volatile__ ("fldcw %0" : : "m" (cw));
23957 return 0;
23959 _ACEOF
23960 rm -f conftest.$ac_objext
23961 if { (ac_try="$ac_compile"
23962 case "(($ac_try" in
23963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23964 *) ac_try_echo=$ac_try;;
23965 esac
23966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23967 (eval "$ac_compile") 2>conftest.er1
23968 ac_status=$?
23969 grep -v '^ *+' conftest.er1 >conftest.err
23970 rm -f conftest.er1
23971 cat conftest.err >&5
23972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23973 (exit $ac_status); } && {
23974 test -z "$ac_c_werror_flag" ||
23975 test ! -s conftest.err
23976 } && test -s conftest.$ac_objext; then
23977 have_gcc_asm_for_x87=yes
23978 else
23979 echo "$as_me: failed program was:" >&5
23980 sed 's/^/| /' conftest.$ac_ext >&5
23982 have_gcc_asm_for_x87=no
23985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23986 { echo "$as_me:$LINENO: result: $have_gcc_asm_for_x87" >&5
23987 echo "${ECHO_T}$have_gcc_asm_for_x87" >&6; }
23988 if test "$have_gcc_asm_for_x87" = yes
23989 then
23991 cat >>confdefs.h <<\_ACEOF
23992 #define HAVE_GCC_ASM_FOR_X87 1
23993 _ACEOF
23997 # Detect whether system arithmetic is subject to x87-style double
23998 # rounding issues. The result of this test has little meaning on non
23999 # IEEE 754 platforms. On IEEE 754, test should return 1 if rounding
24000 # mode is round-to-nearest and double rounding issues are present, and
24001 # 0 otherwise. See http://bugs.python.org/issue2937 for more info.
24002 { echo "$as_me:$LINENO: checking for x87-style double rounding" >&5
24003 echo $ECHO_N "checking for x87-style double rounding... $ECHO_C" >&6; }
24004 # $BASECFLAGS may affect the result
24005 ac_save_cc="$CC"
24006 CC="$CC $BASECFLAGS"
24007 if test "$cross_compiling" = yes; then
24008 ac_cv_x87_double_rounding=no
24009 else
24010 cat >conftest.$ac_ext <<_ACEOF
24011 /* confdefs.h. */
24012 _ACEOF
24013 cat confdefs.h >>conftest.$ac_ext
24014 cat >>conftest.$ac_ext <<_ACEOF
24015 /* end confdefs.h. */
24017 #include <stdlib.h>
24018 #include <math.h>
24019 int main() {
24020 volatile double x, y, z;
24021 /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */
24022 x = 0.99999999999999989; /* 1-2**-53 */
24023 y = 1./x;
24024 if (y != 1.)
24025 exit(0);
24026 /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */
24027 x = 1e16;
24028 y = 2.99999;
24029 z = x + y;
24030 if (z != 1e16+4.)
24031 exit(0);
24032 /* both tests show evidence of double rounding */
24033 exit(1);
24036 _ACEOF
24037 rm -f conftest$ac_exeext
24038 if { (ac_try="$ac_link"
24039 case "(($ac_try" in
24040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24041 *) ac_try_echo=$ac_try;;
24042 esac
24043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24044 (eval "$ac_link") 2>&5
24045 ac_status=$?
24046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24047 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24048 { (case "(($ac_try" in
24049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24050 *) ac_try_echo=$ac_try;;
24051 esac
24052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24053 (eval "$ac_try") 2>&5
24054 ac_status=$?
24055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24056 (exit $ac_status); }; }; then
24057 ac_cv_x87_double_rounding=no
24058 else
24059 echo "$as_me: program exited with status $ac_status" >&5
24060 echo "$as_me: failed program was:" >&5
24061 sed 's/^/| /' conftest.$ac_ext >&5
24063 ( exit $ac_status )
24064 ac_cv_x87_double_rounding=yes
24066 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24070 CC="$ac_save_cc"
24071 { echo "$as_me:$LINENO: result: $ac_cv_x87_double_rounding" >&5
24072 echo "${ECHO_T}$ac_cv_x87_double_rounding" >&6; }
24073 if test "$ac_cv_x87_double_rounding" = yes
24074 then
24076 cat >>confdefs.h <<\_ACEOF
24077 #define X87_DOUBLE_ROUNDING 1
24078 _ACEOF
24082 # ************************************
24083 # * Check for mathematical functions *
24084 # ************************************
24086 LIBS_SAVE=$LIBS
24087 LIBS="$LIBS $LIBM"
24089 # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of
24090 # -0. on some architectures.
24091 { echo "$as_me:$LINENO: checking whether tanh preserves the sign of zero" >&5
24092 echo $ECHO_N "checking whether tanh preserves the sign of zero... $ECHO_C" >&6; }
24093 if test "${ac_cv_tanh_preserves_zero_sign+set}" = set; then
24094 echo $ECHO_N "(cached) $ECHO_C" >&6
24095 else
24097 if test "$cross_compiling" = yes; then
24098 ac_cv_tanh_preserves_zero_sign=no
24099 else
24100 cat >conftest.$ac_ext <<_ACEOF
24101 /* confdefs.h. */
24102 _ACEOF
24103 cat confdefs.h >>conftest.$ac_ext
24104 cat >>conftest.$ac_ext <<_ACEOF
24105 /* end confdefs.h. */
24107 #include <math.h>
24108 #include <stdlib.h>
24109 int main() {
24110 /* return 0 if either negative zeros don't exist
24111 on this platform or if negative zeros exist
24112 and tanh(-0.) == -0. */
24113 if (atan2(0., -1.) == atan2(-0., -1.) ||
24114 atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0);
24115 else exit(1);
24118 _ACEOF
24119 rm -f conftest$ac_exeext
24120 if { (ac_try="$ac_link"
24121 case "(($ac_try" in
24122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24123 *) ac_try_echo=$ac_try;;
24124 esac
24125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24126 (eval "$ac_link") 2>&5
24127 ac_status=$?
24128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24129 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24130 { (case "(($ac_try" in
24131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24132 *) ac_try_echo=$ac_try;;
24133 esac
24134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24135 (eval "$ac_try") 2>&5
24136 ac_status=$?
24137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24138 (exit $ac_status); }; }; then
24139 ac_cv_tanh_preserves_zero_sign=yes
24140 else
24141 echo "$as_me: program exited with status $ac_status" >&5
24142 echo "$as_me: failed program was:" >&5
24143 sed 's/^/| /' conftest.$ac_ext >&5
24145 ( exit $ac_status )
24146 ac_cv_tanh_preserves_zero_sign=no
24148 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24154 { echo "$as_me:$LINENO: result: $ac_cv_tanh_preserves_zero_sign" >&5
24155 echo "${ECHO_T}$ac_cv_tanh_preserves_zero_sign" >&6; }
24156 if test "$ac_cv_tanh_preserves_zero_sign" = yes
24157 then
24159 cat >>confdefs.h <<\_ACEOF
24160 #define TANH_PRESERVES_ZERO_SIGN 1
24161 _ACEOF
24174 for ac_func in acosh asinh atanh copysign erf erfc expm1 finite gamma
24176 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24177 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24178 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24179 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24180 echo $ECHO_N "(cached) $ECHO_C" >&6
24181 else
24182 cat >conftest.$ac_ext <<_ACEOF
24183 /* confdefs.h. */
24184 _ACEOF
24185 cat confdefs.h >>conftest.$ac_ext
24186 cat >>conftest.$ac_ext <<_ACEOF
24187 /* end confdefs.h. */
24188 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24189 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24190 #define $ac_func innocuous_$ac_func
24192 /* System header to define __stub macros and hopefully few prototypes,
24193 which can conflict with char $ac_func (); below.
24194 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24195 <limits.h> exists even on freestanding compilers. */
24197 #ifdef __STDC__
24198 # include <limits.h>
24199 #else
24200 # include <assert.h>
24201 #endif
24203 #undef $ac_func
24205 /* Override any GCC internal prototype to avoid an error.
24206 Use char because int might match the return type of a GCC
24207 builtin and then its argument prototype would still apply. */
24208 #ifdef __cplusplus
24209 extern "C"
24210 #endif
24211 char $ac_func ();
24212 /* The GNU C library defines this for functions which it implements
24213 to always fail with ENOSYS. Some functions are actually named
24214 something starting with __ and the normal name is an alias. */
24215 #if defined __stub_$ac_func || defined __stub___$ac_func
24216 choke me
24217 #endif
24220 main ()
24222 return $ac_func ();
24224 return 0;
24226 _ACEOF
24227 rm -f conftest.$ac_objext conftest$ac_exeext
24228 if { (ac_try="$ac_link"
24229 case "(($ac_try" in
24230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24231 *) ac_try_echo=$ac_try;;
24232 esac
24233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24234 (eval "$ac_link") 2>conftest.er1
24235 ac_status=$?
24236 grep -v '^ *+' conftest.er1 >conftest.err
24237 rm -f conftest.er1
24238 cat conftest.err >&5
24239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24240 (exit $ac_status); } && {
24241 test -z "$ac_c_werror_flag" ||
24242 test ! -s conftest.err
24243 } && test -s conftest$ac_exeext &&
24244 $as_test_x conftest$ac_exeext; then
24245 eval "$as_ac_var=yes"
24246 else
24247 echo "$as_me: failed program was:" >&5
24248 sed 's/^/| /' conftest.$ac_ext >&5
24250 eval "$as_ac_var=no"
24253 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24254 conftest$ac_exeext conftest.$ac_ext
24256 ac_res=`eval echo '${'$as_ac_var'}'`
24257 { echo "$as_me:$LINENO: result: $ac_res" >&5
24258 echo "${ECHO_T}$ac_res" >&6; }
24259 if test `eval echo '${'$as_ac_var'}'` = yes; then
24260 cat >>confdefs.h <<_ACEOF
24261 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24262 _ACEOF
24265 done
24272 for ac_func in hypot lgamma log1p round tgamma
24274 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24275 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24276 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24277 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24278 echo $ECHO_N "(cached) $ECHO_C" >&6
24279 else
24280 cat >conftest.$ac_ext <<_ACEOF
24281 /* confdefs.h. */
24282 _ACEOF
24283 cat confdefs.h >>conftest.$ac_ext
24284 cat >>conftest.$ac_ext <<_ACEOF
24285 /* end confdefs.h. */
24286 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24287 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24288 #define $ac_func innocuous_$ac_func
24290 /* System header to define __stub macros and hopefully few prototypes,
24291 which can conflict with char $ac_func (); below.
24292 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24293 <limits.h> exists even on freestanding compilers. */
24295 #ifdef __STDC__
24296 # include <limits.h>
24297 #else
24298 # include <assert.h>
24299 #endif
24301 #undef $ac_func
24303 /* Override any GCC internal prototype to avoid an error.
24304 Use char because int might match the return type of a GCC
24305 builtin and then its argument prototype would still apply. */
24306 #ifdef __cplusplus
24307 extern "C"
24308 #endif
24309 char $ac_func ();
24310 /* The GNU C library defines this for functions which it implements
24311 to always fail with ENOSYS. Some functions are actually named
24312 something starting with __ and the normal name is an alias. */
24313 #if defined __stub_$ac_func || defined __stub___$ac_func
24314 choke me
24315 #endif
24318 main ()
24320 return $ac_func ();
24322 return 0;
24324 _ACEOF
24325 rm -f conftest.$ac_objext conftest$ac_exeext
24326 if { (ac_try="$ac_link"
24327 case "(($ac_try" in
24328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24329 *) ac_try_echo=$ac_try;;
24330 esac
24331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24332 (eval "$ac_link") 2>conftest.er1
24333 ac_status=$?
24334 grep -v '^ *+' conftest.er1 >conftest.err
24335 rm -f conftest.er1
24336 cat conftest.err >&5
24337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24338 (exit $ac_status); } && {
24339 test -z "$ac_c_werror_flag" ||
24340 test ! -s conftest.err
24341 } && test -s conftest$ac_exeext &&
24342 $as_test_x conftest$ac_exeext; then
24343 eval "$as_ac_var=yes"
24344 else
24345 echo "$as_me: failed program was:" >&5
24346 sed 's/^/| /' conftest.$ac_ext >&5
24348 eval "$as_ac_var=no"
24351 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24352 conftest$ac_exeext conftest.$ac_ext
24354 ac_res=`eval echo '${'$as_ac_var'}'`
24355 { echo "$as_me:$LINENO: result: $ac_res" >&5
24356 echo "${ECHO_T}$ac_res" >&6; }
24357 if test `eval echo '${'$as_ac_var'}'` = yes; then
24358 cat >>confdefs.h <<_ACEOF
24359 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24360 _ACEOF
24363 done
24365 { echo "$as_me:$LINENO: checking whether isinf is declared" >&5
24366 echo $ECHO_N "checking whether isinf is declared... $ECHO_C" >&6; }
24367 if test "${ac_cv_have_decl_isinf+set}" = set; then
24368 echo $ECHO_N "(cached) $ECHO_C" >&6
24369 else
24370 cat >conftest.$ac_ext <<_ACEOF
24371 /* confdefs.h. */
24372 _ACEOF
24373 cat confdefs.h >>conftest.$ac_ext
24374 cat >>conftest.$ac_ext <<_ACEOF
24375 /* end confdefs.h. */
24376 #include <math.h>
24379 main ()
24381 #ifndef isinf
24382 (void) isinf;
24383 #endif
24386 return 0;
24388 _ACEOF
24389 rm -f conftest.$ac_objext
24390 if { (ac_try="$ac_compile"
24391 case "(($ac_try" in
24392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24393 *) ac_try_echo=$ac_try;;
24394 esac
24395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24396 (eval "$ac_compile") 2>conftest.er1
24397 ac_status=$?
24398 grep -v '^ *+' conftest.er1 >conftest.err
24399 rm -f conftest.er1
24400 cat conftest.err >&5
24401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24402 (exit $ac_status); } && {
24403 test -z "$ac_c_werror_flag" ||
24404 test ! -s conftest.err
24405 } && test -s conftest.$ac_objext; then
24406 ac_cv_have_decl_isinf=yes
24407 else
24408 echo "$as_me: failed program was:" >&5
24409 sed 's/^/| /' conftest.$ac_ext >&5
24411 ac_cv_have_decl_isinf=no
24414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24416 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isinf" >&5
24417 echo "${ECHO_T}$ac_cv_have_decl_isinf" >&6; }
24418 if test $ac_cv_have_decl_isinf = yes; then
24420 cat >>confdefs.h <<_ACEOF
24421 #define HAVE_DECL_ISINF 1
24422 _ACEOF
24425 else
24426 cat >>confdefs.h <<_ACEOF
24427 #define HAVE_DECL_ISINF 0
24428 _ACEOF
24432 { echo "$as_me:$LINENO: checking whether isnan is declared" >&5
24433 echo $ECHO_N "checking whether isnan is declared... $ECHO_C" >&6; }
24434 if test "${ac_cv_have_decl_isnan+set}" = set; then
24435 echo $ECHO_N "(cached) $ECHO_C" >&6
24436 else
24437 cat >conftest.$ac_ext <<_ACEOF
24438 /* confdefs.h. */
24439 _ACEOF
24440 cat confdefs.h >>conftest.$ac_ext
24441 cat >>conftest.$ac_ext <<_ACEOF
24442 /* end confdefs.h. */
24443 #include <math.h>
24446 main ()
24448 #ifndef isnan
24449 (void) isnan;
24450 #endif
24453 return 0;
24455 _ACEOF
24456 rm -f conftest.$ac_objext
24457 if { (ac_try="$ac_compile"
24458 case "(($ac_try" in
24459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24460 *) ac_try_echo=$ac_try;;
24461 esac
24462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24463 (eval "$ac_compile") 2>conftest.er1
24464 ac_status=$?
24465 grep -v '^ *+' conftest.er1 >conftest.err
24466 rm -f conftest.er1
24467 cat conftest.err >&5
24468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24469 (exit $ac_status); } && {
24470 test -z "$ac_c_werror_flag" ||
24471 test ! -s conftest.err
24472 } && test -s conftest.$ac_objext; then
24473 ac_cv_have_decl_isnan=yes
24474 else
24475 echo "$as_me: failed program was:" >&5
24476 sed 's/^/| /' conftest.$ac_ext >&5
24478 ac_cv_have_decl_isnan=no
24481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24483 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isnan" >&5
24484 echo "${ECHO_T}$ac_cv_have_decl_isnan" >&6; }
24485 if test $ac_cv_have_decl_isnan = yes; then
24487 cat >>confdefs.h <<_ACEOF
24488 #define HAVE_DECL_ISNAN 1
24489 _ACEOF
24492 else
24493 cat >>confdefs.h <<_ACEOF
24494 #define HAVE_DECL_ISNAN 0
24495 _ACEOF
24499 { echo "$as_me:$LINENO: checking whether isfinite is declared" >&5
24500 echo $ECHO_N "checking whether isfinite is declared... $ECHO_C" >&6; }
24501 if test "${ac_cv_have_decl_isfinite+set}" = set; then
24502 echo $ECHO_N "(cached) $ECHO_C" >&6
24503 else
24504 cat >conftest.$ac_ext <<_ACEOF
24505 /* confdefs.h. */
24506 _ACEOF
24507 cat confdefs.h >>conftest.$ac_ext
24508 cat >>conftest.$ac_ext <<_ACEOF
24509 /* end confdefs.h. */
24510 #include <math.h>
24513 main ()
24515 #ifndef isfinite
24516 (void) isfinite;
24517 #endif
24520 return 0;
24522 _ACEOF
24523 rm -f conftest.$ac_objext
24524 if { (ac_try="$ac_compile"
24525 case "(($ac_try" in
24526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24527 *) ac_try_echo=$ac_try;;
24528 esac
24529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24530 (eval "$ac_compile") 2>conftest.er1
24531 ac_status=$?
24532 grep -v '^ *+' conftest.er1 >conftest.err
24533 rm -f conftest.er1
24534 cat conftest.err >&5
24535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24536 (exit $ac_status); } && {
24537 test -z "$ac_c_werror_flag" ||
24538 test ! -s conftest.err
24539 } && test -s conftest.$ac_objext; then
24540 ac_cv_have_decl_isfinite=yes
24541 else
24542 echo "$as_me: failed program was:" >&5
24543 sed 's/^/| /' conftest.$ac_ext >&5
24545 ac_cv_have_decl_isfinite=no
24548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24550 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isfinite" >&5
24551 echo "${ECHO_T}$ac_cv_have_decl_isfinite" >&6; }
24552 if test $ac_cv_have_decl_isfinite = yes; then
24554 cat >>confdefs.h <<_ACEOF
24555 #define HAVE_DECL_ISFINITE 1
24556 _ACEOF
24559 else
24560 cat >>confdefs.h <<_ACEOF
24561 #define HAVE_DECL_ISFINITE 0
24562 _ACEOF
24569 LIBS=$LIBS_SAVE
24571 # For multiprocessing module, check that sem_open
24572 # actually works. For FreeBSD versions <= 7.2,
24573 # the kernel module that provides POSIX semaphores
24574 # isn't loaded by default, so an attempt to call
24575 # sem_open results in a 'Signal 12' error.
24576 { echo "$as_me:$LINENO: checking whether POSIX semaphores are enabled" >&5
24577 echo $ECHO_N "checking whether POSIX semaphores are enabled... $ECHO_C" >&6; }
24578 if test "${ac_cv_posix_semaphores_enabled+set}" = set; then
24579 echo $ECHO_N "(cached) $ECHO_C" >&6
24580 else
24581 if test "$cross_compiling" = yes; then
24582 ac_cv_posix_semaphores_enabled=yes
24583 else
24584 cat >conftest.$ac_ext <<_ACEOF
24585 /* confdefs.h. */
24586 _ACEOF
24587 cat confdefs.h >>conftest.$ac_ext
24588 cat >>conftest.$ac_ext <<_ACEOF
24589 /* end confdefs.h. */
24591 #include <unistd.h>
24592 #include <fcntl.h>
24593 #include <stdio.h>
24594 #include <semaphore.h>
24595 #include <sys/stat.h>
24597 int main(void) {
24598 sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0);
24599 if (a == SEM_FAILED) {
24600 perror("sem_open");
24601 return 1;
24603 sem_close(a);
24604 sem_unlink("/autoconf");
24605 return 0;
24608 _ACEOF
24609 rm -f conftest$ac_exeext
24610 if { (ac_try="$ac_link"
24611 case "(($ac_try" in
24612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24613 *) ac_try_echo=$ac_try;;
24614 esac
24615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24616 (eval "$ac_link") 2>&5
24617 ac_status=$?
24618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24619 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24620 { (case "(($ac_try" in
24621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24622 *) ac_try_echo=$ac_try;;
24623 esac
24624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24625 (eval "$ac_try") 2>&5
24626 ac_status=$?
24627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24628 (exit $ac_status); }; }; then
24629 ac_cv_posix_semaphores_enabled=yes
24630 else
24631 echo "$as_me: program exited with status $ac_status" >&5
24632 echo "$as_me: failed program was:" >&5
24633 sed 's/^/| /' conftest.$ac_ext >&5
24635 ( exit $ac_status )
24636 ac_cv_posix_semaphores_enabled=no
24638 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24645 { echo "$as_me:$LINENO: result: $ac_cv_posix_semaphores_enabled" >&5
24646 echo "${ECHO_T}$ac_cv_posix_semaphores_enabled" >&6; }
24647 if test $ac_cv_posix_semaphores_enabled = no
24648 then
24650 cat >>confdefs.h <<\_ACEOF
24651 #define POSIX_SEMAPHORES_NOT_ENABLED 1
24652 _ACEOF
24656 # Multiprocessing check for broken sem_getvalue
24657 { echo "$as_me:$LINENO: checking for broken sem_getvalue" >&5
24658 echo $ECHO_N "checking for broken sem_getvalue... $ECHO_C" >&6; }
24659 if test "${ac_cv_broken_sem_getvalue+set}" = set; then
24660 echo $ECHO_N "(cached) $ECHO_C" >&6
24661 else
24662 if test "$cross_compiling" = yes; then
24663 ac_cv_broken_sem_getvalue=yes
24664 else
24665 cat >conftest.$ac_ext <<_ACEOF
24666 /* confdefs.h. */
24667 _ACEOF
24668 cat confdefs.h >>conftest.$ac_ext
24669 cat >>conftest.$ac_ext <<_ACEOF
24670 /* end confdefs.h. */
24672 #include <unistd.h>
24673 #include <fcntl.h>
24674 #include <stdio.h>
24675 #include <semaphore.h>
24676 #include <sys/stat.h>
24678 int main(void){
24679 sem_t *a = sem_open("/autocftw", O_CREAT, S_IRUSR|S_IWUSR, 0);
24680 int count;
24681 int res;
24682 if(a==SEM_FAILED){
24683 perror("sem_open");
24684 return 1;
24687 res = sem_getvalue(a, &count);
24688 sem_close(a);
24689 sem_unlink("/autocftw");
24690 return res==-1 ? 1 : 0;
24693 _ACEOF
24694 rm -f conftest$ac_exeext
24695 if { (ac_try="$ac_link"
24696 case "(($ac_try" in
24697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24698 *) ac_try_echo=$ac_try;;
24699 esac
24700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24701 (eval "$ac_link") 2>&5
24702 ac_status=$?
24703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24704 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24705 { (case "(($ac_try" in
24706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24707 *) ac_try_echo=$ac_try;;
24708 esac
24709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24710 (eval "$ac_try") 2>&5
24711 ac_status=$?
24712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24713 (exit $ac_status); }; }; then
24714 ac_cv_broken_sem_getvalue=no
24715 else
24716 echo "$as_me: program exited with status $ac_status" >&5
24717 echo "$as_me: failed program was:" >&5
24718 sed 's/^/| /' conftest.$ac_ext >&5
24720 ( exit $ac_status )
24721 ac_cv_broken_sem_getvalue=yes
24723 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24730 { echo "$as_me:$LINENO: result: $ac_cv_broken_sem_getvalue" >&5
24731 echo "${ECHO_T}$ac_cv_broken_sem_getvalue" >&6; }
24732 if test $ac_cv_broken_sem_getvalue = yes
24733 then
24735 cat >>confdefs.h <<\_ACEOF
24736 #define HAVE_BROKEN_SEM_GETVALUE 1
24737 _ACEOF
24741 # determine what size digit to use for Python's longs
24742 { echo "$as_me:$LINENO: checking digit size for Python's longs" >&5
24743 echo $ECHO_N "checking digit size for Python's longs... $ECHO_C" >&6; }
24744 # Check whether --enable-big-digits was given.
24745 if test "${enable_big_digits+set}" = set; then
24746 enableval=$enable_big_digits; case $enable_big_digits in
24747 yes)
24748 enable_big_digits=30 ;;
24750 enable_big_digits=15 ;;
24751 15|30)
24754 { { echo "$as_me:$LINENO: error: bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" >&5
24755 echo "$as_me: error: bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" >&2;}
24756 { (exit 1); exit 1; }; } ;;
24757 esac
24758 { echo "$as_me:$LINENO: result: $enable_big_digits" >&5
24759 echo "${ECHO_T}$enable_big_digits" >&6; }
24761 cat >>confdefs.h <<_ACEOF
24762 #define PYLONG_BITS_IN_DIGIT $enable_big_digits
24763 _ACEOF
24766 else
24767 { echo "$as_me:$LINENO: result: no value specified" >&5
24768 echo "${ECHO_T}no value specified" >&6; }
24772 # check for wchar.h
24773 if test "${ac_cv_header_wchar_h+set}" = set; then
24774 { echo "$as_me:$LINENO: checking for wchar.h" >&5
24775 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
24776 if test "${ac_cv_header_wchar_h+set}" = set; then
24777 echo $ECHO_N "(cached) $ECHO_C" >&6
24779 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
24780 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
24781 else
24782 # Is the header compilable?
24783 { echo "$as_me:$LINENO: checking wchar.h usability" >&5
24784 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6; }
24785 cat >conftest.$ac_ext <<_ACEOF
24786 /* confdefs.h. */
24787 _ACEOF
24788 cat confdefs.h >>conftest.$ac_ext
24789 cat >>conftest.$ac_ext <<_ACEOF
24790 /* end confdefs.h. */
24791 $ac_includes_default
24792 #include <wchar.h>
24793 _ACEOF
24794 rm -f conftest.$ac_objext
24795 if { (ac_try="$ac_compile"
24796 case "(($ac_try" in
24797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24798 *) ac_try_echo=$ac_try;;
24799 esac
24800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24801 (eval "$ac_compile") 2>conftest.er1
24802 ac_status=$?
24803 grep -v '^ *+' conftest.er1 >conftest.err
24804 rm -f conftest.er1
24805 cat conftest.err >&5
24806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24807 (exit $ac_status); } && {
24808 test -z "$ac_c_werror_flag" ||
24809 test ! -s conftest.err
24810 } && test -s conftest.$ac_objext; then
24811 ac_header_compiler=yes
24812 else
24813 echo "$as_me: failed program was:" >&5
24814 sed 's/^/| /' conftest.$ac_ext >&5
24816 ac_header_compiler=no
24819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24820 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24821 echo "${ECHO_T}$ac_header_compiler" >&6; }
24823 # Is the header present?
24824 { echo "$as_me:$LINENO: checking wchar.h presence" >&5
24825 echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6; }
24826 cat >conftest.$ac_ext <<_ACEOF
24827 /* confdefs.h. */
24828 _ACEOF
24829 cat confdefs.h >>conftest.$ac_ext
24830 cat >>conftest.$ac_ext <<_ACEOF
24831 /* end confdefs.h. */
24832 #include <wchar.h>
24833 _ACEOF
24834 if { (ac_try="$ac_cpp conftest.$ac_ext"
24835 case "(($ac_try" in
24836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24837 *) ac_try_echo=$ac_try;;
24838 esac
24839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24840 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24841 ac_status=$?
24842 grep -v '^ *+' conftest.er1 >conftest.err
24843 rm -f conftest.er1
24844 cat conftest.err >&5
24845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24846 (exit $ac_status); } >/dev/null && {
24847 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24848 test ! -s conftest.err
24849 }; then
24850 ac_header_preproc=yes
24851 else
24852 echo "$as_me: failed program was:" >&5
24853 sed 's/^/| /' conftest.$ac_ext >&5
24855 ac_header_preproc=no
24858 rm -f conftest.err conftest.$ac_ext
24859 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24860 echo "${ECHO_T}$ac_header_preproc" >&6; }
24862 # So? What about this header?
24863 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24864 yes:no: )
24865 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
24866 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24867 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
24868 echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
24869 ac_header_preproc=yes
24871 no:yes:* )
24872 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
24873 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
24874 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
24875 echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
24876 { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
24877 echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
24878 { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5
24879 echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;}
24880 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
24881 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
24882 { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
24883 echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
24884 ( cat <<\_ASBOX
24885 ## -------------------------------------- ##
24886 ## Report this to http://bugs.python.org/ ##
24887 ## -------------------------------------- ##
24888 _ASBOX
24889 ) | sed "s/^/$as_me: WARNING: /" >&2
24891 esac
24892 { echo "$as_me:$LINENO: checking for wchar.h" >&5
24893 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
24894 if test "${ac_cv_header_wchar_h+set}" = set; then
24895 echo $ECHO_N "(cached) $ECHO_C" >&6
24896 else
24897 ac_cv_header_wchar_h=$ac_header_preproc
24899 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
24900 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
24903 if test $ac_cv_header_wchar_h = yes; then
24906 cat >>confdefs.h <<\_ACEOF
24907 #define HAVE_WCHAR_H 1
24908 _ACEOF
24910 wchar_h="yes"
24912 else
24913 wchar_h="no"
24919 # determine wchar_t size
24920 if test "$wchar_h" = yes
24921 then
24922 { echo "$as_me:$LINENO: checking for wchar_t" >&5
24923 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
24924 if test "${ac_cv_type_wchar_t+set}" = set; then
24925 echo $ECHO_N "(cached) $ECHO_C" >&6
24926 else
24927 cat >conftest.$ac_ext <<_ACEOF
24928 /* confdefs.h. */
24929 _ACEOF
24930 cat confdefs.h >>conftest.$ac_ext
24931 cat >>conftest.$ac_ext <<_ACEOF
24932 /* end confdefs.h. */
24933 #include <wchar.h>
24935 typedef wchar_t ac__type_new_;
24937 main ()
24939 if ((ac__type_new_ *) 0)
24940 return 0;
24941 if (sizeof (ac__type_new_))
24942 return 0;
24944 return 0;
24946 _ACEOF
24947 rm -f conftest.$ac_objext
24948 if { (ac_try="$ac_compile"
24949 case "(($ac_try" in
24950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24951 *) ac_try_echo=$ac_try;;
24952 esac
24953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24954 (eval "$ac_compile") 2>conftest.er1
24955 ac_status=$?
24956 grep -v '^ *+' conftest.er1 >conftest.err
24957 rm -f conftest.er1
24958 cat conftest.err >&5
24959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24960 (exit $ac_status); } && {
24961 test -z "$ac_c_werror_flag" ||
24962 test ! -s conftest.err
24963 } && test -s conftest.$ac_objext; then
24964 ac_cv_type_wchar_t=yes
24965 else
24966 echo "$as_me: failed program was:" >&5
24967 sed 's/^/| /' conftest.$ac_ext >&5
24969 ac_cv_type_wchar_t=no
24972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24974 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
24975 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
24977 # The cast to long int works around a bug in the HP C Compiler
24978 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24979 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24980 # This bug is HP SR number 8606223364.
24981 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
24982 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
24983 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
24984 echo $ECHO_N "(cached) $ECHO_C" >&6
24985 else
24986 if test "$cross_compiling" = yes; then
24987 # Depending upon the size, compute the lo and hi bounds.
24988 cat >conftest.$ac_ext <<_ACEOF
24989 /* confdefs.h. */
24990 _ACEOF
24991 cat confdefs.h >>conftest.$ac_ext
24992 cat >>conftest.$ac_ext <<_ACEOF
24993 /* end confdefs.h. */
24994 #include <wchar.h>
24996 typedef wchar_t ac__type_sizeof_;
24998 main ()
25000 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25001 test_array [0] = 0
25004 return 0;
25006 _ACEOF
25007 rm -f conftest.$ac_objext
25008 if { (ac_try="$ac_compile"
25009 case "(($ac_try" in
25010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25011 *) ac_try_echo=$ac_try;;
25012 esac
25013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25014 (eval "$ac_compile") 2>conftest.er1
25015 ac_status=$?
25016 grep -v '^ *+' conftest.er1 >conftest.err
25017 rm -f conftest.er1
25018 cat conftest.err >&5
25019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25020 (exit $ac_status); } && {
25021 test -z "$ac_c_werror_flag" ||
25022 test ! -s conftest.err
25023 } && test -s conftest.$ac_objext; then
25024 ac_lo=0 ac_mid=0
25025 while :; do
25026 cat >conftest.$ac_ext <<_ACEOF
25027 /* confdefs.h. */
25028 _ACEOF
25029 cat confdefs.h >>conftest.$ac_ext
25030 cat >>conftest.$ac_ext <<_ACEOF
25031 /* end confdefs.h. */
25032 #include <wchar.h>
25034 typedef wchar_t ac__type_sizeof_;
25036 main ()
25038 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25039 test_array [0] = 0
25042 return 0;
25044 _ACEOF
25045 rm -f conftest.$ac_objext
25046 if { (ac_try="$ac_compile"
25047 case "(($ac_try" in
25048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25049 *) ac_try_echo=$ac_try;;
25050 esac
25051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25052 (eval "$ac_compile") 2>conftest.er1
25053 ac_status=$?
25054 grep -v '^ *+' conftest.er1 >conftest.err
25055 rm -f conftest.er1
25056 cat conftest.err >&5
25057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25058 (exit $ac_status); } && {
25059 test -z "$ac_c_werror_flag" ||
25060 test ! -s conftest.err
25061 } && test -s conftest.$ac_objext; then
25062 ac_hi=$ac_mid; break
25063 else
25064 echo "$as_me: failed program was:" >&5
25065 sed 's/^/| /' conftest.$ac_ext >&5
25067 ac_lo=`expr $ac_mid + 1`
25068 if test $ac_lo -le $ac_mid; then
25069 ac_lo= ac_hi=
25070 break
25072 ac_mid=`expr 2 '*' $ac_mid + 1`
25075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25076 done
25077 else
25078 echo "$as_me: failed program was:" >&5
25079 sed 's/^/| /' conftest.$ac_ext >&5
25081 cat >conftest.$ac_ext <<_ACEOF
25082 /* confdefs.h. */
25083 _ACEOF
25084 cat confdefs.h >>conftest.$ac_ext
25085 cat >>conftest.$ac_ext <<_ACEOF
25086 /* end confdefs.h. */
25087 #include <wchar.h>
25089 typedef wchar_t ac__type_sizeof_;
25091 main ()
25093 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25094 test_array [0] = 0
25097 return 0;
25099 _ACEOF
25100 rm -f conftest.$ac_objext
25101 if { (ac_try="$ac_compile"
25102 case "(($ac_try" in
25103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25104 *) ac_try_echo=$ac_try;;
25105 esac
25106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25107 (eval "$ac_compile") 2>conftest.er1
25108 ac_status=$?
25109 grep -v '^ *+' conftest.er1 >conftest.err
25110 rm -f conftest.er1
25111 cat conftest.err >&5
25112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25113 (exit $ac_status); } && {
25114 test -z "$ac_c_werror_flag" ||
25115 test ! -s conftest.err
25116 } && test -s conftest.$ac_objext; then
25117 ac_hi=-1 ac_mid=-1
25118 while :; do
25119 cat >conftest.$ac_ext <<_ACEOF
25120 /* confdefs.h. */
25121 _ACEOF
25122 cat confdefs.h >>conftest.$ac_ext
25123 cat >>conftest.$ac_ext <<_ACEOF
25124 /* end confdefs.h. */
25125 #include <wchar.h>
25127 typedef wchar_t ac__type_sizeof_;
25129 main ()
25131 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25132 test_array [0] = 0
25135 return 0;
25137 _ACEOF
25138 rm -f conftest.$ac_objext
25139 if { (ac_try="$ac_compile"
25140 case "(($ac_try" in
25141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25142 *) ac_try_echo=$ac_try;;
25143 esac
25144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25145 (eval "$ac_compile") 2>conftest.er1
25146 ac_status=$?
25147 grep -v '^ *+' conftest.er1 >conftest.err
25148 rm -f conftest.er1
25149 cat conftest.err >&5
25150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25151 (exit $ac_status); } && {
25152 test -z "$ac_c_werror_flag" ||
25153 test ! -s conftest.err
25154 } && test -s conftest.$ac_objext; then
25155 ac_lo=$ac_mid; break
25156 else
25157 echo "$as_me: failed program was:" >&5
25158 sed 's/^/| /' conftest.$ac_ext >&5
25160 ac_hi=`expr '(' $ac_mid ')' - 1`
25161 if test $ac_mid -le $ac_hi; then
25162 ac_lo= ac_hi=
25163 break
25165 ac_mid=`expr 2 '*' $ac_mid`
25168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25169 done
25170 else
25171 echo "$as_me: failed program was:" >&5
25172 sed 's/^/| /' conftest.$ac_ext >&5
25174 ac_lo= ac_hi=
25177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25181 # Binary search between lo and hi bounds.
25182 while test "x$ac_lo" != "x$ac_hi"; do
25183 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25184 cat >conftest.$ac_ext <<_ACEOF
25185 /* confdefs.h. */
25186 _ACEOF
25187 cat confdefs.h >>conftest.$ac_ext
25188 cat >>conftest.$ac_ext <<_ACEOF
25189 /* end confdefs.h. */
25190 #include <wchar.h>
25192 typedef wchar_t ac__type_sizeof_;
25194 main ()
25196 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25197 test_array [0] = 0
25200 return 0;
25202 _ACEOF
25203 rm -f conftest.$ac_objext
25204 if { (ac_try="$ac_compile"
25205 case "(($ac_try" in
25206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25207 *) ac_try_echo=$ac_try;;
25208 esac
25209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25210 (eval "$ac_compile") 2>conftest.er1
25211 ac_status=$?
25212 grep -v '^ *+' conftest.er1 >conftest.err
25213 rm -f conftest.er1
25214 cat conftest.err >&5
25215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25216 (exit $ac_status); } && {
25217 test -z "$ac_c_werror_flag" ||
25218 test ! -s conftest.err
25219 } && test -s conftest.$ac_objext; then
25220 ac_hi=$ac_mid
25221 else
25222 echo "$as_me: failed program was:" >&5
25223 sed 's/^/| /' conftest.$ac_ext >&5
25225 ac_lo=`expr '(' $ac_mid ')' + 1`
25228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25229 done
25230 case $ac_lo in
25231 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
25232 '') if test "$ac_cv_type_wchar_t" = yes; then
25233 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
25234 See \`config.log' for more details." >&5
25235 echo "$as_me: error: cannot compute sizeof (wchar_t)
25236 See \`config.log' for more details." >&2;}
25237 { (exit 77); exit 77; }; }
25238 else
25239 ac_cv_sizeof_wchar_t=0
25240 fi ;;
25241 esac
25242 else
25243 cat >conftest.$ac_ext <<_ACEOF
25244 /* confdefs.h. */
25245 _ACEOF
25246 cat confdefs.h >>conftest.$ac_ext
25247 cat >>conftest.$ac_ext <<_ACEOF
25248 /* end confdefs.h. */
25249 #include <wchar.h>
25251 typedef wchar_t ac__type_sizeof_;
25252 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25253 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25254 #include <stdio.h>
25255 #include <stdlib.h>
25257 main ()
25260 FILE *f = fopen ("conftest.val", "w");
25261 if (! f)
25262 return 1;
25263 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25265 long int i = longval ();
25266 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25267 return 1;
25268 fprintf (f, "%ld\n", i);
25270 else
25272 unsigned long int i = ulongval ();
25273 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25274 return 1;
25275 fprintf (f, "%lu\n", i);
25277 return ferror (f) || fclose (f) != 0;
25280 return 0;
25282 _ACEOF
25283 rm -f conftest$ac_exeext
25284 if { (ac_try="$ac_link"
25285 case "(($ac_try" in
25286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25287 *) ac_try_echo=$ac_try;;
25288 esac
25289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25290 (eval "$ac_link") 2>&5
25291 ac_status=$?
25292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25293 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25294 { (case "(($ac_try" in
25295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25296 *) ac_try_echo=$ac_try;;
25297 esac
25298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25299 (eval "$ac_try") 2>&5
25300 ac_status=$?
25301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25302 (exit $ac_status); }; }; then
25303 ac_cv_sizeof_wchar_t=`cat conftest.val`
25304 else
25305 echo "$as_me: program exited with status $ac_status" >&5
25306 echo "$as_me: failed program was:" >&5
25307 sed 's/^/| /' conftest.$ac_ext >&5
25309 ( exit $ac_status )
25310 if test "$ac_cv_type_wchar_t" = yes; then
25311 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
25312 See \`config.log' for more details." >&5
25313 echo "$as_me: error: cannot compute sizeof (wchar_t)
25314 See \`config.log' for more details." >&2;}
25315 { (exit 77); exit 77; }; }
25316 else
25317 ac_cv_sizeof_wchar_t=0
25320 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25322 rm -f conftest.val
25324 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
25325 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
25329 cat >>confdefs.h <<_ACEOF
25330 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
25331 _ACEOF
25336 { echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5
25337 echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6; }
25338 have_ucs4_tcl=no
25339 cat >conftest.$ac_ext <<_ACEOF
25340 /* confdefs.h. */
25341 _ACEOF
25342 cat confdefs.h >>conftest.$ac_ext
25343 cat >>conftest.$ac_ext <<_ACEOF
25344 /* end confdefs.h. */
25346 #include <tcl.h>
25347 #if TCL_UTF_MAX != 6
25348 # error "NOT UCS4_TCL"
25349 #endif
25351 main ()
25355 return 0;
25357 _ACEOF
25358 rm -f conftest.$ac_objext
25359 if { (ac_try="$ac_compile"
25360 case "(($ac_try" in
25361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25362 *) ac_try_echo=$ac_try;;
25363 esac
25364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25365 (eval "$ac_compile") 2>conftest.er1
25366 ac_status=$?
25367 grep -v '^ *+' conftest.er1 >conftest.err
25368 rm -f conftest.er1
25369 cat conftest.err >&5
25370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25371 (exit $ac_status); } && {
25372 test -z "$ac_c_werror_flag" ||
25373 test ! -s conftest.err
25374 } && test -s conftest.$ac_objext; then
25377 cat >>confdefs.h <<\_ACEOF
25378 #define HAVE_UCS4_TCL 1
25379 _ACEOF
25381 have_ucs4_tcl=yes
25383 else
25384 echo "$as_me: failed program was:" >&5
25385 sed 's/^/| /' conftest.$ac_ext >&5
25390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25391 { echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5
25392 echo "${ECHO_T}$have_ucs4_tcl" >&6; }
25394 # check whether wchar_t is signed or not
25395 if test "$wchar_h" = yes
25396 then
25397 # check whether wchar_t is signed or not
25398 { echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5
25399 echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6; }
25400 if test "${ac_cv_wchar_t_signed+set}" = set; then
25401 echo $ECHO_N "(cached) $ECHO_C" >&6
25402 else
25404 if test "$cross_compiling" = yes; then
25405 ac_cv_wchar_t_signed=yes
25406 else
25407 cat >conftest.$ac_ext <<_ACEOF
25408 /* confdefs.h. */
25409 _ACEOF
25410 cat confdefs.h >>conftest.$ac_ext
25411 cat >>conftest.$ac_ext <<_ACEOF
25412 /* end confdefs.h. */
25414 #include <wchar.h>
25415 int main()
25417 /* Success: exit code 0 */
25418 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
25421 _ACEOF
25422 rm -f conftest$ac_exeext
25423 if { (ac_try="$ac_link"
25424 case "(($ac_try" in
25425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25426 *) ac_try_echo=$ac_try;;
25427 esac
25428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25429 (eval "$ac_link") 2>&5
25430 ac_status=$?
25431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25432 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25433 { (case "(($ac_try" in
25434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25435 *) ac_try_echo=$ac_try;;
25436 esac
25437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25438 (eval "$ac_try") 2>&5
25439 ac_status=$?
25440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25441 (exit $ac_status); }; }; then
25442 ac_cv_wchar_t_signed=yes
25443 else
25444 echo "$as_me: program exited with status $ac_status" >&5
25445 echo "$as_me: failed program was:" >&5
25446 sed 's/^/| /' conftest.$ac_ext >&5
25448 ( exit $ac_status )
25449 ac_cv_wchar_t_signed=no
25451 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25457 { echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5
25458 echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6; }
25461 { echo "$as_me:$LINENO: checking what type to use for unicode" >&5
25462 echo $ECHO_N "checking what type to use for unicode... $ECHO_C" >&6; }
25463 # Check whether --enable-unicode was given.
25464 if test "${enable_unicode+set}" = set; then
25465 enableval=$enable_unicode;
25466 else
25467 enable_unicode=yes
25471 if test $enable_unicode = yes
25472 then
25473 # Without any arguments, Py_UNICODE defaults to two-byte mode
25474 case "$have_ucs4_tcl" in
25475 yes) enable_unicode="ucs4"
25477 *) enable_unicode="ucs2"
25479 esac
25484 case "$enable_unicode" in
25485 ucs2) unicode_size="2"
25486 cat >>confdefs.h <<\_ACEOF
25487 #define Py_UNICODE_SIZE 2
25488 _ACEOF
25491 ucs4) unicode_size="4"
25492 cat >>confdefs.h <<\_ACEOF
25493 #define Py_UNICODE_SIZE 4
25494 _ACEOF
25497 esac
25503 if test "$enable_unicode" = "no"
25504 then
25505 UNICODE_OBJS=""
25506 { echo "$as_me:$LINENO: result: not used" >&5
25507 echo "${ECHO_T}not used" >&6; }
25508 else
25509 UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o"
25511 cat >>confdefs.h <<\_ACEOF
25512 #define Py_USING_UNICODE 1
25513 _ACEOF
25516 # wchar_t is only usable if it maps to an unsigned type
25517 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
25518 -a "$ac_cv_wchar_t_signed" = "no"
25519 then
25520 PY_UNICODE_TYPE="wchar_t"
25522 cat >>confdefs.h <<\_ACEOF
25523 #define HAVE_USABLE_WCHAR_T 1
25524 _ACEOF
25526 cat >>confdefs.h <<\_ACEOF
25527 #define PY_UNICODE_TYPE wchar_t
25528 _ACEOF
25530 elif test "$ac_cv_sizeof_short" = "$unicode_size"
25531 then
25532 PY_UNICODE_TYPE="unsigned short"
25533 cat >>confdefs.h <<\_ACEOF
25534 #define PY_UNICODE_TYPE unsigned short
25535 _ACEOF
25537 elif test "$ac_cv_sizeof_long" = "$unicode_size"
25538 then
25539 PY_UNICODE_TYPE="unsigned long"
25540 cat >>confdefs.h <<\_ACEOF
25541 #define PY_UNICODE_TYPE unsigned long
25542 _ACEOF
25544 else
25545 PY_UNICODE_TYPE="no type found"
25547 { echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
25548 echo "${ECHO_T}$PY_UNICODE_TYPE" >&6; }
25551 # check for endianness
25552 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
25553 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
25554 if test "${ac_cv_c_bigendian+set}" = set; then
25555 echo $ECHO_N "(cached) $ECHO_C" >&6
25556 else
25557 # See if sys/param.h defines the BYTE_ORDER macro.
25558 cat >conftest.$ac_ext <<_ACEOF
25559 /* confdefs.h. */
25560 _ACEOF
25561 cat confdefs.h >>conftest.$ac_ext
25562 cat >>conftest.$ac_ext <<_ACEOF
25563 /* end confdefs.h. */
25564 #include <sys/types.h>
25565 #include <sys/param.h>
25568 main ()
25570 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
25571 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
25572 bogus endian macros
25573 #endif
25576 return 0;
25578 _ACEOF
25579 rm -f conftest.$ac_objext
25580 if { (ac_try="$ac_compile"
25581 case "(($ac_try" in
25582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25583 *) ac_try_echo=$ac_try;;
25584 esac
25585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25586 (eval "$ac_compile") 2>conftest.er1
25587 ac_status=$?
25588 grep -v '^ *+' conftest.er1 >conftest.err
25589 rm -f conftest.er1
25590 cat conftest.err >&5
25591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25592 (exit $ac_status); } && {
25593 test -z "$ac_c_werror_flag" ||
25594 test ! -s conftest.err
25595 } && test -s conftest.$ac_objext; then
25596 # It does; now see whether it defined to BIG_ENDIAN or not.
25597 cat >conftest.$ac_ext <<_ACEOF
25598 /* confdefs.h. */
25599 _ACEOF
25600 cat confdefs.h >>conftest.$ac_ext
25601 cat >>conftest.$ac_ext <<_ACEOF
25602 /* end confdefs.h. */
25603 #include <sys/types.h>
25604 #include <sys/param.h>
25607 main ()
25609 #if BYTE_ORDER != BIG_ENDIAN
25610 not big endian
25611 #endif
25614 return 0;
25616 _ACEOF
25617 rm -f conftest.$ac_objext
25618 if { (ac_try="$ac_compile"
25619 case "(($ac_try" in
25620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25621 *) ac_try_echo=$ac_try;;
25622 esac
25623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25624 (eval "$ac_compile") 2>conftest.er1
25625 ac_status=$?
25626 grep -v '^ *+' conftest.er1 >conftest.err
25627 rm -f conftest.er1
25628 cat conftest.err >&5
25629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25630 (exit $ac_status); } && {
25631 test -z "$ac_c_werror_flag" ||
25632 test ! -s conftest.err
25633 } && test -s conftest.$ac_objext; then
25634 ac_cv_c_bigendian=yes
25635 else
25636 echo "$as_me: failed program was:" >&5
25637 sed 's/^/| /' conftest.$ac_ext >&5
25639 ac_cv_c_bigendian=no
25642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25643 else
25644 echo "$as_me: failed program was:" >&5
25645 sed 's/^/| /' conftest.$ac_ext >&5
25647 # It does not; compile a test program.
25648 if test "$cross_compiling" = yes; then
25649 # try to guess the endianness by grepping values into an object file
25650 ac_cv_c_bigendian=unknown
25651 cat >conftest.$ac_ext <<_ACEOF
25652 /* confdefs.h. */
25653 _ACEOF
25654 cat confdefs.h >>conftest.$ac_ext
25655 cat >>conftest.$ac_ext <<_ACEOF
25656 /* end confdefs.h. */
25657 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
25658 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
25659 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
25660 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
25661 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
25662 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
25664 main ()
25666 _ascii (); _ebcdic ();
25668 return 0;
25670 _ACEOF
25671 rm -f conftest.$ac_objext
25672 if { (ac_try="$ac_compile"
25673 case "(($ac_try" in
25674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25675 *) ac_try_echo=$ac_try;;
25676 esac
25677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25678 (eval "$ac_compile") 2>conftest.er1
25679 ac_status=$?
25680 grep -v '^ *+' conftest.er1 >conftest.err
25681 rm -f conftest.er1
25682 cat conftest.err >&5
25683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25684 (exit $ac_status); } && {
25685 test -z "$ac_c_werror_flag" ||
25686 test ! -s conftest.err
25687 } && test -s conftest.$ac_objext; then
25688 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
25689 ac_cv_c_bigendian=yes
25691 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
25692 if test "$ac_cv_c_bigendian" = unknown; then
25693 ac_cv_c_bigendian=no
25694 else
25695 # finding both strings is unlikely to happen, but who knows?
25696 ac_cv_c_bigendian=unknown
25699 else
25700 echo "$as_me: failed program was:" >&5
25701 sed 's/^/| /' conftest.$ac_ext >&5
25706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25707 else
25708 cat >conftest.$ac_ext <<_ACEOF
25709 /* confdefs.h. */
25710 _ACEOF
25711 cat confdefs.h >>conftest.$ac_ext
25712 cat >>conftest.$ac_ext <<_ACEOF
25713 /* end confdefs.h. */
25714 $ac_includes_default
25716 main ()
25719 /* Are we little or big endian? From Harbison&Steele. */
25720 union
25722 long int l;
25723 char c[sizeof (long int)];
25724 } u;
25725 u.l = 1;
25726 return u.c[sizeof (long int) - 1] == 1;
25729 return 0;
25731 _ACEOF
25732 rm -f conftest$ac_exeext
25733 if { (ac_try="$ac_link"
25734 case "(($ac_try" in
25735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25736 *) ac_try_echo=$ac_try;;
25737 esac
25738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25739 (eval "$ac_link") 2>&5
25740 ac_status=$?
25741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25742 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25743 { (case "(($ac_try" in
25744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25745 *) ac_try_echo=$ac_try;;
25746 esac
25747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25748 (eval "$ac_try") 2>&5
25749 ac_status=$?
25750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25751 (exit $ac_status); }; }; then
25752 ac_cv_c_bigendian=no
25753 else
25754 echo "$as_me: program exited with status $ac_status" >&5
25755 echo "$as_me: failed program was:" >&5
25756 sed 's/^/| /' conftest.$ac_ext >&5
25758 ( exit $ac_status )
25759 ac_cv_c_bigendian=yes
25761 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25769 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
25770 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
25771 case $ac_cv_c_bigendian in
25772 yes)
25774 cat >>confdefs.h <<\_ACEOF
25775 #define WORDS_BIGENDIAN 1
25776 _ACEOF
25781 { { echo "$as_me:$LINENO: error: unknown endianness
25782 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
25783 echo "$as_me: error: unknown endianness
25784 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
25785 { (exit 1); exit 1; }; } ;;
25786 esac
25789 # Check whether right shifting a negative integer extends the sign bit
25790 # or fills with zeros (like the Cray J90, according to Tim Peters).
25791 { echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
25792 echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6; }
25793 if test "${ac_cv_rshift_extends_sign+set}" = set; then
25794 echo $ECHO_N "(cached) $ECHO_C" >&6
25795 else
25797 if test "$cross_compiling" = yes; then
25798 ac_cv_rshift_extends_sign=yes
25799 else
25800 cat >conftest.$ac_ext <<_ACEOF
25801 /* confdefs.h. */
25802 _ACEOF
25803 cat confdefs.h >>conftest.$ac_ext
25804 cat >>conftest.$ac_ext <<_ACEOF
25805 /* end confdefs.h. */
25807 int main()
25809 exit(((-1)>>3 == -1) ? 0 : 1);
25812 _ACEOF
25813 rm -f conftest$ac_exeext
25814 if { (ac_try="$ac_link"
25815 case "(($ac_try" in
25816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25817 *) ac_try_echo=$ac_try;;
25818 esac
25819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25820 (eval "$ac_link") 2>&5
25821 ac_status=$?
25822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25823 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25824 { (case "(($ac_try" in
25825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25826 *) ac_try_echo=$ac_try;;
25827 esac
25828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25829 (eval "$ac_try") 2>&5
25830 ac_status=$?
25831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25832 (exit $ac_status); }; }; then
25833 ac_cv_rshift_extends_sign=yes
25834 else
25835 echo "$as_me: program exited with status $ac_status" >&5
25836 echo "$as_me: failed program was:" >&5
25837 sed 's/^/| /' conftest.$ac_ext >&5
25839 ( exit $ac_status )
25840 ac_cv_rshift_extends_sign=no
25842 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25848 { echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
25849 echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6; }
25850 if test "$ac_cv_rshift_extends_sign" = no
25851 then
25853 cat >>confdefs.h <<\_ACEOF
25854 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
25855 _ACEOF
25859 # check for getc_unlocked and related locking functions
25860 { echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
25861 echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6; }
25862 if test "${ac_cv_have_getc_unlocked+set}" = set; then
25863 echo $ECHO_N "(cached) $ECHO_C" >&6
25864 else
25866 cat >conftest.$ac_ext <<_ACEOF
25867 /* confdefs.h. */
25868 _ACEOF
25869 cat confdefs.h >>conftest.$ac_ext
25870 cat >>conftest.$ac_ext <<_ACEOF
25871 /* end confdefs.h. */
25872 #include <stdio.h>
25874 main ()
25877 FILE *f = fopen("/dev/null", "r");
25878 flockfile(f);
25879 getc_unlocked(f);
25880 funlockfile(f);
25883 return 0;
25885 _ACEOF
25886 rm -f conftest.$ac_objext conftest$ac_exeext
25887 if { (ac_try="$ac_link"
25888 case "(($ac_try" in
25889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25890 *) ac_try_echo=$ac_try;;
25891 esac
25892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25893 (eval "$ac_link") 2>conftest.er1
25894 ac_status=$?
25895 grep -v '^ *+' conftest.er1 >conftest.err
25896 rm -f conftest.er1
25897 cat conftest.err >&5
25898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25899 (exit $ac_status); } && {
25900 test -z "$ac_c_werror_flag" ||
25901 test ! -s conftest.err
25902 } && test -s conftest$ac_exeext &&
25903 $as_test_x conftest$ac_exeext; then
25904 ac_cv_have_getc_unlocked=yes
25905 else
25906 echo "$as_me: failed program was:" >&5
25907 sed 's/^/| /' conftest.$ac_ext >&5
25909 ac_cv_have_getc_unlocked=no
25912 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25913 conftest$ac_exeext conftest.$ac_ext
25916 { echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
25917 echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6; }
25918 if test "$ac_cv_have_getc_unlocked" = yes
25919 then
25921 cat >>confdefs.h <<\_ACEOF
25922 #define HAVE_GETC_UNLOCKED 1
25923 _ACEOF
25927 # check where readline lives
25928 # save the value of LIBS so we don't actually link Python with readline
25929 LIBS_no_readline=$LIBS
25931 # On some systems we need to link readline to a termcap compatible
25932 # library. NOTE: Keep the precedence of listed libraries synchronised
25933 # with setup.py.
25934 py_cv_lib_readline=no
25935 { echo "$as_me:$LINENO: checking how to link readline libs" >&5
25936 echo $ECHO_N "checking how to link readline libs... $ECHO_C" >&6; }
25937 for py_libtermcap in "" ncursesw ncurses curses termcap; do
25938 if test -z "$py_libtermcap"; then
25939 READLINE_LIBS="-lreadline"
25940 else
25941 READLINE_LIBS="-lreadline -l$py_libtermcap"
25943 LIBS="$READLINE_LIBS $LIBS_no_readline"
25944 cat >conftest.$ac_ext <<_ACEOF
25945 /* confdefs.h. */
25946 _ACEOF
25947 cat confdefs.h >>conftest.$ac_ext
25948 cat >>conftest.$ac_ext <<_ACEOF
25949 /* end confdefs.h. */
25951 /* Override any GCC internal prototype to avoid an error.
25952 Use char because int might match the return type of a GCC
25953 builtin and then its argument prototype would still apply. */
25954 #ifdef __cplusplus
25955 extern "C"
25956 #endif
25957 char readline ();
25959 main ()
25961 return readline ();
25963 return 0;
25965 _ACEOF
25966 rm -f conftest.$ac_objext conftest$ac_exeext
25967 if { (ac_try="$ac_link"
25968 case "(($ac_try" in
25969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25970 *) ac_try_echo=$ac_try;;
25971 esac
25972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25973 (eval "$ac_link") 2>conftest.er1
25974 ac_status=$?
25975 grep -v '^ *+' conftest.er1 >conftest.err
25976 rm -f conftest.er1
25977 cat conftest.err >&5
25978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25979 (exit $ac_status); } && {
25980 test -z "$ac_c_werror_flag" ||
25981 test ! -s conftest.err
25982 } && test -s conftest$ac_exeext &&
25983 $as_test_x conftest$ac_exeext; then
25984 py_cv_lib_readline=yes
25985 else
25986 echo "$as_me: failed program was:" >&5
25987 sed 's/^/| /' conftest.$ac_ext >&5
25992 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25993 conftest$ac_exeext conftest.$ac_ext
25994 if test $py_cv_lib_readline = yes; then
25995 break
25997 done
25998 # Uncomment this line if you want to use READINE_LIBS in Makefile or scripts
25999 #AC_SUBST([READLINE_LIBS])
26000 if test $py_cv_lib_readline = no; then
26001 { echo "$as_me:$LINENO: result: none" >&5
26002 echo "${ECHO_T}none" >&6; }
26003 else
26004 { echo "$as_me:$LINENO: result: $READLINE_LIBS" >&5
26005 echo "${ECHO_T}$READLINE_LIBS" >&6; }
26007 cat >>confdefs.h <<\_ACEOF
26008 #define HAVE_LIBREADLINE 1
26009 _ACEOF
26013 # check for readline 2.1
26014 { echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
26015 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6; }
26016 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
26017 echo $ECHO_N "(cached) $ECHO_C" >&6
26018 else
26019 ac_check_lib_save_LIBS=$LIBS
26020 LIBS="-lreadline $READLINE_LIBS $LIBS"
26021 cat >conftest.$ac_ext <<_ACEOF
26022 /* confdefs.h. */
26023 _ACEOF
26024 cat confdefs.h >>conftest.$ac_ext
26025 cat >>conftest.$ac_ext <<_ACEOF
26026 /* end confdefs.h. */
26028 /* Override any GCC internal prototype to avoid an error.
26029 Use char because int might match the return type of a GCC
26030 builtin and then its argument prototype would still apply. */
26031 #ifdef __cplusplus
26032 extern "C"
26033 #endif
26034 char rl_callback_handler_install ();
26036 main ()
26038 return rl_callback_handler_install ();
26040 return 0;
26042 _ACEOF
26043 rm -f conftest.$ac_objext conftest$ac_exeext
26044 if { (ac_try="$ac_link"
26045 case "(($ac_try" in
26046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26047 *) ac_try_echo=$ac_try;;
26048 esac
26049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26050 (eval "$ac_link") 2>conftest.er1
26051 ac_status=$?
26052 grep -v '^ *+' conftest.er1 >conftest.err
26053 rm -f conftest.er1
26054 cat conftest.err >&5
26055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26056 (exit $ac_status); } && {
26057 test -z "$ac_c_werror_flag" ||
26058 test ! -s conftest.err
26059 } && test -s conftest$ac_exeext &&
26060 $as_test_x conftest$ac_exeext; then
26061 ac_cv_lib_readline_rl_callback_handler_install=yes
26062 else
26063 echo "$as_me: failed program was:" >&5
26064 sed 's/^/| /' conftest.$ac_ext >&5
26066 ac_cv_lib_readline_rl_callback_handler_install=no
26069 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26070 conftest$ac_exeext conftest.$ac_ext
26071 LIBS=$ac_check_lib_save_LIBS
26073 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
26074 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6; }
26075 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
26077 cat >>confdefs.h <<\_ACEOF
26078 #define HAVE_RL_CALLBACK 1
26079 _ACEOF
26084 # check for readline 2.2
26085 cat >conftest.$ac_ext <<_ACEOF
26086 /* confdefs.h. */
26087 _ACEOF
26088 cat confdefs.h >>conftest.$ac_ext
26089 cat >>conftest.$ac_ext <<_ACEOF
26090 /* end confdefs.h. */
26091 #include <readline/readline.h>
26092 _ACEOF
26093 if { (ac_try="$ac_cpp conftest.$ac_ext"
26094 case "(($ac_try" in
26095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26096 *) ac_try_echo=$ac_try;;
26097 esac
26098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26099 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26100 ac_status=$?
26101 grep -v '^ *+' conftest.er1 >conftest.err
26102 rm -f conftest.er1
26103 cat conftest.err >&5
26104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26105 (exit $ac_status); } >/dev/null && {
26106 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26107 test ! -s conftest.err
26108 }; then
26109 have_readline=yes
26110 else
26111 echo "$as_me: failed program was:" >&5
26112 sed 's/^/| /' conftest.$ac_ext >&5
26114 have_readline=no
26117 rm -f conftest.err conftest.$ac_ext
26118 if test $have_readline = yes
26119 then
26120 cat >conftest.$ac_ext <<_ACEOF
26121 /* confdefs.h. */
26122 _ACEOF
26123 cat confdefs.h >>conftest.$ac_ext
26124 cat >>conftest.$ac_ext <<_ACEOF
26125 /* end confdefs.h. */
26126 #include <readline/readline.h>
26128 _ACEOF
26129 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26130 $EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then
26132 cat >>confdefs.h <<\_ACEOF
26133 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
26134 _ACEOF
26137 rm -f conftest*
26139 cat >conftest.$ac_ext <<_ACEOF
26140 /* confdefs.h. */
26141 _ACEOF
26142 cat confdefs.h >>conftest.$ac_ext
26143 cat >>conftest.$ac_ext <<_ACEOF
26144 /* end confdefs.h. */
26145 #include <readline/readline.h>
26147 _ACEOF
26148 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26149 $EGREP "extern int rl_completion_suppress_append;" >/dev/null 2>&1; then
26151 cat >>confdefs.h <<\_ACEOF
26152 #define HAVE_RL_COMPLETION_SUPPRESS_APPEND 1
26153 _ACEOF
26156 rm -f conftest*
26160 # check for readline 4.0
26161 { echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
26162 echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6; }
26163 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
26164 echo $ECHO_N "(cached) $ECHO_C" >&6
26165 else
26166 ac_check_lib_save_LIBS=$LIBS
26167 LIBS="-lreadline $READLINE_LIBS $LIBS"
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. */
26175 /* Override any GCC internal prototype to avoid an error.
26176 Use char because int might match the return type of a GCC
26177 builtin and then its argument prototype would still apply. */
26178 #ifdef __cplusplus
26179 extern "C"
26180 #endif
26181 char rl_pre_input_hook ();
26183 main ()
26185 return rl_pre_input_hook ();
26187 return 0;
26189 _ACEOF
26190 rm -f conftest.$ac_objext conftest$ac_exeext
26191 if { (ac_try="$ac_link"
26192 case "(($ac_try" in
26193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26194 *) ac_try_echo=$ac_try;;
26195 esac
26196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26197 (eval "$ac_link") 2>conftest.er1
26198 ac_status=$?
26199 grep -v '^ *+' conftest.er1 >conftest.err
26200 rm -f conftest.er1
26201 cat conftest.err >&5
26202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26203 (exit $ac_status); } && {
26204 test -z "$ac_c_werror_flag" ||
26205 test ! -s conftest.err
26206 } && test -s conftest$ac_exeext &&
26207 $as_test_x conftest$ac_exeext; then
26208 ac_cv_lib_readline_rl_pre_input_hook=yes
26209 else
26210 echo "$as_me: failed program was:" >&5
26211 sed 's/^/| /' conftest.$ac_ext >&5
26213 ac_cv_lib_readline_rl_pre_input_hook=no
26216 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26217 conftest$ac_exeext conftest.$ac_ext
26218 LIBS=$ac_check_lib_save_LIBS
26220 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
26221 echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6; }
26222 if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
26224 cat >>confdefs.h <<\_ACEOF
26225 #define HAVE_RL_PRE_INPUT_HOOK 1
26226 _ACEOF
26231 # also in 4.0
26232 { echo "$as_me:$LINENO: checking for rl_completion_display_matches_hook in -lreadline" >&5
26233 echo $ECHO_N "checking for rl_completion_display_matches_hook in -lreadline... $ECHO_C" >&6; }
26234 if test "${ac_cv_lib_readline_rl_completion_display_matches_hook+set}" = set; then
26235 echo $ECHO_N "(cached) $ECHO_C" >&6
26236 else
26237 ac_check_lib_save_LIBS=$LIBS
26238 LIBS="-lreadline $READLINE_LIBS $LIBS"
26239 cat >conftest.$ac_ext <<_ACEOF
26240 /* confdefs.h. */
26241 _ACEOF
26242 cat confdefs.h >>conftest.$ac_ext
26243 cat >>conftest.$ac_ext <<_ACEOF
26244 /* end confdefs.h. */
26246 /* Override any GCC internal prototype to avoid an error.
26247 Use char because int might match the return type of a GCC
26248 builtin and then its argument prototype would still apply. */
26249 #ifdef __cplusplus
26250 extern "C"
26251 #endif
26252 char rl_completion_display_matches_hook ();
26254 main ()
26256 return rl_completion_display_matches_hook ();
26258 return 0;
26260 _ACEOF
26261 rm -f conftest.$ac_objext conftest$ac_exeext
26262 if { (ac_try="$ac_link"
26263 case "(($ac_try" in
26264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26265 *) ac_try_echo=$ac_try;;
26266 esac
26267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26268 (eval "$ac_link") 2>conftest.er1
26269 ac_status=$?
26270 grep -v '^ *+' conftest.er1 >conftest.err
26271 rm -f conftest.er1
26272 cat conftest.err >&5
26273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26274 (exit $ac_status); } && {
26275 test -z "$ac_c_werror_flag" ||
26276 test ! -s conftest.err
26277 } && test -s conftest$ac_exeext &&
26278 $as_test_x conftest$ac_exeext; then
26279 ac_cv_lib_readline_rl_completion_display_matches_hook=yes
26280 else
26281 echo "$as_me: failed program was:" >&5
26282 sed 's/^/| /' conftest.$ac_ext >&5
26284 ac_cv_lib_readline_rl_completion_display_matches_hook=no
26287 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26288 conftest$ac_exeext conftest.$ac_ext
26289 LIBS=$ac_check_lib_save_LIBS
26291 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5
26292 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; }
26293 if test $ac_cv_lib_readline_rl_completion_display_matches_hook = yes; then
26295 cat >>confdefs.h <<\_ACEOF
26296 #define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1
26297 _ACEOF
26302 # check for readline 4.2
26303 { echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
26304 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6; }
26305 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
26306 echo $ECHO_N "(cached) $ECHO_C" >&6
26307 else
26308 ac_check_lib_save_LIBS=$LIBS
26309 LIBS="-lreadline $READLINE_LIBS $LIBS"
26310 cat >conftest.$ac_ext <<_ACEOF
26311 /* confdefs.h. */
26312 _ACEOF
26313 cat confdefs.h >>conftest.$ac_ext
26314 cat >>conftest.$ac_ext <<_ACEOF
26315 /* end confdefs.h. */
26317 /* Override any GCC internal prototype to avoid an error.
26318 Use char because int might match the return type of a GCC
26319 builtin and then its argument prototype would still apply. */
26320 #ifdef __cplusplus
26321 extern "C"
26322 #endif
26323 char rl_completion_matches ();
26325 main ()
26327 return rl_completion_matches ();
26329 return 0;
26331 _ACEOF
26332 rm -f conftest.$ac_objext conftest$ac_exeext
26333 if { (ac_try="$ac_link"
26334 case "(($ac_try" in
26335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26336 *) ac_try_echo=$ac_try;;
26337 esac
26338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26339 (eval "$ac_link") 2>conftest.er1
26340 ac_status=$?
26341 grep -v '^ *+' conftest.er1 >conftest.err
26342 rm -f conftest.er1
26343 cat conftest.err >&5
26344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26345 (exit $ac_status); } && {
26346 test -z "$ac_c_werror_flag" ||
26347 test ! -s conftest.err
26348 } && test -s conftest$ac_exeext &&
26349 $as_test_x conftest$ac_exeext; then
26350 ac_cv_lib_readline_rl_completion_matches=yes
26351 else
26352 echo "$as_me: failed program was:" >&5
26353 sed 's/^/| /' conftest.$ac_ext >&5
26355 ac_cv_lib_readline_rl_completion_matches=no
26358 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26359 conftest$ac_exeext conftest.$ac_ext
26360 LIBS=$ac_check_lib_save_LIBS
26362 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
26363 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6; }
26364 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
26366 cat >>confdefs.h <<\_ACEOF
26367 #define HAVE_RL_COMPLETION_MATCHES 1
26368 _ACEOF
26373 # also in readline 4.2
26374 cat >conftest.$ac_ext <<_ACEOF
26375 /* confdefs.h. */
26376 _ACEOF
26377 cat confdefs.h >>conftest.$ac_ext
26378 cat >>conftest.$ac_ext <<_ACEOF
26379 /* end confdefs.h. */
26380 #include <readline/readline.h>
26381 _ACEOF
26382 if { (ac_try="$ac_cpp conftest.$ac_ext"
26383 case "(($ac_try" in
26384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26385 *) ac_try_echo=$ac_try;;
26386 esac
26387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26388 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26389 ac_status=$?
26390 grep -v '^ *+' conftest.er1 >conftest.err
26391 rm -f conftest.er1
26392 cat conftest.err >&5
26393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26394 (exit $ac_status); } >/dev/null && {
26395 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26396 test ! -s conftest.err
26397 }; then
26398 have_readline=yes
26399 else
26400 echo "$as_me: failed program was:" >&5
26401 sed 's/^/| /' conftest.$ac_ext >&5
26403 have_readline=no
26406 rm -f conftest.err conftest.$ac_ext
26407 if test $have_readline = yes
26408 then
26409 cat >conftest.$ac_ext <<_ACEOF
26410 /* confdefs.h. */
26411 _ACEOF
26412 cat confdefs.h >>conftest.$ac_ext
26413 cat >>conftest.$ac_ext <<_ACEOF
26414 /* end confdefs.h. */
26415 #include <readline/readline.h>
26417 _ACEOF
26418 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26419 $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then
26421 cat >>confdefs.h <<\_ACEOF
26422 #define HAVE_RL_CATCH_SIGNAL 1
26423 _ACEOF
26426 rm -f conftest*
26430 # End of readline checks: restore LIBS
26431 LIBS=$LIBS_no_readline
26433 { echo "$as_me:$LINENO: checking for broken nice()" >&5
26434 echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6; }
26435 if test "${ac_cv_broken_nice+set}" = set; then
26436 echo $ECHO_N "(cached) $ECHO_C" >&6
26437 else
26439 if test "$cross_compiling" = yes; then
26440 ac_cv_broken_nice=no
26441 else
26442 cat >conftest.$ac_ext <<_ACEOF
26443 /* confdefs.h. */
26444 _ACEOF
26445 cat confdefs.h >>conftest.$ac_ext
26446 cat >>conftest.$ac_ext <<_ACEOF
26447 /* end confdefs.h. */
26449 int main()
26451 int val1 = nice(1);
26452 if (val1 != -1 && val1 == nice(2))
26453 exit(0);
26454 exit(1);
26457 _ACEOF
26458 rm -f conftest$ac_exeext
26459 if { (ac_try="$ac_link"
26460 case "(($ac_try" in
26461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26462 *) ac_try_echo=$ac_try;;
26463 esac
26464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26465 (eval "$ac_link") 2>&5
26466 ac_status=$?
26467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26468 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26469 { (case "(($ac_try" in
26470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26471 *) ac_try_echo=$ac_try;;
26472 esac
26473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26474 (eval "$ac_try") 2>&5
26475 ac_status=$?
26476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26477 (exit $ac_status); }; }; then
26478 ac_cv_broken_nice=yes
26479 else
26480 echo "$as_me: program exited with status $ac_status" >&5
26481 echo "$as_me: failed program was:" >&5
26482 sed 's/^/| /' conftest.$ac_ext >&5
26484 ( exit $ac_status )
26485 ac_cv_broken_nice=no
26487 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26493 { echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
26494 echo "${ECHO_T}$ac_cv_broken_nice" >&6; }
26495 if test "$ac_cv_broken_nice" = yes
26496 then
26498 cat >>confdefs.h <<\_ACEOF
26499 #define HAVE_BROKEN_NICE 1
26500 _ACEOF
26504 { echo "$as_me:$LINENO: checking for broken poll()" >&5
26505 echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6; }
26506 if test "${ac_cv_broken_poll+set}" = set; then
26507 echo $ECHO_N "(cached) $ECHO_C" >&6
26508 else
26509 if test "$cross_compiling" = yes; then
26510 ac_cv_broken_poll=no
26511 else
26512 cat >conftest.$ac_ext <<_ACEOF
26513 /* confdefs.h. */
26514 _ACEOF
26515 cat confdefs.h >>conftest.$ac_ext
26516 cat >>conftest.$ac_ext <<_ACEOF
26517 /* end confdefs.h. */
26519 #include <poll.h>
26521 int main()
26523 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
26524 int poll_test;
26526 close (42);
26528 poll_test = poll(&poll_struct, 1, 0);
26529 if (poll_test < 0)
26530 return 0;
26531 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
26532 return 0;
26533 else
26534 return 1;
26537 _ACEOF
26538 rm -f conftest$ac_exeext
26539 if { (ac_try="$ac_link"
26540 case "(($ac_try" in
26541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26542 *) ac_try_echo=$ac_try;;
26543 esac
26544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26545 (eval "$ac_link") 2>&5
26546 ac_status=$?
26547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26548 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26549 { (case "(($ac_try" in
26550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26551 *) ac_try_echo=$ac_try;;
26552 esac
26553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26554 (eval "$ac_try") 2>&5
26555 ac_status=$?
26556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26557 (exit $ac_status); }; }; then
26558 ac_cv_broken_poll=yes
26559 else
26560 echo "$as_me: program exited with status $ac_status" >&5
26561 echo "$as_me: failed program was:" >&5
26562 sed 's/^/| /' conftest.$ac_ext >&5
26564 ( exit $ac_status )
26565 ac_cv_broken_poll=no
26567 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26573 { echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5
26574 echo "${ECHO_T}$ac_cv_broken_poll" >&6; }
26575 if test "$ac_cv_broken_poll" = yes
26576 then
26578 cat >>confdefs.h <<\_ACEOF
26579 #define HAVE_BROKEN_POLL 1
26580 _ACEOF
26584 # Before we can test tzset, we need to check if struct tm has a tm_zone
26585 # (which is not required by ISO C or UNIX spec) and/or if we support
26586 # tzname[]
26587 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
26588 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
26589 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
26590 echo $ECHO_N "(cached) $ECHO_C" >&6
26591 else
26592 cat >conftest.$ac_ext <<_ACEOF
26593 /* confdefs.h. */
26594 _ACEOF
26595 cat confdefs.h >>conftest.$ac_ext
26596 cat >>conftest.$ac_ext <<_ACEOF
26597 /* end confdefs.h. */
26598 #include <sys/types.h>
26599 #include <$ac_cv_struct_tm>
26603 main ()
26605 static struct tm ac_aggr;
26606 if (ac_aggr.tm_zone)
26607 return 0;
26609 return 0;
26611 _ACEOF
26612 rm -f conftest.$ac_objext
26613 if { (ac_try="$ac_compile"
26614 case "(($ac_try" in
26615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26616 *) ac_try_echo=$ac_try;;
26617 esac
26618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26619 (eval "$ac_compile") 2>conftest.er1
26620 ac_status=$?
26621 grep -v '^ *+' conftest.er1 >conftest.err
26622 rm -f conftest.er1
26623 cat conftest.err >&5
26624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26625 (exit $ac_status); } && {
26626 test -z "$ac_c_werror_flag" ||
26627 test ! -s conftest.err
26628 } && test -s conftest.$ac_objext; then
26629 ac_cv_member_struct_tm_tm_zone=yes
26630 else
26631 echo "$as_me: failed program was:" >&5
26632 sed 's/^/| /' conftest.$ac_ext >&5
26634 cat >conftest.$ac_ext <<_ACEOF
26635 /* confdefs.h. */
26636 _ACEOF
26637 cat confdefs.h >>conftest.$ac_ext
26638 cat >>conftest.$ac_ext <<_ACEOF
26639 /* end confdefs.h. */
26640 #include <sys/types.h>
26641 #include <$ac_cv_struct_tm>
26645 main ()
26647 static struct tm ac_aggr;
26648 if (sizeof ac_aggr.tm_zone)
26649 return 0;
26651 return 0;
26653 _ACEOF
26654 rm -f conftest.$ac_objext
26655 if { (ac_try="$ac_compile"
26656 case "(($ac_try" in
26657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26658 *) ac_try_echo=$ac_try;;
26659 esac
26660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26661 (eval "$ac_compile") 2>conftest.er1
26662 ac_status=$?
26663 grep -v '^ *+' conftest.er1 >conftest.err
26664 rm -f conftest.er1
26665 cat conftest.err >&5
26666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26667 (exit $ac_status); } && {
26668 test -z "$ac_c_werror_flag" ||
26669 test ! -s conftest.err
26670 } && test -s conftest.$ac_objext; then
26671 ac_cv_member_struct_tm_tm_zone=yes
26672 else
26673 echo "$as_me: failed program was:" >&5
26674 sed 's/^/| /' conftest.$ac_ext >&5
26676 ac_cv_member_struct_tm_tm_zone=no
26679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26684 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
26685 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
26686 if test $ac_cv_member_struct_tm_tm_zone = yes; then
26688 cat >>confdefs.h <<_ACEOF
26689 #define HAVE_STRUCT_TM_TM_ZONE 1
26690 _ACEOF
26695 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
26697 cat >>confdefs.h <<\_ACEOF
26698 #define HAVE_TM_ZONE 1
26699 _ACEOF
26701 else
26702 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
26703 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
26704 if test "${ac_cv_have_decl_tzname+set}" = set; then
26705 echo $ECHO_N "(cached) $ECHO_C" >&6
26706 else
26707 cat >conftest.$ac_ext <<_ACEOF
26708 /* confdefs.h. */
26709 _ACEOF
26710 cat confdefs.h >>conftest.$ac_ext
26711 cat >>conftest.$ac_ext <<_ACEOF
26712 /* end confdefs.h. */
26713 #include <time.h>
26716 main ()
26718 #ifndef tzname
26719 (void) tzname;
26720 #endif
26723 return 0;
26725 _ACEOF
26726 rm -f conftest.$ac_objext
26727 if { (ac_try="$ac_compile"
26728 case "(($ac_try" in
26729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26730 *) ac_try_echo=$ac_try;;
26731 esac
26732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26733 (eval "$ac_compile") 2>conftest.er1
26734 ac_status=$?
26735 grep -v '^ *+' conftest.er1 >conftest.err
26736 rm -f conftest.er1
26737 cat conftest.err >&5
26738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26739 (exit $ac_status); } && {
26740 test -z "$ac_c_werror_flag" ||
26741 test ! -s conftest.err
26742 } && test -s conftest.$ac_objext; then
26743 ac_cv_have_decl_tzname=yes
26744 else
26745 echo "$as_me: failed program was:" >&5
26746 sed 's/^/| /' conftest.$ac_ext >&5
26748 ac_cv_have_decl_tzname=no
26751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26753 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
26754 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
26755 if test $ac_cv_have_decl_tzname = yes; then
26757 cat >>confdefs.h <<_ACEOF
26758 #define HAVE_DECL_TZNAME 1
26759 _ACEOF
26762 else
26763 cat >>confdefs.h <<_ACEOF
26764 #define HAVE_DECL_TZNAME 0
26765 _ACEOF
26771 { echo "$as_me:$LINENO: checking for tzname" >&5
26772 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
26773 if test "${ac_cv_var_tzname+set}" = set; then
26774 echo $ECHO_N "(cached) $ECHO_C" >&6
26775 else
26776 cat >conftest.$ac_ext <<_ACEOF
26777 /* confdefs.h. */
26778 _ACEOF
26779 cat confdefs.h >>conftest.$ac_ext
26780 cat >>conftest.$ac_ext <<_ACEOF
26781 /* end confdefs.h. */
26782 #include <time.h>
26783 #if !HAVE_DECL_TZNAME
26784 extern char *tzname[];
26785 #endif
26788 main ()
26790 return tzname[0][0];
26792 return 0;
26794 _ACEOF
26795 rm -f conftest.$ac_objext conftest$ac_exeext
26796 if { (ac_try="$ac_link"
26797 case "(($ac_try" in
26798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26799 *) ac_try_echo=$ac_try;;
26800 esac
26801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26802 (eval "$ac_link") 2>conftest.er1
26803 ac_status=$?
26804 grep -v '^ *+' conftest.er1 >conftest.err
26805 rm -f conftest.er1
26806 cat conftest.err >&5
26807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26808 (exit $ac_status); } && {
26809 test -z "$ac_c_werror_flag" ||
26810 test ! -s conftest.err
26811 } && test -s conftest$ac_exeext &&
26812 $as_test_x conftest$ac_exeext; then
26813 ac_cv_var_tzname=yes
26814 else
26815 echo "$as_me: failed program was:" >&5
26816 sed 's/^/| /' conftest.$ac_ext >&5
26818 ac_cv_var_tzname=no
26821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26822 conftest$ac_exeext conftest.$ac_ext
26824 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
26825 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
26826 if test $ac_cv_var_tzname = yes; then
26828 cat >>confdefs.h <<\_ACEOF
26829 #define HAVE_TZNAME 1
26830 _ACEOF
26836 # check tzset(3) exists and works like we expect it to
26837 { echo "$as_me:$LINENO: checking for working tzset()" >&5
26838 echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6; }
26839 if test "${ac_cv_working_tzset+set}" = set; then
26840 echo $ECHO_N "(cached) $ECHO_C" >&6
26841 else
26843 if test "$cross_compiling" = yes; then
26844 ac_cv_working_tzset=no
26845 else
26846 cat >conftest.$ac_ext <<_ACEOF
26847 /* confdefs.h. */
26848 _ACEOF
26849 cat confdefs.h >>conftest.$ac_ext
26850 cat >>conftest.$ac_ext <<_ACEOF
26851 /* end confdefs.h. */
26853 #include <stdlib.h>
26854 #include <time.h>
26855 #include <string.h>
26857 #if HAVE_TZNAME
26858 extern char *tzname[];
26859 #endif
26861 int main()
26863 /* Note that we need to ensure that not only does tzset(3)
26864 do 'something' with localtime, but it works as documented
26865 in the library reference and as expected by the test suite.
26866 This includes making sure that tzname is set properly if
26867 tm->tm_zone does not exist since it is the alternative way
26868 of getting timezone info.
26870 Red Hat 6.2 doesn't understand the southern hemisphere
26871 after New Year's Day.
26874 time_t groundhogday = 1044144000; /* GMT-based */
26875 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
26877 putenv("TZ=UTC+0");
26878 tzset();
26879 if (localtime(&groundhogday)->tm_hour != 0)
26880 exit(1);
26881 #if HAVE_TZNAME
26882 /* For UTC, tzname[1] is sometimes "", sometimes " " */
26883 if (strcmp(tzname[0], "UTC") ||
26884 (tzname[1][0] != 0 && tzname[1][0] != ' '))
26885 exit(1);
26886 #endif
26888 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
26889 tzset();
26890 if (localtime(&groundhogday)->tm_hour != 19)
26891 exit(1);
26892 #if HAVE_TZNAME
26893 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
26894 exit(1);
26895 #endif
26897 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
26898 tzset();
26899 if (localtime(&groundhogday)->tm_hour != 11)
26900 exit(1);
26901 #if HAVE_TZNAME
26902 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
26903 exit(1);
26904 #endif
26906 #if HAVE_STRUCT_TM_TM_ZONE
26907 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
26908 exit(1);
26909 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
26910 exit(1);
26911 #endif
26913 exit(0);
26916 _ACEOF
26917 rm -f conftest$ac_exeext
26918 if { (ac_try="$ac_link"
26919 case "(($ac_try" in
26920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26921 *) ac_try_echo=$ac_try;;
26922 esac
26923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26924 (eval "$ac_link") 2>&5
26925 ac_status=$?
26926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26927 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26928 { (case "(($ac_try" in
26929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26930 *) ac_try_echo=$ac_try;;
26931 esac
26932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26933 (eval "$ac_try") 2>&5
26934 ac_status=$?
26935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26936 (exit $ac_status); }; }; then
26937 ac_cv_working_tzset=yes
26938 else
26939 echo "$as_me: program exited with status $ac_status" >&5
26940 echo "$as_me: failed program was:" >&5
26941 sed 's/^/| /' conftest.$ac_ext >&5
26943 ( exit $ac_status )
26944 ac_cv_working_tzset=no
26946 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26952 { echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5
26953 echo "${ECHO_T}$ac_cv_working_tzset" >&6; }
26954 if test "$ac_cv_working_tzset" = yes
26955 then
26957 cat >>confdefs.h <<\_ACEOF
26958 #define HAVE_WORKING_TZSET 1
26959 _ACEOF
26963 # Look for subsecond timestamps in struct stat
26964 { echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
26965 echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6; }
26966 if test "${ac_cv_stat_tv_nsec+set}" = set; then
26967 echo $ECHO_N "(cached) $ECHO_C" >&6
26968 else
26969 cat >conftest.$ac_ext <<_ACEOF
26970 /* confdefs.h. */
26971 _ACEOF
26972 cat confdefs.h >>conftest.$ac_ext
26973 cat >>conftest.$ac_ext <<_ACEOF
26974 /* end confdefs.h. */
26975 #include <sys/stat.h>
26977 main ()
26980 struct stat st;
26981 st.st_mtim.tv_nsec = 1;
26984 return 0;
26986 _ACEOF
26987 rm -f conftest.$ac_objext
26988 if { (ac_try="$ac_compile"
26989 case "(($ac_try" in
26990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26991 *) ac_try_echo=$ac_try;;
26992 esac
26993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26994 (eval "$ac_compile") 2>conftest.er1
26995 ac_status=$?
26996 grep -v '^ *+' conftest.er1 >conftest.err
26997 rm -f conftest.er1
26998 cat conftest.err >&5
26999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27000 (exit $ac_status); } && {
27001 test -z "$ac_c_werror_flag" ||
27002 test ! -s conftest.err
27003 } && test -s conftest.$ac_objext; then
27004 ac_cv_stat_tv_nsec=yes
27005 else
27006 echo "$as_me: failed program was:" >&5
27007 sed 's/^/| /' conftest.$ac_ext >&5
27009 ac_cv_stat_tv_nsec=no
27012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27015 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
27016 echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6; }
27017 if test "$ac_cv_stat_tv_nsec" = yes
27018 then
27020 cat >>confdefs.h <<\_ACEOF
27021 #define HAVE_STAT_TV_NSEC 1
27022 _ACEOF
27026 # Look for BSD style subsecond timestamps in struct stat
27027 { echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5
27028 echo $ECHO_N "checking for tv_nsec2 in struct stat... $ECHO_C" >&6; }
27029 if test "${ac_cv_stat_tv_nsec2+set}" = set; then
27030 echo $ECHO_N "(cached) $ECHO_C" >&6
27031 else
27032 cat >conftest.$ac_ext <<_ACEOF
27033 /* confdefs.h. */
27034 _ACEOF
27035 cat confdefs.h >>conftest.$ac_ext
27036 cat >>conftest.$ac_ext <<_ACEOF
27037 /* end confdefs.h. */
27038 #include <sys/stat.h>
27040 main ()
27043 struct stat st;
27044 st.st_mtimespec.tv_nsec = 1;
27047 return 0;
27049 _ACEOF
27050 rm -f conftest.$ac_objext
27051 if { (ac_try="$ac_compile"
27052 case "(($ac_try" in
27053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27054 *) ac_try_echo=$ac_try;;
27055 esac
27056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27057 (eval "$ac_compile") 2>conftest.er1
27058 ac_status=$?
27059 grep -v '^ *+' conftest.er1 >conftest.err
27060 rm -f conftest.er1
27061 cat conftest.err >&5
27062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27063 (exit $ac_status); } && {
27064 test -z "$ac_c_werror_flag" ||
27065 test ! -s conftest.err
27066 } && test -s conftest.$ac_objext; then
27067 ac_cv_stat_tv_nsec2=yes
27068 else
27069 echo "$as_me: failed program was:" >&5
27070 sed 's/^/| /' conftest.$ac_ext >&5
27072 ac_cv_stat_tv_nsec2=no
27075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27078 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5
27079 echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6; }
27080 if test "$ac_cv_stat_tv_nsec2" = yes
27081 then
27083 cat >>confdefs.h <<\_ACEOF
27084 #define HAVE_STAT_TV_NSEC2 1
27085 _ACEOF
27089 # On HP/UX 11.0, mvwdelch is a block with a return statement
27090 { echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
27091 echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6; }
27092 if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
27093 echo $ECHO_N "(cached) $ECHO_C" >&6
27094 else
27095 cat >conftest.$ac_ext <<_ACEOF
27096 /* confdefs.h. */
27097 _ACEOF
27098 cat confdefs.h >>conftest.$ac_ext
27099 cat >>conftest.$ac_ext <<_ACEOF
27100 /* end confdefs.h. */
27101 #include <curses.h>
27103 main ()
27106 int rtn;
27107 rtn = mvwdelch(0,0,0);
27110 return 0;
27112 _ACEOF
27113 rm -f conftest.$ac_objext
27114 if { (ac_try="$ac_compile"
27115 case "(($ac_try" in
27116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27117 *) ac_try_echo=$ac_try;;
27118 esac
27119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27120 (eval "$ac_compile") 2>conftest.er1
27121 ac_status=$?
27122 grep -v '^ *+' conftest.er1 >conftest.err
27123 rm -f conftest.er1
27124 cat conftest.err >&5
27125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27126 (exit $ac_status); } && {
27127 test -z "$ac_c_werror_flag" ||
27128 test ! -s conftest.err
27129 } && test -s conftest.$ac_objext; then
27130 ac_cv_mvwdelch_is_expression=yes
27131 else
27132 echo "$as_me: failed program was:" >&5
27133 sed 's/^/| /' conftest.$ac_ext >&5
27135 ac_cv_mvwdelch_is_expression=no
27138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27141 { echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
27142 echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6; }
27144 if test "$ac_cv_mvwdelch_is_expression" = yes
27145 then
27147 cat >>confdefs.h <<\_ACEOF
27148 #define MVWDELCH_IS_EXPRESSION 1
27149 _ACEOF
27153 { echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
27154 echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6; }
27155 if test "${ac_cv_window_has_flags+set}" = set; then
27156 echo $ECHO_N "(cached) $ECHO_C" >&6
27157 else
27158 cat >conftest.$ac_ext <<_ACEOF
27159 /* confdefs.h. */
27160 _ACEOF
27161 cat confdefs.h >>conftest.$ac_ext
27162 cat >>conftest.$ac_ext <<_ACEOF
27163 /* end confdefs.h. */
27164 #include <curses.h>
27166 main ()
27169 WINDOW *w;
27170 w->_flags = 0;
27173 return 0;
27175 _ACEOF
27176 rm -f conftest.$ac_objext
27177 if { (ac_try="$ac_compile"
27178 case "(($ac_try" in
27179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27180 *) ac_try_echo=$ac_try;;
27181 esac
27182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27183 (eval "$ac_compile") 2>conftest.er1
27184 ac_status=$?
27185 grep -v '^ *+' conftest.er1 >conftest.err
27186 rm -f conftest.er1
27187 cat conftest.err >&5
27188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27189 (exit $ac_status); } && {
27190 test -z "$ac_c_werror_flag" ||
27191 test ! -s conftest.err
27192 } && test -s conftest.$ac_objext; then
27193 ac_cv_window_has_flags=yes
27194 else
27195 echo "$as_me: failed program was:" >&5
27196 sed 's/^/| /' conftest.$ac_ext >&5
27198 ac_cv_window_has_flags=no
27201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27204 { echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
27205 echo "${ECHO_T}$ac_cv_window_has_flags" >&6; }
27208 if test "$ac_cv_window_has_flags" = yes
27209 then
27211 cat >>confdefs.h <<\_ACEOF
27212 #define WINDOW_HAS_FLAGS 1
27213 _ACEOF
27217 { echo "$as_me:$LINENO: checking for is_term_resized" >&5
27218 echo $ECHO_N "checking for is_term_resized... $ECHO_C" >&6; }
27219 cat >conftest.$ac_ext <<_ACEOF
27220 /* confdefs.h. */
27221 _ACEOF
27222 cat confdefs.h >>conftest.$ac_ext
27223 cat >>conftest.$ac_ext <<_ACEOF
27224 /* end confdefs.h. */
27225 #include <curses.h>
27227 main ()
27229 void *x=is_term_resized
27231 return 0;
27233 _ACEOF
27234 rm -f conftest.$ac_objext
27235 if { (ac_try="$ac_compile"
27236 case "(($ac_try" in
27237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27238 *) ac_try_echo=$ac_try;;
27239 esac
27240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27241 (eval "$ac_compile") 2>conftest.er1
27242 ac_status=$?
27243 grep -v '^ *+' conftest.er1 >conftest.err
27244 rm -f conftest.er1
27245 cat conftest.err >&5
27246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27247 (exit $ac_status); } && {
27248 test -z "$ac_c_werror_flag" ||
27249 test ! -s conftest.err
27250 } && test -s conftest.$ac_objext; then
27252 cat >>confdefs.h <<\_ACEOF
27253 #define HAVE_CURSES_IS_TERM_RESIZED 1
27254 _ACEOF
27256 { echo "$as_me:$LINENO: result: yes" >&5
27257 echo "${ECHO_T}yes" >&6; }
27258 else
27259 echo "$as_me: failed program was:" >&5
27260 sed 's/^/| /' conftest.$ac_ext >&5
27262 { echo "$as_me:$LINENO: result: no" >&5
27263 echo "${ECHO_T}no" >&6; }
27267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27269 { echo "$as_me:$LINENO: checking for resize_term" >&5
27270 echo $ECHO_N "checking for resize_term... $ECHO_C" >&6; }
27271 cat >conftest.$ac_ext <<_ACEOF
27272 /* confdefs.h. */
27273 _ACEOF
27274 cat confdefs.h >>conftest.$ac_ext
27275 cat >>conftest.$ac_ext <<_ACEOF
27276 /* end confdefs.h. */
27277 #include <curses.h>
27279 main ()
27281 void *x=resize_term
27283 return 0;
27285 _ACEOF
27286 rm -f conftest.$ac_objext
27287 if { (ac_try="$ac_compile"
27288 case "(($ac_try" in
27289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27290 *) ac_try_echo=$ac_try;;
27291 esac
27292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27293 (eval "$ac_compile") 2>conftest.er1
27294 ac_status=$?
27295 grep -v '^ *+' conftest.er1 >conftest.err
27296 rm -f conftest.er1
27297 cat conftest.err >&5
27298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27299 (exit $ac_status); } && {
27300 test -z "$ac_c_werror_flag" ||
27301 test ! -s conftest.err
27302 } && test -s conftest.$ac_objext; then
27304 cat >>confdefs.h <<\_ACEOF
27305 #define HAVE_CURSES_RESIZE_TERM 1
27306 _ACEOF
27308 { echo "$as_me:$LINENO: result: yes" >&5
27309 echo "${ECHO_T}yes" >&6; }
27310 else
27311 echo "$as_me: failed program was:" >&5
27312 sed 's/^/| /' conftest.$ac_ext >&5
27314 { echo "$as_me:$LINENO: result: no" >&5
27315 echo "${ECHO_T}no" >&6; }
27319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27321 { echo "$as_me:$LINENO: checking for resizeterm" >&5
27322 echo $ECHO_N "checking for resizeterm... $ECHO_C" >&6; }
27323 cat >conftest.$ac_ext <<_ACEOF
27324 /* confdefs.h. */
27325 _ACEOF
27326 cat confdefs.h >>conftest.$ac_ext
27327 cat >>conftest.$ac_ext <<_ACEOF
27328 /* end confdefs.h. */
27329 #include <curses.h>
27331 main ()
27333 void *x=resizeterm
27335 return 0;
27337 _ACEOF
27338 rm -f conftest.$ac_objext
27339 if { (ac_try="$ac_compile"
27340 case "(($ac_try" in
27341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27342 *) ac_try_echo=$ac_try;;
27343 esac
27344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27345 (eval "$ac_compile") 2>conftest.er1
27346 ac_status=$?
27347 grep -v '^ *+' conftest.er1 >conftest.err
27348 rm -f conftest.er1
27349 cat conftest.err >&5
27350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27351 (exit $ac_status); } && {
27352 test -z "$ac_c_werror_flag" ||
27353 test ! -s conftest.err
27354 } && test -s conftest.$ac_objext; then
27356 cat >>confdefs.h <<\_ACEOF
27357 #define HAVE_CURSES_RESIZETERM 1
27358 _ACEOF
27360 { echo "$as_me:$LINENO: result: yes" >&5
27361 echo "${ECHO_T}yes" >&6; }
27362 else
27363 echo "$as_me: failed program was:" >&5
27364 sed 's/^/| /' conftest.$ac_ext >&5
27366 { echo "$as_me:$LINENO: result: no" >&5
27367 echo "${ECHO_T}no" >&6; }
27371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27373 { echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
27374 echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6; }
27376 if test -r /dev/ptmx
27377 then
27378 { echo "$as_me:$LINENO: result: yes" >&5
27379 echo "${ECHO_T}yes" >&6; }
27381 cat >>confdefs.h <<\_ACEOF
27382 #define HAVE_DEV_PTMX 1
27383 _ACEOF
27385 else
27386 { echo "$as_me:$LINENO: result: no" >&5
27387 echo "${ECHO_T}no" >&6; }
27390 { echo "$as_me:$LINENO: checking for /dev/ptc" >&5
27391 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6; }
27393 if test -r /dev/ptc
27394 then
27395 { echo "$as_me:$LINENO: result: yes" >&5
27396 echo "${ECHO_T}yes" >&6; }
27398 cat >>confdefs.h <<\_ACEOF
27399 #define HAVE_DEV_PTC 1
27400 _ACEOF
27402 else
27403 { echo "$as_me:$LINENO: result: no" >&5
27404 echo "${ECHO_T}no" >&6; }
27407 if test "$have_long_long" = yes
27408 then
27409 { echo "$as_me:$LINENO: checking for %lld and %llu printf() format support" >&5
27410 echo $ECHO_N "checking for %lld and %llu printf() format support... $ECHO_C" >&6; }
27411 if test "${ac_cv_have_long_long_format+set}" = set; then
27412 echo $ECHO_N "(cached) $ECHO_C" >&6
27413 else
27414 if test "$cross_compiling" = yes; then
27415 ac_cv_have_long_long_format=no
27416 else
27417 cat >conftest.$ac_ext <<_ACEOF
27418 /* confdefs.h. */
27419 _ACEOF
27420 cat confdefs.h >>conftest.$ac_ext
27421 cat >>conftest.$ac_ext <<_ACEOF
27422 /* end confdefs.h. */
27424 #include <stdio.h>
27425 #include <stddef.h>
27426 #include <string.h>
27428 #ifdef HAVE_SYS_TYPES_H
27429 #include <sys/types.h>
27430 #endif
27432 int main()
27434 char buffer[256];
27436 if (sprintf(buffer, "%lld", (long long)123) < 0)
27437 return 1;
27438 if (strcmp(buffer, "123"))
27439 return 1;
27441 if (sprintf(buffer, "%lld", (long long)-123) < 0)
27442 return 1;
27443 if (strcmp(buffer, "-123"))
27444 return 1;
27446 if (sprintf(buffer, "%llu", (unsigned long long)123) < 0)
27447 return 1;
27448 if (strcmp(buffer, "123"))
27449 return 1;
27451 return 0;
27454 _ACEOF
27455 rm -f conftest$ac_exeext
27456 if { (ac_try="$ac_link"
27457 case "(($ac_try" in
27458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27459 *) ac_try_echo=$ac_try;;
27460 esac
27461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27462 (eval "$ac_link") 2>&5
27463 ac_status=$?
27464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27465 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27466 { (case "(($ac_try" in
27467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27468 *) ac_try_echo=$ac_try;;
27469 esac
27470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27471 (eval "$ac_try") 2>&5
27472 ac_status=$?
27473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27474 (exit $ac_status); }; }; then
27475 ac_cv_have_long_long_format=yes
27476 else
27477 echo "$as_me: program exited with status $ac_status" >&5
27478 echo "$as_me: failed program was:" >&5
27479 sed 's/^/| /' conftest.$ac_ext >&5
27481 ( exit $ac_status )
27482 ac_cv_have_long_long_format=no
27484 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27491 { echo "$as_me:$LINENO: result: $ac_cv_have_long_long_format" >&5
27492 echo "${ECHO_T}$ac_cv_have_long_long_format" >&6; }
27495 if test "$ac_cv_have_long_long_format" = yes
27496 then
27498 cat >>confdefs.h <<\_ACEOF
27499 #define PY_FORMAT_LONG_LONG "ll"
27500 _ACEOF
27504 if test $ac_sys_system = Darwin
27505 then
27506 LIBS="$LIBS -framework CoreFoundation"
27510 { echo "$as_me:$LINENO: checking for %zd printf() format support" >&5
27511 echo $ECHO_N "checking for %zd printf() format support... $ECHO_C" >&6; }
27512 if test "${ac_cv_have_size_t_format+set}" = set; then
27513 echo $ECHO_N "(cached) $ECHO_C" >&6
27514 else
27515 if test "$cross_compiling" = yes; then
27516 ac_cv_have_size_t_format="cross -- assuming yes"
27518 else
27519 cat >conftest.$ac_ext <<_ACEOF
27520 /* confdefs.h. */
27521 _ACEOF
27522 cat confdefs.h >>conftest.$ac_ext
27523 cat >>conftest.$ac_ext <<_ACEOF
27524 /* end confdefs.h. */
27526 #include <stdio.h>
27527 #include <stddef.h>
27528 #include <string.h>
27530 #ifdef HAVE_SYS_TYPES_H
27531 #include <sys/types.h>
27532 #endif
27534 #ifdef HAVE_SSIZE_T
27535 typedef ssize_t Py_ssize_t;
27536 #elif SIZEOF_VOID_P == SIZEOF_LONG
27537 typedef long Py_ssize_t;
27538 #else
27539 typedef int Py_ssize_t;
27540 #endif
27542 int main()
27544 char buffer[256];
27546 if(sprintf(buffer, "%zd", (size_t)123) < 0)
27547 return 1;
27549 if (strcmp(buffer, "123"))
27550 return 1;
27552 if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0)
27553 return 1;
27555 if (strcmp(buffer, "-123"))
27556 return 1;
27558 return 0;
27561 _ACEOF
27562 rm -f conftest$ac_exeext
27563 if { (ac_try="$ac_link"
27564 case "(($ac_try" in
27565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27566 *) ac_try_echo=$ac_try;;
27567 esac
27568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27569 (eval "$ac_link") 2>&5
27570 ac_status=$?
27571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27572 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27573 { (case "(($ac_try" in
27574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27575 *) ac_try_echo=$ac_try;;
27576 esac
27577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27578 (eval "$ac_try") 2>&5
27579 ac_status=$?
27580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27581 (exit $ac_status); }; }; then
27582 ac_cv_have_size_t_format=yes
27583 else
27584 echo "$as_me: program exited with status $ac_status" >&5
27585 echo "$as_me: failed program was:" >&5
27586 sed 's/^/| /' conftest.$ac_ext >&5
27588 ( exit $ac_status )
27589 ac_cv_have_size_t_format=no
27591 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27596 { echo "$as_me:$LINENO: result: $ac_cv_have_size_t_format" >&5
27597 echo "${ECHO_T}$ac_cv_have_size_t_format" >&6; }
27598 if test "$ac_cv_have_size_t_format" != no ; then
27600 cat >>confdefs.h <<\_ACEOF
27601 #define PY_FORMAT_SIZE_T "z"
27602 _ACEOF
27606 { echo "$as_me:$LINENO: checking for socklen_t" >&5
27607 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
27608 if test "${ac_cv_type_socklen_t+set}" = set; then
27609 echo $ECHO_N "(cached) $ECHO_C" >&6
27610 else
27611 cat >conftest.$ac_ext <<_ACEOF
27612 /* confdefs.h. */
27613 _ACEOF
27614 cat confdefs.h >>conftest.$ac_ext
27615 cat >>conftest.$ac_ext <<_ACEOF
27616 /* end confdefs.h. */
27618 #ifdef HAVE_SYS_TYPES_H
27619 #include <sys/types.h>
27620 #endif
27621 #ifdef HAVE_SYS_SOCKET_H
27622 #include <sys/socket.h>
27623 #endif
27626 typedef socklen_t ac__type_new_;
27628 main ()
27630 if ((ac__type_new_ *) 0)
27631 return 0;
27632 if (sizeof (ac__type_new_))
27633 return 0;
27635 return 0;
27637 _ACEOF
27638 rm -f conftest.$ac_objext
27639 if { (ac_try="$ac_compile"
27640 case "(($ac_try" in
27641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27642 *) ac_try_echo=$ac_try;;
27643 esac
27644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27645 (eval "$ac_compile") 2>conftest.er1
27646 ac_status=$?
27647 grep -v '^ *+' conftest.er1 >conftest.err
27648 rm -f conftest.er1
27649 cat conftest.err >&5
27650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27651 (exit $ac_status); } && {
27652 test -z "$ac_c_werror_flag" ||
27653 test ! -s conftest.err
27654 } && test -s conftest.$ac_objext; then
27655 ac_cv_type_socklen_t=yes
27656 else
27657 echo "$as_me: failed program was:" >&5
27658 sed 's/^/| /' conftest.$ac_ext >&5
27660 ac_cv_type_socklen_t=no
27663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27665 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
27666 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
27667 if test $ac_cv_type_socklen_t = yes; then
27669 else
27671 cat >>confdefs.h <<\_ACEOF
27672 #define socklen_t int
27673 _ACEOF
27680 for h in `(cd $srcdir;echo Python/thread_*.h)`
27682 THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
27683 done
27686 SRCDIRS="Parser Grammar Objects Python Modules Mac"
27687 { echo "$as_me:$LINENO: checking for build directories" >&5
27688 echo $ECHO_N "checking for build directories... $ECHO_C" >&6; }
27689 for dir in $SRCDIRS; do
27690 if test ! -d $dir; then
27691 mkdir $dir
27693 done
27694 { echo "$as_me:$LINENO: result: done" >&5
27695 echo "${ECHO_T}done" >&6; }
27697 # generate output files
27698 ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config Misc/python.pc"
27700 cat >confcache <<\_ACEOF
27701 # This file is a shell script that caches the results of configure
27702 # tests run on this system so they can be shared between configure
27703 # scripts and configure runs, see configure's option --config-cache.
27704 # It is not useful on other systems. If it contains results you don't
27705 # want to keep, you may remove or edit it.
27707 # config.status only pays attention to the cache file if you give it
27708 # the --recheck option to rerun configure.
27710 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27711 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27712 # following values.
27714 _ACEOF
27716 # The following way of writing the cache mishandles newlines in values,
27717 # but we know of no workaround that is simple, portable, and efficient.
27718 # So, we kill variables containing newlines.
27719 # Ultrix sh set writes to stderr and can't be redirected directly,
27720 # and sets the high bit in the cache file unless we assign to the vars.
27722 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27723 eval ac_val=\$$ac_var
27724 case $ac_val in #(
27725 *${as_nl}*)
27726 case $ac_var in #(
27727 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
27728 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
27729 esac
27730 case $ac_var in #(
27731 _ | IFS | as_nl) ;; #(
27732 *) $as_unset $ac_var ;;
27733 esac ;;
27734 esac
27735 done
27737 (set) 2>&1 |
27738 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27739 *${as_nl}ac_space=\ *)
27740 # `set' does not quote correctly, so add quotes (double-quote
27741 # substitution turns \\\\ into \\, and sed turns \\ into \).
27742 sed -n \
27743 "s/'/'\\\\''/g;
27744 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27745 ;; #(
27747 # `set' quotes correctly as required by POSIX, so do not add quotes.
27748 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27750 esac |
27751 sort
27753 sed '
27754 /^ac_cv_env_/b end
27755 t clear
27756 :clear
27757 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27758 t end
27759 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27760 :end' >>confcache
27761 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27762 if test -w "$cache_file"; then
27763 test "x$cache_file" != "x/dev/null" &&
27764 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
27765 echo "$as_me: updating cache $cache_file" >&6;}
27766 cat confcache >$cache_file
27767 else
27768 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
27769 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27772 rm -f confcache
27774 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27775 # Let make expand exec_prefix.
27776 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27778 DEFS=-DHAVE_CONFIG_H
27780 ac_libobjs=
27781 ac_ltlibobjs=
27782 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27783 # 1. Remove the extension, and $U if already installed.
27784 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27785 ac_i=`echo "$ac_i" | sed "$ac_script"`
27786 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27787 # will be set to the directory where LIBOBJS objects are built.
27788 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27789 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
27790 done
27791 LIBOBJS=$ac_libobjs
27793 LTLIBOBJS=$ac_ltlibobjs
27797 : ${CONFIG_STATUS=./config.status}
27798 ac_clean_files_save=$ac_clean_files
27799 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27800 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
27801 echo "$as_me: creating $CONFIG_STATUS" >&6;}
27802 cat >$CONFIG_STATUS <<_ACEOF
27803 #! $SHELL
27804 # Generated by $as_me.
27805 # Run this file to recreate the current configuration.
27806 # Compiler output produced by configure, useful for debugging
27807 # configure, is in config.log if it exists.
27809 debug=false
27810 ac_cs_recheck=false
27811 ac_cs_silent=false
27812 SHELL=\${CONFIG_SHELL-$SHELL}
27813 _ACEOF
27815 cat >>$CONFIG_STATUS <<\_ACEOF
27816 ## --------------------- ##
27817 ## M4sh Initialization. ##
27818 ## --------------------- ##
27820 # Be more Bourne compatible
27821 DUALCASE=1; export DUALCASE # for MKS sh
27822 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27823 emulate sh
27824 NULLCMD=:
27825 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
27826 # is contrary to our usage. Disable this feature.
27827 alias -g '${1+"$@"}'='"$@"'
27828 setopt NO_GLOB_SUBST
27829 else
27830 case `(set -o) 2>/dev/null` in
27831 *posix*) set -o posix ;;
27832 esac
27839 # PATH needs CR
27840 # Avoid depending upon Character Ranges.
27841 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27842 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27843 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27844 as_cr_digits='0123456789'
27845 as_cr_alnum=$as_cr_Letters$as_cr_digits
27847 # The user is always right.
27848 if test "${PATH_SEPARATOR+set}" != set; then
27849 echo "#! /bin/sh" >conf$$.sh
27850 echo "exit 0" >>conf$$.sh
27851 chmod +x conf$$.sh
27852 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
27853 PATH_SEPARATOR=';'
27854 else
27855 PATH_SEPARATOR=:
27857 rm -f conf$$.sh
27860 # Support unset when possible.
27861 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
27862 as_unset=unset
27863 else
27864 as_unset=false
27868 # IFS
27869 # We need space, tab and new line, in precisely that order. Quoting is
27870 # there to prevent editors from complaining about space-tab.
27871 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27872 # splitting by setting IFS to empty value.)
27873 as_nl='
27875 IFS=" "" $as_nl"
27877 # Find who we are. Look in the path if we contain no directory separator.
27878 case $0 in
27879 *[\\/]* ) as_myself=$0 ;;
27880 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27881 for as_dir in $PATH
27883 IFS=$as_save_IFS
27884 test -z "$as_dir" && as_dir=.
27885 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27886 done
27887 IFS=$as_save_IFS
27890 esac
27891 # We did not find ourselves, most probably we were run as `sh COMMAND'
27892 # in which case we are not to be found in the path.
27893 if test "x$as_myself" = x; then
27894 as_myself=$0
27896 if test ! -f "$as_myself"; then
27897 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27898 { (exit 1); exit 1; }
27901 # Work around bugs in pre-3.0 UWIN ksh.
27902 for as_var in ENV MAIL MAILPATH
27903 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
27904 done
27905 PS1='$ '
27906 PS2='> '
27907 PS4='+ '
27909 # NLS nuisances.
27910 for as_var in \
27911 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
27912 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
27913 LC_TELEPHONE LC_TIME
27915 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
27916 eval $as_var=C; export $as_var
27917 else
27918 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
27920 done
27922 # Required to use basename.
27923 if expr a : '\(a\)' >/dev/null 2>&1 &&
27924 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27925 as_expr=expr
27926 else
27927 as_expr=false
27930 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27931 as_basename=basename
27932 else
27933 as_basename=false
27937 # Name of the executable.
27938 as_me=`$as_basename -- "$0" ||
27939 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27940 X"$0" : 'X\(//\)$' \| \
27941 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27942 echo X/"$0" |
27943 sed '/^.*\/\([^/][^/]*\)\/*$/{
27944 s//\1/
27947 /^X\/\(\/\/\)$/{
27948 s//\1/
27951 /^X\/\(\/\).*/{
27952 s//\1/
27955 s/.*/./; q'`
27957 # CDPATH.
27958 $as_unset CDPATH
27962 as_lineno_1=$LINENO
27963 as_lineno_2=$LINENO
27964 test "x$as_lineno_1" != "x$as_lineno_2" &&
27965 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
27967 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
27968 # uniformly replaced by the line number. The first 'sed' inserts a
27969 # line-number line after each line using $LINENO; the second 'sed'
27970 # does the real work. The second script uses 'N' to pair each
27971 # line-number line with the line containing $LINENO, and appends
27972 # trailing '-' during substitution so that $LINENO is not a special
27973 # case at line end.
27974 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
27975 # scripts with optimization help from Paolo Bonzini. Blame Lee
27976 # E. McMahon (1931-1989) for sed's syntax. :-)
27977 sed -n '
27979 /[$]LINENO/=
27980 ' <$as_myself |
27981 sed '
27982 s/[$]LINENO.*/&-/
27983 t lineno
27985 :lineno
27987 :loop
27988 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
27989 t loop
27990 s/-\n.*//
27991 ' >$as_me.lineno &&
27992 chmod +x "$as_me.lineno" ||
27993 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
27994 { (exit 1); exit 1; }; }
27996 # Don't try to exec as it changes $[0], causing all sort of problems
27997 # (the dirname of $[0] is not the place where we might find the
27998 # original and so on. Autoconf is especially sensitive to this).
27999 . "./$as_me.lineno"
28000 # Exit status is that of the last command.
28001 exit
28005 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
28006 as_dirname=dirname
28007 else
28008 as_dirname=false
28011 ECHO_C= ECHO_N= ECHO_T=
28012 case `echo -n x` in
28013 -n*)
28014 case `echo 'x\c'` in
28015 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
28016 *) ECHO_C='\c';;
28017 esac;;
28019 ECHO_N='-n';;
28020 esac
28022 if expr a : '\(a\)' >/dev/null 2>&1 &&
28023 test "X`expr 00001 : '.*\(...\)'`" = X001; then
28024 as_expr=expr
28025 else
28026 as_expr=false
28029 rm -f conf$$ conf$$.exe conf$$.file
28030 if test -d conf$$.dir; then
28031 rm -f conf$$.dir/conf$$.file
28032 else
28033 rm -f conf$$.dir
28034 mkdir conf$$.dir
28036 echo >conf$$.file
28037 if ln -s conf$$.file conf$$ 2>/dev/null; then
28038 as_ln_s='ln -s'
28039 # ... but there are two gotchas:
28040 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28041 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28042 # In both cases, we have to default to `cp -p'.
28043 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
28044 as_ln_s='cp -p'
28045 elif ln conf$$.file conf$$ 2>/dev/null; then
28046 as_ln_s=ln
28047 else
28048 as_ln_s='cp -p'
28050 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
28051 rmdir conf$$.dir 2>/dev/null
28053 if mkdir -p . 2>/dev/null; then
28054 as_mkdir_p=:
28055 else
28056 test -d ./-p && rmdir ./-p
28057 as_mkdir_p=false
28060 if test -x / >/dev/null 2>&1; then
28061 as_test_x='test -x'
28062 else
28063 if ls -dL / >/dev/null 2>&1; then
28064 as_ls_L_option=L
28065 else
28066 as_ls_L_option=
28068 as_test_x='
28069 eval sh -c '\''
28070 if test -d "$1"; then
28071 test -d "$1/.";
28072 else
28073 case $1 in
28074 -*)set "./$1";;
28075 esac;
28076 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
28077 ???[sx]*):;;*)false;;esac;fi
28078 '\'' sh
28081 as_executable_p=$as_test_x
28083 # Sed expression to map a string onto a valid CPP name.
28084 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28086 # Sed expression to map a string onto a valid variable name.
28087 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28090 exec 6>&1
28092 # Save the log message, to keep $[0] and so on meaningful, and to
28093 # report actual input values of CONFIG_FILES etc. instead of their
28094 # values after options handling.
28095 ac_log="
28096 This file was extended by python $as_me 2.7, which was
28097 generated by GNU Autoconf 2.61. Invocation command line was
28099 CONFIG_FILES = $CONFIG_FILES
28100 CONFIG_HEADERS = $CONFIG_HEADERS
28101 CONFIG_LINKS = $CONFIG_LINKS
28102 CONFIG_COMMANDS = $CONFIG_COMMANDS
28103 $ $0 $@
28105 on `(hostname || uname -n) 2>/dev/null | sed 1q`
28108 _ACEOF
28110 cat >>$CONFIG_STATUS <<_ACEOF
28111 # Files that config.status was made for.
28112 config_files="$ac_config_files"
28113 config_headers="$ac_config_headers"
28115 _ACEOF
28117 cat >>$CONFIG_STATUS <<\_ACEOF
28118 ac_cs_usage="\
28119 \`$as_me' instantiates files from templates according to the
28120 current configuration.
28122 Usage: $0 [OPTIONS] [FILE]...
28124 -h, --help print this help, then exit
28125 -V, --version print version number and configuration settings, then exit
28126 -q, --quiet do not print progress messages
28127 -d, --debug don't remove temporary files
28128 --recheck update $as_me by reconfiguring in the same conditions
28129 --file=FILE[:TEMPLATE]
28130 instantiate the configuration file FILE
28131 --header=FILE[:TEMPLATE]
28132 instantiate the configuration header FILE
28134 Configuration files:
28135 $config_files
28137 Configuration headers:
28138 $config_headers
28140 Report bugs to <bug-autoconf@gnu.org>."
28142 _ACEOF
28143 cat >>$CONFIG_STATUS <<_ACEOF
28144 ac_cs_version="\\
28145 python config.status 2.7
28146 configured by $0, generated by GNU Autoconf 2.61,
28147 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
28149 Copyright (C) 2006 Free Software Foundation, Inc.
28150 This config.status script is free software; the Free Software Foundation
28151 gives unlimited permission to copy, distribute and modify it."
28153 ac_pwd='$ac_pwd'
28154 srcdir='$srcdir'
28155 INSTALL='$INSTALL'
28156 _ACEOF
28158 cat >>$CONFIG_STATUS <<\_ACEOF
28159 # If no file are specified by the user, then we need to provide default
28160 # value. By we need to know if files were specified by the user.
28161 ac_need_defaults=:
28162 while test $# != 0
28164 case $1 in
28165 --*=*)
28166 ac_option=`expr "X$1" : 'X\([^=]*\)='`
28167 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
28168 ac_shift=:
28171 ac_option=$1
28172 ac_optarg=$2
28173 ac_shift=shift
28175 esac
28177 case $ac_option in
28178 # Handling of the options.
28179 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28180 ac_cs_recheck=: ;;
28181 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
28182 echo "$ac_cs_version"; exit ;;
28183 --debug | --debu | --deb | --de | --d | -d )
28184 debug=: ;;
28185 --file | --fil | --fi | --f )
28186 $ac_shift
28187 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
28188 ac_need_defaults=false;;
28189 --header | --heade | --head | --hea )
28190 $ac_shift
28191 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
28192 ac_need_defaults=false;;
28193 --he | --h)
28194 # Conflict between --help and --header
28195 { echo "$as_me: error: ambiguous option: $1
28196 Try \`$0 --help' for more information." >&2
28197 { (exit 1); exit 1; }; };;
28198 --help | --hel | -h )
28199 echo "$ac_cs_usage"; exit ;;
28200 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28201 | -silent | --silent | --silen | --sile | --sil | --si | --s)
28202 ac_cs_silent=: ;;
28204 # This is an error.
28205 -*) { echo "$as_me: error: unrecognized option: $1
28206 Try \`$0 --help' for more information." >&2
28207 { (exit 1); exit 1; }; } ;;
28209 *) ac_config_targets="$ac_config_targets $1"
28210 ac_need_defaults=false ;;
28212 esac
28213 shift
28214 done
28216 ac_configure_extra_args=
28218 if $ac_cs_silent; then
28219 exec 6>/dev/null
28220 ac_configure_extra_args="$ac_configure_extra_args --silent"
28223 _ACEOF
28224 cat >>$CONFIG_STATUS <<_ACEOF
28225 if \$ac_cs_recheck; then
28226 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
28227 CONFIG_SHELL=$SHELL
28228 export CONFIG_SHELL
28229 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28232 _ACEOF
28233 cat >>$CONFIG_STATUS <<\_ACEOF
28234 exec 5>>config.log
28236 echo
28237 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28238 ## Running $as_me. ##
28239 _ASBOX
28240 echo "$ac_log"
28241 } >&5
28243 _ACEOF
28244 cat >>$CONFIG_STATUS <<_ACEOF
28245 _ACEOF
28247 cat >>$CONFIG_STATUS <<\_ACEOF
28249 # Handling of arguments.
28250 for ac_config_target in $ac_config_targets
28252 case $ac_config_target in
28253 "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;;
28254 "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;;
28255 "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;;
28256 "Mac/IDLE/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/IDLE/Makefile" ;;
28257 "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;;
28258 "Mac/Resources/app/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/app/Info.plist" ;;
28259 "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;;
28260 "Modules/Setup.config") CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;;
28261 "Misc/python.pc") CONFIG_FILES="$CONFIG_FILES Misc/python.pc" ;;
28263 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
28264 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
28265 { (exit 1); exit 1; }; };;
28266 esac
28267 done
28270 # If the user did not use the arguments to specify the items to instantiate,
28271 # then the envvar interface is used. Set only those that are not.
28272 # We use the long form for the default assignment because of an extremely
28273 # bizarre bug on SunOS 4.1.3.
28274 if $ac_need_defaults; then
28275 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28276 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28279 # Have a temporary directory for convenience. Make it in the build tree
28280 # simply because there is no reason against having it here, and in addition,
28281 # creating and moving files from /tmp can sometimes cause problems.
28282 # Hook for its removal unless debugging.
28283 # Note that there is a small window in which the directory will not be cleaned:
28284 # after its creation but before its name has been assigned to `$tmp'.
28285 $debug ||
28287 tmp=
28288 trap 'exit_status=$?
28289 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28291 trap '{ (exit 1); exit 1; }' 1 2 13 15
28293 # Create a (secure) tmp directory for tmp files.
28296 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28297 test -n "$tmp" && test -d "$tmp"
28298 } ||
28300 tmp=./conf$$-$RANDOM
28301 (umask 077 && mkdir "$tmp")
28302 } ||
28304 echo "$me: cannot create a temporary directory in ." >&2
28305 { (exit 1); exit 1; }
28309 # Set up the sed scripts for CONFIG_FILES section.
28312 # No need to generate the scripts if there are no CONFIG_FILES.
28313 # This happens for instance when ./config.status config.h
28314 if test -n "$CONFIG_FILES"; then
28316 _ACEOF
28320 ac_delim='%!_!# '
28321 for ac_last_try in false false false false false :; do
28322 cat >conf$$subs.sed <<_ACEOF
28323 SHELL!$SHELL$ac_delim
28324 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
28325 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
28326 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
28327 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
28328 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
28329 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
28330 exec_prefix!$exec_prefix$ac_delim
28331 prefix!$prefix$ac_delim
28332 program_transform_name!$program_transform_name$ac_delim
28333 bindir!$bindir$ac_delim
28334 sbindir!$sbindir$ac_delim
28335 libexecdir!$libexecdir$ac_delim
28336 datarootdir!$datarootdir$ac_delim
28337 datadir!$datadir$ac_delim
28338 sysconfdir!$sysconfdir$ac_delim
28339 sharedstatedir!$sharedstatedir$ac_delim
28340 localstatedir!$localstatedir$ac_delim
28341 includedir!$includedir$ac_delim
28342 oldincludedir!$oldincludedir$ac_delim
28343 docdir!$docdir$ac_delim
28344 infodir!$infodir$ac_delim
28345 htmldir!$htmldir$ac_delim
28346 dvidir!$dvidir$ac_delim
28347 pdfdir!$pdfdir$ac_delim
28348 psdir!$psdir$ac_delim
28349 libdir!$libdir$ac_delim
28350 localedir!$localedir$ac_delim
28351 mandir!$mandir$ac_delim
28352 DEFS!$DEFS$ac_delim
28353 ECHO_C!$ECHO_C$ac_delim
28354 ECHO_N!$ECHO_N$ac_delim
28355 ECHO_T!$ECHO_T$ac_delim
28356 LIBS!$LIBS$ac_delim
28357 build_alias!$build_alias$ac_delim
28358 host_alias!$host_alias$ac_delim
28359 target_alias!$target_alias$ac_delim
28360 VERSION!$VERSION$ac_delim
28361 SOVERSION!$SOVERSION$ac_delim
28362 CONFIG_ARGS!$CONFIG_ARGS$ac_delim
28363 UNIVERSALSDK!$UNIVERSALSDK$ac_delim
28364 ARCH_RUN_32BIT!$ARCH_RUN_32BIT$ac_delim
28365 LIPO_32BIT_FLAGS!$LIPO_32BIT_FLAGS$ac_delim
28366 PYTHONFRAMEWORK!$PYTHONFRAMEWORK$ac_delim
28367 PYTHONFRAMEWORKIDENTIFIER!$PYTHONFRAMEWORKIDENTIFIER$ac_delim
28368 PYTHONFRAMEWORKDIR!$PYTHONFRAMEWORKDIR$ac_delim
28369 PYTHONFRAMEWORKPREFIX!$PYTHONFRAMEWORKPREFIX$ac_delim
28370 PYTHONFRAMEWORKINSTALLDIR!$PYTHONFRAMEWORKINSTALLDIR$ac_delim
28371 FRAMEWORKINSTALLFIRST!$FRAMEWORKINSTALLFIRST$ac_delim
28372 FRAMEWORKINSTALLLAST!$FRAMEWORKINSTALLLAST$ac_delim
28373 FRAMEWORKALTINSTALLFIRST!$FRAMEWORKALTINSTALLFIRST$ac_delim
28374 FRAMEWORKALTINSTALLLAST!$FRAMEWORKALTINSTALLLAST$ac_delim
28375 FRAMEWORKUNIXTOOLSPREFIX!$FRAMEWORKUNIXTOOLSPREFIX$ac_delim
28376 MACHDEP!$MACHDEP$ac_delim
28377 SGI_ABI!$SGI_ABI$ac_delim
28378 EXTRAPLATDIR!$EXTRAPLATDIR$ac_delim
28379 EXTRAMACHDEPPATH!$EXTRAMACHDEPPATH$ac_delim
28380 CONFIGURE_MACOSX_DEPLOYMENT_TARGET!$CONFIGURE_MACOSX_DEPLOYMENT_TARGET$ac_delim
28381 EXPORT_MACOSX_DEPLOYMENT_TARGET!$EXPORT_MACOSX_DEPLOYMENT_TARGET$ac_delim
28382 CC!$CC$ac_delim
28383 CFLAGS!$CFLAGS$ac_delim
28384 LDFLAGS!$LDFLAGS$ac_delim
28385 CPPFLAGS!$CPPFLAGS$ac_delim
28386 ac_ct_CC!$ac_ct_CC$ac_delim
28387 EXEEXT!$EXEEXT$ac_delim
28388 OBJEXT!$OBJEXT$ac_delim
28389 CXX!$CXX$ac_delim
28390 MAINCC!$MAINCC$ac_delim
28391 CPP!$CPP$ac_delim
28392 GREP!$GREP$ac_delim
28393 EGREP!$EGREP$ac_delim
28394 BUILDEXEEXT!$BUILDEXEEXT$ac_delim
28395 LIBRARY!$LIBRARY$ac_delim
28396 LDLIBRARY!$LDLIBRARY$ac_delim
28397 DLLLIBRARY!$DLLLIBRARY$ac_delim
28398 BLDLIBRARY!$BLDLIBRARY$ac_delim
28399 LDLIBRARYDIR!$LDLIBRARYDIR$ac_delim
28400 INSTSONAME!$INSTSONAME$ac_delim
28401 RUNSHARED!$RUNSHARED$ac_delim
28402 LINKCC!$LINKCC$ac_delim
28403 GNULD!$GNULD$ac_delim
28404 RANLIB!$RANLIB$ac_delim
28405 AR!$AR$ac_delim
28406 ARFLAGS!$ARFLAGS$ac_delim
28407 SVNVERSION!$SVNVERSION$ac_delim
28408 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
28409 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
28410 INSTALL_DATA!$INSTALL_DATA$ac_delim
28411 LN!$LN$ac_delim
28412 OPT!$OPT$ac_delim
28413 BASECFLAGS!$BASECFLAGS$ac_delim
28414 UNIVERSAL_ARCH_FLAGS!$UNIVERSAL_ARCH_FLAGS$ac_delim
28415 OTHER_LIBTOOL_OPT!$OTHER_LIBTOOL_OPT$ac_delim
28416 LIBTOOL_CRUFT!$LIBTOOL_CRUFT$ac_delim
28417 SO!$SO$ac_delim
28418 LDSHARED!$LDSHARED$ac_delim
28419 BLDSHARED!$BLDSHARED$ac_delim
28420 _ACEOF
28422 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
28423 break
28424 elif $ac_last_try; then
28425 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
28426 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
28427 { (exit 1); exit 1; }; }
28428 else
28429 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28431 done
28433 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
28434 if test -n "$ac_eof"; then
28435 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
28436 ac_eof=`expr $ac_eof + 1`
28439 cat >>$CONFIG_STATUS <<_ACEOF
28440 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
28441 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28442 _ACEOF
28443 sed '
28444 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
28445 s/^/s,@/; s/!/@,|#_!!_#|/
28448 s/'"$ac_delim"'$/,g/; t
28449 s/$/\\/; p
28450 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
28451 ' >>$CONFIG_STATUS <conf$$subs.sed
28452 rm -f conf$$subs.sed
28453 cat >>$CONFIG_STATUS <<_ACEOF
28454 CEOF$ac_eof
28455 _ACEOF
28458 ac_delim='%!_!# '
28459 for ac_last_try in false false false false false :; do
28460 cat >conf$$subs.sed <<_ACEOF
28461 CCSHARED!$CCSHARED$ac_delim
28462 LINKFORSHARED!$LINKFORSHARED$ac_delim
28463 CFLAGSFORSHARED!$CFLAGSFORSHARED$ac_delim
28464 SHLIBS!$SHLIBS$ac_delim
28465 PKG_CONFIG!$PKG_CONFIG$ac_delim
28466 LIBFFI_INCLUDEDIR!$LIBFFI_INCLUDEDIR$ac_delim
28467 USE_SIGNAL_MODULE!$USE_SIGNAL_MODULE$ac_delim
28468 SIGNAL_OBJS!$SIGNAL_OBJS$ac_delim
28469 USE_THREAD_MODULE!$USE_THREAD_MODULE$ac_delim
28470 LDLAST!$LDLAST$ac_delim
28471 THREADOBJ!$THREADOBJ$ac_delim
28472 DLINCLDIR!$DLINCLDIR$ac_delim
28473 DYNLOADFILE!$DYNLOADFILE$ac_delim
28474 MACHDEP_OBJS!$MACHDEP_OBJS$ac_delim
28475 TRUE!$TRUE$ac_delim
28476 LIBOBJS!$LIBOBJS$ac_delim
28477 HAVE_GETHOSTBYNAME_R_6_ARG!$HAVE_GETHOSTBYNAME_R_6_ARG$ac_delim
28478 HAVE_GETHOSTBYNAME_R_5_ARG!$HAVE_GETHOSTBYNAME_R_5_ARG$ac_delim
28479 HAVE_GETHOSTBYNAME_R_3_ARG!$HAVE_GETHOSTBYNAME_R_3_ARG$ac_delim
28480 HAVE_GETHOSTBYNAME_R!$HAVE_GETHOSTBYNAME_R$ac_delim
28481 HAVE_GETHOSTBYNAME!$HAVE_GETHOSTBYNAME$ac_delim
28482 LIBM!$LIBM$ac_delim
28483 LIBC!$LIBC$ac_delim
28484 UNICODE_OBJS!$UNICODE_OBJS$ac_delim
28485 THREADHEADERS!$THREADHEADERS$ac_delim
28486 SRCDIRS!$SRCDIRS$ac_delim
28487 LTLIBOBJS!$LTLIBOBJS$ac_delim
28488 _ACEOF
28490 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 27; then
28491 break
28492 elif $ac_last_try; then
28493 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
28494 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
28495 { (exit 1); exit 1; }; }
28496 else
28497 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28499 done
28501 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
28502 if test -n "$ac_eof"; then
28503 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
28504 ac_eof=`expr $ac_eof + 1`
28507 cat >>$CONFIG_STATUS <<_ACEOF
28508 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
28509 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
28510 _ACEOF
28511 sed '
28512 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
28513 s/^/s,@/; s/!/@,|#_!!_#|/
28516 s/'"$ac_delim"'$/,g/; t
28517 s/$/\\/; p
28518 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
28519 ' >>$CONFIG_STATUS <conf$$subs.sed
28520 rm -f conf$$subs.sed
28521 cat >>$CONFIG_STATUS <<_ACEOF
28522 :end
28523 s/|#_!!_#|//g
28524 CEOF$ac_eof
28525 _ACEOF
28528 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28529 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28530 # trailing colons and then remove the whole line if VPATH becomes empty
28531 # (actually we leave an empty line to preserve line numbers).
28532 if test "x$srcdir" = x.; then
28533 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28534 s/:*\$(srcdir):*/:/
28535 s/:*\${srcdir}:*/:/
28536 s/:*@srcdir@:*/:/
28537 s/^\([^=]*=[ ]*\):*/\1/
28538 s/:*$//
28539 s/^[^=]*=[ ]*$//
28543 cat >>$CONFIG_STATUS <<\_ACEOF
28544 fi # test -n "$CONFIG_FILES"
28547 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
28549 case $ac_tag in
28550 :[FHLC]) ac_mode=$ac_tag; continue;;
28551 esac
28552 case $ac_mode$ac_tag in
28553 :[FHL]*:*);;
28554 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
28555 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
28556 { (exit 1); exit 1; }; };;
28557 :[FH]-) ac_tag=-:-;;
28558 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28559 esac
28560 ac_save_IFS=$IFS
28561 IFS=:
28562 set x $ac_tag
28563 IFS=$ac_save_IFS
28564 shift
28565 ac_file=$1
28566 shift
28568 case $ac_mode in
28569 :L) ac_source=$1;;
28570 :[FH])
28571 ac_file_inputs=
28572 for ac_f
28574 case $ac_f in
28575 -) ac_f="$tmp/stdin";;
28576 *) # Look for the file first in the build tree, then in the source tree
28577 # (if the path is not absolute). The absolute path cannot be DOS-style,
28578 # because $ac_f cannot contain `:'.
28579 test -f "$ac_f" ||
28580 case $ac_f in
28581 [\\/$]*) false;;
28582 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28583 esac ||
28584 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
28585 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
28586 { (exit 1); exit 1; }; };;
28587 esac
28588 ac_file_inputs="$ac_file_inputs $ac_f"
28589 done
28591 # Let's still pretend it is `configure' which instantiates (i.e., don't
28592 # use $as_me), people would be surprised to read:
28593 # /* config.h. Generated by config.status. */
28594 configure_input="Generated from "`IFS=:
28595 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
28596 if test x"$ac_file" != x-; then
28597 configure_input="$ac_file. $configure_input"
28598 { echo "$as_me:$LINENO: creating $ac_file" >&5
28599 echo "$as_me: creating $ac_file" >&6;}
28602 case $ac_tag in
28603 *:-:* | *:-) cat >"$tmp/stdin";;
28604 esac
28606 esac
28608 ac_dir=`$as_dirname -- "$ac_file" ||
28609 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28610 X"$ac_file" : 'X\(//\)[^/]' \| \
28611 X"$ac_file" : 'X\(//\)$' \| \
28612 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28613 echo X"$ac_file" |
28614 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28615 s//\1/
28618 /^X\(\/\/\)[^/].*/{
28619 s//\1/
28622 /^X\(\/\/\)$/{
28623 s//\1/
28626 /^X\(\/\).*/{
28627 s//\1/
28630 s/.*/./; q'`
28631 { as_dir="$ac_dir"
28632 case $as_dir in #(
28633 -*) as_dir=./$as_dir;;
28634 esac
28635 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
28636 as_dirs=
28637 while :; do
28638 case $as_dir in #(
28639 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
28640 *) as_qdir=$as_dir;;
28641 esac
28642 as_dirs="'$as_qdir' $as_dirs"
28643 as_dir=`$as_dirname -- "$as_dir" ||
28644 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28645 X"$as_dir" : 'X\(//\)[^/]' \| \
28646 X"$as_dir" : 'X\(//\)$' \| \
28647 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28648 echo X"$as_dir" |
28649 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28650 s//\1/
28653 /^X\(\/\/\)[^/].*/{
28654 s//\1/
28657 /^X\(\/\/\)$/{
28658 s//\1/
28661 /^X\(\/\).*/{
28662 s//\1/
28665 s/.*/./; q'`
28666 test -d "$as_dir" && break
28667 done
28668 test -z "$as_dirs" || eval "mkdir $as_dirs"
28669 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
28670 echo "$as_me: error: cannot create directory $as_dir" >&2;}
28671 { (exit 1); exit 1; }; }; }
28672 ac_builddir=.
28674 case "$ac_dir" in
28675 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28677 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
28678 # A ".." for each directory in $ac_dir_suffix.
28679 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
28680 case $ac_top_builddir_sub in
28681 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28682 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28683 esac ;;
28684 esac
28685 ac_abs_top_builddir=$ac_pwd
28686 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28687 # for backward compatibility:
28688 ac_top_builddir=$ac_top_build_prefix
28690 case $srcdir in
28691 .) # We are building in place.
28692 ac_srcdir=.
28693 ac_top_srcdir=$ac_top_builddir_sub
28694 ac_abs_top_srcdir=$ac_pwd ;;
28695 [\\/]* | ?:[\\/]* ) # Absolute name.
28696 ac_srcdir=$srcdir$ac_dir_suffix;
28697 ac_top_srcdir=$srcdir
28698 ac_abs_top_srcdir=$srcdir ;;
28699 *) # Relative name.
28700 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28701 ac_top_srcdir=$ac_top_build_prefix$srcdir
28702 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28703 esac
28704 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28707 case $ac_mode in
28710 # CONFIG_FILE
28713 case $INSTALL in
28714 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28715 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
28716 esac
28717 _ACEOF
28719 cat >>$CONFIG_STATUS <<\_ACEOF
28720 # If the template does not know about datarootdir, expand it.
28721 # FIXME: This hack should be removed a few years after 2.60.
28722 ac_datarootdir_hack=; ac_datarootdir_seen=
28724 case `sed -n '/datarootdir/ {
28728 /@datadir@/p
28729 /@docdir@/p
28730 /@infodir@/p
28731 /@localedir@/p
28732 /@mandir@/p
28733 ' $ac_file_inputs` in
28734 *datarootdir*) ac_datarootdir_seen=yes;;
28735 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28736 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28737 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28738 _ACEOF
28739 cat >>$CONFIG_STATUS <<_ACEOF
28740 ac_datarootdir_hack='
28741 s&@datadir@&$datadir&g
28742 s&@docdir@&$docdir&g
28743 s&@infodir@&$infodir&g
28744 s&@localedir@&$localedir&g
28745 s&@mandir@&$mandir&g
28746 s&\\\${datarootdir}&$datarootdir&g' ;;
28747 esac
28748 _ACEOF
28750 # Neutralize VPATH when `$srcdir' = `.'.
28751 # Shell code in configure.ac might set extrasub.
28752 # FIXME: do we really want to maintain this feature?
28753 cat >>$CONFIG_STATUS <<_ACEOF
28754 sed "$ac_vpsub
28755 $extrasub
28756 _ACEOF
28757 cat >>$CONFIG_STATUS <<\_ACEOF
28759 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28760 s&@configure_input@&$configure_input&;t t
28761 s&@top_builddir@&$ac_top_builddir_sub&;t t
28762 s&@srcdir@&$ac_srcdir&;t t
28763 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28764 s&@top_srcdir@&$ac_top_srcdir&;t t
28765 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28766 s&@builddir@&$ac_builddir&;t t
28767 s&@abs_builddir@&$ac_abs_builddir&;t t
28768 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28769 s&@INSTALL@&$ac_INSTALL&;t t
28770 $ac_datarootdir_hack
28771 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
28773 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28774 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28775 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28776 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28777 which seems to be undefined. Please make sure it is defined." >&5
28778 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28779 which seems to be undefined. Please make sure it is defined." >&2;}
28781 rm -f "$tmp/stdin"
28782 case $ac_file in
28783 -) cat "$tmp/out"; rm -f "$tmp/out";;
28784 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
28785 esac
28789 # CONFIG_HEADER
28791 _ACEOF
28793 # Transform confdefs.h into a sed script `conftest.defines', that
28794 # substitutes the proper values into config.h.in to produce config.h.
28795 rm -f conftest.defines conftest.tail
28796 # First, append a space to every undef/define line, to ease matching.
28797 echo 's/$/ /' >conftest.defines
28798 # Then, protect against being on the right side of a sed subst, or in
28799 # an unquoted here document, in config.status. If some macros were
28800 # called several times there might be several #defines for the same
28801 # symbol, which is useless. But do not sort them, since the last
28802 # AC_DEFINE must be honored.
28803 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28804 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
28805 # NAME is the cpp macro being defined, VALUE is the value it is being given.
28806 # PARAMS is the parameter list in the macro definition--in most cases, it's
28807 # just an empty string.
28808 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
28809 ac_dB='\\)[ (].*,\\1define\\2'
28810 ac_dC=' '
28811 ac_dD=' ,'
28813 uniq confdefs.h |
28814 sed -n '
28815 t rset
28816 :rset
28817 s/^[ ]*#[ ]*define[ ][ ]*//
28818 t ok
28821 s/[\\&,]/\\&/g
28822 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
28823 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
28824 ' >>conftest.defines
28826 # Remove the space that was appended to ease matching.
28827 # Then replace #undef with comments. This is necessary, for
28828 # example, in the case of _POSIX_SOURCE, which is predefined and required
28829 # on some systems where configure will not decide to define it.
28830 # (The regexp can be short, since the line contains either #define or #undef.)
28831 echo 's/ $//
28832 s,^[ #]*u.*,/* & */,' >>conftest.defines
28834 # Break up conftest.defines:
28835 ac_max_sed_lines=50
28837 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
28838 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
28839 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
28840 # et cetera.
28841 ac_in='$ac_file_inputs'
28842 ac_out='"$tmp/out1"'
28843 ac_nxt='"$tmp/out2"'
28845 while :
28847 # Write a here document:
28848 cat >>$CONFIG_STATUS <<_ACEOF
28849 # First, check the format of the line:
28850 cat >"\$tmp/defines.sed" <<\\CEOF
28851 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
28852 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
28854 :def
28855 _ACEOF
28856 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
28857 echo 'CEOF
28858 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
28859 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
28860 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
28861 grep . conftest.tail >/dev/null || break
28862 rm -f conftest.defines
28863 mv conftest.tail conftest.defines
28864 done
28865 rm -f conftest.defines conftest.tail
28867 echo "ac_result=$ac_in" >>$CONFIG_STATUS
28868 cat >>$CONFIG_STATUS <<\_ACEOF
28869 if test x"$ac_file" != x-; then
28870 echo "/* $configure_input */" >"$tmp/config.h"
28871 cat "$ac_result" >>"$tmp/config.h"
28872 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
28873 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
28874 echo "$as_me: $ac_file is unchanged" >&6;}
28875 else
28876 rm -f $ac_file
28877 mv "$tmp/config.h" $ac_file
28879 else
28880 echo "/* $configure_input */"
28881 cat "$ac_result"
28883 rm -f "$tmp/out12"
28887 esac
28889 done # for ac_tag
28892 { (exit 0); exit 0; }
28893 _ACEOF
28894 chmod +x $CONFIG_STATUS
28895 ac_clean_files=$ac_clean_files_save
28898 # configure is writing to config.log, and then calls config.status.
28899 # config.status does its own redirection, appending to config.log.
28900 # Unfortunately, on DOS this fails, as config.log is still kept open
28901 # by configure, so config.status won't be able to write to it; its
28902 # output is simply discarded. So we exec the FD to /dev/null,
28903 # effectively closing config.log, so it can be properly (re)opened and
28904 # appended to by config.status. When coming back to configure, we
28905 # need to make the FD available again.
28906 if test "$no_create" != yes; then
28907 ac_cs_success=:
28908 ac_config_status_args=
28909 test "$silent" = yes &&
28910 ac_config_status_args="$ac_config_status_args --quiet"
28911 exec 5>/dev/null
28912 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28913 exec 5>>config.log
28914 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28915 # would make configure fail if this is the last instruction.
28916 $ac_cs_success || { (exit 1); exit 1; }
28920 echo "creating Modules/Setup"
28921 if test ! -f Modules/Setup
28922 then
28923 cp $srcdir/Modules/Setup.dist Modules/Setup
28926 echo "creating Modules/Setup.local"
28927 if test ! -f Modules/Setup.local
28928 then
28929 echo "# Edit this file for local setup changes" >Modules/Setup.local
28932 echo "creating Makefile"
28933 $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \
28934 -s Modules Modules/Setup.config \
28935 Modules/Setup.local Modules/Setup
28937 case $ac_sys_system in
28938 BeOS)
28939 { echo "$as_me:$LINENO: WARNING:
28941 Support for BeOS is deprecated as of Python 2.6.
28942 See PEP 11 for the gory details.
28943 " >&5
28944 echo "$as_me: WARNING:
28946 Support for BeOS is deprecated as of Python 2.6.
28947 See PEP 11 for the gory details.
28948 " >&2;}
28950 *) ;;
28951 esac
28953 mv config.c Modules