Issue #7333: The `posix` module gains an `initgroups()` function providing
[python.git] / configure
blob8391a17e99f07087ffb4678add179ea212ccdd09
1 #! /bin/sh
2 # From configure.in Revision: 76568 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for python 2.7.
6 # Report bugs to <http://bugs.python.org/>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 emulate sh
20 NULLCMD=:
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
24 setopt NO_GLOB_SUBST
25 else
26 case `(set -o) 2>/dev/null` in
27 *posix*) set -o posix ;;
28 esac
35 # PATH needs CR
36 # Avoid depending upon Character Ranges.
37 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40 as_cr_digits='0123456789'
41 as_cr_alnum=$as_cr_Letters$as_cr_digits
43 # The user is always right.
44 if test "${PATH_SEPARATOR+set}" != set; then
45 echo "#! /bin/sh" >conf$$.sh
46 echo "exit 0" >>conf$$.sh
47 chmod +x conf$$.sh
48 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49 PATH_SEPARATOR=';'
50 else
51 PATH_SEPARATOR=:
53 rm -f conf$$.sh
56 # Support unset when possible.
57 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
58 as_unset=unset
59 else
60 as_unset=false
64 # IFS
65 # We need space, tab and new line, in precisely that order. Quoting is
66 # there to prevent editors from complaining about space-tab.
67 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
68 # splitting by setting IFS to empty value.)
69 as_nl='
71 IFS=" "" $as_nl"
73 # Find who we are. Look in the path if we contain no directory separator.
74 case $0 in
75 *[\\/]* ) as_myself=$0 ;;
76 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 for as_dir in $PATH
79 IFS=$as_save_IFS
80 test -z "$as_dir" && as_dir=.
81 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
82 done
83 IFS=$as_save_IFS
86 esac
87 # We did not find ourselves, most probably we were run as `sh COMMAND'
88 # in which case we are not to be found in the path.
89 if test "x$as_myself" = x; then
90 as_myself=$0
92 if test ! -f "$as_myself"; then
93 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 { (exit 1); exit 1; }
97 # Work around bugs in pre-3.0 UWIN ksh.
98 for as_var in ENV MAIL MAILPATH
99 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
100 done
101 PS1='$ '
102 PS2='> '
103 PS4='+ '
105 # NLS nuisances.
106 for as_var in \
107 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
108 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
109 LC_TELEPHONE LC_TIME
111 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
112 eval $as_var=C; export $as_var
113 else
114 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
116 done
118 # Required to use basename.
119 if expr a : '\(a\)' >/dev/null 2>&1 &&
120 test "X`expr 00001 : '.*\(...\)'`" = X001; then
121 as_expr=expr
122 else
123 as_expr=false
126 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
127 as_basename=basename
128 else
129 as_basename=false
133 # Name of the executable.
134 as_me=`$as_basename -- "$0" ||
135 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
136 X"$0" : 'X\(//\)$' \| \
137 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138 echo X/"$0" |
139 sed '/^.*\/\([^/][^/]*\)\/*$/{
140 s//\1/
143 /^X\/\(\/\/\)$/{
144 s//\1/
147 /^X\/\(\/\).*/{
148 s//\1/
151 s/.*/./; q'`
153 # CDPATH.
154 $as_unset CDPATH
157 if test "x$CONFIG_SHELL" = x; then
158 if (eval ":") 2>/dev/null; then
159 as_have_required=yes
160 else
161 as_have_required=no
164 if test $as_have_required = yes && (eval ":
165 (as_func_return () {
166 (exit \$1)
168 as_func_success () {
169 as_func_return 0
171 as_func_failure () {
172 as_func_return 1
174 as_func_ret_success () {
175 return 0
177 as_func_ret_failure () {
178 return 1
181 exitcode=0
182 if as_func_success; then
184 else
185 exitcode=1
186 echo as_func_success failed.
189 if as_func_failure; then
190 exitcode=1
191 echo as_func_failure succeeded.
194 if as_func_ret_success; then
196 else
197 exitcode=1
198 echo as_func_ret_success failed.
201 if as_func_ret_failure; then
202 exitcode=1
203 echo as_func_ret_failure succeeded.
206 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
208 else
209 exitcode=1
210 echo positional parameters were not saved.
213 test \$exitcode = 0) || { (exit 1); exit 1; }
216 as_lineno_1=\$LINENO
217 as_lineno_2=\$LINENO
218 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
219 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
220 ") 2> /dev/null; then
222 else
223 as_candidate_shells=
224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
225 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
227 IFS=$as_save_IFS
228 test -z "$as_dir" && as_dir=.
229 case $as_dir in
231 for as_base in sh bash ksh sh5; do
232 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
233 done;;
234 esac
235 done
236 IFS=$as_save_IFS
239 for as_shell in $as_candidate_shells $SHELL; do
240 # Try only shells that exist, to save several forks.
241 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
242 { ("$as_shell") 2> /dev/null <<\_ASEOF
243 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244 emulate sh
245 NULLCMD=:
246 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
247 # is contrary to our usage. Disable this feature.
248 alias -g '${1+"$@"}'='"$@"'
249 setopt NO_GLOB_SUBST
250 else
251 case `(set -o) 2>/dev/null` in
252 *posix*) set -o posix ;;
253 esac
259 _ASEOF
260 }; then
261 CONFIG_SHELL=$as_shell
262 as_have_required=yes
263 if { "$as_shell" 2> /dev/null <<\_ASEOF
264 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
265 emulate sh
266 NULLCMD=:
267 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
268 # is contrary to our usage. Disable this feature.
269 alias -g '${1+"$@"}'='"$@"'
270 setopt NO_GLOB_SUBST
271 else
272 case `(set -o) 2>/dev/null` in
273 *posix*) set -o posix ;;
274 esac
280 (as_func_return () {
281 (exit $1)
283 as_func_success () {
284 as_func_return 0
286 as_func_failure () {
287 as_func_return 1
289 as_func_ret_success () {
290 return 0
292 as_func_ret_failure () {
293 return 1
296 exitcode=0
297 if as_func_success; then
299 else
300 exitcode=1
301 echo as_func_success failed.
304 if as_func_failure; then
305 exitcode=1
306 echo as_func_failure succeeded.
309 if as_func_ret_success; then
311 else
312 exitcode=1
313 echo as_func_ret_success failed.
316 if as_func_ret_failure; then
317 exitcode=1
318 echo as_func_ret_failure succeeded.
321 if ( set x; as_func_ret_success y && test x = "$1" ); then
323 else
324 exitcode=1
325 echo positional parameters were not saved.
328 test $exitcode = 0) || { (exit 1); exit 1; }
331 as_lineno_1=$LINENO
332 as_lineno_2=$LINENO
333 test "x$as_lineno_1" != "x$as_lineno_2" &&
334 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
336 _ASEOF
337 }; then
338 break
343 done
345 if test "x$CONFIG_SHELL" != x; then
346 for as_var in BASH_ENV ENV
347 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
348 done
349 export CONFIG_SHELL
350 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
354 if test $as_have_required = no; then
355 echo This script requires a shell more modern than all the
356 echo shells that I found on your system. Please install a
357 echo modern shell, or manually run the script under such a
358 echo shell if you do have one.
359 { (exit 1); exit 1; }
369 (eval "as_func_return () {
370 (exit \$1)
372 as_func_success () {
373 as_func_return 0
375 as_func_failure () {
376 as_func_return 1
378 as_func_ret_success () {
379 return 0
381 as_func_ret_failure () {
382 return 1
385 exitcode=0
386 if as_func_success; then
388 else
389 exitcode=1
390 echo as_func_success failed.
393 if as_func_failure; then
394 exitcode=1
395 echo as_func_failure succeeded.
398 if as_func_ret_success; then
400 else
401 exitcode=1
402 echo as_func_ret_success failed.
405 if as_func_ret_failure; then
406 exitcode=1
407 echo as_func_ret_failure succeeded.
410 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
412 else
413 exitcode=1
414 echo positional parameters were not saved.
417 test \$exitcode = 0") || {
418 echo No shell found that supports shell functions.
419 echo Please tell autoconf@gnu.org about your system,
420 echo including any error possibly output before this
421 echo message
426 as_lineno_1=$LINENO
427 as_lineno_2=$LINENO
428 test "x$as_lineno_1" != "x$as_lineno_2" &&
429 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
431 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
432 # uniformly replaced by the line number. The first 'sed' inserts a
433 # line-number line after each line using $LINENO; the second 'sed'
434 # does the real work. The second script uses 'N' to pair each
435 # line-number line with the line containing $LINENO, and appends
436 # trailing '-' during substitution so that $LINENO is not a special
437 # case at line end.
438 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
439 # scripts with optimization help from Paolo Bonzini. Blame Lee
440 # E. McMahon (1931-1989) for sed's syntax. :-)
441 sed -n '
443 /[$]LINENO/=
444 ' <$as_myself |
445 sed '
446 s/[$]LINENO.*/&-/
447 t lineno
449 :lineno
451 :loop
452 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 t loop
454 s/-\n.*//
455 ' >$as_me.lineno &&
456 chmod +x "$as_me.lineno" ||
457 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
458 { (exit 1); exit 1; }; }
460 # Don't try to exec as it changes $[0], causing all sort of problems
461 # (the dirname of $[0] is not the place where we might find the
462 # original and so on. Autoconf is especially sensitive to this).
463 . "./$as_me.lineno"
464 # Exit status is that of the last command.
465 exit
469 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470 as_dirname=dirname
471 else
472 as_dirname=false
475 ECHO_C= ECHO_N= ECHO_T=
476 case `echo -n x` in
477 -n*)
478 case `echo 'x\c'` in
479 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
480 *) ECHO_C='\c';;
481 esac;;
483 ECHO_N='-n';;
484 esac
486 if expr a : '\(a\)' >/dev/null 2>&1 &&
487 test "X`expr 00001 : '.*\(...\)'`" = X001; then
488 as_expr=expr
489 else
490 as_expr=false
493 rm -f conf$$ conf$$.exe conf$$.file
494 if test -d conf$$.dir; then
495 rm -f conf$$.dir/conf$$.file
496 else
497 rm -f conf$$.dir
498 mkdir conf$$.dir
500 echo >conf$$.file
501 if ln -s conf$$.file conf$$ 2>/dev/null; then
502 as_ln_s='ln -s'
503 # ... but there are two gotchas:
504 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
505 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
506 # In both cases, we have to default to `cp -p'.
507 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508 as_ln_s='cp -p'
509 elif ln conf$$.file conf$$ 2>/dev/null; then
510 as_ln_s=ln
511 else
512 as_ln_s='cp -p'
514 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
515 rmdir conf$$.dir 2>/dev/null
517 if mkdir -p . 2>/dev/null; then
518 as_mkdir_p=:
519 else
520 test -d ./-p && rmdir ./-p
521 as_mkdir_p=false
524 if test -x / >/dev/null 2>&1; then
525 as_test_x='test -x'
526 else
527 if ls -dL / >/dev/null 2>&1; then
528 as_ls_L_option=L
529 else
530 as_ls_L_option=
532 as_test_x='
533 eval sh -c '\''
534 if test -d "$1"; then
535 test -d "$1/.";
536 else
537 case $1 in
538 -*)set "./$1";;
539 esac;
540 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
541 ???[sx]*):;;*)false;;esac;fi
542 '\'' sh
545 as_executable_p=$as_test_x
547 # Sed expression to map a string onto a valid CPP name.
548 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
550 # Sed expression to map a string onto a valid variable name.
551 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555 exec 7<&0 </dev/null 6>&1
557 # Name of the host.
558 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
559 # so uname gets run too.
560 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
563 # Initializations.
565 ac_default_prefix=/usr/local
566 ac_clean_files=
567 ac_config_libobj_dir=.
568 LIBOBJS=
569 cross_compiling=no
570 subdirs=
571 MFLAGS=
572 MAKEFLAGS=
573 SHELL=${CONFIG_SHELL-/bin/sh}
575 # Identity of this package.
576 PACKAGE_NAME='python'
577 PACKAGE_TARNAME='python'
578 PACKAGE_VERSION='2.7'
579 PACKAGE_STRING='python 2.7'
580 PACKAGE_BUGREPORT='http://bugs.python.org/'
582 ac_unique_file="Include/object.h"
583 # Factoring default headers for most tests.
584 ac_includes_default="\
585 #include <stdio.h>
586 #ifdef HAVE_SYS_TYPES_H
587 # include <sys/types.h>
588 #endif
589 #ifdef HAVE_SYS_STAT_H
590 # include <sys/stat.h>
591 #endif
592 #ifdef STDC_HEADERS
593 # include <stdlib.h>
594 # include <stddef.h>
595 #else
596 # ifdef HAVE_STDLIB_H
597 # include <stdlib.h>
598 # endif
599 #endif
600 #ifdef HAVE_STRING_H
601 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
602 # include <memory.h>
603 # endif
604 # include <string.h>
605 #endif
606 #ifdef HAVE_STRINGS_H
607 # include <strings.h>
608 #endif
609 #ifdef HAVE_INTTYPES_H
610 # include <inttypes.h>
611 #endif
612 #ifdef HAVE_STDINT_H
613 # include <stdint.h>
614 #endif
615 #ifdef HAVE_UNISTD_H
616 # include <unistd.h>
617 #endif"
619 ac_subst_vars='SHELL
620 PATH_SEPARATOR
621 PACKAGE_NAME
622 PACKAGE_TARNAME
623 PACKAGE_VERSION
624 PACKAGE_STRING
625 PACKAGE_BUGREPORT
626 exec_prefix
627 prefix
628 program_transform_name
629 bindir
630 sbindir
631 libexecdir
632 datarootdir
633 datadir
634 sysconfdir
635 sharedstatedir
636 localstatedir
637 includedir
638 oldincludedir
639 docdir
640 infodir
641 htmldir
642 dvidir
643 pdfdir
644 psdir
645 libdir
646 localedir
647 mandir
648 DEFS
649 ECHO_C
650 ECHO_N
651 ECHO_T
652 LIBS
653 build_alias
654 host_alias
655 target_alias
656 VERSION
657 SOVERSION
658 CONFIG_ARGS
659 UNIVERSALSDK
660 ARCH_RUN_32BIT
661 PYTHONFRAMEWORK
662 PYTHONFRAMEWORKIDENTIFIER
663 PYTHONFRAMEWORKDIR
664 PYTHONFRAMEWORKPREFIX
665 PYTHONFRAMEWORKINSTALLDIR
666 FRAMEWORKINSTALLFIRST
667 FRAMEWORKINSTALLLAST
668 FRAMEWORKALTINSTALLFIRST
669 FRAMEWORKALTINSTALLLAST
670 FRAMEWORKUNIXTOOLSPREFIX
671 MACHDEP
672 SGI_ABI
673 EXTRAPLATDIR
674 EXTRAMACHDEPPATH
675 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
676 EXPORT_MACOSX_DEPLOYMENT_TARGET
678 CFLAGS
679 LDFLAGS
680 CPPFLAGS
681 ac_ct_CC
682 EXEEXT
683 OBJEXT
685 MAINCC
687 GREP
688 EGREP
689 BUILDEXEEXT
690 LIBRARY
691 LDLIBRARY
692 DLLLIBRARY
693 BLDLIBRARY
694 LDLIBRARYDIR
695 INSTSONAME
696 RUNSHARED
697 LINKCC
698 GNULD
699 RANLIB
701 ARFLAGS
702 SVNVERSION
703 INSTALL_PROGRAM
704 INSTALL_SCRIPT
705 INSTALL_DATA
708 BASECFLAGS
709 UNIVERSAL_ARCH_FLAGS
710 OTHER_LIBTOOL_OPT
711 LIBTOOL_CRUFT
713 LDSHARED
714 BLDSHARED
715 CCSHARED
716 LINKFORSHARED
717 CFLAGSFORSHARED
718 SHLIBS
719 USE_SIGNAL_MODULE
720 SIGNAL_OBJS
721 USE_THREAD_MODULE
722 LDLAST
723 THREADOBJ
724 DLINCLDIR
725 DYNLOADFILE
726 MACHDEP_OBJS
727 TRUE
728 LIBOBJS
729 HAVE_GETHOSTBYNAME_R_6_ARG
730 HAVE_GETHOSTBYNAME_R_5_ARG
731 HAVE_GETHOSTBYNAME_R_3_ARG
732 HAVE_GETHOSTBYNAME_R
733 HAVE_GETHOSTBYNAME
734 LIBM
735 LIBC
736 UNICODE_OBJS
737 THREADHEADERS
738 SRCDIRS
739 LTLIBOBJS'
740 ac_subst_files=''
741 ac_precious_vars='build_alias
742 host_alias
743 target_alias
745 CFLAGS
746 LDFLAGS
747 LIBS
748 CPPFLAGS
749 CPP'
752 # Initialize some variables set by options.
753 ac_init_help=
754 ac_init_version=false
755 # The variables have the same names as the options, with
756 # dashes changed to underlines.
757 cache_file=/dev/null
758 exec_prefix=NONE
759 no_create=
760 no_recursion=
761 prefix=NONE
762 program_prefix=NONE
763 program_suffix=NONE
764 program_transform_name=s,x,x,
765 silent=
766 site=
767 srcdir=
768 verbose=
769 x_includes=NONE
770 x_libraries=NONE
772 # Installation directory options.
773 # These are left unexpanded so users can "make install exec_prefix=/foo"
774 # and all the variables that are supposed to be based on exec_prefix
775 # by default will actually change.
776 # Use braces instead of parens because sh, perl, etc. also accept them.
777 # (The list follows the same order as the GNU Coding Standards.)
778 bindir='${exec_prefix}/bin'
779 sbindir='${exec_prefix}/sbin'
780 libexecdir='${exec_prefix}/libexec'
781 datarootdir='${prefix}/share'
782 datadir='${datarootdir}'
783 sysconfdir='${prefix}/etc'
784 sharedstatedir='${prefix}/com'
785 localstatedir='${prefix}/var'
786 includedir='${prefix}/include'
787 oldincludedir='/usr/include'
788 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
789 infodir='${datarootdir}/info'
790 htmldir='${docdir}'
791 dvidir='${docdir}'
792 pdfdir='${docdir}'
793 psdir='${docdir}'
794 libdir='${exec_prefix}/lib'
795 localedir='${datarootdir}/locale'
796 mandir='${datarootdir}/man'
798 ac_prev=
799 ac_dashdash=
800 for ac_option
802 # If the previous option needs an argument, assign it.
803 if test -n "$ac_prev"; then
804 eval $ac_prev=\$ac_option
805 ac_prev=
806 continue
809 case $ac_option in
810 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
811 *) ac_optarg=yes ;;
812 esac
814 # Accept the important Cygnus configure options, so we can diagnose typos.
816 case $ac_dashdash$ac_option in
818 ac_dashdash=yes ;;
820 -bindir | --bindir | --bindi | --bind | --bin | --bi)
821 ac_prev=bindir ;;
822 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
823 bindir=$ac_optarg ;;
825 -build | --build | --buil | --bui | --bu)
826 ac_prev=build_alias ;;
827 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
828 build_alias=$ac_optarg ;;
830 -cache-file | --cache-file | --cache-fil | --cache-fi \
831 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
832 ac_prev=cache_file ;;
833 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
834 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
835 cache_file=$ac_optarg ;;
837 --config-cache | -C)
838 cache_file=config.cache ;;
840 -datadir | --datadir | --datadi | --datad)
841 ac_prev=datadir ;;
842 -datadir=* | --datadir=* | --datadi=* | --datad=*)
843 datadir=$ac_optarg ;;
845 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
846 | --dataroo | --dataro | --datar)
847 ac_prev=datarootdir ;;
848 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
849 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
850 datarootdir=$ac_optarg ;;
852 -disable-* | --disable-*)
853 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
854 # Reject names that are not valid shell variable names.
855 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
856 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
857 { (exit 1); exit 1; }; }
858 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
859 eval enable_$ac_feature=no ;;
861 -docdir | --docdir | --docdi | --doc | --do)
862 ac_prev=docdir ;;
863 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
864 docdir=$ac_optarg ;;
866 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
867 ac_prev=dvidir ;;
868 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
869 dvidir=$ac_optarg ;;
871 -enable-* | --enable-*)
872 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
873 # Reject names that are not valid shell variable names.
874 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
875 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
876 { (exit 1); exit 1; }; }
877 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
878 eval enable_$ac_feature=\$ac_optarg ;;
880 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
881 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
882 | --exec | --exe | --ex)
883 ac_prev=exec_prefix ;;
884 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
885 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
886 | --exec=* | --exe=* | --ex=*)
887 exec_prefix=$ac_optarg ;;
889 -gas | --gas | --ga | --g)
890 # Obsolete; use --with-gas.
891 with_gas=yes ;;
893 -help | --help | --hel | --he | -h)
894 ac_init_help=long ;;
895 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
896 ac_init_help=recursive ;;
897 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
898 ac_init_help=short ;;
900 -host | --host | --hos | --ho)
901 ac_prev=host_alias ;;
902 -host=* | --host=* | --hos=* | --ho=*)
903 host_alias=$ac_optarg ;;
905 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
906 ac_prev=htmldir ;;
907 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
908 | --ht=*)
909 htmldir=$ac_optarg ;;
911 -includedir | --includedir | --includedi | --included | --include \
912 | --includ | --inclu | --incl | --inc)
913 ac_prev=includedir ;;
914 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
915 | --includ=* | --inclu=* | --incl=* | --inc=*)
916 includedir=$ac_optarg ;;
918 -infodir | --infodir | --infodi | --infod | --info | --inf)
919 ac_prev=infodir ;;
920 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
921 infodir=$ac_optarg ;;
923 -libdir | --libdir | --libdi | --libd)
924 ac_prev=libdir ;;
925 -libdir=* | --libdir=* | --libdi=* | --libd=*)
926 libdir=$ac_optarg ;;
928 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
929 | --libexe | --libex | --libe)
930 ac_prev=libexecdir ;;
931 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
932 | --libexe=* | --libex=* | --libe=*)
933 libexecdir=$ac_optarg ;;
935 -localedir | --localedir | --localedi | --localed | --locale)
936 ac_prev=localedir ;;
937 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
938 localedir=$ac_optarg ;;
940 -localstatedir | --localstatedir | --localstatedi | --localstated \
941 | --localstate | --localstat | --localsta | --localst | --locals)
942 ac_prev=localstatedir ;;
943 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
944 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
945 localstatedir=$ac_optarg ;;
947 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
948 ac_prev=mandir ;;
949 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
950 mandir=$ac_optarg ;;
952 -nfp | --nfp | --nf)
953 # Obsolete; use --without-fp.
954 with_fp=no ;;
956 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
957 | --no-cr | --no-c | -n)
958 no_create=yes ;;
960 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
961 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
962 no_recursion=yes ;;
964 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
965 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
966 | --oldin | --oldi | --old | --ol | --o)
967 ac_prev=oldincludedir ;;
968 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
969 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
970 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
971 oldincludedir=$ac_optarg ;;
973 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
974 ac_prev=prefix ;;
975 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
976 prefix=$ac_optarg ;;
978 -program-prefix | --program-prefix | --program-prefi | --program-pref \
979 | --program-pre | --program-pr | --program-p)
980 ac_prev=program_prefix ;;
981 -program-prefix=* | --program-prefix=* | --program-prefi=* \
982 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
983 program_prefix=$ac_optarg ;;
985 -program-suffix | --program-suffix | --program-suffi | --program-suff \
986 | --program-suf | --program-su | --program-s)
987 ac_prev=program_suffix ;;
988 -program-suffix=* | --program-suffix=* | --program-suffi=* \
989 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
990 program_suffix=$ac_optarg ;;
992 -program-transform-name | --program-transform-name \
993 | --program-transform-nam | --program-transform-na \
994 | --program-transform-n | --program-transform- \
995 | --program-transform | --program-transfor \
996 | --program-transfo | --program-transf \
997 | --program-trans | --program-tran \
998 | --progr-tra | --program-tr | --program-t)
999 ac_prev=program_transform_name ;;
1000 -program-transform-name=* | --program-transform-name=* \
1001 | --program-transform-nam=* | --program-transform-na=* \
1002 | --program-transform-n=* | --program-transform-=* \
1003 | --program-transform=* | --program-transfor=* \
1004 | --program-transfo=* | --program-transf=* \
1005 | --program-trans=* | --program-tran=* \
1006 | --progr-tra=* | --program-tr=* | --program-t=*)
1007 program_transform_name=$ac_optarg ;;
1009 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1010 ac_prev=pdfdir ;;
1011 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1012 pdfdir=$ac_optarg ;;
1014 -psdir | --psdir | --psdi | --psd | --ps)
1015 ac_prev=psdir ;;
1016 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1017 psdir=$ac_optarg ;;
1019 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1020 | -silent | --silent | --silen | --sile | --sil)
1021 silent=yes ;;
1023 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1024 ac_prev=sbindir ;;
1025 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1026 | --sbi=* | --sb=*)
1027 sbindir=$ac_optarg ;;
1029 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1030 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1031 | --sharedst | --shareds | --shared | --share | --shar \
1032 | --sha | --sh)
1033 ac_prev=sharedstatedir ;;
1034 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1035 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1036 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1037 | --sha=* | --sh=*)
1038 sharedstatedir=$ac_optarg ;;
1040 -site | --site | --sit)
1041 ac_prev=site ;;
1042 -site=* | --site=* | --sit=*)
1043 site=$ac_optarg ;;
1045 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1046 ac_prev=srcdir ;;
1047 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1048 srcdir=$ac_optarg ;;
1050 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1051 | --syscon | --sysco | --sysc | --sys | --sy)
1052 ac_prev=sysconfdir ;;
1053 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1054 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1055 sysconfdir=$ac_optarg ;;
1057 -target | --target | --targe | --targ | --tar | --ta | --t)
1058 ac_prev=target_alias ;;
1059 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1060 target_alias=$ac_optarg ;;
1062 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1063 verbose=yes ;;
1065 -version | --version | --versio | --versi | --vers | -V)
1066 ac_init_version=: ;;
1068 -with-* | --with-*)
1069 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1070 # Reject names that are not valid shell variable names.
1071 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1072 { echo "$as_me: error: invalid package name: $ac_package" >&2
1073 { (exit 1); exit 1; }; }
1074 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1075 eval with_$ac_package=\$ac_optarg ;;
1077 -without-* | --without-*)
1078 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1079 # Reject names that are not valid shell variable names.
1080 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1081 { echo "$as_me: error: invalid package name: $ac_package" >&2
1082 { (exit 1); exit 1; }; }
1083 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1084 eval with_$ac_package=no ;;
1086 --x)
1087 # Obsolete; use --with-x.
1088 with_x=yes ;;
1090 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1091 | --x-incl | --x-inc | --x-in | --x-i)
1092 ac_prev=x_includes ;;
1093 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1094 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1095 x_includes=$ac_optarg ;;
1097 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1098 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1099 ac_prev=x_libraries ;;
1100 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1101 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1102 x_libraries=$ac_optarg ;;
1104 -*) { echo "$as_me: error: unrecognized option: $ac_option
1105 Try \`$0 --help' for more information." >&2
1106 { (exit 1); exit 1; }; }
1109 *=*)
1110 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1111 # Reject names that are not valid shell variable names.
1112 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1113 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1114 { (exit 1); exit 1; }; }
1115 eval $ac_envvar=\$ac_optarg
1116 export $ac_envvar ;;
1119 # FIXME: should be removed in autoconf 3.0.
1120 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1121 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1122 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1123 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1126 esac
1127 done
1129 if test -n "$ac_prev"; then
1130 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1131 { echo "$as_me: error: missing argument to $ac_option" >&2
1132 { (exit 1); exit 1; }; }
1135 # Be sure to have absolute directory names.
1136 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1137 datadir sysconfdir sharedstatedir localstatedir includedir \
1138 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1139 libdir localedir mandir
1141 eval ac_val=\$$ac_var
1142 case $ac_val in
1143 [\\/$]* | ?:[\\/]* ) continue;;
1144 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1145 esac
1146 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1147 { (exit 1); exit 1; }; }
1148 done
1150 # There might be people who depend on the old broken behavior: `$host'
1151 # used to hold the argument of --host etc.
1152 # FIXME: To remove some day.
1153 build=$build_alias
1154 host=$host_alias
1155 target=$target_alias
1157 # FIXME: To remove some day.
1158 if test "x$host_alias" != x; then
1159 if test "x$build_alias" = x; then
1160 cross_compiling=maybe
1161 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1162 If a cross compiler is detected then cross compile mode will be used." >&2
1163 elif test "x$build_alias" != "x$host_alias"; then
1164 cross_compiling=yes
1168 ac_tool_prefix=
1169 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1171 test "$silent" = yes && exec 6>/dev/null
1174 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1175 ac_ls_di=`ls -di .` &&
1176 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1177 { echo "$as_me: error: Working directory cannot be determined" >&2
1178 { (exit 1); exit 1; }; }
1179 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1180 { echo "$as_me: error: pwd does not report name of working directory" >&2
1181 { (exit 1); exit 1; }; }
1184 # Find the source files, if location was not specified.
1185 if test -z "$srcdir"; then
1186 ac_srcdir_defaulted=yes
1187 # Try the directory containing this script, then the parent directory.
1188 ac_confdir=`$as_dirname -- "$0" ||
1189 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1190 X"$0" : 'X\(//\)[^/]' \| \
1191 X"$0" : 'X\(//\)$' \| \
1192 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1193 echo X"$0" |
1194 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1195 s//\1/
1198 /^X\(\/\/\)[^/].*/{
1199 s//\1/
1202 /^X\(\/\/\)$/{
1203 s//\1/
1206 /^X\(\/\).*/{
1207 s//\1/
1210 s/.*/./; q'`
1211 srcdir=$ac_confdir
1212 if test ! -r "$srcdir/$ac_unique_file"; then
1213 srcdir=..
1215 else
1216 ac_srcdir_defaulted=no
1218 if test ! -r "$srcdir/$ac_unique_file"; then
1219 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1220 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1221 { (exit 1); exit 1; }; }
1223 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1224 ac_abs_confdir=`(
1225 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1226 { (exit 1); exit 1; }; }
1227 pwd)`
1228 # When building in place, set srcdir=.
1229 if test "$ac_abs_confdir" = "$ac_pwd"; then
1230 srcdir=.
1232 # Remove unnecessary trailing slashes from srcdir.
1233 # Double slashes in file names in object file debugging info
1234 # mess up M-x gdb in Emacs.
1235 case $srcdir in
1236 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1237 esac
1238 for ac_var in $ac_precious_vars; do
1239 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1240 eval ac_env_${ac_var}_value=\$${ac_var}
1241 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1242 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1243 done
1246 # Report the --help message.
1248 if test "$ac_init_help" = "long"; then
1249 # Omit some internal or obsolete options to make the list less imposing.
1250 # This message is too long to be a string in the A/UX 3.1 sh.
1251 cat <<_ACEOF
1252 \`configure' configures python 2.7 to adapt to many kinds of systems.
1254 Usage: $0 [OPTION]... [VAR=VALUE]...
1256 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1257 VAR=VALUE. See below for descriptions of some of the useful variables.
1259 Defaults for the options are specified in brackets.
1261 Configuration:
1262 -h, --help display this help and exit
1263 --help=short display options specific to this package
1264 --help=recursive display the short help of all the included packages
1265 -V, --version display version information and exit
1266 -q, --quiet, --silent do not print \`checking...' messages
1267 --cache-file=FILE cache test results in FILE [disabled]
1268 -C, --config-cache alias for \`--cache-file=config.cache'
1269 -n, --no-create do not create output files
1270 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1272 Installation directories:
1273 --prefix=PREFIX install architecture-independent files in PREFIX
1274 [$ac_default_prefix]
1275 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1276 [PREFIX]
1278 By default, \`make install' will install all the files in
1279 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1280 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1281 for instance \`--prefix=\$HOME'.
1283 For better control, use the options below.
1285 Fine tuning of the installation directories:
1286 --bindir=DIR user executables [EPREFIX/bin]
1287 --sbindir=DIR system admin executables [EPREFIX/sbin]
1288 --libexecdir=DIR program executables [EPREFIX/libexec]
1289 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1290 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1291 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1292 --libdir=DIR object code libraries [EPREFIX/lib]
1293 --includedir=DIR C header files [PREFIX/include]
1294 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1295 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1296 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1297 --infodir=DIR info documentation [DATAROOTDIR/info]
1298 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1299 --mandir=DIR man documentation [DATAROOTDIR/man]
1300 --docdir=DIR documentation root [DATAROOTDIR/doc/python]
1301 --htmldir=DIR html documentation [DOCDIR]
1302 --dvidir=DIR dvi documentation [DOCDIR]
1303 --pdfdir=DIR pdf documentation [DOCDIR]
1304 --psdir=DIR ps documentation [DOCDIR]
1305 _ACEOF
1307 cat <<\_ACEOF
1308 _ACEOF
1311 if test -n "$ac_init_help"; then
1312 case $ac_init_help in
1313 short | recursive ) echo "Configuration of python 2.7:";;
1314 esac
1315 cat <<\_ACEOF
1317 Optional Features:
1318 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1319 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1320 --enable-universalsdk[=SDKDIR]
1321 Build against Mac OS X 10.4u SDK (ppc/i386)
1322 --enable-framework[=INSTALLDIR]
1323 Build (MacOSX|Darwin) framework
1324 --enable-shared disable/enable building shared python library
1325 --enable-profiling enable C-level code profiling
1326 --enable-toolbox-glue disable/enable MacOSX glue code for extensions
1327 --enable-ipv6 Enable ipv6 (with ipv4) support
1328 --disable-ipv6 Disable ipv6 support
1329 --enable-big-digits[=BITS]
1330 use big digits for Python longs [BITS=30]
1331 --enable-unicode[=ucs[24]]
1332 Enable Unicode strings (default is yes)
1334 Optional Packages:
1335 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1336 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1337 --with-universal-archs=ARCH
1338 select architectures for universal build ("32-bit",
1339 "64-bit", "3-way", "intel" or "all")
1340 --with-framework-name=FRAMEWORK
1341 specify an alternate name of the framework built
1342 with --enable-framework
1343 --without-gcc never use gcc
1344 --with-cxx-main=<compiler>
1345 compile main() and link python executable with C++
1346 compiler
1347 --with-suffix=.exe set executable suffix
1348 --with-pydebug build with Py_DEBUG defined
1349 --with-libs='lib1 ...' link against additional libs
1350 --with-system-ffi build _ctypes module using an installed ffi library
1351 --with-dbmliborder=db1:db2:...
1352 order to check db backends for dbm. Valid value is a
1353 colon separated string with the backend names
1354 `ndbm', `gdbm' and `bdb'.
1355 --with-signal-module disable/enable signal module
1356 --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries
1357 --with(out)-threads[=DIRECTORY]
1358 disable/enable thread support
1359 --with(out)-thread[=DIRECTORY]
1360 deprecated; use --with(out)-threads
1361 --with-pth use GNU pth threading libraries
1362 --with(out)-doc-strings disable/enable documentation strings
1363 --with(out)-tsc enable/disable timestamp counter profile
1364 --with(out)-pymalloc disable/enable specialized mallocs
1365 --with-wctype-functions use wctype.h functions
1366 --with-fpectl enable SIGFPE catching
1367 --with-libm=STRING math library
1368 --with-libc=STRING C library
1370 Some influential environment variables:
1371 CC C compiler command
1372 CFLAGS C compiler flags
1373 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1374 nonstandard directory <lib dir>
1375 LIBS libraries to pass to the linker, e.g. -l<library>
1376 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1377 you have headers in a nonstandard directory <include dir>
1378 CPP C preprocessor
1380 Use these variables to override the choices made by `configure' or to help
1381 it to find libraries and programs with nonstandard names/locations.
1383 Report bugs to <http://bugs.python.org/>.
1384 _ACEOF
1385 ac_status=$?
1388 if test "$ac_init_help" = "recursive"; then
1389 # If there are subdirs, report their specific --help.
1390 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1391 test -d "$ac_dir" || continue
1392 ac_builddir=.
1394 case "$ac_dir" in
1395 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1397 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1398 # A ".." for each directory in $ac_dir_suffix.
1399 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1400 case $ac_top_builddir_sub in
1401 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1402 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1403 esac ;;
1404 esac
1405 ac_abs_top_builddir=$ac_pwd
1406 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1407 # for backward compatibility:
1408 ac_top_builddir=$ac_top_build_prefix
1410 case $srcdir in
1411 .) # We are building in place.
1412 ac_srcdir=.
1413 ac_top_srcdir=$ac_top_builddir_sub
1414 ac_abs_top_srcdir=$ac_pwd ;;
1415 [\\/]* | ?:[\\/]* ) # Absolute name.
1416 ac_srcdir=$srcdir$ac_dir_suffix;
1417 ac_top_srcdir=$srcdir
1418 ac_abs_top_srcdir=$srcdir ;;
1419 *) # Relative name.
1420 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1421 ac_top_srcdir=$ac_top_build_prefix$srcdir
1422 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1423 esac
1424 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1426 cd "$ac_dir" || { ac_status=$?; continue; }
1427 # Check for guested configure.
1428 if test -f "$ac_srcdir/configure.gnu"; then
1429 echo &&
1430 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1431 elif test -f "$ac_srcdir/configure"; then
1432 echo &&
1433 $SHELL "$ac_srcdir/configure" --help=recursive
1434 else
1435 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1436 fi || ac_status=$?
1437 cd "$ac_pwd" || { ac_status=$?; break; }
1438 done
1441 test -n "$ac_init_help" && exit $ac_status
1442 if $ac_init_version; then
1443 cat <<\_ACEOF
1444 python configure 2.7
1445 generated by GNU Autoconf 2.61
1447 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1448 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1449 This configure script is free software; the Free Software Foundation
1450 gives unlimited permission to copy, distribute and modify it.
1451 _ACEOF
1452 exit
1454 cat >config.log <<_ACEOF
1455 This file contains any messages produced by compilers while
1456 running configure, to aid debugging if configure makes a mistake.
1458 It was created by python $as_me 2.7, which was
1459 generated by GNU Autoconf 2.61. Invocation command line was
1461 $ $0 $@
1463 _ACEOF
1464 exec 5>>config.log
1466 cat <<_ASUNAME
1467 ## --------- ##
1468 ## Platform. ##
1469 ## --------- ##
1471 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1472 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1473 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1474 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1475 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1477 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1478 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1480 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1481 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1482 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1483 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1484 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1485 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1486 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1488 _ASUNAME
1490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1491 for as_dir in $PATH
1493 IFS=$as_save_IFS
1494 test -z "$as_dir" && as_dir=.
1495 echo "PATH: $as_dir"
1496 done
1497 IFS=$as_save_IFS
1499 } >&5
1501 cat >&5 <<_ACEOF
1504 ## ----------- ##
1505 ## Core tests. ##
1506 ## ----------- ##
1508 _ACEOF
1511 # Keep a trace of the command line.
1512 # Strip out --no-create and --no-recursion so they do not pile up.
1513 # Strip out --silent because we don't want to record it for future runs.
1514 # Also quote any args containing shell meta-characters.
1515 # Make two passes to allow for proper duplicate-argument suppression.
1516 ac_configure_args=
1517 ac_configure_args0=
1518 ac_configure_args1=
1519 ac_must_keep_next=false
1520 for ac_pass in 1 2
1522 for ac_arg
1524 case $ac_arg in
1525 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1526 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1527 | -silent | --silent | --silen | --sile | --sil)
1528 continue ;;
1529 *\'*)
1530 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1531 esac
1532 case $ac_pass in
1533 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1535 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1536 if test $ac_must_keep_next = true; then
1537 ac_must_keep_next=false # Got value, back to normal.
1538 else
1539 case $ac_arg in
1540 *=* | --config-cache | -C | -disable-* | --disable-* \
1541 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1542 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1543 | -with-* | --with-* | -without-* | --without-* | --x)
1544 case "$ac_configure_args0 " in
1545 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1546 esac
1548 -* ) ac_must_keep_next=true ;;
1549 esac
1551 ac_configure_args="$ac_configure_args '$ac_arg'"
1553 esac
1554 done
1555 done
1556 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1557 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1559 # When interrupted or exit'd, cleanup temporary files, and complete
1560 # config.log. We remove comments because anyway the quotes in there
1561 # would cause problems or look ugly.
1562 # WARNING: Use '\'' to represent an apostrophe within the trap.
1563 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1564 trap 'exit_status=$?
1565 # Save into config.log some information that might help in debugging.
1567 echo
1569 cat <<\_ASBOX
1570 ## ---------------- ##
1571 ## Cache variables. ##
1572 ## ---------------- ##
1573 _ASBOX
1574 echo
1575 # The following way of writing the cache mishandles newlines in values,
1577 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1578 eval ac_val=\$$ac_var
1579 case $ac_val in #(
1580 *${as_nl}*)
1581 case $ac_var in #(
1582 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1583 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1584 esac
1585 case $ac_var in #(
1586 _ | IFS | as_nl) ;; #(
1587 *) $as_unset $ac_var ;;
1588 esac ;;
1589 esac
1590 done
1591 (set) 2>&1 |
1592 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1593 *${as_nl}ac_space=\ *)
1594 sed -n \
1595 "s/'\''/'\''\\\\'\'''\''/g;
1596 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1597 ;; #(
1599 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1601 esac |
1602 sort
1604 echo
1606 cat <<\_ASBOX
1607 ## ----------------- ##
1608 ## Output variables. ##
1609 ## ----------------- ##
1610 _ASBOX
1611 echo
1612 for ac_var in $ac_subst_vars
1614 eval ac_val=\$$ac_var
1615 case $ac_val in
1616 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1617 esac
1618 echo "$ac_var='\''$ac_val'\''"
1619 done | sort
1620 echo
1622 if test -n "$ac_subst_files"; then
1623 cat <<\_ASBOX
1624 ## ------------------- ##
1625 ## File substitutions. ##
1626 ## ------------------- ##
1627 _ASBOX
1628 echo
1629 for ac_var in $ac_subst_files
1631 eval ac_val=\$$ac_var
1632 case $ac_val in
1633 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1634 esac
1635 echo "$ac_var='\''$ac_val'\''"
1636 done | sort
1637 echo
1640 if test -s confdefs.h; then
1641 cat <<\_ASBOX
1642 ## ----------- ##
1643 ## confdefs.h. ##
1644 ## ----------- ##
1645 _ASBOX
1646 echo
1647 cat confdefs.h
1648 echo
1650 test "$ac_signal" != 0 &&
1651 echo "$as_me: caught signal $ac_signal"
1652 echo "$as_me: exit $exit_status"
1653 } >&5
1654 rm -f core *.core core.conftest.* &&
1655 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1656 exit $exit_status
1658 for ac_signal in 1 2 13 15; do
1659 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1660 done
1661 ac_signal=0
1663 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1664 rm -f -r conftest* confdefs.h
1666 # Predefined preprocessor variables.
1668 cat >>confdefs.h <<_ACEOF
1669 #define PACKAGE_NAME "$PACKAGE_NAME"
1670 _ACEOF
1673 cat >>confdefs.h <<_ACEOF
1674 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1675 _ACEOF
1678 cat >>confdefs.h <<_ACEOF
1679 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1680 _ACEOF
1683 cat >>confdefs.h <<_ACEOF
1684 #define PACKAGE_STRING "$PACKAGE_STRING"
1685 _ACEOF
1688 cat >>confdefs.h <<_ACEOF
1689 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1690 _ACEOF
1693 # Let the site file select an alternate cache file if it wants to.
1694 # Prefer explicitly selected file to automatically selected ones.
1695 if test -n "$CONFIG_SITE"; then
1696 set x "$CONFIG_SITE"
1697 elif test "x$prefix" != xNONE; then
1698 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1699 else
1700 set x "$ac_default_prefix/share/config.site" \
1701 "$ac_default_prefix/etc/config.site"
1703 shift
1704 for ac_site_file
1706 if test -r "$ac_site_file"; then
1707 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1708 echo "$as_me: loading site script $ac_site_file" >&6;}
1709 sed 's/^/| /' "$ac_site_file" >&5
1710 . "$ac_site_file"
1712 done
1714 if test -r "$cache_file"; then
1715 # Some versions of bash will fail to source /dev/null (special
1716 # files actually), so we avoid doing that.
1717 if test -f "$cache_file"; then
1718 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1719 echo "$as_me: loading cache $cache_file" >&6;}
1720 case $cache_file in
1721 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1722 *) . "./$cache_file";;
1723 esac
1725 else
1726 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1727 echo "$as_me: creating cache $cache_file" >&6;}
1728 >$cache_file
1731 # Check that the precious variables saved in the cache have kept the same
1732 # value.
1733 ac_cache_corrupted=false
1734 for ac_var in $ac_precious_vars; do
1735 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1736 eval ac_new_set=\$ac_env_${ac_var}_set
1737 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1738 eval ac_new_val=\$ac_env_${ac_var}_value
1739 case $ac_old_set,$ac_new_set in
1740 set,)
1741 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1742 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1743 ac_cache_corrupted=: ;;
1744 ,set)
1745 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1746 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1747 ac_cache_corrupted=: ;;
1748 ,);;
1750 if test "x$ac_old_val" != "x$ac_new_val"; then
1751 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1752 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1753 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1754 echo "$as_me: former value: $ac_old_val" >&2;}
1755 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1756 echo "$as_me: current value: $ac_new_val" >&2;}
1757 ac_cache_corrupted=:
1758 fi;;
1759 esac
1760 # Pass precious variables to config.status.
1761 if test "$ac_new_set" = set; then
1762 case $ac_new_val in
1763 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1764 *) ac_arg=$ac_var=$ac_new_val ;;
1765 esac
1766 case " $ac_configure_args " in
1767 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1768 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1769 esac
1771 done
1772 if $ac_cache_corrupted; then
1773 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1774 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1775 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1776 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1777 { (exit 1); exit 1; }; }
1804 ac_ext=c
1805 ac_cpp='$CPP $CPPFLAGS'
1806 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1807 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1808 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1812 ac_config_headers="$ac_config_headers pyconfig.h"
1816 if test "$prefix" != "/"; then
1817 prefix=`echo "$prefix" | sed -e 's/\/$//g'`
1825 # We don't use PACKAGE_ variables, and they cause conflicts
1826 # with other autoconf-based packages that include Python.h
1827 grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new
1828 rm confdefs.h
1829 mv confdefs.h.new confdefs.h
1832 VERSION=2.7
1835 SOVERSION=1.0
1837 # The later defininition of _XOPEN_SOURCE disables certain features
1838 # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
1840 cat >>confdefs.h <<\_ACEOF
1841 #define _GNU_SOURCE 1
1842 _ACEOF
1845 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1846 # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
1847 # them.
1849 cat >>confdefs.h <<\_ACEOF
1850 #define _NETBSD_SOURCE 1
1851 _ACEOF
1854 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1855 # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
1856 # them.
1858 cat >>confdefs.h <<\_ACEOF
1859 #define __BSD_VISIBLE 1
1860 _ACEOF
1863 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1864 # u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
1866 cat >>confdefs.h <<\_ACEOF
1867 #define _BSD_TYPES 1
1868 _ACEOF
1871 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1872 # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable
1873 # them.
1875 cat >>confdefs.h <<\_ACEOF
1876 #define _DARWIN_C_SOURCE 1
1877 _ACEOF
1881 define_xopen_source=yes
1883 # Arguments passed to configure.
1885 CONFIG_ARGS="$ac_configure_args"
1887 # Check whether --enable-universalsdk was given.
1888 if test "${enable_universalsdk+set}" = set; then
1889 enableval=$enable_universalsdk;
1890 case $enableval in
1891 yes)
1892 enableval=/Developer/SDKs/MacOSX10.4u.sdk
1894 esac
1895 case $enableval in
1897 UNIVERSALSDK=
1898 enable_universalsdk=
1901 UNIVERSALSDK=$enableval
1903 esac
1905 else
1907 UNIVERSALSDK=
1908 enable_universalsdk=
1916 UNIVERSAL_ARCHS="32-bit"
1917 { echo "$as_me:$LINENO: checking for --with-universal-archs" >&5
1918 echo $ECHO_N "checking for --with-universal-archs... $ECHO_C" >&6; }
1920 # Check whether --with-universal-archs was given.
1921 if test "${with_universal_archs+set}" = set; then
1922 withval=$with_universal_archs;
1923 { echo "$as_me:$LINENO: result: $withval" >&5
1924 echo "${ECHO_T}$withval" >&6; }
1925 UNIVERSAL_ARCHS="$withval"
1926 if test "${enable_universalsdk}" ; then
1928 else
1929 { { echo "$as_me:$LINENO: error: --with-universal-archs without --enable-universalsdk. See Mac/README" >&5
1930 echo "$as_me: error: --with-universal-archs without --enable-universalsdk. See Mac/README" >&2;}
1931 { (exit 1); exit 1; }; }
1934 else
1936 { echo "$as_me:$LINENO: result: 32-bit" >&5
1937 echo "${ECHO_T}32-bit" >&6; }
1945 # Check whether --with-framework-name was given.
1946 if test "${with_framework_name+set}" = set; then
1947 withval=$with_framework_name;
1948 if test "${enable_framework}"; then
1950 else
1951 { { echo "$as_me:$LINENO: error: --with-framework-name without --enable-framework. See Mac/README" >&5
1952 echo "$as_me: error: --with-framework-name without --enable-framework. See Mac/README" >&2;}
1953 { (exit 1); exit 1; }; }
1955 PYTHONFRAMEWORK=${withval}
1956 PYTHONFRAMEWORKDIR=${withval}.framework
1957 PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'`
1959 else
1961 PYTHONFRAMEWORK=Python
1962 PYTHONFRAMEWORKDIR=Python.framework
1963 PYTHONFRAMEWORKIDENTIFIER=org.python.python
1967 # Check whether --enable-framework was given.
1968 if test "${enable_framework+set}" = set; then
1969 enableval=$enable_framework;
1970 case $enableval in
1971 yes)
1972 enableval=/Library/Frameworks
1973 esac
1974 case $enableval in
1976 PYTHONFRAMEWORK=
1977 PYTHONFRAMEWORKDIR=no-framework
1978 PYTHONFRAMEWORKPREFIX=
1979 PYTHONFRAMEWORKINSTALLDIR=
1980 FRAMEWORKINSTALLFIRST=
1981 FRAMEWORKINSTALLLAST=
1982 FRAMEWORKALTINSTALLFIRST=
1983 FRAMEWORKALTINSTALLLAST=
1984 if test "x${prefix}" = "xNONE"; then
1985 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1986 else
1987 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1989 enable_framework=
1992 PYTHONFRAMEWORKPREFIX=$enableval
1993 PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
1994 FRAMEWORKINSTALLFIRST="frameworkinstallstructure"
1995 FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure bininstall maninstall"
1996 if test "$UNIVERSAL_ARCHS" = "all"
1997 then
1998 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkinstallunixtools4way"
1999 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkaltinstallunixtools4way"
2000 else
2001 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools"
2002 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools"
2005 if test "x${prefix}" = "xNONE" ; then
2006 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
2007 else
2008 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
2010 prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
2012 # Add files for Mac specific code to the list of output
2013 # files:
2014 ac_config_files="$ac_config_files Mac/Makefile"
2016 ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile"
2018 ac_config_files="$ac_config_files Mac/IDLE/Makefile"
2020 ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist"
2022 ac_config_files="$ac_config_files Mac/Resources/app/Info.plist"
2024 esac
2026 else
2028 PYTHONFRAMEWORK=
2029 PYTHONFRAMEWORKDIR=no-framework
2030 PYTHONFRAMEWORKPREFIX=
2031 PYTHONFRAMEWORKINSTALLDIR=
2032 FRAMEWORKINSTALLFIRST=
2033 FRAMEWORKINSTALLLAST=
2034 FRAMEWORKALTINSTALLFIRST=
2035 FRAMEWORKALTINSTALLLAST=
2036 if test "x${prefix}" = "xNONE" ; then
2037 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
2038 else
2039 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
2041 enable_framework=
2043 if test "$UNIVERSAL_ARCHS" = "all"
2044 then
2045 FRAMEWORKINSTALLLAST=update4wayuniversal
2046 FRAMEWORKALTINSTALLLAST=update4wayuniversal
2062 ##AC_ARG_WITH(dyld,
2063 ## AC_HELP_STRING(--with-dyld,
2064 ## Use (OpenStep|Rhapsody) dynamic linker))
2066 # Set name for machine-dependent library files
2068 { echo "$as_me:$LINENO: checking MACHDEP" >&5
2069 echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6; }
2070 if test -z "$MACHDEP"
2071 then
2072 ac_sys_system=`uname -s`
2073 if test "$ac_sys_system" = "AIX" \
2074 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
2075 ac_sys_release=`uname -v`
2076 else
2077 ac_sys_release=`uname -r`
2079 ac_md_system=`echo $ac_sys_system |
2080 tr -d '/ ' | tr '[A-Z]' '[a-z]'`
2081 ac_md_release=`echo $ac_sys_release |
2082 tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'`
2083 MACHDEP="$ac_md_system$ac_md_release"
2085 case $MACHDEP in
2086 cygwin*) MACHDEP="cygwin";;
2087 darwin*) MACHDEP="darwin";;
2088 atheos*) MACHDEP="atheos";;
2089 irix646) MACHDEP="irix6";;
2090 '') MACHDEP="unknown";;
2091 esac
2094 # Some systems cannot stand _XOPEN_SOURCE being defined at all; they
2095 # disable features if it is defined, without any means to access these
2096 # features as extensions. For these systems, we skip the definition of
2097 # _XOPEN_SOURCE. Before adding a system to the list to gain access to
2098 # some feature, make sure there is no alternative way to access this
2099 # feature. Also, when using wildcards, make sure you have verified the
2100 # need for not defining _XOPEN_SOURCE on all systems matching the
2101 # wildcard, and that the wildcard does not include future systems
2102 # (which may remove their limitations).
2103 case $ac_sys_system/$ac_sys_release in
2104 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
2105 # even though select is a POSIX function. Reported by J. Ribbens.
2106 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
2107 OpenBSD/2.* | OpenBSD/3.[0123456789] | OpenBSD/4.[0123])
2108 define_xopen_source=no
2109 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
2110 # also defined. This can be overridden by defining _BSD_SOURCE
2111 # As this has a different meaning on Linux, only define it on OpenBSD
2113 cat >>confdefs.h <<\_ACEOF
2114 #define _BSD_SOURCE 1
2115 _ACEOF
2118 # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of
2119 # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by
2120 # Marc Recht
2121 NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6[A-S])
2122 define_xopen_source=no;;
2123 # On Solaris 2.6, sys/wait.h is inconsistent in the usage
2124 # of union __?sigval. Reported by Stuart Bishop.
2125 SunOS/5.6)
2126 define_xopen_source=no;;
2127 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
2128 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
2129 # Reconfirmed for 7.1.4 by Martin v. Loewis.
2130 OpenUNIX/8.0.0| UnixWare/7.1.[0-4])
2131 define_xopen_source=no;;
2132 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
2133 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
2134 SCO_SV/3.2)
2135 define_xopen_source=no;;
2136 # On FreeBSD 4, the math functions C89 does not cover are never defined
2137 # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them.
2138 FreeBSD/4.*)
2139 define_xopen_source=no;;
2140 # On MacOS X 10.2, a bug in ncurses.h means that it craps out if
2141 # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which
2142 # identifies itself as Darwin/7.*
2143 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2144 # disables platform specific features beyond repair.
2145 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2146 # has no effect, don't bother defining them
2147 Darwin/[6789].*)
2148 define_xopen_source=no;;
2149 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
2150 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
2151 # or has another value. By not (re)defining it, the defaults come in place.
2152 AIX/4)
2153 define_xopen_source=no;;
2154 AIX/5)
2155 if test `uname -r` -eq 1; then
2156 define_xopen_source=no
2159 # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from
2160 # defining NI_NUMERICHOST.
2161 QNX/6.3.2)
2162 define_xopen_source=no
2165 esac
2167 if test $define_xopen_source = yes
2168 then
2169 # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be
2170 # defined precisely as g++ defines it
2171 # Furthermore, on Solaris 10, XPG6 requires the use of a C99
2172 # compiler
2173 case $ac_sys_system/$ac_sys_release in
2174 SunOS/5.8|SunOS/5.9|SunOS/5.10)
2176 cat >>confdefs.h <<\_ACEOF
2177 #define _XOPEN_SOURCE 500
2178 _ACEOF
2183 cat >>confdefs.h <<\_ACEOF
2184 #define _XOPEN_SOURCE 600
2185 _ACEOF
2188 esac
2190 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
2191 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
2192 # several APIs are not declared. Since this is also needed in some
2193 # cases for HP-UX, we define it globally.
2194 # except for Solaris 10, where it must not be defined,
2195 # as it implies XPG4.2
2196 case $ac_sys_system/$ac_sys_release in
2197 SunOS/5.10)
2201 cat >>confdefs.h <<\_ACEOF
2202 #define _XOPEN_SOURCE_EXTENDED 1
2203 _ACEOF
2206 esac
2209 cat >>confdefs.h <<\_ACEOF
2210 #define _POSIX_C_SOURCE 200112L
2211 _ACEOF
2217 # SGI compilers allow the specification of the both the ABI and the
2218 # ISA on the command line. Depending on the values of these switches,
2219 # different and often incompatable code will be generated.
2221 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
2222 # thus supply support for various ABI/ISA combinations. The MACHDEP
2223 # variable is also adjusted.
2226 if test ! -z "$SGI_ABI"
2227 then
2228 CC="cc $SGI_ABI"
2229 LDFLAGS="$SGI_ABI $LDFLAGS"
2230 MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'`
2232 { echo "$as_me:$LINENO: result: $MACHDEP" >&5
2233 echo "${ECHO_T}$MACHDEP" >&6; }
2235 # And add extra plat-mac for darwin
2238 { echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5
2239 echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6; }
2240 if test -z "$EXTRAPLATDIR"
2241 then
2242 case $MACHDEP in
2243 darwin)
2244 EXTRAPLATDIR="\$(PLATMACDIRS)"
2245 EXTRAMACHDEPPATH="\$(PLATMACPATH)"
2248 EXTRAPLATDIR=""
2249 EXTRAMACHDEPPATH=""
2251 esac
2253 { echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5
2254 echo "${ECHO_T}$EXTRAPLATDIR" >&6; }
2256 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
2257 # it may influence the way we can build extensions, so distutils
2258 # needs to check it
2261 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=
2262 EXPORT_MACOSX_DEPLOYMENT_TARGET='#'
2264 { echo "$as_me:$LINENO: checking machine type as reported by uname -m" >&5
2265 echo $ECHO_N "checking machine type as reported by uname -m... $ECHO_C" >&6; }
2266 ac_sys_machine=`uname -m`
2267 { echo "$as_me:$LINENO: result: $ac_sys_machine" >&5
2268 echo "${ECHO_T}$ac_sys_machine" >&6; }
2270 # checks for alternative programs
2272 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
2273 # for debug/optimization stuff. BASECFLAGS is for flags that are required
2274 # just to get things to compile and link. Users are free to override OPT
2275 # when running configure or make. The build should not break if they do.
2276 # BASECFLAGS should generally not be messed with, however.
2278 # XXX shouldn't some/most/all of this code be merged with the stuff later
2279 # on that fiddles with OPT and BASECFLAGS?
2280 { echo "$as_me:$LINENO: checking for --without-gcc" >&5
2281 echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6; }
2283 # Check whether --with-gcc was given.
2284 if test "${with_gcc+set}" = set; then
2285 withval=$with_gcc;
2286 case $withval in
2287 no) CC=${CC:-cc}
2288 without_gcc=yes;;
2289 yes) CC=gcc
2290 without_gcc=no;;
2291 *) CC=$withval
2292 without_gcc=$withval;;
2293 esac
2294 else
2296 case $ac_sys_system in
2297 AIX*) CC=cc_r
2298 without_gcc=;;
2299 BeOS*)
2300 case $BE_HOST_CPU in
2301 ppc)
2302 CC=mwcc
2303 without_gcc=yes
2304 BASECFLAGS="$BASECFLAGS -export pragma"
2305 OPT="$OPT -O"
2306 LDFLAGS="$LDFLAGS -nodup"
2308 x86)
2309 CC=gcc
2310 without_gcc=no
2311 OPT="$OPT -O"
2314 { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5
2315 echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;}
2316 { (exit 1); exit 1; }; }
2318 esac
2319 AR="\$(srcdir)/Modules/ar_beos"
2320 RANLIB=:
2322 *) without_gcc=no;;
2323 esac
2326 { echo "$as_me:$LINENO: result: $without_gcc" >&5
2327 echo "${ECHO_T}$without_gcc" >&6; }
2329 # If the user switches compilers, we can't believe the cache
2330 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
2331 then
2332 { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
2333 (it is also a good idea to do 'make clean' before compiling)" >&5
2334 echo "$as_me: error: cached CC is different -- throw away $cache_file
2335 (it is also a good idea to do 'make clean' before compiling)" >&2;}
2336 { (exit 1); exit 1; }; }
2339 ac_ext=c
2340 ac_cpp='$CPP $CPPFLAGS'
2341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2344 if test -n "$ac_tool_prefix"; then
2345 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2346 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2347 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2349 if test "${ac_cv_prog_CC+set}" = set; then
2350 echo $ECHO_N "(cached) $ECHO_C" >&6
2351 else
2352 if test -n "$CC"; then
2353 ac_cv_prog_CC="$CC" # Let the user override the test.
2354 else
2355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2356 for as_dir in $PATH
2358 IFS=$as_save_IFS
2359 test -z "$as_dir" && as_dir=.
2360 for ac_exec_ext in '' $ac_executable_extensions; do
2361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2362 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2364 break 2
2366 done
2367 done
2368 IFS=$as_save_IFS
2372 CC=$ac_cv_prog_CC
2373 if test -n "$CC"; then
2374 { echo "$as_me:$LINENO: result: $CC" >&5
2375 echo "${ECHO_T}$CC" >&6; }
2376 else
2377 { echo "$as_me:$LINENO: result: no" >&5
2378 echo "${ECHO_T}no" >&6; }
2383 if test -z "$ac_cv_prog_CC"; then
2384 ac_ct_CC=$CC
2385 # Extract the first word of "gcc", so it can be a program name with args.
2386 set dummy gcc; ac_word=$2
2387 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2389 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2390 echo $ECHO_N "(cached) $ECHO_C" >&6
2391 else
2392 if test -n "$ac_ct_CC"; then
2393 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2394 else
2395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2396 for as_dir in $PATH
2398 IFS=$as_save_IFS
2399 test -z "$as_dir" && as_dir=.
2400 for ac_exec_ext in '' $ac_executable_extensions; do
2401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2402 ac_cv_prog_ac_ct_CC="gcc"
2403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2404 break 2
2406 done
2407 done
2408 IFS=$as_save_IFS
2412 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2413 if test -n "$ac_ct_CC"; then
2414 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2415 echo "${ECHO_T}$ac_ct_CC" >&6; }
2416 else
2417 { echo "$as_me:$LINENO: result: no" >&5
2418 echo "${ECHO_T}no" >&6; }
2421 if test "x$ac_ct_CC" = x; then
2422 CC=""
2423 else
2424 case $cross_compiling:$ac_tool_warned in
2425 yes:)
2426 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2427 whose name does not start with the host triplet. If you think this
2428 configuration is useful to you, please write to autoconf@gnu.org." >&5
2429 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2430 whose name does not start with the host triplet. If you think this
2431 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2432 ac_tool_warned=yes ;;
2433 esac
2434 CC=$ac_ct_CC
2436 else
2437 CC="$ac_cv_prog_CC"
2440 if test -z "$CC"; then
2441 if test -n "$ac_tool_prefix"; then
2442 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2443 set dummy ${ac_tool_prefix}cc; ac_word=$2
2444 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2446 if test "${ac_cv_prog_CC+set}" = set; then
2447 echo $ECHO_N "(cached) $ECHO_C" >&6
2448 else
2449 if test -n "$CC"; then
2450 ac_cv_prog_CC="$CC" # Let the user override the test.
2451 else
2452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2453 for as_dir in $PATH
2455 IFS=$as_save_IFS
2456 test -z "$as_dir" && as_dir=.
2457 for ac_exec_ext in '' $ac_executable_extensions; do
2458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2459 ac_cv_prog_CC="${ac_tool_prefix}cc"
2460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2461 break 2
2463 done
2464 done
2465 IFS=$as_save_IFS
2469 CC=$ac_cv_prog_CC
2470 if test -n "$CC"; then
2471 { echo "$as_me:$LINENO: result: $CC" >&5
2472 echo "${ECHO_T}$CC" >&6; }
2473 else
2474 { echo "$as_me:$LINENO: result: no" >&5
2475 echo "${ECHO_T}no" >&6; }
2481 if test -z "$CC"; then
2482 # Extract the first word of "cc", so it can be a program name with args.
2483 set dummy cc; ac_word=$2
2484 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2486 if test "${ac_cv_prog_CC+set}" = set; then
2487 echo $ECHO_N "(cached) $ECHO_C" >&6
2488 else
2489 if test -n "$CC"; then
2490 ac_cv_prog_CC="$CC" # Let the user override the test.
2491 else
2492 ac_prog_rejected=no
2493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2494 for as_dir in $PATH
2496 IFS=$as_save_IFS
2497 test -z "$as_dir" && as_dir=.
2498 for ac_exec_ext in '' $ac_executable_extensions; do
2499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2500 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2501 ac_prog_rejected=yes
2502 continue
2504 ac_cv_prog_CC="cc"
2505 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2506 break 2
2508 done
2509 done
2510 IFS=$as_save_IFS
2512 if test $ac_prog_rejected = yes; then
2513 # We found a bogon in the path, so make sure we never use it.
2514 set dummy $ac_cv_prog_CC
2515 shift
2516 if test $# != 0; then
2517 # We chose a different compiler from the bogus one.
2518 # However, it has the same basename, so the bogon will be chosen
2519 # first if we set CC to just the basename; use the full file name.
2520 shift
2521 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2526 CC=$ac_cv_prog_CC
2527 if test -n "$CC"; then
2528 { echo "$as_me:$LINENO: result: $CC" >&5
2529 echo "${ECHO_T}$CC" >&6; }
2530 else
2531 { echo "$as_me:$LINENO: result: no" >&5
2532 echo "${ECHO_T}no" >&6; }
2537 if test -z "$CC"; then
2538 if test -n "$ac_tool_prefix"; then
2539 for ac_prog in cl.exe
2541 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2542 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2543 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2544 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2545 if test "${ac_cv_prog_CC+set}" = set; then
2546 echo $ECHO_N "(cached) $ECHO_C" >&6
2547 else
2548 if test -n "$CC"; then
2549 ac_cv_prog_CC="$CC" # Let the user override the test.
2550 else
2551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2552 for as_dir in $PATH
2554 IFS=$as_save_IFS
2555 test -z "$as_dir" && as_dir=.
2556 for ac_exec_ext in '' $ac_executable_extensions; do
2557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2558 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2560 break 2
2562 done
2563 done
2564 IFS=$as_save_IFS
2568 CC=$ac_cv_prog_CC
2569 if test -n "$CC"; then
2570 { echo "$as_me:$LINENO: result: $CC" >&5
2571 echo "${ECHO_T}$CC" >&6; }
2572 else
2573 { echo "$as_me:$LINENO: result: no" >&5
2574 echo "${ECHO_T}no" >&6; }
2578 test -n "$CC" && break
2579 done
2581 if test -z "$CC"; then
2582 ac_ct_CC=$CC
2583 for ac_prog in cl.exe
2585 # Extract the first word of "$ac_prog", so it can be a program name with args.
2586 set dummy $ac_prog; ac_word=$2
2587 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2589 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2590 echo $ECHO_N "(cached) $ECHO_C" >&6
2591 else
2592 if test -n "$ac_ct_CC"; then
2593 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2594 else
2595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2596 for as_dir in $PATH
2598 IFS=$as_save_IFS
2599 test -z "$as_dir" && as_dir=.
2600 for ac_exec_ext in '' $ac_executable_extensions; do
2601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2602 ac_cv_prog_ac_ct_CC="$ac_prog"
2603 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2604 break 2
2606 done
2607 done
2608 IFS=$as_save_IFS
2612 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2613 if test -n "$ac_ct_CC"; then
2614 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2615 echo "${ECHO_T}$ac_ct_CC" >&6; }
2616 else
2617 { echo "$as_me:$LINENO: result: no" >&5
2618 echo "${ECHO_T}no" >&6; }
2622 test -n "$ac_ct_CC" && break
2623 done
2625 if test "x$ac_ct_CC" = x; then
2626 CC=""
2627 else
2628 case $cross_compiling:$ac_tool_warned in
2629 yes:)
2630 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2631 whose name does not start with the host triplet. If you think this
2632 configuration is useful to you, please write to autoconf@gnu.org." >&5
2633 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2634 whose name does not start with the host triplet. If you think this
2635 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2636 ac_tool_warned=yes ;;
2637 esac
2638 CC=$ac_ct_CC
2645 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2646 See \`config.log' for more details." >&5
2647 echo "$as_me: error: no acceptable C compiler found in \$PATH
2648 See \`config.log' for more details." >&2;}
2649 { (exit 1); exit 1; }; }
2651 # Provide some information about the compiler.
2652 echo "$as_me:$LINENO: checking for C compiler version" >&5
2653 ac_compiler=`set X $ac_compile; echo $2`
2654 { (ac_try="$ac_compiler --version >&5"
2655 case "(($ac_try" in
2656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2657 *) ac_try_echo=$ac_try;;
2658 esac
2659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2660 (eval "$ac_compiler --version >&5") 2>&5
2661 ac_status=$?
2662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2663 (exit $ac_status); }
2664 { (ac_try="$ac_compiler -v >&5"
2665 case "(($ac_try" in
2666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2667 *) ac_try_echo=$ac_try;;
2668 esac
2669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2670 (eval "$ac_compiler -v >&5") 2>&5
2671 ac_status=$?
2672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673 (exit $ac_status); }
2674 { (ac_try="$ac_compiler -V >&5"
2675 case "(($ac_try" in
2676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2677 *) ac_try_echo=$ac_try;;
2678 esac
2679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2680 (eval "$ac_compiler -V >&5") 2>&5
2681 ac_status=$?
2682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2683 (exit $ac_status); }
2685 cat >conftest.$ac_ext <<_ACEOF
2686 /* confdefs.h. */
2687 _ACEOF
2688 cat confdefs.h >>conftest.$ac_ext
2689 cat >>conftest.$ac_ext <<_ACEOF
2690 /* end confdefs.h. */
2693 main ()
2697 return 0;
2699 _ACEOF
2700 ac_clean_files_save=$ac_clean_files
2701 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2702 # Try to create an executable without -o first, disregard a.out.
2703 # It will help us diagnose broken compilers, and finding out an intuition
2704 # of exeext.
2705 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2706 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2707 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2709 # List of possible output files, starting from the most likely.
2710 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2711 # only as a last resort. b.out is created by i960 compilers.
2712 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2714 # The IRIX 6 linker writes into existing files which may not be
2715 # executable, retaining their permissions. Remove them first so a
2716 # subsequent execution test works.
2717 ac_rmfiles=
2718 for ac_file in $ac_files
2720 case $ac_file in
2721 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2722 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2723 esac
2724 done
2725 rm -f $ac_rmfiles
2727 if { (ac_try="$ac_link_default"
2728 case "(($ac_try" in
2729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2730 *) ac_try_echo=$ac_try;;
2731 esac
2732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2733 (eval "$ac_link_default") 2>&5
2734 ac_status=$?
2735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2736 (exit $ac_status); }; then
2737 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2738 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2739 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2740 # so that the user can short-circuit this test for compilers unknown to
2741 # Autoconf.
2742 for ac_file in $ac_files ''
2744 test -f "$ac_file" || continue
2745 case $ac_file in
2746 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2748 [ab].out )
2749 # We found the default executable, but exeext='' is most
2750 # certainly right.
2751 break;;
2752 *.* )
2753 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2754 then :; else
2755 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2757 # We set ac_cv_exeext here because the later test for it is not
2758 # safe: cross compilers may not add the suffix if given an `-o'
2759 # argument, so we may need to know it at that point already.
2760 # Even if this section looks crufty: it has the advantage of
2761 # actually working.
2762 break;;
2764 break;;
2765 esac
2766 done
2767 test "$ac_cv_exeext" = no && ac_cv_exeext=
2769 else
2770 ac_file=''
2773 { echo "$as_me:$LINENO: result: $ac_file" >&5
2774 echo "${ECHO_T}$ac_file" >&6; }
2775 if test -z "$ac_file"; then
2776 echo "$as_me: failed program was:" >&5
2777 sed 's/^/| /' conftest.$ac_ext >&5
2779 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2780 See \`config.log' for more details." >&5
2781 echo "$as_me: error: C compiler cannot create executables
2782 See \`config.log' for more details." >&2;}
2783 { (exit 77); exit 77; }; }
2786 ac_exeext=$ac_cv_exeext
2788 # Check that the compiler produces executables we can run. If not, either
2789 # the compiler is broken, or we cross compile.
2790 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2791 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2792 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2793 # If not cross compiling, check that we can run a simple program.
2794 if test "$cross_compiling" != yes; then
2795 if { ac_try='./$ac_file'
2796 { (case "(($ac_try" in
2797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2798 *) ac_try_echo=$ac_try;;
2799 esac
2800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2801 (eval "$ac_try") 2>&5
2802 ac_status=$?
2803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804 (exit $ac_status); }; }; then
2805 cross_compiling=no
2806 else
2807 if test "$cross_compiling" = maybe; then
2808 cross_compiling=yes
2809 else
2810 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2811 If you meant to cross compile, use \`--host'.
2812 See \`config.log' for more details." >&5
2813 echo "$as_me: error: cannot run C compiled programs.
2814 If you meant to cross compile, use \`--host'.
2815 See \`config.log' for more details." >&2;}
2816 { (exit 1); exit 1; }; }
2820 { echo "$as_me:$LINENO: result: yes" >&5
2821 echo "${ECHO_T}yes" >&6; }
2823 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2824 ac_clean_files=$ac_clean_files_save
2825 # Check that the compiler produces executables we can run. If not, either
2826 # the compiler is broken, or we cross compile.
2827 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2828 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2829 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2830 echo "${ECHO_T}$cross_compiling" >&6; }
2832 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2833 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2834 if { (ac_try="$ac_link"
2835 case "(($ac_try" in
2836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2837 *) ac_try_echo=$ac_try;;
2838 esac
2839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2840 (eval "$ac_link") 2>&5
2841 ac_status=$?
2842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843 (exit $ac_status); }; then
2844 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2845 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2846 # work properly (i.e., refer to `conftest.exe'), while it won't with
2847 # `rm'.
2848 for ac_file in conftest.exe conftest conftest.*; do
2849 test -f "$ac_file" || continue
2850 case $ac_file in
2851 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2852 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2853 break;;
2854 * ) break;;
2855 esac
2856 done
2857 else
2858 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2859 See \`config.log' for more details." >&5
2860 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2861 See \`config.log' for more details." >&2;}
2862 { (exit 1); exit 1; }; }
2865 rm -f conftest$ac_cv_exeext
2866 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2867 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2869 rm -f conftest.$ac_ext
2870 EXEEXT=$ac_cv_exeext
2871 ac_exeext=$EXEEXT
2872 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2873 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2874 if test "${ac_cv_objext+set}" = set; then
2875 echo $ECHO_N "(cached) $ECHO_C" >&6
2876 else
2877 cat >conftest.$ac_ext <<_ACEOF
2878 /* confdefs.h. */
2879 _ACEOF
2880 cat confdefs.h >>conftest.$ac_ext
2881 cat >>conftest.$ac_ext <<_ACEOF
2882 /* end confdefs.h. */
2885 main ()
2889 return 0;
2891 _ACEOF
2892 rm -f conftest.o conftest.obj
2893 if { (ac_try="$ac_compile"
2894 case "(($ac_try" in
2895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2896 *) ac_try_echo=$ac_try;;
2897 esac
2898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2899 (eval "$ac_compile") 2>&5
2900 ac_status=$?
2901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902 (exit $ac_status); }; then
2903 for ac_file in conftest.o conftest.obj conftest.*; do
2904 test -f "$ac_file" || continue;
2905 case $ac_file in
2906 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2907 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2908 break;;
2909 esac
2910 done
2911 else
2912 echo "$as_me: failed program was:" >&5
2913 sed 's/^/| /' conftest.$ac_ext >&5
2915 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2916 See \`config.log' for more details." >&5
2917 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2918 See \`config.log' for more details." >&2;}
2919 { (exit 1); exit 1; }; }
2922 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2924 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2925 echo "${ECHO_T}$ac_cv_objext" >&6; }
2926 OBJEXT=$ac_cv_objext
2927 ac_objext=$OBJEXT
2928 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2929 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2930 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2931 echo $ECHO_N "(cached) $ECHO_C" >&6
2932 else
2933 cat >conftest.$ac_ext <<_ACEOF
2934 /* confdefs.h. */
2935 _ACEOF
2936 cat confdefs.h >>conftest.$ac_ext
2937 cat >>conftest.$ac_ext <<_ACEOF
2938 /* end confdefs.h. */
2941 main ()
2943 #ifndef __GNUC__
2944 choke me
2945 #endif
2948 return 0;
2950 _ACEOF
2951 rm -f conftest.$ac_objext
2952 if { (ac_try="$ac_compile"
2953 case "(($ac_try" in
2954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2955 *) ac_try_echo=$ac_try;;
2956 esac
2957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2958 (eval "$ac_compile") 2>conftest.er1
2959 ac_status=$?
2960 grep -v '^ *+' conftest.er1 >conftest.err
2961 rm -f conftest.er1
2962 cat conftest.err >&5
2963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964 (exit $ac_status); } && {
2965 test -z "$ac_c_werror_flag" ||
2966 test ! -s conftest.err
2967 } && test -s conftest.$ac_objext; then
2968 ac_compiler_gnu=yes
2969 else
2970 echo "$as_me: failed program was:" >&5
2971 sed 's/^/| /' conftest.$ac_ext >&5
2973 ac_compiler_gnu=no
2976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2977 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2980 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2981 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2982 GCC=`test $ac_compiler_gnu = yes && echo yes`
2983 ac_test_CFLAGS=${CFLAGS+set}
2984 ac_save_CFLAGS=$CFLAGS
2985 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2986 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2987 if test "${ac_cv_prog_cc_g+set}" = set; then
2988 echo $ECHO_N "(cached) $ECHO_C" >&6
2989 else
2990 ac_save_c_werror_flag=$ac_c_werror_flag
2991 ac_c_werror_flag=yes
2992 ac_cv_prog_cc_g=no
2993 CFLAGS="-g"
2994 cat >conftest.$ac_ext <<_ACEOF
2995 /* confdefs.h. */
2996 _ACEOF
2997 cat confdefs.h >>conftest.$ac_ext
2998 cat >>conftest.$ac_ext <<_ACEOF
2999 /* end confdefs.h. */
3002 main ()
3006 return 0;
3008 _ACEOF
3009 rm -f conftest.$ac_objext
3010 if { (ac_try="$ac_compile"
3011 case "(($ac_try" in
3012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3013 *) ac_try_echo=$ac_try;;
3014 esac
3015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3016 (eval "$ac_compile") 2>conftest.er1
3017 ac_status=$?
3018 grep -v '^ *+' conftest.er1 >conftest.err
3019 rm -f conftest.er1
3020 cat conftest.err >&5
3021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3022 (exit $ac_status); } && {
3023 test -z "$ac_c_werror_flag" ||
3024 test ! -s conftest.err
3025 } && test -s conftest.$ac_objext; then
3026 ac_cv_prog_cc_g=yes
3027 else
3028 echo "$as_me: failed program was:" >&5
3029 sed 's/^/| /' conftest.$ac_ext >&5
3031 CFLAGS=""
3032 cat >conftest.$ac_ext <<_ACEOF
3033 /* confdefs.h. */
3034 _ACEOF
3035 cat confdefs.h >>conftest.$ac_ext
3036 cat >>conftest.$ac_ext <<_ACEOF
3037 /* end confdefs.h. */
3040 main ()
3044 return 0;
3046 _ACEOF
3047 rm -f conftest.$ac_objext
3048 if { (ac_try="$ac_compile"
3049 case "(($ac_try" in
3050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3051 *) ac_try_echo=$ac_try;;
3052 esac
3053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3054 (eval "$ac_compile") 2>conftest.er1
3055 ac_status=$?
3056 grep -v '^ *+' conftest.er1 >conftest.err
3057 rm -f conftest.er1
3058 cat conftest.err >&5
3059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060 (exit $ac_status); } && {
3061 test -z "$ac_c_werror_flag" ||
3062 test ! -s conftest.err
3063 } && test -s conftest.$ac_objext; then
3065 else
3066 echo "$as_me: failed program was:" >&5
3067 sed 's/^/| /' conftest.$ac_ext >&5
3069 ac_c_werror_flag=$ac_save_c_werror_flag
3070 CFLAGS="-g"
3071 cat >conftest.$ac_ext <<_ACEOF
3072 /* confdefs.h. */
3073 _ACEOF
3074 cat confdefs.h >>conftest.$ac_ext
3075 cat >>conftest.$ac_ext <<_ACEOF
3076 /* end confdefs.h. */
3079 main ()
3083 return 0;
3085 _ACEOF
3086 rm -f conftest.$ac_objext
3087 if { (ac_try="$ac_compile"
3088 case "(($ac_try" in
3089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3090 *) ac_try_echo=$ac_try;;
3091 esac
3092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3093 (eval "$ac_compile") 2>conftest.er1
3094 ac_status=$?
3095 grep -v '^ *+' conftest.er1 >conftest.err
3096 rm -f conftest.er1
3097 cat conftest.err >&5
3098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099 (exit $ac_status); } && {
3100 test -z "$ac_c_werror_flag" ||
3101 test ! -s conftest.err
3102 } && test -s conftest.$ac_objext; then
3103 ac_cv_prog_cc_g=yes
3104 else
3105 echo "$as_me: failed program was:" >&5
3106 sed 's/^/| /' conftest.$ac_ext >&5
3111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3118 ac_c_werror_flag=$ac_save_c_werror_flag
3120 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3121 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3122 if test "$ac_test_CFLAGS" = set; then
3123 CFLAGS=$ac_save_CFLAGS
3124 elif test $ac_cv_prog_cc_g = yes; then
3125 if test "$GCC" = yes; then
3126 CFLAGS="-g -O2"
3127 else
3128 CFLAGS="-g"
3130 else
3131 if test "$GCC" = yes; then
3132 CFLAGS="-O2"
3133 else
3134 CFLAGS=
3137 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3138 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3139 if test "${ac_cv_prog_cc_c89+set}" = set; then
3140 echo $ECHO_N "(cached) $ECHO_C" >&6
3141 else
3142 ac_cv_prog_cc_c89=no
3143 ac_save_CC=$CC
3144 cat >conftest.$ac_ext <<_ACEOF
3145 /* confdefs.h. */
3146 _ACEOF
3147 cat confdefs.h >>conftest.$ac_ext
3148 cat >>conftest.$ac_ext <<_ACEOF
3149 /* end confdefs.h. */
3150 #include <stdarg.h>
3151 #include <stdio.h>
3152 #include <sys/types.h>
3153 #include <sys/stat.h>
3154 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3155 struct buf { int x; };
3156 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3157 static char *e (p, i)
3158 char **p;
3159 int i;
3161 return p[i];
3163 static char *f (char * (*g) (char **, int), char **p, ...)
3165 char *s;
3166 va_list v;
3167 va_start (v,p);
3168 s = g (p, va_arg (v,int));
3169 va_end (v);
3170 return s;
3173 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3174 function prototypes and stuff, but not '\xHH' hex character constants.
3175 These don't provoke an error unfortunately, instead are silently treated
3176 as 'x'. The following induces an error, until -std is added to get
3177 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3178 array size at least. It's necessary to write '\x00'==0 to get something
3179 that's true only with -std. */
3180 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3182 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3183 inside strings and character constants. */
3184 #define FOO(x) 'x'
3185 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3187 int test (int i, double x);
3188 struct s1 {int (*f) (int a);};
3189 struct s2 {int (*f) (double a);};
3190 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3191 int argc;
3192 char **argv;
3194 main ()
3196 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3198 return 0;
3200 _ACEOF
3201 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3202 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3204 CC="$ac_save_CC $ac_arg"
3205 rm -f conftest.$ac_objext
3206 if { (ac_try="$ac_compile"
3207 case "(($ac_try" in
3208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3209 *) ac_try_echo=$ac_try;;
3210 esac
3211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3212 (eval "$ac_compile") 2>conftest.er1
3213 ac_status=$?
3214 grep -v '^ *+' conftest.er1 >conftest.err
3215 rm -f conftest.er1
3216 cat conftest.err >&5
3217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218 (exit $ac_status); } && {
3219 test -z "$ac_c_werror_flag" ||
3220 test ! -s conftest.err
3221 } && test -s conftest.$ac_objext; then
3222 ac_cv_prog_cc_c89=$ac_arg
3223 else
3224 echo "$as_me: failed program was:" >&5
3225 sed 's/^/| /' conftest.$ac_ext >&5
3230 rm -f core conftest.err conftest.$ac_objext
3231 test "x$ac_cv_prog_cc_c89" != "xno" && break
3232 done
3233 rm -f conftest.$ac_ext
3234 CC=$ac_save_CC
3237 # AC_CACHE_VAL
3238 case "x$ac_cv_prog_cc_c89" in
3240 { echo "$as_me:$LINENO: result: none needed" >&5
3241 echo "${ECHO_T}none needed" >&6; } ;;
3242 xno)
3243 { echo "$as_me:$LINENO: result: unsupported" >&5
3244 echo "${ECHO_T}unsupported" >&6; } ;;
3246 CC="$CC $ac_cv_prog_cc_c89"
3247 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3248 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3249 esac
3252 ac_ext=c
3253 ac_cpp='$CPP $CPPFLAGS'
3254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3261 { echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5
3262 echo $ECHO_N "checking for --with-cxx-main=<compiler>... $ECHO_C" >&6; }
3264 # Check whether --with-cxx_main was given.
3265 if test "${with_cxx_main+set}" = set; then
3266 withval=$with_cxx_main;
3268 case $withval in
3269 no) with_cxx_main=no
3270 MAINCC='$(CC)';;
3271 yes) with_cxx_main=yes
3272 MAINCC='$(CXX)';;
3273 *) with_cxx_main=yes
3274 MAINCC=$withval
3275 if test -z "$CXX"
3276 then
3277 CXX=$withval
3278 fi;;
3279 esac
3280 else
3282 with_cxx_main=no
3283 MAINCC='$(CC)'
3287 { echo "$as_me:$LINENO: result: $with_cxx_main" >&5
3288 echo "${ECHO_T}$with_cxx_main" >&6; }
3290 preset_cxx="$CXX"
3291 if test -z "$CXX"
3292 then
3293 case "$CC" in
3294 gcc) # Extract the first word of "g++", so it can be a program name with args.
3295 set dummy g++; ac_word=$2
3296 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3298 if test "${ac_cv_path_CXX+set}" = set; then
3299 echo $ECHO_N "(cached) $ECHO_C" >&6
3300 else
3301 case $CXX in
3302 [\\/]* | ?:[\\/]*)
3303 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3307 for as_dir in notfound
3309 IFS=$as_save_IFS
3310 test -z "$as_dir" && as_dir=.
3311 for ac_exec_ext in '' $ac_executable_extensions; do
3312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3313 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3315 break 2
3317 done
3318 done
3319 IFS=$as_save_IFS
3321 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="g++"
3323 esac
3325 CXX=$ac_cv_path_CXX
3326 if test -n "$CXX"; then
3327 { echo "$as_me:$LINENO: result: $CXX" >&5
3328 echo "${ECHO_T}$CXX" >&6; }
3329 else
3330 { echo "$as_me:$LINENO: result: no" >&5
3331 echo "${ECHO_T}no" >&6; }
3335 cc) # Extract the first word of "c++", so it can be a program name with args.
3336 set dummy c++; ac_word=$2
3337 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3339 if test "${ac_cv_path_CXX+set}" = set; then
3340 echo $ECHO_N "(cached) $ECHO_C" >&6
3341 else
3342 case $CXX in
3343 [\\/]* | ?:[\\/]*)
3344 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3348 for as_dir in notfound
3350 IFS=$as_save_IFS
3351 test -z "$as_dir" && as_dir=.
3352 for ac_exec_ext in '' $ac_executable_extensions; do
3353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3354 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3356 break 2
3358 done
3359 done
3360 IFS=$as_save_IFS
3362 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="c++"
3364 esac
3366 CXX=$ac_cv_path_CXX
3367 if test -n "$CXX"; then
3368 { echo "$as_me:$LINENO: result: $CXX" >&5
3369 echo "${ECHO_T}$CXX" >&6; }
3370 else
3371 { echo "$as_me:$LINENO: result: no" >&5
3372 echo "${ECHO_T}no" >&6; }
3376 esac
3377 if test "$CXX" = "notfound"
3378 then
3379 CXX=""
3382 if test -z "$CXX"
3383 then
3384 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
3386 # Extract the first word of "$ac_prog", so it can be a program name with args.
3387 set dummy $ac_prog; ac_word=$2
3388 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3390 if test "${ac_cv_prog_CXX+set}" = set; then
3391 echo $ECHO_N "(cached) $ECHO_C" >&6
3392 else
3393 if test -n "$CXX"; then
3394 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3395 else
3396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3397 for as_dir in $PATH
3399 IFS=$as_save_IFS
3400 test -z "$as_dir" && as_dir=.
3401 for ac_exec_ext in '' $ac_executable_extensions; do
3402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3403 ac_cv_prog_CXX="$ac_prog"
3404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3405 break 2
3407 done
3408 done
3409 IFS=$as_save_IFS
3413 CXX=$ac_cv_prog_CXX
3414 if test -n "$CXX"; then
3415 { echo "$as_me:$LINENO: result: $CXX" >&5
3416 echo "${ECHO_T}$CXX" >&6; }
3417 else
3418 { echo "$as_me:$LINENO: result: no" >&5
3419 echo "${ECHO_T}no" >&6; }
3423 test -n "$CXX" && break
3424 done
3425 test -n "$CXX" || CXX="notfound"
3427 if test "$CXX" = "notfound"
3428 then
3429 CXX=""
3432 if test "$preset_cxx" != "$CXX"
3433 then
3434 { echo "$as_me:$LINENO: WARNING:
3436 By default, distutils will build C++ extension modules with \"$CXX\".
3437 If this is not intended, then set CXX on the configure command line.
3438 " >&5
3439 echo "$as_me: WARNING:
3441 By default, distutils will build C++ extension modules with \"$CXX\".
3442 If this is not intended, then set CXX on the configure command line.
3443 " >&2;}
3447 # checks for UNIX variants that set C preprocessor variables
3449 ac_ext=c
3450 ac_cpp='$CPP $CPPFLAGS'
3451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3453 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3454 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3455 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3456 # On Suns, sometimes $CPP names a directory.
3457 if test -n "$CPP" && test -d "$CPP"; then
3458 CPP=
3460 if test -z "$CPP"; then
3461 if test "${ac_cv_prog_CPP+set}" = set; then
3462 echo $ECHO_N "(cached) $ECHO_C" >&6
3463 else
3464 # Double quotes because CPP needs to be expanded
3465 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3467 ac_preproc_ok=false
3468 for ac_c_preproc_warn_flag in '' yes
3470 # Use a header file that comes with gcc, so configuring glibc
3471 # with a fresh cross-compiler works.
3472 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3473 # <limits.h> exists even on freestanding compilers.
3474 # On the NeXT, cc -E runs the code through the compiler's parser,
3475 # not just through cpp. "Syntax error" is here to catch this case.
3476 cat >conftest.$ac_ext <<_ACEOF
3477 /* confdefs.h. */
3478 _ACEOF
3479 cat confdefs.h >>conftest.$ac_ext
3480 cat >>conftest.$ac_ext <<_ACEOF
3481 /* end confdefs.h. */
3482 #ifdef __STDC__
3483 # include <limits.h>
3484 #else
3485 # include <assert.h>
3486 #endif
3487 Syntax error
3488 _ACEOF
3489 if { (ac_try="$ac_cpp conftest.$ac_ext"
3490 case "(($ac_try" in
3491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3492 *) ac_try_echo=$ac_try;;
3493 esac
3494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3495 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3496 ac_status=$?
3497 grep -v '^ *+' conftest.er1 >conftest.err
3498 rm -f conftest.er1
3499 cat conftest.err >&5
3500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3501 (exit $ac_status); } >/dev/null && {
3502 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3503 test ! -s conftest.err
3504 }; then
3506 else
3507 echo "$as_me: failed program was:" >&5
3508 sed 's/^/| /' conftest.$ac_ext >&5
3510 # Broken: fails on valid input.
3511 continue
3514 rm -f conftest.err conftest.$ac_ext
3516 # OK, works on sane cases. Now check whether nonexistent headers
3517 # can be detected and how.
3518 cat >conftest.$ac_ext <<_ACEOF
3519 /* confdefs.h. */
3520 _ACEOF
3521 cat confdefs.h >>conftest.$ac_ext
3522 cat >>conftest.$ac_ext <<_ACEOF
3523 /* end confdefs.h. */
3524 #include <ac_nonexistent.h>
3525 _ACEOF
3526 if { (ac_try="$ac_cpp conftest.$ac_ext"
3527 case "(($ac_try" in
3528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3529 *) ac_try_echo=$ac_try;;
3530 esac
3531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3532 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3533 ac_status=$?
3534 grep -v '^ *+' conftest.er1 >conftest.err
3535 rm -f conftest.er1
3536 cat conftest.err >&5
3537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3538 (exit $ac_status); } >/dev/null && {
3539 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3540 test ! -s conftest.err
3541 }; then
3542 # Broken: success on invalid input.
3543 continue
3544 else
3545 echo "$as_me: failed program was:" >&5
3546 sed 's/^/| /' conftest.$ac_ext >&5
3548 # Passes both tests.
3549 ac_preproc_ok=:
3550 break
3553 rm -f conftest.err conftest.$ac_ext
3555 done
3556 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3557 rm -f conftest.err conftest.$ac_ext
3558 if $ac_preproc_ok; then
3559 break
3562 done
3563 ac_cv_prog_CPP=$CPP
3566 CPP=$ac_cv_prog_CPP
3567 else
3568 ac_cv_prog_CPP=$CPP
3570 { echo "$as_me:$LINENO: result: $CPP" >&5
3571 echo "${ECHO_T}$CPP" >&6; }
3572 ac_preproc_ok=false
3573 for ac_c_preproc_warn_flag in '' yes
3575 # Use a header file that comes with gcc, so configuring glibc
3576 # with a fresh cross-compiler works.
3577 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3578 # <limits.h> exists even on freestanding compilers.
3579 # On the NeXT, cc -E runs the code through the compiler's parser,
3580 # not just through cpp. "Syntax error" is here to catch this case.
3581 cat >conftest.$ac_ext <<_ACEOF
3582 /* confdefs.h. */
3583 _ACEOF
3584 cat confdefs.h >>conftest.$ac_ext
3585 cat >>conftest.$ac_ext <<_ACEOF
3586 /* end confdefs.h. */
3587 #ifdef __STDC__
3588 # include <limits.h>
3589 #else
3590 # include <assert.h>
3591 #endif
3592 Syntax error
3593 _ACEOF
3594 if { (ac_try="$ac_cpp conftest.$ac_ext"
3595 case "(($ac_try" in
3596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3597 *) ac_try_echo=$ac_try;;
3598 esac
3599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3600 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3601 ac_status=$?
3602 grep -v '^ *+' conftest.er1 >conftest.err
3603 rm -f conftest.er1
3604 cat conftest.err >&5
3605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606 (exit $ac_status); } >/dev/null && {
3607 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3608 test ! -s conftest.err
3609 }; then
3611 else
3612 echo "$as_me: failed program was:" >&5
3613 sed 's/^/| /' conftest.$ac_ext >&5
3615 # Broken: fails on valid input.
3616 continue
3619 rm -f conftest.err conftest.$ac_ext
3621 # OK, works on sane cases. Now check whether nonexistent headers
3622 # can be detected and how.
3623 cat >conftest.$ac_ext <<_ACEOF
3624 /* confdefs.h. */
3625 _ACEOF
3626 cat confdefs.h >>conftest.$ac_ext
3627 cat >>conftest.$ac_ext <<_ACEOF
3628 /* end confdefs.h. */
3629 #include <ac_nonexistent.h>
3630 _ACEOF
3631 if { (ac_try="$ac_cpp conftest.$ac_ext"
3632 case "(($ac_try" in
3633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3634 *) ac_try_echo=$ac_try;;
3635 esac
3636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3637 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3638 ac_status=$?
3639 grep -v '^ *+' conftest.er1 >conftest.err
3640 rm -f conftest.er1
3641 cat conftest.err >&5
3642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3643 (exit $ac_status); } >/dev/null && {
3644 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3645 test ! -s conftest.err
3646 }; then
3647 # Broken: success on invalid input.
3648 continue
3649 else
3650 echo "$as_me: failed program was:" >&5
3651 sed 's/^/| /' conftest.$ac_ext >&5
3653 # Passes both tests.
3654 ac_preproc_ok=:
3655 break
3658 rm -f conftest.err conftest.$ac_ext
3660 done
3661 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3662 rm -f conftest.err conftest.$ac_ext
3663 if $ac_preproc_ok; then
3665 else
3666 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3667 See \`config.log' for more details." >&5
3668 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3669 See \`config.log' for more details." >&2;}
3670 { (exit 1); exit 1; }; }
3673 ac_ext=c
3674 ac_cpp='$CPP $CPPFLAGS'
3675 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3676 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3677 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3680 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3681 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3682 if test "${ac_cv_path_GREP+set}" = set; then
3683 echo $ECHO_N "(cached) $ECHO_C" >&6
3684 else
3685 # Extract the first word of "grep ggrep" to use in msg output
3686 if test -z "$GREP"; then
3687 set dummy grep ggrep; ac_prog_name=$2
3688 if test "${ac_cv_path_GREP+set}" = set; then
3689 echo $ECHO_N "(cached) $ECHO_C" >&6
3690 else
3691 ac_path_GREP_found=false
3692 # Loop through the user's path and test for each of PROGNAME-LIST
3693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3694 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3696 IFS=$as_save_IFS
3697 test -z "$as_dir" && as_dir=.
3698 for ac_prog in grep ggrep; do
3699 for ac_exec_ext in '' $ac_executable_extensions; do
3700 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3701 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3702 # Check for GNU ac_path_GREP and select it if it is found.
3703 # Check for GNU $ac_path_GREP
3704 case `"$ac_path_GREP" --version 2>&1` in
3705 *GNU*)
3706 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3708 ac_count=0
3709 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3710 while :
3712 cat "conftest.in" "conftest.in" >"conftest.tmp"
3713 mv "conftest.tmp" "conftest.in"
3714 cp "conftest.in" "conftest.nl"
3715 echo 'GREP' >> "conftest.nl"
3716 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3717 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3718 ac_count=`expr $ac_count + 1`
3719 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3720 # Best one so far, save it but keep looking for a better one
3721 ac_cv_path_GREP="$ac_path_GREP"
3722 ac_path_GREP_max=$ac_count
3724 # 10*(2^10) chars as input seems more than enough
3725 test $ac_count -gt 10 && break
3726 done
3727 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3728 esac
3731 $ac_path_GREP_found && break 3
3732 done
3733 done
3735 done
3736 IFS=$as_save_IFS
3741 GREP="$ac_cv_path_GREP"
3742 if test -z "$GREP"; then
3743 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3744 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3745 { (exit 1); exit 1; }; }
3748 else
3749 ac_cv_path_GREP=$GREP
3754 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3755 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3756 GREP="$ac_cv_path_GREP"
3759 { echo "$as_me:$LINENO: checking for egrep" >&5
3760 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3761 if test "${ac_cv_path_EGREP+set}" = set; then
3762 echo $ECHO_N "(cached) $ECHO_C" >&6
3763 else
3764 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3765 then ac_cv_path_EGREP="$GREP -E"
3766 else
3767 # Extract the first word of "egrep" to use in msg output
3768 if test -z "$EGREP"; then
3769 set dummy egrep; ac_prog_name=$2
3770 if test "${ac_cv_path_EGREP+set}" = set; then
3771 echo $ECHO_N "(cached) $ECHO_C" >&6
3772 else
3773 ac_path_EGREP_found=false
3774 # Loop through the user's path and test for each of PROGNAME-LIST
3775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3776 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3778 IFS=$as_save_IFS
3779 test -z "$as_dir" && as_dir=.
3780 for ac_prog in egrep; do
3781 for ac_exec_ext in '' $ac_executable_extensions; do
3782 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3783 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3784 # Check for GNU ac_path_EGREP and select it if it is found.
3785 # Check for GNU $ac_path_EGREP
3786 case `"$ac_path_EGREP" --version 2>&1` in
3787 *GNU*)
3788 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3790 ac_count=0
3791 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3792 while :
3794 cat "conftest.in" "conftest.in" >"conftest.tmp"
3795 mv "conftest.tmp" "conftest.in"
3796 cp "conftest.in" "conftest.nl"
3797 echo 'EGREP' >> "conftest.nl"
3798 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3799 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3800 ac_count=`expr $ac_count + 1`
3801 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3802 # Best one so far, save it but keep looking for a better one
3803 ac_cv_path_EGREP="$ac_path_EGREP"
3804 ac_path_EGREP_max=$ac_count
3806 # 10*(2^10) chars as input seems more than enough
3807 test $ac_count -gt 10 && break
3808 done
3809 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3810 esac
3813 $ac_path_EGREP_found && break 3
3814 done
3815 done
3817 done
3818 IFS=$as_save_IFS
3823 EGREP="$ac_cv_path_EGREP"
3824 if test -z "$EGREP"; then
3825 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3826 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3827 { (exit 1); exit 1; }; }
3830 else
3831 ac_cv_path_EGREP=$EGREP
3837 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3838 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3839 EGREP="$ac_cv_path_EGREP"
3843 { echo "$as_me:$LINENO: checking for AIX" >&5
3844 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3845 cat >conftest.$ac_ext <<_ACEOF
3846 /* confdefs.h. */
3847 _ACEOF
3848 cat confdefs.h >>conftest.$ac_ext
3849 cat >>conftest.$ac_ext <<_ACEOF
3850 /* end confdefs.h. */
3851 #ifdef _AIX
3853 #endif
3855 _ACEOF
3856 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3857 $EGREP "yes" >/dev/null 2>&1; then
3858 { echo "$as_me:$LINENO: result: yes" >&5
3859 echo "${ECHO_T}yes" >&6; }
3860 cat >>confdefs.h <<\_ACEOF
3861 #define _ALL_SOURCE 1
3862 _ACEOF
3864 else
3865 { echo "$as_me:$LINENO: result: no" >&5
3866 echo "${ECHO_T}no" >&6; }
3868 rm -f conftest*
3872 # Check for unsupported systems
3873 case $ac_sys_system/$ac_sys_release in
3874 atheos*|Linux*/1*)
3875 echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported.
3876 echo See README for details.
3877 exit 1;;
3878 esac
3881 { echo "$as_me:$LINENO: checking for --with-suffix" >&5
3882 echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6; }
3884 # Check whether --with-suffix was given.
3885 if test "${with_suffix+set}" = set; then
3886 withval=$with_suffix;
3887 case $withval in
3888 no) EXEEXT=;;
3889 yes) EXEEXT=.exe;;
3890 *) EXEEXT=$withval;;
3891 esac
3894 { echo "$as_me:$LINENO: result: $EXEEXT" >&5
3895 echo "${ECHO_T}$EXEEXT" >&6; }
3897 # Test whether we're running on a non-case-sensitive system, in which
3898 # case we give a warning if no ext is given
3900 { echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
3901 echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6; }
3902 if test ! -d CaseSensitiveTestDir; then
3903 mkdir CaseSensitiveTestDir
3906 if test -d casesensitivetestdir
3907 then
3908 { echo "$as_me:$LINENO: result: yes" >&5
3909 echo "${ECHO_T}yes" >&6; }
3910 BUILDEXEEXT=.exe
3911 else
3912 { echo "$as_me:$LINENO: result: no" >&5
3913 echo "${ECHO_T}no" >&6; }
3914 BUILDEXEEXT=$EXEEXT
3916 rmdir CaseSensitiveTestDir
3918 case $MACHDEP in
3919 bsdos*)
3920 case $CC in
3921 gcc) CC="$CC -D_HAVE_BSDI";;
3922 esac;;
3923 esac
3925 case $ac_sys_system in
3926 hp*|HP*)
3927 case $CC in
3928 cc|*/cc) CC="$CC -Ae";;
3929 esac;;
3930 SunOS*)
3931 # Some functions have a prototype only with that define, e.g. confstr
3933 cat >>confdefs.h <<\_ACEOF
3934 #define __EXTENSIONS__ 1
3935 _ACEOF
3938 esac
3942 { echo "$as_me:$LINENO: checking LIBRARY" >&5
3943 echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6; }
3944 if test -z "$LIBRARY"
3945 then
3946 LIBRARY='libpython$(VERSION).a'
3948 { echo "$as_me:$LINENO: result: $LIBRARY" >&5
3949 echo "${ECHO_T}$LIBRARY" >&6; }
3951 # LDLIBRARY is the name of the library to link against (as opposed to the
3952 # name of the library into which to insert object files). BLDLIBRARY is also
3953 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
3954 # is blank as the main program is not linked directly against LDLIBRARY.
3955 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
3956 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
3957 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
3958 # DLLLIBRARY is the shared (i.e., DLL) library.
3960 # RUNSHARED is used to run shared python without installed libraries
3962 # INSTSONAME is the name of the shared library that will be use to install
3963 # on the system - some systems like version suffix, others don't
3970 LDLIBRARY="$LIBRARY"
3971 BLDLIBRARY='$(LDLIBRARY)'
3972 INSTSONAME='$(LDLIBRARY)'
3973 DLLLIBRARY=''
3974 LDLIBRARYDIR=''
3975 RUNSHARED=''
3977 # LINKCC is the command that links the python executable -- default is $(CC).
3978 # If CXX is set, and if it is needed to link a main function that was
3979 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
3980 # python might then depend on the C++ runtime
3981 # This is altered for AIX in order to build the export list before
3982 # linking.
3984 { echo "$as_me:$LINENO: checking LINKCC" >&5
3985 echo $ECHO_N "checking LINKCC... $ECHO_C" >&6; }
3986 if test -z "$LINKCC"
3987 then
3988 LINKCC='$(PURIFY) $(MAINCC)'
3989 case $ac_sys_system in
3990 AIX*)
3991 exp_extra="\"\""
3992 if test $ac_sys_release -ge 5 -o \
3993 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
3994 exp_extra="."
3996 LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
3997 QNX*)
3998 # qcc must be used because the other compilers do not
3999 # support -N.
4000 LINKCC=qcc;;
4001 esac
4003 { echo "$as_me:$LINENO: result: $LINKCC" >&5
4004 echo "${ECHO_T}$LINKCC" >&6; }
4006 # GNULD is set to "yes" if the GNU linker is used. If this goes wrong
4007 # make sure we default having it set to "no": this is used by
4008 # distutils.unixccompiler to know if it should add --enable-new-dtags
4009 # to linker command lines, and failing to detect GNU ld simply results
4010 # in the same bahaviour as before.
4012 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4013 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4014 ac_prog=ld
4015 if test "$GCC" = yes; then
4016 ac_prog=`$CC -print-prog-name=ld`
4018 case `"$ac_prog" -V 2>&1 < /dev/null` in
4019 *GNU*)
4020 GNULD=yes;;
4022 GNULD=no;;
4023 esac
4024 { echo "$as_me:$LINENO: result: $GNULD" >&5
4025 echo "${ECHO_T}$GNULD" >&6; }
4027 { echo "$as_me:$LINENO: checking for --enable-shared" >&5
4028 echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6; }
4029 # Check whether --enable-shared was given.
4030 if test "${enable_shared+set}" = set; then
4031 enableval=$enable_shared;
4035 if test -z "$enable_shared"
4036 then
4037 case $ac_sys_system in
4038 CYGWIN* | atheos*)
4039 enable_shared="yes";;
4041 enable_shared="no";;
4042 esac
4044 { echo "$as_me:$LINENO: result: $enable_shared" >&5
4045 echo "${ECHO_T}$enable_shared" >&6; }
4047 { echo "$as_me:$LINENO: checking for --enable-profiling" >&5
4048 echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6; }
4049 # Check whether --enable-profiling was given.
4050 if test "${enable_profiling+set}" = set; then
4051 enableval=$enable_profiling; ac_save_cc="$CC"
4052 CC="$CC -pg"
4053 if test "$cross_compiling" = yes; then
4054 ac_enable_profiling="no"
4055 else
4056 cat >conftest.$ac_ext <<_ACEOF
4057 /* confdefs.h. */
4058 _ACEOF
4059 cat confdefs.h >>conftest.$ac_ext
4060 cat >>conftest.$ac_ext <<_ACEOF
4061 /* end confdefs.h. */
4062 int main() { return 0; }
4063 _ACEOF
4064 rm -f conftest$ac_exeext
4065 if { (ac_try="$ac_link"
4066 case "(($ac_try" in
4067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4068 *) ac_try_echo=$ac_try;;
4069 esac
4070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4071 (eval "$ac_link") 2>&5
4072 ac_status=$?
4073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4074 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4075 { (case "(($ac_try" in
4076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4077 *) ac_try_echo=$ac_try;;
4078 esac
4079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4080 (eval "$ac_try") 2>&5
4081 ac_status=$?
4082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4083 (exit $ac_status); }; }; then
4084 ac_enable_profiling="yes"
4085 else
4086 echo "$as_me: program exited with status $ac_status" >&5
4087 echo "$as_me: failed program was:" >&5
4088 sed 's/^/| /' conftest.$ac_ext >&5
4090 ( exit $ac_status )
4091 ac_enable_profiling="no"
4093 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4097 CC="$ac_save_cc"
4100 { echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5
4101 echo "${ECHO_T}$ac_enable_profiling" >&6; }
4103 case "$ac_enable_profiling" in
4104 "yes")
4105 BASECFLAGS="-pg $BASECFLAGS"
4106 LDFLAGS="-pg $LDFLAGS"
4108 esac
4110 { echo "$as_me:$LINENO: checking LDLIBRARY" >&5
4111 echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6; }
4113 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
4114 # library that we build, but we do not want to link against it (we
4115 # will find it with a -framework option). For this reason there is an
4116 # extra variable BLDLIBRARY against which Python and the extension
4117 # modules are linked, BLDLIBRARY. This is normally the same as
4118 # LDLIBRARY, but empty for MacOSX framework builds.
4119 if test "$enable_framework"
4120 then
4121 LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
4122 RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH"
4123 BLDLIBRARY=''
4124 else
4125 BLDLIBRARY='$(LDLIBRARY)'
4128 # Other platforms follow
4129 if test $enable_shared = "yes"; then
4131 cat >>confdefs.h <<\_ACEOF
4132 #define Py_ENABLE_SHARED 1
4133 _ACEOF
4135 case $ac_sys_system in
4136 BeOS*)
4137 LDLIBRARY='libpython$(VERSION).so'
4139 CYGWIN*)
4140 LDLIBRARY='libpython$(VERSION).dll.a'
4141 DLLLIBRARY='libpython$(VERSION).dll'
4143 SunOS*)
4144 LDLIBRARY='libpython$(VERSION).so'
4145 BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
4146 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4147 INSTSONAME="$LDLIBRARY".$SOVERSION
4149 Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*)
4150 LDLIBRARY='libpython$(VERSION).so'
4151 BLDLIBRARY='-L. -lpython$(VERSION)'
4152 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4153 case $ac_sys_system in
4154 FreeBSD*)
4155 SOVERSION=`echo $SOVERSION|cut -d "." -f 1`
4157 esac
4158 INSTSONAME="$LDLIBRARY".$SOVERSION
4160 hp*|HP*)
4161 case `uname -m` in
4162 ia64)
4163 LDLIBRARY='libpython$(VERSION).so'
4166 LDLIBRARY='libpython$(VERSION).sl'
4168 esac
4169 BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
4170 RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH}
4172 OSF*)
4173 LDLIBRARY='libpython$(VERSION).so'
4174 BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
4175 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4177 atheos*)
4178 LDLIBRARY='libpython$(VERSION).so'
4179 BLDLIBRARY='-L. -lpython$(VERSION)'
4180 RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
4182 Darwin*)
4183 LDLIBRARY='libpython$(VERSION).dylib'
4184 BLDLIBRARY='-L. -lpython$(VERSION)'
4185 RUNSHARED='DYLD_LIBRARY_PATH=`pwd`:${DYLD_LIBRARY_PATH}'
4188 esac
4189 else # shared is disabled
4190 case $ac_sys_system in
4191 CYGWIN*)
4192 BLDLIBRARY='$(LIBRARY)'
4193 LDLIBRARY='libpython$(VERSION).dll.a'
4195 esac
4198 { echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
4199 echo "${ECHO_T}$LDLIBRARY" >&6; }
4201 if test -n "$ac_tool_prefix"; then
4202 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4203 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4204 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4206 if test "${ac_cv_prog_RANLIB+set}" = set; then
4207 echo $ECHO_N "(cached) $ECHO_C" >&6
4208 else
4209 if test -n "$RANLIB"; then
4210 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4211 else
4212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4213 for as_dir in $PATH
4215 IFS=$as_save_IFS
4216 test -z "$as_dir" && as_dir=.
4217 for ac_exec_ext in '' $ac_executable_extensions; do
4218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4219 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4221 break 2
4223 done
4224 done
4225 IFS=$as_save_IFS
4229 RANLIB=$ac_cv_prog_RANLIB
4230 if test -n "$RANLIB"; then
4231 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4232 echo "${ECHO_T}$RANLIB" >&6; }
4233 else
4234 { echo "$as_me:$LINENO: result: no" >&5
4235 echo "${ECHO_T}no" >&6; }
4240 if test -z "$ac_cv_prog_RANLIB"; then
4241 ac_ct_RANLIB=$RANLIB
4242 # Extract the first word of "ranlib", so it can be a program name with args.
4243 set dummy ranlib; ac_word=$2
4244 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4246 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4247 echo $ECHO_N "(cached) $ECHO_C" >&6
4248 else
4249 if test -n "$ac_ct_RANLIB"; then
4250 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4251 else
4252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4253 for as_dir in $PATH
4255 IFS=$as_save_IFS
4256 test -z "$as_dir" && as_dir=.
4257 for ac_exec_ext in '' $ac_executable_extensions; do
4258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4259 ac_cv_prog_ac_ct_RANLIB="ranlib"
4260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4261 break 2
4263 done
4264 done
4265 IFS=$as_save_IFS
4269 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4270 if test -n "$ac_ct_RANLIB"; then
4271 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4272 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4273 else
4274 { echo "$as_me:$LINENO: result: no" >&5
4275 echo "${ECHO_T}no" >&6; }
4278 if test "x$ac_ct_RANLIB" = x; then
4279 RANLIB=":"
4280 else
4281 case $cross_compiling:$ac_tool_warned in
4282 yes:)
4283 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4284 whose name does not start with the host triplet. If you think this
4285 configuration is useful to you, please write to autoconf@gnu.org." >&5
4286 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4287 whose name does not start with the host triplet. If you think this
4288 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4289 ac_tool_warned=yes ;;
4290 esac
4291 RANLIB=$ac_ct_RANLIB
4293 else
4294 RANLIB="$ac_cv_prog_RANLIB"
4298 for ac_prog in ar aal
4300 # Extract the first word of "$ac_prog", so it can be a program name with args.
4301 set dummy $ac_prog; ac_word=$2
4302 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4304 if test "${ac_cv_prog_AR+set}" = set; then
4305 echo $ECHO_N "(cached) $ECHO_C" >&6
4306 else
4307 if test -n "$AR"; then
4308 ac_cv_prog_AR="$AR" # Let the user override the test.
4309 else
4310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4311 for as_dir in $PATH
4313 IFS=$as_save_IFS
4314 test -z "$as_dir" && as_dir=.
4315 for ac_exec_ext in '' $ac_executable_extensions; do
4316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4317 ac_cv_prog_AR="$ac_prog"
4318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4319 break 2
4321 done
4322 done
4323 IFS=$as_save_IFS
4327 AR=$ac_cv_prog_AR
4328 if test -n "$AR"; then
4329 { echo "$as_me:$LINENO: result: $AR" >&5
4330 echo "${ECHO_T}$AR" >&6; }
4331 else
4332 { echo "$as_me:$LINENO: result: no" >&5
4333 echo "${ECHO_T}no" >&6; }
4337 test -n "$AR" && break
4338 done
4339 test -n "$AR" || AR="ar"
4342 # tweak ARFLAGS only if the user didn't set it on the command line
4344 if test -z "$ARFLAGS"
4345 then
4346 ARFLAGS="rc"
4350 # Extract the first word of "svnversion", so it can be a program name with args.
4351 set dummy svnversion; ac_word=$2
4352 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4353 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4354 if test "${ac_cv_prog_SVNVERSION+set}" = set; then
4355 echo $ECHO_N "(cached) $ECHO_C" >&6
4356 else
4357 if test -n "$SVNVERSION"; then
4358 ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test.
4359 else
4360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4361 for as_dir in $PATH
4363 IFS=$as_save_IFS
4364 test -z "$as_dir" && as_dir=.
4365 for ac_exec_ext in '' $ac_executable_extensions; do
4366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4367 ac_cv_prog_SVNVERSION="found"
4368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4369 break 2
4371 done
4372 done
4373 IFS=$as_save_IFS
4375 test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION="not-found"
4378 SVNVERSION=$ac_cv_prog_SVNVERSION
4379 if test -n "$SVNVERSION"; then
4380 { echo "$as_me:$LINENO: result: $SVNVERSION" >&5
4381 echo "${ECHO_T}$SVNVERSION" >&6; }
4382 else
4383 { echo "$as_me:$LINENO: result: no" >&5
4384 echo "${ECHO_T}no" >&6; }
4388 if test $SVNVERSION = found
4389 then
4390 SVNVERSION="svnversion \$(srcdir)"
4391 else
4392 SVNVERSION="echo Unversioned directory"
4395 case $MACHDEP in
4396 bsdos*|hp*|HP*)
4397 # install -d does not work on BSDI or HP-UX
4398 if test -z "$INSTALL"
4399 then
4400 INSTALL="${srcdir}/install-sh -c"
4402 esac
4403 ac_aux_dir=
4404 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4405 if test -f "$ac_dir/install-sh"; then
4406 ac_aux_dir=$ac_dir
4407 ac_install_sh="$ac_aux_dir/install-sh -c"
4408 break
4409 elif test -f "$ac_dir/install.sh"; then
4410 ac_aux_dir=$ac_dir
4411 ac_install_sh="$ac_aux_dir/install.sh -c"
4412 break
4413 elif test -f "$ac_dir/shtool"; then
4414 ac_aux_dir=$ac_dir
4415 ac_install_sh="$ac_aux_dir/shtool install -c"
4416 break
4418 done
4419 if test -z "$ac_aux_dir"; then
4420 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
4421 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
4422 { (exit 1); exit 1; }; }
4425 # These three variables are undocumented and unsupported,
4426 # and are intended to be withdrawn in a future Autoconf release.
4427 # They can cause serious problems if a builder's source tree is in a directory
4428 # whose full name contains unusual characters.
4429 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4430 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4431 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4434 # Find a good install program. We prefer a C program (faster),
4435 # so one script is as good as another. But avoid the broken or
4436 # incompatible versions:
4437 # SysV /etc/install, /usr/sbin/install
4438 # SunOS /usr/etc/install
4439 # IRIX /sbin/install
4440 # AIX /bin/install
4441 # AmigaOS /C/install, which installs bootblocks on floppy discs
4442 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4443 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4444 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4445 # OS/2's system install, which has a completely different semantic
4446 # ./install, which can be erroneously created by make from ./install.sh.
4447 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4448 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4449 if test -z "$INSTALL"; then
4450 if test "${ac_cv_path_install+set}" = set; then
4451 echo $ECHO_N "(cached) $ECHO_C" >&6
4452 else
4453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4454 for as_dir in $PATH
4456 IFS=$as_save_IFS
4457 test -z "$as_dir" && as_dir=.
4458 # Account for people who put trailing slashes in PATH elements.
4459 case $as_dir/ in
4460 ./ | .// | /cC/* | \
4461 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4462 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4463 /usr/ucb/* ) ;;
4465 # OSF1 and SCO ODT 3.0 have their own names for install.
4466 # Don't use installbsd from OSF since it installs stuff as root
4467 # by default.
4468 for ac_prog in ginstall scoinst install; do
4469 for ac_exec_ext in '' $ac_executable_extensions; do
4470 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4471 if test $ac_prog = install &&
4472 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4473 # AIX install. It has an incompatible calling convention.
4475 elif test $ac_prog = install &&
4476 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4477 # program-specific install script used by HP pwplus--don't use.
4479 else
4480 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4481 break 3
4484 done
4485 done
4487 esac
4488 done
4489 IFS=$as_save_IFS
4493 if test "${ac_cv_path_install+set}" = set; then
4494 INSTALL=$ac_cv_path_install
4495 else
4496 # As a last resort, use the slow shell script. Don't cache a
4497 # value for INSTALL within a source directory, because that will
4498 # break other packages using the cache if that directory is
4499 # removed, or if the value is a relative name.
4500 INSTALL=$ac_install_sh
4503 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4504 echo "${ECHO_T}$INSTALL" >&6; }
4506 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4507 # It thinks the first close brace ends the variable substitution.
4508 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4510 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4512 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4515 # Not every filesystem supports hard links
4517 if test -z "$LN" ; then
4518 case $ac_sys_system in
4519 BeOS*) LN="ln -s";;
4520 CYGWIN*) LN="ln -s";;
4521 atheos*) LN="ln -s";;
4522 *) LN=ln;;
4523 esac
4526 # Check for --with-pydebug
4527 { echo "$as_me:$LINENO: checking for --with-pydebug" >&5
4528 echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6; }
4530 # Check whether --with-pydebug was given.
4531 if test "${with_pydebug+set}" = set; then
4532 withval=$with_pydebug;
4533 if test "$withval" != no
4534 then
4536 cat >>confdefs.h <<\_ACEOF
4537 #define Py_DEBUG 1
4538 _ACEOF
4540 { echo "$as_me:$LINENO: result: yes" >&5
4541 echo "${ECHO_T}yes" >&6; };
4542 Py_DEBUG='true'
4543 else { echo "$as_me:$LINENO: result: no" >&5
4544 echo "${ECHO_T}no" >&6; }; Py_DEBUG='false'
4546 else
4547 { echo "$as_me:$LINENO: result: no" >&5
4548 echo "${ECHO_T}no" >&6; }
4552 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
4553 # merged with this chunk of code?
4555 # Optimizer/debugger flags
4556 # ------------------------
4557 # (The following bit of code is complicated enough - please keep things
4558 # indented properly. Just pretend you're editing Python code. ;-)
4560 # There are two parallel sets of case statements below, one that checks to
4561 # see if OPT was set and one that does BASECFLAGS setting based upon
4562 # compiler and platform. BASECFLAGS tweaks need to be made even if the
4563 # user set OPT.
4565 # tweak OPT based on compiler and platform, only if the user didn't set
4566 # it on the command line
4568 if test -z "$OPT"
4569 then
4570 case $GCC in
4571 yes)
4572 if test "$CC" != 'g++' ; then
4573 STRICT_PROTO="-Wstrict-prototypes"
4575 # For gcc 4.x we need to use -fwrapv so lets check if its supported
4576 if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then
4577 WRAP="-fwrapv"
4579 case $ac_cv_prog_cc_g in
4580 yes)
4581 if test "$Py_DEBUG" = 'true' ; then
4582 # Optimization messes up debuggers, so turn it off for
4583 # debug builds.
4584 OPT="-g -Wall $STRICT_PROTO"
4585 else
4586 OPT="-g $WRAP -O3 -Wall $STRICT_PROTO"
4590 OPT="-O3 -Wall $STRICT_PROTO"
4592 esac
4593 case $ac_sys_system in
4594 SCO_SV*) OPT="$OPT -m486 -DSCO5"
4596 esac
4600 OPT="-O"
4602 esac
4607 # The -arch flags for universal builds on OSX
4608 UNIVERSAL_ARCH_FLAGS=
4611 # tweak BASECFLAGS based on compiler and platform
4612 case $GCC in
4613 yes)
4614 # Python violates C99 rules, by casting between incompatible
4615 # pointer types. GCC may generate bad code as a result of that,
4616 # so use -fno-strict-aliasing if supported.
4617 { echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5
4618 echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6; }
4619 ac_save_cc="$CC"
4620 CC="$CC -fno-strict-aliasing"
4621 if test "${ac_cv_no_strict_aliasing_ok+set}" = set; then
4622 echo $ECHO_N "(cached) $ECHO_C" >&6
4623 else
4624 cat >conftest.$ac_ext <<_ACEOF
4625 /* confdefs.h. */
4626 _ACEOF
4627 cat confdefs.h >>conftest.$ac_ext
4628 cat >>conftest.$ac_ext <<_ACEOF
4629 /* end confdefs.h. */
4632 main ()
4634 int main() { return 0; }
4636 return 0;
4638 _ACEOF
4639 rm -f conftest.$ac_objext
4640 if { (ac_try="$ac_compile"
4641 case "(($ac_try" in
4642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4643 *) ac_try_echo=$ac_try;;
4644 esac
4645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4646 (eval "$ac_compile") 2>conftest.er1
4647 ac_status=$?
4648 grep -v '^ *+' conftest.er1 >conftest.err
4649 rm -f conftest.er1
4650 cat conftest.err >&5
4651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4652 (exit $ac_status); } && {
4653 test -z "$ac_c_werror_flag" ||
4654 test ! -s conftest.err
4655 } && test -s conftest.$ac_objext; then
4656 ac_cv_no_strict_aliasing_ok=yes
4657 else
4658 echo "$as_me: failed program was:" >&5
4659 sed 's/^/| /' conftest.$ac_ext >&5
4661 ac_cv_no_strict_aliasing_ok=no
4664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4667 CC="$ac_save_cc"
4668 { echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5
4669 echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6; }
4670 if test $ac_cv_no_strict_aliasing_ok = yes
4671 then
4672 BASECFLAGS="$BASECFLAGS -fno-strict-aliasing"
4675 # if using gcc on alpha, use -mieee to get (near) full IEEE 754
4676 # support. Without this, treatment of subnormals doesn't follow
4677 # the standard.
4678 case $ac_sys_machine in
4679 alpha*)
4680 BASECFLAGS="$BASECFLAGS -mieee"
4682 esac
4684 case $ac_sys_system in
4685 SCO_SV*)
4686 BASECFLAGS="$BASECFLAGS -m486 -DSCO5"
4688 # is there any other compiler on Darwin besides gcc?
4689 Darwin*)
4690 # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd
4691 # used to be here, but non-Apple gcc doesn't accept them.
4694 if test "${enable_universalsdk}"; then
4695 UNIVERSAL_ARCH_FLAGS=""
4696 if test "$UNIVERSAL_ARCHS" = "32-bit" ; then
4697 UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386"
4698 ARCH_RUN_32BIT=""
4700 elif test "$UNIVERSAL_ARCHS" = "64-bit" ; then
4701 UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64"
4702 ARCH_RUN_32BIT="true"
4704 elif test "$UNIVERSAL_ARCHS" = "all" ; then
4705 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64"
4706 ARCH_RUN_32BIT="arch -i386 -ppc"
4708 elif test "$UNIVERSAL_ARCHS" = "intel" ; then
4709 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch x86_64"
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 ARCH_RUN_32BIT="arch -i386 -ppc"
4716 else
4717 { { echo "$as_me:$LINENO: error: proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" >&5
4718 echo "$as_me: error: proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" >&2;}
4719 { (exit 1); exit 1; }; }
4724 BASECFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${BASECFLAGS}"
4725 tgt=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
4726 if test "${UNIVERSALSDK}" != "/" -a "${tgt}" '>' '10.4' ; then
4727 CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}"
4731 # Calculate the right deployment target for this build.
4733 cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
4734 if test ${cur_target} '>' 10.2; then
4735 cur_target=10.3
4736 if test ${enable_universalsdk}; then
4737 if test "${UNIVERSAL_ARCHS}" = "all"; then
4738 # Ensure that the default platform for a
4739 # 4-way universal build is OSX 10.5,
4740 # that's the first OS release where
4741 # 4-way builds make sense.
4742 cur_target='10.5'
4744 elif test "${UNIVERSAL_ARCHS}" = "3-way"; then
4745 cur_target='10.5'
4747 elif test "${UNIVERSAL_ARCHS}" = "intel"; then
4748 cur_target='10.5'
4750 elif test "${UNIVERSAL_ARCHS}" = "64-bit"; then
4751 cur_target='10.5'
4753 else
4754 if test `arch` = "i386"; then
4755 # On Intel macs default to a deployment
4756 # target of 10.4, that's the first OSX
4757 # release with Intel support.
4758 cur_target="10.4"
4762 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
4764 # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the
4765 # environment with a value that is the same as what we'll use
4766 # in the Makefile to ensure that we'll get the same compiler
4767 # environment during configure and build time.
4768 MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET"
4769 export MACOSX_DEPLOYMENT_TARGET
4770 EXPORT_MACOSX_DEPLOYMENT_TARGET=''
4773 OSF*)
4774 BASECFLAGS="$BASECFLAGS -mieee"
4776 esac
4780 case $ac_sys_system in
4781 OpenUNIX*|UnixWare*)
4782 BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
4784 OSF*)
4785 BASECFLAGS="$BASECFLAGS -ieee -std"
4787 SCO_SV*)
4788 BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5"
4790 esac
4792 esac
4794 if test "$Py_DEBUG" = 'true'; then
4796 else
4797 OPT="-DNDEBUG $OPT"
4800 if test "$ac_arch_flags"
4801 then
4802 BASECFLAGS="$BASECFLAGS $ac_arch_flags"
4805 # disable check for icc since it seems to pass, but generates a warning
4806 if test "$CC" = icc
4807 then
4808 ac_cv_opt_olimit_ok=no
4811 { echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
4812 echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6; }
4813 if test "${ac_cv_opt_olimit_ok+set}" = set; then
4814 echo $ECHO_N "(cached) $ECHO_C" >&6
4815 else
4816 ac_save_cc="$CC"
4817 CC="$CC -OPT:Olimit=0"
4818 cat >conftest.$ac_ext <<_ACEOF
4819 /* confdefs.h. */
4820 _ACEOF
4821 cat confdefs.h >>conftest.$ac_ext
4822 cat >>conftest.$ac_ext <<_ACEOF
4823 /* end confdefs.h. */
4826 main ()
4828 int main() { return 0; }
4830 return 0;
4832 _ACEOF
4833 rm -f conftest.$ac_objext
4834 if { (ac_try="$ac_compile"
4835 case "(($ac_try" in
4836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4837 *) ac_try_echo=$ac_try;;
4838 esac
4839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4840 (eval "$ac_compile") 2>conftest.er1
4841 ac_status=$?
4842 grep -v '^ *+' conftest.er1 >conftest.err
4843 rm -f conftest.er1
4844 cat conftest.err >&5
4845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4846 (exit $ac_status); } && {
4847 test -z "$ac_c_werror_flag" ||
4848 test ! -s conftest.err
4849 } && test -s conftest.$ac_objext; then
4850 ac_cv_opt_olimit_ok=yes
4851 else
4852 echo "$as_me: failed program was:" >&5
4853 sed 's/^/| /' conftest.$ac_ext >&5
4855 ac_cv_opt_olimit_ok=no
4858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4859 CC="$ac_save_cc"
4862 { echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
4863 echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6; }
4864 if test $ac_cv_opt_olimit_ok = yes; then
4865 case $ac_sys_system in
4866 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
4867 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
4868 # environment?
4869 Darwin*)
4872 BASECFLAGS="$BASECFLAGS -OPT:Olimit=0"
4874 esac
4875 else
4876 { echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
4877 echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6; }
4878 if test "${ac_cv_olimit_ok+set}" = set; then
4879 echo $ECHO_N "(cached) $ECHO_C" >&6
4880 else
4881 ac_save_cc="$CC"
4882 CC="$CC -Olimit 1500"
4883 cat >conftest.$ac_ext <<_ACEOF
4884 /* confdefs.h. */
4885 _ACEOF
4886 cat confdefs.h >>conftest.$ac_ext
4887 cat >>conftest.$ac_ext <<_ACEOF
4888 /* end confdefs.h. */
4891 main ()
4893 int main() { return 0; }
4895 return 0;
4897 _ACEOF
4898 rm -f conftest.$ac_objext
4899 if { (ac_try="$ac_compile"
4900 case "(($ac_try" in
4901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4902 *) ac_try_echo=$ac_try;;
4903 esac
4904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4905 (eval "$ac_compile") 2>conftest.er1
4906 ac_status=$?
4907 grep -v '^ *+' conftest.er1 >conftest.err
4908 rm -f conftest.er1
4909 cat conftest.err >&5
4910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4911 (exit $ac_status); } && {
4912 test -z "$ac_c_werror_flag" ||
4913 test ! -s conftest.err
4914 } && test -s conftest.$ac_objext; then
4915 ac_cv_olimit_ok=yes
4916 else
4917 echo "$as_me: failed program was:" >&5
4918 sed 's/^/| /' conftest.$ac_ext >&5
4920 ac_cv_olimit_ok=no
4923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4924 CC="$ac_save_cc"
4927 { echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
4928 echo "${ECHO_T}$ac_cv_olimit_ok" >&6; }
4929 if test $ac_cv_olimit_ok = yes; then
4930 BASECFLAGS="$BASECFLAGS -Olimit 1500"
4934 # Check whether GCC supports PyArg_ParseTuple format
4935 if test "$GCC" = "yes"
4936 then
4937 { echo "$as_me:$LINENO: checking whether gcc supports ParseTuple __format__" >&5
4938 echo $ECHO_N "checking whether gcc supports ParseTuple __format__... $ECHO_C" >&6; }
4939 save_CFLAGS=$CFLAGS
4940 CFLAGS="$CFLAGS -Werror"
4941 cat >conftest.$ac_ext <<_ACEOF
4942 /* confdefs.h. */
4943 _ACEOF
4944 cat confdefs.h >>conftest.$ac_ext
4945 cat >>conftest.$ac_ext <<_ACEOF
4946 /* end confdefs.h. */
4948 void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2)));
4951 main ()
4955 return 0;
4957 _ACEOF
4958 rm -f conftest.$ac_objext
4959 if { (ac_try="$ac_compile"
4960 case "(($ac_try" in
4961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4962 *) ac_try_echo=$ac_try;;
4963 esac
4964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4965 (eval "$ac_compile") 2>conftest.er1
4966 ac_status=$?
4967 grep -v '^ *+' conftest.er1 >conftest.err
4968 rm -f conftest.er1
4969 cat conftest.err >&5
4970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4971 (exit $ac_status); } && {
4972 test -z "$ac_c_werror_flag" ||
4973 test ! -s conftest.err
4974 } && test -s conftest.$ac_objext; then
4976 cat >>confdefs.h <<\_ACEOF
4977 #define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1
4978 _ACEOF
4980 { echo "$as_me:$LINENO: result: yes" >&5
4981 echo "${ECHO_T}yes" >&6; }
4982 else
4983 echo "$as_me: failed program was:" >&5
4984 sed 's/^/| /' conftest.$ac_ext >&5
4986 { echo "$as_me:$LINENO: result: no" >&5
4987 echo "${ECHO_T}no" >&6; }
4991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4992 CFLAGS=$save_CFLAGS
4995 # On some compilers, pthreads are available without further options
4996 # (e.g. MacOS X). On some of these systems, the compiler will not
4997 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
4998 # So we have to see first whether pthreads are available without
4999 # options before we can check whether -Kpthread improves anything.
5000 { echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
5001 echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6; }
5002 if test "${ac_cv_pthread_is_default+set}" = set; then
5003 echo $ECHO_N "(cached) $ECHO_C" >&6
5004 else
5005 if test "$cross_compiling" = yes; then
5006 ac_cv_pthread_is_default=no
5007 else
5008 cat >conftest.$ac_ext <<_ACEOF
5009 /* confdefs.h. */
5010 _ACEOF
5011 cat confdefs.h >>conftest.$ac_ext
5012 cat >>conftest.$ac_ext <<_ACEOF
5013 /* end confdefs.h. */
5015 #include <pthread.h>
5017 void* routine(void* p){return NULL;}
5019 int main(){
5020 pthread_t p;
5021 if(pthread_create(&p,NULL,routine,NULL)!=0)
5022 return 1;
5023 (void)pthread_detach(p);
5024 return 0;
5027 _ACEOF
5028 rm -f conftest$ac_exeext
5029 if { (ac_try="$ac_link"
5030 case "(($ac_try" in
5031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5032 *) ac_try_echo=$ac_try;;
5033 esac
5034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5035 (eval "$ac_link") 2>&5
5036 ac_status=$?
5037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5038 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5039 { (case "(($ac_try" in
5040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5041 *) ac_try_echo=$ac_try;;
5042 esac
5043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5044 (eval "$ac_try") 2>&5
5045 ac_status=$?
5046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5047 (exit $ac_status); }; }; then
5049 ac_cv_pthread_is_default=yes
5050 ac_cv_kthread=no
5051 ac_cv_pthread=no
5053 else
5054 echo "$as_me: program exited with status $ac_status" >&5
5055 echo "$as_me: failed program was:" >&5
5056 sed 's/^/| /' conftest.$ac_ext >&5
5058 ( exit $ac_status )
5059 ac_cv_pthread_is_default=no
5061 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5068 { echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
5069 echo "${ECHO_T}$ac_cv_pthread_is_default" >&6; }
5072 if test $ac_cv_pthread_is_default = yes
5073 then
5074 ac_cv_kpthread=no
5075 else
5076 # -Kpthread, if available, provides the right #defines
5077 # and linker options to make pthread_create available
5078 # Some compilers won't report that they do not support -Kpthread,
5079 # so we need to run a program to see whether it really made the
5080 # function available.
5081 { echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
5082 echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6; }
5083 if test "${ac_cv_kpthread+set}" = set; then
5084 echo $ECHO_N "(cached) $ECHO_C" >&6
5085 else
5086 ac_save_cc="$CC"
5087 CC="$CC -Kpthread"
5088 if test "$cross_compiling" = yes; then
5089 ac_cv_kpthread=no
5090 else
5091 cat >conftest.$ac_ext <<_ACEOF
5092 /* confdefs.h. */
5093 _ACEOF
5094 cat confdefs.h >>conftest.$ac_ext
5095 cat >>conftest.$ac_ext <<_ACEOF
5096 /* end confdefs.h. */
5098 #include <pthread.h>
5100 void* routine(void* p){return NULL;}
5102 int main(){
5103 pthread_t p;
5104 if(pthread_create(&p,NULL,routine,NULL)!=0)
5105 return 1;
5106 (void)pthread_detach(p);
5107 return 0;
5110 _ACEOF
5111 rm -f conftest$ac_exeext
5112 if { (ac_try="$ac_link"
5113 case "(($ac_try" in
5114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5115 *) ac_try_echo=$ac_try;;
5116 esac
5117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5118 (eval "$ac_link") 2>&5
5119 ac_status=$?
5120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5121 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5122 { (case "(($ac_try" in
5123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5124 *) ac_try_echo=$ac_try;;
5125 esac
5126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5127 (eval "$ac_try") 2>&5
5128 ac_status=$?
5129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5130 (exit $ac_status); }; }; then
5131 ac_cv_kpthread=yes
5132 else
5133 echo "$as_me: program exited with status $ac_status" >&5
5134 echo "$as_me: failed program was:" >&5
5135 sed 's/^/| /' conftest.$ac_ext >&5
5137 ( exit $ac_status )
5138 ac_cv_kpthread=no
5140 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5144 CC="$ac_save_cc"
5147 { echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
5148 echo "${ECHO_T}$ac_cv_kpthread" >&6; }
5151 if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no
5152 then
5153 # -Kthread, if available, provides the right #defines
5154 # and linker options to make pthread_create available
5155 # Some compilers won't report that they do not support -Kthread,
5156 # so we need to run a program to see whether it really made the
5157 # function available.
5158 { echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
5159 echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6; }
5160 if test "${ac_cv_kthread+set}" = set; then
5161 echo $ECHO_N "(cached) $ECHO_C" >&6
5162 else
5163 ac_save_cc="$CC"
5164 CC="$CC -Kthread"
5165 if test "$cross_compiling" = yes; then
5166 ac_cv_kthread=no
5167 else
5168 cat >conftest.$ac_ext <<_ACEOF
5169 /* confdefs.h. */
5170 _ACEOF
5171 cat confdefs.h >>conftest.$ac_ext
5172 cat >>conftest.$ac_ext <<_ACEOF
5173 /* end confdefs.h. */
5175 #include <pthread.h>
5177 void* routine(void* p){return NULL;}
5179 int main(){
5180 pthread_t p;
5181 if(pthread_create(&p,NULL,routine,NULL)!=0)
5182 return 1;
5183 (void)pthread_detach(p);
5184 return 0;
5187 _ACEOF
5188 rm -f conftest$ac_exeext
5189 if { (ac_try="$ac_link"
5190 case "(($ac_try" in
5191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5192 *) ac_try_echo=$ac_try;;
5193 esac
5194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5195 (eval "$ac_link") 2>&5
5196 ac_status=$?
5197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5198 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5199 { (case "(($ac_try" in
5200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5201 *) ac_try_echo=$ac_try;;
5202 esac
5203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5204 (eval "$ac_try") 2>&5
5205 ac_status=$?
5206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5207 (exit $ac_status); }; }; then
5208 ac_cv_kthread=yes
5209 else
5210 echo "$as_me: program exited with status $ac_status" >&5
5211 echo "$as_me: failed program was:" >&5
5212 sed 's/^/| /' conftest.$ac_ext >&5
5214 ( exit $ac_status )
5215 ac_cv_kthread=no
5217 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5221 CC="$ac_save_cc"
5224 { echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
5225 echo "${ECHO_T}$ac_cv_kthread" >&6; }
5228 if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no
5229 then
5230 # -pthread, if available, provides the right #defines
5231 # and linker options to make pthread_create available
5232 # Some compilers won't report that they do not support -pthread,
5233 # so we need to run a program to see whether it really made the
5234 # function available.
5235 { echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
5236 echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6; }
5237 if test "${ac_cv_thread+set}" = set; then
5238 echo $ECHO_N "(cached) $ECHO_C" >&6
5239 else
5240 ac_save_cc="$CC"
5241 CC="$CC -pthread"
5242 if test "$cross_compiling" = yes; then
5243 ac_cv_pthread=no
5244 else
5245 cat >conftest.$ac_ext <<_ACEOF
5246 /* confdefs.h. */
5247 _ACEOF
5248 cat confdefs.h >>conftest.$ac_ext
5249 cat >>conftest.$ac_ext <<_ACEOF
5250 /* end confdefs.h. */
5252 #include <pthread.h>
5254 void* routine(void* p){return NULL;}
5256 int main(){
5257 pthread_t p;
5258 if(pthread_create(&p,NULL,routine,NULL)!=0)
5259 return 1;
5260 (void)pthread_detach(p);
5261 return 0;
5264 _ACEOF
5265 rm -f conftest$ac_exeext
5266 if { (ac_try="$ac_link"
5267 case "(($ac_try" in
5268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5269 *) ac_try_echo=$ac_try;;
5270 esac
5271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5272 (eval "$ac_link") 2>&5
5273 ac_status=$?
5274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5275 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5276 { (case "(($ac_try" in
5277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5278 *) ac_try_echo=$ac_try;;
5279 esac
5280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5281 (eval "$ac_try") 2>&5
5282 ac_status=$?
5283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5284 (exit $ac_status); }; }; then
5285 ac_cv_pthread=yes
5286 else
5287 echo "$as_me: program exited with status $ac_status" >&5
5288 echo "$as_me: failed program was:" >&5
5289 sed 's/^/| /' conftest.$ac_ext >&5
5291 ( exit $ac_status )
5292 ac_cv_pthread=no
5294 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5298 CC="$ac_save_cc"
5301 { echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
5302 echo "${ECHO_T}$ac_cv_pthread" >&6; }
5305 # If we have set a CC compiler flag for thread support then
5306 # check if it works for CXX, too.
5307 ac_cv_cxx_thread=no
5308 if test ! -z "$CXX"
5309 then
5310 { echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5
5311 echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6; }
5312 ac_save_cxx="$CXX"
5314 if test "$ac_cv_kpthread" = "yes"
5315 then
5316 CXX="$CXX -Kpthread"
5317 ac_cv_cxx_thread=yes
5318 elif test "$ac_cv_kthread" = "yes"
5319 then
5320 CXX="$CXX -Kthread"
5321 ac_cv_cxx_thread=yes
5322 elif test "$ac_cv_pthread" = "yes"
5323 then
5324 CXX="$CXX -pthread"
5325 ac_cv_cxx_thread=yes
5328 if test $ac_cv_cxx_thread = yes
5329 then
5330 echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext
5331 $CXX -c conftest.$ac_ext 2>&5
5332 if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \
5333 && test -s conftest$ac_exeext && ./conftest$ac_exeext
5334 then
5335 ac_cv_cxx_thread=yes
5336 else
5337 ac_cv_cxx_thread=no
5339 rm -fr conftest*
5341 { echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
5342 echo "${ECHO_T}$ac_cv_cxx_thread" >&6; }
5344 CXX="$ac_save_cxx"
5347 # checks for header files
5348 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5349 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5350 if test "${ac_cv_header_stdc+set}" = set; then
5351 echo $ECHO_N "(cached) $ECHO_C" >&6
5352 else
5353 cat >conftest.$ac_ext <<_ACEOF
5354 /* confdefs.h. */
5355 _ACEOF
5356 cat confdefs.h >>conftest.$ac_ext
5357 cat >>conftest.$ac_ext <<_ACEOF
5358 /* end confdefs.h. */
5359 #include <stdlib.h>
5360 #include <stdarg.h>
5361 #include <string.h>
5362 #include <float.h>
5365 main ()
5369 return 0;
5371 _ACEOF
5372 rm -f conftest.$ac_objext
5373 if { (ac_try="$ac_compile"
5374 case "(($ac_try" in
5375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5376 *) ac_try_echo=$ac_try;;
5377 esac
5378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5379 (eval "$ac_compile") 2>conftest.er1
5380 ac_status=$?
5381 grep -v '^ *+' conftest.er1 >conftest.err
5382 rm -f conftest.er1
5383 cat conftest.err >&5
5384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5385 (exit $ac_status); } && {
5386 test -z "$ac_c_werror_flag" ||
5387 test ! -s conftest.err
5388 } && test -s conftest.$ac_objext; then
5389 ac_cv_header_stdc=yes
5390 else
5391 echo "$as_me: failed program was:" >&5
5392 sed 's/^/| /' conftest.$ac_ext >&5
5394 ac_cv_header_stdc=no
5397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5399 if test $ac_cv_header_stdc = yes; then
5400 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5401 cat >conftest.$ac_ext <<_ACEOF
5402 /* confdefs.h. */
5403 _ACEOF
5404 cat confdefs.h >>conftest.$ac_ext
5405 cat >>conftest.$ac_ext <<_ACEOF
5406 /* end confdefs.h. */
5407 #include <string.h>
5409 _ACEOF
5410 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5411 $EGREP "memchr" >/dev/null 2>&1; then
5413 else
5414 ac_cv_header_stdc=no
5416 rm -f conftest*
5420 if test $ac_cv_header_stdc = yes; then
5421 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5422 cat >conftest.$ac_ext <<_ACEOF
5423 /* confdefs.h. */
5424 _ACEOF
5425 cat confdefs.h >>conftest.$ac_ext
5426 cat >>conftest.$ac_ext <<_ACEOF
5427 /* end confdefs.h. */
5428 #include <stdlib.h>
5430 _ACEOF
5431 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5432 $EGREP "free" >/dev/null 2>&1; then
5434 else
5435 ac_cv_header_stdc=no
5437 rm -f conftest*
5441 if test $ac_cv_header_stdc = yes; then
5442 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5443 if test "$cross_compiling" = yes; then
5445 else
5446 cat >conftest.$ac_ext <<_ACEOF
5447 /* confdefs.h. */
5448 _ACEOF
5449 cat confdefs.h >>conftest.$ac_ext
5450 cat >>conftest.$ac_ext <<_ACEOF
5451 /* end confdefs.h. */
5452 #include <ctype.h>
5453 #include <stdlib.h>
5454 #if ((' ' & 0x0FF) == 0x020)
5455 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5456 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5457 #else
5458 # define ISLOWER(c) \
5459 (('a' <= (c) && (c) <= 'i') \
5460 || ('j' <= (c) && (c) <= 'r') \
5461 || ('s' <= (c) && (c) <= 'z'))
5462 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5463 #endif
5465 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5467 main ()
5469 int i;
5470 for (i = 0; i < 256; i++)
5471 if (XOR (islower (i), ISLOWER (i))
5472 || toupper (i) != TOUPPER (i))
5473 return 2;
5474 return 0;
5476 _ACEOF
5477 rm -f conftest$ac_exeext
5478 if { (ac_try="$ac_link"
5479 case "(($ac_try" in
5480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5481 *) ac_try_echo=$ac_try;;
5482 esac
5483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5484 (eval "$ac_link") 2>&5
5485 ac_status=$?
5486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5487 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5488 { (case "(($ac_try" in
5489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5490 *) ac_try_echo=$ac_try;;
5491 esac
5492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5493 (eval "$ac_try") 2>&5
5494 ac_status=$?
5495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5496 (exit $ac_status); }; }; then
5498 else
5499 echo "$as_me: program exited with status $ac_status" >&5
5500 echo "$as_me: failed program was:" >&5
5501 sed 's/^/| /' conftest.$ac_ext >&5
5503 ( exit $ac_status )
5504 ac_cv_header_stdc=no
5506 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5512 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5513 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5514 if test $ac_cv_header_stdc = yes; then
5516 cat >>confdefs.h <<\_ACEOF
5517 #define STDC_HEADERS 1
5518 _ACEOF
5522 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5532 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5533 inttypes.h stdint.h unistd.h
5535 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5536 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5537 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5538 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5539 echo $ECHO_N "(cached) $ECHO_C" >&6
5540 else
5541 cat >conftest.$ac_ext <<_ACEOF
5542 /* confdefs.h. */
5543 _ACEOF
5544 cat confdefs.h >>conftest.$ac_ext
5545 cat >>conftest.$ac_ext <<_ACEOF
5546 /* end confdefs.h. */
5547 $ac_includes_default
5549 #include <$ac_header>
5550 _ACEOF
5551 rm -f conftest.$ac_objext
5552 if { (ac_try="$ac_compile"
5553 case "(($ac_try" in
5554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5555 *) ac_try_echo=$ac_try;;
5556 esac
5557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5558 (eval "$ac_compile") 2>conftest.er1
5559 ac_status=$?
5560 grep -v '^ *+' conftest.er1 >conftest.err
5561 rm -f conftest.er1
5562 cat conftest.err >&5
5563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5564 (exit $ac_status); } && {
5565 test -z "$ac_c_werror_flag" ||
5566 test ! -s conftest.err
5567 } && test -s conftest.$ac_objext; then
5568 eval "$as_ac_Header=yes"
5569 else
5570 echo "$as_me: failed program was:" >&5
5571 sed 's/^/| /' conftest.$ac_ext >&5
5573 eval "$as_ac_Header=no"
5576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5578 ac_res=`eval echo '${'$as_ac_Header'}'`
5579 { echo "$as_me:$LINENO: result: $ac_res" >&5
5580 echo "${ECHO_T}$ac_res" >&6; }
5581 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5582 cat >>confdefs.h <<_ACEOF
5583 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5584 _ACEOF
5588 done
5645 for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \
5646 fcntl.h grp.h \
5647 ieeefp.h io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \
5648 shadow.h signal.h stdint.h stropts.h termios.h thread.h \
5649 unistd.h utime.h \
5650 sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \
5651 sys/lock.h sys/mkdev.h sys/modem.h \
5652 sys/param.h sys/poll.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \
5653 sys/termio.h sys/time.h \
5654 sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \
5655 sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
5656 bluetooth/bluetooth.h linux/tipc.h
5658 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5659 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5660 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5661 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5662 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5663 echo $ECHO_N "(cached) $ECHO_C" >&6
5665 ac_res=`eval echo '${'$as_ac_Header'}'`
5666 { echo "$as_me:$LINENO: result: $ac_res" >&5
5667 echo "${ECHO_T}$ac_res" >&6; }
5668 else
5669 # Is the header compilable?
5670 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5671 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5672 cat >conftest.$ac_ext <<_ACEOF
5673 /* confdefs.h. */
5674 _ACEOF
5675 cat confdefs.h >>conftest.$ac_ext
5676 cat >>conftest.$ac_ext <<_ACEOF
5677 /* end confdefs.h. */
5678 $ac_includes_default
5679 #include <$ac_header>
5680 _ACEOF
5681 rm -f conftest.$ac_objext
5682 if { (ac_try="$ac_compile"
5683 case "(($ac_try" in
5684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5685 *) ac_try_echo=$ac_try;;
5686 esac
5687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5688 (eval "$ac_compile") 2>conftest.er1
5689 ac_status=$?
5690 grep -v '^ *+' conftest.er1 >conftest.err
5691 rm -f conftest.er1
5692 cat conftest.err >&5
5693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694 (exit $ac_status); } && {
5695 test -z "$ac_c_werror_flag" ||
5696 test ! -s conftest.err
5697 } && test -s conftest.$ac_objext; then
5698 ac_header_compiler=yes
5699 else
5700 echo "$as_me: failed program was:" >&5
5701 sed 's/^/| /' conftest.$ac_ext >&5
5703 ac_header_compiler=no
5706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5707 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5708 echo "${ECHO_T}$ac_header_compiler" >&6; }
5710 # Is the header present?
5711 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5712 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5713 cat >conftest.$ac_ext <<_ACEOF
5714 /* confdefs.h. */
5715 _ACEOF
5716 cat confdefs.h >>conftest.$ac_ext
5717 cat >>conftest.$ac_ext <<_ACEOF
5718 /* end confdefs.h. */
5719 #include <$ac_header>
5720 _ACEOF
5721 if { (ac_try="$ac_cpp conftest.$ac_ext"
5722 case "(($ac_try" in
5723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5724 *) ac_try_echo=$ac_try;;
5725 esac
5726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5727 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5728 ac_status=$?
5729 grep -v '^ *+' conftest.er1 >conftest.err
5730 rm -f conftest.er1
5731 cat conftest.err >&5
5732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5733 (exit $ac_status); } >/dev/null && {
5734 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5735 test ! -s conftest.err
5736 }; then
5737 ac_header_preproc=yes
5738 else
5739 echo "$as_me: failed program was:" >&5
5740 sed 's/^/| /' conftest.$ac_ext >&5
5742 ac_header_preproc=no
5745 rm -f conftest.err conftest.$ac_ext
5746 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5747 echo "${ECHO_T}$ac_header_preproc" >&6; }
5749 # So? What about this header?
5750 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5751 yes:no: )
5752 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5753 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5754 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5755 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5756 ac_header_preproc=yes
5758 no:yes:* )
5759 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5760 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5761 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5762 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5763 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5764 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5765 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5766 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5767 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5768 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5769 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5770 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5771 ( cat <<\_ASBOX
5772 ## -------------------------------------- ##
5773 ## Report this to http://bugs.python.org/ ##
5774 ## -------------------------------------- ##
5775 _ASBOX
5776 ) | sed "s/^/$as_me: WARNING: /" >&2
5778 esac
5779 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5780 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5781 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5782 echo $ECHO_N "(cached) $ECHO_C" >&6
5783 else
5784 eval "$as_ac_Header=\$ac_header_preproc"
5786 ac_res=`eval echo '${'$as_ac_Header'}'`
5787 { echo "$as_me:$LINENO: result: $ac_res" >&5
5788 echo "${ECHO_T}$ac_res" >&6; }
5791 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5792 cat >>confdefs.h <<_ACEOF
5793 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5794 _ACEOF
5798 done
5805 ac_header_dirent=no
5806 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5807 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5808 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5809 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
5810 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5811 echo $ECHO_N "(cached) $ECHO_C" >&6
5812 else
5813 cat >conftest.$ac_ext <<_ACEOF
5814 /* confdefs.h. */
5815 _ACEOF
5816 cat confdefs.h >>conftest.$ac_ext
5817 cat >>conftest.$ac_ext <<_ACEOF
5818 /* end confdefs.h. */
5819 #include <sys/types.h>
5820 #include <$ac_hdr>
5823 main ()
5825 if ((DIR *) 0)
5826 return 0;
5828 return 0;
5830 _ACEOF
5831 rm -f conftest.$ac_objext
5832 if { (ac_try="$ac_compile"
5833 case "(($ac_try" in
5834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5835 *) ac_try_echo=$ac_try;;
5836 esac
5837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5838 (eval "$ac_compile") 2>conftest.er1
5839 ac_status=$?
5840 grep -v '^ *+' conftest.er1 >conftest.err
5841 rm -f conftest.er1
5842 cat conftest.err >&5
5843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5844 (exit $ac_status); } && {
5845 test -z "$ac_c_werror_flag" ||
5846 test ! -s conftest.err
5847 } && test -s conftest.$ac_objext; then
5848 eval "$as_ac_Header=yes"
5849 else
5850 echo "$as_me: failed program was:" >&5
5851 sed 's/^/| /' conftest.$ac_ext >&5
5853 eval "$as_ac_Header=no"
5856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5858 ac_res=`eval echo '${'$as_ac_Header'}'`
5859 { echo "$as_me:$LINENO: result: $ac_res" >&5
5860 echo "${ECHO_T}$ac_res" >&6; }
5861 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5862 cat >>confdefs.h <<_ACEOF
5863 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5864 _ACEOF
5866 ac_header_dirent=$ac_hdr; break
5869 done
5870 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5871 if test $ac_header_dirent = dirent.h; then
5872 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5873 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5874 if test "${ac_cv_search_opendir+set}" = set; then
5875 echo $ECHO_N "(cached) $ECHO_C" >&6
5876 else
5877 ac_func_search_save_LIBS=$LIBS
5878 cat >conftest.$ac_ext <<_ACEOF
5879 /* confdefs.h. */
5880 _ACEOF
5881 cat confdefs.h >>conftest.$ac_ext
5882 cat >>conftest.$ac_ext <<_ACEOF
5883 /* end confdefs.h. */
5885 /* Override any GCC internal prototype to avoid an error.
5886 Use char because int might match the return type of a GCC
5887 builtin and then its argument prototype would still apply. */
5888 #ifdef __cplusplus
5889 extern "C"
5890 #endif
5891 char opendir ();
5893 main ()
5895 return opendir ();
5897 return 0;
5899 _ACEOF
5900 for ac_lib in '' dir; do
5901 if test -z "$ac_lib"; then
5902 ac_res="none required"
5903 else
5904 ac_res=-l$ac_lib
5905 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5907 rm -f conftest.$ac_objext conftest$ac_exeext
5908 if { (ac_try="$ac_link"
5909 case "(($ac_try" in
5910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5911 *) ac_try_echo=$ac_try;;
5912 esac
5913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5914 (eval "$ac_link") 2>conftest.er1
5915 ac_status=$?
5916 grep -v '^ *+' conftest.er1 >conftest.err
5917 rm -f conftest.er1
5918 cat conftest.err >&5
5919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920 (exit $ac_status); } && {
5921 test -z "$ac_c_werror_flag" ||
5922 test ! -s conftest.err
5923 } && test -s conftest$ac_exeext &&
5924 $as_test_x conftest$ac_exeext; then
5925 ac_cv_search_opendir=$ac_res
5926 else
5927 echo "$as_me: failed program was:" >&5
5928 sed 's/^/| /' conftest.$ac_ext >&5
5933 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5934 conftest$ac_exeext
5935 if test "${ac_cv_search_opendir+set}" = set; then
5936 break
5938 done
5939 if test "${ac_cv_search_opendir+set}" = set; then
5941 else
5942 ac_cv_search_opendir=no
5944 rm conftest.$ac_ext
5945 LIBS=$ac_func_search_save_LIBS
5947 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5948 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5949 ac_res=$ac_cv_search_opendir
5950 if test "$ac_res" != no; then
5951 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5955 else
5956 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5957 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5958 if test "${ac_cv_search_opendir+set}" = set; then
5959 echo $ECHO_N "(cached) $ECHO_C" >&6
5960 else
5961 ac_func_search_save_LIBS=$LIBS
5962 cat >conftest.$ac_ext <<_ACEOF
5963 /* confdefs.h. */
5964 _ACEOF
5965 cat confdefs.h >>conftest.$ac_ext
5966 cat >>conftest.$ac_ext <<_ACEOF
5967 /* end confdefs.h. */
5969 /* Override any GCC internal prototype to avoid an error.
5970 Use char because int might match the return type of a GCC
5971 builtin and then its argument prototype would still apply. */
5972 #ifdef __cplusplus
5973 extern "C"
5974 #endif
5975 char opendir ();
5977 main ()
5979 return opendir ();
5981 return 0;
5983 _ACEOF
5984 for ac_lib in '' x; do
5985 if test -z "$ac_lib"; then
5986 ac_res="none required"
5987 else
5988 ac_res=-l$ac_lib
5989 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5991 rm -f conftest.$ac_objext conftest$ac_exeext
5992 if { (ac_try="$ac_link"
5993 case "(($ac_try" in
5994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5995 *) ac_try_echo=$ac_try;;
5996 esac
5997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5998 (eval "$ac_link") 2>conftest.er1
5999 ac_status=$?
6000 grep -v '^ *+' conftest.er1 >conftest.err
6001 rm -f conftest.er1
6002 cat conftest.err >&5
6003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004 (exit $ac_status); } && {
6005 test -z "$ac_c_werror_flag" ||
6006 test ! -s conftest.err
6007 } && test -s conftest$ac_exeext &&
6008 $as_test_x conftest$ac_exeext; then
6009 ac_cv_search_opendir=$ac_res
6010 else
6011 echo "$as_me: failed program was:" >&5
6012 sed 's/^/| /' conftest.$ac_ext >&5
6017 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6018 conftest$ac_exeext
6019 if test "${ac_cv_search_opendir+set}" = set; then
6020 break
6022 done
6023 if test "${ac_cv_search_opendir+set}" = set; then
6025 else
6026 ac_cv_search_opendir=no
6028 rm conftest.$ac_ext
6029 LIBS=$ac_func_search_save_LIBS
6031 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6032 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
6033 ac_res=$ac_cv_search_opendir
6034 if test "$ac_res" != no; then
6035 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6041 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
6042 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
6043 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
6044 echo $ECHO_N "(cached) $ECHO_C" >&6
6045 else
6046 cat >conftest.$ac_ext <<_ACEOF
6047 /* confdefs.h. */
6048 _ACEOF
6049 cat confdefs.h >>conftest.$ac_ext
6050 cat >>conftest.$ac_ext <<_ACEOF
6051 /* end confdefs.h. */
6052 #include <sys/types.h>
6054 main ()
6056 return makedev(0, 0);
6058 return 0;
6060 _ACEOF
6061 rm -f conftest.$ac_objext conftest$ac_exeext
6062 if { (ac_try="$ac_link"
6063 case "(($ac_try" in
6064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6065 *) ac_try_echo=$ac_try;;
6066 esac
6067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6068 (eval "$ac_link") 2>conftest.er1
6069 ac_status=$?
6070 grep -v '^ *+' conftest.er1 >conftest.err
6071 rm -f conftest.er1
6072 cat conftest.err >&5
6073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6074 (exit $ac_status); } && {
6075 test -z "$ac_c_werror_flag" ||
6076 test ! -s conftest.err
6077 } && test -s conftest$ac_exeext &&
6078 $as_test_x conftest$ac_exeext; then
6079 ac_cv_header_sys_types_h_makedev=yes
6080 else
6081 echo "$as_me: failed program was:" >&5
6082 sed 's/^/| /' conftest.$ac_ext >&5
6084 ac_cv_header_sys_types_h_makedev=no
6087 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6088 conftest$ac_exeext conftest.$ac_ext
6091 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
6092 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
6094 if test $ac_cv_header_sys_types_h_makedev = no; then
6095 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6096 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6097 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
6098 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6099 echo $ECHO_N "(cached) $ECHO_C" >&6
6101 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6102 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
6103 else
6104 # Is the header compilable?
6105 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
6106 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
6107 cat >conftest.$ac_ext <<_ACEOF
6108 /* confdefs.h. */
6109 _ACEOF
6110 cat confdefs.h >>conftest.$ac_ext
6111 cat >>conftest.$ac_ext <<_ACEOF
6112 /* end confdefs.h. */
6113 $ac_includes_default
6114 #include <sys/mkdev.h>
6115 _ACEOF
6116 rm -f conftest.$ac_objext
6117 if { (ac_try="$ac_compile"
6118 case "(($ac_try" in
6119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6120 *) ac_try_echo=$ac_try;;
6121 esac
6122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6123 (eval "$ac_compile") 2>conftest.er1
6124 ac_status=$?
6125 grep -v '^ *+' conftest.er1 >conftest.err
6126 rm -f conftest.er1
6127 cat conftest.err >&5
6128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129 (exit $ac_status); } && {
6130 test -z "$ac_c_werror_flag" ||
6131 test ! -s conftest.err
6132 } && test -s conftest.$ac_objext; then
6133 ac_header_compiler=yes
6134 else
6135 echo "$as_me: failed program was:" >&5
6136 sed 's/^/| /' conftest.$ac_ext >&5
6138 ac_header_compiler=no
6141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6142 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6143 echo "${ECHO_T}$ac_header_compiler" >&6; }
6145 # Is the header present?
6146 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
6147 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
6148 cat >conftest.$ac_ext <<_ACEOF
6149 /* confdefs.h. */
6150 _ACEOF
6151 cat confdefs.h >>conftest.$ac_ext
6152 cat >>conftest.$ac_ext <<_ACEOF
6153 /* end confdefs.h. */
6154 #include <sys/mkdev.h>
6155 _ACEOF
6156 if { (ac_try="$ac_cpp conftest.$ac_ext"
6157 case "(($ac_try" in
6158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6159 *) ac_try_echo=$ac_try;;
6160 esac
6161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6162 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6163 ac_status=$?
6164 grep -v '^ *+' conftest.er1 >conftest.err
6165 rm -f conftest.er1
6166 cat conftest.err >&5
6167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6168 (exit $ac_status); } >/dev/null && {
6169 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6170 test ! -s conftest.err
6171 }; then
6172 ac_header_preproc=yes
6173 else
6174 echo "$as_me: failed program was:" >&5
6175 sed 's/^/| /' conftest.$ac_ext >&5
6177 ac_header_preproc=no
6180 rm -f conftest.err conftest.$ac_ext
6181 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6182 echo "${ECHO_T}$ac_header_preproc" >&6; }
6184 # So? What about this header?
6185 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6186 yes:no: )
6187 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
6188 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6189 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
6190 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
6191 ac_header_preproc=yes
6193 no:yes:* )
6194 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
6195 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
6196 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
6197 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
6198 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
6199 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
6200 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
6201 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
6202 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
6203 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
6204 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
6205 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
6206 ( cat <<\_ASBOX
6207 ## -------------------------------------- ##
6208 ## Report this to http://bugs.python.org/ ##
6209 ## -------------------------------------- ##
6210 _ASBOX
6211 ) | sed "s/^/$as_me: WARNING: /" >&2
6213 esac
6214 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6215 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
6216 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6217 echo $ECHO_N "(cached) $ECHO_C" >&6
6218 else
6219 ac_cv_header_sys_mkdev_h=$ac_header_preproc
6221 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6222 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
6225 if test $ac_cv_header_sys_mkdev_h = yes; then
6227 cat >>confdefs.h <<\_ACEOF
6228 #define MAJOR_IN_MKDEV 1
6229 _ACEOF
6235 if test $ac_cv_header_sys_mkdev_h = no; then
6236 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6237 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6238 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6239 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6240 echo $ECHO_N "(cached) $ECHO_C" >&6
6242 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6243 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6244 else
6245 # Is the header compilable?
6246 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
6247 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
6248 cat >conftest.$ac_ext <<_ACEOF
6249 /* confdefs.h. */
6250 _ACEOF
6251 cat confdefs.h >>conftest.$ac_ext
6252 cat >>conftest.$ac_ext <<_ACEOF
6253 /* end confdefs.h. */
6254 $ac_includes_default
6255 #include <sys/sysmacros.h>
6256 _ACEOF
6257 rm -f conftest.$ac_objext
6258 if { (ac_try="$ac_compile"
6259 case "(($ac_try" in
6260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6261 *) ac_try_echo=$ac_try;;
6262 esac
6263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6264 (eval "$ac_compile") 2>conftest.er1
6265 ac_status=$?
6266 grep -v '^ *+' conftest.er1 >conftest.err
6267 rm -f conftest.er1
6268 cat conftest.err >&5
6269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6270 (exit $ac_status); } && {
6271 test -z "$ac_c_werror_flag" ||
6272 test ! -s conftest.err
6273 } && test -s conftest.$ac_objext; then
6274 ac_header_compiler=yes
6275 else
6276 echo "$as_me: failed program was:" >&5
6277 sed 's/^/| /' conftest.$ac_ext >&5
6279 ac_header_compiler=no
6282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6283 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6284 echo "${ECHO_T}$ac_header_compiler" >&6; }
6286 # Is the header present?
6287 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
6288 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
6289 cat >conftest.$ac_ext <<_ACEOF
6290 /* confdefs.h. */
6291 _ACEOF
6292 cat confdefs.h >>conftest.$ac_ext
6293 cat >>conftest.$ac_ext <<_ACEOF
6294 /* end confdefs.h. */
6295 #include <sys/sysmacros.h>
6296 _ACEOF
6297 if { (ac_try="$ac_cpp conftest.$ac_ext"
6298 case "(($ac_try" in
6299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6300 *) ac_try_echo=$ac_try;;
6301 esac
6302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6303 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6304 ac_status=$?
6305 grep -v '^ *+' conftest.er1 >conftest.err
6306 rm -f conftest.er1
6307 cat conftest.err >&5
6308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6309 (exit $ac_status); } >/dev/null && {
6310 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6311 test ! -s conftest.err
6312 }; then
6313 ac_header_preproc=yes
6314 else
6315 echo "$as_me: failed program was:" >&5
6316 sed 's/^/| /' conftest.$ac_ext >&5
6318 ac_header_preproc=no
6321 rm -f conftest.err conftest.$ac_ext
6322 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6323 echo "${ECHO_T}$ac_header_preproc" >&6; }
6325 # So? What about this header?
6326 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6327 yes:no: )
6328 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
6329 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6330 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
6331 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
6332 ac_header_preproc=yes
6334 no:yes:* )
6335 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
6336 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
6337 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
6338 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
6339 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
6340 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
6341 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
6342 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
6343 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
6344 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
6345 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
6346 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
6347 ( cat <<\_ASBOX
6348 ## -------------------------------------- ##
6349 ## Report this to http://bugs.python.org/ ##
6350 ## -------------------------------------- ##
6351 _ASBOX
6352 ) | sed "s/^/$as_me: WARNING: /" >&2
6354 esac
6355 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6356 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6357 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6358 echo $ECHO_N "(cached) $ECHO_C" >&6
6359 else
6360 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
6362 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6363 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6366 if test $ac_cv_header_sys_sysmacros_h = yes; then
6368 cat >>confdefs.h <<\_ACEOF
6369 #define MAJOR_IN_SYSMACROS 1
6370 _ACEOF
6379 # On Solaris, term.h requires curses.h
6381 for ac_header in term.h
6383 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6384 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6385 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6386 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6387 echo $ECHO_N "(cached) $ECHO_C" >&6
6388 else
6389 cat >conftest.$ac_ext <<_ACEOF
6390 /* confdefs.h. */
6391 _ACEOF
6392 cat confdefs.h >>conftest.$ac_ext
6393 cat >>conftest.$ac_ext <<_ACEOF
6394 /* end confdefs.h. */
6396 #ifdef HAVE_CURSES_H
6397 #include <curses.h>
6398 #endif
6401 #include <$ac_header>
6402 _ACEOF
6403 rm -f conftest.$ac_objext
6404 if { (ac_try="$ac_compile"
6405 case "(($ac_try" in
6406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6407 *) ac_try_echo=$ac_try;;
6408 esac
6409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6410 (eval "$ac_compile") 2>conftest.er1
6411 ac_status=$?
6412 grep -v '^ *+' conftest.er1 >conftest.err
6413 rm -f conftest.er1
6414 cat conftest.err >&5
6415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6416 (exit $ac_status); } && {
6417 test -z "$ac_c_werror_flag" ||
6418 test ! -s conftest.err
6419 } && test -s conftest.$ac_objext; then
6420 eval "$as_ac_Header=yes"
6421 else
6422 echo "$as_me: failed program was:" >&5
6423 sed 's/^/| /' conftest.$ac_ext >&5
6425 eval "$as_ac_Header=no"
6428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6430 ac_res=`eval echo '${'$as_ac_Header'}'`
6431 { echo "$as_me:$LINENO: result: $ac_res" >&5
6432 echo "${ECHO_T}$ac_res" >&6; }
6433 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6434 cat >>confdefs.h <<_ACEOF
6435 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6436 _ACEOF
6440 done
6443 # On Linux, netlink.h requires asm/types.h
6445 for ac_header in linux/netlink.h
6447 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6448 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6449 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6450 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6451 echo $ECHO_N "(cached) $ECHO_C" >&6
6452 else
6453 cat >conftest.$ac_ext <<_ACEOF
6454 /* confdefs.h. */
6455 _ACEOF
6456 cat confdefs.h >>conftest.$ac_ext
6457 cat >>conftest.$ac_ext <<_ACEOF
6458 /* end confdefs.h. */
6460 #ifdef HAVE_ASM_TYPES_H
6461 #include <asm/types.h>
6462 #endif
6463 #ifdef HAVE_SYS_SOCKET_H
6464 #include <sys/socket.h>
6465 #endif
6468 #include <$ac_header>
6469 _ACEOF
6470 rm -f conftest.$ac_objext
6471 if { (ac_try="$ac_compile"
6472 case "(($ac_try" in
6473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6474 *) ac_try_echo=$ac_try;;
6475 esac
6476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6477 (eval "$ac_compile") 2>conftest.er1
6478 ac_status=$?
6479 grep -v '^ *+' conftest.er1 >conftest.err
6480 rm -f conftest.er1
6481 cat conftest.err >&5
6482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6483 (exit $ac_status); } && {
6484 test -z "$ac_c_werror_flag" ||
6485 test ! -s conftest.err
6486 } && test -s conftest.$ac_objext; then
6487 eval "$as_ac_Header=yes"
6488 else
6489 echo "$as_me: failed program was:" >&5
6490 sed 's/^/| /' conftest.$ac_ext >&5
6492 eval "$as_ac_Header=no"
6495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6497 ac_res=`eval echo '${'$as_ac_Header'}'`
6498 { echo "$as_me:$LINENO: result: $ac_res" >&5
6499 echo "${ECHO_T}$ac_res" >&6; }
6500 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6501 cat >>confdefs.h <<_ACEOF
6502 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6503 _ACEOF
6507 done
6510 # checks for typedefs
6511 was_it_defined=no
6512 { echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
6513 echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6; }
6514 cat >conftest.$ac_ext <<_ACEOF
6515 /* confdefs.h. */
6516 _ACEOF
6517 cat confdefs.h >>conftest.$ac_ext
6518 cat >>conftest.$ac_ext <<_ACEOF
6519 /* end confdefs.h. */
6520 #include <time.h>
6522 _ACEOF
6523 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6524 $EGREP "clock_t" >/dev/null 2>&1; then
6525 was_it_defined=yes
6526 else
6529 cat >>confdefs.h <<\_ACEOF
6530 #define clock_t long
6531 _ACEOF
6535 rm -f conftest*
6537 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
6538 echo "${ECHO_T}$was_it_defined" >&6; }
6540 # Check whether using makedev requires defining _OSF_SOURCE
6541 { echo "$as_me:$LINENO: checking for makedev" >&5
6542 echo $ECHO_N "checking for makedev... $ECHO_C" >&6; }
6543 cat >conftest.$ac_ext <<_ACEOF
6544 /* confdefs.h. */
6545 _ACEOF
6546 cat confdefs.h >>conftest.$ac_ext
6547 cat >>conftest.$ac_ext <<_ACEOF
6548 /* end confdefs.h. */
6549 #include <sys/types.h>
6551 main ()
6553 makedev(0, 0)
6555 return 0;
6557 _ACEOF
6558 rm -f conftest.$ac_objext conftest$ac_exeext
6559 if { (ac_try="$ac_link"
6560 case "(($ac_try" in
6561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6562 *) ac_try_echo=$ac_try;;
6563 esac
6564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6565 (eval "$ac_link") 2>conftest.er1
6566 ac_status=$?
6567 grep -v '^ *+' conftest.er1 >conftest.err
6568 rm -f conftest.er1
6569 cat conftest.err >&5
6570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6571 (exit $ac_status); } && {
6572 test -z "$ac_c_werror_flag" ||
6573 test ! -s conftest.err
6574 } && test -s conftest$ac_exeext &&
6575 $as_test_x conftest$ac_exeext; then
6576 ac_cv_has_makedev=yes
6577 else
6578 echo "$as_me: failed program was:" >&5
6579 sed 's/^/| /' conftest.$ac_ext >&5
6581 ac_cv_has_makedev=no
6584 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6585 conftest$ac_exeext conftest.$ac_ext
6586 if test "$ac_cv_has_makedev" = "no"; then
6587 # we didn't link, try if _OSF_SOURCE will allow us to link
6588 cat >conftest.$ac_ext <<_ACEOF
6589 /* confdefs.h. */
6590 _ACEOF
6591 cat confdefs.h >>conftest.$ac_ext
6592 cat >>conftest.$ac_ext <<_ACEOF
6593 /* end confdefs.h. */
6595 #define _OSF_SOURCE 1
6596 #include <sys/types.h>
6599 main ()
6601 makedev(0, 0)
6603 return 0;
6605 _ACEOF
6606 rm -f conftest.$ac_objext conftest$ac_exeext
6607 if { (ac_try="$ac_link"
6608 case "(($ac_try" in
6609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6610 *) ac_try_echo=$ac_try;;
6611 esac
6612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6613 (eval "$ac_link") 2>conftest.er1
6614 ac_status=$?
6615 grep -v '^ *+' conftest.er1 >conftest.err
6616 rm -f conftest.er1
6617 cat conftest.err >&5
6618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6619 (exit $ac_status); } && {
6620 test -z "$ac_c_werror_flag" ||
6621 test ! -s conftest.err
6622 } && test -s conftest$ac_exeext &&
6623 $as_test_x conftest$ac_exeext; then
6624 ac_cv_has_makedev=yes
6625 else
6626 echo "$as_me: failed program was:" >&5
6627 sed 's/^/| /' conftest.$ac_ext >&5
6629 ac_cv_has_makedev=no
6632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6633 conftest$ac_exeext conftest.$ac_ext
6634 if test "$ac_cv_has_makedev" = "yes"; then
6636 cat >>confdefs.h <<\_ACEOF
6637 #define _OSF_SOURCE 1
6638 _ACEOF
6642 { echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
6643 echo "${ECHO_T}$ac_cv_has_makedev" >&6; }
6644 if test "$ac_cv_has_makedev" = "yes"; then
6646 cat >>confdefs.h <<\_ACEOF
6647 #define HAVE_MAKEDEV 1
6648 _ACEOF
6652 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
6653 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
6654 # defined, but the compiler does not support pragma redefine_extname,
6655 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
6656 # structures (such as rlimit64) without declaring them. As a
6657 # work-around, disable LFS on such configurations
6659 use_lfs=yes
6660 { echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
6661 echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6; }
6662 cat >conftest.$ac_ext <<_ACEOF
6663 /* confdefs.h. */
6664 _ACEOF
6665 cat confdefs.h >>conftest.$ac_ext
6666 cat >>conftest.$ac_ext <<_ACEOF
6667 /* end confdefs.h. */
6669 #define _LARGEFILE_SOURCE 1
6670 #define _FILE_OFFSET_BITS 64
6671 #include <sys/resource.h>
6674 main ()
6676 struct rlimit foo;
6678 return 0;
6680 _ACEOF
6681 rm -f conftest.$ac_objext
6682 if { (ac_try="$ac_compile"
6683 case "(($ac_try" in
6684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6685 *) ac_try_echo=$ac_try;;
6686 esac
6687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6688 (eval "$ac_compile") 2>conftest.er1
6689 ac_status=$?
6690 grep -v '^ *+' conftest.er1 >conftest.err
6691 rm -f conftest.er1
6692 cat conftest.err >&5
6693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6694 (exit $ac_status); } && {
6695 test -z "$ac_c_werror_flag" ||
6696 test ! -s conftest.err
6697 } && test -s conftest.$ac_objext; then
6698 sol_lfs_bug=no
6699 else
6700 echo "$as_me: failed program was:" >&5
6701 sed 's/^/| /' conftest.$ac_ext >&5
6703 sol_lfs_bug=yes
6706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6707 { echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
6708 echo "${ECHO_T}$sol_lfs_bug" >&6; }
6709 if test "$sol_lfs_bug" = "yes"; then
6710 use_lfs=no
6713 if test "$use_lfs" = "yes"; then
6714 # Two defines needed to enable largefile support on various platforms
6715 # These may affect some typedefs
6717 cat >>confdefs.h <<\_ACEOF
6718 #define _LARGEFILE_SOURCE 1
6719 _ACEOF
6722 cat >>confdefs.h <<\_ACEOF
6723 #define _FILE_OFFSET_BITS 64
6724 _ACEOF
6728 # Add some code to confdefs.h so that the test for off_t works on SCO
6729 cat >> confdefs.h <<\EOF
6730 #if defined(SCO_DS)
6731 #undef _OFF_T
6732 #endif
6735 # Type availability checks
6736 { echo "$as_me:$LINENO: checking for mode_t" >&5
6737 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
6738 if test "${ac_cv_type_mode_t+set}" = set; then
6739 echo $ECHO_N "(cached) $ECHO_C" >&6
6740 else
6741 cat >conftest.$ac_ext <<_ACEOF
6742 /* confdefs.h. */
6743 _ACEOF
6744 cat confdefs.h >>conftest.$ac_ext
6745 cat >>conftest.$ac_ext <<_ACEOF
6746 /* end confdefs.h. */
6747 $ac_includes_default
6748 typedef mode_t ac__type_new_;
6750 main ()
6752 if ((ac__type_new_ *) 0)
6753 return 0;
6754 if (sizeof (ac__type_new_))
6755 return 0;
6757 return 0;
6759 _ACEOF
6760 rm -f conftest.$ac_objext
6761 if { (ac_try="$ac_compile"
6762 case "(($ac_try" in
6763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6764 *) ac_try_echo=$ac_try;;
6765 esac
6766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6767 (eval "$ac_compile") 2>conftest.er1
6768 ac_status=$?
6769 grep -v '^ *+' conftest.er1 >conftest.err
6770 rm -f conftest.er1
6771 cat conftest.err >&5
6772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6773 (exit $ac_status); } && {
6774 test -z "$ac_c_werror_flag" ||
6775 test ! -s conftest.err
6776 } && test -s conftest.$ac_objext; then
6777 ac_cv_type_mode_t=yes
6778 else
6779 echo "$as_me: failed program was:" >&5
6780 sed 's/^/| /' conftest.$ac_ext >&5
6782 ac_cv_type_mode_t=no
6785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6787 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6788 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
6789 if test $ac_cv_type_mode_t = yes; then
6791 else
6793 cat >>confdefs.h <<_ACEOF
6794 #define mode_t int
6795 _ACEOF
6799 { echo "$as_me:$LINENO: checking for off_t" >&5
6800 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
6801 if test "${ac_cv_type_off_t+set}" = set; then
6802 echo $ECHO_N "(cached) $ECHO_C" >&6
6803 else
6804 cat >conftest.$ac_ext <<_ACEOF
6805 /* confdefs.h. */
6806 _ACEOF
6807 cat confdefs.h >>conftest.$ac_ext
6808 cat >>conftest.$ac_ext <<_ACEOF
6809 /* end confdefs.h. */
6810 $ac_includes_default
6811 typedef off_t ac__type_new_;
6813 main ()
6815 if ((ac__type_new_ *) 0)
6816 return 0;
6817 if (sizeof (ac__type_new_))
6818 return 0;
6820 return 0;
6822 _ACEOF
6823 rm -f conftest.$ac_objext
6824 if { (ac_try="$ac_compile"
6825 case "(($ac_try" in
6826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6827 *) ac_try_echo=$ac_try;;
6828 esac
6829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6830 (eval "$ac_compile") 2>conftest.er1
6831 ac_status=$?
6832 grep -v '^ *+' conftest.er1 >conftest.err
6833 rm -f conftest.er1
6834 cat conftest.err >&5
6835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6836 (exit $ac_status); } && {
6837 test -z "$ac_c_werror_flag" ||
6838 test ! -s conftest.err
6839 } && test -s conftest.$ac_objext; then
6840 ac_cv_type_off_t=yes
6841 else
6842 echo "$as_me: failed program was:" >&5
6843 sed 's/^/| /' conftest.$ac_ext >&5
6845 ac_cv_type_off_t=no
6848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6850 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6851 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
6852 if test $ac_cv_type_off_t = yes; then
6854 else
6856 cat >>confdefs.h <<_ACEOF
6857 #define off_t long int
6858 _ACEOF
6862 { echo "$as_me:$LINENO: checking for pid_t" >&5
6863 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
6864 if test "${ac_cv_type_pid_t+set}" = set; then
6865 echo $ECHO_N "(cached) $ECHO_C" >&6
6866 else
6867 cat >conftest.$ac_ext <<_ACEOF
6868 /* confdefs.h. */
6869 _ACEOF
6870 cat confdefs.h >>conftest.$ac_ext
6871 cat >>conftest.$ac_ext <<_ACEOF
6872 /* end confdefs.h. */
6873 $ac_includes_default
6874 typedef pid_t ac__type_new_;
6876 main ()
6878 if ((ac__type_new_ *) 0)
6879 return 0;
6880 if (sizeof (ac__type_new_))
6881 return 0;
6883 return 0;
6885 _ACEOF
6886 rm -f conftest.$ac_objext
6887 if { (ac_try="$ac_compile"
6888 case "(($ac_try" in
6889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6890 *) ac_try_echo=$ac_try;;
6891 esac
6892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6893 (eval "$ac_compile") 2>conftest.er1
6894 ac_status=$?
6895 grep -v '^ *+' conftest.er1 >conftest.err
6896 rm -f conftest.er1
6897 cat conftest.err >&5
6898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6899 (exit $ac_status); } && {
6900 test -z "$ac_c_werror_flag" ||
6901 test ! -s conftest.err
6902 } && test -s conftest.$ac_objext; then
6903 ac_cv_type_pid_t=yes
6904 else
6905 echo "$as_me: failed program was:" >&5
6906 sed 's/^/| /' conftest.$ac_ext >&5
6908 ac_cv_type_pid_t=no
6911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6913 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6914 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
6915 if test $ac_cv_type_pid_t = yes; then
6917 else
6919 cat >>confdefs.h <<_ACEOF
6920 #define pid_t int
6921 _ACEOF
6925 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6926 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
6927 if test "${ac_cv_type_signal+set}" = set; then
6928 echo $ECHO_N "(cached) $ECHO_C" >&6
6929 else
6930 cat >conftest.$ac_ext <<_ACEOF
6931 /* confdefs.h. */
6932 _ACEOF
6933 cat confdefs.h >>conftest.$ac_ext
6934 cat >>conftest.$ac_ext <<_ACEOF
6935 /* end confdefs.h. */
6936 #include <sys/types.h>
6937 #include <signal.h>
6940 main ()
6942 return *(signal (0, 0)) (0) == 1;
6944 return 0;
6946 _ACEOF
6947 rm -f conftest.$ac_objext
6948 if { (ac_try="$ac_compile"
6949 case "(($ac_try" in
6950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6951 *) ac_try_echo=$ac_try;;
6952 esac
6953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6954 (eval "$ac_compile") 2>conftest.er1
6955 ac_status=$?
6956 grep -v '^ *+' conftest.er1 >conftest.err
6957 rm -f conftest.er1
6958 cat conftest.err >&5
6959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6960 (exit $ac_status); } && {
6961 test -z "$ac_c_werror_flag" ||
6962 test ! -s conftest.err
6963 } && test -s conftest.$ac_objext; then
6964 ac_cv_type_signal=int
6965 else
6966 echo "$as_me: failed program was:" >&5
6967 sed 's/^/| /' conftest.$ac_ext >&5
6969 ac_cv_type_signal=void
6972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6974 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6975 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
6977 cat >>confdefs.h <<_ACEOF
6978 #define RETSIGTYPE $ac_cv_type_signal
6979 _ACEOF
6982 { echo "$as_me:$LINENO: checking for size_t" >&5
6983 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
6984 if test "${ac_cv_type_size_t+set}" = set; then
6985 echo $ECHO_N "(cached) $ECHO_C" >&6
6986 else
6987 cat >conftest.$ac_ext <<_ACEOF
6988 /* confdefs.h. */
6989 _ACEOF
6990 cat confdefs.h >>conftest.$ac_ext
6991 cat >>conftest.$ac_ext <<_ACEOF
6992 /* end confdefs.h. */
6993 $ac_includes_default
6994 typedef size_t ac__type_new_;
6996 main ()
6998 if ((ac__type_new_ *) 0)
6999 return 0;
7000 if (sizeof (ac__type_new_))
7001 return 0;
7003 return 0;
7005 _ACEOF
7006 rm -f conftest.$ac_objext
7007 if { (ac_try="$ac_compile"
7008 case "(($ac_try" in
7009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7010 *) ac_try_echo=$ac_try;;
7011 esac
7012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7013 (eval "$ac_compile") 2>conftest.er1
7014 ac_status=$?
7015 grep -v '^ *+' conftest.er1 >conftest.err
7016 rm -f conftest.er1
7017 cat conftest.err >&5
7018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7019 (exit $ac_status); } && {
7020 test -z "$ac_c_werror_flag" ||
7021 test ! -s conftest.err
7022 } && test -s conftest.$ac_objext; then
7023 ac_cv_type_size_t=yes
7024 else
7025 echo "$as_me: failed program was:" >&5
7026 sed 's/^/| /' conftest.$ac_ext >&5
7028 ac_cv_type_size_t=no
7031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7033 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7034 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
7035 if test $ac_cv_type_size_t = yes; then
7037 else
7039 cat >>confdefs.h <<_ACEOF
7040 #define size_t unsigned int
7041 _ACEOF
7045 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7046 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
7047 if test "${ac_cv_type_uid_t+set}" = set; then
7048 echo $ECHO_N "(cached) $ECHO_C" >&6
7049 else
7050 cat >conftest.$ac_ext <<_ACEOF
7051 /* confdefs.h. */
7052 _ACEOF
7053 cat confdefs.h >>conftest.$ac_ext
7054 cat >>conftest.$ac_ext <<_ACEOF
7055 /* end confdefs.h. */
7056 #include <sys/types.h>
7058 _ACEOF
7059 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7060 $EGREP "uid_t" >/dev/null 2>&1; then
7061 ac_cv_type_uid_t=yes
7062 else
7063 ac_cv_type_uid_t=no
7065 rm -f conftest*
7068 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7069 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
7070 if test $ac_cv_type_uid_t = no; then
7072 cat >>confdefs.h <<\_ACEOF
7073 #define uid_t int
7074 _ACEOF
7077 cat >>confdefs.h <<\_ACEOF
7078 #define gid_t int
7079 _ACEOF
7084 { echo "$as_me:$LINENO: checking for uint32_t" >&5
7085 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
7086 if test "${ac_cv_c_uint32_t+set}" = set; then
7087 echo $ECHO_N "(cached) $ECHO_C" >&6
7088 else
7089 ac_cv_c_uint32_t=no
7090 for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
7091 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7092 cat >conftest.$ac_ext <<_ACEOF
7093 /* confdefs.h. */
7094 _ACEOF
7095 cat confdefs.h >>conftest.$ac_ext
7096 cat >>conftest.$ac_ext <<_ACEOF
7097 /* end confdefs.h. */
7098 $ac_includes_default
7100 main ()
7102 static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
7103 test_array [0] = 0
7106 return 0;
7108 _ACEOF
7109 rm -f conftest.$ac_objext
7110 if { (ac_try="$ac_compile"
7111 case "(($ac_try" in
7112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7113 *) ac_try_echo=$ac_try;;
7114 esac
7115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7116 (eval "$ac_compile") 2>conftest.er1
7117 ac_status=$?
7118 grep -v '^ *+' conftest.er1 >conftest.err
7119 rm -f conftest.er1
7120 cat conftest.err >&5
7121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7122 (exit $ac_status); } && {
7123 test -z "$ac_c_werror_flag" ||
7124 test ! -s conftest.err
7125 } && test -s conftest.$ac_objext; then
7126 case $ac_type in
7127 uint32_t) ac_cv_c_uint32_t=yes ;;
7128 *) ac_cv_c_uint32_t=$ac_type ;;
7129 esac
7131 else
7132 echo "$as_me: failed program was:" >&5
7133 sed 's/^/| /' conftest.$ac_ext >&5
7138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7139 test "$ac_cv_c_uint32_t" != no && break
7140 done
7142 { echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
7143 echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; }
7144 case $ac_cv_c_uint32_t in #(
7145 no|yes) ;; #(
7148 cat >>confdefs.h <<\_ACEOF
7149 #define _UINT32_T 1
7150 _ACEOF
7153 cat >>confdefs.h <<_ACEOF
7154 #define uint32_t $ac_cv_c_uint32_t
7155 _ACEOF
7157 esac
7160 { echo "$as_me:$LINENO: checking for uint64_t" >&5
7161 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
7162 if test "${ac_cv_c_uint64_t+set}" = set; then
7163 echo $ECHO_N "(cached) $ECHO_C" >&6
7164 else
7165 ac_cv_c_uint64_t=no
7166 for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \
7167 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7168 cat >conftest.$ac_ext <<_ACEOF
7169 /* confdefs.h. */
7170 _ACEOF
7171 cat confdefs.h >>conftest.$ac_ext
7172 cat >>conftest.$ac_ext <<_ACEOF
7173 /* end confdefs.h. */
7174 $ac_includes_default
7176 main ()
7178 static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)];
7179 test_array [0] = 0
7182 return 0;
7184 _ACEOF
7185 rm -f conftest.$ac_objext
7186 if { (ac_try="$ac_compile"
7187 case "(($ac_try" in
7188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7189 *) ac_try_echo=$ac_try;;
7190 esac
7191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7192 (eval "$ac_compile") 2>conftest.er1
7193 ac_status=$?
7194 grep -v '^ *+' conftest.er1 >conftest.err
7195 rm -f conftest.er1
7196 cat conftest.err >&5
7197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7198 (exit $ac_status); } && {
7199 test -z "$ac_c_werror_flag" ||
7200 test ! -s conftest.err
7201 } && test -s conftest.$ac_objext; then
7202 case $ac_type in
7203 uint64_t) ac_cv_c_uint64_t=yes ;;
7204 *) ac_cv_c_uint64_t=$ac_type ;;
7205 esac
7207 else
7208 echo "$as_me: failed program was:" >&5
7209 sed 's/^/| /' conftest.$ac_ext >&5
7214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7215 test "$ac_cv_c_uint64_t" != no && break
7216 done
7218 { echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5
7219 echo "${ECHO_T}$ac_cv_c_uint64_t" >&6; }
7220 case $ac_cv_c_uint64_t in #(
7221 no|yes) ;; #(
7224 cat >>confdefs.h <<\_ACEOF
7225 #define _UINT64_T 1
7226 _ACEOF
7229 cat >>confdefs.h <<_ACEOF
7230 #define uint64_t $ac_cv_c_uint64_t
7231 _ACEOF
7233 esac
7236 { echo "$as_me:$LINENO: checking for int32_t" >&5
7237 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
7238 if test "${ac_cv_c_int32_t+set}" = set; then
7239 echo $ECHO_N "(cached) $ECHO_C" >&6
7240 else
7241 ac_cv_c_int32_t=no
7242 for ac_type in 'int32_t' 'int' 'long int' \
7243 'long long int' 'short int' 'signed char'; do
7244 cat >conftest.$ac_ext <<_ACEOF
7245 /* confdefs.h. */
7246 _ACEOF
7247 cat confdefs.h >>conftest.$ac_ext
7248 cat >>conftest.$ac_ext <<_ACEOF
7249 /* end confdefs.h. */
7250 $ac_includes_default
7252 main ()
7254 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
7255 test_array [0] = 0
7258 return 0;
7260 _ACEOF
7261 rm -f conftest.$ac_objext
7262 if { (ac_try="$ac_compile"
7263 case "(($ac_try" in
7264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7265 *) ac_try_echo=$ac_try;;
7266 esac
7267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7268 (eval "$ac_compile") 2>conftest.er1
7269 ac_status=$?
7270 grep -v '^ *+' conftest.er1 >conftest.err
7271 rm -f conftest.er1
7272 cat conftest.err >&5
7273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7274 (exit $ac_status); } && {
7275 test -z "$ac_c_werror_flag" ||
7276 test ! -s conftest.err
7277 } && test -s conftest.$ac_objext; then
7278 cat >conftest.$ac_ext <<_ACEOF
7279 /* confdefs.h. */
7280 _ACEOF
7281 cat confdefs.h >>conftest.$ac_ext
7282 cat >>conftest.$ac_ext <<_ACEOF
7283 /* end confdefs.h. */
7284 $ac_includes_default
7286 main ()
7288 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1)
7289 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))];
7290 test_array [0] = 0
7293 return 0;
7295 _ACEOF
7296 rm -f conftest.$ac_objext
7297 if { (ac_try="$ac_compile"
7298 case "(($ac_try" in
7299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7300 *) ac_try_echo=$ac_try;;
7301 esac
7302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7303 (eval "$ac_compile") 2>conftest.er1
7304 ac_status=$?
7305 grep -v '^ *+' conftest.er1 >conftest.err
7306 rm -f conftest.er1
7307 cat conftest.err >&5
7308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7309 (exit $ac_status); } && {
7310 test -z "$ac_c_werror_flag" ||
7311 test ! -s conftest.err
7312 } && test -s conftest.$ac_objext; then
7314 else
7315 echo "$as_me: failed program was:" >&5
7316 sed 's/^/| /' conftest.$ac_ext >&5
7318 case $ac_type in
7319 int32_t) ac_cv_c_int32_t=yes ;;
7320 *) ac_cv_c_int32_t=$ac_type ;;
7321 esac
7325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7326 else
7327 echo "$as_me: failed program was:" >&5
7328 sed 's/^/| /' conftest.$ac_ext >&5
7333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7334 test "$ac_cv_c_int32_t" != no && break
7335 done
7337 { echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
7338 echo "${ECHO_T}$ac_cv_c_int32_t" >&6; }
7339 case $ac_cv_c_int32_t in #(
7340 no|yes) ;; #(
7343 cat >>confdefs.h <<_ACEOF
7344 #define int32_t $ac_cv_c_int32_t
7345 _ACEOF
7347 esac
7350 { echo "$as_me:$LINENO: checking for int64_t" >&5
7351 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
7352 if test "${ac_cv_c_int64_t+set}" = set; then
7353 echo $ECHO_N "(cached) $ECHO_C" >&6
7354 else
7355 ac_cv_c_int64_t=no
7356 for ac_type in 'int64_t' 'int' 'long int' \
7357 'long long int' 'short int' 'signed char'; do
7358 cat >conftest.$ac_ext <<_ACEOF
7359 /* confdefs.h. */
7360 _ACEOF
7361 cat confdefs.h >>conftest.$ac_ext
7362 cat >>conftest.$ac_ext <<_ACEOF
7363 /* end confdefs.h. */
7364 $ac_includes_default
7366 main ()
7368 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))];
7369 test_array [0] = 0
7372 return 0;
7374 _ACEOF
7375 rm -f conftest.$ac_objext
7376 if { (ac_try="$ac_compile"
7377 case "(($ac_try" in
7378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7379 *) ac_try_echo=$ac_try;;
7380 esac
7381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7382 (eval "$ac_compile") 2>conftest.er1
7383 ac_status=$?
7384 grep -v '^ *+' conftest.er1 >conftest.err
7385 rm -f conftest.er1
7386 cat conftest.err >&5
7387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7388 (exit $ac_status); } && {
7389 test -z "$ac_c_werror_flag" ||
7390 test ! -s conftest.err
7391 } && test -s conftest.$ac_objext; then
7392 cat >conftest.$ac_ext <<_ACEOF
7393 /* confdefs.h. */
7394 _ACEOF
7395 cat confdefs.h >>conftest.$ac_ext
7396 cat >>conftest.$ac_ext <<_ACEOF
7397 /* end confdefs.h. */
7398 $ac_includes_default
7400 main ()
7402 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1)
7403 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))];
7404 test_array [0] = 0
7407 return 0;
7409 _ACEOF
7410 rm -f conftest.$ac_objext
7411 if { (ac_try="$ac_compile"
7412 case "(($ac_try" in
7413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7414 *) ac_try_echo=$ac_try;;
7415 esac
7416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7417 (eval "$ac_compile") 2>conftest.er1
7418 ac_status=$?
7419 grep -v '^ *+' conftest.er1 >conftest.err
7420 rm -f conftest.er1
7421 cat conftest.err >&5
7422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7423 (exit $ac_status); } && {
7424 test -z "$ac_c_werror_flag" ||
7425 test ! -s conftest.err
7426 } && test -s conftest.$ac_objext; then
7428 else
7429 echo "$as_me: failed program was:" >&5
7430 sed 's/^/| /' conftest.$ac_ext >&5
7432 case $ac_type in
7433 int64_t) ac_cv_c_int64_t=yes ;;
7434 *) ac_cv_c_int64_t=$ac_type ;;
7435 esac
7439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7440 else
7441 echo "$as_me: failed program was:" >&5
7442 sed 's/^/| /' conftest.$ac_ext >&5
7447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7448 test "$ac_cv_c_int64_t" != no && break
7449 done
7451 { echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5
7452 echo "${ECHO_T}$ac_cv_c_int64_t" >&6; }
7453 case $ac_cv_c_int64_t in #(
7454 no|yes) ;; #(
7457 cat >>confdefs.h <<_ACEOF
7458 #define int64_t $ac_cv_c_int64_t
7459 _ACEOF
7461 esac
7463 { echo "$as_me:$LINENO: checking for ssize_t" >&5
7464 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
7465 if test "${ac_cv_type_ssize_t+set}" = set; then
7466 echo $ECHO_N "(cached) $ECHO_C" >&6
7467 else
7468 cat >conftest.$ac_ext <<_ACEOF
7469 /* confdefs.h. */
7470 _ACEOF
7471 cat confdefs.h >>conftest.$ac_ext
7472 cat >>conftest.$ac_ext <<_ACEOF
7473 /* end confdefs.h. */
7474 $ac_includes_default
7475 typedef ssize_t ac__type_new_;
7477 main ()
7479 if ((ac__type_new_ *) 0)
7480 return 0;
7481 if (sizeof (ac__type_new_))
7482 return 0;
7484 return 0;
7486 _ACEOF
7487 rm -f conftest.$ac_objext
7488 if { (ac_try="$ac_compile"
7489 case "(($ac_try" in
7490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7491 *) ac_try_echo=$ac_try;;
7492 esac
7493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7494 (eval "$ac_compile") 2>conftest.er1
7495 ac_status=$?
7496 grep -v '^ *+' conftest.er1 >conftest.err
7497 rm -f conftest.er1
7498 cat conftest.err >&5
7499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7500 (exit $ac_status); } && {
7501 test -z "$ac_c_werror_flag" ||
7502 test ! -s conftest.err
7503 } && test -s conftest.$ac_objext; then
7504 ac_cv_type_ssize_t=yes
7505 else
7506 echo "$as_me: failed program was:" >&5
7507 sed 's/^/| /' conftest.$ac_ext >&5
7509 ac_cv_type_ssize_t=no
7512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7514 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
7515 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
7516 if test $ac_cv_type_ssize_t = yes; then
7518 cat >>confdefs.h <<\_ACEOF
7519 #define HAVE_SSIZE_T 1
7520 _ACEOF
7525 # Sizes of various common basic types
7526 # ANSI C requires sizeof(char) == 1, so no need to check it
7527 { echo "$as_me:$LINENO: checking for int" >&5
7528 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
7529 if test "${ac_cv_type_int+set}" = set; then
7530 echo $ECHO_N "(cached) $ECHO_C" >&6
7531 else
7532 cat >conftest.$ac_ext <<_ACEOF
7533 /* confdefs.h. */
7534 _ACEOF
7535 cat confdefs.h >>conftest.$ac_ext
7536 cat >>conftest.$ac_ext <<_ACEOF
7537 /* end confdefs.h. */
7538 $ac_includes_default
7539 typedef int ac__type_new_;
7541 main ()
7543 if ((ac__type_new_ *) 0)
7544 return 0;
7545 if (sizeof (ac__type_new_))
7546 return 0;
7548 return 0;
7550 _ACEOF
7551 rm -f conftest.$ac_objext
7552 if { (ac_try="$ac_compile"
7553 case "(($ac_try" in
7554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7555 *) ac_try_echo=$ac_try;;
7556 esac
7557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7558 (eval "$ac_compile") 2>conftest.er1
7559 ac_status=$?
7560 grep -v '^ *+' conftest.er1 >conftest.err
7561 rm -f conftest.er1
7562 cat conftest.err >&5
7563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7564 (exit $ac_status); } && {
7565 test -z "$ac_c_werror_flag" ||
7566 test ! -s conftest.err
7567 } && test -s conftest.$ac_objext; then
7568 ac_cv_type_int=yes
7569 else
7570 echo "$as_me: failed program was:" >&5
7571 sed 's/^/| /' conftest.$ac_ext >&5
7573 ac_cv_type_int=no
7576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7578 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
7579 echo "${ECHO_T}$ac_cv_type_int" >&6; }
7581 # The cast to long int works around a bug in the HP C Compiler
7582 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7583 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7584 # This bug is HP SR number 8606223364.
7585 { echo "$as_me:$LINENO: checking size of int" >&5
7586 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
7587 if test "${ac_cv_sizeof_int+set}" = set; then
7588 echo $ECHO_N "(cached) $ECHO_C" >&6
7589 else
7590 if test "$cross_compiling" = yes; then
7591 # Depending upon the size, compute the lo and hi bounds.
7592 cat >conftest.$ac_ext <<_ACEOF
7593 /* confdefs.h. */
7594 _ACEOF
7595 cat confdefs.h >>conftest.$ac_ext
7596 cat >>conftest.$ac_ext <<_ACEOF
7597 /* end confdefs.h. */
7598 $ac_includes_default
7599 typedef int ac__type_sizeof_;
7601 main ()
7603 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7604 test_array [0] = 0
7607 return 0;
7609 _ACEOF
7610 rm -f conftest.$ac_objext
7611 if { (ac_try="$ac_compile"
7612 case "(($ac_try" in
7613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7614 *) ac_try_echo=$ac_try;;
7615 esac
7616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7617 (eval "$ac_compile") 2>conftest.er1
7618 ac_status=$?
7619 grep -v '^ *+' conftest.er1 >conftest.err
7620 rm -f conftest.er1
7621 cat conftest.err >&5
7622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7623 (exit $ac_status); } && {
7624 test -z "$ac_c_werror_flag" ||
7625 test ! -s conftest.err
7626 } && test -s conftest.$ac_objext; then
7627 ac_lo=0 ac_mid=0
7628 while :; do
7629 cat >conftest.$ac_ext <<_ACEOF
7630 /* confdefs.h. */
7631 _ACEOF
7632 cat confdefs.h >>conftest.$ac_ext
7633 cat >>conftest.$ac_ext <<_ACEOF
7634 /* end confdefs.h. */
7635 $ac_includes_default
7636 typedef int ac__type_sizeof_;
7638 main ()
7640 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7641 test_array [0] = 0
7644 return 0;
7646 _ACEOF
7647 rm -f conftest.$ac_objext
7648 if { (ac_try="$ac_compile"
7649 case "(($ac_try" in
7650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7651 *) ac_try_echo=$ac_try;;
7652 esac
7653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7654 (eval "$ac_compile") 2>conftest.er1
7655 ac_status=$?
7656 grep -v '^ *+' conftest.er1 >conftest.err
7657 rm -f conftest.er1
7658 cat conftest.err >&5
7659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7660 (exit $ac_status); } && {
7661 test -z "$ac_c_werror_flag" ||
7662 test ! -s conftest.err
7663 } && test -s conftest.$ac_objext; then
7664 ac_hi=$ac_mid; break
7665 else
7666 echo "$as_me: failed program was:" >&5
7667 sed 's/^/| /' conftest.$ac_ext >&5
7669 ac_lo=`expr $ac_mid + 1`
7670 if test $ac_lo -le $ac_mid; then
7671 ac_lo= ac_hi=
7672 break
7674 ac_mid=`expr 2 '*' $ac_mid + 1`
7677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7678 done
7679 else
7680 echo "$as_me: failed program was:" >&5
7681 sed 's/^/| /' conftest.$ac_ext >&5
7683 cat >conftest.$ac_ext <<_ACEOF
7684 /* confdefs.h. */
7685 _ACEOF
7686 cat confdefs.h >>conftest.$ac_ext
7687 cat >>conftest.$ac_ext <<_ACEOF
7688 /* end confdefs.h. */
7689 $ac_includes_default
7690 typedef int ac__type_sizeof_;
7692 main ()
7694 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7695 test_array [0] = 0
7698 return 0;
7700 _ACEOF
7701 rm -f conftest.$ac_objext
7702 if { (ac_try="$ac_compile"
7703 case "(($ac_try" in
7704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7705 *) ac_try_echo=$ac_try;;
7706 esac
7707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7708 (eval "$ac_compile") 2>conftest.er1
7709 ac_status=$?
7710 grep -v '^ *+' conftest.er1 >conftest.err
7711 rm -f conftest.er1
7712 cat conftest.err >&5
7713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7714 (exit $ac_status); } && {
7715 test -z "$ac_c_werror_flag" ||
7716 test ! -s conftest.err
7717 } && test -s conftest.$ac_objext; then
7718 ac_hi=-1 ac_mid=-1
7719 while :; do
7720 cat >conftest.$ac_ext <<_ACEOF
7721 /* confdefs.h. */
7722 _ACEOF
7723 cat confdefs.h >>conftest.$ac_ext
7724 cat >>conftest.$ac_ext <<_ACEOF
7725 /* end confdefs.h. */
7726 $ac_includes_default
7727 typedef int ac__type_sizeof_;
7729 main ()
7731 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7732 test_array [0] = 0
7735 return 0;
7737 _ACEOF
7738 rm -f conftest.$ac_objext
7739 if { (ac_try="$ac_compile"
7740 case "(($ac_try" in
7741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7742 *) ac_try_echo=$ac_try;;
7743 esac
7744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7745 (eval "$ac_compile") 2>conftest.er1
7746 ac_status=$?
7747 grep -v '^ *+' conftest.er1 >conftest.err
7748 rm -f conftest.er1
7749 cat conftest.err >&5
7750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7751 (exit $ac_status); } && {
7752 test -z "$ac_c_werror_flag" ||
7753 test ! -s conftest.err
7754 } && test -s conftest.$ac_objext; then
7755 ac_lo=$ac_mid; break
7756 else
7757 echo "$as_me: failed program was:" >&5
7758 sed 's/^/| /' conftest.$ac_ext >&5
7760 ac_hi=`expr '(' $ac_mid ')' - 1`
7761 if test $ac_mid -le $ac_hi; then
7762 ac_lo= ac_hi=
7763 break
7765 ac_mid=`expr 2 '*' $ac_mid`
7768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7769 done
7770 else
7771 echo "$as_me: failed program was:" >&5
7772 sed 's/^/| /' conftest.$ac_ext >&5
7774 ac_lo= ac_hi=
7777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7781 # Binary search between lo and hi bounds.
7782 while test "x$ac_lo" != "x$ac_hi"; do
7783 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7784 cat >conftest.$ac_ext <<_ACEOF
7785 /* confdefs.h. */
7786 _ACEOF
7787 cat confdefs.h >>conftest.$ac_ext
7788 cat >>conftest.$ac_ext <<_ACEOF
7789 /* end confdefs.h. */
7790 $ac_includes_default
7791 typedef int ac__type_sizeof_;
7793 main ()
7795 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7796 test_array [0] = 0
7799 return 0;
7801 _ACEOF
7802 rm -f conftest.$ac_objext
7803 if { (ac_try="$ac_compile"
7804 case "(($ac_try" in
7805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7806 *) ac_try_echo=$ac_try;;
7807 esac
7808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7809 (eval "$ac_compile") 2>conftest.er1
7810 ac_status=$?
7811 grep -v '^ *+' conftest.er1 >conftest.err
7812 rm -f conftest.er1
7813 cat conftest.err >&5
7814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7815 (exit $ac_status); } && {
7816 test -z "$ac_c_werror_flag" ||
7817 test ! -s conftest.err
7818 } && test -s conftest.$ac_objext; then
7819 ac_hi=$ac_mid
7820 else
7821 echo "$as_me: failed program was:" >&5
7822 sed 's/^/| /' conftest.$ac_ext >&5
7824 ac_lo=`expr '(' $ac_mid ')' + 1`
7827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7828 done
7829 case $ac_lo in
7830 ?*) ac_cv_sizeof_int=$ac_lo;;
7831 '') if test "$ac_cv_type_int" = yes; then
7832 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7833 See \`config.log' for more details." >&5
7834 echo "$as_me: error: cannot compute sizeof (int)
7835 See \`config.log' for more details." >&2;}
7836 { (exit 77); exit 77; }; }
7837 else
7838 ac_cv_sizeof_int=0
7839 fi ;;
7840 esac
7841 else
7842 cat >conftest.$ac_ext <<_ACEOF
7843 /* confdefs.h. */
7844 _ACEOF
7845 cat confdefs.h >>conftest.$ac_ext
7846 cat >>conftest.$ac_ext <<_ACEOF
7847 /* end confdefs.h. */
7848 $ac_includes_default
7849 typedef int ac__type_sizeof_;
7850 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7851 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7852 #include <stdio.h>
7853 #include <stdlib.h>
7855 main ()
7858 FILE *f = fopen ("conftest.val", "w");
7859 if (! f)
7860 return 1;
7861 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7863 long int i = longval ();
7864 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7865 return 1;
7866 fprintf (f, "%ld\n", i);
7868 else
7870 unsigned long int i = ulongval ();
7871 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7872 return 1;
7873 fprintf (f, "%lu\n", i);
7875 return ferror (f) || fclose (f) != 0;
7878 return 0;
7880 _ACEOF
7881 rm -f conftest$ac_exeext
7882 if { (ac_try="$ac_link"
7883 case "(($ac_try" in
7884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7885 *) ac_try_echo=$ac_try;;
7886 esac
7887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7888 (eval "$ac_link") 2>&5
7889 ac_status=$?
7890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7891 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7892 { (case "(($ac_try" in
7893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7894 *) ac_try_echo=$ac_try;;
7895 esac
7896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7897 (eval "$ac_try") 2>&5
7898 ac_status=$?
7899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7900 (exit $ac_status); }; }; then
7901 ac_cv_sizeof_int=`cat conftest.val`
7902 else
7903 echo "$as_me: program exited with status $ac_status" >&5
7904 echo "$as_me: failed program was:" >&5
7905 sed 's/^/| /' conftest.$ac_ext >&5
7907 ( exit $ac_status )
7908 if test "$ac_cv_type_int" = yes; then
7909 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7910 See \`config.log' for more details." >&5
7911 echo "$as_me: error: cannot compute sizeof (int)
7912 See \`config.log' for more details." >&2;}
7913 { (exit 77); exit 77; }; }
7914 else
7915 ac_cv_sizeof_int=0
7918 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7920 rm -f conftest.val
7922 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
7923 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
7927 cat >>confdefs.h <<_ACEOF
7928 #define SIZEOF_INT $ac_cv_sizeof_int
7929 _ACEOF
7932 { echo "$as_me:$LINENO: checking for long" >&5
7933 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
7934 if test "${ac_cv_type_long+set}" = set; then
7935 echo $ECHO_N "(cached) $ECHO_C" >&6
7936 else
7937 cat >conftest.$ac_ext <<_ACEOF
7938 /* confdefs.h. */
7939 _ACEOF
7940 cat confdefs.h >>conftest.$ac_ext
7941 cat >>conftest.$ac_ext <<_ACEOF
7942 /* end confdefs.h. */
7943 $ac_includes_default
7944 typedef long ac__type_new_;
7946 main ()
7948 if ((ac__type_new_ *) 0)
7949 return 0;
7950 if (sizeof (ac__type_new_))
7951 return 0;
7953 return 0;
7955 _ACEOF
7956 rm -f conftest.$ac_objext
7957 if { (ac_try="$ac_compile"
7958 case "(($ac_try" in
7959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7960 *) ac_try_echo=$ac_try;;
7961 esac
7962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7963 (eval "$ac_compile") 2>conftest.er1
7964 ac_status=$?
7965 grep -v '^ *+' conftest.er1 >conftest.err
7966 rm -f conftest.er1
7967 cat conftest.err >&5
7968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7969 (exit $ac_status); } && {
7970 test -z "$ac_c_werror_flag" ||
7971 test ! -s conftest.err
7972 } && test -s conftest.$ac_objext; then
7973 ac_cv_type_long=yes
7974 else
7975 echo "$as_me: failed program was:" >&5
7976 sed 's/^/| /' conftest.$ac_ext >&5
7978 ac_cv_type_long=no
7981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7983 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
7984 echo "${ECHO_T}$ac_cv_type_long" >&6; }
7986 # The cast to long int works around a bug in the HP C Compiler
7987 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7988 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7989 # This bug is HP SR number 8606223364.
7990 { echo "$as_me:$LINENO: checking size of long" >&5
7991 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
7992 if test "${ac_cv_sizeof_long+set}" = set; then
7993 echo $ECHO_N "(cached) $ECHO_C" >&6
7994 else
7995 if test "$cross_compiling" = yes; then
7996 # Depending upon the size, compute the lo and hi bounds.
7997 cat >conftest.$ac_ext <<_ACEOF
7998 /* confdefs.h. */
7999 _ACEOF
8000 cat confdefs.h >>conftest.$ac_ext
8001 cat >>conftest.$ac_ext <<_ACEOF
8002 /* end confdefs.h. */
8003 $ac_includes_default
8004 typedef long ac__type_sizeof_;
8006 main ()
8008 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8009 test_array [0] = 0
8012 return 0;
8014 _ACEOF
8015 rm -f conftest.$ac_objext
8016 if { (ac_try="$ac_compile"
8017 case "(($ac_try" in
8018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8019 *) ac_try_echo=$ac_try;;
8020 esac
8021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8022 (eval "$ac_compile") 2>conftest.er1
8023 ac_status=$?
8024 grep -v '^ *+' conftest.er1 >conftest.err
8025 rm -f conftest.er1
8026 cat conftest.err >&5
8027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8028 (exit $ac_status); } && {
8029 test -z "$ac_c_werror_flag" ||
8030 test ! -s conftest.err
8031 } && test -s conftest.$ac_objext; then
8032 ac_lo=0 ac_mid=0
8033 while :; do
8034 cat >conftest.$ac_ext <<_ACEOF
8035 /* confdefs.h. */
8036 _ACEOF
8037 cat confdefs.h >>conftest.$ac_ext
8038 cat >>conftest.$ac_ext <<_ACEOF
8039 /* end confdefs.h. */
8040 $ac_includes_default
8041 typedef long ac__type_sizeof_;
8043 main ()
8045 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8046 test_array [0] = 0
8049 return 0;
8051 _ACEOF
8052 rm -f conftest.$ac_objext
8053 if { (ac_try="$ac_compile"
8054 case "(($ac_try" in
8055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8056 *) ac_try_echo=$ac_try;;
8057 esac
8058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8059 (eval "$ac_compile") 2>conftest.er1
8060 ac_status=$?
8061 grep -v '^ *+' conftest.er1 >conftest.err
8062 rm -f conftest.er1
8063 cat conftest.err >&5
8064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8065 (exit $ac_status); } && {
8066 test -z "$ac_c_werror_flag" ||
8067 test ! -s conftest.err
8068 } && test -s conftest.$ac_objext; then
8069 ac_hi=$ac_mid; break
8070 else
8071 echo "$as_me: failed program was:" >&5
8072 sed 's/^/| /' conftest.$ac_ext >&5
8074 ac_lo=`expr $ac_mid + 1`
8075 if test $ac_lo -le $ac_mid; then
8076 ac_lo= ac_hi=
8077 break
8079 ac_mid=`expr 2 '*' $ac_mid + 1`
8082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8083 done
8084 else
8085 echo "$as_me: failed program was:" >&5
8086 sed 's/^/| /' conftest.$ac_ext >&5
8088 cat >conftest.$ac_ext <<_ACEOF
8089 /* confdefs.h. */
8090 _ACEOF
8091 cat confdefs.h >>conftest.$ac_ext
8092 cat >>conftest.$ac_ext <<_ACEOF
8093 /* end confdefs.h. */
8094 $ac_includes_default
8095 typedef long ac__type_sizeof_;
8097 main ()
8099 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8100 test_array [0] = 0
8103 return 0;
8105 _ACEOF
8106 rm -f conftest.$ac_objext
8107 if { (ac_try="$ac_compile"
8108 case "(($ac_try" in
8109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8110 *) ac_try_echo=$ac_try;;
8111 esac
8112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8113 (eval "$ac_compile") 2>conftest.er1
8114 ac_status=$?
8115 grep -v '^ *+' conftest.er1 >conftest.err
8116 rm -f conftest.er1
8117 cat conftest.err >&5
8118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8119 (exit $ac_status); } && {
8120 test -z "$ac_c_werror_flag" ||
8121 test ! -s conftest.err
8122 } && test -s conftest.$ac_objext; then
8123 ac_hi=-1 ac_mid=-1
8124 while :; do
8125 cat >conftest.$ac_ext <<_ACEOF
8126 /* confdefs.h. */
8127 _ACEOF
8128 cat confdefs.h >>conftest.$ac_ext
8129 cat >>conftest.$ac_ext <<_ACEOF
8130 /* end confdefs.h. */
8131 $ac_includes_default
8132 typedef long ac__type_sizeof_;
8134 main ()
8136 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8137 test_array [0] = 0
8140 return 0;
8142 _ACEOF
8143 rm -f conftest.$ac_objext
8144 if { (ac_try="$ac_compile"
8145 case "(($ac_try" in
8146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8147 *) ac_try_echo=$ac_try;;
8148 esac
8149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8150 (eval "$ac_compile") 2>conftest.er1
8151 ac_status=$?
8152 grep -v '^ *+' conftest.er1 >conftest.err
8153 rm -f conftest.er1
8154 cat conftest.err >&5
8155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8156 (exit $ac_status); } && {
8157 test -z "$ac_c_werror_flag" ||
8158 test ! -s conftest.err
8159 } && test -s conftest.$ac_objext; then
8160 ac_lo=$ac_mid; break
8161 else
8162 echo "$as_me: failed program was:" >&5
8163 sed 's/^/| /' conftest.$ac_ext >&5
8165 ac_hi=`expr '(' $ac_mid ')' - 1`
8166 if test $ac_mid -le $ac_hi; then
8167 ac_lo= ac_hi=
8168 break
8170 ac_mid=`expr 2 '*' $ac_mid`
8173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8174 done
8175 else
8176 echo "$as_me: failed program was:" >&5
8177 sed 's/^/| /' conftest.$ac_ext >&5
8179 ac_lo= ac_hi=
8182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8186 # Binary search between lo and hi bounds.
8187 while test "x$ac_lo" != "x$ac_hi"; do
8188 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8189 cat >conftest.$ac_ext <<_ACEOF
8190 /* confdefs.h. */
8191 _ACEOF
8192 cat confdefs.h >>conftest.$ac_ext
8193 cat >>conftest.$ac_ext <<_ACEOF
8194 /* end confdefs.h. */
8195 $ac_includes_default
8196 typedef long ac__type_sizeof_;
8198 main ()
8200 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8201 test_array [0] = 0
8204 return 0;
8206 _ACEOF
8207 rm -f conftest.$ac_objext
8208 if { (ac_try="$ac_compile"
8209 case "(($ac_try" in
8210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8211 *) ac_try_echo=$ac_try;;
8212 esac
8213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8214 (eval "$ac_compile") 2>conftest.er1
8215 ac_status=$?
8216 grep -v '^ *+' conftest.er1 >conftest.err
8217 rm -f conftest.er1
8218 cat conftest.err >&5
8219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8220 (exit $ac_status); } && {
8221 test -z "$ac_c_werror_flag" ||
8222 test ! -s conftest.err
8223 } && test -s conftest.$ac_objext; then
8224 ac_hi=$ac_mid
8225 else
8226 echo "$as_me: failed program was:" >&5
8227 sed 's/^/| /' conftest.$ac_ext >&5
8229 ac_lo=`expr '(' $ac_mid ')' + 1`
8232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8233 done
8234 case $ac_lo in
8235 ?*) ac_cv_sizeof_long=$ac_lo;;
8236 '') if test "$ac_cv_type_long" = yes; then
8237 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
8238 See \`config.log' for more details." >&5
8239 echo "$as_me: error: cannot compute sizeof (long)
8240 See \`config.log' for more details." >&2;}
8241 { (exit 77); exit 77; }; }
8242 else
8243 ac_cv_sizeof_long=0
8244 fi ;;
8245 esac
8246 else
8247 cat >conftest.$ac_ext <<_ACEOF
8248 /* confdefs.h. */
8249 _ACEOF
8250 cat confdefs.h >>conftest.$ac_ext
8251 cat >>conftest.$ac_ext <<_ACEOF
8252 /* end confdefs.h. */
8253 $ac_includes_default
8254 typedef long ac__type_sizeof_;
8255 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8256 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8257 #include <stdio.h>
8258 #include <stdlib.h>
8260 main ()
8263 FILE *f = fopen ("conftest.val", "w");
8264 if (! f)
8265 return 1;
8266 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8268 long int i = longval ();
8269 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8270 return 1;
8271 fprintf (f, "%ld\n", i);
8273 else
8275 unsigned long int i = ulongval ();
8276 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8277 return 1;
8278 fprintf (f, "%lu\n", i);
8280 return ferror (f) || fclose (f) != 0;
8283 return 0;
8285 _ACEOF
8286 rm -f conftest$ac_exeext
8287 if { (ac_try="$ac_link"
8288 case "(($ac_try" in
8289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8290 *) ac_try_echo=$ac_try;;
8291 esac
8292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8293 (eval "$ac_link") 2>&5
8294 ac_status=$?
8295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8296 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8297 { (case "(($ac_try" in
8298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8299 *) ac_try_echo=$ac_try;;
8300 esac
8301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8302 (eval "$ac_try") 2>&5
8303 ac_status=$?
8304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8305 (exit $ac_status); }; }; then
8306 ac_cv_sizeof_long=`cat conftest.val`
8307 else
8308 echo "$as_me: program exited with status $ac_status" >&5
8309 echo "$as_me: failed program was:" >&5
8310 sed 's/^/| /' conftest.$ac_ext >&5
8312 ( exit $ac_status )
8313 if test "$ac_cv_type_long" = yes; then
8314 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
8315 See \`config.log' for more details." >&5
8316 echo "$as_me: error: cannot compute sizeof (long)
8317 See \`config.log' for more details." >&2;}
8318 { (exit 77); exit 77; }; }
8319 else
8320 ac_cv_sizeof_long=0
8323 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8325 rm -f conftest.val
8327 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
8328 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
8332 cat >>confdefs.h <<_ACEOF
8333 #define SIZEOF_LONG $ac_cv_sizeof_long
8334 _ACEOF
8337 { echo "$as_me:$LINENO: checking for void *" >&5
8338 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
8339 if test "${ac_cv_type_void_p+set}" = set; then
8340 echo $ECHO_N "(cached) $ECHO_C" >&6
8341 else
8342 cat >conftest.$ac_ext <<_ACEOF
8343 /* confdefs.h. */
8344 _ACEOF
8345 cat confdefs.h >>conftest.$ac_ext
8346 cat >>conftest.$ac_ext <<_ACEOF
8347 /* end confdefs.h. */
8348 $ac_includes_default
8349 typedef void * ac__type_new_;
8351 main ()
8353 if ((ac__type_new_ *) 0)
8354 return 0;
8355 if (sizeof (ac__type_new_))
8356 return 0;
8358 return 0;
8360 _ACEOF
8361 rm -f conftest.$ac_objext
8362 if { (ac_try="$ac_compile"
8363 case "(($ac_try" in
8364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8365 *) ac_try_echo=$ac_try;;
8366 esac
8367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8368 (eval "$ac_compile") 2>conftest.er1
8369 ac_status=$?
8370 grep -v '^ *+' conftest.er1 >conftest.err
8371 rm -f conftest.er1
8372 cat conftest.err >&5
8373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8374 (exit $ac_status); } && {
8375 test -z "$ac_c_werror_flag" ||
8376 test ! -s conftest.err
8377 } && test -s conftest.$ac_objext; then
8378 ac_cv_type_void_p=yes
8379 else
8380 echo "$as_me: failed program was:" >&5
8381 sed 's/^/| /' conftest.$ac_ext >&5
8383 ac_cv_type_void_p=no
8386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8388 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
8389 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
8391 # The cast to long int works around a bug in the HP C Compiler
8392 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8393 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8394 # This bug is HP SR number 8606223364.
8395 { echo "$as_me:$LINENO: checking size of void *" >&5
8396 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
8397 if test "${ac_cv_sizeof_void_p+set}" = set; then
8398 echo $ECHO_N "(cached) $ECHO_C" >&6
8399 else
8400 if test "$cross_compiling" = yes; then
8401 # Depending upon the size, compute the lo and hi bounds.
8402 cat >conftest.$ac_ext <<_ACEOF
8403 /* confdefs.h. */
8404 _ACEOF
8405 cat confdefs.h >>conftest.$ac_ext
8406 cat >>conftest.$ac_ext <<_ACEOF
8407 /* end confdefs.h. */
8408 $ac_includes_default
8409 typedef void * ac__type_sizeof_;
8411 main ()
8413 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8414 test_array [0] = 0
8417 return 0;
8419 _ACEOF
8420 rm -f conftest.$ac_objext
8421 if { (ac_try="$ac_compile"
8422 case "(($ac_try" in
8423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8424 *) ac_try_echo=$ac_try;;
8425 esac
8426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8427 (eval "$ac_compile") 2>conftest.er1
8428 ac_status=$?
8429 grep -v '^ *+' conftest.er1 >conftest.err
8430 rm -f conftest.er1
8431 cat conftest.err >&5
8432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8433 (exit $ac_status); } && {
8434 test -z "$ac_c_werror_flag" ||
8435 test ! -s conftest.err
8436 } && test -s conftest.$ac_objext; then
8437 ac_lo=0 ac_mid=0
8438 while :; do
8439 cat >conftest.$ac_ext <<_ACEOF
8440 /* confdefs.h. */
8441 _ACEOF
8442 cat confdefs.h >>conftest.$ac_ext
8443 cat >>conftest.$ac_ext <<_ACEOF
8444 /* end confdefs.h. */
8445 $ac_includes_default
8446 typedef void * ac__type_sizeof_;
8448 main ()
8450 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8451 test_array [0] = 0
8454 return 0;
8456 _ACEOF
8457 rm -f conftest.$ac_objext
8458 if { (ac_try="$ac_compile"
8459 case "(($ac_try" in
8460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8461 *) ac_try_echo=$ac_try;;
8462 esac
8463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8464 (eval "$ac_compile") 2>conftest.er1
8465 ac_status=$?
8466 grep -v '^ *+' conftest.er1 >conftest.err
8467 rm -f conftest.er1
8468 cat conftest.err >&5
8469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8470 (exit $ac_status); } && {
8471 test -z "$ac_c_werror_flag" ||
8472 test ! -s conftest.err
8473 } && test -s conftest.$ac_objext; then
8474 ac_hi=$ac_mid; break
8475 else
8476 echo "$as_me: failed program was:" >&5
8477 sed 's/^/| /' conftest.$ac_ext >&5
8479 ac_lo=`expr $ac_mid + 1`
8480 if test $ac_lo -le $ac_mid; then
8481 ac_lo= ac_hi=
8482 break
8484 ac_mid=`expr 2 '*' $ac_mid + 1`
8487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8488 done
8489 else
8490 echo "$as_me: failed program was:" >&5
8491 sed 's/^/| /' conftest.$ac_ext >&5
8493 cat >conftest.$ac_ext <<_ACEOF
8494 /* confdefs.h. */
8495 _ACEOF
8496 cat confdefs.h >>conftest.$ac_ext
8497 cat >>conftest.$ac_ext <<_ACEOF
8498 /* end confdefs.h. */
8499 $ac_includes_default
8500 typedef void * ac__type_sizeof_;
8502 main ()
8504 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8505 test_array [0] = 0
8508 return 0;
8510 _ACEOF
8511 rm -f conftest.$ac_objext
8512 if { (ac_try="$ac_compile"
8513 case "(($ac_try" in
8514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8515 *) ac_try_echo=$ac_try;;
8516 esac
8517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8518 (eval "$ac_compile") 2>conftest.er1
8519 ac_status=$?
8520 grep -v '^ *+' conftest.er1 >conftest.err
8521 rm -f conftest.er1
8522 cat conftest.err >&5
8523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8524 (exit $ac_status); } && {
8525 test -z "$ac_c_werror_flag" ||
8526 test ! -s conftest.err
8527 } && test -s conftest.$ac_objext; then
8528 ac_hi=-1 ac_mid=-1
8529 while :; do
8530 cat >conftest.$ac_ext <<_ACEOF
8531 /* confdefs.h. */
8532 _ACEOF
8533 cat confdefs.h >>conftest.$ac_ext
8534 cat >>conftest.$ac_ext <<_ACEOF
8535 /* end confdefs.h. */
8536 $ac_includes_default
8537 typedef void * ac__type_sizeof_;
8539 main ()
8541 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8542 test_array [0] = 0
8545 return 0;
8547 _ACEOF
8548 rm -f conftest.$ac_objext
8549 if { (ac_try="$ac_compile"
8550 case "(($ac_try" in
8551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8552 *) ac_try_echo=$ac_try;;
8553 esac
8554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8555 (eval "$ac_compile") 2>conftest.er1
8556 ac_status=$?
8557 grep -v '^ *+' conftest.er1 >conftest.err
8558 rm -f conftest.er1
8559 cat conftest.err >&5
8560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8561 (exit $ac_status); } && {
8562 test -z "$ac_c_werror_flag" ||
8563 test ! -s conftest.err
8564 } && test -s conftest.$ac_objext; then
8565 ac_lo=$ac_mid; break
8566 else
8567 echo "$as_me: failed program was:" >&5
8568 sed 's/^/| /' conftest.$ac_ext >&5
8570 ac_hi=`expr '(' $ac_mid ')' - 1`
8571 if test $ac_mid -le $ac_hi; then
8572 ac_lo= ac_hi=
8573 break
8575 ac_mid=`expr 2 '*' $ac_mid`
8578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8579 done
8580 else
8581 echo "$as_me: failed program was:" >&5
8582 sed 's/^/| /' conftest.$ac_ext >&5
8584 ac_lo= ac_hi=
8587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8591 # Binary search between lo and hi bounds.
8592 while test "x$ac_lo" != "x$ac_hi"; do
8593 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8594 cat >conftest.$ac_ext <<_ACEOF
8595 /* confdefs.h. */
8596 _ACEOF
8597 cat confdefs.h >>conftest.$ac_ext
8598 cat >>conftest.$ac_ext <<_ACEOF
8599 /* end confdefs.h. */
8600 $ac_includes_default
8601 typedef void * ac__type_sizeof_;
8603 main ()
8605 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8606 test_array [0] = 0
8609 return 0;
8611 _ACEOF
8612 rm -f conftest.$ac_objext
8613 if { (ac_try="$ac_compile"
8614 case "(($ac_try" in
8615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8616 *) ac_try_echo=$ac_try;;
8617 esac
8618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8619 (eval "$ac_compile") 2>conftest.er1
8620 ac_status=$?
8621 grep -v '^ *+' conftest.er1 >conftest.err
8622 rm -f conftest.er1
8623 cat conftest.err >&5
8624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8625 (exit $ac_status); } && {
8626 test -z "$ac_c_werror_flag" ||
8627 test ! -s conftest.err
8628 } && test -s conftest.$ac_objext; then
8629 ac_hi=$ac_mid
8630 else
8631 echo "$as_me: failed program was:" >&5
8632 sed 's/^/| /' conftest.$ac_ext >&5
8634 ac_lo=`expr '(' $ac_mid ')' + 1`
8637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8638 done
8639 case $ac_lo in
8640 ?*) ac_cv_sizeof_void_p=$ac_lo;;
8641 '') if test "$ac_cv_type_void_p" = yes; then
8642 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8643 See \`config.log' for more details." >&5
8644 echo "$as_me: error: cannot compute sizeof (void *)
8645 See \`config.log' for more details." >&2;}
8646 { (exit 77); exit 77; }; }
8647 else
8648 ac_cv_sizeof_void_p=0
8649 fi ;;
8650 esac
8651 else
8652 cat >conftest.$ac_ext <<_ACEOF
8653 /* confdefs.h. */
8654 _ACEOF
8655 cat confdefs.h >>conftest.$ac_ext
8656 cat >>conftest.$ac_ext <<_ACEOF
8657 /* end confdefs.h. */
8658 $ac_includes_default
8659 typedef void * ac__type_sizeof_;
8660 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8661 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8662 #include <stdio.h>
8663 #include <stdlib.h>
8665 main ()
8668 FILE *f = fopen ("conftest.val", "w");
8669 if (! f)
8670 return 1;
8671 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8673 long int i = longval ();
8674 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8675 return 1;
8676 fprintf (f, "%ld\n", i);
8678 else
8680 unsigned long int i = ulongval ();
8681 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8682 return 1;
8683 fprintf (f, "%lu\n", i);
8685 return ferror (f) || fclose (f) != 0;
8688 return 0;
8690 _ACEOF
8691 rm -f conftest$ac_exeext
8692 if { (ac_try="$ac_link"
8693 case "(($ac_try" in
8694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8695 *) ac_try_echo=$ac_try;;
8696 esac
8697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8698 (eval "$ac_link") 2>&5
8699 ac_status=$?
8700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8701 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8702 { (case "(($ac_try" in
8703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8704 *) ac_try_echo=$ac_try;;
8705 esac
8706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8707 (eval "$ac_try") 2>&5
8708 ac_status=$?
8709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710 (exit $ac_status); }; }; then
8711 ac_cv_sizeof_void_p=`cat conftest.val`
8712 else
8713 echo "$as_me: program exited with status $ac_status" >&5
8714 echo "$as_me: failed program was:" >&5
8715 sed 's/^/| /' conftest.$ac_ext >&5
8717 ( exit $ac_status )
8718 if test "$ac_cv_type_void_p" = yes; then
8719 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8720 See \`config.log' for more details." >&5
8721 echo "$as_me: error: cannot compute sizeof (void *)
8722 See \`config.log' for more details." >&2;}
8723 { (exit 77); exit 77; }; }
8724 else
8725 ac_cv_sizeof_void_p=0
8728 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8730 rm -f conftest.val
8732 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
8733 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
8737 cat >>confdefs.h <<_ACEOF
8738 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
8739 _ACEOF
8742 { echo "$as_me:$LINENO: checking for short" >&5
8743 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
8744 if test "${ac_cv_type_short+set}" = set; then
8745 echo $ECHO_N "(cached) $ECHO_C" >&6
8746 else
8747 cat >conftest.$ac_ext <<_ACEOF
8748 /* confdefs.h. */
8749 _ACEOF
8750 cat confdefs.h >>conftest.$ac_ext
8751 cat >>conftest.$ac_ext <<_ACEOF
8752 /* end confdefs.h. */
8753 $ac_includes_default
8754 typedef short ac__type_new_;
8756 main ()
8758 if ((ac__type_new_ *) 0)
8759 return 0;
8760 if (sizeof (ac__type_new_))
8761 return 0;
8763 return 0;
8765 _ACEOF
8766 rm -f conftest.$ac_objext
8767 if { (ac_try="$ac_compile"
8768 case "(($ac_try" in
8769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8770 *) ac_try_echo=$ac_try;;
8771 esac
8772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8773 (eval "$ac_compile") 2>conftest.er1
8774 ac_status=$?
8775 grep -v '^ *+' conftest.er1 >conftest.err
8776 rm -f conftest.er1
8777 cat conftest.err >&5
8778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8779 (exit $ac_status); } && {
8780 test -z "$ac_c_werror_flag" ||
8781 test ! -s conftest.err
8782 } && test -s conftest.$ac_objext; then
8783 ac_cv_type_short=yes
8784 else
8785 echo "$as_me: failed program was:" >&5
8786 sed 's/^/| /' conftest.$ac_ext >&5
8788 ac_cv_type_short=no
8791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8793 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
8794 echo "${ECHO_T}$ac_cv_type_short" >&6; }
8796 # The cast to long int works around a bug in the HP C Compiler
8797 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8798 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8799 # This bug is HP SR number 8606223364.
8800 { echo "$as_me:$LINENO: checking size of short" >&5
8801 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
8802 if test "${ac_cv_sizeof_short+set}" = set; then
8803 echo $ECHO_N "(cached) $ECHO_C" >&6
8804 else
8805 if test "$cross_compiling" = yes; then
8806 # Depending upon the size, compute the lo and hi bounds.
8807 cat >conftest.$ac_ext <<_ACEOF
8808 /* confdefs.h. */
8809 _ACEOF
8810 cat confdefs.h >>conftest.$ac_ext
8811 cat >>conftest.$ac_ext <<_ACEOF
8812 /* end confdefs.h. */
8813 $ac_includes_default
8814 typedef short ac__type_sizeof_;
8816 main ()
8818 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8819 test_array [0] = 0
8822 return 0;
8824 _ACEOF
8825 rm -f conftest.$ac_objext
8826 if { (ac_try="$ac_compile"
8827 case "(($ac_try" in
8828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8829 *) ac_try_echo=$ac_try;;
8830 esac
8831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8832 (eval "$ac_compile") 2>conftest.er1
8833 ac_status=$?
8834 grep -v '^ *+' conftest.er1 >conftest.err
8835 rm -f conftest.er1
8836 cat conftest.err >&5
8837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8838 (exit $ac_status); } && {
8839 test -z "$ac_c_werror_flag" ||
8840 test ! -s conftest.err
8841 } && test -s conftest.$ac_objext; then
8842 ac_lo=0 ac_mid=0
8843 while :; do
8844 cat >conftest.$ac_ext <<_ACEOF
8845 /* confdefs.h. */
8846 _ACEOF
8847 cat confdefs.h >>conftest.$ac_ext
8848 cat >>conftest.$ac_ext <<_ACEOF
8849 /* end confdefs.h. */
8850 $ac_includes_default
8851 typedef short ac__type_sizeof_;
8853 main ()
8855 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8856 test_array [0] = 0
8859 return 0;
8861 _ACEOF
8862 rm -f conftest.$ac_objext
8863 if { (ac_try="$ac_compile"
8864 case "(($ac_try" in
8865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8866 *) ac_try_echo=$ac_try;;
8867 esac
8868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8869 (eval "$ac_compile") 2>conftest.er1
8870 ac_status=$?
8871 grep -v '^ *+' conftest.er1 >conftest.err
8872 rm -f conftest.er1
8873 cat conftest.err >&5
8874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8875 (exit $ac_status); } && {
8876 test -z "$ac_c_werror_flag" ||
8877 test ! -s conftest.err
8878 } && test -s conftest.$ac_objext; then
8879 ac_hi=$ac_mid; break
8880 else
8881 echo "$as_me: failed program was:" >&5
8882 sed 's/^/| /' conftest.$ac_ext >&5
8884 ac_lo=`expr $ac_mid + 1`
8885 if test $ac_lo -le $ac_mid; then
8886 ac_lo= ac_hi=
8887 break
8889 ac_mid=`expr 2 '*' $ac_mid + 1`
8892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8893 done
8894 else
8895 echo "$as_me: failed program was:" >&5
8896 sed 's/^/| /' conftest.$ac_ext >&5
8898 cat >conftest.$ac_ext <<_ACEOF
8899 /* confdefs.h. */
8900 _ACEOF
8901 cat confdefs.h >>conftest.$ac_ext
8902 cat >>conftest.$ac_ext <<_ACEOF
8903 /* end confdefs.h. */
8904 $ac_includes_default
8905 typedef short ac__type_sizeof_;
8907 main ()
8909 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8910 test_array [0] = 0
8913 return 0;
8915 _ACEOF
8916 rm -f conftest.$ac_objext
8917 if { (ac_try="$ac_compile"
8918 case "(($ac_try" in
8919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8920 *) ac_try_echo=$ac_try;;
8921 esac
8922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8923 (eval "$ac_compile") 2>conftest.er1
8924 ac_status=$?
8925 grep -v '^ *+' conftest.er1 >conftest.err
8926 rm -f conftest.er1
8927 cat conftest.err >&5
8928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8929 (exit $ac_status); } && {
8930 test -z "$ac_c_werror_flag" ||
8931 test ! -s conftest.err
8932 } && test -s conftest.$ac_objext; then
8933 ac_hi=-1 ac_mid=-1
8934 while :; do
8935 cat >conftest.$ac_ext <<_ACEOF
8936 /* confdefs.h. */
8937 _ACEOF
8938 cat confdefs.h >>conftest.$ac_ext
8939 cat >>conftest.$ac_ext <<_ACEOF
8940 /* end confdefs.h. */
8941 $ac_includes_default
8942 typedef short ac__type_sizeof_;
8944 main ()
8946 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8947 test_array [0] = 0
8950 return 0;
8952 _ACEOF
8953 rm -f conftest.$ac_objext
8954 if { (ac_try="$ac_compile"
8955 case "(($ac_try" in
8956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8957 *) ac_try_echo=$ac_try;;
8958 esac
8959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8960 (eval "$ac_compile") 2>conftest.er1
8961 ac_status=$?
8962 grep -v '^ *+' conftest.er1 >conftest.err
8963 rm -f conftest.er1
8964 cat conftest.err >&5
8965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8966 (exit $ac_status); } && {
8967 test -z "$ac_c_werror_flag" ||
8968 test ! -s conftest.err
8969 } && test -s conftest.$ac_objext; then
8970 ac_lo=$ac_mid; break
8971 else
8972 echo "$as_me: failed program was:" >&5
8973 sed 's/^/| /' conftest.$ac_ext >&5
8975 ac_hi=`expr '(' $ac_mid ')' - 1`
8976 if test $ac_mid -le $ac_hi; then
8977 ac_lo= ac_hi=
8978 break
8980 ac_mid=`expr 2 '*' $ac_mid`
8983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8984 done
8985 else
8986 echo "$as_me: failed program was:" >&5
8987 sed 's/^/| /' conftest.$ac_ext >&5
8989 ac_lo= ac_hi=
8992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8996 # Binary search between lo and hi bounds.
8997 while test "x$ac_lo" != "x$ac_hi"; do
8998 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8999 cat >conftest.$ac_ext <<_ACEOF
9000 /* confdefs.h. */
9001 _ACEOF
9002 cat confdefs.h >>conftest.$ac_ext
9003 cat >>conftest.$ac_ext <<_ACEOF
9004 /* end confdefs.h. */
9005 $ac_includes_default
9006 typedef short ac__type_sizeof_;
9008 main ()
9010 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9011 test_array [0] = 0
9014 return 0;
9016 _ACEOF
9017 rm -f conftest.$ac_objext
9018 if { (ac_try="$ac_compile"
9019 case "(($ac_try" in
9020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9021 *) ac_try_echo=$ac_try;;
9022 esac
9023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9024 (eval "$ac_compile") 2>conftest.er1
9025 ac_status=$?
9026 grep -v '^ *+' conftest.er1 >conftest.err
9027 rm -f conftest.er1
9028 cat conftest.err >&5
9029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9030 (exit $ac_status); } && {
9031 test -z "$ac_c_werror_flag" ||
9032 test ! -s conftest.err
9033 } && test -s conftest.$ac_objext; then
9034 ac_hi=$ac_mid
9035 else
9036 echo "$as_me: failed program was:" >&5
9037 sed 's/^/| /' conftest.$ac_ext >&5
9039 ac_lo=`expr '(' $ac_mid ')' + 1`
9042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9043 done
9044 case $ac_lo in
9045 ?*) ac_cv_sizeof_short=$ac_lo;;
9046 '') if test "$ac_cv_type_short" = yes; then
9047 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
9048 See \`config.log' for more details." >&5
9049 echo "$as_me: error: cannot compute sizeof (short)
9050 See \`config.log' for more details." >&2;}
9051 { (exit 77); exit 77; }; }
9052 else
9053 ac_cv_sizeof_short=0
9054 fi ;;
9055 esac
9056 else
9057 cat >conftest.$ac_ext <<_ACEOF
9058 /* confdefs.h. */
9059 _ACEOF
9060 cat confdefs.h >>conftest.$ac_ext
9061 cat >>conftest.$ac_ext <<_ACEOF
9062 /* end confdefs.h. */
9063 $ac_includes_default
9064 typedef short ac__type_sizeof_;
9065 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9066 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9067 #include <stdio.h>
9068 #include <stdlib.h>
9070 main ()
9073 FILE *f = fopen ("conftest.val", "w");
9074 if (! f)
9075 return 1;
9076 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9078 long int i = longval ();
9079 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9080 return 1;
9081 fprintf (f, "%ld\n", i);
9083 else
9085 unsigned long int i = ulongval ();
9086 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9087 return 1;
9088 fprintf (f, "%lu\n", i);
9090 return ferror (f) || fclose (f) != 0;
9093 return 0;
9095 _ACEOF
9096 rm -f conftest$ac_exeext
9097 if { (ac_try="$ac_link"
9098 case "(($ac_try" in
9099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9100 *) ac_try_echo=$ac_try;;
9101 esac
9102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9103 (eval "$ac_link") 2>&5
9104 ac_status=$?
9105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9106 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9107 { (case "(($ac_try" in
9108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9109 *) ac_try_echo=$ac_try;;
9110 esac
9111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9112 (eval "$ac_try") 2>&5
9113 ac_status=$?
9114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9115 (exit $ac_status); }; }; then
9116 ac_cv_sizeof_short=`cat conftest.val`
9117 else
9118 echo "$as_me: program exited with status $ac_status" >&5
9119 echo "$as_me: failed program was:" >&5
9120 sed 's/^/| /' conftest.$ac_ext >&5
9122 ( exit $ac_status )
9123 if test "$ac_cv_type_short" = yes; then
9124 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
9125 See \`config.log' for more details." >&5
9126 echo "$as_me: error: cannot compute sizeof (short)
9127 See \`config.log' for more details." >&2;}
9128 { (exit 77); exit 77; }; }
9129 else
9130 ac_cv_sizeof_short=0
9133 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9135 rm -f conftest.val
9137 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
9138 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
9142 cat >>confdefs.h <<_ACEOF
9143 #define SIZEOF_SHORT $ac_cv_sizeof_short
9144 _ACEOF
9147 { echo "$as_me:$LINENO: checking for float" >&5
9148 echo $ECHO_N "checking for float... $ECHO_C" >&6; }
9149 if test "${ac_cv_type_float+set}" = set; then
9150 echo $ECHO_N "(cached) $ECHO_C" >&6
9151 else
9152 cat >conftest.$ac_ext <<_ACEOF
9153 /* confdefs.h. */
9154 _ACEOF
9155 cat confdefs.h >>conftest.$ac_ext
9156 cat >>conftest.$ac_ext <<_ACEOF
9157 /* end confdefs.h. */
9158 $ac_includes_default
9159 typedef float ac__type_new_;
9161 main ()
9163 if ((ac__type_new_ *) 0)
9164 return 0;
9165 if (sizeof (ac__type_new_))
9166 return 0;
9168 return 0;
9170 _ACEOF
9171 rm -f conftest.$ac_objext
9172 if { (ac_try="$ac_compile"
9173 case "(($ac_try" in
9174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9175 *) ac_try_echo=$ac_try;;
9176 esac
9177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9178 (eval "$ac_compile") 2>conftest.er1
9179 ac_status=$?
9180 grep -v '^ *+' conftest.er1 >conftest.err
9181 rm -f conftest.er1
9182 cat conftest.err >&5
9183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9184 (exit $ac_status); } && {
9185 test -z "$ac_c_werror_flag" ||
9186 test ! -s conftest.err
9187 } && test -s conftest.$ac_objext; then
9188 ac_cv_type_float=yes
9189 else
9190 echo "$as_me: failed program was:" >&5
9191 sed 's/^/| /' conftest.$ac_ext >&5
9193 ac_cv_type_float=no
9196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9198 { echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
9199 echo "${ECHO_T}$ac_cv_type_float" >&6; }
9201 # The cast to long int works around a bug in the HP C Compiler
9202 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9203 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9204 # This bug is HP SR number 8606223364.
9205 { echo "$as_me:$LINENO: checking size of float" >&5
9206 echo $ECHO_N "checking size of float... $ECHO_C" >&6; }
9207 if test "${ac_cv_sizeof_float+set}" = set; then
9208 echo $ECHO_N "(cached) $ECHO_C" >&6
9209 else
9210 if test "$cross_compiling" = yes; then
9211 # Depending upon the size, compute the lo and hi bounds.
9212 cat >conftest.$ac_ext <<_ACEOF
9213 /* confdefs.h. */
9214 _ACEOF
9215 cat confdefs.h >>conftest.$ac_ext
9216 cat >>conftest.$ac_ext <<_ACEOF
9217 /* end confdefs.h. */
9218 $ac_includes_default
9219 typedef float ac__type_sizeof_;
9221 main ()
9223 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9224 test_array [0] = 0
9227 return 0;
9229 _ACEOF
9230 rm -f conftest.$ac_objext
9231 if { (ac_try="$ac_compile"
9232 case "(($ac_try" in
9233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9234 *) ac_try_echo=$ac_try;;
9235 esac
9236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9237 (eval "$ac_compile") 2>conftest.er1
9238 ac_status=$?
9239 grep -v '^ *+' conftest.er1 >conftest.err
9240 rm -f conftest.er1
9241 cat conftest.err >&5
9242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9243 (exit $ac_status); } && {
9244 test -z "$ac_c_werror_flag" ||
9245 test ! -s conftest.err
9246 } && test -s conftest.$ac_objext; then
9247 ac_lo=0 ac_mid=0
9248 while :; do
9249 cat >conftest.$ac_ext <<_ACEOF
9250 /* confdefs.h. */
9251 _ACEOF
9252 cat confdefs.h >>conftest.$ac_ext
9253 cat >>conftest.$ac_ext <<_ACEOF
9254 /* end confdefs.h. */
9255 $ac_includes_default
9256 typedef float ac__type_sizeof_;
9258 main ()
9260 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9261 test_array [0] = 0
9264 return 0;
9266 _ACEOF
9267 rm -f conftest.$ac_objext
9268 if { (ac_try="$ac_compile"
9269 case "(($ac_try" in
9270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9271 *) ac_try_echo=$ac_try;;
9272 esac
9273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9274 (eval "$ac_compile") 2>conftest.er1
9275 ac_status=$?
9276 grep -v '^ *+' conftest.er1 >conftest.err
9277 rm -f conftest.er1
9278 cat conftest.err >&5
9279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9280 (exit $ac_status); } && {
9281 test -z "$ac_c_werror_flag" ||
9282 test ! -s conftest.err
9283 } && test -s conftest.$ac_objext; then
9284 ac_hi=$ac_mid; break
9285 else
9286 echo "$as_me: failed program was:" >&5
9287 sed 's/^/| /' conftest.$ac_ext >&5
9289 ac_lo=`expr $ac_mid + 1`
9290 if test $ac_lo -le $ac_mid; then
9291 ac_lo= ac_hi=
9292 break
9294 ac_mid=`expr 2 '*' $ac_mid + 1`
9297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9298 done
9299 else
9300 echo "$as_me: failed program was:" >&5
9301 sed 's/^/| /' conftest.$ac_ext >&5
9303 cat >conftest.$ac_ext <<_ACEOF
9304 /* confdefs.h. */
9305 _ACEOF
9306 cat confdefs.h >>conftest.$ac_ext
9307 cat >>conftest.$ac_ext <<_ACEOF
9308 /* end confdefs.h. */
9309 $ac_includes_default
9310 typedef float ac__type_sizeof_;
9312 main ()
9314 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9315 test_array [0] = 0
9318 return 0;
9320 _ACEOF
9321 rm -f conftest.$ac_objext
9322 if { (ac_try="$ac_compile"
9323 case "(($ac_try" in
9324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9325 *) ac_try_echo=$ac_try;;
9326 esac
9327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9328 (eval "$ac_compile") 2>conftest.er1
9329 ac_status=$?
9330 grep -v '^ *+' conftest.er1 >conftest.err
9331 rm -f conftest.er1
9332 cat conftest.err >&5
9333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9334 (exit $ac_status); } && {
9335 test -z "$ac_c_werror_flag" ||
9336 test ! -s conftest.err
9337 } && test -s conftest.$ac_objext; then
9338 ac_hi=-1 ac_mid=-1
9339 while :; do
9340 cat >conftest.$ac_ext <<_ACEOF
9341 /* confdefs.h. */
9342 _ACEOF
9343 cat confdefs.h >>conftest.$ac_ext
9344 cat >>conftest.$ac_ext <<_ACEOF
9345 /* end confdefs.h. */
9346 $ac_includes_default
9347 typedef float ac__type_sizeof_;
9349 main ()
9351 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9352 test_array [0] = 0
9355 return 0;
9357 _ACEOF
9358 rm -f conftest.$ac_objext
9359 if { (ac_try="$ac_compile"
9360 case "(($ac_try" in
9361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9362 *) ac_try_echo=$ac_try;;
9363 esac
9364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9365 (eval "$ac_compile") 2>conftest.er1
9366 ac_status=$?
9367 grep -v '^ *+' conftest.er1 >conftest.err
9368 rm -f conftest.er1
9369 cat conftest.err >&5
9370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9371 (exit $ac_status); } && {
9372 test -z "$ac_c_werror_flag" ||
9373 test ! -s conftest.err
9374 } && test -s conftest.$ac_objext; then
9375 ac_lo=$ac_mid; break
9376 else
9377 echo "$as_me: failed program was:" >&5
9378 sed 's/^/| /' conftest.$ac_ext >&5
9380 ac_hi=`expr '(' $ac_mid ')' - 1`
9381 if test $ac_mid -le $ac_hi; then
9382 ac_lo= ac_hi=
9383 break
9385 ac_mid=`expr 2 '*' $ac_mid`
9388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9389 done
9390 else
9391 echo "$as_me: failed program was:" >&5
9392 sed 's/^/| /' conftest.$ac_ext >&5
9394 ac_lo= ac_hi=
9397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9401 # Binary search between lo and hi bounds.
9402 while test "x$ac_lo" != "x$ac_hi"; do
9403 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9404 cat >conftest.$ac_ext <<_ACEOF
9405 /* confdefs.h. */
9406 _ACEOF
9407 cat confdefs.h >>conftest.$ac_ext
9408 cat >>conftest.$ac_ext <<_ACEOF
9409 /* end confdefs.h. */
9410 $ac_includes_default
9411 typedef float ac__type_sizeof_;
9413 main ()
9415 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9416 test_array [0] = 0
9419 return 0;
9421 _ACEOF
9422 rm -f conftest.$ac_objext
9423 if { (ac_try="$ac_compile"
9424 case "(($ac_try" in
9425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9426 *) ac_try_echo=$ac_try;;
9427 esac
9428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9429 (eval "$ac_compile") 2>conftest.er1
9430 ac_status=$?
9431 grep -v '^ *+' conftest.er1 >conftest.err
9432 rm -f conftest.er1
9433 cat conftest.err >&5
9434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9435 (exit $ac_status); } && {
9436 test -z "$ac_c_werror_flag" ||
9437 test ! -s conftest.err
9438 } && test -s conftest.$ac_objext; then
9439 ac_hi=$ac_mid
9440 else
9441 echo "$as_me: failed program was:" >&5
9442 sed 's/^/| /' conftest.$ac_ext >&5
9444 ac_lo=`expr '(' $ac_mid ')' + 1`
9447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9448 done
9449 case $ac_lo in
9450 ?*) ac_cv_sizeof_float=$ac_lo;;
9451 '') if test "$ac_cv_type_float" = yes; then
9452 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
9453 See \`config.log' for more details." >&5
9454 echo "$as_me: error: cannot compute sizeof (float)
9455 See \`config.log' for more details." >&2;}
9456 { (exit 77); exit 77; }; }
9457 else
9458 ac_cv_sizeof_float=0
9459 fi ;;
9460 esac
9461 else
9462 cat >conftest.$ac_ext <<_ACEOF
9463 /* confdefs.h. */
9464 _ACEOF
9465 cat confdefs.h >>conftest.$ac_ext
9466 cat >>conftest.$ac_ext <<_ACEOF
9467 /* end confdefs.h. */
9468 $ac_includes_default
9469 typedef float ac__type_sizeof_;
9470 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9471 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9472 #include <stdio.h>
9473 #include <stdlib.h>
9475 main ()
9478 FILE *f = fopen ("conftest.val", "w");
9479 if (! f)
9480 return 1;
9481 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9483 long int i = longval ();
9484 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9485 return 1;
9486 fprintf (f, "%ld\n", i);
9488 else
9490 unsigned long int i = ulongval ();
9491 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9492 return 1;
9493 fprintf (f, "%lu\n", i);
9495 return ferror (f) || fclose (f) != 0;
9498 return 0;
9500 _ACEOF
9501 rm -f conftest$ac_exeext
9502 if { (ac_try="$ac_link"
9503 case "(($ac_try" in
9504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9505 *) ac_try_echo=$ac_try;;
9506 esac
9507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9508 (eval "$ac_link") 2>&5
9509 ac_status=$?
9510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9511 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9512 { (case "(($ac_try" in
9513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9514 *) ac_try_echo=$ac_try;;
9515 esac
9516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9517 (eval "$ac_try") 2>&5
9518 ac_status=$?
9519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9520 (exit $ac_status); }; }; then
9521 ac_cv_sizeof_float=`cat conftest.val`
9522 else
9523 echo "$as_me: program exited with status $ac_status" >&5
9524 echo "$as_me: failed program was:" >&5
9525 sed 's/^/| /' conftest.$ac_ext >&5
9527 ( exit $ac_status )
9528 if test "$ac_cv_type_float" = yes; then
9529 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
9530 See \`config.log' for more details." >&5
9531 echo "$as_me: error: cannot compute sizeof (float)
9532 See \`config.log' for more details." >&2;}
9533 { (exit 77); exit 77; }; }
9534 else
9535 ac_cv_sizeof_float=0
9538 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9540 rm -f conftest.val
9542 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
9543 echo "${ECHO_T}$ac_cv_sizeof_float" >&6; }
9547 cat >>confdefs.h <<_ACEOF
9548 #define SIZEOF_FLOAT $ac_cv_sizeof_float
9549 _ACEOF
9552 { echo "$as_me:$LINENO: checking for double" >&5
9553 echo $ECHO_N "checking for double... $ECHO_C" >&6; }
9554 if test "${ac_cv_type_double+set}" = set; then
9555 echo $ECHO_N "(cached) $ECHO_C" >&6
9556 else
9557 cat >conftest.$ac_ext <<_ACEOF
9558 /* confdefs.h. */
9559 _ACEOF
9560 cat confdefs.h >>conftest.$ac_ext
9561 cat >>conftest.$ac_ext <<_ACEOF
9562 /* end confdefs.h. */
9563 $ac_includes_default
9564 typedef double ac__type_new_;
9566 main ()
9568 if ((ac__type_new_ *) 0)
9569 return 0;
9570 if (sizeof (ac__type_new_))
9571 return 0;
9573 return 0;
9575 _ACEOF
9576 rm -f conftest.$ac_objext
9577 if { (ac_try="$ac_compile"
9578 case "(($ac_try" in
9579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9580 *) ac_try_echo=$ac_try;;
9581 esac
9582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9583 (eval "$ac_compile") 2>conftest.er1
9584 ac_status=$?
9585 grep -v '^ *+' conftest.er1 >conftest.err
9586 rm -f conftest.er1
9587 cat conftest.err >&5
9588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9589 (exit $ac_status); } && {
9590 test -z "$ac_c_werror_flag" ||
9591 test ! -s conftest.err
9592 } && test -s conftest.$ac_objext; then
9593 ac_cv_type_double=yes
9594 else
9595 echo "$as_me: failed program was:" >&5
9596 sed 's/^/| /' conftest.$ac_ext >&5
9598 ac_cv_type_double=no
9601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9603 { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
9604 echo "${ECHO_T}$ac_cv_type_double" >&6; }
9606 # The cast to long int works around a bug in the HP C Compiler
9607 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9608 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9609 # This bug is HP SR number 8606223364.
9610 { echo "$as_me:$LINENO: checking size of double" >&5
9611 echo $ECHO_N "checking size of double... $ECHO_C" >&6; }
9612 if test "${ac_cv_sizeof_double+set}" = set; then
9613 echo $ECHO_N "(cached) $ECHO_C" >&6
9614 else
9615 if test "$cross_compiling" = yes; then
9616 # Depending upon the size, compute the lo and hi bounds.
9617 cat >conftest.$ac_ext <<_ACEOF
9618 /* confdefs.h. */
9619 _ACEOF
9620 cat confdefs.h >>conftest.$ac_ext
9621 cat >>conftest.$ac_ext <<_ACEOF
9622 /* end confdefs.h. */
9623 $ac_includes_default
9624 typedef double ac__type_sizeof_;
9626 main ()
9628 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9629 test_array [0] = 0
9632 return 0;
9634 _ACEOF
9635 rm -f conftest.$ac_objext
9636 if { (ac_try="$ac_compile"
9637 case "(($ac_try" in
9638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9639 *) ac_try_echo=$ac_try;;
9640 esac
9641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9642 (eval "$ac_compile") 2>conftest.er1
9643 ac_status=$?
9644 grep -v '^ *+' conftest.er1 >conftest.err
9645 rm -f conftest.er1
9646 cat conftest.err >&5
9647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9648 (exit $ac_status); } && {
9649 test -z "$ac_c_werror_flag" ||
9650 test ! -s conftest.err
9651 } && test -s conftest.$ac_objext; then
9652 ac_lo=0 ac_mid=0
9653 while :; do
9654 cat >conftest.$ac_ext <<_ACEOF
9655 /* confdefs.h. */
9656 _ACEOF
9657 cat confdefs.h >>conftest.$ac_ext
9658 cat >>conftest.$ac_ext <<_ACEOF
9659 /* end confdefs.h. */
9660 $ac_includes_default
9661 typedef double ac__type_sizeof_;
9663 main ()
9665 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9666 test_array [0] = 0
9669 return 0;
9671 _ACEOF
9672 rm -f conftest.$ac_objext
9673 if { (ac_try="$ac_compile"
9674 case "(($ac_try" in
9675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9676 *) ac_try_echo=$ac_try;;
9677 esac
9678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9679 (eval "$ac_compile") 2>conftest.er1
9680 ac_status=$?
9681 grep -v '^ *+' conftest.er1 >conftest.err
9682 rm -f conftest.er1
9683 cat conftest.err >&5
9684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9685 (exit $ac_status); } && {
9686 test -z "$ac_c_werror_flag" ||
9687 test ! -s conftest.err
9688 } && test -s conftest.$ac_objext; then
9689 ac_hi=$ac_mid; break
9690 else
9691 echo "$as_me: failed program was:" >&5
9692 sed 's/^/| /' conftest.$ac_ext >&5
9694 ac_lo=`expr $ac_mid + 1`
9695 if test $ac_lo -le $ac_mid; then
9696 ac_lo= ac_hi=
9697 break
9699 ac_mid=`expr 2 '*' $ac_mid + 1`
9702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9703 done
9704 else
9705 echo "$as_me: failed program was:" >&5
9706 sed 's/^/| /' conftest.$ac_ext >&5
9708 cat >conftest.$ac_ext <<_ACEOF
9709 /* confdefs.h. */
9710 _ACEOF
9711 cat confdefs.h >>conftest.$ac_ext
9712 cat >>conftest.$ac_ext <<_ACEOF
9713 /* end confdefs.h. */
9714 $ac_includes_default
9715 typedef double ac__type_sizeof_;
9717 main ()
9719 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9720 test_array [0] = 0
9723 return 0;
9725 _ACEOF
9726 rm -f conftest.$ac_objext
9727 if { (ac_try="$ac_compile"
9728 case "(($ac_try" in
9729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9730 *) ac_try_echo=$ac_try;;
9731 esac
9732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9733 (eval "$ac_compile") 2>conftest.er1
9734 ac_status=$?
9735 grep -v '^ *+' conftest.er1 >conftest.err
9736 rm -f conftest.er1
9737 cat conftest.err >&5
9738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9739 (exit $ac_status); } && {
9740 test -z "$ac_c_werror_flag" ||
9741 test ! -s conftest.err
9742 } && test -s conftest.$ac_objext; then
9743 ac_hi=-1 ac_mid=-1
9744 while :; do
9745 cat >conftest.$ac_ext <<_ACEOF
9746 /* confdefs.h. */
9747 _ACEOF
9748 cat confdefs.h >>conftest.$ac_ext
9749 cat >>conftest.$ac_ext <<_ACEOF
9750 /* end confdefs.h. */
9751 $ac_includes_default
9752 typedef double ac__type_sizeof_;
9754 main ()
9756 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9757 test_array [0] = 0
9760 return 0;
9762 _ACEOF
9763 rm -f conftest.$ac_objext
9764 if { (ac_try="$ac_compile"
9765 case "(($ac_try" in
9766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9767 *) ac_try_echo=$ac_try;;
9768 esac
9769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9770 (eval "$ac_compile") 2>conftest.er1
9771 ac_status=$?
9772 grep -v '^ *+' conftest.er1 >conftest.err
9773 rm -f conftest.er1
9774 cat conftest.err >&5
9775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9776 (exit $ac_status); } && {
9777 test -z "$ac_c_werror_flag" ||
9778 test ! -s conftest.err
9779 } && test -s conftest.$ac_objext; then
9780 ac_lo=$ac_mid; break
9781 else
9782 echo "$as_me: failed program was:" >&5
9783 sed 's/^/| /' conftest.$ac_ext >&5
9785 ac_hi=`expr '(' $ac_mid ')' - 1`
9786 if test $ac_mid -le $ac_hi; then
9787 ac_lo= ac_hi=
9788 break
9790 ac_mid=`expr 2 '*' $ac_mid`
9793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9794 done
9795 else
9796 echo "$as_me: failed program was:" >&5
9797 sed 's/^/| /' conftest.$ac_ext >&5
9799 ac_lo= ac_hi=
9802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9806 # Binary search between lo and hi bounds.
9807 while test "x$ac_lo" != "x$ac_hi"; do
9808 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9809 cat >conftest.$ac_ext <<_ACEOF
9810 /* confdefs.h. */
9811 _ACEOF
9812 cat confdefs.h >>conftest.$ac_ext
9813 cat >>conftest.$ac_ext <<_ACEOF
9814 /* end confdefs.h. */
9815 $ac_includes_default
9816 typedef double ac__type_sizeof_;
9818 main ()
9820 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9821 test_array [0] = 0
9824 return 0;
9826 _ACEOF
9827 rm -f conftest.$ac_objext
9828 if { (ac_try="$ac_compile"
9829 case "(($ac_try" in
9830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9831 *) ac_try_echo=$ac_try;;
9832 esac
9833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9834 (eval "$ac_compile") 2>conftest.er1
9835 ac_status=$?
9836 grep -v '^ *+' conftest.er1 >conftest.err
9837 rm -f conftest.er1
9838 cat conftest.err >&5
9839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9840 (exit $ac_status); } && {
9841 test -z "$ac_c_werror_flag" ||
9842 test ! -s conftest.err
9843 } && test -s conftest.$ac_objext; then
9844 ac_hi=$ac_mid
9845 else
9846 echo "$as_me: failed program was:" >&5
9847 sed 's/^/| /' conftest.$ac_ext >&5
9849 ac_lo=`expr '(' $ac_mid ')' + 1`
9852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9853 done
9854 case $ac_lo in
9855 ?*) ac_cv_sizeof_double=$ac_lo;;
9856 '') if test "$ac_cv_type_double" = yes; then
9857 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
9858 See \`config.log' for more details." >&5
9859 echo "$as_me: error: cannot compute sizeof (double)
9860 See \`config.log' for more details." >&2;}
9861 { (exit 77); exit 77; }; }
9862 else
9863 ac_cv_sizeof_double=0
9864 fi ;;
9865 esac
9866 else
9867 cat >conftest.$ac_ext <<_ACEOF
9868 /* confdefs.h. */
9869 _ACEOF
9870 cat confdefs.h >>conftest.$ac_ext
9871 cat >>conftest.$ac_ext <<_ACEOF
9872 /* end confdefs.h. */
9873 $ac_includes_default
9874 typedef double ac__type_sizeof_;
9875 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9876 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9877 #include <stdio.h>
9878 #include <stdlib.h>
9880 main ()
9883 FILE *f = fopen ("conftest.val", "w");
9884 if (! f)
9885 return 1;
9886 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9888 long int i = longval ();
9889 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9890 return 1;
9891 fprintf (f, "%ld\n", i);
9893 else
9895 unsigned long int i = ulongval ();
9896 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9897 return 1;
9898 fprintf (f, "%lu\n", i);
9900 return ferror (f) || fclose (f) != 0;
9903 return 0;
9905 _ACEOF
9906 rm -f conftest$ac_exeext
9907 if { (ac_try="$ac_link"
9908 case "(($ac_try" in
9909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9910 *) ac_try_echo=$ac_try;;
9911 esac
9912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9913 (eval "$ac_link") 2>&5
9914 ac_status=$?
9915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9916 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9917 { (case "(($ac_try" in
9918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9919 *) ac_try_echo=$ac_try;;
9920 esac
9921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9922 (eval "$ac_try") 2>&5
9923 ac_status=$?
9924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9925 (exit $ac_status); }; }; then
9926 ac_cv_sizeof_double=`cat conftest.val`
9927 else
9928 echo "$as_me: program exited with status $ac_status" >&5
9929 echo "$as_me: failed program was:" >&5
9930 sed 's/^/| /' conftest.$ac_ext >&5
9932 ( exit $ac_status )
9933 if test "$ac_cv_type_double" = yes; then
9934 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
9935 See \`config.log' for more details." >&5
9936 echo "$as_me: error: cannot compute sizeof (double)
9937 See \`config.log' for more details." >&2;}
9938 { (exit 77); exit 77; }; }
9939 else
9940 ac_cv_sizeof_double=0
9943 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9945 rm -f conftest.val
9947 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
9948 echo "${ECHO_T}$ac_cv_sizeof_double" >&6; }
9952 cat >>confdefs.h <<_ACEOF
9953 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
9954 _ACEOF
9957 { echo "$as_me:$LINENO: checking for fpos_t" >&5
9958 echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6; }
9959 if test "${ac_cv_type_fpos_t+set}" = set; then
9960 echo $ECHO_N "(cached) $ECHO_C" >&6
9961 else
9962 cat >conftest.$ac_ext <<_ACEOF
9963 /* confdefs.h. */
9964 _ACEOF
9965 cat confdefs.h >>conftest.$ac_ext
9966 cat >>conftest.$ac_ext <<_ACEOF
9967 /* end confdefs.h. */
9968 $ac_includes_default
9969 typedef fpos_t ac__type_new_;
9971 main ()
9973 if ((ac__type_new_ *) 0)
9974 return 0;
9975 if (sizeof (ac__type_new_))
9976 return 0;
9978 return 0;
9980 _ACEOF
9981 rm -f conftest.$ac_objext
9982 if { (ac_try="$ac_compile"
9983 case "(($ac_try" in
9984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9985 *) ac_try_echo=$ac_try;;
9986 esac
9987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9988 (eval "$ac_compile") 2>conftest.er1
9989 ac_status=$?
9990 grep -v '^ *+' conftest.er1 >conftest.err
9991 rm -f conftest.er1
9992 cat conftest.err >&5
9993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9994 (exit $ac_status); } && {
9995 test -z "$ac_c_werror_flag" ||
9996 test ! -s conftest.err
9997 } && test -s conftest.$ac_objext; then
9998 ac_cv_type_fpos_t=yes
9999 else
10000 echo "$as_me: failed program was:" >&5
10001 sed 's/^/| /' conftest.$ac_ext >&5
10003 ac_cv_type_fpos_t=no
10006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10008 { echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
10009 echo "${ECHO_T}$ac_cv_type_fpos_t" >&6; }
10011 # The cast to long int works around a bug in the HP C Compiler
10012 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10013 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10014 # This bug is HP SR number 8606223364.
10015 { echo "$as_me:$LINENO: checking size of fpos_t" >&5
10016 echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6; }
10017 if test "${ac_cv_sizeof_fpos_t+set}" = set; then
10018 echo $ECHO_N "(cached) $ECHO_C" >&6
10019 else
10020 if test "$cross_compiling" = yes; then
10021 # Depending upon the size, compute the lo and hi bounds.
10022 cat >conftest.$ac_ext <<_ACEOF
10023 /* confdefs.h. */
10024 _ACEOF
10025 cat confdefs.h >>conftest.$ac_ext
10026 cat >>conftest.$ac_ext <<_ACEOF
10027 /* end confdefs.h. */
10028 $ac_includes_default
10029 typedef fpos_t ac__type_sizeof_;
10031 main ()
10033 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10034 test_array [0] = 0
10037 return 0;
10039 _ACEOF
10040 rm -f conftest.$ac_objext
10041 if { (ac_try="$ac_compile"
10042 case "(($ac_try" in
10043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10044 *) ac_try_echo=$ac_try;;
10045 esac
10046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10047 (eval "$ac_compile") 2>conftest.er1
10048 ac_status=$?
10049 grep -v '^ *+' conftest.er1 >conftest.err
10050 rm -f conftest.er1
10051 cat conftest.err >&5
10052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10053 (exit $ac_status); } && {
10054 test -z "$ac_c_werror_flag" ||
10055 test ! -s conftest.err
10056 } && test -s conftest.$ac_objext; then
10057 ac_lo=0 ac_mid=0
10058 while :; do
10059 cat >conftest.$ac_ext <<_ACEOF
10060 /* confdefs.h. */
10061 _ACEOF
10062 cat confdefs.h >>conftest.$ac_ext
10063 cat >>conftest.$ac_ext <<_ACEOF
10064 /* end confdefs.h. */
10065 $ac_includes_default
10066 typedef fpos_t ac__type_sizeof_;
10068 main ()
10070 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10071 test_array [0] = 0
10074 return 0;
10076 _ACEOF
10077 rm -f conftest.$ac_objext
10078 if { (ac_try="$ac_compile"
10079 case "(($ac_try" in
10080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10081 *) ac_try_echo=$ac_try;;
10082 esac
10083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10084 (eval "$ac_compile") 2>conftest.er1
10085 ac_status=$?
10086 grep -v '^ *+' conftest.er1 >conftest.err
10087 rm -f conftest.er1
10088 cat conftest.err >&5
10089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10090 (exit $ac_status); } && {
10091 test -z "$ac_c_werror_flag" ||
10092 test ! -s conftest.err
10093 } && test -s conftest.$ac_objext; then
10094 ac_hi=$ac_mid; break
10095 else
10096 echo "$as_me: failed program was:" >&5
10097 sed 's/^/| /' conftest.$ac_ext >&5
10099 ac_lo=`expr $ac_mid + 1`
10100 if test $ac_lo -le $ac_mid; then
10101 ac_lo= ac_hi=
10102 break
10104 ac_mid=`expr 2 '*' $ac_mid + 1`
10107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10108 done
10109 else
10110 echo "$as_me: failed program was:" >&5
10111 sed 's/^/| /' conftest.$ac_ext >&5
10113 cat >conftest.$ac_ext <<_ACEOF
10114 /* confdefs.h. */
10115 _ACEOF
10116 cat confdefs.h >>conftest.$ac_ext
10117 cat >>conftest.$ac_ext <<_ACEOF
10118 /* end confdefs.h. */
10119 $ac_includes_default
10120 typedef fpos_t ac__type_sizeof_;
10122 main ()
10124 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10125 test_array [0] = 0
10128 return 0;
10130 _ACEOF
10131 rm -f conftest.$ac_objext
10132 if { (ac_try="$ac_compile"
10133 case "(($ac_try" in
10134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10135 *) ac_try_echo=$ac_try;;
10136 esac
10137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10138 (eval "$ac_compile") 2>conftest.er1
10139 ac_status=$?
10140 grep -v '^ *+' conftest.er1 >conftest.err
10141 rm -f conftest.er1
10142 cat conftest.err >&5
10143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10144 (exit $ac_status); } && {
10145 test -z "$ac_c_werror_flag" ||
10146 test ! -s conftest.err
10147 } && test -s conftest.$ac_objext; then
10148 ac_hi=-1 ac_mid=-1
10149 while :; do
10150 cat >conftest.$ac_ext <<_ACEOF
10151 /* confdefs.h. */
10152 _ACEOF
10153 cat confdefs.h >>conftest.$ac_ext
10154 cat >>conftest.$ac_ext <<_ACEOF
10155 /* end confdefs.h. */
10156 $ac_includes_default
10157 typedef fpos_t ac__type_sizeof_;
10159 main ()
10161 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10162 test_array [0] = 0
10165 return 0;
10167 _ACEOF
10168 rm -f conftest.$ac_objext
10169 if { (ac_try="$ac_compile"
10170 case "(($ac_try" in
10171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10172 *) ac_try_echo=$ac_try;;
10173 esac
10174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10175 (eval "$ac_compile") 2>conftest.er1
10176 ac_status=$?
10177 grep -v '^ *+' conftest.er1 >conftest.err
10178 rm -f conftest.er1
10179 cat conftest.err >&5
10180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10181 (exit $ac_status); } && {
10182 test -z "$ac_c_werror_flag" ||
10183 test ! -s conftest.err
10184 } && test -s conftest.$ac_objext; then
10185 ac_lo=$ac_mid; break
10186 else
10187 echo "$as_me: failed program was:" >&5
10188 sed 's/^/| /' conftest.$ac_ext >&5
10190 ac_hi=`expr '(' $ac_mid ')' - 1`
10191 if test $ac_mid -le $ac_hi; then
10192 ac_lo= ac_hi=
10193 break
10195 ac_mid=`expr 2 '*' $ac_mid`
10198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10199 done
10200 else
10201 echo "$as_me: failed program was:" >&5
10202 sed 's/^/| /' conftest.$ac_ext >&5
10204 ac_lo= ac_hi=
10207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10211 # Binary search between lo and hi bounds.
10212 while test "x$ac_lo" != "x$ac_hi"; do
10213 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10214 cat >conftest.$ac_ext <<_ACEOF
10215 /* confdefs.h. */
10216 _ACEOF
10217 cat confdefs.h >>conftest.$ac_ext
10218 cat >>conftest.$ac_ext <<_ACEOF
10219 /* end confdefs.h. */
10220 $ac_includes_default
10221 typedef fpos_t ac__type_sizeof_;
10223 main ()
10225 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10226 test_array [0] = 0
10229 return 0;
10231 _ACEOF
10232 rm -f conftest.$ac_objext
10233 if { (ac_try="$ac_compile"
10234 case "(($ac_try" in
10235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10236 *) ac_try_echo=$ac_try;;
10237 esac
10238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10239 (eval "$ac_compile") 2>conftest.er1
10240 ac_status=$?
10241 grep -v '^ *+' conftest.er1 >conftest.err
10242 rm -f conftest.er1
10243 cat conftest.err >&5
10244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10245 (exit $ac_status); } && {
10246 test -z "$ac_c_werror_flag" ||
10247 test ! -s conftest.err
10248 } && test -s conftest.$ac_objext; then
10249 ac_hi=$ac_mid
10250 else
10251 echo "$as_me: failed program was:" >&5
10252 sed 's/^/| /' conftest.$ac_ext >&5
10254 ac_lo=`expr '(' $ac_mid ')' + 1`
10257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10258 done
10259 case $ac_lo in
10260 ?*) ac_cv_sizeof_fpos_t=$ac_lo;;
10261 '') if test "$ac_cv_type_fpos_t" = yes; then
10262 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
10263 See \`config.log' for more details." >&5
10264 echo "$as_me: error: cannot compute sizeof (fpos_t)
10265 See \`config.log' for more details." >&2;}
10266 { (exit 77); exit 77; }; }
10267 else
10268 ac_cv_sizeof_fpos_t=0
10269 fi ;;
10270 esac
10271 else
10272 cat >conftest.$ac_ext <<_ACEOF
10273 /* confdefs.h. */
10274 _ACEOF
10275 cat confdefs.h >>conftest.$ac_ext
10276 cat >>conftest.$ac_ext <<_ACEOF
10277 /* end confdefs.h. */
10278 $ac_includes_default
10279 typedef fpos_t ac__type_sizeof_;
10280 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10281 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10282 #include <stdio.h>
10283 #include <stdlib.h>
10285 main ()
10288 FILE *f = fopen ("conftest.val", "w");
10289 if (! f)
10290 return 1;
10291 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10293 long int i = longval ();
10294 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10295 return 1;
10296 fprintf (f, "%ld\n", i);
10298 else
10300 unsigned long int i = ulongval ();
10301 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10302 return 1;
10303 fprintf (f, "%lu\n", i);
10305 return ferror (f) || fclose (f) != 0;
10308 return 0;
10310 _ACEOF
10311 rm -f conftest$ac_exeext
10312 if { (ac_try="$ac_link"
10313 case "(($ac_try" in
10314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10315 *) ac_try_echo=$ac_try;;
10316 esac
10317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10318 (eval "$ac_link") 2>&5
10319 ac_status=$?
10320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10321 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10322 { (case "(($ac_try" in
10323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10324 *) ac_try_echo=$ac_try;;
10325 esac
10326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10327 (eval "$ac_try") 2>&5
10328 ac_status=$?
10329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10330 (exit $ac_status); }; }; then
10331 ac_cv_sizeof_fpos_t=`cat conftest.val`
10332 else
10333 echo "$as_me: program exited with status $ac_status" >&5
10334 echo "$as_me: failed program was:" >&5
10335 sed 's/^/| /' conftest.$ac_ext >&5
10337 ( exit $ac_status )
10338 if test "$ac_cv_type_fpos_t" = yes; then
10339 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
10340 See \`config.log' for more details." >&5
10341 echo "$as_me: error: cannot compute sizeof (fpos_t)
10342 See \`config.log' for more details." >&2;}
10343 { (exit 77); exit 77; }; }
10344 else
10345 ac_cv_sizeof_fpos_t=0
10348 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10350 rm -f conftest.val
10352 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
10353 echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6; }
10357 cat >>confdefs.h <<_ACEOF
10358 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
10359 _ACEOF
10362 { echo "$as_me:$LINENO: checking for size_t" >&5
10363 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
10364 if test "${ac_cv_type_size_t+set}" = set; then
10365 echo $ECHO_N "(cached) $ECHO_C" >&6
10366 else
10367 cat >conftest.$ac_ext <<_ACEOF
10368 /* confdefs.h. */
10369 _ACEOF
10370 cat confdefs.h >>conftest.$ac_ext
10371 cat >>conftest.$ac_ext <<_ACEOF
10372 /* end confdefs.h. */
10373 $ac_includes_default
10374 typedef size_t ac__type_new_;
10376 main ()
10378 if ((ac__type_new_ *) 0)
10379 return 0;
10380 if (sizeof (ac__type_new_))
10381 return 0;
10383 return 0;
10385 _ACEOF
10386 rm -f conftest.$ac_objext
10387 if { (ac_try="$ac_compile"
10388 case "(($ac_try" in
10389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10390 *) ac_try_echo=$ac_try;;
10391 esac
10392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10393 (eval "$ac_compile") 2>conftest.er1
10394 ac_status=$?
10395 grep -v '^ *+' conftest.er1 >conftest.err
10396 rm -f conftest.er1
10397 cat conftest.err >&5
10398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10399 (exit $ac_status); } && {
10400 test -z "$ac_c_werror_flag" ||
10401 test ! -s conftest.err
10402 } && test -s conftest.$ac_objext; then
10403 ac_cv_type_size_t=yes
10404 else
10405 echo "$as_me: failed program was:" >&5
10406 sed 's/^/| /' conftest.$ac_ext >&5
10408 ac_cv_type_size_t=no
10411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10413 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10414 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
10416 # The cast to long int works around a bug in the HP C Compiler
10417 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10418 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10419 # This bug is HP SR number 8606223364.
10420 { echo "$as_me:$LINENO: checking size of size_t" >&5
10421 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
10422 if test "${ac_cv_sizeof_size_t+set}" = set; then
10423 echo $ECHO_N "(cached) $ECHO_C" >&6
10424 else
10425 if test "$cross_compiling" = yes; then
10426 # Depending upon the size, compute the lo and hi bounds.
10427 cat >conftest.$ac_ext <<_ACEOF
10428 /* confdefs.h. */
10429 _ACEOF
10430 cat confdefs.h >>conftest.$ac_ext
10431 cat >>conftest.$ac_ext <<_ACEOF
10432 /* end confdefs.h. */
10433 $ac_includes_default
10434 typedef size_t ac__type_sizeof_;
10436 main ()
10438 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10439 test_array [0] = 0
10442 return 0;
10444 _ACEOF
10445 rm -f conftest.$ac_objext
10446 if { (ac_try="$ac_compile"
10447 case "(($ac_try" in
10448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10449 *) ac_try_echo=$ac_try;;
10450 esac
10451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10452 (eval "$ac_compile") 2>conftest.er1
10453 ac_status=$?
10454 grep -v '^ *+' conftest.er1 >conftest.err
10455 rm -f conftest.er1
10456 cat conftest.err >&5
10457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10458 (exit $ac_status); } && {
10459 test -z "$ac_c_werror_flag" ||
10460 test ! -s conftest.err
10461 } && test -s conftest.$ac_objext; then
10462 ac_lo=0 ac_mid=0
10463 while :; do
10464 cat >conftest.$ac_ext <<_ACEOF
10465 /* confdefs.h. */
10466 _ACEOF
10467 cat confdefs.h >>conftest.$ac_ext
10468 cat >>conftest.$ac_ext <<_ACEOF
10469 /* end confdefs.h. */
10470 $ac_includes_default
10471 typedef size_t ac__type_sizeof_;
10473 main ()
10475 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10476 test_array [0] = 0
10479 return 0;
10481 _ACEOF
10482 rm -f conftest.$ac_objext
10483 if { (ac_try="$ac_compile"
10484 case "(($ac_try" in
10485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10486 *) ac_try_echo=$ac_try;;
10487 esac
10488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10489 (eval "$ac_compile") 2>conftest.er1
10490 ac_status=$?
10491 grep -v '^ *+' conftest.er1 >conftest.err
10492 rm -f conftest.er1
10493 cat conftest.err >&5
10494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10495 (exit $ac_status); } && {
10496 test -z "$ac_c_werror_flag" ||
10497 test ! -s conftest.err
10498 } && test -s conftest.$ac_objext; then
10499 ac_hi=$ac_mid; break
10500 else
10501 echo "$as_me: failed program was:" >&5
10502 sed 's/^/| /' conftest.$ac_ext >&5
10504 ac_lo=`expr $ac_mid + 1`
10505 if test $ac_lo -le $ac_mid; then
10506 ac_lo= ac_hi=
10507 break
10509 ac_mid=`expr 2 '*' $ac_mid + 1`
10512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10513 done
10514 else
10515 echo "$as_me: failed program was:" >&5
10516 sed 's/^/| /' conftest.$ac_ext >&5
10518 cat >conftest.$ac_ext <<_ACEOF
10519 /* confdefs.h. */
10520 _ACEOF
10521 cat confdefs.h >>conftest.$ac_ext
10522 cat >>conftest.$ac_ext <<_ACEOF
10523 /* end confdefs.h. */
10524 $ac_includes_default
10525 typedef size_t ac__type_sizeof_;
10527 main ()
10529 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10530 test_array [0] = 0
10533 return 0;
10535 _ACEOF
10536 rm -f conftest.$ac_objext
10537 if { (ac_try="$ac_compile"
10538 case "(($ac_try" in
10539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10540 *) ac_try_echo=$ac_try;;
10541 esac
10542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10543 (eval "$ac_compile") 2>conftest.er1
10544 ac_status=$?
10545 grep -v '^ *+' conftest.er1 >conftest.err
10546 rm -f conftest.er1
10547 cat conftest.err >&5
10548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10549 (exit $ac_status); } && {
10550 test -z "$ac_c_werror_flag" ||
10551 test ! -s conftest.err
10552 } && test -s conftest.$ac_objext; then
10553 ac_hi=-1 ac_mid=-1
10554 while :; do
10555 cat >conftest.$ac_ext <<_ACEOF
10556 /* confdefs.h. */
10557 _ACEOF
10558 cat confdefs.h >>conftest.$ac_ext
10559 cat >>conftest.$ac_ext <<_ACEOF
10560 /* end confdefs.h. */
10561 $ac_includes_default
10562 typedef size_t ac__type_sizeof_;
10564 main ()
10566 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10567 test_array [0] = 0
10570 return 0;
10572 _ACEOF
10573 rm -f conftest.$ac_objext
10574 if { (ac_try="$ac_compile"
10575 case "(($ac_try" in
10576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10577 *) ac_try_echo=$ac_try;;
10578 esac
10579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10580 (eval "$ac_compile") 2>conftest.er1
10581 ac_status=$?
10582 grep -v '^ *+' conftest.er1 >conftest.err
10583 rm -f conftest.er1
10584 cat conftest.err >&5
10585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10586 (exit $ac_status); } && {
10587 test -z "$ac_c_werror_flag" ||
10588 test ! -s conftest.err
10589 } && test -s conftest.$ac_objext; then
10590 ac_lo=$ac_mid; break
10591 else
10592 echo "$as_me: failed program was:" >&5
10593 sed 's/^/| /' conftest.$ac_ext >&5
10595 ac_hi=`expr '(' $ac_mid ')' - 1`
10596 if test $ac_mid -le $ac_hi; then
10597 ac_lo= ac_hi=
10598 break
10600 ac_mid=`expr 2 '*' $ac_mid`
10603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10604 done
10605 else
10606 echo "$as_me: failed program was:" >&5
10607 sed 's/^/| /' conftest.$ac_ext >&5
10609 ac_lo= ac_hi=
10612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10616 # Binary search between lo and hi bounds.
10617 while test "x$ac_lo" != "x$ac_hi"; do
10618 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10619 cat >conftest.$ac_ext <<_ACEOF
10620 /* confdefs.h. */
10621 _ACEOF
10622 cat confdefs.h >>conftest.$ac_ext
10623 cat >>conftest.$ac_ext <<_ACEOF
10624 /* end confdefs.h. */
10625 $ac_includes_default
10626 typedef size_t ac__type_sizeof_;
10628 main ()
10630 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10631 test_array [0] = 0
10634 return 0;
10636 _ACEOF
10637 rm -f conftest.$ac_objext
10638 if { (ac_try="$ac_compile"
10639 case "(($ac_try" in
10640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10641 *) ac_try_echo=$ac_try;;
10642 esac
10643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10644 (eval "$ac_compile") 2>conftest.er1
10645 ac_status=$?
10646 grep -v '^ *+' conftest.er1 >conftest.err
10647 rm -f conftest.er1
10648 cat conftest.err >&5
10649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10650 (exit $ac_status); } && {
10651 test -z "$ac_c_werror_flag" ||
10652 test ! -s conftest.err
10653 } && test -s conftest.$ac_objext; then
10654 ac_hi=$ac_mid
10655 else
10656 echo "$as_me: failed program was:" >&5
10657 sed 's/^/| /' conftest.$ac_ext >&5
10659 ac_lo=`expr '(' $ac_mid ')' + 1`
10662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10663 done
10664 case $ac_lo in
10665 ?*) ac_cv_sizeof_size_t=$ac_lo;;
10666 '') if test "$ac_cv_type_size_t" = yes; then
10667 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
10668 See \`config.log' for more details." >&5
10669 echo "$as_me: error: cannot compute sizeof (size_t)
10670 See \`config.log' for more details." >&2;}
10671 { (exit 77); exit 77; }; }
10672 else
10673 ac_cv_sizeof_size_t=0
10674 fi ;;
10675 esac
10676 else
10677 cat >conftest.$ac_ext <<_ACEOF
10678 /* confdefs.h. */
10679 _ACEOF
10680 cat confdefs.h >>conftest.$ac_ext
10681 cat >>conftest.$ac_ext <<_ACEOF
10682 /* end confdefs.h. */
10683 $ac_includes_default
10684 typedef size_t ac__type_sizeof_;
10685 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10686 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10687 #include <stdio.h>
10688 #include <stdlib.h>
10690 main ()
10693 FILE *f = fopen ("conftest.val", "w");
10694 if (! f)
10695 return 1;
10696 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10698 long int i = longval ();
10699 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10700 return 1;
10701 fprintf (f, "%ld\n", i);
10703 else
10705 unsigned long int i = ulongval ();
10706 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10707 return 1;
10708 fprintf (f, "%lu\n", i);
10710 return ferror (f) || fclose (f) != 0;
10713 return 0;
10715 _ACEOF
10716 rm -f conftest$ac_exeext
10717 if { (ac_try="$ac_link"
10718 case "(($ac_try" in
10719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10720 *) ac_try_echo=$ac_try;;
10721 esac
10722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10723 (eval "$ac_link") 2>&5
10724 ac_status=$?
10725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10726 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10727 { (case "(($ac_try" in
10728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10729 *) ac_try_echo=$ac_try;;
10730 esac
10731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10732 (eval "$ac_try") 2>&5
10733 ac_status=$?
10734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10735 (exit $ac_status); }; }; then
10736 ac_cv_sizeof_size_t=`cat conftest.val`
10737 else
10738 echo "$as_me: program exited with status $ac_status" >&5
10739 echo "$as_me: failed program was:" >&5
10740 sed 's/^/| /' conftest.$ac_ext >&5
10742 ( exit $ac_status )
10743 if test "$ac_cv_type_size_t" = yes; then
10744 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
10745 See \`config.log' for more details." >&5
10746 echo "$as_me: error: cannot compute sizeof (size_t)
10747 See \`config.log' for more details." >&2;}
10748 { (exit 77); exit 77; }; }
10749 else
10750 ac_cv_sizeof_size_t=0
10753 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10755 rm -f conftest.val
10757 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
10758 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
10762 cat >>confdefs.h <<_ACEOF
10763 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
10764 _ACEOF
10767 { echo "$as_me:$LINENO: checking for pid_t" >&5
10768 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
10769 if test "${ac_cv_type_pid_t+set}" = set; then
10770 echo $ECHO_N "(cached) $ECHO_C" >&6
10771 else
10772 cat >conftest.$ac_ext <<_ACEOF
10773 /* confdefs.h. */
10774 _ACEOF
10775 cat confdefs.h >>conftest.$ac_ext
10776 cat >>conftest.$ac_ext <<_ACEOF
10777 /* end confdefs.h. */
10778 $ac_includes_default
10779 typedef pid_t ac__type_new_;
10781 main ()
10783 if ((ac__type_new_ *) 0)
10784 return 0;
10785 if (sizeof (ac__type_new_))
10786 return 0;
10788 return 0;
10790 _ACEOF
10791 rm -f conftest.$ac_objext
10792 if { (ac_try="$ac_compile"
10793 case "(($ac_try" in
10794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10795 *) ac_try_echo=$ac_try;;
10796 esac
10797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10798 (eval "$ac_compile") 2>conftest.er1
10799 ac_status=$?
10800 grep -v '^ *+' conftest.er1 >conftest.err
10801 rm -f conftest.er1
10802 cat conftest.err >&5
10803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10804 (exit $ac_status); } && {
10805 test -z "$ac_c_werror_flag" ||
10806 test ! -s conftest.err
10807 } && test -s conftest.$ac_objext; then
10808 ac_cv_type_pid_t=yes
10809 else
10810 echo "$as_me: failed program was:" >&5
10811 sed 's/^/| /' conftest.$ac_ext >&5
10813 ac_cv_type_pid_t=no
10816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10818 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10819 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
10821 # The cast to long int works around a bug in the HP C Compiler
10822 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10823 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10824 # This bug is HP SR number 8606223364.
10825 { echo "$as_me:$LINENO: checking size of pid_t" >&5
10826 echo $ECHO_N "checking size of pid_t... $ECHO_C" >&6; }
10827 if test "${ac_cv_sizeof_pid_t+set}" = set; then
10828 echo $ECHO_N "(cached) $ECHO_C" >&6
10829 else
10830 if test "$cross_compiling" = yes; then
10831 # Depending upon the size, compute the lo and hi bounds.
10832 cat >conftest.$ac_ext <<_ACEOF
10833 /* confdefs.h. */
10834 _ACEOF
10835 cat confdefs.h >>conftest.$ac_ext
10836 cat >>conftest.$ac_ext <<_ACEOF
10837 /* end confdefs.h. */
10838 $ac_includes_default
10839 typedef pid_t ac__type_sizeof_;
10841 main ()
10843 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10844 test_array [0] = 0
10847 return 0;
10849 _ACEOF
10850 rm -f conftest.$ac_objext
10851 if { (ac_try="$ac_compile"
10852 case "(($ac_try" in
10853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10854 *) ac_try_echo=$ac_try;;
10855 esac
10856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10857 (eval "$ac_compile") 2>conftest.er1
10858 ac_status=$?
10859 grep -v '^ *+' conftest.er1 >conftest.err
10860 rm -f conftest.er1
10861 cat conftest.err >&5
10862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10863 (exit $ac_status); } && {
10864 test -z "$ac_c_werror_flag" ||
10865 test ! -s conftest.err
10866 } && test -s conftest.$ac_objext; then
10867 ac_lo=0 ac_mid=0
10868 while :; do
10869 cat >conftest.$ac_ext <<_ACEOF
10870 /* confdefs.h. */
10871 _ACEOF
10872 cat confdefs.h >>conftest.$ac_ext
10873 cat >>conftest.$ac_ext <<_ACEOF
10874 /* end confdefs.h. */
10875 $ac_includes_default
10876 typedef pid_t ac__type_sizeof_;
10878 main ()
10880 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10881 test_array [0] = 0
10884 return 0;
10886 _ACEOF
10887 rm -f conftest.$ac_objext
10888 if { (ac_try="$ac_compile"
10889 case "(($ac_try" in
10890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10891 *) ac_try_echo=$ac_try;;
10892 esac
10893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10894 (eval "$ac_compile") 2>conftest.er1
10895 ac_status=$?
10896 grep -v '^ *+' conftest.er1 >conftest.err
10897 rm -f conftest.er1
10898 cat conftest.err >&5
10899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10900 (exit $ac_status); } && {
10901 test -z "$ac_c_werror_flag" ||
10902 test ! -s conftest.err
10903 } && test -s conftest.$ac_objext; then
10904 ac_hi=$ac_mid; break
10905 else
10906 echo "$as_me: failed program was:" >&5
10907 sed 's/^/| /' conftest.$ac_ext >&5
10909 ac_lo=`expr $ac_mid + 1`
10910 if test $ac_lo -le $ac_mid; then
10911 ac_lo= ac_hi=
10912 break
10914 ac_mid=`expr 2 '*' $ac_mid + 1`
10917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10918 done
10919 else
10920 echo "$as_me: failed program was:" >&5
10921 sed 's/^/| /' conftest.$ac_ext >&5
10923 cat >conftest.$ac_ext <<_ACEOF
10924 /* confdefs.h. */
10925 _ACEOF
10926 cat confdefs.h >>conftest.$ac_ext
10927 cat >>conftest.$ac_ext <<_ACEOF
10928 /* end confdefs.h. */
10929 $ac_includes_default
10930 typedef pid_t ac__type_sizeof_;
10932 main ()
10934 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10935 test_array [0] = 0
10938 return 0;
10940 _ACEOF
10941 rm -f conftest.$ac_objext
10942 if { (ac_try="$ac_compile"
10943 case "(($ac_try" in
10944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10945 *) ac_try_echo=$ac_try;;
10946 esac
10947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10948 (eval "$ac_compile") 2>conftest.er1
10949 ac_status=$?
10950 grep -v '^ *+' conftest.er1 >conftest.err
10951 rm -f conftest.er1
10952 cat conftest.err >&5
10953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10954 (exit $ac_status); } && {
10955 test -z "$ac_c_werror_flag" ||
10956 test ! -s conftest.err
10957 } && test -s conftest.$ac_objext; then
10958 ac_hi=-1 ac_mid=-1
10959 while :; do
10960 cat >conftest.$ac_ext <<_ACEOF
10961 /* confdefs.h. */
10962 _ACEOF
10963 cat confdefs.h >>conftest.$ac_ext
10964 cat >>conftest.$ac_ext <<_ACEOF
10965 /* end confdefs.h. */
10966 $ac_includes_default
10967 typedef pid_t ac__type_sizeof_;
10969 main ()
10971 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10972 test_array [0] = 0
10975 return 0;
10977 _ACEOF
10978 rm -f conftest.$ac_objext
10979 if { (ac_try="$ac_compile"
10980 case "(($ac_try" in
10981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10982 *) ac_try_echo=$ac_try;;
10983 esac
10984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10985 (eval "$ac_compile") 2>conftest.er1
10986 ac_status=$?
10987 grep -v '^ *+' conftest.er1 >conftest.err
10988 rm -f conftest.er1
10989 cat conftest.err >&5
10990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10991 (exit $ac_status); } && {
10992 test -z "$ac_c_werror_flag" ||
10993 test ! -s conftest.err
10994 } && test -s conftest.$ac_objext; then
10995 ac_lo=$ac_mid; break
10996 else
10997 echo "$as_me: failed program was:" >&5
10998 sed 's/^/| /' conftest.$ac_ext >&5
11000 ac_hi=`expr '(' $ac_mid ')' - 1`
11001 if test $ac_mid -le $ac_hi; then
11002 ac_lo= ac_hi=
11003 break
11005 ac_mid=`expr 2 '*' $ac_mid`
11008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11009 done
11010 else
11011 echo "$as_me: failed program was:" >&5
11012 sed 's/^/| /' conftest.$ac_ext >&5
11014 ac_lo= ac_hi=
11017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11021 # Binary search between lo and hi bounds.
11022 while test "x$ac_lo" != "x$ac_hi"; do
11023 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11024 cat >conftest.$ac_ext <<_ACEOF
11025 /* confdefs.h. */
11026 _ACEOF
11027 cat confdefs.h >>conftest.$ac_ext
11028 cat >>conftest.$ac_ext <<_ACEOF
11029 /* end confdefs.h. */
11030 $ac_includes_default
11031 typedef pid_t ac__type_sizeof_;
11033 main ()
11035 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11036 test_array [0] = 0
11039 return 0;
11041 _ACEOF
11042 rm -f conftest.$ac_objext
11043 if { (ac_try="$ac_compile"
11044 case "(($ac_try" in
11045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11046 *) ac_try_echo=$ac_try;;
11047 esac
11048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11049 (eval "$ac_compile") 2>conftest.er1
11050 ac_status=$?
11051 grep -v '^ *+' conftest.er1 >conftest.err
11052 rm -f conftest.er1
11053 cat conftest.err >&5
11054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11055 (exit $ac_status); } && {
11056 test -z "$ac_c_werror_flag" ||
11057 test ! -s conftest.err
11058 } && test -s conftest.$ac_objext; then
11059 ac_hi=$ac_mid
11060 else
11061 echo "$as_me: failed program was:" >&5
11062 sed 's/^/| /' conftest.$ac_ext >&5
11064 ac_lo=`expr '(' $ac_mid ')' + 1`
11067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11068 done
11069 case $ac_lo in
11070 ?*) ac_cv_sizeof_pid_t=$ac_lo;;
11071 '') if test "$ac_cv_type_pid_t" = yes; then
11072 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t)
11073 See \`config.log' for more details." >&5
11074 echo "$as_me: error: cannot compute sizeof (pid_t)
11075 See \`config.log' for more details." >&2;}
11076 { (exit 77); exit 77; }; }
11077 else
11078 ac_cv_sizeof_pid_t=0
11079 fi ;;
11080 esac
11081 else
11082 cat >conftest.$ac_ext <<_ACEOF
11083 /* confdefs.h. */
11084 _ACEOF
11085 cat confdefs.h >>conftest.$ac_ext
11086 cat >>conftest.$ac_ext <<_ACEOF
11087 /* end confdefs.h. */
11088 $ac_includes_default
11089 typedef pid_t ac__type_sizeof_;
11090 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11091 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11092 #include <stdio.h>
11093 #include <stdlib.h>
11095 main ()
11098 FILE *f = fopen ("conftest.val", "w");
11099 if (! f)
11100 return 1;
11101 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11103 long int i = longval ();
11104 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11105 return 1;
11106 fprintf (f, "%ld\n", i);
11108 else
11110 unsigned long int i = ulongval ();
11111 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11112 return 1;
11113 fprintf (f, "%lu\n", i);
11115 return ferror (f) || fclose (f) != 0;
11118 return 0;
11120 _ACEOF
11121 rm -f conftest$ac_exeext
11122 if { (ac_try="$ac_link"
11123 case "(($ac_try" in
11124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11125 *) ac_try_echo=$ac_try;;
11126 esac
11127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11128 (eval "$ac_link") 2>&5
11129 ac_status=$?
11130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11131 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11132 { (case "(($ac_try" in
11133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11134 *) ac_try_echo=$ac_try;;
11135 esac
11136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11137 (eval "$ac_try") 2>&5
11138 ac_status=$?
11139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11140 (exit $ac_status); }; }; then
11141 ac_cv_sizeof_pid_t=`cat conftest.val`
11142 else
11143 echo "$as_me: program exited with status $ac_status" >&5
11144 echo "$as_me: failed program was:" >&5
11145 sed 's/^/| /' conftest.$ac_ext >&5
11147 ( exit $ac_status )
11148 if test "$ac_cv_type_pid_t" = yes; then
11149 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t)
11150 See \`config.log' for more details." >&5
11151 echo "$as_me: error: cannot compute sizeof (pid_t)
11152 See \`config.log' for more details." >&2;}
11153 { (exit 77); exit 77; }; }
11154 else
11155 ac_cv_sizeof_pid_t=0
11158 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11160 rm -f conftest.val
11162 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pid_t" >&5
11163 echo "${ECHO_T}$ac_cv_sizeof_pid_t" >&6; }
11167 cat >>confdefs.h <<_ACEOF
11168 #define SIZEOF_PID_T $ac_cv_sizeof_pid_t
11169 _ACEOF
11173 { echo "$as_me:$LINENO: checking for long long support" >&5
11174 echo $ECHO_N "checking for long long support... $ECHO_C" >&6; }
11175 have_long_long=no
11176 cat >conftest.$ac_ext <<_ACEOF
11177 /* confdefs.h. */
11178 _ACEOF
11179 cat confdefs.h >>conftest.$ac_ext
11180 cat >>conftest.$ac_ext <<_ACEOF
11181 /* end confdefs.h. */
11184 main ()
11186 long long x; x = (long long)0;
11188 return 0;
11190 _ACEOF
11191 rm -f conftest.$ac_objext
11192 if { (ac_try="$ac_compile"
11193 case "(($ac_try" in
11194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11195 *) ac_try_echo=$ac_try;;
11196 esac
11197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11198 (eval "$ac_compile") 2>conftest.er1
11199 ac_status=$?
11200 grep -v '^ *+' conftest.er1 >conftest.err
11201 rm -f conftest.er1
11202 cat conftest.err >&5
11203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11204 (exit $ac_status); } && {
11205 test -z "$ac_c_werror_flag" ||
11206 test ! -s conftest.err
11207 } && test -s conftest.$ac_objext; then
11210 cat >>confdefs.h <<\_ACEOF
11211 #define HAVE_LONG_LONG 1
11212 _ACEOF
11214 have_long_long=yes
11216 else
11217 echo "$as_me: failed program was:" >&5
11218 sed 's/^/| /' conftest.$ac_ext >&5
11223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11224 { echo "$as_me:$LINENO: result: $have_long_long" >&5
11225 echo "${ECHO_T}$have_long_long" >&6; }
11226 if test "$have_long_long" = yes ; then
11227 { echo "$as_me:$LINENO: checking for long long" >&5
11228 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
11229 if test "${ac_cv_type_long_long+set}" = set; then
11230 echo $ECHO_N "(cached) $ECHO_C" >&6
11231 else
11232 cat >conftest.$ac_ext <<_ACEOF
11233 /* confdefs.h. */
11234 _ACEOF
11235 cat confdefs.h >>conftest.$ac_ext
11236 cat >>conftest.$ac_ext <<_ACEOF
11237 /* end confdefs.h. */
11238 $ac_includes_default
11239 typedef long long ac__type_new_;
11241 main ()
11243 if ((ac__type_new_ *) 0)
11244 return 0;
11245 if (sizeof (ac__type_new_))
11246 return 0;
11248 return 0;
11250 _ACEOF
11251 rm -f conftest.$ac_objext
11252 if { (ac_try="$ac_compile"
11253 case "(($ac_try" in
11254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11255 *) ac_try_echo=$ac_try;;
11256 esac
11257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11258 (eval "$ac_compile") 2>conftest.er1
11259 ac_status=$?
11260 grep -v '^ *+' conftest.er1 >conftest.err
11261 rm -f conftest.er1
11262 cat conftest.err >&5
11263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264 (exit $ac_status); } && {
11265 test -z "$ac_c_werror_flag" ||
11266 test ! -s conftest.err
11267 } && test -s conftest.$ac_objext; then
11268 ac_cv_type_long_long=yes
11269 else
11270 echo "$as_me: failed program was:" >&5
11271 sed 's/^/| /' conftest.$ac_ext >&5
11273 ac_cv_type_long_long=no
11276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11278 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
11279 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
11281 # The cast to long int works around a bug in the HP C Compiler
11282 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11283 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11284 # This bug is HP SR number 8606223364.
11285 { echo "$as_me:$LINENO: checking size of long long" >&5
11286 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
11287 if test "${ac_cv_sizeof_long_long+set}" = set; then
11288 echo $ECHO_N "(cached) $ECHO_C" >&6
11289 else
11290 if test "$cross_compiling" = yes; then
11291 # Depending upon the size, compute the lo and hi bounds.
11292 cat >conftest.$ac_ext <<_ACEOF
11293 /* confdefs.h. */
11294 _ACEOF
11295 cat confdefs.h >>conftest.$ac_ext
11296 cat >>conftest.$ac_ext <<_ACEOF
11297 /* end confdefs.h. */
11298 $ac_includes_default
11299 typedef long long ac__type_sizeof_;
11301 main ()
11303 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11304 test_array [0] = 0
11307 return 0;
11309 _ACEOF
11310 rm -f conftest.$ac_objext
11311 if { (ac_try="$ac_compile"
11312 case "(($ac_try" in
11313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11314 *) ac_try_echo=$ac_try;;
11315 esac
11316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11317 (eval "$ac_compile") 2>conftest.er1
11318 ac_status=$?
11319 grep -v '^ *+' conftest.er1 >conftest.err
11320 rm -f conftest.er1
11321 cat conftest.err >&5
11322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11323 (exit $ac_status); } && {
11324 test -z "$ac_c_werror_flag" ||
11325 test ! -s conftest.err
11326 } && test -s conftest.$ac_objext; then
11327 ac_lo=0 ac_mid=0
11328 while :; do
11329 cat >conftest.$ac_ext <<_ACEOF
11330 /* confdefs.h. */
11331 _ACEOF
11332 cat confdefs.h >>conftest.$ac_ext
11333 cat >>conftest.$ac_ext <<_ACEOF
11334 /* end confdefs.h. */
11335 $ac_includes_default
11336 typedef long long ac__type_sizeof_;
11338 main ()
11340 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11341 test_array [0] = 0
11344 return 0;
11346 _ACEOF
11347 rm -f conftest.$ac_objext
11348 if { (ac_try="$ac_compile"
11349 case "(($ac_try" in
11350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11351 *) ac_try_echo=$ac_try;;
11352 esac
11353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11354 (eval "$ac_compile") 2>conftest.er1
11355 ac_status=$?
11356 grep -v '^ *+' conftest.er1 >conftest.err
11357 rm -f conftest.er1
11358 cat conftest.err >&5
11359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11360 (exit $ac_status); } && {
11361 test -z "$ac_c_werror_flag" ||
11362 test ! -s conftest.err
11363 } && test -s conftest.$ac_objext; then
11364 ac_hi=$ac_mid; break
11365 else
11366 echo "$as_me: failed program was:" >&5
11367 sed 's/^/| /' conftest.$ac_ext >&5
11369 ac_lo=`expr $ac_mid + 1`
11370 if test $ac_lo -le $ac_mid; then
11371 ac_lo= ac_hi=
11372 break
11374 ac_mid=`expr 2 '*' $ac_mid + 1`
11377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11378 done
11379 else
11380 echo "$as_me: failed program was:" >&5
11381 sed 's/^/| /' conftest.$ac_ext >&5
11383 cat >conftest.$ac_ext <<_ACEOF
11384 /* confdefs.h. */
11385 _ACEOF
11386 cat confdefs.h >>conftest.$ac_ext
11387 cat >>conftest.$ac_ext <<_ACEOF
11388 /* end confdefs.h. */
11389 $ac_includes_default
11390 typedef long long ac__type_sizeof_;
11392 main ()
11394 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11395 test_array [0] = 0
11398 return 0;
11400 _ACEOF
11401 rm -f conftest.$ac_objext
11402 if { (ac_try="$ac_compile"
11403 case "(($ac_try" in
11404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11405 *) ac_try_echo=$ac_try;;
11406 esac
11407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11408 (eval "$ac_compile") 2>conftest.er1
11409 ac_status=$?
11410 grep -v '^ *+' conftest.er1 >conftest.err
11411 rm -f conftest.er1
11412 cat conftest.err >&5
11413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11414 (exit $ac_status); } && {
11415 test -z "$ac_c_werror_flag" ||
11416 test ! -s conftest.err
11417 } && test -s conftest.$ac_objext; then
11418 ac_hi=-1 ac_mid=-1
11419 while :; do
11420 cat >conftest.$ac_ext <<_ACEOF
11421 /* confdefs.h. */
11422 _ACEOF
11423 cat confdefs.h >>conftest.$ac_ext
11424 cat >>conftest.$ac_ext <<_ACEOF
11425 /* end confdefs.h. */
11426 $ac_includes_default
11427 typedef long long ac__type_sizeof_;
11429 main ()
11431 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11432 test_array [0] = 0
11435 return 0;
11437 _ACEOF
11438 rm -f conftest.$ac_objext
11439 if { (ac_try="$ac_compile"
11440 case "(($ac_try" in
11441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11442 *) ac_try_echo=$ac_try;;
11443 esac
11444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11445 (eval "$ac_compile") 2>conftest.er1
11446 ac_status=$?
11447 grep -v '^ *+' conftest.er1 >conftest.err
11448 rm -f conftest.er1
11449 cat conftest.err >&5
11450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11451 (exit $ac_status); } && {
11452 test -z "$ac_c_werror_flag" ||
11453 test ! -s conftest.err
11454 } && test -s conftest.$ac_objext; then
11455 ac_lo=$ac_mid; break
11456 else
11457 echo "$as_me: failed program was:" >&5
11458 sed 's/^/| /' conftest.$ac_ext >&5
11460 ac_hi=`expr '(' $ac_mid ')' - 1`
11461 if test $ac_mid -le $ac_hi; then
11462 ac_lo= ac_hi=
11463 break
11465 ac_mid=`expr 2 '*' $ac_mid`
11468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11469 done
11470 else
11471 echo "$as_me: failed program was:" >&5
11472 sed 's/^/| /' conftest.$ac_ext >&5
11474 ac_lo= ac_hi=
11477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11481 # Binary search between lo and hi bounds.
11482 while test "x$ac_lo" != "x$ac_hi"; do
11483 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11484 cat >conftest.$ac_ext <<_ACEOF
11485 /* confdefs.h. */
11486 _ACEOF
11487 cat confdefs.h >>conftest.$ac_ext
11488 cat >>conftest.$ac_ext <<_ACEOF
11489 /* end confdefs.h. */
11490 $ac_includes_default
11491 typedef long long ac__type_sizeof_;
11493 main ()
11495 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11496 test_array [0] = 0
11499 return 0;
11501 _ACEOF
11502 rm -f conftest.$ac_objext
11503 if { (ac_try="$ac_compile"
11504 case "(($ac_try" in
11505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11506 *) ac_try_echo=$ac_try;;
11507 esac
11508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11509 (eval "$ac_compile") 2>conftest.er1
11510 ac_status=$?
11511 grep -v '^ *+' conftest.er1 >conftest.err
11512 rm -f conftest.er1
11513 cat conftest.err >&5
11514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11515 (exit $ac_status); } && {
11516 test -z "$ac_c_werror_flag" ||
11517 test ! -s conftest.err
11518 } && test -s conftest.$ac_objext; then
11519 ac_hi=$ac_mid
11520 else
11521 echo "$as_me: failed program was:" >&5
11522 sed 's/^/| /' conftest.$ac_ext >&5
11524 ac_lo=`expr '(' $ac_mid ')' + 1`
11527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11528 done
11529 case $ac_lo in
11530 ?*) ac_cv_sizeof_long_long=$ac_lo;;
11531 '') if test "$ac_cv_type_long_long" = yes; then
11532 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
11533 See \`config.log' for more details." >&5
11534 echo "$as_me: error: cannot compute sizeof (long long)
11535 See \`config.log' for more details." >&2;}
11536 { (exit 77); exit 77; }; }
11537 else
11538 ac_cv_sizeof_long_long=0
11539 fi ;;
11540 esac
11541 else
11542 cat >conftest.$ac_ext <<_ACEOF
11543 /* confdefs.h. */
11544 _ACEOF
11545 cat confdefs.h >>conftest.$ac_ext
11546 cat >>conftest.$ac_ext <<_ACEOF
11547 /* end confdefs.h. */
11548 $ac_includes_default
11549 typedef long long ac__type_sizeof_;
11550 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11551 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11552 #include <stdio.h>
11553 #include <stdlib.h>
11555 main ()
11558 FILE *f = fopen ("conftest.val", "w");
11559 if (! f)
11560 return 1;
11561 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11563 long int i = longval ();
11564 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11565 return 1;
11566 fprintf (f, "%ld\n", i);
11568 else
11570 unsigned long int i = ulongval ();
11571 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11572 return 1;
11573 fprintf (f, "%lu\n", i);
11575 return ferror (f) || fclose (f) != 0;
11578 return 0;
11580 _ACEOF
11581 rm -f conftest$ac_exeext
11582 if { (ac_try="$ac_link"
11583 case "(($ac_try" in
11584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11585 *) ac_try_echo=$ac_try;;
11586 esac
11587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11588 (eval "$ac_link") 2>&5
11589 ac_status=$?
11590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11591 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11592 { (case "(($ac_try" in
11593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11594 *) ac_try_echo=$ac_try;;
11595 esac
11596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11597 (eval "$ac_try") 2>&5
11598 ac_status=$?
11599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11600 (exit $ac_status); }; }; then
11601 ac_cv_sizeof_long_long=`cat conftest.val`
11602 else
11603 echo "$as_me: program exited with status $ac_status" >&5
11604 echo "$as_me: failed program was:" >&5
11605 sed 's/^/| /' conftest.$ac_ext >&5
11607 ( exit $ac_status )
11608 if test "$ac_cv_type_long_long" = yes; then
11609 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
11610 See \`config.log' for more details." >&5
11611 echo "$as_me: error: cannot compute sizeof (long long)
11612 See \`config.log' for more details." >&2;}
11613 { (exit 77); exit 77; }; }
11614 else
11615 ac_cv_sizeof_long_long=0
11618 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11620 rm -f conftest.val
11622 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
11623 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
11627 cat >>confdefs.h <<_ACEOF
11628 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
11629 _ACEOF
11634 { echo "$as_me:$LINENO: checking for long double support" >&5
11635 echo $ECHO_N "checking for long double support... $ECHO_C" >&6; }
11636 have_long_double=no
11637 cat >conftest.$ac_ext <<_ACEOF
11638 /* confdefs.h. */
11639 _ACEOF
11640 cat confdefs.h >>conftest.$ac_ext
11641 cat >>conftest.$ac_ext <<_ACEOF
11642 /* end confdefs.h. */
11645 main ()
11647 long double x; x = (long double)0.;
11649 return 0;
11651 _ACEOF
11652 rm -f conftest.$ac_objext
11653 if { (ac_try="$ac_compile"
11654 case "(($ac_try" in
11655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11656 *) ac_try_echo=$ac_try;;
11657 esac
11658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11659 (eval "$ac_compile") 2>conftest.er1
11660 ac_status=$?
11661 grep -v '^ *+' conftest.er1 >conftest.err
11662 rm -f conftest.er1
11663 cat conftest.err >&5
11664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11665 (exit $ac_status); } && {
11666 test -z "$ac_c_werror_flag" ||
11667 test ! -s conftest.err
11668 } && test -s conftest.$ac_objext; then
11671 cat >>confdefs.h <<\_ACEOF
11672 #define HAVE_LONG_DOUBLE 1
11673 _ACEOF
11675 have_long_double=yes
11677 else
11678 echo "$as_me: failed program was:" >&5
11679 sed 's/^/| /' conftest.$ac_ext >&5
11684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11685 { echo "$as_me:$LINENO: result: $have_long_double" >&5
11686 echo "${ECHO_T}$have_long_double" >&6; }
11687 if test "$have_long_double" = yes ; then
11688 { echo "$as_me:$LINENO: checking for long double" >&5
11689 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
11690 if test "${ac_cv_type_long_double+set}" = set; then
11691 echo $ECHO_N "(cached) $ECHO_C" >&6
11692 else
11693 cat >conftest.$ac_ext <<_ACEOF
11694 /* confdefs.h. */
11695 _ACEOF
11696 cat confdefs.h >>conftest.$ac_ext
11697 cat >>conftest.$ac_ext <<_ACEOF
11698 /* end confdefs.h. */
11699 $ac_includes_default
11700 typedef long double ac__type_new_;
11702 main ()
11704 if ((ac__type_new_ *) 0)
11705 return 0;
11706 if (sizeof (ac__type_new_))
11707 return 0;
11709 return 0;
11711 _ACEOF
11712 rm -f conftest.$ac_objext
11713 if { (ac_try="$ac_compile"
11714 case "(($ac_try" in
11715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11716 *) ac_try_echo=$ac_try;;
11717 esac
11718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11719 (eval "$ac_compile") 2>conftest.er1
11720 ac_status=$?
11721 grep -v '^ *+' conftest.er1 >conftest.err
11722 rm -f conftest.er1
11723 cat conftest.err >&5
11724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11725 (exit $ac_status); } && {
11726 test -z "$ac_c_werror_flag" ||
11727 test ! -s conftest.err
11728 } && test -s conftest.$ac_objext; then
11729 ac_cv_type_long_double=yes
11730 else
11731 echo "$as_me: failed program was:" >&5
11732 sed 's/^/| /' conftest.$ac_ext >&5
11734 ac_cv_type_long_double=no
11737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11739 { echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
11740 echo "${ECHO_T}$ac_cv_type_long_double" >&6; }
11742 # The cast to long int works around a bug in the HP C Compiler
11743 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11744 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11745 # This bug is HP SR number 8606223364.
11746 { echo "$as_me:$LINENO: checking size of long double" >&5
11747 echo $ECHO_N "checking size of long double... $ECHO_C" >&6; }
11748 if test "${ac_cv_sizeof_long_double+set}" = set; then
11749 echo $ECHO_N "(cached) $ECHO_C" >&6
11750 else
11751 if test "$cross_compiling" = yes; then
11752 # Depending upon the size, compute the lo and hi bounds.
11753 cat >conftest.$ac_ext <<_ACEOF
11754 /* confdefs.h. */
11755 _ACEOF
11756 cat confdefs.h >>conftest.$ac_ext
11757 cat >>conftest.$ac_ext <<_ACEOF
11758 /* end confdefs.h. */
11759 $ac_includes_default
11760 typedef long double ac__type_sizeof_;
11762 main ()
11764 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11765 test_array [0] = 0
11768 return 0;
11770 _ACEOF
11771 rm -f conftest.$ac_objext
11772 if { (ac_try="$ac_compile"
11773 case "(($ac_try" in
11774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11775 *) ac_try_echo=$ac_try;;
11776 esac
11777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11778 (eval "$ac_compile") 2>conftest.er1
11779 ac_status=$?
11780 grep -v '^ *+' conftest.er1 >conftest.err
11781 rm -f conftest.er1
11782 cat conftest.err >&5
11783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11784 (exit $ac_status); } && {
11785 test -z "$ac_c_werror_flag" ||
11786 test ! -s conftest.err
11787 } && test -s conftest.$ac_objext; then
11788 ac_lo=0 ac_mid=0
11789 while :; do
11790 cat >conftest.$ac_ext <<_ACEOF
11791 /* confdefs.h. */
11792 _ACEOF
11793 cat confdefs.h >>conftest.$ac_ext
11794 cat >>conftest.$ac_ext <<_ACEOF
11795 /* end confdefs.h. */
11796 $ac_includes_default
11797 typedef long double ac__type_sizeof_;
11799 main ()
11801 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11802 test_array [0] = 0
11805 return 0;
11807 _ACEOF
11808 rm -f conftest.$ac_objext
11809 if { (ac_try="$ac_compile"
11810 case "(($ac_try" in
11811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11812 *) ac_try_echo=$ac_try;;
11813 esac
11814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11815 (eval "$ac_compile") 2>conftest.er1
11816 ac_status=$?
11817 grep -v '^ *+' conftest.er1 >conftest.err
11818 rm -f conftest.er1
11819 cat conftest.err >&5
11820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11821 (exit $ac_status); } && {
11822 test -z "$ac_c_werror_flag" ||
11823 test ! -s conftest.err
11824 } && test -s conftest.$ac_objext; then
11825 ac_hi=$ac_mid; break
11826 else
11827 echo "$as_me: failed program was:" >&5
11828 sed 's/^/| /' conftest.$ac_ext >&5
11830 ac_lo=`expr $ac_mid + 1`
11831 if test $ac_lo -le $ac_mid; then
11832 ac_lo= ac_hi=
11833 break
11835 ac_mid=`expr 2 '*' $ac_mid + 1`
11838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11839 done
11840 else
11841 echo "$as_me: failed program was:" >&5
11842 sed 's/^/| /' conftest.$ac_ext >&5
11844 cat >conftest.$ac_ext <<_ACEOF
11845 /* confdefs.h. */
11846 _ACEOF
11847 cat confdefs.h >>conftest.$ac_ext
11848 cat >>conftest.$ac_ext <<_ACEOF
11849 /* end confdefs.h. */
11850 $ac_includes_default
11851 typedef long double ac__type_sizeof_;
11853 main ()
11855 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11856 test_array [0] = 0
11859 return 0;
11861 _ACEOF
11862 rm -f conftest.$ac_objext
11863 if { (ac_try="$ac_compile"
11864 case "(($ac_try" in
11865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11866 *) ac_try_echo=$ac_try;;
11867 esac
11868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11869 (eval "$ac_compile") 2>conftest.er1
11870 ac_status=$?
11871 grep -v '^ *+' conftest.er1 >conftest.err
11872 rm -f conftest.er1
11873 cat conftest.err >&5
11874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11875 (exit $ac_status); } && {
11876 test -z "$ac_c_werror_flag" ||
11877 test ! -s conftest.err
11878 } && test -s conftest.$ac_objext; then
11879 ac_hi=-1 ac_mid=-1
11880 while :; do
11881 cat >conftest.$ac_ext <<_ACEOF
11882 /* confdefs.h. */
11883 _ACEOF
11884 cat confdefs.h >>conftest.$ac_ext
11885 cat >>conftest.$ac_ext <<_ACEOF
11886 /* end confdefs.h. */
11887 $ac_includes_default
11888 typedef long double ac__type_sizeof_;
11890 main ()
11892 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11893 test_array [0] = 0
11896 return 0;
11898 _ACEOF
11899 rm -f conftest.$ac_objext
11900 if { (ac_try="$ac_compile"
11901 case "(($ac_try" in
11902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11903 *) ac_try_echo=$ac_try;;
11904 esac
11905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11906 (eval "$ac_compile") 2>conftest.er1
11907 ac_status=$?
11908 grep -v '^ *+' conftest.er1 >conftest.err
11909 rm -f conftest.er1
11910 cat conftest.err >&5
11911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11912 (exit $ac_status); } && {
11913 test -z "$ac_c_werror_flag" ||
11914 test ! -s conftest.err
11915 } && test -s conftest.$ac_objext; then
11916 ac_lo=$ac_mid; break
11917 else
11918 echo "$as_me: failed program was:" >&5
11919 sed 's/^/| /' conftest.$ac_ext >&5
11921 ac_hi=`expr '(' $ac_mid ')' - 1`
11922 if test $ac_mid -le $ac_hi; then
11923 ac_lo= ac_hi=
11924 break
11926 ac_mid=`expr 2 '*' $ac_mid`
11929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11930 done
11931 else
11932 echo "$as_me: failed program was:" >&5
11933 sed 's/^/| /' conftest.$ac_ext >&5
11935 ac_lo= ac_hi=
11938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11942 # Binary search between lo and hi bounds.
11943 while test "x$ac_lo" != "x$ac_hi"; do
11944 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11945 cat >conftest.$ac_ext <<_ACEOF
11946 /* confdefs.h. */
11947 _ACEOF
11948 cat confdefs.h >>conftest.$ac_ext
11949 cat >>conftest.$ac_ext <<_ACEOF
11950 /* end confdefs.h. */
11951 $ac_includes_default
11952 typedef long double ac__type_sizeof_;
11954 main ()
11956 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11957 test_array [0] = 0
11960 return 0;
11962 _ACEOF
11963 rm -f conftest.$ac_objext
11964 if { (ac_try="$ac_compile"
11965 case "(($ac_try" in
11966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11967 *) ac_try_echo=$ac_try;;
11968 esac
11969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11970 (eval "$ac_compile") 2>conftest.er1
11971 ac_status=$?
11972 grep -v '^ *+' conftest.er1 >conftest.err
11973 rm -f conftest.er1
11974 cat conftest.err >&5
11975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11976 (exit $ac_status); } && {
11977 test -z "$ac_c_werror_flag" ||
11978 test ! -s conftest.err
11979 } && test -s conftest.$ac_objext; then
11980 ac_hi=$ac_mid
11981 else
11982 echo "$as_me: failed program was:" >&5
11983 sed 's/^/| /' conftest.$ac_ext >&5
11985 ac_lo=`expr '(' $ac_mid ')' + 1`
11988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11989 done
11990 case $ac_lo in
11991 ?*) ac_cv_sizeof_long_double=$ac_lo;;
11992 '') if test "$ac_cv_type_long_double" = yes; then
11993 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
11994 See \`config.log' for more details." >&5
11995 echo "$as_me: error: cannot compute sizeof (long double)
11996 See \`config.log' for more details." >&2;}
11997 { (exit 77); exit 77; }; }
11998 else
11999 ac_cv_sizeof_long_double=0
12000 fi ;;
12001 esac
12002 else
12003 cat >conftest.$ac_ext <<_ACEOF
12004 /* confdefs.h. */
12005 _ACEOF
12006 cat confdefs.h >>conftest.$ac_ext
12007 cat >>conftest.$ac_ext <<_ACEOF
12008 /* end confdefs.h. */
12009 $ac_includes_default
12010 typedef long double ac__type_sizeof_;
12011 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12012 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12013 #include <stdio.h>
12014 #include <stdlib.h>
12016 main ()
12019 FILE *f = fopen ("conftest.val", "w");
12020 if (! f)
12021 return 1;
12022 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12024 long int i = longval ();
12025 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12026 return 1;
12027 fprintf (f, "%ld\n", i);
12029 else
12031 unsigned long int i = ulongval ();
12032 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12033 return 1;
12034 fprintf (f, "%lu\n", i);
12036 return ferror (f) || fclose (f) != 0;
12039 return 0;
12041 _ACEOF
12042 rm -f conftest$ac_exeext
12043 if { (ac_try="$ac_link"
12044 case "(($ac_try" in
12045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12046 *) ac_try_echo=$ac_try;;
12047 esac
12048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12049 (eval "$ac_link") 2>&5
12050 ac_status=$?
12051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12052 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12053 { (case "(($ac_try" in
12054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12055 *) ac_try_echo=$ac_try;;
12056 esac
12057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12058 (eval "$ac_try") 2>&5
12059 ac_status=$?
12060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12061 (exit $ac_status); }; }; then
12062 ac_cv_sizeof_long_double=`cat conftest.val`
12063 else
12064 echo "$as_me: program exited with status $ac_status" >&5
12065 echo "$as_me: failed program was:" >&5
12066 sed 's/^/| /' conftest.$ac_ext >&5
12068 ( exit $ac_status )
12069 if test "$ac_cv_type_long_double" = yes; then
12070 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
12071 See \`config.log' for more details." >&5
12072 echo "$as_me: error: cannot compute sizeof (long double)
12073 See \`config.log' for more details." >&2;}
12074 { (exit 77); exit 77; }; }
12075 else
12076 ac_cv_sizeof_long_double=0
12079 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12081 rm -f conftest.val
12083 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
12084 echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6; }
12088 cat >>confdefs.h <<_ACEOF
12089 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
12090 _ACEOF
12095 { echo "$as_me:$LINENO: checking for _Bool support" >&5
12096 echo $ECHO_N "checking for _Bool support... $ECHO_C" >&6; }
12097 have_c99_bool=no
12098 cat >conftest.$ac_ext <<_ACEOF
12099 /* confdefs.h. */
12100 _ACEOF
12101 cat confdefs.h >>conftest.$ac_ext
12102 cat >>conftest.$ac_ext <<_ACEOF
12103 /* end confdefs.h. */
12106 main ()
12108 _Bool x; x = (_Bool)0;
12110 return 0;
12112 _ACEOF
12113 rm -f conftest.$ac_objext
12114 if { (ac_try="$ac_compile"
12115 case "(($ac_try" in
12116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12117 *) ac_try_echo=$ac_try;;
12118 esac
12119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12120 (eval "$ac_compile") 2>conftest.er1
12121 ac_status=$?
12122 grep -v '^ *+' conftest.er1 >conftest.err
12123 rm -f conftest.er1
12124 cat conftest.err >&5
12125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12126 (exit $ac_status); } && {
12127 test -z "$ac_c_werror_flag" ||
12128 test ! -s conftest.err
12129 } && test -s conftest.$ac_objext; then
12132 cat >>confdefs.h <<\_ACEOF
12133 #define HAVE_C99_BOOL 1
12134 _ACEOF
12136 have_c99_bool=yes
12138 else
12139 echo "$as_me: failed program was:" >&5
12140 sed 's/^/| /' conftest.$ac_ext >&5
12145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12146 { echo "$as_me:$LINENO: result: $have_c99_bool" >&5
12147 echo "${ECHO_T}$have_c99_bool" >&6; }
12148 if test "$have_c99_bool" = yes ; then
12149 { echo "$as_me:$LINENO: checking for _Bool" >&5
12150 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
12151 if test "${ac_cv_type__Bool+set}" = set; then
12152 echo $ECHO_N "(cached) $ECHO_C" >&6
12153 else
12154 cat >conftest.$ac_ext <<_ACEOF
12155 /* confdefs.h. */
12156 _ACEOF
12157 cat confdefs.h >>conftest.$ac_ext
12158 cat >>conftest.$ac_ext <<_ACEOF
12159 /* end confdefs.h. */
12160 $ac_includes_default
12161 typedef _Bool ac__type_new_;
12163 main ()
12165 if ((ac__type_new_ *) 0)
12166 return 0;
12167 if (sizeof (ac__type_new_))
12168 return 0;
12170 return 0;
12172 _ACEOF
12173 rm -f conftest.$ac_objext
12174 if { (ac_try="$ac_compile"
12175 case "(($ac_try" in
12176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12177 *) ac_try_echo=$ac_try;;
12178 esac
12179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12180 (eval "$ac_compile") 2>conftest.er1
12181 ac_status=$?
12182 grep -v '^ *+' conftest.er1 >conftest.err
12183 rm -f conftest.er1
12184 cat conftest.err >&5
12185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12186 (exit $ac_status); } && {
12187 test -z "$ac_c_werror_flag" ||
12188 test ! -s conftest.err
12189 } && test -s conftest.$ac_objext; then
12190 ac_cv_type__Bool=yes
12191 else
12192 echo "$as_me: failed program was:" >&5
12193 sed 's/^/| /' conftest.$ac_ext >&5
12195 ac_cv_type__Bool=no
12198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12200 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
12201 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
12203 # The cast to long int works around a bug in the HP C Compiler
12204 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12205 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12206 # This bug is HP SR number 8606223364.
12207 { echo "$as_me:$LINENO: checking size of _Bool" >&5
12208 echo $ECHO_N "checking size of _Bool... $ECHO_C" >&6; }
12209 if test "${ac_cv_sizeof__Bool+set}" = set; then
12210 echo $ECHO_N "(cached) $ECHO_C" >&6
12211 else
12212 if test "$cross_compiling" = yes; then
12213 # Depending upon the size, compute the lo and hi bounds.
12214 cat >conftest.$ac_ext <<_ACEOF
12215 /* confdefs.h. */
12216 _ACEOF
12217 cat confdefs.h >>conftest.$ac_ext
12218 cat >>conftest.$ac_ext <<_ACEOF
12219 /* end confdefs.h. */
12220 $ac_includes_default
12221 typedef _Bool ac__type_sizeof_;
12223 main ()
12225 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12226 test_array [0] = 0
12229 return 0;
12231 _ACEOF
12232 rm -f conftest.$ac_objext
12233 if { (ac_try="$ac_compile"
12234 case "(($ac_try" in
12235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12236 *) ac_try_echo=$ac_try;;
12237 esac
12238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12239 (eval "$ac_compile") 2>conftest.er1
12240 ac_status=$?
12241 grep -v '^ *+' conftest.er1 >conftest.err
12242 rm -f conftest.er1
12243 cat conftest.err >&5
12244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12245 (exit $ac_status); } && {
12246 test -z "$ac_c_werror_flag" ||
12247 test ! -s conftest.err
12248 } && test -s conftest.$ac_objext; then
12249 ac_lo=0 ac_mid=0
12250 while :; do
12251 cat >conftest.$ac_ext <<_ACEOF
12252 /* confdefs.h. */
12253 _ACEOF
12254 cat confdefs.h >>conftest.$ac_ext
12255 cat >>conftest.$ac_ext <<_ACEOF
12256 /* end confdefs.h. */
12257 $ac_includes_default
12258 typedef _Bool ac__type_sizeof_;
12260 main ()
12262 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12263 test_array [0] = 0
12266 return 0;
12268 _ACEOF
12269 rm -f conftest.$ac_objext
12270 if { (ac_try="$ac_compile"
12271 case "(($ac_try" in
12272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12273 *) ac_try_echo=$ac_try;;
12274 esac
12275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12276 (eval "$ac_compile") 2>conftest.er1
12277 ac_status=$?
12278 grep -v '^ *+' conftest.er1 >conftest.err
12279 rm -f conftest.er1
12280 cat conftest.err >&5
12281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12282 (exit $ac_status); } && {
12283 test -z "$ac_c_werror_flag" ||
12284 test ! -s conftest.err
12285 } && test -s conftest.$ac_objext; then
12286 ac_hi=$ac_mid; break
12287 else
12288 echo "$as_me: failed program was:" >&5
12289 sed 's/^/| /' conftest.$ac_ext >&5
12291 ac_lo=`expr $ac_mid + 1`
12292 if test $ac_lo -le $ac_mid; then
12293 ac_lo= ac_hi=
12294 break
12296 ac_mid=`expr 2 '*' $ac_mid + 1`
12299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12300 done
12301 else
12302 echo "$as_me: failed program was:" >&5
12303 sed 's/^/| /' conftest.$ac_ext >&5
12305 cat >conftest.$ac_ext <<_ACEOF
12306 /* confdefs.h. */
12307 _ACEOF
12308 cat confdefs.h >>conftest.$ac_ext
12309 cat >>conftest.$ac_ext <<_ACEOF
12310 /* end confdefs.h. */
12311 $ac_includes_default
12312 typedef _Bool ac__type_sizeof_;
12314 main ()
12316 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12317 test_array [0] = 0
12320 return 0;
12322 _ACEOF
12323 rm -f conftest.$ac_objext
12324 if { (ac_try="$ac_compile"
12325 case "(($ac_try" in
12326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12327 *) ac_try_echo=$ac_try;;
12328 esac
12329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12330 (eval "$ac_compile") 2>conftest.er1
12331 ac_status=$?
12332 grep -v '^ *+' conftest.er1 >conftest.err
12333 rm -f conftest.er1
12334 cat conftest.err >&5
12335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12336 (exit $ac_status); } && {
12337 test -z "$ac_c_werror_flag" ||
12338 test ! -s conftest.err
12339 } && test -s conftest.$ac_objext; then
12340 ac_hi=-1 ac_mid=-1
12341 while :; do
12342 cat >conftest.$ac_ext <<_ACEOF
12343 /* confdefs.h. */
12344 _ACEOF
12345 cat confdefs.h >>conftest.$ac_ext
12346 cat >>conftest.$ac_ext <<_ACEOF
12347 /* end confdefs.h. */
12348 $ac_includes_default
12349 typedef _Bool ac__type_sizeof_;
12351 main ()
12353 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12354 test_array [0] = 0
12357 return 0;
12359 _ACEOF
12360 rm -f conftest.$ac_objext
12361 if { (ac_try="$ac_compile"
12362 case "(($ac_try" in
12363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12364 *) ac_try_echo=$ac_try;;
12365 esac
12366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12367 (eval "$ac_compile") 2>conftest.er1
12368 ac_status=$?
12369 grep -v '^ *+' conftest.er1 >conftest.err
12370 rm -f conftest.er1
12371 cat conftest.err >&5
12372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12373 (exit $ac_status); } && {
12374 test -z "$ac_c_werror_flag" ||
12375 test ! -s conftest.err
12376 } && test -s conftest.$ac_objext; then
12377 ac_lo=$ac_mid; break
12378 else
12379 echo "$as_me: failed program was:" >&5
12380 sed 's/^/| /' conftest.$ac_ext >&5
12382 ac_hi=`expr '(' $ac_mid ')' - 1`
12383 if test $ac_mid -le $ac_hi; then
12384 ac_lo= ac_hi=
12385 break
12387 ac_mid=`expr 2 '*' $ac_mid`
12390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12391 done
12392 else
12393 echo "$as_me: failed program was:" >&5
12394 sed 's/^/| /' conftest.$ac_ext >&5
12396 ac_lo= ac_hi=
12399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12403 # Binary search between lo and hi bounds.
12404 while test "x$ac_lo" != "x$ac_hi"; do
12405 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12406 cat >conftest.$ac_ext <<_ACEOF
12407 /* confdefs.h. */
12408 _ACEOF
12409 cat confdefs.h >>conftest.$ac_ext
12410 cat >>conftest.$ac_ext <<_ACEOF
12411 /* end confdefs.h. */
12412 $ac_includes_default
12413 typedef _Bool ac__type_sizeof_;
12415 main ()
12417 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12418 test_array [0] = 0
12421 return 0;
12423 _ACEOF
12424 rm -f conftest.$ac_objext
12425 if { (ac_try="$ac_compile"
12426 case "(($ac_try" in
12427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12428 *) ac_try_echo=$ac_try;;
12429 esac
12430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12431 (eval "$ac_compile") 2>conftest.er1
12432 ac_status=$?
12433 grep -v '^ *+' conftest.er1 >conftest.err
12434 rm -f conftest.er1
12435 cat conftest.err >&5
12436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12437 (exit $ac_status); } && {
12438 test -z "$ac_c_werror_flag" ||
12439 test ! -s conftest.err
12440 } && test -s conftest.$ac_objext; then
12441 ac_hi=$ac_mid
12442 else
12443 echo "$as_me: failed program was:" >&5
12444 sed 's/^/| /' conftest.$ac_ext >&5
12446 ac_lo=`expr '(' $ac_mid ')' + 1`
12449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12450 done
12451 case $ac_lo in
12452 ?*) ac_cv_sizeof__Bool=$ac_lo;;
12453 '') if test "$ac_cv_type__Bool" = yes; then
12454 { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool)
12455 See \`config.log' for more details." >&5
12456 echo "$as_me: error: cannot compute sizeof (_Bool)
12457 See \`config.log' for more details." >&2;}
12458 { (exit 77); exit 77; }; }
12459 else
12460 ac_cv_sizeof__Bool=0
12461 fi ;;
12462 esac
12463 else
12464 cat >conftest.$ac_ext <<_ACEOF
12465 /* confdefs.h. */
12466 _ACEOF
12467 cat confdefs.h >>conftest.$ac_ext
12468 cat >>conftest.$ac_ext <<_ACEOF
12469 /* end confdefs.h. */
12470 $ac_includes_default
12471 typedef _Bool ac__type_sizeof_;
12472 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12473 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12474 #include <stdio.h>
12475 #include <stdlib.h>
12477 main ()
12480 FILE *f = fopen ("conftest.val", "w");
12481 if (! f)
12482 return 1;
12483 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12485 long int i = longval ();
12486 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12487 return 1;
12488 fprintf (f, "%ld\n", i);
12490 else
12492 unsigned long int i = ulongval ();
12493 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12494 return 1;
12495 fprintf (f, "%lu\n", i);
12497 return ferror (f) || fclose (f) != 0;
12500 return 0;
12502 _ACEOF
12503 rm -f conftest$ac_exeext
12504 if { (ac_try="$ac_link"
12505 case "(($ac_try" in
12506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12507 *) ac_try_echo=$ac_try;;
12508 esac
12509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12510 (eval "$ac_link") 2>&5
12511 ac_status=$?
12512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12513 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12514 { (case "(($ac_try" in
12515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12516 *) ac_try_echo=$ac_try;;
12517 esac
12518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12519 (eval "$ac_try") 2>&5
12520 ac_status=$?
12521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12522 (exit $ac_status); }; }; then
12523 ac_cv_sizeof__Bool=`cat conftest.val`
12524 else
12525 echo "$as_me: program exited with status $ac_status" >&5
12526 echo "$as_me: failed program was:" >&5
12527 sed 's/^/| /' conftest.$ac_ext >&5
12529 ( exit $ac_status )
12530 if test "$ac_cv_type__Bool" = yes; then
12531 { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool)
12532 See \`config.log' for more details." >&5
12533 echo "$as_me: error: cannot compute sizeof (_Bool)
12534 See \`config.log' for more details." >&2;}
12535 { (exit 77); exit 77; }; }
12536 else
12537 ac_cv_sizeof__Bool=0
12540 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12542 rm -f conftest.val
12544 { echo "$as_me:$LINENO: result: $ac_cv_sizeof__Bool" >&5
12545 echo "${ECHO_T}$ac_cv_sizeof__Bool" >&6; }
12549 cat >>confdefs.h <<_ACEOF
12550 #define SIZEOF__BOOL $ac_cv_sizeof__Bool
12551 _ACEOF
12556 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
12557 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
12558 if test "${ac_cv_type_uintptr_t+set}" = set; then
12559 echo $ECHO_N "(cached) $ECHO_C" >&6
12560 else
12561 cat >conftest.$ac_ext <<_ACEOF
12562 /* confdefs.h. */
12563 _ACEOF
12564 cat confdefs.h >>conftest.$ac_ext
12565 cat >>conftest.$ac_ext <<_ACEOF
12566 /* end confdefs.h. */
12567 #ifdef HAVE_STDINT_H
12568 #include <stdint.h>
12569 #endif
12571 typedef uintptr_t ac__type_new_;
12573 main ()
12575 if ((ac__type_new_ *) 0)
12576 return 0;
12577 if (sizeof (ac__type_new_))
12578 return 0;
12580 return 0;
12582 _ACEOF
12583 rm -f conftest.$ac_objext
12584 if { (ac_try="$ac_compile"
12585 case "(($ac_try" in
12586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12587 *) ac_try_echo=$ac_try;;
12588 esac
12589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12590 (eval "$ac_compile") 2>conftest.er1
12591 ac_status=$?
12592 grep -v '^ *+' conftest.er1 >conftest.err
12593 rm -f conftest.er1
12594 cat conftest.err >&5
12595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12596 (exit $ac_status); } && {
12597 test -z "$ac_c_werror_flag" ||
12598 test ! -s conftest.err
12599 } && test -s conftest.$ac_objext; then
12600 ac_cv_type_uintptr_t=yes
12601 else
12602 echo "$as_me: failed program was:" >&5
12603 sed 's/^/| /' conftest.$ac_ext >&5
12605 ac_cv_type_uintptr_t=no
12608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12610 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12611 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
12612 if test $ac_cv_type_uintptr_t = yes; then
12614 cat >>confdefs.h <<_ACEOF
12615 #define HAVE_UINTPTR_T 1
12616 _ACEOF
12618 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
12619 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
12620 if test "${ac_cv_type_uintptr_t+set}" = set; then
12621 echo $ECHO_N "(cached) $ECHO_C" >&6
12622 else
12623 cat >conftest.$ac_ext <<_ACEOF
12624 /* confdefs.h. */
12625 _ACEOF
12626 cat confdefs.h >>conftest.$ac_ext
12627 cat >>conftest.$ac_ext <<_ACEOF
12628 /* end confdefs.h. */
12629 $ac_includes_default
12630 typedef uintptr_t ac__type_new_;
12632 main ()
12634 if ((ac__type_new_ *) 0)
12635 return 0;
12636 if (sizeof (ac__type_new_))
12637 return 0;
12639 return 0;
12641 _ACEOF
12642 rm -f conftest.$ac_objext
12643 if { (ac_try="$ac_compile"
12644 case "(($ac_try" in
12645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12646 *) ac_try_echo=$ac_try;;
12647 esac
12648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12649 (eval "$ac_compile") 2>conftest.er1
12650 ac_status=$?
12651 grep -v '^ *+' conftest.er1 >conftest.err
12652 rm -f conftest.er1
12653 cat conftest.err >&5
12654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12655 (exit $ac_status); } && {
12656 test -z "$ac_c_werror_flag" ||
12657 test ! -s conftest.err
12658 } && test -s conftest.$ac_objext; then
12659 ac_cv_type_uintptr_t=yes
12660 else
12661 echo "$as_me: failed program was:" >&5
12662 sed 's/^/| /' conftest.$ac_ext >&5
12664 ac_cv_type_uintptr_t=no
12667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12669 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12670 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
12672 # The cast to long int works around a bug in the HP C Compiler
12673 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12674 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12675 # This bug is HP SR number 8606223364.
12676 { echo "$as_me:$LINENO: checking size of uintptr_t" >&5
12677 echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6; }
12678 if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
12679 echo $ECHO_N "(cached) $ECHO_C" >&6
12680 else
12681 if test "$cross_compiling" = yes; then
12682 # Depending upon the size, compute the lo and hi bounds.
12683 cat >conftest.$ac_ext <<_ACEOF
12684 /* confdefs.h. */
12685 _ACEOF
12686 cat confdefs.h >>conftest.$ac_ext
12687 cat >>conftest.$ac_ext <<_ACEOF
12688 /* end confdefs.h. */
12689 $ac_includes_default
12690 typedef uintptr_t ac__type_sizeof_;
12692 main ()
12694 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12695 test_array [0] = 0
12698 return 0;
12700 _ACEOF
12701 rm -f conftest.$ac_objext
12702 if { (ac_try="$ac_compile"
12703 case "(($ac_try" in
12704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12705 *) ac_try_echo=$ac_try;;
12706 esac
12707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12708 (eval "$ac_compile") 2>conftest.er1
12709 ac_status=$?
12710 grep -v '^ *+' conftest.er1 >conftest.err
12711 rm -f conftest.er1
12712 cat conftest.err >&5
12713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12714 (exit $ac_status); } && {
12715 test -z "$ac_c_werror_flag" ||
12716 test ! -s conftest.err
12717 } && test -s conftest.$ac_objext; then
12718 ac_lo=0 ac_mid=0
12719 while :; do
12720 cat >conftest.$ac_ext <<_ACEOF
12721 /* confdefs.h. */
12722 _ACEOF
12723 cat confdefs.h >>conftest.$ac_ext
12724 cat >>conftest.$ac_ext <<_ACEOF
12725 /* end confdefs.h. */
12726 $ac_includes_default
12727 typedef uintptr_t ac__type_sizeof_;
12729 main ()
12731 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12732 test_array [0] = 0
12735 return 0;
12737 _ACEOF
12738 rm -f conftest.$ac_objext
12739 if { (ac_try="$ac_compile"
12740 case "(($ac_try" in
12741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12742 *) ac_try_echo=$ac_try;;
12743 esac
12744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12745 (eval "$ac_compile") 2>conftest.er1
12746 ac_status=$?
12747 grep -v '^ *+' conftest.er1 >conftest.err
12748 rm -f conftest.er1
12749 cat conftest.err >&5
12750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12751 (exit $ac_status); } && {
12752 test -z "$ac_c_werror_flag" ||
12753 test ! -s conftest.err
12754 } && test -s conftest.$ac_objext; then
12755 ac_hi=$ac_mid; break
12756 else
12757 echo "$as_me: failed program was:" >&5
12758 sed 's/^/| /' conftest.$ac_ext >&5
12760 ac_lo=`expr $ac_mid + 1`
12761 if test $ac_lo -le $ac_mid; then
12762 ac_lo= ac_hi=
12763 break
12765 ac_mid=`expr 2 '*' $ac_mid + 1`
12768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12769 done
12770 else
12771 echo "$as_me: failed program was:" >&5
12772 sed 's/^/| /' conftest.$ac_ext >&5
12774 cat >conftest.$ac_ext <<_ACEOF
12775 /* confdefs.h. */
12776 _ACEOF
12777 cat confdefs.h >>conftest.$ac_ext
12778 cat >>conftest.$ac_ext <<_ACEOF
12779 /* end confdefs.h. */
12780 $ac_includes_default
12781 typedef uintptr_t ac__type_sizeof_;
12783 main ()
12785 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12786 test_array [0] = 0
12789 return 0;
12791 _ACEOF
12792 rm -f conftest.$ac_objext
12793 if { (ac_try="$ac_compile"
12794 case "(($ac_try" in
12795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12796 *) ac_try_echo=$ac_try;;
12797 esac
12798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12799 (eval "$ac_compile") 2>conftest.er1
12800 ac_status=$?
12801 grep -v '^ *+' conftest.er1 >conftest.err
12802 rm -f conftest.er1
12803 cat conftest.err >&5
12804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12805 (exit $ac_status); } && {
12806 test -z "$ac_c_werror_flag" ||
12807 test ! -s conftest.err
12808 } && test -s conftest.$ac_objext; then
12809 ac_hi=-1 ac_mid=-1
12810 while :; do
12811 cat >conftest.$ac_ext <<_ACEOF
12812 /* confdefs.h. */
12813 _ACEOF
12814 cat confdefs.h >>conftest.$ac_ext
12815 cat >>conftest.$ac_ext <<_ACEOF
12816 /* end confdefs.h. */
12817 $ac_includes_default
12818 typedef uintptr_t ac__type_sizeof_;
12820 main ()
12822 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12823 test_array [0] = 0
12826 return 0;
12828 _ACEOF
12829 rm -f conftest.$ac_objext
12830 if { (ac_try="$ac_compile"
12831 case "(($ac_try" in
12832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12833 *) ac_try_echo=$ac_try;;
12834 esac
12835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12836 (eval "$ac_compile") 2>conftest.er1
12837 ac_status=$?
12838 grep -v '^ *+' conftest.er1 >conftest.err
12839 rm -f conftest.er1
12840 cat conftest.err >&5
12841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12842 (exit $ac_status); } && {
12843 test -z "$ac_c_werror_flag" ||
12844 test ! -s conftest.err
12845 } && test -s conftest.$ac_objext; then
12846 ac_lo=$ac_mid; break
12847 else
12848 echo "$as_me: failed program was:" >&5
12849 sed 's/^/| /' conftest.$ac_ext >&5
12851 ac_hi=`expr '(' $ac_mid ')' - 1`
12852 if test $ac_mid -le $ac_hi; then
12853 ac_lo= ac_hi=
12854 break
12856 ac_mid=`expr 2 '*' $ac_mid`
12859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12860 done
12861 else
12862 echo "$as_me: failed program was:" >&5
12863 sed 's/^/| /' conftest.$ac_ext >&5
12865 ac_lo= ac_hi=
12868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12872 # Binary search between lo and hi bounds.
12873 while test "x$ac_lo" != "x$ac_hi"; do
12874 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12875 cat >conftest.$ac_ext <<_ACEOF
12876 /* confdefs.h. */
12877 _ACEOF
12878 cat confdefs.h >>conftest.$ac_ext
12879 cat >>conftest.$ac_ext <<_ACEOF
12880 /* end confdefs.h. */
12881 $ac_includes_default
12882 typedef uintptr_t ac__type_sizeof_;
12884 main ()
12886 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12887 test_array [0] = 0
12890 return 0;
12892 _ACEOF
12893 rm -f conftest.$ac_objext
12894 if { (ac_try="$ac_compile"
12895 case "(($ac_try" in
12896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12897 *) ac_try_echo=$ac_try;;
12898 esac
12899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12900 (eval "$ac_compile") 2>conftest.er1
12901 ac_status=$?
12902 grep -v '^ *+' conftest.er1 >conftest.err
12903 rm -f conftest.er1
12904 cat conftest.err >&5
12905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12906 (exit $ac_status); } && {
12907 test -z "$ac_c_werror_flag" ||
12908 test ! -s conftest.err
12909 } && test -s conftest.$ac_objext; then
12910 ac_hi=$ac_mid
12911 else
12912 echo "$as_me: failed program was:" >&5
12913 sed 's/^/| /' conftest.$ac_ext >&5
12915 ac_lo=`expr '(' $ac_mid ')' + 1`
12918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12919 done
12920 case $ac_lo in
12921 ?*) ac_cv_sizeof_uintptr_t=$ac_lo;;
12922 '') if test "$ac_cv_type_uintptr_t" = yes; then
12923 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
12924 See \`config.log' for more details." >&5
12925 echo "$as_me: error: cannot compute sizeof (uintptr_t)
12926 See \`config.log' for more details." >&2;}
12927 { (exit 77); exit 77; }; }
12928 else
12929 ac_cv_sizeof_uintptr_t=0
12930 fi ;;
12931 esac
12932 else
12933 cat >conftest.$ac_ext <<_ACEOF
12934 /* confdefs.h. */
12935 _ACEOF
12936 cat confdefs.h >>conftest.$ac_ext
12937 cat >>conftest.$ac_ext <<_ACEOF
12938 /* end confdefs.h. */
12939 $ac_includes_default
12940 typedef uintptr_t ac__type_sizeof_;
12941 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12942 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12943 #include <stdio.h>
12944 #include <stdlib.h>
12946 main ()
12949 FILE *f = fopen ("conftest.val", "w");
12950 if (! f)
12951 return 1;
12952 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12954 long int i = longval ();
12955 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12956 return 1;
12957 fprintf (f, "%ld\n", i);
12959 else
12961 unsigned long int i = ulongval ();
12962 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12963 return 1;
12964 fprintf (f, "%lu\n", i);
12966 return ferror (f) || fclose (f) != 0;
12969 return 0;
12971 _ACEOF
12972 rm -f conftest$ac_exeext
12973 if { (ac_try="$ac_link"
12974 case "(($ac_try" in
12975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12976 *) ac_try_echo=$ac_try;;
12977 esac
12978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12979 (eval "$ac_link") 2>&5
12980 ac_status=$?
12981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12982 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12983 { (case "(($ac_try" in
12984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12985 *) ac_try_echo=$ac_try;;
12986 esac
12987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12988 (eval "$ac_try") 2>&5
12989 ac_status=$?
12990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12991 (exit $ac_status); }; }; then
12992 ac_cv_sizeof_uintptr_t=`cat conftest.val`
12993 else
12994 echo "$as_me: program exited with status $ac_status" >&5
12995 echo "$as_me: failed program was:" >&5
12996 sed 's/^/| /' conftest.$ac_ext >&5
12998 ( exit $ac_status )
12999 if test "$ac_cv_type_uintptr_t" = yes; then
13000 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
13001 See \`config.log' for more details." >&5
13002 echo "$as_me: error: cannot compute sizeof (uintptr_t)
13003 See \`config.log' for more details." >&2;}
13004 { (exit 77); exit 77; }; }
13005 else
13006 ac_cv_sizeof_uintptr_t=0
13009 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13011 rm -f conftest.val
13013 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
13014 echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6; }
13018 cat >>confdefs.h <<_ACEOF
13019 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
13020 _ACEOF
13026 { echo "$as_me:$LINENO: checking for off_t" >&5
13027 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
13028 if test "${ac_cv_type_off_t+set}" = set; then
13029 echo $ECHO_N "(cached) $ECHO_C" >&6
13030 else
13031 cat >conftest.$ac_ext <<_ACEOF
13032 /* confdefs.h. */
13033 _ACEOF
13034 cat confdefs.h >>conftest.$ac_ext
13035 cat >>conftest.$ac_ext <<_ACEOF
13036 /* end confdefs.h. */
13038 #ifdef HAVE_SYS_TYPES_H
13039 #include <sys/types.h>
13040 #endif
13043 typedef off_t ac__type_new_;
13045 main ()
13047 if ((ac__type_new_ *) 0)
13048 return 0;
13049 if (sizeof (ac__type_new_))
13050 return 0;
13052 return 0;
13054 _ACEOF
13055 rm -f conftest.$ac_objext
13056 if { (ac_try="$ac_compile"
13057 case "(($ac_try" in
13058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13059 *) ac_try_echo=$ac_try;;
13060 esac
13061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13062 (eval "$ac_compile") 2>conftest.er1
13063 ac_status=$?
13064 grep -v '^ *+' conftest.er1 >conftest.err
13065 rm -f conftest.er1
13066 cat conftest.err >&5
13067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13068 (exit $ac_status); } && {
13069 test -z "$ac_c_werror_flag" ||
13070 test ! -s conftest.err
13071 } && test -s conftest.$ac_objext; then
13072 ac_cv_type_off_t=yes
13073 else
13074 echo "$as_me: failed program was:" >&5
13075 sed 's/^/| /' conftest.$ac_ext >&5
13077 ac_cv_type_off_t=no
13080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13082 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
13083 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
13085 # The cast to long int works around a bug in the HP C Compiler
13086 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13087 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13088 # This bug is HP SR number 8606223364.
13089 { echo "$as_me:$LINENO: checking size of off_t" >&5
13090 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
13091 if test "${ac_cv_sizeof_off_t+set}" = set; then
13092 echo $ECHO_N "(cached) $ECHO_C" >&6
13093 else
13094 if test "$cross_compiling" = yes; then
13095 # Depending upon the size, compute the lo and hi bounds.
13096 cat >conftest.$ac_ext <<_ACEOF
13097 /* confdefs.h. */
13098 _ACEOF
13099 cat confdefs.h >>conftest.$ac_ext
13100 cat >>conftest.$ac_ext <<_ACEOF
13101 /* end confdefs.h. */
13103 #ifdef HAVE_SYS_TYPES_H
13104 #include <sys/types.h>
13105 #endif
13108 typedef off_t ac__type_sizeof_;
13110 main ()
13112 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13113 test_array [0] = 0
13116 return 0;
13118 _ACEOF
13119 rm -f conftest.$ac_objext
13120 if { (ac_try="$ac_compile"
13121 case "(($ac_try" in
13122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13123 *) ac_try_echo=$ac_try;;
13124 esac
13125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13126 (eval "$ac_compile") 2>conftest.er1
13127 ac_status=$?
13128 grep -v '^ *+' conftest.er1 >conftest.err
13129 rm -f conftest.er1
13130 cat conftest.err >&5
13131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13132 (exit $ac_status); } && {
13133 test -z "$ac_c_werror_flag" ||
13134 test ! -s conftest.err
13135 } && test -s conftest.$ac_objext; then
13136 ac_lo=0 ac_mid=0
13137 while :; do
13138 cat >conftest.$ac_ext <<_ACEOF
13139 /* confdefs.h. */
13140 _ACEOF
13141 cat confdefs.h >>conftest.$ac_ext
13142 cat >>conftest.$ac_ext <<_ACEOF
13143 /* end confdefs.h. */
13145 #ifdef HAVE_SYS_TYPES_H
13146 #include <sys/types.h>
13147 #endif
13150 typedef off_t ac__type_sizeof_;
13152 main ()
13154 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13155 test_array [0] = 0
13158 return 0;
13160 _ACEOF
13161 rm -f conftest.$ac_objext
13162 if { (ac_try="$ac_compile"
13163 case "(($ac_try" in
13164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13165 *) ac_try_echo=$ac_try;;
13166 esac
13167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13168 (eval "$ac_compile") 2>conftest.er1
13169 ac_status=$?
13170 grep -v '^ *+' conftest.er1 >conftest.err
13171 rm -f conftest.er1
13172 cat conftest.err >&5
13173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13174 (exit $ac_status); } && {
13175 test -z "$ac_c_werror_flag" ||
13176 test ! -s conftest.err
13177 } && test -s conftest.$ac_objext; then
13178 ac_hi=$ac_mid; break
13179 else
13180 echo "$as_me: failed program was:" >&5
13181 sed 's/^/| /' conftest.$ac_ext >&5
13183 ac_lo=`expr $ac_mid + 1`
13184 if test $ac_lo -le $ac_mid; then
13185 ac_lo= ac_hi=
13186 break
13188 ac_mid=`expr 2 '*' $ac_mid + 1`
13191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13192 done
13193 else
13194 echo "$as_me: failed program was:" >&5
13195 sed 's/^/| /' conftest.$ac_ext >&5
13197 cat >conftest.$ac_ext <<_ACEOF
13198 /* confdefs.h. */
13199 _ACEOF
13200 cat confdefs.h >>conftest.$ac_ext
13201 cat >>conftest.$ac_ext <<_ACEOF
13202 /* end confdefs.h. */
13204 #ifdef HAVE_SYS_TYPES_H
13205 #include <sys/types.h>
13206 #endif
13209 typedef off_t ac__type_sizeof_;
13211 main ()
13213 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13214 test_array [0] = 0
13217 return 0;
13219 _ACEOF
13220 rm -f conftest.$ac_objext
13221 if { (ac_try="$ac_compile"
13222 case "(($ac_try" in
13223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13224 *) ac_try_echo=$ac_try;;
13225 esac
13226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13227 (eval "$ac_compile") 2>conftest.er1
13228 ac_status=$?
13229 grep -v '^ *+' conftest.er1 >conftest.err
13230 rm -f conftest.er1
13231 cat conftest.err >&5
13232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13233 (exit $ac_status); } && {
13234 test -z "$ac_c_werror_flag" ||
13235 test ! -s conftest.err
13236 } && test -s conftest.$ac_objext; then
13237 ac_hi=-1 ac_mid=-1
13238 while :; do
13239 cat >conftest.$ac_ext <<_ACEOF
13240 /* confdefs.h. */
13241 _ACEOF
13242 cat confdefs.h >>conftest.$ac_ext
13243 cat >>conftest.$ac_ext <<_ACEOF
13244 /* end confdefs.h. */
13246 #ifdef HAVE_SYS_TYPES_H
13247 #include <sys/types.h>
13248 #endif
13251 typedef off_t ac__type_sizeof_;
13253 main ()
13255 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13256 test_array [0] = 0
13259 return 0;
13261 _ACEOF
13262 rm -f conftest.$ac_objext
13263 if { (ac_try="$ac_compile"
13264 case "(($ac_try" in
13265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13266 *) ac_try_echo=$ac_try;;
13267 esac
13268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13269 (eval "$ac_compile") 2>conftest.er1
13270 ac_status=$?
13271 grep -v '^ *+' conftest.er1 >conftest.err
13272 rm -f conftest.er1
13273 cat conftest.err >&5
13274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13275 (exit $ac_status); } && {
13276 test -z "$ac_c_werror_flag" ||
13277 test ! -s conftest.err
13278 } && test -s conftest.$ac_objext; then
13279 ac_lo=$ac_mid; break
13280 else
13281 echo "$as_me: failed program was:" >&5
13282 sed 's/^/| /' conftest.$ac_ext >&5
13284 ac_hi=`expr '(' $ac_mid ')' - 1`
13285 if test $ac_mid -le $ac_hi; then
13286 ac_lo= ac_hi=
13287 break
13289 ac_mid=`expr 2 '*' $ac_mid`
13292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13293 done
13294 else
13295 echo "$as_me: failed program was:" >&5
13296 sed 's/^/| /' conftest.$ac_ext >&5
13298 ac_lo= ac_hi=
13301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13305 # Binary search between lo and hi bounds.
13306 while test "x$ac_lo" != "x$ac_hi"; do
13307 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13308 cat >conftest.$ac_ext <<_ACEOF
13309 /* confdefs.h. */
13310 _ACEOF
13311 cat confdefs.h >>conftest.$ac_ext
13312 cat >>conftest.$ac_ext <<_ACEOF
13313 /* end confdefs.h. */
13315 #ifdef HAVE_SYS_TYPES_H
13316 #include <sys/types.h>
13317 #endif
13320 typedef off_t ac__type_sizeof_;
13322 main ()
13324 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13325 test_array [0] = 0
13328 return 0;
13330 _ACEOF
13331 rm -f conftest.$ac_objext
13332 if { (ac_try="$ac_compile"
13333 case "(($ac_try" in
13334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13335 *) ac_try_echo=$ac_try;;
13336 esac
13337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13338 (eval "$ac_compile") 2>conftest.er1
13339 ac_status=$?
13340 grep -v '^ *+' conftest.er1 >conftest.err
13341 rm -f conftest.er1
13342 cat conftest.err >&5
13343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13344 (exit $ac_status); } && {
13345 test -z "$ac_c_werror_flag" ||
13346 test ! -s conftest.err
13347 } && test -s conftest.$ac_objext; then
13348 ac_hi=$ac_mid
13349 else
13350 echo "$as_me: failed program was:" >&5
13351 sed 's/^/| /' conftest.$ac_ext >&5
13353 ac_lo=`expr '(' $ac_mid ')' + 1`
13356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13357 done
13358 case $ac_lo in
13359 ?*) ac_cv_sizeof_off_t=$ac_lo;;
13360 '') if test "$ac_cv_type_off_t" = yes; then
13361 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
13362 See \`config.log' for more details." >&5
13363 echo "$as_me: error: cannot compute sizeof (off_t)
13364 See \`config.log' for more details." >&2;}
13365 { (exit 77); exit 77; }; }
13366 else
13367 ac_cv_sizeof_off_t=0
13368 fi ;;
13369 esac
13370 else
13371 cat >conftest.$ac_ext <<_ACEOF
13372 /* confdefs.h. */
13373 _ACEOF
13374 cat confdefs.h >>conftest.$ac_ext
13375 cat >>conftest.$ac_ext <<_ACEOF
13376 /* end confdefs.h. */
13378 #ifdef HAVE_SYS_TYPES_H
13379 #include <sys/types.h>
13380 #endif
13383 typedef off_t ac__type_sizeof_;
13384 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13385 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
13386 #include <stdio.h>
13387 #include <stdlib.h>
13389 main ()
13392 FILE *f = fopen ("conftest.val", "w");
13393 if (! f)
13394 return 1;
13395 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
13397 long int i = longval ();
13398 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13399 return 1;
13400 fprintf (f, "%ld\n", i);
13402 else
13404 unsigned long int i = ulongval ();
13405 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13406 return 1;
13407 fprintf (f, "%lu\n", i);
13409 return ferror (f) || fclose (f) != 0;
13412 return 0;
13414 _ACEOF
13415 rm -f conftest$ac_exeext
13416 if { (ac_try="$ac_link"
13417 case "(($ac_try" in
13418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13419 *) ac_try_echo=$ac_try;;
13420 esac
13421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13422 (eval "$ac_link") 2>&5
13423 ac_status=$?
13424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13425 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13426 { (case "(($ac_try" in
13427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13428 *) ac_try_echo=$ac_try;;
13429 esac
13430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13431 (eval "$ac_try") 2>&5
13432 ac_status=$?
13433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13434 (exit $ac_status); }; }; then
13435 ac_cv_sizeof_off_t=`cat conftest.val`
13436 else
13437 echo "$as_me: program exited with status $ac_status" >&5
13438 echo "$as_me: failed program was:" >&5
13439 sed 's/^/| /' conftest.$ac_ext >&5
13441 ( exit $ac_status )
13442 if test "$ac_cv_type_off_t" = yes; then
13443 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
13444 See \`config.log' for more details." >&5
13445 echo "$as_me: error: cannot compute sizeof (off_t)
13446 See \`config.log' for more details." >&2;}
13447 { (exit 77); exit 77; }; }
13448 else
13449 ac_cv_sizeof_off_t=0
13452 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13454 rm -f conftest.val
13456 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
13457 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
13461 cat >>confdefs.h <<_ACEOF
13462 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
13463 _ACEOF
13467 { echo "$as_me:$LINENO: checking whether to enable large file support" >&5
13468 echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6; }
13469 if test "$have_long_long" = yes -a \
13470 "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
13471 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
13473 cat >>confdefs.h <<\_ACEOF
13474 #define HAVE_LARGEFILE_SUPPORT 1
13475 _ACEOF
13477 { echo "$as_me:$LINENO: result: yes" >&5
13478 echo "${ECHO_T}yes" >&6; }
13479 else
13480 { echo "$as_me:$LINENO: result: no" >&5
13481 echo "${ECHO_T}no" >&6; }
13484 { echo "$as_me:$LINENO: checking for time_t" >&5
13485 echo $ECHO_N "checking for time_t... $ECHO_C" >&6; }
13486 if test "${ac_cv_type_time_t+set}" = set; then
13487 echo $ECHO_N "(cached) $ECHO_C" >&6
13488 else
13489 cat >conftest.$ac_ext <<_ACEOF
13490 /* confdefs.h. */
13491 _ACEOF
13492 cat confdefs.h >>conftest.$ac_ext
13493 cat >>conftest.$ac_ext <<_ACEOF
13494 /* end confdefs.h. */
13496 #ifdef HAVE_SYS_TYPES_H
13497 #include <sys/types.h>
13498 #endif
13499 #ifdef HAVE_TIME_H
13500 #include <time.h>
13501 #endif
13504 typedef time_t ac__type_new_;
13506 main ()
13508 if ((ac__type_new_ *) 0)
13509 return 0;
13510 if (sizeof (ac__type_new_))
13511 return 0;
13513 return 0;
13515 _ACEOF
13516 rm -f conftest.$ac_objext
13517 if { (ac_try="$ac_compile"
13518 case "(($ac_try" in
13519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13520 *) ac_try_echo=$ac_try;;
13521 esac
13522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13523 (eval "$ac_compile") 2>conftest.er1
13524 ac_status=$?
13525 grep -v '^ *+' conftest.er1 >conftest.err
13526 rm -f conftest.er1
13527 cat conftest.err >&5
13528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13529 (exit $ac_status); } && {
13530 test -z "$ac_c_werror_flag" ||
13531 test ! -s conftest.err
13532 } && test -s conftest.$ac_objext; then
13533 ac_cv_type_time_t=yes
13534 else
13535 echo "$as_me: failed program was:" >&5
13536 sed 's/^/| /' conftest.$ac_ext >&5
13538 ac_cv_type_time_t=no
13541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13543 { echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5
13544 echo "${ECHO_T}$ac_cv_type_time_t" >&6; }
13546 # The cast to long int works around a bug in the HP C Compiler
13547 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13548 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13549 # This bug is HP SR number 8606223364.
13550 { echo "$as_me:$LINENO: checking size of time_t" >&5
13551 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6; }
13552 if test "${ac_cv_sizeof_time_t+set}" = set; then
13553 echo $ECHO_N "(cached) $ECHO_C" >&6
13554 else
13555 if test "$cross_compiling" = yes; then
13556 # Depending upon the size, compute the lo and hi bounds.
13557 cat >conftest.$ac_ext <<_ACEOF
13558 /* confdefs.h. */
13559 _ACEOF
13560 cat confdefs.h >>conftest.$ac_ext
13561 cat >>conftest.$ac_ext <<_ACEOF
13562 /* end confdefs.h. */
13564 #ifdef HAVE_SYS_TYPES_H
13565 #include <sys/types.h>
13566 #endif
13567 #ifdef HAVE_TIME_H
13568 #include <time.h>
13569 #endif
13572 typedef time_t ac__type_sizeof_;
13574 main ()
13576 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13577 test_array [0] = 0
13580 return 0;
13582 _ACEOF
13583 rm -f conftest.$ac_objext
13584 if { (ac_try="$ac_compile"
13585 case "(($ac_try" in
13586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13587 *) ac_try_echo=$ac_try;;
13588 esac
13589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13590 (eval "$ac_compile") 2>conftest.er1
13591 ac_status=$?
13592 grep -v '^ *+' conftest.er1 >conftest.err
13593 rm -f conftest.er1
13594 cat conftest.err >&5
13595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13596 (exit $ac_status); } && {
13597 test -z "$ac_c_werror_flag" ||
13598 test ! -s conftest.err
13599 } && test -s conftest.$ac_objext; then
13600 ac_lo=0 ac_mid=0
13601 while :; do
13602 cat >conftest.$ac_ext <<_ACEOF
13603 /* confdefs.h. */
13604 _ACEOF
13605 cat confdefs.h >>conftest.$ac_ext
13606 cat >>conftest.$ac_ext <<_ACEOF
13607 /* end confdefs.h. */
13609 #ifdef HAVE_SYS_TYPES_H
13610 #include <sys/types.h>
13611 #endif
13612 #ifdef HAVE_TIME_H
13613 #include <time.h>
13614 #endif
13617 typedef time_t ac__type_sizeof_;
13619 main ()
13621 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13622 test_array [0] = 0
13625 return 0;
13627 _ACEOF
13628 rm -f conftest.$ac_objext
13629 if { (ac_try="$ac_compile"
13630 case "(($ac_try" in
13631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13632 *) ac_try_echo=$ac_try;;
13633 esac
13634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13635 (eval "$ac_compile") 2>conftest.er1
13636 ac_status=$?
13637 grep -v '^ *+' conftest.er1 >conftest.err
13638 rm -f conftest.er1
13639 cat conftest.err >&5
13640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13641 (exit $ac_status); } && {
13642 test -z "$ac_c_werror_flag" ||
13643 test ! -s conftest.err
13644 } && test -s conftest.$ac_objext; then
13645 ac_hi=$ac_mid; break
13646 else
13647 echo "$as_me: failed program was:" >&5
13648 sed 's/^/| /' conftest.$ac_ext >&5
13650 ac_lo=`expr $ac_mid + 1`
13651 if test $ac_lo -le $ac_mid; then
13652 ac_lo= ac_hi=
13653 break
13655 ac_mid=`expr 2 '*' $ac_mid + 1`
13658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13659 done
13660 else
13661 echo "$as_me: failed program was:" >&5
13662 sed 's/^/| /' conftest.$ac_ext >&5
13664 cat >conftest.$ac_ext <<_ACEOF
13665 /* confdefs.h. */
13666 _ACEOF
13667 cat confdefs.h >>conftest.$ac_ext
13668 cat >>conftest.$ac_ext <<_ACEOF
13669 /* end confdefs.h. */
13671 #ifdef HAVE_SYS_TYPES_H
13672 #include <sys/types.h>
13673 #endif
13674 #ifdef HAVE_TIME_H
13675 #include <time.h>
13676 #endif
13679 typedef time_t ac__type_sizeof_;
13681 main ()
13683 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13684 test_array [0] = 0
13687 return 0;
13689 _ACEOF
13690 rm -f conftest.$ac_objext
13691 if { (ac_try="$ac_compile"
13692 case "(($ac_try" in
13693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13694 *) ac_try_echo=$ac_try;;
13695 esac
13696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13697 (eval "$ac_compile") 2>conftest.er1
13698 ac_status=$?
13699 grep -v '^ *+' conftest.er1 >conftest.err
13700 rm -f conftest.er1
13701 cat conftest.err >&5
13702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13703 (exit $ac_status); } && {
13704 test -z "$ac_c_werror_flag" ||
13705 test ! -s conftest.err
13706 } && test -s conftest.$ac_objext; then
13707 ac_hi=-1 ac_mid=-1
13708 while :; do
13709 cat >conftest.$ac_ext <<_ACEOF
13710 /* confdefs.h. */
13711 _ACEOF
13712 cat confdefs.h >>conftest.$ac_ext
13713 cat >>conftest.$ac_ext <<_ACEOF
13714 /* end confdefs.h. */
13716 #ifdef HAVE_SYS_TYPES_H
13717 #include <sys/types.h>
13718 #endif
13719 #ifdef HAVE_TIME_H
13720 #include <time.h>
13721 #endif
13724 typedef time_t ac__type_sizeof_;
13726 main ()
13728 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13729 test_array [0] = 0
13732 return 0;
13734 _ACEOF
13735 rm -f conftest.$ac_objext
13736 if { (ac_try="$ac_compile"
13737 case "(($ac_try" in
13738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13739 *) ac_try_echo=$ac_try;;
13740 esac
13741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13742 (eval "$ac_compile") 2>conftest.er1
13743 ac_status=$?
13744 grep -v '^ *+' conftest.er1 >conftest.err
13745 rm -f conftest.er1
13746 cat conftest.err >&5
13747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13748 (exit $ac_status); } && {
13749 test -z "$ac_c_werror_flag" ||
13750 test ! -s conftest.err
13751 } && test -s conftest.$ac_objext; then
13752 ac_lo=$ac_mid; break
13753 else
13754 echo "$as_me: failed program was:" >&5
13755 sed 's/^/| /' conftest.$ac_ext >&5
13757 ac_hi=`expr '(' $ac_mid ')' - 1`
13758 if test $ac_mid -le $ac_hi; then
13759 ac_lo= ac_hi=
13760 break
13762 ac_mid=`expr 2 '*' $ac_mid`
13765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13766 done
13767 else
13768 echo "$as_me: failed program was:" >&5
13769 sed 's/^/| /' conftest.$ac_ext >&5
13771 ac_lo= ac_hi=
13774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13778 # Binary search between lo and hi bounds.
13779 while test "x$ac_lo" != "x$ac_hi"; do
13780 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13781 cat >conftest.$ac_ext <<_ACEOF
13782 /* confdefs.h. */
13783 _ACEOF
13784 cat confdefs.h >>conftest.$ac_ext
13785 cat >>conftest.$ac_ext <<_ACEOF
13786 /* end confdefs.h. */
13788 #ifdef HAVE_SYS_TYPES_H
13789 #include <sys/types.h>
13790 #endif
13791 #ifdef HAVE_TIME_H
13792 #include <time.h>
13793 #endif
13796 typedef time_t ac__type_sizeof_;
13798 main ()
13800 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13801 test_array [0] = 0
13804 return 0;
13806 _ACEOF
13807 rm -f conftest.$ac_objext
13808 if { (ac_try="$ac_compile"
13809 case "(($ac_try" in
13810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13811 *) ac_try_echo=$ac_try;;
13812 esac
13813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13814 (eval "$ac_compile") 2>conftest.er1
13815 ac_status=$?
13816 grep -v '^ *+' conftest.er1 >conftest.err
13817 rm -f conftest.er1
13818 cat conftest.err >&5
13819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13820 (exit $ac_status); } && {
13821 test -z "$ac_c_werror_flag" ||
13822 test ! -s conftest.err
13823 } && test -s conftest.$ac_objext; then
13824 ac_hi=$ac_mid
13825 else
13826 echo "$as_me: failed program was:" >&5
13827 sed 's/^/| /' conftest.$ac_ext >&5
13829 ac_lo=`expr '(' $ac_mid ')' + 1`
13832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13833 done
13834 case $ac_lo in
13835 ?*) ac_cv_sizeof_time_t=$ac_lo;;
13836 '') if test "$ac_cv_type_time_t" = yes; then
13837 { { echo "$as_me:$LINENO: error: cannot compute sizeof (time_t)
13838 See \`config.log' for more details." >&5
13839 echo "$as_me: error: cannot compute sizeof (time_t)
13840 See \`config.log' for more details." >&2;}
13841 { (exit 77); exit 77; }; }
13842 else
13843 ac_cv_sizeof_time_t=0
13844 fi ;;
13845 esac
13846 else
13847 cat >conftest.$ac_ext <<_ACEOF
13848 /* confdefs.h. */
13849 _ACEOF
13850 cat confdefs.h >>conftest.$ac_ext
13851 cat >>conftest.$ac_ext <<_ACEOF
13852 /* end confdefs.h. */
13854 #ifdef HAVE_SYS_TYPES_H
13855 #include <sys/types.h>
13856 #endif
13857 #ifdef HAVE_TIME_H
13858 #include <time.h>
13859 #endif
13862 typedef time_t ac__type_sizeof_;
13863 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13864 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
13865 #include <stdio.h>
13866 #include <stdlib.h>
13868 main ()
13871 FILE *f = fopen ("conftest.val", "w");
13872 if (! f)
13873 return 1;
13874 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
13876 long int i = longval ();
13877 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13878 return 1;
13879 fprintf (f, "%ld\n", i);
13881 else
13883 unsigned long int i = ulongval ();
13884 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13885 return 1;
13886 fprintf (f, "%lu\n", i);
13888 return ferror (f) || fclose (f) != 0;
13891 return 0;
13893 _ACEOF
13894 rm -f conftest$ac_exeext
13895 if { (ac_try="$ac_link"
13896 case "(($ac_try" in
13897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13898 *) ac_try_echo=$ac_try;;
13899 esac
13900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13901 (eval "$ac_link") 2>&5
13902 ac_status=$?
13903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13904 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13905 { (case "(($ac_try" in
13906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13907 *) ac_try_echo=$ac_try;;
13908 esac
13909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13910 (eval "$ac_try") 2>&5
13911 ac_status=$?
13912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13913 (exit $ac_status); }; }; then
13914 ac_cv_sizeof_time_t=`cat conftest.val`
13915 else
13916 echo "$as_me: program exited with status $ac_status" >&5
13917 echo "$as_me: failed program was:" >&5
13918 sed 's/^/| /' conftest.$ac_ext >&5
13920 ( exit $ac_status )
13921 if test "$ac_cv_type_time_t" = yes; then
13922 { { echo "$as_me:$LINENO: error: cannot compute sizeof (time_t)
13923 See \`config.log' for more details." >&5
13924 echo "$as_me: error: cannot compute sizeof (time_t)
13925 See \`config.log' for more details." >&2;}
13926 { (exit 77); exit 77; }; }
13927 else
13928 ac_cv_sizeof_time_t=0
13931 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13933 rm -f conftest.val
13935 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
13936 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6; }
13940 cat >>confdefs.h <<_ACEOF
13941 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
13942 _ACEOF
13946 # if have pthread_t then define SIZEOF_PTHREAD_T
13947 ac_save_cc="$CC"
13948 if test "$ac_cv_kpthread" = "yes"
13949 then CC="$CC -Kpthread"
13950 elif test "$ac_cv_kthread" = "yes"
13951 then CC="$CC -Kthread"
13952 elif test "$ac_cv_pthread" = "yes"
13953 then CC="$CC -pthread"
13955 { echo "$as_me:$LINENO: checking for pthread_t" >&5
13956 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; }
13957 have_pthread_t=no
13958 cat >conftest.$ac_ext <<_ACEOF
13959 /* confdefs.h. */
13960 _ACEOF
13961 cat confdefs.h >>conftest.$ac_ext
13962 cat >>conftest.$ac_ext <<_ACEOF
13963 /* end confdefs.h. */
13964 #include <pthread.h>
13966 main ()
13968 pthread_t x; x = *(pthread_t*)0;
13970 return 0;
13972 _ACEOF
13973 rm -f conftest.$ac_objext
13974 if { (ac_try="$ac_compile"
13975 case "(($ac_try" in
13976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13977 *) ac_try_echo=$ac_try;;
13978 esac
13979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13980 (eval "$ac_compile") 2>conftest.er1
13981 ac_status=$?
13982 grep -v '^ *+' conftest.er1 >conftest.err
13983 rm -f conftest.er1
13984 cat conftest.err >&5
13985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13986 (exit $ac_status); } && {
13987 test -z "$ac_c_werror_flag" ||
13988 test ! -s conftest.err
13989 } && test -s conftest.$ac_objext; then
13990 have_pthread_t=yes
13991 else
13992 echo "$as_me: failed program was:" >&5
13993 sed 's/^/| /' conftest.$ac_ext >&5
13998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13999 { echo "$as_me:$LINENO: result: $have_pthread_t" >&5
14000 echo "${ECHO_T}$have_pthread_t" >&6; }
14001 if test "$have_pthread_t" = yes ; then
14002 { echo "$as_me:$LINENO: checking for pthread_t" >&5
14003 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; }
14004 if test "${ac_cv_type_pthread_t+set}" = set; then
14005 echo $ECHO_N "(cached) $ECHO_C" >&6
14006 else
14007 cat >conftest.$ac_ext <<_ACEOF
14008 /* confdefs.h. */
14009 _ACEOF
14010 cat confdefs.h >>conftest.$ac_ext
14011 cat >>conftest.$ac_ext <<_ACEOF
14012 /* end confdefs.h. */
14014 #ifdef HAVE_PTHREAD_H
14015 #include <pthread.h>
14016 #endif
14019 typedef pthread_t ac__type_new_;
14021 main ()
14023 if ((ac__type_new_ *) 0)
14024 return 0;
14025 if (sizeof (ac__type_new_))
14026 return 0;
14028 return 0;
14030 _ACEOF
14031 rm -f conftest.$ac_objext
14032 if { (ac_try="$ac_compile"
14033 case "(($ac_try" in
14034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14035 *) ac_try_echo=$ac_try;;
14036 esac
14037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14038 (eval "$ac_compile") 2>conftest.er1
14039 ac_status=$?
14040 grep -v '^ *+' conftest.er1 >conftest.err
14041 rm -f conftest.er1
14042 cat conftest.err >&5
14043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14044 (exit $ac_status); } && {
14045 test -z "$ac_c_werror_flag" ||
14046 test ! -s conftest.err
14047 } && test -s conftest.$ac_objext; then
14048 ac_cv_type_pthread_t=yes
14049 else
14050 echo "$as_me: failed program was:" >&5
14051 sed 's/^/| /' conftest.$ac_ext >&5
14053 ac_cv_type_pthread_t=no
14056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14058 { echo "$as_me:$LINENO: result: $ac_cv_type_pthread_t" >&5
14059 echo "${ECHO_T}$ac_cv_type_pthread_t" >&6; }
14061 # The cast to long int works around a bug in the HP C Compiler
14062 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14063 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14064 # This bug is HP SR number 8606223364.
14065 { echo "$as_me:$LINENO: checking size of pthread_t" >&5
14066 echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6; }
14067 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
14068 echo $ECHO_N "(cached) $ECHO_C" >&6
14069 else
14070 if test "$cross_compiling" = yes; then
14071 # Depending upon the size, compute the lo and hi bounds.
14072 cat >conftest.$ac_ext <<_ACEOF
14073 /* confdefs.h. */
14074 _ACEOF
14075 cat confdefs.h >>conftest.$ac_ext
14076 cat >>conftest.$ac_ext <<_ACEOF
14077 /* end confdefs.h. */
14079 #ifdef HAVE_PTHREAD_H
14080 #include <pthread.h>
14081 #endif
14084 typedef pthread_t ac__type_sizeof_;
14086 main ()
14088 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
14089 test_array [0] = 0
14092 return 0;
14094 _ACEOF
14095 rm -f conftest.$ac_objext
14096 if { (ac_try="$ac_compile"
14097 case "(($ac_try" in
14098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14099 *) ac_try_echo=$ac_try;;
14100 esac
14101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14102 (eval "$ac_compile") 2>conftest.er1
14103 ac_status=$?
14104 grep -v '^ *+' conftest.er1 >conftest.err
14105 rm -f conftest.er1
14106 cat conftest.err >&5
14107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14108 (exit $ac_status); } && {
14109 test -z "$ac_c_werror_flag" ||
14110 test ! -s conftest.err
14111 } && test -s conftest.$ac_objext; then
14112 ac_lo=0 ac_mid=0
14113 while :; do
14114 cat >conftest.$ac_ext <<_ACEOF
14115 /* confdefs.h. */
14116 _ACEOF
14117 cat confdefs.h >>conftest.$ac_ext
14118 cat >>conftest.$ac_ext <<_ACEOF
14119 /* end confdefs.h. */
14121 #ifdef HAVE_PTHREAD_H
14122 #include <pthread.h>
14123 #endif
14126 typedef pthread_t ac__type_sizeof_;
14128 main ()
14130 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
14131 test_array [0] = 0
14134 return 0;
14136 _ACEOF
14137 rm -f conftest.$ac_objext
14138 if { (ac_try="$ac_compile"
14139 case "(($ac_try" in
14140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14141 *) ac_try_echo=$ac_try;;
14142 esac
14143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14144 (eval "$ac_compile") 2>conftest.er1
14145 ac_status=$?
14146 grep -v '^ *+' conftest.er1 >conftest.err
14147 rm -f conftest.er1
14148 cat conftest.err >&5
14149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14150 (exit $ac_status); } && {
14151 test -z "$ac_c_werror_flag" ||
14152 test ! -s conftest.err
14153 } && test -s conftest.$ac_objext; then
14154 ac_hi=$ac_mid; break
14155 else
14156 echo "$as_me: failed program was:" >&5
14157 sed 's/^/| /' conftest.$ac_ext >&5
14159 ac_lo=`expr $ac_mid + 1`
14160 if test $ac_lo -le $ac_mid; then
14161 ac_lo= ac_hi=
14162 break
14164 ac_mid=`expr 2 '*' $ac_mid + 1`
14167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14168 done
14169 else
14170 echo "$as_me: failed program was:" >&5
14171 sed 's/^/| /' conftest.$ac_ext >&5
14173 cat >conftest.$ac_ext <<_ACEOF
14174 /* confdefs.h. */
14175 _ACEOF
14176 cat confdefs.h >>conftest.$ac_ext
14177 cat >>conftest.$ac_ext <<_ACEOF
14178 /* end confdefs.h. */
14180 #ifdef HAVE_PTHREAD_H
14181 #include <pthread.h>
14182 #endif
14185 typedef pthread_t ac__type_sizeof_;
14187 main ()
14189 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
14190 test_array [0] = 0
14193 return 0;
14195 _ACEOF
14196 rm -f conftest.$ac_objext
14197 if { (ac_try="$ac_compile"
14198 case "(($ac_try" in
14199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14200 *) ac_try_echo=$ac_try;;
14201 esac
14202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14203 (eval "$ac_compile") 2>conftest.er1
14204 ac_status=$?
14205 grep -v '^ *+' conftest.er1 >conftest.err
14206 rm -f conftest.er1
14207 cat conftest.err >&5
14208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14209 (exit $ac_status); } && {
14210 test -z "$ac_c_werror_flag" ||
14211 test ! -s conftest.err
14212 } && test -s conftest.$ac_objext; then
14213 ac_hi=-1 ac_mid=-1
14214 while :; do
14215 cat >conftest.$ac_ext <<_ACEOF
14216 /* confdefs.h. */
14217 _ACEOF
14218 cat confdefs.h >>conftest.$ac_ext
14219 cat >>conftest.$ac_ext <<_ACEOF
14220 /* end confdefs.h. */
14222 #ifdef HAVE_PTHREAD_H
14223 #include <pthread.h>
14224 #endif
14227 typedef pthread_t ac__type_sizeof_;
14229 main ()
14231 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
14232 test_array [0] = 0
14235 return 0;
14237 _ACEOF
14238 rm -f conftest.$ac_objext
14239 if { (ac_try="$ac_compile"
14240 case "(($ac_try" in
14241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14242 *) ac_try_echo=$ac_try;;
14243 esac
14244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14245 (eval "$ac_compile") 2>conftest.er1
14246 ac_status=$?
14247 grep -v '^ *+' conftest.er1 >conftest.err
14248 rm -f conftest.er1
14249 cat conftest.err >&5
14250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14251 (exit $ac_status); } && {
14252 test -z "$ac_c_werror_flag" ||
14253 test ! -s conftest.err
14254 } && test -s conftest.$ac_objext; then
14255 ac_lo=$ac_mid; break
14256 else
14257 echo "$as_me: failed program was:" >&5
14258 sed 's/^/| /' conftest.$ac_ext >&5
14260 ac_hi=`expr '(' $ac_mid ')' - 1`
14261 if test $ac_mid -le $ac_hi; then
14262 ac_lo= ac_hi=
14263 break
14265 ac_mid=`expr 2 '*' $ac_mid`
14268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14269 done
14270 else
14271 echo "$as_me: failed program was:" >&5
14272 sed 's/^/| /' conftest.$ac_ext >&5
14274 ac_lo= ac_hi=
14277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14281 # Binary search between lo and hi bounds.
14282 while test "x$ac_lo" != "x$ac_hi"; do
14283 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14284 cat >conftest.$ac_ext <<_ACEOF
14285 /* confdefs.h. */
14286 _ACEOF
14287 cat confdefs.h >>conftest.$ac_ext
14288 cat >>conftest.$ac_ext <<_ACEOF
14289 /* end confdefs.h. */
14291 #ifdef HAVE_PTHREAD_H
14292 #include <pthread.h>
14293 #endif
14296 typedef pthread_t ac__type_sizeof_;
14298 main ()
14300 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
14301 test_array [0] = 0
14304 return 0;
14306 _ACEOF
14307 rm -f conftest.$ac_objext
14308 if { (ac_try="$ac_compile"
14309 case "(($ac_try" in
14310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14311 *) ac_try_echo=$ac_try;;
14312 esac
14313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14314 (eval "$ac_compile") 2>conftest.er1
14315 ac_status=$?
14316 grep -v '^ *+' conftest.er1 >conftest.err
14317 rm -f conftest.er1
14318 cat conftest.err >&5
14319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14320 (exit $ac_status); } && {
14321 test -z "$ac_c_werror_flag" ||
14322 test ! -s conftest.err
14323 } && test -s conftest.$ac_objext; then
14324 ac_hi=$ac_mid
14325 else
14326 echo "$as_me: failed program was:" >&5
14327 sed 's/^/| /' conftest.$ac_ext >&5
14329 ac_lo=`expr '(' $ac_mid ')' + 1`
14332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14333 done
14334 case $ac_lo in
14335 ?*) ac_cv_sizeof_pthread_t=$ac_lo;;
14336 '') if test "$ac_cv_type_pthread_t" = yes; then
14337 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pthread_t)
14338 See \`config.log' for more details." >&5
14339 echo "$as_me: error: cannot compute sizeof (pthread_t)
14340 See \`config.log' for more details." >&2;}
14341 { (exit 77); exit 77; }; }
14342 else
14343 ac_cv_sizeof_pthread_t=0
14344 fi ;;
14345 esac
14346 else
14347 cat >conftest.$ac_ext <<_ACEOF
14348 /* confdefs.h. */
14349 _ACEOF
14350 cat confdefs.h >>conftest.$ac_ext
14351 cat >>conftest.$ac_ext <<_ACEOF
14352 /* end confdefs.h. */
14354 #ifdef HAVE_PTHREAD_H
14355 #include <pthread.h>
14356 #endif
14359 typedef pthread_t ac__type_sizeof_;
14360 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
14361 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
14362 #include <stdio.h>
14363 #include <stdlib.h>
14365 main ()
14368 FILE *f = fopen ("conftest.val", "w");
14369 if (! f)
14370 return 1;
14371 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
14373 long int i = longval ();
14374 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14375 return 1;
14376 fprintf (f, "%ld\n", i);
14378 else
14380 unsigned long int i = ulongval ();
14381 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14382 return 1;
14383 fprintf (f, "%lu\n", i);
14385 return ferror (f) || fclose (f) != 0;
14388 return 0;
14390 _ACEOF
14391 rm -f conftest$ac_exeext
14392 if { (ac_try="$ac_link"
14393 case "(($ac_try" in
14394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14395 *) ac_try_echo=$ac_try;;
14396 esac
14397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14398 (eval "$ac_link") 2>&5
14399 ac_status=$?
14400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14401 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14402 { (case "(($ac_try" in
14403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14404 *) ac_try_echo=$ac_try;;
14405 esac
14406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14407 (eval "$ac_try") 2>&5
14408 ac_status=$?
14409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14410 (exit $ac_status); }; }; then
14411 ac_cv_sizeof_pthread_t=`cat conftest.val`
14412 else
14413 echo "$as_me: program exited with status $ac_status" >&5
14414 echo "$as_me: failed program was:" >&5
14415 sed 's/^/| /' conftest.$ac_ext >&5
14417 ( exit $ac_status )
14418 if test "$ac_cv_type_pthread_t" = yes; then
14419 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pthread_t)
14420 See \`config.log' for more details." >&5
14421 echo "$as_me: error: cannot compute sizeof (pthread_t)
14422 See \`config.log' for more details." >&2;}
14423 { (exit 77); exit 77; }; }
14424 else
14425 ac_cv_sizeof_pthread_t=0
14428 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14430 rm -f conftest.val
14432 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
14433 echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6; }
14437 cat >>confdefs.h <<_ACEOF
14438 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
14439 _ACEOF
14443 CC="$ac_save_cc"
14445 { echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5
14446 echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6; }
14447 # Check whether --enable-toolbox-glue was given.
14448 if test "${enable_toolbox_glue+set}" = set; then
14449 enableval=$enable_toolbox_glue;
14453 if test -z "$enable_toolbox_glue"
14454 then
14455 case $ac_sys_system/$ac_sys_release in
14456 Darwin/*)
14457 enable_toolbox_glue="yes";;
14459 enable_toolbox_glue="no";;
14460 esac
14462 case "$enable_toolbox_glue" in
14463 yes)
14464 extra_machdep_objs="Python/mactoolboxglue.o"
14465 extra_undefs="-u _PyMac_Error"
14467 cat >>confdefs.h <<\_ACEOF
14468 #define USE_TOOLBOX_OBJECT_GLUE 1
14469 _ACEOF
14473 extra_machdep_objs=""
14474 extra_undefs=""
14476 esac
14477 { echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5
14478 echo "${ECHO_T}$enable_toolbox_glue" >&6; }
14482 case $ac_sys_system/$ac_sys_release in
14483 Darwin/[01567]\..*)
14484 OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
14486 Darwin/*)
14487 OTHER_LIBTOOL_OPT=""
14489 esac
14492 ARCH_RUN_32BIT=""
14494 case $ac_sys_system/$ac_sys_release in
14495 Darwin/[01567]\..*)
14496 LIBTOOL_CRUFT="-framework System -lcc_dynamic"
14497 if test "${enable_universalsdk}"; then
14499 else
14500 LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `arch`"
14502 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
14503 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
14504 Darwin/*)
14505 gcc_version=`gcc -v 2>&1 | grep version | cut -d\ -f3`
14506 if test ${gcc_version} '<' 4.0
14507 then
14508 LIBTOOL_CRUFT="-lcc_dynamic"
14509 else
14510 LIBTOOL_CRUFT=""
14512 if test "$cross_compiling" = yes; then
14513 ac_osx_32bit=yes
14514 else
14515 cat >conftest.$ac_ext <<_ACEOF
14516 /* confdefs.h. */
14517 _ACEOF
14518 cat confdefs.h >>conftest.$ac_ext
14519 cat >>conftest.$ac_ext <<_ACEOF
14520 /* end confdefs.h. */
14522 #include <unistd.h>
14523 int main(int argc, char*argv[])
14525 if (sizeof(long) == 4) {
14526 return 0;
14527 } else {
14528 return 1;
14532 _ACEOF
14533 rm -f conftest$ac_exeext
14534 if { (ac_try="$ac_link"
14535 case "(($ac_try" in
14536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14537 *) ac_try_echo=$ac_try;;
14538 esac
14539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14540 (eval "$ac_link") 2>&5
14541 ac_status=$?
14542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14543 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14544 { (case "(($ac_try" in
14545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14546 *) ac_try_echo=$ac_try;;
14547 esac
14548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14549 (eval "$ac_try") 2>&5
14550 ac_status=$?
14551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14552 (exit $ac_status); }; }; then
14553 ac_osx_32bit=yes
14554 else
14555 echo "$as_me: program exited with status $ac_status" >&5
14556 echo "$as_me: failed program was:" >&5
14557 sed 's/^/| /' conftest.$ac_ext >&5
14559 ( exit $ac_status )
14560 ac_osx_32bit=no
14562 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14567 if test "${ac_osx_32bit}" = "yes"; then
14568 case `arch` in
14569 i386)
14570 MACOSX_DEFAULT_ARCH="i386"
14572 ppc)
14573 MACOSX_DEFAULT_ARCH="ppc"
14576 { { echo "$as_me:$LINENO: error: Unexpected output of 'arch' on OSX" >&5
14577 echo "$as_me: error: Unexpected output of 'arch' on OSX" >&2;}
14578 { (exit 1); exit 1; }; }
14580 esac
14581 else
14582 case `arch` in
14583 i386)
14584 MACOSX_DEFAULT_ARCH="x86_64"
14586 ppc)
14587 MACOSX_DEFAULT_ARCH="ppc64"
14590 { { echo "$as_me:$LINENO: error: Unexpected output of 'arch' on OSX" >&5
14591 echo "$as_me: error: Unexpected output of 'arch' on OSX" >&2;}
14592 { (exit 1); exit 1; }; }
14594 esac
14596 #ARCH_RUN_32BIT="true"
14599 LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only ${MACOSX_DEFAULT_ARCH}"
14600 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
14601 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
14602 esac
14604 { echo "$as_me:$LINENO: checking for --enable-framework" >&5
14605 echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6; }
14606 if test "$enable_framework"
14607 then
14608 BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
14609 # -F. is needed to allow linking to the framework while
14610 # in the build location.
14612 cat >>confdefs.h <<\_ACEOF
14613 #define WITH_NEXT_FRAMEWORK 1
14614 _ACEOF
14616 { echo "$as_me:$LINENO: result: yes" >&5
14617 echo "${ECHO_T}yes" >&6; }
14618 if test $enable_shared = "yes"
14619 then
14620 { { echo "$as_me:$LINENO: error: Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead. See Mac/README." >&5
14621 echo "$as_me: error: Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead. See Mac/README." >&2;}
14622 { (exit 1); exit 1; }; }
14624 else
14625 { echo "$as_me:$LINENO: result: no" >&5
14626 echo "${ECHO_T}no" >&6; }
14629 { echo "$as_me:$LINENO: checking for dyld" >&5
14630 echo $ECHO_N "checking for dyld... $ECHO_C" >&6; }
14631 case $ac_sys_system/$ac_sys_release in
14632 Darwin/*)
14634 cat >>confdefs.h <<\_ACEOF
14635 #define WITH_DYLD 1
14636 _ACEOF
14638 { echo "$as_me:$LINENO: result: always on for Darwin" >&5
14639 echo "${ECHO_T}always on for Darwin" >&6; }
14642 { echo "$as_me:$LINENO: result: no" >&5
14643 echo "${ECHO_T}no" >&6; }
14645 esac
14647 # Set info about shared libraries.
14653 # SO is the extension of shared libraries `(including the dot!)
14654 # -- usually .so, .sl on HP-UX, .dll on Cygwin
14655 { echo "$as_me:$LINENO: checking SO" >&5
14656 echo $ECHO_N "checking SO... $ECHO_C" >&6; }
14657 if test -z "$SO"
14658 then
14659 case $ac_sys_system in
14660 hp*|HP*)
14661 case `uname -m` in
14662 ia64) SO=.so;;
14663 *) SO=.sl;;
14664 esac
14666 CYGWIN*) SO=.dll;;
14667 *) SO=.so;;
14668 esac
14669 else
14670 # this might also be a termcap variable, see #610332
14671 echo
14672 echo '====================================================================='
14673 echo '+ +'
14674 echo '+ WARNING: You have set SO in your environment. +'
14675 echo '+ Do you really mean to change the extension for shared libraries? +'
14676 echo '+ Continuing in 10 seconds to let you to ponder. +'
14677 echo '+ +'
14678 echo '====================================================================='
14679 sleep 10
14681 { echo "$as_me:$LINENO: result: $SO" >&5
14682 echo "${ECHO_T}$SO" >&6; }
14685 cat >>confdefs.h <<_ACEOF
14686 #define SHLIB_EXT "$SO"
14687 _ACEOF
14689 # LDSHARED is the ld *command* used to create shared library
14690 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
14691 # (Shared libraries in this instance are shared modules to be loaded into
14692 # Python, as opposed to building Python itself as a shared library.)
14693 { echo "$as_me:$LINENO: checking LDSHARED" >&5
14694 echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6; }
14695 if test -z "$LDSHARED"
14696 then
14697 case $ac_sys_system/$ac_sys_release in
14698 AIX*)
14699 BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
14700 LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
14702 BeOS*)
14703 BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
14704 LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
14706 IRIX/5*) LDSHARED="ld -shared";;
14707 IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";;
14708 SunOS/5*)
14709 if test "$GCC" = "yes"
14710 then LDSHARED='$(CC) -shared'
14711 else LDSHARED='$(CC) -G';
14712 fi ;;
14713 hp*|HP*)
14714 if test "$GCC" = "yes"
14715 then LDSHARED='$(CC) -shared'
14716 else LDSHARED='ld -b';
14717 fi ;;
14718 OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";;
14719 Darwin/1.3*)
14720 LDSHARED='$(CC) $(LDFLAGS) -bundle'
14721 if test "$enable_framework" ; then
14722 # Link against the framework. All externals should be defined.
14723 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
14724 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
14725 else
14726 # No framework. Ignore undefined symbols, assuming they come from Python
14727 LDSHARED="$LDSHARED -undefined suppress"
14728 fi ;;
14729 Darwin/1.4*|Darwin/5.*|Darwin/6.*)
14730 LDSHARED='$(CC) $(LDFLAGS) -bundle'
14731 if test "$enable_framework" ; then
14732 # Link against the framework. All externals should be defined.
14733 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
14734 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
14735 else
14736 # No framework, use the Python app as bundle-loader
14737 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
14738 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
14739 fi ;;
14740 Darwin/*)
14741 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
14742 # This allows an extension to be used in any Python
14744 if test ${MACOSX_DEPLOYMENT_TARGET} '>' 10.2
14745 then
14746 if test "${enable_universalsdk}"; then
14747 LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
14749 LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
14750 BLDSHARED="$LDSHARED"
14751 else
14752 LDSHARED='$(CC) $(LDFLAGS) -bundle'
14753 if test "$enable_framework" ; then
14754 # Link against the framework. All externals should be defined.
14755 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
14756 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
14757 else
14758 # No framework, use the Python app as bundle-loader
14759 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
14760 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
14764 Linux*|GNU*|QNX*) LDSHARED='$(CC) -shared';;
14765 BSD/OS*/4*) LDSHARED="gcc -shared";;
14766 FreeBSD*)
14767 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
14768 then
14769 LDSHARED="$CC -shared ${LDFLAGS}"
14770 else
14771 LDSHARED="ld -Bshareable ${LDFLAGS}"
14772 fi;;
14773 OpenBSD*)
14774 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
14775 then
14776 LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
14777 else
14778 case `uname -r` in
14779 [01].* | 2.[0-7] | 2.[0-7].*)
14780 LDSHARED="ld -Bshareable ${LDFLAGS}"
14783 LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
14785 esac
14786 fi;;
14787 NetBSD*|DragonFly*) LDSHARED="cc -shared ${LDFLAGS}";;
14788 OpenUNIX*|UnixWare*)
14789 if test "$GCC" = "yes"
14790 then LDSHARED='$(CC) -shared'
14791 else LDSHARED='$(CC) -G'
14792 fi;;
14793 SCO_SV*) LDSHARED='$(CC) -Wl,-G,-Bexport';;
14794 CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";;
14795 atheos*) LDSHARED="gcc -shared";;
14796 *) LDSHARED="ld";;
14797 esac
14799 { echo "$as_me:$LINENO: result: $LDSHARED" >&5
14800 echo "${ECHO_T}$LDSHARED" >&6; }
14801 BLDSHARED=${BLDSHARED-$LDSHARED}
14802 # CCSHARED are the C *flags* used to create objects to go into a shared
14803 # library (module) -- this is only needed for a few systems
14804 { echo "$as_me:$LINENO: checking CCSHARED" >&5
14805 echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6; }
14806 if test -z "$CCSHARED"
14807 then
14808 case $ac_sys_system/$ac_sys_release in
14809 SunOS*) if test "$GCC" = yes;
14810 then CCSHARED="-fPIC";
14811 elif test `uname -p` = sparc;
14812 then CCSHARED="-xcode=pic32";
14813 else CCSHARED="-Kpic";
14814 fi;;
14815 hp*|HP*) if test "$GCC" = yes;
14816 then CCSHARED="-fPIC";
14817 else CCSHARED="+z";
14818 fi;;
14819 Linux*|GNU*) CCSHARED="-fPIC";;
14820 BSD/OS*/4*) CCSHARED="-fpic";;
14821 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";;
14822 OpenUNIX*|UnixWare*)
14823 if test "$GCC" = "yes"
14824 then CCSHARED="-fPIC"
14825 else CCSHARED="-KPIC"
14826 fi;;
14827 SCO_SV*)
14828 if test "$GCC" = "yes"
14829 then CCSHARED="-fPIC"
14830 else CCSHARED="-Kpic -belf"
14831 fi;;
14832 IRIX*/6*) case $CC in
14833 *gcc*) CCSHARED="-shared";;
14834 *) CCSHARED="";;
14835 esac;;
14836 atheos*) CCSHARED="-fPIC";;
14837 esac
14839 { echo "$as_me:$LINENO: result: $CCSHARED" >&5
14840 echo "${ECHO_T}$CCSHARED" >&6; }
14841 # LINKFORSHARED are the flags passed to the $(CC) command that links
14842 # the python executable -- this is only needed for a few systems
14843 { echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
14844 echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6; }
14845 if test -z "$LINKFORSHARED"
14846 then
14847 case $ac_sys_system/$ac_sys_release in
14848 AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';;
14849 hp*|HP*)
14850 LINKFORSHARED="-Wl,-E -Wl,+s";;
14851 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
14852 BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";;
14853 Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";;
14854 # -u libsys_s pulls in all symbols in libsys
14855 Darwin/*)
14856 # -u _PyMac_Error is needed to pull in the mac toolbox glue,
14857 # which is
14858 # not used by the core itself but which needs to be in the core so
14859 # that dynamically loaded extension modules have access to it.
14860 # -prebind is no longer used, because it actually seems to give a
14861 # slowdown in stead of a speedup, maybe due to the large number of
14862 # dynamic loads Python does.
14864 LINKFORSHARED="$extra_undefs"
14865 if test "$enable_framework"
14866 then
14867 LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
14869 LINKFORSHARED="$LINKFORSHARED";;
14870 OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";;
14871 SCO_SV*) LINKFORSHARED="-Wl,-Bexport";;
14872 ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
14873 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*)
14874 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
14875 then
14876 LINKFORSHARED="-Wl,--export-dynamic"
14877 fi;;
14878 SunOS/5*) case $CC in
14879 *gcc*)
14880 if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null
14881 then
14882 LINKFORSHARED="-Xlinker --export-dynamic"
14883 fi;;
14884 esac;;
14885 CYGWIN*)
14886 if test $enable_shared = "no"
14887 then
14888 LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)'
14889 fi;;
14890 QNX*)
14891 # -Wl,-E causes the symbols to be added to the dynamic
14892 # symbol table so that they can be found when a module
14893 # is loaded. -N 2048K causes the stack size to be set
14894 # to 2048 kilobytes so that the stack doesn't overflow
14895 # when running test_compile.py.
14896 LINKFORSHARED='-Wl,-E -N 2048K';;
14897 esac
14899 { echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
14900 echo "${ECHO_T}$LINKFORSHARED" >&6; }
14904 { echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
14905 echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6; }
14906 if test ! "$LIBRARY" = "$LDLIBRARY"
14907 then
14908 case $ac_sys_system in
14909 CYGWIN*)
14910 # Cygwin needs CCSHARED when building extension DLLs
14911 # but not when building the interpreter DLL.
14912 CFLAGSFORSHARED='';;
14914 CFLAGSFORSHARED='$(CCSHARED)'
14915 esac
14917 { echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
14918 echo "${ECHO_T}$CFLAGSFORSHARED" >&6; }
14920 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
14921 # library (with --enable-shared).
14922 # For platforms on which shared libraries are not allowed to have unresolved
14923 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
14924 # if it is not required, since it creates a dependency of the shared library
14925 # to LIBS. This, in turn, means that applications linking the shared libpython
14926 # don't need to link LIBS explicitly. The default should be only changed
14927 # on systems where this approach causes problems.
14929 { echo "$as_me:$LINENO: checking SHLIBS" >&5
14930 echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6; }
14931 case "$ac_sys_system" in
14933 SHLIBS='$(LIBS)';;
14934 esac
14935 { echo "$as_me:$LINENO: result: $SHLIBS" >&5
14936 echo "${ECHO_T}$SHLIBS" >&6; }
14939 # checks for libraries
14941 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14942 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
14943 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14944 echo $ECHO_N "(cached) $ECHO_C" >&6
14945 else
14946 ac_check_lib_save_LIBS=$LIBS
14947 LIBS="-ldl $LIBS"
14948 cat >conftest.$ac_ext <<_ACEOF
14949 /* confdefs.h. */
14950 _ACEOF
14951 cat confdefs.h >>conftest.$ac_ext
14952 cat >>conftest.$ac_ext <<_ACEOF
14953 /* end confdefs.h. */
14955 /* Override any GCC internal prototype to avoid an error.
14956 Use char because int might match the return type of a GCC
14957 builtin and then its argument prototype would still apply. */
14958 #ifdef __cplusplus
14959 extern "C"
14960 #endif
14961 char dlopen ();
14963 main ()
14965 return dlopen ();
14967 return 0;
14969 _ACEOF
14970 rm -f conftest.$ac_objext conftest$ac_exeext
14971 if { (ac_try="$ac_link"
14972 case "(($ac_try" in
14973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14974 *) ac_try_echo=$ac_try;;
14975 esac
14976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14977 (eval "$ac_link") 2>conftest.er1
14978 ac_status=$?
14979 grep -v '^ *+' conftest.er1 >conftest.err
14980 rm -f conftest.er1
14981 cat conftest.err >&5
14982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14983 (exit $ac_status); } && {
14984 test -z "$ac_c_werror_flag" ||
14985 test ! -s conftest.err
14986 } && test -s conftest$ac_exeext &&
14987 $as_test_x conftest$ac_exeext; then
14988 ac_cv_lib_dl_dlopen=yes
14989 else
14990 echo "$as_me: failed program was:" >&5
14991 sed 's/^/| /' conftest.$ac_ext >&5
14993 ac_cv_lib_dl_dlopen=no
14996 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14997 conftest$ac_exeext conftest.$ac_ext
14998 LIBS=$ac_check_lib_save_LIBS
15000 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15001 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
15002 if test $ac_cv_lib_dl_dlopen = yes; then
15003 cat >>confdefs.h <<_ACEOF
15004 #define HAVE_LIBDL 1
15005 _ACEOF
15007 LIBS="-ldl $LIBS"
15010 # Dynamic linking for SunOS/Solaris and SYSV
15012 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
15013 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
15014 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
15015 echo $ECHO_N "(cached) $ECHO_C" >&6
15016 else
15017 ac_check_lib_save_LIBS=$LIBS
15018 LIBS="-ldld $LIBS"
15019 cat >conftest.$ac_ext <<_ACEOF
15020 /* confdefs.h. */
15021 _ACEOF
15022 cat confdefs.h >>conftest.$ac_ext
15023 cat >>conftest.$ac_ext <<_ACEOF
15024 /* end confdefs.h. */
15026 /* Override any GCC internal prototype to avoid an error.
15027 Use char because int might match the return type of a GCC
15028 builtin and then its argument prototype would still apply. */
15029 #ifdef __cplusplus
15030 extern "C"
15031 #endif
15032 char shl_load ();
15034 main ()
15036 return shl_load ();
15038 return 0;
15040 _ACEOF
15041 rm -f conftest.$ac_objext conftest$ac_exeext
15042 if { (ac_try="$ac_link"
15043 case "(($ac_try" in
15044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15045 *) ac_try_echo=$ac_try;;
15046 esac
15047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15048 (eval "$ac_link") 2>conftest.er1
15049 ac_status=$?
15050 grep -v '^ *+' conftest.er1 >conftest.err
15051 rm -f conftest.er1
15052 cat conftest.err >&5
15053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15054 (exit $ac_status); } && {
15055 test -z "$ac_c_werror_flag" ||
15056 test ! -s conftest.err
15057 } && test -s conftest$ac_exeext &&
15058 $as_test_x conftest$ac_exeext; then
15059 ac_cv_lib_dld_shl_load=yes
15060 else
15061 echo "$as_me: failed program was:" >&5
15062 sed 's/^/| /' conftest.$ac_ext >&5
15064 ac_cv_lib_dld_shl_load=no
15067 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15068 conftest$ac_exeext conftest.$ac_ext
15069 LIBS=$ac_check_lib_save_LIBS
15071 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
15072 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
15073 if test $ac_cv_lib_dld_shl_load = yes; then
15074 cat >>confdefs.h <<_ACEOF
15075 #define HAVE_LIBDLD 1
15076 _ACEOF
15078 LIBS="-ldld $LIBS"
15081 # Dynamic linking for HP-UX
15083 # only check for sem_init if thread support is requested
15084 if test "$with_threads" = "yes" -o -z "$with_threads"; then
15085 { echo "$as_me:$LINENO: checking for library containing sem_init" >&5
15086 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; }
15087 if test "${ac_cv_search_sem_init+set}" = set; then
15088 echo $ECHO_N "(cached) $ECHO_C" >&6
15089 else
15090 ac_func_search_save_LIBS=$LIBS
15091 cat >conftest.$ac_ext <<_ACEOF
15092 /* confdefs.h. */
15093 _ACEOF
15094 cat confdefs.h >>conftest.$ac_ext
15095 cat >>conftest.$ac_ext <<_ACEOF
15096 /* end confdefs.h. */
15098 /* Override any GCC internal prototype to avoid an error.
15099 Use char because int might match the return type of a GCC
15100 builtin and then its argument prototype would still apply. */
15101 #ifdef __cplusplus
15102 extern "C"
15103 #endif
15104 char sem_init ();
15106 main ()
15108 return sem_init ();
15110 return 0;
15112 _ACEOF
15113 for ac_lib in '' pthread rt posix4; do
15114 if test -z "$ac_lib"; then
15115 ac_res="none required"
15116 else
15117 ac_res=-l$ac_lib
15118 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15120 rm -f conftest.$ac_objext conftest$ac_exeext
15121 if { (ac_try="$ac_link"
15122 case "(($ac_try" in
15123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15124 *) ac_try_echo=$ac_try;;
15125 esac
15126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15127 (eval "$ac_link") 2>conftest.er1
15128 ac_status=$?
15129 grep -v '^ *+' conftest.er1 >conftest.err
15130 rm -f conftest.er1
15131 cat conftest.err >&5
15132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15133 (exit $ac_status); } && {
15134 test -z "$ac_c_werror_flag" ||
15135 test ! -s conftest.err
15136 } && test -s conftest$ac_exeext &&
15137 $as_test_x conftest$ac_exeext; then
15138 ac_cv_search_sem_init=$ac_res
15139 else
15140 echo "$as_me: failed program was:" >&5
15141 sed 's/^/| /' conftest.$ac_ext >&5
15146 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15147 conftest$ac_exeext
15148 if test "${ac_cv_search_sem_init+set}" = set; then
15149 break
15151 done
15152 if test "${ac_cv_search_sem_init+set}" = set; then
15154 else
15155 ac_cv_search_sem_init=no
15157 rm conftest.$ac_ext
15158 LIBS=$ac_func_search_save_LIBS
15160 { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
15161 echo "${ECHO_T}$ac_cv_search_sem_init" >&6; }
15162 ac_res=$ac_cv_search_sem_init
15163 if test "$ac_res" != no; then
15164 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15167 # 'Real Time' functions on Solaris
15168 # posix4 on Solaris 2.6
15169 # pthread (first!) on Linux
15172 # check if we need libintl for locale functions
15173 { echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
15174 echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6; }
15175 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
15176 echo $ECHO_N "(cached) $ECHO_C" >&6
15177 else
15178 ac_check_lib_save_LIBS=$LIBS
15179 LIBS="-lintl $LIBS"
15180 cat >conftest.$ac_ext <<_ACEOF
15181 /* confdefs.h. */
15182 _ACEOF
15183 cat confdefs.h >>conftest.$ac_ext
15184 cat >>conftest.$ac_ext <<_ACEOF
15185 /* end confdefs.h. */
15187 /* Override any GCC internal prototype to avoid an error.
15188 Use char because int might match the return type of a GCC
15189 builtin and then its argument prototype would still apply. */
15190 #ifdef __cplusplus
15191 extern "C"
15192 #endif
15193 char textdomain ();
15195 main ()
15197 return textdomain ();
15199 return 0;
15201 _ACEOF
15202 rm -f conftest.$ac_objext conftest$ac_exeext
15203 if { (ac_try="$ac_link"
15204 case "(($ac_try" in
15205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15206 *) ac_try_echo=$ac_try;;
15207 esac
15208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15209 (eval "$ac_link") 2>conftest.er1
15210 ac_status=$?
15211 grep -v '^ *+' conftest.er1 >conftest.err
15212 rm -f conftest.er1
15213 cat conftest.err >&5
15214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15215 (exit $ac_status); } && {
15216 test -z "$ac_c_werror_flag" ||
15217 test ! -s conftest.err
15218 } && test -s conftest$ac_exeext &&
15219 $as_test_x conftest$ac_exeext; then
15220 ac_cv_lib_intl_textdomain=yes
15221 else
15222 echo "$as_me: failed program was:" >&5
15223 sed 's/^/| /' conftest.$ac_ext >&5
15225 ac_cv_lib_intl_textdomain=no
15228 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15229 conftest$ac_exeext conftest.$ac_ext
15230 LIBS=$ac_check_lib_save_LIBS
15232 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
15233 echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6; }
15234 if test $ac_cv_lib_intl_textdomain = yes; then
15236 cat >>confdefs.h <<\_ACEOF
15237 #define WITH_LIBINTL 1
15238 _ACEOF
15243 # checks for system dependent C++ extensions support
15244 case "$ac_sys_system" in
15245 AIX*) { echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
15246 echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6; }
15247 cat >conftest.$ac_ext <<_ACEOF
15248 /* confdefs.h. */
15249 _ACEOF
15250 cat confdefs.h >>conftest.$ac_ext
15251 cat >>conftest.$ac_ext <<_ACEOF
15252 /* end confdefs.h. */
15253 #include "/usr/lpp/xlC/include/load.h"
15255 main ()
15257 loadAndInit("", 0, "")
15259 return 0;
15261 _ACEOF
15262 rm -f conftest.$ac_objext conftest$ac_exeext
15263 if { (ac_try="$ac_link"
15264 case "(($ac_try" in
15265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15266 *) ac_try_echo=$ac_try;;
15267 esac
15268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15269 (eval "$ac_link") 2>conftest.er1
15270 ac_status=$?
15271 grep -v '^ *+' conftest.er1 >conftest.err
15272 rm -f conftest.er1
15273 cat conftest.err >&5
15274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15275 (exit $ac_status); } && {
15276 test -z "$ac_c_werror_flag" ||
15277 test ! -s conftest.err
15278 } && test -s conftest$ac_exeext &&
15279 $as_test_x conftest$ac_exeext; then
15281 cat >>confdefs.h <<\_ACEOF
15282 #define AIX_GENUINE_CPLUSPLUS 1
15283 _ACEOF
15285 { echo "$as_me:$LINENO: result: yes" >&5
15286 echo "${ECHO_T}yes" >&6; }
15287 else
15288 echo "$as_me: failed program was:" >&5
15289 sed 's/^/| /' conftest.$ac_ext >&5
15291 { echo "$as_me:$LINENO: result: no" >&5
15292 echo "${ECHO_T}no" >&6; }
15295 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15296 conftest$ac_exeext conftest.$ac_ext;;
15297 *) ;;
15298 esac
15300 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
15301 # BeOS' sockets are stashed in libnet.
15302 { echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
15303 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6; }
15304 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
15305 echo $ECHO_N "(cached) $ECHO_C" >&6
15306 else
15307 ac_check_lib_save_LIBS=$LIBS
15308 LIBS="-lnsl $LIBS"
15309 cat >conftest.$ac_ext <<_ACEOF
15310 /* confdefs.h. */
15311 _ACEOF
15312 cat confdefs.h >>conftest.$ac_ext
15313 cat >>conftest.$ac_ext <<_ACEOF
15314 /* end confdefs.h. */
15316 /* Override any GCC internal prototype to avoid an error.
15317 Use char because int might match the return type of a GCC
15318 builtin and then its argument prototype would still apply. */
15319 #ifdef __cplusplus
15320 extern "C"
15321 #endif
15322 char t_open ();
15324 main ()
15326 return t_open ();
15328 return 0;
15330 _ACEOF
15331 rm -f conftest.$ac_objext conftest$ac_exeext
15332 if { (ac_try="$ac_link"
15333 case "(($ac_try" in
15334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15335 *) ac_try_echo=$ac_try;;
15336 esac
15337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15338 (eval "$ac_link") 2>conftest.er1
15339 ac_status=$?
15340 grep -v '^ *+' conftest.er1 >conftest.err
15341 rm -f conftest.er1
15342 cat conftest.err >&5
15343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15344 (exit $ac_status); } && {
15345 test -z "$ac_c_werror_flag" ||
15346 test ! -s conftest.err
15347 } && test -s conftest$ac_exeext &&
15348 $as_test_x conftest$ac_exeext; then
15349 ac_cv_lib_nsl_t_open=yes
15350 else
15351 echo "$as_me: failed program was:" >&5
15352 sed 's/^/| /' conftest.$ac_ext >&5
15354 ac_cv_lib_nsl_t_open=no
15357 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15358 conftest$ac_exeext conftest.$ac_ext
15359 LIBS=$ac_check_lib_save_LIBS
15361 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
15362 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6; }
15363 if test $ac_cv_lib_nsl_t_open = yes; then
15364 LIBS="-lnsl $LIBS"
15366 # SVR4
15367 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
15368 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
15369 if test "${ac_cv_lib_socket_socket+set}" = set; then
15370 echo $ECHO_N "(cached) $ECHO_C" >&6
15371 else
15372 ac_check_lib_save_LIBS=$LIBS
15373 LIBS="-lsocket $LIBS $LIBS"
15374 cat >conftest.$ac_ext <<_ACEOF
15375 /* confdefs.h. */
15376 _ACEOF
15377 cat confdefs.h >>conftest.$ac_ext
15378 cat >>conftest.$ac_ext <<_ACEOF
15379 /* end confdefs.h. */
15381 /* Override any GCC internal prototype to avoid an error.
15382 Use char because int might match the return type of a GCC
15383 builtin and then its argument prototype would still apply. */
15384 #ifdef __cplusplus
15385 extern "C"
15386 #endif
15387 char socket ();
15389 main ()
15391 return socket ();
15393 return 0;
15395 _ACEOF
15396 rm -f conftest.$ac_objext conftest$ac_exeext
15397 if { (ac_try="$ac_link"
15398 case "(($ac_try" in
15399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15400 *) ac_try_echo=$ac_try;;
15401 esac
15402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15403 (eval "$ac_link") 2>conftest.er1
15404 ac_status=$?
15405 grep -v '^ *+' conftest.er1 >conftest.err
15406 rm -f conftest.er1
15407 cat conftest.err >&5
15408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15409 (exit $ac_status); } && {
15410 test -z "$ac_c_werror_flag" ||
15411 test ! -s conftest.err
15412 } && test -s conftest$ac_exeext &&
15413 $as_test_x conftest$ac_exeext; then
15414 ac_cv_lib_socket_socket=yes
15415 else
15416 echo "$as_me: failed program was:" >&5
15417 sed 's/^/| /' conftest.$ac_ext >&5
15419 ac_cv_lib_socket_socket=no
15422 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15423 conftest$ac_exeext conftest.$ac_ext
15424 LIBS=$ac_check_lib_save_LIBS
15426 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
15427 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
15428 if test $ac_cv_lib_socket_socket = yes; then
15429 LIBS="-lsocket $LIBS"
15431 # SVR4 sockets
15433 case "$ac_sys_system" in
15434 BeOS*)
15435 { echo "$as_me:$LINENO: checking for socket in -lnet" >&5
15436 echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6; }
15437 if test "${ac_cv_lib_net_socket+set}" = set; then
15438 echo $ECHO_N "(cached) $ECHO_C" >&6
15439 else
15440 ac_check_lib_save_LIBS=$LIBS
15441 LIBS="-lnet $LIBS $LIBS"
15442 cat >conftest.$ac_ext <<_ACEOF
15443 /* confdefs.h. */
15444 _ACEOF
15445 cat confdefs.h >>conftest.$ac_ext
15446 cat >>conftest.$ac_ext <<_ACEOF
15447 /* end confdefs.h. */
15449 /* Override any GCC internal prototype to avoid an error.
15450 Use char because int might match the return type of a GCC
15451 builtin and then its argument prototype would still apply. */
15452 #ifdef __cplusplus
15453 extern "C"
15454 #endif
15455 char socket ();
15457 main ()
15459 return socket ();
15461 return 0;
15463 _ACEOF
15464 rm -f conftest.$ac_objext conftest$ac_exeext
15465 if { (ac_try="$ac_link"
15466 case "(($ac_try" in
15467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15468 *) ac_try_echo=$ac_try;;
15469 esac
15470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15471 (eval "$ac_link") 2>conftest.er1
15472 ac_status=$?
15473 grep -v '^ *+' conftest.er1 >conftest.err
15474 rm -f conftest.er1
15475 cat conftest.err >&5
15476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15477 (exit $ac_status); } && {
15478 test -z "$ac_c_werror_flag" ||
15479 test ! -s conftest.err
15480 } && test -s conftest$ac_exeext &&
15481 $as_test_x conftest$ac_exeext; then
15482 ac_cv_lib_net_socket=yes
15483 else
15484 echo "$as_me: failed program was:" >&5
15485 sed 's/^/| /' conftest.$ac_ext >&5
15487 ac_cv_lib_net_socket=no
15490 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15491 conftest$ac_exeext conftest.$ac_ext
15492 LIBS=$ac_check_lib_save_LIBS
15494 { echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5
15495 echo "${ECHO_T}$ac_cv_lib_net_socket" >&6; }
15496 if test $ac_cv_lib_net_socket = yes; then
15497 LIBS="-lnet $LIBS"
15499 # BeOS
15501 esac
15503 { echo "$as_me:$LINENO: checking for --with-libs" >&5
15504 echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6; }
15506 # Check whether --with-libs was given.
15507 if test "${with_libs+set}" = set; then
15508 withval=$with_libs;
15509 { echo "$as_me:$LINENO: result: $withval" >&5
15510 echo "${ECHO_T}$withval" >&6; }
15511 LIBS="$withval $LIBS"
15513 else
15514 { echo "$as_me:$LINENO: result: no" >&5
15515 echo "${ECHO_T}no" >&6; }
15519 # Check for use of the system libffi library
15520 { echo "$as_me:$LINENO: checking for --with-system-ffi" >&5
15521 echo $ECHO_N "checking for --with-system-ffi... $ECHO_C" >&6; }
15523 # Check whether --with-system_ffi was given.
15524 if test "${with_system_ffi+set}" = set; then
15525 withval=$with_system_ffi;
15529 { echo "$as_me:$LINENO: result: $with_system_ffi" >&5
15530 echo "${ECHO_T}$with_system_ffi" >&6; }
15532 # Check for --with-dbmliborder
15533 { echo "$as_me:$LINENO: checking for --with-dbmliborder" >&5
15534 echo $ECHO_N "checking for --with-dbmliborder... $ECHO_C" >&6; }
15536 # Check whether --with-dbmliborder was given.
15537 if test "${with_dbmliborder+set}" = set; then
15538 withval=$with_dbmliborder;
15539 if test x$with_dbmliborder = xyes
15540 then
15541 { { echo "$as_me:$LINENO: error: proper usage is --with-dbmliborder=db1:db2:..." >&5
15542 echo "$as_me: error: proper usage is --with-dbmliborder=db1:db2:..." >&2;}
15543 { (exit 1); exit 1; }; }
15544 else
15545 for db in `echo $with_dbmliborder | sed 's/:/ /g'`; do
15546 if test x$db != xndbm && test x$db != xgdbm && test x$db != xbdb
15547 then
15548 { { echo "$as_me:$LINENO: error: proper usage is --with-dbmliborder=db1:db2:..." >&5
15549 echo "$as_me: error: proper usage is --with-dbmliborder=db1:db2:..." >&2;}
15550 { (exit 1); exit 1; }; }
15552 done
15556 { echo "$as_me:$LINENO: result: $with_dbmliborder" >&5
15557 echo "${ECHO_T}$with_dbmliborder" >&6; }
15559 # Determine if signalmodule should be used.
15562 { echo "$as_me:$LINENO: checking for --with-signal-module" >&5
15563 echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6; }
15565 # Check whether --with-signal-module was given.
15566 if test "${with_signal_module+set}" = set; then
15567 withval=$with_signal_module;
15571 if test -z "$with_signal_module"
15572 then with_signal_module="yes"
15574 { echo "$as_me:$LINENO: result: $with_signal_module" >&5
15575 echo "${ECHO_T}$with_signal_module" >&6; }
15577 if test "${with_signal_module}" = "yes"; then
15578 USE_SIGNAL_MODULE=""
15579 SIGNAL_OBJS=""
15580 else
15581 USE_SIGNAL_MODULE="#"
15582 SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o"
15585 # This is used to generate Setup.config
15587 USE_THREAD_MODULE=""
15589 { echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
15590 echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6; }
15593 # Check whether --with-dec-threads was given.
15594 if test "${with_dec_threads+set}" = set; then
15595 withval=$with_dec_threads;
15596 { echo "$as_me:$LINENO: result: $withval" >&5
15597 echo "${ECHO_T}$withval" >&6; }
15598 LDLAST=-threads
15599 if test "${with_thread+set}" != set; then
15600 with_thread="$withval";
15602 else
15603 { echo "$as_me:$LINENO: result: no" >&5
15604 echo "${ECHO_T}no" >&6; }
15608 # Templates for things AC_DEFINEd more than once.
15609 # For a single AC_DEFINE, no template is needed.
15617 { echo "$as_me:$LINENO: checking for --with-threads" >&5
15618 echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6; }
15620 # Check whether --with-threads was given.
15621 if test "${with_threads+set}" = set; then
15622 withval=$with_threads;
15626 # --with-thread is deprecated, but check for it anyway
15628 # Check whether --with-thread was given.
15629 if test "${with_thread+set}" = set; then
15630 withval=$with_thread; with_threads=$with_thread
15634 if test -z "$with_threads"
15635 then with_threads="yes"
15637 { echo "$as_me:$LINENO: result: $with_threads" >&5
15638 echo "${ECHO_T}$with_threads" >&6; }
15641 if test "$with_threads" = "no"
15642 then
15643 USE_THREAD_MODULE="#"
15644 elif test "$ac_cv_pthread_is_default" = yes
15645 then
15646 cat >>confdefs.h <<\_ACEOF
15647 #define WITH_THREAD 1
15648 _ACEOF
15650 # Defining _REENTRANT on system with POSIX threads should not hurt.
15651 cat >>confdefs.h <<\_ACEOF
15652 #define _REENTRANT 1
15653 _ACEOF
15655 posix_threads=yes
15656 THREADOBJ="Python/thread.o"
15657 elif test "$ac_cv_kpthread" = "yes"
15658 then
15659 CC="$CC -Kpthread"
15660 if test "$ac_cv_cxx_thread" = "yes"; then
15661 CXX="$CXX -Kpthread"
15663 cat >>confdefs.h <<\_ACEOF
15664 #define WITH_THREAD 1
15665 _ACEOF
15667 posix_threads=yes
15668 THREADOBJ="Python/thread.o"
15669 elif test "$ac_cv_kthread" = "yes"
15670 then
15671 CC="$CC -Kthread"
15672 if test "$ac_cv_cxx_thread" = "yes"; then
15673 CXX="$CXX -Kthread"
15675 cat >>confdefs.h <<\_ACEOF
15676 #define WITH_THREAD 1
15677 _ACEOF
15679 posix_threads=yes
15680 THREADOBJ="Python/thread.o"
15681 elif test "$ac_cv_pthread" = "yes"
15682 then
15683 CC="$CC -pthread"
15684 if test "$ac_cv_cxx_thread" = "yes"; then
15685 CXX="$CXX -pthread"
15687 cat >>confdefs.h <<\_ACEOF
15688 #define WITH_THREAD 1
15689 _ACEOF
15691 posix_threads=yes
15692 THREADOBJ="Python/thread.o"
15693 else
15694 if test ! -z "$with_threads" -a -d "$with_threads"
15695 then LDFLAGS="$LDFLAGS -L$with_threads"
15697 if test ! -z "$withval" -a -d "$withval"
15698 then LDFLAGS="$LDFLAGS -L$withval"
15701 # According to the POSIX spec, a pthreads implementation must
15702 # define _POSIX_THREADS in unistd.h. Some apparently don't
15703 # (e.g. gnu pth with pthread emulation)
15704 { echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
15705 echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6; }
15706 cat >conftest.$ac_ext <<_ACEOF
15707 /* confdefs.h. */
15708 _ACEOF
15709 cat confdefs.h >>conftest.$ac_ext
15710 cat >>conftest.$ac_ext <<_ACEOF
15711 /* end confdefs.h. */
15713 #include <unistd.h>
15714 #ifdef _POSIX_THREADS
15716 #endif
15718 _ACEOF
15719 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15720 $EGREP "yes" >/dev/null 2>&1; then
15721 unistd_defines_pthreads=yes
15722 else
15723 unistd_defines_pthreads=no
15725 rm -f conftest*
15727 { echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
15728 echo "${ECHO_T}$unistd_defines_pthreads" >&6; }
15730 cat >>confdefs.h <<\_ACEOF
15731 #define _REENTRANT 1
15732 _ACEOF
15734 if test "${ac_cv_header_cthreads_h+set}" = set; then
15735 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
15736 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
15737 if test "${ac_cv_header_cthreads_h+set}" = set; then
15738 echo $ECHO_N "(cached) $ECHO_C" >&6
15740 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
15741 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
15742 else
15743 # Is the header compilable?
15744 { echo "$as_me:$LINENO: checking cthreads.h usability" >&5
15745 echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6; }
15746 cat >conftest.$ac_ext <<_ACEOF
15747 /* confdefs.h. */
15748 _ACEOF
15749 cat confdefs.h >>conftest.$ac_ext
15750 cat >>conftest.$ac_ext <<_ACEOF
15751 /* end confdefs.h. */
15752 $ac_includes_default
15753 #include <cthreads.h>
15754 _ACEOF
15755 rm -f conftest.$ac_objext
15756 if { (ac_try="$ac_compile"
15757 case "(($ac_try" in
15758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15759 *) ac_try_echo=$ac_try;;
15760 esac
15761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15762 (eval "$ac_compile") 2>conftest.er1
15763 ac_status=$?
15764 grep -v '^ *+' conftest.er1 >conftest.err
15765 rm -f conftest.er1
15766 cat conftest.err >&5
15767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15768 (exit $ac_status); } && {
15769 test -z "$ac_c_werror_flag" ||
15770 test ! -s conftest.err
15771 } && test -s conftest.$ac_objext; then
15772 ac_header_compiler=yes
15773 else
15774 echo "$as_me: failed program was:" >&5
15775 sed 's/^/| /' conftest.$ac_ext >&5
15777 ac_header_compiler=no
15780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15781 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15782 echo "${ECHO_T}$ac_header_compiler" >&6; }
15784 # Is the header present?
15785 { echo "$as_me:$LINENO: checking cthreads.h presence" >&5
15786 echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6; }
15787 cat >conftest.$ac_ext <<_ACEOF
15788 /* confdefs.h. */
15789 _ACEOF
15790 cat confdefs.h >>conftest.$ac_ext
15791 cat >>conftest.$ac_ext <<_ACEOF
15792 /* end confdefs.h. */
15793 #include <cthreads.h>
15794 _ACEOF
15795 if { (ac_try="$ac_cpp conftest.$ac_ext"
15796 case "(($ac_try" in
15797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15798 *) ac_try_echo=$ac_try;;
15799 esac
15800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15801 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15802 ac_status=$?
15803 grep -v '^ *+' conftest.er1 >conftest.err
15804 rm -f conftest.er1
15805 cat conftest.err >&5
15806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15807 (exit $ac_status); } >/dev/null && {
15808 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15809 test ! -s conftest.err
15810 }; then
15811 ac_header_preproc=yes
15812 else
15813 echo "$as_me: failed program was:" >&5
15814 sed 's/^/| /' conftest.$ac_ext >&5
15816 ac_header_preproc=no
15819 rm -f conftest.err conftest.$ac_ext
15820 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15821 echo "${ECHO_T}$ac_header_preproc" >&6; }
15823 # So? What about this header?
15824 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15825 yes:no: )
15826 { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
15827 echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15828 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5
15829 echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;}
15830 ac_header_preproc=yes
15832 no:yes:* )
15833 { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
15834 echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
15835 { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
15836 echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
15837 { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5
15838 echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;}
15839 { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
15840 echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
15841 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
15842 echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;}
15843 { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5
15844 echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;}
15845 ( cat <<\_ASBOX
15846 ## -------------------------------------- ##
15847 ## Report this to http://bugs.python.org/ ##
15848 ## -------------------------------------- ##
15849 _ASBOX
15850 ) | sed "s/^/$as_me: WARNING: /" >&2
15852 esac
15853 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
15854 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
15855 if test "${ac_cv_header_cthreads_h+set}" = set; then
15856 echo $ECHO_N "(cached) $ECHO_C" >&6
15857 else
15858 ac_cv_header_cthreads_h=$ac_header_preproc
15860 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
15861 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
15864 if test $ac_cv_header_cthreads_h = yes; then
15865 cat >>confdefs.h <<\_ACEOF
15866 #define WITH_THREAD 1
15867 _ACEOF
15869 cat >>confdefs.h <<\_ACEOF
15870 #define C_THREADS 1
15871 _ACEOF
15874 cat >>confdefs.h <<\_ACEOF
15875 #define HURD_C_THREADS 1
15876 _ACEOF
15878 LIBS="$LIBS -lthreads"
15879 THREADOBJ="Python/thread.o"
15880 else
15882 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
15883 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
15884 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
15885 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
15886 echo $ECHO_N "(cached) $ECHO_C" >&6
15888 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
15889 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
15890 else
15891 # Is the header compilable?
15892 { echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
15893 echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6; }
15894 cat >conftest.$ac_ext <<_ACEOF
15895 /* confdefs.h. */
15896 _ACEOF
15897 cat confdefs.h >>conftest.$ac_ext
15898 cat >>conftest.$ac_ext <<_ACEOF
15899 /* end confdefs.h. */
15900 $ac_includes_default
15901 #include <mach/cthreads.h>
15902 _ACEOF
15903 rm -f conftest.$ac_objext
15904 if { (ac_try="$ac_compile"
15905 case "(($ac_try" in
15906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15907 *) ac_try_echo=$ac_try;;
15908 esac
15909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15910 (eval "$ac_compile") 2>conftest.er1
15911 ac_status=$?
15912 grep -v '^ *+' conftest.er1 >conftest.err
15913 rm -f conftest.er1
15914 cat conftest.err >&5
15915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15916 (exit $ac_status); } && {
15917 test -z "$ac_c_werror_flag" ||
15918 test ! -s conftest.err
15919 } && test -s conftest.$ac_objext; then
15920 ac_header_compiler=yes
15921 else
15922 echo "$as_me: failed program was:" >&5
15923 sed 's/^/| /' conftest.$ac_ext >&5
15925 ac_header_compiler=no
15928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15929 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15930 echo "${ECHO_T}$ac_header_compiler" >&6; }
15932 # Is the header present?
15933 { echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
15934 echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6; }
15935 cat >conftest.$ac_ext <<_ACEOF
15936 /* confdefs.h. */
15937 _ACEOF
15938 cat confdefs.h >>conftest.$ac_ext
15939 cat >>conftest.$ac_ext <<_ACEOF
15940 /* end confdefs.h. */
15941 #include <mach/cthreads.h>
15942 _ACEOF
15943 if { (ac_try="$ac_cpp conftest.$ac_ext"
15944 case "(($ac_try" in
15945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15946 *) ac_try_echo=$ac_try;;
15947 esac
15948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15949 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15950 ac_status=$?
15951 grep -v '^ *+' conftest.er1 >conftest.err
15952 rm -f conftest.er1
15953 cat conftest.err >&5
15954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15955 (exit $ac_status); } >/dev/null && {
15956 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15957 test ! -s conftest.err
15958 }; then
15959 ac_header_preproc=yes
15960 else
15961 echo "$as_me: failed program was:" >&5
15962 sed 's/^/| /' conftest.$ac_ext >&5
15964 ac_header_preproc=no
15967 rm -f conftest.err conftest.$ac_ext
15968 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15969 echo "${ECHO_T}$ac_header_preproc" >&6; }
15971 # So? What about this header?
15972 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15973 yes:no: )
15974 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
15975 echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15976 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
15977 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
15978 ac_header_preproc=yes
15980 no:yes:* )
15981 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
15982 echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
15983 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
15984 echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
15985 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
15986 echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
15987 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
15988 echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
15989 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
15990 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
15991 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
15992 echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
15993 ( cat <<\_ASBOX
15994 ## -------------------------------------- ##
15995 ## Report this to http://bugs.python.org/ ##
15996 ## -------------------------------------- ##
15997 _ASBOX
15998 ) | sed "s/^/$as_me: WARNING: /" >&2
16000 esac
16001 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
16002 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
16003 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
16004 echo $ECHO_N "(cached) $ECHO_C" >&6
16005 else
16006 ac_cv_header_mach_cthreads_h=$ac_header_preproc
16008 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
16009 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
16012 if test $ac_cv_header_mach_cthreads_h = yes; then
16013 cat >>confdefs.h <<\_ACEOF
16014 #define WITH_THREAD 1
16015 _ACEOF
16017 cat >>confdefs.h <<\_ACEOF
16018 #define C_THREADS 1
16019 _ACEOF
16022 cat >>confdefs.h <<\_ACEOF
16023 #define MACH_C_THREADS 1
16024 _ACEOF
16026 THREADOBJ="Python/thread.o"
16027 else
16029 { echo "$as_me:$LINENO: checking for --with-pth" >&5
16030 echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6; }
16032 # Check whether --with-pth was given.
16033 if test "${with_pth+set}" = set; then
16034 withval=$with_pth; { echo "$as_me:$LINENO: result: $withval" >&5
16035 echo "${ECHO_T}$withval" >&6; }
16036 cat >>confdefs.h <<\_ACEOF
16037 #define WITH_THREAD 1
16038 _ACEOF
16041 cat >>confdefs.h <<\_ACEOF
16042 #define HAVE_PTH 1
16043 _ACEOF
16045 LIBS="-lpth $LIBS"
16046 THREADOBJ="Python/thread.o"
16047 else
16048 { echo "$as_me:$LINENO: result: no" >&5
16049 echo "${ECHO_T}no" >&6; }
16051 # Just looking for pthread_create in libpthread is not enough:
16052 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
16053 # So we really have to include pthread.h, and then link.
16054 _libs=$LIBS
16055 LIBS="$LIBS -lpthread"
16056 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
16057 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
16058 cat >conftest.$ac_ext <<_ACEOF
16059 /* confdefs.h. */
16060 _ACEOF
16061 cat confdefs.h >>conftest.$ac_ext
16062 cat >>conftest.$ac_ext <<_ACEOF
16063 /* end confdefs.h. */
16064 #include <pthread.h>
16066 void * start_routine (void *arg) { exit (0); }
16068 main ()
16071 pthread_create (NULL, NULL, start_routine, NULL)
16073 return 0;
16075 _ACEOF
16076 rm -f conftest.$ac_objext conftest$ac_exeext
16077 if { (ac_try="$ac_link"
16078 case "(($ac_try" in
16079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16080 *) ac_try_echo=$ac_try;;
16081 esac
16082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16083 (eval "$ac_link") 2>conftest.er1
16084 ac_status=$?
16085 grep -v '^ *+' conftest.er1 >conftest.err
16086 rm -f conftest.er1
16087 cat conftest.err >&5
16088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16089 (exit $ac_status); } && {
16090 test -z "$ac_c_werror_flag" ||
16091 test ! -s conftest.err
16092 } && test -s conftest$ac_exeext &&
16093 $as_test_x conftest$ac_exeext; then
16095 { echo "$as_me:$LINENO: result: yes" >&5
16096 echo "${ECHO_T}yes" >&6; }
16097 cat >>confdefs.h <<\_ACEOF
16098 #define WITH_THREAD 1
16099 _ACEOF
16101 posix_threads=yes
16102 THREADOBJ="Python/thread.o"
16103 else
16104 echo "$as_me: failed program was:" >&5
16105 sed 's/^/| /' conftest.$ac_ext >&5
16108 LIBS=$_libs
16109 { echo "$as_me:$LINENO: checking for pthread_detach" >&5
16110 echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6; }
16111 if test "${ac_cv_func_pthread_detach+set}" = set; then
16112 echo $ECHO_N "(cached) $ECHO_C" >&6
16113 else
16114 cat >conftest.$ac_ext <<_ACEOF
16115 /* confdefs.h. */
16116 _ACEOF
16117 cat confdefs.h >>conftest.$ac_ext
16118 cat >>conftest.$ac_ext <<_ACEOF
16119 /* end confdefs.h. */
16120 /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach.
16121 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16122 #define pthread_detach innocuous_pthread_detach
16124 /* System header to define __stub macros and hopefully few prototypes,
16125 which can conflict with char pthread_detach (); below.
16126 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16127 <limits.h> exists even on freestanding compilers. */
16129 #ifdef __STDC__
16130 # include <limits.h>
16131 #else
16132 # include <assert.h>
16133 #endif
16135 #undef pthread_detach
16137 /* Override any GCC internal prototype to avoid an error.
16138 Use char because int might match the return type of a GCC
16139 builtin and then its argument prototype would still apply. */
16140 #ifdef __cplusplus
16141 extern "C"
16142 #endif
16143 char pthread_detach ();
16144 /* The GNU C library defines this for functions which it implements
16145 to always fail with ENOSYS. Some functions are actually named
16146 something starting with __ and the normal name is an alias. */
16147 #if defined __stub_pthread_detach || defined __stub___pthread_detach
16148 choke me
16149 #endif
16152 main ()
16154 return pthread_detach ();
16156 return 0;
16158 _ACEOF
16159 rm -f conftest.$ac_objext conftest$ac_exeext
16160 if { (ac_try="$ac_link"
16161 case "(($ac_try" in
16162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16163 *) ac_try_echo=$ac_try;;
16164 esac
16165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16166 (eval "$ac_link") 2>conftest.er1
16167 ac_status=$?
16168 grep -v '^ *+' conftest.er1 >conftest.err
16169 rm -f conftest.er1
16170 cat conftest.err >&5
16171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16172 (exit $ac_status); } && {
16173 test -z "$ac_c_werror_flag" ||
16174 test ! -s conftest.err
16175 } && test -s conftest$ac_exeext &&
16176 $as_test_x conftest$ac_exeext; then
16177 ac_cv_func_pthread_detach=yes
16178 else
16179 echo "$as_me: failed program was:" >&5
16180 sed 's/^/| /' conftest.$ac_ext >&5
16182 ac_cv_func_pthread_detach=no
16185 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16186 conftest$ac_exeext conftest.$ac_ext
16188 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
16189 echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6; }
16190 if test $ac_cv_func_pthread_detach = yes; then
16191 cat >>confdefs.h <<\_ACEOF
16192 #define WITH_THREAD 1
16193 _ACEOF
16195 posix_threads=yes
16196 THREADOBJ="Python/thread.o"
16197 else
16199 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
16200 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
16201 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
16202 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
16203 echo $ECHO_N "(cached) $ECHO_C" >&6
16205 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
16206 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
16207 else
16208 # Is the header compilable?
16209 { echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
16210 echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6; }
16211 cat >conftest.$ac_ext <<_ACEOF
16212 /* confdefs.h. */
16213 _ACEOF
16214 cat confdefs.h >>conftest.$ac_ext
16215 cat >>conftest.$ac_ext <<_ACEOF
16216 /* end confdefs.h. */
16217 $ac_includes_default
16218 #include <atheos/threads.h>
16219 _ACEOF
16220 rm -f conftest.$ac_objext
16221 if { (ac_try="$ac_compile"
16222 case "(($ac_try" in
16223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16224 *) ac_try_echo=$ac_try;;
16225 esac
16226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16227 (eval "$ac_compile") 2>conftest.er1
16228 ac_status=$?
16229 grep -v '^ *+' conftest.er1 >conftest.err
16230 rm -f conftest.er1
16231 cat conftest.err >&5
16232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16233 (exit $ac_status); } && {
16234 test -z "$ac_c_werror_flag" ||
16235 test ! -s conftest.err
16236 } && test -s conftest.$ac_objext; then
16237 ac_header_compiler=yes
16238 else
16239 echo "$as_me: failed program was:" >&5
16240 sed 's/^/| /' conftest.$ac_ext >&5
16242 ac_header_compiler=no
16245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16246 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16247 echo "${ECHO_T}$ac_header_compiler" >&6; }
16249 # Is the header present?
16250 { echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
16251 echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6; }
16252 cat >conftest.$ac_ext <<_ACEOF
16253 /* confdefs.h. */
16254 _ACEOF
16255 cat confdefs.h >>conftest.$ac_ext
16256 cat >>conftest.$ac_ext <<_ACEOF
16257 /* end confdefs.h. */
16258 #include <atheos/threads.h>
16259 _ACEOF
16260 if { (ac_try="$ac_cpp conftest.$ac_ext"
16261 case "(($ac_try" in
16262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16263 *) ac_try_echo=$ac_try;;
16264 esac
16265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16266 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16267 ac_status=$?
16268 grep -v '^ *+' conftest.er1 >conftest.err
16269 rm -f conftest.er1
16270 cat conftest.err >&5
16271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16272 (exit $ac_status); } >/dev/null && {
16273 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16274 test ! -s conftest.err
16275 }; then
16276 ac_header_preproc=yes
16277 else
16278 echo "$as_me: failed program was:" >&5
16279 sed 's/^/| /' conftest.$ac_ext >&5
16281 ac_header_preproc=no
16284 rm -f conftest.err conftest.$ac_ext
16285 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16286 echo "${ECHO_T}$ac_header_preproc" >&6; }
16288 # So? What about this header?
16289 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16290 yes:no: )
16291 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
16292 echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16293 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5
16294 echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;}
16295 ac_header_preproc=yes
16297 no:yes:* )
16298 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
16299 echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
16300 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
16301 echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
16302 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5
16303 echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;}
16304 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5
16305 echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;}
16306 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
16307 echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;}
16308 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5
16309 echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;}
16310 ( cat <<\_ASBOX
16311 ## -------------------------------------- ##
16312 ## Report this to http://bugs.python.org/ ##
16313 ## -------------------------------------- ##
16314 _ASBOX
16315 ) | sed "s/^/$as_me: WARNING: /" >&2
16317 esac
16318 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
16319 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
16320 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
16321 echo $ECHO_N "(cached) $ECHO_C" >&6
16322 else
16323 ac_cv_header_atheos_threads_h=$ac_header_preproc
16325 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
16326 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
16329 if test $ac_cv_header_atheos_threads_h = yes; then
16330 cat >>confdefs.h <<\_ACEOF
16331 #define WITH_THREAD 1
16332 _ACEOF
16335 cat >>confdefs.h <<\_ACEOF
16336 #define ATHEOS_THREADS 1
16337 _ACEOF
16339 THREADOBJ="Python/thread.o"
16340 else
16342 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
16343 { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
16344 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; }
16345 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
16346 echo $ECHO_N "(cached) $ECHO_C" >&6
16348 { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
16349 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; }
16350 else
16351 # Is the header compilable?
16352 { echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5
16353 echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6; }
16354 cat >conftest.$ac_ext <<_ACEOF
16355 /* confdefs.h. */
16356 _ACEOF
16357 cat confdefs.h >>conftest.$ac_ext
16358 cat >>conftest.$ac_ext <<_ACEOF
16359 /* end confdefs.h. */
16360 $ac_includes_default
16361 #include <kernel/OS.h>
16362 _ACEOF
16363 rm -f conftest.$ac_objext
16364 if { (ac_try="$ac_compile"
16365 case "(($ac_try" in
16366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16367 *) ac_try_echo=$ac_try;;
16368 esac
16369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16370 (eval "$ac_compile") 2>conftest.er1
16371 ac_status=$?
16372 grep -v '^ *+' conftest.er1 >conftest.err
16373 rm -f conftest.er1
16374 cat conftest.err >&5
16375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16376 (exit $ac_status); } && {
16377 test -z "$ac_c_werror_flag" ||
16378 test ! -s conftest.err
16379 } && test -s conftest.$ac_objext; then
16380 ac_header_compiler=yes
16381 else
16382 echo "$as_me: failed program was:" >&5
16383 sed 's/^/| /' conftest.$ac_ext >&5
16385 ac_header_compiler=no
16388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16389 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16390 echo "${ECHO_T}$ac_header_compiler" >&6; }
16392 # Is the header present?
16393 { echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5
16394 echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6; }
16395 cat >conftest.$ac_ext <<_ACEOF
16396 /* confdefs.h. */
16397 _ACEOF
16398 cat confdefs.h >>conftest.$ac_ext
16399 cat >>conftest.$ac_ext <<_ACEOF
16400 /* end confdefs.h. */
16401 #include <kernel/OS.h>
16402 _ACEOF
16403 if { (ac_try="$ac_cpp conftest.$ac_ext"
16404 case "(($ac_try" in
16405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16406 *) ac_try_echo=$ac_try;;
16407 esac
16408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16409 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16410 ac_status=$?
16411 grep -v '^ *+' conftest.er1 >conftest.err
16412 rm -f conftest.er1
16413 cat conftest.err >&5
16414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16415 (exit $ac_status); } >/dev/null && {
16416 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16417 test ! -s conftest.err
16418 }; then
16419 ac_header_preproc=yes
16420 else
16421 echo "$as_me: failed program was:" >&5
16422 sed 's/^/| /' conftest.$ac_ext >&5
16424 ac_header_preproc=no
16427 rm -f conftest.err conftest.$ac_ext
16428 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16429 echo "${ECHO_T}$ac_header_preproc" >&6; }
16431 # So? What about this header?
16432 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16433 yes:no: )
16434 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5
16435 echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16436 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5
16437 echo "$as_me: WARNING: kernel/OS.h: proceeding with the compiler's result" >&2;}
16438 ac_header_preproc=yes
16440 no:yes:* )
16441 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5
16442 echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;}
16443 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5
16444 echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;}
16445 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5
16446 echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;}
16447 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5
16448 echo "$as_me: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&2;}
16449 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5
16450 echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;}
16451 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5
16452 echo "$as_me: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&2;}
16453 ( cat <<\_ASBOX
16454 ## -------------------------------------- ##
16455 ## Report this to http://bugs.python.org/ ##
16456 ## -------------------------------------- ##
16457 _ASBOX
16458 ) | sed "s/^/$as_me: WARNING: /" >&2
16460 esac
16461 { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
16462 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; }
16463 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
16464 echo $ECHO_N "(cached) $ECHO_C" >&6
16465 else
16466 ac_cv_header_kernel_OS_h=$ac_header_preproc
16468 { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
16469 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; }
16472 if test $ac_cv_header_kernel_OS_h = yes; then
16473 cat >>confdefs.h <<\_ACEOF
16474 #define WITH_THREAD 1
16475 _ACEOF
16478 cat >>confdefs.h <<\_ACEOF
16479 #define BEOS_THREADS 1
16480 _ACEOF
16482 THREADOBJ="Python/thread.o"
16483 else
16485 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
16486 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
16487 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
16488 echo $ECHO_N "(cached) $ECHO_C" >&6
16489 else
16490 ac_check_lib_save_LIBS=$LIBS
16491 LIBS="-lpthreads $LIBS"
16492 cat >conftest.$ac_ext <<_ACEOF
16493 /* confdefs.h. */
16494 _ACEOF
16495 cat confdefs.h >>conftest.$ac_ext
16496 cat >>conftest.$ac_ext <<_ACEOF
16497 /* end confdefs.h. */
16499 /* Override any GCC internal prototype to avoid an error.
16500 Use char because int might match the return type of a GCC
16501 builtin and then its argument prototype would still apply. */
16502 #ifdef __cplusplus
16503 extern "C"
16504 #endif
16505 char pthread_create ();
16507 main ()
16509 return pthread_create ();
16511 return 0;
16513 _ACEOF
16514 rm -f conftest.$ac_objext conftest$ac_exeext
16515 if { (ac_try="$ac_link"
16516 case "(($ac_try" in
16517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16518 *) ac_try_echo=$ac_try;;
16519 esac
16520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16521 (eval "$ac_link") 2>conftest.er1
16522 ac_status=$?
16523 grep -v '^ *+' conftest.er1 >conftest.err
16524 rm -f conftest.er1
16525 cat conftest.err >&5
16526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16527 (exit $ac_status); } && {
16528 test -z "$ac_c_werror_flag" ||
16529 test ! -s conftest.err
16530 } && test -s conftest$ac_exeext &&
16531 $as_test_x conftest$ac_exeext; then
16532 ac_cv_lib_pthreads_pthread_create=yes
16533 else
16534 echo "$as_me: failed program was:" >&5
16535 sed 's/^/| /' conftest.$ac_ext >&5
16537 ac_cv_lib_pthreads_pthread_create=no
16540 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16541 conftest$ac_exeext conftest.$ac_ext
16542 LIBS=$ac_check_lib_save_LIBS
16544 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
16545 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
16546 if test $ac_cv_lib_pthreads_pthread_create = yes; then
16547 cat >>confdefs.h <<\_ACEOF
16548 #define WITH_THREAD 1
16549 _ACEOF
16551 posix_threads=yes
16552 LIBS="$LIBS -lpthreads"
16553 THREADOBJ="Python/thread.o"
16554 else
16556 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
16557 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
16558 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
16559 echo $ECHO_N "(cached) $ECHO_C" >&6
16560 else
16561 ac_check_lib_save_LIBS=$LIBS
16562 LIBS="-lc_r $LIBS"
16563 cat >conftest.$ac_ext <<_ACEOF
16564 /* confdefs.h. */
16565 _ACEOF
16566 cat confdefs.h >>conftest.$ac_ext
16567 cat >>conftest.$ac_ext <<_ACEOF
16568 /* end confdefs.h. */
16570 /* Override any GCC internal prototype to avoid an error.
16571 Use char because int might match the return type of a GCC
16572 builtin and then its argument prototype would still apply. */
16573 #ifdef __cplusplus
16574 extern "C"
16575 #endif
16576 char pthread_create ();
16578 main ()
16580 return pthread_create ();
16582 return 0;
16584 _ACEOF
16585 rm -f conftest.$ac_objext conftest$ac_exeext
16586 if { (ac_try="$ac_link"
16587 case "(($ac_try" in
16588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16589 *) ac_try_echo=$ac_try;;
16590 esac
16591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16592 (eval "$ac_link") 2>conftest.er1
16593 ac_status=$?
16594 grep -v '^ *+' conftest.er1 >conftest.err
16595 rm -f conftest.er1
16596 cat conftest.err >&5
16597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16598 (exit $ac_status); } && {
16599 test -z "$ac_c_werror_flag" ||
16600 test ! -s conftest.err
16601 } && test -s conftest$ac_exeext &&
16602 $as_test_x conftest$ac_exeext; then
16603 ac_cv_lib_c_r_pthread_create=yes
16604 else
16605 echo "$as_me: failed program was:" >&5
16606 sed 's/^/| /' conftest.$ac_ext >&5
16608 ac_cv_lib_c_r_pthread_create=no
16611 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16612 conftest$ac_exeext conftest.$ac_ext
16613 LIBS=$ac_check_lib_save_LIBS
16615 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
16616 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
16617 if test $ac_cv_lib_c_r_pthread_create = yes; then
16618 cat >>confdefs.h <<\_ACEOF
16619 #define WITH_THREAD 1
16620 _ACEOF
16622 posix_threads=yes
16623 LIBS="$LIBS -lc_r"
16624 THREADOBJ="Python/thread.o"
16625 else
16627 { echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
16628 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6; }
16629 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
16630 echo $ECHO_N "(cached) $ECHO_C" >&6
16631 else
16632 ac_check_lib_save_LIBS=$LIBS
16633 LIBS="-lpthread $LIBS"
16634 cat >conftest.$ac_ext <<_ACEOF
16635 /* confdefs.h. */
16636 _ACEOF
16637 cat confdefs.h >>conftest.$ac_ext
16638 cat >>conftest.$ac_ext <<_ACEOF
16639 /* end confdefs.h. */
16641 /* Override any GCC internal prototype to avoid an error.
16642 Use char because int might match the return type of a GCC
16643 builtin and then its argument prototype would still apply. */
16644 #ifdef __cplusplus
16645 extern "C"
16646 #endif
16647 char __pthread_create_system ();
16649 main ()
16651 return __pthread_create_system ();
16653 return 0;
16655 _ACEOF
16656 rm -f conftest.$ac_objext conftest$ac_exeext
16657 if { (ac_try="$ac_link"
16658 case "(($ac_try" in
16659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16660 *) ac_try_echo=$ac_try;;
16661 esac
16662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16663 (eval "$ac_link") 2>conftest.er1
16664 ac_status=$?
16665 grep -v '^ *+' conftest.er1 >conftest.err
16666 rm -f conftest.er1
16667 cat conftest.err >&5
16668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16669 (exit $ac_status); } && {
16670 test -z "$ac_c_werror_flag" ||
16671 test ! -s conftest.err
16672 } && test -s conftest$ac_exeext &&
16673 $as_test_x conftest$ac_exeext; then
16674 ac_cv_lib_pthread___pthread_create_system=yes
16675 else
16676 echo "$as_me: failed program was:" >&5
16677 sed 's/^/| /' conftest.$ac_ext >&5
16679 ac_cv_lib_pthread___pthread_create_system=no
16682 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16683 conftest$ac_exeext conftest.$ac_ext
16684 LIBS=$ac_check_lib_save_LIBS
16686 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
16687 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6; }
16688 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
16689 cat >>confdefs.h <<\_ACEOF
16690 #define WITH_THREAD 1
16691 _ACEOF
16693 posix_threads=yes
16694 LIBS="$LIBS -lpthread"
16695 THREADOBJ="Python/thread.o"
16696 else
16698 { echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
16699 echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6; }
16700 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
16701 echo $ECHO_N "(cached) $ECHO_C" >&6
16702 else
16703 ac_check_lib_save_LIBS=$LIBS
16704 LIBS="-lcma $LIBS"
16705 cat >conftest.$ac_ext <<_ACEOF
16706 /* confdefs.h. */
16707 _ACEOF
16708 cat confdefs.h >>conftest.$ac_ext
16709 cat >>conftest.$ac_ext <<_ACEOF
16710 /* end confdefs.h. */
16712 /* Override any GCC internal prototype to avoid an error.
16713 Use char because int might match the return type of a GCC
16714 builtin and then its argument prototype would still apply. */
16715 #ifdef __cplusplus
16716 extern "C"
16717 #endif
16718 char pthread_create ();
16720 main ()
16722 return pthread_create ();
16724 return 0;
16726 _ACEOF
16727 rm -f conftest.$ac_objext conftest$ac_exeext
16728 if { (ac_try="$ac_link"
16729 case "(($ac_try" in
16730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16731 *) ac_try_echo=$ac_try;;
16732 esac
16733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16734 (eval "$ac_link") 2>conftest.er1
16735 ac_status=$?
16736 grep -v '^ *+' conftest.er1 >conftest.err
16737 rm -f conftest.er1
16738 cat conftest.err >&5
16739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16740 (exit $ac_status); } && {
16741 test -z "$ac_c_werror_flag" ||
16742 test ! -s conftest.err
16743 } && test -s conftest$ac_exeext &&
16744 $as_test_x conftest$ac_exeext; then
16745 ac_cv_lib_cma_pthread_create=yes
16746 else
16747 echo "$as_me: failed program was:" >&5
16748 sed 's/^/| /' conftest.$ac_ext >&5
16750 ac_cv_lib_cma_pthread_create=no
16753 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16754 conftest$ac_exeext conftest.$ac_ext
16755 LIBS=$ac_check_lib_save_LIBS
16757 { echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
16758 echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6; }
16759 if test $ac_cv_lib_cma_pthread_create = yes; then
16760 cat >>confdefs.h <<\_ACEOF
16761 #define WITH_THREAD 1
16762 _ACEOF
16764 posix_threads=yes
16765 LIBS="$LIBS -lcma"
16766 THREADOBJ="Python/thread.o"
16767 else
16769 USE_THREAD_MODULE="#"
16789 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16790 conftest$ac_exeext conftest.$ac_ext
16800 { echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
16801 echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6; }
16802 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
16803 echo $ECHO_N "(cached) $ECHO_C" >&6
16804 else
16805 ac_check_lib_save_LIBS=$LIBS
16806 LIBS="-lmpc $LIBS"
16807 cat >conftest.$ac_ext <<_ACEOF
16808 /* confdefs.h. */
16809 _ACEOF
16810 cat confdefs.h >>conftest.$ac_ext
16811 cat >>conftest.$ac_ext <<_ACEOF
16812 /* end confdefs.h. */
16814 /* Override any GCC internal prototype to avoid an error.
16815 Use char because int might match the return type of a GCC
16816 builtin and then its argument prototype would still apply. */
16817 #ifdef __cplusplus
16818 extern "C"
16819 #endif
16820 char usconfig ();
16822 main ()
16824 return usconfig ();
16826 return 0;
16828 _ACEOF
16829 rm -f conftest.$ac_objext conftest$ac_exeext
16830 if { (ac_try="$ac_link"
16831 case "(($ac_try" in
16832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16833 *) ac_try_echo=$ac_try;;
16834 esac
16835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16836 (eval "$ac_link") 2>conftest.er1
16837 ac_status=$?
16838 grep -v '^ *+' conftest.er1 >conftest.err
16839 rm -f conftest.er1
16840 cat conftest.err >&5
16841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16842 (exit $ac_status); } && {
16843 test -z "$ac_c_werror_flag" ||
16844 test ! -s conftest.err
16845 } && test -s conftest$ac_exeext &&
16846 $as_test_x conftest$ac_exeext; then
16847 ac_cv_lib_mpc_usconfig=yes
16848 else
16849 echo "$as_me: failed program was:" >&5
16850 sed 's/^/| /' conftest.$ac_ext >&5
16852 ac_cv_lib_mpc_usconfig=no
16855 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16856 conftest$ac_exeext conftest.$ac_ext
16857 LIBS=$ac_check_lib_save_LIBS
16859 { echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
16860 echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6; }
16861 if test $ac_cv_lib_mpc_usconfig = yes; then
16862 cat >>confdefs.h <<\_ACEOF
16863 #define WITH_THREAD 1
16864 _ACEOF
16866 LIBS="$LIBS -lmpc"
16867 THREADOBJ="Python/thread.o"
16868 USE_THREAD_MODULE=""
16872 if test "$posix_threads" != "yes"; then
16873 { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
16874 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6; }
16875 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
16876 echo $ECHO_N "(cached) $ECHO_C" >&6
16877 else
16878 ac_check_lib_save_LIBS=$LIBS
16879 LIBS="-lthread $LIBS"
16880 cat >conftest.$ac_ext <<_ACEOF
16881 /* confdefs.h. */
16882 _ACEOF
16883 cat confdefs.h >>conftest.$ac_ext
16884 cat >>conftest.$ac_ext <<_ACEOF
16885 /* end confdefs.h. */
16887 /* Override any GCC internal prototype to avoid an error.
16888 Use char because int might match the return type of a GCC
16889 builtin and then its argument prototype would still apply. */
16890 #ifdef __cplusplus
16891 extern "C"
16892 #endif
16893 char thr_create ();
16895 main ()
16897 return thr_create ();
16899 return 0;
16901 _ACEOF
16902 rm -f conftest.$ac_objext conftest$ac_exeext
16903 if { (ac_try="$ac_link"
16904 case "(($ac_try" in
16905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16906 *) ac_try_echo=$ac_try;;
16907 esac
16908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16909 (eval "$ac_link") 2>conftest.er1
16910 ac_status=$?
16911 grep -v '^ *+' conftest.er1 >conftest.err
16912 rm -f conftest.er1
16913 cat conftest.err >&5
16914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16915 (exit $ac_status); } && {
16916 test -z "$ac_c_werror_flag" ||
16917 test ! -s conftest.err
16918 } && test -s conftest$ac_exeext &&
16919 $as_test_x conftest$ac_exeext; then
16920 ac_cv_lib_thread_thr_create=yes
16921 else
16922 echo "$as_me: failed program was:" >&5
16923 sed 's/^/| /' conftest.$ac_ext >&5
16925 ac_cv_lib_thread_thr_create=no
16928 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16929 conftest$ac_exeext conftest.$ac_ext
16930 LIBS=$ac_check_lib_save_LIBS
16932 { echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
16933 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; }
16934 if test $ac_cv_lib_thread_thr_create = yes; then
16935 cat >>confdefs.h <<\_ACEOF
16936 #define WITH_THREAD 1
16937 _ACEOF
16939 LIBS="$LIBS -lthread"
16940 THREADOBJ="Python/thread.o"
16941 USE_THREAD_MODULE=""
16946 if test "$USE_THREAD_MODULE" != "#"
16947 then
16948 # If the above checks didn't disable threads, (at least) OSF1
16949 # needs this '-threads' argument during linking.
16950 case $ac_sys_system in
16951 OSF1) LDLAST=-threads;;
16952 esac
16956 if test "$posix_threads" = "yes"; then
16957 if test "$unistd_defines_pthreads" = "no"; then
16959 cat >>confdefs.h <<\_ACEOF
16960 #define _POSIX_THREADS 1
16961 _ACEOF
16965 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
16966 case $ac_sys_system/$ac_sys_release in
16967 SunOS/5.6)
16968 cat >>confdefs.h <<\_ACEOF
16969 #define HAVE_PTHREAD_DESTRUCTOR 1
16970 _ACEOF
16973 SunOS/5.8)
16974 cat >>confdefs.h <<\_ACEOF
16975 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
16976 _ACEOF
16979 AIX/5)
16980 cat >>confdefs.h <<\_ACEOF
16981 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
16982 _ACEOF
16985 esac
16987 { echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
16988 echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6; }
16989 if test "${ac_cv_pthread_system_supported+set}" = set; then
16990 echo $ECHO_N "(cached) $ECHO_C" >&6
16991 else
16992 if test "$cross_compiling" = yes; then
16993 ac_cv_pthread_system_supported=no
16994 else
16995 cat >conftest.$ac_ext <<_ACEOF
16996 /* confdefs.h. */
16997 _ACEOF
16998 cat confdefs.h >>conftest.$ac_ext
16999 cat >>conftest.$ac_ext <<_ACEOF
17000 /* end confdefs.h. */
17001 #include <pthread.h>
17002 void *foo(void *parm) {
17003 return NULL;
17005 main() {
17006 pthread_attr_t attr;
17007 pthread_t id;
17008 if (pthread_attr_init(&attr)) exit(-1);
17009 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
17010 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
17011 exit(0);
17013 _ACEOF
17014 rm -f conftest$ac_exeext
17015 if { (ac_try="$ac_link"
17016 case "(($ac_try" in
17017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17018 *) ac_try_echo=$ac_try;;
17019 esac
17020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17021 (eval "$ac_link") 2>&5
17022 ac_status=$?
17023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17024 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17025 { (case "(($ac_try" in
17026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17027 *) ac_try_echo=$ac_try;;
17028 esac
17029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17030 (eval "$ac_try") 2>&5
17031 ac_status=$?
17032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17033 (exit $ac_status); }; }; then
17034 ac_cv_pthread_system_supported=yes
17035 else
17036 echo "$as_me: program exited with status $ac_status" >&5
17037 echo "$as_me: failed program was:" >&5
17038 sed 's/^/| /' conftest.$ac_ext >&5
17040 ( exit $ac_status )
17041 ac_cv_pthread_system_supported=no
17043 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17050 { echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
17051 echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6; }
17052 if test "$ac_cv_pthread_system_supported" = "yes"; then
17054 cat >>confdefs.h <<\_ACEOF
17055 #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
17056 _ACEOF
17060 for ac_func in pthread_sigmask
17062 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17063 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17064 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17065 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17066 echo $ECHO_N "(cached) $ECHO_C" >&6
17067 else
17068 cat >conftest.$ac_ext <<_ACEOF
17069 /* confdefs.h. */
17070 _ACEOF
17071 cat confdefs.h >>conftest.$ac_ext
17072 cat >>conftest.$ac_ext <<_ACEOF
17073 /* end confdefs.h. */
17074 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17075 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17076 #define $ac_func innocuous_$ac_func
17078 /* System header to define __stub macros and hopefully few prototypes,
17079 which can conflict with char $ac_func (); below.
17080 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17081 <limits.h> exists even on freestanding compilers. */
17083 #ifdef __STDC__
17084 # include <limits.h>
17085 #else
17086 # include <assert.h>
17087 #endif
17089 #undef $ac_func
17091 /* Override any GCC internal prototype to avoid an error.
17092 Use char because int might match the return type of a GCC
17093 builtin and then its argument prototype would still apply. */
17094 #ifdef __cplusplus
17095 extern "C"
17096 #endif
17097 char $ac_func ();
17098 /* The GNU C library defines this for functions which it implements
17099 to always fail with ENOSYS. Some functions are actually named
17100 something starting with __ and the normal name is an alias. */
17101 #if defined __stub_$ac_func || defined __stub___$ac_func
17102 choke me
17103 #endif
17106 main ()
17108 return $ac_func ();
17110 return 0;
17112 _ACEOF
17113 rm -f conftest.$ac_objext conftest$ac_exeext
17114 if { (ac_try="$ac_link"
17115 case "(($ac_try" in
17116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17117 *) ac_try_echo=$ac_try;;
17118 esac
17119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17120 (eval "$ac_link") 2>conftest.er1
17121 ac_status=$?
17122 grep -v '^ *+' conftest.er1 >conftest.err
17123 rm -f conftest.er1
17124 cat conftest.err >&5
17125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17126 (exit $ac_status); } && {
17127 test -z "$ac_c_werror_flag" ||
17128 test ! -s conftest.err
17129 } && test -s conftest$ac_exeext &&
17130 $as_test_x conftest$ac_exeext; then
17131 eval "$as_ac_var=yes"
17132 else
17133 echo "$as_me: failed program was:" >&5
17134 sed 's/^/| /' conftest.$ac_ext >&5
17136 eval "$as_ac_var=no"
17139 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17140 conftest$ac_exeext conftest.$ac_ext
17142 ac_res=`eval echo '${'$as_ac_var'}'`
17143 { echo "$as_me:$LINENO: result: $ac_res" >&5
17144 echo "${ECHO_T}$ac_res" >&6; }
17145 if test `eval echo '${'$as_ac_var'}'` = yes; then
17146 cat >>confdefs.h <<_ACEOF
17147 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17148 _ACEOF
17149 case $ac_sys_system in
17150 CYGWIN*)
17152 cat >>confdefs.h <<\_ACEOF
17153 #define HAVE_BROKEN_PTHREAD_SIGMASK 1
17154 _ACEOF
17157 esac
17159 done
17164 # Check for enable-ipv6
17167 { echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
17168 echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6; }
17169 # Check whether --enable-ipv6 was given.
17170 if test "${enable_ipv6+set}" = set; then
17171 enableval=$enable_ipv6; case "$enableval" in
17173 { echo "$as_me:$LINENO: result: no" >&5
17174 echo "${ECHO_T}no" >&6; }
17175 ipv6=no
17177 *) { echo "$as_me:$LINENO: result: yes" >&5
17178 echo "${ECHO_T}yes" >&6; }
17179 cat >>confdefs.h <<\_ACEOF
17180 #define ENABLE_IPV6 1
17181 _ACEOF
17183 ipv6=yes
17185 esac
17186 else
17188 if test "$cross_compiling" = yes; then
17189 { echo "$as_me:$LINENO: result: no" >&5
17190 echo "${ECHO_T}no" >&6; }
17191 ipv6=no
17193 else
17194 cat >conftest.$ac_ext <<_ACEOF
17195 /* confdefs.h. */
17196 _ACEOF
17197 cat confdefs.h >>conftest.$ac_ext
17198 cat >>conftest.$ac_ext <<_ACEOF
17199 /* end confdefs.h. */
17200 /* AF_INET6 available check */
17201 #include <sys/types.h>
17202 #include <sys/socket.h>
17203 main()
17205 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
17206 exit(1);
17207 else
17208 exit(0);
17211 _ACEOF
17212 rm -f conftest$ac_exeext
17213 if { (ac_try="$ac_link"
17214 case "(($ac_try" in
17215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17216 *) ac_try_echo=$ac_try;;
17217 esac
17218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17219 (eval "$ac_link") 2>&5
17220 ac_status=$?
17221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17222 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17223 { (case "(($ac_try" in
17224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17225 *) ac_try_echo=$ac_try;;
17226 esac
17227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17228 (eval "$ac_try") 2>&5
17229 ac_status=$?
17230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17231 (exit $ac_status); }; }; then
17232 { echo "$as_me:$LINENO: result: yes" >&5
17233 echo "${ECHO_T}yes" >&6; }
17234 ipv6=yes
17235 else
17236 echo "$as_me: program exited with status $ac_status" >&5
17237 echo "$as_me: failed program was:" >&5
17238 sed 's/^/| /' conftest.$ac_ext >&5
17240 ( exit $ac_status )
17241 { echo "$as_me:$LINENO: result: no" >&5
17242 echo "${ECHO_T}no" >&6; }
17243 ipv6=no
17245 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17250 if test "$ipv6" = "yes"; then
17251 { echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
17252 echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6; }
17253 cat >conftest.$ac_ext <<_ACEOF
17254 /* confdefs.h. */
17255 _ACEOF
17256 cat confdefs.h >>conftest.$ac_ext
17257 cat >>conftest.$ac_ext <<_ACEOF
17258 /* end confdefs.h. */
17259 #include <sys/types.h>
17260 #include <netinet/in.h>
17262 main ()
17264 struct sockaddr_in6 x;
17265 x.sin6_scope_id;
17267 return 0;
17269 _ACEOF
17270 rm -f conftest.$ac_objext
17271 if { (ac_try="$ac_compile"
17272 case "(($ac_try" in
17273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17274 *) ac_try_echo=$ac_try;;
17275 esac
17276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17277 (eval "$ac_compile") 2>conftest.er1
17278 ac_status=$?
17279 grep -v '^ *+' conftest.er1 >conftest.err
17280 rm -f conftest.er1
17281 cat conftest.err >&5
17282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17283 (exit $ac_status); } && {
17284 test -z "$ac_c_werror_flag" ||
17285 test ! -s conftest.err
17286 } && test -s conftest.$ac_objext; then
17287 { echo "$as_me:$LINENO: result: yes" >&5
17288 echo "${ECHO_T}yes" >&6; }
17289 ipv6=yes
17290 else
17291 echo "$as_me: failed program was:" >&5
17292 sed 's/^/| /' conftest.$ac_ext >&5
17294 { echo "$as_me:$LINENO: result: no" >&5
17295 echo "${ECHO_T}no" >&6; }
17296 ipv6=no
17299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17302 if test "$ipv6" = "yes"; then
17303 cat >>confdefs.h <<\_ACEOF
17304 #define ENABLE_IPV6 1
17305 _ACEOF
17312 ipv6type=unknown
17313 ipv6lib=none
17314 ipv6trylibc=no
17316 if test "$ipv6" = "yes"; then
17317 { echo "$as_me:$LINENO: checking ipv6 stack type" >&5
17318 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; }
17319 for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta;
17321 case $i in
17322 inria)
17323 cat >conftest.$ac_ext <<_ACEOF
17324 /* confdefs.h. */
17325 _ACEOF
17326 cat confdefs.h >>conftest.$ac_ext
17327 cat >>conftest.$ac_ext <<_ACEOF
17328 /* end confdefs.h. */
17330 #include <netinet/in.h>
17331 #ifdef IPV6_INRIA_VERSION
17333 #endif
17334 _ACEOF
17335 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17336 $EGREP "yes" >/dev/null 2>&1; then
17337 ipv6type=$i
17339 rm -f conftest*
17342 kame)
17343 cat >conftest.$ac_ext <<_ACEOF
17344 /* confdefs.h. */
17345 _ACEOF
17346 cat confdefs.h >>conftest.$ac_ext
17347 cat >>conftest.$ac_ext <<_ACEOF
17348 /* end confdefs.h. */
17350 #include <netinet/in.h>
17351 #ifdef __KAME__
17353 #endif
17354 _ACEOF
17355 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17356 $EGREP "yes" >/dev/null 2>&1; then
17357 ipv6type=$i;
17358 ipv6lib=inet6
17359 ipv6libdir=/usr/local/v6/lib
17360 ipv6trylibc=yes
17362 rm -f conftest*
17365 linux-glibc)
17366 cat >conftest.$ac_ext <<_ACEOF
17367 /* confdefs.h. */
17368 _ACEOF
17369 cat confdefs.h >>conftest.$ac_ext
17370 cat >>conftest.$ac_ext <<_ACEOF
17371 /* end confdefs.h. */
17373 #include <features.h>
17374 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
17376 #endif
17377 _ACEOF
17378 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17379 $EGREP "yes" >/dev/null 2>&1; then
17380 ipv6type=$i;
17381 ipv6trylibc=yes
17383 rm -f conftest*
17386 linux-inet6)
17387 if test -d /usr/inet6; then
17388 ipv6type=$i
17389 ipv6lib=inet6
17390 ipv6libdir=/usr/inet6/lib
17391 BASECFLAGS="-I/usr/inet6/include $BASECFLAGS"
17394 solaris)
17395 if test -f /etc/netconfig; then
17396 if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then
17397 ipv6type=$i
17398 ipv6trylibc=yes
17402 toshiba)
17403 cat >conftest.$ac_ext <<_ACEOF
17404 /* confdefs.h. */
17405 _ACEOF
17406 cat confdefs.h >>conftest.$ac_ext
17407 cat >>conftest.$ac_ext <<_ACEOF
17408 /* end confdefs.h. */
17410 #include <sys/param.h>
17411 #ifdef _TOSHIBA_INET6
17413 #endif
17414 _ACEOF
17415 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17416 $EGREP "yes" >/dev/null 2>&1; then
17417 ipv6type=$i;
17418 ipv6lib=inet6;
17419 ipv6libdir=/usr/local/v6/lib
17421 rm -f conftest*
17424 v6d)
17425 cat >conftest.$ac_ext <<_ACEOF
17426 /* confdefs.h. */
17427 _ACEOF
17428 cat confdefs.h >>conftest.$ac_ext
17429 cat >>conftest.$ac_ext <<_ACEOF
17430 /* end confdefs.h. */
17432 #include </usr/local/v6/include/sys/v6config.h>
17433 #ifdef __V6D__
17435 #endif
17436 _ACEOF
17437 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17438 $EGREP "yes" >/dev/null 2>&1; then
17439 ipv6type=$i;
17440 ipv6lib=v6;
17441 ipv6libdir=/usr/local/v6/lib;
17442 BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS"
17444 rm -f conftest*
17447 zeta)
17448 cat >conftest.$ac_ext <<_ACEOF
17449 /* confdefs.h. */
17450 _ACEOF
17451 cat confdefs.h >>conftest.$ac_ext
17452 cat >>conftest.$ac_ext <<_ACEOF
17453 /* end confdefs.h. */
17455 #include <sys/param.h>
17456 #ifdef _ZETA_MINAMI_INET6
17458 #endif
17459 _ACEOF
17460 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17461 $EGREP "yes" >/dev/null 2>&1; then
17462 ipv6type=$i;
17463 ipv6lib=inet6;
17464 ipv6libdir=/usr/local/v6/lib
17466 rm -f conftest*
17469 esac
17470 if test "$ipv6type" != "unknown"; then
17471 break
17473 done
17474 { echo "$as_me:$LINENO: result: $ipv6type" >&5
17475 echo "${ECHO_T}$ipv6type" >&6; }
17478 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
17479 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
17480 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
17481 echo "using lib$ipv6lib"
17482 else
17483 if test $ipv6trylibc = "yes"; then
17484 echo "using libc"
17485 else
17486 echo 'Fatal: no $ipv6lib library found. cannot continue.'
17487 echo "You need to fetch lib$ipv6lib.a from appropriate"
17488 echo 'ipv6 kit and compile beforehand.'
17489 exit 1
17494 { echo "$as_me:$LINENO: checking for OSX 10.5 SDK or later" >&5
17495 echo $ECHO_N "checking for OSX 10.5 SDK or later... $ECHO_C" >&6; }
17496 cat >conftest.$ac_ext <<_ACEOF
17497 /* confdefs.h. */
17498 _ACEOF
17499 cat confdefs.h >>conftest.$ac_ext
17500 cat >>conftest.$ac_ext <<_ACEOF
17501 /* end confdefs.h. */
17502 #include <Carbon/Carbon.h>
17504 main ()
17506 FSIORefNum fRef = 0
17508 return 0;
17510 _ACEOF
17511 rm -f conftest.$ac_objext
17512 if { (ac_try="$ac_compile"
17513 case "(($ac_try" in
17514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17515 *) ac_try_echo=$ac_try;;
17516 esac
17517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17518 (eval "$ac_compile") 2>conftest.er1
17519 ac_status=$?
17520 grep -v '^ *+' conftest.er1 >conftest.err
17521 rm -f conftest.er1
17522 cat conftest.err >&5
17523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17524 (exit $ac_status); } && {
17525 test -z "$ac_c_werror_flag" ||
17526 test ! -s conftest.err
17527 } && test -s conftest.$ac_objext; then
17529 cat >>confdefs.h <<\_ACEOF
17530 #define HAVE_OSX105_SDK 1
17531 _ACEOF
17533 { echo "$as_me:$LINENO: result: yes" >&5
17534 echo "${ECHO_T}yes" >&6; }
17535 else
17536 echo "$as_me: failed program was:" >&5
17537 sed 's/^/| /' conftest.$ac_ext >&5
17539 { echo "$as_me:$LINENO: result: no" >&5
17540 echo "${ECHO_T}no" >&6; }
17544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17546 # Check for --with-doc-strings
17547 { echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
17548 echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6; }
17550 # Check whether --with-doc-strings was given.
17551 if test "${with_doc_strings+set}" = set; then
17552 withval=$with_doc_strings;
17556 if test -z "$with_doc_strings"
17557 then with_doc_strings="yes"
17559 if test "$with_doc_strings" != "no"
17560 then
17562 cat >>confdefs.h <<\_ACEOF
17563 #define WITH_DOC_STRINGS 1
17564 _ACEOF
17567 { echo "$as_me:$LINENO: result: $with_doc_strings" >&5
17568 echo "${ECHO_T}$with_doc_strings" >&6; }
17570 # Check for Python-specific malloc support
17571 { echo "$as_me:$LINENO: checking for --with-tsc" >&5
17572 echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6; }
17574 # Check whether --with-tsc was given.
17575 if test "${with_tsc+set}" = set; then
17576 withval=$with_tsc;
17577 if test "$withval" != no
17578 then
17580 cat >>confdefs.h <<\_ACEOF
17581 #define WITH_TSC 1
17582 _ACEOF
17584 { echo "$as_me:$LINENO: result: yes" >&5
17585 echo "${ECHO_T}yes" >&6; }
17586 else { echo "$as_me:$LINENO: result: no" >&5
17587 echo "${ECHO_T}no" >&6; }
17589 else
17590 { echo "$as_me:$LINENO: result: no" >&5
17591 echo "${ECHO_T}no" >&6; }
17595 # Check for Python-specific malloc support
17596 { echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
17597 echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6; }
17599 # Check whether --with-pymalloc was given.
17600 if test "${with_pymalloc+set}" = set; then
17601 withval=$with_pymalloc;
17605 if test -z "$with_pymalloc"
17606 then with_pymalloc="yes"
17608 if test "$with_pymalloc" != "no"
17609 then
17611 cat >>confdefs.h <<\_ACEOF
17612 #define WITH_PYMALLOC 1
17613 _ACEOF
17616 { echo "$as_me:$LINENO: result: $with_pymalloc" >&5
17617 echo "${ECHO_T}$with_pymalloc" >&6; }
17619 # Check for --with-wctype-functions
17620 { echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
17621 echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6; }
17623 # Check whether --with-wctype-functions was given.
17624 if test "${with_wctype_functions+set}" = set; then
17625 withval=$with_wctype_functions;
17626 if test "$withval" != no
17627 then
17629 cat >>confdefs.h <<\_ACEOF
17630 #define WANT_WCTYPE_FUNCTIONS 1
17631 _ACEOF
17633 { echo "$as_me:$LINENO: result: yes" >&5
17634 echo "${ECHO_T}yes" >&6; }
17635 else { echo "$as_me:$LINENO: result: no" >&5
17636 echo "${ECHO_T}no" >&6; }
17638 else
17639 { echo "$as_me:$LINENO: result: no" >&5
17640 echo "${ECHO_T}no" >&6; }
17644 # -I${DLINCLDIR} is added to the compile rule for importdl.o
17646 DLINCLDIR=.
17648 # the dlopen() function means we might want to use dynload_shlib.o. some
17649 # platforms, such as AIX, have dlopen(), but don't want to use it.
17651 for ac_func in dlopen
17653 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17654 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17655 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17656 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17657 echo $ECHO_N "(cached) $ECHO_C" >&6
17658 else
17659 cat >conftest.$ac_ext <<_ACEOF
17660 /* confdefs.h. */
17661 _ACEOF
17662 cat confdefs.h >>conftest.$ac_ext
17663 cat >>conftest.$ac_ext <<_ACEOF
17664 /* end confdefs.h. */
17665 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17666 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17667 #define $ac_func innocuous_$ac_func
17669 /* System header to define __stub macros and hopefully few prototypes,
17670 which can conflict with char $ac_func (); below.
17671 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17672 <limits.h> exists even on freestanding compilers. */
17674 #ifdef __STDC__
17675 # include <limits.h>
17676 #else
17677 # include <assert.h>
17678 #endif
17680 #undef $ac_func
17682 /* Override any GCC internal prototype to avoid an error.
17683 Use char because int might match the return type of a GCC
17684 builtin and then its argument prototype would still apply. */
17685 #ifdef __cplusplus
17686 extern "C"
17687 #endif
17688 char $ac_func ();
17689 /* The GNU C library defines this for functions which it implements
17690 to always fail with ENOSYS. Some functions are actually named
17691 something starting with __ and the normal name is an alias. */
17692 #if defined __stub_$ac_func || defined __stub___$ac_func
17693 choke me
17694 #endif
17697 main ()
17699 return $ac_func ();
17701 return 0;
17703 _ACEOF
17704 rm -f conftest.$ac_objext conftest$ac_exeext
17705 if { (ac_try="$ac_link"
17706 case "(($ac_try" in
17707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17708 *) ac_try_echo=$ac_try;;
17709 esac
17710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17711 (eval "$ac_link") 2>conftest.er1
17712 ac_status=$?
17713 grep -v '^ *+' conftest.er1 >conftest.err
17714 rm -f conftest.er1
17715 cat conftest.err >&5
17716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17717 (exit $ac_status); } && {
17718 test -z "$ac_c_werror_flag" ||
17719 test ! -s conftest.err
17720 } && test -s conftest$ac_exeext &&
17721 $as_test_x conftest$ac_exeext; then
17722 eval "$as_ac_var=yes"
17723 else
17724 echo "$as_me: failed program was:" >&5
17725 sed 's/^/| /' conftest.$ac_ext >&5
17727 eval "$as_ac_var=no"
17730 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17731 conftest$ac_exeext conftest.$ac_ext
17733 ac_res=`eval echo '${'$as_ac_var'}'`
17734 { echo "$as_me:$LINENO: result: $ac_res" >&5
17735 echo "${ECHO_T}$ac_res" >&6; }
17736 if test `eval echo '${'$as_ac_var'}'` = yes; then
17737 cat >>confdefs.h <<_ACEOF
17738 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17739 _ACEOF
17742 done
17745 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
17746 # loading of modules.
17748 { echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
17749 echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6; }
17750 if test -z "$DYNLOADFILE"
17751 then
17752 case $ac_sys_system/$ac_sys_release in
17753 AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
17754 if test "$ac_cv_func_dlopen" = yes
17755 then DYNLOADFILE="dynload_shlib.o"
17756 else DYNLOADFILE="dynload_aix.o"
17759 BeOS*) DYNLOADFILE="dynload_beos.o";;
17760 hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
17761 # Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
17762 Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";;
17763 atheos*) DYNLOADFILE="dynload_atheos.o";;
17765 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
17766 # out any dynamic loading
17767 if test "$ac_cv_func_dlopen" = yes
17768 then DYNLOADFILE="dynload_shlib.o"
17769 else DYNLOADFILE="dynload_stub.o"
17772 esac
17774 { echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
17775 echo "${ECHO_T}$DYNLOADFILE" >&6; }
17776 if test "$DYNLOADFILE" != "dynload_stub.o"
17777 then
17779 cat >>confdefs.h <<\_ACEOF
17780 #define HAVE_DYNAMIC_LOADING 1
17781 _ACEOF
17785 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
17788 { echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
17789 echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6; }
17790 if test -z "$MACHDEP_OBJS"
17791 then
17792 MACHDEP_OBJS=$extra_machdep_objs
17793 else
17794 MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs"
17796 { echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
17797 echo "${ECHO_T}MACHDEP_OBJS" >&6; }
17799 # checks for library functions
17899 for ac_func in alarm setitimer getitimer bind_textdomain_codeset chown \
17900 clock confstr ctermid execv fchmod fchown fork fpathconf ftime ftruncate \
17901 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
17902 getpriority getresuid getresgid getpwent getspnam getspent getsid getwd \
17903 initgroups kill killpg lchmod lchown lstat mkfifo mknod mktime \
17904 mremap nice pathconf pause plock poll pthread_init \
17905 putenv readlink realpath \
17906 select sem_open sem_timedwait sem_getvalue sem_unlink setegid seteuid \
17907 setgid \
17908 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
17909 setlocale setregid setreuid setresuid setresgid \
17910 setsid setpgid setpgrp setuid setvbuf snprintf \
17911 sigaction siginterrupt sigrelse strftime \
17912 sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \
17913 truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty
17915 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17916 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17917 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17918 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17919 echo $ECHO_N "(cached) $ECHO_C" >&6
17920 else
17921 cat >conftest.$ac_ext <<_ACEOF
17922 /* confdefs.h. */
17923 _ACEOF
17924 cat confdefs.h >>conftest.$ac_ext
17925 cat >>conftest.$ac_ext <<_ACEOF
17926 /* end confdefs.h. */
17927 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17928 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17929 #define $ac_func innocuous_$ac_func
17931 /* System header to define __stub macros and hopefully few prototypes,
17932 which can conflict with char $ac_func (); below.
17933 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17934 <limits.h> exists even on freestanding compilers. */
17936 #ifdef __STDC__
17937 # include <limits.h>
17938 #else
17939 # include <assert.h>
17940 #endif
17942 #undef $ac_func
17944 /* Override any GCC internal prototype to avoid an error.
17945 Use char because int might match the return type of a GCC
17946 builtin and then its argument prototype would still apply. */
17947 #ifdef __cplusplus
17948 extern "C"
17949 #endif
17950 char $ac_func ();
17951 /* The GNU C library defines this for functions which it implements
17952 to always fail with ENOSYS. Some functions are actually named
17953 something starting with __ and the normal name is an alias. */
17954 #if defined __stub_$ac_func || defined __stub___$ac_func
17955 choke me
17956 #endif
17959 main ()
17961 return $ac_func ();
17963 return 0;
17965 _ACEOF
17966 rm -f conftest.$ac_objext conftest$ac_exeext
17967 if { (ac_try="$ac_link"
17968 case "(($ac_try" in
17969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17970 *) ac_try_echo=$ac_try;;
17971 esac
17972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17973 (eval "$ac_link") 2>conftest.er1
17974 ac_status=$?
17975 grep -v '^ *+' conftest.er1 >conftest.err
17976 rm -f conftest.er1
17977 cat conftest.err >&5
17978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17979 (exit $ac_status); } && {
17980 test -z "$ac_c_werror_flag" ||
17981 test ! -s conftest.err
17982 } && test -s conftest$ac_exeext &&
17983 $as_test_x conftest$ac_exeext; then
17984 eval "$as_ac_var=yes"
17985 else
17986 echo "$as_me: failed program was:" >&5
17987 sed 's/^/| /' conftest.$ac_ext >&5
17989 eval "$as_ac_var=no"
17992 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17993 conftest$ac_exeext conftest.$ac_ext
17995 ac_res=`eval echo '${'$as_ac_var'}'`
17996 { echo "$as_me:$LINENO: result: $ac_res" >&5
17997 echo "${ECHO_T}$ac_res" >&6; }
17998 if test `eval echo '${'$as_ac_var'}'` = yes; then
17999 cat >>confdefs.h <<_ACEOF
18000 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18001 _ACEOF
18004 done
18007 # For some functions, having a definition is not sufficient, since
18008 # we want to take their address.
18009 { echo "$as_me:$LINENO: checking for chroot" >&5
18010 echo $ECHO_N "checking for chroot... $ECHO_C" >&6; }
18011 cat >conftest.$ac_ext <<_ACEOF
18012 /* confdefs.h. */
18013 _ACEOF
18014 cat confdefs.h >>conftest.$ac_ext
18015 cat >>conftest.$ac_ext <<_ACEOF
18016 /* end confdefs.h. */
18017 #include <unistd.h>
18019 main ()
18021 void *x=chroot
18023 return 0;
18025 _ACEOF
18026 rm -f conftest.$ac_objext
18027 if { (ac_try="$ac_compile"
18028 case "(($ac_try" in
18029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18030 *) ac_try_echo=$ac_try;;
18031 esac
18032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18033 (eval "$ac_compile") 2>conftest.er1
18034 ac_status=$?
18035 grep -v '^ *+' conftest.er1 >conftest.err
18036 rm -f conftest.er1
18037 cat conftest.err >&5
18038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18039 (exit $ac_status); } && {
18040 test -z "$ac_c_werror_flag" ||
18041 test ! -s conftest.err
18042 } && test -s conftest.$ac_objext; then
18044 cat >>confdefs.h <<\_ACEOF
18045 #define HAVE_CHROOT 1
18046 _ACEOF
18048 { echo "$as_me:$LINENO: result: yes" >&5
18049 echo "${ECHO_T}yes" >&6; }
18050 else
18051 echo "$as_me: failed program was:" >&5
18052 sed 's/^/| /' conftest.$ac_ext >&5
18054 { echo "$as_me:$LINENO: result: no" >&5
18055 echo "${ECHO_T}no" >&6; }
18059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18060 { echo "$as_me:$LINENO: checking for link" >&5
18061 echo $ECHO_N "checking for link... $ECHO_C" >&6; }
18062 cat >conftest.$ac_ext <<_ACEOF
18063 /* confdefs.h. */
18064 _ACEOF
18065 cat confdefs.h >>conftest.$ac_ext
18066 cat >>conftest.$ac_ext <<_ACEOF
18067 /* end confdefs.h. */
18068 #include <unistd.h>
18070 main ()
18072 void *x=link
18074 return 0;
18076 _ACEOF
18077 rm -f conftest.$ac_objext
18078 if { (ac_try="$ac_compile"
18079 case "(($ac_try" in
18080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18081 *) ac_try_echo=$ac_try;;
18082 esac
18083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18084 (eval "$ac_compile") 2>conftest.er1
18085 ac_status=$?
18086 grep -v '^ *+' conftest.er1 >conftest.err
18087 rm -f conftest.er1
18088 cat conftest.err >&5
18089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18090 (exit $ac_status); } && {
18091 test -z "$ac_c_werror_flag" ||
18092 test ! -s conftest.err
18093 } && test -s conftest.$ac_objext; then
18095 cat >>confdefs.h <<\_ACEOF
18096 #define HAVE_LINK 1
18097 _ACEOF
18099 { echo "$as_me:$LINENO: result: yes" >&5
18100 echo "${ECHO_T}yes" >&6; }
18101 else
18102 echo "$as_me: failed program was:" >&5
18103 sed 's/^/| /' conftest.$ac_ext >&5
18105 { echo "$as_me:$LINENO: result: no" >&5
18106 echo "${ECHO_T}no" >&6; }
18110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18111 { echo "$as_me:$LINENO: checking for symlink" >&5
18112 echo $ECHO_N "checking for symlink... $ECHO_C" >&6; }
18113 cat >conftest.$ac_ext <<_ACEOF
18114 /* confdefs.h. */
18115 _ACEOF
18116 cat confdefs.h >>conftest.$ac_ext
18117 cat >>conftest.$ac_ext <<_ACEOF
18118 /* end confdefs.h. */
18119 #include <unistd.h>
18121 main ()
18123 void *x=symlink
18125 return 0;
18127 _ACEOF
18128 rm -f conftest.$ac_objext
18129 if { (ac_try="$ac_compile"
18130 case "(($ac_try" in
18131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18132 *) ac_try_echo=$ac_try;;
18133 esac
18134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18135 (eval "$ac_compile") 2>conftest.er1
18136 ac_status=$?
18137 grep -v '^ *+' conftest.er1 >conftest.err
18138 rm -f conftest.er1
18139 cat conftest.err >&5
18140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18141 (exit $ac_status); } && {
18142 test -z "$ac_c_werror_flag" ||
18143 test ! -s conftest.err
18144 } && test -s conftest.$ac_objext; then
18146 cat >>confdefs.h <<\_ACEOF
18147 #define HAVE_SYMLINK 1
18148 _ACEOF
18150 { echo "$as_me:$LINENO: result: yes" >&5
18151 echo "${ECHO_T}yes" >&6; }
18152 else
18153 echo "$as_me: failed program was:" >&5
18154 sed 's/^/| /' conftest.$ac_ext >&5
18156 { echo "$as_me:$LINENO: result: no" >&5
18157 echo "${ECHO_T}no" >&6; }
18161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18162 { echo "$as_me:$LINENO: checking for fchdir" >&5
18163 echo $ECHO_N "checking for fchdir... $ECHO_C" >&6; }
18164 cat >conftest.$ac_ext <<_ACEOF
18165 /* confdefs.h. */
18166 _ACEOF
18167 cat confdefs.h >>conftest.$ac_ext
18168 cat >>conftest.$ac_ext <<_ACEOF
18169 /* end confdefs.h. */
18170 #include <unistd.h>
18172 main ()
18174 void *x=fchdir
18176 return 0;
18178 _ACEOF
18179 rm -f conftest.$ac_objext
18180 if { (ac_try="$ac_compile"
18181 case "(($ac_try" in
18182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18183 *) ac_try_echo=$ac_try;;
18184 esac
18185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18186 (eval "$ac_compile") 2>conftest.er1
18187 ac_status=$?
18188 grep -v '^ *+' conftest.er1 >conftest.err
18189 rm -f conftest.er1
18190 cat conftest.err >&5
18191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18192 (exit $ac_status); } && {
18193 test -z "$ac_c_werror_flag" ||
18194 test ! -s conftest.err
18195 } && test -s conftest.$ac_objext; then
18197 cat >>confdefs.h <<\_ACEOF
18198 #define HAVE_FCHDIR 1
18199 _ACEOF
18201 { echo "$as_me:$LINENO: result: yes" >&5
18202 echo "${ECHO_T}yes" >&6; }
18203 else
18204 echo "$as_me: failed program was:" >&5
18205 sed 's/^/| /' conftest.$ac_ext >&5
18207 { echo "$as_me:$LINENO: result: no" >&5
18208 echo "${ECHO_T}no" >&6; }
18212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18213 { echo "$as_me:$LINENO: checking for fsync" >&5
18214 echo $ECHO_N "checking for fsync... $ECHO_C" >&6; }
18215 cat >conftest.$ac_ext <<_ACEOF
18216 /* confdefs.h. */
18217 _ACEOF
18218 cat confdefs.h >>conftest.$ac_ext
18219 cat >>conftest.$ac_ext <<_ACEOF
18220 /* end confdefs.h. */
18221 #include <unistd.h>
18223 main ()
18225 void *x=fsync
18227 return 0;
18229 _ACEOF
18230 rm -f conftest.$ac_objext
18231 if { (ac_try="$ac_compile"
18232 case "(($ac_try" in
18233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18234 *) ac_try_echo=$ac_try;;
18235 esac
18236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18237 (eval "$ac_compile") 2>conftest.er1
18238 ac_status=$?
18239 grep -v '^ *+' conftest.er1 >conftest.err
18240 rm -f conftest.er1
18241 cat conftest.err >&5
18242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18243 (exit $ac_status); } && {
18244 test -z "$ac_c_werror_flag" ||
18245 test ! -s conftest.err
18246 } && test -s conftest.$ac_objext; then
18248 cat >>confdefs.h <<\_ACEOF
18249 #define HAVE_FSYNC 1
18250 _ACEOF
18252 { echo "$as_me:$LINENO: result: yes" >&5
18253 echo "${ECHO_T}yes" >&6; }
18254 else
18255 echo "$as_me: failed program was:" >&5
18256 sed 's/^/| /' conftest.$ac_ext >&5
18258 { echo "$as_me:$LINENO: result: no" >&5
18259 echo "${ECHO_T}no" >&6; }
18263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18264 { echo "$as_me:$LINENO: checking for fdatasync" >&5
18265 echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6; }
18266 cat >conftest.$ac_ext <<_ACEOF
18267 /* confdefs.h. */
18268 _ACEOF
18269 cat confdefs.h >>conftest.$ac_ext
18270 cat >>conftest.$ac_ext <<_ACEOF
18271 /* end confdefs.h. */
18272 #include <unistd.h>
18274 main ()
18276 void *x=fdatasync
18278 return 0;
18280 _ACEOF
18281 rm -f conftest.$ac_objext
18282 if { (ac_try="$ac_compile"
18283 case "(($ac_try" in
18284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18285 *) ac_try_echo=$ac_try;;
18286 esac
18287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18288 (eval "$ac_compile") 2>conftest.er1
18289 ac_status=$?
18290 grep -v '^ *+' conftest.er1 >conftest.err
18291 rm -f conftest.er1
18292 cat conftest.err >&5
18293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18294 (exit $ac_status); } && {
18295 test -z "$ac_c_werror_flag" ||
18296 test ! -s conftest.err
18297 } && test -s conftest.$ac_objext; then
18299 cat >>confdefs.h <<\_ACEOF
18300 #define HAVE_FDATASYNC 1
18301 _ACEOF
18303 { echo "$as_me:$LINENO: result: yes" >&5
18304 echo "${ECHO_T}yes" >&6; }
18305 else
18306 echo "$as_me: failed program was:" >&5
18307 sed 's/^/| /' conftest.$ac_ext >&5
18309 { echo "$as_me:$LINENO: result: no" >&5
18310 echo "${ECHO_T}no" >&6; }
18314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18315 { echo "$as_me:$LINENO: checking for epoll" >&5
18316 echo $ECHO_N "checking for epoll... $ECHO_C" >&6; }
18317 cat >conftest.$ac_ext <<_ACEOF
18318 /* confdefs.h. */
18319 _ACEOF
18320 cat confdefs.h >>conftest.$ac_ext
18321 cat >>conftest.$ac_ext <<_ACEOF
18322 /* end confdefs.h. */
18323 #include <sys/epoll.h>
18325 main ()
18327 void *x=epoll_create
18329 return 0;
18331 _ACEOF
18332 rm -f conftest.$ac_objext
18333 if { (ac_try="$ac_compile"
18334 case "(($ac_try" in
18335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18336 *) ac_try_echo=$ac_try;;
18337 esac
18338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18339 (eval "$ac_compile") 2>conftest.er1
18340 ac_status=$?
18341 grep -v '^ *+' conftest.er1 >conftest.err
18342 rm -f conftest.er1
18343 cat conftest.err >&5
18344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18345 (exit $ac_status); } && {
18346 test -z "$ac_c_werror_flag" ||
18347 test ! -s conftest.err
18348 } && test -s conftest.$ac_objext; then
18350 cat >>confdefs.h <<\_ACEOF
18351 #define HAVE_EPOLL 1
18352 _ACEOF
18354 { echo "$as_me:$LINENO: result: yes" >&5
18355 echo "${ECHO_T}yes" >&6; }
18356 else
18357 echo "$as_me: failed program was:" >&5
18358 sed 's/^/| /' conftest.$ac_ext >&5
18360 { echo "$as_me:$LINENO: result: no" >&5
18361 echo "${ECHO_T}no" >&6; }
18365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18366 { echo "$as_me:$LINENO: checking for kqueue" >&5
18367 echo $ECHO_N "checking for kqueue... $ECHO_C" >&6; }
18368 cat >conftest.$ac_ext <<_ACEOF
18369 /* confdefs.h. */
18370 _ACEOF
18371 cat confdefs.h >>conftest.$ac_ext
18372 cat >>conftest.$ac_ext <<_ACEOF
18373 /* end confdefs.h. */
18375 #include <sys/types.h>
18376 #include <sys/event.h>
18379 main ()
18381 int x=kqueue()
18383 return 0;
18385 _ACEOF
18386 rm -f conftest.$ac_objext
18387 if { (ac_try="$ac_compile"
18388 case "(($ac_try" in
18389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18390 *) ac_try_echo=$ac_try;;
18391 esac
18392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18393 (eval "$ac_compile") 2>conftest.er1
18394 ac_status=$?
18395 grep -v '^ *+' conftest.er1 >conftest.err
18396 rm -f conftest.er1
18397 cat conftest.err >&5
18398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18399 (exit $ac_status); } && {
18400 test -z "$ac_c_werror_flag" ||
18401 test ! -s conftest.err
18402 } && test -s conftest.$ac_objext; then
18404 cat >>confdefs.h <<\_ACEOF
18405 #define HAVE_KQUEUE 1
18406 _ACEOF
18408 { echo "$as_me:$LINENO: result: yes" >&5
18409 echo "${ECHO_T}yes" >&6; }
18410 else
18411 echo "$as_me: failed program was:" >&5
18412 sed 's/^/| /' conftest.$ac_ext >&5
18414 { echo "$as_me:$LINENO: result: no" >&5
18415 echo "${ECHO_T}no" >&6; }
18419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18420 # On some systems (eg. FreeBSD 5), we would find a definition of the
18421 # functions ctermid_r, setgroups in the library, but no prototype
18422 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
18423 # address to avoid compiler warnings and potential miscompilations
18424 # because of the missing prototypes.
18426 { echo "$as_me:$LINENO: checking for ctermid_r" >&5
18427 echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6; }
18428 cat >conftest.$ac_ext <<_ACEOF
18429 /* confdefs.h. */
18430 _ACEOF
18431 cat confdefs.h >>conftest.$ac_ext
18432 cat >>conftest.$ac_ext <<_ACEOF
18433 /* end confdefs.h. */
18435 #include "confdefs.h"
18436 #include <stdio.h>
18439 main ()
18441 void* p = ctermid_r
18443 return 0;
18445 _ACEOF
18446 rm -f conftest.$ac_objext
18447 if { (ac_try="$ac_compile"
18448 case "(($ac_try" in
18449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18450 *) ac_try_echo=$ac_try;;
18451 esac
18452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18453 (eval "$ac_compile") 2>conftest.er1
18454 ac_status=$?
18455 grep -v '^ *+' conftest.er1 >conftest.err
18456 rm -f conftest.er1
18457 cat conftest.err >&5
18458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18459 (exit $ac_status); } && {
18460 test -z "$ac_c_werror_flag" ||
18461 test ! -s conftest.err
18462 } && test -s conftest.$ac_objext; then
18464 cat >>confdefs.h <<\_ACEOF
18465 #define HAVE_CTERMID_R 1
18466 _ACEOF
18468 { echo "$as_me:$LINENO: result: yes" >&5
18469 echo "${ECHO_T}yes" >&6; }
18470 else
18471 echo "$as_me: failed program was:" >&5
18472 sed 's/^/| /' conftest.$ac_ext >&5
18474 { echo "$as_me:$LINENO: result: no" >&5
18475 echo "${ECHO_T}no" >&6; }
18479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18481 { echo "$as_me:$LINENO: checking for flock" >&5
18482 echo $ECHO_N "checking for flock... $ECHO_C" >&6; }
18483 cat >conftest.$ac_ext <<_ACEOF
18484 /* confdefs.h. */
18485 _ACEOF
18486 cat confdefs.h >>conftest.$ac_ext
18487 cat >>conftest.$ac_ext <<_ACEOF
18488 /* end confdefs.h. */
18490 #include "confdefs.h"
18491 #include <sys/file.h>
18494 main ()
18496 void* p = flock
18498 return 0;
18500 _ACEOF
18501 rm -f conftest.$ac_objext
18502 if { (ac_try="$ac_compile"
18503 case "(($ac_try" in
18504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18505 *) ac_try_echo=$ac_try;;
18506 esac
18507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18508 (eval "$ac_compile") 2>conftest.er1
18509 ac_status=$?
18510 grep -v '^ *+' conftest.er1 >conftest.err
18511 rm -f conftest.er1
18512 cat conftest.err >&5
18513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18514 (exit $ac_status); } && {
18515 test -z "$ac_c_werror_flag" ||
18516 test ! -s conftest.err
18517 } && test -s conftest.$ac_objext; then
18519 cat >>confdefs.h <<\_ACEOF
18520 #define HAVE_FLOCK 1
18521 _ACEOF
18523 { echo "$as_me:$LINENO: result: yes" >&5
18524 echo "${ECHO_T}yes" >&6; }
18525 else
18526 echo "$as_me: failed program was:" >&5
18527 sed 's/^/| /' conftest.$ac_ext >&5
18529 { echo "$as_me:$LINENO: result: no" >&5
18530 echo "${ECHO_T}no" >&6; }
18534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18536 { echo "$as_me:$LINENO: checking for getpagesize" >&5
18537 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; }
18538 cat >conftest.$ac_ext <<_ACEOF
18539 /* confdefs.h. */
18540 _ACEOF
18541 cat confdefs.h >>conftest.$ac_ext
18542 cat >>conftest.$ac_ext <<_ACEOF
18543 /* end confdefs.h. */
18545 #include "confdefs.h"
18546 #include <unistd.h>
18549 main ()
18551 void* p = getpagesize
18553 return 0;
18555 _ACEOF
18556 rm -f conftest.$ac_objext
18557 if { (ac_try="$ac_compile"
18558 case "(($ac_try" in
18559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18560 *) ac_try_echo=$ac_try;;
18561 esac
18562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18563 (eval "$ac_compile") 2>conftest.er1
18564 ac_status=$?
18565 grep -v '^ *+' conftest.er1 >conftest.err
18566 rm -f conftest.er1
18567 cat conftest.err >&5
18568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18569 (exit $ac_status); } && {
18570 test -z "$ac_c_werror_flag" ||
18571 test ! -s conftest.err
18572 } && test -s conftest.$ac_objext; then
18574 cat >>confdefs.h <<\_ACEOF
18575 #define HAVE_GETPAGESIZE 1
18576 _ACEOF
18578 { echo "$as_me:$LINENO: result: yes" >&5
18579 echo "${ECHO_T}yes" >&6; }
18580 else
18581 echo "$as_me: failed program was:" >&5
18582 sed 's/^/| /' conftest.$ac_ext >&5
18584 { echo "$as_me:$LINENO: result: no" >&5
18585 echo "${ECHO_T}no" >&6; }
18589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18591 for ac_prog in true
18593 # Extract the first word of "$ac_prog", so it can be a program name with args.
18594 set dummy $ac_prog; ac_word=$2
18595 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18597 if test "${ac_cv_prog_TRUE+set}" = set; then
18598 echo $ECHO_N "(cached) $ECHO_C" >&6
18599 else
18600 if test -n "$TRUE"; then
18601 ac_cv_prog_TRUE="$TRUE" # Let the user override the test.
18602 else
18603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18604 for as_dir in $PATH
18606 IFS=$as_save_IFS
18607 test -z "$as_dir" && as_dir=.
18608 for ac_exec_ext in '' $ac_executable_extensions; do
18609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18610 ac_cv_prog_TRUE="$ac_prog"
18611 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18612 break 2
18614 done
18615 done
18616 IFS=$as_save_IFS
18620 TRUE=$ac_cv_prog_TRUE
18621 if test -n "$TRUE"; then
18622 { echo "$as_me:$LINENO: result: $TRUE" >&5
18623 echo "${ECHO_T}$TRUE" >&6; }
18624 else
18625 { echo "$as_me:$LINENO: result: no" >&5
18626 echo "${ECHO_T}no" >&6; }
18630 test -n "$TRUE" && break
18631 done
18632 test -n "$TRUE" || TRUE="/bin/true"
18635 { echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
18636 echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6; }
18637 if test "${ac_cv_lib_c_inet_aton+set}" = set; then
18638 echo $ECHO_N "(cached) $ECHO_C" >&6
18639 else
18640 ac_check_lib_save_LIBS=$LIBS
18641 LIBS="-lc $LIBS"
18642 cat >conftest.$ac_ext <<_ACEOF
18643 /* confdefs.h. */
18644 _ACEOF
18645 cat confdefs.h >>conftest.$ac_ext
18646 cat >>conftest.$ac_ext <<_ACEOF
18647 /* end confdefs.h. */
18649 /* Override any GCC internal prototype to avoid an error.
18650 Use char because int might match the return type of a GCC
18651 builtin and then its argument prototype would still apply. */
18652 #ifdef __cplusplus
18653 extern "C"
18654 #endif
18655 char inet_aton ();
18657 main ()
18659 return inet_aton ();
18661 return 0;
18663 _ACEOF
18664 rm -f conftest.$ac_objext conftest$ac_exeext
18665 if { (ac_try="$ac_link"
18666 case "(($ac_try" in
18667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18668 *) ac_try_echo=$ac_try;;
18669 esac
18670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18671 (eval "$ac_link") 2>conftest.er1
18672 ac_status=$?
18673 grep -v '^ *+' conftest.er1 >conftest.err
18674 rm -f conftest.er1
18675 cat conftest.err >&5
18676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18677 (exit $ac_status); } && {
18678 test -z "$ac_c_werror_flag" ||
18679 test ! -s conftest.err
18680 } && test -s conftest$ac_exeext &&
18681 $as_test_x conftest$ac_exeext; then
18682 ac_cv_lib_c_inet_aton=yes
18683 else
18684 echo "$as_me: failed program was:" >&5
18685 sed 's/^/| /' conftest.$ac_ext >&5
18687 ac_cv_lib_c_inet_aton=no
18690 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18691 conftest$ac_exeext conftest.$ac_ext
18692 LIBS=$ac_check_lib_save_LIBS
18694 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
18695 echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6; }
18696 if test $ac_cv_lib_c_inet_aton = yes; then
18697 $ac_cv_prog_TRUE
18698 else
18700 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
18701 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
18702 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
18703 echo $ECHO_N "(cached) $ECHO_C" >&6
18704 else
18705 ac_check_lib_save_LIBS=$LIBS
18706 LIBS="-lresolv $LIBS"
18707 cat >conftest.$ac_ext <<_ACEOF
18708 /* confdefs.h. */
18709 _ACEOF
18710 cat confdefs.h >>conftest.$ac_ext
18711 cat >>conftest.$ac_ext <<_ACEOF
18712 /* end confdefs.h. */
18714 /* Override any GCC internal prototype to avoid an error.
18715 Use char because int might match the return type of a GCC
18716 builtin and then its argument prototype would still apply. */
18717 #ifdef __cplusplus
18718 extern "C"
18719 #endif
18720 char inet_aton ();
18722 main ()
18724 return inet_aton ();
18726 return 0;
18728 _ACEOF
18729 rm -f conftest.$ac_objext conftest$ac_exeext
18730 if { (ac_try="$ac_link"
18731 case "(($ac_try" in
18732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18733 *) ac_try_echo=$ac_try;;
18734 esac
18735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18736 (eval "$ac_link") 2>conftest.er1
18737 ac_status=$?
18738 grep -v '^ *+' conftest.er1 >conftest.err
18739 rm -f conftest.er1
18740 cat conftest.err >&5
18741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18742 (exit $ac_status); } && {
18743 test -z "$ac_c_werror_flag" ||
18744 test ! -s conftest.err
18745 } && test -s conftest$ac_exeext &&
18746 $as_test_x conftest$ac_exeext; then
18747 ac_cv_lib_resolv_inet_aton=yes
18748 else
18749 echo "$as_me: failed program was:" >&5
18750 sed 's/^/| /' conftest.$ac_ext >&5
18752 ac_cv_lib_resolv_inet_aton=no
18755 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18756 conftest$ac_exeext conftest.$ac_ext
18757 LIBS=$ac_check_lib_save_LIBS
18759 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
18760 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
18761 if test $ac_cv_lib_resolv_inet_aton = yes; then
18762 cat >>confdefs.h <<_ACEOF
18763 #define HAVE_LIBRESOLV 1
18764 _ACEOF
18766 LIBS="-lresolv $LIBS"
18774 # On Tru64, chflags seems to be present, but calling it will
18775 # exit Python
18776 { echo "$as_me:$LINENO: checking for chflags" >&5
18777 echo $ECHO_N "checking for chflags... $ECHO_C" >&6; }
18778 if test "${ac_cv_have_chflags+set}" = set; then
18779 echo $ECHO_N "(cached) $ECHO_C" >&6
18780 else
18781 if test "$cross_compiling" = yes; then
18782 ac_cv_have_chflags=cross
18783 else
18784 cat >conftest.$ac_ext <<_ACEOF
18785 /* confdefs.h. */
18786 _ACEOF
18787 cat confdefs.h >>conftest.$ac_ext
18788 cat >>conftest.$ac_ext <<_ACEOF
18789 /* end confdefs.h. */
18791 #include <sys/stat.h>
18792 #include <unistd.h>
18793 int main(int argc, char*argv[])
18795 if(chflags(argv[0], 0) != 0)
18796 return 1;
18797 return 0;
18800 _ACEOF
18801 rm -f conftest$ac_exeext
18802 if { (ac_try="$ac_link"
18803 case "(($ac_try" in
18804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18805 *) ac_try_echo=$ac_try;;
18806 esac
18807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18808 (eval "$ac_link") 2>&5
18809 ac_status=$?
18810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18811 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18812 { (case "(($ac_try" in
18813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18814 *) ac_try_echo=$ac_try;;
18815 esac
18816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18817 (eval "$ac_try") 2>&5
18818 ac_status=$?
18819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18820 (exit $ac_status); }; }; then
18821 ac_cv_have_chflags=yes
18822 else
18823 echo "$as_me: program exited with status $ac_status" >&5
18824 echo "$as_me: failed program was:" >&5
18825 sed 's/^/| /' conftest.$ac_ext >&5
18827 ( exit $ac_status )
18828 ac_cv_have_chflags=no
18830 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18836 { echo "$as_me:$LINENO: result: $ac_cv_have_chflags" >&5
18837 echo "${ECHO_T}$ac_cv_have_chflags" >&6; }
18838 if test "$ac_cv_have_chflags" = cross ; then
18839 { echo "$as_me:$LINENO: checking for chflags" >&5
18840 echo $ECHO_N "checking for chflags... $ECHO_C" >&6; }
18841 if test "${ac_cv_func_chflags+set}" = set; then
18842 echo $ECHO_N "(cached) $ECHO_C" >&6
18843 else
18844 cat >conftest.$ac_ext <<_ACEOF
18845 /* confdefs.h. */
18846 _ACEOF
18847 cat confdefs.h >>conftest.$ac_ext
18848 cat >>conftest.$ac_ext <<_ACEOF
18849 /* end confdefs.h. */
18850 /* Define chflags to an innocuous variant, in case <limits.h> declares chflags.
18851 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18852 #define chflags innocuous_chflags
18854 /* System header to define __stub macros and hopefully few prototypes,
18855 which can conflict with char chflags (); below.
18856 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18857 <limits.h> exists even on freestanding compilers. */
18859 #ifdef __STDC__
18860 # include <limits.h>
18861 #else
18862 # include <assert.h>
18863 #endif
18865 #undef chflags
18867 /* Override any GCC internal prototype to avoid an error.
18868 Use char because int might match the return type of a GCC
18869 builtin and then its argument prototype would still apply. */
18870 #ifdef __cplusplus
18871 extern "C"
18872 #endif
18873 char chflags ();
18874 /* The GNU C library defines this for functions which it implements
18875 to always fail with ENOSYS. Some functions are actually named
18876 something starting with __ and the normal name is an alias. */
18877 #if defined __stub_chflags || defined __stub___chflags
18878 choke me
18879 #endif
18882 main ()
18884 return chflags ();
18886 return 0;
18888 _ACEOF
18889 rm -f conftest.$ac_objext conftest$ac_exeext
18890 if { (ac_try="$ac_link"
18891 case "(($ac_try" in
18892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18893 *) ac_try_echo=$ac_try;;
18894 esac
18895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18896 (eval "$ac_link") 2>conftest.er1
18897 ac_status=$?
18898 grep -v '^ *+' conftest.er1 >conftest.err
18899 rm -f conftest.er1
18900 cat conftest.err >&5
18901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18902 (exit $ac_status); } && {
18903 test -z "$ac_c_werror_flag" ||
18904 test ! -s conftest.err
18905 } && test -s conftest$ac_exeext &&
18906 $as_test_x conftest$ac_exeext; then
18907 ac_cv_func_chflags=yes
18908 else
18909 echo "$as_me: failed program was:" >&5
18910 sed 's/^/| /' conftest.$ac_ext >&5
18912 ac_cv_func_chflags=no
18915 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18916 conftest$ac_exeext conftest.$ac_ext
18918 { echo "$as_me:$LINENO: result: $ac_cv_func_chflags" >&5
18919 echo "${ECHO_T}$ac_cv_func_chflags" >&6; }
18920 if test $ac_cv_func_chflags = yes; then
18921 ac_cv_have_chflags="yes"
18922 else
18923 ac_cv_have_chflags="no"
18927 if test "$ac_cv_have_chflags" = yes ; then
18929 cat >>confdefs.h <<\_ACEOF
18930 #define HAVE_CHFLAGS 1
18931 _ACEOF
18935 { echo "$as_me:$LINENO: checking for lchflags" >&5
18936 echo $ECHO_N "checking for lchflags... $ECHO_C" >&6; }
18937 if test "${ac_cv_have_lchflags+set}" = set; then
18938 echo $ECHO_N "(cached) $ECHO_C" >&6
18939 else
18940 if test "$cross_compiling" = yes; then
18941 ac_cv_have_lchflags=cross
18942 else
18943 cat >conftest.$ac_ext <<_ACEOF
18944 /* confdefs.h. */
18945 _ACEOF
18946 cat confdefs.h >>conftest.$ac_ext
18947 cat >>conftest.$ac_ext <<_ACEOF
18948 /* end confdefs.h. */
18950 #include <sys/stat.h>
18951 #include <unistd.h>
18952 int main(int argc, char*argv[])
18954 if(lchflags(argv[0], 0) != 0)
18955 return 1;
18956 return 0;
18959 _ACEOF
18960 rm -f conftest$ac_exeext
18961 if { (ac_try="$ac_link"
18962 case "(($ac_try" in
18963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18964 *) ac_try_echo=$ac_try;;
18965 esac
18966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18967 (eval "$ac_link") 2>&5
18968 ac_status=$?
18969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18970 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18971 { (case "(($ac_try" in
18972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18973 *) ac_try_echo=$ac_try;;
18974 esac
18975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18976 (eval "$ac_try") 2>&5
18977 ac_status=$?
18978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18979 (exit $ac_status); }; }; then
18980 ac_cv_have_lchflags=yes
18981 else
18982 echo "$as_me: program exited with status $ac_status" >&5
18983 echo "$as_me: failed program was:" >&5
18984 sed 's/^/| /' conftest.$ac_ext >&5
18986 ( exit $ac_status )
18987 ac_cv_have_lchflags=no
18989 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18995 { echo "$as_me:$LINENO: result: $ac_cv_have_lchflags" >&5
18996 echo "${ECHO_T}$ac_cv_have_lchflags" >&6; }
18997 if test "$ac_cv_have_lchflags" = cross ; then
18998 { echo "$as_me:$LINENO: checking for lchflags" >&5
18999 echo $ECHO_N "checking for lchflags... $ECHO_C" >&6; }
19000 if test "${ac_cv_func_lchflags+set}" = set; then
19001 echo $ECHO_N "(cached) $ECHO_C" >&6
19002 else
19003 cat >conftest.$ac_ext <<_ACEOF
19004 /* confdefs.h. */
19005 _ACEOF
19006 cat confdefs.h >>conftest.$ac_ext
19007 cat >>conftest.$ac_ext <<_ACEOF
19008 /* end confdefs.h. */
19009 /* Define lchflags to an innocuous variant, in case <limits.h> declares lchflags.
19010 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19011 #define lchflags innocuous_lchflags
19013 /* System header to define __stub macros and hopefully few prototypes,
19014 which can conflict with char lchflags (); below.
19015 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19016 <limits.h> exists even on freestanding compilers. */
19018 #ifdef __STDC__
19019 # include <limits.h>
19020 #else
19021 # include <assert.h>
19022 #endif
19024 #undef lchflags
19026 /* Override any GCC internal prototype to avoid an error.
19027 Use char because int might match the return type of a GCC
19028 builtin and then its argument prototype would still apply. */
19029 #ifdef __cplusplus
19030 extern "C"
19031 #endif
19032 char lchflags ();
19033 /* The GNU C library defines this for functions which it implements
19034 to always fail with ENOSYS. Some functions are actually named
19035 something starting with __ and the normal name is an alias. */
19036 #if defined __stub_lchflags || defined __stub___lchflags
19037 choke me
19038 #endif
19041 main ()
19043 return lchflags ();
19045 return 0;
19047 _ACEOF
19048 rm -f conftest.$ac_objext conftest$ac_exeext
19049 if { (ac_try="$ac_link"
19050 case "(($ac_try" in
19051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19052 *) ac_try_echo=$ac_try;;
19053 esac
19054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19055 (eval "$ac_link") 2>conftest.er1
19056 ac_status=$?
19057 grep -v '^ *+' conftest.er1 >conftest.err
19058 rm -f conftest.er1
19059 cat conftest.err >&5
19060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19061 (exit $ac_status); } && {
19062 test -z "$ac_c_werror_flag" ||
19063 test ! -s conftest.err
19064 } && test -s conftest$ac_exeext &&
19065 $as_test_x conftest$ac_exeext; then
19066 ac_cv_func_lchflags=yes
19067 else
19068 echo "$as_me: failed program was:" >&5
19069 sed 's/^/| /' conftest.$ac_ext >&5
19071 ac_cv_func_lchflags=no
19074 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19075 conftest$ac_exeext conftest.$ac_ext
19077 { echo "$as_me:$LINENO: result: $ac_cv_func_lchflags" >&5
19078 echo "${ECHO_T}$ac_cv_func_lchflags" >&6; }
19079 if test $ac_cv_func_lchflags = yes; then
19080 ac_cv_have_lchflags="yes"
19081 else
19082 ac_cv_have_lchflags="no"
19086 if test "$ac_cv_have_lchflags" = yes ; then
19088 cat >>confdefs.h <<\_ACEOF
19089 #define HAVE_LCHFLAGS 1
19090 _ACEOF
19094 case $ac_sys_system/$ac_sys_release in
19095 Darwin/*)
19096 _CUR_CFLAGS="${CFLAGS}"
19097 _CUR_LDFLAGS="${LDFLAGS}"
19098 CFLAGS="${CFLAGS} -Wl,-search_paths_first"
19099 LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib"
19101 esac
19103 { echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5
19104 echo $ECHO_N "checking for inflateCopy in -lz... $ECHO_C" >&6; }
19105 if test "${ac_cv_lib_z_inflateCopy+set}" = set; then
19106 echo $ECHO_N "(cached) $ECHO_C" >&6
19107 else
19108 ac_check_lib_save_LIBS=$LIBS
19109 LIBS="-lz $LIBS"
19110 cat >conftest.$ac_ext <<_ACEOF
19111 /* confdefs.h. */
19112 _ACEOF
19113 cat confdefs.h >>conftest.$ac_ext
19114 cat >>conftest.$ac_ext <<_ACEOF
19115 /* end confdefs.h. */
19117 /* Override any GCC internal prototype to avoid an error.
19118 Use char because int might match the return type of a GCC
19119 builtin and then its argument prototype would still apply. */
19120 #ifdef __cplusplus
19121 extern "C"
19122 #endif
19123 char inflateCopy ();
19125 main ()
19127 return inflateCopy ();
19129 return 0;
19131 _ACEOF
19132 rm -f conftest.$ac_objext conftest$ac_exeext
19133 if { (ac_try="$ac_link"
19134 case "(($ac_try" in
19135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19136 *) ac_try_echo=$ac_try;;
19137 esac
19138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19139 (eval "$ac_link") 2>conftest.er1
19140 ac_status=$?
19141 grep -v '^ *+' conftest.er1 >conftest.err
19142 rm -f conftest.er1
19143 cat conftest.err >&5
19144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19145 (exit $ac_status); } && {
19146 test -z "$ac_c_werror_flag" ||
19147 test ! -s conftest.err
19148 } && test -s conftest$ac_exeext &&
19149 $as_test_x conftest$ac_exeext; then
19150 ac_cv_lib_z_inflateCopy=yes
19151 else
19152 echo "$as_me: failed program was:" >&5
19153 sed 's/^/| /' conftest.$ac_ext >&5
19155 ac_cv_lib_z_inflateCopy=no
19158 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19159 conftest$ac_exeext conftest.$ac_ext
19160 LIBS=$ac_check_lib_save_LIBS
19162 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5
19163 echo "${ECHO_T}$ac_cv_lib_z_inflateCopy" >&6; }
19164 if test $ac_cv_lib_z_inflateCopy = yes; then
19166 cat >>confdefs.h <<\_ACEOF
19167 #define HAVE_ZLIB_COPY 1
19168 _ACEOF
19173 case $ac_sys_system/$ac_sys_release in
19174 Darwin/*)
19175 CFLAGS="${_CUR_CFLAGS}"
19176 LDFLAGS="${_CUR_LDFLAGS}"
19178 esac
19180 { echo "$as_me:$LINENO: checking for hstrerror" >&5
19181 echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6; }
19182 cat >conftest.$ac_ext <<_ACEOF
19183 /* confdefs.h. */
19184 _ACEOF
19185 cat confdefs.h >>conftest.$ac_ext
19186 cat >>conftest.$ac_ext <<_ACEOF
19187 /* end confdefs.h. */
19189 #include "confdefs.h"
19190 #include <netdb.h>
19193 main ()
19195 void* p = hstrerror; hstrerror(0)
19197 return 0;
19199 _ACEOF
19200 rm -f conftest.$ac_objext conftest$ac_exeext
19201 if { (ac_try="$ac_link"
19202 case "(($ac_try" in
19203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19204 *) ac_try_echo=$ac_try;;
19205 esac
19206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19207 (eval "$ac_link") 2>conftest.er1
19208 ac_status=$?
19209 grep -v '^ *+' conftest.er1 >conftest.err
19210 rm -f conftest.er1
19211 cat conftest.err >&5
19212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19213 (exit $ac_status); } && {
19214 test -z "$ac_c_werror_flag" ||
19215 test ! -s conftest.err
19216 } && test -s conftest$ac_exeext &&
19217 $as_test_x conftest$ac_exeext; then
19219 cat >>confdefs.h <<\_ACEOF
19220 #define HAVE_HSTRERROR 1
19221 _ACEOF
19223 { echo "$as_me:$LINENO: result: yes" >&5
19224 echo "${ECHO_T}yes" >&6; }
19225 else
19226 echo "$as_me: failed program was:" >&5
19227 sed 's/^/| /' conftest.$ac_ext >&5
19229 { echo "$as_me:$LINENO: result: no" >&5
19230 echo "${ECHO_T}no" >&6; }
19234 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19235 conftest$ac_exeext conftest.$ac_ext
19237 { echo "$as_me:$LINENO: checking for inet_aton" >&5
19238 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
19239 cat >conftest.$ac_ext <<_ACEOF
19240 /* confdefs.h. */
19241 _ACEOF
19242 cat confdefs.h >>conftest.$ac_ext
19243 cat >>conftest.$ac_ext <<_ACEOF
19244 /* end confdefs.h. */
19246 #include "confdefs.h"
19247 #include <sys/types.h>
19248 #include <sys/socket.h>
19249 #include <netinet/in.h>
19250 #include <arpa/inet.h>
19253 main ()
19255 void* p = inet_aton;inet_aton(0,0)
19257 return 0;
19259 _ACEOF
19260 rm -f conftest.$ac_objext conftest$ac_exeext
19261 if { (ac_try="$ac_link"
19262 case "(($ac_try" in
19263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19264 *) ac_try_echo=$ac_try;;
19265 esac
19266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19267 (eval "$ac_link") 2>conftest.er1
19268 ac_status=$?
19269 grep -v '^ *+' conftest.er1 >conftest.err
19270 rm -f conftest.er1
19271 cat conftest.err >&5
19272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19273 (exit $ac_status); } && {
19274 test -z "$ac_c_werror_flag" ||
19275 test ! -s conftest.err
19276 } && test -s conftest$ac_exeext &&
19277 $as_test_x conftest$ac_exeext; then
19279 cat >>confdefs.h <<\_ACEOF
19280 #define HAVE_INET_ATON 1
19281 _ACEOF
19283 { echo "$as_me:$LINENO: result: yes" >&5
19284 echo "${ECHO_T}yes" >&6; }
19285 else
19286 echo "$as_me: failed program was:" >&5
19287 sed 's/^/| /' conftest.$ac_ext >&5
19289 { echo "$as_me:$LINENO: result: no" >&5
19290 echo "${ECHO_T}no" >&6; }
19294 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19295 conftest$ac_exeext conftest.$ac_ext
19297 { echo "$as_me:$LINENO: checking for inet_pton" >&5
19298 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
19299 cat >conftest.$ac_ext <<_ACEOF
19300 /* confdefs.h. */
19301 _ACEOF
19302 cat confdefs.h >>conftest.$ac_ext
19303 cat >>conftest.$ac_ext <<_ACEOF
19304 /* end confdefs.h. */
19306 #include "confdefs.h"
19307 #include <sys/types.h>
19308 #include <sys/socket.h>
19309 #include <netinet/in.h>
19310 #include <arpa/inet.h>
19313 main ()
19315 void* p = inet_pton
19317 return 0;
19319 _ACEOF
19320 rm -f conftest.$ac_objext
19321 if { (ac_try="$ac_compile"
19322 case "(($ac_try" in
19323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19324 *) ac_try_echo=$ac_try;;
19325 esac
19326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19327 (eval "$ac_compile") 2>conftest.er1
19328 ac_status=$?
19329 grep -v '^ *+' conftest.er1 >conftest.err
19330 rm -f conftest.er1
19331 cat conftest.err >&5
19332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19333 (exit $ac_status); } && {
19334 test -z "$ac_c_werror_flag" ||
19335 test ! -s conftest.err
19336 } && test -s conftest.$ac_objext; then
19338 cat >>confdefs.h <<\_ACEOF
19339 #define HAVE_INET_PTON 1
19340 _ACEOF
19342 { echo "$as_me:$LINENO: result: yes" >&5
19343 echo "${ECHO_T}yes" >&6; }
19344 else
19345 echo "$as_me: failed program was:" >&5
19346 sed 's/^/| /' conftest.$ac_ext >&5
19348 { echo "$as_me:$LINENO: result: no" >&5
19349 echo "${ECHO_T}no" >&6; }
19353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19355 # On some systems, setgroups is in unistd.h, on others, in grp.h
19356 { echo "$as_me:$LINENO: checking for setgroups" >&5
19357 echo $ECHO_N "checking for setgroups... $ECHO_C" >&6; }
19358 cat >conftest.$ac_ext <<_ACEOF
19359 /* confdefs.h. */
19360 _ACEOF
19361 cat confdefs.h >>conftest.$ac_ext
19362 cat >>conftest.$ac_ext <<_ACEOF
19363 /* end confdefs.h. */
19365 #include "confdefs.h"
19366 #include <unistd.h>
19367 #ifdef HAVE_GRP_H
19368 #include <grp.h>
19369 #endif
19372 main ()
19374 void* p = setgroups
19376 return 0;
19378 _ACEOF
19379 rm -f conftest.$ac_objext
19380 if { (ac_try="$ac_compile"
19381 case "(($ac_try" in
19382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19383 *) ac_try_echo=$ac_try;;
19384 esac
19385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19386 (eval "$ac_compile") 2>conftest.er1
19387 ac_status=$?
19388 grep -v '^ *+' conftest.er1 >conftest.err
19389 rm -f conftest.er1
19390 cat conftest.err >&5
19391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19392 (exit $ac_status); } && {
19393 test -z "$ac_c_werror_flag" ||
19394 test ! -s conftest.err
19395 } && test -s conftest.$ac_objext; then
19397 cat >>confdefs.h <<\_ACEOF
19398 #define HAVE_SETGROUPS 1
19399 _ACEOF
19401 { echo "$as_me:$LINENO: result: yes" >&5
19402 echo "${ECHO_T}yes" >&6; }
19403 else
19404 echo "$as_me: failed program was:" >&5
19405 sed 's/^/| /' conftest.$ac_ext >&5
19407 { echo "$as_me:$LINENO: result: no" >&5
19408 echo "${ECHO_T}no" >&6; }
19412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19414 # check for openpty and forkpty
19417 for ac_func in openpty
19419 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19420 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19421 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19422 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19423 echo $ECHO_N "(cached) $ECHO_C" >&6
19424 else
19425 cat >conftest.$ac_ext <<_ACEOF
19426 /* confdefs.h. */
19427 _ACEOF
19428 cat confdefs.h >>conftest.$ac_ext
19429 cat >>conftest.$ac_ext <<_ACEOF
19430 /* end confdefs.h. */
19431 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19432 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19433 #define $ac_func innocuous_$ac_func
19435 /* System header to define __stub macros and hopefully few prototypes,
19436 which can conflict with char $ac_func (); below.
19437 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19438 <limits.h> exists even on freestanding compilers. */
19440 #ifdef __STDC__
19441 # include <limits.h>
19442 #else
19443 # include <assert.h>
19444 #endif
19446 #undef $ac_func
19448 /* Override any GCC internal prototype to avoid an error.
19449 Use char because int might match the return type of a GCC
19450 builtin and then its argument prototype would still apply. */
19451 #ifdef __cplusplus
19452 extern "C"
19453 #endif
19454 char $ac_func ();
19455 /* The GNU C library defines this for functions which it implements
19456 to always fail with ENOSYS. Some functions are actually named
19457 something starting with __ and the normal name is an alias. */
19458 #if defined __stub_$ac_func || defined __stub___$ac_func
19459 choke me
19460 #endif
19463 main ()
19465 return $ac_func ();
19467 return 0;
19469 _ACEOF
19470 rm -f conftest.$ac_objext conftest$ac_exeext
19471 if { (ac_try="$ac_link"
19472 case "(($ac_try" in
19473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19474 *) ac_try_echo=$ac_try;;
19475 esac
19476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19477 (eval "$ac_link") 2>conftest.er1
19478 ac_status=$?
19479 grep -v '^ *+' conftest.er1 >conftest.err
19480 rm -f conftest.er1
19481 cat conftest.err >&5
19482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19483 (exit $ac_status); } && {
19484 test -z "$ac_c_werror_flag" ||
19485 test ! -s conftest.err
19486 } && test -s conftest$ac_exeext &&
19487 $as_test_x conftest$ac_exeext; then
19488 eval "$as_ac_var=yes"
19489 else
19490 echo "$as_me: failed program was:" >&5
19491 sed 's/^/| /' conftest.$ac_ext >&5
19493 eval "$as_ac_var=no"
19496 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19497 conftest$ac_exeext conftest.$ac_ext
19499 ac_res=`eval echo '${'$as_ac_var'}'`
19500 { echo "$as_me:$LINENO: result: $ac_res" >&5
19501 echo "${ECHO_T}$ac_res" >&6; }
19502 if test `eval echo '${'$as_ac_var'}'` = yes; then
19503 cat >>confdefs.h <<_ACEOF
19504 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19505 _ACEOF
19507 else
19508 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
19509 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
19510 if test "${ac_cv_lib_util_openpty+set}" = set; then
19511 echo $ECHO_N "(cached) $ECHO_C" >&6
19512 else
19513 ac_check_lib_save_LIBS=$LIBS
19514 LIBS="-lutil $LIBS"
19515 cat >conftest.$ac_ext <<_ACEOF
19516 /* confdefs.h. */
19517 _ACEOF
19518 cat confdefs.h >>conftest.$ac_ext
19519 cat >>conftest.$ac_ext <<_ACEOF
19520 /* end confdefs.h. */
19522 /* Override any GCC internal prototype to avoid an error.
19523 Use char because int might match the return type of a GCC
19524 builtin and then its argument prototype would still apply. */
19525 #ifdef __cplusplus
19526 extern "C"
19527 #endif
19528 char openpty ();
19530 main ()
19532 return openpty ();
19534 return 0;
19536 _ACEOF
19537 rm -f conftest.$ac_objext conftest$ac_exeext
19538 if { (ac_try="$ac_link"
19539 case "(($ac_try" in
19540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19541 *) ac_try_echo=$ac_try;;
19542 esac
19543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19544 (eval "$ac_link") 2>conftest.er1
19545 ac_status=$?
19546 grep -v '^ *+' conftest.er1 >conftest.err
19547 rm -f conftest.er1
19548 cat conftest.err >&5
19549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19550 (exit $ac_status); } && {
19551 test -z "$ac_c_werror_flag" ||
19552 test ! -s conftest.err
19553 } && test -s conftest$ac_exeext &&
19554 $as_test_x conftest$ac_exeext; then
19555 ac_cv_lib_util_openpty=yes
19556 else
19557 echo "$as_me: failed program was:" >&5
19558 sed 's/^/| /' conftest.$ac_ext >&5
19560 ac_cv_lib_util_openpty=no
19563 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19564 conftest$ac_exeext conftest.$ac_ext
19565 LIBS=$ac_check_lib_save_LIBS
19567 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
19568 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
19569 if test $ac_cv_lib_util_openpty = yes; then
19570 cat >>confdefs.h <<\_ACEOF
19571 #define HAVE_OPENPTY 1
19572 _ACEOF
19573 LIBS="$LIBS -lutil"
19574 else
19575 { echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
19576 echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6; }
19577 if test "${ac_cv_lib_bsd_openpty+set}" = set; then
19578 echo $ECHO_N "(cached) $ECHO_C" >&6
19579 else
19580 ac_check_lib_save_LIBS=$LIBS
19581 LIBS="-lbsd $LIBS"
19582 cat >conftest.$ac_ext <<_ACEOF
19583 /* confdefs.h. */
19584 _ACEOF
19585 cat confdefs.h >>conftest.$ac_ext
19586 cat >>conftest.$ac_ext <<_ACEOF
19587 /* end confdefs.h. */
19589 /* Override any GCC internal prototype to avoid an error.
19590 Use char because int might match the return type of a GCC
19591 builtin and then its argument prototype would still apply. */
19592 #ifdef __cplusplus
19593 extern "C"
19594 #endif
19595 char openpty ();
19597 main ()
19599 return openpty ();
19601 return 0;
19603 _ACEOF
19604 rm -f conftest.$ac_objext conftest$ac_exeext
19605 if { (ac_try="$ac_link"
19606 case "(($ac_try" in
19607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19608 *) ac_try_echo=$ac_try;;
19609 esac
19610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19611 (eval "$ac_link") 2>conftest.er1
19612 ac_status=$?
19613 grep -v '^ *+' conftest.er1 >conftest.err
19614 rm -f conftest.er1
19615 cat conftest.err >&5
19616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19617 (exit $ac_status); } && {
19618 test -z "$ac_c_werror_flag" ||
19619 test ! -s conftest.err
19620 } && test -s conftest$ac_exeext &&
19621 $as_test_x conftest$ac_exeext; then
19622 ac_cv_lib_bsd_openpty=yes
19623 else
19624 echo "$as_me: failed program was:" >&5
19625 sed 's/^/| /' conftest.$ac_ext >&5
19627 ac_cv_lib_bsd_openpty=no
19630 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19631 conftest$ac_exeext conftest.$ac_ext
19632 LIBS=$ac_check_lib_save_LIBS
19634 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
19635 echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6; }
19636 if test $ac_cv_lib_bsd_openpty = yes; then
19637 cat >>confdefs.h <<\_ACEOF
19638 #define HAVE_OPENPTY 1
19639 _ACEOF
19640 LIBS="$LIBS -lbsd"
19648 done
19651 for ac_func in forkpty
19653 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19654 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19655 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19656 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19657 echo $ECHO_N "(cached) $ECHO_C" >&6
19658 else
19659 cat >conftest.$ac_ext <<_ACEOF
19660 /* confdefs.h. */
19661 _ACEOF
19662 cat confdefs.h >>conftest.$ac_ext
19663 cat >>conftest.$ac_ext <<_ACEOF
19664 /* end confdefs.h. */
19665 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19666 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19667 #define $ac_func innocuous_$ac_func
19669 /* System header to define __stub macros and hopefully few prototypes,
19670 which can conflict with char $ac_func (); below.
19671 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19672 <limits.h> exists even on freestanding compilers. */
19674 #ifdef __STDC__
19675 # include <limits.h>
19676 #else
19677 # include <assert.h>
19678 #endif
19680 #undef $ac_func
19682 /* Override any GCC internal prototype to avoid an error.
19683 Use char because int might match the return type of a GCC
19684 builtin and then its argument prototype would still apply. */
19685 #ifdef __cplusplus
19686 extern "C"
19687 #endif
19688 char $ac_func ();
19689 /* The GNU C library defines this for functions which it implements
19690 to always fail with ENOSYS. Some functions are actually named
19691 something starting with __ and the normal name is an alias. */
19692 #if defined __stub_$ac_func || defined __stub___$ac_func
19693 choke me
19694 #endif
19697 main ()
19699 return $ac_func ();
19701 return 0;
19703 _ACEOF
19704 rm -f conftest.$ac_objext conftest$ac_exeext
19705 if { (ac_try="$ac_link"
19706 case "(($ac_try" in
19707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19708 *) ac_try_echo=$ac_try;;
19709 esac
19710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19711 (eval "$ac_link") 2>conftest.er1
19712 ac_status=$?
19713 grep -v '^ *+' conftest.er1 >conftest.err
19714 rm -f conftest.er1
19715 cat conftest.err >&5
19716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19717 (exit $ac_status); } && {
19718 test -z "$ac_c_werror_flag" ||
19719 test ! -s conftest.err
19720 } && test -s conftest$ac_exeext &&
19721 $as_test_x conftest$ac_exeext; then
19722 eval "$as_ac_var=yes"
19723 else
19724 echo "$as_me: failed program was:" >&5
19725 sed 's/^/| /' conftest.$ac_ext >&5
19727 eval "$as_ac_var=no"
19730 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19731 conftest$ac_exeext conftest.$ac_ext
19733 ac_res=`eval echo '${'$as_ac_var'}'`
19734 { echo "$as_me:$LINENO: result: $ac_res" >&5
19735 echo "${ECHO_T}$ac_res" >&6; }
19736 if test `eval echo '${'$as_ac_var'}'` = yes; then
19737 cat >>confdefs.h <<_ACEOF
19738 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19739 _ACEOF
19741 else
19742 { echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
19743 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6; }
19744 if test "${ac_cv_lib_util_forkpty+set}" = set; then
19745 echo $ECHO_N "(cached) $ECHO_C" >&6
19746 else
19747 ac_check_lib_save_LIBS=$LIBS
19748 LIBS="-lutil $LIBS"
19749 cat >conftest.$ac_ext <<_ACEOF
19750 /* confdefs.h. */
19751 _ACEOF
19752 cat confdefs.h >>conftest.$ac_ext
19753 cat >>conftest.$ac_ext <<_ACEOF
19754 /* end confdefs.h. */
19756 /* Override any GCC internal prototype to avoid an error.
19757 Use char because int might match the return type of a GCC
19758 builtin and then its argument prototype would still apply. */
19759 #ifdef __cplusplus
19760 extern "C"
19761 #endif
19762 char forkpty ();
19764 main ()
19766 return forkpty ();
19768 return 0;
19770 _ACEOF
19771 rm -f conftest.$ac_objext conftest$ac_exeext
19772 if { (ac_try="$ac_link"
19773 case "(($ac_try" in
19774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19775 *) ac_try_echo=$ac_try;;
19776 esac
19777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19778 (eval "$ac_link") 2>conftest.er1
19779 ac_status=$?
19780 grep -v '^ *+' conftest.er1 >conftest.err
19781 rm -f conftest.er1
19782 cat conftest.err >&5
19783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19784 (exit $ac_status); } && {
19785 test -z "$ac_c_werror_flag" ||
19786 test ! -s conftest.err
19787 } && test -s conftest$ac_exeext &&
19788 $as_test_x conftest$ac_exeext; then
19789 ac_cv_lib_util_forkpty=yes
19790 else
19791 echo "$as_me: failed program was:" >&5
19792 sed 's/^/| /' conftest.$ac_ext >&5
19794 ac_cv_lib_util_forkpty=no
19797 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19798 conftest$ac_exeext conftest.$ac_ext
19799 LIBS=$ac_check_lib_save_LIBS
19801 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
19802 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6; }
19803 if test $ac_cv_lib_util_forkpty = yes; then
19804 cat >>confdefs.h <<\_ACEOF
19805 #define HAVE_FORKPTY 1
19806 _ACEOF
19807 LIBS="$LIBS -lutil"
19808 else
19809 { echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
19810 echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6; }
19811 if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
19812 echo $ECHO_N "(cached) $ECHO_C" >&6
19813 else
19814 ac_check_lib_save_LIBS=$LIBS
19815 LIBS="-lbsd $LIBS"
19816 cat >conftest.$ac_ext <<_ACEOF
19817 /* confdefs.h. */
19818 _ACEOF
19819 cat confdefs.h >>conftest.$ac_ext
19820 cat >>conftest.$ac_ext <<_ACEOF
19821 /* end confdefs.h. */
19823 /* Override any GCC internal prototype to avoid an error.
19824 Use char because int might match the return type of a GCC
19825 builtin and then its argument prototype would still apply. */
19826 #ifdef __cplusplus
19827 extern "C"
19828 #endif
19829 char forkpty ();
19831 main ()
19833 return forkpty ();
19835 return 0;
19837 _ACEOF
19838 rm -f conftest.$ac_objext conftest$ac_exeext
19839 if { (ac_try="$ac_link"
19840 case "(($ac_try" in
19841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19842 *) ac_try_echo=$ac_try;;
19843 esac
19844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19845 (eval "$ac_link") 2>conftest.er1
19846 ac_status=$?
19847 grep -v '^ *+' conftest.er1 >conftest.err
19848 rm -f conftest.er1
19849 cat conftest.err >&5
19850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19851 (exit $ac_status); } && {
19852 test -z "$ac_c_werror_flag" ||
19853 test ! -s conftest.err
19854 } && test -s conftest$ac_exeext &&
19855 $as_test_x conftest$ac_exeext; then
19856 ac_cv_lib_bsd_forkpty=yes
19857 else
19858 echo "$as_me: failed program was:" >&5
19859 sed 's/^/| /' conftest.$ac_ext >&5
19861 ac_cv_lib_bsd_forkpty=no
19864 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19865 conftest$ac_exeext conftest.$ac_ext
19866 LIBS=$ac_check_lib_save_LIBS
19868 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
19869 echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6; }
19870 if test $ac_cv_lib_bsd_forkpty = yes; then
19871 cat >>confdefs.h <<\_ACEOF
19872 #define HAVE_FORKPTY 1
19873 _ACEOF
19874 LIBS="$LIBS -lbsd"
19882 done
19885 # Stuff for expat.
19887 for ac_func in memmove
19889 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19890 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19891 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19892 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19893 echo $ECHO_N "(cached) $ECHO_C" >&6
19894 else
19895 cat >conftest.$ac_ext <<_ACEOF
19896 /* confdefs.h. */
19897 _ACEOF
19898 cat confdefs.h >>conftest.$ac_ext
19899 cat >>conftest.$ac_ext <<_ACEOF
19900 /* end confdefs.h. */
19901 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19902 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19903 #define $ac_func innocuous_$ac_func
19905 /* System header to define __stub macros and hopefully few prototypes,
19906 which can conflict with char $ac_func (); below.
19907 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19908 <limits.h> exists even on freestanding compilers. */
19910 #ifdef __STDC__
19911 # include <limits.h>
19912 #else
19913 # include <assert.h>
19914 #endif
19916 #undef $ac_func
19918 /* Override any GCC internal prototype to avoid an error.
19919 Use char because int might match the return type of a GCC
19920 builtin and then its argument prototype would still apply. */
19921 #ifdef __cplusplus
19922 extern "C"
19923 #endif
19924 char $ac_func ();
19925 /* The GNU C library defines this for functions which it implements
19926 to always fail with ENOSYS. Some functions are actually named
19927 something starting with __ and the normal name is an alias. */
19928 #if defined __stub_$ac_func || defined __stub___$ac_func
19929 choke me
19930 #endif
19933 main ()
19935 return $ac_func ();
19937 return 0;
19939 _ACEOF
19940 rm -f conftest.$ac_objext conftest$ac_exeext
19941 if { (ac_try="$ac_link"
19942 case "(($ac_try" in
19943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19944 *) ac_try_echo=$ac_try;;
19945 esac
19946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19947 (eval "$ac_link") 2>conftest.er1
19948 ac_status=$?
19949 grep -v '^ *+' conftest.er1 >conftest.err
19950 rm -f conftest.er1
19951 cat conftest.err >&5
19952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19953 (exit $ac_status); } && {
19954 test -z "$ac_c_werror_flag" ||
19955 test ! -s conftest.err
19956 } && test -s conftest$ac_exeext &&
19957 $as_test_x conftest$ac_exeext; then
19958 eval "$as_ac_var=yes"
19959 else
19960 echo "$as_me: failed program was:" >&5
19961 sed 's/^/| /' conftest.$ac_ext >&5
19963 eval "$as_ac_var=no"
19966 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19967 conftest$ac_exeext conftest.$ac_ext
19969 ac_res=`eval echo '${'$as_ac_var'}'`
19970 { echo "$as_me:$LINENO: result: $ac_res" >&5
19971 echo "${ECHO_T}$ac_res" >&6; }
19972 if test `eval echo '${'$as_ac_var'}'` = yes; then
19973 cat >>confdefs.h <<_ACEOF
19974 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19975 _ACEOF
19978 done
19981 # check for long file support functions
19988 for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs
19990 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19991 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19992 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19993 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19994 echo $ECHO_N "(cached) $ECHO_C" >&6
19995 else
19996 cat >conftest.$ac_ext <<_ACEOF
19997 /* confdefs.h. */
19998 _ACEOF
19999 cat confdefs.h >>conftest.$ac_ext
20000 cat >>conftest.$ac_ext <<_ACEOF
20001 /* end confdefs.h. */
20002 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20003 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20004 #define $ac_func innocuous_$ac_func
20006 /* System header to define __stub macros and hopefully few prototypes,
20007 which can conflict with char $ac_func (); below.
20008 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20009 <limits.h> exists even on freestanding compilers. */
20011 #ifdef __STDC__
20012 # include <limits.h>
20013 #else
20014 # include <assert.h>
20015 #endif
20017 #undef $ac_func
20019 /* Override any GCC internal prototype to avoid an error.
20020 Use char because int might match the return type of a GCC
20021 builtin and then its argument prototype would still apply. */
20022 #ifdef __cplusplus
20023 extern "C"
20024 #endif
20025 char $ac_func ();
20026 /* The GNU C library defines this for functions which it implements
20027 to always fail with ENOSYS. Some functions are actually named
20028 something starting with __ and the normal name is an alias. */
20029 #if defined __stub_$ac_func || defined __stub___$ac_func
20030 choke me
20031 #endif
20034 main ()
20036 return $ac_func ();
20038 return 0;
20040 _ACEOF
20041 rm -f conftest.$ac_objext conftest$ac_exeext
20042 if { (ac_try="$ac_link"
20043 case "(($ac_try" in
20044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20045 *) ac_try_echo=$ac_try;;
20046 esac
20047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20048 (eval "$ac_link") 2>conftest.er1
20049 ac_status=$?
20050 grep -v '^ *+' conftest.er1 >conftest.err
20051 rm -f conftest.er1
20052 cat conftest.err >&5
20053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20054 (exit $ac_status); } && {
20055 test -z "$ac_c_werror_flag" ||
20056 test ! -s conftest.err
20057 } && test -s conftest$ac_exeext &&
20058 $as_test_x conftest$ac_exeext; then
20059 eval "$as_ac_var=yes"
20060 else
20061 echo "$as_me: failed program was:" >&5
20062 sed 's/^/| /' conftest.$ac_ext >&5
20064 eval "$as_ac_var=no"
20067 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20068 conftest$ac_exeext conftest.$ac_ext
20070 ac_res=`eval echo '${'$as_ac_var'}'`
20071 { echo "$as_me:$LINENO: result: $ac_res" >&5
20072 echo "${ECHO_T}$ac_res" >&6; }
20073 if test `eval echo '${'$as_ac_var'}'` = yes; then
20074 cat >>confdefs.h <<_ACEOF
20075 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20076 _ACEOF
20079 done
20085 for ac_func in dup2 getcwd strdup
20087 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20088 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20089 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20090 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20091 echo $ECHO_N "(cached) $ECHO_C" >&6
20092 else
20093 cat >conftest.$ac_ext <<_ACEOF
20094 /* confdefs.h. */
20095 _ACEOF
20096 cat confdefs.h >>conftest.$ac_ext
20097 cat >>conftest.$ac_ext <<_ACEOF
20098 /* end confdefs.h. */
20099 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20100 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20101 #define $ac_func innocuous_$ac_func
20103 /* System header to define __stub macros and hopefully few prototypes,
20104 which can conflict with char $ac_func (); below.
20105 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20106 <limits.h> exists even on freestanding compilers. */
20108 #ifdef __STDC__
20109 # include <limits.h>
20110 #else
20111 # include <assert.h>
20112 #endif
20114 #undef $ac_func
20116 /* Override any GCC internal prototype to avoid an error.
20117 Use char because int might match the return type of a GCC
20118 builtin and then its argument prototype would still apply. */
20119 #ifdef __cplusplus
20120 extern "C"
20121 #endif
20122 char $ac_func ();
20123 /* The GNU C library defines this for functions which it implements
20124 to always fail with ENOSYS. Some functions are actually named
20125 something starting with __ and the normal name is an alias. */
20126 #if defined __stub_$ac_func || defined __stub___$ac_func
20127 choke me
20128 #endif
20131 main ()
20133 return $ac_func ();
20135 return 0;
20137 _ACEOF
20138 rm -f conftest.$ac_objext conftest$ac_exeext
20139 if { (ac_try="$ac_link"
20140 case "(($ac_try" in
20141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20142 *) ac_try_echo=$ac_try;;
20143 esac
20144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20145 (eval "$ac_link") 2>conftest.er1
20146 ac_status=$?
20147 grep -v '^ *+' conftest.er1 >conftest.err
20148 rm -f conftest.er1
20149 cat conftest.err >&5
20150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20151 (exit $ac_status); } && {
20152 test -z "$ac_c_werror_flag" ||
20153 test ! -s conftest.err
20154 } && test -s conftest$ac_exeext &&
20155 $as_test_x conftest$ac_exeext; then
20156 eval "$as_ac_var=yes"
20157 else
20158 echo "$as_me: failed program was:" >&5
20159 sed 's/^/| /' conftest.$ac_ext >&5
20161 eval "$as_ac_var=no"
20164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20165 conftest$ac_exeext conftest.$ac_ext
20167 ac_res=`eval echo '${'$as_ac_var'}'`
20168 { echo "$as_me:$LINENO: result: $ac_res" >&5
20169 echo "${ECHO_T}$ac_res" >&6; }
20170 if test `eval echo '${'$as_ac_var'}'` = yes; then
20171 cat >>confdefs.h <<_ACEOF
20172 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20173 _ACEOF
20175 else
20176 case " $LIBOBJS " in
20177 *" $ac_func.$ac_objext "* ) ;;
20178 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20180 esac
20183 done
20187 for ac_func in getpgrp
20189 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20190 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20191 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20192 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20193 echo $ECHO_N "(cached) $ECHO_C" >&6
20194 else
20195 cat >conftest.$ac_ext <<_ACEOF
20196 /* confdefs.h. */
20197 _ACEOF
20198 cat confdefs.h >>conftest.$ac_ext
20199 cat >>conftest.$ac_ext <<_ACEOF
20200 /* end confdefs.h. */
20201 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20202 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20203 #define $ac_func innocuous_$ac_func
20205 /* System header to define __stub macros and hopefully few prototypes,
20206 which can conflict with char $ac_func (); below.
20207 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20208 <limits.h> exists even on freestanding compilers. */
20210 #ifdef __STDC__
20211 # include <limits.h>
20212 #else
20213 # include <assert.h>
20214 #endif
20216 #undef $ac_func
20218 /* Override any GCC internal prototype to avoid an error.
20219 Use char because int might match the return type of a GCC
20220 builtin and then its argument prototype would still apply. */
20221 #ifdef __cplusplus
20222 extern "C"
20223 #endif
20224 char $ac_func ();
20225 /* The GNU C library defines this for functions which it implements
20226 to always fail with ENOSYS. Some functions are actually named
20227 something starting with __ and the normal name is an alias. */
20228 #if defined __stub_$ac_func || defined __stub___$ac_func
20229 choke me
20230 #endif
20233 main ()
20235 return $ac_func ();
20237 return 0;
20239 _ACEOF
20240 rm -f conftest.$ac_objext conftest$ac_exeext
20241 if { (ac_try="$ac_link"
20242 case "(($ac_try" in
20243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20244 *) ac_try_echo=$ac_try;;
20245 esac
20246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20247 (eval "$ac_link") 2>conftest.er1
20248 ac_status=$?
20249 grep -v '^ *+' conftest.er1 >conftest.err
20250 rm -f conftest.er1
20251 cat conftest.err >&5
20252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20253 (exit $ac_status); } && {
20254 test -z "$ac_c_werror_flag" ||
20255 test ! -s conftest.err
20256 } && test -s conftest$ac_exeext &&
20257 $as_test_x conftest$ac_exeext; then
20258 eval "$as_ac_var=yes"
20259 else
20260 echo "$as_me: failed program was:" >&5
20261 sed 's/^/| /' conftest.$ac_ext >&5
20263 eval "$as_ac_var=no"
20266 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20267 conftest$ac_exeext conftest.$ac_ext
20269 ac_res=`eval echo '${'$as_ac_var'}'`
20270 { echo "$as_me:$LINENO: result: $ac_res" >&5
20271 echo "${ECHO_T}$ac_res" >&6; }
20272 if test `eval echo '${'$as_ac_var'}'` = yes; then
20273 cat >>confdefs.h <<_ACEOF
20274 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20275 _ACEOF
20276 cat >conftest.$ac_ext <<_ACEOF
20277 /* confdefs.h. */
20278 _ACEOF
20279 cat confdefs.h >>conftest.$ac_ext
20280 cat >>conftest.$ac_ext <<_ACEOF
20281 /* end confdefs.h. */
20282 #include <unistd.h>
20284 main ()
20286 getpgrp(0);
20288 return 0;
20290 _ACEOF
20291 rm -f conftest.$ac_objext
20292 if { (ac_try="$ac_compile"
20293 case "(($ac_try" in
20294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20295 *) ac_try_echo=$ac_try;;
20296 esac
20297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20298 (eval "$ac_compile") 2>conftest.er1
20299 ac_status=$?
20300 grep -v '^ *+' conftest.er1 >conftest.err
20301 rm -f conftest.er1
20302 cat conftest.err >&5
20303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20304 (exit $ac_status); } && {
20305 test -z "$ac_c_werror_flag" ||
20306 test ! -s conftest.err
20307 } && test -s conftest.$ac_objext; then
20309 cat >>confdefs.h <<\_ACEOF
20310 #define GETPGRP_HAVE_ARG 1
20311 _ACEOF
20314 else
20315 echo "$as_me: failed program was:" >&5
20316 sed 's/^/| /' conftest.$ac_ext >&5
20321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20324 done
20327 for ac_func in setpgrp
20329 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20330 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20331 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20332 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20333 echo $ECHO_N "(cached) $ECHO_C" >&6
20334 else
20335 cat >conftest.$ac_ext <<_ACEOF
20336 /* confdefs.h. */
20337 _ACEOF
20338 cat confdefs.h >>conftest.$ac_ext
20339 cat >>conftest.$ac_ext <<_ACEOF
20340 /* end confdefs.h. */
20341 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20342 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20343 #define $ac_func innocuous_$ac_func
20345 /* System header to define __stub macros and hopefully few prototypes,
20346 which can conflict with char $ac_func (); below.
20347 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20348 <limits.h> exists even on freestanding compilers. */
20350 #ifdef __STDC__
20351 # include <limits.h>
20352 #else
20353 # include <assert.h>
20354 #endif
20356 #undef $ac_func
20358 /* Override any GCC internal prototype to avoid an error.
20359 Use char because int might match the return type of a GCC
20360 builtin and then its argument prototype would still apply. */
20361 #ifdef __cplusplus
20362 extern "C"
20363 #endif
20364 char $ac_func ();
20365 /* The GNU C library defines this for functions which it implements
20366 to always fail with ENOSYS. Some functions are actually named
20367 something starting with __ and the normal name is an alias. */
20368 #if defined __stub_$ac_func || defined __stub___$ac_func
20369 choke me
20370 #endif
20373 main ()
20375 return $ac_func ();
20377 return 0;
20379 _ACEOF
20380 rm -f conftest.$ac_objext conftest$ac_exeext
20381 if { (ac_try="$ac_link"
20382 case "(($ac_try" in
20383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20384 *) ac_try_echo=$ac_try;;
20385 esac
20386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20387 (eval "$ac_link") 2>conftest.er1
20388 ac_status=$?
20389 grep -v '^ *+' conftest.er1 >conftest.err
20390 rm -f conftest.er1
20391 cat conftest.err >&5
20392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20393 (exit $ac_status); } && {
20394 test -z "$ac_c_werror_flag" ||
20395 test ! -s conftest.err
20396 } && test -s conftest$ac_exeext &&
20397 $as_test_x conftest$ac_exeext; then
20398 eval "$as_ac_var=yes"
20399 else
20400 echo "$as_me: failed program was:" >&5
20401 sed 's/^/| /' conftest.$ac_ext >&5
20403 eval "$as_ac_var=no"
20406 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20407 conftest$ac_exeext conftest.$ac_ext
20409 ac_res=`eval echo '${'$as_ac_var'}'`
20410 { echo "$as_me:$LINENO: result: $ac_res" >&5
20411 echo "${ECHO_T}$ac_res" >&6; }
20412 if test `eval echo '${'$as_ac_var'}'` = yes; then
20413 cat >>confdefs.h <<_ACEOF
20414 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20415 _ACEOF
20416 cat >conftest.$ac_ext <<_ACEOF
20417 /* confdefs.h. */
20418 _ACEOF
20419 cat confdefs.h >>conftest.$ac_ext
20420 cat >>conftest.$ac_ext <<_ACEOF
20421 /* end confdefs.h. */
20422 #include <unistd.h>
20424 main ()
20426 setpgrp(0,0);
20428 return 0;
20430 _ACEOF
20431 rm -f conftest.$ac_objext
20432 if { (ac_try="$ac_compile"
20433 case "(($ac_try" in
20434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20435 *) ac_try_echo=$ac_try;;
20436 esac
20437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20438 (eval "$ac_compile") 2>conftest.er1
20439 ac_status=$?
20440 grep -v '^ *+' conftest.er1 >conftest.err
20441 rm -f conftest.er1
20442 cat conftest.err >&5
20443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20444 (exit $ac_status); } && {
20445 test -z "$ac_c_werror_flag" ||
20446 test ! -s conftest.err
20447 } && test -s conftest.$ac_objext; then
20449 cat >>confdefs.h <<\_ACEOF
20450 #define SETPGRP_HAVE_ARG 1
20451 _ACEOF
20454 else
20455 echo "$as_me: failed program was:" >&5
20456 sed 's/^/| /' conftest.$ac_ext >&5
20461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20464 done
20467 for ac_func in gettimeofday
20469 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20470 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20471 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20472 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20473 echo $ECHO_N "(cached) $ECHO_C" >&6
20474 else
20475 cat >conftest.$ac_ext <<_ACEOF
20476 /* confdefs.h. */
20477 _ACEOF
20478 cat confdefs.h >>conftest.$ac_ext
20479 cat >>conftest.$ac_ext <<_ACEOF
20480 /* end confdefs.h. */
20481 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20482 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20483 #define $ac_func innocuous_$ac_func
20485 /* System header to define __stub macros and hopefully few prototypes,
20486 which can conflict with char $ac_func (); below.
20487 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20488 <limits.h> exists even on freestanding compilers. */
20490 #ifdef __STDC__
20491 # include <limits.h>
20492 #else
20493 # include <assert.h>
20494 #endif
20496 #undef $ac_func
20498 /* Override any GCC internal prototype to avoid an error.
20499 Use char because int might match the return type of a GCC
20500 builtin and then its argument prototype would still apply. */
20501 #ifdef __cplusplus
20502 extern "C"
20503 #endif
20504 char $ac_func ();
20505 /* The GNU C library defines this for functions which it implements
20506 to always fail with ENOSYS. Some functions are actually named
20507 something starting with __ and the normal name is an alias. */
20508 #if defined __stub_$ac_func || defined __stub___$ac_func
20509 choke me
20510 #endif
20513 main ()
20515 return $ac_func ();
20517 return 0;
20519 _ACEOF
20520 rm -f conftest.$ac_objext conftest$ac_exeext
20521 if { (ac_try="$ac_link"
20522 case "(($ac_try" in
20523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20524 *) ac_try_echo=$ac_try;;
20525 esac
20526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20527 (eval "$ac_link") 2>conftest.er1
20528 ac_status=$?
20529 grep -v '^ *+' conftest.er1 >conftest.err
20530 rm -f conftest.er1
20531 cat conftest.err >&5
20532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20533 (exit $ac_status); } && {
20534 test -z "$ac_c_werror_flag" ||
20535 test ! -s conftest.err
20536 } && test -s conftest$ac_exeext &&
20537 $as_test_x conftest$ac_exeext; then
20538 eval "$as_ac_var=yes"
20539 else
20540 echo "$as_me: failed program was:" >&5
20541 sed 's/^/| /' conftest.$ac_ext >&5
20543 eval "$as_ac_var=no"
20546 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20547 conftest$ac_exeext conftest.$ac_ext
20549 ac_res=`eval echo '${'$as_ac_var'}'`
20550 { echo "$as_me:$LINENO: result: $ac_res" >&5
20551 echo "${ECHO_T}$ac_res" >&6; }
20552 if test `eval echo '${'$as_ac_var'}'` = yes; then
20553 cat >>confdefs.h <<_ACEOF
20554 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20555 _ACEOF
20556 cat >conftest.$ac_ext <<_ACEOF
20557 /* confdefs.h. */
20558 _ACEOF
20559 cat confdefs.h >>conftest.$ac_ext
20560 cat >>conftest.$ac_ext <<_ACEOF
20561 /* end confdefs.h. */
20562 #include <sys/time.h>
20564 main ()
20566 gettimeofday((struct timeval*)0,(struct timezone*)0);
20568 return 0;
20570 _ACEOF
20571 rm -f conftest.$ac_objext
20572 if { (ac_try="$ac_compile"
20573 case "(($ac_try" in
20574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20575 *) ac_try_echo=$ac_try;;
20576 esac
20577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20578 (eval "$ac_compile") 2>conftest.er1
20579 ac_status=$?
20580 grep -v '^ *+' conftest.er1 >conftest.err
20581 rm -f conftest.er1
20582 cat conftest.err >&5
20583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20584 (exit $ac_status); } && {
20585 test -z "$ac_c_werror_flag" ||
20586 test ! -s conftest.err
20587 } && test -s conftest.$ac_objext; then
20589 else
20590 echo "$as_me: failed program was:" >&5
20591 sed 's/^/| /' conftest.$ac_ext >&5
20594 cat >>confdefs.h <<\_ACEOF
20595 #define GETTIMEOFDAY_NO_TZ 1
20596 _ACEOF
20601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20604 done
20607 { echo "$as_me:$LINENO: checking for major" >&5
20608 echo $ECHO_N "checking for major... $ECHO_C" >&6; }
20609 cat >conftest.$ac_ext <<_ACEOF
20610 /* confdefs.h. */
20611 _ACEOF
20612 cat confdefs.h >>conftest.$ac_ext
20613 cat >>conftest.$ac_ext <<_ACEOF
20614 /* end confdefs.h. */
20616 #if defined(MAJOR_IN_MKDEV)
20617 #include <sys/mkdev.h>
20618 #elif defined(MAJOR_IN_SYSMACROS)
20619 #include <sys/sysmacros.h>
20620 #else
20621 #include <sys/types.h>
20622 #endif
20625 main ()
20628 makedev(major(0),minor(0));
20631 return 0;
20633 _ACEOF
20634 rm -f conftest.$ac_objext conftest$ac_exeext
20635 if { (ac_try="$ac_link"
20636 case "(($ac_try" in
20637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20638 *) ac_try_echo=$ac_try;;
20639 esac
20640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20641 (eval "$ac_link") 2>conftest.er1
20642 ac_status=$?
20643 grep -v '^ *+' conftest.er1 >conftest.err
20644 rm -f conftest.er1
20645 cat conftest.err >&5
20646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20647 (exit $ac_status); } && {
20648 test -z "$ac_c_werror_flag" ||
20649 test ! -s conftest.err
20650 } && test -s conftest$ac_exeext &&
20651 $as_test_x conftest$ac_exeext; then
20654 cat >>confdefs.h <<\_ACEOF
20655 #define HAVE_DEVICE_MACROS 1
20656 _ACEOF
20658 { echo "$as_me:$LINENO: result: yes" >&5
20659 echo "${ECHO_T}yes" >&6; }
20661 else
20662 echo "$as_me: failed program was:" >&5
20663 sed 's/^/| /' conftest.$ac_ext >&5
20666 { echo "$as_me:$LINENO: result: no" >&5
20667 echo "${ECHO_T}no" >&6; }
20671 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20672 conftest$ac_exeext conftest.$ac_ext
20674 # On OSF/1 V5.1, getaddrinfo is available, but a define
20675 # for [no]getaddrinfo in netdb.h.
20676 { echo "$as_me:$LINENO: checking for getaddrinfo" >&5
20677 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
20678 cat >conftest.$ac_ext <<_ACEOF
20679 /* confdefs.h. */
20680 _ACEOF
20681 cat confdefs.h >>conftest.$ac_ext
20682 cat >>conftest.$ac_ext <<_ACEOF
20683 /* end confdefs.h. */
20685 #include <sys/types.h>
20686 #include <sys/socket.h>
20687 #include <netdb.h>
20688 #include <stdio.h>
20691 main ()
20693 getaddrinfo(NULL, NULL, NULL, NULL);
20695 return 0;
20697 _ACEOF
20698 rm -f conftest.$ac_objext conftest$ac_exeext
20699 if { (ac_try="$ac_link"
20700 case "(($ac_try" in
20701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20702 *) ac_try_echo=$ac_try;;
20703 esac
20704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20705 (eval "$ac_link") 2>conftest.er1
20706 ac_status=$?
20707 grep -v '^ *+' conftest.er1 >conftest.err
20708 rm -f conftest.er1
20709 cat conftest.err >&5
20710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20711 (exit $ac_status); } && {
20712 test -z "$ac_c_werror_flag" ||
20713 test ! -s conftest.err
20714 } && test -s conftest$ac_exeext &&
20715 $as_test_x conftest$ac_exeext; then
20716 have_getaddrinfo=yes
20717 else
20718 echo "$as_me: failed program was:" >&5
20719 sed 's/^/| /' conftest.$ac_ext >&5
20721 have_getaddrinfo=no
20724 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20725 conftest$ac_exeext conftest.$ac_ext
20726 { echo "$as_me:$LINENO: result: $have_getaddrinfo" >&5
20727 echo "${ECHO_T}$have_getaddrinfo" >&6; }
20728 if test $have_getaddrinfo = yes
20729 then
20730 { echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
20731 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; }
20732 if test "${ac_cv_buggy_getaddrinfo+set}" = set; then
20733 echo $ECHO_N "(cached) $ECHO_C" >&6
20734 else
20735 if test "$cross_compiling" = yes; then
20736 ac_cv_buggy_getaddrinfo=yes
20737 else
20738 cat >conftest.$ac_ext <<_ACEOF
20739 /* confdefs.h. */
20740 _ACEOF
20741 cat confdefs.h >>conftest.$ac_ext
20742 cat >>conftest.$ac_ext <<_ACEOF
20743 /* end confdefs.h. */
20745 #include <sys/types.h>
20746 #include <netdb.h>
20747 #include <string.h>
20748 #include <sys/socket.h>
20749 #include <netinet/in.h>
20751 int main()
20753 int passive, gaierr, inet4 = 0, inet6 = 0;
20754 struct addrinfo hints, *ai, *aitop;
20755 char straddr[INET6_ADDRSTRLEN], strport[16];
20757 for (passive = 0; passive <= 1; passive++) {
20758 memset(&hints, 0, sizeof(hints));
20759 hints.ai_family = AF_UNSPEC;
20760 hints.ai_flags = passive ? AI_PASSIVE : 0;
20761 hints.ai_socktype = SOCK_STREAM;
20762 hints.ai_protocol = IPPROTO_TCP;
20763 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
20764 (void)gai_strerror(gaierr);
20765 goto bad;
20767 for (ai = aitop; ai; ai = ai->ai_next) {
20768 if (ai->ai_addr == NULL ||
20769 ai->ai_addrlen == 0 ||
20770 getnameinfo(ai->ai_addr, ai->ai_addrlen,
20771 straddr, sizeof(straddr), strport, sizeof(strport),
20772 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
20773 goto bad;
20775 switch (ai->ai_family) {
20776 case AF_INET:
20777 if (strcmp(strport, "54321") != 0) {
20778 goto bad;
20780 if (passive) {
20781 if (strcmp(straddr, "0.0.0.0") != 0) {
20782 goto bad;
20784 } else {
20785 if (strcmp(straddr, "127.0.0.1") != 0) {
20786 goto bad;
20789 inet4++;
20790 break;
20791 case AF_INET6:
20792 if (strcmp(strport, "54321") != 0) {
20793 goto bad;
20795 if (passive) {
20796 if (strcmp(straddr, "::") != 0) {
20797 goto bad;
20799 } else {
20800 if (strcmp(straddr, "::1") != 0) {
20801 goto bad;
20804 inet6++;
20805 break;
20806 case AF_UNSPEC:
20807 goto bad;
20808 break;
20809 default:
20810 /* another family support? */
20811 break;
20816 if (!(inet4 == 0 || inet4 == 2))
20817 goto bad;
20818 if (!(inet6 == 0 || inet6 == 2))
20819 goto bad;
20821 if (aitop)
20822 freeaddrinfo(aitop);
20823 return 0;
20825 bad:
20826 if (aitop)
20827 freeaddrinfo(aitop);
20828 return 1;
20831 _ACEOF
20832 rm -f conftest$ac_exeext
20833 if { (ac_try="$ac_link"
20834 case "(($ac_try" in
20835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20836 *) ac_try_echo=$ac_try;;
20837 esac
20838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20839 (eval "$ac_link") 2>&5
20840 ac_status=$?
20841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20842 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20843 { (case "(($ac_try" in
20844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20845 *) ac_try_echo=$ac_try;;
20846 esac
20847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20848 (eval "$ac_try") 2>&5
20849 ac_status=$?
20850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20851 (exit $ac_status); }; }; then
20852 ac_cv_buggy_getaddrinfo=no
20853 else
20854 echo "$as_me: program exited with status $ac_status" >&5
20855 echo "$as_me: failed program was:" >&5
20856 sed 's/^/| /' conftest.$ac_ext >&5
20858 ( exit $ac_status )
20859 ac_cv_buggy_getaddrinfo=yes
20861 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20869 if test $have_getaddrinfo = no -o $ac_cv_buggy_getaddrinfo = yes
20870 then
20871 if test $ipv6 = yes
20872 then
20873 echo 'Fatal: You must get working getaddrinfo() function.'
20874 echo ' or you can specify "--disable-ipv6"'.
20875 exit 1
20877 else
20879 cat >>confdefs.h <<\_ACEOF
20880 #define HAVE_GETADDRINFO 1
20881 _ACEOF
20885 for ac_func in getnameinfo
20887 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20888 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20889 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20890 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20891 echo $ECHO_N "(cached) $ECHO_C" >&6
20892 else
20893 cat >conftest.$ac_ext <<_ACEOF
20894 /* confdefs.h. */
20895 _ACEOF
20896 cat confdefs.h >>conftest.$ac_ext
20897 cat >>conftest.$ac_ext <<_ACEOF
20898 /* end confdefs.h. */
20899 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20900 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20901 #define $ac_func innocuous_$ac_func
20903 /* System header to define __stub macros and hopefully few prototypes,
20904 which can conflict with char $ac_func (); below.
20905 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20906 <limits.h> exists even on freestanding compilers. */
20908 #ifdef __STDC__
20909 # include <limits.h>
20910 #else
20911 # include <assert.h>
20912 #endif
20914 #undef $ac_func
20916 /* Override any GCC internal prototype to avoid an error.
20917 Use char because int might match the return type of a GCC
20918 builtin and then its argument prototype would still apply. */
20919 #ifdef __cplusplus
20920 extern "C"
20921 #endif
20922 char $ac_func ();
20923 /* The GNU C library defines this for functions which it implements
20924 to always fail with ENOSYS. Some functions are actually named
20925 something starting with __ and the normal name is an alias. */
20926 #if defined __stub_$ac_func || defined __stub___$ac_func
20927 choke me
20928 #endif
20931 main ()
20933 return $ac_func ();
20935 return 0;
20937 _ACEOF
20938 rm -f conftest.$ac_objext conftest$ac_exeext
20939 if { (ac_try="$ac_link"
20940 case "(($ac_try" in
20941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20942 *) ac_try_echo=$ac_try;;
20943 esac
20944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20945 (eval "$ac_link") 2>conftest.er1
20946 ac_status=$?
20947 grep -v '^ *+' conftest.er1 >conftest.err
20948 rm -f conftest.er1
20949 cat conftest.err >&5
20950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20951 (exit $ac_status); } && {
20952 test -z "$ac_c_werror_flag" ||
20953 test ! -s conftest.err
20954 } && test -s conftest$ac_exeext &&
20955 $as_test_x conftest$ac_exeext; then
20956 eval "$as_ac_var=yes"
20957 else
20958 echo "$as_me: failed program was:" >&5
20959 sed 's/^/| /' conftest.$ac_ext >&5
20961 eval "$as_ac_var=no"
20964 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20965 conftest$ac_exeext conftest.$ac_ext
20967 ac_res=`eval echo '${'$as_ac_var'}'`
20968 { echo "$as_me:$LINENO: result: $ac_res" >&5
20969 echo "${ECHO_T}$ac_res" >&6; }
20970 if test `eval echo '${'$as_ac_var'}'` = yes; then
20971 cat >>confdefs.h <<_ACEOF
20972 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20973 _ACEOF
20976 done
20979 # checks for structures
20980 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20981 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
20982 if test "${ac_cv_header_time+set}" = set; then
20983 echo $ECHO_N "(cached) $ECHO_C" >&6
20984 else
20985 cat >conftest.$ac_ext <<_ACEOF
20986 /* confdefs.h. */
20987 _ACEOF
20988 cat confdefs.h >>conftest.$ac_ext
20989 cat >>conftest.$ac_ext <<_ACEOF
20990 /* end confdefs.h. */
20991 #include <sys/types.h>
20992 #include <sys/time.h>
20993 #include <time.h>
20996 main ()
20998 if ((struct tm *) 0)
20999 return 0;
21001 return 0;
21003 _ACEOF
21004 rm -f conftest.$ac_objext
21005 if { (ac_try="$ac_compile"
21006 case "(($ac_try" in
21007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21008 *) ac_try_echo=$ac_try;;
21009 esac
21010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21011 (eval "$ac_compile") 2>conftest.er1
21012 ac_status=$?
21013 grep -v '^ *+' conftest.er1 >conftest.err
21014 rm -f conftest.er1
21015 cat conftest.err >&5
21016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21017 (exit $ac_status); } && {
21018 test -z "$ac_c_werror_flag" ||
21019 test ! -s conftest.err
21020 } && test -s conftest.$ac_objext; then
21021 ac_cv_header_time=yes
21022 else
21023 echo "$as_me: failed program was:" >&5
21024 sed 's/^/| /' conftest.$ac_ext >&5
21026 ac_cv_header_time=no
21029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21031 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21032 echo "${ECHO_T}$ac_cv_header_time" >&6; }
21033 if test $ac_cv_header_time = yes; then
21035 cat >>confdefs.h <<\_ACEOF
21036 #define TIME_WITH_SYS_TIME 1
21037 _ACEOF
21041 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
21042 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
21043 if test "${ac_cv_struct_tm+set}" = set; then
21044 echo $ECHO_N "(cached) $ECHO_C" >&6
21045 else
21046 cat >conftest.$ac_ext <<_ACEOF
21047 /* confdefs.h. */
21048 _ACEOF
21049 cat confdefs.h >>conftest.$ac_ext
21050 cat >>conftest.$ac_ext <<_ACEOF
21051 /* end confdefs.h. */
21052 #include <sys/types.h>
21053 #include <time.h>
21056 main ()
21058 struct tm tm;
21059 int *p = &tm.tm_sec;
21060 return !p;
21062 return 0;
21064 _ACEOF
21065 rm -f conftest.$ac_objext
21066 if { (ac_try="$ac_compile"
21067 case "(($ac_try" in
21068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21069 *) ac_try_echo=$ac_try;;
21070 esac
21071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21072 (eval "$ac_compile") 2>conftest.er1
21073 ac_status=$?
21074 grep -v '^ *+' conftest.er1 >conftest.err
21075 rm -f conftest.er1
21076 cat conftest.err >&5
21077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21078 (exit $ac_status); } && {
21079 test -z "$ac_c_werror_flag" ||
21080 test ! -s conftest.err
21081 } && test -s conftest.$ac_objext; then
21082 ac_cv_struct_tm=time.h
21083 else
21084 echo "$as_me: failed program was:" >&5
21085 sed 's/^/| /' conftest.$ac_ext >&5
21087 ac_cv_struct_tm=sys/time.h
21090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21092 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
21093 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
21094 if test $ac_cv_struct_tm = sys/time.h; then
21096 cat >>confdefs.h <<\_ACEOF
21097 #define TM_IN_SYS_TIME 1
21098 _ACEOF
21102 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
21103 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
21104 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
21105 echo $ECHO_N "(cached) $ECHO_C" >&6
21106 else
21107 cat >conftest.$ac_ext <<_ACEOF
21108 /* confdefs.h. */
21109 _ACEOF
21110 cat confdefs.h >>conftest.$ac_ext
21111 cat >>conftest.$ac_ext <<_ACEOF
21112 /* end confdefs.h. */
21113 #include <sys/types.h>
21114 #include <$ac_cv_struct_tm>
21118 main ()
21120 static struct tm ac_aggr;
21121 if (ac_aggr.tm_zone)
21122 return 0;
21124 return 0;
21126 _ACEOF
21127 rm -f conftest.$ac_objext
21128 if { (ac_try="$ac_compile"
21129 case "(($ac_try" in
21130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21131 *) ac_try_echo=$ac_try;;
21132 esac
21133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21134 (eval "$ac_compile") 2>conftest.er1
21135 ac_status=$?
21136 grep -v '^ *+' conftest.er1 >conftest.err
21137 rm -f conftest.er1
21138 cat conftest.err >&5
21139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21140 (exit $ac_status); } && {
21141 test -z "$ac_c_werror_flag" ||
21142 test ! -s conftest.err
21143 } && test -s conftest.$ac_objext; then
21144 ac_cv_member_struct_tm_tm_zone=yes
21145 else
21146 echo "$as_me: failed program was:" >&5
21147 sed 's/^/| /' conftest.$ac_ext >&5
21149 cat >conftest.$ac_ext <<_ACEOF
21150 /* confdefs.h. */
21151 _ACEOF
21152 cat confdefs.h >>conftest.$ac_ext
21153 cat >>conftest.$ac_ext <<_ACEOF
21154 /* end confdefs.h. */
21155 #include <sys/types.h>
21156 #include <$ac_cv_struct_tm>
21160 main ()
21162 static struct tm ac_aggr;
21163 if (sizeof ac_aggr.tm_zone)
21164 return 0;
21166 return 0;
21168 _ACEOF
21169 rm -f conftest.$ac_objext
21170 if { (ac_try="$ac_compile"
21171 case "(($ac_try" in
21172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21173 *) ac_try_echo=$ac_try;;
21174 esac
21175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21176 (eval "$ac_compile") 2>conftest.er1
21177 ac_status=$?
21178 grep -v '^ *+' conftest.er1 >conftest.err
21179 rm -f conftest.er1
21180 cat conftest.err >&5
21181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21182 (exit $ac_status); } && {
21183 test -z "$ac_c_werror_flag" ||
21184 test ! -s conftest.err
21185 } && test -s conftest.$ac_objext; then
21186 ac_cv_member_struct_tm_tm_zone=yes
21187 else
21188 echo "$as_me: failed program was:" >&5
21189 sed 's/^/| /' conftest.$ac_ext >&5
21191 ac_cv_member_struct_tm_tm_zone=no
21194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21199 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
21200 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
21201 if test $ac_cv_member_struct_tm_tm_zone = yes; then
21203 cat >>confdefs.h <<_ACEOF
21204 #define HAVE_STRUCT_TM_TM_ZONE 1
21205 _ACEOF
21210 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21212 cat >>confdefs.h <<\_ACEOF
21213 #define HAVE_TM_ZONE 1
21214 _ACEOF
21216 else
21217 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
21218 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
21219 if test "${ac_cv_have_decl_tzname+set}" = set; then
21220 echo $ECHO_N "(cached) $ECHO_C" >&6
21221 else
21222 cat >conftest.$ac_ext <<_ACEOF
21223 /* confdefs.h. */
21224 _ACEOF
21225 cat confdefs.h >>conftest.$ac_ext
21226 cat >>conftest.$ac_ext <<_ACEOF
21227 /* end confdefs.h. */
21228 #include <time.h>
21231 main ()
21233 #ifndef tzname
21234 (void) tzname;
21235 #endif
21238 return 0;
21240 _ACEOF
21241 rm -f conftest.$ac_objext
21242 if { (ac_try="$ac_compile"
21243 case "(($ac_try" in
21244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21245 *) ac_try_echo=$ac_try;;
21246 esac
21247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21248 (eval "$ac_compile") 2>conftest.er1
21249 ac_status=$?
21250 grep -v '^ *+' conftest.er1 >conftest.err
21251 rm -f conftest.er1
21252 cat conftest.err >&5
21253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21254 (exit $ac_status); } && {
21255 test -z "$ac_c_werror_flag" ||
21256 test ! -s conftest.err
21257 } && test -s conftest.$ac_objext; then
21258 ac_cv_have_decl_tzname=yes
21259 else
21260 echo "$as_me: failed program was:" >&5
21261 sed 's/^/| /' conftest.$ac_ext >&5
21263 ac_cv_have_decl_tzname=no
21266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21268 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
21269 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
21270 if test $ac_cv_have_decl_tzname = yes; then
21272 cat >>confdefs.h <<_ACEOF
21273 #define HAVE_DECL_TZNAME 1
21274 _ACEOF
21277 else
21278 cat >>confdefs.h <<_ACEOF
21279 #define HAVE_DECL_TZNAME 0
21280 _ACEOF
21286 { echo "$as_me:$LINENO: checking for tzname" >&5
21287 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
21288 if test "${ac_cv_var_tzname+set}" = set; then
21289 echo $ECHO_N "(cached) $ECHO_C" >&6
21290 else
21291 cat >conftest.$ac_ext <<_ACEOF
21292 /* confdefs.h. */
21293 _ACEOF
21294 cat confdefs.h >>conftest.$ac_ext
21295 cat >>conftest.$ac_ext <<_ACEOF
21296 /* end confdefs.h. */
21297 #include <time.h>
21298 #if !HAVE_DECL_TZNAME
21299 extern char *tzname[];
21300 #endif
21303 main ()
21305 return tzname[0][0];
21307 return 0;
21309 _ACEOF
21310 rm -f conftest.$ac_objext conftest$ac_exeext
21311 if { (ac_try="$ac_link"
21312 case "(($ac_try" in
21313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21314 *) ac_try_echo=$ac_try;;
21315 esac
21316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21317 (eval "$ac_link") 2>conftest.er1
21318 ac_status=$?
21319 grep -v '^ *+' conftest.er1 >conftest.err
21320 rm -f conftest.er1
21321 cat conftest.err >&5
21322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21323 (exit $ac_status); } && {
21324 test -z "$ac_c_werror_flag" ||
21325 test ! -s conftest.err
21326 } && test -s conftest$ac_exeext &&
21327 $as_test_x conftest$ac_exeext; then
21328 ac_cv_var_tzname=yes
21329 else
21330 echo "$as_me: failed program was:" >&5
21331 sed 's/^/| /' conftest.$ac_ext >&5
21333 ac_cv_var_tzname=no
21336 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21337 conftest$ac_exeext conftest.$ac_ext
21339 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21340 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
21341 if test $ac_cv_var_tzname = yes; then
21343 cat >>confdefs.h <<\_ACEOF
21344 #define HAVE_TZNAME 1
21345 _ACEOF
21350 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
21351 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
21352 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
21353 echo $ECHO_N "(cached) $ECHO_C" >&6
21354 else
21355 cat >conftest.$ac_ext <<_ACEOF
21356 /* confdefs.h. */
21357 _ACEOF
21358 cat confdefs.h >>conftest.$ac_ext
21359 cat >>conftest.$ac_ext <<_ACEOF
21360 /* end confdefs.h. */
21361 $ac_includes_default
21363 main ()
21365 static struct stat ac_aggr;
21366 if (ac_aggr.st_rdev)
21367 return 0;
21369 return 0;
21371 _ACEOF
21372 rm -f conftest.$ac_objext
21373 if { (ac_try="$ac_compile"
21374 case "(($ac_try" in
21375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21376 *) ac_try_echo=$ac_try;;
21377 esac
21378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21379 (eval "$ac_compile") 2>conftest.er1
21380 ac_status=$?
21381 grep -v '^ *+' conftest.er1 >conftest.err
21382 rm -f conftest.er1
21383 cat conftest.err >&5
21384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21385 (exit $ac_status); } && {
21386 test -z "$ac_c_werror_flag" ||
21387 test ! -s conftest.err
21388 } && test -s conftest.$ac_objext; then
21389 ac_cv_member_struct_stat_st_rdev=yes
21390 else
21391 echo "$as_me: failed program was:" >&5
21392 sed 's/^/| /' conftest.$ac_ext >&5
21394 cat >conftest.$ac_ext <<_ACEOF
21395 /* confdefs.h. */
21396 _ACEOF
21397 cat confdefs.h >>conftest.$ac_ext
21398 cat >>conftest.$ac_ext <<_ACEOF
21399 /* end confdefs.h. */
21400 $ac_includes_default
21402 main ()
21404 static struct stat ac_aggr;
21405 if (sizeof ac_aggr.st_rdev)
21406 return 0;
21408 return 0;
21410 _ACEOF
21411 rm -f conftest.$ac_objext
21412 if { (ac_try="$ac_compile"
21413 case "(($ac_try" in
21414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21415 *) ac_try_echo=$ac_try;;
21416 esac
21417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21418 (eval "$ac_compile") 2>conftest.er1
21419 ac_status=$?
21420 grep -v '^ *+' conftest.er1 >conftest.err
21421 rm -f conftest.er1
21422 cat conftest.err >&5
21423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21424 (exit $ac_status); } && {
21425 test -z "$ac_c_werror_flag" ||
21426 test ! -s conftest.err
21427 } && test -s conftest.$ac_objext; then
21428 ac_cv_member_struct_stat_st_rdev=yes
21429 else
21430 echo "$as_me: failed program was:" >&5
21431 sed 's/^/| /' conftest.$ac_ext >&5
21433 ac_cv_member_struct_stat_st_rdev=no
21436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21441 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
21442 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
21443 if test $ac_cv_member_struct_stat_st_rdev = yes; then
21445 cat >>confdefs.h <<_ACEOF
21446 #define HAVE_STRUCT_STAT_ST_RDEV 1
21447 _ACEOF
21452 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
21453 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
21454 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
21455 echo $ECHO_N "(cached) $ECHO_C" >&6
21456 else
21457 cat >conftest.$ac_ext <<_ACEOF
21458 /* confdefs.h. */
21459 _ACEOF
21460 cat confdefs.h >>conftest.$ac_ext
21461 cat >>conftest.$ac_ext <<_ACEOF
21462 /* end confdefs.h. */
21463 $ac_includes_default
21465 main ()
21467 static struct stat ac_aggr;
21468 if (ac_aggr.st_blksize)
21469 return 0;
21471 return 0;
21473 _ACEOF
21474 rm -f conftest.$ac_objext
21475 if { (ac_try="$ac_compile"
21476 case "(($ac_try" in
21477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21478 *) ac_try_echo=$ac_try;;
21479 esac
21480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21481 (eval "$ac_compile") 2>conftest.er1
21482 ac_status=$?
21483 grep -v '^ *+' conftest.er1 >conftest.err
21484 rm -f conftest.er1
21485 cat conftest.err >&5
21486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21487 (exit $ac_status); } && {
21488 test -z "$ac_c_werror_flag" ||
21489 test ! -s conftest.err
21490 } && test -s conftest.$ac_objext; then
21491 ac_cv_member_struct_stat_st_blksize=yes
21492 else
21493 echo "$as_me: failed program was:" >&5
21494 sed 's/^/| /' conftest.$ac_ext >&5
21496 cat >conftest.$ac_ext <<_ACEOF
21497 /* confdefs.h. */
21498 _ACEOF
21499 cat confdefs.h >>conftest.$ac_ext
21500 cat >>conftest.$ac_ext <<_ACEOF
21501 /* end confdefs.h. */
21502 $ac_includes_default
21504 main ()
21506 static struct stat ac_aggr;
21507 if (sizeof ac_aggr.st_blksize)
21508 return 0;
21510 return 0;
21512 _ACEOF
21513 rm -f conftest.$ac_objext
21514 if { (ac_try="$ac_compile"
21515 case "(($ac_try" in
21516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21517 *) ac_try_echo=$ac_try;;
21518 esac
21519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21520 (eval "$ac_compile") 2>conftest.er1
21521 ac_status=$?
21522 grep -v '^ *+' conftest.er1 >conftest.err
21523 rm -f conftest.er1
21524 cat conftest.err >&5
21525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21526 (exit $ac_status); } && {
21527 test -z "$ac_c_werror_flag" ||
21528 test ! -s conftest.err
21529 } && test -s conftest.$ac_objext; then
21530 ac_cv_member_struct_stat_st_blksize=yes
21531 else
21532 echo "$as_me: failed program was:" >&5
21533 sed 's/^/| /' conftest.$ac_ext >&5
21535 ac_cv_member_struct_stat_st_blksize=no
21538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21543 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
21544 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
21545 if test $ac_cv_member_struct_stat_st_blksize = yes; then
21547 cat >>confdefs.h <<_ACEOF
21548 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
21549 _ACEOF
21554 { echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
21555 echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6; }
21556 if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
21557 echo $ECHO_N "(cached) $ECHO_C" >&6
21558 else
21559 cat >conftest.$ac_ext <<_ACEOF
21560 /* confdefs.h. */
21561 _ACEOF
21562 cat confdefs.h >>conftest.$ac_ext
21563 cat >>conftest.$ac_ext <<_ACEOF
21564 /* end confdefs.h. */
21565 $ac_includes_default
21567 main ()
21569 static struct stat ac_aggr;
21570 if (ac_aggr.st_flags)
21571 return 0;
21573 return 0;
21575 _ACEOF
21576 rm -f conftest.$ac_objext
21577 if { (ac_try="$ac_compile"
21578 case "(($ac_try" in
21579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21580 *) ac_try_echo=$ac_try;;
21581 esac
21582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21583 (eval "$ac_compile") 2>conftest.er1
21584 ac_status=$?
21585 grep -v '^ *+' conftest.er1 >conftest.err
21586 rm -f conftest.er1
21587 cat conftest.err >&5
21588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21589 (exit $ac_status); } && {
21590 test -z "$ac_c_werror_flag" ||
21591 test ! -s conftest.err
21592 } && test -s conftest.$ac_objext; then
21593 ac_cv_member_struct_stat_st_flags=yes
21594 else
21595 echo "$as_me: failed program was:" >&5
21596 sed 's/^/| /' conftest.$ac_ext >&5
21598 cat >conftest.$ac_ext <<_ACEOF
21599 /* confdefs.h. */
21600 _ACEOF
21601 cat confdefs.h >>conftest.$ac_ext
21602 cat >>conftest.$ac_ext <<_ACEOF
21603 /* end confdefs.h. */
21604 $ac_includes_default
21606 main ()
21608 static struct stat ac_aggr;
21609 if (sizeof ac_aggr.st_flags)
21610 return 0;
21612 return 0;
21614 _ACEOF
21615 rm -f conftest.$ac_objext
21616 if { (ac_try="$ac_compile"
21617 case "(($ac_try" in
21618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21619 *) ac_try_echo=$ac_try;;
21620 esac
21621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21622 (eval "$ac_compile") 2>conftest.er1
21623 ac_status=$?
21624 grep -v '^ *+' conftest.er1 >conftest.err
21625 rm -f conftest.er1
21626 cat conftest.err >&5
21627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21628 (exit $ac_status); } && {
21629 test -z "$ac_c_werror_flag" ||
21630 test ! -s conftest.err
21631 } && test -s conftest.$ac_objext; then
21632 ac_cv_member_struct_stat_st_flags=yes
21633 else
21634 echo "$as_me: failed program was:" >&5
21635 sed 's/^/| /' conftest.$ac_ext >&5
21637 ac_cv_member_struct_stat_st_flags=no
21640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21645 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
21646 echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6; }
21647 if test $ac_cv_member_struct_stat_st_flags = yes; then
21649 cat >>confdefs.h <<_ACEOF
21650 #define HAVE_STRUCT_STAT_ST_FLAGS 1
21651 _ACEOF
21656 { echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
21657 echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6; }
21658 if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
21659 echo $ECHO_N "(cached) $ECHO_C" >&6
21660 else
21661 cat >conftest.$ac_ext <<_ACEOF
21662 /* confdefs.h. */
21663 _ACEOF
21664 cat confdefs.h >>conftest.$ac_ext
21665 cat >>conftest.$ac_ext <<_ACEOF
21666 /* end confdefs.h. */
21667 $ac_includes_default
21669 main ()
21671 static struct stat ac_aggr;
21672 if (ac_aggr.st_gen)
21673 return 0;
21675 return 0;
21677 _ACEOF
21678 rm -f conftest.$ac_objext
21679 if { (ac_try="$ac_compile"
21680 case "(($ac_try" in
21681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21682 *) ac_try_echo=$ac_try;;
21683 esac
21684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21685 (eval "$ac_compile") 2>conftest.er1
21686 ac_status=$?
21687 grep -v '^ *+' conftest.er1 >conftest.err
21688 rm -f conftest.er1
21689 cat conftest.err >&5
21690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21691 (exit $ac_status); } && {
21692 test -z "$ac_c_werror_flag" ||
21693 test ! -s conftest.err
21694 } && test -s conftest.$ac_objext; then
21695 ac_cv_member_struct_stat_st_gen=yes
21696 else
21697 echo "$as_me: failed program was:" >&5
21698 sed 's/^/| /' conftest.$ac_ext >&5
21700 cat >conftest.$ac_ext <<_ACEOF
21701 /* confdefs.h. */
21702 _ACEOF
21703 cat confdefs.h >>conftest.$ac_ext
21704 cat >>conftest.$ac_ext <<_ACEOF
21705 /* end confdefs.h. */
21706 $ac_includes_default
21708 main ()
21710 static struct stat ac_aggr;
21711 if (sizeof ac_aggr.st_gen)
21712 return 0;
21714 return 0;
21716 _ACEOF
21717 rm -f conftest.$ac_objext
21718 if { (ac_try="$ac_compile"
21719 case "(($ac_try" in
21720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21721 *) ac_try_echo=$ac_try;;
21722 esac
21723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21724 (eval "$ac_compile") 2>conftest.er1
21725 ac_status=$?
21726 grep -v '^ *+' conftest.er1 >conftest.err
21727 rm -f conftest.er1
21728 cat conftest.err >&5
21729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21730 (exit $ac_status); } && {
21731 test -z "$ac_c_werror_flag" ||
21732 test ! -s conftest.err
21733 } && test -s conftest.$ac_objext; then
21734 ac_cv_member_struct_stat_st_gen=yes
21735 else
21736 echo "$as_me: failed program was:" >&5
21737 sed 's/^/| /' conftest.$ac_ext >&5
21739 ac_cv_member_struct_stat_st_gen=no
21742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21747 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
21748 echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6; }
21749 if test $ac_cv_member_struct_stat_st_gen = yes; then
21751 cat >>confdefs.h <<_ACEOF
21752 #define HAVE_STRUCT_STAT_ST_GEN 1
21753 _ACEOF
21758 { echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
21759 echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6; }
21760 if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
21761 echo $ECHO_N "(cached) $ECHO_C" >&6
21762 else
21763 cat >conftest.$ac_ext <<_ACEOF
21764 /* confdefs.h. */
21765 _ACEOF
21766 cat confdefs.h >>conftest.$ac_ext
21767 cat >>conftest.$ac_ext <<_ACEOF
21768 /* end confdefs.h. */
21769 $ac_includes_default
21771 main ()
21773 static struct stat ac_aggr;
21774 if (ac_aggr.st_birthtime)
21775 return 0;
21777 return 0;
21779 _ACEOF
21780 rm -f conftest.$ac_objext
21781 if { (ac_try="$ac_compile"
21782 case "(($ac_try" in
21783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21784 *) ac_try_echo=$ac_try;;
21785 esac
21786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21787 (eval "$ac_compile") 2>conftest.er1
21788 ac_status=$?
21789 grep -v '^ *+' conftest.er1 >conftest.err
21790 rm -f conftest.er1
21791 cat conftest.err >&5
21792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21793 (exit $ac_status); } && {
21794 test -z "$ac_c_werror_flag" ||
21795 test ! -s conftest.err
21796 } && test -s conftest.$ac_objext; then
21797 ac_cv_member_struct_stat_st_birthtime=yes
21798 else
21799 echo "$as_me: failed program was:" >&5
21800 sed 's/^/| /' conftest.$ac_ext >&5
21802 cat >conftest.$ac_ext <<_ACEOF
21803 /* confdefs.h. */
21804 _ACEOF
21805 cat confdefs.h >>conftest.$ac_ext
21806 cat >>conftest.$ac_ext <<_ACEOF
21807 /* end confdefs.h. */
21808 $ac_includes_default
21810 main ()
21812 static struct stat ac_aggr;
21813 if (sizeof ac_aggr.st_birthtime)
21814 return 0;
21816 return 0;
21818 _ACEOF
21819 rm -f conftest.$ac_objext
21820 if { (ac_try="$ac_compile"
21821 case "(($ac_try" in
21822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21823 *) ac_try_echo=$ac_try;;
21824 esac
21825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21826 (eval "$ac_compile") 2>conftest.er1
21827 ac_status=$?
21828 grep -v '^ *+' conftest.er1 >conftest.err
21829 rm -f conftest.er1
21830 cat conftest.err >&5
21831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21832 (exit $ac_status); } && {
21833 test -z "$ac_c_werror_flag" ||
21834 test ! -s conftest.err
21835 } && test -s conftest.$ac_objext; then
21836 ac_cv_member_struct_stat_st_birthtime=yes
21837 else
21838 echo "$as_me: failed program was:" >&5
21839 sed 's/^/| /' conftest.$ac_ext >&5
21841 ac_cv_member_struct_stat_st_birthtime=no
21844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21849 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
21850 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6; }
21851 if test $ac_cv_member_struct_stat_st_birthtime = yes; then
21853 cat >>confdefs.h <<_ACEOF
21854 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
21855 _ACEOF
21860 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
21861 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
21862 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
21863 echo $ECHO_N "(cached) $ECHO_C" >&6
21864 else
21865 cat >conftest.$ac_ext <<_ACEOF
21866 /* confdefs.h. */
21867 _ACEOF
21868 cat confdefs.h >>conftest.$ac_ext
21869 cat >>conftest.$ac_ext <<_ACEOF
21870 /* end confdefs.h. */
21871 $ac_includes_default
21873 main ()
21875 static struct stat ac_aggr;
21876 if (ac_aggr.st_blocks)
21877 return 0;
21879 return 0;
21881 _ACEOF
21882 rm -f conftest.$ac_objext
21883 if { (ac_try="$ac_compile"
21884 case "(($ac_try" in
21885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21886 *) ac_try_echo=$ac_try;;
21887 esac
21888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21889 (eval "$ac_compile") 2>conftest.er1
21890 ac_status=$?
21891 grep -v '^ *+' conftest.er1 >conftest.err
21892 rm -f conftest.er1
21893 cat conftest.err >&5
21894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21895 (exit $ac_status); } && {
21896 test -z "$ac_c_werror_flag" ||
21897 test ! -s conftest.err
21898 } && test -s conftest.$ac_objext; then
21899 ac_cv_member_struct_stat_st_blocks=yes
21900 else
21901 echo "$as_me: failed program was:" >&5
21902 sed 's/^/| /' conftest.$ac_ext >&5
21904 cat >conftest.$ac_ext <<_ACEOF
21905 /* confdefs.h. */
21906 _ACEOF
21907 cat confdefs.h >>conftest.$ac_ext
21908 cat >>conftest.$ac_ext <<_ACEOF
21909 /* end confdefs.h. */
21910 $ac_includes_default
21912 main ()
21914 static struct stat ac_aggr;
21915 if (sizeof ac_aggr.st_blocks)
21916 return 0;
21918 return 0;
21920 _ACEOF
21921 rm -f conftest.$ac_objext
21922 if { (ac_try="$ac_compile"
21923 case "(($ac_try" in
21924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21925 *) ac_try_echo=$ac_try;;
21926 esac
21927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21928 (eval "$ac_compile") 2>conftest.er1
21929 ac_status=$?
21930 grep -v '^ *+' conftest.er1 >conftest.err
21931 rm -f conftest.er1
21932 cat conftest.err >&5
21933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21934 (exit $ac_status); } && {
21935 test -z "$ac_c_werror_flag" ||
21936 test ! -s conftest.err
21937 } && test -s conftest.$ac_objext; then
21938 ac_cv_member_struct_stat_st_blocks=yes
21939 else
21940 echo "$as_me: failed program was:" >&5
21941 sed 's/^/| /' conftest.$ac_ext >&5
21943 ac_cv_member_struct_stat_st_blocks=no
21946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21951 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
21952 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
21953 if test $ac_cv_member_struct_stat_st_blocks = yes; then
21955 cat >>confdefs.h <<_ACEOF
21956 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
21957 _ACEOF
21960 cat >>confdefs.h <<\_ACEOF
21961 #define HAVE_ST_BLOCKS 1
21962 _ACEOF
21964 else
21965 case " $LIBOBJS " in
21966 *" fileblocks.$ac_objext "* ) ;;
21967 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
21969 esac
21975 { echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
21976 echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6; }
21977 if test "${ac_cv_header_time_altzone+set}" = set; then
21978 echo $ECHO_N "(cached) $ECHO_C" >&6
21979 else
21980 cat >conftest.$ac_ext <<_ACEOF
21981 /* confdefs.h. */
21982 _ACEOF
21983 cat confdefs.h >>conftest.$ac_ext
21984 cat >>conftest.$ac_ext <<_ACEOF
21985 /* end confdefs.h. */
21986 #include <time.h>
21988 main ()
21990 return altzone;
21992 return 0;
21994 _ACEOF
21995 rm -f conftest.$ac_objext
21996 if { (ac_try="$ac_compile"
21997 case "(($ac_try" in
21998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21999 *) ac_try_echo=$ac_try;;
22000 esac
22001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22002 (eval "$ac_compile") 2>conftest.er1
22003 ac_status=$?
22004 grep -v '^ *+' conftest.er1 >conftest.err
22005 rm -f conftest.er1
22006 cat conftest.err >&5
22007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22008 (exit $ac_status); } && {
22009 test -z "$ac_c_werror_flag" ||
22010 test ! -s conftest.err
22011 } && test -s conftest.$ac_objext; then
22012 ac_cv_header_time_altzone=yes
22013 else
22014 echo "$as_me: failed program was:" >&5
22015 sed 's/^/| /' conftest.$ac_ext >&5
22017 ac_cv_header_time_altzone=no
22020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22023 { echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
22024 echo "${ECHO_T}$ac_cv_header_time_altzone" >&6; }
22025 if test $ac_cv_header_time_altzone = yes; then
22027 cat >>confdefs.h <<\_ACEOF
22028 #define HAVE_ALTZONE 1
22029 _ACEOF
22033 was_it_defined=no
22034 { echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
22035 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6; }
22036 cat >conftest.$ac_ext <<_ACEOF
22037 /* confdefs.h. */
22038 _ACEOF
22039 cat confdefs.h >>conftest.$ac_ext
22040 cat >>conftest.$ac_ext <<_ACEOF
22041 /* end confdefs.h. */
22043 #include <sys/types.h>
22044 #include <sys/select.h>
22045 #include <sys/time.h>
22048 main ()
22052 return 0;
22054 _ACEOF
22055 rm -f conftest.$ac_objext
22056 if { (ac_try="$ac_compile"
22057 case "(($ac_try" in
22058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22059 *) ac_try_echo=$ac_try;;
22060 esac
22061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22062 (eval "$ac_compile") 2>conftest.er1
22063 ac_status=$?
22064 grep -v '^ *+' conftest.er1 >conftest.err
22065 rm -f conftest.er1
22066 cat conftest.err >&5
22067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22068 (exit $ac_status); } && {
22069 test -z "$ac_c_werror_flag" ||
22070 test ! -s conftest.err
22071 } && test -s conftest.$ac_objext; then
22074 cat >>confdefs.h <<\_ACEOF
22075 #define SYS_SELECT_WITH_SYS_TIME 1
22076 _ACEOF
22078 was_it_defined=yes
22080 else
22081 echo "$as_me: failed program was:" >&5
22082 sed 's/^/| /' conftest.$ac_ext >&5
22087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22088 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
22089 echo "${ECHO_T}$was_it_defined" >&6; }
22091 { echo "$as_me:$LINENO: checking for addrinfo" >&5
22092 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; }
22093 if test "${ac_cv_struct_addrinfo+set}" = set; then
22094 echo $ECHO_N "(cached) $ECHO_C" >&6
22095 else
22096 cat >conftest.$ac_ext <<_ACEOF
22097 /* confdefs.h. */
22098 _ACEOF
22099 cat confdefs.h >>conftest.$ac_ext
22100 cat >>conftest.$ac_ext <<_ACEOF
22101 /* end confdefs.h. */
22103 # include <netdb.h>
22105 main ()
22107 struct addrinfo a
22109 return 0;
22111 _ACEOF
22112 rm -f conftest.$ac_objext
22113 if { (ac_try="$ac_compile"
22114 case "(($ac_try" in
22115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22116 *) ac_try_echo=$ac_try;;
22117 esac
22118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22119 (eval "$ac_compile") 2>conftest.er1
22120 ac_status=$?
22121 grep -v '^ *+' conftest.er1 >conftest.err
22122 rm -f conftest.er1
22123 cat conftest.err >&5
22124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22125 (exit $ac_status); } && {
22126 test -z "$ac_c_werror_flag" ||
22127 test ! -s conftest.err
22128 } && test -s conftest.$ac_objext; then
22129 ac_cv_struct_addrinfo=yes
22130 else
22131 echo "$as_me: failed program was:" >&5
22132 sed 's/^/| /' conftest.$ac_ext >&5
22134 ac_cv_struct_addrinfo=no
22137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22140 { echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
22141 echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6; }
22142 if test $ac_cv_struct_addrinfo = yes; then
22144 cat >>confdefs.h <<\_ACEOF
22145 #define HAVE_ADDRINFO 1
22146 _ACEOF
22150 { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
22151 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; }
22152 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
22153 echo $ECHO_N "(cached) $ECHO_C" >&6
22154 else
22155 cat >conftest.$ac_ext <<_ACEOF
22156 /* confdefs.h. */
22157 _ACEOF
22158 cat confdefs.h >>conftest.$ac_ext
22159 cat >>conftest.$ac_ext <<_ACEOF
22160 /* end confdefs.h. */
22162 # include <sys/types.h>
22163 # include <sys/socket.h>
22165 main ()
22167 struct sockaddr_storage s
22169 return 0;
22171 _ACEOF
22172 rm -f conftest.$ac_objext
22173 if { (ac_try="$ac_compile"
22174 case "(($ac_try" in
22175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22176 *) ac_try_echo=$ac_try;;
22177 esac
22178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22179 (eval "$ac_compile") 2>conftest.er1
22180 ac_status=$?
22181 grep -v '^ *+' conftest.er1 >conftest.err
22182 rm -f conftest.er1
22183 cat conftest.err >&5
22184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22185 (exit $ac_status); } && {
22186 test -z "$ac_c_werror_flag" ||
22187 test ! -s conftest.err
22188 } && test -s conftest.$ac_objext; then
22189 ac_cv_struct_sockaddr_storage=yes
22190 else
22191 echo "$as_me: failed program was:" >&5
22192 sed 's/^/| /' conftest.$ac_ext >&5
22194 ac_cv_struct_sockaddr_storage=no
22197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22200 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
22201 echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6; }
22202 if test $ac_cv_struct_sockaddr_storage = yes; then
22204 cat >>confdefs.h <<\_ACEOF
22205 #define HAVE_SOCKADDR_STORAGE 1
22206 _ACEOF
22210 # checks for compiler characteristics
22213 { echo "$as_me:$LINENO: checking whether char is unsigned" >&5
22214 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6; }
22215 if test "${ac_cv_c_char_unsigned+set}" = set; then
22216 echo $ECHO_N "(cached) $ECHO_C" >&6
22217 else
22218 cat >conftest.$ac_ext <<_ACEOF
22219 /* confdefs.h. */
22220 _ACEOF
22221 cat confdefs.h >>conftest.$ac_ext
22222 cat >>conftest.$ac_ext <<_ACEOF
22223 /* end confdefs.h. */
22224 $ac_includes_default
22226 main ()
22228 static int test_array [1 - 2 * !(((char) -1) < 0)];
22229 test_array [0] = 0
22232 return 0;
22234 _ACEOF
22235 rm -f conftest.$ac_objext
22236 if { (ac_try="$ac_compile"
22237 case "(($ac_try" in
22238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22239 *) ac_try_echo=$ac_try;;
22240 esac
22241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22242 (eval "$ac_compile") 2>conftest.er1
22243 ac_status=$?
22244 grep -v '^ *+' conftest.er1 >conftest.err
22245 rm -f conftest.er1
22246 cat conftest.err >&5
22247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22248 (exit $ac_status); } && {
22249 test -z "$ac_c_werror_flag" ||
22250 test ! -s conftest.err
22251 } && test -s conftest.$ac_objext; then
22252 ac_cv_c_char_unsigned=no
22253 else
22254 echo "$as_me: failed program was:" >&5
22255 sed 's/^/| /' conftest.$ac_ext >&5
22257 ac_cv_c_char_unsigned=yes
22260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22262 { echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
22263 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; }
22264 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
22265 cat >>confdefs.h <<\_ACEOF
22266 #define __CHAR_UNSIGNED__ 1
22267 _ACEOF
22271 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
22272 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
22273 if test "${ac_cv_c_const+set}" = set; then
22274 echo $ECHO_N "(cached) $ECHO_C" >&6
22275 else
22276 cat >conftest.$ac_ext <<_ACEOF
22277 /* confdefs.h. */
22278 _ACEOF
22279 cat confdefs.h >>conftest.$ac_ext
22280 cat >>conftest.$ac_ext <<_ACEOF
22281 /* end confdefs.h. */
22284 main ()
22286 /* FIXME: Include the comments suggested by Paul. */
22287 #ifndef __cplusplus
22288 /* Ultrix mips cc rejects this. */
22289 typedef int charset[2];
22290 const charset cs;
22291 /* SunOS 4.1.1 cc rejects this. */
22292 char const *const *pcpcc;
22293 char **ppc;
22294 /* NEC SVR4.0.2 mips cc rejects this. */
22295 struct point {int x, y;};
22296 static struct point const zero = {0,0};
22297 /* AIX XL C 1.02.0.0 rejects this.
22298 It does not let you subtract one const X* pointer from another in
22299 an arm of an if-expression whose if-part is not a constant
22300 expression */
22301 const char *g = "string";
22302 pcpcc = &g + (g ? g-g : 0);
22303 /* HPUX 7.0 cc rejects these. */
22304 ++pcpcc;
22305 ppc = (char**) pcpcc;
22306 pcpcc = (char const *const *) ppc;
22307 { /* SCO 3.2v4 cc rejects this. */
22308 char *t;
22309 char const *s = 0 ? (char *) 0 : (char const *) 0;
22311 *t++ = 0;
22312 if (s) return 0;
22314 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22315 int x[] = {25, 17};
22316 const int *foo = &x[0];
22317 ++foo;
22319 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22320 typedef const int *iptr;
22321 iptr p = 0;
22322 ++p;
22324 { /* AIX XL C 1.02.0.0 rejects this saying
22325 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22326 struct s { int j; const int *ap[3]; };
22327 struct s *b; b->j = 5;
22329 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22330 const int foo = 10;
22331 if (!foo) return 0;
22333 return !cs[0] && !zero.x;
22334 #endif
22337 return 0;
22339 _ACEOF
22340 rm -f conftest.$ac_objext
22341 if { (ac_try="$ac_compile"
22342 case "(($ac_try" in
22343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22344 *) ac_try_echo=$ac_try;;
22345 esac
22346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22347 (eval "$ac_compile") 2>conftest.er1
22348 ac_status=$?
22349 grep -v '^ *+' conftest.er1 >conftest.err
22350 rm -f conftest.er1
22351 cat conftest.err >&5
22352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22353 (exit $ac_status); } && {
22354 test -z "$ac_c_werror_flag" ||
22355 test ! -s conftest.err
22356 } && test -s conftest.$ac_objext; then
22357 ac_cv_c_const=yes
22358 else
22359 echo "$as_me: failed program was:" >&5
22360 sed 's/^/| /' conftest.$ac_ext >&5
22362 ac_cv_c_const=no
22365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22367 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
22368 echo "${ECHO_T}$ac_cv_c_const" >&6; }
22369 if test $ac_cv_c_const = no; then
22371 cat >>confdefs.h <<\_ACEOF
22372 #define const
22373 _ACEOF
22378 works=no
22379 { echo "$as_me:$LINENO: checking for working volatile" >&5
22380 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
22381 cat >conftest.$ac_ext <<_ACEOF
22382 /* confdefs.h. */
22383 _ACEOF
22384 cat confdefs.h >>conftest.$ac_ext
22385 cat >>conftest.$ac_ext <<_ACEOF
22386 /* end confdefs.h. */
22389 main ()
22391 volatile int x; x = 0;
22393 return 0;
22395 _ACEOF
22396 rm -f conftest.$ac_objext
22397 if { (ac_try="$ac_compile"
22398 case "(($ac_try" in
22399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22400 *) ac_try_echo=$ac_try;;
22401 esac
22402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22403 (eval "$ac_compile") 2>conftest.er1
22404 ac_status=$?
22405 grep -v '^ *+' conftest.er1 >conftest.err
22406 rm -f conftest.er1
22407 cat conftest.err >&5
22408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22409 (exit $ac_status); } && {
22410 test -z "$ac_c_werror_flag" ||
22411 test ! -s conftest.err
22412 } && test -s conftest.$ac_objext; then
22413 works=yes
22414 else
22415 echo "$as_me: failed program was:" >&5
22416 sed 's/^/| /' conftest.$ac_ext >&5
22419 cat >>confdefs.h <<\_ACEOF
22420 #define volatile
22421 _ACEOF
22426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22427 { echo "$as_me:$LINENO: result: $works" >&5
22428 echo "${ECHO_T}$works" >&6; }
22430 works=no
22431 { echo "$as_me:$LINENO: checking for working signed char" >&5
22432 echo $ECHO_N "checking for working signed char... $ECHO_C" >&6; }
22433 cat >conftest.$ac_ext <<_ACEOF
22434 /* confdefs.h. */
22435 _ACEOF
22436 cat confdefs.h >>conftest.$ac_ext
22437 cat >>conftest.$ac_ext <<_ACEOF
22438 /* end confdefs.h. */
22441 main ()
22443 signed char c;
22445 return 0;
22447 _ACEOF
22448 rm -f conftest.$ac_objext
22449 if { (ac_try="$ac_compile"
22450 case "(($ac_try" in
22451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22452 *) ac_try_echo=$ac_try;;
22453 esac
22454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22455 (eval "$ac_compile") 2>conftest.er1
22456 ac_status=$?
22457 grep -v '^ *+' conftest.er1 >conftest.err
22458 rm -f conftest.er1
22459 cat conftest.err >&5
22460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22461 (exit $ac_status); } && {
22462 test -z "$ac_c_werror_flag" ||
22463 test ! -s conftest.err
22464 } && test -s conftest.$ac_objext; then
22465 works=yes
22466 else
22467 echo "$as_me: failed program was:" >&5
22468 sed 's/^/| /' conftest.$ac_ext >&5
22471 cat >>confdefs.h <<\_ACEOF
22472 #define signed
22473 _ACEOF
22478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22479 { echo "$as_me:$LINENO: result: $works" >&5
22480 echo "${ECHO_T}$works" >&6; }
22482 have_prototypes=no
22483 { echo "$as_me:$LINENO: checking for prototypes" >&5
22484 echo $ECHO_N "checking for prototypes... $ECHO_C" >&6; }
22485 cat >conftest.$ac_ext <<_ACEOF
22486 /* confdefs.h. */
22487 _ACEOF
22488 cat confdefs.h >>conftest.$ac_ext
22489 cat >>conftest.$ac_ext <<_ACEOF
22490 /* end confdefs.h. */
22491 int foo(int x) { return 0; }
22493 main ()
22495 return foo(10);
22497 return 0;
22499 _ACEOF
22500 rm -f conftest.$ac_objext
22501 if { (ac_try="$ac_compile"
22502 case "(($ac_try" in
22503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22504 *) ac_try_echo=$ac_try;;
22505 esac
22506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22507 (eval "$ac_compile") 2>conftest.er1
22508 ac_status=$?
22509 grep -v '^ *+' conftest.er1 >conftest.err
22510 rm -f conftest.er1
22511 cat conftest.err >&5
22512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22513 (exit $ac_status); } && {
22514 test -z "$ac_c_werror_flag" ||
22515 test ! -s conftest.err
22516 } && test -s conftest.$ac_objext; then
22519 cat >>confdefs.h <<\_ACEOF
22520 #define HAVE_PROTOTYPES 1
22521 _ACEOF
22523 have_prototypes=yes
22525 else
22526 echo "$as_me: failed program was:" >&5
22527 sed 's/^/| /' conftest.$ac_ext >&5
22532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22533 { echo "$as_me:$LINENO: result: $have_prototypes" >&5
22534 echo "${ECHO_T}$have_prototypes" >&6; }
22536 works=no
22537 { echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
22538 echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6; }
22539 cat >conftest.$ac_ext <<_ACEOF
22540 /* confdefs.h. */
22541 _ACEOF
22542 cat confdefs.h >>conftest.$ac_ext
22543 cat >>conftest.$ac_ext <<_ACEOF
22544 /* end confdefs.h. */
22546 #include <stdarg.h>
22547 int foo(int x, ...) {
22548 va_list va;
22549 va_start(va, x);
22550 va_arg(va, int);
22551 va_arg(va, char *);
22552 va_arg(va, double);
22553 return 0;
22557 main ()
22559 return foo(10, "", 3.14);
22561 return 0;
22563 _ACEOF
22564 rm -f conftest.$ac_objext
22565 if { (ac_try="$ac_compile"
22566 case "(($ac_try" in
22567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22568 *) ac_try_echo=$ac_try;;
22569 esac
22570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22571 (eval "$ac_compile") 2>conftest.er1
22572 ac_status=$?
22573 grep -v '^ *+' conftest.er1 >conftest.err
22574 rm -f conftest.er1
22575 cat conftest.err >&5
22576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22577 (exit $ac_status); } && {
22578 test -z "$ac_c_werror_flag" ||
22579 test ! -s conftest.err
22580 } && test -s conftest.$ac_objext; then
22583 cat >>confdefs.h <<\_ACEOF
22584 #define HAVE_STDARG_PROTOTYPES 1
22585 _ACEOF
22587 works=yes
22589 else
22590 echo "$as_me: failed program was:" >&5
22591 sed 's/^/| /' conftest.$ac_ext >&5
22596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22597 { echo "$as_me:$LINENO: result: $works" >&5
22598 echo "${ECHO_T}$works" >&6; }
22600 # check for socketpair
22601 { echo "$as_me:$LINENO: checking for socketpair" >&5
22602 echo $ECHO_N "checking for socketpair... $ECHO_C" >&6; }
22603 cat >conftest.$ac_ext <<_ACEOF
22604 /* confdefs.h. */
22605 _ACEOF
22606 cat confdefs.h >>conftest.$ac_ext
22607 cat >>conftest.$ac_ext <<_ACEOF
22608 /* end confdefs.h. */
22610 #include <sys/types.h>
22611 #include <sys/socket.h>
22614 main ()
22616 void *x=socketpair
22618 return 0;
22620 _ACEOF
22621 rm -f conftest.$ac_objext
22622 if { (ac_try="$ac_compile"
22623 case "(($ac_try" in
22624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22625 *) ac_try_echo=$ac_try;;
22626 esac
22627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22628 (eval "$ac_compile") 2>conftest.er1
22629 ac_status=$?
22630 grep -v '^ *+' conftest.er1 >conftest.err
22631 rm -f conftest.er1
22632 cat conftest.err >&5
22633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22634 (exit $ac_status); } && {
22635 test -z "$ac_c_werror_flag" ||
22636 test ! -s conftest.err
22637 } && test -s conftest.$ac_objext; then
22639 cat >>confdefs.h <<\_ACEOF
22640 #define HAVE_SOCKETPAIR 1
22641 _ACEOF
22643 { echo "$as_me:$LINENO: result: yes" >&5
22644 echo "${ECHO_T}yes" >&6; }
22645 else
22646 echo "$as_me: failed program was:" >&5
22647 sed 's/^/| /' conftest.$ac_ext >&5
22649 { echo "$as_me:$LINENO: result: no" >&5
22650 echo "${ECHO_T}no" >&6; }
22654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22656 # check if sockaddr has sa_len member
22657 { echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
22658 echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6; }
22659 cat >conftest.$ac_ext <<_ACEOF
22660 /* confdefs.h. */
22661 _ACEOF
22662 cat confdefs.h >>conftest.$ac_ext
22663 cat >>conftest.$ac_ext <<_ACEOF
22664 /* end confdefs.h. */
22665 #include <sys/types.h>
22666 #include <sys/socket.h>
22668 main ()
22670 struct sockaddr x;
22671 x.sa_len = 0;
22673 return 0;
22675 _ACEOF
22676 rm -f conftest.$ac_objext
22677 if { (ac_try="$ac_compile"
22678 case "(($ac_try" in
22679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22680 *) ac_try_echo=$ac_try;;
22681 esac
22682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22683 (eval "$ac_compile") 2>conftest.er1
22684 ac_status=$?
22685 grep -v '^ *+' conftest.er1 >conftest.err
22686 rm -f conftest.er1
22687 cat conftest.err >&5
22688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22689 (exit $ac_status); } && {
22690 test -z "$ac_c_werror_flag" ||
22691 test ! -s conftest.err
22692 } && test -s conftest.$ac_objext; then
22693 { echo "$as_me:$LINENO: result: yes" >&5
22694 echo "${ECHO_T}yes" >&6; }
22696 cat >>confdefs.h <<\_ACEOF
22697 #define HAVE_SOCKADDR_SA_LEN 1
22698 _ACEOF
22700 else
22701 echo "$as_me: failed program was:" >&5
22702 sed 's/^/| /' conftest.$ac_ext >&5
22704 { echo "$as_me:$LINENO: result: no" >&5
22705 echo "${ECHO_T}no" >&6; }
22708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22710 va_list_is_array=no
22711 { echo "$as_me:$LINENO: checking whether va_list is an array" >&5
22712 echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6; }
22713 cat >conftest.$ac_ext <<_ACEOF
22714 /* confdefs.h. */
22715 _ACEOF
22716 cat confdefs.h >>conftest.$ac_ext
22717 cat >>conftest.$ac_ext <<_ACEOF
22718 /* end confdefs.h. */
22720 #ifdef HAVE_STDARG_PROTOTYPES
22721 #include <stdarg.h>
22722 #else
22723 #include <varargs.h>
22724 #endif
22727 main ()
22729 va_list list1, list2; list1 = list2;
22731 return 0;
22733 _ACEOF
22734 rm -f conftest.$ac_objext
22735 if { (ac_try="$ac_compile"
22736 case "(($ac_try" in
22737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22738 *) ac_try_echo=$ac_try;;
22739 esac
22740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22741 (eval "$ac_compile") 2>conftest.er1
22742 ac_status=$?
22743 grep -v '^ *+' conftest.er1 >conftest.err
22744 rm -f conftest.er1
22745 cat conftest.err >&5
22746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22747 (exit $ac_status); } && {
22748 test -z "$ac_c_werror_flag" ||
22749 test ! -s conftest.err
22750 } && test -s conftest.$ac_objext; then
22752 else
22753 echo "$as_me: failed program was:" >&5
22754 sed 's/^/| /' conftest.$ac_ext >&5
22758 cat >>confdefs.h <<\_ACEOF
22759 #define VA_LIST_IS_ARRAY 1
22760 _ACEOF
22762 va_list_is_array=yes
22766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22767 { echo "$as_me:$LINENO: result: $va_list_is_array" >&5
22768 echo "${ECHO_T}$va_list_is_array" >&6; }
22770 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
22774 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
22775 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
22776 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
22777 echo $ECHO_N "(cached) $ECHO_C" >&6
22778 else
22779 cat >conftest.$ac_ext <<_ACEOF
22780 /* confdefs.h. */
22781 _ACEOF
22782 cat confdefs.h >>conftest.$ac_ext
22783 cat >>conftest.$ac_ext <<_ACEOF
22784 /* end confdefs.h. */
22785 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
22786 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22787 #define gethostbyname_r innocuous_gethostbyname_r
22789 /* System header to define __stub macros and hopefully few prototypes,
22790 which can conflict with char gethostbyname_r (); below.
22791 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22792 <limits.h> exists even on freestanding compilers. */
22794 #ifdef __STDC__
22795 # include <limits.h>
22796 #else
22797 # include <assert.h>
22798 #endif
22800 #undef gethostbyname_r
22802 /* Override any GCC internal prototype to avoid an error.
22803 Use char because int might match the return type of a GCC
22804 builtin and then its argument prototype would still apply. */
22805 #ifdef __cplusplus
22806 extern "C"
22807 #endif
22808 char gethostbyname_r ();
22809 /* The GNU C library defines this for functions which it implements
22810 to always fail with ENOSYS. Some functions are actually named
22811 something starting with __ and the normal name is an alias. */
22812 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
22813 choke me
22814 #endif
22817 main ()
22819 return gethostbyname_r ();
22821 return 0;
22823 _ACEOF
22824 rm -f conftest.$ac_objext conftest$ac_exeext
22825 if { (ac_try="$ac_link"
22826 case "(($ac_try" in
22827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22828 *) ac_try_echo=$ac_try;;
22829 esac
22830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22831 (eval "$ac_link") 2>conftest.er1
22832 ac_status=$?
22833 grep -v '^ *+' conftest.er1 >conftest.err
22834 rm -f conftest.er1
22835 cat conftest.err >&5
22836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22837 (exit $ac_status); } && {
22838 test -z "$ac_c_werror_flag" ||
22839 test ! -s conftest.err
22840 } && test -s conftest$ac_exeext &&
22841 $as_test_x conftest$ac_exeext; then
22842 ac_cv_func_gethostbyname_r=yes
22843 else
22844 echo "$as_me: failed program was:" >&5
22845 sed 's/^/| /' conftest.$ac_ext >&5
22847 ac_cv_func_gethostbyname_r=no
22850 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22851 conftest$ac_exeext conftest.$ac_ext
22853 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
22854 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
22855 if test $ac_cv_func_gethostbyname_r = yes; then
22857 cat >>confdefs.h <<\_ACEOF
22858 #define HAVE_GETHOSTBYNAME_R 1
22859 _ACEOF
22861 { echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
22862 echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6; }
22863 OLD_CFLAGS=$CFLAGS
22864 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
22865 cat >conftest.$ac_ext <<_ACEOF
22866 /* confdefs.h. */
22867 _ACEOF
22868 cat confdefs.h >>conftest.$ac_ext
22869 cat >>conftest.$ac_ext <<_ACEOF
22870 /* end confdefs.h. */
22872 # include <netdb.h>
22875 main ()
22878 char *name;
22879 struct hostent *he, *res;
22880 char buffer[2048];
22881 int buflen = 2048;
22882 int h_errnop;
22884 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
22887 return 0;
22889 _ACEOF
22890 rm -f conftest.$ac_objext
22891 if { (ac_try="$ac_compile"
22892 case "(($ac_try" in
22893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22894 *) ac_try_echo=$ac_try;;
22895 esac
22896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22897 (eval "$ac_compile") 2>conftest.er1
22898 ac_status=$?
22899 grep -v '^ *+' conftest.er1 >conftest.err
22900 rm -f conftest.er1
22901 cat conftest.err >&5
22902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22903 (exit $ac_status); } && {
22904 test -z "$ac_c_werror_flag" ||
22905 test ! -s conftest.err
22906 } && test -s conftest.$ac_objext; then
22908 cat >>confdefs.h <<\_ACEOF
22909 #define HAVE_GETHOSTBYNAME_R 1
22910 _ACEOF
22913 cat >>confdefs.h <<\_ACEOF
22914 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
22915 _ACEOF
22917 { echo "$as_me:$LINENO: result: yes" >&5
22918 echo "${ECHO_T}yes" >&6; }
22920 else
22921 echo "$as_me: failed program was:" >&5
22922 sed 's/^/| /' conftest.$ac_ext >&5
22925 { echo "$as_me:$LINENO: result: no" >&5
22926 echo "${ECHO_T}no" >&6; }
22927 { echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
22928 echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6; }
22929 cat >conftest.$ac_ext <<_ACEOF
22930 /* confdefs.h. */
22931 _ACEOF
22932 cat confdefs.h >>conftest.$ac_ext
22933 cat >>conftest.$ac_ext <<_ACEOF
22934 /* end confdefs.h. */
22936 # include <netdb.h>
22939 main ()
22942 char *name;
22943 struct hostent *he;
22944 char buffer[2048];
22945 int buflen = 2048;
22946 int h_errnop;
22948 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
22951 return 0;
22953 _ACEOF
22954 rm -f conftest.$ac_objext
22955 if { (ac_try="$ac_compile"
22956 case "(($ac_try" in
22957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22958 *) ac_try_echo=$ac_try;;
22959 esac
22960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22961 (eval "$ac_compile") 2>conftest.er1
22962 ac_status=$?
22963 grep -v '^ *+' conftest.er1 >conftest.err
22964 rm -f conftest.er1
22965 cat conftest.err >&5
22966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22967 (exit $ac_status); } && {
22968 test -z "$ac_c_werror_flag" ||
22969 test ! -s conftest.err
22970 } && test -s conftest.$ac_objext; then
22972 cat >>confdefs.h <<\_ACEOF
22973 #define HAVE_GETHOSTBYNAME_R 1
22974 _ACEOF
22977 cat >>confdefs.h <<\_ACEOF
22978 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
22979 _ACEOF
22981 { echo "$as_me:$LINENO: result: yes" >&5
22982 echo "${ECHO_T}yes" >&6; }
22984 else
22985 echo "$as_me: failed program was:" >&5
22986 sed 's/^/| /' conftest.$ac_ext >&5
22989 { echo "$as_me:$LINENO: result: no" >&5
22990 echo "${ECHO_T}no" >&6; }
22991 { echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
22992 echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6; }
22993 cat >conftest.$ac_ext <<_ACEOF
22994 /* confdefs.h. */
22995 _ACEOF
22996 cat confdefs.h >>conftest.$ac_ext
22997 cat >>conftest.$ac_ext <<_ACEOF
22998 /* end confdefs.h. */
23000 # include <netdb.h>
23003 main ()
23006 char *name;
23007 struct hostent *he;
23008 struct hostent_data data;
23010 (void) gethostbyname_r(name, he, &data);
23013 return 0;
23015 _ACEOF
23016 rm -f conftest.$ac_objext
23017 if { (ac_try="$ac_compile"
23018 case "(($ac_try" in
23019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23020 *) ac_try_echo=$ac_try;;
23021 esac
23022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23023 (eval "$ac_compile") 2>conftest.er1
23024 ac_status=$?
23025 grep -v '^ *+' conftest.er1 >conftest.err
23026 rm -f conftest.er1
23027 cat conftest.err >&5
23028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23029 (exit $ac_status); } && {
23030 test -z "$ac_c_werror_flag" ||
23031 test ! -s conftest.err
23032 } && test -s conftest.$ac_objext; then
23034 cat >>confdefs.h <<\_ACEOF
23035 #define HAVE_GETHOSTBYNAME_R 1
23036 _ACEOF
23039 cat >>confdefs.h <<\_ACEOF
23040 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
23041 _ACEOF
23043 { echo "$as_me:$LINENO: result: yes" >&5
23044 echo "${ECHO_T}yes" >&6; }
23046 else
23047 echo "$as_me: failed program was:" >&5
23048 sed 's/^/| /' conftest.$ac_ext >&5
23051 { echo "$as_me:$LINENO: result: no" >&5
23052 echo "${ECHO_T}no" >&6; }
23056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23065 CFLAGS=$OLD_CFLAGS
23067 else
23070 for ac_func in gethostbyname
23072 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23073 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23074 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23075 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23076 echo $ECHO_N "(cached) $ECHO_C" >&6
23077 else
23078 cat >conftest.$ac_ext <<_ACEOF
23079 /* confdefs.h. */
23080 _ACEOF
23081 cat confdefs.h >>conftest.$ac_ext
23082 cat >>conftest.$ac_ext <<_ACEOF
23083 /* end confdefs.h. */
23084 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23085 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23086 #define $ac_func innocuous_$ac_func
23088 /* System header to define __stub macros and hopefully few prototypes,
23089 which can conflict with char $ac_func (); below.
23090 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23091 <limits.h> exists even on freestanding compilers. */
23093 #ifdef __STDC__
23094 # include <limits.h>
23095 #else
23096 # include <assert.h>
23097 #endif
23099 #undef $ac_func
23101 /* Override any GCC internal prototype to avoid an error.
23102 Use char because int might match the return type of a GCC
23103 builtin and then its argument prototype would still apply. */
23104 #ifdef __cplusplus
23105 extern "C"
23106 #endif
23107 char $ac_func ();
23108 /* The GNU C library defines this for functions which it implements
23109 to always fail with ENOSYS. Some functions are actually named
23110 something starting with __ and the normal name is an alias. */
23111 #if defined __stub_$ac_func || defined __stub___$ac_func
23112 choke me
23113 #endif
23116 main ()
23118 return $ac_func ();
23120 return 0;
23122 _ACEOF
23123 rm -f conftest.$ac_objext conftest$ac_exeext
23124 if { (ac_try="$ac_link"
23125 case "(($ac_try" in
23126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23127 *) ac_try_echo=$ac_try;;
23128 esac
23129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23130 (eval "$ac_link") 2>conftest.er1
23131 ac_status=$?
23132 grep -v '^ *+' conftest.er1 >conftest.err
23133 rm -f conftest.er1
23134 cat conftest.err >&5
23135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23136 (exit $ac_status); } && {
23137 test -z "$ac_c_werror_flag" ||
23138 test ! -s conftest.err
23139 } && test -s conftest$ac_exeext &&
23140 $as_test_x conftest$ac_exeext; then
23141 eval "$as_ac_var=yes"
23142 else
23143 echo "$as_me: failed program was:" >&5
23144 sed 's/^/| /' conftest.$ac_ext >&5
23146 eval "$as_ac_var=no"
23149 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23150 conftest$ac_exeext conftest.$ac_ext
23152 ac_res=`eval echo '${'$as_ac_var'}'`
23153 { echo "$as_me:$LINENO: result: $ac_res" >&5
23154 echo "${ECHO_T}$ac_res" >&6; }
23155 if test `eval echo '${'$as_ac_var'}'` = yes; then
23156 cat >>confdefs.h <<_ACEOF
23157 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23158 _ACEOF
23161 done
23172 # checks for system services
23173 # (none yet)
23175 # Linux requires this for correct f.p. operations
23176 { echo "$as_me:$LINENO: checking for __fpu_control" >&5
23177 echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6; }
23178 if test "${ac_cv_func___fpu_control+set}" = set; then
23179 echo $ECHO_N "(cached) $ECHO_C" >&6
23180 else
23181 cat >conftest.$ac_ext <<_ACEOF
23182 /* confdefs.h. */
23183 _ACEOF
23184 cat confdefs.h >>conftest.$ac_ext
23185 cat >>conftest.$ac_ext <<_ACEOF
23186 /* end confdefs.h. */
23187 /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control.
23188 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23189 #define __fpu_control innocuous___fpu_control
23191 /* System header to define __stub macros and hopefully few prototypes,
23192 which can conflict with char __fpu_control (); below.
23193 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23194 <limits.h> exists even on freestanding compilers. */
23196 #ifdef __STDC__
23197 # include <limits.h>
23198 #else
23199 # include <assert.h>
23200 #endif
23202 #undef __fpu_control
23204 /* Override any GCC internal prototype to avoid an error.
23205 Use char because int might match the return type of a GCC
23206 builtin and then its argument prototype would still apply. */
23207 #ifdef __cplusplus
23208 extern "C"
23209 #endif
23210 char __fpu_control ();
23211 /* The GNU C library defines this for functions which it implements
23212 to always fail with ENOSYS. Some functions are actually named
23213 something starting with __ and the normal name is an alias. */
23214 #if defined __stub___fpu_control || defined __stub_____fpu_control
23215 choke me
23216 #endif
23219 main ()
23221 return __fpu_control ();
23223 return 0;
23225 _ACEOF
23226 rm -f conftest.$ac_objext conftest$ac_exeext
23227 if { (ac_try="$ac_link"
23228 case "(($ac_try" in
23229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23230 *) ac_try_echo=$ac_try;;
23231 esac
23232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23233 (eval "$ac_link") 2>conftest.er1
23234 ac_status=$?
23235 grep -v '^ *+' conftest.er1 >conftest.err
23236 rm -f conftest.er1
23237 cat conftest.err >&5
23238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23239 (exit $ac_status); } && {
23240 test -z "$ac_c_werror_flag" ||
23241 test ! -s conftest.err
23242 } && test -s conftest$ac_exeext &&
23243 $as_test_x conftest$ac_exeext; then
23244 ac_cv_func___fpu_control=yes
23245 else
23246 echo "$as_me: failed program was:" >&5
23247 sed 's/^/| /' conftest.$ac_ext >&5
23249 ac_cv_func___fpu_control=no
23252 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23253 conftest$ac_exeext conftest.$ac_ext
23255 { echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
23256 echo "${ECHO_T}$ac_cv_func___fpu_control" >&6; }
23257 if test $ac_cv_func___fpu_control = yes; then
23259 else
23261 { echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
23262 echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6; }
23263 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
23264 echo $ECHO_N "(cached) $ECHO_C" >&6
23265 else
23266 ac_check_lib_save_LIBS=$LIBS
23267 LIBS="-lieee $LIBS"
23268 cat >conftest.$ac_ext <<_ACEOF
23269 /* confdefs.h. */
23270 _ACEOF
23271 cat confdefs.h >>conftest.$ac_ext
23272 cat >>conftest.$ac_ext <<_ACEOF
23273 /* end confdefs.h. */
23275 /* Override any GCC internal prototype to avoid an error.
23276 Use char because int might match the return type of a GCC
23277 builtin and then its argument prototype would still apply. */
23278 #ifdef __cplusplus
23279 extern "C"
23280 #endif
23281 char __fpu_control ();
23283 main ()
23285 return __fpu_control ();
23287 return 0;
23289 _ACEOF
23290 rm -f conftest.$ac_objext conftest$ac_exeext
23291 if { (ac_try="$ac_link"
23292 case "(($ac_try" in
23293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23294 *) ac_try_echo=$ac_try;;
23295 esac
23296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23297 (eval "$ac_link") 2>conftest.er1
23298 ac_status=$?
23299 grep -v '^ *+' conftest.er1 >conftest.err
23300 rm -f conftest.er1
23301 cat conftest.err >&5
23302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23303 (exit $ac_status); } && {
23304 test -z "$ac_c_werror_flag" ||
23305 test ! -s conftest.err
23306 } && test -s conftest$ac_exeext &&
23307 $as_test_x conftest$ac_exeext; then
23308 ac_cv_lib_ieee___fpu_control=yes
23309 else
23310 echo "$as_me: failed program was:" >&5
23311 sed 's/^/| /' conftest.$ac_ext >&5
23313 ac_cv_lib_ieee___fpu_control=no
23316 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23317 conftest$ac_exeext conftest.$ac_ext
23318 LIBS=$ac_check_lib_save_LIBS
23320 { echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
23321 echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6; }
23322 if test $ac_cv_lib_ieee___fpu_control = yes; then
23323 cat >>confdefs.h <<_ACEOF
23324 #define HAVE_LIBIEEE 1
23325 _ACEOF
23327 LIBS="-lieee $LIBS"
23335 # Check for --with-fpectl
23336 { echo "$as_me:$LINENO: checking for --with-fpectl" >&5
23337 echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6; }
23339 # Check whether --with-fpectl was given.
23340 if test "${with_fpectl+set}" = set; then
23341 withval=$with_fpectl;
23342 if test "$withval" != no
23343 then
23345 cat >>confdefs.h <<\_ACEOF
23346 #define WANT_SIGFPE_HANDLER 1
23347 _ACEOF
23349 { echo "$as_me:$LINENO: result: yes" >&5
23350 echo "${ECHO_T}yes" >&6; }
23351 else { echo "$as_me:$LINENO: result: no" >&5
23352 echo "${ECHO_T}no" >&6; }
23354 else
23355 { echo "$as_me:$LINENO: result: no" >&5
23356 echo "${ECHO_T}no" >&6; }
23360 # check for --with-libm=...
23362 case $ac_sys_system in
23363 Darwin) ;;
23364 BeOS) ;;
23365 *) LIBM=-lm
23366 esac
23367 { echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
23368 echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6; }
23370 # Check whether --with-libm was given.
23371 if test "${with_libm+set}" = set; then
23372 withval=$with_libm;
23373 if test "$withval" = no
23374 then LIBM=
23375 { echo "$as_me:$LINENO: result: force LIBM empty" >&5
23376 echo "${ECHO_T}force LIBM empty" >&6; }
23377 elif test "$withval" != yes
23378 then LIBM=$withval
23379 { echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
23380 echo "${ECHO_T}set LIBM=\"$withval\"" >&6; }
23381 else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
23382 echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
23383 { (exit 1); exit 1; }; }
23385 else
23386 { echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
23387 echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6; }
23391 # check for --with-libc=...
23393 { echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
23394 echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6; }
23396 # Check whether --with-libc was given.
23397 if test "${with_libc+set}" = set; then
23398 withval=$with_libc;
23399 if test "$withval" = no
23400 then LIBC=
23401 { echo "$as_me:$LINENO: result: force LIBC empty" >&5
23402 echo "${ECHO_T}force LIBC empty" >&6; }
23403 elif test "$withval" != yes
23404 then LIBC=$withval
23405 { echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
23406 echo "${ECHO_T}set LIBC=\"$withval\"" >&6; }
23407 else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
23408 echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
23409 { (exit 1); exit 1; }; }
23411 else
23412 { echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
23413 echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6; }
23417 # **************************************************
23418 # * Check for various properties of floating point *
23419 # **************************************************
23421 { echo "$as_me:$LINENO: checking whether C doubles are little-endian IEEE 754 binary64" >&5
23422 echo $ECHO_N "checking whether C doubles are little-endian IEEE 754 binary64... $ECHO_C" >&6; }
23423 if test "${ac_cv_little_endian_double+set}" = set; then
23424 echo $ECHO_N "(cached) $ECHO_C" >&6
23425 else
23427 if test "$cross_compiling" = yes; then
23428 ac_cv_little_endian_double=no
23429 else
23430 cat >conftest.$ac_ext <<_ACEOF
23431 /* confdefs.h. */
23432 _ACEOF
23433 cat confdefs.h >>conftest.$ac_ext
23434 cat >>conftest.$ac_ext <<_ACEOF
23435 /* end confdefs.h. */
23437 #include <string.h>
23438 int main() {
23439 double x = 9006104071832581.0;
23440 if (memcmp(&x, "\x05\x04\x03\x02\x01\xff\x3f\x43", 8) == 0)
23441 return 0;
23442 else
23443 return 1;
23446 _ACEOF
23447 rm -f conftest$ac_exeext
23448 if { (ac_try="$ac_link"
23449 case "(($ac_try" in
23450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23451 *) ac_try_echo=$ac_try;;
23452 esac
23453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23454 (eval "$ac_link") 2>&5
23455 ac_status=$?
23456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23457 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23458 { (case "(($ac_try" in
23459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23460 *) ac_try_echo=$ac_try;;
23461 esac
23462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23463 (eval "$ac_try") 2>&5
23464 ac_status=$?
23465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23466 (exit $ac_status); }; }; then
23467 ac_cv_little_endian_double=yes
23468 else
23469 echo "$as_me: program exited with status $ac_status" >&5
23470 echo "$as_me: failed program was:" >&5
23471 sed 's/^/| /' conftest.$ac_ext >&5
23473 ( exit $ac_status )
23474 ac_cv_little_endian_double=no
23476 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23482 { echo "$as_me:$LINENO: result: $ac_cv_little_endian_double" >&5
23483 echo "${ECHO_T}$ac_cv_little_endian_double" >&6; }
23484 if test "$ac_cv_little_endian_double" = yes
23485 then
23487 cat >>confdefs.h <<\_ACEOF
23488 #define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1
23489 _ACEOF
23493 { echo "$as_me:$LINENO: checking whether C doubles are big-endian IEEE 754 binary64" >&5
23494 echo $ECHO_N "checking whether C doubles are big-endian IEEE 754 binary64... $ECHO_C" >&6; }
23495 if test "${ac_cv_big_endian_double+set}" = set; then
23496 echo $ECHO_N "(cached) $ECHO_C" >&6
23497 else
23499 if test "$cross_compiling" = yes; then
23500 ac_cv_big_endian_double=no
23501 else
23502 cat >conftest.$ac_ext <<_ACEOF
23503 /* confdefs.h. */
23504 _ACEOF
23505 cat confdefs.h >>conftest.$ac_ext
23506 cat >>conftest.$ac_ext <<_ACEOF
23507 /* end confdefs.h. */
23509 #include <string.h>
23510 int main() {
23511 double x = 9006104071832581.0;
23512 if (memcmp(&x, "\x43\x3f\xff\x01\x02\x03\x04\x05", 8) == 0)
23513 return 0;
23514 else
23515 return 1;
23518 _ACEOF
23519 rm -f conftest$ac_exeext
23520 if { (ac_try="$ac_link"
23521 case "(($ac_try" in
23522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23523 *) ac_try_echo=$ac_try;;
23524 esac
23525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23526 (eval "$ac_link") 2>&5
23527 ac_status=$?
23528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23529 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23530 { (case "(($ac_try" in
23531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23532 *) ac_try_echo=$ac_try;;
23533 esac
23534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23535 (eval "$ac_try") 2>&5
23536 ac_status=$?
23537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23538 (exit $ac_status); }; }; then
23539 ac_cv_big_endian_double=yes
23540 else
23541 echo "$as_me: program exited with status $ac_status" >&5
23542 echo "$as_me: failed program was:" >&5
23543 sed 's/^/| /' conftest.$ac_ext >&5
23545 ( exit $ac_status )
23546 ac_cv_big_endian_double=no
23548 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23554 { echo "$as_me:$LINENO: result: $ac_cv_big_endian_double" >&5
23555 echo "${ECHO_T}$ac_cv_big_endian_double" >&6; }
23556 if test "$ac_cv_big_endian_double" = yes
23557 then
23559 cat >>confdefs.h <<\_ACEOF
23560 #define DOUBLE_IS_BIG_ENDIAN_IEEE754 1
23561 _ACEOF
23565 # Some ARM platforms use a mixed-endian representation for doubles.
23566 # While Python doesn't currently have full support for these platforms
23567 # (see e.g., issue 1762561), we can at least make sure that float <-> string
23568 # conversions work.
23569 { echo "$as_me:$LINENO: checking whether C doubles are ARM mixed-endian IEEE 754 binary64" >&5
23570 echo $ECHO_N "checking whether C doubles are ARM mixed-endian IEEE 754 binary64... $ECHO_C" >&6; }
23571 if test "${ac_cv_mixed_endian_double+set}" = set; then
23572 echo $ECHO_N "(cached) $ECHO_C" >&6
23573 else
23575 if test "$cross_compiling" = yes; then
23576 ac_cv_mixed_endian_double=no
23577 else
23578 cat >conftest.$ac_ext <<_ACEOF
23579 /* confdefs.h. */
23580 _ACEOF
23581 cat confdefs.h >>conftest.$ac_ext
23582 cat >>conftest.$ac_ext <<_ACEOF
23583 /* end confdefs.h. */
23585 #include <string.h>
23586 int main() {
23587 double x = 9006104071832581.0;
23588 if (memcmp(&x, "\x01\xff\x3f\x43\x05\x04\x03\x02", 8) == 0)
23589 return 0;
23590 else
23591 return 1;
23594 _ACEOF
23595 rm -f conftest$ac_exeext
23596 if { (ac_try="$ac_link"
23597 case "(($ac_try" in
23598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23599 *) ac_try_echo=$ac_try;;
23600 esac
23601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23602 (eval "$ac_link") 2>&5
23603 ac_status=$?
23604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23605 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23606 { (case "(($ac_try" in
23607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23608 *) ac_try_echo=$ac_try;;
23609 esac
23610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23611 (eval "$ac_try") 2>&5
23612 ac_status=$?
23613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23614 (exit $ac_status); }; }; then
23615 ac_cv_mixed_endian_double=yes
23616 else
23617 echo "$as_me: program exited with status $ac_status" >&5
23618 echo "$as_me: failed program was:" >&5
23619 sed 's/^/| /' conftest.$ac_ext >&5
23621 ( exit $ac_status )
23622 ac_cv_mixed_endian_double=no
23624 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23630 { echo "$as_me:$LINENO: result: $ac_cv_mixed_endian_double" >&5
23631 echo "${ECHO_T}$ac_cv_mixed_endian_double" >&6; }
23632 if test "$ac_cv_mixed_endian_double" = yes
23633 then
23635 cat >>confdefs.h <<\_ACEOF
23636 #define DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754 1
23637 _ACEOF
23641 # The short float repr introduced in Python 3.1 requires the
23642 # correctly-rounded string <-> double conversion functions from
23643 # Python/dtoa.c, which in turn require that the FPU uses 53-bit
23644 # rounding; this is a problem on x86, where the x87 FPU has a default
23645 # rounding precision of 64 bits. For gcc/x86, we can fix this by
23646 # using inline assembler to get and set the x87 FPU control word.
23648 # This inline assembler syntax may also work for suncc and icc,
23649 # so we try it on all platforms.
23651 { echo "$as_me:$LINENO: checking whether we can use gcc inline assembler to get and set x87 control word" >&5
23652 echo $ECHO_N "checking whether we can use gcc inline assembler to get and set x87 control word... $ECHO_C" >&6; }
23653 cat >conftest.$ac_ext <<_ACEOF
23654 /* confdefs.h. */
23655 _ACEOF
23656 cat confdefs.h >>conftest.$ac_ext
23657 cat >>conftest.$ac_ext <<_ACEOF
23658 /* end confdefs.h. */
23661 main ()
23664 unsigned short cw;
23665 __asm__ __volatile__ ("fnstcw %0" : "=m" (cw));
23666 __asm__ __volatile__ ("fldcw %0" : : "m" (cw));
23669 return 0;
23671 _ACEOF
23672 rm -f conftest.$ac_objext
23673 if { (ac_try="$ac_compile"
23674 case "(($ac_try" in
23675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23676 *) ac_try_echo=$ac_try;;
23677 esac
23678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23679 (eval "$ac_compile") 2>conftest.er1
23680 ac_status=$?
23681 grep -v '^ *+' conftest.er1 >conftest.err
23682 rm -f conftest.er1
23683 cat conftest.err >&5
23684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23685 (exit $ac_status); } && {
23686 test -z "$ac_c_werror_flag" ||
23687 test ! -s conftest.err
23688 } && test -s conftest.$ac_objext; then
23689 have_gcc_asm_for_x87=yes
23690 else
23691 echo "$as_me: failed program was:" >&5
23692 sed 's/^/| /' conftest.$ac_ext >&5
23694 have_gcc_asm_for_x87=no
23697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23698 { echo "$as_me:$LINENO: result: $have_gcc_asm_for_x87" >&5
23699 echo "${ECHO_T}$have_gcc_asm_for_x87" >&6; }
23700 if test "$have_gcc_asm_for_x87" = yes
23701 then
23703 cat >>confdefs.h <<\_ACEOF
23704 #define HAVE_GCC_ASM_FOR_X87 1
23705 _ACEOF
23709 # Detect whether system arithmetic is subject to x87-style double
23710 # rounding issues. The result of this test has little meaning on non
23711 # IEEE 754 platforms. On IEEE 754, test should return 1 if rounding
23712 # mode is round-to-nearest and double rounding issues are present, and
23713 # 0 otherwise. See http://bugs.python.org/issue2937 for more info.
23714 { echo "$as_me:$LINENO: checking for x87-style double rounding" >&5
23715 echo $ECHO_N "checking for x87-style double rounding... $ECHO_C" >&6; }
23716 # $BASECFLAGS may affect the result
23717 ac_save_cc="$CC"
23718 CC="$CC $BASECFLAGS"
23719 if test "$cross_compiling" = yes; then
23720 ac_cv_x87_double_rounding=no
23721 else
23722 cat >conftest.$ac_ext <<_ACEOF
23723 /* confdefs.h. */
23724 _ACEOF
23725 cat confdefs.h >>conftest.$ac_ext
23726 cat >>conftest.$ac_ext <<_ACEOF
23727 /* end confdefs.h. */
23729 #include <stdlib.h>
23730 #include <math.h>
23731 int main() {
23732 volatile double x, y, z;
23733 /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */
23734 x = 0.99999999999999989; /* 1-2**-53 */
23735 y = 1./x;
23736 if (y != 1.)
23737 exit(0);
23738 /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */
23739 x = 1e16;
23740 y = 2.99999;
23741 z = x + y;
23742 if (z != 1e16+4.)
23743 exit(0);
23744 /* both tests show evidence of double rounding */
23745 exit(1);
23748 _ACEOF
23749 rm -f conftest$ac_exeext
23750 if { (ac_try="$ac_link"
23751 case "(($ac_try" in
23752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23753 *) ac_try_echo=$ac_try;;
23754 esac
23755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23756 (eval "$ac_link") 2>&5
23757 ac_status=$?
23758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23759 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23760 { (case "(($ac_try" in
23761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23762 *) ac_try_echo=$ac_try;;
23763 esac
23764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23765 (eval "$ac_try") 2>&5
23766 ac_status=$?
23767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23768 (exit $ac_status); }; }; then
23769 ac_cv_x87_double_rounding=no
23770 else
23771 echo "$as_me: program exited with status $ac_status" >&5
23772 echo "$as_me: failed program was:" >&5
23773 sed 's/^/| /' conftest.$ac_ext >&5
23775 ( exit $ac_status )
23776 ac_cv_x87_double_rounding=yes
23778 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23782 CC="$ac_save_cc"
23783 { echo "$as_me:$LINENO: result: $ac_cv_x87_double_rounding" >&5
23784 echo "${ECHO_T}$ac_cv_x87_double_rounding" >&6; }
23785 if test "$ac_cv_x87_double_rounding" = yes
23786 then
23788 cat >>confdefs.h <<\_ACEOF
23789 #define X87_DOUBLE_ROUNDING 1
23790 _ACEOF
23794 # ************************************
23795 # * Check for mathematical functions *
23796 # ************************************
23798 LIBS_SAVE=$LIBS
23799 LIBS="$LIBS $LIBM"
23801 # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of
23802 # -0. on some architectures.
23803 { echo "$as_me:$LINENO: checking whether tanh preserves the sign of zero" >&5
23804 echo $ECHO_N "checking whether tanh preserves the sign of zero... $ECHO_C" >&6; }
23805 if test "${ac_cv_tanh_preserves_zero_sign+set}" = set; then
23806 echo $ECHO_N "(cached) $ECHO_C" >&6
23807 else
23809 if test "$cross_compiling" = yes; then
23810 ac_cv_tanh_preserves_zero_sign=no
23811 else
23812 cat >conftest.$ac_ext <<_ACEOF
23813 /* confdefs.h. */
23814 _ACEOF
23815 cat confdefs.h >>conftest.$ac_ext
23816 cat >>conftest.$ac_ext <<_ACEOF
23817 /* end confdefs.h. */
23819 #include <math.h>
23820 #include <stdlib.h>
23821 int main() {
23822 /* return 0 if either negative zeros don't exist
23823 on this platform or if negative zeros exist
23824 and tanh(-0.) == -0. */
23825 if (atan2(0., -1.) == atan2(-0., -1.) ||
23826 atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0);
23827 else exit(1);
23830 _ACEOF
23831 rm -f conftest$ac_exeext
23832 if { (ac_try="$ac_link"
23833 case "(($ac_try" in
23834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23835 *) ac_try_echo=$ac_try;;
23836 esac
23837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23838 (eval "$ac_link") 2>&5
23839 ac_status=$?
23840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23841 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23842 { (case "(($ac_try" in
23843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23844 *) ac_try_echo=$ac_try;;
23845 esac
23846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23847 (eval "$ac_try") 2>&5
23848 ac_status=$?
23849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23850 (exit $ac_status); }; }; then
23851 ac_cv_tanh_preserves_zero_sign=yes
23852 else
23853 echo "$as_me: program exited with status $ac_status" >&5
23854 echo "$as_me: failed program was:" >&5
23855 sed 's/^/| /' conftest.$ac_ext >&5
23857 ( exit $ac_status )
23858 ac_cv_tanh_preserves_zero_sign=no
23860 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23866 { echo "$as_me:$LINENO: result: $ac_cv_tanh_preserves_zero_sign" >&5
23867 echo "${ECHO_T}$ac_cv_tanh_preserves_zero_sign" >&6; }
23868 if test "$ac_cv_tanh_preserves_zero_sign" = yes
23869 then
23871 cat >>confdefs.h <<\_ACEOF
23872 #define TANH_PRESERVES_ZERO_SIGN 1
23873 _ACEOF
23886 for ac_func in acosh asinh atanh copysign erf erfc expm1 finite gamma
23888 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23889 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23890 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23891 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23892 echo $ECHO_N "(cached) $ECHO_C" >&6
23893 else
23894 cat >conftest.$ac_ext <<_ACEOF
23895 /* confdefs.h. */
23896 _ACEOF
23897 cat confdefs.h >>conftest.$ac_ext
23898 cat >>conftest.$ac_ext <<_ACEOF
23899 /* end confdefs.h. */
23900 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23901 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23902 #define $ac_func innocuous_$ac_func
23904 /* System header to define __stub macros and hopefully few prototypes,
23905 which can conflict with char $ac_func (); below.
23906 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23907 <limits.h> exists even on freestanding compilers. */
23909 #ifdef __STDC__
23910 # include <limits.h>
23911 #else
23912 # include <assert.h>
23913 #endif
23915 #undef $ac_func
23917 /* Override any GCC internal prototype to avoid an error.
23918 Use char because int might match the return type of a GCC
23919 builtin and then its argument prototype would still apply. */
23920 #ifdef __cplusplus
23921 extern "C"
23922 #endif
23923 char $ac_func ();
23924 /* The GNU C library defines this for functions which it implements
23925 to always fail with ENOSYS. Some functions are actually named
23926 something starting with __ and the normal name is an alias. */
23927 #if defined __stub_$ac_func || defined __stub___$ac_func
23928 choke me
23929 #endif
23932 main ()
23934 return $ac_func ();
23936 return 0;
23938 _ACEOF
23939 rm -f conftest.$ac_objext conftest$ac_exeext
23940 if { (ac_try="$ac_link"
23941 case "(($ac_try" in
23942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23943 *) ac_try_echo=$ac_try;;
23944 esac
23945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23946 (eval "$ac_link") 2>conftest.er1
23947 ac_status=$?
23948 grep -v '^ *+' conftest.er1 >conftest.err
23949 rm -f conftest.er1
23950 cat conftest.err >&5
23951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23952 (exit $ac_status); } && {
23953 test -z "$ac_c_werror_flag" ||
23954 test ! -s conftest.err
23955 } && test -s conftest$ac_exeext &&
23956 $as_test_x conftest$ac_exeext; then
23957 eval "$as_ac_var=yes"
23958 else
23959 echo "$as_me: failed program was:" >&5
23960 sed 's/^/| /' conftest.$ac_ext >&5
23962 eval "$as_ac_var=no"
23965 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23966 conftest$ac_exeext conftest.$ac_ext
23968 ac_res=`eval echo '${'$as_ac_var'}'`
23969 { echo "$as_me:$LINENO: result: $ac_res" >&5
23970 echo "${ECHO_T}$ac_res" >&6; }
23971 if test `eval echo '${'$as_ac_var'}'` = yes; then
23972 cat >>confdefs.h <<_ACEOF
23973 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23974 _ACEOF
23977 done
23984 for ac_func in hypot lgamma log1p round tgamma
23986 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23987 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23988 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23989 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23990 echo $ECHO_N "(cached) $ECHO_C" >&6
23991 else
23992 cat >conftest.$ac_ext <<_ACEOF
23993 /* confdefs.h. */
23994 _ACEOF
23995 cat confdefs.h >>conftest.$ac_ext
23996 cat >>conftest.$ac_ext <<_ACEOF
23997 /* end confdefs.h. */
23998 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23999 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24000 #define $ac_func innocuous_$ac_func
24002 /* System header to define __stub macros and hopefully few prototypes,
24003 which can conflict with char $ac_func (); below.
24004 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24005 <limits.h> exists even on freestanding compilers. */
24007 #ifdef __STDC__
24008 # include <limits.h>
24009 #else
24010 # include <assert.h>
24011 #endif
24013 #undef $ac_func
24015 /* Override any GCC internal prototype to avoid an error.
24016 Use char because int might match the return type of a GCC
24017 builtin and then its argument prototype would still apply. */
24018 #ifdef __cplusplus
24019 extern "C"
24020 #endif
24021 char $ac_func ();
24022 /* The GNU C library defines this for functions which it implements
24023 to always fail with ENOSYS. Some functions are actually named
24024 something starting with __ and the normal name is an alias. */
24025 #if defined __stub_$ac_func || defined __stub___$ac_func
24026 choke me
24027 #endif
24030 main ()
24032 return $ac_func ();
24034 return 0;
24036 _ACEOF
24037 rm -f conftest.$ac_objext 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>conftest.er1
24045 ac_status=$?
24046 grep -v '^ *+' conftest.er1 >conftest.err
24047 rm -f conftest.er1
24048 cat conftest.err >&5
24049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24050 (exit $ac_status); } && {
24051 test -z "$ac_c_werror_flag" ||
24052 test ! -s conftest.err
24053 } && test -s conftest$ac_exeext &&
24054 $as_test_x conftest$ac_exeext; then
24055 eval "$as_ac_var=yes"
24056 else
24057 echo "$as_me: failed program was:" >&5
24058 sed 's/^/| /' conftest.$ac_ext >&5
24060 eval "$as_ac_var=no"
24063 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24064 conftest$ac_exeext conftest.$ac_ext
24066 ac_res=`eval echo '${'$as_ac_var'}'`
24067 { echo "$as_me:$LINENO: result: $ac_res" >&5
24068 echo "${ECHO_T}$ac_res" >&6; }
24069 if test `eval echo '${'$as_ac_var'}'` = yes; then
24070 cat >>confdefs.h <<_ACEOF
24071 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24072 _ACEOF
24075 done
24077 { echo "$as_me:$LINENO: checking whether isinf is declared" >&5
24078 echo $ECHO_N "checking whether isinf is declared... $ECHO_C" >&6; }
24079 if test "${ac_cv_have_decl_isinf+set}" = set; then
24080 echo $ECHO_N "(cached) $ECHO_C" >&6
24081 else
24082 cat >conftest.$ac_ext <<_ACEOF
24083 /* confdefs.h. */
24084 _ACEOF
24085 cat confdefs.h >>conftest.$ac_ext
24086 cat >>conftest.$ac_ext <<_ACEOF
24087 /* end confdefs.h. */
24088 #include <math.h>
24091 main ()
24093 #ifndef isinf
24094 (void) isinf;
24095 #endif
24098 return 0;
24100 _ACEOF
24101 rm -f conftest.$ac_objext
24102 if { (ac_try="$ac_compile"
24103 case "(($ac_try" in
24104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24105 *) ac_try_echo=$ac_try;;
24106 esac
24107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24108 (eval "$ac_compile") 2>conftest.er1
24109 ac_status=$?
24110 grep -v '^ *+' conftest.er1 >conftest.err
24111 rm -f conftest.er1
24112 cat conftest.err >&5
24113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24114 (exit $ac_status); } && {
24115 test -z "$ac_c_werror_flag" ||
24116 test ! -s conftest.err
24117 } && test -s conftest.$ac_objext; then
24118 ac_cv_have_decl_isinf=yes
24119 else
24120 echo "$as_me: failed program was:" >&5
24121 sed 's/^/| /' conftest.$ac_ext >&5
24123 ac_cv_have_decl_isinf=no
24126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24128 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isinf" >&5
24129 echo "${ECHO_T}$ac_cv_have_decl_isinf" >&6; }
24130 if test $ac_cv_have_decl_isinf = yes; then
24132 cat >>confdefs.h <<_ACEOF
24133 #define HAVE_DECL_ISINF 1
24134 _ACEOF
24137 else
24138 cat >>confdefs.h <<_ACEOF
24139 #define HAVE_DECL_ISINF 0
24140 _ACEOF
24144 { echo "$as_me:$LINENO: checking whether isnan is declared" >&5
24145 echo $ECHO_N "checking whether isnan is declared... $ECHO_C" >&6; }
24146 if test "${ac_cv_have_decl_isnan+set}" = set; then
24147 echo $ECHO_N "(cached) $ECHO_C" >&6
24148 else
24149 cat >conftest.$ac_ext <<_ACEOF
24150 /* confdefs.h. */
24151 _ACEOF
24152 cat confdefs.h >>conftest.$ac_ext
24153 cat >>conftest.$ac_ext <<_ACEOF
24154 /* end confdefs.h. */
24155 #include <math.h>
24158 main ()
24160 #ifndef isnan
24161 (void) isnan;
24162 #endif
24165 return 0;
24167 _ACEOF
24168 rm -f conftest.$ac_objext
24169 if { (ac_try="$ac_compile"
24170 case "(($ac_try" in
24171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24172 *) ac_try_echo=$ac_try;;
24173 esac
24174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24175 (eval "$ac_compile") 2>conftest.er1
24176 ac_status=$?
24177 grep -v '^ *+' conftest.er1 >conftest.err
24178 rm -f conftest.er1
24179 cat conftest.err >&5
24180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24181 (exit $ac_status); } && {
24182 test -z "$ac_c_werror_flag" ||
24183 test ! -s conftest.err
24184 } && test -s conftest.$ac_objext; then
24185 ac_cv_have_decl_isnan=yes
24186 else
24187 echo "$as_me: failed program was:" >&5
24188 sed 's/^/| /' conftest.$ac_ext >&5
24190 ac_cv_have_decl_isnan=no
24193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24195 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isnan" >&5
24196 echo "${ECHO_T}$ac_cv_have_decl_isnan" >&6; }
24197 if test $ac_cv_have_decl_isnan = yes; then
24199 cat >>confdefs.h <<_ACEOF
24200 #define HAVE_DECL_ISNAN 1
24201 _ACEOF
24204 else
24205 cat >>confdefs.h <<_ACEOF
24206 #define HAVE_DECL_ISNAN 0
24207 _ACEOF
24211 { echo "$as_me:$LINENO: checking whether isfinite is declared" >&5
24212 echo $ECHO_N "checking whether isfinite is declared... $ECHO_C" >&6; }
24213 if test "${ac_cv_have_decl_isfinite+set}" = set; then
24214 echo $ECHO_N "(cached) $ECHO_C" >&6
24215 else
24216 cat >conftest.$ac_ext <<_ACEOF
24217 /* confdefs.h. */
24218 _ACEOF
24219 cat confdefs.h >>conftest.$ac_ext
24220 cat >>conftest.$ac_ext <<_ACEOF
24221 /* end confdefs.h. */
24222 #include <math.h>
24225 main ()
24227 #ifndef isfinite
24228 (void) isfinite;
24229 #endif
24232 return 0;
24234 _ACEOF
24235 rm -f conftest.$ac_objext
24236 if { (ac_try="$ac_compile"
24237 case "(($ac_try" in
24238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24239 *) ac_try_echo=$ac_try;;
24240 esac
24241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24242 (eval "$ac_compile") 2>conftest.er1
24243 ac_status=$?
24244 grep -v '^ *+' conftest.er1 >conftest.err
24245 rm -f conftest.er1
24246 cat conftest.err >&5
24247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24248 (exit $ac_status); } && {
24249 test -z "$ac_c_werror_flag" ||
24250 test ! -s conftest.err
24251 } && test -s conftest.$ac_objext; then
24252 ac_cv_have_decl_isfinite=yes
24253 else
24254 echo "$as_me: failed program was:" >&5
24255 sed 's/^/| /' conftest.$ac_ext >&5
24257 ac_cv_have_decl_isfinite=no
24260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24262 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isfinite" >&5
24263 echo "${ECHO_T}$ac_cv_have_decl_isfinite" >&6; }
24264 if test $ac_cv_have_decl_isfinite = yes; then
24266 cat >>confdefs.h <<_ACEOF
24267 #define HAVE_DECL_ISFINITE 1
24268 _ACEOF
24271 else
24272 cat >>confdefs.h <<_ACEOF
24273 #define HAVE_DECL_ISFINITE 0
24274 _ACEOF
24281 LIBS=$LIBS_SAVE
24283 # For multiprocessing module, check that sem_open
24284 # actually works. For FreeBSD versions <= 7.2,
24285 # the kernel module that provides POSIX semaphores
24286 # isn't loaded by default, so an attempt to call
24287 # sem_open results in a 'Signal 12' error.
24288 { echo "$as_me:$LINENO: checking whether POSIX semaphores are enabled" >&5
24289 echo $ECHO_N "checking whether POSIX semaphores are enabled... $ECHO_C" >&6; }
24290 if test "${ac_cv_posix_semaphores_enabled+set}" = set; then
24291 echo $ECHO_N "(cached) $ECHO_C" >&6
24292 else
24293 if test "$cross_compiling" = yes; then
24294 ac_cv_posix_semaphores_enabled=yes
24295 else
24296 cat >conftest.$ac_ext <<_ACEOF
24297 /* confdefs.h. */
24298 _ACEOF
24299 cat confdefs.h >>conftest.$ac_ext
24300 cat >>conftest.$ac_ext <<_ACEOF
24301 /* end confdefs.h. */
24303 #include <unistd.h>
24304 #include <fcntl.h>
24305 #include <stdio.h>
24306 #include <semaphore.h>
24307 #include <sys/stat.h>
24309 int main(void) {
24310 sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0);
24311 if (a == SEM_FAILED) {
24312 perror("sem_open");
24313 return 1;
24315 sem_close(a);
24316 return 0;
24319 _ACEOF
24320 rm -f conftest$ac_exeext
24321 if { (ac_try="$ac_link"
24322 case "(($ac_try" in
24323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24324 *) ac_try_echo=$ac_try;;
24325 esac
24326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24327 (eval "$ac_link") 2>&5
24328 ac_status=$?
24329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24330 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24331 { (case "(($ac_try" in
24332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24333 *) ac_try_echo=$ac_try;;
24334 esac
24335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24336 (eval "$ac_try") 2>&5
24337 ac_status=$?
24338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24339 (exit $ac_status); }; }; then
24340 ac_cv_posix_semaphores_enabled=yes
24341 else
24342 echo "$as_me: program exited with status $ac_status" >&5
24343 echo "$as_me: failed program was:" >&5
24344 sed 's/^/| /' conftest.$ac_ext >&5
24346 ( exit $ac_status )
24347 ac_cv_posix_semaphores_enabled=no
24349 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24356 { echo "$as_me:$LINENO: result: $ac_cv_posix_semaphores_enabled" >&5
24357 echo "${ECHO_T}$ac_cv_posix_semaphores_enabled" >&6; }
24358 if test $ac_cv_posix_semaphores_enabled = no
24359 then
24361 cat >>confdefs.h <<\_ACEOF
24362 #define POSIX_SEMAPHORES_NOT_ENABLED 1
24363 _ACEOF
24367 # Multiprocessing check for broken sem_getvalue
24368 { echo "$as_me:$LINENO: checking for broken sem_getvalue" >&5
24369 echo $ECHO_N "checking for broken sem_getvalue... $ECHO_C" >&6; }
24370 if test "${ac_cv_broken_sem_getvalue+set}" = set; then
24371 echo $ECHO_N "(cached) $ECHO_C" >&6
24372 else
24373 if test "$cross_compiling" = yes; then
24374 ac_cv_broken_sem_getvalue=yes
24375 else
24376 cat >conftest.$ac_ext <<_ACEOF
24377 /* confdefs.h. */
24378 _ACEOF
24379 cat confdefs.h >>conftest.$ac_ext
24380 cat >>conftest.$ac_ext <<_ACEOF
24381 /* end confdefs.h. */
24383 #include <unistd.h>
24384 #include <fcntl.h>
24385 #include <stdio.h>
24386 #include <semaphore.h>
24387 #include <sys/stat.h>
24389 int main(void){
24390 sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0);
24391 int count;
24392 int res;
24393 if(a==SEM_FAILED){
24394 perror("sem_open");
24395 return 1;
24398 res = sem_getvalue(a, &count);
24399 sem_close(a);
24400 return res==-1 ? 1 : 0;
24403 _ACEOF
24404 rm -f conftest$ac_exeext
24405 if { (ac_try="$ac_link"
24406 case "(($ac_try" in
24407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24408 *) ac_try_echo=$ac_try;;
24409 esac
24410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24411 (eval "$ac_link") 2>&5
24412 ac_status=$?
24413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24414 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24415 { (case "(($ac_try" in
24416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24417 *) ac_try_echo=$ac_try;;
24418 esac
24419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24420 (eval "$ac_try") 2>&5
24421 ac_status=$?
24422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24423 (exit $ac_status); }; }; then
24424 ac_cv_broken_sem_getvalue=no
24425 else
24426 echo "$as_me: program exited with status $ac_status" >&5
24427 echo "$as_me: failed program was:" >&5
24428 sed 's/^/| /' conftest.$ac_ext >&5
24430 ( exit $ac_status )
24431 ac_cv_broken_sem_getvalue=yes
24433 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24440 { echo "$as_me:$LINENO: result: $ac_cv_broken_sem_getvalue" >&5
24441 echo "${ECHO_T}$ac_cv_broken_sem_getvalue" >&6; }
24442 if test $ac_cv_broken_sem_getvalue = yes
24443 then
24445 cat >>confdefs.h <<\_ACEOF
24446 #define HAVE_BROKEN_SEM_GETVALUE 1
24447 _ACEOF
24451 # determine what size digit to use for Python's longs
24452 { echo "$as_me:$LINENO: checking digit size for Python's longs" >&5
24453 echo $ECHO_N "checking digit size for Python's longs... $ECHO_C" >&6; }
24454 # Check whether --enable-big-digits was given.
24455 if test "${enable_big_digits+set}" = set; then
24456 enableval=$enable_big_digits; case $enable_big_digits in
24457 yes)
24458 enable_big_digits=30 ;;
24460 enable_big_digits=15 ;;
24461 15|30)
24464 { { echo "$as_me:$LINENO: error: bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" >&5
24465 echo "$as_me: error: bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" >&2;}
24466 { (exit 1); exit 1; }; } ;;
24467 esac
24468 { echo "$as_me:$LINENO: result: $enable_big_digits" >&5
24469 echo "${ECHO_T}$enable_big_digits" >&6; }
24471 cat >>confdefs.h <<_ACEOF
24472 #define PYLONG_BITS_IN_DIGIT $enable_big_digits
24473 _ACEOF
24476 else
24477 { echo "$as_me:$LINENO: result: no value specified" >&5
24478 echo "${ECHO_T}no value specified" >&6; }
24482 # check for wchar.h
24483 if test "${ac_cv_header_wchar_h+set}" = set; then
24484 { echo "$as_me:$LINENO: checking for wchar.h" >&5
24485 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
24486 if test "${ac_cv_header_wchar_h+set}" = set; then
24487 echo $ECHO_N "(cached) $ECHO_C" >&6
24489 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
24490 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
24491 else
24492 # Is the header compilable?
24493 { echo "$as_me:$LINENO: checking wchar.h usability" >&5
24494 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6; }
24495 cat >conftest.$ac_ext <<_ACEOF
24496 /* confdefs.h. */
24497 _ACEOF
24498 cat confdefs.h >>conftest.$ac_ext
24499 cat >>conftest.$ac_ext <<_ACEOF
24500 /* end confdefs.h. */
24501 $ac_includes_default
24502 #include <wchar.h>
24503 _ACEOF
24504 rm -f conftest.$ac_objext
24505 if { (ac_try="$ac_compile"
24506 case "(($ac_try" in
24507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24508 *) ac_try_echo=$ac_try;;
24509 esac
24510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24511 (eval "$ac_compile") 2>conftest.er1
24512 ac_status=$?
24513 grep -v '^ *+' conftest.er1 >conftest.err
24514 rm -f conftest.er1
24515 cat conftest.err >&5
24516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24517 (exit $ac_status); } && {
24518 test -z "$ac_c_werror_flag" ||
24519 test ! -s conftest.err
24520 } && test -s conftest.$ac_objext; then
24521 ac_header_compiler=yes
24522 else
24523 echo "$as_me: failed program was:" >&5
24524 sed 's/^/| /' conftest.$ac_ext >&5
24526 ac_header_compiler=no
24529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24530 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24531 echo "${ECHO_T}$ac_header_compiler" >&6; }
24533 # Is the header present?
24534 { echo "$as_me:$LINENO: checking wchar.h presence" >&5
24535 echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6; }
24536 cat >conftest.$ac_ext <<_ACEOF
24537 /* confdefs.h. */
24538 _ACEOF
24539 cat confdefs.h >>conftest.$ac_ext
24540 cat >>conftest.$ac_ext <<_ACEOF
24541 /* end confdefs.h. */
24542 #include <wchar.h>
24543 _ACEOF
24544 if { (ac_try="$ac_cpp conftest.$ac_ext"
24545 case "(($ac_try" in
24546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24547 *) ac_try_echo=$ac_try;;
24548 esac
24549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24550 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24551 ac_status=$?
24552 grep -v '^ *+' conftest.er1 >conftest.err
24553 rm -f conftest.er1
24554 cat conftest.err >&5
24555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24556 (exit $ac_status); } >/dev/null && {
24557 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24558 test ! -s conftest.err
24559 }; then
24560 ac_header_preproc=yes
24561 else
24562 echo "$as_me: failed program was:" >&5
24563 sed 's/^/| /' conftest.$ac_ext >&5
24565 ac_header_preproc=no
24568 rm -f conftest.err conftest.$ac_ext
24569 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24570 echo "${ECHO_T}$ac_header_preproc" >&6; }
24572 # So? What about this header?
24573 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24574 yes:no: )
24575 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
24576 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24577 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
24578 echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
24579 ac_header_preproc=yes
24581 no:yes:* )
24582 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
24583 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
24584 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
24585 echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
24586 { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
24587 echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
24588 { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5
24589 echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;}
24590 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
24591 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
24592 { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
24593 echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
24594 ( cat <<\_ASBOX
24595 ## -------------------------------------- ##
24596 ## Report this to http://bugs.python.org/ ##
24597 ## -------------------------------------- ##
24598 _ASBOX
24599 ) | sed "s/^/$as_me: WARNING: /" >&2
24601 esac
24602 { echo "$as_me:$LINENO: checking for wchar.h" >&5
24603 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
24604 if test "${ac_cv_header_wchar_h+set}" = set; then
24605 echo $ECHO_N "(cached) $ECHO_C" >&6
24606 else
24607 ac_cv_header_wchar_h=$ac_header_preproc
24609 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
24610 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
24613 if test $ac_cv_header_wchar_h = yes; then
24616 cat >>confdefs.h <<\_ACEOF
24617 #define HAVE_WCHAR_H 1
24618 _ACEOF
24620 wchar_h="yes"
24622 else
24623 wchar_h="no"
24629 # determine wchar_t size
24630 if test "$wchar_h" = yes
24631 then
24632 { echo "$as_me:$LINENO: checking for wchar_t" >&5
24633 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
24634 if test "${ac_cv_type_wchar_t+set}" = set; then
24635 echo $ECHO_N "(cached) $ECHO_C" >&6
24636 else
24637 cat >conftest.$ac_ext <<_ACEOF
24638 /* confdefs.h. */
24639 _ACEOF
24640 cat confdefs.h >>conftest.$ac_ext
24641 cat >>conftest.$ac_ext <<_ACEOF
24642 /* end confdefs.h. */
24643 #include <wchar.h>
24645 typedef wchar_t ac__type_new_;
24647 main ()
24649 if ((ac__type_new_ *) 0)
24650 return 0;
24651 if (sizeof (ac__type_new_))
24652 return 0;
24654 return 0;
24656 _ACEOF
24657 rm -f conftest.$ac_objext
24658 if { (ac_try="$ac_compile"
24659 case "(($ac_try" in
24660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24661 *) ac_try_echo=$ac_try;;
24662 esac
24663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24664 (eval "$ac_compile") 2>conftest.er1
24665 ac_status=$?
24666 grep -v '^ *+' conftest.er1 >conftest.err
24667 rm -f conftest.er1
24668 cat conftest.err >&5
24669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24670 (exit $ac_status); } && {
24671 test -z "$ac_c_werror_flag" ||
24672 test ! -s conftest.err
24673 } && test -s conftest.$ac_objext; then
24674 ac_cv_type_wchar_t=yes
24675 else
24676 echo "$as_me: failed program was:" >&5
24677 sed 's/^/| /' conftest.$ac_ext >&5
24679 ac_cv_type_wchar_t=no
24682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24684 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
24685 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
24687 # The cast to long int works around a bug in the HP C Compiler
24688 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24689 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24690 # This bug is HP SR number 8606223364.
24691 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
24692 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
24693 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
24694 echo $ECHO_N "(cached) $ECHO_C" >&6
24695 else
24696 if test "$cross_compiling" = yes; then
24697 # Depending upon the size, compute the lo and hi bounds.
24698 cat >conftest.$ac_ext <<_ACEOF
24699 /* confdefs.h. */
24700 _ACEOF
24701 cat confdefs.h >>conftest.$ac_ext
24702 cat >>conftest.$ac_ext <<_ACEOF
24703 /* end confdefs.h. */
24704 #include <wchar.h>
24706 typedef wchar_t ac__type_sizeof_;
24708 main ()
24710 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24711 test_array [0] = 0
24714 return 0;
24716 _ACEOF
24717 rm -f conftest.$ac_objext
24718 if { (ac_try="$ac_compile"
24719 case "(($ac_try" in
24720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24721 *) ac_try_echo=$ac_try;;
24722 esac
24723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24724 (eval "$ac_compile") 2>conftest.er1
24725 ac_status=$?
24726 grep -v '^ *+' conftest.er1 >conftest.err
24727 rm -f conftest.er1
24728 cat conftest.err >&5
24729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24730 (exit $ac_status); } && {
24731 test -z "$ac_c_werror_flag" ||
24732 test ! -s conftest.err
24733 } && test -s conftest.$ac_objext; then
24734 ac_lo=0 ac_mid=0
24735 while :; do
24736 cat >conftest.$ac_ext <<_ACEOF
24737 /* confdefs.h. */
24738 _ACEOF
24739 cat confdefs.h >>conftest.$ac_ext
24740 cat >>conftest.$ac_ext <<_ACEOF
24741 /* end confdefs.h. */
24742 #include <wchar.h>
24744 typedef wchar_t ac__type_sizeof_;
24746 main ()
24748 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24749 test_array [0] = 0
24752 return 0;
24754 _ACEOF
24755 rm -f conftest.$ac_objext
24756 if { (ac_try="$ac_compile"
24757 case "(($ac_try" in
24758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24759 *) ac_try_echo=$ac_try;;
24760 esac
24761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24762 (eval "$ac_compile") 2>conftest.er1
24763 ac_status=$?
24764 grep -v '^ *+' conftest.er1 >conftest.err
24765 rm -f conftest.er1
24766 cat conftest.err >&5
24767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24768 (exit $ac_status); } && {
24769 test -z "$ac_c_werror_flag" ||
24770 test ! -s conftest.err
24771 } && test -s conftest.$ac_objext; then
24772 ac_hi=$ac_mid; break
24773 else
24774 echo "$as_me: failed program was:" >&5
24775 sed 's/^/| /' conftest.$ac_ext >&5
24777 ac_lo=`expr $ac_mid + 1`
24778 if test $ac_lo -le $ac_mid; then
24779 ac_lo= ac_hi=
24780 break
24782 ac_mid=`expr 2 '*' $ac_mid + 1`
24785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24786 done
24787 else
24788 echo "$as_me: failed program was:" >&5
24789 sed 's/^/| /' conftest.$ac_ext >&5
24791 cat >conftest.$ac_ext <<_ACEOF
24792 /* confdefs.h. */
24793 _ACEOF
24794 cat confdefs.h >>conftest.$ac_ext
24795 cat >>conftest.$ac_ext <<_ACEOF
24796 /* end confdefs.h. */
24797 #include <wchar.h>
24799 typedef wchar_t ac__type_sizeof_;
24801 main ()
24803 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24804 test_array [0] = 0
24807 return 0;
24809 _ACEOF
24810 rm -f conftest.$ac_objext
24811 if { (ac_try="$ac_compile"
24812 case "(($ac_try" in
24813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24814 *) ac_try_echo=$ac_try;;
24815 esac
24816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24817 (eval "$ac_compile") 2>conftest.er1
24818 ac_status=$?
24819 grep -v '^ *+' conftest.er1 >conftest.err
24820 rm -f conftest.er1
24821 cat conftest.err >&5
24822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24823 (exit $ac_status); } && {
24824 test -z "$ac_c_werror_flag" ||
24825 test ! -s conftest.err
24826 } && test -s conftest.$ac_objext; then
24827 ac_hi=-1 ac_mid=-1
24828 while :; do
24829 cat >conftest.$ac_ext <<_ACEOF
24830 /* confdefs.h. */
24831 _ACEOF
24832 cat confdefs.h >>conftest.$ac_ext
24833 cat >>conftest.$ac_ext <<_ACEOF
24834 /* end confdefs.h. */
24835 #include <wchar.h>
24837 typedef wchar_t ac__type_sizeof_;
24839 main ()
24841 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24842 test_array [0] = 0
24845 return 0;
24847 _ACEOF
24848 rm -f conftest.$ac_objext
24849 if { (ac_try="$ac_compile"
24850 case "(($ac_try" in
24851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24852 *) ac_try_echo=$ac_try;;
24853 esac
24854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24855 (eval "$ac_compile") 2>conftest.er1
24856 ac_status=$?
24857 grep -v '^ *+' conftest.er1 >conftest.err
24858 rm -f conftest.er1
24859 cat conftest.err >&5
24860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24861 (exit $ac_status); } && {
24862 test -z "$ac_c_werror_flag" ||
24863 test ! -s conftest.err
24864 } && test -s conftest.$ac_objext; then
24865 ac_lo=$ac_mid; break
24866 else
24867 echo "$as_me: failed program was:" >&5
24868 sed 's/^/| /' conftest.$ac_ext >&5
24870 ac_hi=`expr '(' $ac_mid ')' - 1`
24871 if test $ac_mid -le $ac_hi; then
24872 ac_lo= ac_hi=
24873 break
24875 ac_mid=`expr 2 '*' $ac_mid`
24878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24879 done
24880 else
24881 echo "$as_me: failed program was:" >&5
24882 sed 's/^/| /' conftest.$ac_ext >&5
24884 ac_lo= ac_hi=
24887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24891 # Binary search between lo and hi bounds.
24892 while test "x$ac_lo" != "x$ac_hi"; do
24893 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24894 cat >conftest.$ac_ext <<_ACEOF
24895 /* confdefs.h. */
24896 _ACEOF
24897 cat confdefs.h >>conftest.$ac_ext
24898 cat >>conftest.$ac_ext <<_ACEOF
24899 /* end confdefs.h. */
24900 #include <wchar.h>
24902 typedef wchar_t ac__type_sizeof_;
24904 main ()
24906 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24907 test_array [0] = 0
24910 return 0;
24912 _ACEOF
24913 rm -f conftest.$ac_objext
24914 if { (ac_try="$ac_compile"
24915 case "(($ac_try" in
24916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24917 *) ac_try_echo=$ac_try;;
24918 esac
24919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24920 (eval "$ac_compile") 2>conftest.er1
24921 ac_status=$?
24922 grep -v '^ *+' conftest.er1 >conftest.err
24923 rm -f conftest.er1
24924 cat conftest.err >&5
24925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24926 (exit $ac_status); } && {
24927 test -z "$ac_c_werror_flag" ||
24928 test ! -s conftest.err
24929 } && test -s conftest.$ac_objext; then
24930 ac_hi=$ac_mid
24931 else
24932 echo "$as_me: failed program was:" >&5
24933 sed 's/^/| /' conftest.$ac_ext >&5
24935 ac_lo=`expr '(' $ac_mid ')' + 1`
24938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24939 done
24940 case $ac_lo in
24941 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
24942 '') if test "$ac_cv_type_wchar_t" = yes; then
24943 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
24944 See \`config.log' for more details." >&5
24945 echo "$as_me: error: cannot compute sizeof (wchar_t)
24946 See \`config.log' for more details." >&2;}
24947 { (exit 77); exit 77; }; }
24948 else
24949 ac_cv_sizeof_wchar_t=0
24950 fi ;;
24951 esac
24952 else
24953 cat >conftest.$ac_ext <<_ACEOF
24954 /* confdefs.h. */
24955 _ACEOF
24956 cat confdefs.h >>conftest.$ac_ext
24957 cat >>conftest.$ac_ext <<_ACEOF
24958 /* end confdefs.h. */
24959 #include <wchar.h>
24961 typedef wchar_t ac__type_sizeof_;
24962 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24963 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24964 #include <stdio.h>
24965 #include <stdlib.h>
24967 main ()
24970 FILE *f = fopen ("conftest.val", "w");
24971 if (! f)
24972 return 1;
24973 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24975 long int i = longval ();
24976 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24977 return 1;
24978 fprintf (f, "%ld\n", i);
24980 else
24982 unsigned long int i = ulongval ();
24983 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24984 return 1;
24985 fprintf (f, "%lu\n", i);
24987 return ferror (f) || fclose (f) != 0;
24990 return 0;
24992 _ACEOF
24993 rm -f conftest$ac_exeext
24994 if { (ac_try="$ac_link"
24995 case "(($ac_try" in
24996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24997 *) ac_try_echo=$ac_try;;
24998 esac
24999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25000 (eval "$ac_link") 2>&5
25001 ac_status=$?
25002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25003 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25004 { (case "(($ac_try" in
25005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25006 *) ac_try_echo=$ac_try;;
25007 esac
25008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25009 (eval "$ac_try") 2>&5
25010 ac_status=$?
25011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25012 (exit $ac_status); }; }; then
25013 ac_cv_sizeof_wchar_t=`cat conftest.val`
25014 else
25015 echo "$as_me: program exited with status $ac_status" >&5
25016 echo "$as_me: failed program was:" >&5
25017 sed 's/^/| /' conftest.$ac_ext >&5
25019 ( exit $ac_status )
25020 if test "$ac_cv_type_wchar_t" = yes; then
25021 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
25022 See \`config.log' for more details." >&5
25023 echo "$as_me: error: cannot compute sizeof (wchar_t)
25024 See \`config.log' for more details." >&2;}
25025 { (exit 77); exit 77; }; }
25026 else
25027 ac_cv_sizeof_wchar_t=0
25030 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25032 rm -f conftest.val
25034 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
25035 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
25039 cat >>confdefs.h <<_ACEOF
25040 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
25041 _ACEOF
25046 { echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5
25047 echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6; }
25048 have_ucs4_tcl=no
25049 cat >conftest.$ac_ext <<_ACEOF
25050 /* confdefs.h. */
25051 _ACEOF
25052 cat confdefs.h >>conftest.$ac_ext
25053 cat >>conftest.$ac_ext <<_ACEOF
25054 /* end confdefs.h. */
25056 #include <tcl.h>
25057 #if TCL_UTF_MAX != 6
25058 # error "NOT UCS4_TCL"
25059 #endif
25061 main ()
25065 return 0;
25067 _ACEOF
25068 rm -f conftest.$ac_objext
25069 if { (ac_try="$ac_compile"
25070 case "(($ac_try" in
25071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25072 *) ac_try_echo=$ac_try;;
25073 esac
25074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25075 (eval "$ac_compile") 2>conftest.er1
25076 ac_status=$?
25077 grep -v '^ *+' conftest.er1 >conftest.err
25078 rm -f conftest.er1
25079 cat conftest.err >&5
25080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25081 (exit $ac_status); } && {
25082 test -z "$ac_c_werror_flag" ||
25083 test ! -s conftest.err
25084 } && test -s conftest.$ac_objext; then
25087 cat >>confdefs.h <<\_ACEOF
25088 #define HAVE_UCS4_TCL 1
25089 _ACEOF
25091 have_ucs4_tcl=yes
25093 else
25094 echo "$as_me: failed program was:" >&5
25095 sed 's/^/| /' conftest.$ac_ext >&5
25100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25101 { echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5
25102 echo "${ECHO_T}$have_ucs4_tcl" >&6; }
25104 # check whether wchar_t is signed or not
25105 if test "$wchar_h" = yes
25106 then
25107 # check whether wchar_t is signed or not
25108 { echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5
25109 echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6; }
25110 if test "${ac_cv_wchar_t_signed+set}" = set; then
25111 echo $ECHO_N "(cached) $ECHO_C" >&6
25112 else
25114 if test "$cross_compiling" = yes; then
25115 ac_cv_wchar_t_signed=yes
25116 else
25117 cat >conftest.$ac_ext <<_ACEOF
25118 /* confdefs.h. */
25119 _ACEOF
25120 cat confdefs.h >>conftest.$ac_ext
25121 cat >>conftest.$ac_ext <<_ACEOF
25122 /* end confdefs.h. */
25124 #include <wchar.h>
25125 int main()
25127 /* Success: exit code 0 */
25128 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
25131 _ACEOF
25132 rm -f conftest$ac_exeext
25133 if { (ac_try="$ac_link"
25134 case "(($ac_try" in
25135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25136 *) ac_try_echo=$ac_try;;
25137 esac
25138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25139 (eval "$ac_link") 2>&5
25140 ac_status=$?
25141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25142 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25143 { (case "(($ac_try" in
25144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25145 *) ac_try_echo=$ac_try;;
25146 esac
25147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25148 (eval "$ac_try") 2>&5
25149 ac_status=$?
25150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25151 (exit $ac_status); }; }; then
25152 ac_cv_wchar_t_signed=yes
25153 else
25154 echo "$as_me: program exited with status $ac_status" >&5
25155 echo "$as_me: failed program was:" >&5
25156 sed 's/^/| /' conftest.$ac_ext >&5
25158 ( exit $ac_status )
25159 ac_cv_wchar_t_signed=no
25161 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25167 { echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5
25168 echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6; }
25171 { echo "$as_me:$LINENO: checking what type to use for unicode" >&5
25172 echo $ECHO_N "checking what type to use for unicode... $ECHO_C" >&6; }
25173 # Check whether --enable-unicode was given.
25174 if test "${enable_unicode+set}" = set; then
25175 enableval=$enable_unicode;
25176 else
25177 enable_unicode=yes
25181 if test $enable_unicode = yes
25182 then
25183 # Without any arguments, Py_UNICODE defaults to two-byte mode
25184 case "$have_ucs4_tcl" in
25185 yes) enable_unicode="ucs4"
25187 *) enable_unicode="ucs2"
25189 esac
25194 case "$enable_unicode" in
25195 ucs2) unicode_size="2"
25196 cat >>confdefs.h <<\_ACEOF
25197 #define Py_UNICODE_SIZE 2
25198 _ACEOF
25201 ucs4) unicode_size="4"
25202 cat >>confdefs.h <<\_ACEOF
25203 #define Py_UNICODE_SIZE 4
25204 _ACEOF
25207 esac
25213 if test "$enable_unicode" = "no"
25214 then
25215 UNICODE_OBJS=""
25216 { echo "$as_me:$LINENO: result: not used" >&5
25217 echo "${ECHO_T}not used" >&6; }
25218 else
25219 UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o"
25221 cat >>confdefs.h <<\_ACEOF
25222 #define Py_USING_UNICODE 1
25223 _ACEOF
25226 # wchar_t is only usable if it maps to an unsigned type
25227 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
25228 -a "$ac_cv_wchar_t_signed" = "no"
25229 then
25230 PY_UNICODE_TYPE="wchar_t"
25232 cat >>confdefs.h <<\_ACEOF
25233 #define HAVE_USABLE_WCHAR_T 1
25234 _ACEOF
25236 cat >>confdefs.h <<\_ACEOF
25237 #define PY_UNICODE_TYPE wchar_t
25238 _ACEOF
25240 elif test "$ac_cv_sizeof_short" = "$unicode_size"
25241 then
25242 PY_UNICODE_TYPE="unsigned short"
25243 cat >>confdefs.h <<\_ACEOF
25244 #define PY_UNICODE_TYPE unsigned short
25245 _ACEOF
25247 elif test "$ac_cv_sizeof_long" = "$unicode_size"
25248 then
25249 PY_UNICODE_TYPE="unsigned long"
25250 cat >>confdefs.h <<\_ACEOF
25251 #define PY_UNICODE_TYPE unsigned long
25252 _ACEOF
25254 else
25255 PY_UNICODE_TYPE="no type found"
25257 { echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
25258 echo "${ECHO_T}$PY_UNICODE_TYPE" >&6; }
25261 # check for endianness
25262 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
25263 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
25264 if test "${ac_cv_c_bigendian+set}" = set; then
25265 echo $ECHO_N "(cached) $ECHO_C" >&6
25266 else
25267 # See if sys/param.h defines the BYTE_ORDER macro.
25268 cat >conftest.$ac_ext <<_ACEOF
25269 /* confdefs.h. */
25270 _ACEOF
25271 cat confdefs.h >>conftest.$ac_ext
25272 cat >>conftest.$ac_ext <<_ACEOF
25273 /* end confdefs.h. */
25274 #include <sys/types.h>
25275 #include <sys/param.h>
25278 main ()
25280 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
25281 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
25282 bogus endian macros
25283 #endif
25286 return 0;
25288 _ACEOF
25289 rm -f conftest.$ac_objext
25290 if { (ac_try="$ac_compile"
25291 case "(($ac_try" in
25292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25293 *) ac_try_echo=$ac_try;;
25294 esac
25295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25296 (eval "$ac_compile") 2>conftest.er1
25297 ac_status=$?
25298 grep -v '^ *+' conftest.er1 >conftest.err
25299 rm -f conftest.er1
25300 cat conftest.err >&5
25301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25302 (exit $ac_status); } && {
25303 test -z "$ac_c_werror_flag" ||
25304 test ! -s conftest.err
25305 } && test -s conftest.$ac_objext; then
25306 # It does; now see whether it defined to BIG_ENDIAN or not.
25307 cat >conftest.$ac_ext <<_ACEOF
25308 /* confdefs.h. */
25309 _ACEOF
25310 cat confdefs.h >>conftest.$ac_ext
25311 cat >>conftest.$ac_ext <<_ACEOF
25312 /* end confdefs.h. */
25313 #include <sys/types.h>
25314 #include <sys/param.h>
25317 main ()
25319 #if BYTE_ORDER != BIG_ENDIAN
25320 not big endian
25321 #endif
25324 return 0;
25326 _ACEOF
25327 rm -f conftest.$ac_objext
25328 if { (ac_try="$ac_compile"
25329 case "(($ac_try" in
25330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25331 *) ac_try_echo=$ac_try;;
25332 esac
25333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25334 (eval "$ac_compile") 2>conftest.er1
25335 ac_status=$?
25336 grep -v '^ *+' conftest.er1 >conftest.err
25337 rm -f conftest.er1
25338 cat conftest.err >&5
25339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25340 (exit $ac_status); } && {
25341 test -z "$ac_c_werror_flag" ||
25342 test ! -s conftest.err
25343 } && test -s conftest.$ac_objext; then
25344 ac_cv_c_bigendian=yes
25345 else
25346 echo "$as_me: failed program was:" >&5
25347 sed 's/^/| /' conftest.$ac_ext >&5
25349 ac_cv_c_bigendian=no
25352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25353 else
25354 echo "$as_me: failed program was:" >&5
25355 sed 's/^/| /' conftest.$ac_ext >&5
25357 # It does not; compile a test program.
25358 if test "$cross_compiling" = yes; then
25359 # try to guess the endianness by grepping values into an object file
25360 ac_cv_c_bigendian=unknown
25361 cat >conftest.$ac_ext <<_ACEOF
25362 /* confdefs.h. */
25363 _ACEOF
25364 cat confdefs.h >>conftest.$ac_ext
25365 cat >>conftest.$ac_ext <<_ACEOF
25366 /* end confdefs.h. */
25367 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
25368 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
25369 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
25370 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
25371 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
25372 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
25374 main ()
25376 _ascii (); _ebcdic ();
25378 return 0;
25380 _ACEOF
25381 rm -f conftest.$ac_objext
25382 if { (ac_try="$ac_compile"
25383 case "(($ac_try" in
25384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25385 *) ac_try_echo=$ac_try;;
25386 esac
25387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25388 (eval "$ac_compile") 2>conftest.er1
25389 ac_status=$?
25390 grep -v '^ *+' conftest.er1 >conftest.err
25391 rm -f conftest.er1
25392 cat conftest.err >&5
25393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25394 (exit $ac_status); } && {
25395 test -z "$ac_c_werror_flag" ||
25396 test ! -s conftest.err
25397 } && test -s conftest.$ac_objext; then
25398 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
25399 ac_cv_c_bigendian=yes
25401 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
25402 if test "$ac_cv_c_bigendian" = unknown; then
25403 ac_cv_c_bigendian=no
25404 else
25405 # finding both strings is unlikely to happen, but who knows?
25406 ac_cv_c_bigendian=unknown
25409 else
25410 echo "$as_me: failed program was:" >&5
25411 sed 's/^/| /' conftest.$ac_ext >&5
25416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25417 else
25418 cat >conftest.$ac_ext <<_ACEOF
25419 /* confdefs.h. */
25420 _ACEOF
25421 cat confdefs.h >>conftest.$ac_ext
25422 cat >>conftest.$ac_ext <<_ACEOF
25423 /* end confdefs.h. */
25424 $ac_includes_default
25426 main ()
25429 /* Are we little or big endian? From Harbison&Steele. */
25430 union
25432 long int l;
25433 char c[sizeof (long int)];
25434 } u;
25435 u.l = 1;
25436 return u.c[sizeof (long int) - 1] == 1;
25439 return 0;
25441 _ACEOF
25442 rm -f conftest$ac_exeext
25443 if { (ac_try="$ac_link"
25444 case "(($ac_try" in
25445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25446 *) ac_try_echo=$ac_try;;
25447 esac
25448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25449 (eval "$ac_link") 2>&5
25450 ac_status=$?
25451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25452 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25453 { (case "(($ac_try" in
25454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25455 *) ac_try_echo=$ac_try;;
25456 esac
25457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25458 (eval "$ac_try") 2>&5
25459 ac_status=$?
25460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25461 (exit $ac_status); }; }; then
25462 ac_cv_c_bigendian=no
25463 else
25464 echo "$as_me: program exited with status $ac_status" >&5
25465 echo "$as_me: failed program was:" >&5
25466 sed 's/^/| /' conftest.$ac_ext >&5
25468 ( exit $ac_status )
25469 ac_cv_c_bigendian=yes
25471 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25479 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
25480 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
25481 case $ac_cv_c_bigendian in
25482 yes)
25484 cat >>confdefs.h <<\_ACEOF
25485 #define WORDS_BIGENDIAN 1
25486 _ACEOF
25491 { { echo "$as_me:$LINENO: error: unknown endianness
25492 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
25493 echo "$as_me: error: unknown endianness
25494 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
25495 { (exit 1); exit 1; }; } ;;
25496 esac
25499 # Check whether right shifting a negative integer extends the sign bit
25500 # or fills with zeros (like the Cray J90, according to Tim Peters).
25501 { echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
25502 echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6; }
25503 if test "${ac_cv_rshift_extends_sign+set}" = set; then
25504 echo $ECHO_N "(cached) $ECHO_C" >&6
25505 else
25507 if test "$cross_compiling" = yes; then
25508 ac_cv_rshift_extends_sign=yes
25509 else
25510 cat >conftest.$ac_ext <<_ACEOF
25511 /* confdefs.h. */
25512 _ACEOF
25513 cat confdefs.h >>conftest.$ac_ext
25514 cat >>conftest.$ac_ext <<_ACEOF
25515 /* end confdefs.h. */
25517 int main()
25519 exit(((-1)>>3 == -1) ? 0 : 1);
25522 _ACEOF
25523 rm -f conftest$ac_exeext
25524 if { (ac_try="$ac_link"
25525 case "(($ac_try" in
25526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25527 *) ac_try_echo=$ac_try;;
25528 esac
25529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25530 (eval "$ac_link") 2>&5
25531 ac_status=$?
25532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25533 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25534 { (case "(($ac_try" in
25535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25536 *) ac_try_echo=$ac_try;;
25537 esac
25538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25539 (eval "$ac_try") 2>&5
25540 ac_status=$?
25541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25542 (exit $ac_status); }; }; then
25543 ac_cv_rshift_extends_sign=yes
25544 else
25545 echo "$as_me: program exited with status $ac_status" >&5
25546 echo "$as_me: failed program was:" >&5
25547 sed 's/^/| /' conftest.$ac_ext >&5
25549 ( exit $ac_status )
25550 ac_cv_rshift_extends_sign=no
25552 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25558 { echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
25559 echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6; }
25560 if test "$ac_cv_rshift_extends_sign" = no
25561 then
25563 cat >>confdefs.h <<\_ACEOF
25564 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
25565 _ACEOF
25569 # check for getc_unlocked and related locking functions
25570 { echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
25571 echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6; }
25572 if test "${ac_cv_have_getc_unlocked+set}" = set; then
25573 echo $ECHO_N "(cached) $ECHO_C" >&6
25574 else
25576 cat >conftest.$ac_ext <<_ACEOF
25577 /* confdefs.h. */
25578 _ACEOF
25579 cat confdefs.h >>conftest.$ac_ext
25580 cat >>conftest.$ac_ext <<_ACEOF
25581 /* end confdefs.h. */
25582 #include <stdio.h>
25584 main ()
25587 FILE *f = fopen("/dev/null", "r");
25588 flockfile(f);
25589 getc_unlocked(f);
25590 funlockfile(f);
25593 return 0;
25595 _ACEOF
25596 rm -f conftest.$ac_objext conftest$ac_exeext
25597 if { (ac_try="$ac_link"
25598 case "(($ac_try" in
25599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25600 *) ac_try_echo=$ac_try;;
25601 esac
25602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25603 (eval "$ac_link") 2>conftest.er1
25604 ac_status=$?
25605 grep -v '^ *+' conftest.er1 >conftest.err
25606 rm -f conftest.er1
25607 cat conftest.err >&5
25608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25609 (exit $ac_status); } && {
25610 test -z "$ac_c_werror_flag" ||
25611 test ! -s conftest.err
25612 } && test -s conftest$ac_exeext &&
25613 $as_test_x conftest$ac_exeext; then
25614 ac_cv_have_getc_unlocked=yes
25615 else
25616 echo "$as_me: failed program was:" >&5
25617 sed 's/^/| /' conftest.$ac_ext >&5
25619 ac_cv_have_getc_unlocked=no
25622 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25623 conftest$ac_exeext conftest.$ac_ext
25626 { echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
25627 echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6; }
25628 if test "$ac_cv_have_getc_unlocked" = yes
25629 then
25631 cat >>confdefs.h <<\_ACEOF
25632 #define HAVE_GETC_UNLOCKED 1
25633 _ACEOF
25637 # check where readline lives
25638 # save the value of LIBS so we don't actually link Python with readline
25639 LIBS_no_readline=$LIBS
25641 # On some systems we need to link readline to a termcap compatible
25642 # library. NOTE: Keep the precedence of listed libraries synchronised
25643 # with setup.py.
25644 py_cv_lib_readline=no
25645 { echo "$as_me:$LINENO: checking how to link readline libs" >&5
25646 echo $ECHO_N "checking how to link readline libs... $ECHO_C" >&6; }
25647 for py_libtermcap in "" ncursesw ncurses curses termcap; do
25648 if test -z "$py_libtermcap"; then
25649 READLINE_LIBS="-lreadline"
25650 else
25651 READLINE_LIBS="-lreadline -l$py_libtermcap"
25653 LIBS="$READLINE_LIBS $LIBS_no_readline"
25654 cat >conftest.$ac_ext <<_ACEOF
25655 /* confdefs.h. */
25656 _ACEOF
25657 cat confdefs.h >>conftest.$ac_ext
25658 cat >>conftest.$ac_ext <<_ACEOF
25659 /* end confdefs.h. */
25661 /* Override any GCC internal prototype to avoid an error.
25662 Use char because int might match the return type of a GCC
25663 builtin and then its argument prototype would still apply. */
25664 #ifdef __cplusplus
25665 extern "C"
25666 #endif
25667 char readline ();
25669 main ()
25671 return readline ();
25673 return 0;
25675 _ACEOF
25676 rm -f conftest.$ac_objext conftest$ac_exeext
25677 if { (ac_try="$ac_link"
25678 case "(($ac_try" in
25679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25680 *) ac_try_echo=$ac_try;;
25681 esac
25682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25683 (eval "$ac_link") 2>conftest.er1
25684 ac_status=$?
25685 grep -v '^ *+' conftest.er1 >conftest.err
25686 rm -f conftest.er1
25687 cat conftest.err >&5
25688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25689 (exit $ac_status); } && {
25690 test -z "$ac_c_werror_flag" ||
25691 test ! -s conftest.err
25692 } && test -s conftest$ac_exeext &&
25693 $as_test_x conftest$ac_exeext; then
25694 py_cv_lib_readline=yes
25695 else
25696 echo "$as_me: failed program was:" >&5
25697 sed 's/^/| /' conftest.$ac_ext >&5
25702 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25703 conftest$ac_exeext conftest.$ac_ext
25704 if test $py_cv_lib_readline = yes; then
25705 break
25707 done
25708 # Uncomment this line if you want to use READINE_LIBS in Makefile or scripts
25709 #AC_SUBST([READLINE_LIBS])
25710 if test $py_cv_lib_readline = no; then
25711 { echo "$as_me:$LINENO: result: none" >&5
25712 echo "${ECHO_T}none" >&6; }
25713 else
25714 { echo "$as_me:$LINENO: result: $READLINE_LIBS" >&5
25715 echo "${ECHO_T}$READLINE_LIBS" >&6; }
25717 cat >>confdefs.h <<\_ACEOF
25718 #define HAVE_LIBREADLINE 1
25719 _ACEOF
25723 # check for readline 2.1
25724 { echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
25725 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6; }
25726 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
25727 echo $ECHO_N "(cached) $ECHO_C" >&6
25728 else
25729 ac_check_lib_save_LIBS=$LIBS
25730 LIBS="-lreadline $READLINE_LIBS $LIBS"
25731 cat >conftest.$ac_ext <<_ACEOF
25732 /* confdefs.h. */
25733 _ACEOF
25734 cat confdefs.h >>conftest.$ac_ext
25735 cat >>conftest.$ac_ext <<_ACEOF
25736 /* end confdefs.h. */
25738 /* Override any GCC internal prototype to avoid an error.
25739 Use char because int might match the return type of a GCC
25740 builtin and then its argument prototype would still apply. */
25741 #ifdef __cplusplus
25742 extern "C"
25743 #endif
25744 char rl_callback_handler_install ();
25746 main ()
25748 return rl_callback_handler_install ();
25750 return 0;
25752 _ACEOF
25753 rm -f conftest.$ac_objext conftest$ac_exeext
25754 if { (ac_try="$ac_link"
25755 case "(($ac_try" in
25756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25757 *) ac_try_echo=$ac_try;;
25758 esac
25759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25760 (eval "$ac_link") 2>conftest.er1
25761 ac_status=$?
25762 grep -v '^ *+' conftest.er1 >conftest.err
25763 rm -f conftest.er1
25764 cat conftest.err >&5
25765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25766 (exit $ac_status); } && {
25767 test -z "$ac_c_werror_flag" ||
25768 test ! -s conftest.err
25769 } && test -s conftest$ac_exeext &&
25770 $as_test_x conftest$ac_exeext; then
25771 ac_cv_lib_readline_rl_callback_handler_install=yes
25772 else
25773 echo "$as_me: failed program was:" >&5
25774 sed 's/^/| /' conftest.$ac_ext >&5
25776 ac_cv_lib_readline_rl_callback_handler_install=no
25779 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25780 conftest$ac_exeext conftest.$ac_ext
25781 LIBS=$ac_check_lib_save_LIBS
25783 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
25784 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6; }
25785 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
25787 cat >>confdefs.h <<\_ACEOF
25788 #define HAVE_RL_CALLBACK 1
25789 _ACEOF
25794 # check for readline 2.2
25795 cat >conftest.$ac_ext <<_ACEOF
25796 /* confdefs.h. */
25797 _ACEOF
25798 cat confdefs.h >>conftest.$ac_ext
25799 cat >>conftest.$ac_ext <<_ACEOF
25800 /* end confdefs.h. */
25801 #include <readline/readline.h>
25802 _ACEOF
25803 if { (ac_try="$ac_cpp conftest.$ac_ext"
25804 case "(($ac_try" in
25805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25806 *) ac_try_echo=$ac_try;;
25807 esac
25808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25809 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25810 ac_status=$?
25811 grep -v '^ *+' conftest.er1 >conftest.err
25812 rm -f conftest.er1
25813 cat conftest.err >&5
25814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25815 (exit $ac_status); } >/dev/null && {
25816 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25817 test ! -s conftest.err
25818 }; then
25819 have_readline=yes
25820 else
25821 echo "$as_me: failed program was:" >&5
25822 sed 's/^/| /' conftest.$ac_ext >&5
25824 have_readline=no
25827 rm -f conftest.err conftest.$ac_ext
25828 if test $have_readline = yes
25829 then
25830 cat >conftest.$ac_ext <<_ACEOF
25831 /* confdefs.h. */
25832 _ACEOF
25833 cat confdefs.h >>conftest.$ac_ext
25834 cat >>conftest.$ac_ext <<_ACEOF
25835 /* end confdefs.h. */
25836 #include <readline/readline.h>
25838 _ACEOF
25839 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25840 $EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then
25842 cat >>confdefs.h <<\_ACEOF
25843 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
25844 _ACEOF
25847 rm -f conftest*
25849 cat >conftest.$ac_ext <<_ACEOF
25850 /* confdefs.h. */
25851 _ACEOF
25852 cat confdefs.h >>conftest.$ac_ext
25853 cat >>conftest.$ac_ext <<_ACEOF
25854 /* end confdefs.h. */
25855 #include <readline/readline.h>
25857 _ACEOF
25858 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25859 $EGREP "extern int rl_completion_suppress_append;" >/dev/null 2>&1; then
25861 cat >>confdefs.h <<\_ACEOF
25862 #define HAVE_RL_COMPLETION_SUPPRESS_APPEND 1
25863 _ACEOF
25866 rm -f conftest*
25870 # check for readline 4.0
25871 { echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
25872 echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6; }
25873 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
25874 echo $ECHO_N "(cached) $ECHO_C" >&6
25875 else
25876 ac_check_lib_save_LIBS=$LIBS
25877 LIBS="-lreadline $READLINE_LIBS $LIBS"
25878 cat >conftest.$ac_ext <<_ACEOF
25879 /* confdefs.h. */
25880 _ACEOF
25881 cat confdefs.h >>conftest.$ac_ext
25882 cat >>conftest.$ac_ext <<_ACEOF
25883 /* end confdefs.h. */
25885 /* Override any GCC internal prototype to avoid an error.
25886 Use char because int might match the return type of a GCC
25887 builtin and then its argument prototype would still apply. */
25888 #ifdef __cplusplus
25889 extern "C"
25890 #endif
25891 char rl_pre_input_hook ();
25893 main ()
25895 return rl_pre_input_hook ();
25897 return 0;
25899 _ACEOF
25900 rm -f conftest.$ac_objext conftest$ac_exeext
25901 if { (ac_try="$ac_link"
25902 case "(($ac_try" in
25903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25904 *) ac_try_echo=$ac_try;;
25905 esac
25906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25907 (eval "$ac_link") 2>conftest.er1
25908 ac_status=$?
25909 grep -v '^ *+' conftest.er1 >conftest.err
25910 rm -f conftest.er1
25911 cat conftest.err >&5
25912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25913 (exit $ac_status); } && {
25914 test -z "$ac_c_werror_flag" ||
25915 test ! -s conftest.err
25916 } && test -s conftest$ac_exeext &&
25917 $as_test_x conftest$ac_exeext; then
25918 ac_cv_lib_readline_rl_pre_input_hook=yes
25919 else
25920 echo "$as_me: failed program was:" >&5
25921 sed 's/^/| /' conftest.$ac_ext >&5
25923 ac_cv_lib_readline_rl_pre_input_hook=no
25926 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25927 conftest$ac_exeext conftest.$ac_ext
25928 LIBS=$ac_check_lib_save_LIBS
25930 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
25931 echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6; }
25932 if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
25934 cat >>confdefs.h <<\_ACEOF
25935 #define HAVE_RL_PRE_INPUT_HOOK 1
25936 _ACEOF
25941 # also in 4.0
25942 { echo "$as_me:$LINENO: checking for rl_completion_display_matches_hook in -lreadline" >&5
25943 echo $ECHO_N "checking for rl_completion_display_matches_hook in -lreadline... $ECHO_C" >&6; }
25944 if test "${ac_cv_lib_readline_rl_completion_display_matches_hook+set}" = set; then
25945 echo $ECHO_N "(cached) $ECHO_C" >&6
25946 else
25947 ac_check_lib_save_LIBS=$LIBS
25948 LIBS="-lreadline $READLINE_LIBS $LIBS"
25949 cat >conftest.$ac_ext <<_ACEOF
25950 /* confdefs.h. */
25951 _ACEOF
25952 cat confdefs.h >>conftest.$ac_ext
25953 cat >>conftest.$ac_ext <<_ACEOF
25954 /* end confdefs.h. */
25956 /* Override any GCC internal prototype to avoid an error.
25957 Use char because int might match the return type of a GCC
25958 builtin and then its argument prototype would still apply. */
25959 #ifdef __cplusplus
25960 extern "C"
25961 #endif
25962 char rl_completion_display_matches_hook ();
25964 main ()
25966 return rl_completion_display_matches_hook ();
25968 return 0;
25970 _ACEOF
25971 rm -f conftest.$ac_objext conftest$ac_exeext
25972 if { (ac_try="$ac_link"
25973 case "(($ac_try" in
25974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25975 *) ac_try_echo=$ac_try;;
25976 esac
25977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25978 (eval "$ac_link") 2>conftest.er1
25979 ac_status=$?
25980 grep -v '^ *+' conftest.er1 >conftest.err
25981 rm -f conftest.er1
25982 cat conftest.err >&5
25983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25984 (exit $ac_status); } && {
25985 test -z "$ac_c_werror_flag" ||
25986 test ! -s conftest.err
25987 } && test -s conftest$ac_exeext &&
25988 $as_test_x conftest$ac_exeext; then
25989 ac_cv_lib_readline_rl_completion_display_matches_hook=yes
25990 else
25991 echo "$as_me: failed program was:" >&5
25992 sed 's/^/| /' conftest.$ac_ext >&5
25994 ac_cv_lib_readline_rl_completion_display_matches_hook=no
25997 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25998 conftest$ac_exeext conftest.$ac_ext
25999 LIBS=$ac_check_lib_save_LIBS
26001 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5
26002 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; }
26003 if test $ac_cv_lib_readline_rl_completion_display_matches_hook = yes; then
26005 cat >>confdefs.h <<\_ACEOF
26006 #define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1
26007 _ACEOF
26012 # check for readline 4.2
26013 { echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
26014 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6; }
26015 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
26016 echo $ECHO_N "(cached) $ECHO_C" >&6
26017 else
26018 ac_check_lib_save_LIBS=$LIBS
26019 LIBS="-lreadline $READLINE_LIBS $LIBS"
26020 cat >conftest.$ac_ext <<_ACEOF
26021 /* confdefs.h. */
26022 _ACEOF
26023 cat confdefs.h >>conftest.$ac_ext
26024 cat >>conftest.$ac_ext <<_ACEOF
26025 /* end confdefs.h. */
26027 /* Override any GCC internal prototype to avoid an error.
26028 Use char because int might match the return type of a GCC
26029 builtin and then its argument prototype would still apply. */
26030 #ifdef __cplusplus
26031 extern "C"
26032 #endif
26033 char rl_completion_matches ();
26035 main ()
26037 return rl_completion_matches ();
26039 return 0;
26041 _ACEOF
26042 rm -f conftest.$ac_objext conftest$ac_exeext
26043 if { (ac_try="$ac_link"
26044 case "(($ac_try" in
26045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26046 *) ac_try_echo=$ac_try;;
26047 esac
26048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26049 (eval "$ac_link") 2>conftest.er1
26050 ac_status=$?
26051 grep -v '^ *+' conftest.er1 >conftest.err
26052 rm -f conftest.er1
26053 cat conftest.err >&5
26054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26055 (exit $ac_status); } && {
26056 test -z "$ac_c_werror_flag" ||
26057 test ! -s conftest.err
26058 } && test -s conftest$ac_exeext &&
26059 $as_test_x conftest$ac_exeext; then
26060 ac_cv_lib_readline_rl_completion_matches=yes
26061 else
26062 echo "$as_me: failed program was:" >&5
26063 sed 's/^/| /' conftest.$ac_ext >&5
26065 ac_cv_lib_readline_rl_completion_matches=no
26068 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26069 conftest$ac_exeext conftest.$ac_ext
26070 LIBS=$ac_check_lib_save_LIBS
26072 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
26073 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6; }
26074 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
26076 cat >>confdefs.h <<\_ACEOF
26077 #define HAVE_RL_COMPLETION_MATCHES 1
26078 _ACEOF
26083 # also in readline 4.2
26084 cat >conftest.$ac_ext <<_ACEOF
26085 /* confdefs.h. */
26086 _ACEOF
26087 cat confdefs.h >>conftest.$ac_ext
26088 cat >>conftest.$ac_ext <<_ACEOF
26089 /* end confdefs.h. */
26090 #include <readline/readline.h>
26091 _ACEOF
26092 if { (ac_try="$ac_cpp conftest.$ac_ext"
26093 case "(($ac_try" in
26094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26095 *) ac_try_echo=$ac_try;;
26096 esac
26097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26098 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26099 ac_status=$?
26100 grep -v '^ *+' conftest.er1 >conftest.err
26101 rm -f conftest.er1
26102 cat conftest.err >&5
26103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26104 (exit $ac_status); } >/dev/null && {
26105 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26106 test ! -s conftest.err
26107 }; then
26108 have_readline=yes
26109 else
26110 echo "$as_me: failed program was:" >&5
26111 sed 's/^/| /' conftest.$ac_ext >&5
26113 have_readline=no
26116 rm -f conftest.err conftest.$ac_ext
26117 if test $have_readline = yes
26118 then
26119 cat >conftest.$ac_ext <<_ACEOF
26120 /* confdefs.h. */
26121 _ACEOF
26122 cat confdefs.h >>conftest.$ac_ext
26123 cat >>conftest.$ac_ext <<_ACEOF
26124 /* end confdefs.h. */
26125 #include <readline/readline.h>
26127 _ACEOF
26128 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26129 $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then
26131 cat >>confdefs.h <<\_ACEOF
26132 #define HAVE_RL_CATCH_SIGNAL 1
26133 _ACEOF
26136 rm -f conftest*
26140 # End of readline checks: restore LIBS
26141 LIBS=$LIBS_no_readline
26143 { echo "$as_me:$LINENO: checking for broken nice()" >&5
26144 echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6; }
26145 if test "${ac_cv_broken_nice+set}" = set; then
26146 echo $ECHO_N "(cached) $ECHO_C" >&6
26147 else
26149 if test "$cross_compiling" = yes; then
26150 ac_cv_broken_nice=no
26151 else
26152 cat >conftest.$ac_ext <<_ACEOF
26153 /* confdefs.h. */
26154 _ACEOF
26155 cat confdefs.h >>conftest.$ac_ext
26156 cat >>conftest.$ac_ext <<_ACEOF
26157 /* end confdefs.h. */
26159 int main()
26161 int val1 = nice(1);
26162 if (val1 != -1 && val1 == nice(2))
26163 exit(0);
26164 exit(1);
26167 _ACEOF
26168 rm -f conftest$ac_exeext
26169 if { (ac_try="$ac_link"
26170 case "(($ac_try" in
26171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26172 *) ac_try_echo=$ac_try;;
26173 esac
26174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26175 (eval "$ac_link") 2>&5
26176 ac_status=$?
26177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26178 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26179 { (case "(($ac_try" in
26180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26181 *) ac_try_echo=$ac_try;;
26182 esac
26183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26184 (eval "$ac_try") 2>&5
26185 ac_status=$?
26186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26187 (exit $ac_status); }; }; then
26188 ac_cv_broken_nice=yes
26189 else
26190 echo "$as_me: program exited with status $ac_status" >&5
26191 echo "$as_me: failed program was:" >&5
26192 sed 's/^/| /' conftest.$ac_ext >&5
26194 ( exit $ac_status )
26195 ac_cv_broken_nice=no
26197 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26203 { echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
26204 echo "${ECHO_T}$ac_cv_broken_nice" >&6; }
26205 if test "$ac_cv_broken_nice" = yes
26206 then
26208 cat >>confdefs.h <<\_ACEOF
26209 #define HAVE_BROKEN_NICE 1
26210 _ACEOF
26214 { echo "$as_me:$LINENO: checking for broken poll()" >&5
26215 echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6; }
26216 if test "${ac_cv_broken_poll+set}" = set; then
26217 echo $ECHO_N "(cached) $ECHO_C" >&6
26218 else
26219 if test "$cross_compiling" = yes; then
26220 ac_cv_broken_poll=no
26221 else
26222 cat >conftest.$ac_ext <<_ACEOF
26223 /* confdefs.h. */
26224 _ACEOF
26225 cat confdefs.h >>conftest.$ac_ext
26226 cat >>conftest.$ac_ext <<_ACEOF
26227 /* end confdefs.h. */
26229 #include <poll.h>
26231 int main()
26233 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
26234 int poll_test;
26236 close (42);
26238 poll_test = poll(&poll_struct, 1, 0);
26239 if (poll_test < 0)
26240 return 0;
26241 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
26242 return 0;
26243 else
26244 return 1;
26247 _ACEOF
26248 rm -f conftest$ac_exeext
26249 if { (ac_try="$ac_link"
26250 case "(($ac_try" in
26251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26252 *) ac_try_echo=$ac_try;;
26253 esac
26254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26255 (eval "$ac_link") 2>&5
26256 ac_status=$?
26257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26258 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26259 { (case "(($ac_try" in
26260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26261 *) ac_try_echo=$ac_try;;
26262 esac
26263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26264 (eval "$ac_try") 2>&5
26265 ac_status=$?
26266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26267 (exit $ac_status); }; }; then
26268 ac_cv_broken_poll=yes
26269 else
26270 echo "$as_me: program exited with status $ac_status" >&5
26271 echo "$as_me: failed program was:" >&5
26272 sed 's/^/| /' conftest.$ac_ext >&5
26274 ( exit $ac_status )
26275 ac_cv_broken_poll=no
26277 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26283 { echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5
26284 echo "${ECHO_T}$ac_cv_broken_poll" >&6; }
26285 if test "$ac_cv_broken_poll" = yes
26286 then
26288 cat >>confdefs.h <<\_ACEOF
26289 #define HAVE_BROKEN_POLL 1
26290 _ACEOF
26294 # Before we can test tzset, we need to check if struct tm has a tm_zone
26295 # (which is not required by ISO C or UNIX spec) and/or if we support
26296 # tzname[]
26297 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
26298 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
26299 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
26300 echo $ECHO_N "(cached) $ECHO_C" >&6
26301 else
26302 cat >conftest.$ac_ext <<_ACEOF
26303 /* confdefs.h. */
26304 _ACEOF
26305 cat confdefs.h >>conftest.$ac_ext
26306 cat >>conftest.$ac_ext <<_ACEOF
26307 /* end confdefs.h. */
26308 #include <sys/types.h>
26309 #include <$ac_cv_struct_tm>
26313 main ()
26315 static struct tm ac_aggr;
26316 if (ac_aggr.tm_zone)
26317 return 0;
26319 return 0;
26321 _ACEOF
26322 rm -f conftest.$ac_objext
26323 if { (ac_try="$ac_compile"
26324 case "(($ac_try" in
26325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26326 *) ac_try_echo=$ac_try;;
26327 esac
26328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26329 (eval "$ac_compile") 2>conftest.er1
26330 ac_status=$?
26331 grep -v '^ *+' conftest.er1 >conftest.err
26332 rm -f conftest.er1
26333 cat conftest.err >&5
26334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26335 (exit $ac_status); } && {
26336 test -z "$ac_c_werror_flag" ||
26337 test ! -s conftest.err
26338 } && test -s conftest.$ac_objext; then
26339 ac_cv_member_struct_tm_tm_zone=yes
26340 else
26341 echo "$as_me: failed program was:" >&5
26342 sed 's/^/| /' conftest.$ac_ext >&5
26344 cat >conftest.$ac_ext <<_ACEOF
26345 /* confdefs.h. */
26346 _ACEOF
26347 cat confdefs.h >>conftest.$ac_ext
26348 cat >>conftest.$ac_ext <<_ACEOF
26349 /* end confdefs.h. */
26350 #include <sys/types.h>
26351 #include <$ac_cv_struct_tm>
26355 main ()
26357 static struct tm ac_aggr;
26358 if (sizeof ac_aggr.tm_zone)
26359 return 0;
26361 return 0;
26363 _ACEOF
26364 rm -f conftest.$ac_objext
26365 if { (ac_try="$ac_compile"
26366 case "(($ac_try" in
26367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26368 *) ac_try_echo=$ac_try;;
26369 esac
26370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26371 (eval "$ac_compile") 2>conftest.er1
26372 ac_status=$?
26373 grep -v '^ *+' conftest.er1 >conftest.err
26374 rm -f conftest.er1
26375 cat conftest.err >&5
26376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26377 (exit $ac_status); } && {
26378 test -z "$ac_c_werror_flag" ||
26379 test ! -s conftest.err
26380 } && test -s conftest.$ac_objext; then
26381 ac_cv_member_struct_tm_tm_zone=yes
26382 else
26383 echo "$as_me: failed program was:" >&5
26384 sed 's/^/| /' conftest.$ac_ext >&5
26386 ac_cv_member_struct_tm_tm_zone=no
26389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26394 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
26395 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
26396 if test $ac_cv_member_struct_tm_tm_zone = yes; then
26398 cat >>confdefs.h <<_ACEOF
26399 #define HAVE_STRUCT_TM_TM_ZONE 1
26400 _ACEOF
26405 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
26407 cat >>confdefs.h <<\_ACEOF
26408 #define HAVE_TM_ZONE 1
26409 _ACEOF
26411 else
26412 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
26413 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
26414 if test "${ac_cv_have_decl_tzname+set}" = set; then
26415 echo $ECHO_N "(cached) $ECHO_C" >&6
26416 else
26417 cat >conftest.$ac_ext <<_ACEOF
26418 /* confdefs.h. */
26419 _ACEOF
26420 cat confdefs.h >>conftest.$ac_ext
26421 cat >>conftest.$ac_ext <<_ACEOF
26422 /* end confdefs.h. */
26423 #include <time.h>
26426 main ()
26428 #ifndef tzname
26429 (void) tzname;
26430 #endif
26433 return 0;
26435 _ACEOF
26436 rm -f conftest.$ac_objext
26437 if { (ac_try="$ac_compile"
26438 case "(($ac_try" in
26439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26440 *) ac_try_echo=$ac_try;;
26441 esac
26442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26443 (eval "$ac_compile") 2>conftest.er1
26444 ac_status=$?
26445 grep -v '^ *+' conftest.er1 >conftest.err
26446 rm -f conftest.er1
26447 cat conftest.err >&5
26448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26449 (exit $ac_status); } && {
26450 test -z "$ac_c_werror_flag" ||
26451 test ! -s conftest.err
26452 } && test -s conftest.$ac_objext; then
26453 ac_cv_have_decl_tzname=yes
26454 else
26455 echo "$as_me: failed program was:" >&5
26456 sed 's/^/| /' conftest.$ac_ext >&5
26458 ac_cv_have_decl_tzname=no
26461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26463 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
26464 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
26465 if test $ac_cv_have_decl_tzname = yes; then
26467 cat >>confdefs.h <<_ACEOF
26468 #define HAVE_DECL_TZNAME 1
26469 _ACEOF
26472 else
26473 cat >>confdefs.h <<_ACEOF
26474 #define HAVE_DECL_TZNAME 0
26475 _ACEOF
26481 { echo "$as_me:$LINENO: checking for tzname" >&5
26482 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
26483 if test "${ac_cv_var_tzname+set}" = set; then
26484 echo $ECHO_N "(cached) $ECHO_C" >&6
26485 else
26486 cat >conftest.$ac_ext <<_ACEOF
26487 /* confdefs.h. */
26488 _ACEOF
26489 cat confdefs.h >>conftest.$ac_ext
26490 cat >>conftest.$ac_ext <<_ACEOF
26491 /* end confdefs.h. */
26492 #include <time.h>
26493 #if !HAVE_DECL_TZNAME
26494 extern char *tzname[];
26495 #endif
26498 main ()
26500 return tzname[0][0];
26502 return 0;
26504 _ACEOF
26505 rm -f conftest.$ac_objext conftest$ac_exeext
26506 if { (ac_try="$ac_link"
26507 case "(($ac_try" in
26508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26509 *) ac_try_echo=$ac_try;;
26510 esac
26511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26512 (eval "$ac_link") 2>conftest.er1
26513 ac_status=$?
26514 grep -v '^ *+' conftest.er1 >conftest.err
26515 rm -f conftest.er1
26516 cat conftest.err >&5
26517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26518 (exit $ac_status); } && {
26519 test -z "$ac_c_werror_flag" ||
26520 test ! -s conftest.err
26521 } && test -s conftest$ac_exeext &&
26522 $as_test_x conftest$ac_exeext; then
26523 ac_cv_var_tzname=yes
26524 else
26525 echo "$as_me: failed program was:" >&5
26526 sed 's/^/| /' conftest.$ac_ext >&5
26528 ac_cv_var_tzname=no
26531 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26532 conftest$ac_exeext conftest.$ac_ext
26534 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
26535 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
26536 if test $ac_cv_var_tzname = yes; then
26538 cat >>confdefs.h <<\_ACEOF
26539 #define HAVE_TZNAME 1
26540 _ACEOF
26546 # check tzset(3) exists and works like we expect it to
26547 { echo "$as_me:$LINENO: checking for working tzset()" >&5
26548 echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6; }
26549 if test "${ac_cv_working_tzset+set}" = set; then
26550 echo $ECHO_N "(cached) $ECHO_C" >&6
26551 else
26553 if test "$cross_compiling" = yes; then
26554 ac_cv_working_tzset=no
26555 else
26556 cat >conftest.$ac_ext <<_ACEOF
26557 /* confdefs.h. */
26558 _ACEOF
26559 cat confdefs.h >>conftest.$ac_ext
26560 cat >>conftest.$ac_ext <<_ACEOF
26561 /* end confdefs.h. */
26563 #include <stdlib.h>
26564 #include <time.h>
26565 #include <string.h>
26567 #if HAVE_TZNAME
26568 extern char *tzname[];
26569 #endif
26571 int main()
26573 /* Note that we need to ensure that not only does tzset(3)
26574 do 'something' with localtime, but it works as documented
26575 in the library reference and as expected by the test suite.
26576 This includes making sure that tzname is set properly if
26577 tm->tm_zone does not exist since it is the alternative way
26578 of getting timezone info.
26580 Red Hat 6.2 doesn't understand the southern hemisphere
26581 after New Year's Day.
26584 time_t groundhogday = 1044144000; /* GMT-based */
26585 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
26587 putenv("TZ=UTC+0");
26588 tzset();
26589 if (localtime(&groundhogday)->tm_hour != 0)
26590 exit(1);
26591 #if HAVE_TZNAME
26592 /* For UTC, tzname[1] is sometimes "", sometimes " " */
26593 if (strcmp(tzname[0], "UTC") ||
26594 (tzname[1][0] != 0 && tzname[1][0] != ' '))
26595 exit(1);
26596 #endif
26598 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
26599 tzset();
26600 if (localtime(&groundhogday)->tm_hour != 19)
26601 exit(1);
26602 #if HAVE_TZNAME
26603 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
26604 exit(1);
26605 #endif
26607 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
26608 tzset();
26609 if (localtime(&groundhogday)->tm_hour != 11)
26610 exit(1);
26611 #if HAVE_TZNAME
26612 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
26613 exit(1);
26614 #endif
26616 #if HAVE_STRUCT_TM_TM_ZONE
26617 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
26618 exit(1);
26619 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
26620 exit(1);
26621 #endif
26623 exit(0);
26626 _ACEOF
26627 rm -f conftest$ac_exeext
26628 if { (ac_try="$ac_link"
26629 case "(($ac_try" in
26630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26631 *) ac_try_echo=$ac_try;;
26632 esac
26633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26634 (eval "$ac_link") 2>&5
26635 ac_status=$?
26636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26637 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26638 { (case "(($ac_try" in
26639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26640 *) ac_try_echo=$ac_try;;
26641 esac
26642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26643 (eval "$ac_try") 2>&5
26644 ac_status=$?
26645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26646 (exit $ac_status); }; }; then
26647 ac_cv_working_tzset=yes
26648 else
26649 echo "$as_me: program exited with status $ac_status" >&5
26650 echo "$as_me: failed program was:" >&5
26651 sed 's/^/| /' conftest.$ac_ext >&5
26653 ( exit $ac_status )
26654 ac_cv_working_tzset=no
26656 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26662 { echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5
26663 echo "${ECHO_T}$ac_cv_working_tzset" >&6; }
26664 if test "$ac_cv_working_tzset" = yes
26665 then
26667 cat >>confdefs.h <<\_ACEOF
26668 #define HAVE_WORKING_TZSET 1
26669 _ACEOF
26673 # Look for subsecond timestamps in struct stat
26674 { echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
26675 echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6; }
26676 if test "${ac_cv_stat_tv_nsec+set}" = set; then
26677 echo $ECHO_N "(cached) $ECHO_C" >&6
26678 else
26679 cat >conftest.$ac_ext <<_ACEOF
26680 /* confdefs.h. */
26681 _ACEOF
26682 cat confdefs.h >>conftest.$ac_ext
26683 cat >>conftest.$ac_ext <<_ACEOF
26684 /* end confdefs.h. */
26685 #include <sys/stat.h>
26687 main ()
26690 struct stat st;
26691 st.st_mtim.tv_nsec = 1;
26694 return 0;
26696 _ACEOF
26697 rm -f conftest.$ac_objext
26698 if { (ac_try="$ac_compile"
26699 case "(($ac_try" in
26700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26701 *) ac_try_echo=$ac_try;;
26702 esac
26703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26704 (eval "$ac_compile") 2>conftest.er1
26705 ac_status=$?
26706 grep -v '^ *+' conftest.er1 >conftest.err
26707 rm -f conftest.er1
26708 cat conftest.err >&5
26709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26710 (exit $ac_status); } && {
26711 test -z "$ac_c_werror_flag" ||
26712 test ! -s conftest.err
26713 } && test -s conftest.$ac_objext; then
26714 ac_cv_stat_tv_nsec=yes
26715 else
26716 echo "$as_me: failed program was:" >&5
26717 sed 's/^/| /' conftest.$ac_ext >&5
26719 ac_cv_stat_tv_nsec=no
26722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26725 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
26726 echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6; }
26727 if test "$ac_cv_stat_tv_nsec" = yes
26728 then
26730 cat >>confdefs.h <<\_ACEOF
26731 #define HAVE_STAT_TV_NSEC 1
26732 _ACEOF
26736 # Look for BSD style subsecond timestamps in struct stat
26737 { echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5
26738 echo $ECHO_N "checking for tv_nsec2 in struct stat... $ECHO_C" >&6; }
26739 if test "${ac_cv_stat_tv_nsec2+set}" = set; then
26740 echo $ECHO_N "(cached) $ECHO_C" >&6
26741 else
26742 cat >conftest.$ac_ext <<_ACEOF
26743 /* confdefs.h. */
26744 _ACEOF
26745 cat confdefs.h >>conftest.$ac_ext
26746 cat >>conftest.$ac_ext <<_ACEOF
26747 /* end confdefs.h. */
26748 #include <sys/stat.h>
26750 main ()
26753 struct stat st;
26754 st.st_mtimespec.tv_nsec = 1;
26757 return 0;
26759 _ACEOF
26760 rm -f conftest.$ac_objext
26761 if { (ac_try="$ac_compile"
26762 case "(($ac_try" in
26763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26764 *) ac_try_echo=$ac_try;;
26765 esac
26766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26767 (eval "$ac_compile") 2>conftest.er1
26768 ac_status=$?
26769 grep -v '^ *+' conftest.er1 >conftest.err
26770 rm -f conftest.er1
26771 cat conftest.err >&5
26772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26773 (exit $ac_status); } && {
26774 test -z "$ac_c_werror_flag" ||
26775 test ! -s conftest.err
26776 } && test -s conftest.$ac_objext; then
26777 ac_cv_stat_tv_nsec2=yes
26778 else
26779 echo "$as_me: failed program was:" >&5
26780 sed 's/^/| /' conftest.$ac_ext >&5
26782 ac_cv_stat_tv_nsec2=no
26785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26788 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5
26789 echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6; }
26790 if test "$ac_cv_stat_tv_nsec2" = yes
26791 then
26793 cat >>confdefs.h <<\_ACEOF
26794 #define HAVE_STAT_TV_NSEC2 1
26795 _ACEOF
26799 # On HP/UX 11.0, mvwdelch is a block with a return statement
26800 { echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
26801 echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6; }
26802 if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
26803 echo $ECHO_N "(cached) $ECHO_C" >&6
26804 else
26805 cat >conftest.$ac_ext <<_ACEOF
26806 /* confdefs.h. */
26807 _ACEOF
26808 cat confdefs.h >>conftest.$ac_ext
26809 cat >>conftest.$ac_ext <<_ACEOF
26810 /* end confdefs.h. */
26811 #include <curses.h>
26813 main ()
26816 int rtn;
26817 rtn = mvwdelch(0,0,0);
26820 return 0;
26822 _ACEOF
26823 rm -f conftest.$ac_objext
26824 if { (ac_try="$ac_compile"
26825 case "(($ac_try" in
26826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26827 *) ac_try_echo=$ac_try;;
26828 esac
26829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26830 (eval "$ac_compile") 2>conftest.er1
26831 ac_status=$?
26832 grep -v '^ *+' conftest.er1 >conftest.err
26833 rm -f conftest.er1
26834 cat conftest.err >&5
26835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26836 (exit $ac_status); } && {
26837 test -z "$ac_c_werror_flag" ||
26838 test ! -s conftest.err
26839 } && test -s conftest.$ac_objext; then
26840 ac_cv_mvwdelch_is_expression=yes
26841 else
26842 echo "$as_me: failed program was:" >&5
26843 sed 's/^/| /' conftest.$ac_ext >&5
26845 ac_cv_mvwdelch_is_expression=no
26848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26851 { echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
26852 echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6; }
26854 if test "$ac_cv_mvwdelch_is_expression" = yes
26855 then
26857 cat >>confdefs.h <<\_ACEOF
26858 #define MVWDELCH_IS_EXPRESSION 1
26859 _ACEOF
26863 { echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
26864 echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6; }
26865 if test "${ac_cv_window_has_flags+set}" = set; then
26866 echo $ECHO_N "(cached) $ECHO_C" >&6
26867 else
26868 cat >conftest.$ac_ext <<_ACEOF
26869 /* confdefs.h. */
26870 _ACEOF
26871 cat confdefs.h >>conftest.$ac_ext
26872 cat >>conftest.$ac_ext <<_ACEOF
26873 /* end confdefs.h. */
26874 #include <curses.h>
26876 main ()
26879 WINDOW *w;
26880 w->_flags = 0;
26883 return 0;
26885 _ACEOF
26886 rm -f conftest.$ac_objext
26887 if { (ac_try="$ac_compile"
26888 case "(($ac_try" in
26889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26890 *) ac_try_echo=$ac_try;;
26891 esac
26892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26893 (eval "$ac_compile") 2>conftest.er1
26894 ac_status=$?
26895 grep -v '^ *+' conftest.er1 >conftest.err
26896 rm -f conftest.er1
26897 cat conftest.err >&5
26898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26899 (exit $ac_status); } && {
26900 test -z "$ac_c_werror_flag" ||
26901 test ! -s conftest.err
26902 } && test -s conftest.$ac_objext; then
26903 ac_cv_window_has_flags=yes
26904 else
26905 echo "$as_me: failed program was:" >&5
26906 sed 's/^/| /' conftest.$ac_ext >&5
26908 ac_cv_window_has_flags=no
26911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26914 { echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
26915 echo "${ECHO_T}$ac_cv_window_has_flags" >&6; }
26918 if test "$ac_cv_window_has_flags" = yes
26919 then
26921 cat >>confdefs.h <<\_ACEOF
26922 #define WINDOW_HAS_FLAGS 1
26923 _ACEOF
26927 { echo "$as_me:$LINENO: checking for is_term_resized" >&5
26928 echo $ECHO_N "checking for is_term_resized... $ECHO_C" >&6; }
26929 cat >conftest.$ac_ext <<_ACEOF
26930 /* confdefs.h. */
26931 _ACEOF
26932 cat confdefs.h >>conftest.$ac_ext
26933 cat >>conftest.$ac_ext <<_ACEOF
26934 /* end confdefs.h. */
26935 #include <curses.h>
26937 main ()
26939 void *x=is_term_resized
26941 return 0;
26943 _ACEOF
26944 rm -f conftest.$ac_objext
26945 if { (ac_try="$ac_compile"
26946 case "(($ac_try" in
26947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26948 *) ac_try_echo=$ac_try;;
26949 esac
26950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26951 (eval "$ac_compile") 2>conftest.er1
26952 ac_status=$?
26953 grep -v '^ *+' conftest.er1 >conftest.err
26954 rm -f conftest.er1
26955 cat conftest.err >&5
26956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26957 (exit $ac_status); } && {
26958 test -z "$ac_c_werror_flag" ||
26959 test ! -s conftest.err
26960 } && test -s conftest.$ac_objext; then
26962 cat >>confdefs.h <<\_ACEOF
26963 #define HAVE_CURSES_IS_TERM_RESIZED 1
26964 _ACEOF
26966 { echo "$as_me:$LINENO: result: yes" >&5
26967 echo "${ECHO_T}yes" >&6; }
26968 else
26969 echo "$as_me: failed program was:" >&5
26970 sed 's/^/| /' conftest.$ac_ext >&5
26972 { echo "$as_me:$LINENO: result: no" >&5
26973 echo "${ECHO_T}no" >&6; }
26977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26979 { echo "$as_me:$LINENO: checking for resize_term" >&5
26980 echo $ECHO_N "checking for resize_term... $ECHO_C" >&6; }
26981 cat >conftest.$ac_ext <<_ACEOF
26982 /* confdefs.h. */
26983 _ACEOF
26984 cat confdefs.h >>conftest.$ac_ext
26985 cat >>conftest.$ac_ext <<_ACEOF
26986 /* end confdefs.h. */
26987 #include <curses.h>
26989 main ()
26991 void *x=resize_term
26993 return 0;
26995 _ACEOF
26996 rm -f conftest.$ac_objext
26997 if { (ac_try="$ac_compile"
26998 case "(($ac_try" in
26999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27000 *) ac_try_echo=$ac_try;;
27001 esac
27002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27003 (eval "$ac_compile") 2>conftest.er1
27004 ac_status=$?
27005 grep -v '^ *+' conftest.er1 >conftest.err
27006 rm -f conftest.er1
27007 cat conftest.err >&5
27008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27009 (exit $ac_status); } && {
27010 test -z "$ac_c_werror_flag" ||
27011 test ! -s conftest.err
27012 } && test -s conftest.$ac_objext; then
27014 cat >>confdefs.h <<\_ACEOF
27015 #define HAVE_CURSES_RESIZE_TERM 1
27016 _ACEOF
27018 { echo "$as_me:$LINENO: result: yes" >&5
27019 echo "${ECHO_T}yes" >&6; }
27020 else
27021 echo "$as_me: failed program was:" >&5
27022 sed 's/^/| /' conftest.$ac_ext >&5
27024 { echo "$as_me:$LINENO: result: no" >&5
27025 echo "${ECHO_T}no" >&6; }
27029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27031 { echo "$as_me:$LINENO: checking for resizeterm" >&5
27032 echo $ECHO_N "checking for resizeterm... $ECHO_C" >&6; }
27033 cat >conftest.$ac_ext <<_ACEOF
27034 /* confdefs.h. */
27035 _ACEOF
27036 cat confdefs.h >>conftest.$ac_ext
27037 cat >>conftest.$ac_ext <<_ACEOF
27038 /* end confdefs.h. */
27039 #include <curses.h>
27041 main ()
27043 void *x=resizeterm
27045 return 0;
27047 _ACEOF
27048 rm -f conftest.$ac_objext
27049 if { (ac_try="$ac_compile"
27050 case "(($ac_try" in
27051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27052 *) ac_try_echo=$ac_try;;
27053 esac
27054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27055 (eval "$ac_compile") 2>conftest.er1
27056 ac_status=$?
27057 grep -v '^ *+' conftest.er1 >conftest.err
27058 rm -f conftest.er1
27059 cat conftest.err >&5
27060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27061 (exit $ac_status); } && {
27062 test -z "$ac_c_werror_flag" ||
27063 test ! -s conftest.err
27064 } && test -s conftest.$ac_objext; then
27066 cat >>confdefs.h <<\_ACEOF
27067 #define HAVE_CURSES_RESIZETERM 1
27068 _ACEOF
27070 { echo "$as_me:$LINENO: result: yes" >&5
27071 echo "${ECHO_T}yes" >&6; }
27072 else
27073 echo "$as_me: failed program was:" >&5
27074 sed 's/^/| /' conftest.$ac_ext >&5
27076 { echo "$as_me:$LINENO: result: no" >&5
27077 echo "${ECHO_T}no" >&6; }
27081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27083 { echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
27084 echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6; }
27086 if test -r /dev/ptmx
27087 then
27088 { echo "$as_me:$LINENO: result: yes" >&5
27089 echo "${ECHO_T}yes" >&6; }
27091 cat >>confdefs.h <<\_ACEOF
27092 #define HAVE_DEV_PTMX 1
27093 _ACEOF
27095 else
27096 { echo "$as_me:$LINENO: result: no" >&5
27097 echo "${ECHO_T}no" >&6; }
27100 { echo "$as_me:$LINENO: checking for /dev/ptc" >&5
27101 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6; }
27103 if test -r /dev/ptc
27104 then
27105 { echo "$as_me:$LINENO: result: yes" >&5
27106 echo "${ECHO_T}yes" >&6; }
27108 cat >>confdefs.h <<\_ACEOF
27109 #define HAVE_DEV_PTC 1
27110 _ACEOF
27112 else
27113 { echo "$as_me:$LINENO: result: no" >&5
27114 echo "${ECHO_T}no" >&6; }
27117 if test "$have_long_long" = yes
27118 then
27119 { echo "$as_me:$LINENO: checking for %lld and %llu printf() format support" >&5
27120 echo $ECHO_N "checking for %lld and %llu printf() format support... $ECHO_C" >&6; }
27121 if test "${ac_cv_have_long_long_format+set}" = set; then
27122 echo $ECHO_N "(cached) $ECHO_C" >&6
27123 else
27124 if test "$cross_compiling" = yes; then
27125 ac_cv_have_long_long_format=no
27126 else
27127 cat >conftest.$ac_ext <<_ACEOF
27128 /* confdefs.h. */
27129 _ACEOF
27130 cat confdefs.h >>conftest.$ac_ext
27131 cat >>conftest.$ac_ext <<_ACEOF
27132 /* end confdefs.h. */
27134 #include <stdio.h>
27135 #include <stddef.h>
27136 #include <string.h>
27138 #ifdef HAVE_SYS_TYPES_H
27139 #include <sys/types.h>
27140 #endif
27142 int main()
27144 char buffer[256];
27146 if (sprintf(buffer, "%lld", (long long)123) < 0)
27147 return 1;
27148 if (strcmp(buffer, "123"))
27149 return 1;
27151 if (sprintf(buffer, "%lld", (long long)-123) < 0)
27152 return 1;
27153 if (strcmp(buffer, "-123"))
27154 return 1;
27156 if (sprintf(buffer, "%llu", (unsigned long long)123) < 0)
27157 return 1;
27158 if (strcmp(buffer, "123"))
27159 return 1;
27161 return 0;
27164 _ACEOF
27165 rm -f conftest$ac_exeext
27166 if { (ac_try="$ac_link"
27167 case "(($ac_try" in
27168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27169 *) ac_try_echo=$ac_try;;
27170 esac
27171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27172 (eval "$ac_link") 2>&5
27173 ac_status=$?
27174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27175 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27176 { (case "(($ac_try" in
27177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27178 *) ac_try_echo=$ac_try;;
27179 esac
27180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27181 (eval "$ac_try") 2>&5
27182 ac_status=$?
27183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27184 (exit $ac_status); }; }; then
27185 ac_cv_have_long_long_format=yes
27186 else
27187 echo "$as_me: program exited with status $ac_status" >&5
27188 echo "$as_me: failed program was:" >&5
27189 sed 's/^/| /' conftest.$ac_ext >&5
27191 ( exit $ac_status )
27192 ac_cv_have_long_long_format=no
27194 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27201 { echo "$as_me:$LINENO: result: $ac_cv_have_long_long_format" >&5
27202 echo "${ECHO_T}$ac_cv_have_long_long_format" >&6; }
27205 if test $ac_cv_have_long_long_format = yes
27206 then
27208 cat >>confdefs.h <<\_ACEOF
27209 #define PY_FORMAT_LONG_LONG "ll"
27210 _ACEOF
27214 if test $ac_sys_system = Darwin
27215 then
27216 LIBS="$LIBS -framework CoreFoundation"
27220 { echo "$as_me:$LINENO: checking for %zd printf() format support" >&5
27221 echo $ECHO_N "checking for %zd printf() format support... $ECHO_C" >&6; }
27222 if test "${ac_cv_have_size_t_format+set}" = set; then
27223 echo $ECHO_N "(cached) $ECHO_C" >&6
27224 else
27225 if test "$cross_compiling" = yes; then
27226 ac_cv_have_size_t_format="cross -- assuming yes"
27228 else
27229 cat >conftest.$ac_ext <<_ACEOF
27230 /* confdefs.h. */
27231 _ACEOF
27232 cat confdefs.h >>conftest.$ac_ext
27233 cat >>conftest.$ac_ext <<_ACEOF
27234 /* end confdefs.h. */
27236 #include <stdio.h>
27237 #include <stddef.h>
27238 #include <string.h>
27240 #ifdef HAVE_SYS_TYPES_H
27241 #include <sys/types.h>
27242 #endif
27244 #ifdef HAVE_SSIZE_T
27245 typedef ssize_t Py_ssize_t;
27246 #elif SIZEOF_VOID_P == SIZEOF_LONG
27247 typedef long Py_ssize_t;
27248 #else
27249 typedef int Py_ssize_t;
27250 #endif
27252 int main()
27254 char buffer[256];
27256 if(sprintf(buffer, "%zd", (size_t)123) < 0)
27257 return 1;
27259 if (strcmp(buffer, "123"))
27260 return 1;
27262 if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0)
27263 return 1;
27265 if (strcmp(buffer, "-123"))
27266 return 1;
27268 return 0;
27271 _ACEOF
27272 rm -f conftest$ac_exeext
27273 if { (ac_try="$ac_link"
27274 case "(($ac_try" in
27275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27276 *) ac_try_echo=$ac_try;;
27277 esac
27278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27279 (eval "$ac_link") 2>&5
27280 ac_status=$?
27281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27282 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27283 { (case "(($ac_try" in
27284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27285 *) ac_try_echo=$ac_try;;
27286 esac
27287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27288 (eval "$ac_try") 2>&5
27289 ac_status=$?
27290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27291 (exit $ac_status); }; }; then
27292 ac_cv_have_size_t_format=yes
27293 else
27294 echo "$as_me: program exited with status $ac_status" >&5
27295 echo "$as_me: failed program was:" >&5
27296 sed 's/^/| /' conftest.$ac_ext >&5
27298 ( exit $ac_status )
27299 ac_cv_have_size_t_format=no
27301 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27306 { echo "$as_me:$LINENO: result: $ac_cv_have_size_t_format" >&5
27307 echo "${ECHO_T}$ac_cv_have_size_t_format" >&6; }
27308 if test "$ac_cv_have_size_t_format" != no ; then
27310 cat >>confdefs.h <<\_ACEOF
27311 #define PY_FORMAT_SIZE_T "z"
27312 _ACEOF
27316 { echo "$as_me:$LINENO: checking for socklen_t" >&5
27317 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
27318 if test "${ac_cv_type_socklen_t+set}" = set; then
27319 echo $ECHO_N "(cached) $ECHO_C" >&6
27320 else
27321 cat >conftest.$ac_ext <<_ACEOF
27322 /* confdefs.h. */
27323 _ACEOF
27324 cat confdefs.h >>conftest.$ac_ext
27325 cat >>conftest.$ac_ext <<_ACEOF
27326 /* end confdefs.h. */
27328 #ifdef HAVE_SYS_TYPES_H
27329 #include <sys/types.h>
27330 #endif
27331 #ifdef HAVE_SYS_SOCKET_H
27332 #include <sys/socket.h>
27333 #endif
27336 typedef socklen_t ac__type_new_;
27338 main ()
27340 if ((ac__type_new_ *) 0)
27341 return 0;
27342 if (sizeof (ac__type_new_))
27343 return 0;
27345 return 0;
27347 _ACEOF
27348 rm -f conftest.$ac_objext
27349 if { (ac_try="$ac_compile"
27350 case "(($ac_try" in
27351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27352 *) ac_try_echo=$ac_try;;
27353 esac
27354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27355 (eval "$ac_compile") 2>conftest.er1
27356 ac_status=$?
27357 grep -v '^ *+' conftest.er1 >conftest.err
27358 rm -f conftest.er1
27359 cat conftest.err >&5
27360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27361 (exit $ac_status); } && {
27362 test -z "$ac_c_werror_flag" ||
27363 test ! -s conftest.err
27364 } && test -s conftest.$ac_objext; then
27365 ac_cv_type_socklen_t=yes
27366 else
27367 echo "$as_me: failed program was:" >&5
27368 sed 's/^/| /' conftest.$ac_ext >&5
27370 ac_cv_type_socklen_t=no
27373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27375 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
27376 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
27377 if test $ac_cv_type_socklen_t = yes; then
27379 else
27381 cat >>confdefs.h <<\_ACEOF
27382 #define socklen_t int
27383 _ACEOF
27390 for h in `(cd $srcdir;echo Python/thread_*.h)`
27392 THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
27393 done
27396 SRCDIRS="Parser Grammar Objects Python Modules Mac"
27397 { echo "$as_me:$LINENO: checking for build directories" >&5
27398 echo $ECHO_N "checking for build directories... $ECHO_C" >&6; }
27399 for dir in $SRCDIRS; do
27400 if test ! -d $dir; then
27401 mkdir $dir
27403 done
27404 { echo "$as_me:$LINENO: result: done" >&5
27405 echo "${ECHO_T}done" >&6; }
27407 # generate output files
27408 ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config Misc/python.pc"
27410 cat >confcache <<\_ACEOF
27411 # This file is a shell script that caches the results of configure
27412 # tests run on this system so they can be shared between configure
27413 # scripts and configure runs, see configure's option --config-cache.
27414 # It is not useful on other systems. If it contains results you don't
27415 # want to keep, you may remove or edit it.
27417 # config.status only pays attention to the cache file if you give it
27418 # the --recheck option to rerun configure.
27420 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27421 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27422 # following values.
27424 _ACEOF
27426 # The following way of writing the cache mishandles newlines in values,
27427 # but we know of no workaround that is simple, portable, and efficient.
27428 # So, we kill variables containing newlines.
27429 # Ultrix sh set writes to stderr and can't be redirected directly,
27430 # and sets the high bit in the cache file unless we assign to the vars.
27432 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27433 eval ac_val=\$$ac_var
27434 case $ac_val in #(
27435 *${as_nl}*)
27436 case $ac_var in #(
27437 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
27438 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
27439 esac
27440 case $ac_var in #(
27441 _ | IFS | as_nl) ;; #(
27442 *) $as_unset $ac_var ;;
27443 esac ;;
27444 esac
27445 done
27447 (set) 2>&1 |
27448 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27449 *${as_nl}ac_space=\ *)
27450 # `set' does not quote correctly, so add quotes (double-quote
27451 # substitution turns \\\\ into \\, and sed turns \\ into \).
27452 sed -n \
27453 "s/'/'\\\\''/g;
27454 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27455 ;; #(
27457 # `set' quotes correctly as required by POSIX, so do not add quotes.
27458 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27460 esac |
27461 sort
27463 sed '
27464 /^ac_cv_env_/b end
27465 t clear
27466 :clear
27467 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27468 t end
27469 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27470 :end' >>confcache
27471 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27472 if test -w "$cache_file"; then
27473 test "x$cache_file" != "x/dev/null" &&
27474 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
27475 echo "$as_me: updating cache $cache_file" >&6;}
27476 cat confcache >$cache_file
27477 else
27478 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
27479 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27482 rm -f confcache
27484 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27485 # Let make expand exec_prefix.
27486 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27488 DEFS=-DHAVE_CONFIG_H
27490 ac_libobjs=
27491 ac_ltlibobjs=
27492 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27493 # 1. Remove the extension, and $U if already installed.
27494 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27495 ac_i=`echo "$ac_i" | sed "$ac_script"`
27496 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27497 # will be set to the directory where LIBOBJS objects are built.
27498 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27499 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
27500 done
27501 LIBOBJS=$ac_libobjs
27503 LTLIBOBJS=$ac_ltlibobjs
27507 : ${CONFIG_STATUS=./config.status}
27508 ac_clean_files_save=$ac_clean_files
27509 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27510 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
27511 echo "$as_me: creating $CONFIG_STATUS" >&6;}
27512 cat >$CONFIG_STATUS <<_ACEOF
27513 #! $SHELL
27514 # Generated by $as_me.
27515 # Run this file to recreate the current configuration.
27516 # Compiler output produced by configure, useful for debugging
27517 # configure, is in config.log if it exists.
27519 debug=false
27520 ac_cs_recheck=false
27521 ac_cs_silent=false
27522 SHELL=\${CONFIG_SHELL-$SHELL}
27523 _ACEOF
27525 cat >>$CONFIG_STATUS <<\_ACEOF
27526 ## --------------------- ##
27527 ## M4sh Initialization. ##
27528 ## --------------------- ##
27530 # Be more Bourne compatible
27531 DUALCASE=1; export DUALCASE # for MKS sh
27532 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27533 emulate sh
27534 NULLCMD=:
27535 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
27536 # is contrary to our usage. Disable this feature.
27537 alias -g '${1+"$@"}'='"$@"'
27538 setopt NO_GLOB_SUBST
27539 else
27540 case `(set -o) 2>/dev/null` in
27541 *posix*) set -o posix ;;
27542 esac
27549 # PATH needs CR
27550 # Avoid depending upon Character Ranges.
27551 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27552 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27553 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27554 as_cr_digits='0123456789'
27555 as_cr_alnum=$as_cr_Letters$as_cr_digits
27557 # The user is always right.
27558 if test "${PATH_SEPARATOR+set}" != set; then
27559 echo "#! /bin/sh" >conf$$.sh
27560 echo "exit 0" >>conf$$.sh
27561 chmod +x conf$$.sh
27562 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
27563 PATH_SEPARATOR=';'
27564 else
27565 PATH_SEPARATOR=:
27567 rm -f conf$$.sh
27570 # Support unset when possible.
27571 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
27572 as_unset=unset
27573 else
27574 as_unset=false
27578 # IFS
27579 # We need space, tab and new line, in precisely that order. Quoting is
27580 # there to prevent editors from complaining about space-tab.
27581 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27582 # splitting by setting IFS to empty value.)
27583 as_nl='
27585 IFS=" "" $as_nl"
27587 # Find who we are. Look in the path if we contain no directory separator.
27588 case $0 in
27589 *[\\/]* ) as_myself=$0 ;;
27590 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27591 for as_dir in $PATH
27593 IFS=$as_save_IFS
27594 test -z "$as_dir" && as_dir=.
27595 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27596 done
27597 IFS=$as_save_IFS
27600 esac
27601 # We did not find ourselves, most probably we were run as `sh COMMAND'
27602 # in which case we are not to be found in the path.
27603 if test "x$as_myself" = x; then
27604 as_myself=$0
27606 if test ! -f "$as_myself"; then
27607 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27608 { (exit 1); exit 1; }
27611 # Work around bugs in pre-3.0 UWIN ksh.
27612 for as_var in ENV MAIL MAILPATH
27613 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
27614 done
27615 PS1='$ '
27616 PS2='> '
27617 PS4='+ '
27619 # NLS nuisances.
27620 for as_var in \
27621 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
27622 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
27623 LC_TELEPHONE LC_TIME
27625 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
27626 eval $as_var=C; export $as_var
27627 else
27628 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
27630 done
27632 # Required to use basename.
27633 if expr a : '\(a\)' >/dev/null 2>&1 &&
27634 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27635 as_expr=expr
27636 else
27637 as_expr=false
27640 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27641 as_basename=basename
27642 else
27643 as_basename=false
27647 # Name of the executable.
27648 as_me=`$as_basename -- "$0" ||
27649 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27650 X"$0" : 'X\(//\)$' \| \
27651 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27652 echo X/"$0" |
27653 sed '/^.*\/\([^/][^/]*\)\/*$/{
27654 s//\1/
27657 /^X\/\(\/\/\)$/{
27658 s//\1/
27661 /^X\/\(\/\).*/{
27662 s//\1/
27665 s/.*/./; q'`
27667 # CDPATH.
27668 $as_unset CDPATH
27672 as_lineno_1=$LINENO
27673 as_lineno_2=$LINENO
27674 test "x$as_lineno_1" != "x$as_lineno_2" &&
27675 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
27677 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
27678 # uniformly replaced by the line number. The first 'sed' inserts a
27679 # line-number line after each line using $LINENO; the second 'sed'
27680 # does the real work. The second script uses 'N' to pair each
27681 # line-number line with the line containing $LINENO, and appends
27682 # trailing '-' during substitution so that $LINENO is not a special
27683 # case at line end.
27684 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
27685 # scripts with optimization help from Paolo Bonzini. Blame Lee
27686 # E. McMahon (1931-1989) for sed's syntax. :-)
27687 sed -n '
27689 /[$]LINENO/=
27690 ' <$as_myself |
27691 sed '
27692 s/[$]LINENO.*/&-/
27693 t lineno
27695 :lineno
27697 :loop
27698 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
27699 t loop
27700 s/-\n.*//
27701 ' >$as_me.lineno &&
27702 chmod +x "$as_me.lineno" ||
27703 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
27704 { (exit 1); exit 1; }; }
27706 # Don't try to exec as it changes $[0], causing all sort of problems
27707 # (the dirname of $[0] is not the place where we might find the
27708 # original and so on. Autoconf is especially sensitive to this).
27709 . "./$as_me.lineno"
27710 # Exit status is that of the last command.
27711 exit
27715 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27716 as_dirname=dirname
27717 else
27718 as_dirname=false
27721 ECHO_C= ECHO_N= ECHO_T=
27722 case `echo -n x` in
27723 -n*)
27724 case `echo 'x\c'` in
27725 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27726 *) ECHO_C='\c';;
27727 esac;;
27729 ECHO_N='-n';;
27730 esac
27732 if expr a : '\(a\)' >/dev/null 2>&1 &&
27733 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27734 as_expr=expr
27735 else
27736 as_expr=false
27739 rm -f conf$$ conf$$.exe conf$$.file
27740 if test -d conf$$.dir; then
27741 rm -f conf$$.dir/conf$$.file
27742 else
27743 rm -f conf$$.dir
27744 mkdir conf$$.dir
27746 echo >conf$$.file
27747 if ln -s conf$$.file conf$$ 2>/dev/null; then
27748 as_ln_s='ln -s'
27749 # ... but there are two gotchas:
27750 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27751 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27752 # In both cases, we have to default to `cp -p'.
27753 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27754 as_ln_s='cp -p'
27755 elif ln conf$$.file conf$$ 2>/dev/null; then
27756 as_ln_s=ln
27757 else
27758 as_ln_s='cp -p'
27760 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27761 rmdir conf$$.dir 2>/dev/null
27763 if mkdir -p . 2>/dev/null; then
27764 as_mkdir_p=:
27765 else
27766 test -d ./-p && rmdir ./-p
27767 as_mkdir_p=false
27770 if test -x / >/dev/null 2>&1; then
27771 as_test_x='test -x'
27772 else
27773 if ls -dL / >/dev/null 2>&1; then
27774 as_ls_L_option=L
27775 else
27776 as_ls_L_option=
27778 as_test_x='
27779 eval sh -c '\''
27780 if test -d "$1"; then
27781 test -d "$1/.";
27782 else
27783 case $1 in
27784 -*)set "./$1";;
27785 esac;
27786 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
27787 ???[sx]*):;;*)false;;esac;fi
27788 '\'' sh
27791 as_executable_p=$as_test_x
27793 # Sed expression to map a string onto a valid CPP name.
27794 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27796 # Sed expression to map a string onto a valid variable name.
27797 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27800 exec 6>&1
27802 # Save the log message, to keep $[0] and so on meaningful, and to
27803 # report actual input values of CONFIG_FILES etc. instead of their
27804 # values after options handling.
27805 ac_log="
27806 This file was extended by python $as_me 2.7, which was
27807 generated by GNU Autoconf 2.61. Invocation command line was
27809 CONFIG_FILES = $CONFIG_FILES
27810 CONFIG_HEADERS = $CONFIG_HEADERS
27811 CONFIG_LINKS = $CONFIG_LINKS
27812 CONFIG_COMMANDS = $CONFIG_COMMANDS
27813 $ $0 $@
27815 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27818 _ACEOF
27820 cat >>$CONFIG_STATUS <<_ACEOF
27821 # Files that config.status was made for.
27822 config_files="$ac_config_files"
27823 config_headers="$ac_config_headers"
27825 _ACEOF
27827 cat >>$CONFIG_STATUS <<\_ACEOF
27828 ac_cs_usage="\
27829 \`$as_me' instantiates files from templates according to the
27830 current configuration.
27832 Usage: $0 [OPTIONS] [FILE]...
27834 -h, --help print this help, then exit
27835 -V, --version print version number and configuration settings, then exit
27836 -q, --quiet do not print progress messages
27837 -d, --debug don't remove temporary files
27838 --recheck update $as_me by reconfiguring in the same conditions
27839 --file=FILE[:TEMPLATE]
27840 instantiate the configuration file FILE
27841 --header=FILE[:TEMPLATE]
27842 instantiate the configuration header FILE
27844 Configuration files:
27845 $config_files
27847 Configuration headers:
27848 $config_headers
27850 Report bugs to <bug-autoconf@gnu.org>."
27852 _ACEOF
27853 cat >>$CONFIG_STATUS <<_ACEOF
27854 ac_cs_version="\\
27855 python config.status 2.7
27856 configured by $0, generated by GNU Autoconf 2.61,
27857 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27859 Copyright (C) 2006 Free Software Foundation, Inc.
27860 This config.status script is free software; the Free Software Foundation
27861 gives unlimited permission to copy, distribute and modify it."
27863 ac_pwd='$ac_pwd'
27864 srcdir='$srcdir'
27865 INSTALL='$INSTALL'
27866 _ACEOF
27868 cat >>$CONFIG_STATUS <<\_ACEOF
27869 # If no file are specified by the user, then we need to provide default
27870 # value. By we need to know if files were specified by the user.
27871 ac_need_defaults=:
27872 while test $# != 0
27874 case $1 in
27875 --*=*)
27876 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27877 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27878 ac_shift=:
27881 ac_option=$1
27882 ac_optarg=$2
27883 ac_shift=shift
27885 esac
27887 case $ac_option in
27888 # Handling of the options.
27889 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27890 ac_cs_recheck=: ;;
27891 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27892 echo "$ac_cs_version"; exit ;;
27893 --debug | --debu | --deb | --de | --d | -d )
27894 debug=: ;;
27895 --file | --fil | --fi | --f )
27896 $ac_shift
27897 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
27898 ac_need_defaults=false;;
27899 --header | --heade | --head | --hea )
27900 $ac_shift
27901 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
27902 ac_need_defaults=false;;
27903 --he | --h)
27904 # Conflict between --help and --header
27905 { echo "$as_me: error: ambiguous option: $1
27906 Try \`$0 --help' for more information." >&2
27907 { (exit 1); exit 1; }; };;
27908 --help | --hel | -h )
27909 echo "$ac_cs_usage"; exit ;;
27910 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27911 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27912 ac_cs_silent=: ;;
27914 # This is an error.
27915 -*) { echo "$as_me: error: unrecognized option: $1
27916 Try \`$0 --help' for more information." >&2
27917 { (exit 1); exit 1; }; } ;;
27919 *) ac_config_targets="$ac_config_targets $1"
27920 ac_need_defaults=false ;;
27922 esac
27923 shift
27924 done
27926 ac_configure_extra_args=
27928 if $ac_cs_silent; then
27929 exec 6>/dev/null
27930 ac_configure_extra_args="$ac_configure_extra_args --silent"
27933 _ACEOF
27934 cat >>$CONFIG_STATUS <<_ACEOF
27935 if \$ac_cs_recheck; then
27936 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
27937 CONFIG_SHELL=$SHELL
27938 export CONFIG_SHELL
27939 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27942 _ACEOF
27943 cat >>$CONFIG_STATUS <<\_ACEOF
27944 exec 5>>config.log
27946 echo
27947 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27948 ## Running $as_me. ##
27949 _ASBOX
27950 echo "$ac_log"
27951 } >&5
27953 _ACEOF
27954 cat >>$CONFIG_STATUS <<_ACEOF
27955 _ACEOF
27957 cat >>$CONFIG_STATUS <<\_ACEOF
27959 # Handling of arguments.
27960 for ac_config_target in $ac_config_targets
27962 case $ac_config_target in
27963 "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;;
27964 "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;;
27965 "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;;
27966 "Mac/IDLE/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/IDLE/Makefile" ;;
27967 "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;;
27968 "Mac/Resources/app/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/app/Info.plist" ;;
27969 "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;;
27970 "Modules/Setup.config") CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;;
27971 "Misc/python.pc") CONFIG_FILES="$CONFIG_FILES Misc/python.pc" ;;
27973 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
27974 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27975 { (exit 1); exit 1; }; };;
27976 esac
27977 done
27980 # If the user did not use the arguments to specify the items to instantiate,
27981 # then the envvar interface is used. Set only those that are not.
27982 # We use the long form for the default assignment because of an extremely
27983 # bizarre bug on SunOS 4.1.3.
27984 if $ac_need_defaults; then
27985 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27986 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27989 # Have a temporary directory for convenience. Make it in the build tree
27990 # simply because there is no reason against having it here, and in addition,
27991 # creating and moving files from /tmp can sometimes cause problems.
27992 # Hook for its removal unless debugging.
27993 # Note that there is a small window in which the directory will not be cleaned:
27994 # after its creation but before its name has been assigned to `$tmp'.
27995 $debug ||
27997 tmp=
27998 trap 'exit_status=$?
27999 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28001 trap '{ (exit 1); exit 1; }' 1 2 13 15
28003 # Create a (secure) tmp directory for tmp files.
28006 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28007 test -n "$tmp" && test -d "$tmp"
28008 } ||
28010 tmp=./conf$$-$RANDOM
28011 (umask 077 && mkdir "$tmp")
28012 } ||
28014 echo "$me: cannot create a temporary directory in ." >&2
28015 { (exit 1); exit 1; }
28019 # Set up the sed scripts for CONFIG_FILES section.
28022 # No need to generate the scripts if there are no CONFIG_FILES.
28023 # This happens for instance when ./config.status config.h
28024 if test -n "$CONFIG_FILES"; then
28026 _ACEOF
28030 ac_delim='%!_!# '
28031 for ac_last_try in false false false false false :; do
28032 cat >conf$$subs.sed <<_ACEOF
28033 SHELL!$SHELL$ac_delim
28034 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
28035 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
28036 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
28037 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
28038 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
28039 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
28040 exec_prefix!$exec_prefix$ac_delim
28041 prefix!$prefix$ac_delim
28042 program_transform_name!$program_transform_name$ac_delim
28043 bindir!$bindir$ac_delim
28044 sbindir!$sbindir$ac_delim
28045 libexecdir!$libexecdir$ac_delim
28046 datarootdir!$datarootdir$ac_delim
28047 datadir!$datadir$ac_delim
28048 sysconfdir!$sysconfdir$ac_delim
28049 sharedstatedir!$sharedstatedir$ac_delim
28050 localstatedir!$localstatedir$ac_delim
28051 includedir!$includedir$ac_delim
28052 oldincludedir!$oldincludedir$ac_delim
28053 docdir!$docdir$ac_delim
28054 infodir!$infodir$ac_delim
28055 htmldir!$htmldir$ac_delim
28056 dvidir!$dvidir$ac_delim
28057 pdfdir!$pdfdir$ac_delim
28058 psdir!$psdir$ac_delim
28059 libdir!$libdir$ac_delim
28060 localedir!$localedir$ac_delim
28061 mandir!$mandir$ac_delim
28062 DEFS!$DEFS$ac_delim
28063 ECHO_C!$ECHO_C$ac_delim
28064 ECHO_N!$ECHO_N$ac_delim
28065 ECHO_T!$ECHO_T$ac_delim
28066 LIBS!$LIBS$ac_delim
28067 build_alias!$build_alias$ac_delim
28068 host_alias!$host_alias$ac_delim
28069 target_alias!$target_alias$ac_delim
28070 VERSION!$VERSION$ac_delim
28071 SOVERSION!$SOVERSION$ac_delim
28072 CONFIG_ARGS!$CONFIG_ARGS$ac_delim
28073 UNIVERSALSDK!$UNIVERSALSDK$ac_delim
28074 ARCH_RUN_32BIT!$ARCH_RUN_32BIT$ac_delim
28075 PYTHONFRAMEWORK!$PYTHONFRAMEWORK$ac_delim
28076 PYTHONFRAMEWORKIDENTIFIER!$PYTHONFRAMEWORKIDENTIFIER$ac_delim
28077 PYTHONFRAMEWORKDIR!$PYTHONFRAMEWORKDIR$ac_delim
28078 PYTHONFRAMEWORKPREFIX!$PYTHONFRAMEWORKPREFIX$ac_delim
28079 PYTHONFRAMEWORKINSTALLDIR!$PYTHONFRAMEWORKINSTALLDIR$ac_delim
28080 FRAMEWORKINSTALLFIRST!$FRAMEWORKINSTALLFIRST$ac_delim
28081 FRAMEWORKINSTALLLAST!$FRAMEWORKINSTALLLAST$ac_delim
28082 FRAMEWORKALTINSTALLFIRST!$FRAMEWORKALTINSTALLFIRST$ac_delim
28083 FRAMEWORKALTINSTALLLAST!$FRAMEWORKALTINSTALLLAST$ac_delim
28084 FRAMEWORKUNIXTOOLSPREFIX!$FRAMEWORKUNIXTOOLSPREFIX$ac_delim
28085 MACHDEP!$MACHDEP$ac_delim
28086 SGI_ABI!$SGI_ABI$ac_delim
28087 EXTRAPLATDIR!$EXTRAPLATDIR$ac_delim
28088 EXTRAMACHDEPPATH!$EXTRAMACHDEPPATH$ac_delim
28089 CONFIGURE_MACOSX_DEPLOYMENT_TARGET!$CONFIGURE_MACOSX_DEPLOYMENT_TARGET$ac_delim
28090 EXPORT_MACOSX_DEPLOYMENT_TARGET!$EXPORT_MACOSX_DEPLOYMENT_TARGET$ac_delim
28091 CC!$CC$ac_delim
28092 CFLAGS!$CFLAGS$ac_delim
28093 LDFLAGS!$LDFLAGS$ac_delim
28094 CPPFLAGS!$CPPFLAGS$ac_delim
28095 ac_ct_CC!$ac_ct_CC$ac_delim
28096 EXEEXT!$EXEEXT$ac_delim
28097 OBJEXT!$OBJEXT$ac_delim
28098 CXX!$CXX$ac_delim
28099 MAINCC!$MAINCC$ac_delim
28100 CPP!$CPP$ac_delim
28101 GREP!$GREP$ac_delim
28102 EGREP!$EGREP$ac_delim
28103 BUILDEXEEXT!$BUILDEXEEXT$ac_delim
28104 LIBRARY!$LIBRARY$ac_delim
28105 LDLIBRARY!$LDLIBRARY$ac_delim
28106 DLLLIBRARY!$DLLLIBRARY$ac_delim
28107 BLDLIBRARY!$BLDLIBRARY$ac_delim
28108 LDLIBRARYDIR!$LDLIBRARYDIR$ac_delim
28109 INSTSONAME!$INSTSONAME$ac_delim
28110 RUNSHARED!$RUNSHARED$ac_delim
28111 LINKCC!$LINKCC$ac_delim
28112 GNULD!$GNULD$ac_delim
28113 RANLIB!$RANLIB$ac_delim
28114 AR!$AR$ac_delim
28115 ARFLAGS!$ARFLAGS$ac_delim
28116 SVNVERSION!$SVNVERSION$ac_delim
28117 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
28118 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
28119 INSTALL_DATA!$INSTALL_DATA$ac_delim
28120 LN!$LN$ac_delim
28121 OPT!$OPT$ac_delim
28122 BASECFLAGS!$BASECFLAGS$ac_delim
28123 UNIVERSAL_ARCH_FLAGS!$UNIVERSAL_ARCH_FLAGS$ac_delim
28124 OTHER_LIBTOOL_OPT!$OTHER_LIBTOOL_OPT$ac_delim
28125 LIBTOOL_CRUFT!$LIBTOOL_CRUFT$ac_delim
28126 SO!$SO$ac_delim
28127 LDSHARED!$LDSHARED$ac_delim
28128 BLDSHARED!$BLDSHARED$ac_delim
28129 CCSHARED!$CCSHARED$ac_delim
28130 _ACEOF
28132 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
28133 break
28134 elif $ac_last_try; then
28135 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
28136 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
28137 { (exit 1); exit 1; }; }
28138 else
28139 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28141 done
28143 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
28144 if test -n "$ac_eof"; then
28145 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
28146 ac_eof=`expr $ac_eof + 1`
28149 cat >>$CONFIG_STATUS <<_ACEOF
28150 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
28151 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28152 _ACEOF
28153 sed '
28154 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
28155 s/^/s,@/; s/!/@,|#_!!_#|/
28158 s/'"$ac_delim"'$/,g/; t
28159 s/$/\\/; p
28160 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
28161 ' >>$CONFIG_STATUS <conf$$subs.sed
28162 rm -f conf$$subs.sed
28163 cat >>$CONFIG_STATUS <<_ACEOF
28164 CEOF$ac_eof
28165 _ACEOF
28168 ac_delim='%!_!# '
28169 for ac_last_try in false false false false false :; do
28170 cat >conf$$subs.sed <<_ACEOF
28171 LINKFORSHARED!$LINKFORSHARED$ac_delim
28172 CFLAGSFORSHARED!$CFLAGSFORSHARED$ac_delim
28173 SHLIBS!$SHLIBS$ac_delim
28174 USE_SIGNAL_MODULE!$USE_SIGNAL_MODULE$ac_delim
28175 SIGNAL_OBJS!$SIGNAL_OBJS$ac_delim
28176 USE_THREAD_MODULE!$USE_THREAD_MODULE$ac_delim
28177 LDLAST!$LDLAST$ac_delim
28178 THREADOBJ!$THREADOBJ$ac_delim
28179 DLINCLDIR!$DLINCLDIR$ac_delim
28180 DYNLOADFILE!$DYNLOADFILE$ac_delim
28181 MACHDEP_OBJS!$MACHDEP_OBJS$ac_delim
28182 TRUE!$TRUE$ac_delim
28183 LIBOBJS!$LIBOBJS$ac_delim
28184 HAVE_GETHOSTBYNAME_R_6_ARG!$HAVE_GETHOSTBYNAME_R_6_ARG$ac_delim
28185 HAVE_GETHOSTBYNAME_R_5_ARG!$HAVE_GETHOSTBYNAME_R_5_ARG$ac_delim
28186 HAVE_GETHOSTBYNAME_R_3_ARG!$HAVE_GETHOSTBYNAME_R_3_ARG$ac_delim
28187 HAVE_GETHOSTBYNAME_R!$HAVE_GETHOSTBYNAME_R$ac_delim
28188 HAVE_GETHOSTBYNAME!$HAVE_GETHOSTBYNAME$ac_delim
28189 LIBM!$LIBM$ac_delim
28190 LIBC!$LIBC$ac_delim
28191 UNICODE_OBJS!$UNICODE_OBJS$ac_delim
28192 THREADHEADERS!$THREADHEADERS$ac_delim
28193 SRCDIRS!$SRCDIRS$ac_delim
28194 LTLIBOBJS!$LTLIBOBJS$ac_delim
28195 _ACEOF
28197 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 24; then
28198 break
28199 elif $ac_last_try; then
28200 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
28201 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
28202 { (exit 1); exit 1; }; }
28203 else
28204 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28206 done
28208 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
28209 if test -n "$ac_eof"; then
28210 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
28211 ac_eof=`expr $ac_eof + 1`
28214 cat >>$CONFIG_STATUS <<_ACEOF
28215 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
28216 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
28217 _ACEOF
28218 sed '
28219 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
28220 s/^/s,@/; s/!/@,|#_!!_#|/
28223 s/'"$ac_delim"'$/,g/; t
28224 s/$/\\/; p
28225 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
28226 ' >>$CONFIG_STATUS <conf$$subs.sed
28227 rm -f conf$$subs.sed
28228 cat >>$CONFIG_STATUS <<_ACEOF
28229 :end
28230 s/|#_!!_#|//g
28231 CEOF$ac_eof
28232 _ACEOF
28235 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28236 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28237 # trailing colons and then remove the whole line if VPATH becomes empty
28238 # (actually we leave an empty line to preserve line numbers).
28239 if test "x$srcdir" = x.; then
28240 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28241 s/:*\$(srcdir):*/:/
28242 s/:*\${srcdir}:*/:/
28243 s/:*@srcdir@:*/:/
28244 s/^\([^=]*=[ ]*\):*/\1/
28245 s/:*$//
28246 s/^[^=]*=[ ]*$//
28250 cat >>$CONFIG_STATUS <<\_ACEOF
28251 fi # test -n "$CONFIG_FILES"
28254 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
28256 case $ac_tag in
28257 :[FHLC]) ac_mode=$ac_tag; continue;;
28258 esac
28259 case $ac_mode$ac_tag in
28260 :[FHL]*:*);;
28261 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
28262 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
28263 { (exit 1); exit 1; }; };;
28264 :[FH]-) ac_tag=-:-;;
28265 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28266 esac
28267 ac_save_IFS=$IFS
28268 IFS=:
28269 set x $ac_tag
28270 IFS=$ac_save_IFS
28271 shift
28272 ac_file=$1
28273 shift
28275 case $ac_mode in
28276 :L) ac_source=$1;;
28277 :[FH])
28278 ac_file_inputs=
28279 for ac_f
28281 case $ac_f in
28282 -) ac_f="$tmp/stdin";;
28283 *) # Look for the file first in the build tree, then in the source tree
28284 # (if the path is not absolute). The absolute path cannot be DOS-style,
28285 # because $ac_f cannot contain `:'.
28286 test -f "$ac_f" ||
28287 case $ac_f in
28288 [\\/$]*) false;;
28289 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28290 esac ||
28291 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
28292 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
28293 { (exit 1); exit 1; }; };;
28294 esac
28295 ac_file_inputs="$ac_file_inputs $ac_f"
28296 done
28298 # Let's still pretend it is `configure' which instantiates (i.e., don't
28299 # use $as_me), people would be surprised to read:
28300 # /* config.h. Generated by config.status. */
28301 configure_input="Generated from "`IFS=:
28302 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
28303 if test x"$ac_file" != x-; then
28304 configure_input="$ac_file. $configure_input"
28305 { echo "$as_me:$LINENO: creating $ac_file" >&5
28306 echo "$as_me: creating $ac_file" >&6;}
28309 case $ac_tag in
28310 *:-:* | *:-) cat >"$tmp/stdin";;
28311 esac
28313 esac
28315 ac_dir=`$as_dirname -- "$ac_file" ||
28316 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28317 X"$ac_file" : 'X\(//\)[^/]' \| \
28318 X"$ac_file" : 'X\(//\)$' \| \
28319 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28320 echo X"$ac_file" |
28321 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28322 s//\1/
28325 /^X\(\/\/\)[^/].*/{
28326 s//\1/
28329 /^X\(\/\/\)$/{
28330 s//\1/
28333 /^X\(\/\).*/{
28334 s//\1/
28337 s/.*/./; q'`
28338 { as_dir="$ac_dir"
28339 case $as_dir in #(
28340 -*) as_dir=./$as_dir;;
28341 esac
28342 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
28343 as_dirs=
28344 while :; do
28345 case $as_dir in #(
28346 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
28347 *) as_qdir=$as_dir;;
28348 esac
28349 as_dirs="'$as_qdir' $as_dirs"
28350 as_dir=`$as_dirname -- "$as_dir" ||
28351 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28352 X"$as_dir" : 'X\(//\)[^/]' \| \
28353 X"$as_dir" : 'X\(//\)$' \| \
28354 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28355 echo X"$as_dir" |
28356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28357 s//\1/
28360 /^X\(\/\/\)[^/].*/{
28361 s//\1/
28364 /^X\(\/\/\)$/{
28365 s//\1/
28368 /^X\(\/\).*/{
28369 s//\1/
28372 s/.*/./; q'`
28373 test -d "$as_dir" && break
28374 done
28375 test -z "$as_dirs" || eval "mkdir $as_dirs"
28376 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
28377 echo "$as_me: error: cannot create directory $as_dir" >&2;}
28378 { (exit 1); exit 1; }; }; }
28379 ac_builddir=.
28381 case "$ac_dir" in
28382 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28384 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
28385 # A ".." for each directory in $ac_dir_suffix.
28386 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
28387 case $ac_top_builddir_sub in
28388 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28389 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28390 esac ;;
28391 esac
28392 ac_abs_top_builddir=$ac_pwd
28393 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28394 # for backward compatibility:
28395 ac_top_builddir=$ac_top_build_prefix
28397 case $srcdir in
28398 .) # We are building in place.
28399 ac_srcdir=.
28400 ac_top_srcdir=$ac_top_builddir_sub
28401 ac_abs_top_srcdir=$ac_pwd ;;
28402 [\\/]* | ?:[\\/]* ) # Absolute name.
28403 ac_srcdir=$srcdir$ac_dir_suffix;
28404 ac_top_srcdir=$srcdir
28405 ac_abs_top_srcdir=$srcdir ;;
28406 *) # Relative name.
28407 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28408 ac_top_srcdir=$ac_top_build_prefix$srcdir
28409 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28410 esac
28411 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28414 case $ac_mode in
28417 # CONFIG_FILE
28420 case $INSTALL in
28421 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28422 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
28423 esac
28424 _ACEOF
28426 cat >>$CONFIG_STATUS <<\_ACEOF
28427 # If the template does not know about datarootdir, expand it.
28428 # FIXME: This hack should be removed a few years after 2.60.
28429 ac_datarootdir_hack=; ac_datarootdir_seen=
28431 case `sed -n '/datarootdir/ {
28435 /@datadir@/p
28436 /@docdir@/p
28437 /@infodir@/p
28438 /@localedir@/p
28439 /@mandir@/p
28440 ' $ac_file_inputs` in
28441 *datarootdir*) ac_datarootdir_seen=yes;;
28442 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28443 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28444 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28445 _ACEOF
28446 cat >>$CONFIG_STATUS <<_ACEOF
28447 ac_datarootdir_hack='
28448 s&@datadir@&$datadir&g
28449 s&@docdir@&$docdir&g
28450 s&@infodir@&$infodir&g
28451 s&@localedir@&$localedir&g
28452 s&@mandir@&$mandir&g
28453 s&\\\${datarootdir}&$datarootdir&g' ;;
28454 esac
28455 _ACEOF
28457 # Neutralize VPATH when `$srcdir' = `.'.
28458 # Shell code in configure.ac might set extrasub.
28459 # FIXME: do we really want to maintain this feature?
28460 cat >>$CONFIG_STATUS <<_ACEOF
28461 sed "$ac_vpsub
28462 $extrasub
28463 _ACEOF
28464 cat >>$CONFIG_STATUS <<\_ACEOF
28466 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28467 s&@configure_input@&$configure_input&;t t
28468 s&@top_builddir@&$ac_top_builddir_sub&;t t
28469 s&@srcdir@&$ac_srcdir&;t t
28470 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28471 s&@top_srcdir@&$ac_top_srcdir&;t t
28472 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28473 s&@builddir@&$ac_builddir&;t t
28474 s&@abs_builddir@&$ac_abs_builddir&;t t
28475 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28476 s&@INSTALL@&$ac_INSTALL&;t t
28477 $ac_datarootdir_hack
28478 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
28480 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28481 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28482 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28483 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28484 which seems to be undefined. Please make sure it is defined." >&5
28485 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28486 which seems to be undefined. Please make sure it is defined." >&2;}
28488 rm -f "$tmp/stdin"
28489 case $ac_file in
28490 -) cat "$tmp/out"; rm -f "$tmp/out";;
28491 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
28492 esac
28496 # CONFIG_HEADER
28498 _ACEOF
28500 # Transform confdefs.h into a sed script `conftest.defines', that
28501 # substitutes the proper values into config.h.in to produce config.h.
28502 rm -f conftest.defines conftest.tail
28503 # First, append a space to every undef/define line, to ease matching.
28504 echo 's/$/ /' >conftest.defines
28505 # Then, protect against being on the right side of a sed subst, or in
28506 # an unquoted here document, in config.status. If some macros were
28507 # called several times there might be several #defines for the same
28508 # symbol, which is useless. But do not sort them, since the last
28509 # AC_DEFINE must be honored.
28510 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28511 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
28512 # NAME is the cpp macro being defined, VALUE is the value it is being given.
28513 # PARAMS is the parameter list in the macro definition--in most cases, it's
28514 # just an empty string.
28515 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
28516 ac_dB='\\)[ (].*,\\1define\\2'
28517 ac_dC=' '
28518 ac_dD=' ,'
28520 uniq confdefs.h |
28521 sed -n '
28522 t rset
28523 :rset
28524 s/^[ ]*#[ ]*define[ ][ ]*//
28525 t ok
28528 s/[\\&,]/\\&/g
28529 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
28530 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
28531 ' >>conftest.defines
28533 # Remove the space that was appended to ease matching.
28534 # Then replace #undef with comments. This is necessary, for
28535 # example, in the case of _POSIX_SOURCE, which is predefined and required
28536 # on some systems where configure will not decide to define it.
28537 # (The regexp can be short, since the line contains either #define or #undef.)
28538 echo 's/ $//
28539 s,^[ #]*u.*,/* & */,' >>conftest.defines
28541 # Break up conftest.defines:
28542 ac_max_sed_lines=50
28544 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
28545 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
28546 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
28547 # et cetera.
28548 ac_in='$ac_file_inputs'
28549 ac_out='"$tmp/out1"'
28550 ac_nxt='"$tmp/out2"'
28552 while :
28554 # Write a here document:
28555 cat >>$CONFIG_STATUS <<_ACEOF
28556 # First, check the format of the line:
28557 cat >"\$tmp/defines.sed" <<\\CEOF
28558 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
28559 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
28561 :def
28562 _ACEOF
28563 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
28564 echo 'CEOF
28565 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
28566 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
28567 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
28568 grep . conftest.tail >/dev/null || break
28569 rm -f conftest.defines
28570 mv conftest.tail conftest.defines
28571 done
28572 rm -f conftest.defines conftest.tail
28574 echo "ac_result=$ac_in" >>$CONFIG_STATUS
28575 cat >>$CONFIG_STATUS <<\_ACEOF
28576 if test x"$ac_file" != x-; then
28577 echo "/* $configure_input */" >"$tmp/config.h"
28578 cat "$ac_result" >>"$tmp/config.h"
28579 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
28580 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
28581 echo "$as_me: $ac_file is unchanged" >&6;}
28582 else
28583 rm -f $ac_file
28584 mv "$tmp/config.h" $ac_file
28586 else
28587 echo "/* $configure_input */"
28588 cat "$ac_result"
28590 rm -f "$tmp/out12"
28594 esac
28596 done # for ac_tag
28599 { (exit 0); exit 0; }
28600 _ACEOF
28601 chmod +x $CONFIG_STATUS
28602 ac_clean_files=$ac_clean_files_save
28605 # configure is writing to config.log, and then calls config.status.
28606 # config.status does its own redirection, appending to config.log.
28607 # Unfortunately, on DOS this fails, as config.log is still kept open
28608 # by configure, so config.status won't be able to write to it; its
28609 # output is simply discarded. So we exec the FD to /dev/null,
28610 # effectively closing config.log, so it can be properly (re)opened and
28611 # appended to by config.status. When coming back to configure, we
28612 # need to make the FD available again.
28613 if test "$no_create" != yes; then
28614 ac_cs_success=:
28615 ac_config_status_args=
28616 test "$silent" = yes &&
28617 ac_config_status_args="$ac_config_status_args --quiet"
28618 exec 5>/dev/null
28619 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28620 exec 5>>config.log
28621 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28622 # would make configure fail if this is the last instruction.
28623 $ac_cs_success || { (exit 1); exit 1; }
28627 echo "creating Modules/Setup"
28628 if test ! -f Modules/Setup
28629 then
28630 cp $srcdir/Modules/Setup.dist Modules/Setup
28633 echo "creating Modules/Setup.local"
28634 if test ! -f Modules/Setup.local
28635 then
28636 echo "# Edit this file for local setup changes" >Modules/Setup.local
28639 echo "creating Makefile"
28640 $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \
28641 -s Modules Modules/Setup.config \
28642 Modules/Setup.local Modules/Setup
28644 case $ac_sys_system in
28645 BeOS)
28646 { echo "$as_me:$LINENO: WARNING:
28648 Support for BeOS is deprecated as of Python 2.6.
28649 See PEP 11 for the gory details.
28650 " >&5
28651 echo "$as_me: WARNING:
28653 Support for BeOS is deprecated as of Python 2.6.
28654 See PEP 11 for the gory details.
28655 " >&2;}
28657 *) ;;
28658 esac
28660 mv config.c Modules